Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lib
react-ag-qeditor
Commits
55471712
Commit
55471712
authored
Feb 05, 2026
by
Яков
Browse files
fix video
parent
2d3d2a93
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
55471712
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.1.2
8
"
,
"version"
:
"1.1.2
9
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/extensions/Video.js
View file @
55471712
...
@@ -193,6 +193,10 @@ const ResizableVideoView = ({ editor, node, updateAttributes, getPos, selected }
...
@@ -193,6 +193,10 @@ const ResizableVideoView = ({ editor, node, updateAttributes, getPos, selected }
height
:
node
.
attrs
.
height
?
`
${
node
.
attrs
.
height
}
px`
:
undefined
,
height
:
node
.
attrs
.
height
?
`
${
node
.
attrs
.
height
}
px`
:
undefined
,
}
}
useEffect
(()
=>
{
if
(
videoRef
.
current
)
videoRef
.
current
.
load
()
},
[
node
.
attrs
.
src
])
return
(
return
(
<
NodeViewWrapper
<
NodeViewWrapper
ref
=
{
outerRef
}
ref
=
{
outerRef
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment