Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当我插入为contenteditable 为false的span标签,在光标后却不能输入中文 #42

Open
gdutwyg opened this issue Mar 3, 2018 · 6 comments

Comments

@gdutwyg
Copy link

gdutwyg commented Mar 3, 2018

例子
输入了中文,光标直接消失了
请问怎么解决?谢谢

@fritx
Copy link
Owner

fritx commented Mar 3, 2018

@gdutwyg 确实是,我这输入中文的过程中会直接断掉输出英文字符
不过这个和vue-at木有直接关系?

@gdutwyg
Copy link
Author

gdutwyg commented Mar 3, 2018

对,这是今天遇到的一个问题,目前和vue-at没有直接关系,但是如果我想在vue-at中插入contenteditable 为false的标签,这种情况你有什么好的解决方案吗?

@fritx
Copy link
Owner

fritx commented Mar 4, 2018

你用的输入框是contenteditable还是textarea
可以参考一下文档 https://fritx.github.io/vue-at
目前vue-at只支持插入纯文本的@xx,如果要插入html,暂时还没实现,我们会尽快尝试:
Insert html instead of text #13

@gdutwyg
Copy link
Author

gdutwyg commented Mar 4, 2018

谢谢,我这边使用的是contenteditable,目前我这边的解决方案是给html后面加一个空格,希望你们可以找到更好的解决方案,谢谢

@chieh12lee
Copy link

遇到相同問題, 我是採用html後面增加span的作法. 但是會造成˙最後一個 span 無法刪除.

@fritx
Copy link
Owner

fritx commented Apr 1, 2018

@chieh301 html后面增加span 大概是怎样的写法? 求赐教 😃
我们现在有个PR #54 正在进行中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants