How to use the format.img function in format

To help you get started, we’ve selected a few format examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lepture / ed / build / build.js View on Github external
callback = callback || function(err, url) {
    if (!err && url) {
      format.img(url);
      me.caret.restore(range);
      me.content.focus();
    }
  };
github lepture / ed / index.js View on Github external
var callback = me.options.callback || function(err, url) {
    if (!err && url) {
      format.img(url);
    }
    me.caret.restore(range);
    me.content.focus();
  };