WYSIWYG Textarea Entry Values Lost on Update via API
-
Thanks for the plugin. It is very handy to have for formatting.
I have built a plugin that extends GF using the API and it makes use of the
$success = GFAPI::update_entry( $entry ); method.if (isset($_POST['entry_id'])) { $entry_id = $_POST['entry_id']; $entry = GFAPI::get_entry($entry_id); $field = $_POST['field_id']; $status = $_POST['status']; $entry[$field] = $status; $success = GFAPI::update_entry( $entry ); }
Everything was working fine until I checked the “Enable WYSIWYG” field for the text areas. Now when when my API callback is executed it returns a blank value to all textarea fields.
I disabled WYSIWYG on one textarea and it worked normally for that field while returning empty for the others.
Any thoughts on how to adapt my code to make it work with the WYSIWYG active?
https://www.ads-software.com/plugins/gravity-forms-wysiwyg-ckeditor/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WYSIWYG Textarea Entry Values Lost on Update via API’ is closed to new replies.