Text input plugin, and params refactor