upgraded getting active child editor
added while from flow for empty lines