RichTextEditor
RichTextEditor copied to clipboard
.addHtmlChangedListener not working
I want to enable my button when I change any text but its not working
richTextEditor.addHtmlChangedListener(s -> { activity.runOnUiThread(() -> { btn.setEnabled(true); }); });
That's really strange but without further information not solvable for me.
But for your use case, did you check if richTextEditor.addDidHtmlChangeListener { } isn't the better option for you? It tells you weather the entered text has changed. So if user deletes all text, it emits false and you could disable your save button again.