fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#994: highlighting strange characters
[redakcja.git]
/
redakcja
/
static
/
js
/
button_scripts.js
diff --git
a/redakcja/static/js/button_scripts.js
b/redakcja/static/js/button_scripts.js
index
ff17eea
..
ef2b794
100644
(file)
--- a/
redakcja/static/js/button_scripts.js
+++ b/
redakcja/static/js/button_scripts.js
@@
-282,6
+282,12
@@
function ScriptletCenter()
done(output, move_forward, move_up);
}.bind(this);
done(output, move_forward, move_up);
}.bind(this);
+
+ this.scriptlets['slugify'] = function(context, params, text, move_forward, move_up, done)
+ {
+ done(slugify(text.replace(/_/g, '-')), move_forward, move_up);
+ }.bind(this);
+
}
ScriptletCenter.prototype.callInteractive = function(opts) {
}
ScriptletCenter.prototype.callInteractive = function(opts) {