make the rich text input function