fix mysql function and add text editor
add text editor