@allendolgonos/tiptap-extension-loom
v1.0.0
Published
a loom embed extension for tiptap
Maintainers
Readme
@allendolgonos/tiptap-extension-loom
Introduction
This project is a tiptap extension for embedding Loom videos in your content. It works with the Tiptap editor, which is a headless wrapper around ProseMirror – a toolkit for building rich text WYSIWYG editors.
Official Documentation
For general Tiptap usage and setup, please refer to the Tiptap website.
Installation
npm install @allendolgonos/tiptap-extension-loomUsage
import { Loom } from '@allendolgonos/tiptap-extension-loom';
const editor = new Editor({
extensions: [Loom],
});Configuration Options
The following options can be passed to Loom.configure along with their default values:
addPasteHandler:true– Enable or disable handling of pasted Loom URLs.hideOwner:false– Hide the owner information on the video.hideTitle:false– Hide the title of the video.hideSharingControls:false– Hide the sharing controls on the video.HTMLAttributes:{}– Set additional HTML attributes for the player.inline:false– Enable or disable inline video display.width:640– Set the width of the video player.height:360– Set the height of the video player.
License
This project is open-sourced software licensed under the MIT license.
