fritx / vue-at

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

Space Issue #74

Open xinlangzi opened 5 years ago

xinlangzi commented 5 years ago

After choose the matched item, the space is not append. I saw your demo does append SPACE.

"vue": "^2.5.17",   
"vue-at": "^2.3.2"
fritx commented 5 years ago

@xinlangzi hey, had no idea. Did you solve the space problem now?

truckerzoom commented 5 years ago

@fritx

Yes. Please add the css into the div

white-space: pre-wrap;
fritx commented 5 years ago

@truckerzoom sorry, the point was missing in guide.

Yeah, we had to add that line to whatever your content-editable editor, as I did in the demo

https://github.com/fritx/vue-at/blob/725d7a1470e9cc309ae2b7d04deddf8ccf9ceb05/src/App.vue#L135

mi60dev commented 5 years ago

Make it a js option not css fix

fritx commented 5 years ago

@mihailvalchev @truckerzoom I used to think that it should be considered as the editor css style, not included in vue-at, but now I think you might be right, I could provide an option and sets the css to <at> wrapper?