Sure I think, I don't know what that first option would do but I get that you're wanting to pull the setup script from the page and inject it into the editor instead of pasting it into the editor element beforehand.