Support Forum » User Profile

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: WYSYWG editor delets content! #27780
    andreaskunzeduesseldorf@gmail.com[email protected]
    Participant

    Hi Long,

    first of all: Thank you for mentioning Immolist Mallorca in the showcase! And thanks for the quick reply.
    - The debugging information does not show any hint what is wrong
    - The php code is attached below.
    - In a short video you can see whats happens:
    https://drive.google.com/file/d/1BLts2zzSQkgMrjrI4ulwO8ovARwwW2MI/view
    It seems to be a very rare case. I occurs only when I put the shortcode in the standard content editor of a page. The same shortecode in the custom field works without any problem. It is not a big thing for me since I can build up the site without the shortcode in the standard content editor. Generally I am very happy with Metabox.

    Kind regards, Andreas

    <?php
    add_filter( 'rwmb_meta_boxes', 'il_pagefields' );

    function il_pagefields( $meta_boxes ) {
    $prefix = '';

    $meta_boxes[] = [
        'title'      =&gt; __( 'PageFields', 'il-mallorca' ),
        'id'         =&gt; 'pagefields',
        'post_types' =&gt; ['page'],
        'priority'   =&gt; 'low',
        'fields'     =&gt; [
            [
                'name' =&gt; __( 'Extratext', 'il-mallorca' ),
                'id'   =&gt; $prefix . 'extratext',
                'type' =&gt; 'wysiwyg',
            ],
            [
                'name'              =&gt; __( 'Schemadata', 'il-mallorca' ),
                'id'                =&gt; $prefix . 'schemadata',
                'type'              =&gt; 'textarea',
                'label_description' =&gt; __( 'Schema', 'il-mallorca' ),
                'save_field'        =&gt; 1,
            ],
        ],
    ];
    
    return $meta_boxes;
    

    }

Viewing 1 post (of 1 total)