From c54146d1abdb583432d648713146fc832f781e57 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 10:17:44 +0800 Subject: [PATCH] update editor v3 --- application/views/bootstrap3/information_edit.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 9950aa9a..102192dc 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -450,6 +450,9 @@ height: '560px', //fileManagerJson:'/js/kcfinder/browse.php', //allowFileManager:true, + afterCreate: function() { + editor.readonly(ic_id, 'AMP_BODY_PC_STATUS') === 'yes' ? 'true' : 'false'); ?>); + }, filterMode: false, allowImageUpload: false, items: [ @@ -464,10 +467,6 @@ $("iframe.ke-edit-iframe").contents().find(".ke-content").css({"padding-right": "25px", "padding-top": "12px"}); } }); - //是否只使用构建工具 - if ($('#PcAmp input').is(':checked')) { - editor.readonly(true); - } }); //新闻日历 $(function () {