0
当前应用程序具有richTextField。用户将被允许使用按钮的子集(例如,没有图片等)。页面上的Xpage richTextField;无法正确配置皮肤
我想现在编辑好皮肤。我已将bootstrapck文件夹添加到我的WebContents文件夹中。
什么是错的。当我运行这个时,我得到一个非常小的域,并且根本没有工具栏。
============================================== ================
OK我加入了一些不同的代码:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view
xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom">
<xp:this.data>
<xp:dominoDocument
var="document1"
formName="Cash" />
</xp:this.data>
<xp:scriptBlock
id="scriptBlockCKEditor">
<xp:this.value>
<![CDATA[
require(['dojo/_base/declare', 'ibm/xsp/widget/layout/xspCKEditor'], function(declare, xspCKEditor){
return declare('com.scoular.CKEDITOR', xspCKEditor, {
constructor: function ckew_ctor(/*Object*/options){
CKEDITOR.timestamp = '';
}
});
});
]]>
</xp:this.value>
</xp:scriptBlock>
<xp:inputRichText
id="inputRichText2"
value="#{document1.Body}"
dojoType="com.scoular.CKEDITOR">
<xp:this.dojoAttributes>
<xp:dojoAttribute
name="toolbar">
<xp:this.value><![CDATA[#{javascript:var myToolbar = "[['Font','FontSize'], \n"
+"['Preview', 'Bold','TextColor','BGColor'], \n"
+"['Italic','Underline','Strike','-','Subscript','Superscript']]";
return myToolbar;}]]></xp:this.value>
</xp:dojoAttribute>
<xp:dojoAttribute
name="enterMode"
value="2" />
<xp:dojoAttribute
name="skin">
<xp:this.value><![CDATA[#{javascript:"BootstrapCK-Skin,/"+database.getFilePath()+"/BootstrapCK-Skin/"}]]></xp:this.value>
</xp:dojoAttribute>
</xp:this.dojoAttributes>
</xp:inputRichText>
</xp:view>
在Chrome中我碰到下面的错误。
如何找到WebContents文件夹的正确文件路径? 另一个错误来自哪里?