Posted by bonked on April 4, 2008 at 11:52pm
Jump to:
| Project: | BUEditor |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
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
#1
#2
VERY FINE ,, IT'S GOOD !!!
#3
where is new button ? or new code ?
#4
This 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.
#5
i want 'colour code' for text in bueditor ?
#6