Add url length validation to Link at inline-tool. (#1476)

* Add url length validation to Link at inline-tool.

fix

* simplify, add chengelog

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
kai_ogita 2021-02-19 02:25:38 +09:00 committed by GitHub
parent aa8675d61d
commit 527ff4e6d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@
- `Fix` - Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances [#1503](https://github.com/codex-team/editor.js/issues/1503).
- `Fix` - Fix an unstable block cut process [#1489](https://github.com/codex-team/editor.js/issues/1489).
- `Fix` - Type definition of the Sanitizer config: the sanitize function now contains param definition [#1491](https://github.com/codex-team/editor.js/pull/1491).
- `Fix` - Fix unexpected behavior on an empty link pasting [#1348](https://github.com/codex-team/editor.js/issues/1348).
### 2.19.1

View file

@ -291,6 +291,8 @@ export default class LinkInlineTool implements InlineTool {
this.unlink();
event.preventDefault();
this.closeActions();
return;
}
if (!this.validateURL(value)) {