-
Notifications
You must be signed in to change notification settings - Fork 446
how to limit text count in the editor? #212
Comments
@RaviPulpstrategy did you found any solution ? |
Not yet! |
Did you try checking the RichEditorDelegate? Here's what I've got:
I just started iOS development, so I'm not sure if this'll cause any issues regarding threading. I haven't tested copy and paste, but it should work just fine since the previous text onTextChange is saved in the variable. Cheers! |
https://gist.github.com/YoomamaFTW/6f436e17f34f43ebda13e08d629e9d56 This is if you want the full code (it has some other issue I had, so sorry for the clump). The gist is the full programmatically made view controller of an editor view controller. The comment's code itself is the same for both storyboard and programmatically. Do note: Make sure when you're inheriting classes that you also inherit RichEditorDelegate, so like this:
|
Yes, it will work! |
No description provided.
The text was updated successfully, but these errors were encountered: