Media
Images
Insert images from a URL:
vue
<script setup lang="ts">
const onEditorReady = (options) => {
// Insert an image programmatically
options.editor.commands.setImage({ src: 'https://picsum.photos/600/300' })
}
</script>
<template>
<Tiptapify
:items="['bold', 'italic', '|', 'image', '|', 'undo', 'redo']"
@editor-ready="onEditorReady"
/>
</template>Images can also be inserted via the toolbar's image button, which opens a dialog to enter the image URL.
Videos (YouTube)
Embed YouTube videos by pasting a URL:
vue
<template>
<Tiptapify
:items="['bold', 'italic', '|', 'video', '|', 'undo', 'redo']"
placeholder="Paste a YouTube URL to embed a video..."
/>
</template>Paste any YouTube URL (e.g., https://www.youtube.com/watch?v=dQw4w9WgXcQ) into the editor and it will automatically convert to an embedded video.
Iframes
Embed any URL as an iframe:
vue
<template>
<Tiptapify
:items="['bold', 'italic', '|', 'iframe', '|', 'undo', 'redo']"
placeholder="Enter a URL to embed as iframe..."
/>
</template>Tables
Insert and edit tables:
vue
<template>
<Tiptapify
:items="['bold', 'italic', '|', 'table', '|', 'undo', 'redo']"
placeholder="Use the table button to insert a table..."
/>
</template>After inserting a table, you can:
- Add/remove rows and columns
- Select cells
- Delete the entire table
Links
Insert hyperlinks:
vue
<template>
<Tiptapify
:items="['bold', 'italic', '|', 'link', '|', 'undo', 'redo']"
placeholder="Select text and click link to add a hyperlink..."
/>
</template>Emoji
Insert emoji from the built-in picker with 10 categories:
vue
<template>
<Tiptapify
:items="['bold', 'italic', '|', 'emoji', '|', 'undo', 'redo']"
placeholder="Click the emoji button to insert an emoji..."
/>
</template>The emoji picker includes a search/filter input to find specific emoji quickly.
Special Characters (Charmap)
Insert special characters, arrows, Greek letters, math symbols, and more:
vue
<template>
<Tiptapify
:items="['bold', 'italic', '|', 'charmap', '|', 'undo', 'redo']"
placeholder="Click charmap to insert special characters..."
/>
</template>Categories include:
- Arrows
- Currency
- Greek Letters
- Math Symbols
- Miscellaneous
Combining Media Tools
A full-featured media toolbar:
vue
<template>
<Tiptapify
:items="[
'bold', 'italic', 'underline',
'|',
'link', 'image', 'video', 'iframe',
'|',
'emoji', 'charmap', 'table',
'|',
'undo', 'redo'
]"
placeholder="Full media toolbar..."
/>
</template>