adjust rich editor to work with rails 4