@alitons/ckeditor5 0.0.13 → 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.
|
|
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) {
|