We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26b061 commit 3843f78Copy full SHA for 3843f78
jquery.mentionsInput.js
@@ -538,11 +538,16 @@
538
callback.call(this, mentionsCollection.length ? elmInputBox.data('messageText') : getInputBoxValue());
539
},
540
541
- //Resets the text area value and clears all mentions
+ //Resets the text area value and clears all mentions
542
reset : function () {
543
resetInput();
544
545
546
+ //Reinit with the text area value if it was changed programmatically
547
+ reinit : function () {
548
+ resetInput(false);
549
+ },
550
+
551
//An async method which accepts a callback function and returns a collection of mentions as hash objects as a first parameter.
552
getMentions : function (callback) {
553
if (!_.isFunction(callback)) {
0 commit comments