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

Mobile,Desktop: CodeMirror 6 editor: Convert selected text to link when pasting URLs #9344

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Nov 18, 2023

Summary

Converts selected text to a markdown link when pasting URLs.

This was requested on the forum (and I believe previously requested elsewhere).

Screen recording

Screencast.from.2023-11-18.07-21-56.webm

Notes

This may make more sense as a plugin:

Testing

  1. Create a new note with the text test
  2. Copy a http or https URL
  3. Select test and paste
  4. Undo
  5. Repeat steps 1-4 for a resource URL
  6. Repeat steps 1-4 for text that is not a URL

This has been manually tested in the desktop beta editor.

@personalizedrefrigerator
Copy link
Collaborator Author

I'm closing this for now. This makes more sense as a plugin, particularly given that the beta editor doesn't have any sample plugins that use the CodeMirror 6 API.

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.

None yet

1 participant