jakiestfu / Medium.js

A tiny JavaScript library for making contenteditable beautiful (Like Medium's editor)

Home Page:http://jakiestfu.github.io/Medium.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paste and overwrite multiple paragraph dom structure issue.

feyyazesat opened this issue · comments

*What I did : *
I paste some text in to the content editable text area after selecting all the text in that area which was already filled with multiple paragraph text. After pasting new text doesn't place between of <p></p> tags and structure corrupting.

But if there is only one paragraph text in that area, the bug doesn't representing.

Add multi paragraph text into the content editable area then select all (ctrl+a) the texts and paste copied text while texts are still selecting. The bug would be occured.

I did tested on several browsers I see the bug doesn't based on any browser version that because I didn't worth mentioning browser version.

i've tested too. this situation has occured in partialMode.