docs: update content

This commit is contained in:
Philipp Kühn
2021-05-06 18:41:22 +02:00
parent 21384fc7a6
commit 00d8958b72
49 changed files with 180 additions and 122 deletions

View File

@@ -71,7 +71,7 @@
<script>
import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
import { content } from './content.js'
export default {
@@ -87,7 +87,9 @@ export default {
mounted() {
this.editor = new Editor({
extensions: defaultExtensions(),
extensions: [
StarterKit,
],
content,
editorProps: {
attributes: {

View File

@@ -22,7 +22,7 @@
<script>
import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
import Collaboration from '@tiptap/extension-collaboration'
import CollaborationCursor from '@tiptap/extension-collaboration-cursor'
import TaskList from '@tiptap/extension-task-list'
@@ -91,7 +91,9 @@ export default {
this.editor = new Editor({
extensions: [
...defaultExtensions().filter(extension => extension.name !== 'history'),
StarterKit.configure({
history: false,
}),
Highlight,
TaskList,
TaskItem,

View File

@@ -1,6 +1,6 @@
import React from 'react'
import { useEditor, EditorContent } from '@tiptap/react'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
import './styles.scss'
const MenuBar = ({ editor }) => {
@@ -125,7 +125,7 @@ const MenuBar = ({ editor }) => {
export default () => {
const editor = useEditor({
extensions: [
...defaultExtensions(),
StarterKit,
],
content: `
<h2>

View File

@@ -71,7 +71,7 @@
<script>
import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
export default {
components: {
@@ -87,7 +87,7 @@ export default {
mounted() {
this.editor = new Editor({
extensions: [
...defaultExtensions(),
StarterKit,
],
content: `
<h2>

View File

@@ -44,7 +44,7 @@
<script>
import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
import TextAlign from '@tiptap/extension-text-align'
import Highlight from '@tiptap/extension-highlight'
@@ -62,7 +62,7 @@ export default {
mounted() {
this.editor = new Editor({
extensions: [
...defaultExtensions(),
StarterKit,
TextAlign,
Highlight,
],

View File

@@ -6,7 +6,7 @@
<script>
import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
import Highlight from '@tiptap/extension-highlight'
import Typography from '@tiptap/extension-typography'
@@ -41,7 +41,7 @@ export default {
</p>
`,
extensions: [
...defaultExtensions(),
StarterKit,
Highlight,
Typography,
],

View File

@@ -5,13 +5,13 @@ import {
BubbleMenu,
FloatingMenu,
} from '@tiptap/react'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
import './styles.scss'
export default () => {
const editor = useEditor({
extensions: [
...defaultExtensions(),
StarterKit,
],
content: `
<p>

View File

@@ -45,7 +45,7 @@ import {
BubbleMenu,
FloatingMenu,
} from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
export default {
components: {
@@ -63,7 +63,7 @@ export default {
mounted() {
this.editor = new Editor({
extensions: [
...defaultExtensions(),
StarterKit,
],
content: `
<p>

View File

@@ -64,7 +64,7 @@
<script>
import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import StarterKit from '@tiptap/starter-kit'
import Table from '@tiptap/extension-table'
import TableRow from '@tiptap/extension-table-row'
import TableCell from '@tiptap/extension-table-cell'
@@ -109,7 +109,7 @@ export default {
mounted() {
this.editor = new Editor({
extensions: [
...defaultExtensions(),
StarterKit,
Table.configure({
resizable: true,
}),