fritx / vue-at

At.js for Vue.
https://fritx.github.io/vue-at/
MIT License
529 stars 114 forks source link

@插入span元素后,无法使用键盘左右按钮移动光标跨过span #84

Closed yeli19950109 closed 5 years ago

yeli19950109 commented 5 years ago
<span slot="embeddedItem" slot-scope="s">
    <span :id="s.current.id">@{{ s.current.name }}</span>
</span>

image

用鼠标点击更换光标位置之后 , 按向左或向右的都会在遇到 contenteditable=false的span处 停住 无法跨越这个标签 浏览器 chrome

yeli19950109 commented 5 years ago

编辑器是用的 medium-editor

fritx commented 5 years ago

@yeli19950109 有没有添加这样的css样式:

.my-editor {
  white-space: pre-wrap; 
}

https://github.com/fritx/vue-at/issues/74#issuecomment-433898638 https://github.com/fritx/vue-at/issues/82#issuecomment-450051605