Commit 55471712 by Яков

fix video

parent 2d3d2a93
{
"name": "react-ag-qeditor",
"version": "1.1.28",
"version": "1.1.29",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
......@@ -193,6 +193,10 @@ const ResizableVideoView = ({ editor, node, updateAttributes, getPos, selected }
height: node.attrs.height ? `${node.attrs.height}px` : undefined,
}
useEffect(() => {
if (videoRef.current) videoRef.current.load()
}, [node.attrs.src])
return (
<NodeViewWrapper
ref={outerRef}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment