Jump to content

MediaWiki:Common.js

From ICANNWiki
Revision as of 21:10, 28 August 2024 by MarkAHershberger (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// Ensure everything loads properly
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();
      }
    });
  });
});