Fritz Lin

Results 359 comments of Fritz Lin

@mochetts oh yes, sorry for the missing documentation

The `.firstChild` calls appear in the following parts: - https://github.com/fritx/vue-at/blob/ec002402ab875150558bbcc4f84d5deb3fa87be4/src/At.vue#L442-L446 - https://github.com/fritx/vue-at/blob/ec002402ab875150558bbcc4f84d5deb3fa87be4/src/At.vue#L455-L459 It is more likely to be the next one with `` feature. As stated in https://caniuse.com/#feat=template, seems it...

@boi1 hi there is a related issue before but in Chinese https://github.com/fritx/vue-at/issues/26#issuecomment-331862114 ```vue @ ``` ```js insertAt () { let { ed } = this.$refs ed.focus() // 如果之前没有焦点,则会定位到文本最前而不是最后,可能可以改进 document.execCommand('insertText', 0,...

@rizwanrb12345 oh yes, embeddedItem, i.e. the [custom-tags](https://github.com/fritx/vue-at#custom-tags) feature, is just available for the contentEditable, because only textarea can only contains plain text. We can not put any customized HTML tags...

@rizwanrb12345 oh I can't understand your workaround. did u manage to insert some customized tags into a textarea or hacking? btw what did u do for the selectionStart/End? it's cool...

@zhang-xiao @4ver what kind of api do you like? like passing a prop `fetch`? http://element.eleme.io/#/en-US/component/input#autocomplete ```vue ```

@Minasokoni nice idea! Didn't see such a way in other framworks like Element-UI. Did you see this feature in other places?

@Minasokoni added `$emit('at')`, but not published yet, try ```sh npm i -S "git+https://github.com/fritx/vue-at.git#feat/emit-at-build" ``` ```vue // ... async handleAt (chunk) { this.members = await fetchFromRemote(chunk) } ```

The branch is buggy now, need more time to fix. @Minasokoni

@Minasokoni you can try the branch now xD, just pushed.