Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
callback = callback || function(err, url) {
if (!err && url) {
format.img(url);
me.caret.restore(range);
me.content.focus();
}
};
var callback = me.options.callback || function(err, url) {
if (!err && url) {
format.img(url);
}
me.caret.restore(range);
me.content.focus();
};