mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 13:34:28 -04:00
Added random color option in blockquote tag
This commit is contained in:
parent
17f89e9bd3
commit
1d843c8ac2
3 changed files with 401 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue