竞赛基本信息页面的“竞赛介绍”的默认提示信息丢失了
This commit is contained in:
parent
18ff7deca2
commit
61d6a6a7c3
|
@ -18,6 +18,8 @@
|
|||
:width => '84%',
|
||||
:height => 300,
|
||||
:minHeight=> 300,
|
||||
:placeholder => "例如:参赛要求,参与方法,赛事日程,奖项设置等",
|
||||
:afterCreate => "eval(function() {alert(000)})",
|
||||
:class => 'fl ml5 w690',
|
||||
:input_html => { :id => 'contest_description',
|
||||
:class => 'courses_text fl',
|
||||
|
@ -62,7 +64,11 @@
|
|||
|
||||
//配置-信息提交
|
||||
function submit_edit_contest(id) {
|
||||
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*[\uFF1A][\u4e00-\u9fa5]*[\uFF0C][\u4e00-\u9fa5]*[\uFF0C][\u4e00-\u9fa5]*[\uFF0C][\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(contest_setting_editor.html())){
|
||||
contest_setting_editor.html('');
|
||||
}
|
||||
contest_setting_editor.sync();
|
||||
|
||||
if (regex_contest_name()) {
|
||||
$("#edit_contest_" + id).submit();
|
||||
}
|
||||
|
|
|
@ -236,6 +236,7 @@ function _getBasePath() {
|
|||
// End of modification by Macrow
|
||||
K.basePath = _getBasePath();
|
||||
K.options = {
|
||||
placeholder : '',
|
||||
designMode : true,
|
||||
fullscreenMode : false,
|
||||
filterMode : true,
|
||||
|
@ -4783,6 +4784,9 @@ function _bindTabEvent() {
|
|||
function _bindFocusEvent() {
|
||||
var self = this;
|
||||
K(self.edit.textarea[0], self.edit.win).focus(function(e) {
|
||||
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*[\uFF1A][\u4e00-\u9fa5]*[\uFF0C][\u4e00-\u9fa5]*[\uFF0C][\u4e00-\u9fa5]*[\uFF0C][\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(self.edit.html())){
|
||||
self.edit.html('');
|
||||
}
|
||||
if(typeof self.options.enable_at === 'function'){
|
||||
self.options.enable_at();
|
||||
}
|
||||
|
@ -4790,6 +4794,9 @@ function _bindFocusEvent() {
|
|||
self.afterFocus.call(self, e);
|
||||
}
|
||||
}).blur(function(e) {
|
||||
if(self.isEmpty()) {
|
||||
self.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>" + self.placeholder + "</span>");
|
||||
}
|
||||
if (self.afterBlur) {
|
||||
self.afterBlur.call(self, e);
|
||||
}
|
||||
|
@ -5168,11 +5175,14 @@ KEditor.prototype = {
|
|||
}
|
||||
self.afterCreate();
|
||||
if (self.options.afterCreate) {
|
||||
if (typeof self.options.afterCreate == 'string'){
|
||||
self.options.afterCreate = eval(self.options.afterCreate);
|
||||
}
|
||||
if (typeof self.options.afterCreate == 'string'){
|
||||
self.options.afterCreate = eval(self.options.afterCreate);
|
||||
}
|
||||
self.options.afterCreate.call(self);
|
||||
}
|
||||
if (self.placeholder != "" && self.edit.html() == "") {
|
||||
self.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>" + self.placeholder + "</span>");
|
||||
}
|
||||
}
|
||||
});
|
||||
//statusbar.removeClass('statusbar').addClass('ke-statusbar')
|
||||
|
|
Loading…
Reference in New Issue