diff --git a/views/includes/editor.html b/views/includes/editor.html new file mode 100644 index 0000000..6c0c397 --- /dev/null +++ b/views/includes/editor.html @@ -0,0 +1,6 @@ +<%- Loader('/public/editor.min.js') +.js('/public/libs/editor/editor.js') +.js('/public/libs/webuploader/webuploader.withoutimage.js') +.js('/public/libs/editor/ext.js') +.done(assets, config.site_static_host, config.mini_assets) +%> diff --git a/views/reply/edit.html b/views/reply/edit.html index fd965ba..0126b22 100644 --- a/views/reply/edit.html +++ b/views/reply/edit.html @@ -46,12 +46,7 @@ -<%- Loader('/public/editor.min.js') -.js('/public/libs/editor/editor.js') -.js('/public/libs/webuploader/webuploader.withoutimage.js') -.js('/public/libs/editor/ext.js') -.done(assets, config.site_static_host, config.mini_assets) -%> +<%- partial('../includes/editor') %>