Block-based editor