[code + md] getting the active editor