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?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.