diff --git a/src/main/java/org/vaadin/tinymce/TinyMce.java b/src/main/java/org/vaadin/tinymce/TinyMce.java index 1962d6d..9ba2820 100644 --- a/src/main/java/org/vaadin/tinymce/TinyMce.java +++ b/src/main/java/org/vaadin/tinymce/TinyMce.java @@ -141,8 +141,10 @@ void runBeforeClientResponse(SerializableConsumer command) { @ClientCallable private void updateValue(String htmlString) { - this.currentValue = htmlString; - setModelValue(htmlString, true); + if (this.isEnabled() && !this.isReadOnly()) { + this.currentValue = htmlString; + setModelValue(htmlString, true); + } } public String getCurrentValue() {