code: 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;
  }
docs: In firefox when you paste any text is wraps in a paragraph block which we don't want.