1 | <!-- |
---|
2 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. |
---|
3 | For licensing, see LICENSE.html or http://ckeditor.com/license |
---|
4 | --> |
---|
5 | <html xmlns="http://www.w3.org/1999/xhtml" dir='rtl' lang='ar'> |
---|
6 | <head> |
---|
7 | <title>Replace Textarea by Code - CKEditor Sample</title> |
---|
8 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
---|
9 | <script type="text/javascript" src="../ckeditor.js"></script> |
---|
10 | <script src="sample.js" type="text/javascript"></script> |
---|
11 | <link href="sample.css" rel="stylesheet" type="text/css" /> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <h1> |
---|
15 | CKEditor Sample |
---|
16 | </h1> |
---|
17 | <!-- This <div> holds alert messages to be display in the sample page. --> |
---|
18 | <div id="alerts"> |
---|
19 | <noscript> |
---|
20 | <p> |
---|
21 | <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript |
---|
22 | support, like yours, you should still see the contents (HTML data) and you should |
---|
23 | be able to edit it normally, without a rich editor interface. |
---|
24 | </p> |
---|
25 | </noscript> |
---|
26 | </div> |
---|
27 | |
---|
28 | |
---|
29 | <form action="sample_posteddata.php" method="post"> |
---|
30 | <p> |
---|
31 | <label for="editor1"> |
---|
32 | Editor 2:</label><br /> |
---|
33 | <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/" id="123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890">CKEditor</a>.</p></textarea> |
---|
34 | <script type="text/javascript"> |
---|
35 | //<![CDATA[ |
---|
36 | |
---|
37 | // This call can be placed at any point after the |
---|
38 | // <textarea>, or inside a <head><script> in a |
---|
39 | // window.onload event handler. |
---|
40 | |
---|
41 | // Replace the <textarea id="editor"> with an CKEditor |
---|
42 | // instance, using default configurations. |
---|
43 | CKEDITOR.config.height='208';CKEDITOR.config.width='602'; |
---|
44 | CKEDITOR.config.language= 'ar'; |
---|
45 | CKEDITOR.config.contentsLangDirection='rtl'; |
---|
46 | CKEDITOR.config.skin = 'office2003'; |
---|
47 | CKEDITOR.replace( 'editor1' ); |
---|
48 | |
---|
49 | //]]> |
---|
50 | </script> |
---|
51 | </p> |
---|
52 | <p> |
---|
53 | <label for="editor2"> |
---|
54 | Editor 2:</label><br /> |
---|
55 | <textarea cols="80" id="editor2" name="editor2" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/" id="123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890">CKEditor</a>.</p></textarea> |
---|
56 | <script type="text/javascript"> |
---|
57 | //<![CDATA[ |
---|
58 | |
---|
59 | // This call can be placed at any point after the |
---|
60 | // <textarea>, or inside a <head><script> in a |
---|
61 | // window.onload event handler. |
---|
62 | |
---|
63 | // Replace the <textarea id="editor"> with an CKEditor |
---|
64 | // instance, using default configurations. |
---|
65 | CKEDITOR.config.height='208';CKEDITOR.config.width='802'; |
---|
66 | CKEDITOR.config.language= 'ar'; |
---|
67 | CKEDITOR.config.contentsLangDirection='rtl'; |
---|
68 | CKEDITOR.config.skin = 'office2003'; |
---|
69 | CKEDITOR.replace( 'editor2' ); |
---|
70 | |
---|
71 | //]]> |
---|
72 | </script> |
---|
73 | </p> |
---|
74 | <p> |
---|
75 | <input type="submit" value="Submit" /> |
---|
76 | </p> |
---|
77 | </form> |
---|
78 | <div id="footer"> |
---|
79 | <hr /> |
---|
80 | <p> |
---|
81 | CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a> |
---|
82 | </p> |
---|
83 | <p id="copy"> |
---|
84 | Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico |
---|
85 | Knabben. All rights reserved. |
---|
86 | </p> |
---|
87 | </div> |
---|
88 | </body> |
---|
89 | </html> |
---|