JiHong88 / suneditor

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

Formatting is lost when backspacing on new line #981

Open changyeamoon opened 2 years ago

changyeamoon commented 2 years ago

Describe the bug Formatting is lost when backspacing on new line

To Reproduce

GIVEN we are editing in the RTE AND we select a different format (font, font-size, etc)
AND we start typing, adding some content WHEN we break a new line
AND we start typing again
BUT we backspace back to the beginning of the new line THEN the text breaks format and goes back to default.

Expected behavior THEN the text format should stay consistent with last used format

Screenshots

https://user-images.githubusercontent.com/30943398/164784968-1b204c90-bfe5-4785-97c7-6d2d6d00ac6f.mov

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

kanounfoued commented 1 year ago

Hello @JiHong88,

I took a look at the to do list, and I saw this problem still not solved, So, I want to take this task and work on it, if that does not make you any problem

JiHong88 commented 1 year ago

@kanounfoued Sure, why not! Your contribution to improvement is greatly appreciated.