@ctzhian/tiptap 1.8.1 → 1.8.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.
@@ -9,7 +9,7 @@ import "../index.css";
9
9
  var Reader = function Reader() {
10
10
  var _useTiptap = useTiptap({
11
11
  editable: true,
12
- // mode: 'markdown',
12
+ contentType: 'markdown',
13
13
  exclude: ['invisibleCharacters'],
14
14
  onSave: function onSave(editor) {
15
15
  console.log('============= markdown =============');
@@ -91,13 +91,12 @@ export type ExtensionRelativeProps = MentionExtensionProps & EditorFnProps & {
91
91
  extensions?: Extension[];
92
92
  editable: boolean;
93
93
  youtube?: Partial<YoutubeOptions>;
94
+ contentType?: UseEditorOptions['contentType'];
94
95
  };
95
96
  export type UseTiptapProps = {
96
97
  onSave?: (editor: Editor) => void;
97
98
  } & ExtensionRelativeProps;
98
- export type GetExtensionsProps = ExtensionRelativeProps & {
99
- contentType?: UseEditorOptions['contentType'];
100
- };
99
+ export type GetExtensionsProps = ExtensionRelativeProps;
101
100
  export type UseTiptapReturn = {
102
101
  editor: Editor;
103
102
  getMarkdown: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",