From 831747a518be9e20b26ef47de95e0d1dccac16f8 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 2 Sep 2013 16:34:17 +0300 Subject: Fix regression where empty RTA returns
(#12490) Change-Id: I273037644ed1383af84898cf03360e2b08d2647b --- client/src/com/vaadin/client/ui/VRichTextArea.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/com/vaadin/client/ui/VRichTextArea.java b/client/src/com/vaadin/client/ui/VRichTextArea.java index 8a6ba3fc1e..34693ce392 100644 --- a/client/src/com/vaadin/client/ui/VRichTextArea.java +++ b/client/src/com/vaadin/client/ui/VRichTextArea.java @@ -399,19 +399,19 @@ public class VRichTextArea extends Composite implements Field, KeyPressHandler, BrowserInfo browser = BrowserInfo.get(); String result = getValue(); if (browser.isFirefox()) { - if ("
".equals(html)) { + if ("
".equals(result)) { result = ""; } } else if (browser.isWebkit()) { - if ("

".equals(html)) { + if ("

".equals(result)) { result = ""; } } else if (browser.isIE()) { - if ("

 

".equals(html)) { + if ("

 

".equals(result)) { result = ""; } } else if (browser.isOpera()) { - if ("
".equals(html) || "


".equals(html)) { + if ("
".equals(result) || "


".equals(result)) { result = ""; } } -- cgit v1.2.3