The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Correct the formatting of the new editor in source code mode

View previous topic View next topic Go down

Correct the formatting of the new editor in source code mode

Post by Ange Tuteur on August 20th 2014, 7: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);
  });
});







Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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