diff --git a/scripts/core/editor3/components/links/LinkInput.tsx b/scripts/core/editor3/components/links/LinkInput.tsx index 2851723d44..c77dbcfaa2 100644 --- a/scripts/core/editor3/components/links/LinkInput.tsx +++ b/scripts/core/editor3/components/links/LinkInput.tsx @@ -109,6 +109,7 @@ export class LinkInputComponent extends React.Component { const _applyLink = this.props.applyLink; const _changeLinkSuggestion = this.props.changeLinkSuggestion; + debugger; if (linkType === linkTypes.href) { const url = this.state.url; const isLocalDomain = (localDomains || []).some((item) => url.includes(item.domain)); @@ -188,6 +189,11 @@ export class LinkInputComponent extends React.Component { >
{ + if (e.key === 'Enter') { + this.onSubmit(linkTypes.href); + } + }} type="url" ref={(el) => { this.inputElement = el;