Tui.editor: [WYSIWYG]: bold and italic text returns as a mix of html and markdown

Created on 17 Apr 2020  路  5Comments  路  Source: nhn/tui.editor

Describe the bug

In WYSIWYG mode, bold and italic text are output as a mix of html and markdown

To Reproduce

Steps to reproduce the behavior:

  1. Go to the basic editor: https://nhn.github.io/tui.editor/latest/tutorial-example01-editor-basic
  2. Select the WYSIWYG tab to put the editor into WYSIWYG editing mode.
  3. Enter any sentence (e.g. "abc");
  4. Select character 'b'
  5. Click Bold button to bold 'b'
  6. Click Italic button to italicize 'b'
  7. Click 'Markdown' tab to switch to markdown editor
  8. The text appears incorrectly as 'abc'

Expected behavior

abc

Screenshots

WYSIWYG mode
image

Switching to Markdown mode
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 81

Additional context

Same result (mix of html and markdown) returns when I call the API getMarkdown. Also, if selecting the whole line and format it in bold and italic, the result is correct.

Question inactive

Most helpful comment

@seonim-ryu thanks. well, at least there are some inconsistencies here. Since selecting a whole line and bold+italic works and returns***abc***, while mixed html and markdown are returned when only part of the line is selected.

All 5 comments

@bolaisacat The editor had this issue before. Because it's handled like this, it is correct to work in the current situation. Markdown syntax also allows html, so it's hard to see as a bug. 馃

@seonim-ryu thanks. well, at least there are some inconsistencies here. Since selecting a whole line and bold+italic works and returns***abc***, while mixed html and markdown are returned when only part of the line is selected.

I think that most of Markdown's users prefer to use only markdown in that case:

~ md
strongitalic
~

strongitalic

This issue has been automatically marked as inactive because there hasn鈥檛 been much going on it lately. It is going to be closed after 7 days. Thanks!

This issue will be closed due to inactivity. Thanks for your contribution!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

igasparetto picture igasparetto  路  4Comments

alirizaadiyahsi picture alirizaadiyahsi  路  4Comments

gincheong picture gincheong  路  4Comments

hellojsna picture hellojsna  路  4Comments

bricepepin picture bricepepin  路  3Comments