SiteOrigin Editor Visual mode fails when Mesmerize Companion is active

3 days ago · Last reply by Andrew Misplon 3 days ago

Hello,

The Visual mode in the SiteOrigin Editor does not appear when Mesmerize Companion is active. Only Code mode is available.

Environment:

WordPress: 7.0.1
Page Builder by SiteOrigin: 2.34.5
SiteOrigin Widgets Bundle: 1.74.0
Mesmerize Companion: 1.6.173
Theme: Mesmerize
PHP version: Please insert the PHP version here

Steps to reproduce:

1. Activate Page Builder by SiteOrigin.
2. Activate SiteOrigin Widgets Bundle.
3. Activate Mesmerize Companion.
4. Open a page created with SiteOrigin Page Builder.
5. Open the SiteOrigin Editor widget.
6. Only Code mode appears. Visual mode does not appear.

If I deactivate Mesmerize Companion, Visual mode works normally.
If I reactivate Mesmerize Companion, Visual mode disappears again.

The same issue occurs with WordPress 7.0 and WordPress 7.0.1.

Console error:

Uncaught TypeError: Cannot read properties of undefined (reading ‘translate’)
at u.editor.initialize (editor.min.js?ver=7.0.1)
at p (tinymce-field.min.js?ver=1.74.0)
at HTMLDivElement.y (tinymce-field.min.js?ver=1.74.0)

I also tested with other plugins disabled. The issue remains only when Mesmerize Companion is active.

Could you please check whether this is a compatibility issue between SiteOrigin Editor, Mesmerize Companion, and the Mesmerize theme?

Thank you.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 3 days, 6 hours ago

    Hi, thanks for your post.

    When the Mesmerize editor is enabled the companion plugin filters user_can_richedit() to false.

    Two possible workarounds:
    – Per page: set custom field mesmerize-show-default-editor = 0.
    – Site-wide snippet:

    add_filter( 'user_can_richedit', '__return_true', 999 );

    The snippet you can add via https://wordpress.org/plugins/code-snippets/. The Mesmerize custom field is below the main editing area.

    Hope that helps.

Please log in to post on our forums. Signing up is free.

Have a different question or issue?

Start New Thread