Skip to content

Commit 4a55fdd

Browse files
committed
Merge pull request #1 from Patternslib/plugins-10
preprocess plugins so that redactor 10 finds them
2 parents 1a14ea2 + d359c81 commit 4a55fdd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pat-redactor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
if (poptions.imagegetjson) {
108108
options.imageGetJson = poptions.imagegetjson;
109109
}
110+
111+
if (typeof RedactorPlugins === 'undefined') window.RedactorPlugins = {};
112+
RedactorPlugins = this.plugins;
113+
options['plugins'] = _.keys(this.plugins);
114+
110115
// Until here
111116
$el.redactor(this.initializePlugins(options)[0]);
112117
}

0 commit comments

Comments
 (0)