Expose `OutputArea.mime_types` to allow extensions to calculate `display_order` index

Grant Nestor 10 years ago
parent ce575f7a5a
commit a4744c696f

@ -1072,7 +1072,11 @@ define([
[MIME_PDF] : append_pdf
};
OutputArea.prototype.register_mime_type = function (mimetype, append, safe) {
OutputArea.prototype.mime_types = function () {
return OutputArea.display_order;
};
OutputArea.prototype.register_mime_type = function (mimetype, append, options) {
if (mimetype && typeof(append) === 'function') {
OutputArea.output_types.push(mimetype);
if (safe) OutputArea.safe_outputs[mimetype] = true;

Loading…
Cancel
Save