Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNRichTextEditor always points to the first index when typing on iOS #152

Open
Priyanka-SP opened this issue Jan 19, 2021 · 6 comments
Open

Comments

@Priyanka-SP
Copy link

CNRichTextEditor will always point to the first index when typing so the typed text will be arranged in reverse order

@godet71
Copy link

godet71 commented Jan 23, 2021

Hello, Guys. Please Help me.
I am same issue..
Please help solve this situation.

@abhayrp2000
Copy link

I have the same issue. Did anyone find a solution? Please let me know.

@imnapo
Copy link
Owner

imnapo commented Mar 1, 2021

this pacakge is deprecated. Use react-native-cn-quill instead.

@achubai
Copy link
Contributor

achubai commented Apr 12, 2021

This issue is related to the RN issue.
@imnapo Currently, I don't have the ability to migrate to the quill and have to proceed with this one.
Would you be so kind to take a look at my PR

@umang-bm-ai
Copy link

selection={undefined} Add this in Text Input
<TextInput
{...textInputProps}
underlineColorAndroid="rgba(0,0,0,0)"
onSelectionChange={this.onSelectionChange}
multiline
style={[{
color,
fontSize: fontSize,
paddingTop: 5,
paddingBottom: 5,
paddingLeft: 2,
paddingRight: 2,
textAlignVertical: 'top',
}, style || {}]}
scrollEnabled={false}
returnKeyType={returnKeyType || 'next'}
keyboardType="default"
ref={this.textInput}
onChangeText={this.handleChangeText}
onKeyPress={this.handleKeyDown}
onFocus={this.onFocus}
onBlur={this.onBlur}
onContentSizeChange={this.handleContentSizeChange}
placeholder={this.props.placeholder}
selection={undefined}
>

In CNTextInput.js File

@Priyanka-SP
Copy link
Author

@umang-bm-ai the solution worked for me.
Thank you for the response.
but now the issue is stylings are not applicable to text.
i.e. if I chose bold or italics the text styles are not reflecting in ios (ipad)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants