Rich text (HTML) editor for listing description contains textarea and label

Hey, I ran into a Problem and I’m not sure if its a bug or if I am doing something wrong:

I added the code snippet that turns the description editor for the listing into a rich editor, via the Code Snippets Plugin. While the editor indeed turns into a rich editor, it seems to have “swallowed” the original editor and has the label and textarea inside of it.

This is the code Snippet I used (I use the Code Snippets Plugin, so the <?php tag is in front of it):

add_filter(
    'hivepress/v1/models/listing',
    function( $model ) {
        $model['fields']['description']['editor'] = array('quicktags' => false);

        return $model;
    },
    1000
);

Here is the editor when I want to edit a listing:

As I said, I’m not sure if this is a bug or if I am doing something wrong. Do you have an idea how to fix this?
Thank you!

1 Like

Hi,

Please try to use this PHP snippet How to add custom code snippets - HivePress Help Center :

Hey,

I tried the snipped you provided, but the problem still persists

Hi,

We checked this issue from our side, and it seems okay. Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, ensure that caching is disabled for logged-in users. If this issue exists, please provide more details (e.g., your actions step by step with screenshots, etc.). This will help us to reproduce and resolve the issue faster.

Hey,

Thank you for your answer. I uninstalled the HivePress Plugin and reinstalled it and then the Error was fixed!

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

Description

test <a href="#">test</a> test

Hi,

Please check the solution in this topic.