|
|
@ -37,7 +37,7 @@ function sd_create_editor(params){
|
|
|
|
//params.toolbar_container.hide();
|
|
|
|
//params.toolbar_container.hide();
|
|
|
|
$('#reply_image_' + id).addClass('imageFuzzy');
|
|
|
|
$('#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())){
|
|
|
|
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();
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
this.resize("100%", null);
|
|
|
|
this.resize("100%", null);
|
|
|
|
}else if(this.edit.html().trim() != ""){
|
|
|
|
}else if(this.edit.html().trim() != ""){
|
|
|
@ -74,7 +74,7 @@ function sd_create_editor(params){
|
|
|
|
$(".ke-outline>.ke-toolbar-icon",toolbar).append('表情');
|
|
|
|
$(".ke-outline>.ke-toolbar-icon",toolbar).append('表情');
|
|
|
|
params.toolbar_container.append(toolbar);
|
|
|
|
params.toolbar_container.append(toolbar);
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
params.submit_btn.hide();
|
|
|
|
params.submit_btn.show();
|
|
|
|
//init
|
|
|
|
//init
|
|
|
|
var edit = this.edit;
|
|
|
|
var edit = this.edit;
|
|
|
|
var body = edit.doc.body;
|
|
|
|
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});
|
|
|
|
sd_check_editor_form_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
|
|
|
|
if(this.isEmpty()) {
|
|
|
|
if(this.isEmpty()) {
|
|
|
|
this.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>我要回复</span>");
|
|
|
|
this.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>我要回复</span>");
|
|
|
|
params.submit_btn.hide();
|
|
|
|
params.submit_btn.show();
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
this.resize("100%", "30px");
|
|
|
|
this.resize("100%", "30px");
|
|
|
|
$("#dis_reply_id").val("");
|
|
|
|
$("#dis_reply_id").val("");
|
|
|
@ -180,7 +180,7 @@ function sd_create_shixun_editor(params){
|
|
|
|
$(".ke-outline>.ke-toolbar-icon",toolbar).append('表情');
|
|
|
|
$(".ke-outline>.ke-toolbar-icon",toolbar).append('表情');
|
|
|
|
params.toolbar_container.append(toolbar);
|
|
|
|
params.toolbar_container.append(toolbar);
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
params.submit_btn.hide();
|
|
|
|
params.submit_btn.show();
|
|
|
|
//init
|
|
|
|
//init
|
|
|
|
var edit = this.edit;
|
|
|
|
var edit = this.edit;
|
|
|
|
var body = edit.doc.body;
|
|
|
|
var body = edit.doc.body;
|
|
|
@ -432,7 +432,7 @@ function sd_create_message_editor(params){
|
|
|
|
this.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>我要回复</span>");
|
|
|
|
this.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>我要回复</span>");
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
params.toolbar_container.hide();
|
|
|
|
this.resize("100%", "30px");
|
|
|
|
this.resize("100%", "30px");
|
|
|
|
params.submit_btn.hide();
|
|
|
|
params.submit_btn.show();
|
|
|
|
params.notice_msg.hide();
|
|
|
|
params.notice_msg.hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$('#mini_comment_section').height('auto');
|
|
|
|
$('#mini_comment_section').height('auto');
|
|
|
|