[Webkit-unassigned] [Bug 56623] Consider adding an execCommand to apply an arbitrary set of CSS styles.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 18 11:41:01 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=56623





--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org>  2011-08-18 11:41:00 PST ---
(In reply to comment #1)
> This is extremely nontrivial in practice.  CSS styles that don't behave in a very particular way need a whole bunch of special-casing to work properly with execCommand().  There's unique special-case code for every command in my spec except bold, fontName, and italic, I think.  There are probably only one or two additional properties that would make any sense without special-cases, like font-variant.

Agreed.  Properties like float, display, position, etc... are extremely painful to deal with.

> We do definitely need to make execCommand() more extensible going forward, once the current implementation is settled down a bit more.  But it's not likely to be a matter of just passing the name and value of a CSS property, more like the author will have to write a few callbacks.

I had a lengthly discussion with authors of CKEditor and TinyMCE about this, and it appears that we can provide some API to make their life easier by letting them wrap nodes, split tree, etc... so that authors can implement those features themselves but without having to re-implement all algorithms in your spec.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list