Coder Social home page Coder Social logo

What to do with execCommand? about editing HOT 4 CLOSED

w3c avatar w3c commented on August 24, 2024
What to do with execCommand?

from editing.

Comments (4)

fredck avatar fredck commented on August 24, 2024

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.

from editing.

 avatar commented on August 24, 2024

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?)

from editing.

johanneswilm avatar johanneswilm commented on August 24, 2024

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

from editing.

johanneswilm avatar johanneswilm commented on August 24, 2024

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."

from editing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.