|
|
|
|
|
|
|
|
|
#30 | |
|
Certified Nice Person
|
Quote:
Quicktags.js is used for writing/editing posts when you are NOT using that crappy Visual Rich Editor, but I'm unsure if it's used if you are using the VRE.Open - wp-includes/js/quicktags.js Look for (pretty much at the end of the file)- Code:
function edInsertLink(myField, i, defaultValue) {
if (!defaultValue) {
defaultValue = 'http://';
}
if (!edCheckOpenTags(i)) {
var URL = prompt('Enter the URL' ,defaultValue);
if (URL) {
edButtons[i].tagStart = '<a href="' + URL + '">';
edInsertTag(myField, i);
}
}
else {
edInsertTag(myField, i);
}
}
edButtons[i].tagStart = '<a href="' + URL + '">'; to- edButtons[i].tagStart = '<a href="' + URL + '" rel="tag">'; Coincidentally, this is also where you could add a mouseover into your anchors, if you wished, because that is the code that inserts the linking structure when you hit the "link" button.
__________________
Click here to purchase a bridge I'm selling. |
|
|
|
|
|
|