Opened 9 years ago

Last modified 9 years ago

#14346 confirmed Bug

native Browser Spellchecking not working when pressing return without space

Reported by: Andreas Soroko Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.6
Keywords: spellcheck firefox return space Cc:

Description

Steps to reproduce

  1. Download basic package of ckeditor 4.5.6
  2. Download firefox 43.0.4
  3. Enable spellchecking in firefox
  4. modify config.js and add "config.disableNativeSpellChecker = false;"
  5. open samples/index.html
  6. Add some text like "ABCDEFGHIJK" and press return

Expected result

The word "ABCDEFGHIJK" will be underlined red

Actual result

In Firefox 43.0.4 the red underlining only appears if you press space, tab or any other key expect return In Chrome 48.0.2564.82 m it works as expected.

Other details (browser, OS, CKEditor version, installed plugins)

Windows 10 (but I think it is os independent) CKEDITOR 4.5.6 Basic package none special plugin

Further Information

I assume this is a ckeditor problem because I tested the behaviour of firefox with the attached file and it works just great. I think when pressing return in firefox the keystroke is not reaching firefox.

If you need any further information, please ask

Attachments (3)

iframe.html (249 bytes) - added by Andreas Soroko 9 years ago.
index.html (293 bytes) - added by Andreas Soroko 9 years ago.
plugin_enterkey_plugin.js (19.2 KB) - added by Andreas Soroko 9 years ago.
Modified enterkey plugin which works

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by Andreas Soroko

Attachment: iframe.html added

Changed 9 years ago by Andreas Soroko

Attachment: index.html added

comment:1 Changed 9 years ago by Andreas Soroko

Keywords: spellcheck firefox return space added

comment:2 Changed 9 years ago by Andreas Soroko

One further Information: I did tested the described behaviour in source code and disabled the "enterkey" plugin. After disabling it the spellchecking behaviour is as expected.

I also played around with the enterkey plugin itself. When adding:

if ( CKEDITOR.env.gecko) {
var originalText = block.getText();
block.setText(originalText);
}

in the enterBlock function everything works, but of course this is a very dirty solution. Any other ideas?

Last edited 9 years ago by Andreas Soroko (previous) (diff)

Changed 9 years ago by Andreas Soroko

Attachment: plugin_enterkey_plugin.js added

Modified enterkey plugin which works

comment:3 Changed 9 years ago by kkrzton

Status: newconfirmed

It actually happens also in Chrome:

  1. Add some text like "ABCDEFGHIJK" and press return
    • Text has red underline
  2. Press backspace 2 times (caret gets back to previous line and K gets deleted)
    • Red underline disappears after deleting last character

If you press space, red underline will appear but if you press return instead, there will be no underline like in a previous case.

With enterkey plugin disabled, issue doesn't occur so as mentioned above it is connected to this plugin.

Tested in Firefox 43.0.4 and Chrome 47.0.2526.106 (64-bit), Ubuntu.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy