I’ve created a rich text area in my form in my Module’s control panel page. But when I change anything in the rich text field and submit the form, the changes are not submitted. It simply submits whatever was in the form on initial page load.
This code correctly shows a rich text field, but never updates the content.
ee()->load->add_package_path( PATH_MOD . "rte/" );
ee()->load->library( array( "javascript", "rte_lib" ) );
ee()->javascript->output(
ee()->rte_lib->build_js( 0, ".richTextField", NULL, (REQ == "CP" ) )
);
$settings[] = array(
"title" => "My Text Area",
"fields" => array(
"mytextarea" => array(
"type" => "textarea",
"value" => $savedValue,
"required" => true,
"attrs" => ' class="richTextField"'
)
)
);
Using 3.0.4
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.