Added syntax colorization
This commit is contained in:
@@ -137,6 +137,11 @@ class DslEditor(MultipleInstance):
|
||||
|
||||
def _get_editor_config(self) -> dict:
|
||||
"""Build the JavaScript configuration object."""
|
||||
# Get Simple Mode config if available
|
||||
simple_mode_config = None
|
||||
if hasattr(self._dsl, 'simple_mode_config'):
|
||||
simple_mode_config = self._dsl.simple_mode_config
|
||||
|
||||
config = {
|
||||
"elementId": str(self._id),
|
||||
"textareaId": f"ta_{self._id}",
|
||||
@@ -150,6 +155,7 @@ class DslEditor(MultipleInstance):
|
||||
"dsl": {
|
||||
"name": self._dsl.name,
|
||||
"completions": self._dsl.completions,
|
||||
"simpleModeConfig": simple_mode_config,
|
||||
},
|
||||
}
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user