zt-react-milkdown 0.1.8 → 0.1.9
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 +4 -0
- package/dist/index.cjs +21 -21
- package/dist/index.mjs +1744 -1736
- package/dist/src/core/createEditor.d.ts +2 -0
- package/dist/src/core/createEditor.d.ts.map +1 -1
- package/dist/src/plugins/custom/code-block/code-block-language-picker.d.ts.map +1 -1
- package/dist/src/plugins/custom/image/image-upload-dialog/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts +2 -0
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts +2 -0
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts.map +1 -1
- package/dist/src/plugins/custom/table/table-focus-actions.d.ts.map +1 -1
- package/dist/src/plugins/custom/table/table-more-actions.d.ts +2 -0
- package/dist/src/plugins/custom/table/table-more-actions.d.ts.map +1 -1
- package/dist/src/react/components/MilkdownEditor.d.ts.map +1 -1
- package/dist/src/react/hooks/useMilkdownEditor.d.ts +2 -0
- package/dist/src/react/hooks/useMilkdownEditor.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/src/react/hooks/useCloseOnGlobalScroll.d.ts +0 -5
- package/dist/src/react/hooks/useCloseOnGlobalScroll.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -88,6 +88,10 @@ export default function Demo() {
|
|
|
88
88
|
- 支持 `light` / `dark` 两种主题。
|
|
89
89
|
- 通过 `theme` 属性切换主题。
|
|
90
90
|
|
|
91
|
+
- 浮层隔离
|
|
92
|
+
- Dialog/Modal 类浮层与 Slash 命令菜单挂载到编辑器内部 `.zt-md-portal`,继承当前主题且不挂到 `document.body`,不受编辑区滚动裁剪。
|
|
93
|
+
- 选区工具栏子菜单、代码块语言选择器、表格操作等内容附属浮层挂载到 `.zt-md-editor` 内部 `.zt-md-content-portal`,会随 `maxHeight` 编辑区滚动视口裁剪。
|
|
94
|
+
|
|
91
95
|
## API
|
|
92
96
|
|
|
93
97
|
`MilkdownEditor` Props:
|