Open dmitry-kozachek opened 7 years ago
Excellent! Will try to have this feature soon. PR is appreciated too. But one thing I'm concerning -- would the custom html node disturb at-triggering?
I was trying to keep vue-at only inserting plain text to avoid any copy/paste/parse issues. If that works without problems, it would be nice.
After trying At.js, it seems that we'd better also make the following change:
inserted-node
clicked, don't edit it, clear the node, then open the at-panel.inserted-node
should no be editable but skippedOtherwise, users will edit across both inserted-nodes
and other contents,
which could lead to a mess.
It that correct?
@fritx Possible solution is to wrap inserted-node
in contenteditable="false"
I would like to see this implemented too. Having it insert only text is nice, but I would like to be able to style the mentions and doing so is impossible without having a little extra markup.
Yeah, if I have time this weekend, would give it a try ;) thanks guys! Any suggestion is welcomed.
Would greatly like to see this implemented as well. @fritx any updates on the progress?
I really want to ditch the at.js (and its dependencies) and use this package as our app is all in Vue. This feature is the only thing that is keeping me from switching. Being able to style inserted mentions is a very often use case.
I'm not really a pro at javascript but gonna look into this and see if I can help you with a PR.
Btw awesome package :D
Hi, in At.js there is a possibility to place custom html, so it would be good to have a slot like this:
and then
insertItem()
function should look like:Also in this case it would be good to have prop like
keepTriggerChar
: