diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 2521dca9..8c320145 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -516,6 +516,13 @@ doc.write(html_code); 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 () { @@ -673,8 +680,8 @@ if ($embody == 1) {