Ticket #8224: 8224.html

File 8224.html, 1.2 KB (added by Jakub Ś, 13 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
5-->
6<html xmlns="http://www.w3.org/1999/xhtml">
7<head>
8        <title>Replace Textarea by Code &mdash; CKEditor Sample</title>
9        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
10        <script type="text/javascript" src="../ckeditor.js"></script>
11        <script src="sample.js" type="text/javascript"></script>
12        <link href="sample.css" rel="stylesheet" type="text/css" />
13</head>
14<body >
15               
16        <form action="sample_posteddata.php" method="post">
17                <p>
18                        <label for="editor1">
19                                Editor 1:</label>
20                               
21                        <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;
22                                                                       
23                        </textarea>
24                        <script type="text/javascript">         
25                                var e = CKEDITOR.replace( 'editor1', {
26                                        scayt_autoStartup:true,                                 
27                                        enterMode : CKEDITOR.ENTER_BR                                   
28                                } );
29                        </script>
30                </p>           
31        </form> 
32</body>
33</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy