From 80c2f858382d4e78ca9acb5e8eeab8ed97b5ff4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20K=C3=BChn?= Date: Fri, 3 Dec 2021 21:21:16 +0100 Subject: [PATCH] demos: add more extensions to all demo --- demos/src/Experiments/All/Vue/index.vue | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/demos/src/Experiments/All/Vue/index.vue b/demos/src/Experiments/All/Vue/index.vue index 02455a39..966f8b2f 100644 --- a/demos/src/Experiments/All/Vue/index.vue +++ b/demos/src/Experiments/All/Vue/index.vue @@ -34,6 +34,11 @@ import TableHeader from '@tiptap/extension-table-header' import Image from '@tiptap/extension-image' import TaskList from '@tiptap/extension-task-list' import TaskItem from '@tiptap/extension-task-item' +import Placeholder from '@tiptap/extension-placeholder' +import TextAlign from '@tiptap/extension-text-align' +import TextStyle from '@tiptap/extension-text-style' +import Color from '@tiptap/extension-color' +import Highlight from '@tiptap/extension-highlight' import lowlight from 'lowlight' @@ -89,6 +94,16 @@ export default { Image, TaskList, TaskItem, + Placeholder.configure({ + placeholder: 'This is a placeholder …', + includeChildren: true, + }), + TextAlign.configure({ + types: ['heading', 'paragraph'], + }), + TextStyle, + Color, + Highlight.configure({ multicolor: true }), ], content: `

@@ -127,6 +142,17 @@ export default {
— Mom +

Text align

+

first paragraph

+

second paragraph

+

Color

+

Oh, for some reason that’s purple.

+

Highlight

+

This isn’t highlighted.

+

But that one is.

+

And this is highlighted too, but in a different color.

+

And this one has a data attribute.

+

Task list