summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/RichTextArea.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-07-21 19:35:03 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-07-21 19:35:03 +0000
commitf7ebba2cc68e6301c397c9b34b13096bd7ccb3e9 (patch)
tree461c2dd0bb8fb5338fcbbec34c59ae8fc7962bef /src/com/vaadin/ui/RichTextArea.java
parent768d95b50e7e9e7e0363ed863833f537b1f9abeb (diff)
downloadvaadin-framework-f7ebba2cc68e6301c397c9b34b13096bd7ccb3e9.tar.gz
vaadin-framework-f7ebba2cc68e6301c397c9b34b13096bd7ccb3e9.zip
fixes #5089 (read only mode) and #5379 webkit bug
svn changeset:14294/svn branch:6.4
Diffstat (limited to 'src/com/vaadin/ui/RichTextArea.java')
-rw-r--r--src/com/vaadin/ui/RichTextArea.java11
1 files changed, 11 insertions, 0 deletions
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");
+ }
+ }
+
}