Support Forum » User Profile

Forum Replies Created

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • in reply to: Custom field wysiwyg break woocommerce product field #27774
    HeaveHeave
    Participant

    dang ! that was it, thanks

    in reply to: Custom field wysiwyg break woocommerce product field #27755
    HeaveHeave
    Participant

    did swtich every plugin off but woocommerce + mb addon = same result can't switch tab, stick on text and error in console

    here is the code

    <?php
    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    
    function your_prefix_function_name( $meta_boxes ) {
        $prefix = 'meta_';
    
    $meta_boxes[] = [
        'title'      => __( 'Custom Field Produit', 'your-text-domain' ),
        'id'         => 'custom-field-produit',
        'post_types' => ['product'],
        'priority'   => 'low',
        'fields'     => [
            [
                'name'       => __( 'Texture et goût', 'your-text-domain' ),
                'id'         => $prefix . 'texture_gout',
                'type'       => 'textarea',
                'required'   => 1,
                'save_field' => 1,
            ],
            [
                'name'       => __( 'Contre indications', 'your-text-domain' ),
                'id'         => $prefix . 'contre_indications',
                'type'       => 'textarea',
                'save_field' => 1,
            ],
            [
                'name'       => __( 'Mode d’emploi', 'your-text-domain' ),
                'id'         => $prefix . 'mode_d\'emploi',
                'type'       => 'wysiwyg',
                'save_field' => 1,
            ],
            [
                'name'       => __( 'Spheres', 'your-text-domain' ),
                'id'         => $prefix . 'spheres',
                'type'       => 'wysiwyg',
                'save_field' => 1,
            ],
        ],
    ];
    
    return $meta_boxes;
    }
    in reply to: Custom field wysiwyg break woocommerce product field #27724
    HeaveHeave
    Participant

    still have the following error :

    wp-tinymce.js?ver=49110-20201110:3 Uncaught TypeError: Cannot read property 'onpageload' of undefined
    at wp-tinymce.js?ver=49110-20201110:3
    at e (wp-tinymce.js?ver=49110-20201110:3)
    at Se.y.bind (wp-tinymce.js?ver=49110-20201110:3)
    at Object.M [as bind] (wp-tinymce.js?ver=49110-20201110:3)
    at Object.init (wp-tinymce.js?ver=49110-20201110:3)
    at n (editor.min.js?ver=5.7.1:2)
    at HTMLDocument.<anonymous> (editor.min.js?ver=5.7.1:2)
    at C (wp-tinymce.js?ver=49110-20201110:3)
    at HTMLDocument.d (wp-tinymce.js?ver=49110-20201110:3)

    also custom field is directly creater through metabox, no code

    in reply to: Custom field wysiwyg break woocommerce product field #27696
    HeaveHeave
    Participant

    any up ?

    in reply to: Custom field wysiwyg break woocommerce product field #27568
    HeaveHeave
    Participant

    And only within the same group.

    I can create multiple groupe of wysiwyg form the same post type and it works

    in reply to: Custom field wysiwyg break woocommerce product field #27567
    HeaveHeave
    Participant

    Update it seems to happen when there is multiple wysiwyg custom field

    in reply to: bug with tinymce #27454
    HeaveHeave
    Participant

    Same problem here.

    Using woocommerce.
    When i have custom field with wysiwyg, every field switch to text and impossible to swith to visual mode

Viewing 7 posts - 16 through 22 (of 22 total)