Support » Plugin: Typeform | Create beautiful contact forms & much more » 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://wordpress.org/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.

    • This topic was modified 8 months, 4 weeks ago by  Steve Taylor.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.