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

[schema] Allow tel: and mailto: as URI schemes for block link annotation #1178

Merged
merged 2 commits into from
Jan 24, 2019

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Jan 23, 2019

We previously did not do any validation on annotations. After the new block editor, we do.

This PR will allow the mailto and tel schemes in the default link annotation.

Copy link
Member

@skogsmaskin skogsmaskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@skogsmaskin
Copy link
Member

It will not allow for relative URL's I guess. Maybe it should?

@rexxars
Copy link
Member Author

rexxars commented Jan 23, 2019

Good question. In a sense, the only "correct" thing for backwards compatibility is to disable validation, but that seems like a bad default for new projects. Thoughts?

@skogsmaskin
Copy link
Member

skogsmaskin commented Jan 23, 2019

I'm in favour of validating, but allowing any kind of URI by default.

@rexxars rexxars merged commit 87d17a2 into next Jan 24, 2019
@rexxars rexxars deleted the allow-tel-mailto-block-url-annotation branch January 24, 2019 08:50
bjoerge pushed a commit that referenced this pull request Feb 1, 2019
…ion (#1178)

* [schema] Allow tel: and mailto: as URI schemes for block link annotation

* [schema] Allow relative URIs for default link annotation
@skogsmaskin skogsmaskin mentioned this pull request Feb 1, 2019
skogsmaskin pushed a commit that referenced this pull request Feb 1, 2019
…ion (#1178)

* [schema] Allow tel: and mailto: as URI schemes for block link annotation

* [schema] Allow relative URIs for default link annotation
bjoerge pushed a commit that referenced this pull request Aug 13, 2019
…ion (#1178)

* [schema] Allow tel: and mailto: as URI schemes for block link annotation

* [schema] Allow relative URIs for default link annotation
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.

2 participants