@ -162,7 +162,6 @@ module.exports = () => {
// Load dependencies
if (em) {
c.rte = em.get('rte') || '';
c.modal = em.get('Modal') || '';
c.am = em.get('AssetManager') || '';
em.get('Parser').compTypes = componentTypes;
@ -15,7 +15,7 @@ module.exports = ComponentView.extend({
const em = this.em;
this.listenTo(model, 'focus active', this.enableEditing);
this.listenTo(model, 'change:content', this.updateContent);
this.rte = em && em.get('rte');
this.rte = em && em.get('RichTextEditor');
this.activeRte = null;
},
@ -207,7 +207,7 @@ module.exports = config => {
* @property {RichTextEditor}
* @private
*/
RichTextEditor: em.get('rte'),
RichTextEditor: em.get('RichTextEditor'),
/**
* @property {Utils}
@ -41,7 +41,7 @@ module.exports = () => {
* @type {String}
name: 'rte',
name: 'RichTextEditor',
* Initialize module. Automatically called with a new instance of the editor