add new structure (without content)
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
# Commands
|
# Commands
|
||||||
|
|
||||||
|
- menus
|
||||||
|
- buttons
|
||||||
|
- commands
|
||||||
|
|
||||||
|
|
||||||
## .clearContent()
|
## .clearContent()
|
||||||
|
|
||||||
Clear the whole document.
|
Clear the whole document.
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ yarn add @tiptap/core @tiptap/starter-kit
|
|||||||
|
|
||||||
You can use it like this:
|
You can use it like this:
|
||||||
|
|
||||||
|
## Vanilla JavaScript
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { Editor } from '@tiptap/core'
|
import { Editor } from '@tiptap/core'
|
||||||
import extensions from '@tiptap/starter-kit'
|
import extensions from '@tiptap/starter-kit'
|
||||||
@@ -22,3 +24,37 @@ new Editor({
|
|||||||
content: '<p>Hey there.</p>',
|
content: '<p>Hey there.</p>',
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
→ codesandbox
|
||||||
|
|
||||||
|
## Vue.js
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { Editor } from '@tiptap/core'
|
||||||
|
import extensions from '@tiptap/starter-kit'
|
||||||
|
|
||||||
|
new Editor({
|
||||||
|
element: document.getElementsByClassName('element'),
|
||||||
|
extensions: extensions(),
|
||||||
|
content: '<p>Hey there.</p>',
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
→ codesandbox
|
||||||
|
|
||||||
|
## react
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { Editor } from '@tiptap/core'
|
||||||
|
import extensions from '@tiptap/starter-kit'
|
||||||
|
|
||||||
|
new Editor({
|
||||||
|
element: document.getElementsByClassName('element'),
|
||||||
|
extensions: extensions(),
|
||||||
|
content: '<p>Hey there.</p>',
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
→ codesandbox
|
||||||
|
|
||||||
|
## cdn?
|
||||||
@@ -6,6 +6,8 @@
|
|||||||
{{ $static.metadata.siteName }}
|
{{ $static.metadata.siteName }}
|
||||||
</g-link>
|
</g-link>
|
||||||
<div>
|
<div>
|
||||||
|
Algolia Search |
|
||||||
|
Sponsor
|
||||||
<github-button
|
<github-button
|
||||||
href="https://github.com/scrumpy/tiptap"
|
href="https://github.com/scrumpy/tiptap"
|
||||||
data-show-count="true"
|
data-show-count="true"
|
||||||
|
|||||||
@@ -5,12 +5,39 @@
|
|||||||
- title: Installation
|
- title: Installation
|
||||||
link: /installation/
|
link: /installation/
|
||||||
|
|
||||||
- title: Core Concepts
|
- title: Guide
|
||||||
|
items:
|
||||||
|
- title: First Steps
|
||||||
|
link: /first-steps/
|
||||||
|
- title: Configuration
|
||||||
|
link: /configuration/
|
||||||
|
- title: Build your editor
|
||||||
|
link: /build-your-editor/
|
||||||
|
- title: Custom styling
|
||||||
|
link: /custom-styling/
|
||||||
|
- title: Get content
|
||||||
|
link: /get-content/
|
||||||
|
- title: "Advanced nodes"
|
||||||
|
link: /advanced-notes/
|
||||||
|
|
||||||
|
- title: Vue
|
||||||
|
items:
|
||||||
|
- title: Basic Example
|
||||||
|
link: /basic-example/
|
||||||
|
- title: Advanced Example
|
||||||
|
link: /advanced-vue-example/
|
||||||
|
- title: Render Vue Components
|
||||||
|
link: /render-vue-components/
|
||||||
|
|
||||||
|
- title: React
|
||||||
|
items:
|
||||||
|
- title: React
|
||||||
|
link: /react/
|
||||||
|
- title: Render React Components
|
||||||
|
link: /advanced-react-example/
|
||||||
|
|
||||||
|
- title: API
|
||||||
items:
|
items:
|
||||||
- title: Renderless
|
|
||||||
link: /renderless/
|
|
||||||
- title: Schema
|
|
||||||
link: /schema/
|
|
||||||
- title: Editor
|
- title: Editor
|
||||||
link: /editor/
|
link: /editor/
|
||||||
- title: Extensions
|
- title: Extensions
|
||||||
@@ -19,15 +46,5 @@
|
|||||||
link: /commands/
|
link: /commands/
|
||||||
- title: Events
|
- title: Events
|
||||||
link: /events/
|
link: /events/
|
||||||
|
- title: Schema
|
||||||
- title: Vue
|
link: /schema/
|
||||||
items:
|
|
||||||
- title: Basic Example
|
|
||||||
link: /basic-example/
|
|
||||||
- title: Advanced Example
|
|
||||||
link: /advanced-example/
|
|
||||||
|
|
||||||
- title: React
|
|
||||||
items:
|
|
||||||
- title: React
|
|
||||||
link: /react/
|
|
||||||
Reference in New Issue
Block a user