@mario9/tiptap-editor 0.1.3 → 0.1.5

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
@@ -37,6 +37,7 @@ const content = ref('')
37
37
  | `modelValue` | `string` | `''` | 编辑器内容(HTML 格式),支持 `v-model` 双向绑定 |
38
38
  | `placeholder` | `string` | `'请输入内容...'` | 编辑器占位符文本 |
39
39
  | `upload` | `(file: File) => Promise<string>` | Base64 转换 | 图片上传函数,返回图片 URL |
40
+ | `readonly` | `boolean` | `false` | 只读模式:隐藏工具栏,禁止编辑,图片控件仅保留下载,表格控件隐藏,数学公式不可编辑 |
40
41
 
41
42
  ## 自定义图片上传
42
43
 
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ declare type __VLS_Props = {
13
13
  modelValue?: string;
14
14
  placeholder?: string;
15
15
  upload?: UploadFn;
16
+ readonly?: boolean;
16
17
  };
17
18
 
18
19
  export declare const IconButton: DefineComponent<ExtractPropTypes< {
@@ -67,6 +68,7 @@ export declare const TiptapEditor: DefineComponent<__VLS_Props, {}, {}, {}, {},
67
68
  }>, {
68
69
  placeholder: string;
69
70
  modelValue: string;
71
+ readonly: boolean;
70
72
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
71
73
 
72
74
  export declare type UploadFn = (file: File) => Promise<string>;