Kovid -- thanks
Quote:
Originally Posted by kovidgoyal
There is no way to know that a tag is empty, since an empty tag could be styled with css to have a fixed width/height or border or background color.
|
That's more advanced than I was thinking (maybe I was anyway).
It was just that I was using the new editor window dropdown to select [H1], etc. and then tried the [B] and other buttons.
My use of 'empty' a little simplistic: if there was 0 length text selected (i.e. just the insertion point) then I called it empty since I didn't see any value in at least the 'standard' format tags such as<b></b>
When there's a capability to store F&R strings, I can come up with some RegEx (or at least I think I can) to handle things like that