Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
opacity: false,
hue: true,
interaction: {
hex: false,
input: false,
clear: false,
save: false,
},
},
}
if (!FlowRouter.getParam('id')) {
templateInstance.color = `#${(`000000${Math.floor(0x1000000 * Math.random()).toString(16)}`).slice(-6)}`
$('#color').val(templateInstance.color)
pickrOptions.default = templateInstance.color
}
templateInstance.pickr = Pickr.create(pickrOptions)
templateInstance.pickr.on('change', (color) => {
$('#color').val(color.toHEXA().toString())
})
import('quill').then((quillImport) => {
import('quill/dist/quill.snow.css')
templateInstance.quill = new quillImport.default('#richDesc', {
theme: 'snow',
})
if (Projects.findOne() && Projects.findOne().desc instanceof Object && templateInstance.quill) {
templateInstance.quill.setContents(Projects.findOne().desc)
} else if (Projects.findOne() && Projects.findOne().desc && templateInstance.quill) {
templateInstance.quill.setText(Projects.findOne().desc)
}
})
templateInstance.autorun(() => {