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

Different structure under UL unordered list #814

Closed
thomaskovo opened this issue Jul 19, 2021 · 1 comment
Closed

Different structure under UL unordered list #814

thomaskovo opened this issue Jul 19, 2021 · 1 comment
Labels
Milestone

Comments

@thomaskovo
Copy link

When manually written html ul the output is wrong

Steps to reproduce the behavior:

  1. In editor write any unordered list with li child tags
  2. On the same level add image so the input looks like this
<ul>
  <li>Pasting from Microsoft Word and Excel.</li>
  <li>Custom table selection, merge and split.</li>
  <li>Media embed, images upload.</li>
  <img src="https://www.w3schools.com/html/pic_trulli.jpg" height="333">
  <li>Can use CodeMirror, KaTeX.
    <ul>
      <li>And.. many other features :)</li>
    </ul>
  </li>
</ul>
  1. And the output is:
<ul>
  <li>Pasting from Microsoft Word and Excel.</li>
  <li>Custom table selection, merge and split.</li>
  <li>Media embed, images upload.</li>
  <li></li>
  <li>Can use CodeMirror, KaTeX.
    <ul>
      <li>And.. many other features :)</li>
    </ul>
  </li>
</ul>
  1. So the image tag is replaced with li and the image is not preset

Note:
tested on latest versions
"suneditor": "^2.41.3",
"suneditor-react": "^3.2.0",

@JiHong88 JiHong88 added the bug label Jul 22, 2021
@JiHong88 JiHong88 added this to the 2.42.0 milestone Jul 22, 2021
JiHong88 added a commit that referenced this issue Jul 27, 2021
@JiHong88
Copy link
Owner

The 2.42.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

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