mobiledoc-kit icon indicating copy to clipboard operation
mobiledoc-kit copied to clipboard

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

Open sdhull opened this issue 6 years ago • 3 comments

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

sdhull avatar Nov 30 '18 21:11 sdhull

Not possible. Can you explain your use case?

henriqemalheiros avatar Dec 05 '18 17:12 henriqemalheiros

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.

sdhull avatar Dec 07 '18 01:12 sdhull

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.).

eduludi avatar Feb 11 '19 11:02 eduludi