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

Error in entering text in the editor #1415

Open
ilcary opened this issue Jun 28, 2024 · 3 comments
Open

Error in entering text in the editor #1415

ilcary opened this issue Jun 28, 2024 · 3 comments

Comments

@ilcary
Copy link

ilcary commented Jun 28, 2024

Describe the bug
When inserting text into the editor, it automatically wraps the text in <p> tags instead of maintaining inline formatting.

To Reproduce
Steps to reproduce the behavior:

Go to [SunEditor Sample Options Page](http://suneditor.com/sample/html/options.html)
Keep all default options as they are.
Focus on the input area and delete all content (Ctrl + A then BACKSPACE) until the format selector shows 'Paragraph'.
Try to insert some text. You will observe the text being wrapped in <p> tags automatically.

Screenshots

Before inserting text:

image
image

After inserting text:

image

Video
A demonstration of the issue 📹

Expected behavior
The text should remain inline until it is manually wrapped in a block element.

Desktop:

OS: Windows
Browser: Firefox
Version: 127.0.2 (64-bit)
@Kryostatic94
Copy link

Kryostatic94 commented Jun 28, 2024

I got this problem too...

@JiHong88
Copy link
Owner

JiHong88 commented Aug 8, 2024

Is it a problem that the header tag is not maintained?

@Kryostatic94
Copy link

Is it a problem that the header tag is not maintained?

It's more like that when you delete all the content of the editor a p tag Is created, this p tag creates the issue It looks like it's happening only in Firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants