Had to build a button for my client that allowed them to add title tags to URL's with a javascript onclick="return false" so they could use the title to provide more info on terms with a mouse over. Others may find it useful, not sure where to share it, so hopefully, I'm not too incorrect by posting it here.
I called the button "Add Mouseover Text" here's the code for it:
php:
$imce_url = function_exists('imce_menu') && user_access('access imce') ? url('imce/browse') : '';
return "js:
var B = eDefBrowseButton('$imce_url', 'attr_href', 'Browse', 'link');
var form = [
{name: 'title', title: 'Mouseover text'},
{name: 'href', title: 'Link Location', type: 'select', options: {'#" onclick="return false': 'Self'}}
];
eDefTagDialog('a', form, 'Add Mouseover Text', 'OK');
";
Hopefully someone will find this helpful.
Comments
Comment #1
bonked commentedComment #2
Anonymous (not verified) commentedVERY FINE
Comment #3
dsbirute commentedwhere is new button ? or new code ?
Comment #4
TapSkill commentedThis would be better if it was also added as an option to the default "Add URL" dialog. I would like to see it added in bbcode, as well. Anyway, thanks for sharing.
Comment #5
dsbirute commentedi want 'colour code' for text in bueditor ?
Comment #6
ufku commented