Browse Source

:memo: https://github.com/Vanessa219/vditor/issues/1790

Vanessa 6 months ago
parent
commit
22b41ef032
3 changed files with 275 additions and 252 deletions
  1. 1 1
      CHANGELOG.md
  2. 272 249
      pnpm-lock.yaml
  3. 2 2
      src/ts/undo/index.ts

+ 1 - 1
CHANGELOG.md

@@ -23,7 +23,7 @@
 
 * [open issues](https://github.com/Vanessa219/vditor/issues)
 
-### v3.11.0 / 2025-03
+### v3.11.0 / 2025-04
 
 * [初始化后立即 `destroy` 不再进行 `after` 的回调](https://github.com/Vanessa219/vditor/issues/1790) `改进功能`
 * [点击复制按钮不展开编辑区域](https://github.com/Vanessa219/vditor/issues/1768) `改进功能`

File diff suppressed because it is too large
+ 272 - 249
pnpm-lock.yaml


+ 2 - 2
src/ts/undo/index.ts

@@ -152,7 +152,7 @@ class Undo {
             vditor[vditor.currentMode].element.querySelectorAll(`.vditor-${vditor.currentMode}__preview`)
                 .forEach((blockElement: HTMLElement) => {
                     if (blockElement.parentElement.querySelector(".language-echarts")) {
-                        if (vditor.currentMode ==="ir") {
+                        if (vditor.currentMode === "ir") {
                             blockElement.parentElement.outerHTML = vditor.lute.SpinVditorIRDOM(blockElement.parentElement.outerHTML);
                         } else {
                             blockElement.parentElement.outerHTML = vditor.lute.SpinVditorDOM(blockElement.parentElement.outerHTML);
@@ -240,7 +240,7 @@ class Undo {
         cloneElement.querySelectorAll(`.vditor-${vditor.currentMode}__preview[data-render='1']`)
             .forEach((item: HTMLElement) => {
                 if (!item.firstElementChild) {
-                    return
+                    return;
                 }
                 if (item.firstElementChild.classList.contains("language-echarts") ||
                     item.firstElementChild.classList.contains("language-plantuml") ||

Some files were not shown because too many files changed in this diff