diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VRichTextArea.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VRichTextArea.java b/client/src/main/java/com/vaadin/client/ui/VRichTextArea.java index 1ed07c4cec..7f35ee4d4d 100644 --- a/client/src/main/java/com/vaadin/client/ui/VRichTextArea.java +++ b/client/src/main/java/com/vaadin/client/ui/VRichTextArea.java @@ -365,7 +365,7 @@ public class VRichTextArea extends Composite implements Field, KeyPressHandler, BrowserInfo browser = BrowserInfo.get(); String result = getValue(); if (browser.isFirefox()) { - if ("<br>".equals(result)) { + if ("<br>".equals(result) || "<div><br></div>".equals(result)) { result = ""; } } else if (browser.isWebkit() || browser.isEdge()) { @@ -373,7 +373,7 @@ public class VRichTextArea extends Composite implements Field, KeyPressHandler, result = ""; } } else if (browser.isIE()) { - if ("<P> </P>".equals(result)) { + if ("<P> </P>".equals(result) || "<p><br></p>".equals(result)) { result = ""; } } else if (browser.isOpera()) { |