Default code for insert image is:
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, 'Insert/edit image', 'OK');
";
These functions generate an html-code like this:
<img src="$form[name]" width="$form[width]" height="$form[height]" alt="$form[alt]" />
Is it possible insert an additional div-tag outside img-tag? I need this html-code:
<span><img src="$form[name]" width="$form[width]" height="$form[height]" alt="$form[alt]" />$form[alt]</span>
Thanks for help.
Comments
Comment #1
ufku commentedComment #2
dicreat commentedThanks, it's work!