Fix: merge conflict
[myslice.git] / to-be-integrated / plugins / code_editor / __init__.py
1 from unfold.plugin import Plugin
2
3 class CodeEditor(Plugin):
4
5     def template_file(self):
6         return "code_editor.html"
7
8     def requirements (self):
9         reqs = {
10             'js_files' : [
11                 'js/code_editor.js',
12                 'js/moo-clientcide-1.3.js',
13                 'js/codemirror.js',
14                 'js/sql.js',
15                 'js/Actions.js',
16                 #'js/EditorCM.js',
17                 'js/LayoutCM.js',
18             ] ,
19             'css_files': [
20                 'css/codemirror.css',
21             ]
22         }
23         return reqs
24
25     def json_settings_list (self):
26         return ['plugin_uuid', 'domid', 'lineNumbers']
27
28     def export_json_settings (self):
29         return True