TinyMCE error when editor absent
-
This plugin is creating a JS error when a custom post type doesn’t have ‘editor’ in the ‘supports’ parameter.
I imagine it’s similar or the same as this one – https://www.ads-software.com/support/topic/add-type-form-button-is-creating-jquery-error/ – which involved the user being on the Text instead of Visual tab of the editor. Same root cause: no TinyMCE. The ‘solution’ given there was to use the Visual editor, but as my scenario shows, this isn’t really a solution.
It should be easy to either check for the existence of TinyMCE in JS before making calls or references to it. Or you could check in PHP whether the current post type supports ‘editor’ – then you can simply not include any Typeform JS at all.
- The topic ‘TinyMCE error when editor absent’ is closed to new replies.