Yii CKEditor 4.3内联保存按钮

Yii CKEditor 4.3内联保存按钮,yii,save,ckeditor,inline,Yii,Save,Ckeditor,Inline,我需要将CKEditor 4.0升级到4.3。除了InlineCKeditor不想使用“保存”按钮外,一切正常。我得到错误:未捕获类型错误:对象Esave没有方法“render”。Esave被重命名为pluginsave。我试着把这个插件改成最新的,改名为esave,并且没有改名就使用了它,但是仍然得到同样的错误。 我应该更改什么以使“保存”按钮再次工作 这是InlineCKeditor代码,错误来自: <?php Yii::import('ext.widgets.inline.Inlin

我需要将CKEditor 4.0升级到4.3。除了InlineCKeditor不想使用“保存”按钮外,一切正常。我得到错误:未捕获类型错误:对象Esave没有方法“render”。Esave被重命名为pluginsave。我试着把这个插件改成最新的,改名为esave,并且没有改名就使用了它,但是仍然得到同样的错误。 我应该更改什么以使“保存”按钮再次工作

这是InlineCKeditor代码,错误来自:

<?php
Yii::import('ext.widgets.inline.InlineEdit');
class InlineCKeditor extends InlineEdit
{
    /**
     * @var string path for CKeditor init script
     */
    protected $tinyMceInitPath;

    protected function loadCustomScript()
    {
        parent::loadCustomScript();
        $this->scriptLogics();
        Yii::app()->wysiwyg->getWysiwyg();
    }    
    protected function scriptLogics()
    {
        $script = "    
        CKEDITOR.config.extraPlugins = 'esave,doNothing';    
        // The 'instanceCreated' event is fired for every editor instance created.
        CKEDITOR.on( 'instanceCreated', function( event ) {
            var editor = event.editor,
                element = editor.element;

            // Customize editors for headers and tag list.
            // These editors don't need features like smileys, templates, iframes etc.

            if ( $.inArray('ckeditor',element.$.classList) >= 0 ) {
                // Customize the editor configurations on 'configLoaded' event,
                // which is fired after the configuration file loading and
                // execution. This makes it possible to change the
                // configurations before the editor initialization takes place.    
                editor.on( 'configLoaded', function() {    
                    // Remove unnecessary plugins to make the editor simpler.
                    editor.config.removePlugins = 'colorbutton,find,font,' +
                        'forms,iframe,newpage,removeformat,scayt,flash,' +
                        'smiley,stylescombo,templates,wsc, pagebreak';

                    // Rearrange the layout of the toolbar.

                    editor.config.toolbarGroups = [
                        { name: 'editing',      groups: [ 'basicstyles', 'links' ] },
                        { name: 'insert'},
                        { name: 'undo' },
                        '/',
                        { name: 'styles'},
                        { name: 'indents',      groups: ['list', 'align','bidi']},
                        { name : 'others', items : [ 'Esave' ] }

                    ];

                });
            }else{
                editor.on( 'configLoaded', function() {

                    editor.config.keystrokes =
                    [
                        //deleted
                    ];

                    editor.config.removePlugins = 'a11yhelp,about,basicstyles,bidi,blockquote,' +
                     'clipboard, colorbutton, colordialog,contextmenu,dialog,dialogui,div,elementspath,' +
                     'enterkey,entities,filebrowser,find,flash,floatpanel,font,format,' +
                     'forms,horizontalrule,htmlwriter,iframe,image,indent,justify,link,list,listblock,liststyle,magicline,' +
                     'maximize,menu,menubutton,newpage,panel,panelbutton,pastefromword,pastetext,popup,preview,print,' +
                     'removeformat,resize,richcombo,save,scayt,selectall,showblocks,showborders,smiley,sourcearea,specialchar,stylescombo,' +
                     'tab,table,tabletools,templates,wsc,wysiwygarea';

                    editor.config.toolbarGroups = [{ name : 'others', items : [ 'Esave' ] }];   
                });
            }
        });
        ";    
        Yii::app()->clientScript->registerScript('editor_rules', $script, CClientScript::POS_BEGIN);
    }    
    protected function getEditableClass()
    {
        return 'ckeditor edit_' . static::$innerIncrement;
    }
}

你确定这和Yii有什么关系吗

关于CKEditor插件——你们不能仅仅在配置中重命名它,所以问题主要在这里