Forgiveness for the English
When you apply the value of a field in a form that is not submitted.
example:
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'},
{name: 'style', title: 'Image align', type: 'select', options: {'':'','float:left': 'Left', 'float:right': 'Right'}, value: 'float:left'}
];
eDefTagDialog('img', form, 'Insert/edit image', 'OK');
";
The default does not apply:
value: 'float:left'
Comments
Comment #1
ufku commentedConfirmed.
Please try the patch attached.
or change line 181 of library/default_buttons_functions.js to:
if (field.name == 'html') field.value = typeof obj.innerHTML == 'string' ? obj.innerHTML : sel;A possible workaround in your case could be removing the first empty element of options.
Comment #2
cantidubi commentedOk, thank you.
It works perfectly.
Congratulations on the module, it is very good.
Comment #3
ufku commentedComment #4
ufku commentedcommitted.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.