issue的修改如果更改issue的类型,那么就会有问题。需要重新新建editor
This commit is contained in:
parent
c183574a5e
commit
31c57b78bf
|
@ -12,7 +12,7 @@
|
||||||
<div class="NewsBannerName">问题跟踪</div>
|
<div class="NewsBannerName">问题跟踪</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="resources mt10" style="min-height:619px;">
|
<div class="resources mt10" >
|
||||||
<div class="pro_page_box">
|
<div class="pro_page_box">
|
||||||
<div class="problem_main borderBottomNone">
|
<div class="problem_main borderBottomNone">
|
||||||
<%= render :partial => 'issues/detail'%>
|
<%= render :partial => 'issues/detail'%>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= @issue.id%>">
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= @issue.id%>">
|
||||||
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(@issue.author_id), :alt => "用户头像" %>
|
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(@issue.author_id), :alt => "用户头像" %>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="issue_id" value="<%=@issue.id%>">
|
<input type="hidden" name="issue_id" value="<%=@issue.id%>"/>
|
||||||
<div class="homepagePostReplyInputContainer mb10">
|
<div class="homepagePostReplyInputContainer mb10">
|
||||||
<%= kindeditor_tag :notes,"",:height=>"33",:minHeight=>"33",:editor_id=>"issues_reply_editor"%>
|
<%= kindeditor_tag :notes,"",:height=>"33",:minHeight=>"33",:editor_id=>"issues_reply_editor"%>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
@ -48,4 +48,6 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--<div style="clear:both;"></div>-->
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -9,3 +9,15 @@ $('#all_attributes').html('<%= escape_javascript(render :partial => 'form') %>')
|
||||||
<% else %>
|
<% else %>
|
||||||
$('#log_time').hide();
|
$('#log_time').hide();
|
||||||
<% end %>
|
<% end %>
|
||||||
|
issue_desc_editor = KindEditor.create('#issue_description',
|
||||||
|
{"width":"85%",
|
||||||
|
"resizeType":0,
|
||||||
|
"no_label":true,
|
||||||
|
"autoHeightMode":true,
|
||||||
|
"afterCreate":"eval(function(){ if(typeof enablePasteImg ==='function'){enablePasteImg(self);} if(typeof enableAt ==='function'){enableAt(self);} this.loadPlugin(\"autoheight\"),$(this.toolbar.div).hide();})",
|
||||||
|
"afterFocus":"eval(function(){$(this.toolbar.div).show();})",
|
||||||
|
"afterBlur":"eval(function(){$(this.toolbar.div).hide();})",
|
||||||
|
"emotionsBasePath":"http://localhost:3000",
|
||||||
|
"height":300,"allowFileManager":true,
|
||||||
|
"uploadJson":"/kindeditor/upload",
|
||||||
|
"fileManagerJson":"/kindeditor/filemanager"});
|
Loading…
Reference in New Issue