setLinkUrl(event.target.value)}
onKeyDown={(event) => {
if (event.key === "Enter") {
event.preventDefault()
applyLink()
}
}}
/>
{!canApply ? (
Sélectionnez du texte pour créer un hyperlien.
) : null}
{resolvingDriveFile ? (
Création du lien…
) : trimmedDriveQuery.length < 2 ? (
Saisissez au moins 2 caractères pour rechercher dans votre Drive.
) : driveLoading ? (
Recherche…
) : driveSuggestions.length === 0 ? (
Aucun fichier pour « {trimmedDriveQuery} »
) : (
driveSuggestions.map((item) => (
))
)}
{editor.isActive("link") ? (