@ -141,6 +141,11 @@ export default Model.extend({
this.removeHeadByAttr('src', src, 'script');
},
getPage() {
const coll = this.collection;
return coll && coll.page;
_emitUpdated(data = {}) {
this.em.trigger('frame:updated', { frame: this, ...data });
@ -20,6 +20,7 @@ export default Model.extend({
}
const frms = props.frames || [defFrame];
const frames = new Frames(frms, config);
frames.page = this;
this.set('frames', frames);
const um = em && em.get('UndoManager');
um && um.add(frames);