1: <?php
2:
3: namespace webfilesframework\io\form\formItem;
4:
5: 6: 7: 8: 9: 10:
11: class MHtmlTextareaFormItem extends MAbstractFormItem
12: {
13:
14: public function init()
15: {
16: $this->code = "<div style=\"margin-top:4px; width: 600px;\">";
17: if (!empty($this->localizedName)) {
18: $this->code .= $this->localizedName;
19: } else {
20: $this->code .= $this->name;
21: }
22: $this->code .= "<br />" .
23: "<textarea
24: type=\"text\"
25: name=\"" . $this->name . "\"
26: style=\"width: 200px;\"
27: dojoType=\"dijit.Editor\"
28: data-dojo-props=\"extraPlugins:['foreColor','hiliteColor','|','createLink','insertImage','fullscreen','viewsource','newpage']\">" . $this->value . "</textarea>" .
29: "</div>";
30: }
31:
32:
33: }
34: