替换ckeditor

This commit is contained in:
lizanle 2015-03-26 15:46:35 +08:00
parent 05cf90062f
commit 01146cd7bd
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<!-- <h1>New memo</h1> -->
<% @replying = !@memo.parent.nil? %>
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
<h3><%=l(:label_memo_edit)%></h3>
<%= labelled_form_for(@memo, :url => forum_memo_path(@memo.forum_id, @memo)) do |f| %>
<% if @memo.errors.any? %>
@ -40,9 +40,9 @@
</p>
<% end %>
<p>
<%= f.text_area :content, :required => true, :size => 80, id: 'editor01' %>
<%= f.kindeditor :content, :required => true, :size => 80,:owner_id => @memo.id,:owner_type => 1 %>
</p>
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script>
<!-- <script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script> -->
<p>
<%= l(:label_attachment_plural) %>
<br />