<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionTextEditor jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67154/evolutiontexteditor-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionTextEditor jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67154/evolutiontexteditor-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:28:14 GMT</pubDate><guid isPermaLink="false">d32f0efd-0e76-4bc2-9ec2-dc04fbf09741</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67154/evolutiontexteditor-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:14&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionTextEditor" name="jQuery_fn_evolutionTextEditor"&gt;&lt;/a&gt;jQuery.fn.evolutionTextEditor&lt;/h3&gt;
&lt;p&gt;This plugin supports enhancing a text area with support for editing HTML suitable for use as a primary content editor.&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;).evolutionTextEditor(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where &amp;#39;SELECTOR&amp;#39; is a textarea.&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;plugins&lt;/code&gt;: (array) list of [[evolutionComposer jQuery Plugin|evolutionComposer]] plugins to enable for this text editor
&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;readOnlyMessage&lt;/code&gt;: (string) message to show when a user attempts to edit content that cannot be edited in plain text mode
&lt;ul&gt;
&lt;li&gt;default ``&lt;/li&gt;
&lt;/ul&gt;
&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;Returns (and sets if passed a second optional value) the current HTML result of the text editor&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// get the value
var value = $(&amp;#39;SELECTOR&amp;#39;).evolutionTextEditor(&amp;#39;val&amp;#39;);

// set the value
$(&amp;#39;SELECTOR&amp;#39;).evolutionTextEditor(&amp;#39;val&amp;#39;, &amp;#39;&amp;lt;p&amp;gt;New content&amp;lt;/p&amp;gt;&amp;#39;);
&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 on the editor.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionTextEditor(&amp;#39;focus&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="resize" name="resize"&gt;&lt;/a&gt;resize&lt;/h4&gt;
&lt;p&gt;Resizes the editor to a specific width/height.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionTextEditor(&amp;#39;resize&amp;#39;, width, height);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="onKeyDown" name="onKeyDown"&gt;&lt;/a&gt;onKeyDown&lt;/h4&gt;
&lt;p&gt;Registers a function to be called when a key is pressed.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionTextEditor(&amp;#39;onKeyDown&amp;#39;, 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>