|
1 <!DOCTYPE html> |
|
2 <!-- |
|
3 Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. |
|
4 For licensing, see LICENSE.md or http://ckeditor.com/license |
|
5 --> |
|
6 <html> |
|
7 <head> |
|
8 <meta charset="utf-8"> |
|
9 <title>CKEditor Sample</title> |
|
10 <script src="../ckeditor.js"></script> |
|
11 <script src="js/sample.js"></script> |
|
12 <link rel="stylesheet" href="css/samples.css"> |
|
13 <link rel="stylesheet" href="toolbarconfigurator/lib/codemirror/neo.css"> |
|
14 </head> |
|
15 <body id="main"> |
|
16 |
|
17 <nav class="navigation-a"> |
|
18 <div class="grid-container"> |
|
19 <ul class="navigation-a-left grid-width-70"> |
|
20 <li><a href="http://ckeditor.com">Project Homepage</a></li> |
|
21 <li><a href="http://dev.ckeditor.com/">I found a bug</a></li> |
|
22 <li><a href="http://github.com/ckeditor/ckeditor-dev" class="icon-pos-right icon-navigation-a-github">Fork CKEditor on GitHub</a></li> |
|
23 </ul> |
|
24 <ul class="navigation-a-right grid-width-30"> |
|
25 <li><a href="http://ckeditor.com/blog-list">CKEditor Blog</a></li> |
|
26 </ul> |
|
27 </div> |
|
28 </nav> |
|
29 |
|
30 <header class="header-a"> |
|
31 <div class="grid-container"> |
|
32 <h1 class="header-a-logo grid-width-30"> |
|
33 <a href="index.html"><img src="img/logo.png" alt="CKEditor Sample"></a> |
|
34 </h1> |
|
35 |
|
36 <nav class="navigation-b grid-width-70"> |
|
37 <ul> |
|
38 <li><a href="index.html" class="button-a button-a-background">Start</a></li> |
|
39 <li><a href="toolbarconfigurator/index.html" class="button-a">Toolbar configurator <span class="balloon-a balloon-a-nw">Edit your toolbar now!</span></a></li> |
|
40 </ul> |
|
41 </nav> |
|
42 </div> |
|
43 </header> |
|
44 |
|
45 <main> |
|
46 <div class="adjoined-top"> |
|
47 <div class="grid-container"> |
|
48 <div class="content grid-width-100"> |
|
49 <h1>Congratulations!</h1> |
|
50 <p> |
|
51 If you can see CKEditor below, it means that the installation succeeded. |
|
52 You can now try out your new editor version, see its features, and when you are ready to move on, check some of the <a href="#sample-customize">most useful resources</a> recommended below. |
|
53 </p> |
|
54 </div> |
|
55 </div> |
|
56 </div> |
|
57 <div class="adjoined-bottom"> |
|
58 <div class="grid-container"> |
|
59 <div class="grid-width-100"> |
|
60 <div id="editor"> |
|
61 <h1>Hello world!</h1> |
|
62 <p>I'm an instance of <a href="http://ckeditor.com">CKEditor</a>.</p> |
|
63 </div> |
|
64 </div> |
|
65 </div> |
|
66 </div> |
|
67 |
|
68 <div class="grid-container"> |
|
69 <div class="content grid-width-100"> |
|
70 <section id="sample-customize"> |
|
71 <h2>Customize Your Editor</h2> |
|
72 <p>Modular build and <a href="http://docs.ckeditor.com/#!/guide/dev_configuration">numerous configuration options</a> give you nearly endless possibilities to customize CKEditor. Replace the content of your <code><a href="../config.js">config.js</a></code> file with the following code and refresh this page (<strong>remember to clear the browser cache</strong>)!</p> |
|
73 <pre class="cm-s-neo CodeMirror"><code><span style="padding-right: 0.1px;"><span class="cm-variable">CKEDITOR</span>.<span class="cm-property">editorConfig</span> <span class="cm-operator">=</span> <span class="cm-keyword">function</span>( <span class="cm-def">config</span> ) {</span> |
|
74 <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">language</span> <span class="cm-operator">=</span> <span class="cm-string">'es'</span>;</span> |
|
75 <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">uiColor</span> <span class="cm-operator">=</span> <span class="cm-string">'#F7B42C'</span>;</span> |
|
76 <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">height</span> <span class="cm-operator">=</span> <span class="cm-number">300</span>;</span> |
|
77 <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">toolbarCanCollapse</span> <span class="cm-operator">=</span> <span class="cm-atom">true</span>;</span> |
|
78 <span style="padding-right: 0.1px;">};</span></code></pre> |
|
79 </section> |
|
80 |
|
81 <section> |
|
82 <h2>Toolbar Configuration</h2> |
|
83 <p>If you want to reorder toolbar buttons or remove some of them, check <a href="toolbarconfigurator/index.html">this handy tool</a>!</p> |
|
84 </section> |
|
85 |
|
86 <section> |
|
87 <h2>More Samples!</h2> |
|
88 <p>Visit the <a href="http://sdk.ckeditor.com">CKEditor SDK</a> for a huge collection of samples showcasing editor features, with source code readily available to copy and use in your own implementation.</p> |
|
89 </section> |
|
90 |
|
91 <section> |
|
92 <h2>Developer's Guide</h2> |
|
93 <p>The most important resource for all developers working with CKEditor, integrating it with their websites and applications, and customizing to their needs. You can start from here:</p> |
|
94 <ul> |
|
95 <li><a href="http://docs.ckeditor.com/#!/guide/dev_installation">Getting Started</a> – Explains most crucial editor concepts and practices as well as the installation process and integration with your website.</li> |
|
96 <li><a href="http://docs.ckeditor.com/#!/guide/dev_advanced_installation">Advanced Installation Concepts</a> – Describes how to upgrade, install additional components (plugins, skins), or create a custom build.</li> |
|
97 </ul> |
|
98 <p>When you have the basics sorted out, feel free to browse some more advanced sections like:</p> |
|
99 <ul> |
|
100 <li><a href="http://docs.ckeditor.com/#!/guide/dev_features">Functionality Overview</a> – Descriptions and samples of various editor features.</li> |
|
101 <li><a href="http://docs.ckeditor.com/#!/guide/plugin_sdk_intro">Plugin SDK</a>, <a href="http://docs.ckeditor.com/#!/guide/widget_sdk_intro">Widget SDK</a>, and <a href="http://docs.ckeditor.com/#!/guide/skin_sdk_intro">Skin SDK</a> – Useful when you want to create your own editor components.</li> |
|
102 </ul> |
|
103 </section> |
|
104 |
|
105 <section> |
|
106 <h2>CKEditor JavaScript API</h2> |
|
107 <p>CKEditor boasts a rich <a href="http://docs.ckeditor.com/#!/api">JavaScript API</a> that you can use to adjust the editor to your needs and integrate it with your website or application.</p> |
|
108 </section> |
|
109 </div> |
|
110 </div> |
|
111 </main> |
|
112 |
|
113 <footer class="footer-a grid-container"> |
|
114 <div class="grid-container"> |
|
115 <p class="grid-width-100"> |
|
116 CKEditor – The text editor for the Internet – <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> |
|
117 </p> |
|
118 <p class="grid-width-100" id="copy"> |
|
119 Copyright © 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> – Frederico Knabben. All rights reserved. |
|
120 </p> |
|
121 </div> |
|
122 </footer> |
|
123 <script> |
|
124 initSample(); |
|
125 </script> |
|
126 |
|
127 </body> |
|
128 </html> |