-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
Help 我自定义了一个新元素:带有自定义属性的video,但是setHtml(‘<video></video>’)时,编辑器使用getHtml()获取到的还是编辑器自带的video标签元素 #520
Comments
`var { Boot, DomEditor } = window.wangEditor; function widthTest(editor) { function renderTest(elem, children, editor) { const renderElemConfTest = { function testToHtml(elem, childrenHtml) { const elemToHtmlConfTest = { function parseTestHtml(domElem, children, editor) { const parseHtmlConfTest = { var videoModule = { Boot.registerModule(videoModule); // 不生效 // 生效 |
必须要使用div来包裹video标签么?我要兼容之前的数据,之前生成的html中没有用div包裹video,是直接使用的video标签,这种情况下有什么解决方法呢? |
借用float-image插件的方式覆盖掉原有video标签可以吗 |
|
问题描述
我自定义了一个新元素:带有自定义属性的video,但是setHtml(‘’)时,编辑器使用getHtml()获取到的还是编辑器自带的video标签元素,但是使用editor.insertNode()获取到的html就是正确的
wangEditor 版本
5.6.27
是否查阅了文档 ?
(文档链接 https://cycleccc.github.io/docs/ )
是
最小成本的复现步骤
(请告诉我们,如何最快的复现该问题?)
The text was updated successfully, but these errors were encountered: