We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Using RTE with custom content type

Developer Preview

Low's avatar
Low
407 posts
10 years ago
Low's avatar Low

When I call replace_tag with a ‘low_variables’ content type after setting up the RTE fieldtype and initiating it, I get multiple errors.

First of all, the Typography library isn’t loaded. I can manually load it before calling replace_tag, but that’s cheating, really.

Then, the following properties, which are Channel specific, aren’t available in the fieldtype object:

$this->row['channel_html_formatting']
$this->row['channel_auto_link_urls']
$this->row['channel_allow_img_urls']

To solve, I think the RTE fieldtype should explicitly load the Typography class, and provide defaults or alternatives for the Channel specific properties if they’re not set/available.

Is this something I should add to the bug-tracker, or are these forums ok?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
10 years ago
Kevin Cupp's avatar Kevin Cupp

Ok, Low, I’ve made these changes for the next build.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.