I just need someone to quickly copy&paste the default Insert Image code please. I stupidly deleted that button a few months ago because I wasn't using it and I don't know how to restore it. Any help would be greatly appreciated!

Comments

ufku’s picture

php:
$imce_url = function_exists('imce_menu') && user_access('access imce') ? url('imce/browse') : '';

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, 'Insert/edit image', 'OK');
";
ufku’s picture

Status: Active » Closed (fixed)