diff --git a/examples/views/Basic.vue b/examples/views/Basic.vue index 68a8157d..1de1e3b3 100644 --- a/examples/views/Basic.vue +++ b/examples/views/Basic.vue @@ -37,6 +37,8 @@ import { TrailingNode, FormatClear, History, + Print, + Fullscreen, } from 'element-tiptap'; export default { @@ -70,6 +72,8 @@ export default { new TrailingNode(), new FormatClear(), new History(), + new Print(), + new Fullscreen(), ], content: ` diff --git a/examples/views/Preview.vue b/examples/views/Preview.vue index 67cd9130..85e68542 100644 --- a/examples/views/Preview.vue +++ b/examples/views/Preview.vue @@ -3,16 +3,11 @@
-
-

Preview

-
-
-

HTML

{{ output.html }}
@@ -44,6 +39,7 @@ import { Indent, LineHeight, TrailingNode, + Preview, History, } from 'element-tiptap'; @@ -68,54 +64,15 @@ export default { new OrderedList(), new Indent(), new TrailingNode(), + new Preview(), new History(), ], + content: '

Test Text

You can input to see the output

And preview the content with the Preview Menu Button

', + output: { - json: { - type: 'doc', - content: [ - { - type: 'heading', - attrs: { - textAlign: null, - indent: 0, - lineHeight: null, - level: 2 - }, - content: [ - { - type: 'text', - text: 'Preview' - } - ] - }, - { - type: 'paragraph', - attrs: { - textAlign: null, - indent: 0, - lineHeight: null - }, - content: [ - { - type: 'text', - marks: [ - { - type: 'bold' - } - ], - text: 'This is a Test Text. ' - }, - { - type: 'text', - text: 'You can input to see the output...' - } - ] - } - ] - }, - html: '

Test Text

You can input to see the output...

', + json: '', + html: '', }, }; },