• Liking your plug-in so far but ran into a snag. I’m using Advanced Custom Fields to place an MCE editor (WYSIWYG editor field) on an options page which is wp-admin/admin.php?page=xxx, not wp-admin/post.php?post=xxx. It seems that content-cards.js only loads for wp-admin/post.php. However, the button script gets attached to every MCE editor, so I’m ending up with “Uncaught ReferenceError: contentcards is not defined” on any editor that’s not on a wp-admin/post.php page.

    Is there a way to not load content-cards-button.js if content-cards.js is not loaded?

    Thanks!

    https://wordpress.org/plugins/content-cards/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stanislav Khromov

    (@khromov)

    Thanks for filing this bug jhoffman255.

    We’ll definitely look into supporting ACF and other non-standard uses of TinyMCE, as well as improve support for custom post types.

    I’ve filed a GitHub issue here so you can track the progress:
    https://github.com/ideag/content-cards/issues/67

    Thanks for trying Content Cards. 🙂

    Rami

    (@ramirocastro)

    I actually have the same error when trying to edit any page. (using the standard editor)

    It seems ok when editing posts. Is this a common issue? are you guys able to edit pages?

    Uncaught ReferenceError: contentcards is not defined
    /wp-content/plugins/content-cards/content-cards-button.js?wp-mce-4208-20151113

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

The topic ‘Script not loading with ACF WYSIWYG editor’ is closed to new replies.