Code Editor : hook-functions