move a few things away in to-be-integrated/
[myslice.git] / to-be-integrated / plugins / code_editor / __init__.py
diff --git a/to-be-integrated/plugins/code_editor/__init__.py b/to-be-integrated/plugins/code_editor/__init__.py
new file mode 100644 (file)
index 0000000..c3f7528
--- /dev/null
@@ -0,0 +1,29 @@
+from unfold.plugin import Plugin
+
+class CodeEditor(Plugin):
+
+    def template_file(self):
+        return "code_editor.html"
+
+    def requirements (self):
+        reqs = {
+            'js_files' : [
+                'js/code_editor.js',
+                'js/moo-clientcide-1.3.js',
+                'js/codemirror.js',
+                'js/sql.js',
+                'js/Actions.js',
+                #'js/EditorCM.js',
+                'js/LayoutCM.js',
+            ] ,
+            'css_files': [
+                'css/codemirror.css',
+            ]
+        }
+        return reqs
+
+    def json_settings_list (self):
+        return ['plugin_uuid', 'domid', 'lineNumbers']
+
+    def export_json_settings (self):
+        return True