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.
40 lines
985 B
40 lines
985 B
// We need this one just to identify better the wrapper type
|
|
import Component from './Component';
|
|
|
|
export default Component.extend(
|
|
{
|
|
defaults: {
|
|
...Component.prototype.defaults,
|
|
__wrapper: 1,
|
|
removable: false,
|
|
copyable: false,
|
|
draggable: false,
|
|
components: [],
|
|
traits: [],
|
|
stylable: [
|
|
'background',
|
|
'background-color',
|
|
'background-image',
|
|
'background-repeat',
|
|
'background-attachment',
|
|
'background-position',
|
|
'background-size'
|
|
]
|
|
},
|
|
__postAdd() {
|
|
const um = this.em && this.em.get('UndoManager');
|
|
um && !this.__hasUm && um.add(this);
|
|
return Component.prototype.__postAdd.call(this, arguments);
|
|
},
|
|
__postRemove() {
|
|
const um = this.em && this.em.get('UndoManager');
|
|
um && um.remove(this);
|
|
return Component.prototype.__postRemove.call(this, arguments);
|
|
}
|
|
},
|
|
{
|
|
isComponent() {
|
|
return false;
|
|
}
|
|
}
|
|
);
|
|
|