smugmug/yui-gallery — pull request #23 by bwg (2013-06-21 19:48:33+00:00)
Title: Editor-style for css based editing

styleWithCSS is a bucket of fail cross-browser so to get portable markup we need to do all the dom manipulation manually.

remove all the style/css api stuff from editor-base. it now just passes through directly to the contenteditable api (for the most part)

create a new editor-style extension that duckpunches a few methods in editor-base to do css based styling so you end up with `` instead of `` or `` in IE.

also added a `shrink` method to Y.Range which normalizes some of the fun ways browsers define a range (particularly when double clicking to select a range. its **madness**!).