Unverified Commit 5bf2a074 authored by Piotrek Koszuliński's avatar Piotrek Koszuliński Committed by GitHub

Merge pull request #2 from ckeditor/t/1

Feature: Implement the document editor build on top of the decoupled editor. Closes #1.
parents c9848d5a 48593e72
Contributing
========================================
Information about contributing can be found on the following page: <https://github.com/ckeditor/ckeditor5/blob/master/CONTRIBUTING.md>.
Software License Agreement
==========================
**CKEditor 5 document editor build** – https://github.com/ckeditor/ckeditor5-build-decoupled-document <br>
Copyright (c) 2003-2018, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
Licensed under the terms of any of the following licenses at your choice:
* [GNU General Public License Version 2 or later (the "GPL")](http://www.gnu.org/licenses/gpl.html)
* [GNU Lesser General Public License Version 2.1 or later (the "LGPL")](http://www.gnu.org/licenses/lgpl.html)
* [Mozilla Public License Version 1.1 or later (the "MPL")](http://www.mozilla.org/MPL/MPL-1.1.html)
You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. In any case, your choice will not restrict any recipient of your version of this software to use, reproduce, modify and distribute this software under any of the above licenses.
Sources of Intellectual Property Included in CKEditor
-----------------------------------------------------
Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
Trademarks
----------
**CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
CKEditor 5 decoupled document build
========================================
[![Join the chat at https://gitter.im/ckeditor/ckeditor5](https://badges.gitter.im/ckeditor/ckeditor5.svg)](https://gitter.im/ckeditor/ckeditor5?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-build-decoupled-document.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-decoupled-document)
[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-build-decoupled-document/status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-decoupled-document)
[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-build-decoupled-document/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-decoupled-document?type=dev)
The decoupled document build for CKEditor 5. Read more about the [decoupled document build]((https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/overview.html#document-editor) and see the [demo](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/examples/builds/document-editor.html).
## Documentation
See:
* [Installation](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/integration/installation.html) for how to install this package and what it contains.
* [Basic API](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/integration/basic-api.html) for how to create an editor and interact with it.
* [Configuration](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/integration/configuration.html) for how to configure the editor.
* [Creating custom builds](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/development/custom-builds.html) for how to customize the build (configure and rebuild the editor bundle).
## Quick start
First, install the build from npm:
```
npm install --save @ckeditor/ckeditor5-build-decoupled-document
```
And use it in your website:
```html
<div id="editor">
<p>This is the editor content.</p>
</div>
<script src="./node_modules/@ckeditor/ckeditor5-build-decoupled-document/build/ckeditor.js"></script>
<script>
DecoupledDocumentEditor
.create( '<h2>Hello world!</h2>', {
toolbarContainer: '.toolbar-container',
editableContainer: '.editable-container'
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
</script>
```
Or in your JavaScript application:
```js
import DecoupledDocumentEditor from '@ckeditor/ckeditor5-build-decoupled-document';
// Or using CommonJS verion:
// const DecoupledDocumentEditor = require( '@ckeditor/ckeditor5-build-decoupled-document' );
DecoupledDocumentEditor
.create( '<h2>Hello world!</h2>', {
toolbarContainer: '.toolbar-container',
editableContainer: '.editable-container'
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
```
**Note:** If you are planning to integrate CKEditor 5 deep into your application, it is actually more convenient and recommended to install and import the source modules directly (like it happens in `ckeditor.js`). Read more in the [Advanced setup guide](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/integration/advanced-setup.html).
## License
Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the `LICENSE.md` file.
#!/usr/bin/env bash
echo "Building 'build/ckeditor.js'..."
echo ""
webpack
echo ""
echo "Done."
#!/usr/bin/env node
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
'use strict';
const path = require( 'path' );
const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' );
const buildConfig = require( '../build-config' );
console.log( 'Creating the entry file...' );
bundler.createEntryFile( path.join( 'src', 'ckeditor.js' ), buildConfig );
console.log( 'Done.' );
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
'use strict';
module.exports = {
// The editor creator to use.
editor: '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor',
// The name under which the editor will be exported.
moduleName: 'DecoupledDocumentEditor',
// Plugins to include in the build.
plugins: [
'@ckeditor/ckeditor5-essentials/src/essentials',
'@ckeditor/ckeditor5-alignment/src/alignment',
'@ckeditor/ckeditor5-font/src/fontsize',
'@ckeditor/ckeditor5-font/src/fontfamily',
'@ckeditor/ckeditor5-highlight/src/highlight',
'@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter',
'@ckeditor/ckeditor5-autoformat/src/autoformat',
'@ckeditor/ckeditor5-basic-styles/src/bold',
'@ckeditor/ckeditor5-basic-styles/src/italic',
'@ckeditor/ckeditor5-basic-styles/src/strikethrough',
'@ckeditor/ckeditor5-basic-styles/src/underline',
'@ckeditor/ckeditor5-block-quote/src/blockquote',
'@ckeditor/ckeditor5-easy-image/src/easyimage',
'@ckeditor/ckeditor5-heading/src/heading',
'@ckeditor/ckeditor5-image/src/image',
'@ckeditor/ckeditor5-image/src/imagecaption',
'@ckeditor/ckeditor5-image/src/imagestyle',
'@ckeditor/ckeditor5-image/src/imagetoolbar',
'@ckeditor/ckeditor5-image/src/imageupload',
'@ckeditor/ckeditor5-link/src/link',
'@ckeditor/ckeditor5-list/src/list',
'@ckeditor/ckeditor5-paragraph/src/paragraph',
],
// Editor config.
config: {
toolbar: {
items: [
'heading',
'|',
'fontsize',
'fontfamily',
'|',
'bold',
'italic',
'underline',
'strikethrough',
'highlight',
'|',
'alignment',
'|',
'numberedList',
'bulletedList',
'|',
'link',
'blockquote',
'uploadImage',
'|',
'undo',
'redo'
]
},
image: {
toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
},
// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
language: 'en'
}
};
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
CKEDITOR_TRANSLATIONS.add('ast',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Negrina",w:"Cursiva",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Block quote",ag:"complementu d'imaxen",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Imaxen a tamañu completu",al:"Imaxen llateral",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Llista numberada",aq:"Llista con viñetes",ar:"Enllazar",as:"Change image text alternative",at:"Desenllazar",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Guardar",ay:"Encaboxar",az:"Link URL",ba:"Editor de testu arriquecíu, %0",bb:"Desfacer",bc:"Refacer",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('bg',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Удебелен",w:"Курсив",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Параграф",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Цитат",ag:"image widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Запазване",ay:"Отказ",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('da',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Fed",w:"Kursiv",x:"Underline",y:"Strikethrough",z:"Vælg overskrift",aa:"Overskrift",ab:"Formattering",ac:"Overskrift 1",ad:"Overskrift 2",ae:"Overskrift 3",af:"Blot citat",ag:"billed widget",ah:"Indsæt billede",ai:"Upload failed",aj:"Indtast billedoverskrift",ak:"Fuld billedstørrelse",al:"Sidebillede",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Opstilling med tal",aq:"Punktopstilling",ar:"Link",as:"Skift alternativ billedtekst",at:"Fjern link",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Gem",ay:"Annullér",az:"Link URL",ba:"Wysiwyg editor, %0",bb:"Fortryd",bc:"Gentag",bd:"Alternativ tekst"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('de',{a:"Datei kann nicht hochgeladen werden:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Fett",w:"Kursiv",x:"Underline",y:"Strikethrough",z:"Überschrift auswählen",aa:"Überschrift",ab:"Absatz",ac:"Überschrift 1",ad:"Überschrift 2",ae:"Überschrift 3",af:"Blockzitat",ag:"Bild-Steuerelement",ah:"Bild einfügen",ai:"Upload failed",aj:"Bildunterschrift eingeben",ak:"Bild in voller Größe",al:"Seitenbild",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Nummerierte Liste",aq:"Aufzählungsliste",ar:"Link",as:"Alternativ Text ändern",at:"Link entfernen",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Speichern",ay:"Abbrechen",az:"Link-URL",ba:"Rich-Text-Editor, %0",bb:"Rückgängig",bc:"Wiederherstellen",bd:"Textalternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('el',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Έντονη",w:"Πλάγια",x:"Underline",y:"Strikethrough",z:"Επιλέξτε κεφαλίδα",aa:"Κεφαλίδα",ab:"Παράγραφος",ac:"Κεφαλίδα 1",ad:"Κεφαλίδα 2",ae:"Κεφαλίδα 3",af:"Περιοχή παράθεσης",ag:"image widget",ah:"Εισαγωγή εικόνας",ai:"Upload failed",aj:"Λεζάντα",ak:"Εικόνα πλήρης μεγέθους",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Αριθμημένη λίστα",aq:"Λίστα κουκκίδων",ar:"Σύνδεσμος",as:"Αλλαγή εναλλακτικού κείμενου",at:"Αφαίρεση συνδέσμου",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Αποθήκευση",ay:"Ακύρωση",az:"Link URL",ba:"Επεξεργαστής Πλούσιου Κειμένου, 0%",bb:"Αναίρεση",bc:"Επανάληψη",bd:"Εναλλακτικό κείμενο"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('en-au',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Bold",w:"Italic",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Block quote",ag:"image widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Save",ay:"Cancel",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('eo',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"grasa",w:"kursiva",x:"Underline",y:"Strikethrough",z:"Elektu ĉapon",aa:"Ĉapo",ab:"Paragrafo",ac:"Ĉapo 1",ad:"Ĉapo 2",ae:"Ĉapo 3",af:"Block quote",ag:"bilda fenestraĵo",ah:"Enmetu bildon",ai:"Upload failed",aj:"Skribu klarigon pri la bildo",ak:"Bildo kun reala dimensio",al:"Flanka biildo",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numerita Listo",aq:"Bula Listo",ar:"Ligilo",as:"Ŝanĝu la alternativan tekston de la bildo",at:"Malligi",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Konservi",ay:"Nuligi",az:"Link URL",ba:"Redaktilo de Riĉa Teksto, %0",bb:"Malfari",bc:"Refari",bd:"Alternativa teksto"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('es',{a:"No se pudo cargar el archivo:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Negrita",w:"Cursiva",x:"Subrayado",y:"Strikethrough",z:"Elegir Encabezado",aa:"Encabezado",ab:"Párrafo",ac:"Encabezado 1",ad:"Encabezado 2",ae:"Encabezado 3",af:"Entrecomillado",ag:"Imagen de widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Imagen tamaño completo",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Enlace",as:"Cambiar el texto alternativo de la imagen",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Guardar",ay:"Cancelar",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Texto alternativo"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('et',{a:"Faili ei suudeta üles laadida:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Bold",w:"Italic",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Block quote",ag:"image widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Save",ay:"Cancel",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('fi',{a:"Tiedostoa ei voitu ladata:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Lihavointi",w:"Kursivointi",x:"Alleviivaus",y:"Strikethrough",z:"Valitse tyyli",aa:"Otsikkotyyli",ab:"Kappale",ac:"Otsikko 1",ad:"Otsikko 2",ae:"Otsikko 3",af:"Lainaus",ag:"Kuvavimpain",ah:"Lisää kuva",ai:"Lataus epäonnistui",aj:"Syötä kuvateksti",ak:"Täysikokoinen kuva",al:"Pieni kuva",am:"Vasemmalle tasattu kuva",an:"Keskitetty kuva",ao:"Oikealle tasattu kuva",ap:"Numeroitu lista",aq:"Lista",ar:"Linkki",as:"Vaihda kuvan vaihtoehtoinen teksti",at:"Poista linkki",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Tallenna",ay:"Peruuta",az:"Linkin osoite",ba:"Rikas tekstieditori, %0",bb:"Peru",bc:"Tee uudelleen",bd:"Vaihtoehtoinen teksti"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('fr',{a:"Envoi du fichier échoué :",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Gras",w:"Italique",x:"Souligner",y:"Strikethrough",z:"Choisir le titre",aa:"En-tête",ab:"Paragraphe",ac:"Titre 1",ad:"Titre 2",ae:"Titre 3",af:"Citation",ag:"Objet image",ah:"Insérer une image",ai:"Échec de l'envoi",aj:"Saisissez la légende de l’image",ak:"Image taille réelle",al:"Image sur le côté",am:"Image alignée à gauche",an:"Image centrée",ao:"Image alignée a droite",ap:"Liste numérotée",aq:"Liste à puces",ar:"Lien",as:"Changer le texte alternatif à l’image",at:"Supprimer le lien",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Enregistrer",ay:"Annuler",az:"URL du lien",ba:"Éditeur de texte enrichi, %0",bb:"Annuler",bc:"Restaurer",bd:"Texte alternatif"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('gl',{a:"Non é posíbel cargar o ficheiro:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Negra",w:"Itálica",x:"Subliñado",y:"Strikethrough",z:"Escolla o título",aa:"Título",ab:"Parágrafo",ac:"Título 1",ad:"Título 2",ae:"Título 3",af:"Cita de bloque",ag:"Trebello de imaxe",ah:"Inserir imaxe",ai:"Fallou o envío",aj:"Introduza o título da imaxe",ak:"Imaxe a tamaño completo",al:"Lado da imaxe",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Lista numerada",aq:"Lista viñeteada",ar:"Ligar",as:"Cambiar o texto alternativo da imaxe",at:"Desligar",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Gardar",ay:"Cancelar",az:"URL de ligazón",ba:"Editor de texto mellorado, %0",bb:"Desfacer",bc:"Refacer",bd:"Texto alternativo"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('gu',{a:"ફાઇલ અપલોડ ન થઇ શકી",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"ઘાટુ - બોલ્ડ્",w:"ત્રાંસુ - ઇટલિક્",x:"નીચે લિટી - અન્ડરલાઇન્",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:" વિચાર ટાંકો",ag:"image widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Save",ay:"Cancel",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('hr',{a:"Datoteku nije moguće poslati:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Podebljano",w:"Ukošeno",x:"Underline",y:"Strikethrough",z:"Odaberite naslov",aa:"Naslov",ab:"Paragraf",ac:"Naslov 1",ad:"Naslov 2",ae:"Naslov 3",af:"Blok citat",ag:"Slika widget",ah:"Umetni sliku",ai:"Slanje nije uspjelo",aj:"Unesite naslov slike",ak:"Slika pune veličine",al:"Slika sa strane",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Brojčana lista",aq:"Obična lista",ar:"Veza",as:"Promijeni alternativni tekst slike",at:"Ukloni vezu",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Snimi",ay:"Poništi",az:"URL veze",ba:"Rich Text Editor, %0",bb:"Poništi",bc:"Ponovi",bd:"Alternativni tekst"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('hu',{a:"Nem sikerült a fájl feltöltése:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Félkövér",w:"Dőlt",x:"Aláhúzott",y:"Strikethrough",z:"Stílus megadása",aa:"Stílusok",ab:"Bekezdés",ac:"Címsor 1",ad:"Címsor 2",ae:"Címsor 3",af:"Idézet",ag:"képmodul",ah:"Kép beszúrása",ai:"A feltöltés nem sikerült",aj:"Képaláírás megadása",ak:"Teljes méretű kép",al:"Oldalsó kép",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Számozott lista",aq:"Pontozott lista",ar:"Link",as:"Helyettesítő szöveg módosítása",at:"Link eltávolítása",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Mentés",ay:"Mégsem",az:"Link URL",ba:"Bővített szövegszerkesztő, %0",bb:"Visszavonás",bc:"Újra",bd:"Helyettesítő szöveg"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('it',{a:"Impossibile caricare il file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Grassetto",w:"Corsivo",x:"Sottolineato",y:"Strikethrough",z:"Seleziona intestazione",aa:"Intestazione",ab:"Paragrafo",ac:"Intestazione 1",ad:"Intestazione 2",ae:"Intestazione 3",af:"Blocco citazione",ag:"Widget immagine",ah:"Inserisci immagine",ai:"Caricamento fallito",aj:"inserire didascalia dell'immagine",ak:"Immagine a dimensione intera",al:"Immagine laterale",am:"Immagine allineata a sinistra",an:"Immagine centrata",ao:"Immagine allineata a destra",ap:"Elenco numerato",aq:"Elenco puntato",ar:"Collegamento",as:"Cambia testo alternativo dell'immagine",at:"Elimina collegamento",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Salva",ay:"Annulla",az:"URL del collegamento",ba:"Editor di testo Rich Text, %0",bb:"Annulla",bc:"Ripristina",bd:"Testo alternativo"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('ja',{a:"ファイルをアップロードできません:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"ボールド",w:"イタリック",x:"Underline",y:"Strikethrough",z:"見出しを選択",aa:"見出し",ab:"パラグラフ",ac:"見出し1",ad:"見出し2",ae:"見出し3 ",af:"ブロッククオート(引用)",ag:"画像ウィジェット",ah:"画像挿入",ai:"アップロード失敗",aj:"画像の注釈を入力",ak:"フルサイズ画像",al:"サイドイメージ",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"番号付きリスト",aq:"箇条書きリスト",ar:"リンク",as:"画像の代替テキストを変更",at:"リンク解除",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"保存",ay:"キャンセル",az:"リンクURL",ba:"リッチテキストエディター, %0",bb:"元に戻す",bc:"やり直し",bd:"代替テキスト"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('km',{a:"មិនអាច​អាប់ឡូត​ឯកសារ៖",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"ដិត",w:"ទ្រេត",x:"គូស​បន្ទាត់​ក្រោម",y:"Strikethrough",z:"ជ្រើសរើស​ក្បាលអត្ថបទ",aa:"ក្បាលអត្ថបទ",ab:"កថាខណ្ឌ",ac:"ក្បាលអត្ថបទ 1",ad:"ក្បាលអត្ថបទ 2",ae:"ក្បាលអត្ថបទ 3",af:"ប្លុក​ពាក្យ​សម្រង់",ag:"វិដជិត​រូបភាព",ah:"បញ្ចូល​រូបភាព",ai:"អាប់ឡូត​មិនបាន",aj:"បញ្ចូល​ពាក្យ​ពណ៌នា​រូបភាព",ak:"រូបភាព​ពេញ​ទំហំ",al:"រូបភាព​នៅ​ខាង",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"បញ្ជី​ជា​លេខ",aq:"បញ្ជី​ជា​ចំណុច",ar:"តំណ",as:"Change image text alternative",at:"ផ្ដាច់​តំណ",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"រក្សាទុ",ay:"បោះបង់",az:"URL តំណ",ba:"កម្មវិធី​កែសម្រួល​អត្ថបទ​សម្បូរបែប, %0",bb:"លែង​ធ្វើ​វិញ",bc:"ធ្វើ​វិញ",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('kn',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"‍‍ದಪ್ಪ",w:"‍ಇಟಾಲಿಕ್",x:"Underline",y:"Strikethrough",z:"ಶೀರ್ಷಿಕೆ ಆಯ್ಕೆಮಾಡು",aa:"ಶೀರ್ಷಿಕೆ",ab:"ಪ್ಯಾರಾಗ್ರಾಫ್",ac:"ಶೀರ್ಷಿಕೆ 1",ad:"ಶೀರ್ಷಿಕೆ 2",ae:"ಶೀರ್ಷಿಕೆ 3",af:"‍‍‍‍ಗುರುತಿಸಲಾದ ‍‍ಉಲ್ಲೇಖ",ag:"‍ಚಿತ್ರ ವಿಜೆಟ್",ah:"Insert image",ai:"Upload failed",aj:"‍ಚಿತ್ರದ ಶೀರ್ಷಿಕೆ ಸೇರಿಸು",ak:"‍ಪೂರ್ಣ ‍‍ಅಳತೆಯ ಚಿತ್ರ",al:"‍ಪಕ್ಕದ ಚಿತ್ರ",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"‍ಸಂಖ್ಯೆಯ ಪಟ್ಟಿ‍",aq:"‍‍ಬುಲೆಟ್ ಪಟ್ಟಿ",ar:"‍ಕೊಂಡಿ",as:"‍ಚಿತ್ರದ ಬದಲಿ ಪಠ್ಯ ಬದಲಾಯಿಸು",at:"‍ಕೊಂಡಿ ತೆಗೆ",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"ಉಳಿಸು",ay:"ರದ್ದುಮಾಡು",az:"Link URL",ba:"‍ಸಮೃದ್ಧ ಪಠ್ಯ ಸಂಪಾದಕ‍, %0",bb:"‍‍ರದ್ದು",bc:"‍ಮತ್ತೆ ಮಾಡು",bd:"‍ಪಠ್ಯದ ಬದಲಿ"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('ko',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"굵게",w:"기울임꼴",x:"밑줄",y:"Strikethrough",z:"제목 선택",aa:"제목",ab:"문단",ac:"제목1",ad:"제목2",ae:"제목3",af:"인용 단락",ag:"이미지 위젯",ah:"Insert image",ai:"Upload failed",aj:"이미지 설명을 입력하세요",ak:"문서 너비",al:"내부 우측 정렬",am:"왼쪽 정렬",an:"가운데 정렬",ao:"오른쪽 정렬",ap:"번호매기기",aq:"글머리기호",ar:"링크",as:"대체 텍스트 변경",at:"링크 삭제",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"저장",ay:"취소",az:"링크 주소",ba:"Rich Text Editor, %0",bb:"실행 취소",bc:"다시 실행",bd:"대체 텍스트"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('ku',{a:"پەڕگەکە ناتوانرێت باربکرێت:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"قەڵەو",w:"لار",x:"ژێرهێڵ",y:"Strikethrough",z:"سەرنووسە هەڵبژێرە",aa:"سەرنووسە",ab:"پەراگراف",ac:"سەرنووسەی 1",ad:"سەرنووسەی 2",ae:"سەرنووسەی 3",af:"وتەی وەرگیراو",ag:"وێدجیتی وێنە",ah:"وێنە دابنێ",ai:"بارکردنەکە سەرنەکەووت",aj:"سەردێڕی وێنە دابنێ",ak:"پڕ بەقەبارەی وێنە",al:"لای وێنە",am:"ڕیزکردنی وێنە بۆ لای چەپ",an:"ناوەڕاستکراوی وێنە",ao:"ڕیزکردنی وێنە بۆ لای ڕاست",ap:"لیستەی ژمارەیی",aq:"لیستەی خاڵەیی",ar:"بەستەر",as:"گۆڕینی جێگروەی تێکیسی وێنە",at:"لابردنی بەستەر",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"پاشکەوتکردن",ay:"هەڵوەشاندنەوە",az:"ناونیشانی بەستەر",ba:"سەرنوسەری دەقی بەپیت, %0",bb:"وەک خۆی لێ بکەوە",bc:"هەلگەڕاندنەوە",bd:"جێگرەوەی تێکست"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('nb',{a:"Kan ikke laste opp fil:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Fet",w:"Kursiv",x:"Understreking",y:"Strikethrough",z:"Velg overskrift",aa:"Overskrift",ab:"Avsnitt",ac:"Overskrift 1",ad:"Overskrift 2",ae:"Overskrift 3",af:"Blokksitat",ag:"Bilde-widget",ah:"Sett inn bilde",ai:"Opplasting feilet",aj:"Skriv inn bildetekst",ak:"Bilde i full størrelse",al:"Sidebilde",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Nummerert liste",aq:"Punktmerket liste",ar:"Lenke",as:"Endre tekstalternativ for bilde",at:"Fjern lenke",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Lagre",ay:"Avbryt",az:"URL for lenke",ba:"Rikteksteditor, %0",bb:"Angre",bc:"Gjør om",bd:"Tekstalternativ for bilde"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('ne',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Bold",w:"Italic",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Block quote",ag:"image widget",ah:"तस्वीर सम्मिलित गर्नुहोस्",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"सुरक्षित गर्नुहोस्",ay:"रद्द गर्नुहोस्",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('nl',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Vet",w:"Italic",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Block quote",ag:"image widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Opslaan",ay:"Annuleren",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('oc',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Gras",w:"Italica",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Block quote",ag:"image widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numbered List",aq:"Bulleted List",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Enregistrar",ay:"Anullar",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Undo",bc:"Redo",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('pl',{a:"Nie można przesłać pliku:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Pogrubienie",w:"Kursywa",x:"Podkreślenie",y:"Strikethrough",z:"Wybierz nagłówek",aa:"Nagłówek",ab:"Akapit",ac:"Nagłówek 1",ad:"Nagłówek 2",ae:"Nagłówek 3",af:"Cytat blokowy",ag:"image widget",ah:"Wstaw obraz",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Lista numerowana",aq:"Lista wypunktowana",ar:"Wstaw odnośnik",as:"Change image text alternative",at:"Usuń odnośnik",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Zapisz",ay:"Anuluj",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Cofnij",bc:"Ponów",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('pt-br',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Negrito",w:"Itálico",x:"Underline",y:"Strikethrough",z:"Escolha o título",aa:"Titulo",ab:"Parágrafo",ac:"Título 1",ad:"Título 2",ae:"Título 3",af:"Bloco de citação",ag:"Ferramenta de imagem",ah:"Inserir imagem",ai:"Upload failed",aj:"Inserir legenda da imagem",ak:"Imagem completa",al:"Imagem lateral",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Lista numerada",aq:"Lista com marcadores",ar:"Link",as:"Alterar texto alternativo da imagem",at:"Remover link",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Salvar",ay:"Cancelar",az:"Link URL",ba:"Editor de Formatação, %0",bb:"Desfazer",bc:"Refazer",bd:"Texto alternativo"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('pt',{a:"Não foi possível carregar o ficheiro:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Negrito",w:"Itálico",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Título",ab:"Parágrafo",ac:"Título 1",ad:"Título 2",ae:"Título 3",af:"Block quote",ag:"módulo de imagem",ah:"Inserir imagem",ai:"Falha ao carregar",aj:"Indicar legenda da imagem",ak:"Imagem em tamanho completo",al:"Imagem lateral",am:"Left aligned image",an:"Imagem centrada",ao:"Right aligned image",ap:"Lista ordenada",aq:"Lista não ordenada",ar:"Hiperligação",as:"Change image text alternative",at:"Desligar",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Guardar",ay:"Cancelar",az:"Link URL",ba:"Editor de texto avançado, %0",bb:"Desfazer",bc:"Refazer",bd:"Texto alternativo"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('ro',{a:"Nu pot încărca fișierul:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Îngroșat",w:"Oblic",x:"Subliniat",y:"Strikethrough",z:"Alege titlu rubrică",aa:"Titlu rubrică",ab:"Paragraf",ac:"Titlu rubrică 1",ad:"Titlu rubrică 2",ae:"Titlu rubrică 3",af:"Bloc citat",ag:"widget imagine",ah:"Inserează imagine",ai:"Încărcare eșuată",aj:"Introdu titlul descriptiv al imaginii",ak:"Imagine mărime completă",al:"Imagine laterală",am:"Imagine aliniată stângă",an:"Imagine aliniată pe centru",ao:"Imagine aliniată dreapta",ap:"Listă numerotată",aq:"Listă cu puncte",ar:"Link",as:"Schimbă textul alternativ al imaginii",at:"Șterge link",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Salvare",ay:"Anulare",az:"Link URL",ba:"Editor de text îmbunătățit, %0",bb:"Anulează",bc:"Revenire",bd:"Text alternativ"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('ru',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Bold",w:"Italic",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Заголовок",ab:"Paragraph",ac:"Заголовок 1",ad:"Заголовок 2",ae:"Заголовок 3",af:"Цитата",ag:"image widget",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Нумерованный список",aq:"Маркированный список",ar:"Link",as:"Change image text alternative",at:"Unlink",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Сохранить",ay:"Отмена",az:"Link URL",ba:"Rich Text Editor, %0",bb:"Отменить",bc:"Повторить",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('sk',{a:"Nie je možné nahrať súbor:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Tučným",w:"Kurzíva",x:"Podčiarknuté",y:"Strikethrough",z:"Vyberte nadpis",aa:"Nadpis",ab:"Paragraf",ac:"Nadpis 1",ad:"Nadpis 2",ae:"Nadpis 3",af:"Citát",ag:"widget obrázka",ah:"Vložiť obrázok",ai:"Nahrávanie zlyhalo",aj:"Vložte popis obrázka",ak:"Obrázok v plnej veľkosti",al:"Bočný obrázok",am:"Zarovnať vľavo",an:"Zarovnať na stred",ao:"Zarovnať vpravo",ap:"Číslovaný zoznam",aq:"Zoznam s odrážkami",ar:"Odkaz",as:"Zmeňte alternatívny text obrázka",at:"Zrušiť odkaz",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Uložiť",ay:"Zrušiť",az:"URL odkazu",ba:"Editor s formátovaním, %0",bb:"Späť",bc:"Znova",bd:"Alternatívny text"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('sv',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Fet",w:"Kursiv",x:"Underline",y:"Strikethrough",z:"Välj rubrik",aa:"Rubrik",ab:"Paragraf",ac:"Rubrik 1",ad:"Rubrik 2",ae:"Rubrik 3",af:"Blockcitat",ag:"image widget",ah:"Infoga bild",ai:"Upload failed",aj:"Enter image caption",ak:"Full size image",al:"Side image",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numrerad lista",aq:"Punktlista",ar:"Länk",as:"Change image text alternative",at:"Ta bort länk",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Spara",ay:"Avbryt",az:"Link URL",ba:"Rich Text-editor, %0",bb:"Ångra",bc:"Gör om",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('tr',{a:"Dosya yüklenemedi:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Kalın",w:"İtalik",x:"Underline",y:"Strikethrough",z:"Başlık tipi seç",aa:"Başlık",ab:"Paragraf",ac:"1. Seviye Başlık",ad:"2. Seviye Başlık",ae:"3. Seviye Başlık",af:"Alıntı",ag:"Görsel Bileşeni",ah:"Görsel Ekle",ai:"Upload failed",aj:"Resim Açıklaması Gir",ak:"Tam Boyut Görsel",al:"Yan Görsel",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Numaralı Liste",aq:"Simgeli Liste",ar:"Link",as:"Görsel alternatif yazısını değiştir",at:"Linki kaldır",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Kaydet",ay:"İptal",az:"Link URL",ba:"Zengin İÇerik Editörü, %0",bb:"Geri al",bc:"İleri al",bd:"Yazı alternatifi"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('uk',{a:"Cannot upload file:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"Жирний",w:"Курсив",x:"Underline",y:"Strikethrough",z:"Choose heading",aa:"Heading",ab:"Paragraph",ac:"Heading 1",ad:"Heading 2",ae:"Heading 3",af:"Block quote",ag:"Віджет зображення",ah:"Insert image",ai:"Upload failed",aj:"Enter image caption",ak:"Повний розмір зображення",al:"Бокове зображення",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"Нумерований список",aq:"Маркерний список",ar:"Посилання",as:"Change image text alternative",at:"Видалити посилання",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"Зберегти",ay:"Відміна",az:"Link URL",ba:"Розширений текстовий редактор, %0",bb:"Відміна",bc:"Повтор",bd:"Text alternative"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('zh-cn',{a:"无法上传文件:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"加粗",w:"倾斜",x:"下划线",y:"Strikethrough",z:"标题类型",aa:"标题",ab:"段落",ac:"标题 1",ad:"标题 2",ae:"标题 3",af:"块引用",ag:"图像小部件",ah:"插入图像",ai:"上传失败",aj:"输入图片标题",ak:"图片通栏显示",al:"图片侧边显示",am:"图片左侧对齐",an:"图片居中",ao:"图片右侧对齐",ap:"编号列表",aq:"项目列表",ar:"超链接",as:"更改图片替换文本",at:"取消超链接",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"保存",ay:"取消",az:"超链接地址",ba:"富文本编辑器, %0",bb:"撤销",bc:"重做",bd:"替换文本"})
\ No newline at end of file
CKEDITOR_TRANSLATIONS.add('zh',{a:"無法上傳檔案:",b:"Font Family",c:"Default",d:"Font Size",e:"Tiny",f:"Small",g:"Big",h:"Huge",i:"Yellow marker",j:"Green marker",k:"Pink marker",l:"Blue marker",m:"Red pen",n:"Green pen",o:"Remove highlighting",p:"Highlight",q:"Align left",r:"Align right",s:"Align center",t:"Justify",u:"Text alignment",v:"粗體",w:"斜體",x:"Underline",y:"Strikethrough",z:"選取標題",aa:"標題",ab:"段落",ac:"標題 1",ad:"標題 2",ae:"標題 3",af:"塊引用",ag:"圖片小工具",ah:"插入圖片",ai:"上傳失敗",aj:"輸入圖片說明",ak:"完整大小圖片",al:"側邊圖片",am:"Left aligned image",an:"Centered image",ao:"Right aligned image",ap:"有編號的清單",aq:"項目符號清單",ar:"連結",as:"變更圖片的文字替代",at:"取消連結",au:"Edit link",av:"Open link in new tab",aw:"This link has no URL",ax:"儲存",ay:"取消",az:"連結˙ URL",ba:"豐富文字編輯器,%0",bb:"取消",bc:"重做",bd:"文字替代"})
\ No newline at end of file
{
"name": "@ckeditor/ckeditor5-build-decoupled-document",
"version": "0.0.1",
"description": "CKEditor 5 document editor build.",
"keywords": [
"ckeditor5",
"ckeditor5-build",
"text editor",
"WYSIWYG",
"rich-text editor"
],
"main": "./build/ckeditor.js",
"files": [
"build"
],
"devDependencies": {
"@ckeditor/ckeditor5-adapter-ckfinder": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-alignment": "^0.0.1",
"@ckeditor/ckeditor5-autoformat": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-basic-styles": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-block-quote": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-dev-utils": "^7.0.3",
"@ckeditor/ckeditor5-dev-webpack-plugin": "^3.0.4",
"@ckeditor/ckeditor5-easy-image": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-editor-decoupled": "^0.0.1",
"@ckeditor/ckeditor5-essentials": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-font": "^0.0.1",
"@ckeditor/ckeditor5-heading": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-highlight": "^0.0.1",
"@ckeditor/ckeditor5-image": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-link": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-list": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-paragraph": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-theme-lark": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-upload": "^1.0.0-alpha.2",
"babel-minify-webpack-plugin": "^0.3.0",
"postcss-loader": "^2.0.10",
"raw-loader": "^0.5.1",
"style-loader": "^0.19.1",
"webpack": "^3.10.0",
"webpack-sources": "1.0.1"
},
"engines": {
"node": ">=6.0.0",
"npm": ">=3.0.0"
},
"author": "CKSource (http://cksource.com/)",
"license": "(GPL-2.0 OR LGPL-2.1 OR MPL-1.1)",
"homepage": "https://ckeditor5.github.io",
"bugs": "https://github.com/ckeditor/ckeditor5-build-decoupled-document/issues",
"repository": {
"type": "git",
"url": "https://github.com/ckeditor/ckeditor5-build-decoupled-document.git"
},
"scripts": {
"build": "npm run create-entry-file && npm run build-ckeditor",
"create-entry-file": "node bin/create-entry-file.js",
"build-ckeditor": "sh bin/build-ckeditor.sh",
"preversion": "npm run build; if [ -n \"$(git status src/ckeditor.js build/ --porcelain)\" ]; then git add -u src/ckeditor.js build/ && git commit -m 'Internal: Build.'; fi"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CKEditor 5 – decoupled document build – development sample</title>
<style>
body {
max-width: 800px;
margin: 20px auto;
}
</style>
</head>
<body>
<h1>CKEditor 5 – decoupled document build – development sample</h1>
<h2>The toolbar</h2>
<div class="toolbar-container ck-reset_all"></div>
<h2>The editable</h2>
<div class="editable-container ck-reset "></div>
<style>
.editable-container,
.toolbar-container {
position: relative;
border: 1px solid #ddd;
background: #eee;
}
.toolbar-container {
padding: 1em;
}
.editable-container {
padding: 3em;
overflow-y: scroll;
max-height: 500px;
}
.editable-container .ck-editor__editable {
min-height: 21cm;
padding: 2em;
border: 1px #D3D3D3 solid;
border-radius: var(--ck-border-radius);
background: white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
</style>
<script src="../build/ckeditor.js"></script>
<script>
const editorData = `<h2>Sample</h2>
<p>This is an instance of the <a href="https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/overview.html#document-editor">decoupled document build</a>.</p>
<figure class="image">
<img src="../tests/manual/sample.jpg" alt="Autumn fields" />
</figure>
<p>You can use this sample to validate whether your <a href="https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/development/custom-builds.html">custom build</a> works fine.</p>`;
DecoupledDocumentEditor.create( editorData, {
toolbarContainer: '.toolbar-container',
editableContainer: '.editable-container'
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
</script>
</body>
</html>
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
import DecoupledDocumentEditorBase from '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor';
import EssentialsPlugin from '@ckeditor/ckeditor5-essentials/src/essentials';
import AlignmentPlugin from '@ckeditor/ckeditor5-alignment/src/alignment';
import FontsizePlugin from '@ckeditor/ckeditor5-font/src/fontsize';
import FontfamilyPlugin from '@ckeditor/ckeditor5-font/src/fontfamily';
import HighlightPlugin from '@ckeditor/ckeditor5-highlight/src/highlight';
import UploadadapterPlugin from '@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter';
import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
import StrikethroughPlugin from '@ckeditor/ckeditor5-basic-styles/src/strikethrough';
import UnderlinePlugin from '@ckeditor/ckeditor5-basic-styles/src/underline';
import BlockquotePlugin from '@ckeditor/ckeditor5-block-quote/src/blockquote';
import EasyimagePlugin from '@ckeditor/ckeditor5-easy-image/src/easyimage';
import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
import ImagePlugin from '@ckeditor/ckeditor5-image/src/image';
import ImagecaptionPlugin from '@ckeditor/ckeditor5-image/src/imagecaption';
import ImagestylePlugin from '@ckeditor/ckeditor5-image/src/imagestyle';
import ImagetoolbarPlugin from '@ckeditor/ckeditor5-image/src/imagetoolbar';
import ImageuploadPlugin from '@ckeditor/ckeditor5-image/src/imageupload';
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
export default class DecoupledDocumentEditor extends DecoupledDocumentEditorBase {}
DecoupledDocumentEditor.build = {
plugins: [
EssentialsPlugin,
AlignmentPlugin,
FontsizePlugin,
FontfamilyPlugin,
HighlightPlugin,
UploadadapterPlugin,
AutoformatPlugin,
BoldPlugin,
ItalicPlugin,
StrikethroughPlugin,
UnderlinePlugin,
BlockquotePlugin,
EasyimagePlugin,
HeadingPlugin,
ImagePlugin,
ImagecaptionPlugin,
ImagestylePlugin,
ImagetoolbarPlugin,
ImageuploadPlugin,
LinkPlugin,
ListPlugin,
ParagraphPlugin
],
config: {
toolbar: {
items: [
'heading',
'|',
'fontsize',
'fontfamily',
'|',
'bold',
'italic',
'underline',
'strikethrough',
'highlight',
'|',
'alignment',
'|',
'numberedList',
'bulletedList',
'|',
'link',
'blockquote',
'uploadImage',
'|',
'undo',
'redo'
]
},
image: {
toolbar: [
'imageStyle:full',
'imageStyle:side',
'|',
'imageTextAlternative'
]
},
language: 'en'
}
};
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/* globals document */
import DecoupledDocumentEditor from '../src/ckeditor';
import DecoupledEditor from '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor';
describe( 'DecoupledDocumentEditor build', () => {
let editor, editorData;
beforeEach( () => {
editorData = '<p><strong>foo</strong> bar</p>';
} );
afterEach( () => {
editor = null;
} );
describe( 'buid', () => {
it( 'contains plugins', () => {
expect( DecoupledDocumentEditor.build.plugins ).to.not.be.empty;
} );
it( 'contains config', () => {
expect( DecoupledDocumentEditor.build.config.toolbar ).to.not.be.empty;
} );
} );
describe( 'create()', () => {
beforeEach( () => {
return DecoupledDocumentEditor.create( editorData )
.then( newEditor => {
editor = newEditor;
} );
} );
afterEach( () => {
return editor.destroy();
} );
it( 'creates an instance which inherits from the DecoupledDocumentEditor', () => {
expect( editor ).to.be.instanceof( DecoupledDocumentEditor );
expect( editor ).to.be.instanceof( DecoupledEditor );
} );
it( 'loads passed data', () => {
expect( editor.getData() ).to.equal( '<p><strong>foo</strong> bar</p>' );
} );
it( 'does not define the UI DOM structure', () => {
expect( editor.ui.view.element ).to.be.null;
expect( editor.ui.view.toolbar.element.parentElement ).to.be.null;
expect( editor.ui.view.editable.element.parentElement ).to.be.null;
} );
} );
describe( 'destroy()', () => {
beforeEach( () => {
return DecoupledDocumentEditor.create( editorData )
.then( newEditor => {
editor = newEditor;
} );
} );
} );
describe( 'plugins', () => {
beforeEach( () => {
return DecoupledDocumentEditor.create( editorData )
.then( newEditor => {
editor = newEditor;
} );
} );
afterEach( () => {
return editor.destroy();
} );
it( 'paragraph works', () => {
const data = '<p>Some text inside a paragraph.</p>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'basic-styles work', () => {
const data = [
'<p>',
'<strong>Test:strong</strong>',
'<i>Test:i</i>',
'<u>Test:u</u>',
'<s>Test:s</s>',
'</p>'
].join( '' );
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'block-quote works', () => {
const data = '<blockquote><p>Quote</p></blockquote>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'heading works', () => {
const data = [
'<h2>Heading 1.</h2>',
'<h3>Heading 1.1</h3>',
'<h4>Heading 1.1.1</h4>',
'<h4>Heading 1.1.2</h4>',
'<h3>Heading 1.2</h3>',
'<h4>Heading 1.2.1</h4>',
'<h2>Heading 2</h2>'
].join( '' );
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'image works', () => {
const data = '<figure class="image"><img src="./manual/sample.jpg"></figure>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'list works', () => {
const data = [
'<ul>',
'<li>Item 1.</li>',
'<li>Item 2.</li>',
'</ul>',
'<ol>',
'<li>Item 1.</li>',
'<li>Item 2.</li>',
'</ol>'
].join( '' );
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'link works', () => {
const data = '<p><a href="//ckeditor.com">CKEditor.com</a></p>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'font size works', () => {
const data = '<p><span class="text-big">foo</span></p>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'font family works', () => {
const data = '<p><span style="font-family:Georgia, serif;">foo</span></p>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'highlight works', () => {
const data = '<p><mark class="marker-green">foo</mark></p>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
it( 'alignment works', () => {
const data = '<p style="text-align:right;">foo</p>';
editor.setData( data );
expect( editor.getData() ).to.equal( data );
} );
} );
describe( 'config', () => {
afterEach( () => {
return editor.destroy();
} );
// https://github.com/ckeditor/ckeditor5/issues/572
it( 'allows configure toolbar items through config.toolbar', () => {
return DecoupledDocumentEditor
.create( editorData, {
toolbar: [ 'bold' ]
} )
.then( newEditor => {
editor = newEditor;
expect( editor.ui.view.toolbar.items.length ).to.equal( 1 );
} );
} );
} );
} );
<h2>The toolbar</h2>
<div class="toolbar-container ck-reset_all"></div>
<h2>The editable</h2>
<div class="editable-container ck-reset "></div>
<style>
.editable-container,
.toolbar-container {
position: relative;
border: 1px solid #ddd;
background: #eee;
}
.toolbar-container {
padding: 1em;
}
.editable-container {
padding: 3em;
overflow-y: scroll;
max-height: 500px;
}
.editable-container .ck-editor__editable {
min-height: 21cm;
padding: 2em;
border: 1px #D3D3D3 solid;
border-radius: var(--ck-border-radius);
background: white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
</style>
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
const DecoupledDocumentEditor = require( '../../build/ckeditor' );
const editorData = `<h2>About CKEditor&nbsp;5</h2>
<p>This is <a href="https://ckeditor5.github.io">CKEditor&nbsp;5</a>.</p>
<figure class="image">
<img src="./sample.jpg" alt="Autumn fields" />
</figure>
<p>After more than 2 years of building the next generation editor from scratch and closing over 980 tickets,
we created a highly <strong>extensible and flexible architecture</strong> which consists of an <strong>amazing
editing framework</strong> and <strong>editing solutions</strong> that will be built on top of it.</p>
<p>We explained this design choice in
<a href="https://medium.com/content-uneditable/ckeditor-5-the-future-of-rich-text-editing-2b9300f9df2c">&ldquo;CKEditor 5:
The future of rich text editing&ldquo;</a>:</p>
<blockquote><p>(…) we are changing our approach with CKEditor 5. We will no longer have only two solutions
available, instead CKEditor will be seen as a framework for editing solutions. At the same time, we will be
developing several out-of-the-box solutions based on it, which will be available to use in many different contexts.
It will be a real “one size fits all” approach, from little requirements, to super advanced full featured
applications.</p></blockquote>
<h3>Notes</h3>
<p><a href="https://ckeditor5.github.io">CKEditor&nbsp;5</a> is <i>under heavy development</i> and this demo
is not production-ready software. For example:</p>
<ul>
<li><strong>Only Chrome, Opera and Safari are supported</strong>.</li>
<li>Firefox requires enabling the
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange">
&ldquo;dom.select_events.enabled&rdquo;</a> option.</li>
<li><a href="https://github.com/ckeditor/ckeditor5/issues/342">Support for pasting</a>
is under development (content filtering is unstable).</li>
</ul>
<p>It has <em>bugs</em> that we are aware of &mdash; and that we will be working on in the next few
iterations of the project. Stay tuned for some updates soon!</p>`;
DecoupledDocumentEditor
.create( editorData, {
toolbarContainer: '.toolbar-container',
editableContainer: '.editable-container'
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
# CKEditor 5 decoupled document build – standard version (CommonJS `require()`)
Just play with it.
**Note:** Remember to rebuild the bundles (`npm run build`). You can also run Webpack in the watch mode:
```
./node_modules/.bin/webpack -w
```
<h2>The toolbar</h2>
<div class="toolbar-container ck-reset_all"></div>
<h2>The editable</h2>
<div class="editable-container ck-reset "></div>
<style>
.editable-container,
.toolbar-container {
position: relative;
border: 1px solid #ddd;
background: #eee;
}
.toolbar-container {
padding: 1em;
}
.editable-container {
padding: 3em;
overflow-y: scroll;
max-height: 500px;
}
.editable-container .ck-editor__editable {
min-height: 21cm;
padding: 2em;
border: 1px #D3D3D3 solid;
border-radius: var(--ck-border-radius);
background: white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
</style>
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
import DecoupledDocumentEditor from '../../build/ckeditor';
const editorData = `<h2>About CKEditor&nbsp;5</h2>
<p>This is <a href="https://ckeditor5.github.io">CKEditor&nbsp;5</a>.</p>
<figure class="image">
<img src="./sample.jpg" alt="Autumn fields" />
</figure>
<p>After more than 2 years of building the next generation editor from scratch and closing over 980 tickets,
we created a highly <strong>extensible and flexible architecture</strong> which consists of an <strong>amazing
editing framework</strong> and <strong>editing solutions</strong> that will be built on top of it.</p>
<p>We explained this design choice in
<a href="https://medium.com/content-uneditable/ckeditor-5-the-future-of-rich-text-editing-2b9300f9df2c">&ldquo;CKEditor 5:
The future of rich text editing&ldquo;</a>:</p>
<blockquote><p>(…) we are changing our approach with CKEditor 5. We will no longer have only two solutions
available, instead CKEditor will be seen as a framework for editing solutions. At the same time, we will be
developing several out-of-the-box solutions based on it, which will be available to use in many different contexts.
It will be a real “one size fits all” approach, from little requirements, to super advanced full featured
applications.</p></blockquote>
<h3>Notes</h3>
<p><a href="https://ckeditor5.github.io">CKEditor&nbsp;5</a> is <i>under heavy development</i> and this demo
is not production-ready software. For example:</p>
<ul>
<li><strong>Only Chrome, Opera and Safari are supported</strong>.</li>
<li>Firefox requires enabling the
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange">
&ldquo;dom.select_events.enabled&rdquo;</a> option.</li>
<li><a href="https://github.com/ckeditor/ckeditor5/issues/342">Support for pasting</a>
is under development (content filtering is unstable).</li>
</ul>
<p>It has <em>bugs</em> that we are aware of &mdash; and that we will be working on in the next few
iterations of the project. Stay tuned for some updates soon!</p>`;
DecoupledDocumentEditor
.create( editorData, {
toolbarContainer: '.toolbar-container',
editableContainer: '.editable-container'
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
# CKEditor 5 decoupled document build – standard version
Just play with it.
**Note:** Remember to rebuild the bundles (`npm run build`). You can also run Webpack in the watch mode:
```
./node_modules/.bin/webpack -w
```
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
'use strict';
/* eslint-env node */
const path = require( 'path' );
const webpack = require( 'webpack' );
const { bundler, styles } = require( '@ckeditor/ckeditor5-dev-utils' );
const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
const BabiliPlugin = require( 'babel-minify-webpack-plugin' );
const buildConfig = require( './build-config' );
module.exports = {
devtool: 'source-map',
entry: path.resolve( __dirname, 'src', 'ckeditor.js' ),
output: {
path: path.resolve( __dirname, 'build' ),
filename: 'ckeditor.js',
libraryTarget: 'umd',
libraryExport: 'default',
library: buildConfig.moduleName
},
plugins: [
new CKEditorWebpackPlugin( {
language: buildConfig.config.language,
additionalLanguages: 'all'
} ),
new BabiliPlugin( null, {
comments: false
} ),
new webpack.BannerPlugin( {
banner: bundler.getLicenseBanner(),
raw: true
} ),
new webpack.optimize.ModuleConcatenationPlugin()
],
module: {
rules: [
{
test: /\.svg$/,
use: [ 'raw-loader' ]
},
{
test: /\.css$/,
use: [
{
loader: 'style-loader',
options: {
singleton: true
}
},
{
loader: 'postcss-loader',
options: styles.getPostCssConfig( {
themeImporter: {
themePath: require.resolve( '@ckeditor/ckeditor5-theme-lark' )
},
minify: true
} )
},
]
}
]
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment