You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`defaultValue`|`JSONContent` or `string`| The default value to use for the editor. |[`defaultEditorContent`](https://github.com/steven-tey/novel/blob/main/packages/core/src/ui/editor/default-content.tsx)|
66
-
|`extensions`|`Extension[]`| A list of extensions to use for the editor, in addition to the [default Novel extensions](https://github.com/steven-tey/novel/blob/main/packages/core/src/ui/editor/extensions/index.tsx). |`[]`|
67
-
|`editorProps`|`EditorProps`| Props to pass to the underlying Tiptap editor, in addition to the [default Novel editor props](https://github.com/steven-tey/novel/blob/main/packages/core/src/ui/editor/props.ts). |`{}`|
68
-
|`onUpdate`|`(editor?: Editor) => void`| A callback function that is called whenever the editor is updated. |`() => {}`|
69
-
|`onDebouncedUpdate`|`(editor?: Editor) => void`| A callback function that is called whenever the editor is updated, but only after the defined debounce duration. |`() => {}`|
70
-
|`debounceDuration`|`number`| The duration (in milliseconds) to debounce the `onDebouncedUpdate` callback. |`750`|
71
-
|`storageKey`|`string`| The key to use for storing the editor's value in local storage. |`novel__content`|
72
-
|`disableLocalStorage`|`boolean`| Enabling this option will prevent read/write content from/to local storage. |`false`|
73
-
74
-
> **Note**: Make sure to define an API endpoint that matches the `completionApi` prop (default is `/api/generate`). This is needed for the AI autocompletions to work. Here's an example: https://github.com/steven-tey/novel/blob/main/apps/web/app/api/generate/route.ts
75
-
76
-
Here's an example application: https://github.com/steven-tey/novella
77
-
78
40
## Deploy Your Own
79
41
80
42
You can deploy your own version of Novel to Vercel with one click:
@@ -94,7 +56,6 @@ To run the app locally, you can run the following commands:
0 commit comments