Commit 12494b2e authored by Jérome Perrin's avatar Jérome Perrin

core: enable monaco as a text editor

So that we can edit web pages & web scripts with monaco
parent 59e86ecc
......@@ -6,4 +6,7 @@ if getattr(context.portal_skins, "erp5_ace_editor", None) is not None:
if getattr(context.portal_skins, "erp5_code_mirror", None) is not None:
text_editor_list.append(("Code Mirror", "codemirror"))
if getattr(context.portal_skins, "erp5_monaco_editor", None) is not None:
text_editor_list.append(("Monaco Editor", "monaco"))
return text_editor_list
......@@ -7,6 +7,7 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/
var editor_dict = {
"codemirror": {"url": "codemirror.gadget.html"},
"monaco": {"url": "monaco-editor.gadget.html"},
"onlyoffice": {"url": "onlyoffice.gadget.html"},
"fck_editor": {"url": "ckeditor.gadget.html"},
"svg_editor" : {"url": "method-draw/method-draw.gadget.html"},
......
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