View Single Post
Old 01-27-2014, 01:21 AM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
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>
eschwartz is offline   Reply With Quote