]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add <br> as empty representation for webkit (#12490) 7.1.4
authorArtur Signell <artur@vaadin.com>
Tue, 3 Sep 2013 08:01:07 +0000 (11:01 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 3 Sep 2013 08:20:11 +0000 (08:20 +0000)
Change-Id: Idfb1c770d411b0516046e40852b79da6f9c7916c

client/src/com/vaadin/client/ui/VRichTextArea.java

index 34693ce392e14b4ad922741a581f31598d0e0553..0b2c1e574cf9bed7292ac8e35934bbf622813099 100644 (file)
@@ -403,7 +403,7 @@ public class VRichTextArea extends Composite implements Field, KeyPressHandler,
                 result = "";
             }
         } else if (browser.isWebkit()) {
-            if ("<div><br></div>".equals(result)) {
+            if ("<br>".equals(result) || "<div><br></div>".equals(result)) {
                 result = "";
             }
         } else if (browser.isIE()) {