update editor.php
remove some useless code @ editor.php