summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 5f7e6992..4d617adb 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -118,11 +118,21 @@ var supportBlockquoteTags = [
},
},
{
- text: '[color tag]',
+ text: '[my color tag]',
search: '[]',
command: function () {
return '[color=' + personalInfo.color + ']';
}
+ },
+ {
+ text: '[random color tag]',
+ search: '[]',
+ command: function () {
+ var color = randomColor({
+ luminosity: 'light'
+ });
+ return '[color=' + color + ']';
+ }
}
];
var modeType = {