Error after upgrade to D6

lomz - August 19, 2008 - 12:58
Project:BUEditor
Version:6.x-1.2
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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?

#1

SlyK - November 1, 2009 - 21:16
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

System Message - November 15, 2009 - 21:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.