Bug #14843
closedLinks not being processed properly in extension RTE fields
0%
Description
My system is producing links from RTE that look like this
The index.php is missing, which causes the wrong page to appear. Upon investigation, it turns out the RTE database transformation is not occurring. Looking at the DB, the value is not stored as <LINK>, but instead as an A HREF.
Upon more investigation, it appears that the transformation is missed when the RTE field is added in an extension, but not to all TCAtypes.
I located the problem in t3lib_BEfunc::getTCAtypes(), which does not return the extension's RTE field is it is specific to a subtype, even if the subtype matches the current tt_content subtype I am looking at.
This happens when I am using both the "rte" and "rtehtmlarea" RTEs.
Here is part of my config from ext_tables.php - I have no line for t3lib_extMgm::addToAllTCAtypes()
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"][$_EXTKEY."_pi2"]=" myext_adminsettings, myext_morelink,myext_rtetextfield;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/myext/rte/]";
The myext_rtetextfield is not transformed.
(issue imported from #M1244)