Can you use BUEditor to align an image? The standard text align buttons don't seem to work. I tried applying them to an image embedded using IMCE but no go.

Comments

ufku’s picture

tried adding style attribute like stye="float:right" ?

ufku’s picture

Version: 6.x-1.3 » 6.x-2.x-dev
Status: Active » Fixed

Check this out.

Status: Fixed » Closed (fixed)

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

WorldFallz’s picture

For others that find this thread, the updated image button code, including a float option, is:

js:
var form = [
 {name: 'src', title: 'Image URL', required: true, suffix: E.imce.button('attr_src')},
 {name: 'style', title: 'Float', type: 'select', options: {'': '', 'float:left;': 'left', 'float:right;': 'right'}},
 {name: 'width', title: 'Width x Height', suffix: ' x ', getnext: true, attributes: {size: 3}},
 {name: 'height', attributes: {size: 3}},
 {name: 'alt', title: 'Alternative text', required: true}
];
E.tagDialog('img', form, {title: 'Insert/edit image'});