bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.62k stars 74 forks source link

upload response handler option #33

Closed jywarren closed 7 years ago

jywarren commented 8 years ago

(separated out readme changes)

Proposed solution for #30 -- what do you think; it makes a specifiable handler for upload responses, as:

images: {
  handleResponse: function (err, res, body) {
    // stuff
  }
}

Alternatively, we could run handleResponse as-is, but insert a response filterer on line 180, before body.href and body.title are used. Depends on how flexible it should be.

jywarren commented 7 years ago

Resolved in bureaucracy.