16825 |
efrain |
1 |
<!DOCTYPE html>
|
|
|
2 |
<!--
|
|
|
3 |
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
|
4 |
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
5 |
-->
|
|
|
6 |
<html lang="en">
|
|
|
7 |
<head>
|
|
|
8 |
<meta charset="utf-8">
|
|
|
9 |
<title>UI Color Picker — CKEditor Sample</title>
|
|
|
10 |
<script src="../../ckeditor.js"></script>
|
|
|
11 |
<link rel="stylesheet" href="sample.css">
|
|
|
12 |
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
|
|
|
13 |
</head>
|
|
|
14 |
<body>
|
|
|
15 |
<h1 class="samples">
|
|
|
16 |
<a href="index.html">CKEditor Samples</a> » UI Color
|
|
|
17 |
</h1>
|
|
|
18 |
<div class="warning deprecated">
|
|
|
19 |
This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/uicolor.html">brand new version in CKEditor Examples</a>.
|
|
|
20 |
</div>
|
|
|
21 |
<div class="description">
|
|
|
22 |
<p>
|
|
|
23 |
This sample shows how to automatically replace <code><textarea></code> elements
|
|
|
24 |
with a CKEditor instance with an option to change the color of its user interface.<br>
|
|
|
25 |
<strong>Note:</strong>The UI skin color feature depends on the CKEditor skin
|
|
|
26 |
compatibility. The Moono and Kama skins are examples of skins that work with it.
|
|
|
27 |
</p>
|
|
|
28 |
</div>
|
|
|
29 |
<form action="sample_posteddata.php" method="post">
|
|
|
30 |
<p>
|
|
|
31 |
This editor instance has a UI color value defined in configuration to change the skin color,
|
|
|
32 |
To specify the color of the user interface, set the <code>uiColor</code> property:
|
|
|
33 |
</p>
|
|
|
34 |
<pre class="samples">
|
|
|
35 |
CKEDITOR.replace( '<em>textarea_id</em>', {
|
|
|
36 |
<strong>uiColor: '#14B8C4'</strong>
|
|
|
37 |
});</pre>
|
|
|
38 |
<p>
|
|
|
39 |
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
|
|
|
40 |
the <code><textarea></code> element to be replaced.
|
|
|
41 |
</p>
|
|
|
42 |
<p>
|
|
|
43 |
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p></textarea>
|
|
|
44 |
<script>
|
|
|
45 |
|
|
|
46 |
// Replace the <textarea id="editor"> with an CKEditor
|
|
|
47 |
// instance, using default configurations.
|
|
|
48 |
CKEDITOR.replace( 'editor1', {
|
|
|
49 |
uiColor: '#14B8C4',
|
|
|
50 |
toolbar: [
|
|
|
51 |
[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
|
|
|
52 |
[ 'FontSize', 'TextColor', 'BGColor' ]
|
|
|
53 |
]
|
|
|
54 |
});
|
|
|
55 |
|
|
|
56 |
</script>
|
|
|
57 |
</p>
|
|
|
58 |
<p>
|
|
|
59 |
<input type="submit" value="Submit">
|
|
|
60 |
</p>
|
|
|
61 |
</form>
|
|
|
62 |
<div id="footer">
|
|
|
63 |
<hr>
|
|
|
64 |
<p>
|
|
|
65 |
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
|
|
66 |
</p>
|
|
|
67 |
<p id="copy">
|
|
|
68 |
Copyright © 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
|
|
|
69 |
Knabben. All rights reserved.
|
|
|
70 |
</p>
|
|
|
71 |
</div>
|
|
|
72 |
</body>
|
|
|
73 |
</html>
|