mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update Rich Input with selection/arrows control. Add template and nodes to self:get_druid
This commit is contained in:
@@ -234,6 +234,9 @@ function M._split_on_lines(words, settings)
|
||||
|
||||
repeat
|
||||
local word = words[i]
|
||||
if word == nil then
|
||||
break
|
||||
end
|
||||
if word.image then
|
||||
word.default_animation = settings.default_animation
|
||||
end
|
||||
|
@@ -117,6 +117,10 @@ function M.parse(text, default_settings, style)
|
||||
assert(default_settings)
|
||||
|
||||
text = text:gsub("&zwsp;", "<zwsp>\226\128\139</zwsp>")
|
||||
|
||||
-- Replace all \n with <br/> to make it easier to split the text
|
||||
text = text:gsub("\n", "<br/>")
|
||||
|
||||
local all_words = {}
|
||||
local open_tags = {}
|
||||
|
||||
|
Reference in New Issue
Block a user