Skip to content

Commit a9e6cbc

Browse files
committed
Merge branch 'refactor_textarea' into support/2.13.0
2 parents 5af78d2 + ad5a9b2 commit a9e6cbc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

inc/field/textareafield.class.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
namespace GlpiPlugin\Formcreator\Field;
3434

3535
use PluginFormcreatorCommon;
36-
use PluginFormcreatorQuestion;
3736
use PluginFormcreatorForm;
3837
use PluginFormcreatorFormAnswer;
3938
use Html;
@@ -165,15 +164,6 @@ public function getRenderedHtml($domain, $canEdit = true): string {
165164
'enable_fileupload' => false,
166165
'uploads' => $this->uploads,
167166
]);
168-
// The following file upload area is needed to allow embedded pics in the textarea
169-
$html .= '<div style="display:none;">';
170-
Html::file(['editor_id' => "$fieldName$rand",
171-
'filecontainer' => "filecontainer$rand",
172-
'onlyimages' => true,
173-
'showtitle' => false,
174-
'multiple' => true,
175-
'display' => false]);
176-
$html .= '</div>';
177167
$html .= Html::scriptBlock("$(function() {
178168
pluginFormcreatorInitializeTextarea('$fieldName', '$rand');
179169
});");

0 commit comments

Comments
 (0)