Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
jQuery.getScript('//cmp.osano.com/Azyw1RRk4ZCOx2wli/04c9aa84-7b4a-45a8-bb7e-3b3767dd3378/osano.js');
+
// Ensure everything loads properly
('#free_text').wikiEditor;
+
mw.loader.using(['jquery.ui'], function() {
 +
  $.getScript('//cmp.osano.com/Azyw1RRk4ZCOx2wli/04c9aa84-7b4a-45a8-bb7e-3b3767dd3378/osano.js', function() {
 +
    console.log("Osano script loaded.");
 +
 
 +
    // WikiEditor initialization
 +
    $(function() {
 +
      if ($('#free_text').length) { // Make sure the element exists
 +
        $('#free_text').wikiEditor();
 +
      }
 +
    });
 +
  });
 +
});

Navigation menu