how to use default styles/formats in rich text editor?
Dear,
We are building an online tool to create presentations. Each presentation has default settings like default Header style, Body style etc (fontname, fontsize, color). The aim is to create a rich text editor which handles those default styles - the user can use multiple styles in the same textbox. The trick is that all the textboxes has to update itself when the default styles are updated by a global style editor.
I have been looking for examples how to use the style property in TextFlow, FlowElement. I also checkted the hostFormat etc, but I found nothing in this topic how to use styles. I also checked something like CSSFormatResolver with no success.
My target is to assign a TextLayoutFormat to an element like ParagraphElement, then let the element updates itself if the particular TextLayoutFormat is updated which happens by changing the default style. I would create three TextLayoutFormat for each style like Header, Body, etc.
Is there any way to do that? Suggestions?
Thanks,
Benjamin
