@@ -34,10 +34,10 @@ import type { WoltlabSmileyItem } from "@woltlab/editor/plugins/ckeditor5-woltla
3434const instances = new WeakMap < HTMLElement , CKEditor > ( ) ;
3535
3636class Ckeditor {
37- readonly #editor: CKEditor5 . ClassicEditor . ClassicEditor ;
37+ readonly #editor: CKEditor5 . ClassicEditor ;
3838 readonly #features: Features ;
3939
40- constructor ( editor : CKEditor5 . ClassicEditor . ClassicEditor , features : Features ) {
40+ constructor ( editor : CKEditor5 . ClassicEditor , features : Features ) {
4141 this . #editor = editor ;
4242 this . #features = features ;
4343 }
@@ -165,16 +165,16 @@ class Ckeditor {
165165 return this . #editor. sourceElement ! ;
166166 }
167167
168- get focusTracker ( ) : CKEditor5 . Utils . FocusTracker {
168+ get focusTracker ( ) : CKEditor5 . FocusTracker {
169169 return this . #editor. ui . focusTracker ;
170170 }
171171}
172172
173173function * findModelForRemoval (
174- element : CKEditor5 . Engine . ModelElement ,
174+ element : CKEditor5 . ModelElement ,
175175 model : string ,
176176 attributes : Record < string , string | number | boolean > ,
177- ) : Generator < CKEditor5 . Engine . ModelElement > {
177+ ) : Generator < CKEditor5 . ModelElement > {
178178 if ( element . is ( "element" , model ) ) {
179179 const isMatch = Object . entries ( attributes ) . every ( ( [ key , value ] ) => {
180180 if ( ! element . hasAttribute ( key ) ) {
@@ -221,9 +221,9 @@ function initializeConfiguration(
221221 features : Features ,
222222 bbcodes : WoltlabBbcodeItem [ ] ,
223223 smileys : WoltlabSmileyItem [ ] ,
224- codeBlockLanguages : CKEditor5 . CodeBlock . CodeBlockConfig [ "languages" ] ,
224+ codeBlockLanguages : CKEditor5 . CodeBlockConfig [ "languages" ] ,
225225 modules : typeof CKEditor5 ,
226- ) : CKEditor5 . Core . EditorConfig {
226+ ) : CKEditor5 . EditorConfig {
227227 const configuration = createConfigurationFor ( features ) ;
228228 configuration . codeBlock = {
229229 languages : codeBlockLanguages ,
@@ -242,7 +242,7 @@ function initializeConfiguration(
242242 modules,
243243 } ) ;
244244
245- const toolbar = configuration . toolbar as CKEditor5 . Core . ToolbarConfigItem [ ] ;
245+ const toolbar = configuration . toolbar as CKEditor5 . ToolbarConfigItem [ ] ;
246246 for ( let { name } of bbcodes ) {
247247 name = `woltlabBbcode_${ name } ` ;
248248
@@ -256,7 +256,7 @@ function initializeConfiguration(
256256 return configuration ;
257257}
258258
259- function hasToolbarButton ( items : CKEditor5 . Core . ToolbarConfigItem [ ] , name : string ) : boolean {
259+ function hasToolbarButton ( items : CKEditor5 . ToolbarConfigItem [ ] , name : string ) : boolean {
260260 for ( const item of items ) {
261261 if ( typeof item === "string" ) {
262262 if ( item === name ) {
@@ -270,7 +270,7 @@ function hasToolbarButton(items: CKEditor5.Core.ToolbarConfigItem[], name: strin
270270 return false ;
271271}
272272
273- function notifyOfDataChanges ( editor : CKEditor5 . ClassicEditor . ClassicEditor , element : HTMLElement ) : void {
273+ function notifyOfDataChanges ( editor : CKEditor5 . ClassicEditor , element : HTMLElement ) : void {
274274 editor . model . document . on ( "change:data" , ( ) => {
275275 dispatchToCkeditor ( element ) . changeData ( ) ;
276276 } ) ;
@@ -281,7 +281,7 @@ export async function setupCkeditor(
281281 features : Features ,
282282 bbcodes : WoltlabBbcodeItem [ ] ,
283283 smileys : WoltlabSmileyItem [ ] ,
284- codeBlockLanguages : CKEditor5 . CodeBlock . CodeBlockConfig [ "languages" ] ,
284+ codeBlockLanguages : CKEditor5 . CodeBlockConfig [ "languages" ] ,
285285 licenseKey : string ,
286286) : Promise < CKEditor > {
287287 if ( instances . has ( element ) ) {
0 commit comments