# Extending Editor API¶

If we have a set of operations that we would like to add to the core editor API, then we can create a new file in the editor root folder, named properly. The layout of the file will need to follow this pattern (example some decal editing API):

lua/ge/editor/myspecial.lua:

After we have written this file, we need to add it to the main editor initialize function. For this, open for edit the /lua/ge/editor/main.lua and add the proper lines in the initialize function:

 1 2 3 4 5 6 -- this will create a table instance with your module M.mySpecialModule = require("editor/myspecial") -- this will call the module's initialize function with -- the M argument which is the actual editor table M.mySpecialModule.initialize(M)