Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sdhull opened this issue Nov 30, 2018 · 3 comments
Open

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

sdhull opened this issue Nov 30, 2018 · 3 comments

Comments

@sdhull
Copy link

sdhull commented Nov 30, 2018

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

@henriqemalheiros
Copy link

Not possible. Can you explain your use case?

@sdhull
Copy link
Author

sdhull commented Dec 7, 2018

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.

@eduludi
Copy link

eduludi commented Feb 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants