Project:BUEditor
Version:6.x-1.2
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

After upgrading to D6 I get this error when I try to push the button for opening the hyperlink-inserter-button:
ReferenceError: eDefFileDialog is not defined

What can I do to fix this?

Comments

#1

Status:active» fixed

There is no eDefFileDialog in Bueeditor d6. You have old code, need to update.

Use this:

php:
$imce_url = function_exists('imce_access') && imce_access() ? url('imce') : '';

return "js:
var B = eDefBrowseButton('$imce_url', 'attr_src', 'Browse', 'image');
var form = [
{name: 'src', title: 'Image URL', suffix: B},
{name: 'width', title: 'Width x Height', suffix: ' x ', getnext: true, attributes: {size: 3}},
{name: 'height', attributes: {size: 3}},
{name: 'alt', title: 'Alternative text'}
];
eDefTagDialog('img', form, 'Add/edit image', 'OK');"

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.