# Where find the splite/new-line logic in github?

**URL:** https://discuss.prosemirror.net/t/where-find-the-splite-new-line-logic-in-github/5799
**Category:** Uncategorized
**Created:** [August 30, 2023, 4:21pm UTC](https://discuss.prosemirror.net/t/where-find-the-splite-new-line-logic-in-github/5799 "2023-08-30T16:21:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AxelBriche](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/axelbriche/32/3590_2.png) [@AxelBriche](https://discuss.prosemirror.net/u/AxelBriche)
#### Post date: [August 30, 2023, 4:21pm UTC](https://discuss.prosemirror.net/t/where-find-the-splite-new-line-logic-in-github/5799/1 "2023-08-30T16:21:54Z")

</div>

Hello, where can I find on github the internal logic of prosemirror that prevents the addition of a div/span in the div contenteditable=true when the Enter key is pressed please?

---

<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: [August 30, 2023, 5:31pm UTC](https://discuss.prosemirror.net/t/where-find-the-splite-new-line-logic-in-github/5799/2 "2023-08-30T17:31:39Z")

</div>

There is no such logic, really. What the editor does is let the DOM change happen, parse the result into its document schema, and then update the DOM to reflect the updated document.
