I'm implementing 2.6.3 via PHP and have it configured for Flash content based on Sample 16.
When I write anything, "This is a test", and then select it and make it bold, the code becomes
However, when I backspace to the very beginning (presumably clearing styles), and start to type again, the text still appears bold, and the code inexplicably becomes
I clear it by switching to source and then deleting the content that way. This same problem occurs using italics and underline. Suggestions? Does a workaround or hotfix exist for this problem?
When I write anything, "This is a test", and then select it and make it bold, the code becomes
<b>This is a test</b><br />
However, when I backspace to the very beginning (presumably clearing styles), and start to type again, the text still appears bold, and the code inexplicably becomes
<span style="font-weight: bold;">This is another test</span><br />
I clear it by switching to source and then deleting the content that way. This same problem occurs using italics and underline. Suggestions? Does a workaround or hotfix exist for this problem?
Re: Style not cleared at start position
Hi,
Is there a fix or a workaround for the issue in this post? I see the same problem in Ckeditor 3.6.1 as well. FF & IE behaves one way, while safari and chrome behaves differently. I see in the demo (http://ckeditor.com/demo) as well. For example.
If I type "This is a test" in the editor, select the line and change the font style to "Comic Sans MS". Then place the cursor at the end of the line and start deleting using 'backspace'. When the character at the beginning of the line is deleted,
- In FF, the font style in the drop down (in the toolbar) remains "Comic sans MS". When I start typing again, the text is formatted with font "comic sans MS".
- In Safari & Chrome, when the character at the beginning of the line is deleted, the font in the drop-down changes to Arial, but when I start typing, the text is formatted with "Comic Sans MS".
Thanks
Anand
Re: Style not cleared at start position
Unfortunatelly, the problem here is that the text being edited is quite flat for us but the browser has to map it to the DOM tree structure. Every browser can do it in its own way.
See https://dev.ckeditor.com/ticket/7796#comment:4 and https://dev.ckeditor.com/ticket/7796#comment:8 for discussion on another symptom of this problem.
Re: Style not cleared at start position
What is more confusing is that in Safari and Chrome, the state of the buttons/selection (style, font etc) is different than the actual style applied to the text. In my example, when the last character in the line is deleted, the font in the drop-down box in the toolbar changes to "Arial". When you start typing some text again, the font selection in the toolbar remains "Arial", but the actual style applied is "Comic Sans". Is this a bug in ckeditor?
Anand
Re: Style not cleared at start position
I'm not sure what the last comment means as the link in this comment leads to gitweb.cksource.com which I can't connect to (host not found).
If the state of buttons/selection is different than the actual style being applied then it's definitely a bug.
BTW I think I wasn't quite precise in the previous post. By text<->DOM mapping I meant the mapping of navigation in text to navigation in DOM.
E.g. if we have
Re: Style not cleared at start position
Thanks
Anand