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

Add support for links, wysiwyg style #45

Merged
merged 4 commits into from
Sep 18, 2021
Merged

Add support for links, wysiwyg style #45

merged 4 commits into from
Sep 18, 2021

Conversation

cloverich
Copy link
Owner

#44

What a nightmare. See test cases which I tried to write out but did not have time to implement. Maybe if this reaches true MVP usability there will be time for that, and doing all the other things correctly!

This PR adds support for links, using a hover menu on focus similar to

  • support viewing, updating, and deleting links via floating context menu
  • support creating links by selecting text and pasting URL (not very robust as of now)
  • add a few utilities for debugging, which will need polished and optioned out on next production release (inspect element with middle click, view editor AST and markdown AST)

This also includes some WIP markdown converting on paste (or maybe that was leftover from the images WIP) which will need reviewed and validated. Lots of stuff to do and test and improve, but good wysiwyg support is officially moving. Yay.

- hack and half work but dont want to lose
- has two static link menus for editing and viewing
- view, edit, update, and remove links work
- need paste to link, enter to submit, floating menu, polish, refactor and cleanup
- add paste to link selected text behavior
- convert static menus to styled floating context menu
- add aux click to inspect element debug helper
@cloverich cloverich merged commit 7298199 into master Sep 18, 2021
@cloverich cloverich deleted the cloverich/links branch September 18, 2021 14:34
@cloverich cloverich mentioned this pull request Sep 18, 2021
2 tasks
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.

1 participant