OSDN Git Service

js: fix to work embed journal editor
[newslash/newslash.git] / src / newslash_web / templates / components / content_editor.html.tt2
index 9022a34..1c81a04 100644 (file)
@@ -3,5 +3,6 @@
 </script>
 <script src="/js/content-editor.js" ></script>
 <script>
-  contentEditor.run();
+  const editorConfig = [% Editor.json %];
+  contentEditor.run({config: editorConfig});
 </script>