🐛 预览模式下点击只读
This commit is contained in:
parent
130884d758
commit
11174958bc
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ export class Protyle {
|
|||
break;
|
||||
case "transactions":
|
||||
data.data[0].doOperations.forEach((item: IOperation) => {
|
||||
if (!this.protyle.preview.element.classList.contains("fn__none")) {
|
||||
if (!this.protyle.preview.element.classList.contains("fn__none") &&
|
||||
item.action !== "updateAttrs" // 预览模式下点击只读
|
||||
) {
|
||||
this.protyle.preview.render(this.protyle);
|
||||
} else {
|
||||
onTransaction(this.protyle, item, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue