Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CKEditor增强图像插件不';不能总是正确初始化_Ckeditor_Ckeditor4.x - Fatal编程技术网

CKEditor增强图像插件不';不能总是正确初始化

CKEditor增强图像插件不';不能总是正确初始化,ckeditor,ckeditor4.x,Ckeditor,Ckeditor4.x,我在使用增强图像插件(image2)初始化CKEditor 4.5.4中的图像时遇到问题。第一次加载CKEditor实例时,映像无法正确初始化。见图。标题字段工作正常,但我无法移动或选择图片 但是,如果我导航到web应用程序中的另一个web页面,然后导航回使用CKEditor的页面,则一切正常。换句话说,如果以前加载过CKEditor实例,那么一切都可以正常工作 我们正在使用AngularJS 1.4.4和。这是我们使用的编辑器选项: $scope.editorOptions = { l

我在使用增强图像插件(image2)初始化CKEditor 4.5.4中的图像时遇到问题。第一次加载CKEditor实例时,映像无法正确初始化。见图。标题字段工作正常,但我无法移动或选择图片

但是,如果我导航到web应用程序中的另一个web页面,然后导航回使用CKEditor的页面,则一切正常。换句话说,如果以前加载过CKEditor实例,那么一切都可以正常工作

我们正在使用AngularJS 1.4.4和。这是我们使用的编辑器选项:

$scope.editorOptions = {
    language: 'no',
    customConfig: '/statisk/app/common/ckeditor/ckeditor-config.js',
    extraPlugins: 'sharedspace,image2,widget,lineutils,uploadimage,uploadwidget,filetools',
    extraAllowedContent: 'a(*); span(*); figure(align_center, align_left); div{*}; figure; figcaption; img[alt,!src]{width,height};',
    toolbar: [
                   {name: 'paragraph', items: ['BulletedList', 'NumberedList']},
                   {name: 'links', items: ['Link']},
                   {name: 'insert', items: ['Image']}
               ],
    sharedSpaces: { top: 'toolbar_hovedtekst' }
};  
HTML:


有什么不对劲吗

<div id="hovedtekst" data-ng-show="modus.showEditorControls()">
    <div id="toolbar_hovedtekst"></div>
    <div class="ck_editor_hovedtekst test_hovedtekst" ckeditor="editorOptions" data-ng-model="hovedtekstCtrl.content"></div>
</div>