从TinyMCE切换到CKEditor后,我们注意到当使用文件管理器将图像插入到wysiwyg的内容中时,似乎无法配置/覆盖源按钮的工作方式。
有没有人为此找到解决方法?我知道它可能不安全,但我试图避免为了工作而重写图像插件。
以下是我们正在使用的当前设置。
//setup ckeditor basics
var config = {
skin:'kama',
width:'725px',
height: '400px',
uiColor: '#F3F3F3'
};
//spellchecking
config.extraPlugins = 'atd-ckeditor';
config.atd_rpc = '/includes/javascript/plugins/ckeditor/plugins/atd-ckeditor/proxy.cfm?url=';
config.atd_api_key = '<cfoutput>#AtdApikey#</cfoutput>';
config.filebrowserBrowseUrl = '/includes/javascript/plugins/filemanager/index.cfm?cktype=events';
config.toolbar_Full =[
{ name: 'document', items : [
'Maximize','Source','-',
'Preview','Print','-',
'Cut','Copy','Paste','PasteText','PasteFromWord','-',
'Undo','Redo','Find','Replace','-',
'SelectAll','-',
'atd-ckeditor']
},
'/',
{ name: 'editing', items : [
'NumberedList','BulletedList','-',
'Outdent','Indent','-',
'Blockquote','-',
'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-'
,'BidiLtr','BidiRtl','-',
'Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar' ]
},
'/',
{ name: 'styles', items : [
'Format','FontSize','Bold','Italic','Underline','Strike','Subscript','Superscript','-',
'TextColor','BGColor','-',
'RemoveFormat' ]
},
];
//set drop downs
config.format_tags = 'h1;h2;h3;h4;h5;h6'
config.fontSize_sizes = '10/10px;12/12px;14/14px;16/16px;18/18px;20/20px;24/24px';
config.disableNativeSpellChecker = true;
config.browserContextMenuOnCtrl = false;
config.toolbarCanCollapse = false;
config.forcePasteAsPlainText = true;
config.pasteFromWordPromptCleanup = true;
config.pasteFromWordNumberedHeadingToList = true;
config.removePlugins = 'elementspath';
$("#Detail").ckeditor(config);
答案 0 :(得分:0)
看起来我在内存中缓存了一个错误的文件,在清除了它的缓存之后