From 5a3c7a5fa2d5aec08e96363931244d839358ceb1 Mon Sep 17 00:00:00 2001 From: ycc Date: Thu, 19 Nov 2020 15:14:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=9B=BF=E6=8D=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/information_edit.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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) {
- - - + +