# UX when last node is non-text

**URL:** https://discuss.prosemirror.net/t/ux-when-last-node-is-non-text/796
**Category:** Uncategorized
**Created:** [May 24, 2017, 11:15pm UTC](https://discuss.prosemirror.net/t/ux-when-last-node-is-non-text/796 "2017-05-24T23:15:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![denis](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/denis/32/298_2.png) [@denis](https://discuss.prosemirror.net/u/denis)
#### Post date: [May 24, 2017, 11:15pm UTC](https://discuss.prosemirror.net/t/ux-when-last-node-is-non-text/796/1 "2017-05-24T23:15:30Z")

</div>

Hi there!

I’m running into some UX issue when the last node in the document is not a text node.

For example, in [http://prosemirror.net/](http://prosemirror.net/) - create a ‘horizontal rule’ as the last element in your document. Now try to add a new paragraph below. It’s quite tricky to get the cursor to land _after_ that element. The most reliable way I’ve been able to insert such a line is by selecting the horizontal line and then pressing enter, which is not the most discoverable way to go.

My current idea is to add a plugin that always ensures that the last node in my document is a paragraph. But, I’m looking for suggestions!

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [May 25, 2017, 7:37am UTC](https://discuss.prosemirror.net/t/ux-when-last-node-is-non-text/796/2 "2017-05-25T07:37:13Z")

</div>

There is currently no good solution for this (apart from the select-and-press-enter one). I have some plans to implement a plugin that shows a special kind of cursor for such ‘unreachable’ position at some point, but I haven’t gotten around to it yet, and it may be a while before I have time.

---

<div class="post-metadata">

### Author: ![bradleyayers](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/bradleyayers/32/350_2.png) [@bradleyayers](https://discuss.prosemirror.net/u/bradleyayers)
#### Post date: [May 30, 2017, 5:31am UTC](https://discuss.prosemirror.net/t/ux-when-last-node-is-non-text/796/3 "2017-05-30T05:31:47Z")

</div>

The problem affects more than just the last node, it also affects the first node, and actually any place where you have two adjacent non-text blocks. @marijn’s plans sound promising to me (I’d discussed with him out-of-band), so I can’t wait to see the fruits of that 🙂.

Something we’ve implemented that has had varying success is to override up/down keys and automatically insert a new paragraph if we detect you’re at a boundary. We do it at not just non-text block boundaries, but also some specialised boundaries like headings.
