fix bug in gmail and webqq: contenteditable && shorten some codes