Rich editor bug fixed