View Single Post
Old 02-25-2014, 05:22 PM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
The operation is not insert tags, it is change tags. What it does is find the first surrounding block level tag and change it to the specified tag. In your case the first surrounding block level tag is body, which cannot be changed, so instead a tag is inserted inside body.
I understand

Would it be possible to determine if there is text selected (#chars > 0) and if so then wrap the selected text in tags?
phossler is offline   Reply With Quote