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

Pasting or creating specific link introduces a bugged empty line #778

Closed
alexpana opened this Issue Sep 24, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@alexpana

alexpana commented Sep 24, 2018

I couldn't reproduce this with any link, but this one seems to break the editor consistently: https://www.gamasutra.com/view/news/165359/GDC_2012_10_tutorial_tips_from_Plants_vs_Zombies_creator_George_Fan.php

Either pasting this as a link or pasting the text and adding the link afterwards results in a newline being added before the link. From the erroneous empty line before the link the cursor cannot move down. Moving the cursor right makes it jump to the second character on the second line (inside the link). This new line cannot be deleted.

@tommoor

This comment has been minimized.

Member

tommoor commented Sep 25, 2018

Very strange, and reproducible – thanks for filing!

@tommoor

This comment has been minimized.

Member

tommoor commented Sep 26, 2018

From what I can tell it's to do with the length of the link, if the link is long enough to wrap onto a new line the bug will happen. You can probably get around it by selecting some text and hitting CMD+V with the link on the clipboard which will make the selected text itself a link 😄

@tommoor tommoor closed this in 717e26a Sep 26, 2018

tommoor added a commit to outline/rich-markdown-editor that referenced this issue Oct 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment