# Ability to go back and forth between html and PM

**URL:** https://discuss.prosemirror.net/t/ability-to-go-back-and-forth-between-html-and-pm/1612
**Category:** Uncategorized
**Created:** [November 6, 2018, 2:09pm UTC](https://discuss.prosemirror.net/t/ability-to-go-back-and-forth-between-html-and-pm/1612 "2018-11-06T14:09:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![treyeckels](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/treyeckels/32/666_2.png) [@treyeckels](https://discuss.prosemirror.net/u/treyeckels)
#### Post date: [November 6, 2018, 2:09pm UTC](https://discuss.prosemirror.net/t/ability-to-go-back-and-forth-between-html-and-pm/1612/1 "2018-11-06T14:09:56Z")

</div>

Hello,

I need to have the ability to go back and forth between the whole editor being HTML editable and Prosemirror (not just including code snippets). Has anyone implemented this before?

I have no idea how to get started implementing this.

Thank you, Trey

---

<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: [November 6, 2018, 3:51pm UTC](https://discuss.prosemirror.net/t/ability-to-go-back-and-forth-between-html-and-pm/1612/2 "2018-11-06T15:51:58Z")

</div>

This is what the [`DOMSerializer`](http://prosemirror.net/docs/ref/#model.DOMSerializer) and [`DOMParser`](http://prosemirror.net/docs/ref/#model.DOMParser) classes are for.

---

<div class="post-metadata">

### Author: ![treyeckels](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/treyeckels/32/666_2.png) [@treyeckels](https://discuss.prosemirror.net/u/treyeckels)
#### Post date: [November 6, 2018, 3:53pm UTC](https://discuss.prosemirror.net/t/ability-to-go-back-and-forth-between-html-and-pm/1612/3 "2018-11-06T15:53:54Z")

</div>

Thank you!

So 2 views, each with their own serializer and parser?

---

<div class="post-metadata">

### Author: ![astevenson](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@astevenson](https://discuss.prosemirror.net/u/astevenson)
#### Post date: [November 6, 2018, 4:07pm UTC](https://discuss.prosemirror.net/t/ability-to-go-back-and-forth-between-html-and-pm/1612/4 "2018-11-06T16:07:26Z")

</div>

Check out Marijn’s [markdown example](http://prosemirror.net/examples/markdown/)
