The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums

    Correct the formatting of the new editor in source code mode

    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Tutorial Correct the formatting of the new editor in source code mode

    Post by Ange Tuteur Wed Aug 20, 2014 6:19 pm

    Correct the formatting of the new editor in source code mode


    This tutorial attempts to try* and prevent certain problems caused by the new editor in Source Code Mode.

    * The problems are resolved in a timely manner, there may be other problems because of the correction.

    Installing

    Go to Administration Panel > Modules > JavaScript codes management make sure JavaScript code management is enabled, and create a new script.

    Title : Sceditor Correction
    Placement : In all the pages
    Code:
    $(function() {
     Â var a = $("#text_editor_textarea"), t;
     Â a.length && (t = a.val()) && $(function() {
     Â   a.sceditor && a.sceditor("instance") && a.sceditor("instance").val(t);
     Â });
    });







      Current date/time is Mon Sep 23, 2024 8:28 pm