TinyMCE:Configuration/merge styles invalid parents
From Moxiecode Documentation Wiki
[edit]
Option: merge_styles_invalid_parents
This option enables you to specify a reg exp with elements you want to exclude from parent merging. By default style information are attached to the parent element of a selection if all children/the whole element contents is selected. For example if you select a whole strong element and select a font size, the font-size style will be applied to the strong element and not with a wrapping style element. But sometimes you want to force a span element, this is where this option comes in to place. This option is set to nothing by default and applies to the font size/face/color and class drop drown lists.
[edit]
Example of usage of the merge_styles_invalid_parents option:
tinyMCE.init({
...
// Excludes table cells and strong elements from any parent merge operation
merge_styles_invalid_parents : "^TD|STRONG$"
});
