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mo++4Cnq-z`gt"'i؜WYrkt eEHT2l2 {lp׎N 3wo1=@̪ASEhr"0>9 jGM)/rEfU,菊6@SZ+.k(o <{; yLWE[QeW8\AAD`veCF=?&jf-T(*-NPCs( HxbΣ#~XZ94T 0xR"Q& Bاԧo!MUɨ̏=&E(lP6(GxV a>dO{#PG_QDp3Cy;A>Z B+q4_)\m_tmBȺw:$& [ߩ]۲` šmȁ_)LN—N֪v&t?u×[FR;:oI |6?>XeslÖ ~IF'JwΤryڠ./ednբpX?1vi[`AN$fpA4XeslÖ ~IF'fZ裸R1[I~LL&0ΟM’z vpZ<7Lf8xxUe\\u:YӍFglbDߍVH>ial focus in "customField" field. dialogDefinition.onFocus = function() { var urlField = this.getContentElement( 'tab1', 'customField' ); urlField.select(); }; } }); var config = { extraPlugins: 'dialog', toolbar: [ [ 'MyButton' ] ] };

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.