@alitons/ckeditor5 0.0.11 → 0.0.13

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.11",
5
+ "version": "0.0.13",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
7
7
  "private": false,
8
8
  "main": "./build/ckeditor.js",
@@ -129,7 +129,7 @@ export default class NumberedDivListSplit extends Plugin {
129
129
 
130
130
  // Limpeza
131
131
  split.on('destroy', () => {
132
- // try { panel?.destroy(); } catch {}
132
+ try { panel?.destroy(); } catch {}
133
133
  // @ts-ignore
134
134
  window.removeEventListener('scroll', onScrollOrResize, true);
135
135
  // @ts-ignore
@@ -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