Browse Source

Update getContent in text component

pull/2362/head
Artur Arseniev 7 years ago
parent
commit
03d1464e0f
  1. 7
      src/dom_components/view/ComponentTextView.js

7
src/dom_components/view/ComponentTextView.js

@ -75,12 +75,15 @@ export default ComponentView.extend({
*/
getContent() {
const { rte } = this;
const { activeRte } = rte || {};
let content = '';
if(rte.activeRte && typeof rte.activeRte.getContent === 'function') {
content = rte.activeRte.getContent();
if (activeRte && typeof activeRte.getContent === 'function') {
content = activeRte.getContent();
} else {
content = this.getChildrenContainer().innerHTML;
}
return content;
},

Loading…
Cancel
Save