Hey all!
I've been reading up on editting my quicktags and have made a little success, however I've hit a roadblock and would appreciate some help.
I would like to modify the link button in quicktags to append target="_blank" in 'a href' statements in my posts because I want any links I include to open to new windows. I've been doing it manually, but it's a pain and my efforts to do it in quicktags.js so far have been fruitless.
I made the following change and it did not work so I'm guessing that this is either incorrect or not the only place to make this change:
if (!edCheckOpenTags(i)) {
var URL = prompt('Enter the URL' ,defaultValue);
if (URL) {
edButtons[i].tagStart = '<a href="' + URL + '" target="_blank">';
// Added target - 04.03.2005.n
edInsertTag(myField, i);
}
}
Has anyone done this, and if so ... how?
Thanks!