diff --git a/docs/src/docPages/api/extensions/suggestion.md b/docs/src/docPages/api/extensions/suggestion.md new file mode 100644 index 00000000..af95f298 --- /dev/null +++ b/docs/src/docPages/api/extensions/suggestion.md @@ -0,0 +1,7 @@ +# Suggestion + +TODO + +- mentions +- hashtags +- emojis diff --git a/docs/src/docPages/api/nodes/table.md b/docs/src/docPages/api/nodes/table.md new file mode 100644 index 00000000..e29c9d18 --- /dev/null +++ b/docs/src/docPages/api/nodes/table.md @@ -0,0 +1,3 @@ +# Table + + TODO diff --git a/docs/src/docPages/guide/collaborative-editing.md b/docs/src/docPages/guide/collaborative-editing.md index 29ad3b94..90e99c00 100644 --- a/docs/src/docPages/guide/collaborative-editing.md +++ b/docs/src/docPages/guide/collaborative-editing.md @@ -244,7 +244,7 @@ server.listen() ``` ### Send it to an API -To pass the updated documents to an API, or to a database, you can use the `onChange` hook, which is executed when a document changes. With the `debounce` setting you can slow down the execution, with the `debounceMaximum` setting you can make sure the content is sent at least every few seconds: +To pass the updated documents to an API, or to a database, you can use the `onChange` hook, which is executed when a document changes. With the `debounce` setting you can slow down the execution, with the `debounceMaxWait` setting you can make sure the content is sent at least every few seconds: ```js import { Server } from '@hocuspocus/server' @@ -254,7 +254,7 @@ const server = Server.configure({ debounce: 2000, // maximum time to wait (in milliseconds) - debounceMaximum: 10000, + debounceMaxWait: 10000, // executed when the document is changed onChange(data) { diff --git a/docs/src/docPages/guide/node-views.md b/docs/src/docPages/guide/node-views.md index ee539221..6c2f90ad 100644 --- a/docs/src/docPages/guide/node-views.md +++ b/docs/src/docPages/guide/node-views.md @@ -1,4 +1,4 @@ -# Advanced node views +# Complex node views ## toc diff --git a/docs/src/links.yaml b/docs/src/links.yaml index 8101f44c..3908471b 100644 --- a/docs/src/links.yaml +++ b/docs/src/links.yaml @@ -51,7 +51,7 @@ link: /guide/store-content - title: Build extensions link: /guide/build-extensions - - title: Define node views + - title: Complex node views link: /guide/node-views draft: true - title: Working with TypeScript @@ -91,6 +91,9 @@ link: /api/nodes/ordered-list - title: Paragraph link: /api/nodes/paragraph + - title: Table + link: /api/nodes/table + draft: true - title: TaskList link: /api/nodes/task-list - title: TaskItem @@ -135,6 +138,9 @@ link: /api/extensions/gapcursor - title: History link: /api/extensions/history + - title: Suggestion + link: /api/extensions/suggestion + draft: true - title: TextAlign link: /api/extensions/text-align - title: Typography