From 2b8a7f08cbd562bdc2011cd79184ffbebb49c989 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 3 Jul 2018 12:12:40 +0200 Subject: [PATCH] Fixed issue --- assets/3rdparty/bootstrap-wysiwyg.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/3rdparty/bootstrap-wysiwyg.js b/assets/3rdparty/bootstrap-wysiwyg.js index 75c52faa..c7571403 100644 --- a/assets/3rdparty/bootstrap-wysiwyg.js +++ b/assets/3rdparty/bootstrap-wysiwyg.js @@ -59,6 +59,11 @@ }.bind( this ) ); $( window ).bind( "touchend", function( e ) { + + //COMUNIC FIX + if(!this.getCurrentRange) + return; + var isInside = ( editor.is( e.target ) || editor.has( e.target ).length > 0 ), currentRange = this.getCurrentRange(), clear = currentRange && ( currentRange.startContainer === currentRange.endContainer && currentRange.startOffset === currentRange.endOffset );