2929 v-if =" editor"
3030 class =" z-50 rounded-md border border-outline-gray-3 bg-surface-white p-1 text-lg text-text-icons-gray-9 shadow-2xl" >
3131 <div v-if =" settingLink" class =" flex" >
32- <BuilderInput
32+ <TextInput
3333 v-model =" textLink"
3434 placeholder =" https://example.com"
35- class =" link-input w-56 text-sm"
35+ class =" link-input w-56 text-sm [ & >input]:border-outline-gray-1 [ & >input]:bg-surface-gray-2 [ & >input]:text-text-icons-gray-8 [ & >input]:hover:!border-outline-gray-2 [ & >input]:hover:!bg-surface-gray-1 focus:[ & >input]:border-outline-gray-3 focus:[ & >input]:bg-surface-gray-1 focus:[ & >input]:ring-outline-gray-3 [ & >input]:focus-visible:bg-surface-gray-1 "
3636 @keydown.enter ="
3737 () => {
3838 if (!linkInput) return;
39- setLink(linkInput?.getInputValue() );
39+ setLink(linkInput.el.value );
4040 }
4141 "
4242 ref =" linkInput" />
43- <BuilderButton @click =" () => setLink(linkInput?.getInputValue()) " class =" ml-1" >
43+ <BuilderButton @click =" () => setLink(linkInput?.el.value) " class =" ml-1" variant = " outline " >
4444 <FeatherIcon class =" h-3 w-3" name =" check" />
4545 </BuilderButton >
4646 <BuilderButton
@@ -131,7 +131,7 @@ import { Link } from "@tiptap/extension-link";
131131import TextStyle from " @tiptap/extension-text-style" ;
132132import StarterKit from " @tiptap/starter-kit" ;
133133import { BubbleMenu , Editor , EditorContent , Extension } from " @tiptap/vue-3" ;
134- import { Input } from " frappe-ui" ;
134+ import { TextInput } from " frappe-ui" ;
135135import { Plugin , PluginKey } from " prosemirror-state" ;
136136import { Ref , computed , inject , nextTick , onBeforeMount , onBeforeUnmount , ref , watch } from " vue" ;
137137import StrikeThroughIcon from " ./Icons/StrikeThrough.vue" ;
@@ -140,7 +140,7 @@ const store = useStore();
140140const dataChanged = ref (false );
141141const settingLink = ref (false );
142142const textLink = ref (" " );
143- const linkInput = ref (null ) as Ref <typeof Input | null >;
143+ const linkInput = ref (null ) as Ref <typeof TextInput | null >;
144144const component = ref (null ) as Ref <HTMLElement | null >;
145145const overlayElement = document .querySelector (" #overlay" ) as HTMLElement ;
146146let editor: Ref <Editor | null > = ref (null );
0 commit comments