Editor Error in Custom Module
Jamroom Developers
I am using a cloned version of jrTracker. We need the description to use the full editor not just a textarea, but the editor continues to strip all the formatting.
The original description code, in the index.php, looked like this for both the _create and _update functions:
$_tmp = array(
'name' => 'project_text',
'label' => 4,
'help' => 5,
'type' => 'textarea',
'validate' => false,
'required' => true
);
if (strpos($_user['quota_jrCore_active_formatters'], 'format_string_bbcode')) {
$_tmp['sublabel'] = 48;
}
jrCore_form_field_create($_tmp);
I changed the code to support the editor in both areas, as follows:
$_tmp = array(
'name' => 'project_text',
'label' => 4,
'help' => 5,
'type' => 'editor',
'validate' => 'allowed_html',
'required' => true
);
jrCore_form_field_create($_tmp);
Any thoughts as to why the editor is still stripping the formatting?
updated by @the-patria-company: 06/28/20 10:12:58AM