AI OnAI Off
Hi Erik,
The following worked for me (although, to be honest, I wasn't really expecting it to!):
config.Default()
.StyleFormats(new
{
title = "Alignment",
items = new[]
{
new {title = "Left", block = "p", styles = new Dictionary<string, string> {{"text-align", "left"}}},
new {title = "Center", block = "p", styles = new Dictionary<string, string> {{"text-align", "center"}}},
}
});
Hi,
So the new tinymce editor, conveniently, all the examples of setting styles using anonymous objects in C# is using the example "color", but what do I do if I want to set another style, say text-align?
This will obviosuly not compile:
I have tried various different strings with no success, like styles = "text-align: center". I am guessing there is one, but I am just not able to guess it.
Anyone have an idea how to achieve this?