ckeditor4
ckeditor4 copied to clipboard
Styles are not preserved when typing text on the end of styled line after changing font style
Are you reporting a feature or a bug?
Bug
Check if the issue is already reported
None.
Provide detailed reproduction steps (if any)
The easiest way is to follow the test scenario in /tests/plugins/font/manual/reapplystyles
, however it can be easily reproduced on http://sdk.ckeditor.com/samples/fullpreset.html.
- Go to http://sdk.ckeditor.com/samples/fullpreset.html.
- Replace editor content with
<p><span style="font-family:Georgia,serif"><span style="font-size:24px"><strong><em>This is styled text</em></strong></span></span></p>
. - Place cursor on the end of the line.
- Here you should notice that style drop-downs does not reflect text styling.
- Change font size or font family.
- Type something.
Expected result
Typed text is styled same as the text before with only one changed styled (font size/family).
Actual result
Typed text is only styled with one selected style (font size/family).
Other details
If step 4. Change font size or font family. is skipped and text is typed without any changes it works fine.
- Browser: Edge (Microsoft EdgeHTML 14.14393; Microsoft EdgeHTML 14.14393)
- OS: Windows 10
- CKEditor version: 4.7.1
- Installed CKEditor plugins: Full preset
Also reproducible in IE11.
CKEditor is an awesome tool, thank you! It would be highly appreciated when this behaviour would be changed and the style would be kept the same when making a new paragraph. the current behaviour resets style and font size when making a new paragraph.
I can confirm this is also present in Firefox! I may check out the sources and have a look, if i can fix it myself, but i wont guarantee anything.
Confirmed, existing in Chrome. My client gets very upset when this happens. Please see about a fix. Thank you.