window.addEventListener("editorReady", function(event) { editor.setText("Script successfully injected !"); });