Xpages - 新版本的CkEditor无法加载

问题描述 投票:0回答:1

最近我决定将我的应用程序从V8.5.3 Lotus Notes迁移到9.0.1版。执行此操作时,我需要将CkEditor的版本从4.4.7更改为4.5.3,因此我更改了\ data \ domino \ html \ ckeditor文件夹中的文件,但是在重新构建应用程序时,我收到了以下错误:浏览器控制台

The file xsp/.ibmxspres/domino/ckeditor/plugins/ibmspellchecker/plugin.js not exists in the new version of ckEditor.

我意识到这是因为应用程序试图从旧版本的CkEditor中获取javascripts文件,就像它被缓存一样。我已经尝试了这里指定的所有内容:http://www.intec.co.uk/dde-local-preview-ckeditor/但没有任何效果。

有没有人有任何想法?

ckeditor xpages lotus-notes lotus-domino
1个回答
1
投票

据我所知:您正在自行升级CKEditor,而不是使用已安装的默认版本,并通过安装从CKEditor直接获得的CKEditor版本来执行此操作。

如果是这样,问题可能是xpages inputRichText控件使用IBM提供的一些CKEditor插件,例如: ibmspellchecker,ibmxspimage以及这些将不会在标准CKEditor发行版中提供。

如果新CKEditor安装中没有这些插件,则编辑器将无法正确加载。

你有2个选择

  1. 确保将这些IBM插件放回html / ckeditor / plugins目录中(并希望它们仍然与CKEditor版本兼容)
  2. 告诉inputRichText控件不要加载任何ibm插件。 (但这意味着你将无法上传图片)

要从编辑器配置中删除插件,请使用dojoAttribute'removePlugins'

<xp:inputRichText id="inputRichText1">
    <xp:this.dojoAttributes>
        <xp:dojoAttribute name="removePlugins" value="ibmspellchecker,etc"></xp:dojoAttribute>
    </xp:this.dojoAttributes>
</xp:inputRichText>
© www.soinside.com 2019 - 2024. All rights reserved.