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

What to do with execCommand? #53

Closed
johanneswilm opened this issue May 27, 2015 · 4 comments
Closed

What to do with execCommand? #53

johanneswilm opened this issue May 27, 2015 · 4 comments

Comments

@johanneswilm
Copy link
Contributor

Currently the proposals we have are:

  1. Spec it and have it only work within an editing host (as now).
  2. Spec it and have it work independently of editing hosts.
  3. Spec it, but under a different name, and make it work only within an editing host.
  4. Spec it, but under a different name, and make it work independently of editing hosts.
  5. Spec only those parts that are already inter-operable, remove the rest.
  6. Deprecate it and don't spec it.
  7. Deprecate it and spec it.
@johanneswilm johanneswilm changed the title What to do with execCommand What to do with execCommand? May 27, 2015
@fredck
Copy link

fredck commented May 28, 2015

When it comes to advanced browser based editing solutions like CKEditor, execCommand is irrelevant. It is not used at all. So I assume that developers of such solutions have zero interest on spec'ing it (option 6). That's in fact my personal vote.

There may be others instead which could be interested on such API though for cheap editing implementations. I'm appositely not taking them in consideration in my personal vote because I want it to represent a group with specific needs, but it would be wonderful to have them leaving their voice here.

@ghost
Copy link

ghost commented Jun 1, 2015

6 seems fine.

Even if implemented consistently across browsers, execCommand will not suffice for anything beyond simple ‘bold/italic’. What’s worse, execCommand is by definition too abstract and, used alongside more complex markup, will inevitably become dangerous (<span style="font-weight: normal; color: black">, anyone?)

@johanneswilm
Copy link
Contributor Author

Agreed. I propose that at the F2F meeting in Paris, we go for 6 (deprecate it; don't spec it).

@johanneswilm
Copy link
Contributor Author

We went for something a la "We will not spend much time on writing the spec, the browsers do not respect the spec, we keep the notice at the top, but it will likely stay around for another 100 years and will be specced some time in the future."

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

No branches or pull requests

2 participants