christopherreding.com
An epic love story about a boy and his code. Featuring PHP, Javascript, HTML, Wordpress, and ExpressionEngine.
 Facebook Flickr LinkedIn Twitter
  • Home
  • About
  • Resume
  • Contact

Make CKEditor field respect your EE tags

January 3, 2011

Just noticed an issue when using the CKEditor field type where EE tags are not converted.

How to fix:

1. Open the expressionengine/third_party/bbr_ckeditor/ft.bbr_ckeditor.php file

2. Find this function on line 432


public function replace_tag($data, $params = array(), $tagdata = FALSE){
return $data;
}

3. Replace that with this:

 public function replace_tag($data, $params = array(), $tagdata = FALSE){
//Borrowed from the text area fieldtype
return $this->EE->typography->parse_type(
$this->EE->functions->encode_ee_tags($data),
array(
'text_format'	=> $this->row['field_ft_'.$this->field_id],
'html_format'	=> $this->row['channel_html_formatting'],
'auto_links'	=> $this->row['channel_auto_link_urls'],
'allow_img_url' => $this->row['channel_allow_img_urls']
)
);
}
  • StumbleUpon
« First...«9101112»2030...Last »
  • StumbleUpon

Recent Posts

  • ExpressionEngine Plugin CallPhp – Call PHP Functions Without Allowing PHP June 30, 2011
  • Video Demo of an App I wrote today for local hosting on OSX June 4, 2011
  • Expression Engine Plugin: String Replace May 17, 2011
  • Custom Post Types and Taxonomies in WordPress April 19, 2011
  • More Awesome More Taxonomies April 15, 2011

Popular Posts

  • ishowpro ex (expanded to allow all galleries) March 15, 2010
  • Thank You Wordcamp Birmingham September 28, 2009
  • BBVA Compass Matching Donations For Haiti Disaster Relief January 14, 2010
  • Social ‘media’ It’s not about YOU April 19, 2010
  • ExpressionEngine Plugin CallPhp – Call PHP Functions Without Allowing PHP June 30, 2011

Related Posts

  • Expression Engine Plugin: String Replace May 17, 2011
  • Recover the ability to add fields to a publish layout in ExpressionEngine March 14, 2011

Ask a question.

Your message was successfully sent. Thank You!

Copyright © 2011 christopherreding.com. All Rights Reserved