zhuliu преди 1 година
родител
ревизия
84bca7aad0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/utils/model/RichText/index.vue

+ 1 - 1
src/utils/model/RichText/index.vue

@@ -186,7 +186,7 @@ export default {
       for (let i = 0; i < items.length; i++) {
         if (items[i].type.indexOf("text") !== -1) {
           var text =  (event.originalEvent || event).clipboardData.getData('text/plain') ||'';
-          text = text.replace(/\n{1,}/g,'</br>')
+          // text = text.replace(/\n{1,}/g,'</br>')
           document.execCommand('insertText', true, text)
 
           // var text2 = `<span>${text}</span>`