From f7ebba2cc68e6301c397c9b34b13096bd7ccb3e9 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Wed, 21 Jul 2010 19:35:03 +0000 Subject: fixes #5089 (read only mode) and #5379 webkit bug svn changeset:14294/svn branch:6.4 --- src/com/vaadin/ui/RichTextArea.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/com/vaadin/ui/RichTextArea.java') diff --git a/src/com/vaadin/ui/RichTextArea.java b/src/com/vaadin/ui/RichTextArea.java index f7aceb4dcc..bb7b6e58c1 100644 --- a/src/com/vaadin/ui/RichTextArea.java +++ b/src/com/vaadin/ui/RichTextArea.java @@ -91,4 +91,15 @@ public class RichTextArea extends TextField { "RichTextArea does not support inputPrompt"); } + @Override + public void setReadOnly(boolean readOnly) { + super.setReadOnly(readOnly); + // IE6 cannot support multi-classname selectors properly + if (readOnly) { + addStyleName("v-richtextarea-readonly"); + } else { + removeStyleName("v-richtextarea-readonly"); + } + } + } -- cgit v1.2.3