sniperwolf / taggingJS

jQuery plugin to tagging like a charm!
http://sniperwolf.github.io/taggingJS/
MIT License
933 stars 151 forks source link

Zero Width Chars #12

Closed MHM5000 closed 10 years ago

MHM5000 commented 10 years ago

I believe these two should be implemented in the system, two. http://www.fileformat.info/info/unicode/char/200c/index.htm http://www.fileformat.info/info/unicode/char/200B/index.htm

sniperwolf commented 10 years ago

Hi @MHM5000,

can you please clarify how can we use this?

MHM5000 commented 10 years ago

For typing the ZERO WIDTH NON-JOINER char, in latest Persian/Arabic standards, you could use Shift+Space which I tried, but won't work and thinks It's a simple space and makes a new tag instead of continuing the text. Check out my site : MHM5000.ir. Two line blow the logo, you'll see this word: می‌گردم. If you use Inspector, you'll notice a ‌ in the middle of text.

If it still doesn't make sense, tell me.

sniperwolf commented 10 years ago

To fix this simply set to true the option no-spacebar. So:

  1. Create a tag box with this data attributes:

    <div data-no-spacebar="true" id="tagBox">preexisting-tag</div>
  2. Add to your main JavaScript file:

    $("#tagBox").tagging();