|
In .hthtml we can use "stylePrefix" directive to make only certain styles in the xHTML editor available to a content manager. For example, the following directive
| CODE | 'stylePrefix' => '.my' |
should make all styles with names starting with ".my" appear in the xHTML "Styles" listbox. However, imagine if I define such rules:
| CODE | .myStyle { font-size: 80%; } .myStyle td { padding:10px; vertical-align:top; } .myStyle p { margin:0px; } |
quite realistic situation. But the result might be puzzling - in the style list of the xHTML editor the following "styles" will be shown:
| CODE | myStyle myStyle TD myStyle P |
So in fact all the rules/cascades will be displayed. I find this quite confusing.
Before this bug is fixed by noble SiteSupra support, I just wanted to post a simple workaround I've occasionally found for this issue. Just add "body" for all the rules you want to hide from that xHTML style listbox:
| CODE | .myStyle { font-size: 80%; } body .myStyle td { padding:10px; vertical-align:top; } body .myStyle p { margin:0px; } |
CSS will still work fine, but "myStyle TD" and "myStyle P" disappear from the style list :)
just my 2 cents...
regards, -=gosh=-
|