stable
Clone or download
Read-only
When the user writes an url and inputs a "space", it should automatically convert the url to link mark. A plugin has been created to listen user inputs and check if it's a space and if there is a url just before the cursor, to convert it to link mark. part of story #38627 : Choice of a new Rich Text Editor Change-Id: I583461acccdf9d0e495b44b04f0001d71de14b1e
Modified Files
Name | ||||
---|---|---|---|---|
A | lib/frontend/prose-mirror-editor/src/helpers/get-word-or-url-just-before-cursor.test.ts | +89 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/helpers/get-word-or-url-just-before-cursor.ts | +31 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/automagic-links/README.md | +1 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/automagic-links/automagic-links.ts | +33 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/automagic-links/convert-url-to-link-after-a-space.test.ts | +117 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/automagic-links/convert-url-to-link-after-a-space.ts | +52 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/automagic-links/get-link-url-from-text.test.ts | +35 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/automagic-links/get-link-url-from-text.ts | +27 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/automagic-links/index.ts | +20 | β0 | Go to diff View file |
M | lib/frontend/prose-mirror-editor/src/use-editor.ts | +2 | β0 | Go to diff View file |