Allow getting value of hypertext input

This is probably not the best but is the simplest
This commit is contained in:
luk3yx 2025-01-15 13:46:49 +13:00
parent 3318877766
commit adbcc432b2

View File

@ -833,6 +833,11 @@ local function parse_callbacks(tree, ctx_form, auto_name_id,
get_transformer(node, tablecolumn_count,
formspec_version) or
default_field_value_transformer
elseif node.type == "hypertext" then
-- Experimental (may be broken in the future): Allow accessing
-- hypertext fields with "ctx.form.hypertext_name" as this is
-- the most straightforward way of doing it.
saved_fields[node_name] = default_field_value_transformer
end
end