update editor.php