• Resolved aatospaja

    (@aatospaja)


    Version 0.8.5.5 is working fine. New version is causing an issue when I have Dynamic Preview enabled for Flexible Fields.

    I have a flexible field that contains a WYSIWYG (TinyMCE) Editor. I can’t switch from Text to Visual mode but get an error in the console “Uncaught TypeError: Cannot read property onpageload of undefined” when clicking on the Visual tab.

    I suspect this issue could be related to these changes:
    “Field: WYSIWYG – Fixed the automatic smart delayed initialization in flexible content layouts
    Field: WYSIWYG – Fixed init in Flexible Content layouts which could break when trying to open a layout before the complete page load”

    Or something else…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback. Are you using the latest 0.8.6.3 version?

    Can you please try to force refresh your browser cache? (open console, go to network and check the “Disable cache” setting and refresh the page).

    Can you please copy/paste the entire error message? A screenshot would be nice too.

    Thanks!

    Regards.

    Thread Starter aatospaja

    (@aatospaja)

    Yes the issue appears with 0.8.6.3. I always run on chrome dev tools open with caching disabled when developing so no cache issues here.

    Here’s the full Chrome Console error message:

    wp-tinymce.js?ver=4960-20190918:3 Uncaught TypeError: Cannot read property ‘onpageload’ of undefined
    at wp-tinymce.js?ver=4960-20190918:3
    at e (wp-tinymce.js?ver=4960-20190918:3)
    at _e.y.bind (wp-tinymce.js?ver=4960-20190918:3)
    at Object.M [as bind] (wp-tinymce.js?ver=4960-20190918:3)
    at Object.init (wp-tinymce.js?ver=4960-20190918:3)
    at r (editor.min.js?ver=5.4.2:2)
    at HTMLDocument.<anonymous> (editor.min.js?ver=5.4.2:2)
    at C (wp-tinymce.js?ver=4960-20190918:3)
    at HTMLDocument.d (wp-tinymce.js?ver=4960-20190918:3)

    I don’t know if screenshot is of any help of this issue. Simply, clicking the VISUAL tab, does nothing apart from the console error.

    That error does trace to tinymce but it’s def somehow tied to your plugin as it’s the one causing the error.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Does the WYSIWYG has a specific configuration? The visual tab should be loaded by default when you open the Dynamic Preview in your flexible content. Is it loaded in the “Text” mode?

    Can you please join the Slack Community: https://join.slack.com/t/wpacf/shared_invite/enQtODc2MjczMzM3NzQ1LTQxNmY2ZGY3OTU2NDkxNTliYmNhMmY1NDMwZGM4NmYxNzgwZTI5MDUzMDFlMGQ5YzcwNDc0ZWM0MDVmODI4NmI It will be easier to discuss here.

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    After a discussion with the @aatospaja, the issue is an edge case when “Layout State” setting is set on “Opened”. The fix is coming in the next patch.

    Regards.

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

The topic ‘TinyMCE, Flexible Field Visual/Text toggle broken’ is closed to new replies.