docs: update nodes examples

This commit is contained in:
Hans Pagel
2021-10-19 21:18:32 +02:00
parent 4b1848917d
commit 71077f6d62
12 changed files with 84 additions and 19 deletions

View File

@@ -1,7 +1,10 @@
<template>
<div v-if="editor">
<button @click="editor.chain().focus().toggleCodeBlock().run()" :class="{ 'is-active': editor.isActive('codeBlock') }">
code block
toggleCodeBlock
</button>
<button @click="editor.chain().focus().setCodeBlock().run()" :disabled="editor.isActive('codeBlock')">
setCodeBlock
</button>
<editor-content :editor="editor" />