<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionHtmlEditor jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67406/evolutionhtmleditor-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionHtmlEditor jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67406/evolutionhtmleditor-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:27:53 GMT</pubDate><guid isPermaLink="false">e00b2463-d164-47a3-9836-fbe7cd2a04d1</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67406/evolutionhtmleditor-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:27:53&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionHtmlEditor" name="jQuery_fn_evolutionHtmlEditor"&gt;&lt;/a&gt;jQuery.fn.evolutionHtmlEditor&lt;/h3&gt;
&lt;p&gt;This plugin enables enhancing a textarea element to support editing rich HTML based on configured content filtering options (global options or content-type-specific options). This plugin fires change and keydown events on the source textarea as changes are made within the editor.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initiates the selected textarea to render its contents for editing as HTML&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(selector).evolutionHtmlEditor(options)
&lt;/code&gt;&lt;/pre&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;width&lt;/code&gt;: The width of the HTML editor (default:  &amp;#39;100%&amp;#39;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;height&lt;/code&gt;: The height of the HTML editor (default: &amp;#39;300px&amp;#39;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;contentTypeId&lt;/code&gt;: The content type identifier for the content being edited. This enables content-type-specific content filtering and functionality (default: null)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;placeholder&lt;/code&gt;: The placeholder text to show in the editor when it is empty (default: null)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;enableFileUpload&lt;/code&gt;: When specified, forces file uploading support on or off. When null, file uploading support is determined by reviewing the specified content type&amp;#39;s capabilities and filtering configuration (default: null)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;submittable&lt;/code&gt;: Enables direct submission of the content from the editor (default: false)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;enterToSubmitPrompt&lt;/code&gt;: When configured to be submittable, the text to enable typing enter to submit the content being edited (default: null)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;submitLabel&lt;/code&gt;: When configured to be submittable, the text shown on the submission button, when shown (default: null)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;beforeSubmitHtml&lt;/code&gt;: When configured to be submittable, HTML that should be rendered before the submit button or prompt (default: null)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;afterSubmitHtml&lt;/code&gt;: When configured to be submittable, the HTML that should be rendered after the submit button or prompt (default: null)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;autoResize&lt;/code&gt;: When enabled, the editor will resize to fit the content by height (default: false)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;enableEnterToSubmitToggle&lt;/code&gt;: When submittable, identifies whether the option to turn enter-to-submit on/off should be shown (default: false)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onSubmit&lt;/code&gt;: When submittable, the function that should be executed when the content is submitted. The content of the editor is provided as the only parameter to the function. (default: function(html) { })&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="val" name="val"&gt;&lt;/a&gt;val&lt;/h4&gt;
&lt;p&gt;Retrieves and/or sets the current value of the editor.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Returns the current value
var value = $(selector).evolutionHtmlEditor(&amp;#39;val&amp;#39;)

// Sets the value
$(selector).evolutionHtmlEditor(&amp;#39;val&amp;#39;, newString)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="focus" name="focus"&gt;&lt;/a&gt;focus&lt;/h4&gt;
&lt;p&gt;Focuses the editor&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(selector).evolutionHtmlEditor(&amp;#39;focus&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="saveCursorPosition" name="saveCursorPosition"&gt;&lt;/a&gt;saveCursorPosition&lt;/h4&gt;
&lt;p&gt;Causes the editor to save the current cursor position to be used by future insert calls.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(select).evolutionHtmlEditor(&amp;#39;saveCursorPosition&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="insert" name="insert"&gt;&lt;/a&gt;insert&lt;/h4&gt;
&lt;p&gt;Inserts HTML into the editor at its current cursor position (or last saved cursor position).&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(select).evolutionHtmlEditor(&amp;#39;insert&amp;#39;, html)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="moveTo" name="moveTo"&gt;&lt;/a&gt;moveTo&lt;/h4&gt;
&lt;p&gt;Moves the editor to a new parent element. This method should be used instead of other DOM manipulation logic to ensure that editor state is not lost.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(select).evolutionHtmlEditor(&amp;#39;moveTo&amp;#39;, $(newparent))
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="ready" name="ready"&gt;&lt;/a&gt;ready&lt;/h4&gt;
&lt;p&gt;Returns true if the editor is initialized and ready, otherwise false. If passed a function (optional), the function is executed when the editor is ready.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var ready = $(select).evolutionHtmlEditor(&amp;#39;ready&amp;#39;, function() { alert(&amp;#39;Ready!&amp;#39;); })
&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>