Commit 8ee1f4cd authored by Jérome Perrin's avatar Jérome Perrin

AceEditor/CodeMirror: also enable in SQL Connection test

parent 36845ee6
...@@ -70,6 +70,9 @@ def manage_page_footer(self): ...@@ -70,6 +70,9 @@ def manage_page_footer(self):
elif document.meta_type in ('Z SQL Method', ): elif document.meta_type in ('Z SQL Method', ):
mode = 'sql' mode = 'sql'
textarea_selector = 'textarea[name="template:text"]' textarea_selector = 'textarea[name="template:text"]'
elif document.meta_type in ('Z MySQL Database Connection', ):
mode = 'sql'
textarea_selector = 'textarea[name="query:text"]'
elif document.meta_type in ('Page Template', 'ERP5 OOo Template', ): elif document.meta_type in ('Page Template', 'ERP5 OOo Template', ):
if 'html' in document.content_type: if 'html' in document.content_type:
if editor == 'codemirror': if editor == 'codemirror':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment