Browse Source

Add selector:state event

pull/2474/head
Artur Arseniev 6 years ago
parent
commit
02defce78b
  1. 1
      src/editor/index.js
  2. 1
      src/selector_manager/index.js

1
src/editor/index.js

@ -77,6 +77,7 @@
* * `selector:add` - New selector is add. Passes the new selector as an argument
* * `selector:remove` - Selector removed. Passes the removed selector as an argument
* * `selector:update` - Selector updated. Passes the updated selector as an argument
* * `selector:state` - State changed. Passes the new state value as an argument
* ### RTE
* * `rte:enable` - RTE enabled. The view, on which RTE is enabled, is passed as an argument
* * `rte:disable` - RTE disabled. The view, on which RTE is disabled, is passed as an argument

1
src/selector_manager/index.js

@ -112,6 +112,7 @@ export default config => {
model.changedAttributes()
)
);
em.on('change:state', (m, value) => em.trigger('selector:state', value));
return this;
},

Loading…
Cancel
Save