summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/THtmlArea4.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-04-20 19:42:36 +0200
committerDavid <ottodavid@gmx.net>2014-08-21 17:32:55 +0200
commite3811f0ba597a2b3fe477000f7f54bf75680fbe1 (patch)
tree9f991685dd4b22b47af8ff0dfc3f984a45cb4b83 /framework/Web/UI/WebControls/THtmlArea4.php
parent37e772cb8582fe772dbea72286874cf5335dd895 (diff)
Fix #515
(cherry picked from commit f95623e43ce5829b91d1fde0e7978aca96e3e936)
Diffstat (limited to 'framework/Web/UI/WebControls/THtmlArea4.php')
-rw-r--r--framework/Web/UI/WebControls/THtmlArea4.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/THtmlArea4.php b/framework/Web/UI/WebControls/THtmlArea4.php
index 7ae4aa4e..d5410eae 100644
--- a/framework/Web/UI/WebControls/THtmlArea4.php
+++ b/framework/Web/UI/WebControls/THtmlArea4.php
@@ -406,6 +406,13 @@ class THtmlArea4 extends TTextBox
$options['height'] = $this->getHeight();
$options['resize'] = 'both';
$options['menubar'] = false;
+ if($this->getReadOnly())
+ {
+ $options['readonly'] = true;
+ $options['toolbar'] = false;
+ $options['menubar'] = false;
+ $options['statusbar'] = false;
+ }
$options['extended_valid_elements'] = 'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]';