You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 8.4KB

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