New: Update ckeditor to version 4 (part 1)
|
After Width: | Height: | Size: 813 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 708 B |
|
After Width: | Height: | Size: 879 B |
|
After Width: | Height: | Size: 806 B |
|
After Width: | Height: | Size: 859 B |
|
After Width: | Height: | Size: 747 B |
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'af', {
|
||||
bold: 'Vet',
|
||||
italic: 'Skuins',
|
||||
strike: 'Deurstreep',
|
||||
subscript: 'Onderskrif',
|
||||
superscript: 'Bo-skrif',
|
||||
underline: 'Onderstreep'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ar', {
|
||||
bold: 'عريض',
|
||||
italic: 'مائل',
|
||||
strike: 'يتوسطه خط',
|
||||
subscript: 'منخفض',
|
||||
superscript: 'مرتفع',
|
||||
underline: 'تسطير'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'bg', {
|
||||
bold: 'Удебелен',
|
||||
italic: 'Наклонен',
|
||||
strike: 'Зачертан текст',
|
||||
subscript: 'Индексиран текст',
|
||||
superscript: 'Суперскрипт',
|
||||
underline: 'Подчертан'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'bn', {
|
||||
bold: 'বোল্ড',
|
||||
italic: 'ইটালিক',
|
||||
strike: 'স্ট্রাইক থ্রু',
|
||||
subscript: 'অধোলেখ',
|
||||
superscript: 'অভিলেখ',
|
||||
underline: 'আন্ডারলাইন'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'bs', {
|
||||
bold: 'Boldiraj',
|
||||
italic: 'Ukosi',
|
||||
strike: 'Precrtaj',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Podvuci'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ca', {
|
||||
bold: 'Negreta',
|
||||
italic: 'Cursiva',
|
||||
strike: 'Ratllat',
|
||||
subscript: 'Subíndex',
|
||||
superscript: 'Superíndex',
|
||||
underline: 'Subratllat'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'cs', {
|
||||
bold: 'Tučné',
|
||||
italic: 'Kurzíva',
|
||||
strike: 'Přeškrtnuté',
|
||||
subscript: 'Dolní index',
|
||||
superscript: 'Horní index',
|
||||
underline: 'Podtržené'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'cy', {
|
||||
bold: 'Bras',
|
||||
italic: 'Italig',
|
||||
strike: 'Llinell Trwyddo',
|
||||
subscript: 'Is-sgript',
|
||||
superscript: 'Uwchsgript',
|
||||
underline: 'Tanlinellu'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'da', {
|
||||
bold: 'Fed',
|
||||
italic: 'Kursiv',
|
||||
strike: 'Gennemstreget',
|
||||
subscript: 'Sænket skrift',
|
||||
superscript: 'Hævet skrift',
|
||||
underline: 'Understreget'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'de', {
|
||||
bold: 'Fett',
|
||||
italic: 'Kursiv',
|
||||
strike: 'Durchgestrichen',
|
||||
subscript: 'Tiefgestellt',
|
||||
superscript: 'Hochgestellt',
|
||||
underline: 'Unterstrichen'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'el', {
|
||||
bold: 'Έντονη',
|
||||
italic: 'Πλάγια',
|
||||
strike: 'Διακριτή Διαγραφή',
|
||||
subscript: 'Δείκτης',
|
||||
superscript: 'Εκθέτης',
|
||||
underline: 'Υπογράμμιση'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'en-au', {
|
||||
bold: 'Bold',
|
||||
italic: 'Italic',
|
||||
strike: 'Strike Through',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Underline'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'en-ca', {
|
||||
bold: 'Bold',
|
||||
italic: 'Italic',
|
||||
strike: 'Strike Through',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Underline'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'en-gb', {
|
||||
bold: 'Bold',
|
||||
italic: 'Italic',
|
||||
strike: 'Strike Through',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Underline'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'en', {
|
||||
bold: 'Bold',
|
||||
italic: 'Italic',
|
||||
strike: 'Strike Through',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Underline'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'eo', {
|
||||
bold: 'Grasa',
|
||||
italic: 'Kursiva',
|
||||
strike: 'Trastreko',
|
||||
subscript: 'Suba indico',
|
||||
superscript: 'Supra indico',
|
||||
underline: 'Substreko'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'es', {
|
||||
bold: 'Negrita',
|
||||
italic: 'Cursiva',
|
||||
strike: 'Tachado',
|
||||
subscript: 'Subíndice',
|
||||
superscript: 'Superíndice',
|
||||
underline: 'Subrayado'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'et', {
|
||||
bold: 'Paks',
|
||||
italic: 'Kursiiv',
|
||||
strike: 'Läbijoonitud',
|
||||
subscript: 'Allindeks',
|
||||
superscript: 'Ülaindeks',
|
||||
underline: 'Allajoonitud'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'eu', {
|
||||
bold: 'Lodia',
|
||||
italic: 'Etzana',
|
||||
strike: 'Marratua',
|
||||
subscript: 'Azpi-indize',
|
||||
superscript: 'Goi-indize',
|
||||
underline: 'Azpimarratu'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'fa', {
|
||||
bold: 'درشت',
|
||||
italic: 'خمیده',
|
||||
strike: 'میانخط',
|
||||
subscript: 'زیرنویس',
|
||||
superscript: 'بالانویس',
|
||||
underline: 'زیرخطدار'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'fi', {
|
||||
bold: 'Lihavoitu',
|
||||
italic: 'Kursivoitu',
|
||||
strike: 'Yliviivattu',
|
||||
subscript: 'Alaindeksi',
|
||||
superscript: 'Yläindeksi',
|
||||
underline: 'Alleviivattu'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'fo', {
|
||||
bold: 'Feit skrift',
|
||||
italic: 'Skráskrift',
|
||||
strike: 'Yvirstrikað',
|
||||
subscript: 'Lækkað skrift',
|
||||
superscript: 'Hækkað skrift',
|
||||
underline: 'Undirstrikað'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'fr-ca', {
|
||||
bold: 'Gras',
|
||||
italic: 'Italique',
|
||||
strike: 'Barré',
|
||||
subscript: 'Indice',
|
||||
superscript: 'Exposant',
|
||||
underline: 'Souligné'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'fr', {
|
||||
bold: 'Gras',
|
||||
italic: 'Italique',
|
||||
strike: 'Barré',
|
||||
subscript: 'Indice',
|
||||
superscript: 'Exposant',
|
||||
underline: 'Souligné'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'gl', {
|
||||
bold: 'Negra',
|
||||
italic: 'Cursiva',
|
||||
strike: 'Riscado',
|
||||
subscript: 'Subíndice',
|
||||
superscript: 'Superíndice',
|
||||
underline: 'Subliñado'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'gu', {
|
||||
bold: 'બોલ્ડ/સ્પષ્ટ',
|
||||
italic: 'ઇટેલિક, ત્રાંસા',
|
||||
strike: 'છેકી નાખવું',
|
||||
subscript: 'એક ચિહ્નની નીચે કરેલું બીજું ચિહ્ન',
|
||||
superscript: 'એક ચિહ્ન ઉપર કરેલું બીજું ચિહ્ન.',
|
||||
underline: 'અન્ડર્લાઇન, નીચે લીટી'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'he', {
|
||||
bold: 'מודגש',
|
||||
italic: 'נטוי',
|
||||
strike: 'כתיב מחוק',
|
||||
subscript: 'כתיב תחתון',
|
||||
superscript: 'כתיב עליון',
|
||||
underline: 'קו תחתון'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'hi', {
|
||||
bold: 'बोल्ड',
|
||||
italic: 'इटैलिक',
|
||||
strike: 'स्ट्राइक थ्रू',
|
||||
subscript: 'अधोलेख',
|
||||
superscript: 'अभिलेख',
|
||||
underline: 'रेखांकण'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'hr', {
|
||||
bold: 'Podebljaj',
|
||||
italic: 'Ukosi',
|
||||
strike: 'Precrtano',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Potcrtano'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'hu', {
|
||||
bold: 'Félkövér',
|
||||
italic: 'Dőlt',
|
||||
strike: 'Áthúzott',
|
||||
subscript: 'Alsó index',
|
||||
superscript: 'Felső index',
|
||||
underline: 'Aláhúzott'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'id', {
|
||||
bold: 'Huruf Tebal',
|
||||
italic: 'Huruf Miring',
|
||||
strike: 'Strike Through', // MISSING
|
||||
subscript: 'Subscript', // MISSING
|
||||
superscript: 'Superscript', // MISSING
|
||||
underline: 'Garis Bawah'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'is', {
|
||||
bold: 'Feitletrað',
|
||||
italic: 'Skáletrað',
|
||||
strike: 'Yfirstrikað',
|
||||
subscript: 'Niðurskrifað',
|
||||
superscript: 'Uppskrifað',
|
||||
underline: 'Undirstrikað'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'it', {
|
||||
bold: 'Grassetto',
|
||||
italic: 'Corsivo',
|
||||
strike: 'Barrato',
|
||||
subscript: 'Pedice',
|
||||
superscript: 'Apice',
|
||||
underline: 'Sottolineato'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ja', {
|
||||
bold: '太字',
|
||||
italic: '斜体',
|
||||
strike: '打ち消し線',
|
||||
subscript: '下付き',
|
||||
superscript: '上付き',
|
||||
underline: '下線'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ka', {
|
||||
bold: 'მსხვილი',
|
||||
italic: 'დახრილი',
|
||||
strike: 'გადახაზული',
|
||||
subscript: 'ინდექსი',
|
||||
superscript: 'ხარისხი',
|
||||
underline: 'გახაზული'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'km', {
|
||||
bold: 'ដិត',
|
||||
italic: 'ទ្រេត',
|
||||
strike: 'គូសបន្ទាត់ចំកណ្ដាល',
|
||||
subscript: 'អក្សរតូចក្រោម',
|
||||
superscript: 'អក្សរតូចលើ',
|
||||
underline: 'គូសបន្ទាត់ក្រោម'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ko', {
|
||||
bold: '진하게',
|
||||
italic: '이텔릭',
|
||||
strike: '취소선',
|
||||
subscript: '아래 첨자',
|
||||
superscript: '위 첨자',
|
||||
underline: '밑줄'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ku', {
|
||||
bold: 'قەڵەو',
|
||||
italic: 'لار',
|
||||
strike: 'لێدان',
|
||||
subscript: 'ژێرنووس',
|
||||
superscript: 'سەرنووس',
|
||||
underline: 'ژێرهێڵ'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'lt', {
|
||||
bold: 'Pusjuodis',
|
||||
italic: 'Kursyvas',
|
||||
strike: 'Perbrauktas',
|
||||
subscript: 'Apatinis indeksas',
|
||||
superscript: 'Viršutinis indeksas',
|
||||
underline: 'Pabrauktas'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'lv', {
|
||||
bold: 'Treknināts',
|
||||
italic: 'Kursīvs',
|
||||
strike: 'Pārsvītrots',
|
||||
subscript: 'Apakšrakstā',
|
||||
superscript: 'Augšrakstā',
|
||||
underline: 'Pasvītrots'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'mk', {
|
||||
bold: 'Bold', // MISSING
|
||||
italic: 'Italic', // MISSING
|
||||
strike: 'Strike Through', // MISSING
|
||||
subscript: 'Subscript', // MISSING
|
||||
superscript: 'Superscript', // MISSING
|
||||
underline: 'Underline' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'mn', {
|
||||
bold: 'Тод бүдүүн',
|
||||
italic: 'Налуу',
|
||||
strike: 'Дундуур нь зураастай болгох',
|
||||
subscript: 'Суурь болгох',
|
||||
superscript: 'Зэрэг болгох',
|
||||
underline: 'Доогуур нь зураастай болгох'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ms', {
|
||||
bold: 'Bold',
|
||||
italic: 'Italic',
|
||||
strike: 'Strike Through',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Underline'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'nb', {
|
||||
bold: 'Fet',
|
||||
italic: 'Kursiv',
|
||||
strike: 'Gjennomstreking',
|
||||
subscript: 'Senket skrift',
|
||||
superscript: 'Hevet skrift',
|
||||
underline: 'Understreking'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'nl', {
|
||||
bold: 'Vet',
|
||||
italic: 'Cursief',
|
||||
strike: 'Doorhalen',
|
||||
subscript: 'Subscript',
|
||||
superscript: 'Superscript',
|
||||
underline: 'Onderstrepen'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'no', {
|
||||
bold: 'Fet',
|
||||
italic: 'Kursiv',
|
||||
strike: 'Gjennomstreking',
|
||||
subscript: 'Senket skrift',
|
||||
superscript: 'Hevet skrift',
|
||||
underline: 'Understreking'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'pl', {
|
||||
bold: 'Pogrubienie',
|
||||
italic: 'Kursywa',
|
||||
strike: 'Przekreślenie',
|
||||
subscript: 'Indeks dolny',
|
||||
superscript: 'Indeks górny',
|
||||
underline: 'Podkreślenie'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'pt-br', {
|
||||
bold: 'Negrito',
|
||||
italic: 'Itálico',
|
||||
strike: 'Tachado',
|
||||
subscript: 'Subscrito',
|
||||
superscript: 'Sobrescrito',
|
||||
underline: 'Sublinhado'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'pt', {
|
||||
bold: 'Negrito',
|
||||
italic: 'Itálico',
|
||||
strike: 'Rasurado',
|
||||
subscript: 'Superior à Linha',
|
||||
superscript: 'Inferior à Linha',
|
||||
underline: 'Sublinhado'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ro', {
|
||||
bold: 'Îngroşat (bold)',
|
||||
italic: 'Înclinat (italic)',
|
||||
strike: 'Tăiat (strike through)',
|
||||
subscript: 'Indice (subscript)',
|
||||
superscript: 'Putere (superscript)',
|
||||
underline: 'Subliniat (underline)'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ru', {
|
||||
bold: 'Полужирный',
|
||||
italic: 'Курсив',
|
||||
strike: 'Зачеркнутый',
|
||||
subscript: 'Подстрочный индекс',
|
||||
superscript: 'Надстрочный индекс',
|
||||
underline: 'Подчеркнутый'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'si', {
|
||||
bold: 'තද අකුරින් ලියනලද',
|
||||
italic: 'බැධීඅකුරින් ලියන ලද',
|
||||
strike: 'Strike Through', // MISSING
|
||||
subscript: 'Subscript', // MISSING
|
||||
superscript: 'Superscript', // MISSING
|
||||
underline: 'යටින් ඉරි අදින ලද'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'sk', {
|
||||
bold: 'Tučné',
|
||||
italic: 'Kurzíva',
|
||||
strike: 'Prečiarknuté',
|
||||
subscript: 'Dolný index',
|
||||
superscript: 'Horný index',
|
||||
underline: 'Podčiarknuté'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'sl', {
|
||||
bold: 'Krepko',
|
||||
italic: 'Ležeče',
|
||||
strike: 'Prečrtano',
|
||||
subscript: 'Podpisano',
|
||||
superscript: 'Nadpisano',
|
||||
underline: 'Podčrtano'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'sq', {
|
||||
bold: 'Trash',
|
||||
italic: 'Pjerrët',
|
||||
strike: 'Nëpërmes',
|
||||
subscript: 'Nën-skriptë',
|
||||
superscript: 'Super-skriptë',
|
||||
underline: 'Nënvijëzuar'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'sr-latn', {
|
||||
bold: 'Podebljano',
|
||||
italic: 'Kurziv',
|
||||
strike: 'Precrtano',
|
||||
subscript: 'Indeks',
|
||||
superscript: 'Stepen',
|
||||
underline: 'Podvučeno'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'sr', {
|
||||
bold: 'Подебљано',
|
||||
italic: 'Курзив',
|
||||
strike: 'Прецртано',
|
||||
subscript: 'Индекс',
|
||||
superscript: 'Степен',
|
||||
underline: 'Подвучено'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'sv', {
|
||||
bold: 'Fet',
|
||||
italic: 'Kursiv',
|
||||
strike: 'Genomstruken',
|
||||
subscript: 'Nedsänkta tecken',
|
||||
superscript: 'Upphöjda tecken',
|
||||
underline: 'Understruken'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'th', {
|
||||
bold: 'ตัวหนา',
|
||||
italic: 'ตัวเอียง',
|
||||
strike: 'ตัวขีดเส้นทับ',
|
||||
subscript: 'ตัวห้อย',
|
||||
superscript: 'ตัวยก',
|
||||
underline: 'ตัวขีดเส้นใต้'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'tr', {
|
||||
bold: 'Kalın',
|
||||
italic: 'İtalik',
|
||||
strike: 'Üstü Çizgili',
|
||||
subscript: 'Alt Simge',
|
||||
superscript: 'Üst Simge',
|
||||
underline: 'Altı Çizgili'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'ug', {
|
||||
bold: 'توم',
|
||||
italic: 'يانتۇ',
|
||||
strike: 'ئۆچۈرۈش سىزىقى',
|
||||
subscript: 'تۆۋەن ئىندېكس',
|
||||
superscript: 'يۇقىرى ئىندېكس',
|
||||
underline: 'ئاستى سىزىق'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'uk', {
|
||||
bold: 'Жирний',
|
||||
italic: 'Курсив',
|
||||
strike: 'Закреслений',
|
||||
subscript: 'Нижній індекс',
|
||||
superscript: 'Верхній індекс',
|
||||
underline: 'Підкреслений'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'vi', {
|
||||
bold: 'Đậm',
|
||||
italic: 'Nghiêng',
|
||||
strike: 'Gạch xuyên ngang',
|
||||
subscript: 'Chỉ số dưới',
|
||||
superscript: 'Chỉ số trên',
|
||||
underline: 'Gạch chân'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'zh-cn', {
|
||||
bold: '加粗',
|
||||
italic: '倾斜',
|
||||
strike: '删除线',
|
||||
subscript: '下标',
|
||||
superscript: '上标',
|
||||
underline: '下划线'
|
||||
} );
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'basicstyles', 'zh', {
|
||||
bold: '粗體',
|
||||
italic: '斜體',
|
||||
strike: '刪除線',
|
||||
subscript: '下標',
|
||||
superscript: '上標',
|
||||
underline: '底線'
|
||||
} );
|
||||
@@ -1,129 +1,189 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.add( 'basicstyles',
|
||||
{
|
||||
requires : [ 'styles', 'button' ],
|
||||
|
||||
init : function( editor )
|
||||
{
|
||||
// All buttons use the same code to register. So, to avoid
|
||||
// duplications, let's use this tool function.
|
||||
var addButtonCommand = function( buttonName, buttonLabel, commandName, styleDefiniton )
|
||||
{
|
||||
var style = new CKEDITOR.style( styleDefiniton );
|
||||
|
||||
editor.attachStyleStateChange( style, function( state )
|
||||
{
|
||||
!editor.readOnly && editor.getCommand( commandName ).setState( state );
|
||||
});
|
||||
|
||||
editor.addCommand( commandName, new CKEDITOR.styleCommand( style ) );
|
||||
|
||||
editor.ui.addButton( buttonName,
|
||||
{
|
||||
label : buttonLabel,
|
||||
command : commandName
|
||||
});
|
||||
};
|
||||
|
||||
var config = editor.config,
|
||||
lang = editor.lang;
|
||||
|
||||
addButtonCommand( 'Bold' , lang.bold , 'bold' , config.coreStyles_bold );
|
||||
addButtonCommand( 'Italic' , lang.italic , 'italic' , config.coreStyles_italic );
|
||||
addButtonCommand( 'Underline' , lang.underline , 'underline' , config.coreStyles_underline );
|
||||
addButtonCommand( 'Strike' , lang.strike , 'strike' , config.coreStyles_strike );
|
||||
addButtonCommand( 'Subscript' , lang.subscript , 'subscript' , config.coreStyles_subscript );
|
||||
addButtonCommand( 'Superscript' , lang.superscript , 'superscript' , config.coreStyles_superscript );
|
||||
}
|
||||
});
|
||||
|
||||
// Basic Inline Styles.
|
||||
|
||||
/**
|
||||
* The style definition that applies the <strong>bold</strong> style to the text.
|
||||
* @type Object
|
||||
* @default <code>{ element : 'strong', overrides : 'b' }</code>
|
||||
* @example
|
||||
* config.coreStyles_bold = { element : 'b', overrides : 'strong' };
|
||||
* @example
|
||||
* config.coreStyles_bold =
|
||||
* {
|
||||
* element : 'span',
|
||||
* attributes : { 'class' : 'Bold' }
|
||||
* };
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_bold = { element : 'strong', overrides : 'b' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the <em>italics</em> style to the text.
|
||||
* @type Object
|
||||
* @default <code>{ element : 'em', overrides : 'i' }</code>
|
||||
* @example
|
||||
* config.coreStyles_italic = { element : 'i', overrides : 'em' };
|
||||
* @example
|
||||
* CKEDITOR.config.coreStyles_italic =
|
||||
* {
|
||||
* element : 'span',
|
||||
* attributes : { 'class' : 'Italic' }
|
||||
* };
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_italic = { element : 'em', overrides : 'i' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the <u>underline</u> style to the text.
|
||||
* @type Object
|
||||
* @default <code>{ element : 'u' }</code>
|
||||
* @example
|
||||
* CKEDITOR.config.coreStyles_underline =
|
||||
* {
|
||||
* element : 'span',
|
||||
* attributes : { 'class' : 'Underline' }
|
||||
* };
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_underline = { element : 'u' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the <strike>strike-through</strike> style to the text.
|
||||
* @type Object
|
||||
* @default <code>{ element : 'strike' }</code>
|
||||
* @example
|
||||
* CKEDITOR.config.coreStyles_strike =
|
||||
* {
|
||||
* element : 'span',
|
||||
* attributes : { 'class' : 'StrikeThrough' },
|
||||
* overrides : 'strike'
|
||||
* };
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_strike = { element : 'strike' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the subscript style to the text.
|
||||
* @type Object
|
||||
* @default <code>{ element : 'sub' }</code>
|
||||
* @example
|
||||
* CKEDITOR.config.coreStyles_subscript =
|
||||
* {
|
||||
* element : 'span',
|
||||
* attributes : { 'class' : 'Subscript' },
|
||||
* overrides : 'sub'
|
||||
* };
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_subscript = { element : 'sub' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the superscript style to the text.
|
||||
* @type Object
|
||||
* @default <code>{ element : 'sup' }</code>
|
||||
* @example
|
||||
* CKEDITOR.config.coreStyles_superscript =
|
||||
* {
|
||||
* element : 'span',
|
||||
* attributes : { 'class' : 'Superscript' },
|
||||
* overrides : 'sup'
|
||||
* };
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_superscript = { element : 'sup' };
|
||||
/**
|
||||
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.plugins.add( 'basicstyles', {
|
||||
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: 'bold,italic,underline,strike,subscript,superscript', // %REMOVE_LINE_CORE%
|
||||
hidpi: true, // %REMOVE_LINE_CORE%
|
||||
init: function( editor ) {
|
||||
var order = 0;
|
||||
// All buttons use the same code to register. So, to avoid
|
||||
// duplications, let's use this tool function.
|
||||
var addButtonCommand = function( buttonName, buttonLabel, commandName, styleDefiniton ) {
|
||||
// Disable the command if no definition is configured.
|
||||
if ( !styleDefiniton )
|
||||
return;
|
||||
|
||||
var style = new CKEDITOR.style( styleDefiniton ),
|
||||
forms = contentForms[ commandName ];
|
||||
|
||||
// Put the style as the most important form.
|
||||
forms.unshift( style );
|
||||
|
||||
// Listen to contextual style activation.
|
||||
editor.attachStyleStateChange( style, function( state ) {
|
||||
!editor.readOnly && editor.getCommand( commandName ).setState( state );
|
||||
} );
|
||||
|
||||
// Create the command that can be used to apply the style.
|
||||
editor.addCommand( commandName, new CKEDITOR.styleCommand( style, {
|
||||
contentForms: forms
|
||||
} ) );
|
||||
|
||||
// Register the button, if the button plugin is loaded.
|
||||
if ( editor.ui.addButton ) {
|
||||
editor.ui.addButton( buttonName, {
|
||||
label: buttonLabel,
|
||||
command: commandName,
|
||||
toolbar: 'basicstyles,' + ( order += 10 )
|
||||
} );
|
||||
}
|
||||
};
|
||||
|
||||
var contentForms = {
|
||||
bold: [
|
||||
'strong',
|
||||
'b',
|
||||
[ 'span', function( el ) {
|
||||
var fw = el.styles[ 'font-weight' ];
|
||||
return fw == 'bold' || +fw >= 700;
|
||||
} ]
|
||||
],
|
||||
|
||||
italic: [
|
||||
'em',
|
||||
'i',
|
||||
[ 'span', function( el ) {
|
||||
return el.styles[ 'font-style' ] == 'italic';
|
||||
} ]
|
||||
],
|
||||
|
||||
underline: [
|
||||
'u',
|
||||
[ 'span', function( el ) {
|
||||
return el.styles[ 'text-decoration' ] == 'underline';
|
||||
} ]
|
||||
],
|
||||
|
||||
strike: [
|
||||
's',
|
||||
'strike',
|
||||
[ 'span', function( el ) {
|
||||
return el.styles[ 'text-decoration' ] == 'line-through';
|
||||
} ]
|
||||
],
|
||||
|
||||
subscript: [
|
||||
'sub'
|
||||
],
|
||||
|
||||
superscript: [
|
||||
'sup'
|
||||
]
|
||||
},
|
||||
config = editor.config,
|
||||
lang = editor.lang.basicstyles;
|
||||
|
||||
addButtonCommand( 'Bold', lang.bold, 'bold', config.coreStyles_bold );
|
||||
addButtonCommand( 'Italic', lang.italic, 'italic', config.coreStyles_italic );
|
||||
addButtonCommand( 'Underline', lang.underline, 'underline', config.coreStyles_underline );
|
||||
addButtonCommand( 'Strike', lang.strike, 'strike', config.coreStyles_strike );
|
||||
addButtonCommand( 'Subscript', lang.subscript, 'subscript', config.coreStyles_subscript );
|
||||
addButtonCommand( 'Superscript', lang.superscript, 'superscript', config.coreStyles_superscript );
|
||||
|
||||
editor.setKeystroke( [
|
||||
[ CKEDITOR.CTRL + 66 /*B*/, 'bold' ],
|
||||
[ CKEDITOR.CTRL + 73 /*I*/, 'italic' ],
|
||||
[ CKEDITOR.CTRL + 85 /*U*/, 'underline' ]
|
||||
] );
|
||||
}
|
||||
} );
|
||||
|
||||
// Basic Inline Styles.
|
||||
|
||||
/**
|
||||
* The style definition that applies the **bold** style to the text.
|
||||
*
|
||||
* config.coreStyles_bold = { element: 'b', overrides: 'strong' };
|
||||
*
|
||||
* config.coreStyles_bold = {
|
||||
* element: 'span',
|
||||
* attributes: { 'class': 'Bold' }
|
||||
* };
|
||||
*
|
||||
* @cfg
|
||||
* @member CKEDITOR.config
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_bold = { element: 'strong', overrides: 'b' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the *italics* style to the text.
|
||||
*
|
||||
* config.coreStyles_italic = { element: 'i', overrides: 'em' };
|
||||
*
|
||||
* CKEDITOR.config.coreStyles_italic = {
|
||||
* element: 'span',
|
||||
* attributes: { 'class': 'Italic' }
|
||||
* };
|
||||
*
|
||||
* @cfg
|
||||
* @member CKEDITOR.config
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_italic = { element: 'em', overrides: 'i' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the <u>underline</u> style to the text.
|
||||
*
|
||||
* CKEDITOR.config.coreStyles_underline = {
|
||||
* element: 'span',
|
||||
* attributes: { 'class': 'Underline' }
|
||||
* };
|
||||
*
|
||||
* @cfg
|
||||
* @member CKEDITOR.config
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_underline = { element: 'u' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the <strike>strike-through</strike> style to the text.
|
||||
*
|
||||
* CKEDITOR.config.coreStyles_strike = {
|
||||
* element: 'span',
|
||||
* attributes: { 'class': 'StrikeThrough' },
|
||||
* overrides: 'strike'
|
||||
* };
|
||||
*
|
||||
* @cfg
|
||||
* @member CKEDITOR.config
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_strike = { element: 's', overrides: 'strike' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the subscript style to the text.
|
||||
*
|
||||
* CKEDITOR.config.coreStyles_subscript = {
|
||||
* element: 'span',
|
||||
* attributes: { 'class': 'Subscript' },
|
||||
* overrides: 'sub'
|
||||
* };
|
||||
*
|
||||
* @cfg
|
||||
* @member CKEDITOR.config
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_subscript = { element: 'sub' };
|
||||
|
||||
/**
|
||||
* The style definition that applies the superscript style to the text.
|
||||
*
|
||||
* CKEDITOR.config.coreStyles_superscript = {
|
||||
* element: 'span',
|
||||
* attributes: { 'class': 'Superscript' },
|
||||
* overrides: 'sup'
|
||||
* };
|
||||
*
|
||||
* @cfg
|
||||
* @member CKEDITOR.config
|
||||
*/
|
||||
CKEDITOR.config.coreStyles_superscript = { element: 'sup' };
|
||||
|
||||