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

Newlines not being indenting until adding additional text #61

Open
DavidAlvarezDev opened this issue Jun 20, 2023 · 3 comments
Open

Newlines not being indenting until adding additional text #61

DavidAlvarezDev opened this issue Jun 20, 2023 · 3 comments
Labels
discussion Discussions not yet turned into an action

Comments

@DavidAlvarezDev
Copy link

Hello,

Thanks for your great work, I just started a project this Friday, and you package has beet a huge help!

One problem that I have not been able to solve it to see the cursor indent after hitting enter on the keyboard (new line). The indent works fine if there is no next in the text editor field. It this seems like a bug to me, because the user would have to start typing on that new line before he sees the cursor indent.

I apologize if it is error on my part, but I can't find a workaround.

Thanks in advance,

David Alvarez
info@davidalvarezdev.com

@danielsaidi
Copy link
Owner

Hi @DavidAlvarezDev

Happy to hear that the library has helped you out :)

The rich text editor is just a thin wrapper over the native UITextView and NSTextView. Do you see the same issue when using those views?

@danielsaidi danielsaidi added the discussion Discussions not yet turned into an action label Jun 21, 2023
@DavidAlvarezDev
Copy link
Author

Yes Daniel, thank you very much!

I think I have noticed a pattern in issues I am having. Even though the context is updated, the AttributedString is not changed until the user actually inputs text. So changing the context, has no immediate affect on the AttributedString.

I noticed this fact when getting the font from the context. Even though the context is set to a specific font size, the AttributedString does not get this attribute added until characters are entered.

And to answer your question, no, I have not used UITextView directly before.

@danielsaidi
Copy link
Owner

Ok, great info - thanks! I will look into it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussions not yet turned into an action
Projects
None yet
Development

No branches or pull requests

2 participants