parent
946c8b4423
commit
6b0a1c6ac7
1208 changed files with 20445 additions and 0 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,46 @@ |
||||
/* global CKEDITOR, django */ |
||||
;(function() { |
||||
var el = document.getElementById('ckeditor-init-script'); |
||||
if (el && !window.CKEDITOR_BASEPATH) { |
||||
window.CKEDITOR_BASEPATH = el.getAttribute('data-ckeditor-basepath'); |
||||
} |
||||
|
||||
function runInitialisers() { |
||||
if (!window.CKEDITOR) { |
||||
setTimeout(runInitialisers, 100); |
||||
return; |
||||
} |
||||
|
||||
initialiseCKEditor(); |
||||
initialiseCKEditorInInlinedForms(); |
||||
} |
||||
|
||||
if (document.readyState != 'loading' && document.body) { |
||||
document.addEventListener('DOMContentLoaded', initialiseCKEditor); |
||||
runInitialisers(); |
||||
} else { |
||||
document.addEventListener('DOMContentLoaded', runInitialisers); |
||||
} |
||||
|
||||
function initialiseCKEditor() { |
||||
var textareas = Array.prototype.slice.call(document.querySelectorAll('textarea[data-type=ckeditortype]')); |
||||
for (var i=0; i<textareas.length; ++i) { |
||||
var t = textareas[i]; |
||||
if (t.getAttribute('data-processed') == '0' && t.id.indexOf('__prefix__') == -1) { |
||||
t.setAttribute('data-processed', '1'); |
||||
var ext = JSON.parse(t.getAttribute('data-external-plugin-resources')); |
||||
for (var j=0; j<ext.length; ++j) { |
||||
CKEDITOR.plugins.addExternal(ext[j][0], ext[j][1], ext[j][2]); |
||||
} |
||||
CKEDITOR.replace(t.id, JSON.parse(t.getAttribute('data-config'))); |
||||
} |
||||
} |
||||
} |
||||
|
||||
function initialiseCKEditorInInlinedForms() { |
||||
if (typeof django === 'object' && django.jQuery) { |
||||
django.jQuery(document).on('formset:added', initialiseCKEditor); |
||||
} |
||||
} |
||||
|
||||
}()); |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,39 @@ |
||||
CKEditor 4 |
||||
========== |
||||
|
||||
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. |
||||
https://ckeditor.com - See LICENSE.md for license information. |
||||
|
||||
CKEditor 4 is a text editor to be used inside web pages. It's not a replacement |
||||
for desktop text editors like Word or OpenOffice, but a component to be used as |
||||
part of web applications and websites. |
||||
|
||||
## Documentation |
||||
|
||||
The full editor documentation is available online at the following address: |
||||
https://ckeditor.com/docs/ |
||||
|
||||
## Installation |
||||
|
||||
Installing CKEditor is an easy task. Just follow these simple steps: |
||||
|
||||
1. **Download** the latest version from the CKEditor website: |
||||
https://ckeditor.com. You should have already completed this step, but be |
||||
sure you have the very latest version. |
||||
2. **Extract** (decompress) the downloaded file into the root of your website. |
||||
|
||||
**Note:** CKEditor is by default installed in the `ckeditor` folder. You can |
||||
place the files in whichever you want though. |
||||
|
||||
## Checking Your Installation |
||||
|
||||
The editor comes with a few sample pages that can be used to verify that |
||||
installation proceeded properly. Take a look at the `samples` directory. |
||||
|
||||
To test your installation, just call the following page at your website: |
||||
|
||||
http://<your site>/<CKEditor installation path>/samples/index.html |
||||
|
||||
For example: |
||||
|
||||
http://www.example.com/ckeditor/samples/index.html |
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@ |
||||
/** |
||||
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. |
||||
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/ |
||||
|
||||
CKEDITOR.editorConfig = function( config ) { |
||||
// Define changes to default configuration here. For example:
|
||||
// config.language = 'fr';
|
||||
// config.uiColor = '#AADC6E';
|
||||
}; |
@ -0,0 +1,208 @@ |
||||
/* |
||||
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. |
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license |
||||
*/ |
||||
|
||||
body |
||||
{ |
||||
/* Font */ |
||||
/* Emoji fonts are added to visualise them nicely in Internet Explorer. */ |
||||
font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
||||
font-size: 12px; |
||||
|
||||
/* Text color */ |
||||
color: #333; |
||||
|
||||
/* Remove the background color to make it transparent. */ |
||||
background-color: #fff; |
||||
|
||||
margin: 20px; |
||||
} |
||||
|
||||
.cke_editable |
||||
{ |
||||
font-size: 13px; |
||||
line-height: 1.6; |
||||
|
||||
/* Fix for missing scrollbars with RTL texts. (#10488) */ |
||||
word-wrap: break-word; |
||||
} |
||||
|
||||
blockquote |
||||
{ |
||||
font-style: italic; |
||||
font-family: Georgia, Times, "Times New Roman", serif; |
||||
padding: 2px 0; |
||||
border-style: solid; |
||||
border-color: #ccc; |
||||
border-width: 0; |
||||
} |
||||
|
||||
.cke_contents_ltr blockquote |
||||
{ |
||||
padding-left: 20px; |
||||
padding-right: 8px; |
||||
border-left-width: 5px; |
||||
} |
||||
|
||||
.cke_contents_rtl blockquote |
||||
{ |
||||
padding-left: 8px; |
||||
padding-right: 20px; |
||||
border-right-width: 5px; |
||||
} |
||||
|
||||
a |
||||
{ |
||||
color: #0782C1; |
||||
} |
||||
|
||||
ol,ul,dl |
||||
{ |
||||
/* IE7: reset rtl list margin. (#7334) */ |
||||
*margin-right: 0px; |
||||
/* Preserved spaces for list items with text direction different than the list. (#6249,#8049)*/ |
||||
padding: 0 40px; |
||||
} |
||||
|
||||
h1,h2,h3,h4,h5,h6 |
||||
{ |
||||
font-weight: normal; |
||||
line-height: 1.2; |
||||
} |
||||
|
||||
hr |
||||
{ |
||||
border: 0px; |
||||
border-top: 1px solid #ccc; |
||||
} |
||||
|
||||
img.right |
||||
{ |
||||
border: 1px solid #ccc; |
||||
float: right; |
||||
margin-left: 15px; |
||||
padding: 5px; |
||||
} |
||||
|
||||
img.left |
||||
{ |
||||
border: 1px solid #ccc; |
||||
float: left; |
||||
margin-right: 15px; |
||||
padding: 5px; |
||||
} |
||||
|
||||
pre |
||||
{ |
||||
white-space: pre-wrap; /* CSS 2.1 */ |
||||
word-wrap: break-word; /* IE7 */ |
||||
-moz-tab-size: 4; |
||||
tab-size: 4; |
||||
} |
||||
|
||||
.marker |
||||
{ |
||||
background-color: Yellow; |
||||
} |
||||
|
||||
span[lang] |
||||
{ |
||||
font-style: italic; |
||||
} |
||||
|
||||
figure |
||||
{ |
||||
text-align: center; |
||||
outline: solid 1px #ccc; |
||||
background: rgba(0,0,0,0.05); |
||||
padding: 10px; |
||||
margin: 10px 20px; |
||||
display: inline-block; |
||||
} |
||||
|
||||
figure > figcaption |
||||
{ |
||||
text-align: center; |
||||
display: block; /* For IE8 */ |
||||
} |
||||
|
||||
a > img { |
||||
padding: 1px; |
||||
margin: 1px; |
||||
border: none; |
||||
outline: 1px solid #0782C1; |
||||
} |
||||
|
||||
/* Widget Styles */ |
||||
.code-featured |
||||
{ |
||||
border: 5px solid red; |
||||
} |
||||
|
||||
.math-featured |
||||
{ |
||||
padding: 20px; |
||||
box-shadow: 0 0 2px rgba(200, 0, 0, 1); |
||||
background-color: rgba(255, 0, 0, 0.05); |
||||
margin: 10px; |
||||
} |
||||
|
||||
.image-clean |
||||
{ |
||||
border: 0; |
||||
background: none; |
||||
padding: 0; |
||||
} |
||||
|
||||
.image-clean > figcaption |
||||
{ |
||||
font-size: .9em; |
||||
text-align: right; |
||||
} |
||||
|
||||
.image-grayscale |
||||
{ |
||||
background-color: white; |
||||
color: #666; |
||||
} |
||||
|
||||
.image-grayscale img, img.image-grayscale |
||||
{ |
||||
filter: grayscale(100%); |
||||
} |
||||
|
||||
.embed-240p |
||||
{ |
||||
max-width: 426px; |
||||
max-height: 240px; |
||||
margin:0 auto; |
||||
} |
||||
|
||||
.embed-360p |
||||
{ |
||||
max-width: 640px; |
||||
max-height: 360px; |
||||
margin:0 auto; |
||||
} |
||||
|
||||
.embed-480p |
||||
{ |
||||
max-width: 854px; |
||||
max-height: 480px; |
||||
margin:0 auto; |
||||
} |
||||
|
||||
.embed-720p |
||||
{ |
||||
max-width: 1280px; |
||||
max-height: 720px; |
||||
margin:0 auto; |
||||
} |
||||
|
||||
.embed-1080p |
||||
{ |
||||
max-width: 1920px; |
||||
max-height: 1080px; |
||||
margin:0 auto; |
||||
} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,25 @@ |
||||
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. |
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license |
||||
|
||||
cs.js Found: 30 Missing: 0 |
||||
cy.js Found: 30 Missing: 0 |
||||
da.js Found: 12 Missing: 18 |
||||
de.js Found: 30 Missing: 0 |
||||
el.js Found: 25 Missing: 5 |
||||
eo.js Found: 30 Missing: 0 |
||||
fa.js Found: 30 Missing: 0 |
||||
fi.js Found: 30 Missing: 0 |
||||
fr.js Found: 30 Missing: 0 |
||||
gu.js Found: 12 Missing: 18 |
||||
he.js Found: 30 Missing: 0 |
||||
it.js Found: 30 Missing: 0 |
||||
mk.js Found: 5 Missing: 25 |
||||
nb.js Found: 30 Missing: 0 |
||||
nl.js Found: 30 Missing: 0 |
||||
no.js Found: 30 Missing: 0 |
||||
pt-br.js Found: 30 Missing: 0 |
||||
ro.js Found: 6 Missing: 24 |
||||
tr.js Found: 30 Missing: 0 |
||||
ug.js Found: 27 Missing: 3 |
||||
vi.js Found: 6 Missing: 24 |
||||
zh-cn.js Found: 30 Missing: 0 |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue