mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
0ed7f55134
commit
de69e19ab7
1 changed files with 5 additions and 2 deletions
|
|
@ -376,8 +376,11 @@ export class Outline extends Model {
|
||||||
let needReload = false;
|
let needReload = false;
|
||||||
const ops = data.data.sources[0];
|
const ops = data.data.sources[0];
|
||||||
ops.doOperations.find((item: IOperation) => {
|
ops.doOperations.find((item: IOperation) => {
|
||||||
if ((item.action === "update" || item.action === "insert") &&
|
if (item.action === "update" &&
|
||||||
(item.data.indexOf('data-type="NodeHeading"') > -1 || item.data.indexOf(`<div contenteditable="true" spellcheck="${window.siyuan.config.editor.spellcheck}"><wbr></div>`) > -1)) {
|
(this.element.querySelector(`.b3-list-item[data-node-id="${item.id}"]`) || item.data.indexOf('data-type="NodeHeading"') > -1)) {
|
||||||
|
needReload = true;
|
||||||
|
return true;
|
||||||
|
} else if (item.action === "insert" && item.data.indexOf('data-type="NodeHeading"') > -1) {
|
||||||
needReload = true;
|
needReload = true;
|
||||||
return true;
|
return true;
|
||||||
} else if (item.action === "delete" || item.action === "move") {
|
} else if (item.action === "delete" || item.action === "move") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue