DialogShowEvent
typedef
An event fired after show
is called. You can use it to customize the behavior
of any dialog.
import { DialogViewPosition } from 'ckeditor5/src/ui.js';
// ...
// Changes the position of the "Find and Replace" dialog.
editor.plugins.get( 'Dialog' ).on( 'show:findAndReplace', ( evt, data ) => {
Object.assign( data, { position: DialogViewPosition.EDITOR_BOTTOM_CENTER } );
}, { priority: 'high' } );