src/blocks/scribe-plugins/scribe-paste-plugin.js
function removeWrappingParagraphForFirefox(value) {
  var fakeContent = document.createElement('div');
  fakeContent.innerHTML = value;

  if (fakeContent.childNodes.length === 1) {
    var node = [].slice.call(fakeContent.childNodes)[0];
    if (node && node.nodeName === "P") {
      value = node.innerHTML;
    }
  }

  return value;
}
function removeWrappingParagraphForFirefox(value) {
  var fakeContent = document.createElement('div');
  fakeContent.innerHTML = value;

  if (fakeContent.childNodes.length === 1) {
    var node = [].slice.call(fakeContent.childNodes)[0];
    if (node && node.nodeName === "P") {
      value = node.innerHTML;
    }
  }

  return value;
}
function removeWrappingParagraphForFirefox ( value ) { var fakeContent = document . createElement ( 'div' ) ; fakeContent . innerHTML = value ; if ( fakeContent . childNodes . length === 1 ) { var node = [ ] . slice . call ( fakeContent . childNodes ) [ 0 ] ; if ( node && node . nodeName === "P" ) { value = node . innerHTML ; } } return value ; }
In firefox when you paste any text is wraps in a paragraph block which we don't want.
In firefox when you paste any text is wraps in a paragraph block which we don t want .