On 22 March 2011 10:54, Tim Down <[email protected]> wrote: > Two things: first, I've implemented this in Rangy, my cross-browser > range and selection library (http://code.google.com/p/rangy/). There's > a module that applies/removes a CSS class to a range by surrounding > and removing spans around text nodes within the range > (http://code.google.com/p/rangy/wiki/CSSClassApplierModule), and I'm > working on a more generic module that will provide an alternative to > document.execCommand() (demo here, using an example "bold" command).
Oops, I missed off the link here: http://rangy.googlecode.com/svn/trunk/demos/bold.html Tim -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
