Fritz Lin

Results 359 comments of Fritz Lin

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

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

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

@scheMeZa which one, does it work for you?

@AlexanderMisel 感谢反馈,确实可能很不稳定~ 光标无法定位在后方,跟`contenteditable=false`有关,目前版本已经给前后[加上了空格](https://github.com/fritx/vue-at/blob/725d7a1470e9cc309ae2b7d04deddf8ccf9ceb05/src/At.vue#L399-L401)尽量避免这种情况了,但不保证,还得看看

Is it ~~the same request with~~ (related to) #13 (Insert html instead of text) ? And awesome PR #54 :+1: @Brimstedt @jrvaja

@jrvaja I'm not sure, help wanted! I've recorded a gif which demos my current wip implementation (based on awesome work from @Brimstedt ). Branch: as mentioned above: https://github.com/fritx/vue-at/commit/7cdcea18613173806c1dbfd1b5ff781cc4d41add

@Brimstedt I'm not sure is it stable and have almost no bugs to be released (probably would last some time). My implementation has gone far more ugly (needs optimization), what...

@gabaum10 hi, worth a try! Is it https://github.com/froala/django-froala-editor ?

1\. 微信不可以呀,我安卓微信6.5.7,以及Mac微信2.2.1,都是a-z0-9紧跟@是无效的, 必须加空白符或标点。应该是为了无匹配email。 在这个issue里comment里@行为也是一样的。 ![image](https://cloud.githubusercontent.com/assets/6647633/26534296/55929e6a-4455-11e7-8146-b93aa2a64c14.png) ![image](https://cloud.githubusercontent.com/assets/6647633/26534263/e985e9d4-4454-11e7-9a9e-c077071fb95e.png) 2\. 这里@不区分"at触发的"和"手动输入的",该库旨在[消除多余的node节点](https://github.com/fritx/vue-at#motivation) (和jquery.atwho的差异), at信息应以单纯的文本形态存储于content中。 实际上不应该区分,不然如果单纯copy/paste消息,at信息就会不一致, 比如我从记事本里粘贴"@某某"到微信中,也是应该唤醒@功能的,刚试了下。 应该是单纯以规则去从content中直接提取at信息,目前这个功能库里没有帮用户存储或提取, 需要用户自己去处理,库只负责把辅助把at信息插入content。