Closed edwardjiawei closed 7 years ago
Hi @edwardjiawei, it doesn't work because the command: 'tlb'
in RichTextEditor.add
it's not GrapesJS's Command but the one from execCommand
's API (eg. 'fontSize', 'insertHTML', etc.) so currently, you can't attach custom behaviors to RTE.
I close it because I don't plan to support the current RTE anymore, instead, I'll replace it with another one which will support also custom actions (added to Roadmap)
Hopefully support some RTE with more permissive license like MIT or BSD. I guess some companies might even don't choose BSD. CKEditor integration are quite easy, but the license might not be good for some companies.
Thanks anyway.
CKEditor is too much big for being the built-in solution (but you can find it as a plugin if you want to use it) I'll probably go with https://github.com/jaredreich/pell this is all its code https://github.com/jaredreich/pell/blob/master/src/pell.js and this is all I need
That really lightweight and permissive license.
You know as nowadays the open source world, most people like me always rely on RTE plugins like insertHTML, Emoji, Unicode, PlaceHolder/Token (Server Side Templateing) that will useful for hobby project and work. All that use case are mostly align with grapes.js use case, as most personal and professional project will evaluate how easy to integrate with RTE.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Do my API call correctly, want to add a RTE with custom function to add a link/open new windows/open modal:
Command work for fontSize but the dropdown are not aligned and show the option value Command not work for insertHTML. Function not working (Intended/Not a Features)
http://grapesjs.com/demo.html
I think even command not working to add specific hardcoded HTML