mirror of https://github.com/artf/grapesjs.git
8 changed files with 69 additions and 7 deletions
@ -0,0 +1,19 @@ |
|||||
|
define(['./Component'], |
||||
|
function (Component) { |
||||
|
|
||||
|
return Component.extend({ |
||||
|
|
||||
|
defaults: _.extend({}, Component.prototype.defaults, { |
||||
|
tagName: 'iframe', |
||||
|
staticUrl: 'http://maps.googleapis.com/maps/api/staticmap', |
||||
|
mapUrl: 'https://maps.google.com/maps', |
||||
|
zoom: '1', |
||||
|
mapType: '', |
||||
|
staticHeight: '', |
||||
|
staticWidth: '', |
||||
|
src: 'http://maps.googleapis.com/maps/api/staticmap?zoom=1&format=jpg&size=500x300',//'https://maps.google.com/maps?output=embed',
|
||||
|
traits: ['mapTraits'], |
||||
|
}), |
||||
|
|
||||
|
}); |
||||
|
}); |
||||
@ -0,0 +1,15 @@ |
|||||
|
define(['backbone', './ComponentImageView'], |
||||
|
function (Backbone, ComponentView) { |
||||
|
|
||||
|
return ComponentView.extend({ |
||||
|
|
||||
|
events: {}, |
||||
|
|
||||
|
initialize: function(o){ |
||||
|
ComponentView.prototype.initialize.apply(this, arguments); |
||||
|
//on width/height change update static url
|
||||
|
//zomm 1-22
|
||||
|
}, |
||||
|
|
||||
|
}); |
||||
|
}); |
||||
Loading…
Reference in new issue