<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: How To: Rich Text Field Editor</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor</link>
		<description>Gravity Support Forums Topic: How To: Rich Text Field Editor</description>
		<language>en-US</language>
		<pubDate>Fri, 01 May 2026 17:40:00 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/how-to-rich-text-field-editor" rel="self" type="application/rss+xml" />

		<item>
			<title>sanz on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-90950</link>
			<pubDate>Wed, 14 Nov 2012 02:11:46 +0000</pubDate>
			<dc:creator>sanz</dc:creator>
			<guid isPermaLink="false">90950@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Dan ... was looking for this exact solution. Works perfectly when using GF 1.6.9.&#60;/p&#62;
&#60;p&#62;@espo_74 - setting 'teeny' =&#38;gt; false will enable the full WP editor. Check out &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_editor&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_editor&#60;/a&#62; for the options you can pass in. I also used 'media_buttons' =&#38;gt; false hide the insert/upload buttons.&#60;/p&#62;
&#60;p&#62;Scott
&#60;/p&#62;</description>
		</item>
		<item>
			<title>espo_74 on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-62634</link>
			<pubDate>Thu, 14 Jun 2012 18:56:41 +0000</pubDate>
			<dc:creator>espo_74</dc:creator>
			<guid isPermaLink="false">62634@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the follow up Dan--better than the css hack i had going. I still have to display:none the wp-editor tools but that is no problem. &#60;/p&#62;
&#60;p&#62;Any idea on how to include the mce_pasteword or mce_pastetext options?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>flaiks on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-55013</link>
			<pubDate>Thu, 12 Apr 2012 04:03:29 +0000</pubDate>
			<dc:creator>flaiks</dc:creator>
			<guid isPermaLink="false">55013@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I tried to add this, and it does not work when using the Post Body Field in GF, it does however work on a normal paragraph field, but when using the paragraph field it won't go in as the post body&#60;/p&#62;
&#60;p&#62;Edit: it seems I have figure it out &#60;/p&#62;
&#60;p&#62;if ( (( 'post_content' == $field['type'] )
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dan_tatro on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-54891</link>
			<pubDate>Wed, 11 Apr 2012 11:34:29 +0000</pubDate>
			<dc:creator>dan_tatro</dc:creator>
			<guid isPermaLink="false">54891@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here's a quick followup regarding your replies ...&#60;/p&#62;
&#60;p&#62;Check out this new snippet -&#38;gt; &#60;a href=&#34;http://www.pastie.org/3768690&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/3768690&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Added support for Custom Fields (textarea)&#60;br /&#62;
Added a filter to add/remove editor buttons&#60;br /&#62;
Noted a setting (quicktags) to disable HTML view&#60;/p&#62;
&#60;p&#62;- Dan
&#60;/p&#62;</description>
		</item>
		<item>
			<title>espo_74 on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-54684</link>
			<pubDate>Mon, 09 Apr 2012 18:39:25 +0000</pubDate>
			<dc:creator>espo_74</dc:creator>
			<guid isPermaLink="false">54684@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Brad--appreciate your following up on this with the code. &#60;/p&#62;
&#60;p&#62;In case anyone else is using this--I also wanted to disable some of the options for this specific form so I just used some CSS to accomplish this by hiding some of the buttons. Quick and easy hack. Probably a better way to do it, but this worked.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;mce_bullist, .mce_numlist, .mce_blockquote, .mce_underline, .wp-editor-tools { display:none !important; }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>bradvin on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-54656</link>
			<pubDate>Mon, 09 Apr 2012 15:41:43 +0000</pubDate>
			<dc:creator>bradvin</dc:creator>
			<guid isPermaLink="false">54656@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just saw my prev comment and noticed a horrible copy n paste error!&#60;/p&#62;
&#60;p&#62;it should be:&#60;/p&#62;
&#60;p&#62;if( ( 'post_custom_field' == $field['type'] ) &#38;amp;&#38;amp;&#60;/p&#62;
&#60;p&#62;hahahaha! Sorry about that :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>espo_74 on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-54655</link>
			<pubDate>Mon, 09 Apr 2012 15:32:10 +0000</pubDate>
			<dc:creator>espo_74</dc:creator>
			<guid isPermaLink="false">54655@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Brad...it still a no go. I'll keep hacking away at this.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Add a WP Editor to the Paragraph Text field
add_action( &#38;#39;gform_field_content&#38;#39;, &#38;#39;gform_html_editor&#38;#39;, 10, 5 );
function gform_html_editor( $content, $field, $value, $lead_id, $form_id ) {

	// HTML &#38;amp; textarea?
	if( ( &#38;#39;textarea&#38;#39; == $field[&#38;#39;post_custom_field&#38;#39;]  ) &#38;amp;&#38;amp; ( &#38;#39;gf_html&#38;#39; == $field[&#38;#39;cssClass&#38;#39;] ) ) {

		// Start output buffering
		ob_start();

		// Create a wp_editor
		$settings = array(
			&#38;#39;teeny&#38;#39; =&#38;gt; true
		);
		wp_editor( $value, &#38;quot;input_{$field[&#38;#39;id&#38;#39;]}&#38;quot;, $settings );

		// Replace the textarea with the editor
		$start_textarea = strpos( $content, &#38;#39;&#38;lt;textarea&#38;#39; );
		$end_textarea = strpos( $content, &#38;#39;textarea&#38;gt;&#38;#39; ) + 9;
		$content = str_replace(
			substr( $content, $start_textarea, $end_textarea - $start_textarea ),
			ob_get_contents(),
			$content
		);

		// End output buffering
		ob_end_clean();
	}

	return $content;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>bradvin on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-54645</link>
			<pubDate>Mon, 09 Apr 2012 13:57:05 +0000</pubDate>
			<dc:creator>bradvin</dc:creator>
			<guid isPermaLink="false">54645@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@espo_74:&#60;/p&#62;
&#60;p&#62;in the code snippet, change &#60;/p&#62;
&#60;p&#62;if( ( 'textarea' == $field['type'] ) &#38;amp;&#38;amp;&#60;/p&#62;
&#60;p&#62;to read&#60;/p&#62;
&#60;p&#62;if( ( 'textarea' == $field['post_custom_field'] ) &#38;amp;&#38;amp;&#60;/p&#62;
&#60;p&#62;to make it work with the post custom field. &#60;/p&#62;
&#60;p&#62;This code however does not check that the custom field is set to be a paragraph, but I do not think it should be a problem
&#60;/p&#62;</description>
		</item>
		<item>
			<title>espo_74 on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-54499</link>
			<pubDate>Fri, 06 Apr 2012 18:24:02 +0000</pubDate>
			<dc:creator>espo_74</dc:creator>
			<guid isPermaLink="false">54499@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks a ton! this is great...close to what I was hoping for. I'm not an adept programmer by any means and am looking to add this functionality to the GF Custom Post Type area....any ideas how to do that?  &#60;/p&#62;
&#60;p&#62;When I include the style on any of the form fields (Post Field--&#38;gt;Custom Field   Field Type: Paragraph Text) it does not display--but it does when it is a simple Paragraph field (Standard Field--&#38;gt; Paragraph Text).&#60;/p&#62;
&#60;p&#62;Any thoughts on how I would change this for these types of fields (this form has about 5 of them used to create a page)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dan_tatro on "How To: Rich Text Field Editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-rich-text-field-editor#post-51052</link>
			<pubDate>Thu, 01 Mar 2012 16:34:32 +0000</pubDate>
			<dc:creator>dan_tatro</dc:creator>
			<guid isPermaLink="false">51052@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've seen this question asked quite a bit in the forums ... &#34;How do I add a rich text editor/TinyMCE to my form?&#34;.&#60;/p&#62;
&#60;p&#62;I know that the guys are planning to support this in the future, but in the mean time here is a stop gap.&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;
Insert a Paragraph Text field to your form
&#60;/li&#62;
&#60;li&#62;
Change the CSS Class Name to &#34;gf_html&#34; (on the Advanced tab)
&#60;/li&#62;
&#60;li&#62;
Paste this code -&#38;gt; &#60;a href=&#34;http://pastie.org/3499029&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3499029&#60;/a&#62; in your functions.php
&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;Be careful ... data validation gets trickier with HTML.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
