@ -516,6 +516,13 @@
doc.write(html_code);
doc.write(html_code);
doc.close();
doc.close();
}
}
//格式化代码,把旧样式替换
function replace_html_css(){
var html_code=editor.getData().replaceAll('class="photoBlock300 autowidht"','class="infoimage"').replaceAll('class="monthWeather"','class="infotable"');
editor.setData(html_code);
$.modaldialog.success('样式替换成功!');
}
//新闻日历
//新闻日历
$(function () {
$(function () {
@ -673,8 +680,8 @@ if ($embody == 1) {
< / div >
< / div >
<?php } ?>
<?php } ?>
< div class = "col-xs-24 edit_tool nopadding" style = "margin-top:5px;" >
< div class = "col-xs-24 edit_tool nopadding" style = "margin-top:5px;" >
< i class = " icon-stop icon-white pull-right "> < / i >
< i class = " glyphicon glyphtext-muted glyphicon glyphicon-random text-muted" onclick = "replace_html_css();" title = "旧样式替换 "> < / i >
< i class = "icon-stop icon-white pull-right" id = "display_count" > - < / i >
< i class = "icon-stop icon-white pull-right" id = "display_count" > < / i >
< / div >
< / div >
< / div >
< / div >