More Intuitive Quicktags
Since my latest upgrade to 3.16, I haven't bothered to implement my quicktags hack so I was left with the default quicktags. Out of habit, I hit the quicktags to create the necessary HTML then enter my content, however with the default quicktags, you have to first select the text then click the quicktag. I decided to change that. Open up mt.js and find the formatStr function
function formatStr (e, v) {
and on the third line of this function delete this
function formatStr (e, v) {
if (!str) return;
That's it, now when you click the quicktag, it'll create the opening and closing tag.

Leave a comment