Updated draft.js to correctly handle callback with ajax call.