bustle / mobiledoc-kit

A toolkit for building WYSIWYG editors with Mobiledoc
https://bustle.github.io/mobiledoc-kit/demo/
MIT License
1.55k stars 150 forks source link

Set default range for 'setAttribute' in PostEditor #692

Closed YoranBrondsema closed 4 years ago

YoranBrondsema commented 5 years ago

Otherwise the range must be specified every time this public API is used., i.e. requires something like

postEditor.setAttribute('text-align', 'center',postEditor._range);`

instead of

postEditor.setAttribute('text-align', 'center');

YoranBrondsema commented 5 years ago

Only Sauce Labs tests are failing.