Ticket #9899: 9899.html

File 9899.html, 1.3 KB (added by Olek Nowodziński, 12 years ago)
Line 
1<!DOCTYPE html>
2<!--
3Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
5-->
6<html>
7<head>
8        <title>#9899</title>
9        <meta charset="utf-8">
10        <script src="../../ckeditor.js"></script>
11        <link rel="stylesheet" href="../../../samples/sample.css">
12</head>
13<body>
14        <div>
15                <textarea cols="80" id="editor1" name="editor2" 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;</textarea>
16                <br>
17                <div id="editor2" contenteditable="true">
18                        <p>This is some <strong>sample text</strong>. You are using <a data-cke-saved-href="http://ckeditor.com/" href="http://ckeditor.com/">CKEditor</a>.</p>
19                </div>
20                <script>
21
22                        CKEDITOR.replace( 'editor1', {
23                                toolbar: [
24                                        [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
25                                        [ 'FontSize', 'TextColor', 'BGColor' ],
26                                        [ 'UIColor' ]
27                                ]
28                        });
29
30                        // Disable automatic creation of inline instances.
31                        CKEDITOR.disableAutoInline = true;
32
33                        CKEDITOR.inline( 'editor2', {
34                                toolbar: [
35                                        [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
36                                        [ 'FontSize', 'TextColor', 'BGColor' ],
37                                        [ 'UIColor' ]
38                                ]
39                        });
40
41                </script>
42        </div>
43</body>
44</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy