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

Formatted WYSIWYG Viewer Not clearing view when HTML Header Tags appear after unformatted text. #3291

Open
scrub-dev opened this issue Jan 17, 2025 · 0 comments
Labels

Comments

@scrub-dev
Copy link

scrub-dev commented Jan 17, 2025

Describe the bug

A clear and concise description of what the bug is.
When Entering text and then adding a header html tag ie: <h1></h1> the viewer interprets each key press while entering text between the header tags as a new header.

For example, typing:

test

would display

t

te

tes

test

.

The variable it is using remains valid to the original inputted text and pasting the example text in yields the correctly formatted view.
When swapping to just markdown, the h1 tags are removed but the WYSIWYG Viewer still displays the incorrectly formatted text.

Problem is present on demo as well.

To Reproduce

Steps to reproduce the behavior:
Using Toast UI 3.2.2 with Vue as a Vue Component.

  1. Create a toast UI editor component.
  2. Visit the site
  3. Type out this is a test with <h1>a html header element </h1>
  4. Swap to the Markdown only tab
  5. Re-open the WYSIWYG Viewer

Expected behavior

The output correctly displays the this is a test with

a html header element

output in the WYSIWYG Viewer.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: Version 132.0.6834.83 (Official Build) (64-bit)
@scrub-dev scrub-dev added the Bug label Jan 17, 2025
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

1 participant