dankito / RichTextEditor

Rich text WYSIWYG editor for Android and JavaFX
Apache License 2.0
92 stars 36 forks source link

.addHtmlChangedListener not working #70

Open Atulpg7 opened 3 years ago

Atulpg7 commented 3 years ago

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

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

dankito commented 2 years ago

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.