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;
|
||||
const ops = data.data.sources[0];
|
||||
ops.doOperations.find((item: IOperation) => {
|
||||
if ((item.action === "update" || item.action === "insert") &&
|
||||
(item.data.indexOf('data-type="NodeHeading"') > -1 || item.data.indexOf(`<div contenteditable="true" spellcheck="${window.siyuan.config.editor.spellcheck}"><wbr></div>`) > -1)) {
|
||||
if (item.action === "update" &&
|
||||
(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;
|
||||
return true;
|
||||
} else if (item.action === "delete" || item.action === "move") {
|
||||
|
|
Loading…
Add table
Reference in a new issue