Fix cursor positioning when activating TinyMCE on click [MAILPOET-880]
This commit is contained in:
@@ -60,6 +60,9 @@ define([
|
|||||||
|
|
||||||
editor.on('click', function(e) {
|
editor.on('click', function(e) {
|
||||||
editor.focus();
|
editor.focus();
|
||||||
|
editor.selection.setRng(
|
||||||
|
tinymce.dom.RangeUtils.getCaretRangeFromPoint(e.clientX, e.clientY, editor.getDoc())
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
editor.on('focus', function(e) {
|
editor.on('focus', function(e) {
|
||||||
|
Reference in New Issue
Block a user