Allow editor frame fullscreen

This commit is contained in:
Dominique Da Silva 2019-11-09 01:49:29 +00:00
parent 02b74b9a52
commit 8ccb8e374b

View file

@ -51,8 +51,9 @@
var editorWindow; var editorWindow;
var $editorFrame = $('<iframe id="editor-frame"/>') var $editorFrame = $('<iframe id="editor-frame" />')
.attr('src', '/{{editorName}}/editor?id={{id}}&type=' + type) .attr('src', '/{{editorName}}/editor?id={{id}}&type=' + type)
.attr('allowfullscreen', 'true')
.on('load', function() { .on('load', function() {
editorWindow = $editorFrame[0].contentWindow; editorWindow = $editorFrame[0].contentWindow;
editorWindow.bridge = editorWindow.bridge || {}; editorWindow.bridge = editorWindow.bridge || {};