Ticket #10439: commandstates.html

File commandstates.html, 1.5 KB (added by Olek Nowodziński, 7 years ago)
Line 
1<!DOCTYPE html>
2<!--
3Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
5-->
6<html>
7<head>
8        <title>Command states</title>
9        <meta charset="utf-8">
10        <script src="../../ckeditor.js"></script>
11        <link href="../sample.css" rel="stylesheet">
12</head>
13<body>
14        <h1 class="samples">
15                <a href="index.html">CKEditor Samples</a> &raquo; Command states
16        </h1>
17        <textarea id="editor1">
18                <p><a href="foo">Unlink should be TRISTATE_ON now. It's not because startDisabled is set.</a></p>
19        </textarea>
20        <br>
21        <textarea id="editor1a">
22                <p>If you remove startDisabled from unlink command, why it is still enabled? There's no link here.</p>
23        </textarea>
24        <br>
25        <textarea id="editor2">
26                <p style="text-align:right">Justify right should be TRISTATE_ON now. This is a right-aligned paragraph.</p>
27        </textarea>
28        <br>
29        <textarea id="editor3">
30                <ul>
31                        <li>Indent should be TRISTATE_DISABLED. This is the very first list item...</li>
32                        <li>...and only indentlist is enabled which cannot indent in such case.</li>
33                </ul>
34        </textarea>
35        <script>
36
37                var plugins = 'undo,sourcearea,wysiwygarea,enterkey,toolbar';
38
39                CKEDITOR.config.height = 80;
40                CKEDITOR.config.width = 650;
41
42                CKEDITOR.replace( 'editor1', {
43                        plugins: plugins + ',link'
44                } );
45
46                CKEDITOR.replace( 'editor1a', {
47                        plugins: plugins + ',link'
48                } );
49
50                CKEDITOR.replace( 'editor2', {
51                        plugins: plugins + ',justify'
52                } );
53
54                CKEDITOR.replace( 'editor3', {
55                        plugins: plugins + ',list,indentlist'
56                } );
57
58        </script>
59</body>
60</html>
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy