Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<!DOCTYPE html>
2
<!--
3
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4
For licensing, see LICENSE.md or http://ckeditor.com/license
5
-->
6
<html>
7
 
8
    <head>
9
        <meta charset="utf-8">
10
        <title>UI Color Picker &mdash; CKEditor Sample</title>
11
        <script src="../ckeditor.js"></script>
12
        <link rel="stylesheet" href="sample.css"> </head>
13
 
14
    <body>
15
        <h1 class="samples">
16
            <a href="index.html">CKEditor Samples</a> &raquo; UI Color </h1>
17
        <div class="description">
18
            <p> This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements with a CKEditor instance with an option to change the color of its user interface.
19
                <br>
20
                <strong>Note:</strong>The UI skin color feature depends on the CKEditor skin compatibility. The Moono and Kama skins are examples of skins that work with it. </p>
21
        </div>
22
        <form action="sample_posteddata.php" method="post">
23
            <p> This editor instance has a UI color value defined in configuration to change the skin color, To specify the color of the user interface, set the <code>uiColor</code> property: </p> <pre class="samples">
24
CKEDITOR.replace( '<em>textarea_id</em>', {
25
	<strong>uiColor: '#14B8C4'</strong>
26
});</pre>
27
            <p> Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of the <code>&lt;textarea&gt;</code> element to be replaced. </p>
28
            <p>
29
                <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;</textarea>
30
                <script>
31
                    // Replace the <textarea id="editor"> with an CKEditor
32
                    // instance, using default configurations.
33
                    CKEDITOR.replace('editor1',
34
                    {
35
                        uiColor: '#14B8C4',
36
                        toolbar: [
37
                            ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
38
                            ['FontSize', 'TextColor', 'BGColor']
39
                        ]
40
                    });
41
                </script>
42
            </p>
43
            <p>
44
                <input type="submit" value="Submit"> </p>
45
        </form>
46
        <div id="footer">
47
            <hr>
48
            <p> CKEditor - The text editor for the Internet -
49
                <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
50
            </p>
51
            <p id="copy"> Copyright &copy; 2003-2014,
52
                <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p>
53
        </div>
54
    </body>
55
 
56
</html>