Opened 13 years ago
Last modified 13 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 13 years ago by
comment:2 Changed 13 years ago by
Keywords: | Chrome added |
---|---|
Status: | new → confirmed |
Version: | 3.6.2 → 3.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
breaking the spans and even breaking the surrounding paragraphs.
3.1 <p> <span style="font-size:22px;">This line contains a missep</span> <span style="font-size: 22px; ">led word scho</span> <span style="font-size: 22px; ">oool</span></p> <p> <span style="font-size:22px;"><br /> This is the second line</span></p>
Hopefully this bug can be handled with priority since the problem occurs often.