Make the Advanced Mode default for the Editor.

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,466
    7,708
    321
    localhost
    Heisenberg submitted a new resource:

    - Make the Advanced Mode default for the Editor.

    vB Version: 5.x.x

    Add to css_additional.css

    Code:
    /* Start Advance Editor is Default */
    .b-editor--cke-toolbar-is-hidden .cke_top {
      display: block;
    }
    /* End Advance Editor is Default */

     
    Last edited:

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,466
    7,708
    321
    localhost
    This works but will not allow the advanced editor functions to be hidden by anyone who doesn't want to see it. This also causes clicking the x to not close the toolbar which will make it appear to be a bug, but it is not.
    Add to css_additional.css
    Code:
    .b-editor--cke-toolbar-is-hidden .cke_top {
    display: inline-block;
    }

    A template hook can be created to programmatically click the A icon on page load.

    Hook Location: editor_after_secondary_toolbar_icons


    Code:
    <script>
    (function() {
        window.addEventListener('load', function() {
            $('.b-toolbar__item[data-panel="b-content-entry-panel__content--toggle-editor"]').click();
        });
    })();
    </script>