zt-react-milkdown 0.1.13 → 0.1.15
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 +2 -1
- package/dist/index.cjs +22 -22
- package/dist/index.mjs +1987 -1970
- package/dist/src/plugins/custom/image/image-upload-dialog/index.d.ts.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -89,7 +89,8 @@ export default function Demo() {
|
|
|
89
89
|
- 通过 `theme` 属性切换主题。
|
|
90
90
|
|
|
91
91
|
- 浮层隔离
|
|
92
|
-
-
|
|
92
|
+
- Slash 命令菜单等编辑器级锚点浮层挂载到编辑器内部 `.zt-md-portal`,继承当前主题且不受编辑区滚动裁剪。
|
|
93
|
+
- 全屏 Dialog/Modal 类浮层挂载到 `document.body` 下的隔离宿主,宿主会同步编辑器主题类名与主题变量,避免被父级 `overflow` 或 `transform` 裁切。
|
|
93
94
|
- 选区工具栏子菜单、代码块语言选择器、表格操作等内容附属浮层挂载到 `.zt-md-editor` 内部 `.zt-md-content-portal`,会随 `maxHeight` 编辑区滚动视口裁剪。
|
|
94
95
|
|
|
95
96
|
## API
|