frayerjj-frontend 0.1.45 → 0.1.47

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 +4 -2
  2. package/src/init.js +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frayerjj-frontend",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "My base frontend for various projects",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -13,8 +13,10 @@
13
13
  },
14
14
  "author": "Joshua Frayer",
15
15
  "license": "MIT",
16
+ "devDependencies": {
17
+ "@ckeditor/ckeditor5-build-classic": "^44.3.0"
18
+ },
16
19
  "dependencies": {
17
- "@ckeditor/ckeditor5-build-classic": "^44.1.0",
18
20
  "@popperjs/core": "^2.11.8",
19
21
  "bootstrap": "^5.3.3"
20
22
  }
package/src/init.js CHANGED
@@ -6,22 +6,11 @@ import { validate } from './validate';
6
6
  import { loading } from './loading';
7
7
  import { ajax } from './ajax';
8
8
  import { session } from './session';
9
- import { ckeupload } from './ckeupload';
10
-
11
- const initCKEditor = async () => {
12
- const { ClassicEditor } = await import('@ckeditor/ckeditor5-build-classic');
13
- window.ClassicEditor = ClassicEditor;
14
- console.log('ClassicEditor:', window.ClassicEditor); // Debugging log
15
-
16
- // Initialize your upload adapter or other CKEditor-related code
17
- ckeupload.init();
18
- };
19
9
 
20
10
  export const init = () => {
21
11
 
22
12
  window.bootstrap = bootstrap;
23
13
  window.createPopper = createPopper;
24
- window.ClassicEditor = ClassicEditor;
25
14
  window.ckeupload = ckeupload;
26
15
  window.message = message;
27
16
  window.modal = modal;
@@ -36,7 +25,6 @@ export const init = () => {
36
25
  message.verbose('Page Loaded, Initializing');
37
26
  validate.init();
38
27
  modal.ajax.init();
39
- initCKEditor();
40
28
 
41
29
  // Updates the id in the form action inside a modal. Used for delete confirm and edit modals.
42
30
  document.querySelectorAll('.modal-uuid-update').forEach(el => {