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.

Correct the formatting of the new editor in source code mode

Go down

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

Post by Ange Tuteur Wed 20 Aug - 13:19

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);
  });
});






Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum