fixed #10
fix templte editor can't handle tab