Create txteditor.js