Added random color option in blockquote tag

This commit is contained in:
Wu Cheng-Han 2015-07-03 09:14:49 +08:00
parent 17f89e9bd3
commit 1d843c8ac2
3 changed files with 401 additions and 1 deletions

View file

@ -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 = {