indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: Using API to Customize Dialog Windows — CKEditor Sample indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0:

indvd00m@0: CKEditor Samples » Using CKEditor Dialog API indvd00m@0:

indvd00m@0:
indvd00m@0: This sample is not maintained anymore. Check out the brand new samples in CKEditor SDK. indvd00m@0:
indvd00m@0:
indvd00m@0:

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

indvd00m@0:

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

indvd00m@0:
indvd00m@0:

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

indvd00m@0:
    indvd00m@0:
  1. Creating a custom dialog window – "My Dialog" dialog window opened with the "My Dialog" toolbar button.
  2. indvd00m@0:
  3. Creating a custom button – Add button to open the dialog with "My Dialog" toolbar button.
  4. indvd00m@0:
indvd00m@0: indvd00m@0: indvd00m@0:

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

indvd00m@0:
    indvd00m@0:
  1. Adding dialog tab – Add new tab "My Tab" to dialog window.
  2. indvd00m@0:
  3. Removing a dialog window tab – Remove "Second Tab" page from the dialog window.
  4. indvd00m@0:
  5. Adding dialog window fields – Add "My Custom Field" to the dialog window.
  6. indvd00m@0:
  7. Removing dialog window field – Remove "Select Field" selection field from the dialog window.
  8. indvd00m@0:
  9. Setting default values for dialog window fields – Set default value of "Text Field" text field.
  10. indvd00m@0:
  11. Setup initial focus for dialog window – Put initial focus on "My Custom Field" text field.
  12. indvd00m@0:
indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0: