You can do this all inside text-editor.js no need for changes in this file.