Home › Forums › ACF PRO › ACF PRO Stock Content Editor (WYSIWYG) Move › Reply To: ACF PRO Stock Content Editor (WYSIWYG) Move
Great tip!
Why don’t set an ID or a CLASS for the MESSAGE element so you can use a generic function like ?
//wp_content_editor is the id of the message acf field
(function($) {
$(document).ready(function() {
if ($("#wp_content_editor").length > 0) {
$('#wp_content_editor .acf-input').append($('#postdivrich'));
$(".acf-field #wp-content-editor-tools").css({
background: "transparent",
"padding-top": 0
})
}
});
})(jQuery);
I’m using this and works good,
I only sometimes got a js error with the
yoast-premium-social-preview-370.min.js?ver=3.7.2:1
but everything seems working good
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.