Pzhang/texteditor password

It's a bit confusing that there are two functions called *createEditor*, this one, which is private, and the public one. Since TextEditorWrapper.prototype.setConstraints is the only caller of this function, I would inline this code into that function.