Skip to content

Commit e6c5753

Browse files
authoredJun 30, 2019
Add support of different link types (#817)
1 parent f28a632 commit e6c5753

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
 

‎dist/editor.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- `Improvements` — Inline Toolbar now works on mobile devices [#706](https://github.com/codex-team/editor.js/issues/706)
66
- `Improvements` — Toolbar looks better on mobile devices [#706](https://github.com/codex-team/editor.js/issues/706)
7+
- `Fix` — Fix inline link Tool to support different link types like `mailto` and `tel` [#809](https://github.com/codex-team/editor.js/issues/809)
78
- `Fix` — Added `typeof` util method to check exact object type [#805](https://github.com/codex-team/editor.js/issues/805)
89
- `New` *Conversion Toolbar* — Ability to convert one block to another [#704](https://github.com/codex-team/editor.js/issues/704)
910
- `New` *Cross-block selection* — Ability to select multiple blocks by mouse [#703](https://github.com/codex-team/editor.js/issues/703)

‎src/components/inline-tools/inline-tool-link.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export default class LinkInlineTool implements InlineTool {
330330
/**
331331
* If protocol already exists, do nothing
332332
*/
333-
if (/^(\w+):\/\//.test(link)) {
333+
if (/^(\w+):(\/\/)?/.test(link)) {
334334
return link;
335335
}
336336

0 commit comments

Comments
 (0)
Please sign in to comment.