Configuration for link balloon adaptions

interface LinkBalloonConfig {
    keepOpen: {
        classes: string[];
        ids: string[];
    };
}

Properties

Properties

keepOpen: {
    classes: string[];
    ids: string[];
}

Ids of DOM Elements the link balloon should not close when the Elements are clicked.

This improves the work with Components and the link balloon.

Example configuration:

ClassicEditor
.create( document.querySelector( '#editor' ), {
// ...
"coremedia:link": {
linkBalloon: {
keepOpen: {
ids: ["example-to-keep-the-link-balloon-open-on-click"],
classes: ["example-class],
},
},
},
} )
.then( ... )
.catch( ... );

Type declaration

  • classes: string[]
  • ids: string[]