Fixed warning
Fixed initial cursor reposition to the end of editor
workaround for APPS-259