fixed bug #161,add beforeeditorshow
fixed bug #160