]>
Commit | Line | Data |
---|---|---|
1 | <!DOCTYPE html>\r | |
2 | <!--\r | |
3 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.\r | |
4 | For licensing, see LICENSE.md or http://ckeditor.com/license\r | |
5 | -->\r | |
6 | <html>\r | |
7 | <head>\r | |
8 | <meta charset="utf-8">\r | |
9 | <title>CKEditor Sample</title>\r | |
10 | <script src="../ckeditor.js"></script>\r | |
11 | <script src="js/sample.js"></script>\r | |
12 | <link rel="stylesheet" href="css/samples.css">\r | |
13 | <link rel="stylesheet" href="toolbarconfigurator/lib/codemirror/neo.css">\r | |
14 | </head>\r | |
15 | <body id="main">\r | |
16 | \r | |
17 | <nav class="navigation-a">\r | |
18 | <div class="grid-container">\r | |
19 | <ul class="navigation-a-left grid-width-70">\r | |
20 | <li><a href="http://ckeditor.com">Project Homepage</a></li>\r | |
21 | <li><a href="http://dev.ckeditor.com/">I found a bug</a></li>\r | |
22 | <li><a href="http://github.com/ckeditor/ckeditor-dev" class="icon-pos-right icon-navigation-a-github">Fork CKEditor on GitHub</a></li>\r | |
23 | </ul>\r | |
24 | <ul class="navigation-a-right grid-width-30">\r | |
25 | <li><a href="http://ckeditor.com/blog-list">CKEditor Blog</a></li>\r | |
26 | </ul>\r | |
27 | </div>\r | |
28 | </nav>\r | |
29 | \r | |
30 | <header class="header-a">\r | |
31 | <div class="grid-container">\r | |
32 | <h1 class="header-a-logo grid-width-30">\r | |
33 | <a href="index.html"><img src="img/logo.png" alt="CKEditor Sample"></a>\r | |
34 | </h1>\r | |
35 | \r | |
36 | <nav class="navigation-b grid-width-70">\r | |
37 | <ul>\r | |
38 | <li><a href="index.html" class="button-a button-a-background">Start</a></li>\r | |
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>\r | |
40 | </ul>\r | |
41 | </nav>\r | |
42 | </div>\r | |
43 | </header>\r | |
44 | \r | |
45 | <main>\r | |
46 | <div class="adjoined-top">\r | |
47 | <div class="grid-container">\r | |
48 | <div class="content grid-width-100">\r | |
49 | <h1>Congratulations!</h1>\r | |
50 | <p>\r | |
51 | If you can see CKEditor below, it means that the installation succeeded.\r | |
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.\r | |
53 | </p>\r | |
54 | </div>\r | |
55 | </div>\r | |
56 | </div>\r | |
57 | <div class="adjoined-bottom">\r | |
58 | <div class="grid-container">\r | |
59 | <div class="grid-width-100">\r | |
60 | <div id="editor">\r | |
61 | <h1>Hello world!</h1>\r | |
62 | <p>I'm an instance of <a href="http://ckeditor.com">CKEditor</a>.</p>\r | |
63 | </div>\r | |
64 | </div>\r | |
65 | </div>\r | |
66 | </div>\r | |
67 | \r | |
68 | <div class="grid-container">\r | |
69 | <div class="content grid-width-100">\r | |
70 | <section id="sample-customize">\r | |
71 | <h2>Customize Your Editor</h2>\r | |
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>\r | |
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>\r | |
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>\r | |
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>\r | |
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>\r | |
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>\r | |
78 | <span style="padding-right: 0.1px;">};</span></code></pre>\r | |
79 | </section>\r | |
80 | \r | |
81 | <section>\r | |
82 | <h2>Toolbar Configuration</h2>\r | |
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>\r | |
84 | </section>\r | |
85 | \r | |
86 | <section>\r | |
87 | <h2>More Samples!</h2>\r | |
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>\r | |
89 | </section>\r | |
90 | \r | |
91 | <section>\r | |
92 | <h2>Developer's Guide</h2>\r | |
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>\r | |
94 | <ul>\r | |
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>\r | |
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>\r | |
97 | </ul>\r | |
98 | <p>When you have the basics sorted out, feel free to browse some more advanced sections like:</p>\r | |
99 | <ul>\r | |
100 | <li><a href="http://docs.ckeditor.com/#!/guide/dev_features">Functionality Overview</a> – Descriptions and samples of various editor features.</li>\r | |
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>\r | |
102 | </ul>\r | |
103 | </section>\r | |
104 | \r | |
105 | <section>\r | |
106 | <h2>CKEditor JavaScript API</h2>\r | |
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>\r | |
108 | </section>\r | |
109 | </div>\r | |
110 | </div>\r | |
111 | </main>\r | |
112 | \r | |
113 | <footer class="footer-a grid-container">\r | |
114 | <div class="grid-container">\r | |
115 | <p class="grid-width-100">\r | |
116 | CKEditor – The text editor for the Internet – <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r | |
117 | </p>\r | |
118 | <p class="grid-width-100" id="copy">\r | |
119 | Copyright © 2003-2017, <a class="samples" href="http://cksource.com/">CKSource</a> – Frederico Knabben. All rights reserved.\r | |
120 | </p>\r | |
121 | </div>\r | |
122 | </footer>\r | |
123 | <script>\r | |
124 | initSample();\r | |
125 | </script>\r | |
126 | \r | |
127 | </body>\r | |
128 | </html>\r |