rewrite some code
Merge branch 'master' of https://github.com/Doidel/playfulEditor