diff --git a/assets/js/src/newsletter_editor/behaviors/TextEditorBehavior.js b/assets/js/src/newsletter_editor/behaviors/TextEditorBehavior.js index 044300b303..2474c2f827 100644 --- a/assets/js/src/newsletter_editor/behaviors/TextEditorBehavior.js +++ b/assets/js/src/newsletter_editor/behaviors/TextEditorBehavior.js @@ -60,13 +60,17 @@ define([ editor.on('click', function(e) { editor.focus(); - editor.selection.setRng( - tinymce.dom.RangeUtils.getCaretRangeFromPoint(e.clientX, e.clientY, editor.getDoc()) - ); + if (that._isActivationClick) { + editor.selection.setRng( + tinymce.dom.RangeUtils.getCaretRangeFromPoint(e.clientX, e.clientY, editor.getDoc()) + ); + that._isActivationClick = false; + } }); editor.on('focus', function(e) { that.view.triggerMethod('text:editor:focus'); + that._isActivationClick = true; }); editor.on('blur', function(e) {