We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf8856 commit 981ea7eCopy full SHA for 981ea7e
src/controls/richText/RichText.tsx
@@ -689,7 +689,7 @@ id="DropDownStyles"
689
quill.deleteText(range.index, range.length);
690
}
691
692
- if (cursorPosition) {
+ if (cursorPosition > -1) {
693
const textToInsert: string = this.state.insertUrlText !== undefined ? this.state.insertUrlText : this.state.insertUrl;
694
const urlToInsert: string = this.state.insertUrl;
695
quill.insertText(cursorPosition, textToInsert);
0 commit comments