mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
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
Block a user