Support

Account

Home Forums General Issues Moving content editor and missing buttons

Unread

Moving content editor and missing buttons

  • I have problem after moving content editor to ACF field. I use this code https://www.advancedcustomfields.com/resources/moving-wp-elements-content-editor-within-acf-fields/ and it’s works ok, but all buttons (text align, etc.) are gone. What could happen?

    missing buttons

    This is my code:

    add_action('acf/input/admin_head', 'my_acf_admin_head');
    
    function my_acf_admin_head() {
        
       ?>
        <script type="text/javascript">
        (function($) {
            
            $(document).ready(function(){
                
                $('.acf-field-5c59aaea2cc96 .acf-input').append( $('#postdivrich') );
                
            });
            
        })(jQuery);    
        </script>
        <style type="text/css">
            .acf-field #wp-content-editor-tools {
                background: transparent;
                padding-top: 0;
            }
        </style>
        <?php    
        
    }

    I assign content editor to message field in flexible field.

Viewing 1 post (of 1 total)

The topic ‘Moving content editor and missing buttons’ is closed to new replies.