|
|
|
@ -5,6 +5,14 @@
|
|
|
|
|
$(function() {
|
|
|
|
|
sd_create_editor_from_data(<%= @syllabus.id %>, null, "100%", "<%= @syllabus.class.to_s %>");
|
|
|
|
|
showNormalImage('syllabus_description_<%= @syllabus.id %>');
|
|
|
|
|
$("#syllabus_description_<%= @syllabus.id%> p,#syllabus_description_<%= @syllabus.id%> span,#syllabus_description_<%= @syllabus.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);
|
|
|
|
|
});
|
|
|
|
|
autoUrl('syllabus_description_<%= @syllabus.id %>');
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|