You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing issues with the bold and italic toolbar options.
The issue is that the editor input gets blurred after a user presses on the toolbar buttons.
The issues most likely occur because the selection-change fires and has range: null
I've looked at similar issues and found this #93 , but nobody answered 😕
I've used the handleSelectionChange function from the examples folder. When pressing bold/italic I get "Cursor not in the editor"
consthandleSelectionChange=async(data: SelectionChangeData)=>{const{ range }=data;if(range){if(range.length===0){console.log("User cursor is on",range.index);}else{consttext=awaiteditor.current?.getText(range.index,range.length,);console.log("User has highlighted",text);}}else{console.log("Cursor not in the editor");}};
I'm experiencing issues with the bold and italic toolbar options.
The issue is that the editor input gets blurred after a user presses on the toolbar buttons.
The issues most likely occur because the
selection-change
fires and hasrange: null
I've looked at similar issues and found this #93 , but nobody answered 😕
I've used the
handleSelectionChange
function from the examples folder. When pressing bold/italic I get "Cursor not in the editor"Code:
Video:
https://github.com/imnapo/react-native-cn-quill/assets/155077894/8004ea60-a87c-4844-a095-c2b74761422e
@imnapo I apologize for tagging, but as an owner of this repository, do you have any idea how to solve this issue?
The text was updated successfully, but these errors were encountered: