Editor | js a very easy editor, but encountered some problems.

  <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?
clipboard.png

Jun.11,2021

answer: editor medium-editor has been checked

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be968a-31961.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be968a-31961.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?