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