Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 758 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 758 Bytes

AlloyEditor-Edit-Button-Width

This library is an extension for AlloyEditor to allow editing image widths in a responsive way.

alt tag

Setup

  1. Import ButtonImageWidth into your AlloyEditor project
import ButtonImageWidth from '../custom-alloy-buttons/ButtonImageWidth';

or

var ButtonImageWidth = require('../custom-alloy-buttons/ButtonImageWidth');
  1. Add imageWidth to your AlloyEditor Config
AlloyEditor.editable('editorId', {
    toolbars: {
      styles: {
        selections: [{
          name: 'image',
          buttons: ['imageWidth'],
        }],
        tabIndex: 1
      }
    }
});

And you're done!