N°2847 * Update CKeditor to 4.15.1

* Add iTop default languages to ckeditor
* Change CKeditor skin from flat to Moono-Lisa
This commit is contained in:
Stephen Abello
2020-12-10 11:18:09 +01:00
parent 97c77b612e
commit 1ccabe645b
258 changed files with 1843 additions and 4176 deletions

View File

@@ -1,23 +1,9 @@
<!--
~ Copyright (C) 2013-2019 Combodo SARL
~
~ This file is part of iTop.
~
~ iTop is free software; you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ iTop is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
-->
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
-->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Code Snippet &mdash; CKEditor Sample</title>
@@ -28,6 +14,7 @@
<meta name="ckeditor-sample-group" content="Plugins">
<meta name="ckeditor-sample-description" content="View and modify code using the Code Snippet plugin.">
<meta name="ckeditor-sample-isnew" content="1">
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
<style>
#editable
@@ -49,11 +36,11 @@
<p>
This editor is using the <strong><a href="https://ckeditor.com/cke4/addon/codesnippet">Code Snippet</a></strong> plugin which introduces beautiful code snippets.
By default the <code>codesnippet</code> plugin depends on the built-in client-side syntax highlighting
library <a href="http://highlightjs.org">highlight.js</a>.
library <a href="https://highlightjs.org">highlight.js</a>.
</p>
<p>
You can adjust the appearance of code snippets using the <code><a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-codeSnippet_theme">codeSnippet_theme</a></code> configuration variable
(see <a href="http://highlightjs.org/static/test.html">available themes</a>).
(see <a href="https://highlightjs.org/static/demo/">available themes</a>).
</p>
<p>
Select theme: <select id="select"></select>
@@ -119,7 +106,7 @@ CKEDITOR.inline( 'editable', {
</pre>
<p>
<strong>Note</strong>: The <a href="http://highlightjs.org/static/test.html">highlight.js themes</a>
<strong>Note</strong>: The <a href="https://highlightjs.org/static/demo/">highlight.js themes</a>
must be loaded manually to be applied inside an inline editor instance, as the
<code>codeSnippet_theme</code> setting will not work in that case.
You need to include the stylesheet in the <code>&lt;head&gt;</code> section of the page, for example:
@@ -242,7 +229,7 @@ CKEDITOR.inline( 'editable', {
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
</p>
<p id="copy">
Copyright &copy; 2003-2019, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
Copyright &copy; 2003-2020, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>