bootstrap-editor Simple, beautiful wysiwyg editors


About

bootstrap-editor extends bootstrap-wysihtml5 with file upload feature.

View project on Github

Usage

$('.textarea').bootstrapEditor({
  fileupload: {
    url: 'http://localhost:8888/',
    dataType: 'json',
    done: function(e, data) {
      var imgs = [];
      $.each(data.result.files, function(index, file) {
        imgs.push({
          src: file.url,
          alt: file.name
        });
      });
      return imgs;
    }
  }
});

Dependencies