I think perhaps embryo means do as Sigil does -- wrap the currently selected text with the tags, and rely on the user knowing what he is doing.
Sigil way:
For the alignment toolbar, the first surrounding tag that accepts text-align is the one that gets the attribute, but the heading/formatting toolbars (h1-6, p, strike, sub, sup, b, u, i) will only apply to the actual text selected.
Book view will allow you to change strictly between p, h1-6 applying to the entire p/h1-6 around the currently selected text. But we don't want any Book view anyway.
I agree with embryo, it would be nice to be able to have the most commonly used tags in a toolbar that just follows the idea of regex replace: <$tag>\1</$tag>
|