Parcourir la source

文本模式黏贴报错修改2801

zhouna il y a 5 ans
Parent
commit
2690029421
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/common/components/Textarea/index.jsx

+ 2 - 2
src/common/components/Textarea/index.jsx

@@ -2,7 +2,7 @@ import React, { Component } from "react";
 import style from "./index.less";
 import Notify from '../Notify';
 import config from '@config/index';
-import {isIE} from '@utils/tools.js';
+import {isIE,moveEnd} from '@utils/tools.js';
 import {getFeature} from '@store/async-actions/fetchModules';
 import {getAllDataList,getAllDataStringList,ifOtherClear,setFontColorSize} from "@utils/tools.js";
 import store from '@store';
@@ -33,7 +33,7 @@ class Textarea extends Component {
       setTimeout(function(){
         txt = that.$dom.current.innerText||that.$dom.current.innerHTML;
         that.$dom.current.innerHTML = txt;
-        that.moveEnd($(that.$dom.current)[0]);     //光标落到最后去
+        moveEnd($(that.$dom.current)[0]);     //光标落到最后去
       });
     });
     //const {inpText} = this.state;console.log(inpText,boxMark,hasMain)