aurelia-trumbowyg-plugin
Version:
A trumbowyg wrapper for Aurelia.
36 lines (29 loc) • 1.29 kB
JavaScript
;
System.register(['aurelia-pal', './trumbowyg-editor'], function (_export, _context) {
"use strict";
var PLATFORM, _typeof;
function configure(aureliaConfig, editorConfig) {
if (!editorConfig || (typeof editorConfig === 'undefined' ? 'undefined' : _typeof(editorConfig)) === 'object') {
var options = Object.assign({}, editorConfig);
aureliaConfig.container.registerInstance('trumbowyg-editor-config', options);
}
aureliaConfig.globalResources(PLATFORM.moduleName('./trumbowyg-editor'));
}
_export('configure', configure);
return {
setters: [function (_aureliaPal) {
PLATFORM = _aureliaPal.PLATFORM;
}, function (_trumbowygEditor) {
var _exportObj = {};
_exportObj.TrumbowygEditor = _trumbowygEditor.TrumbowygEditor;
_export(_exportObj);
}],
execute: function () {
_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
};
});