fix: add vimeo emded URL to extract hash properly

This commit is contained in:
raizasafeel
2026-02-17 11:36:31 +05:30
parent 22eb8b9f3f
commit 8453226f29

View File

@@ -170,7 +170,8 @@ export function getEditorTools() {
},
vimeo: {
regex: /^(?:http[s]?:\/\/)?(?:www\.)?vimeo\.com\/(\d+)(?:\/([a-zA-Z0-9]+))?(?:\?[^\s]*)?$/,
embedUrl: '<%= remote_id %>',
embedUrl:
'https://player.vimeo.com/video/<%= remote_id %>',
html: `<div class="video-player" data-plyr-provider="vimeo"></div>`,
id: ([id, hash]) => (hash ? `${id}?h=${hash}` : id),
},