add more extensions to export example
This commit is contained in:
@@ -20,6 +20,22 @@
|
|||||||
<icon name="italic" />
|
<icon name="italic" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="menubar__button"
|
||||||
|
:class="{ 'is-active': isActive.strike() }"
|
||||||
|
@click="commands.strike"
|
||||||
|
>
|
||||||
|
<icon name="strike" />
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="menubar__button"
|
||||||
|
:class="{ 'is-active': isActive.underline() }"
|
||||||
|
@click="commands.underline"
|
||||||
|
>
|
||||||
|
<icon name="underline" />
|
||||||
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="menubar__button"
|
class="menubar__button"
|
||||||
:class="{ 'is-active': isActive.code() }"
|
:class="{ 'is-active': isActive.code() }"
|
||||||
@@ -76,6 +92,14 @@
|
|||||||
<icon name="ol" />
|
<icon name="ol" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="menubar__button"
|
||||||
|
:class="{ 'is-active': isActive.blockquote() }"
|
||||||
|
@click="commands.blockquote"
|
||||||
|
>
|
||||||
|
<icon name="quote" />
|
||||||
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="menubar__button"
|
class="menubar__button"
|
||||||
:class="{ 'is-active': isActive.code_block() }"
|
:class="{ 'is-active': isActive.code_block() }"
|
||||||
@@ -84,6 +108,27 @@
|
|||||||
<icon name="code" />
|
<icon name="code" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="menubar__button"
|
||||||
|
@click="commands.horizontal_rule"
|
||||||
|
>
|
||||||
|
<icon name="hr" />
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="menubar__button"
|
||||||
|
@click="commands.undo"
|
||||||
|
>
|
||||||
|
<icon name="undo" />
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="menubar__button"
|
||||||
|
@click="commands.redo"
|
||||||
|
>
|
||||||
|
<icon name="redo" />
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</editor-menu-bar>
|
</editor-menu-bar>
|
||||||
|
|
||||||
@@ -118,6 +163,7 @@ import {
|
|||||||
CodeBlock,
|
CodeBlock,
|
||||||
HardBreak,
|
HardBreak,
|
||||||
Heading,
|
Heading,
|
||||||
|
HorizontalRule,
|
||||||
OrderedList,
|
OrderedList,
|
||||||
BulletList,
|
BulletList,
|
||||||
ListItem,
|
ListItem,
|
||||||
@@ -127,6 +173,8 @@ import {
|
|||||||
Code,
|
Code,
|
||||||
Italic,
|
Italic,
|
||||||
Link,
|
Link,
|
||||||
|
Strike,
|
||||||
|
Underline,
|
||||||
History,
|
History,
|
||||||
} from 'tiptap-extensions'
|
} from 'tiptap-extensions'
|
||||||
|
|
||||||
@@ -145,6 +193,7 @@ export default {
|
|||||||
new CodeBlock(),
|
new CodeBlock(),
|
||||||
new HardBreak(),
|
new HardBreak(),
|
||||||
new Heading({ levels: [1, 2, 3] }),
|
new Heading({ levels: [1, 2, 3] }),
|
||||||
|
new HorizontalRule(),
|
||||||
new ListItem(),
|
new ListItem(),
|
||||||
new OrderedList(),
|
new OrderedList(),
|
||||||
new TodoItem(),
|
new TodoItem(),
|
||||||
@@ -153,6 +202,8 @@ export default {
|
|||||||
new Bold(),
|
new Bold(),
|
||||||
new Code(),
|
new Code(),
|
||||||
new Italic(),
|
new Italic(),
|
||||||
|
new Strike(),
|
||||||
|
new Underline(),
|
||||||
new History(),
|
new History(),
|
||||||
],
|
],
|
||||||
content: `
|
content: `
|
||||||
|
|||||||
Reference in New Issue
Block a user