https的链接转换
This commit is contained in:
parent
9d65d61f2a
commit
ed05880653
|
@ -5,6 +5,14 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
sd_create_editor_from_data(<%= @syllabus.id %>, null, "100%", "<%= @syllabus.class.to_s %>");
|
sd_create_editor_from_data(<%= @syllabus.id %>, null, "100%", "<%= @syllabus.class.to_s %>");
|
||||||
showNormalImage('syllabus_description_<%= @syllabus.id %>');
|
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 %>');
|
autoUrl('syllabus_description_<%= @syllabus.id %>');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue