Skip to content

Commit

Permalink
fix issue 782
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Mar 3, 2016
1 parent 6d26849 commit c6cc547
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
6 changes: 6 additions & 0 deletions views/includes/editor.html
Original file line number Diff line number Diff line change
@@ -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)
%>
7 changes: 1 addition & 6 deletions views/reply/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@
</div>

<!-- markdown editor -->
<%- 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') %>
<script>
(function () {
var editor = new Editor();
Expand Down
7 changes: 1 addition & 6 deletions views/topic/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@
</div>

<!-- markdown editor -->
<%- 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') %>
<script>
(function () {
var editor = new Editor();
Expand Down
7 changes: 1 addition & 6 deletions views/topic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,7 @@

<% if (current_user && typeof(topic) !== 'undefined') { %>
<!-- markdown editor -->
<%- 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') %>
<script>
$(document).ready(function () {
// 获取所有回复者name
Expand Down

0 comments on commit c6cc547

Please sign in to comment.