<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionInlineTagEditor jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67144/evolutioninlinetageditor-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionInlineTagEditor jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67144/evolutioninlinetageditor-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:29:09 GMT</pubDate><guid isPermaLink="false">1b788eda-4e84-44cc-af40-cdadd7f92b3f</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67144/evolutioninlinetageditor-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:29:09&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionInlineTagEditor" name="jQuery_fn_evolutionInlineTagEditor"&gt;&lt;/a&gt;jQuery.fn.evolutionInlineTagEditor&lt;/h3&gt;
&lt;p&gt;This plugin supports rendering a tag editor supporing editing and selecting of tags.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionTagEditor(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where &amp;#39;SELECTOR&amp;#39; is an a, span, or div tag.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Options" name="Options"&gt;&lt;/a&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;allTags&lt;/code&gt;: (array of strings) List of all tags available in this context
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;['']&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;currentTags&lt;/code&gt;: (array of strings) List of tags associated to the current content
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;['']&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;editorCssClass&lt;/code&gt;: (string) CSS class applied to the editor pop-up
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;tags-editor&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;editButtonText&lt;/code&gt;: (string) Label for the element identified by the selector, to open the editor pop-up
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;Edit&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;selectTagsText&lt;/code&gt;: (boolean) Label to open the tag selector within the editor pop-up
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;Select Tags&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;saveTagsText&lt;/code&gt;: Label for the save button on the editor pop-up
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;Save&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cancelText&lt;/code&gt;: Label for the cancel button on the editor pop-up
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;Cancel&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onSave&lt;/code&gt;: (function) callback function when tags are saved. The function is passed an array of strings (the list of tags) and a callback function to be called when saving is complete.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Example" name="Example"&gt;&lt;/a&gt;Example&lt;/h3&gt;
&lt;p&gt;Given the following span to contain a inline tag editor control:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;a id=&amp;quot;inlineTagEditorControl&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The following will initialize an inline tag editor control, using defaults for most options&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var inlineTagEditorControl = $(&amp;#39;#inlineTagEditorControl&amp;#39;);
inlineTagEditorControl.evolutionInlineTagEditor({
    allTags: ['tag1', 'tag2', 'tag3'],
    currentTags: ['tag2']
    onSave: function(tags, callback) {
        alert(&amp;#39;Saving tags: &amp;#39; + tags.join(&amp;#39;, &amp;#39;));

        // ...perform AJAX-based saving of tags here...

        // After a successful save, callback to notify the inline tag editor plugin
        callback();
    }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>