@mnykj/alleditor-vue 1.3.1 → 1.3.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mnykj/alleditor-vue
2
2
 
3
- AllEditor 桌面 Web 壳(wang + UE)。与 `@mnykj/alleditor@1.3.0` **同版本锁步**(本包 `dependencies` 为精确版本,不是 `^`)。
3
+ AllEditor 桌面 Web 壳(wang + UE)。与 `@mnykj/alleditor-core@1.3.0` **同版本锁步**(本包 `dependencies` 为精确版本,不是 `^`)。
4
4
 
5
5
  ## 安装
6
6
 
@@ -8,9 +8,9 @@ AllEditor 桌面 Web 壳(wang + UE)。与 `@mnykj/alleditor@1.3.0` **同版
8
8
  npm i @mnykj/alleditor-vue
9
9
  ```
10
10
 
11
- 会自动装上匹配的 `@mnykj/alleditor` 与 `@mnykj/alleditor-for-vue`。
11
+ 会自动装上匹配的 `@mnykj/alleditor-core` 与 `@mnykj/alleditor-for-vue`。
12
12
 
13
- > 说明:npm 上历史包名 `@mnykj/alleditor-core` 是旧 slate 内核,已在本仓库改名为 `@mnykj/alleditor-core`。消费侧「引擎」请用 `@mnykj/alleditor`。
13
+ > 说明:npm 上历史包名 `@mnykj/alleditor-kernel` 是旧 slate 内核,已在本仓库改名为 `@mnykj/alleditor-kernel`。消费侧「引擎」请用 `@mnykj/alleditor-core`。
14
14
 
15
15
  ## Nuxt
16
16
 
@@ -34,7 +34,7 @@ plugins: [alleditorUeditor()]
34
34
  ```vue
35
35
  <script setup>
36
36
  import { AllEditor } from '@mnykj/alleditor-vue'
37
- import '@mnykj/alleditor/dist/css/style.css'
37
+ import '@mnykj/alleditor-core/dist/css/style.css'
38
38
  </script>
39
39
 
40
40
  <template>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mnykj/alleditor-vue",
3
- "version": "1.3.1",
4
- "description": "AllEditor Vue3 desktop shell (wang + UE). Lockstep with @mnykj/alleditor.",
3
+ "version": "1.3.2",
4
+ "description": "AllEditor Vue3 desktop shell (wang + UE). Lockstep with @mnykj/alleditor-core.",
5
5
  "author": "mnykj",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "registry": "https://registry.npmjs.org/"
40
40
  },
41
41
  "dependencies": {
42
- "@mnykj/alleditor": "1.3.1",
43
- "@mnykj/alleditor-for-vue": "1.3.1",
42
+ "@mnykj/alleditor-core": "1.3.2",
43
+ "@mnykj/alleditor-for-vue": "1.3.2",
44
44
  "markdown-it": "^14.3.3"
45
45
  },
46
46
  "peerDependencies": {
package/src/AllEditor.vue CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  detectEditorEngine,
21
21
  unwrapEditorEngineHtml,
22
22
  wrapEditorEngineHtml,
23
- } from '@mnykj/alleditor'
23
+ } from '@mnykj/alleditor-core'
24
24
  import UeHtmlEngine from './UeHtmlEngine.vue'
25
25
  import { bindUeToolbarAdapter } from './ueToolbar'
26
26
  import {
@@ -542,6 +542,10 @@ defineExpose({
542
542
  min-height: 0;
543
543
  background: #fff;
544
544
  overflow: visible;
545
+ /* 隔离内部 z-index,避免工具栏压过站点顶栏「所有产品」等下拉 */
546
+ position: relative;
547
+ z-index: 0;
548
+ isolation: isolate;
545
549
  }
546
550
 
547
551
  .alleditor__toolbar,
@@ -549,6 +553,7 @@ defineExpose({
549
553
  .alleditor .w-e-toolbar {
550
554
  flex-shrink: 0;
551
555
  position: relative;
556
+ /* 仅在 .alleditor 内部高于 UE 编辑区;不会逃逸盖住站点导航 */
552
557
  z-index: 20;
553
558
  overflow: visible !important;
554
559
  }
@@ -564,7 +569,18 @@ defineExpose({
564
569
  .alleditor .w-e-select-list,
565
570
  .alleditor .w-e-bar-item-menus-container,
566
571
  .alleditor .w-e-modal {
567
- z-index: 1000;
572
+ z-index: 30;
573
+ }
574
+
575
+ /* UE 编辑区整体压在工具栏之下(iframe 单独合成层易盖住邻居) */
576
+ .alleditor[data-engine='ue'] .alleditor__body {
577
+ z-index: 1;
578
+ }
579
+ .alleditor[data-engine='ue'] .alleditor__ue-wrap,
580
+ .alleditor[data-engine='ue'] .alleditor__ue,
581
+ .alleditor[data-engine='ue'] .alleditor-ue-engine {
582
+ position: relative;
583
+ z-index: 0;
568
584
  }
569
585
 
570
586
  /* iconfont 与工具栏 SVG 对齐 */
@@ -1,4 +1,4 @@
1
- import { Boot } from '@mnykj/alleditor'
1
+ import { Boot } from '@mnykj/alleditor-core'
2
2
 
3
3
  /** iconfont 项目 5252173;clearSvgStyle 会去掉 class,故用 unicode + font-family */
4
4
  const ICONFONT_STYLE =
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @mnykj/alleditor-vue
3
3
  * 桌面 Web 壳:AllEditor(wang + UE)与工具栏适配。
4
- * 引擎协议见 @mnykj/alleditor(与本包同版本锁步)。
4
+ * 引擎协议见 @mnykj/alleditor-core(与本包同版本锁步)。
5
5
  */
6
6
 
7
7
  export { default as AllEditor } from './AllEditor.vue'
@@ -40,7 +40,7 @@ export {
40
40
  export { stripJavascriptFromHtml } from './stripJavascriptFromHtml'
41
41
 
42
42
  // 协议工具从引擎包再导出,方便只装 vue 壳的调用方
43
- export type { AllEditorEngine } from '@mnykj/alleditor'
43
+ export type { AllEditorEngine } from '@mnykj/alleditor-core'
44
44
  export {
45
45
  ALLEDITOR_ENGINE_ATTR,
46
46
  ALLEDITOR_ENGINE_CLASS,
@@ -52,7 +52,7 @@ export {
52
52
  wrapEditorEngineHtml,
53
53
  ensureEditorEngineHtml,
54
54
  migrateLegacyEngineMarkers,
55
- } from '@mnykj/alleditor'
55
+ } from '@mnykj/alleditor-core'
56
56
 
57
57
  // 底层 wang 组件,便于单包安装
58
58
  export { Editor, Toolbar } from '@mnykj/alleditor-for-vue'