alexgorbatchev/jquery-textext — Issue #6: Can't call plugin methods or maybe just documentation issue
Author: evereq
Created: 2012-01-11 15:02:08+00:00
State: open

Perfect code, excellent documentation & cool examples...
However I can't found what I need :( for some reason.
All I need is to simply add few tags using Javascript into already created input element, not during initialization (using perfect declarative way which shown 1000s times in docs / examples)
I.e. I go over all docs, but seems can't found the way how to invoke textext plugin methods!
For example, if I need to call some methods in 'ItemManager' (http://textextjs.com/manual/itemmanager.html), I can easy do something like (the bad thing that no such examples at all in the docs):

```javascript
var textext = $('#keywords').textext()[0];
var item = textext.itemManager().stringToItem('cool');
```

However, when I tried to call something like:

```javascript
var textext = $('#keywords').textext()[0];
var item = textext.tags().addTags(['hello','shit']);
```

It just fails....

The same happens with:

```javascript
var textext = $('#keywords').textext()[0];
var item = textext.TextExtTags.addTags(['hello','shit']);
```

etc.

I.e. seems can't found any "easy" way to call dirrectly plugin methods??? Strange.. because I think every such library should have at least methods which are easy accessible and documented well, like $('#keywords').textext()[0].addTags('hello','shit') or var tags = $('#keywords').textext()[0].getTags() etc.

Am I miss something?

Big thanks!