Ticket #9230: replacebycode_sample.html

File replacebycode_sample.html, 1010 bytes (added by Garry Yao, 12 years ago)
Line 
1<!DOCTYPE html>
2<html>
3<head>
4        <meta charset="utf-8">
5        <title>Replace Textarea by Code &mdash; CKEditor Sample</title>
6        <script src="../ckeditor.js"></script>
7        <link href="sample.css" rel="stylesheet">
8</head>
9<body>
10        <h1 class="samples">
11                CKEditor Sample &mdash; Replace Textarea Elements Using JavaScript Code
12        </h1>
13        <div>
14                <label for="editor1">Editor 1:</label>
15                <p>
16                        This editor is created on an empty textarea.
17                </p>
18                <!--<div id="editor1"></div>-->
19                <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>
20       
21        <script>
22                CKEDITOR.replace( 'editor1' );
23        </script>
24        </div>
25       
26        <div>
27                <label for="editor2">Editor 2:</label>
28                <p>
29                        This editor is created on a textarea that has some text content.
30                </p>
31                <!--<div id="editor2">This is some sample text.</div>-->
32                <textarea cols="80" id="editor2" name="editor2" rows="10">This is some sample text.</textarea>
33                <script>
34                        CKEDITOR.replace( 'editor2' );
35                </script>
36        </div>
37
38</body>
39</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy