[Webkit-unassigned] [Bug 15256] Impossible to place an editable selection inside empty elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 7 09:49:28 PDT 2010


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





--- Comment #23 from Ryosuke Niwa <rniwa at webkit.org>  2010-09-07 09:49:27 PST ---
(In reply to comment #22)
> (In reply to comment #20)
> > Could you explain how this bug is impacting CKEditor?  It seems like you're trying to apply styles to a selection?
> 
> That's exactly the problem. The detail is that we're talking about a "collapsed" selection. I mean, just have the caret blinking inside the editor, hit CTRL+B for Bold (bug: nothing is happening at this point) and type some text. There will be no style applied.

Could you call document.execCommand('bold', false, null) instead of manually adding bold?  We have typing style internally, and bold should be preserved when user starts typing.  I bet other browsers would support this as well.

We also have applyStyle command internally, which allows you to apply arbitrary CSS style on the selected region.  It's used by bold, italic, etc... as well as for style preservation.  We could expose either if that'll benefit you and other web developers.

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