I have five lines of text. One line is styled differently than the others.
If I select all the text (for example, by pressing Ctrl+A), and then choose a style from the YUIeditor then it only effects four of the lines.

In the HTML source code, the offensive line has a span tag around it, with the incorrect(incorrect because they should have been replaced) inline styles defined.

Should it be possible to select all the text and uniformly apply a style to it, or do you have to select each individual style and apply the new style to it?

Comments

twod’s picture

Status: Active » Closed (won't fix)

This behavior is not something Wysiwyg module rules over or affects, it's all up to the editor.
What you're seeing is expected depending on which style the "offensive" line has and which style is being applied. If the new style is a block style like Header 4 or similar, it'll most likely override other headers in the selected text. If the offensive line has a blue forecolor and you then assign all lines to be green, all lines will be green. But if the line was blue with a yellow background it'll stay that way. If you consider this a bug please report it to the YUI team

To demonstrate this isn't caused by Wysiwyg module, the same behavior can be observed on http://developer.yahoo.com/yui/examples/editor/toolbar_editor.html