<LinkUrlPopover
anchorEl={anchor}
initialUrl={editor.getAttributes('link').href}
canRemove={editor.isActive('link')}
onApply={(href) => editor.chain().focus().extendMarkRange('link').setLink({ href }).run()}
onRemove={() => editor.chain().focus().extendMarkRange('link').unsetLink().run()}
onClose={() => setAnchor(null)}
labels={{ urlPlaceholder: 'Paste or type a URL', apply: 'Apply', remove: 'Remove link' }}
/>
A URL field with Apply (and optionally Remove). Typed input is normalised with
normalizeLinkHref: a bare domain getshttps://, and anything that is not http/https/mailto/tel keeps Apply disabled.