new ckeditor

New ckeditor
This commit is contained in:
Francesco Malagrino
2017-03-26 21:10:58 +02:00
parent 87a8e6920e
commit f9caa9759b
4418 changed files with 209667 additions and 2801 deletions

View File

@@ -0,0 +1,84 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
.cke_tpl_list
{
border: #dcdcdc 2px solid;
background-color: #ffffff;
overflow-y: auto;
overflow-x: hidden;
width: 100%;
height: 220px;
}
.cke_tpl_item
{
margin: 5px;
padding: 7px;
border: #eeeeee 1px solid;
*width: 88%;
}
.cke_tpl_preview
{
border-collapse: separate;
text-indent:0;
width: 100%;
}
.cke_tpl_preview td
{
padding: 2px;
vertical-align: middle;
}
.cke_tpl_preview .cke_tpl_preview_img
{
width: 100px;
}
.cke_tpl_preview span
{
white-space: normal;
}
.cke_tpl_title
{
font-weight: bold;
}
.cke_tpl_list a:hover .cke_tpl_item,
.cke_tpl_list a:focus .cke_tpl_item,
.cke_tpl_list a:active .cke_tpl_item
{
border: #ff9933 1px solid;
background-color: #fffacd;
}
.cke_tpl_list a:hover *,
.cke_tpl_list a:focus *,
.cke_tpl_list a:active *
{
cursor: pointer;
}
/* IE Quirks contextual selectors children will not get :hover transition until
the hover style of the link itself contains certain CSS declarations. */
.cke_browser_quirks .cke_tpl_list a:active,
.cke_browser_quirks .cke_tpl_list a:hover,
.cke_browser_quirks .cke_tpl_list a:focus
{
background-position: 0 0;
}
.cke_hc .cke_tpl_list a:hover .cke_tpl_item,
.cke_hc .cke_tpl_list a:focus .cke_tpl_item,
.cke_hc .cke_tpl_list a:active .cke_tpl_item
{
border-width: 3px;
}
.cke_tpl_empty, .cke_tpl_loading
{
text-align: center;
padding: 5px;
}

View File

@@ -0,0 +1,199 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
CKEDITOR.dialog.add( 'templates', function( editor ) {
// Constructs the HTML view of the specified templates data.
function renderTemplatesList( container, templatesDefinitions ) {
// clear loading wait text.
container.setHtml( '' );
for ( var i = 0, totalDefs = templatesDefinitions.length; i < totalDefs; i++ ) {
var definition = CKEDITOR.getTemplates( templatesDefinitions[ i ] ),
imagesPath = definition.imagesPath,
templates = definition.templates,
count = templates.length;
for ( var j = 0; j < count; j++ ) {
var template = templates[ j ],
item = createTemplateItem( template, imagesPath );
item.setAttribute( 'aria-posinset', j + 1 );
item.setAttribute( 'aria-setsize', count );
container.append( item );
}
}
}
function createTemplateItem( template, imagesPath ) {
var item = CKEDITOR.dom.element.createFromHtml( '<a href="javascript:void(0)" tabIndex="-1" role="option" >' +
'<div class="cke_tpl_item"></div>' +
'</a>' );
// Build the inner HTML of our new item DIV.
var html = '<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';
if ( template.image && imagesPath ) {
html += '<td class="cke_tpl_preview_img"><img src="' +
CKEDITOR.getUrl( imagesPath + template.image ) + '"' +
( CKEDITOR.env.ie6Compat ? ' onload="this.width=this.width"' : '' ) + ' alt="" title=""></td>';
}
html += '<td style="white-space:normal;"><span class="cke_tpl_title">' + template.title + '</span><br/>';
if ( template.description )
html += '<span>' + template.description + '</span>';
html += '</td></tr></table>';
item.getFirst().setHtml( html );
item.on( 'click', function() {
insertTemplate( template.html );
} );
return item;
}
// Insert the specified template content into editor.
// @param {Number} index
function insertTemplate( html ) {
var dialog = CKEDITOR.dialog.getCurrent(),
isReplace = dialog.getValueOf( 'selectTpl', 'chkInsertOpt' );
if ( isReplace ) {
editor.fire( 'saveSnapshot' );
// Everything should happen after the document is loaded (#4073).
editor.setData( html, function() {
dialog.hide();
// Place the cursor at the first editable place.
var range = editor.createRange();
range.moveToElementEditStart( editor.editable() );
range.select();
setTimeout( function() {
editor.fire( 'saveSnapshot' );
}, 0 );
} );
} else {
editor.insertHtml( html );
dialog.hide();
}
}
function keyNavigation( evt ) {
var target = evt.data.getTarget(),
onList = listContainer.equals( target );
// Keyboard navigation for template list.
if ( onList || listContainer.contains( target ) ) {
var keystroke = evt.data.getKeystroke(),
items = listContainer.getElementsByTag( 'a' ),
focusItem;
if ( items ) {
// Focus not yet onto list items?
if ( onList )
focusItem = items.getItem( 0 );
else {
switch ( keystroke ) {
case 40: // ARROW-DOWN
focusItem = target.getNext();
break;
case 38: // ARROW-UP
focusItem = target.getPrevious();
break;
case 13: // ENTER
case 32: // SPACE
target.fire( 'click' );
}
}
if ( focusItem ) {
focusItem.focus();
evt.data.preventDefault();
}
}
}
}
// Load skin at first.
var plugin = CKEDITOR.plugins.get( 'templates' );
CKEDITOR.document.appendStyleSheet( CKEDITOR.getUrl( plugin.path + 'dialogs/templates.css' ) );
var listContainer;
var templateListLabelId = 'cke_tpl_list_label_' + CKEDITOR.tools.getNextNumber(),
lang = editor.lang.templates,
config = editor.config;
return {
title: editor.lang.templates.title,
minWidth: CKEDITOR.env.ie ? 440 : 400,
minHeight: 340,
contents: [ {
id: 'selectTpl',
label: lang.title,
elements: [ {
type: 'vbox',
padding: 5,
children: [ {
id: 'selectTplText',
type: 'html',
html: '<span>' +
lang.selectPromptMsg +
'</span>'
},
{
id: 'templatesList',
type: 'html',
focus: true,
html: '<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="' + templateListLabelId + '">' +
'<div class="cke_tpl_loading"><span></span></div>' +
'</div>' +
'<span class="cke_voice_label" id="' + templateListLabelId + '">' + lang.options + '</span>'
},
{
id: 'chkInsertOpt',
type: 'checkbox',
label: lang.insertOption,
'default': config.templates_replaceContent
} ]
} ]
} ],
buttons: [ CKEDITOR.dialog.cancelButton ],
onShow: function() {
var templatesListField = this.getContentElement( 'selectTpl', 'templatesList' );
listContainer = templatesListField.getElement();
CKEDITOR.loadTemplates( config.templates_files, function() {
var templates = ( config.templates || 'default' ).split( ',' );
if ( templates.length ) {
renderTemplatesList( listContainer, templates );
templatesListField.focus();
} else {
listContainer.setHtml( '<div class="cke_tpl_empty">' +
'<span>' + lang.emptyListMsg + '</span>' +
'</div>' );
}
} );
this._.element.on( 'keydown', keyNavigation );
},
onHide: function() {
this._.element.removeListener( 'keydown', keyNavigation );
}
};
} );
} )();

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'af', {
button: 'Sjablone',
emptyListMsg: '(Geen sjablone gedefineer nie)',
insertOption: 'Vervang huidige inhoud',
options: 'Sjabloon opsies',
selectPromptMsg: 'Kies die sjabloon om te gebruik in die redigeerder (huidige inhoud gaan verlore):',
title: 'Inhoud Sjablone'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ar', {
button: 'القوالب',
emptyListMsg: '(لم يتم تعريف أي قالب)',
insertOption: 'استبدال المحتوى',
options: 'خصائص القوالب',
selectPromptMsg: 'اختر القالب الذي تود وضعه في المحرر',
title: 'قوالب المحتوى'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'az', {
button: 'Şablon',
emptyListMsg: '(Heç bir şablon təyin edilməyib)',
insertOption: 'Həqiqi içindəkiləri əvəz et',
options: 'Şablonun seçimləri',
selectPromptMsg: 'Redaktor ilə açmaq üçün şablonu seçin',
title: 'İçindəkinin şablonu'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'bg', {
button: 'Шаблони',
emptyListMsg: '(Няма дефинирани шаблони)',
insertOption: 'Препокрива актуалното съдържание',
options: 'Опции за шаблона',
selectPromptMsg: 'Изберете шаблон <br>(текущото съдържание на редактора ще бъде загубено):',
title: 'Шаблони'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'bn', {
button: 'টেমপ্লেট',
emptyListMsg: '(কোন টেমপ্লেট ডিফাইন করা নেই)',
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'অনুগ্রহ করে এডিটরে ওপেন করার জন্য টেমপ্লেট বাছাই করুন<br>(আসল কনটেন্ট হারিয়ে যাবে):',
title: 'কনটেন্ট টেমপ্লেট'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'bs', {
button: 'Templates', // MISSING
emptyListMsg: '(No templates defined)', // MISSING
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'Please select the template to open in the editor', // MISSING
title: 'Content Templates' // MISSING
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ca', {
button: 'Plantilles',
emptyListMsg: '(No hi ha plantilles definides)',
insertOption: 'Reemplaça el contingut actual',
options: 'Opcions de plantilla',
selectPromptMsg: 'Seleccioneu una plantilla per usar a l\'editor<br>(per defecte s\'elimina el contingut actual):',
title: 'Plantilles de contingut'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'cs', {
button: 'Šablony',
emptyListMsg: '(Není definována žádná šablona)',
insertOption: 'Nahradit aktuální obsah',
options: 'Nastavení šablon',
selectPromptMsg: 'Prosím zvolte šablonu pro otevření v editoru<br>(aktuální obsah editoru bude ztracen):',
title: 'Šablony obsahu'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'cy', {
button: 'Templedi',
emptyListMsg: '(Dim templedi wedi\'u diffinio)',
insertOption: 'Amnewid y cynnwys go iawn',
options: 'Opsiynau Templedi',
selectPromptMsg: 'Dewiswch dempled i\'w agor yn y golygydd',
title: 'Templedi Cynnwys'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'da', {
button: 'Skabeloner',
emptyListMsg: '(Der er ikke defineret nogen skabelon)',
insertOption: 'Erstat det faktiske indhold',
options: 'Skabelon muligheder',
selectPromptMsg: 'Vælg den skabelon, som skal åbnes i editoren (nuværende indhold vil blive overskrevet):',
title: 'Indholdsskabeloner'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'de-ch', {
button: 'Vorlagen',
emptyListMsg: '(Keine Vorlagen definiert)',
insertOption: 'Aktuelle Inhalte ersetzen',
options: 'Vorlagenoptionen',
selectPromptMsg: 'Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen',
title: 'Inhaltsvorlagen'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'de', {
button: 'Vorlagen',
emptyListMsg: '(Keine Vorlagen definiert)',
insertOption: 'Aktuelle Inhalte ersetzen',
options: 'Vorlagenoptionen',
selectPromptMsg: 'Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen',
title: 'Inhaltsvorlagen'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'el', {
button: 'Πρότυπα',
emptyListMsg: '(Δεν έχουν καθοριστεί πρότυπα)',
insertOption: 'Αντικατάσταση υπάρχοντων περιεχομένων',
options: 'Επιλογές Προτύπου',
selectPromptMsg: 'Παρακαλώ επιλέξτε πρότυπο για εισαγωγή στο πρόγραμμα',
title: 'Πρότυπα Περιεχομένου'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en-au', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options', // MISSING
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en-ca', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options', // MISSING
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en-gb', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options',
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options',
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'eo', {
button: 'Ŝablonoj',
emptyListMsg: '(Neniu ŝablono difinita)',
insertOption: 'Anstataŭigi la nunan enhavon',
options: 'Opcioj pri ŝablonoj',
selectPromptMsg: 'Bonvolu selekti la ŝablonon por malfermi ĝin en la redaktilo',
title: 'Enhavo de ŝablonoj'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'es', {
button: 'Plantillas',
emptyListMsg: '(No hay plantillas definidas)',
insertOption: 'Reemplazar el contenido actual',
options: 'Opciones de plantillas',
selectPromptMsg: 'Por favor selecciona la plantilla a abrir en el editor<br>(el contenido actual se perderá):',
title: 'Contenido de Plantillas'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'et', {
button: 'Mall',
emptyListMsg: '(Ühtegi malli ei ole defineeritud)',
insertOption: 'Praegune sisu asendatakse',
options: 'Malli valikud',
selectPromptMsg: 'Palun vali mall, mis avada redaktoris<br />(praegune sisu läheb kaotsi):',
title: 'Sisumallid'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'eu', {
button: 'Txantiloiak',
emptyListMsg: '(Ez dago txantiloirik definituta)',
insertOption: 'Ordeztu uneko edukiak',
options: 'Txantiloi aukerak',
selectPromptMsg: 'Mesedez hautatu txantiloia editorean irekitzeko',
title: 'Eduki txantiloiak'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fa', {
button: 'الگوها',
emptyListMsg: '(الگوئی تعریف نشده است)',
insertOption: 'محتویات کنونی جایگزین شوند',
options: 'گزینه‌های الگو',
selectPromptMsg: 'لطفاً الگوی مورد نظر را برای بازکردن در ویرایشگر انتخاب کنید',
title: 'الگوهای محتویات'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fi', {
button: 'Pohjat',
emptyListMsg: '(Ei määriteltyjä pohjia)',
insertOption: 'Korvaa koko sisältö',
options: 'Sisältöpohjan ominaisuudet',
selectPromptMsg: 'Valitse editoriin avattava pohja',
title: 'Sisältöpohjat'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fo', {
button: 'Skabelónir',
emptyListMsg: '(Ongar skabelónir tøkar)',
insertOption: 'Yvirskriva núverandi innihald',
options: 'Møguleikar fyri Template',
selectPromptMsg: 'Vinarliga vel ta skabelón, ið skal opnast í tekstviðgeranum<br>(Hetta yvirskrivar núverandi innihald):',
title: 'Innihaldsskabelónir'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fr-ca', {
button: 'Modèles',
emptyListMsg: '(Aucun modèle disponible)',
insertOption: 'Remplacer tout le contenu actuel',
options: 'Options de modèles',
selectPromptMsg: 'Sélectionner le modèle à ouvrir dans l\'éditeur',
title: 'Modèles de contenu'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fr', {
button: 'Modèles',
emptyListMsg: '(Aucun modèle disponible)',
insertOption: 'Remplacer le contenu actuel',
options: 'Options des modèles',
selectPromptMsg: 'Veuillez sélectionner le modèle à ouvrir dans l\'éditeur',
title: 'Contenu des modèles'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'gl', {
button: 'Modelos',
emptyListMsg: '(Non hai modelos definidos)',
insertOption: 'Substituír o contido actual',
options: 'Opcións de modelos',
selectPromptMsg: 'Seleccione o modelo a abrir no editor',
title: 'Modelos de contido'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'gu', {
button: 'ટેમ્પ્લેટ',
emptyListMsg: '(કોઈ ટેમ્પ્લેટ ડિફાઇન નથી)',
insertOption: 'મૂળ શબ્દને બદલો',
options: 'ટેમ્પ્લેટના વિકલ્પો',
selectPromptMsg: 'એડિટરમાં ઓપન કરવા ટેમ્પ્લેટ પસંદ કરો (વર્તમાન કન્ટેન્ટ સેવ નહીં થાય):',
title: 'કન્ટેન્ટ ટેમ્પ્લેટ'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'he', {
button: 'תבניות',
emptyListMsg: '(לא הוגדרו תבניות)',
insertOption: 'החלפת תוכן ממשי',
options: 'אפשרויות התבניות',
selectPromptMsg: 'יש לבחור תבנית לפתיחה בעורך.<br />התוכן המקורי ימחק:',
title: 'תביות תוכן'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'hi', {
button: 'टॅम्प्लेट',
emptyListMsg: '(कोई टॅम्प्लेट डिफ़ाइन नहीं किया गया है)',
insertOption: 'मूल शब्दों को बदलें',
options: 'Template Options', // MISSING
selectPromptMsg: 'ऍडिटर में ओपन करने हेतु टॅम्प्लेट चुनें(वर्तमान कन्टॅन्ट सेव नहीं होंगे):',
title: 'कन्टेन्ट टॅम्प्लेट'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'hr', {
button: 'Predlošci',
emptyListMsg: '(Nema definiranih predložaka)',
insertOption: 'Zamijeni trenutne sadržaje',
options: 'Opcije predložaka',
selectPromptMsg: 'Molimo odaberite predložak koji želite otvoriti<br>(stvarni sadržaj će biti izgubljen):',
title: 'Predlošci sadržaja'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'hu', {
button: 'Sablonok',
emptyListMsg: '(Nincs sablon megadva)',
insertOption: 'Kicseréli a jelenlegi tartalmat',
options: 'Sablon opciók',
selectPromptMsg: 'Válassza ki melyik sablon nyíljon meg a szerkesztőben<br>(a jelenlegi tartalom elveszik):',
title: 'Elérhető sablonok'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'id', {
button: 'Contoh',
emptyListMsg: '(Tidak ada contoh didefinisikan)',
insertOption: 'Ganti konten sebenarnya',
options: 'Opsi Contoh',
selectPromptMsg: 'Mohon pilih contoh untuk dibuka di editor',
title: 'Contoh Konten'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'is', {
button: 'Sniðmát',
emptyListMsg: '(Ekkert sniðmát er skilgreint!)',
insertOption: 'Skipta út raunverulegu innihaldi',
options: 'Template Options', // MISSING
selectPromptMsg: 'Veldu sniðmát til að opna í ritlinum.<br>(Núverandi innihald víkur fyrir því!):',
title: 'Innihaldssniðmát'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'it', {
button: 'Modelli',
emptyListMsg: '(Nessun modello definito)',
insertOption: 'Cancella il contenuto corrente',
options: 'Opzioni del Modello',
selectPromptMsg: 'Seleziona il modello da aprire nell\'editor',
title: 'Contenuto dei modelli'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ja', {
button: 'テンプレート',
emptyListMsg: '(テンプレートが定義されていません)',
insertOption: '現在のエディタの内容と置き換えます',
options: 'テンプレートオプション',
selectPromptMsg: 'エディターで使用するテンプレートを選択してください。<br>(現在のエディタの内容は失われます):',
title: '内容テンプレート'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ka', {
button: 'თარგები',
emptyListMsg: '(თარგი არაა განსაზღვრული)',
insertOption: 'მიმდინარე შეგთავსის შეცვლა',
options: 'თარგების პარამეტრები',
selectPromptMsg: 'აირჩიეთ თარგი რედაქტორისთვის',
title: 'თარგები'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'km', {
button: 'ពុម្ព​គំរូ',
emptyListMsg: '(មិន​មាន​ពុម្ព​គំរូ​ត្រូវ​បាន​កំណត់)',
insertOption: 'ជំនួស​ក្នុង​មាតិកា​បច្ចុប្បន្ន',
options: 'ជម្រើស​ពុម្ព​គំរូ',
selectPromptMsg: 'សូម​រើស​ពុម្ព​គំរូ​ដើម្បី​បើក​ក្នុង​កម្មវិធី​សរសេរ​អត្ថបទ',
title: 'ពុម្ព​គំរូ​មាតិកា'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ko', {
button: '템플릿',
emptyListMsg: '(템플릿이 없습니다)',
insertOption: '현재 내용 바꾸기',
options: '템플릿 옵션',
selectPromptMsg: '에디터에서 사용할 템플릿을 선택하십시오',
title: '내용 템플릿'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ku', {
button: 'ڕووکار',
emptyListMsg: '(هیچ ڕووکارێك دیارینەکراوە)',
insertOption: 'لە شوێن دانانی ئەم پێکهاتانەی ئێستا',
options: 'هەڵبژاردەکانی ڕووکار',
selectPromptMsg: 'ڕووکارێك هەڵبژێره بۆ کردنەوەی له سەرنووسەر:',
title: 'پێکهاتەی ڕووکار'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'lt', {
button: 'Šablonai',
emptyListMsg: '(Šablonų sąrašas tuščias)',
insertOption: 'Pakeisti dabartinį turinį pasirinktu šablonu',
options: 'Template Options',
selectPromptMsg: 'Pasirinkite norimą šabloną<br>(<b>Dėmesio!</b> esamas turinys bus prarastas):',
title: 'Turinio šablonai'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'lv', {
button: 'Sagataves',
emptyListMsg: '(Nav norādītas sagataves)',
insertOption: 'Aizvietot pašreizējo saturu',
options: 'Sagataves uzstādījumi',
selectPromptMsg: 'Lūdzu, norādiet sagatavi, ko atvērt editorā<br>(patreizējie dati tiks zaudēti):',
title: 'Satura sagataves'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'mk', {
button: 'Templates', // MISSING
emptyListMsg: '(No templates defined)', // MISSING
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'Please select the template to open in the editor', // MISSING
title: 'Content Templates' // MISSING
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'mn', {
button: 'Загварууд',
emptyListMsg: '(Загвар тодорхойлогдоогүй байна)',
insertOption: 'Одоогийн агууллагыг дарж бичих',
options: 'Template Options', // MISSING
selectPromptMsg: 'Загварыг нээж editor-рүү сонгож оруулна уу<br />(Одоогийн агууллагыг устаж магадгүй):',
title: 'Загварын агуулга'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ms', {
button: 'Templat',
emptyListMsg: '(Tiada Templat Disimpan)',
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'Sila pilih templat untuk dibuka oleh editor<br>(kandungan sebenar akan hilang):',
title: 'Templat Kandungan'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'nb', {
button: 'Maler',
emptyListMsg: '(Ingen maler definert)',
insertOption: 'Erstatt gjeldende innhold',
options: 'Alternativer for mal',
selectPromptMsg: 'Velg malen du vil åpne i redigeringsverktøyet:',
title: 'Innholdsmaler'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'nl', {
button: 'Sjablonen',
emptyListMsg: '(Geen sjablonen gedefinieerd)',
insertOption: 'Vervang de huidige inhoud',
options: 'Template opties',
selectPromptMsg: 'Selecteer het sjabloon dat in de editor geopend moet worden (de actuele inhoud gaat verloren):',
title: 'Inhoud sjablonen'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'no', {
button: 'Maler',
emptyListMsg: '(Ingen maler definert)',
insertOption: 'Erstatt gjeldende innhold',
options: 'Alternativer for mal',
selectPromptMsg: 'Velg malen du vil åpne i redigeringsverktøyet:',
title: 'Innholdsmaler'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'oc', {
button: 'Modèls',
emptyListMsg: '(Cap de modèl pas disponible)',
insertOption: 'Remplaçar lo contengut actual',
options: 'Opcions dels modèls',
selectPromptMsg: 'Seleccionatz lo modèl de dobrir dins l\'editor',
title: 'Contengut dels modèls'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'pl', {
button: 'Szablony',
emptyListMsg: '(Brak zdefiniowanych szablonów)',
insertOption: 'Zastąp obecną zawartość',
options: 'Opcje szablonów',
selectPromptMsg: 'Wybierz szablon do otwarcia w edytorze<br>(obecna zawartość okna edytora zostanie utracona):',
title: 'Szablony zawartości'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'pt-br', {
button: 'Modelos de layout',
emptyListMsg: '(Não foram definidos modelos de layout)',
insertOption: 'Substituir o conteúdo atual',
options: 'Opções de Template',
selectPromptMsg: 'Selecione um modelo de layout para ser aberto no editor<br>(o conteúdo atual será perdido):',
title: 'Modelo de layout de conteúdo'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'pt', {
button: 'Temas',
emptyListMsg: '(Sem temas definidos)',
insertOption: 'Substituir conteúdos atuais',
options: 'Opções do modelo',
selectPromptMsg: 'Por favor, selecione o modelo a abrir no editor',
title: 'Conteúdo dos modelos'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ro', {
button: 'Template-uri (şabloane)',
emptyListMsg: '(Niciun template (şablon) definit)',
insertOption: 'Înlocuieşte cuprinsul actual',
options: 'Opțiuni șabloane',
selectPromptMsg: 'Vă rugăm selectaţi template-ul (şablonul) ce se va deschide în editor<br>(conţinutul actual va fi pierdut):',
title: 'Template-uri (şabloane) de conţinut'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ru', {
button: 'Шаблоны',
emptyListMsg: '(не определено ни одного шаблона)',
insertOption: 'Заменить текущее содержимое',
options: 'Параметры шаблона',
selectPromptMsg: 'Пожалуйста, выберите, какой шаблон следует открыть в редакторе',
title: 'Шаблоны содержимого'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'si', {
button: 'අච්චුව',
emptyListMsg: 'කිසිම අච්චුවක් කලින් තීරණය කර ',
insertOption: 'සත්‍ය අන්තර්ගතයන් ප්‍රතිස්ථාපනය කරන්න',
options: 'අච්චු ',
selectPromptMsg: 'කරුණාකර සංස්කරණය සදහා අච්චුවක් ',
title: 'අන්තර්ගත් අච්චුන්'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'sk', {
button: 'Šablóny',
emptyListMsg: '(Žiadne šablóny nedefinované)',
insertOption: 'Nahradiť aktuálny obsah',
options: 'Možnosti šablóny',
selectPromptMsg: 'Prosím vyberte šablónu na otvorenie v editore',
title: 'Šablóny obsahu'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'sl', {
button: 'Predloge',
emptyListMsg: '(Ni pripravljenih predlog)',
insertOption: 'Zamenjaj trenutno vsebino',
options: 'Možnosti Predloge',
selectPromptMsg: 'Izberite predlogo, ki jo želite odpreti v urejevalniku<br>(trenutna vsebina bo izgubljena):',
title: 'Vsebinske predloge'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'sq', {
button: 'Shabllonet',
emptyListMsg: '(Asnjë shabllon nuk është paradefinuar)',
insertOption: 'Zëvendëso përmbajtjen aktuale',
options: 'Opsionet e Shabllonit',
selectPromptMsg: 'Përzgjidhni shabllonin për të hapur tek redaktuesi',
title: 'Përmbajtja e Shabllonit'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'sr-latn', {
button: 'Obrasci',
emptyListMsg: '(Nema definisanih obrazaca)',
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'Molimo Vas da odaberete obrazac koji ce biti primenjen na stranicu (trenutni sadržaj ce biti obrisan):',
title: 'Obrasci za sadržaj'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'sr', {
button: 'Обрасци',
emptyListMsg: '(Нема дефинисаних образаца)',
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'Молимо Вас да одаберете образац који ће бити примењен на страницу (тренутни садржај ће бити обрисан):',
title: 'Обрасци за садржај'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'sv', {
button: 'Sidmallar',
emptyListMsg: '(Ingen mall är vald)',
insertOption: 'Ersätt aktuellt innehåll',
options: 'Inställningar för mall',
selectPromptMsg: 'Var god välj en mall att använda med editorn<br>(allt nuvarande innehåll raderas):',
title: 'Sidmallar'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'th', {
button: 'เทมเพลต',
emptyListMsg: '(ยังไม่มีการกำหนดเทมเพลต)',
insertOption: 'แทนที่เนื้อหาเว็บไซต์ที่เลือก',
options: 'ตัวเลือกเกี่ยวกับเทมเพลท',
selectPromptMsg: 'กรุณาเลือก เทมเพลต เพื่อนำไปแก้ไขในอีดิตเตอร์<br />(เนื้อหาส่วนนี้จะหายไป):',
title: 'เทมเพลตของส่วนเนื้อหาเว็บไซต์'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'tr', {
button: 'Şablonlar',
emptyListMsg: '(Belirli bir şablon seçilmedi)',
insertOption: 'Mevcut içerik ile değiştir',
options: 'Şablon Seçenekleri',
selectPromptMsg: 'Düzenleyicide açmak için lütfen bir şablon seçin.<br>(hali hazırdaki içerik kaybolacaktır.):',
title: 'İçerik Şablonları'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'tt', {
button: 'Шаблоннар',
emptyListMsg: '(Шаблоннар билгеләнмәгән)',
insertOption: 'Әлеге эчтәлекне алмаштыру',
options: 'Шаблон үзлекләре',
selectPromptMsg: 'Please select the template to open in the editor', // MISSING
title: 'Эчтәлек шаблоннары'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ug', {
button: 'قېلىپ',
emptyListMsg: '(قېلىپ يوق)',
insertOption: 'نۆۋەتتىكى مەزمۇننى ئالماشتۇر',
options: 'قېلىپ تاللانمىسى',
selectPromptMsg: 'تەھرىرلىگۈچنىڭ مەزمۇن قېلىپىنى تاللاڭ:',
title: 'مەزمۇن قېلىپى'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'uk', {
button: 'Шаблони',
emptyListMsg: '(Не знайдено жодного шаблону)',
insertOption: 'Замінити поточний вміст',
options: 'Опції шаблону',
selectPromptMsg: 'Оберіть, будь ласка, шаблон для відкриття в редакторі<br>(поточний зміст буде втрачено):',
title: 'Шаблони змісту'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'vi', {
button: 'Mẫu dựng sẵn',
emptyListMsg: '(Không có mẫu dựng sẵn nào được định nghĩa)',
insertOption: 'Thay thế nội dung hiện tại',
options: 'Tùy chọn mẫu dựng sẵn',
selectPromptMsg: 'Hãy chọn mẫu dựng sẵn để mở trong trình biên tập<br>(nội dung hiện tại sẽ bị mất):',
title: 'Nội dung Mẫu dựng sẵn'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'zh-cn', {
button: '模板',
emptyListMsg: '(没有模板)',
insertOption: '替换当前内容',
options: '模板选项',
selectPromptMsg: '请选择要在编辑器中使用的模板:',
title: '内容模板'
} );

View File

@@ -0,0 +1,12 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'zh', {
button: '範本',
emptyListMsg: '(尚未定義任何範本)',
insertOption: '替代實際內容',
options: '範本選項',
selectPromptMsg: '請選擇要在編輯器中開啟的範本。',
title: '內容範本'
} );

View File

@@ -0,0 +1,93 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
CKEDITOR.plugins.add( 'templates', {
requires: 'dialog',
// jscs:disable maximumLineLength
lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
// jscs:enable maximumLineLength
icons: 'templates,templates-rtl', // %REMOVE_LINE_CORE%
hidpi: true, // %REMOVE_LINE_CORE%
init: function( editor ) {
CKEDITOR.dialog.add( 'templates', CKEDITOR.getUrl( this.path + 'dialogs/templates.js' ) );
editor.addCommand( 'templates', new CKEDITOR.dialogCommand( 'templates' ) );
editor.ui.addButton && editor.ui.addButton( 'Templates', {
label: editor.lang.templates.button,
command: 'templates',
toolbar: 'doctools,10'
} );
}
} );
var templates = {},
loadedTemplatesFiles = {};
CKEDITOR.addTemplates = function( name, definition ) {
templates[ name ] = definition;
};
CKEDITOR.getTemplates = function( name ) {
return templates[ name ];
};
CKEDITOR.loadTemplates = function( templateFiles, callback ) {
// Holds the templates files to be loaded.
var toLoad = [];
// Look for pending template files to get loaded.
for ( var i = 0, count = templateFiles.length; i < count; i++ ) {
if ( !loadedTemplatesFiles[ templateFiles[ i ] ] ) {
toLoad.push( templateFiles[ i ] );
loadedTemplatesFiles[ templateFiles[ i ] ] = 1;
}
}
if ( toLoad.length )
CKEDITOR.scriptLoader.load( toLoad, callback );
else
setTimeout( callback, 0 );
};
} )();
/**
* The templates definition set to use. It accepts a list of names separated by
* comma. It must match definitions loaded with the {@link #templates_files} setting.
*
* config.templates = 'my_templates';
*
* @cfg {String} [templates='default']
* @member CKEDITOR.config
*/
/**
* The list of templates definition files to load.
*
* config.templates_files = [
* '/editor_templates/site_default.js',
* 'http://www.example.com/user_templates.js'
* ];
*
* @cfg
* @member CKEDITOR.config
*/
CKEDITOR.config.templates_files = [
CKEDITOR.getUrl( 'plugins/templates/templates/default.js' )
];
/**
* Whether the "Replace actual contents" checkbox is checked by default in the
* Templates dialog.
*
* config.templates_replaceContent = false;
*
* @cfg
* @member CKEDITOR.config
*/
CKEDITOR.config.templates_replaceContent = true;

View File

@@ -0,0 +1,87 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
// Register a templates definition set named "default".
CKEDITOR.addTemplates( 'default', {
// The name of sub folder which hold the shortcut preview images of the
// templates.
imagesPath: CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
// The templates definitions.
templates: [ {
title: 'Image and Title',
image: 'template1.gif',
description: 'One main image with a title and text that surround the image.',
html: '<h3>' +
// Use src=" " so image is not filtered out by the editor as incorrect (src is required).
'<img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />' +
'Type the title here' +
'</h3>' +
'<p>' +
'Type the text here' +
'</p>'
},
{
title: 'Strange Template',
image: 'template2.gif',
description: 'A template that defines two columns, each one with a title, and some text.',
html: '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +
'<tr>' +
'<td style="width:50%">' +
'<h3>Title 1</h3>' +
'</td>' +
'<td></td>' +
'<td style="width:50%">' +
'<h3>Title 2</h3>' +
'</td>' +
'</tr>' +
'<tr>' +
'<td>' +
'Text 1' +
'</td>' +
'<td></td>' +
'<td>' +
'Text 2' +
'</td>' +
'</tr>' +
'</table>' +
'<p>' +
'More text goes here.' +
'</p>'
},
{
title: 'Text and Table',
image: 'template3.gif',
description: 'A title with some text and a table.',
html: '<div style="width: 80%">' +
'<h3>' +
'Title goes here' +
'</h3>' +
'<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +
'<caption style="border:solid 1px black">' +
'<strong>Table title</strong>' +
'</caption>' +
'<tr>' +
'<td>&nbsp;</td>' +
'<td>&nbsp;</td>' +
'<td>&nbsp;</td>' +
'</tr>' +
'<tr>' +
'<td>&nbsp;</td>' +
'<td>&nbsp;</td>' +
'<td>&nbsp;</td>' +
'</tr>' +
'<tr>' +
'<td>&nbsp;</td>' +
'<td>&nbsp;</td>' +
'<td>&nbsp;</td>' +
'</tr>' +
'</table>' +
'<p>' +
'Type the text here' +
'</p>' +
'</div>'
} ]
} );

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B