fnp
/
redakcja.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Dołączenie skryptu /api/toolbar/scriptlets do editor.html.
[redakcja.git]
/
project
/
templates
/
toolbar_api
/
scriptlets.js
1
function SciptletCenter() {
2
3
this.scriptlets = {
4
{% for scriptlet in scriptlets %}
5
"{{scriptlet.name}}": function(context, params) {
6
{{scriptlet.code|safe}}
7
},
8
{% endfor %}
9
10
_none: null
11
};
12
13
}
14
15
scriptletCenter = new ScriptletCenter();