forked from Wavyzz/dolibarr
New: Update ckeditor to version 4 (part 1)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 43 B |
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'af', {
|
||||
anchor: 'Anker',
|
||||
flash: 'Flash animasie',
|
||||
hiddenfield: 'Verborge veld',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Onbekende objek'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ar', {
|
||||
anchor: 'إرساء',
|
||||
flash: 'رسم متحرك بالفلاش',
|
||||
hiddenfield: 'إدراج حقل خفي',
|
||||
iframe: 'iframe',
|
||||
unknown: 'عنصر غير معروف'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'bg', {
|
||||
anchor: 'Кука',
|
||||
flash: 'Флаш анимация',
|
||||
hiddenfield: 'Скрито поле',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Неизвестен обект'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'bn', {
|
||||
anchor: 'Anchor', // MISSING
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'bs', {
|
||||
anchor: 'Anchor',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ca', {
|
||||
anchor: 'Àncora',
|
||||
flash: 'Animació Flash',
|
||||
hiddenfield: 'Camp ocult',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objecte desconegut'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'cs', {
|
||||
anchor: 'Záložka',
|
||||
flash: 'Flash animace',
|
||||
hiddenfield: 'Skryté pole',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Neznámý objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'cy', {
|
||||
anchor: 'Angor',
|
||||
flash: 'Animeiddiant Flash',
|
||||
hiddenfield: 'Maes Cudd',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Gwrthrych Anhysbys'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'da', {
|
||||
anchor: 'Anker',
|
||||
flash: 'Flashanimation',
|
||||
hiddenfield: 'Skjult felt',
|
||||
iframe: 'Iframe',
|
||||
unknown: 'Ukendt objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'de', {
|
||||
anchor: 'Anker',
|
||||
flash: 'Flash Animation',
|
||||
hiddenfield: 'Verstecktes Feld',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Unbekanntes Objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'el', {
|
||||
anchor: 'Άγκυρα',
|
||||
flash: 'Ταινία Flash',
|
||||
hiddenfield: 'Κρυφό Πεδίο',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Άγνωστο Αντικείμενο'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'en-au', {
|
||||
anchor: 'Anchor', // MISSING
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'en-ca', {
|
||||
anchor: 'Anchor', // MISSING
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'en-gb', {
|
||||
anchor: 'Anchor',
|
||||
flash: 'Flash Animation',
|
||||
hiddenfield: 'Hidden Field',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Unknown Object'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'en', {
|
||||
anchor: 'Anchor',
|
||||
flash: 'Flash Animation',
|
||||
hiddenfield: 'Hidden Field',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Unknown Object'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'eo', {
|
||||
anchor: 'Ankro',
|
||||
flash: 'FlaŝAnimacio',
|
||||
hiddenfield: 'Kaŝita kampo',
|
||||
iframe: 'Enlinia Kadro (IFrame)',
|
||||
unknown: 'Nekonata objekto'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'es', {
|
||||
anchor: 'Ancla',
|
||||
flash: 'Animación flash',
|
||||
hiddenfield: 'Campo oculto',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objeto desconocido'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'et', {
|
||||
anchor: 'Ankur',
|
||||
flash: 'Flashi animatsioon',
|
||||
hiddenfield: 'Varjatud väli',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Tundmatu objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'eu', {
|
||||
anchor: 'Aingura',
|
||||
flash: 'Flash Animazioa',
|
||||
hiddenfield: 'Ezkutuko Eremua',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objektu ezezaguna'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'fa', {
|
||||
anchor: 'لنگر',
|
||||
flash: 'انیمشن فلش',
|
||||
hiddenfield: 'فیلد پنهان',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'شیء ناشناخته'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'fi', {
|
||||
anchor: 'Ankkuri',
|
||||
flash: 'Flash animaatio',
|
||||
hiddenfield: 'Piilokenttä',
|
||||
iframe: 'IFrame-kehys',
|
||||
unknown: 'Tuntematon objekti'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'fo', {
|
||||
anchor: 'Anchor',
|
||||
flash: 'Flash Animation',
|
||||
hiddenfield: 'Fjaldur teigur',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Ókent Object'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'fr-ca', {
|
||||
anchor: 'Ancre',
|
||||
flash: 'Animation Flash',
|
||||
hiddenfield: 'Champ caché',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objet inconnu'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'fr', {
|
||||
anchor: 'Ancre',
|
||||
flash: 'Animation Flash',
|
||||
hiddenfield: 'Champ caché',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objet inconnu'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'gl', {
|
||||
anchor: 'Ancoraxe',
|
||||
flash: 'Animación «Flash»',
|
||||
hiddenfield: 'Campo agochado',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Obxecto descoñecido'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'gu', {
|
||||
anchor: 'અનકર',
|
||||
flash: 'ફ્લેશ ',
|
||||
hiddenfield: 'હિડન ',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'અનનોન ઓબ્જેક્ટ'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'he', {
|
||||
anchor: 'עוגן',
|
||||
flash: 'סרטון פלאש',
|
||||
hiddenfield: 'שדה חבוי',
|
||||
iframe: 'חלון פנימי (iframe)',
|
||||
unknown: 'אובייקט לא ידוע'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'hi', {
|
||||
anchor: 'ऐंकर इन्सर्ट/संपादन',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'गुप्त फ़ील्ड',
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'hr', {
|
||||
anchor: 'Sidro',
|
||||
flash: 'Flash animacija',
|
||||
hiddenfield: 'Sakriveno polje',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Nepoznati objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'hu', {
|
||||
anchor: 'Horgony',
|
||||
flash: 'Flash animáció',
|
||||
hiddenfield: 'Rejtett mezõ',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Ismeretlen objektum'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'id', {
|
||||
anchor: 'Anchor', // MISSING
|
||||
flash: 'Animasi Flash',
|
||||
hiddenfield: 'Kolom Tersembunyi',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Obyek Tak Dikenal'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'is', {
|
||||
anchor: 'Anchor', // MISSING
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'it', {
|
||||
anchor: 'Ancora',
|
||||
flash: 'Animazione Flash',
|
||||
hiddenfield: 'Campo Nascosto',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Oggetto sconosciuto'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ja', {
|
||||
anchor: 'アンカー',
|
||||
flash: 'Flash Animation',
|
||||
hiddenfield: '不可視フィールド',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Unknown Object'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ka', {
|
||||
anchor: 'ღუზა',
|
||||
flash: 'Flash ანიმაცია',
|
||||
hiddenfield: 'მალული ველი',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'უცნობი ობიექტი'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'km', {
|
||||
anchor: 'យុថ្កា',
|
||||
flash: 'Flash មានចលនា',
|
||||
hiddenfield: 'វាលកំបាំង',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'វត្ថុមិនស្គាល់'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ko', {
|
||||
anchor: '책갈피 삽입/변경',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: '숨김필드',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ku', {
|
||||
anchor: 'لەنگەر',
|
||||
flash: 'فلاش',
|
||||
hiddenfield: 'شاردنەوەی خانه',
|
||||
iframe: 'لەچوارچێوە',
|
||||
unknown: 'بەرکارێکی نەناسراو'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'lt', {
|
||||
anchor: 'Žymė',
|
||||
flash: 'Flash animacija',
|
||||
hiddenfield: 'Paslėptas laukas',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Nežinomas objektas'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'lv', {
|
||||
anchor: 'Iezīme',
|
||||
flash: 'Flash animācija',
|
||||
hiddenfield: 'Slēpts lauks',
|
||||
iframe: 'Iframe',
|
||||
unknown: 'Nezināms objekts'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'mk', {
|
||||
anchor: 'Anchor',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'mn', {
|
||||
anchor: 'Зангуу',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Нууц талбар',
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ms', {
|
||||
anchor: 'Anchor', // MISSING
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'nb', {
|
||||
anchor: 'Anker',
|
||||
flash: 'Flash-animasjon',
|
||||
hiddenfield: 'Skjult felt',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Ukjent objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'nl', {
|
||||
anchor: 'Interne link',
|
||||
flash: 'Flash animatie',
|
||||
hiddenfield: 'Verborgen veld',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Onbekend object'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'no', {
|
||||
anchor: 'Anker',
|
||||
flash: 'Flash-animasjon',
|
||||
hiddenfield: 'Skjult felt',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Ukjent objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'pl', {
|
||||
anchor: 'Kotwica',
|
||||
flash: 'Animacja Flash',
|
||||
hiddenfield: 'Pole ukryte',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Nieznany obiekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'pt-br', {
|
||||
anchor: 'Âncora',
|
||||
flash: 'Animação em Flash',
|
||||
hiddenfield: 'Campo Oculto',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objeto desconhecido'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'pt', {
|
||||
anchor: ' Inserir/Editar Âncora',
|
||||
flash: 'Animação Flash',
|
||||
hiddenfield: 'Campo Ocultado',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objeto Desconhecido'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ro', {
|
||||
anchor: 'Inserează/Editează ancoră',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Câmp ascuns (HiddenField)',
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ru', {
|
||||
anchor: 'Якорь',
|
||||
flash: 'Flash анимация',
|
||||
hiddenfield: 'Скрытое поле',
|
||||
iframe: 'iFrame',
|
||||
unknown: 'Неизвестный объект'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'si', {
|
||||
anchor: 'ආධාරය',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'සැඟවුණු ප්රදේශය',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'sk', {
|
||||
anchor: 'Kotva',
|
||||
flash: 'Flash animácia',
|
||||
hiddenfield: 'Skryté pole',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Neznámy objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'sl', {
|
||||
anchor: 'Sidro',
|
||||
flash: 'Flash animacija',
|
||||
hiddenfield: 'Skrito polje',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Neznan objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'sq', {
|
||||
anchor: 'Spirancë',
|
||||
flash: 'Objekt flash',
|
||||
hiddenfield: 'Fushë e fshehur',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Objekt i Panjohur'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'sr-latn', {
|
||||
anchor: 'Unesi/izmeni sidro',
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Skriveno polje',
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'sr', {
|
||||
anchor: 'Anchor', // MISSING
|
||||
flash: 'Flash Animation', // MISSING
|
||||
hiddenfield: 'Hidden Field', // MISSING
|
||||
iframe: 'IFrame', // MISSING
|
||||
unknown: 'Unknown Object' // MISSING
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'sv', {
|
||||
anchor: 'Ankare',
|
||||
flash: 'Flashanimation',
|
||||
hiddenfield: 'Gömt fält',
|
||||
iframe: 'iFrame',
|
||||
unknown: 'Okänt objekt'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'th', {
|
||||
anchor: 'แทรก/แก้ไข Anchor',
|
||||
flash: 'ภาพอนิเมชั่นแฟลช',
|
||||
hiddenfield: 'ฮิดเดนฟิลด์',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'วัตถุไม่ทราบชนิด'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'tr', {
|
||||
anchor: 'Bağlantı',
|
||||
flash: 'Flash Animasyonu',
|
||||
hiddenfield: 'Gizli Alan',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Bilinmeyen Nesne'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'ug', {
|
||||
anchor: 'لەڭگەرلىك نۇقتا',
|
||||
flash: 'Flash جانلاندۇرۇم',
|
||||
hiddenfield: 'يوشۇرۇن دائىرە',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'يوچۇن نەڭ'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'uk', {
|
||||
anchor: 'Якір',
|
||||
flash: 'Flash-анімація',
|
||||
hiddenfield: 'Приховані Поля',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Невідомий об\'єкт'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'vi', {
|
||||
anchor: 'Điểm neo',
|
||||
flash: 'Flash',
|
||||
hiddenfield: 'Trường ẩn',
|
||||
iframe: 'IFrame',
|
||||
unknown: 'Đối tượng không rõ ràng'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'zh-cn', {
|
||||
anchor: '锚点',
|
||||
flash: 'Flash 动画',
|
||||
hiddenfield: '隐藏域',
|
||||
iframe: 'IFrame',
|
||||
unknown: '未知对象'
|
||||
} );
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'fakeobjects', 'zh', {
|
||||
anchor: '錨點',
|
||||
flash: 'Flash 動畫',
|
||||
hiddenfield: '隱藏欄位',
|
||||
iframe: 'IFrame',
|
||||
unknown: '無法辨識的物件'
|
||||
} );
|
||||
@@ -1,181 +1,178 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
var cssStyle = CKEDITOR.htmlParser.cssStyle,
|
||||
cssLength = CKEDITOR.tools.cssLength;
|
||||
|
||||
var cssLengthRegex = /^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i;
|
||||
|
||||
/*
|
||||
* Replacing the former CSS length value with the later one, with
|
||||
* adjustment to the length unit.
|
||||
*/
|
||||
function replaceCssLength( length1, length2 )
|
||||
{
|
||||
var parts1 = cssLengthRegex.exec( length1 ),
|
||||
parts2 = cssLengthRegex.exec( length2 );
|
||||
|
||||
// Omit pixel length unit when necessary,
|
||||
// e.g. replaceCssLength( 10, '20px' ) -> 20
|
||||
if ( parts1 )
|
||||
{
|
||||
if ( !parts1[ 2 ] && parts2[ 2 ] == 'px' )
|
||||
return parts2[ 1 ];
|
||||
if ( parts1[ 2 ] == 'px' && !parts2[ 2 ] )
|
||||
return parts2[ 1 ] + 'px';
|
||||
}
|
||||
|
||||
return length2;
|
||||
}
|
||||
|
||||
var htmlFilterRules =
|
||||
{
|
||||
elements :
|
||||
{
|
||||
$ : function( element )
|
||||
{
|
||||
var attributes = element.attributes,
|
||||
realHtml = attributes && attributes[ 'data-cke-realelement' ],
|
||||
realFragment = realHtml && new CKEDITOR.htmlParser.fragment.fromHtml( decodeURIComponent( realHtml ) ),
|
||||
realElement = realFragment && realFragment.children[ 0 ];
|
||||
|
||||
// Width/height in the fake object are subjected to clone into the real element.
|
||||
if ( realElement && element.attributes[ 'data-cke-resizable' ] )
|
||||
{
|
||||
var styles = new cssStyle( element ).rules,
|
||||
realAttrs = realElement.attributes,
|
||||
width = styles.width,
|
||||
height = styles.height;
|
||||
|
||||
width && ( realAttrs.width = replaceCssLength( realAttrs.width, width ) );
|
||||
height && ( realAttrs.height = replaceCssLength( realAttrs.height, height ) );
|
||||
}
|
||||
|
||||
return realElement;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
CKEDITOR.plugins.add( 'fakeobjects',
|
||||
{
|
||||
requires : [ 'htmlwriter' ],
|
||||
|
||||
afterInit : function( editor )
|
||||
{
|
||||
var dataProcessor = editor.dataProcessor,
|
||||
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
|
||||
|
||||
if ( htmlFilter )
|
||||
htmlFilter.addRules( htmlFilterRules );
|
||||
}
|
||||
});
|
||||
|
||||
CKEDITOR.editor.prototype.createFakeElement = function( realElement, className, realElementType, isResizable )
|
||||
{
|
||||
var lang = this.lang.fakeobjects,
|
||||
label = lang[ realElementType ] || lang.unknown;
|
||||
|
||||
var attributes =
|
||||
{
|
||||
'class' : className,
|
||||
'data-cke-realelement' : encodeURIComponent( realElement.getOuterHtml() ),
|
||||
'data-cke-real-node-type' : realElement.type,
|
||||
alt : label,
|
||||
title : label,
|
||||
align : realElement.getAttribute( 'align' ) || ''
|
||||
};
|
||||
|
||||
// Do not set "src" on high-contrast so the alt text is displayed. (#8945)
|
||||
if ( !CKEDITOR.env.hc )
|
||||
attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );
|
||||
|
||||
if ( realElementType )
|
||||
attributes[ 'data-cke-real-element-type' ] = realElementType;
|
||||
|
||||
if ( isResizable )
|
||||
{
|
||||
attributes[ 'data-cke-resizable' ] = isResizable;
|
||||
|
||||
var fakeStyle = new cssStyle();
|
||||
|
||||
var width = realElement.getAttribute( 'width' ),
|
||||
height = realElement.getAttribute( 'height' );
|
||||
|
||||
width && ( fakeStyle.rules.width = cssLength( width ) );
|
||||
height && ( fakeStyle.rules.height = cssLength( height ) );
|
||||
fakeStyle.populate( attributes );
|
||||
}
|
||||
|
||||
return this.document.createElement( 'img', { attributes : attributes } );
|
||||
};
|
||||
|
||||
CKEDITOR.editor.prototype.createFakeParserElement = function( realElement, className, realElementType, isResizable )
|
||||
{
|
||||
var lang = this.lang.fakeobjects,
|
||||
label = lang[ realElementType ] || lang.unknown,
|
||||
html;
|
||||
|
||||
var writer = new CKEDITOR.htmlParser.basicWriter();
|
||||
realElement.writeHtml( writer );
|
||||
html = writer.getHtml();
|
||||
|
||||
var attributes =
|
||||
{
|
||||
'class' : className,
|
||||
'data-cke-realelement' : encodeURIComponent( html ),
|
||||
'data-cke-real-node-type' : realElement.type,
|
||||
alt : label,
|
||||
title : label,
|
||||
align : realElement.attributes.align || ''
|
||||
};
|
||||
|
||||
// Do not set "src" on high-contrast so the alt text is displayed. (#8945)
|
||||
if ( !CKEDITOR.env.hc )
|
||||
attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );
|
||||
|
||||
if ( realElementType )
|
||||
attributes[ 'data-cke-real-element-type' ] = realElementType;
|
||||
|
||||
if ( isResizable )
|
||||
{
|
||||
attributes[ 'data-cke-resizable' ] = isResizable;
|
||||
var realAttrs = realElement.attributes,
|
||||
fakeStyle = new cssStyle();
|
||||
|
||||
var width = realAttrs.width,
|
||||
height = realAttrs.height;
|
||||
|
||||
width != undefined && ( fakeStyle.rules.width = cssLength( width ) );
|
||||
height != undefined && ( fakeStyle.rules.height = cssLength ( height ) );
|
||||
fakeStyle.populate( attributes );
|
||||
}
|
||||
|
||||
return new CKEDITOR.htmlParser.element( 'img', attributes );
|
||||
};
|
||||
|
||||
CKEDITOR.editor.prototype.restoreRealElement = function( fakeElement )
|
||||
{
|
||||
if ( fakeElement.data( 'cke-real-node-type' ) != CKEDITOR.NODE_ELEMENT )
|
||||
return null;
|
||||
|
||||
var element = CKEDITOR.dom.element.createFromHtml(
|
||||
decodeURIComponent( fakeElement.data( 'cke-realelement' ) ),
|
||||
this.document );
|
||||
|
||||
if ( fakeElement.data( 'cke-resizable') )
|
||||
{
|
||||
var width = fakeElement.getStyle( 'width' ),
|
||||
height = fakeElement.getStyle( 'height' );
|
||||
|
||||
width && element.setAttribute( 'width', replaceCssLength( element.getAttribute( 'width' ), width ) );
|
||||
height && element.setAttribute( 'height', replaceCssLength( element.getAttribute( 'height' ), height ) );
|
||||
}
|
||||
|
||||
return element;
|
||||
};
|
||||
|
||||
})();
|
||||
/**
|
||||
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
( function() {
|
||||
var cssStyle = CKEDITOR.htmlParser.cssStyle,
|
||||
cssLength = CKEDITOR.tools.cssLength;
|
||||
|
||||
var cssLengthRegex = /^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i;
|
||||
|
||||
// Replacing the former CSS length value with the later one, with
|
||||
// adjustment to the length unit.
|
||||
function replaceCssLength( length1, length2 ) {
|
||||
var parts1 = cssLengthRegex.exec( length1 ),
|
||||
parts2 = cssLengthRegex.exec( length2 );
|
||||
|
||||
// Omit pixel length unit when necessary,
|
||||
// e.g. replaceCssLength( 10, '20px' ) -> 20
|
||||
if ( parts1 ) {
|
||||
if ( !parts1[ 2 ] && parts2[ 2 ] == 'px' )
|
||||
return parts2[ 1 ];
|
||||
if ( parts1[ 2 ] == 'px' && !parts2[ 2 ] )
|
||||
return parts2[ 1 ] + 'px';
|
||||
}
|
||||
|
||||
return length2;
|
||||
}
|
||||
|
||||
var htmlFilterRules = {
|
||||
elements: {
|
||||
$: function( element ) {
|
||||
var attributes = element.attributes,
|
||||
realHtml = attributes && attributes[ 'data-cke-realelement' ],
|
||||
realFragment = realHtml && new CKEDITOR.htmlParser.fragment.fromHtml( decodeURIComponent( realHtml ) ),
|
||||
realElement = realFragment && realFragment.children[ 0 ];
|
||||
|
||||
// Width/height in the fake object are subjected to clone into the real element.
|
||||
if ( realElement && element.attributes[ 'data-cke-resizable' ] ) {
|
||||
var styles = new cssStyle( element ).rules,
|
||||
realAttrs = realElement.attributes,
|
||||
width = styles.width,
|
||||
height = styles.height;
|
||||
|
||||
width && ( realAttrs.width = replaceCssLength( realAttrs.width, width ) );
|
||||
height && ( realAttrs.height = replaceCssLength( realAttrs.height, height ) );
|
||||
}
|
||||
|
||||
return realElement;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var plugin = CKEDITOR.plugins.add( 'fakeobjects', {
|
||||
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%
|
||||
|
||||
init: function( editor ) {
|
||||
// Allow image with all styles and classes plus src, alt and title attributes.
|
||||
// We need them when fakeobject is pasted.
|
||||
editor.filter.allow( 'img[!data-cke-realelement,src,alt,title](*){*}', 'fakeobjects' );
|
||||
},
|
||||
|
||||
afterInit: function( editor ) {
|
||||
var dataProcessor = editor.dataProcessor,
|
||||
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
|
||||
|
||||
if ( htmlFilter )
|
||||
htmlFilter.addRules( htmlFilterRules );
|
||||
}
|
||||
} );
|
||||
|
||||
/**
|
||||
* @member CKEDITOR.editor
|
||||
* @todo
|
||||
*/
|
||||
CKEDITOR.editor.prototype.createFakeElement = function( realElement, className, realElementType, isResizable ) {
|
||||
var lang = this.lang.fakeobjects,
|
||||
label = lang[ realElementType ] || lang.unknown;
|
||||
|
||||
var attributes = {
|
||||
'class': className,
|
||||
'data-cke-realelement': encodeURIComponent( realElement.getOuterHtml() ),
|
||||
'data-cke-real-node-type': realElement.type,
|
||||
alt: label,
|
||||
title: label,
|
||||
align: realElement.getAttribute( 'align' ) || ''
|
||||
};
|
||||
|
||||
// Do not set "src" on high-contrast so the alt text is displayed. (#8945)
|
||||
if ( !CKEDITOR.env.hc )
|
||||
attributes.src = CKEDITOR.getUrl( plugin.path + 'images/spacer.gif' );
|
||||
|
||||
if ( realElementType )
|
||||
attributes[ 'data-cke-real-element-type' ] = realElementType;
|
||||
|
||||
if ( isResizable ) {
|
||||
attributes[ 'data-cke-resizable' ] = isResizable;
|
||||
|
||||
var fakeStyle = new cssStyle();
|
||||
|
||||
var width = realElement.getAttribute( 'width' ),
|
||||
height = realElement.getAttribute( 'height' );
|
||||
|
||||
width && ( fakeStyle.rules.width = cssLength( width ) );
|
||||
height && ( fakeStyle.rules.height = cssLength( height ) );
|
||||
fakeStyle.populate( attributes );
|
||||
}
|
||||
|
||||
return this.document.createElement( 'img', { attributes: attributes } );
|
||||
};
|
||||
|
||||
/**
|
||||
* @member CKEDITOR.editor
|
||||
* @todo
|
||||
*/
|
||||
CKEDITOR.editor.prototype.createFakeParserElement = function( realElement, className, realElementType, isResizable ) {
|
||||
var lang = this.lang.fakeobjects,
|
||||
label = lang[ realElementType ] || lang.unknown,
|
||||
html;
|
||||
|
||||
var writer = new CKEDITOR.htmlParser.basicWriter();
|
||||
realElement.writeHtml( writer );
|
||||
html = writer.getHtml();
|
||||
|
||||
var attributes = {
|
||||
'class': className,
|
||||
'data-cke-realelement': encodeURIComponent( html ),
|
||||
'data-cke-real-node-type': realElement.type,
|
||||
alt: label,
|
||||
title: label,
|
||||
align: realElement.attributes.align || ''
|
||||
};
|
||||
|
||||
// Do not set "src" on high-contrast so the alt text is displayed. (#8945)
|
||||
if ( !CKEDITOR.env.hc )
|
||||
attributes.src = CKEDITOR.getUrl( plugin.path + 'images/spacer.gif' );
|
||||
|
||||
if ( realElementType )
|
||||
attributes[ 'data-cke-real-element-type' ] = realElementType;
|
||||
|
||||
if ( isResizable ) {
|
||||
attributes[ 'data-cke-resizable' ] = isResizable;
|
||||
var realAttrs = realElement.attributes,
|
||||
fakeStyle = new cssStyle();
|
||||
|
||||
var width = realAttrs.width,
|
||||
height = realAttrs.height;
|
||||
|
||||
width != undefined && ( fakeStyle.rules.width = cssLength( width ) );
|
||||
height != undefined && ( fakeStyle.rules.height = cssLength( height ) );
|
||||
fakeStyle.populate( attributes );
|
||||
}
|
||||
|
||||
return new CKEDITOR.htmlParser.element( 'img', attributes );
|
||||
};
|
||||
|
||||
/**
|
||||
* @member CKEDITOR.editor
|
||||
* @todo
|
||||
*/
|
||||
CKEDITOR.editor.prototype.restoreRealElement = function( fakeElement ) {
|
||||
if ( fakeElement.data( 'cke-real-node-type' ) != CKEDITOR.NODE_ELEMENT )
|
||||
return null;
|
||||
|
||||
var element = CKEDITOR.dom.element.createFromHtml( decodeURIComponent( fakeElement.data( 'cke-realelement' ) ), this.document );
|
||||
|
||||
if ( fakeElement.data( 'cke-resizable' ) ) {
|
||||
var width = fakeElement.getStyle( 'width' ),
|
||||
height = fakeElement.getStyle( 'height' );
|
||||
|
||||
width && element.setAttribute( 'width', replaceCssLength( element.getAttribute( 'width' ), width ) );
|
||||
height && element.setAttribute( 'height', replaceCssLength( element.getAttribute( 'height' ), height ) );
|
||||
}
|
||||
|
||||
return element;
|
||||
};
|
||||
|
||||
} )();
|
||||
|
||||
Reference in New Issue
Block a user