<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
<!--\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
-->\r
<html xmlns="http://www.w3.org/1999/xhtml">\r
<head>\r
- <title>Using API to customize dialogs - CKEditor Sample</title>\r
+ <title>Using API to Customize Dialog Windows — CKEditor Sample</title>\r
<meta content="text/html; charset=utf-8" http-equiv="content-type" />\r
<script type="text/javascript" src="../ckeditor.js"></script>\r
<script src="sample.js" type="text/javascript"></script>\r
\r
</head>\r
<body>\r
- <h1>\r
- CKEditor Sample\r
+ <h1 class="samples">\r
+ CKEditor Sample — Using CKEditor Dialog API\r
</h1>\r
+ <div class="description">\r
+ <p>\r
+ This sample shows how to use the\r
+ <a class="samples" href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.html">CKEditor Dialog API</a>\r
+ to customize CKEditor dialog windows without changing the original editor code.\r
+ The following customizations are being done in the example below:\r
+ </p>\r
+ <ol>\r
+ <li><strong>Adding dialog window tabs</strong> – "My Tab" in the "Link" dialog window.</li>\r
+ <li><strong>Removing a dialog window tab</strong> – "Target" tab from the "Link" dialog window.</li>\r
+ <li><strong>Adding dialog window fields</strong> – "My Custom Field" in the "Link" dialog window.</li>\r
+ <li><strong>Removing dialog window fields</strong> – "Link Type" and "Browse Server" in the "Link"\r
+ dialog window.</li>\r
+ <li><strong>Setting default values for dialog window fields</strong> – "URL" field in the\r
+ "Link" dialog window. </li>\r
+ <li><strong>Creating a custom dialog window</strong> – "My Dialog" dialog window opened with the "My Dialog" toolbar button.</li>\r
+ </ol>\r
+ <p>\r
+For details on how to create this setup check the source code of this sample page.\r
+ </p>\r
+ </div>\r
+\r
+\r
<!-- This <div> holds alert messages to be display in the sample page. -->\r
<div id="alerts">\r
<noscript>\r
</div>\r
<!-- This <fieldset> holds the HTML that you will usually find in your\r
pages. -->\r
- <p>\r
- This sample shows how to use the dialog API to customize dialogs whithout changing\r
- the original editor code. The following customizations are being done::</p>\r
- <ol>\r
- <li><strong>Add dialog pages</strong> ("My Tab" in the Link dialog).</li>\r
- <li><strong>Remove a dialog tab</strong> ("Target" tab from the Link dialog).</li>\r
- <li><strong>Add dialog fields</strong> ("My Custom Field" into the Link dialog).</li>\r
- <li><strong>Remove dialog fields</strong> ("Link Type" and "Browser Server" the Link\r
- dialog).</li>\r
- <li><strong>Set default values for dialog fields</strong> (for the "URL" field in the\r
- Link dialog). </li>\r
- <li><strong>Create a custom dialog</strong> ("My Dialog" button).</li>\r
- </ol>\r
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>\r
<script type="text/javascript">\r
//<![CDATA[\r
<div id="footer">\r
<hr />\r
<p>\r
- CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>\r
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
</p>\r
<p id="copy">\r
- Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico\r
+ Copyright © 2003-2011, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
Knabben. All rights reserved.\r
</p>\r
</div>\r