Name

global.WikiHelperAjax

Description

Assistance with wiki functions

Script

var WikiHelperAjax = Class.create();

WikiHelperAjax.prototype = Object.extendsObject(AbstractAjaxProcessor, {
wikiToHTML: function() {
   var element = this.getValue();
   var wikiText = this.getChars();

   if (wikiText == '')
       return "(" + gs.getMessage("Wiki text empty") + ")";

   var gwm = new GlideWikiModel();
   if (this.getParameter("sysparm_cache_images") == "false")
       gwm.setCacheImages(false);
   gwm.setLinkBaseURL(gwm.getLinkBaseURL() + "&sysparm_field=" + element);
   return gwm.render(wikiText);
},

type: "WikiHelperAjax"
});

Sys ID

e0c267ea0a25810400e0d6f7284bdbe8

Offical Documentation

Official Docs: