From b45373a2cedeab4ef9f38b7fb5227dbad1b52665 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 09:12:38 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E8=81=8C=E4=BD=8Deditor=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/information_edit.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 0593b9af..8eafc869 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -557,7 +557,13 @@ From 857552ae8210f24afddb6c14bff163cf5e263d88 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 09:45:31 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E8=81=8C=E4=BD=8Deditor=E7=8A=B6=E6=80=81?= =?UTF-8?q?=20v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/information_edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 8eafc869..cc7a4ce8 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -542,6 +542,7 @@ ic_id, 'AMP_BODY_PC_STATUS') == 'yes') { $PcAmpChecked = 'checked'; + editor.readonly(true); } else { $PcAmpChecked = ''; } From 8cdc3e517f51061732bea1873c0b5223aa48c2a1 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 09:49:44 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E8=81=8C=E4=BD=8Deditor=E7=8A=B6=E6=80=81?= =?UTF-8?q?=20v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/information_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index cc7a4ce8..0c88712b 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -542,7 +542,7 @@ ic_id, 'AMP_BODY_PC_STATUS') == 'yes') { $PcAmpChecked = 'checked'; - editor.readonly(true); + /*editor.readonly(true);*/ } else { $PcAmpChecked = ''; } From 2788d3210c258ed880db9072c3c0696037d4a951 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 09:51:01 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E8=81=8C=E4=BD=8Deditor=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/information_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 0c88712b..2e109674 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -542,7 +542,7 @@ ic_id, 'AMP_BODY_PC_STATUS') == 'yes') { $PcAmpChecked = 'checked'; - /*editor.readonly(true);*/ + echo ""; } else { $PcAmpChecked = ''; } From 6c5d4342c5c84cc76787800b0984ec1f767168ce Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 09:57:39 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E8=81=8C=E4=BD=8Deditor=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/information_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 2e109674..8df08680 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -542,7 +542,7 @@ ic_id, 'AMP_BODY_PC_STATUS') == 'yes') { $PcAmpChecked = 'checked'; - echo ""; + echo ""; } else { $PcAmpChecked = ''; } From 3ac590a9da9537d9c5f1be06e4a7f0823ae5fa8b Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 10:00:59 +0800 Subject: [PATCH 6/9] update editor --- .../views/bootstrap3/information_edit.php | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 8df08680..e86e837e 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -542,7 +542,6 @@ ic_id, 'AMP_BODY_PC_STATUS') == 'yes') { $PcAmpChecked = 'checked'; - echo ""; } else { $PcAmpChecked = ''; } @@ -556,16 +555,21 @@ HTML构建工具 | amp_status === '1') { ?> From 22547084de6dff03d9e245716e640d6f07b15eaf Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 10:04:34 +0800 Subject: [PATCH 7/9] update editor v1 --- .../views/bootstrap3/information_edit.php | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index e86e837e..d2fef1ac 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -465,8 +465,10 @@ } }); }); - - + //是否只使用构建工具 + if ($('#PcAmp input').is(':checked')) { + editor.readonly(true); + } //新闻日历 $(function () { @@ -555,21 +557,16 @@ HTML构建工具 | amp_status === '1') { ?> From bbb9f8e5e0032a53abd6172c00e5c2bbe0836c67 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 9 Nov 2018 10:06:08 +0800 Subject: [PATCH 8/9] update editor v2 --- application/views/bootstrap3/information_edit.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index d2fef1ac..9950aa9a 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -464,12 +464,11 @@ $("iframe.ke-edit-iframe").contents().find(".ke-content").css({"padding-right": "25px", "padding-top": "12px"}); } }); + //是否只使用构建工具 + if ($('#PcAmp input').is(':checked')) { + editor.readonly(true); + } }); - //是否只使用构建工具 - if ($('#PcAmp input').is(':checked')) { - editor.readonly(true); - } - //新闻日历 $(function () { $("#meta_news_createdate").datepicker({ 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 9/9] 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 () {