4 ms·
As i see, this editor only returns the blocks for you. How to render is upon you instead ? Or i miss something important here ?
by revskill 8y ago
As i see, this editor only returns the blocks for you. How to render is upon you instead ? Or i miss something important here ?
- hombre_fatal 8y agoImplementing render(blocks) -> html is trivial. The hard part I'm referring to is making the WYSIWYG editor. Contenteditable takes things a step further by having you (editor + plugin implementors) intercept every native event and then reimplement that logic yourself, especially between click, hover, and touch (mobile) and browser differences between the events. Since you said you were going to try it in your current project, I just wanted to warn you. I learned this the hard way when using Facebook's Draft.js on a simple chat box input. We moved to either ckeditor or tinymce iirc because support was more polished all around.