Text edit and CSS refaction