LotusSpellChecker 和 ckeditor Xpages?
我想激活 CKEditor 中的拼写检查插件,但 IBM 似乎已禁用本机插件。
查看 Domino 服务器上 data\domino\html\ckeditor 目录中的 config.js,我看到这段代码描述了一个名为 LotusSpellChecker 的插件,但启用此插件似乎没有执行任何操作。
config.lotusSpellChecker = {
restUrl:'',
lang:'en',
suggestions:'5',
format:'json',
highlight: { element : 'span', styles : { 'background-color' : 'yellow', 'color' : 'black' } },
preventCache: true
};
有谁知道如何激活这个插件以及为什么原生插件被禁用?
I'd like to activate the spellcheck plugin in CKEditor but it seems that IBM has disabled the native plugin.
Looking at the config.js in the data\domino\html\ckeditor directory on the Domino server I see this code describing a plugin called lotusSpellChecker but enabling this plugin doesn't seem to do anything.
config.lotusSpellChecker = {
restUrl:'',
lang:'en',
suggestions:'5',
format:'json',
highlight: { element : 'span', styles : { 'background-color' : 'yellow', 'color' : 'black' } },
preventCache: true
};
Does anybody know how to activate this plugin and why the native one has been disabled?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我只是通过下载最新的 CKEditor 版本、将其复制到服务器并在 Xpage 上使用来成功激活内置拼写检查器。有关详细信息,请参阅我在 XPage 论坛上的帖子:
http://www-10.lotus.com/ldd/xpagesforum.nsf/topicThread.xsp?action=openDocument&documentId=A198C7153DBD84348525798B0056DC6B
我尝试在默认的 CKEditor 安装中激活它但无法让它发挥作用。
I've only successfully activated the built-in spell checker by downloading the latest CKEditor release, copying it to the server and using that on an Xpage. See my post on the XPage forum for details:
http://www-10.lotus.com/ldd/xpagesforum.nsf/topicThread.xsp?action=openDocument&documentId=A198C7153DBD84348525798B0056DC6B
I've tried activating it in the default CKEditor installation but couldn't get it to work.
我无法就其被禁用的原因做出正式声明,但很可能是出于许可原因。
CKEditor 使用 Web 拼写检查器。详细信息在这里。
http://www.webspellchecker.net/
I can't make an official statement as to why it is disabled, but it is most likely for licensing reasons.
CKEditor uses Web Spell Checker. Details are here.
http://www.webspellchecker.net/
可以通过对 ckeditor 文件夹中的 config.js 文件进行一些更改来激活该插件。取消注释以下块:
注意:您需要提供要使用的任何拼写检查服务的restUrl。这里的说明仅解决“如何激活插件”的问题。
您还需要在富文本控件中提供一些 Dojo 属性:
这个属性将拼写检查按钮 (LotusSpellChecker) 添加到工具栏。
属性名称:工具栏
属性值: var myToolbar = "[['Format', 'Font','FontSize'], \n"
+"['粗体','斜体','下划线','Strike','-','TextColor','BGColor','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ,'-','编号列表','项目符号列表'],\n"
+"['缩进','减少缩进'],\n"
+"['下标','上标'],\n"
+"['RemoveFormat', '-','MenuPaste','-','撤消','重做','查找','LotusSpellChecker','-','图像','表格','链接' ,'Flash','-','PageBreak','HorizontalRule','SpecialChar','Blockquote','Smiley','ShowBlocks'], \n"
+"['BidiLtr','BidiRtl'],\n"
+"['最大化']]";
返回我的工具栏;
这会激活插件。
属性名称: extraPlugins
属性值: lotusspellchecker
这是您得到的:
The plugin can be activated by making some changes to the config.js file located in the ckeditor folder. Uncomment the folowing block:
Note: you need to provide the restUrl of whatever spell checking service you are going to use. Instructions here only solve the "how to activate plugin" question.
You also need to provide some Dojo properties in your rich text control:
This one adds the spell check button (LotusSpellChecker) to the toolbar.
Property name: toolbar
Property value: var myToolbar = "[['Format', 'Font','FontSize'], \n"
+"['Bold','Italic','Underline','Strike','-','TextColor','BGColor','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','NumberedList','BulletedList'], \n"
+"['Indent','Outdent'], \n"
+"['Subscript','Superscript'], \n"
+"['RemoveFormat', '-','MenuPaste','-','Undo','Redo','Find','LotusSpellChecker','-','Image','Table','Link','Flash','-','PageBreak','HorizontalRule','SpecialChar','Blockquote','Smiley','ShowBlocks'], \n"
+"['BidiLtr','BidiRtl'], \n"
+"['Maximize']]";
return myToolbar;
This one activates the plugin.
Property name: extraPlugins
Property value: lotusspellchecker
This is what you get:
Domino 9.0.1 FP2 通过默认的 CKEditor 工具栏和“IbmSpellChecker”工具栏按钮添加了拼写检查功能。
Domino 9.0.1 FP2 adds spell checker functionality through the default CKEditor toolbar and through the 'IbmSpellChecker" toolbar button.
我有这方面的更新。创建 SPR PHAN8R2GRE 的目的是为了在以后的版本中包含此功能。如果您需要向其中添加客户报告。
所有现代浏览器都具有拼写检查功能,可以在现场为您激活。
I have an update on this. SPR PHAN8R2GRE is created to look at including this functionality in a later release. In case you need to add a customer report to it.
All modern browsers come with spell checking capabilities which should activate for you on the field.