diff options
| author | Wu Cheng-Han | 2015-07-03 09:14:49 +0800 | 
|---|---|---|
| committer | Wu Cheng-Han | 2015-07-03 09:14:49 +0800 | 
| commit | 1d843c8ac257d512a96cf054ab24e6a3c2f34e26 (patch) | |
| tree | 09a51faab341d8f86d674ff0aae7ad6fb223328a /public/js | |
| parent | 17f89e9bd352f866a60e32dadbd7d60085310adf (diff) | |
Added random color option in blockquote tag
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/index.js | 12 | 
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 = {  | 
