禁止删除空白元素

hotfix/远程访问多媒体中心
尹诚诚 6 years ago
parent af88171f74
commit 8705bc05c0

@ -78,6 +78,24 @@ switch ($sitecode){
case 'ah':
$site_url='https://data.asiahighlights.com';
break;
case 'vc':
$site_url='https://data.voyageschine.com';
break;
case 'jp':
$site_url='https://data.arachina.com';
break;
case 'vac':
$site_url='https://data.viaje-a-china.com';
break;
case 'it':
$site_url='https://data.viaggio-in-cina.it';
break;
case 'ru':
$site_url='https://data.chinahighlights.ru';
break;
case 'ct':
$site_url='https://data.chinatravel.com';
break;
default:
$site_url='';
}

@ -18,7 +18,8 @@ CKEDITOR.editorConfig = function( config ) {
config.toolbarCanCollapse = false;
config.scayt_autoStartup = true;
//config.scayt_autoStartup = true;//打开自动语法检查
//config.scayt_sLang = 'de_DE'; //语法检查语言
//config.enterMode = CKEDITOR.ENTER_BR;
config.allowedContent = true;
config.toolbarGroups = [
@ -42,10 +43,10 @@ CKEDITOR.editorConfig = function( config ) {
config.extraPlugins= 'tableresize,uploadimage,image2,codemirror,hianamedia';
config.codemirror = {
showFormatButton: false,
showCommentButton: false,
showUncommentButton: false,
showAutoCompleteButton: false,
showFormatButton: false,
showCommentButton: false,
showUncommentButton: false,
showAutoCompleteButton: false,
};
config.height=1024;
config.width=1024;
@ -75,3 +76,7 @@ CKEDITOR.editorConfig = function( config ) {
};
//禁止删除空元素
$.each(CKEDITOR.dtd.$removeEmpty, function (i, value) {
CKEDITOR.dtd.$removeEmpty[i] = false;
});

Loading…
Cancel
Save