mirror of
https://github.com/codex-team/editor.js
synced 2024-06-08 08:52:15 +02:00
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:
parent
aa8675d61d
commit
527ff4e6d1
|
@ -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
|
||||
|
||||
|
|
|
@ -291,6 +291,8 @@ export default class LinkInlineTool implements InlineTool {
|
|||
this.unlink();
|
||||
event.preventDefault();
|
||||
this.closeActions();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.validateURL(value)) {
|
||||
|
|
Loading…
Reference in a new issue