简体   繁体   中英

How to enable browser spellcheck in pe:ckEditor

pe:ckEditor is used in my program by a user to enter new e-mail message content. Users need browser spellcheck enabled.

I know that the ckEditor , on which the pe:ckEditor is based, can have this enabled by adding config.disableNativeSpellChecker = false; to config, however pe:ckEditor does not have a config file and is modified by values of its attributes. Though, I have not found in its doc any attribute that would achieve this.

I checked similar questions here, but vast majority of them is about ckEditor and modifying its config, which is useless for this case.

Please, let me know if you know a solution to this issue.


pe:ckEditor 展示 - 未启用浏览器拼写检查明显 明显启用浏览器拼写检查

Have you tried defining your own custom config JS file like..

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here. For example:
    config.disableNativeSpellChecker = false;
};

And then calling the PFE customConfig option like...

<pe:ckEditor id="editor" 
             value="#{editorController.content}"
             customConfig="#{request.contextPath}/js/config/myconfig.js" />

Or as of PFE 8.0.1 there is a new attribute "disableNativeSpellChecker='false'" you can set on the pe:ckeditor itself

https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/763

Regarding the previous answer from @Melloware, I reported an issue. Based on it a new attribute to modify this behaviour has been made . See https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/763 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM