Won't fix New line on first editor insert

Lukas W.

Well-known member
Affected version
2.0.1
If you open up a new editor and the first thing you do is insert something (for example a quote, spoiler, etc.), it will always insert a new line first. If you delete the content and insert something again afterwards, the new line will no longer be inserted. As soon as you do some sort of interaction with the editor first (for example type a single letter), the new line will also be no longer inserted.

https://my.mixtape.moe/bovjpv.mp4
 
This is a known issue and for the most part, considered acceptable.

If you don't focus the editor, we need to programmatically trigger focus which we do at the very end -- this will be after the <p> tag that's there by default. When you click the editor, the cursor position (from the browser) will actually be within that <p>.

Given that it's not a hugely frequent issue and the issue is mostly a line break that would be removed when submitting anyway (plus the likely complexity of changing this), no changes are planned.
 
Top Bottom