mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 21:01:50 +08:00
This commit is contained in:
parent
e7fcb8b822
commit
e420934530
@ -1289,10 +1289,7 @@ export class WYSIWYG {
|
|||||||
// 不可编辑的块处理
|
// 不可编辑的块处理
|
||||||
const nodeElement = hasClosestBlock(range.startContainer);
|
const nodeElement = hasClosestBlock(range.startContainer);
|
||||||
if (nodeElement) {
|
if (nodeElement) {
|
||||||
if (isNotEditBlock(nodeElement) && !this.element.querySelector(".protyle-wysiwyg--select")) {
|
if (!nodeElement.classList.contains("protyle-wysiwyg--select")) {
|
||||||
nodeElement.classList.add("protyle-wysiwyg--select");
|
|
||||||
countBlockWord([nodeElement.getAttribute("data-node-id")]);
|
|
||||||
} else if (!nodeElement.classList.contains("protyle-wysiwyg--select")) {
|
|
||||||
countSelectWord(range);
|
countSelectWord(range);
|
||||||
}
|
}
|
||||||
this.setEmptyOutline(protyle, nodeElement);
|
this.setEmptyOutline(protyle, nodeElement);
|
||||||
|
Loading…
Reference in New Issue
Block a user