pothi.love/0137-quit_all_editors

9 lines
247 B
Plaintext

quit_all_editors = function(node)
if node.type == 'text' and not node.button then
edit.quit(node.editor)
elseif node.type == 'rows' or node.type == 'cols' then
for _,child in ipairs(node.data) do
quit_all_editors(child, dt)
end
end
end