Updated the Lua API for the Lua editor