Don't open click to edit in document mode if text selected
This commit is contained in:
parent
a6e6677c32
commit
80e104e723
|
@ -1391,6 +1391,7 @@ jQuery(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', 'body.documentstyle .mes .mes_text', function () {
|
$(document).on('click', 'body.documentstyle .mes .mes_text', function () {
|
||||||
|
if (window.getSelection().toString()) return;
|
||||||
if ($('.edit_textarea').length) return;
|
if ($('.edit_textarea').length) return;
|
||||||
$(this).closest('.mes').find('.mes_edit').trigger('click');
|
$(this).closest('.mes').find('.mes_edit').trigger('click');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue