mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 01:42:29 +02:00
umd as a library target
This commit is contained in:
parent
a5c682a7cc
commit
1bbb1368ec
|
@ -1,5 +1,14 @@
|
|||
var CodexEditor =
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
else if(typeof define === 'function' && define.amd)
|
||||
define([], factory);
|
||||
else if(typeof exports === 'object')
|
||||
exports["CodexEditor"] = factory();
|
||||
else
|
||||
root["CodexEditor"] = factory();
|
||||
})(window, function() {
|
||||
return /******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
|
@ -4405,7 +4414,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|||
* @typedef {Listeners} Listeners
|
||||
* @property {Array} allListeners
|
||||
*/
|
||||
|
||||
var Listeners = function (_Module) {
|
||||
_inherits(Listeners, _Module);
|
||||
|
||||
|
@ -4970,7 +4978,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|||
* @property {Element} html - Editor HTML content
|
||||
* @property {String} json - Editor JSON output
|
||||
*/
|
||||
|
||||
var Saver = function (_Module) {
|
||||
_inherits(Saver, _Module);
|
||||
|
||||
|
@ -7852,4 +7859,5 @@ exports.push([module.i, ":root {\n /**\n * Toolbar buttons\n */\n --bg-lig
|
|||
/***/ })
|
||||
|
||||
/******/ });
|
||||
});
|
||||
//# sourceMappingURL=codex-editor.js.map
|
File diff suppressed because one or more lines are too long
3636
package-lock.json
generated
3636
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,6 @@
|
|||
* @typedef {Listeners} Listeners
|
||||
* @property {Array} allListeners
|
||||
*/
|
||||
|
||||
export default class Listeners extends Module {
|
||||
/**
|
||||
* @constructor
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
* @property {Element} html - Editor HTML content
|
||||
* @property {String} json - Editor JSON output
|
||||
*/
|
||||
|
||||
export default class Saver extends Module {
|
||||
/**
|
||||
* @constructor
|
||||
|
|
|
@ -80,7 +80,8 @@ module.exports = {
|
|||
output: {
|
||||
path: path.resolve(__dirname, 'build'),
|
||||
filename: '[name].js',
|
||||
library: [ 'CodexEditor' ]
|
||||
library: [ 'CodexEditor' ],
|
||||
libraryTarget: 'umd'
|
||||
},
|
||||
|
||||
watch: true,
|
||||
|
|
Loading…
Reference in a new issue