X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/71b07fe1928b04a218e062f01cca720863b9eeb9..352b8591bd1c7163835a6fa1db34d3e2861c1071:/project/templates/toolbar_api/scriptlets.js?ds=sidebyside diff --git a/project/templates/toolbar_api/scriptlets.js b/project/templates/toolbar_api/scriptlets.js new file mode 100644 index 00000000..ae7e2df4 --- /dev/null +++ b/project/templates/toolbar_api/scriptlets.js @@ -0,0 +1,15 @@ +function SciptletCenter() { + + this.scriptlets = { + {% for scriptlet in scriptlets %} + "{{scriptlet.name}}": function(context, params) { + {{scriptlet.code|safe}} + }, + {% endfor %} + + _none: null + }; + +} + +scriptletCenter = new ScriptletCenter(); \ No newline at end of file