mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +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 () {
|
||||
if (window.getSelection().toString()) return;
|
||||
if ($('.edit_textarea').length) return;
|
||||
$(this).closest('.mes').find('.mes_edit').trigger('click');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user