replace contenteditable with custom input method