edu360-web-ui 1.0.126 → 1.0.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.css CHANGED
@@ -7,4 +7,4 @@
7
7
 
8
8
  Outdated base version: https://github.com/primer/github-syntax-light
9
9
  Current colors taken from GitHub's CSS
10
- */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-6eb1e6f8]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-6eb1e6f8]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-6eb1e6f8]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-6eb1e6f8]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-6eb1e6f8]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-6eb1e6f8]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-6eb1e6f8]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-6eb1e6f8]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-6eb1e6f8]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-6eb1e6f8]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-6eb1e6f8]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-6eb1e6f8]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-6eb1e6f8]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-6eb1e6f8]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-6eb1e6f8]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-6eb1e6f8]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-6eb1e6f8]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-6eb1e6f8]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-6eb1e6f8]{color:#999!important}.block-menu-item[data-v-6eb1e6f8]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-6eb1e6f8]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-28ce6f0a]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-28ce6f0a]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-28ce6f0a]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-28ce6f0a]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-fb5ad3e3]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-fb5ad3e3]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-fb5ad3e3]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-fb5ad3e3],.toolbar .flex-center .upload-demo[data-v-fb5ad3e3]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-fb5ad3e3]{color:#333}.toolbar .el-dropdown[data-v-fb5ad3e3]{height:22px}.is-active[data-v-fb5ad3e3]{color:#256cfb}.icon-gray[data-v-fb5ad3e3]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-fb5ad3e3]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-fb5ad3e3]{display:flex;align-items:center;gap:4px}.table-content[data-v-fb5ad3e3]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-fb5ad3e3]{margin:0!important}.el-dropdown-link.disabled[data-v-fb5ad3e3]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-01df93dd]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-01df93dd]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-01df93dd]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-01df93dd]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-01df93dd]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-01df93dd]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-01df93dd]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-01df93dd]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-01df93dd]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-01df93dd]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-01df93dd]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-01df93dd]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-01df93dd]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-01df93dd]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-3bf9a61b]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-3bf9a61b]{position:relative}.table-side-icon[data-v-3bf9a61b]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-3bf9a61b]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-3bf9a61b]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-3bf9a61b]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-3bf9a61b]{color:#f56c6c}.merge-control-panel[data-v-3bf9a61b]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-3bf9a61b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-3bf9a61b]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-3bf9a61b]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-cedcbcbc]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-cedcbcbc]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-cedcbcbc] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-cedcbcbc]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-cedcbcbc]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-cedcbcbc]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-cedcbcbc]{color:#999;font-size:12px}.editor-content-container[data-v-cedcbcbc]{flex:1;height:0;position:relative}.editor-content[data-v-cedcbcbc]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-cedcbcbc]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-cedcbcbc]{display:flex;align-items:center}.bubble-menu[data-v-cedcbcbc]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-cedcbcbc]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-cedcbcbc]{display:flex;flex-direction:column}.table-toolbar[data-v-cedcbcbc]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-cedcbcbc]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle{background-color:#adf;bottom:-2px;pointer-events:auto!important;position:absolute;right:-2px;top:0;width:4px;cursor:col-resize!important;z-index:10;opacity:.3;transition:opacity .2s}.tiptap-vue .editor-content table .column-resize-handle:hover{opacity:1;background-color:#4a9eff}.tiptap-vue .editor-content table td:hover>.column-resize-handle,.tiptap-vue .editor-content table th:hover>.column-resize-handle{opacity:.8}.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
10
+ */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-6eb1e6f8]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-6eb1e6f8]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-6eb1e6f8]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-6eb1e6f8]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-6eb1e6f8]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-6eb1e6f8]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-6eb1e6f8]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-6eb1e6f8]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-6eb1e6f8]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-6eb1e6f8]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-6eb1e6f8]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-6eb1e6f8]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-6eb1e6f8]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-6eb1e6f8]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-6eb1e6f8]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-6eb1e6f8]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-6eb1e6f8]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-6eb1e6f8]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-6eb1e6f8]{color:#999!important}.block-menu-item[data-v-6eb1e6f8]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-6eb1e6f8]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-28ce6f0a]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-28ce6f0a]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-28ce6f0a]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-28ce6f0a]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-fb5ad3e3]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-fb5ad3e3]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-fb5ad3e3]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-fb5ad3e3],.toolbar .flex-center .upload-demo[data-v-fb5ad3e3]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-fb5ad3e3]{color:#333}.toolbar .el-dropdown[data-v-fb5ad3e3]{height:22px}.is-active[data-v-fb5ad3e3]{color:#256cfb}.icon-gray[data-v-fb5ad3e3]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-fb5ad3e3]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-fb5ad3e3]{display:flex;align-items:center;gap:4px}.table-content[data-v-fb5ad3e3]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-fb5ad3e3]{margin:0!important}.el-dropdown-link.disabled[data-v-fb5ad3e3]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-01df93dd]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-01df93dd]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-01df93dd]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-01df93dd]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-01df93dd]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-01df93dd]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-01df93dd]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-01df93dd]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-01df93dd]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-01df93dd]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-01df93dd]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-01df93dd]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-01df93dd]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-01df93dd]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-3bf9a61b]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-3bf9a61b]{position:relative}.table-side-icon[data-v-3bf9a61b]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-3bf9a61b]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-3bf9a61b]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-3bf9a61b]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-3bf9a61b]{color:#f56c6c}.merge-control-panel[data-v-3bf9a61b]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-3bf9a61b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-3bf9a61b]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-3bf9a61b]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-0a6c19b5]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-0a6c19b5]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-0a6c19b5] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-0a6c19b5]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-0a6c19b5]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-0a6c19b5]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-0a6c19b5]{color:#999;font-size:12px}.editor-content-container[data-v-0a6c19b5]{flex:1;height:0;position:relative}.editor-content[data-v-0a6c19b5]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-0a6c19b5]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-0a6c19b5]{display:flex;align-items:center}.bubble-menu[data-v-0a6c19b5]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-0a6c19b5]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-0a6c19b5]{display:flex;flex-direction:column}.table-toolbar[data-v-0a6c19b5]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-0a6c19b5]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle{background-color:#adf;bottom:-2px;pointer-events:auto!important;position:absolute;right:-2px;top:0;width:4px;cursor:col-resize!important;z-index:10;opacity:.3;transition:opacity .2s}.tiptap-vue .editor-content table .column-resize-handle:hover{opacity:1;background-color:#4a9eff}.tiptap-vue .editor-content table td:hover>.column-resize-handle,.tiptap-vue .editor-content table th:hover>.column-resize-handle{opacity:.8}.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
@@ -148630,8 +148630,10 @@ const CustomImage = index_default$6.extend({
148630
148630
  var _a3;
148631
148631
  return {
148632
148632
  ...(_a3 = this.parent) == null ? void 0 : _a3.call(this),
148633
- isInline: false
148633
+ isInline: false,
148634
148634
  // 添加 isInline 选项
148635
+ instanceId: null
148636
+ // 组件实例标识,用于事件隔离
148635
148637
  };
148636
148638
  },
148637
148639
  addAttributes() {
@@ -148659,6 +148661,16 @@ const CustomImage = index_default$6.extend({
148659
148661
  const h2 = element.getAttribute("height") || element.style.height;
148660
148662
  return h2 ? parseInt(h2) : null;
148661
148663
  }
148664
+ },
148665
+ // 添加一个隐藏属性用于强制触发 NodeView 重新渲染
148666
+ viewMode: {
148667
+ default: null,
148668
+ renderHTML: () => {
148669
+ return {};
148670
+ },
148671
+ parseHTML: () => {
148672
+ return null;
148673
+ }
148662
148674
  }
148663
148675
  };
148664
148676
  },
@@ -148676,9 +148688,25 @@ const CustomImage = index_default$6.extend({
148676
148688
  })
148677
148689
  ];
148678
148690
  },
148691
+ addCommands() {
148692
+ return {
148693
+ setImage: (options) => ({ commands }) => {
148694
+ const viewMode = this.options.isInline ? "inline" : "edit";
148695
+ return commands.insertContent({
148696
+ type: this.name,
148697
+ attrs: {
148698
+ ...options,
148699
+ viewMode: options.viewMode || viewMode
148700
+ }
148701
+ });
148702
+ }
148703
+ };
148704
+ },
148679
148705
  addNodeView() {
148680
148706
  return ({ node, editor, getPos }) => {
148681
- const isInlineMode = this.options.isInline;
148707
+ const viewMode = node.attrs.viewMode;
148708
+ const isInlineMode = viewMode === "inline" || viewMode === null && this.options.isInline;
148709
+ const instanceId = this.options.instanceId;
148682
148710
  const wrapper = document.createElement("div");
148683
148711
  wrapper.style.position = "relative";
148684
148712
  wrapper.style.display = "inline-block";
@@ -148692,15 +148720,27 @@ const CustomImage = index_default$6.extend({
148692
148720
  if (node.attrs.width) img.style.width = node.attrs.width + "px";
148693
148721
  if (node.attrs.height) img.style.height = node.attrs.height + "px";
148694
148722
  if (isInlineMode) {
148723
+ img.style.cursor = "pointer";
148724
+ img.title = img.title || "点击查看大图";
148725
+ img.addEventListener("click", (e) => {
148726
+ e.preventDefault();
148727
+ e.stopPropagation();
148728
+ window.dispatchEvent(new CustomEvent("tiptap-image-click", {
148729
+ detail: { src: img.src, instanceId }
148730
+ }));
148731
+ });
148695
148732
  wrapper.appendChild(img);
148696
148733
  return {
148697
148734
  dom: wrapper,
148698
148735
  contentDOM: null,
148699
148736
  update: (updatedNode) => {
148700
148737
  if (updatedNode.type.name !== "image") return false;
148738
+ if (updatedNode.attrs.viewMode !== node.attrs.viewMode) {
148739
+ return false;
148740
+ }
148701
148741
  img.src = updatedNode.attrs.src;
148702
148742
  img.alt = updatedNode.attrs.alt || "";
148703
- img.title = updatedNode.attrs.title || "";
148743
+ img.title = updatedNode.attrs.title || "点击查看大图";
148704
148744
  if (updatedNode.attrs.width) img.style.width = updatedNode.attrs.width + "px";
148705
148745
  else img.style.width = "";
148706
148746
  if (updatedNode.attrs.height) img.style.height = updatedNode.attrs.height + "px";
@@ -148769,7 +148809,9 @@ const CustomImage = index_default$6.extend({
148769
148809
  viewBtn.addEventListener("click", (e) => {
148770
148810
  e.preventDefault();
148771
148811
  e.stopPropagation();
148772
- window.dispatchEvent(new CustomEvent("tiptap-image-click", { detail: img.src }));
148812
+ window.dispatchEvent(new CustomEvent("tiptap-image-click", {
148813
+ detail: { src: img.src, instanceId }
148814
+ }));
148773
148815
  });
148774
148816
  resetBtn.addEventListener("click", (e) => {
148775
148817
  e.preventDefault();
@@ -148943,6 +148985,9 @@ const CustomImage = index_default$6.extend({
148943
148985
  contentDOM: null,
148944
148986
  update: (updatedNode) => {
148945
148987
  if (updatedNode.type.name !== "image") return false;
148988
+ if (updatedNode.attrs.viewMode !== node.attrs.viewMode) {
148989
+ return false;
148990
+ }
148946
148991
  img.src = updatedNode.attrs.src;
148947
148992
  img.alt = updatedNode.attrs.alt || "";
148948
148993
  img.title = updatedNode.attrs.title || "";
@@ -149191,7 +149236,7 @@ function convertTableToHtml(rows, hasHeaderSeparator) {
149191
149236
  return htmlParts.join("");
149192
149237
  }
149193
149238
  const PASTE_CHUNK_THRESHOLD = 100;
149194
- const createEditor = ({ content = "", info = {}, limit = 50, isInline: isInline2 = false, showMenu = [], placeholder = "", blockMenuFn, editorWrapper, checkSlashTrigger } = {}) => {
149239
+ const createEditor = ({ content = "", info = {}, limit = 50, isInline: isInline2 = false, showMenu = [], placeholder = "", blockMenuFn, editorWrapper, checkSlashTrigger, instanceId = null } = {}) => {
149195
149240
  const editor = new Editor2({
149196
149241
  // 配置编辑器扩展功能
149197
149242
  extensions: [
@@ -149244,8 +149289,9 @@ const createEditor = ({ content = "", info = {}, limit = 50, isInline: isInline2
149244
149289
  CustomImage.configure({
149245
149290
  inline: false,
149246
149291
  allowBase64: false,
149247
- isInline: isInline2
149292
+ isInline: isInline2,
149248
149293
  // 传递 inline 模式状态
149294
+ instanceId
149249
149295
  }),
149250
149296
  // 高亮功能配置
149251
149297
  index_default$7.configure({ multicolor: true }),
@@ -152744,6 +152790,7 @@ const _sfc_main = {
152744
152790
  }
152745
152791
  };
152746
152792
  let editorWrapper = ref(null);
152793
+ const instanceId = `tiptap-${Math.random().toString(36).slice(2)}`;
152747
152794
  const editor = createEditor({
152748
152795
  content: "",
152749
152796
  // 🚀 优化:先创建空编辑器,内容后续异步加载
@@ -152754,7 +152801,8 @@ const _sfc_main = {
152754
152801
  placeholder: props.placeholder,
152755
152802
  blockMenuFn,
152756
152803
  editorWrapper: editorWrapper.value,
152757
- checkSlashTrigger
152804
+ checkSlashTrigger,
152805
+ instanceId
152758
152806
  });
152759
152807
  if (props.isInline) {
152760
152808
  editor.setEditable(false);
@@ -152855,6 +152903,28 @@ const _sfc_main = {
152855
152903
  watch(() => props.isInline, (newIsInline) => {
152856
152904
  if (editor) {
152857
152905
  editor.setEditable(!newIsInline);
152906
+ const imageExtension = editor.extensionManager.extensions.find((ext) => ext.name === "image");
152907
+ if (imageExtension) {
152908
+ imageExtension.options.isInline = newIsInline;
152909
+ nextTick(() => {
152910
+ const { state } = editor;
152911
+ const { tr: tr2 } = state;
152912
+ let updated = false;
152913
+ state.doc.descendants((node, pos) => {
152914
+ if (node.type.name === "image") {
152915
+ const newViewMode = newIsInline ? "inline" : "edit";
152916
+ tr2.setNodeMarkup(pos, null, {
152917
+ ...node.attrs,
152918
+ viewMode: newViewMode
152919
+ });
152920
+ updated = true;
152921
+ }
152922
+ });
152923
+ if (updated) {
152924
+ editor.view.dispatch(tr2);
152925
+ }
152926
+ });
152927
+ }
152858
152928
  }
152859
152929
  });
152860
152930
  onMounted(() => {
@@ -152885,6 +152955,24 @@ const _sfc_main = {
152885
152955
  if (index > -1) {
152886
152956
  activeChunkLoaders.splice(index, 1);
152887
152957
  }
152958
+ nextTick(() => {
152959
+ const { state } = editor;
152960
+ const { tr: tr2 } = state;
152961
+ let updated = false;
152962
+ const currentViewMode = props.isInline ? "inline" : "edit";
152963
+ state.doc.descendants((node, pos) => {
152964
+ if (node.type.name === "image" && node.attrs.viewMode !== currentViewMode) {
152965
+ tr2.setNodeMarkup(pos, null, {
152966
+ ...node.attrs,
152967
+ viewMode: currentViewMode
152968
+ });
152969
+ updated = true;
152970
+ }
152971
+ });
152972
+ if (updated) {
152973
+ editor.view.dispatch(tr2);
152974
+ }
152975
+ });
152888
152976
  }
152889
152977
  });
152890
152978
  if (loader) {
@@ -152897,7 +152985,11 @@ const _sfc_main = {
152897
152985
  const imageDialogVisible = ref(false);
152898
152986
  const imageSrc = ref("");
152899
152987
  function onImageClick(e) {
152900
- imageSrc.value = e.detail;
152988
+ const detail = e == null ? void 0 : e.detail;
152989
+ const eventInstanceId = detail == null ? void 0 : detail.instanceId;
152990
+ if (eventInstanceId && eventInstanceId !== instanceId) return;
152991
+ if (!eventInstanceId && instanceId) return;
152992
+ imageSrc.value = (detail == null ? void 0 : detail.src) || detail;
152901
152993
  imageDialogVisible.value = true;
152902
152994
  }
152903
152995
  const sourceDialogVisible = ref(false);
@@ -153112,7 +153204,7 @@ const _sfc_main = {
153112
153204
  };
153113
153205
  }
153114
153206
  };
153115
- const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cedcbcbc"]]);
153207
+ const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0a6c19b5"]]);
153116
153208
  if (!Array.prototype.findLast) {
153117
153209
  Array.prototype.findLast = function(predicate, thisArg) {
153118
153210
  for (let i = this.length - 1; i >= 0; i--) {