autonitialize richtext input js on the fly