Open chrisDK1977 opened 2 months ago
adding
onFocus: () { // Clear focus from other widgets FocusScope.of(context).requestFocus(FocusNode()); // Set focus back to the HtmlEditor _controller.setFocus(); }
seems to make it better - after switching many times sometimes I cannont get the focus back on the textfield... but it is not happening always...
are ther any other tricks to solve the problem?
Experiencing the same issue.
Adding the onFocus callback as noted has sorted things out for me 👍 Thank you @chrisDK1977
When using a TextInput and the html-editor-enhanced once the Textinput has got focus you cannot type anything in the HTML-editor anymore and the TextInput will always get the focus.
When clicking on the bold icon or somehting else in the editor toolbar and than in the text-input-area it works.
SampleApp: