Commit 41e3b36
committed
fix(mdviewer): preserve edit mode and cache across panel hide/show
- Use persistent _mdIframeRef in MarkdownSync to detect iframe reuse
across deactivate/activate cycles
- Move reloadCurrentFile() to reload button handler only, preventing
cache clear on panel show
- Fix edit mode preservation: global edit mode survives panel toggle1 parent 66827af commit 41e3b36
File tree
2 files changed
+8
-7
lines changed- src/extensionsIntegrated/Phoenix-live-preview
2 files changed
+8
-7
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
843 | 846 | | |
844 | 847 | | |
845 | 848 | | |
| |||
867 | 870 | | |
868 | 871 | | |
869 | 872 | | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | 873 | | |
875 | 874 | | |
876 | 875 | | |
| |||
0 commit comments