Adapt insertVisualBreak() to conform with browser behavior and editor expectations
Improve variable name