config.fullPage = true;没有在ckeditor内联模式下工作。怎么实现呢?

时间:2013-11-10 12:28:08

标签: javascript jquery ckeditor

我正在使用ckeditor内联模式。当我通过单击源按钮输入一些html代码时,关闭它后,当我通过单击源按钮重新打开时,只显示body标签内的内容。

我在ckeditor论坛中搜索过使用配置设置可以看到所有这些html和body标签

config.fullPage = true;

我试过但是没用。有人可以告诉我为什么它不能使用内联模式。

以下是我的配置设置:

CKEDITOR.editorConfig = function( config ) {

    // %REMOVE_START%
    // The configuration options below are needed when running CKEditor from source files.
    config.fullPage = true;
    config.plugins = 'dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,menubutton,scayt,stylescombo,tab,table,tabletools,undo,wsc,sourcedialog,tokens';
    config.skin = 'moono';
    config.filebrowserBrowseUrl = '../kcfinder/browse.php?type=images';
    config.filebrowserUploadUrl = '../kcfinder/upload.php?type=images';
    config.allowedContent = true;
    config.scayt_autoStartup = true;
    config.baseFloatZIndex = 900;
    config.removePlugins = 'youtube';
    config.toolbarGroups = [
    { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
    { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
    { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
    '/',
    { name: 'links' },
    { name: 'insert' },
    { name: 'styles' },
    { name: 'colors' },
    { name: 'tools' },
    { name: 'tokens'},
    { name: 'others' }
];

1 个答案:

答案 0 :(得分:1)

它无法正常工作,因为它无法正常工作。在完整页面模式下,您可以编辑整个文档,那么如果所有必须内联的话,您希望在哪里以及如何加载CKEditor?