Skip to content

Commit

Permalink
fixes #237
Browse files Browse the repository at this point in the history
  • Loading branch information
yairEO committed May 27, 2019
1 parent b073113 commit 294b91d
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 67 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ with great performance and tiny code footprint.

## What can Tagify do
* Can be applied on input & textarea elements
* Supports mix content (text and tags together)
* Supports [mix content](#mixed-content) (text and tags together)
* Supports whitelist
* Supports blacklists
* Shows suggestions selectbox (flexiable settings & styling)
Expand Down Expand Up @@ -225,6 +225,19 @@ whitelist = [
]
```

## mixed-content

> To use this feature it must be toggled - see [settings](#settings).
When mixing text with tags, the original textarea (or input) element will have a value as follows:

[[cartman]]⁠ and [[kyle]]⁠ do not [[Bart]]⁠ know [[Homer simpson]]⁠ because he's a relic.

If the inital value of the textarea or input is formatted as the above example, tagify will try to
automatically convert everything between `[[` & `]]` to a tag, if tag exists in the *whitelist*, so make
sure when the Tagify instance is initialized, that it has tags with the correct `value` property that match
the same values that appear between `[[` & `]]`.

## React

A Tagify React component is exported as `<Tags>` from [`react.tagify.js`](https://github.com/yairEO/tagify/blob/master/dist/react.tagify.js):
Expand Down
2 changes: 1 addition & 1 deletion dist/jQuery.tagify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tagify.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 294b91d

Please sign in to comment.