code: function (editor, callback, time) {
          var timer;
  
          timer = wrappedSetInterval(function () {
            if (!editor.removed) {
              callback();
            } else {
              clearInterval(timer);
            }
          }, time);
  
          return timer;
        }
docs: Sets an interval timer it's similar to setInterval except that it checks if the editor instance is
  still alive when the callback gets executed.
  
  @method setEditorInterval
  @param {function} callback Callback to execute when interval time runs out.
  @param {Number} time Optional time to wait before the callback is executed, defaults to 0.
  @return {Number} Timeout id number.