Improve how empty paragaph nodes are created when clicking before the first view or after the last view.