Open this page in the API Guide

ScriptEditorContext.scriptEditor Property

Gets the script editor this context is attached to.