AI OnAI Off
We just stuck with ugly and one class for rules we add EditMenuName to.
table.w300-left {
EditMenuName: 300px left;
}
table.w300-right {
EditMenuName: 300px right;
} /* etc... */
Old post but I was struggling with the same problem. After digging in the different DLLs, finally finding the TinyMCEStyleFormatterHelper (in EPiServer.Editor.TinyMCE) I noticed that episerer does try to resolve multiple classes, just not in the correct CSS way.
The result you are after:
<p class="bold red">I am a bold red paragraph</p>
To style that using CSS:
p.bold.red { color: red; font-weight: bold; }
To generate that 'Bold red paragraph' item in the styles list, all you need to do is to separate your classes with a space in your editor.css. Unlogical but simple.
p.bold .red { EditMenuName: Bold red paragraph; }
I'm doing some customizations to the texteditor and have successfully added my a(the template plugin for TinyMce, which inserts snippets of html code into the editor.
Extending this I would like to use custom style formats which is implemented via Editor.css. This works - kind of.
Bot not in those cases I would like to use multiple classes to an element
In this case, only the first css class is set to the dropdown.
When debugging it is clear that "styleFormats" does not incorperate the second class.
Are there any suggestions or workarounds for this issue?!
Regards,