[cmd:resize] JavaScript syntax strictly
[cmd:resize] fix preview window problem (synchronize with textbox)
Merge branch '2.x' into 2.x_n