This commit is contained in:
Vanessa 2023-03-21 11:48:44 +08:00 committed by Liang Ding
parent 0e232bcf18
commit b98e786649
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -2025,7 +2025,7 @@ export class WYSIWYG {
focusByRange(range);
}
if (ctrlIsPressed) {
if (ctrlIsPressed && range.toString() === "") {
let ctrlElement = hasClosestBlock(event.target);
if (ctrlElement) {
ctrlElement = getTopAloneElement(ctrlElement) as HTMLElement;