mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
661 B
29 lines
661 B
import ComponentView from './ComponentView';
|
|
|
|
export default class ComponentTextNodeView extends ComponentView {
|
|
initialize() {
|
|
ComponentView.prototype.initialize.apply(this, arguments);
|
|
}
|
|
|
|
// Clear methods used on Nodes with attributes
|
|
_setAttributes() {}
|
|
renderAttributes() {}
|
|
updateStatus() {}
|
|
updateClasses() {}
|
|
setAttribute() {}
|
|
updateAttributes() {}
|
|
initClasses() {}
|
|
initComponents() {}
|
|
delegateEvents() {}
|
|
|
|
_createElement() {
|
|
return document.createTextNode('');
|
|
}
|
|
|
|
render() {
|
|
const { model, el } = this;
|
|
if (model.opt.temporary) return this;
|
|
el.textContent = model.get('content');
|
|
return this;
|
|
}
|
|
}
|
|
|