|
|
|
@ -40,6 +40,7 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$(function() {
|
|
|
|
|
//init_activity_KindEditor_data(<%= @article.id%>,null,"87%", "<%=@article.class.to_s%>");
|
|
|
|
|
sd_create_editor_from_data(<%= @article.id%>,null,"100%", "<%=@article.class.to_s%>");
|
|
|
|
|
showNormalImage('message_description_<%= @article.id %>');
|
|
|
|
|
});
|
|
|
|
@ -217,8 +218,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
var postContent = $("#message_description_<%= @article.id %>").html();
|
|
|
|
|
postContent = postContent.replace(/ /g," ");
|
|
|
|
|
$("#message_description_<%= @article.id %>").html(postContent);
|
|
|
|
|
$("#message_description_<%= @article.id %> p,#message_description_<%= @article.id %> span,#message_description_<%= @article.id %> em").each(function(){
|
|
|
|
|
var postContent = $(this).html();
|
|
|
|
|
postContent = postContent.replace(/ /g," ");
|
|
|
|
|
postContent= postContent.replace(/ {2}/g," ");
|
|
|
|
|
postContent=postContent.replace(/ /g," ");
|
|
|
|
|
postContent=postContent.replace(/ /g," ");
|
|
|
|
|
$(this).html(postContent);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|