Can't insert custom text with link #780
Unanswered
Nazarkon
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,guys! I tired to insert custom text with href into tiptap editor, but link do note save
<editor-content ref="editor" class="edited-content-wrapper" :id="'text-' + element.id" :editor="editor" />
const selectedText = window.getSelection().toString(); let str = this.targetElement.target.innerHTML let res = str.replace(selectedText,val) this.targetElement.target.innerHTML = res this.$refs.editor.setContent(res)
Beta Was this translation helpful? Give feedback.
All reactions