From: Marc Englund Date: Wed, 28 Aug 2013 12:47:02 +0000 (+0300) Subject: Fix for #12279 (caret jumps when formatting in RTA). X-Git-Tag: 7.1.4~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de53191998be79268b78e6589173ed71171d9185;p=vaadin-framework.git Fix for #12279 (caret jumps when formatting in RTA). Change-Id: I09bd04cd0d687be636a7b4d718bccf271bdb9dd9 --- diff --git a/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java b/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java index 20dfc74c69..d2576eb133 100644 --- a/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java +++ b/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java @@ -104,9 +104,9 @@ public class RichTextAreaConnector extends AbstractFieldConnector implements if (getConnection() != null && getConnectorId() != null) { final String html = getWidget().getSanitizedValue(); if (!html.equals(cachedValue)) { + cachedValue = html; getConnection().updateVariable(getConnectorId(), "text", html, getState().immediate); - getWidget().setValue(html); } } };