I need a button where you can select text, then when you click the button it wraps some html tag arround the selection. Simple as that, in my case it would be a <div> tag. I tried modifying the <abbr> tag plugin, but that turned out bad since I could only work off other scripts to figure out how to make it register as only a button and not a dialog. The plugin should be really easy to write, taking parts from "<abbr> - tag" plugin which preserve the html, and modifying it to have no extra input, as the tags are static(user doesn't determine the tags at runtime).
Help? Possibly someone else want to write it?
Help? Possibly someone else want to write it?
RE: Just Wraping Selection With A HTML Tag?!