Don't open click to edit in document mode if text selected

This commit is contained in:
Cohee 2024-05-27 21:50:42 +03:00
parent a6e6677c32
commit 80e104e723
1 changed files with 1 additions and 0 deletions

View File

@ -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');
}); });