Changes initElements to initEditor, creates new initElements method