RichTextEditor icon indicating copy to clipboard operation
RichTextEditor copied to clipboard

.addHtmlChangedListener not working

Open Atulpg7 opened this issue 4 years ago • 1 comments

I want to enable my button when I change any text but its not working

richTextEditor.addHtmlChangedListener(s -> { activity.runOnUiThread(() -> { btn.setEnabled(true); }); });

Atulpg7 avatar Aug 07 '21 15:08 Atulpg7

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.

dankito avatar Oct 26 '21 23:10 dankito