frayerjj-frontend 0.1.37 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/init.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frayerjj-frontend",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "My base frontend for various projects",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/init.js CHANGED
@@ -70,7 +70,7 @@ export const init = () => {
70
70
  }
71
71
  };
72
72
 
73
- CkeUploadAdapterPlugin = function(editor) {
73
+ window.CkeUploadAdapterPlugin = function(editor) {
74
74
  editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {
75
75
  return new CkeUploadAdapter(loader, editor.config._config.extraParams.uri, editor.config._config.extraParams.token);
76
76
  };
@@ -153,7 +153,7 @@ export const init = () => {
153
153
 
154
154
  window.editors = [];
155
155
  document.querySelectorAll('.wysiwyg').forEach(el => {
156
- ClassicEditor.create(el, {
156
+ window.ClassicEditor.create(el, {
157
157
  licenseKey: 'GPL',
158
158
  htmlSupport: {
159
159
  allow: [
@@ -169,7 +169,7 @@ export const init = () => {
169
169
  uri: document.querySelector('meta[name="asset-upload"]').getAttribute('content'),
170
170
  token: document.querySelector('meta[name="csrf-token"]').getAttribute('content')
171
171
  },
172
- extraPlugins: [ CkeUploadAdapterPlugin ]
172
+ extraPlugins: [ window.CkeUploadAdapterPlugin ]
173
173
  }).then(editor => {
174
174
  window.editors[el.id] = editor;
175
175
  }).catch( error => {