1

pe:ckeditor 工具栏上缺少拼写检查器和 scayt 图标:

<p:growl id="growl" showDetail="true" />
<pe:ckEditor id="editor" value="#{editorController.content}" toolbar="[['Cut','Copy','Paste','PasteText','PasteFromWord','-', 'SpellChecker', 'Scayt']]">
  <p:ajax event="save" listener="#{editorController.saveListener}" update="growl" />
</pe:ckEditor>

Ckeditor 自定义工具栏的 Primefaces 扩展展示中也缺少两者:http: //www.primefaces.org/showcase-ext/sections/ckEditor/customToolbar.jsf

已经广泛搜索甚至更新了 pe:ckeditor。

使用 Primefaces 5.1、Primefaces 扩展 3.0、JSF 2.0。

4

1 回答 1

2

我检查了网站,它使用的是自定义的开发人员构建的 CKEditor

console.log( CKEDITOR.version );
"4.4.4 DEV"

既不包含SCAYT也不包含SpellChecker插件

console.log( CKEDITOR.plugins.registered.scayt );
undefined

因此,您的工具栏按钮不会出现也就不足为奇了。您可以生成自定义版本的 CKEditor手动安装插件。这完全取决于您,尽管它可能会受到我不熟悉的框架的限制。但我相信它不需要特殊的技能来修改它。

于 2014-12-16T11:14:57.720 回答