Skip to content

Commit

Permalink
add bold extension to preview
Browse files Browse the repository at this point in the history
  • Loading branch information
aldinezi committed Sep 7, 2023
1 parent feafe19 commit 812d278
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demos/src/Marks/Link/Vue/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</template>

<script>
import Bold from '@tiptap/extension-bold'
import Code from '@tiptap/extension-code'
import Document from '@tiptap/extension-document'
import Link from '@tiptap/extension-link'
Expand All @@ -36,13 +37,14 @@ export default {
Paragraph,
Text,
Code,
Bold,
Link.configure({
openOnClick: false,
}),
],
content: `
<p>
Wow, this editor has support for links to the whole <a href="https://en.wikipedia.org/wiki/World_Wide_Web">world wide web</a>. We tested a lot of URLs and I think you can add *every URL* you want. Isn’t that cool? Let’s try <a href="https://statamic.com/">another one!</a> Yep, seems to work.
Wow, this editor has support for links to the whole <a href="https://en.wikipedia.org/wiki/World_Wide_Web">world wide web</a>. We tested a lot of URLs and I think you can add *every URL* you want. Isn’t that cool?<strong>Let’s try <a href="https://statamic.com/">another one!</a></strong> Yep, seems to work.
</p>
<p>
By default every link will get a <code>rel="noopener noreferrer nofollow"</code> attribute. It’s configurable though.
Expand Down

0 comments on commit 812d278

Please sign in to comment.