提出按ckeditor

This commit is contained in:
lizanle 2015-03-26 16:18:34 +08:00
parent e95e35fdaa
commit c704ba71d9
1 changed files with 3 additions and 2 deletions

View File

@ -6,13 +6,14 @@
<% if User.current.logged? %> <% if User.current.logged? %>
<%= labelled_form_for(@memo, :url => create_memo_forum_path(@forum), :html => {:multipart => true} ) do |f| %> <%= labelled_form_for(@memo, :url => create_memo_forum_path(@forum), :html => {:multipart => true} ) do |f| %>
<div class="actions" style="max-width:680px"> <div class="actions" style="max-width:680px">
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
<p> <p>
<%= f.text_field :subject, :required => true, :maxlength => 50%> <%= f.text_field :subject, :required => true, :maxlength => 50%>
</p> </p>
<p style="max-width:680px"> <p style="max-width:680px">
<%= f.text_area :content, :required => true, :id => 'editor02' %> <%= f.kindeditor :content, :required => true %>
</p> </p>
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor02');</script> <!--<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor02');</script>-->
<p style="color: #ff0000"> <p style="color: #ff0000">
(<%= l(:label_memos_max_length) %>) (<%= l(:label_memos_max_length) %>)
</p> </p>