JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _samples / api_dialog.html
index 7d5056e..2620625 100644 (file)
@@ -1,29 +1,29 @@
 <!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-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, 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>Sample - CKEditor</title>\r
-       <meta content="text/html; charset=utf-8" http-equiv="content-type"/>\r
+       <title>Using API to customize dialogs - 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
-       <link href="sample.css" rel="stylesheet" type="text/css"/>\r
+       <link href="sample.css" rel="stylesheet" type="text/css" />\r
        <style id="styles" type="text/css">\r
 \r
-.cke_button_myDialogCmd .cke_icon\r
-{\r
-       display : none !important;\r
-}\r
+               .cke_button_myDialogCmd .cke_icon\r
+               {\r
+                       display: none !important;\r
+               }\r
 \r
-.cke_button_myDialogCmd .cke_label\r
-{\r
-       display : inline !important;\r
-}\r
+               .cke_button_myDialogCmd .cke_label\r
+               {\r
+                       display: inline !important;\r
+               }\r
 \r
        </style>\r
-       <script id="headscript" type="text/javascript">\r
+       <script type="text/javascript">\r
        //<![CDATA[\r
 \r
 // When opening a dialog, its "definition" is created for it, for\r
@@ -92,6 +92,7 @@ CKEDITOR.on( 'dialogDefinition', function( ev )
 \r
        //]]>\r
        </script>\r
+\r
 </head>\r
 <body>\r
        <h1>\r
@@ -110,19 +111,20 @@ CKEDITOR.on( 'dialogDefinition', function( ev )
        <!-- 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 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">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>\r
-               <script type="text/javascript">\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">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>\r
+       <script type="text/javascript">\r
                //<![CDATA[\r
                        // Replace the <textarea id="editor1"> with an CKEditor instance.\r
                        var editor = CKEDITOR.replace( 'editor1',\r
@@ -164,14 +166,15 @@ CKEDITOR.on( 'dialogDefinition', function( ev )
                                                } );\r
                                });\r
                //]]>\r
-               </script>\r
+       </script>\r
        <div id="footer">\r
-               <hr/>\r
+               <hr />\r
                <p>\r
-                       CKEditor - The text editor for Internet - <a href="http://ckeditor.com/" shape="rect">http://ckeditor.com</a>\r
+                       CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>\r
                </p>\r
                <p id="copy">\r
-                       Copyright © 2003-2009, <a href="http://cksource.com/" shape="rect">CKSource</a> - Frederico Knabben. All rights reserved.\r
+                       Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico\r
+                       Knabben. All rights reserved.\r
                </p>\r
        </div>\r
 </body>\r