Issue #876Opened February 16, 2018by maxtacco1 reactions

[Feature] Pass store manager's response to editor's store callback

Question

Hi @artf, We have a need to get a response of the store manager when calling editor.store() method with a callback (we return generated template id in this case from the server). I'm pretty sure you have it implemented for editor.load() method. I think the change is pretty simple in /src/editor/model/Editor.js

/**
   * Store data to the current storage
   * @param {Function} clb Callback function
   * @return {Object} Stored data
   * @private
   */
  store(clb) {
    ...
    sm.store(store, (res) => {
      clb && clb(res);
      this.set('changesCount', 0);
      this.trigger('storage:store', store);
    });
   ...
  },

Let me know if you want me to do a pull request. Thank you.

Answers (2)

lock[bot]September 18, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.