diff --git a/docs/gridsome.client.js b/docs/gridsome.client.js index 65d2f3f2..6c5bcc17 100644 --- a/docs/gridsome.client.js +++ b/docs/gridsome.client.js @@ -1,5 +1,13 @@ export default function (Vue, options, context) { + Vue.mixin({ + data() { + return { + cwd: options.cwd, + } + }, + }) + context.router.afterEach(to => { if (to.hash) { setTimeout(() => { diff --git a/docs/gridsome.server.js b/docs/gridsome.server.js index 24b1b86b..214db742 100644 --- a/docs/gridsome.server.js +++ b/docs/gridsome.server.js @@ -52,6 +52,10 @@ const globby = require('globby') module.exports = function (api) { + api.setClientOptions({ + cwd: process.cwd(), + }) + api.loadSource(({ addCollection }) => { const appCollection = addCollection({ typeName: 'Package' }) diff --git a/docs/src/demos/Examples/CollaborativeEditing/index.vue b/docs/src/demos/Examples/CollaborativeEditing/index.vue index a52ec0d1..d5bf961c 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/index.vue @@ -161,7 +161,7 @@ export default { } - diff --git a/docs/src/docPages/api/extensions/image.md b/docs/src/docPages/api/extensions/image.md index 3c463ea5..1c3c9132 100644 --- a/docs/src/docPages/api/extensions/image.md +++ b/docs/src/docPages/api/extensions/image.md @@ -9,8 +9,13 @@ npm install @tiptap/extension-image yarn add @tiptap/extension-image ``` +## Settings +| Option | Type | Default | Description | +| ------ | ------- | ------- | ------------------------ | +| inline | boolean | false | Renders the node inline. | + ## Source code [packages/extension-image/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-image/) ## Usage - + diff --git a/docs/src/docPages/api/extensions/task-list.md b/docs/src/docPages/api/extensions/task-list.md new file mode 100644 index 00000000..44b8d962 --- /dev/null +++ b/docs/src/docPages/api/extensions/task-list.md @@ -0,0 +1,31 @@ +# TaskList +This extension enables you to use task lists in the editor. They are rendered as `