• The plugin didn’t work until I changed if (editorfelder == iframefelder) to if (editorfelder >= iframefelder) as editorfelder is returning a value higher than iframefelder in this instance.

    For my own purposes I also changed var fieldname = jQuery(this).attr('data-name'); to var fieldname = jQuery(this).attr('id'); to use the id wrapper instead of the field name.

    Otherwise, a great plugin that’s solved a big headache for me!

    https://wordpress.org/plugins/advanced-custom-fields-custom-wysiwyg-styles/

Viewing 1 replies (of 1 total)
  • I had this same issue .. not sure there’s a need for this check is even necessary. I also found that the data-name was inconsistent for different versions of ACF. This plugin should likely take into account the different data field attribute names from the different versions of ACF.

Viewing 1 replies (of 1 total)
  • The topic ‘Field length check bug’ is closed to new replies.