index.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  4. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-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. <nav class="navigation-a">
  17. <div class="grid-container">
  18. <ul class="navigation-a-left grid-width-70">
  19. <li><a href="https://ckeditor.com/ckeditor-4/">Project Homepage</a></li>
  20. <li><a href="https://github.com/ckeditor/ckeditor-dev/issues">I found a bug</a></li>
  21. <li><a href="https://github.com/ckeditor/ckeditor-dev" class="icon-pos-right icon-navigation-a-github">Fork CKEditor on GitHub</a></li>
  22. </ul>
  23. <ul class="navigation-a-right grid-width-30">
  24. <li><a href="https://ckeditor.com/blog/">CKEditor Blog</a></li>
  25. </ul>
  26. </div>
  27. </nav>
  28. <header class="header-a">
  29. <div class="grid-container">
  30. <h1 class="header-a-logo grid-width-30">
  31. <a href="index.html"><img src="img/logo.svg" onerror="this.src='img/logo.png'; this.onerror=null;" alt="CKEditor Sample"></a>
  32. </h1>
  33. <nav class="navigation-b grid-width-70">
  34. <ul>
  35. <li><a href="index.html" class="button-a button-a-background">Start</a></li>
  36. <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>
  37. </ul>
  38. </nav>
  39. </div>
  40. </header>
  41. <main>
  42. <div class="adjoined-top">
  43. <div class="grid-container">
  44. <div class="content grid-width-100">
  45. <h1>Congratulations!</h1>
  46. <p>
  47. If you can see CKEditor below, it means that the installation succeeded.
  48. 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.
  49. </p>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="adjoined-bottom">
  54. <div class="grid-container">
  55. <div class="grid-width-100">
  56. <div id="editor">
  57. <h1>Hello world!</h1>
  58. <p>I'm an instance of <a href="https://ckeditor.com">CKEditor</a>.</p>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="grid-container">
  64. <div class="content grid-width-100">
  65. <section id="sample-customize">
  66. <h2>Customize Your Editor</h2>
  67. <p>Modular build and <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_configuration.html">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>.html)!</p>
  68. <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>
  69. <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>
  70. <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>
  71. <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>
  72. <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>
  73. <span style="padding-right: 0.1px;">};</span></code></pre>
  74. </section>
  75. <section>
  76. <h2>Toolbar Configuration</h2>
  77. <p>If you want to reorder toolbar buttons or remove some of them, check <a href="toolbarconfigurator/index.html">this handy tool</a>!</p>
  78. </section>
  79. <section>
  80. <h2>More Samples!</h2>
  81. <p>Visit the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">CKEditor Examples</a> for a huge collection of samples showcasing editor features, with source code readily available to copy and use in your own implementation.</p>
  82. </section>
  83. <section>
  84. <h2>Developer's Guide</h2>
  85. <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>
  86. <ul>
  87. <li><a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_installation.html">Getting Started</a> &ndash; Explains most crucial editor concepts and practices as well as the installation process and integration with your website.</li>
  88. <li><a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_installation.html">Advanced Installation Concepts</a> &ndash; Describes how to upgrade, install additional components (plugins, skins.html), or create a custom build.</li>
  89. </ul>
  90. <p>When you have the basics sorted out, feel free to browse some more advanced sections like:</p>
  91. <ul>
  92. <li><a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_features.html">Functionality Overview</a> &ndash; Descriptions and samples of various editor features.</li>
  93. <li><a href="https://ckeditor.com/docs/ckeditor4/latest/guide/plugin_sdk_intro.html">Plugin SDK</a>, <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/widget_sdk_intro.html">Widget SDK</a>, and <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/skin_sdk_intro.html">Skin SDK</a> &ndash; Useful when you want to create your own editor components.</li>
  94. </ul>
  95. </section>
  96. <section>
  97. <h2>CKEditor JavaScript API</h2>
  98. <p>CKEditor boasts a rich <a href="https://ckeditor.com/docs/ckeditor4/latest/api/index.html">JavaScript API</a> that you can use to adjust the editor to your needs and integrate it with your website or application.</p>
  99. </section>
  100. </div>
  101. </div>
  102. </main>
  103. <footer class="footer-a grid-container">
  104. <div class="grid-container">
  105. <p class="grid-width-100">
  106. CKEditor &ndash; The text editor for the Internet &ndash; <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
  107. </p>
  108. <p class="grid-width-100" id="copy">
  109. Copyright &copy; 2003-2019, <a class="samples" href="https://cksource.com/">CKSource</a> &ndash; Frederico Knabben. All rights reserved.
  110. </p>
  111. </div>
  112. </footer>
  113. <script>
  114. initSample();
  115. </script>
  116. </body>
  117. </html>