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.
20 lines
460 B
20 lines
460 B
import Component from './Component';
|
|
import { toLowerCase } from 'utils/mixins';
|
|
|
|
const type = 'iframe';
|
|
|
|
export default class ComponentFrame extends Component {
|
|
get defaults() {
|
|
return {
|
|
...super.defaults,
|
|
type,
|
|
tagName: type,
|
|
droppable: false,
|
|
resizable: true,
|
|
traits: ['id', 'title', 'src'],
|
|
attributes: { frameborder: '0' },
|
|
};
|
|
}
|
|
}
|
|
|
|
ComponentFrame.isComponent = el => toLowerCase(el.tagName) === type;
|
|
|