@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.
- package/dist/Editor/demo.js +1 -1
- package/dist/type/index.d.ts +2 -3
- package/package.json +1 -1
package/dist/Editor/demo.js
CHANGED
|
@@ -9,7 +9,7 @@ import "../index.css";
|
|
|
9
9
|
var Reader = function Reader() {
|
|
10
10
|
var _useTiptap = useTiptap({
|
|
11
11
|
editable: true,
|
|
12
|
-
|
|
12
|
+
contentType: 'markdown',
|
|
13
13
|
exclude: ['invisibleCharacters'],
|
|
14
14
|
onSave: function onSave(editor) {
|
|
15
15
|
console.log('============= markdown =============');
|
package/dist/type/index.d.ts
CHANGED
|
@@ -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;
|