From c6cc54729ca7bfcb294da30729740f09bb8e5252 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Thu, 3 Mar 2016 10:58:13 +0800 Subject: [PATCH] fix issue 782 --- views/includes/editor.html | 6 ++++++ views/reply/edit.html | 7 +------ views/topic/edit.html | 7 +------ views/topic/index.html | 7 +------ 4 files changed, 9 insertions(+), 18 deletions(-) create mode 100644 views/includes/editor.html 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') %>