|
|
|
|
|
|
|
![]() |
#1 |
That which does not kill us, will try, try again.
|
Could someone hit me up later on icq about what needs to be changed in the quicktags.js to make the tagging work automatically? (Or maybe it's worth posting here for others too.)
Working on new mantra: "If it's not worth automating, it's not worth doing again."
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
![]() |
![]() |
![]() |
#2 | |
Certified Nice Person
|
Quote:
![]() 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. |
|
![]() |
![]() |
![]() |
#3 | |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
Quote:
Code:
function edInsertLink(myField, i, defaultValue) { if (!defaultValue) { defaultValue = 'http://'; } if (!edCheckOpenTags(i)) { var URL = prompt('Enter the URL' ,defaultValue); var REL = prompt('Enter the rel' ,'external'); if (URL) { edButtons[i].tagStart = '<a href="' + URL + '" rel="' + REL + '">'; edInsertTag(myField, i); } } else { edInsertTag(myField, i); } }
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare. |
|
![]() |
![]() |
![]() |
|
|