UNPKG

grapesjs

Version:

Free and Open Source Web Builder Framework

29 lines (26 loc) 481 B
import Component from './Component'; export default Component.extend( { defaults: { ...Component.prototype.defaults, droppable: false, layerable: false, editable: true }, toHTML() { return this.get('content'); } }, { isComponent(el) { var result = ''; if (el.nodeType === 3) { result = { type: 'textnode', content: el.textContent }; } return result; } } );