Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
BEE-Plugin / onComment
Created Oct 23, 2020
BEE Plugin: How to send email from mentions in a comment
View onComment
// Sample onComment callback for bee config
onComment: function (response) {
// Extract the comments from the response
var comments = Object.values(response.comments);
// Gets all words that start with '@', until a space
var handleRegex = /@[^\s]+/g
// Use reducer to extract the @ mentions from the content
function mentionsReducer(acc, comment) {
BEE-Plugin / en-US.json
Last active Oct 27, 2019
BEE Plugin v3 sample language file
View en-US.json
"bee-common-top-bar": {
"actions": "Actions",
"help": "Help",
"hide-structure": "Hide structure",
"preview": "Preview",
"save": "SAVE",
"save-as-template": "Save as template",
"send-test": "Send test",
"settings": "Settings",
BEE-Plugin / custom.css
Created Oct 27, 2019
BEE Plugin v3 sample custom CSS theme
View custom.css
"--cs" for custom css override classes
--- Generals ---
- Custom font url |
- Custom font family (with font stack - i.e. 'Source Sans Pro', sans-serif) | "Frutiger Next W01",Helvetica,Arial,sans-serif
- Custom font size | 12px
- Widget bar border color | #c7c7c7
- Widget bar & active tab background color | #F9F9F9
- Show tab icons [BOOLEAN] - if (true) "inline-block" else "none" | True