Support JSON in kibana_react CodeEditor #107733
Labels
enhancement
New value added to drive a business result
Feature:kibana-react
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
It would be nice if we would support JSON highlighting in our
CodeEditor
component that we're having in kibana_react. Currently we don't have any JSON highlighting available, thus a lot of people might fall back to using the XJSON we have available (allowing you e.g. to use triple quotes), and then get a syntax highlighting that actually differs from the implementation behind (still expecting JSON). See #107723 for an example.I think we should offer JSON as syntax highlighting in
CodeEditor
and exchange all currentXJsonLang
usages that are actually not using XJson with the JSON highlighter. Since only one place is not readOnly (the one mentioned in the issue above), this isn't really a huge problem right now, but might create more confusion if more people add JSON write editors using CodeEditor, which might be likely, given that we're trying to get everyone to move toCodeEditor
atm (see #106931).The text was updated successfully, but these errors were encountered: