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

SlyK’s picture

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');"

Status: Fixed » Closed (fixed)

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