Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirabyan authored Oct 30, 2016
1 parent 02579f1 commit 4b47a67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ $('textarea').mentionsInput('setValue', 'Hello, @[Alex](user:1)');
Don't use textarea value directly, because it contains special characters, used by plugin internally. Always use methods.

##### WYSIWYG editors

WARNING: This plugin does not currently work with editors, which use iframe.

To create WYSIWYG editor on your site, usually you create `<textarea>` tag, and then your editor replaces it with editor's visual representation, including element with `contenteditable="true"` attribute. So, to make `mentionsInput` plugin work, you need to apply the plugin to element with `contenteditable="true"`. If you apply the plugin to your `<textarea>`, it'll not work.
For example:
```
Expand Down

0 comments on commit 4b47a67

Please sign in to comment.