We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As the title, video tag will be dropped in the setHTML method
Steps to reproduce the behavior:
<div> <h2>视频示例</h2> <video controls="controls" width="500" height="250"> <source src="https://xxxx.mp4" type="video/mp4" /></video> </div>
<Editor height="auto" language="zh-CN" hideModeSwitch={true} ref={fileEditorRef} onChange={handleMarkdownChange} />
can show the video tag
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
@Znuoya The bug has been fixed in v3.1.0. Thanks for wating. You can use video as below.
v3.1.0
const customHTMLRenderer = { htmlBlock: { video(node) { return [ { type: 'openTag', tagName: 'video', outerNewLine: true, attributes: node.attrs }, { type: 'html', content: node.childrenHTML }, { type: 'closeTag', tagName: 'video', outerNewLine: true }, ]; } } } <Editor height="auto" customHTMLRenderer={customHTMLRenderer} // ... />
Sorry, something went wrong.
No branches or pull requests
Describe the bug
As the title, video tag will be dropped in the setHTML method
To Reproduce
Steps to reproduce the behavior:
Expected behavior
can show the video tag
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: