JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.77k stars 316 forks source link

Problem with `Line Height` #1394

Closed MateuszPisarek closed 7 months ago

MateuszPisarek commented 7 months ago

Describe the bug If I change the line height and then select another option, e.g. show HTML code, the line height change disappears.

To Reproduce Steps to reproduce the behavior:

  1. Write two lines of text (two paragraphs <p></p>)
  2. Change the line height to 2
  3. Click on Code view
  4. Click on Code View again to return to editing
  5. Click on Code view
  6. Information about the height of the line disappeared

Expected behavior The line height is preserved despite other operations in the editor

Screenshots 1 2 3

Desktop :

Additional context The editor is loaded from:

<link href="https://cdn.jsdelivr.net/npm/suneditor@latest/dist/css/suneditor.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/suneditor@latest/dist/suneditor.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/suneditor@latest/src/lang/ko.js"></script>
JiHong88 commented 7 months ago

Version 2.46.2 has been deploied. Thank you.