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.
30 lines
607 B
30 lines
607 B
define(function(require, exports, module){
|
|
'use strict';
|
|
var Component = require('./Component');
|
|
|
|
module.exports = Component.extend({
|
|
|
|
defaults: _.extend({}, Component.prototype.defaults, {
|
|
type: 'script',
|
|
droppable: false,
|
|
draggable: false,
|
|
hiddenLayer: true,
|
|
}),
|
|
|
|
}, {
|
|
|
|
isComponent: function(el) {
|
|
if (el.tagName == 'SCRIPT') {
|
|
var result = {type: 'script'};
|
|
|
|
if (el.src) {
|
|
result.src = el.src;
|
|
result.onload = el.onload;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
},
|
|
|
|
});
|
|
});
|