Skip to content

A platform for community discussion. Free, open, simple.

DEV: Sort the video node view's attributes (#43434)

Renato Atiliodf5771497e7e
diff --git a/frontend/discourse/app/static/prosemirror/components/video-node-view.gjs b/frontend/discourse/app/static/prosemirror/components/video-node-view.gjs
index 8cd1b5211e1..941b153edd2 100644
--- a/frontend/discourse/app/static/prosemirror/components/video-node-view.gjs
+++ b/frontend/discourse/app/static/prosemirror/components/video-node-view.gjs
@@ -236,17 +236,17 @@ export default class VideoNodeView extends Component {
<template>
<video
+ aria-label={{@node.attrs.alt}}
class={{dConcatClass
"composer-video-node__video"
(unless this.isActivated "is-inactive")
}}
- aria-label={{@node.attrs.alt}}
- src={{if this.isPlaybackRequested this.source}}
- poster={{this.poster}}
+ contenteditable="false"
controls
playsinline
+ poster={{this.poster}}
preload="metadata"
- contenteditable="false"
+ src={{if this.isPlaybackRequested this.source}}
{{didInsert this.setupVideo}}
{{on "click" this.selectVideo}}
{{on "error" this.handlePlaybackError}}