diff --git a/docs/src/docPages/commands.md b/docs/src/docPages/commands.md index 59492f46..56e5b6fd 100644 --- a/docs/src/docPages/commands.md +++ b/docs/src/docPages/commands.md @@ -1,5 +1,10 @@ # Commands +- menus +- buttons +- commands + + ## .clearContent() Clear the whole document. diff --git a/docs/src/docPages/installation.md b/docs/src/docPages/installation.md index d01f5088..1d486f2a 100644 --- a/docs/src/docPages/installation.md +++ b/docs/src/docPages/installation.md @@ -12,6 +12,8 @@ yarn add @tiptap/core @tiptap/starter-kit You can use it like this: +## Vanilla JavaScript + ```js import { Editor } from '@tiptap/core' import extensions from '@tiptap/starter-kit' @@ -21,4 +23,38 @@ new Editor({ extensions: extensions(), content: '
Hey there.
', }) -``` \ No newline at end of file +``` + +→ codesandbox + +## Vue.js + +```js +import { Editor } from '@tiptap/core' +import extensions from '@tiptap/starter-kit' + +new Editor({ + element: document.getElementsByClassName('element'), + extensions: extensions(), + content: 'Hey there.
', +}) +``` + +→ codesandbox + +## react + +```js +import { Editor } from '@tiptap/core' +import extensions from '@tiptap/starter-kit' + +new Editor({ + element: document.getElementsByClassName('element'), + extensions: extensions(), + content: 'Hey there.
', +}) +``` + +→ codesandbox + +## cdn? \ No newline at end of file diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index 930ecda0..b4717c0d 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -6,6 +6,8 @@ {{ $static.metadata.siteName }}