We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559424e commit 4e5ed45Copy full SHA for 4e5ed45
inc/fields/textareafield.class.php
@@ -85,11 +85,12 @@ public function displayField($canEdit = true) {
85
'rows' => 5,
86
'display' => false,
87
'enable_richtext' => $useRichText,
88
- 'enable_fileupload' => true,
+ 'enable_fileupload' => false,
89
]);
90
- if (version_compare(GLPI_VERSION, '9.4.6') < 0) {
91
- echo '</div>';
92
- }
+ // This area is filled by glpi : @see js/fileupload.js
+ // it contains _filename[] hidden inputs required to properly handle
+ // images pasted in the textarea
93
+ echo '<div id="fileupload_info" class="fileupload_info"></div>';
94
echo Html::scriptBlock("$(function() {
95
pluginFormcreatorInitializeTextarea('$fieldName', '$rand');
96
});");
0 commit comments