@alitons/ckeditor5 0.0.12 → 0.0.14

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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@alitons/ckeditor5",
3
3
  "author": "Aliton Silva",
4
4
  "description": "Ckeditor 5 Personalizado adicionados campos para atender as demandas da SEAD/AC",
5
- "version": "0.0.12",
5
+ "version": "0.0.14",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
7
7
  "private": false,
8
8
  "main": "./build/ckeditor.js",
package/src/ckeditor.ts CHANGED
@@ -256,6 +256,15 @@ class Editor extends DecoupledEditor {
256
256
  }
257
257
  }
258
258
  };
259
+
260
+ public static override create( sourceElementOrData, config ) {
261
+ console.log('CKEditor 5 is being created with the following config:', config);
262
+ return super.create( sourceElementOrData, config );
263
+ }
264
+
265
+ public static override destroy() {
266
+ return super.destroy();
267
+ }
259
268
  }
260
269
 
261
270
  export default { Editor, EditorWatchdog };
@@ -73,9 +73,9 @@ export default class ListView extends View {
73
73
  * @inheritDoc
74
74
  */
75
75
  destroy() {
76
- super.destroy();
77
- this.focusTracker.destroy();
78
- this.keystrokes.destroy();
76
+ // super.destroy();
77
+ // this.focusTracker.destroy();
78
+ // this.keystrokes.destroy();
79
79
  }
80
80
  /**
81
81
  * Focuses the first focusable in {@link #items}.
@@ -127,15 +127,6 @@ export default class NumberedDivListSplit extends Plugin {
127
127
  });
128
128
  });
129
129
 
130
- // // Limpeza
131
- // split.on('destroy', () => {
132
- // try { panel?.destroy(); } catch {}
133
- // // @ts-ignore
134
- // window.removeEventListener('scroll', onScrollOrResize, true);
135
- // // @ts-ignore
136
- // window.removeEventListener('resize', onScrollOrResize, true);
137
- // });
138
-
139
130
  // Habilita/desabilita conforme comandos
140
131
  const toggleCmd: any = editor.commands.get('toggleNumberedDivList');
141
132
  if (toggleCmd) {
@@ -309,7 +309,8 @@ export default class NumberedDivList extends Plugin {
309
309
 
310
310
 
311
311
  editor.model.document.on('change:data', () => {
312
- executeForceList(editor, config);
312
+ const config = toolbar!.listaNumeradaOptions || {};
313
+ executeForceList(editor, config);
313
314
  });
314
315
 
315
316
 
@@ -319,6 +320,7 @@ export default class NumberedDivList extends Plugin {
319
320
 
320
321
  // quando o editor for inicializado, dispara o change:data uma vez
321
322
  editor.on('ready', () => {
323
+ const config = toolbar!.listaNumeradaOptions || {};
322
324
  executeForceList(editor, config);
323
325
  });
324
326