Custom Fields
Re-Envisioned
Support General WYSIWYG Editor Not Working Correctly

  • Creator
    Topic
  • #23716
    Resolved SLG Marketing
    Participant

    I've registered a WYSIWYG metabox on a page post type but the visual editor isn't working. If I swap to the "text" tab, I can type in there and the details are saved, but nothing is shown in the visual editor section.

    Screenshot showing issue

    Here is the code I'm using to register the metaboxes.

    
    $meta_boxes[] = array(
                'title' => 'Pedestal Details',
                'id'=>'pedestal_details',
                'post_types' => 'page',
                'fields' => array(
                    array(
                        'name'=>'Select Image Map',
                        'id'=>'image_map',
                        'type'=>'select',
                        'options'=>array(
                            'test'=> 'Test'
                        )
                    ),
                    array(
                        'name'=>'Hotspot Details',
                        'id'=>'hotspots',
                        'type'=>'group',
                        'clone'=>true,
                        'sort_clone'=>true,
                        'add_button'=>'Add a Hotspot',
                        'fields'=>array(
                            array(
                                'name'=>'Hotspot Title',
                                'id'=>'hotspot_title',
                                'type'=>'text'
                            ),
                            array(
                                'name'=>'Hotspot Content',
                                'id'=>'hotspot_content',
                                'type'=>'wysiwyg'
                            ),
                            array(
                                'name'=>'Hotspot Image',
                                'id'=>'hotspot_image',
                                'type'=>'image_advanced',
                                'multiple'=>false
                            ),
                            array(
                                'name'=>'Hotspot Products',
                                'id'=>'hotspot_products',
                                'type'=>'post',
                                'post_type'=>'product',
                                'clone' => true,
                                'add_button'=>'Add a product'
                            )
                        )
                    ),
                    array(
                        'name'=>'Select a download',
                        'id'=>'pedestal_downloads',
                        'type'=>'post',
                        'post_type'=>'download',
                        'clone' => true
                    )
                )
            );
    

    What have I missed?

Viewing 10 replies - 11 through 20 (of 46 total)
  • Author
    Replies
  • #23852
    SLG Marketing
    Participant

    Hi

    We've had some more issues with this. Can you re-open the support thread?

    While the content is now visible in the "Visual" tab, changes made there are not saved.

    Any advice on how to resolve this?

    #23853
    stijlXpres
    Participant

    Hi,

    We are still experiencing similar issues as described by SLG Marketing.

    #23854
    JC
    Participant

    Hi,

    I too have this problem with empty wysiwyg-fields. Seems to work after I save some content in text-modus and switch to visible afterwards.

    #23856
    Long Nguyen
    Moderator

    Hi guys,

    I've tried to create a cloneable, sort clone group and a sub-field WYSIWYG but do not see any issue. Screen record https://share.getcloudapp.com/NQuKAONx.

    Could you please share a screen record of the issue? Follow the step Debugging Information, and share the information in the step Private Website Info https://metabox.io/support/topic/how-to-create-a-new-topic/.

    #23858
    SLG Marketing
    Participant

    I've sent you a support email with access to our development server and a screencast of the issue.

    #23871
    Teia Local Studio
    Participant

    Hej there!

    Guys, I am having the same problem with METABOX 5.3.6.
    I did register a WYSIWYG metabox and its behavior is completely erratic.

    The data I enter on the VISUAL tab is not visible no the CODE tab, and vice versa. Switching tabs does not update its contents. Also, sometimes it does not save when I publish the post. Sometimes it does. It's strange.

    Reverting back to 5.3.5 solves the problem...
    But it is not a solution ā€” we need to stay up-to-date.

    Any ideas?
    G.

    #23881
    SLG Marketing
    Participant

    Hi

    Is there any progress on a solution? I need to update our customers ASAP.

    #23895
    Anh Tran
    Keymaster

    Hi,

    Iā€™m working on this issue and will try to fix it tomorrow.

    #23896
    Teia Local Studio
    Participant

    THANK you SO MUCH.
    I am not in a hurry, but just want to have things working... Can't sleep well at night knowing about the bug. =) Ha ha!

    #23917
    Anh Tran
    Keymaster

    Hey guys, can you please try this file wysiwyg.js and see if it fixes the bug? Just copy it and overwrite the file js/wysiwyg.js in the plugin folder.

    I've fixed the Visual tab not showing content and not saving content.

Viewing 10 replies - 11 through 20 (of 46 total)
  • You must be logged in to reply to this topic.