Problem with rich text (HTML) editor for the listing/request description

Hello.
I use this snippet to enable tinymce for the description field.

add_filter(
	'hivepress/v1/models/request',
	function( $model ) {
		$model['fields']['description']['editor'] = true;

		return $model;
	},
  1000
);

The editor appears and works, but after we select the category, ajax is executed and the form is updated, the editor disappears.
If some text was added to the editor, and then a category was selected, then the text and the editor disappear.

Thanks for reporting this issue, it seems that the editor is not re-initialized when the form is refreshed via AJAX, we added this to the bug tracker and will fix as soon as possible.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.