making editor as index