๐ Feature request
CKEditor 5
10.1.0 - Installed with npm / yarn
11.0.1 - Installed with npm / yarn
The possibility to disable browser native spellchecker exists.
The possibility to disable browser native spellchecker doesn't exist.
I wonder, if there are plugins for this kind of job.
Just for the record, the issue refers to the config.disableNativeSpellChecker option in CKEditor 4.x.
Anyway, I guess this would be easy to implement as this is just an attribute set on the EditableUIView#element.
A quck workaround for the issue is executing editor.ui.view.editable.element.setAttribute( 'spellcheck', false ); as soon as the editor is ready.
cc @Reinmar
I'm ok with adding a config option for that. But I wonder if we have more things for the "editable" that we should wrap with a namespace. The language of the content, the text direction, the title of the editable element, the prototype (element) to be used as the editable, what else?
I am not sure if it fits into "editable" but what about disabling contextMenu? Right now, CKEditor doesn't block the default browser right click menu, which makes impossible to listen to a right click action in inline editors.
See: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/migrate.html#configuration-options-compatibility-table -- browserContextMenuOnCtrl
if it doesn't belong here, I can also open a new issue about this
I don't think that we'll want to block the context menu (because of issues that it causes). At least not by default, which means that if this is going to be implemented, then it will be a separate plugin, not a configuration option. If you'd like to discuss this, let's do this in a separate ticket.
Has anyone found a way to do disable spell check for the ckeditor 5?
Did you see @oleq's comment?
A quck workaround for the issue is executing
editor.ui.view.editable.element.setAttribute( 'spellcheck', false );as soon as the editor is ready.
Did you see @oleq's comment?
A quck workaround for the issue is executing
editor.ui.view.editable.element.setAttribute( 'spellcheck', false );as soon as the editor is ready.
Since v12.0.0, use the following snippet instead:
```js
editor.editing.view.change( writer => {
writer.setAttribute( 'spellcheck', 'false', editor.editing.view.document.getRoot() );
} );
````
Most helpful comment
Since v12.0.0, use the following snippet instead:
```js
editor.editing.view.change( writer => {
writer.setAttribute( 'spellcheck', 'false', editor.editing.view.document.getRoot() );
} );
````