From b2a7fbce06b6b75a671b11e092893cf6bd50abf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 20 Aug 2019 16:35:52 +0800 Subject: [PATCH] . --- public/javascripts/create_kindeditor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/javascripts/create_kindeditor.js b/public/javascripts/create_kindeditor.js index fdd493d8..fb5db05b 100644 --- a/public/javascripts/create_kindeditor.js +++ b/public/javascripts/create_kindeditor.js @@ -37,7 +37,7 @@ function sd_create_editor(params){ //params.toolbar_container.hide(); $('#reply_image_' + id).addClass('imageFuzzy'); if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(this.edit.html())){ - params.submit_btn.hide(); + params.submit_btn.show(); params.toolbar_container.hide(); this.resize("100%", null); }else if(this.edit.html().trim() != ""){ @@ -74,7 +74,7 @@ function sd_create_editor(params){ $(".ke-outline>.ke-toolbar-icon",toolbar).append('表情'); params.toolbar_container.append(toolbar); params.toolbar_container.hide(); - params.submit_btn.hide(); + params.submit_btn.show(); //init var edit = this.edit; var body = edit.doc.body; @@ -124,7 +124,7 @@ function sd_create_shixun_editor(params){ sd_check_editor_form_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea}); if(this.isEmpty()) { this.edit.html("我要回复"); - params.submit_btn.hide(); + params.submit_btn.show(); params.toolbar_container.hide(); this.resize("100%", "30px"); $("#dis_reply_id").val(""); @@ -180,7 +180,7 @@ function sd_create_shixun_editor(params){ $(".ke-outline>.ke-toolbar-icon",toolbar).append('表情'); params.toolbar_container.append(toolbar); params.toolbar_container.hide(); - params.submit_btn.hide(); + params.submit_btn.show(); //init var edit = this.edit; var body = edit.doc.body; @@ -432,7 +432,7 @@ function sd_create_message_editor(params){ this.edit.html("我要回复"); params.toolbar_container.hide(); this.resize("100%", "30px"); - params.submit_btn.hide(); + params.submit_btn.show(); params.notice_msg.hide(); } $('#mini_comment_section').height('auto');