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
456 B
29 lines
456 B
define(['./Component'],
|
|
function (Component) {
|
|
|
|
return Component.extend({
|
|
|
|
defaults: _.extend({}, Component.prototype.defaults, {
|
|
droppable: false,
|
|
editable: true,
|
|
}),
|
|
|
|
toHTML: function() {
|
|
return this.get('content');
|
|
},
|
|
|
|
}, {
|
|
|
|
isComponent: function(el) {
|
|
var result = '';
|
|
if(el.nodeType === 3){
|
|
result = {
|
|
type: 'textnode',
|
|
content: el.textContent
|
|
};
|
|
}
|
|
return result;
|
|
},
|
|
|
|
});
|
|
});
|
|
|