Home › Forums › ACF PRO › Wysiwyg editor height is too tall › Reply To: Wysiwyg editor height is too tall
I figured out a better method which allows the field to be enlarged so it’s not a static height. This just removes the inline styling so I can set a height via CSS without the need for !important. Hope this helps someone else!
// Remove ACF inline styles for WYSIWYG
function my_acf_input_admin_footer() { ?>
<script type="text/javascript">
(function($) {
acf.add_action('wysiwyg_tinymce_init', function( ed, id, mceInit, $field ){
$(".acf-field .acf-editor-wrap iframe").removeAttr("style");
});
})(jQuery);
</script>
<?php }
add_action('acf/input/admin_footer', 'my_acf_input_admin_footer');
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.