Making loadeditor() a code snippet