stable

Clone or download

Read-only

fix: detect and transform https urls into links

Fixes request #40440 Not url-ish content can be transformed into link in prose-mirror-editor How to test: - Type an HTTPS url in the editor and you hit the space key --> The url has been transformed into an hyperlink - Paste an HTTPS url into the editor --> Same expectation - Paste not HTTPS urls into the editor --> Nothing happens Change-Id: I3500600434d15a57bb2c78ff5b3c648b867dda60

Modified Files

Name
A lib/frontend/prose-mirror-editor/src/plugins/automagic-links/automagic-links.test.ts +102 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/automagic-links/automagic-links.ts +13 −12 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/automagic-links/convert-url-to-link-after-a-space.test.ts +0 −117 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/automagic-links/convert-url-to-link-after-a-space.ts +0 −52 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/automagic-links/get-link-url-from-text.test.ts +0 −35 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/automagic-links/get-link-url-from-text.ts +0 −27 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/input-rules.ts +3 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/use-editor.ts +0 −2 Go to diff View file