rewrite span insertion for better compatibility
add scrollbar to edit zone