如何在XPages下配置CKEditor?

如何在XPages下配置CKEditor?,xpages,Xpages,我的目标是向CKEditor(版本3.6.6.2)添加一些自定义样式 我已经找到了一个解决方案,但是它们会干扰内置的图像上传功能 用于添加图像的功能(随后存储在当前文档中)消失 因此,我担心它还有更多的问题,目前尚未发现 我当前的解决方案 我整天都试图通过dojoAttributes和/或config.js实现这一点- 对我来说什么都不管用,只有这个 如果有人能告诉我在XPages下配置CKEditor的正确方法,我将非常高兴。这是否仍然相关?intec.co.uk/xpages-8-5-

我的目标是向CKEditor(版本3.6.6.2)添加一些自定义样式

我已经找到了一个解决方案,但是它们会干扰内置的图像上传功能

用于添加图像的功能(随后存储在当前文档中)消失

因此,我担心它还有更多的问题,目前尚未发现

我当前的解决方案


我整天都试图通过dojoAttributes和/或config.js实现这一点- 对我来说什么都不管用,只有这个


如果有人能告诉我在XPages下配置CKEditor的正确方法,我将非常高兴。

这是否仍然相关?intec.co.uk/xpages-8-5-2-rich-text-extensing-the-ckeditor可能不是,现在很多资源都在一个插件中

[由Dennis K.编辑]

解决方案

<xp:inputRichText value="#{document1.html}" id="html1" htmlFilter="identity" htmlFilterIn="identity">
    <xp:this.dojoAttributes>
        <xp:dojoAttribute name="extraPlugins" value="stylesheetparser"></xp:dojoAttribute>
        <xp:dojoAttribute name="toolbarType" value="Full"></xp:dojoAttribute>
        <xp:dojoAttribute name="contentsCss" value="CKStyles.css"></xp:dojoAttribute>
    </xp:this.dojoAttributes>
</xp:inputRichText>

这是否仍然相关?可能不是,现在很多资源都在一个插件中,这是一个很好的观点,我完全忽略了插件。看来这就是我问题的答案。我无意中取消了你的评论。如果你可以简单地将你的评论复制到一个新的答案中,那么我可以将其标记为已解决,并在其下添加我的新解决方案。非常感谢:)
<xp:inputRichText value="#{document1.html}" id="html1" htmlFilter="identity" htmlFilterIn="identity">
    <xp:this.dojoAttributes>
        <xp:dojoAttribute name="extraPlugins" value="stylesheetparser"></xp:dojoAttribute>
        <xp:dojoAttribute name="toolbarType" value="Full"></xp:dojoAttribute>
        <xp:dojoAttribute name="contentsCss" value="CKStyles.css"></xp:dojoAttribute>
    </xp:this.dojoAttributes>
</xp:inputRichText>
//Example
span.myClass {
   color: #00A6C7;
   font-size: 1.8em;
   font-weight:normal;
}