[CKEditor Dev] #10977: Correct spelling mistake with native spell checker does not trigger change event

17 views
Skip to first unread message

CKEditor

unread,
Oct 10, 2013, 7:39:56 AM10/10/13
to ckeditor...@googlegroups.com
#10977: Correct spelling mistake with native spell checker does not trigger change
event
------------------------+------------------------------------
Reporter: OliverJAsh | Type: Bug
Status: new | Priority: Normal
Component: General | Version: 4.2.2 (GitHub - master)
Keywords: |
------------------------+------------------------------------
If I correct a spelling mistake inside a CKEditor instance using the
native spell checker, the `change` event is not triggered.

--
Ticket URL: <http://dev.ckeditor.com/ticket/10977>
CKEditor <http://ckeditor.com/>
The text editor for the Internet

CKEditor

unread,
Oct 10, 2013, 10:54:42 AM10/10/13
to ckeditor...@googlegroups.com
#10977: Correct spelling mistake with native spell checker does not trigger change
event
-------------------------+-------------------------------------
Reporter: OliverJAsh | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:

Component: General | Version: 4.2.2 (GitHub - master)
Resolution: | Keywords:
-------------------------+-------------------------------------

Comment (by j.swiderski):

I'm not sure if such spell checked generates any event we can hook into.
In such case this is a won't fix issue.

--
Ticket URL: <http://dev.ckeditor.com/ticket/10977#comment:1>

CKEditor

unread,
Oct 10, 2013, 10:56:15 AM10/10/13
to ckeditor...@googlegroups.com
#10977: Correct spelling mistake with native spell checker does not trigger change
event
-------------------------+-------------------------------------
Reporter: OliverJAsh | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:

Component: General | Version: 4.2.2 (GitHub - master)
Resolution: | Keywords:
-------------------------+-------------------------------------

Comment (by OliverJAsh):

Could you look into it?

--
Ticket URL: <http://dev.ckeditor.com/ticket/10977#comment:2>

CKEditor

unread,
Oct 10, 2013, 12:08:22 PM10/10/13
to ckeditor...@googlegroups.com
#10977: Correct spelling mistake with native spell checker does not trigger change
event
-------------------------+-----------------------
Reporter: OliverJAsh | Owner:
Type: Bug | Status: confirmed

Priority: Normal | Milestone:
Component: General | Version: 4.2
Resolution: | Keywords:
-------------------------+-----------------------
Changes (by Reinmar):

* status: new => confirmed
* version: 4.2.2 (GitHub - master) => 4.2


Comment:

In my opinion the issue is wider. We do not support native spell checkers
for a reason - we cannot hook into them. That's why our undo manager
(which is responsible for firing 'change' event) does not know that
something's changed.

However, since the native 'input' event was introduced, most likely it
will be possible to listen on changes done by native spell checker as well
as on changes coming from other sources (e.g. drag&drop for which we'll
blind too iirc). I was postulating that undo manager should listen on
'input' and there's a chance that we'll do such change. It not a quick fix
though.

Anyway, this issue can be fixed, but it just has to wait for changes undo
manager.

--
Ticket URL: <http://dev.ckeditor.com/ticket/10977#comment:3>

CKEditor

unread,
Jan 31, 2017, 12:01:58 PM1/31/17
to ckeditor...@googlegroups.com
#10977: Correct spelling mistake with native spell checker does not trigger change
event
-------------------------+-----------------------
Reporter: OliverJAsh | Owner:
Type: Bug | Status: confirmed
Priority: Normal | Milestone:
Component: General | Version: 4.2
Resolution: | Keywords:
-------------------------+-----------------------

Comment (by j.swiderski):

#16832 was marked as duplicate.

--
Ticket URL: <http://dev.ckeditor.com/ticket/10977#comment:4>

CKEditor

unread,
Apr 13, 2017, 3:49:10 AM4/13/17
to ckeditor...@googlegroups.com
#10977: Correct spelling mistake with native spell checker does not trigger change
event
-------------------------+-----------------------
Reporter: OliverJAsh | Owner:
Type: Bug | Status: confirmed
Priority: Normal | Milestone:
Component: General | Version: 4.2
Resolution: | Keywords:
-------------------------+-----------------------

Comment (by jtermaat):

This issue still seems to be present in CKEditor. Is it already possible
to fix this?

--
Ticket URL: <http://dev.ckeditor.com/ticket/10977#comment:5>

CKEditor

unread,
Jul 4, 2017, 9:53:49 AM7/4/17
to ckeditor...@googlegroups.com
#10977: Correct spelling mistake with native spell checker does not trigger change
event
-------------------------+--------------------
Reporter: OliverJAsh | Owner:
Type: Bug | Status: closed

Priority: Normal | Milestone:
Component: General | Version: 4.2
Resolution: fixed | Keywords:
-------------------------+--------------------
Changes (by j.swiderski):

* status: confirmed => closed
* resolution: => fixed


Comment:

From what I have checked, native spell checkers in Firefox, Chrome and
Safari now fire input event. What is more correcting a word, in CKEditor
with native spell checker, updates the undo manager and it is possible to
revert that change with {{{Undo}}} button or {{{Ctrl+Z}}}

To test this it is enough to enable editor with naive spell checker
(logger in example below is just to show that input event is fired), type
few misspell words e.g. {{{I'm back on mondayy}}}, correct them and
undo/redo them.

{{{
var editor = CKEDITOR.replace( 'editor1', {
disableNativeSpellChecker : false
});
editor.on( 'pluginsLoaded', function( evt )
{
editor.on( 'contentDom', function( e )
{
var editable = editor.editable();
var doc = editor.document;
editable.attachListener( doc, 'input', function( event )
{
console.log('here');
}, 1 );
});
});
}}}

Seems the issue is fixed.

--
Ticket URL: <http://dev.ckeditor.com/ticket/10977#comment:6>

Reply all
Reply to author
Forward
0 new messages