vue-html5-editor icon indicating copy to clipboard operation
vue-html5-editor copied to clipboard

移动端使用拼音输入中文后, 得到的值是拼音字母, 不是中文???(IOS自带输入法)

Open pollux2015 opened this issue 8 years ago • 3 comments

img_3428 qq20170517-145238 2x

qq20170517-145355 2x

pollux2015 avatar May 17 '17 06:05 pollux2015

editorSure(){
    // 这里有问题,应该是this.editorContent
    alert(this.$refs.veditor.content)
}

vue2.0已经不再支持双向同步,子组件要通过事件来与父组件通讯,你在updateDate()这个方法里已经把最新的content保存了,通过this.editorContent就可以拿到了。

PeakTai avatar May 24 '17 02:05 PeakTai

@pollux2015 我也是遇到这个问题,在ios自带键盘输入汉字,显示汉字但是最后@change事件里面拿到的是拼音。 请问你后面有解决这个问题没?

Aoqidx avatar Jan 25 '18 12:01 Aoqidx

直接取 innerHTML 就好了

renlixin avatar Apr 23 '21 01:04 renlixin