Closed bartbutenaers closed 5 years ago
uibuilder v2 has a nice feature.
The expand button maximises an div "#edit-props" to full screen.
The code looks like this...
$('#node-function-expand-js').click(function(e) { //the expand button
e.preventDefault()
// Are we in fullscreen? Variable is updated when oneditresize calls setACEheight()
if (uiace.fullscreen === false) {
// Select the editor components and make full-screen, triggers oneditresize()
var viewer = $('#edit-props')[0]
var rFS = viewer.requestFullscreen || viewer.mozRequestFullScreen || viewer.webkitRequestFullscreen || viewer.msRequestFullScreen
if (rFS) rFS.call(viewer)
// TODO: Add popup if no method is available
} else {
// Already in fullscreen so lets exit, triggers oneditresize()
document.exitFullscreen()
}
})
Currently the editor cannot be expanded.