This library is an extension for AlloyEditor to allow editing image widths in a responsive way.
- Import
ButtonImageWidth
into your AlloyEditor project
import ButtonImageWidth from '../custom-alloy-buttons/ButtonImageWidth';
or
var ButtonImageWidth = require('../custom-alloy-buttons/ButtonImageWidth');
- Add
imageWidth
to your AlloyEditor Config
AlloyEditor.editable('editorId', {
toolbars: {
styles: {
selections: [{
name: 'image',
buttons: ['imageWidth'],
}],
tabIndex: 1
}
}
});
And you're done!