Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

'SPACE' tagging token doesn't work when pasting #1140

Open
rysilva opened this issue Aug 11, 2015 · 2 comments
Open

'SPACE' tagging token doesn't work when pasting #1140

rysilva opened this issue Aug 11, 2015 · 2 comments

Comments

@rysilva
Copy link

rysilva commented Aug 11, 2015

For tagging tokens, you must use the keyword 'SPACE' to match a space when typing tags. However, when pasting space-separated tags, it uses the first token literally when splitting the paste input. (i.e., it does data.split("SPACE").

As a workaround, I'm doing tagging-tokens=" |SPACE|,".

I created this plunkr but pasting doesn't work at all due to a javascript error on paste (see #848)
http://plnkr.co/edit/16MAOSMmglECNH2QzuA3?p=preview

Also, it should be documented that paste only splits on the first tagging token.

Edit: forget the plunkr, too many paste-related bugs to get it to work. See #910 which should fix them

@awerlang
Copy link
Contributor

+1

@cdjackson
Copy link
Contributor

The issue is that tagging through pasting is using characters, while tagging through keyboard input uses character codes. There's a translation of 'character names' (eg SPACE) to key codes, but this isn't the same as characters (which is why your fix of putting the space works). There needs to be yet another translation (in itself simple, but it needs some thought to ensure it's done in a decent way).

This might be worth considering for the refactor (#1134)

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

No branches or pull requests

4 participants