Commit 541048a3 authored by Jérome Perrin's avatar Jérome Perrin

fixup! erp5: enable monaco_editor as a code editor

parent 9ef00503
......@@ -19,9 +19,6 @@ def manage_page_footer(self):
except:
editor = None
if editor not in ('ace', 'codemirror'):
return default
# REQUEST['PUBLISHED'] can be the form in the acquisition context of the
# document, or a method bound to the document (after a POST it is a bound method)
published = self.REQUEST.get('PUBLISHED')
......@@ -104,7 +101,7 @@ def manage_page_footer(self):
portal_url=portal_url,
bound_names=bound_names,
mode=mode))
else:
elif editor == 'ace':
return '''
<script type="text/javascript" src="%(portal_url)s/jquery/core/jquery.min.js"></script>
<script type="text/javascript" src="%(portal_url)s/ace/ace.js"></script>
......@@ -190,4 +187,6 @@ $(document).ready(function() {
</body>
</html>''' % locals()
return default
Navigation.manage_page_footer = manage_page_footer
  • ( I just pushed a part I forgot, the editor was not functional in the ZMI )

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