A generalised editor calculus (Short Paper)