Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 16:13
Show Gist options
  • Save hivepress/4ed3d319ab220c6e005f58a4da95e504 to your computer and use it in GitHub Desktop.
Save hivepress/4ed3d319ab220c6e005f58a4da95e504 to your computer and use it in GitHub Desktop.
Enable rich text (HTML) editor for the listing description #hivepress #listings
<?php
add_filter(
'hivepress/v1/models/listing',
function( $model ) {
$model['fields']['description']['editor'] = true;
return $model;
},
1000
);
@hivepress
Copy link
Author

Yes, this is a known bug - unfortunately there's no temporary fix for this but we'll fix this in the next update. Since the form is refreshed without the page refresh, WordPress doesn't initialize the editor.

@snokamedia
Copy link

@hivepress 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment