P5-1416 add support for text-tags
This commit is contained in:
+4
-3
@@ -1,5 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var util = require('./includes/util');
|
||||
|
||||
/**
|
||||
* This is just an example usage of the image editor. Also this is used for testing.
|
||||
* This code can be pretty messy, but that is fine because nothing of this will come to
|
||||
@@ -66,9 +68,8 @@
|
||||
}
|
||||
|
||||
function handleResize() {
|
||||
var isFullScreen = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
|
||||
var width = $wrapper.width();
|
||||
var height = isFullScreen ? $window.height() : $wrapper.height();
|
||||
var height = util.isFullscreen() ? $window.height() : $wrapper.height();
|
||||
editor.canvas.resize({width: width, height: height});
|
||||
}
|
||||
|
||||
@@ -110,7 +111,7 @@
|
||||
showRulers: 'show-rulers',
|
||||
hideRulers: 'hide-rulers',
|
||||
showFullscreen: 'show-fullscreen',
|
||||
hideFullscreen: 'hide-fullscreen',
|
||||
hideFullscreen: 'exit-fullscreen',
|
||||
}
|
||||
})
|
||||
.loadImage(imageUrl, function() {
|
||||
|
||||
Reference in New Issue
Block a user