Use this extension to render Video element. The extension uses Plyr as the playback interface.
Custom HTML attributes that should be added to the rendered HTML tag.
Video.configure({
HTMLAttributes: {
class: "my-custom-class",
},
});
If you need to internationalize this extension, you can use this option.
Video.configure({
dictionary: {
name: "Video",
inputSrc: "Enter or paste link",
inputAlt: "Video description",
inputTitle: "Video title",
videoOpen: "Open video",
videoUpload: "Upload video",
videoDelete: "Delete video",
},
});
Whether to set the video extension to inline mode.
Video.configure({
inline: false,
});
Insert a new video element.
editor.commands.setVideo({
src: "https://example.com",
title: "example title",
align: "center",
width: "100px"
});
:video{https://example.com}
:video{https://example.com}