-
Notifications
You must be signed in to change notification settings - Fork 32
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
Toolbar on iPhone that is set to keyboard location but also to persist at the bottom / top when keyboard dismisses #182
Comments
Probably. I hadn't thought it was useful since the MarkupWKWebView needs focus for the toolbar to do anything to it, and whenever it gets focus, the keyboard appears. At least as it works now, as soon as the keyboard is dismissed, the selection goes away in the MarkupWKWebView, and so, presumably, makes any functionality of the toolbar useless. OTOH, maybe you have a custom toolbar that is still useful! A bit more detail on your use case would help me avoid going off in the wrong direction when looking into it. |
RPReplay_Final1705297673.MP4I have attached the the recording of my use case. Basically the use of MarkupEditor is a subcomponent of a screen that I have, there are other fields which are UITextFields. The first condition is when I am having the context of the MarkupEditor, the toolbar should be presented, as for the other UITextField, I do not need the toolbar. However I am considering the possibility to have the toolbar (minus the options to format the text) so that my user can continue to perform other actions, but just not perform the actions relating to formatting. I know this might be a deviation from the intent to keep MarkupEditor methods in the world of MarkupEditor framework, but this is how I am using it. The second condition is that the toolbar should remain visible if no keyboard is presented. This is because the other options on the toolbar are relating to attaching some file to the screen. Rat I realized early on that the way I will be using your library will be different from the example app you have provided, thus I have created a customized variation of the views to handle my use case. But just want to check with you on this as I noticed that the Right now, I am using two toolbars, one to be supplied to
Thanks for considering this. |
Wouldn't it be easier to create your own custom toolbar and manage it yourself (i.e., This example doesn't even deal directly with an
and a CustomToolbar ripped off from MarkupToolbar:
|
Is it possible to reconfigure the code regarding the toolbarLocation such that on the iPhone, it will stay at the bottom (this is my use case) and then when the keyboard appears, it will follow the inputAccessory of the keyboard.
The converse is true, when the keyboard disappears, it will return to the bottom of the screen.
The text was updated successfully, but these errors were encountered: