nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
16.91k stars 1.72k forks source link

customHTMLRenderer don't work on wysiwyg mode? #3196

Open willGabrielPereira opened 8 months ago

willGabrielPereira commented 8 months ago

Summary

I'm using the editor only as wysiwyg editor, without markdown vertical. In some of my uses, i need to add custom variables like {{client.name}} that had to be shown as 'Cliente: Nome'. I've tryed using customHTMLRenderer to do that, but it only works when showing as markdown.

I have a sidebar variables that the user can click and it add to the document. I'd like that the wysiwyg editor, was shown like the third screenshot

Screenshots

image image image

Version

latest "^3.2.2"

p-try commented 7 months ago

I ran into the same problem and found this: https://github.com/nhn/tui.editor/issues/1991 Apparently, the widget functionality is better suited for this task.