From 20b72f5cfbbe64a349b1c6c6786c30e3b48c0c43 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 1 Jan 2024 23:32:42 +0000 Subject: [PATCH] [tag edit] textarea for more tagging --- ext/tag_edit/theme.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ext/tag_edit/theme.php b/ext/tag_edit/theme.php index 37dfcc696..57356955c 100644 --- a/ext/tag_edit/theme.php +++ b/ext/tag_edit/theme.php @@ -6,7 +6,7 @@ use MicroHTML\HTMLElement; -use function MicroHTML\{TR, TH, TD, emptyHTML, rawHTML, joinHTML, DIV, INPUT, A}; +use function MicroHTML\{TR, TH, TD, emptyHTML, rawHTML, joinHTML, DIV, INPUT, A, TEXTAREA}; class TagEditTheme extends Themelet { @@ -57,14 +57,12 @@ public function get_tag_editor_html(Image $image): HTMLElement return SHM_POST_INFO( "Tags", joinHTML(", ", $tag_links), - $user->can(Permissions::EDIT_IMAGE_TAG) ? INPUT([ + $user->can(Permissions::EDIT_IMAGE_TAG) ? TEXTAREA([ "class" => "autocomplete_tags", "type" => "text", "name" => "tag_edit__tags", - "value" => $image->get_tag_list(), "id" => "tag_editor", - "autocomplete" => "off" - ]) : null, + ], $image->get_tag_list()) : null, link: Extension::is_enabled(TagHistoryInfo::KEY) ? make_link("tag_history/{$image->id}") : null, ); }