refactor: video text

This commit is contained in:
DIYgod 2023-05-16 01:13:31 +01:00
parent b3eba8cacd
commit a3b3d1c9c7
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -406,7 +406,11 @@ export default function SubdomainEditor() {
} else if (file.type.startsWith("video/")) {
view?.dispatch(
view.state.replaceSelection(
`\n<video>\n\t<source src=\"${key}\" type=\"${file.type}\" />\n</video>\n`,
`
<video>
<source src="${key}" type="${file.type}" />
</video>
`,
),
)
} else if (file.type === "text/plain") {