Ckeditor5: The possibility to disable the native spell checking in editable is missing

Created on 1 Aug 2018  ยท  7Comments  ยท  Source: ckeditor/ckeditor5

๐Ÿ†• Feature request

๐Ÿ’ป Version of CKEditor

CKEditor 5
10.1.0 - Installed with npm / yarn
11.0.1 - Installed with npm / yarn

๐Ÿ“‹ Steps to reproduce

  1. Install CKEditor5
  2. Try to set disableNativeSpellChecker
  3. Fail

โœ… Expected result

The possibility to disable browser native spellchecker exists.

โŽ Actual result

The possibility to disable browser native spellchecker doesn't exist.

๐Ÿ“ƒ Other details that might be useful

I wonder, if there are plugins for this kind of job.

ui discussion feature

Most helpful comment

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() );
} );
````

All 7 comments

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() );
} );
````

Was this page helpful?
0 / 5 - 0 ratings

Related issues

metalelf0 picture metalelf0  ยท  3Comments

MCMicS picture MCMicS  ยท  3Comments

hybridpicker picture hybridpicker  ยท  3Comments

PaulParker picture PaulParker  ยท  3Comments

msamsel picture msamsel  ยท  3Comments