diff --git a/src/components/MarkdownEditor/FloatingLinkEditorPlugin.tsx b/src/components/MarkdownEditor/FloatingLinkEditorPlugin.tsx index 9ca2d516f1..0d0a48ce1e 100644 --- a/src/components/MarkdownEditor/FloatingLinkEditorPlugin.tsx +++ b/src/components/MarkdownEditor/FloatingLinkEditorPlugin.tsx @@ -31,8 +31,7 @@ import { $isLinkNode, $isAutoLinkNode, toggleLink, $createLinkNode, TOGGLE_LINK_ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext"; import { mergeRegister, $findMatchingParent } from "@lexical/utils"; import { colors, misc, shadows, spacing, stackOrder } from "@ndla/core"; -import { FieldErrorMessage, FormControl, InputV3, Label } from "@ndla/forms"; -import { Button } from "@ndla/primitives"; +import { Button, FieldErrorMessage, FieldInput, FieldLabel, FieldRoot } from "@ndla/primitives"; import { getSelectedNode } from "./EditorToolbar"; const VERTICAL_GAP = 10; @@ -398,12 +397,10 @@ const FloatingLinkEditor = ({ editor, isLink, setIsLink, anchorElement, editorIs return open ? ( - - + + {t("markdownEditor.link.text")} {textError} - - - - + + + {t("markdownEditor.link.url")} {urlError} - - +