Opened 8 years ago

Last modified 8 years ago

#8872 confirmed Bug

Native spellchecker clears markup in chrome

Reported by: Pieter Fibbe Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1.1
Keywords: Chrome Cc:

Description

In chrome (on windows) the markup is cleared when using the native spellchecker. Bug found in version 3.6.2 and 3.6.3.

To reproduce:

  • Go to demo in ckeditor.com
  • through the javasscript console make a new editor with native spellchecker enabled:
    CKEDITOR.config.disableNativeSpellChecker = false;
    CKEDITOR.appendTo('demoInside', { height: 300 });
    
  • in source view paste the following:
    <span style="font-size:22px;">This line contains a missepled word<br />
    <br />
    This is the second line</span><br />
    

CTRL-right click the misspelled word ('missepled') and choose a suggestion. You will see the 2nd line come up a little already. Go the the end of the line (press "END") en press ENTER and type some new words. The markup off the new words is lost.

Change History (2)

comment:1 Changed 8 years ago by Pieter Fibbe

Hopefully this bug can be handled with priority since the problem occurs often.

comment:2 Changed 8 years ago by Jakub Ś

Keywords: Chrome added
Status: newconfirmed
Version: 3.6.23.1.1

Seems that native spell checker in Chrome is breaking splitting spans.
This behavior can be reproduced from CKEditor 3.1.1 in Chrome only.

To reproduce you can also paste the below in config.js:

config.enterMode = CKEDITOR.ENTER_BR;	
config.disableNativeSpellChecker = false;

Paste the following in Content area:

<span style="font-size:22px;">This line contains a missepled word<br />
<br />
This is the second line</span><br />

and use CRTL + right-click as config.removePlugins = 'contextmenu'; doesn't always work in older versions of CKEditor.


I'm not sure if that matters but in CKEditor 3.1 with the above TC the CRTL+right-click on misspelled word was inserting &nbsp; breaking the spans and even breaking the surrounding paragraphs.

3.1
<p>
	<span style="font-size:22px;">This line contains a missep</span>&nbsp;<span style="font-size: 22px; ">led word scho</span>&nbsp;<span style="font-size: 22px; ">oool</span></p>
<p>
	<span style="font-size:22px;"><br />
	This is the second line</span></p>
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy