Skip to content
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

customHTMLRenderer sucks in other html after switch from wysiwyg #1862

Closed
mirkin opened this issue Oct 8, 2021 · 0 comments
Closed

customHTMLRenderer sucks in other html after switch from wysiwyg #1862

mirkin opened this issue Oct 8, 2021 · 0 comments
Labels
Milestone

Comments

@mirkin
Copy link

mirkin commented Oct 8, 2021

Outline

Keep it simple and add a div to your markdown and add block renderer. When you switch back from wysiwyg it starts to take the other markdown and put it into the div.

To Reproduce

<div></div>

stuff

more stuff
div(node) {
                            return [{
                                    type: 'openTag',
                                    tagName: 'div',
                                    outerNewLine: true,
                                    attributes: node.attrs
                                },
                                {
                                    type: 'html',
                                    content: node.childrenHTML
                                },
                                {
                                    type: 'closeTag',
                                    tagName: 'div',
                                    outerNewLine: true
                                },
                            ];

Expected behavior

switch from wysiwyg and back and no change but it does changer and the div gobbles up the rest of the page.

<div></div>stuff

more stuff

Then

<div>stuff</div>more stuff

Then

<div>stuff more stuff</div>
@mirkin mirkin added the Bug label Oct 8, 2021
@js87zz js87zz added this to the v3.1.3 milestone Feb 10, 2022
@js87zz js87zz closed this as completed Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants