<div contenteditable="true">
</div>
var selection = document.getSelection(),
range = selection.getRangeAt(0);
var html = "<blockquote>" + range + "</blockquote>";
range.deleteContents();
el.innerHTML = html;
while ( (start = el.firstChild) ) {
last = fuckjs.appendChild(start);
}
range.insertNode(fuckjs);
question 1
how can I change it back to its original state with one click? (remove blockquote)?
question 2
he will overflow div when he joins blockquote
. How can this be solved?