P5-1416 add support for text-tags

This commit is contained in:
Martin
2017-06-26 15:35:30 +02:00
parent e79245e14e
commit e3e6019526
10 changed files with 39 additions and 36 deletions
+4 -3
View File
@@ -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() {