|
|
@@ -50,7 +50,8 @@ |
|
|
|
<div class="toolbar"> |
|
|
|
<!--<button id="btnSave" onClick="save()" class="btn btn_g">save</button>--> |
|
|
|
<button id="btnUndo" onClick="editor.undo()" class="btn">↶</button> |
|
|
|
<button id="btnRedo" onClick="editor.redo()" class="btn">↷</button> |
|
|
|
<button id="btnRedo" onClick="editor.redo()" class="btn_g">↷</button> |
|
|
|
<button id="btnFs" onclick="openFullscreen();">◻</button> |
|
|
|
</div> |
|
|
|
<div class="inner" id="editor"></div> |
|
|
|
|
|
|
@@ -98,13 +99,8 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
window.editor = editor; |
|
|
|
/* Get the element you want displayed in fullscreen mode (a video in this example): */ |
|
|
|
var elem = document.documentElement; |
|
|
|
|
|
|
|
/* When the openFullscreen() function is executed, open the video in fullscreen. |
|
|
|
Note that we must include prefixes for different browsers, as they don't support the requestFullscreen method yet */ |
|
|
|
function openFullscreen() { |
|
|
|
var elem = document.documentElement; |
|
|
|
if (elem.requestFullscreen) { |
|
|
|
elem.requestFullscreen(); |
|
|
|
} else if (elem.mozRequestFullScreen) { /* Firefox */ |
|
|
@@ -116,7 +112,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
openFullScreen(); |
|
|
|
window.editor = editor; |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
</body> |