Added CnMode for Chinese editing and optimized search