Skip to content

Commit

Permalink
Fix test code (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
taqueci committed Apr 28, 2020
1 parent f7df940 commit 760c56b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/javascripts/redmine_wysiwyg_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
require('rwe-to-textile'),
require('turndown'),
require('rwe-turndown-plugin-gfm'),
{},
{});
} else {
var tt = (typeof toTextile !== 'undefined') ? toTextile : null;
var td = (typeof TurndownService !== 'undefined') ? TurndownService : null;
var gfm = (typeof turndownPluginGfm !== 'undefined') ? turndownPluginGfm : null;

root.RedmineWysiwygEditor = factory($, tt, td, gfm, navigator);
root.RedmineWysiwygEditor = factory($, tt, td, gfm, navigator, location);
}
}(this, function($, toTextile, TurndownService, turndownPluginGfm, navigator) {
}(this, function($, toTextile, TurndownService, turndownPluginGfm, navigator,
location) {

var RedmineWysiwygEditor = function(jstEditor, previewUrl) {
this._jstEditor = jstEditor;
Expand Down

0 comments on commit 760c56b

Please sign in to comment.