Support Forum » User Profile

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: WYSIWYG Visual editor not working #41913
    YardYard
    Participant

    Is there an update already?

    in reply to: WYSIWYG Editor Not Working Correctly #24083
    YardYard
    Participant

    Hi Anh,

    My company is using a framework similar to Laravel but extended with WordPress support. This is the code:

    Metabox::add('post_internal_information', [
                'title'      => __('Interne informatie', config('app.text_domain')),
                'post_types' => ['page', 'person', 'wip'],
                'context'    => 'normal',
                'priority'   => 'high',
                'fields'     => [
                    [
                        'name'  => __('Titel', config('app.text_domain')),
                        'id'    => 'post_information_internal_title',
                        'type'  => 'text',
                    ],
                    [
                        'name'    => __('Interne informatie', config('app.text_domain')),
                        'id'      => 'post_information_internal',
                        'type'    => 'wysiwyg', // this is the metabox currently having the issue
                        'raw'     => true,
                        'desc'    => __('Hier kunt u informatie toevoegen die alleen voor intern gebruik bestemd is.', config('app.text_domain')),
                    ],
                ],
            ]);
    in reply to: WYSIWYG Editor Not Working Correctly #24048
    YardYard
    Participant

    Hi Anh,

    I've a similar problem, when I load the editor I can see the wysiwyg editor but the font-color is set to white? When I switch to the text-editor and back to the visual the iframe is still set to display:none; I use the latest version of the metabox plug-in (3.5.7) and WordPress 5.6

    After loading the editor: https://ibb.co/Wy3ykPk"
    After switch text back to visual: https://ibb.co/HCtWYDh

    Do you know what the problem is?

    YardYard
    Participant

    As college of topic starter, I dug a bit deeper, and found that adding a default, did help:

    
    [
        'id'          => "{$keyName}_scroll_tabs",
        'name'        => __('Vul de titel in en het ID in van het element waar naartoe gescrollt dient te worden.', 'fusion'),
        'type'      => 'key_value',
        'placeholder' => ['key' => 'Titel', 'value' => 'Anchor ID'],
        'std' => ['key' => ''],
        'multiple'      => true,
        'clone'       => true,
        'add_button' => __('Set toevoegen', 'fusion')
    ]
    

    Maybe it's useful to add a default value of an empty string.

    in reply to: ISSUE: White screen when returning to image editor #15528
    YardYard
    Participant

    Hi,

    Did you succeed to reproduce the issue?

    This happens to me at all sites I run using the metabox plugin. Maybe good to add that the problem only occurs when I close the window using the "X", and not when I click on "cancel".

    Right know I have to explain this workaround to all users of our sites. Any idea on how and when this issue can be fixed?

    Thanks in advance,

    Simon

    YardYard
    Participant

    Hi Anh,

    Works like a charm! Are you including this fix in the next update?

    YardYard
    Participant

    Hi Anh,

    I've downgraded to version 1.2.8 and now it is al working fine.
    The code below is the one that works.

    /**
         * Update group title.
         *
         * @param index   Group clone index.
         * @param element Group element.
         */
        group.toggle.updateTitle = function ( index, element ) {
            var $group = $( element ),
                $title = $group.find( '> .rwmb-group-title, > .rwmb-input > .rwmb-group-title' ),
                options = $title.data( 'options' ),
                content = '';
    
            function processField( fieldId, separator ) {
                separator = separator || '';
    
                var $field = $group.find( ':input[name*="[' + fieldId + ']"]' ),
                    fieldValue = $field.val();
    
                if ( $field.is( 'select' ) ) {
                    fieldValue = $field.find( 'option:selected' ).text();
                }
    
                if ( fieldValue ) {
                    content += ( content ? separator : '' ) + fieldValue;
                }
    
                // Update title when field's value is changed.
                if ( ! $field.data( 'update-group-title' ) ) {
                    $field.on( 'keyup change', _.debounce( function () {
                        group.toggle.updateTitle( 0, element );
                    }, 250 ) ).data( 'update-group-title', true );
                }
            }
    
            if ( 'undefined' === typeof options || 'undefined' === typeof options.type ) {
                return;
            }
    
            if ( 'text' === options.type ) {
                content = options.content.replace( '{#}', index );
            }
            if ( 'field' === options.type ) {
                var fieldId = options.field;
    
                // Multiple fields.
                if ( -1 !== fieldId.indexOf( ',' ) ) {
                    options.separator = options.separator || ' ';
                    var fieldIds = fieldId.split( ',' );
                    fieldIds.forEach( function ( value ) {
                        processField( value.trim(), options.separator );
                    } );
                } else {
                    processField( fieldId );
                }
            }
            $title.text( content );
        };
    YardYard
    Participant

    https://pastebin.com/raw/9TeLAcN5

    YardYard
    Participant

    Hi Anh,

    No that's not the case.

    in reply to: How to contribute to plugin? #6712
    YardYard
    Participant

    And yet again, an error:

    [email protected]
    Your message wasn't delivered because the recipient's e-mail provider rejected it.
    The following organization rejected your message: gmail-smtp-in.l.google.com.

    in reply to: How to contribute to plugin? #6711
    YardYard
    Participant

    Okay, I've resent it.

    in reply to: How to contribute to plugin? #6696
    YardYard
    Participant

    I got an error:

    [email protected]
    Your message wasn't delivered because the recipient's e-mail provider rejected it.
    The following organization rejected your message: aspmx.l.google.com.

    in reply to: How to contribute to plugin? #6695
    YardYard
    Participant

    Perfect, I've send you an email with the plugin.

    thanks

Viewing 13 posts - 1 through 13 (of 13 total)