New button I had to build that others may find useful
bonked - April 4, 2008 - 23:52
| Project: | BUEditor |
| Version: | 5.x-1.1 |
| Component: | User interface |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
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.

#1
#2
VERY FINE ,, IT'S GOOD !!!