Commit 55471712 by Яков

fix video

parent 2d3d2a93
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.1.28", "version": "1.1.29",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -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}
......
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