Revert "Update with rich input changes"

This reverts commit 4e8c071c66.
This commit is contained in:
Insality
2025-11-26 22:24:41 +02:00
parent 4e8c071c66
commit 26badbb54f
4 changed files with 16 additions and 463 deletions

View File

@@ -701,7 +701,7 @@ function M:new_hotkey(keys_array, callback, callback_argument)
end
local rich_text = require("druid.extended.rich_text.rich_text")
local rich_text = require("druid.custom.rich_text.rich_text")
---Create RichText component.
---@param text_node string|node The text node to make Rich Text
---@param value string|nil The initial text value. Default will be gui.get_text(text_node)
@@ -711,4 +711,15 @@ function M:new_rich_text(text_node, value)
end
local rich_input = require("druid.custom.rich_input.rich_input")
---Create RichInput component.
---As a template please check rich_input.gui layout.
---@param template string The template string name
---@param nodes table|nil Nodes table from gui.clone_tree
---@return druid.rich_input rich_input The new rich input component
function M:new_rich_input(template, nodes)
return self:new(rich_input, template, nodes)
end
return M