样式替换功能

ct-mobile-first
ycc 5 years ago
parent 5a126385f5
commit 5a3c7a5fa2

@ -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) {
</div>
<?php }?>
<div class="col-xs-24 edit_tool nopadding" style="margin-top:5px;">
<i class="icon-stop icon-white pull-right"></i>
<i class="icon-stop icon-white pull-right" id="display_count">-</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>
</div>
</div>

Loading…
Cancel
Save