JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _samples / fullpage.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
2 <!--\r
3 Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
4 For licensing, see LICENSE.html or http://ckeditor.com/license\r
5 -->\r
6 <html xmlns="http://www.w3.org/1999/xhtml">\r
7 <head>\r
8         <title>Full Page Editing with Document Properties Plugin &mdash; CKEditor Sample</title>\r
9         <meta content="text/html; charset=utf-8" http-equiv="content-type" />\r
10         <script type="text/javascript" src="../ckeditor.js"></script>\r
11         <script src="sample.js" type="text/javascript"></script>\r
12         <link href="sample.css" rel="stylesheet" type="text/css" />\r
13 </head>\r
14 <body>\r
15         <h1 class="samples">\r
16                 CKEditor Sample &mdash; Full Page Editing with Document Properties Plugin\r
17         </h1>\r
18         <div class="description">\r
19         <p>\r
20                 This sample shows how to configure CKEditor to edit entire HTML pages, from the\r
21                 <code>&lt;html&gt;</code> tag to the <code>&lt;/html&gt;</code> tag.\r
22         </p>\r
23         <p>\r
24                 The <strong>Document Properties</strong> (<code>docprops</code>) plugin is also turned on.\r
25                 This plugin allows you to set the metadata of the page, including the page encoding, margins,\r
26                 meta tags, or background.\r
27         </p>\r
28         <p>\r
29                 The CKEditor instance below is inserted with a JavaScript call using the following code:\r
30         </p>\r
31         <pre class="samples">CKEDITOR.replace( '<em>textarea_id</em>',\r
32         {\r
33                 <strong>fullPage : true,\r
34                 extraPlugins : 'docprops'</strong>\r
35         });</pre>\r
36         <p>\r
37                 Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of\r
38                 the <code>&lt;textarea&gt;</code> element to be replaced.\r
39         </p>\r
40         </div>\r
41 \r
42         <!-- This <div> holds alert messages to be display in the sample page. -->\r
43         <div id="alerts">\r
44                 <noscript>\r
45                         <p>\r
46                                 <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript\r
47                                 support, like yours, you should still see the contents (HTML data) and you should\r
48                                 be able to edit it normally, without a rich editor interface.\r
49                         </p>\r
50                 </noscript>\r
51         </div>\r
52         <form action="sample_posteddata.php" method="post">\r
53                         <label for="editor1">\r
54                                 CKEditor using the <code>docprops</code> plugin and working in the Full Page mode:</label>\r
55                         <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;html&gt;&lt;head&gt;&lt;title&gt;CKEditor Sample&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&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;&lt;/body&gt;&lt;/html&gt;</textarea>\r
56                         <script type="text/javascript">\r
57                         //<![CDATA[\r
58 \r
59                                 CKEDITOR.replace( 'editor1',\r
60                                         {\r
61                                                 fullPage : true,\r
62                                                 extraPlugins : 'docprops'\r
63                                         });\r
64 \r
65                         //]]>\r
66                         </script>\r
67                 <p>\r
68                         <input type="submit" value="Submit" />\r
69                 </p>\r
70         </form>\r
71         <div id="footer">\r
72                 <hr />\r
73                 <p>\r
74                         CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
75                 </p>\r
76                 <p id="copy">\r
77                         Copyright &copy; 2003-2012, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
78                         Knabben. All rights reserved.\r
79                 </p>\r
80         </div>\r
81 </body>\r
82 </html>\r