From 6b72b23c19598c5b9c883c3f015e8b80b58cfc15 Mon Sep 17 00:00:00 2001 From: znewsham Date: Tue, 29 May 2018 01:42:32 -0400 Subject: [PATCH] Doesn't work when MediumEditor is not defined globally (e.g., when module is defined, e.g., in Meteor) (#41) * Update medium-editor-tables.js if module != undefined this doesnt work. (e.g., Meteor) * Update medium-editor-tables.js * Update medium-editor-tables.js * Update medium-editor-tables.js * Update medium-editor-tables.js * Update medium-editor-tables.js * Update medium-editor-tables.js --- dist/js/medium-editor-tables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/js/medium-editor-tables.js b/dist/js/medium-editor-tables.js index d5643e7..3a66246 100644 --- a/dist/js/medium-editor-tables.js +++ b/dist/js/medium-editor-tables.js @@ -10,7 +10,7 @@ } else { root.MediumEditorTable = factory; } -}(this, function () { +}(this, function (MediumEditor) { 'use strict'; @@ -606,4 +606,4 @@ MediumEditorTable = MediumEditor.extensions.form.extend({ }); return MediumEditorTable; -}())); +}(typeof require === 'function' ? require('medium-editor') : MediumEditor)));