bustle/mobiledoc-kit

Is it possible to pass a custom markup renderer to the editor?

Opened this issue · 3 comments

Wondering if it's possible to achieve something similar to markupElementRenderer (as supported by the dom renderer) but for the editor

Not possible. Can you explain your use case?

It's reasonable to want things to look the same in the editor & the renderer. I've worked around this issue for the moment however imagine a world in which all em tags are rendered with a special class. If they look that way when rendered, they should look that way in the editor as well.

In general, parity between how things look when rendering & when editing should be maintained as much as possible. It's strange to me that there's a way to customize how markups & sections rendered in one context but not the other.

This feature can help a lot to improve the editor. For example, I'm working with React and a custom renderer will allow to add the markup to edit link tags payload (href, title, etc.).