[QUESTION] Do you have plans to remove dependency on Document.execCommand in RTE?
Question
I noticed that in https://github.com/artf/grapesjs/issues/74 when the move to the Pell based editor is listed it's use of Document.execCommand was mentioned as a liability. I see now that according to https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand it's consider Obsolete, so we were wondering if you have plans to switch to a new editor?
Answers (3)
I'd like to avoid putting external libraries in the core library (indeed we still have to extract some of them). If you need quilljs you can try to add it as a custom RTE. I close it as there is no real alternative to the native API (unfortunately)
so we were wondering if you have plans to switch to a new editor?
New editor? What would be the alternative?
What additional information are you looking for? I did a quick google and found https://quilljs.com/ doing a quick search of it's source on github, the only use of execCommand I see is https://github.com/quilljs/quill/blob/fd400525d551315b6fa9a4d4783e1c7dbad57827/formats/image.js#L32 which sounds like minimal impact.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2877
[Bug] Obsolete tag used on RTE
Hi! The strikethrough command on RTE uses the obsolete tag <strike>:This feature is obsolete. Although it may still work in some browsers,...
Issue #3413
QUESTION: Adding inline scripts and updating old events
In that case, I suggest you access the document of the iframe and to append manually the inline script (to get the document use editor.Canv...
Issue #1199
[Question] : Can we remove links?
I tried to add a button to remove links but i couldn't find a way. I can add them in a text with the RTE button and edit them by double-cli...
Issue #2101
selected content parent tag remove
https://github.com/artf/grapesjs/issues/906#issuecomment-381403858 I need to remove the html content from editor.getSelected(). Now I'm usi...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.