Browse Source

Rename RTE module

pull/415/head
Artur Arseniev 8 years ago
parent
commit
9b892e0525
  1. 1
      src/dom_components/index.js
  2. 2
      src/dom_components/view/ComponentTextView.js
  3. 2
      src/editor/index.js
  4. 2
      src/rich_text_editor/index.js

1
src/dom_components/index.js

@ -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;

2
src/dom_components/view/ComponentTextView.js

@ -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;
},

2
src/editor/index.js

@ -207,7 +207,7 @@ module.exports = config => {
* @property {RichTextEditor}
* @private
*/
RichTextEditor: em.get('rte'),
RichTextEditor: em.get('RichTextEditor'),
/**
* @property {Utils}

2
src/rich_text_editor/index.js

@ -41,7 +41,7 @@ module.exports = () => {
* @type {String}
* @private
*/
name: 'rte',
name: 'RichTextEditor',
/**
* Initialize module. Automatically called with a new instance of the editor

Loading…
Cancel
Save