diff --git a/wysiwyg/ckfinder/config.php b/wysiwyg/ckfinder/config.php index 7d5afe08..4c41cac6 100644 --- a/wysiwyg/ckfinder/config.php +++ b/wysiwyg/ckfinder/config.php @@ -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=''; } diff --git a/wysiwyg/config.js b/wysiwyg/config.js index d201b47e..82a09097 100644 --- a/wysiwyg/config.js +++ b/wysiwyg/config.js @@ -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; +});