}).bind(this))
}).bind(this));
- this.$editor[0].addEventListener('focus', function () {
- _activeInstances++;
-
- document.documentElement.classList.add('redactorActive');
- });
- this.$editor[0].addEventListener('blur', function () {
- _activeInstances--;
-
- // short delay to prevent flickering when switching focus between editors
- window.setTimeout(function () {
- if (_activeInstances === 0) {
- document.documentElement.classList.remove('redactorActive');
- }
- }, 100);
- })
+ var ua = window.navigator.userAgent.toLowerCase();
+ if (ua.indexOf('windows phone') === -1 && ua.indexOf('edge/') === -1) {
+ this.$editor[0].addEventListener('focus', function () {
+ _activeInstances++;
+
+ document.documentElement.classList.add('redactorActive');
+ });
+ this.$editor[0].addEventListener('blur', function () {
+ _activeInstances--;
+
+ // short delay to prevent flickering when switching focus between editors
+ window.setTimeout(function () {
+ if (_activeInstances === 0) {
+ document.documentElement.classList.remove('redactorActive');
+ }
+ }, 100);
+ });
+ }
},
_setEvents: function(EventHandler) {