xiaodao-editor 0.1.18 → 0.1.19

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.ZH.md CHANGED
@@ -69,7 +69,7 @@ const doc = ref<DocumentData>({ blocks: [] })
69
69
  | `uploadImage` | `UploadImageHandler` | 内存内 mock | 图片上传钩子;签名:`(name, file, controller, onProgress) => Promise<ImageUploadResult>`。要持久化文档**必须**提供此 prop(默认 mock 使用不可序列化的 `blob:` URL)。 |
70
70
  | `width` | `string \| number` | `undefined` | 可选:编辑器宽度。数字按 CSS px 解析;字符串直接使用(如 `'800px'`、`'100%'`)。未设置时默认撑满容器(`width: 100%`)。 |
71
71
  | `height` | `string \| number` | `undefined` | 可选:编辑器高度。设置后内容区域会在编辑器**内部**滚动,不再无限向下生长;未设置时编辑器随内容扩展,由宿主页面接管滚动。 |
72
- | `toolbarPosition` | `'auto' \| 'top' \| 'bottom' \| 'float'` | `'auto'` | 工具栏 / 操作栏的位置。`'auto'` = 桌面端自动顶栏、移动端自动底栏(位于虚拟键盘上方)。`'float'`(仅桌面端)隐藏 `FixedToolbar`,改用跟随文本选区的浮动工具栏(HoverToolbar);移动端自动回退为 `FixedToolbar`。 |
72
+ | `toolbarPosition` | `'auto' \| 'top' \| 'bottom' \| 'float'` | `'auto'` | 工具栏 / 操作栏的位置。`'auto'` = 桌面端自动顶栏、移动端自动底栏(位于虚拟键盘上方)。`'float'`(仅桌面端)隐藏 `FixedToolbar`,改用跟随文本/表格选区的浮动工具栏(HoverToolbar);移动端自动回退为 `FixedToolbar`。 |
73
73
 
74
74
  ### Emits 事件
75
75
 
package/README.md CHANGED
@@ -64,7 +64,7 @@ by an **extension**, so the core never switches on a block type.
64
64
  `toolbarPosition` prop: `'auto'` (default — top on desktop, bottom on
65
65
  mobile), `'top'` (always top), `'bottom'` (always bottom), or `'float'`
66
66
  (desktop only — hides the FixedToolbar and shows a floating selection
67
- toolbar that follows the text selection; falls back to the FixedToolbar
67
+ toolbar that follows the text/table selection; falls back to the FixedToolbar
68
68
  on mobile). Menus (PlusMenu / BlockSettingsMenu) open downward when the
69
69
  toolbar is at the top.
70
70
  - **Sizing & internal scrolling** — constrain the editor with `width`