Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK!#assets/my_dialog.jsnu[/** * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.dialog.add( 'myDialog', function() { return { title: 'My Dialog', minWidth: 400, minHeight: 200, contents: [ { id: 'tab1', label: 'First Tab', title: 'First Tab', elements: [ { id: 'input1', type: 'text', label: 'Text Field' }, { id: 'select1', type: 'select', label: 'Select Field', items: [ [ 'option1', 'value1' ], [ 'option2', 'value2' ] ] } ] }, { id: 'tab2', label: 'Second Tab', title: 'Second Tab', elements: [ { id: 'button1', type: 'button', label: 'Button Field' } ] } ] }; } ); PK! dialog.htmlnu[ Using API to Customize Dialog Windows — CKEditor Sample

CKEditor Samples » Using CKEditor Dialog API

This sample is not maintained anymore. Check out the brand new samples in CKEditor Examples.

This sample shows how to use the CKEditor Dialog API to customize CKEditor dialog windows without changing the original editor code. The following customizations are being done in the example below:

For details on how to create this setup check the source code of this sample page.

A custom dialog is added to the editors using the pluginsLoaded event, from an external dialog definition file:

  1. Creating a custom dialog window – "My Dialog" dialog window opened with the "My Dialog" toolbar button.
  2. Creating a custom button – Add button to open the dialog with "My Dialog" toolbar button.

The below editor modify the dialog definition of the above added dialog using the dialogDefinition event:

  1. Adding dialog tab – Add new tab "My Tab" to dialog window.
  2. Removing a dialog window tab – Remove "Second Tab" page from the dialog window.
  3. Adding dialog window fields – Add "My Custom Field" to the dialog window.
  4. Removing dialog window field – Remove "Select Field" selection field from the dialog window.
  5. Setting default values for dialog window fields – Set default value of "Text Field" text field.
  6. Setup initial focus for dialog window – Put initial focus on "My Custom Field" text field.
PK!1dialogDefinition.jsnuIw/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ PK!/mstyles/dialog.cssnuIw.cke_dialog_open { overflow: hidden; } .cke_dialog_container { position: fixed; overflow-y: auto; overflow-x: auto; width: 100%; height: 100%; top: 0; left: 0; z-index: 10010; } .cke_dialog_body { position: relative; } PK!#assets/my_dialog.jsnu[PK! dialog.htmlnu[PK!1!dialogDefinition.jsnuIwPK!/m"styles/dialog.cssnuIwPKB#