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

Fix link editor (for good) #477

Merged
merged 2 commits into from
Nov 20, 2024
Merged

Conversation

ticruz38
Copy link
Collaborator

#473

Have removed this bug that was a range error from tiptap.

Have tried many different commands to keep the range correct but nothing worked.
The solution I have is not the most elegant but it works everytime. Taking the real input being tracked by tiptap from (editor.state.doc.textContent) and check if there is a match against it, this avoid linkifying twice (which was the root issue)

Also the behaviour is slightly better now, on the previous version pressing enter and then space after creating a link would cancel the line break.

@staab staab changed the base branch from master to dev November 20, 2024 12:38
@staab staab merged commit fb8ffd3 into coracle-social:dev Nov 20, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants