Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1289051
    undici
    Participant

    X-Theme is Great!

    I have so many people asking me about the text editor default to visual, so can you please help me figure out how to make the text editor default to visual on the compact and expanded view?

    I have found the class that gets toggled by jQuery ‘tmce-active’, but I do not know where to set this.

    <div id=”wp-cswpeditorview899-wrap” class=”wp-core-ui wp-editor-wrap tmce-active”>

    Looks like in the <![CDATA[ it sets the ‘html-active’ class by default

    For the cornerstone/assets/dist/js/admin/core.min.js?ver=1.3.3 file?

    Thanks,
    Mark

    #1289056
    Rupok
    Member

    Hi Mark,

    Yes it’s a known issue and the Text Mode is default. Implementing the WP editor in a live environment is not without it’s challenges. For now we need to keep the text mode as the default when the editor is first shown and when it’s expanded. We may revisit this, but from our testing so far this is best as it avoids some flickering, and the visual editor not appearing immediately because it takes a brief yet noticable moment to load.

  • <script> jQuery(function($){ $("#no-reply-1289051 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>