2012-08-09 71 views
0

從TinyMCE切換到CKEditor後,我們注意到當圖像通過文件管理器插入wysiwyg的內容時,似乎沒有配置/覆蓋源按鈕工作方式的方法。圖像插入後的ckeditor查看源

有沒有人找到解決方法?我知道這可能是不安全的,但我試圖避免重寫圖像插件以使其工作。

這是我們正在使用的當前設置。

//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

看起來像我在內存中緩存壞的文件,清除我的緩存後,它的工作