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

Isn't execCommand obsolete? #199

Open
mkmaker opened this issue Apr 18, 2020 · 11 comments
Open

Isn't execCommand obsolete? #199

mkmaker opened this issue Apr 18, 2020 · 11 comments

Comments

@mkmaker
Copy link

@mkmaker mkmaker commented Apr 18, 2020

https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand

Mozilla docs says:

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

@jaredreich
Copy link
Owner

@jaredreich jaredreich commented Apr 27, 2020

😢

@mkmaker
Copy link
Author

@mkmaker mkmaker commented Apr 27, 2020

What does this suppose to mean? 🤔

@jaredreich
Copy link
Owner

@jaredreich jaredreich commented Apr 27, 2020

It means that's unfortunate, since this library makes ** heavy ** usage of execCommand and there's no existing alternative. Do you have any ideas?

@mkmaker
Copy link
Author

@mkmaker mkmaker commented Apr 27, 2020

Nope :( and I am using it in my upcoming project. Might have to remove it ☹️

@jaredreich
Copy link
Owner

@jaredreich jaredreich commented Apr 27, 2020

FYI, almost all other WYSIWYG editors will also be using execCommand

@danleyb2
Copy link

@danleyb2 danleyb2 commented Apr 28, 2020

So sad.
I was using LitElement to create a wrapper around a WYSIWYG editor.
Pell was the only editor that worked with shadow DOM because of it's use of execCommand

@VaelVictus
Copy link

@VaelVictus VaelVictus commented Apr 28, 2020

I'd be surprised if this was removed any time soon. Are you still working on Pell, @jaredreich ?

@jaredreich
Copy link
Owner

@jaredreich jaredreich commented Apr 28, 2020

@danleyb2 I agree with VaelVictus, I don't think execCommand will be going anywhere. There's no alternatives available for contenteditable and it's widely used in almost all wysiwyg editors.

@jaredreich
Copy link
Owner

@jaredreich jaredreich commented Apr 28, 2020

@VaelVictus I have been actually, but unfortunately it's been going extremely slow due to work and life stuff... you know. I'd like to get ramped up asap and solve all the issues and release v2.

@ShahrukhAhmed89
Copy link

@ShahrukhAhmed89 ShahrukhAhmed89 commented Jul 17, 2020

Looking at the codebase of Squire, TinyMCE, Medium Editor & Trix and all use execCommand at some capacity. Others that don't are just too bulky for my taste.

@VaelVictus
Copy link

@VaelVictus VaelVictus commented Sep 21, 2020

@jaredreich Are you still interested in a v2? There are some nice pull requests you might want to review for v1.

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

Successfully merging a pull request may close this issue.

None yet
5 participants