Support

Account

Forum Replies Created

  • Dear all,

    After sleeping some nights over this issue, I looked again at the acf JS code and suddenly found the wysiwyg_tinymce_settings filter. This helped me to modify the input fo the tinymce.init() call. My solution is:

    
    function my_acf_input_admin_footer() {
        ?>
        <script type="text/javascript">
            acf.add_filter('wysiwyg_tinymce_settings', function( mceInit, id, $field ){
                mceInit.valid_elements = 'p,strong,em,del,span[style="text-decoration: underline;"]';
                return mceInit;
    
            });
        </script>
        <?php
    }
    
    add_action('acf/input/admin_footer', 'my_acf_input_admin_footer');
    

    This restricts the editor to only use b, i, del and underlining.

    Now I’m happy again 🙂

  • Dear John,

    You are so right! Somehow I did not notice, that the field revisions are actually saved in revisions. Maybe it is because they look so much like the default WordPress fields and also, because the fields are not show, if they haven’t been changed between the revisions.

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