2
0
forked from Wavyzz/dolibarr

New: Update ckeditor to version 4 (part 1)

This commit is contained in:
Laurent Destailleur
2014-03-08 12:11:01 +01:00
parent 32c81588b0
commit c65d681d87
4418 changed files with 147049 additions and 127332 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'af', {
toolbar: 'Selekteer alles'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ar', {
toolbar: 'تحديد الكل'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'bg', {
toolbar: 'Избери всичко'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'bn', {
toolbar: 'সব সিলেক্ট কর'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'bs', {
toolbar: 'Selektuj sve'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ca', {
toolbar: 'Selecciona-ho tot'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'cs', {
toolbar: 'Vybrat vše'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'cy', {
toolbar: 'Dewis Popeth'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'da', {
toolbar: 'Vælg alt'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'de', {
toolbar: 'Alles auswählen'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'el', {
toolbar: 'Επιλογή όλων'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'en-au', {
toolbar: 'Select All'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'en-ca', {
toolbar: 'Select All'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'en-gb', {
toolbar: 'Select All'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'en', {
toolbar: 'Select All'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'eo', {
toolbar: 'Elekti ĉion'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'es', {
toolbar: 'Seleccionar Todo'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'et', {
toolbar: 'Kõige valimine'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'eu', {
toolbar: 'Hautatu dena'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'fa', {
toolbar: 'گزینش همه'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'fi', {
toolbar: 'Valitse kaikki'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'fo', {
toolbar: 'Markera alt'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'fr-ca', {
toolbar: 'Sélectionner tout'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'fr', {
toolbar: 'Tout sélectionner'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'gl', {
toolbar: 'Seleccionar todo'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'gu', {
toolbar: 'બઘું પસંદ કરવું'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'he', {
toolbar: 'בחירת הכל'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'hi', {
toolbar: 'सब सॅलॅक्ट करें'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'hr', {
toolbar: 'Odaberi sve'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'hu', {
toolbar: 'Mindent kijelöl'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'id', {
toolbar: 'Pilih Semua'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'is', {
toolbar: 'Velja allt'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'it', {
toolbar: 'Seleziona tutto'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ja', {
toolbar: 'すべて選択'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ka', {
toolbar: 'ყველაფრის მონიშნვა'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'km', {
toolbar: 'រើស​ទាំង​អស់'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ko', {
toolbar: '전체선택'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ku', {
toolbar: 'دیاریکردنی هەمووی'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'lt', {
toolbar: 'Pažymėti viską'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'lv', {
toolbar: 'Iezīmēt visu'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'mk', {
toolbar: 'Select All' // MISSING
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'mn', {
toolbar: 'Бүгдийг нь сонгох'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ms', {
toolbar: 'Pilih Semua'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'nb', {
toolbar: 'Merk alt'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'nl', {
toolbar: 'Alles selecteren'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'no', {
toolbar: 'Merk alt'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'pl', {
toolbar: 'Zaznacz wszystko'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'pt-br', {
toolbar: 'Selecionar Tudo'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'pt', {
toolbar: 'Selecionar Tudo'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ro', {
toolbar: 'Selectează tot'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ru', {
toolbar: 'Выделить все'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'si', {
toolbar: 'සියල්ලම '
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'sk', {
toolbar: 'Vybrať všetko'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'sl', {
toolbar: 'Izberi vse'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'sq', {
toolbar: 'Përzgjidh të Gjitha'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'sr-latn', {
toolbar: 'Označi sve'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'sr', {
toolbar: 'Означи све'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'sv', {
toolbar: 'Markera allt'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'th', {
toolbar: 'เลือกทั้งหมด'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'tr', {
toolbar: 'Tümünü Seç'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'ug', {
toolbar: 'ھەممىنى تاللا'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'uk', {
toolbar: 'Виділити все'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'vi', {
toolbar: 'Chọn tất cả'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'zh-cn', {
toolbar: '全选'
} );

View File

@@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'zh', {
toolbar: '全選'
} );

View File

@@ -0,0 +1,58 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview The "selectall" plugin provides an editor command that
* allows selecting the entire content of editable area.
* This plugin also enables a toolbar button for the feature.
*/
( function() {
CKEDITOR.plugins.add( 'selectall', {
lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,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,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
icons: 'selectall', // %REMOVE_LINE_CORE%
hidpi: true, // %REMOVE_LINE_CORE%
init: function( editor ) {
editor.addCommand( 'selectAll', { modes: { wysiwyg: 1, source: 1 },
exec: function( editor ) {
var editable = editor.editable();
if ( editable.is( 'textarea' ) ) {
var textarea = editable.$;
if ( CKEDITOR.env.ie )
textarea.createTextRange().execCommand( 'SelectAll' );
else {
textarea.selectionStart = 0;
textarea.selectionEnd = textarea.value.length;
}
textarea.focus();
} else {
if ( editable.is( 'body' ) )
editor.document.$.execCommand( 'SelectAll', false, null );
else {
var range = editor.createRange();
range.selectNodeContents( editable );
range.select();
}
// Force triggering selectionChange (#7008)
editor.forceNextSelectionCheck();
editor.selectionChange();
}
},
canUndo: false
} );
editor.ui.addButton && editor.ui.addButton( 'SelectAll', {
label: editor.lang.selectall.toolbar,
command: 'selectAll',
toolbar: 'selection,10'
} );
}
} );
} )();