Support » Plugin: Advanced Custom Fields: Custom WYSIWYG Styles » Incorrect editor field length if using repeater field with WYSIWYG

  • There is a hidden clone of the repeater fields so the field length returned is incorrect. I changed line 4 of the javascript code from this:

    var editorfelder = jQuery('.acf-field-wysiwyg').length;

    to this:

    var editorfelder = jQuery('.acf-field-wysiwyg:not(.acf-clone .acf-field-wysiwyg)').length;

    and it solved the issue

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect editor field length if using repeater field with WYSIWYG’ is closed to new replies.