diff --git a/bibcite_footnotes.info.yml b/bibcite_footnotes.info.yml new file mode 100644 index 0000000..a980a83 --- /dev/null +++ b/bibcite_footnotes.info.yml @@ -0,0 +1,7 @@ +name: 'BibCite Footnotes' +type: module +description: 'Inline footnote links for BibCite References' +core: 8.x +package: 'Bibcite' +dependencies: + - bibcite diff --git a/bibcite_footnotes.module b/bibcite_footnotes.module new file mode 100644 index 0000000..9bd4f14 --- /dev/null +++ b/bibcite_footnotes.module @@ -0,0 +1,35 @@ +' . t('About') . ''; + $output .= '

' . t('Inline footnote links for BibCite References') . '

'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function bibcite_footnotes_theme() { + return [ + 'bibcite_footnotes' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/js/plugins/reference_footnotes/dialogs/footnotes.js b/js/plugins/reference_footnotes/dialogs/footnotes.js new file mode 100644 index 0000000..ae525da --- /dev/null +++ b/js/plugins/reference_footnotes/dialogs/footnotes.js @@ -0,0 +1,59 @@ +(function() { + function referenceFootnotesDialog( editor, isEdit ) { + return { + title : Drupal.t('Reference Footnotes Dialog'), + minWidth : 500, + minHeight : 50, + contents : [ + { + id: 'info', + label: Drupal.t('Add a reference footnote'), + title: Drupal.t('Add a reference footnote'), + elements: + [ + { + id: 'reference_footnote', + type: 'select', + items: editor.config.referenceFootnotes_list, + label: Drupal.t('Reference Footnote item:'), + setup: function (element) { + if (isEdit) + this.setValue(element.getText()); + } + }, + { + id: 'value', + type: 'text', + label: Drupal.t('Value :'), + labelLayout: 'horizontal', + style: 'float:left;width:100px;', + setup: function (element) { + if (isEdit) + this.setValue(element.getAttribute('value')); + } + } + ], + } + ], + onShow : function() { + if (isEdit) { + this.fakeObj = CKEDITOR.plugins.reference_footnotes.getSelectedFootnote( editor ); + this.realObj = editor.restoreRealElement( this.fakeObj ); + } + this.setupContent( this.realObj ); + }, + onOk : function() { + CKEDITOR.plugins.reference_footnotes.createFootnote( editor, this.realObj, this.getValueOf('info', 'reference_footnote'), this.getValueOf('info', 'value')); + delete this.fakeObj; + delete this.realObj; + } + } + } + + CKEDITOR.dialog.add( 'createfootnotes', function( editor ) { + return referenceFootnotesDialog( editor ); + }); + CKEDITOR.dialog.add( 'editfootnotes', function( editor ) { + return referenceFootnotesDialog( editor, 1 ); + }); +})(); \ No newline at end of file diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/af.js b/js/plugins/reference_footnotes/fakeobjects/lang/af.js new file mode 100644 index 0000000..177f9a1 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/af.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ar.js b/js/plugins/reference_footnotes/fakeobjects/lang/ar.js new file mode 100644 index 0000000..4ae0a05 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ar.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'عنصر غير معروف' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/bg.js b/js/plugins/reference_footnotes/fakeobjects/lang/bg.js new file mode 100644 index 0000000..bef8d25 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/bg.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'Неизвестен обект' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/bn.js b/js/plugins/reference_footnotes/fakeobjects/lang/bn.js new file mode 100644 index 0000000..1c5efac --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/bn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/bs.js b/js/plugins/reference_footnotes/fakeobjects/lang/bs.js new file mode 100644 index 0000000..65b0642 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/bs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ca.js b/js/plugins/reference_footnotes/fakeobjects/lang/ca.js new file mode 100644 index 0000000..dcc8832 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/cs.js b/js/plugins/reference_footnotes/fakeobjects/lang/cs.js new file mode 100644 index 0000000..5e4e263 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/cs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/cy.js b/js/plugins/reference_footnotes/fakeobjects/lang/cy.js new file mode 100644 index 0000000..1ca6a48 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/cy.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/da.js b/js/plugins/reference_footnotes/fakeobjects/lang/da.js new file mode 100644 index 0000000..fe906c9 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/da.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/de.js b/js/plugins/reference_footnotes/fakeobjects/lang/de.js new file mode 100644 index 0000000..f1296ca --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/de.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/el.js b/js/plugins/reference_footnotes/fakeobjects/lang/el.js new file mode 100644 index 0000000..64a73c5 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/el.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'Άγνωστο Αντικείμενο' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/en-au.js b/js/plugins/reference_footnotes/fakeobjects/lang/en-au.js new file mode 100644 index 0000000..82dd427 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/en-au.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/en-ca.js b/js/plugins/reference_footnotes/fakeobjects/lang/en-ca.js new file mode 100644 index 0000000..bc388c6 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/en-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/en-gb.js b/js/plugins/reference_footnotes/fakeobjects/lang/en-gb.js new file mode 100644 index 0000000..3ccc7d0 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/en-gb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/en.js b/js/plugins/reference_footnotes/fakeobjects/lang/en.js new file mode 100644 index 0000000..bcf468a --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/en.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/eo.js b/js/plugins/reference_footnotes/fakeobjects/lang/eo.js new file mode 100644 index 0000000..4f2b80f --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/eo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/es.js b/js/plugins/reference_footnotes/fakeobjects/lang/es.js new file mode 100644 index 0000000..ef27d5e --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/es.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/et.js b/js/plugins/reference_footnotes/fakeobjects/lang/et.js new file mode 100644 index 0000000..99d6515 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/et.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/eu.js b/js/plugins/reference_footnotes/fakeobjects/lang/eu.js new file mode 100644 index 0000000..5855cc6 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/eu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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-a', + unknown: 'Objektu ezezaguna' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/fa.js b/js/plugins/reference_footnotes/fakeobjects/lang/fa.js new file mode 100644 index 0000000..5dc042b --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/fa.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'شیء ناشناخته' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/fi.js b/js/plugins/reference_footnotes/fakeobjects/lang/fi.js new file mode 100644 index 0000000..742dc6c --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/fi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/fo.js b/js/plugins/reference_footnotes/fakeobjects/lang/fo.js new file mode 100644 index 0000000..64c3ac4 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/fo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/fr-ca.js b/js/plugins/reference_footnotes/fakeobjects/lang/fr-ca.js new file mode 100644 index 0000000..f62269c --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/fr-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/fr.js b/js/plugins/reference_footnotes/fakeobjects/lang/fr.js new file mode 100644 index 0000000..4714545 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/fr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/gl.js b/js/plugins/reference_footnotes/fakeobjects/lang/gl.js new file mode 100644 index 0000000..cc312ea --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/gl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/gu.js b/js/plugins/reference_footnotes/fakeobjects/lang/gu.js new file mode 100644 index 0000000..15f6648 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/gu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'અનનોન ઓબ્જેક્ટ' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/he.js b/js/plugins/reference_footnotes/fakeobjects/lang/he.js new file mode 100644 index 0000000..91ebc93 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/he.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'אובייקט לא ידוע' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/hi.js b/js/plugins/reference_footnotes/fakeobjects/lang/hi.js new file mode 100644 index 0000000..8180fdb --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/hi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/hr.js b/js/plugins/reference_footnotes/fakeobjects/lang/hr.js new file mode 100644 index 0000000..1e28c83 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/hr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/hu.js b/js/plugins/reference_footnotes/fakeobjects/lang/hu.js new file mode 100644 index 0000000..a6fe296 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/hu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/id.js b/js/plugins/reference_footnotes/fakeobjects/lang/id.js new file mode 100644 index 0000000..839b2ef --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/id.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/is.js b/js/plugins/reference_footnotes/fakeobjects/lang/is.js new file mode 100644 index 0000000..0e0ea7e --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/is.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/it.js b/js/plugins/reference_footnotes/fakeobjects/lang/it.js new file mode 100644 index 0000000..b9a97dc --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/it.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ja.js b/js/plugins/reference_footnotes/fakeobjects/lang/ja.js new file mode 100644 index 0000000..77c756f --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ja.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ka.js b/js/plugins/reference_footnotes/fakeobjects/lang/ka.js new file mode 100644 index 0000000..c6d8550 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ka.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'უცნობი ობიექტი' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/km.js b/js/plugins/reference_footnotes/fakeobjects/lang/km.js new file mode 100644 index 0000000..9b1cf85 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/km.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'វត្ថុ​មិន​ស្គាល់' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ko.js b/js/plugins/reference_footnotes/fakeobjects/lang/ko.js new file mode 100644 index 0000000..ba5d06c --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ko.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'fakeobjects', 'ko', { + anchor: '책갈피', + flash: '플래시 애니메이션', + hiddenfield: '숨은 입력 칸', + iframe: '아이프레임', + unknown: '알 수 없는 객체' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ku.js b/js/plugins/reference_footnotes/fakeobjects/lang/ku.js new file mode 100644 index 0000000..d44c15a --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ku.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'بەرکارێکی نەناسراو' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/lt.js b/js/plugins/reference_footnotes/fakeobjects/lang/lt.js new file mode 100644 index 0000000..d6409cc --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/lt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/lv.js b/js/plugins/reference_footnotes/fakeobjects/lang/lv.js new file mode 100644 index 0000000..88e0065 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/lv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/mk.js b/js/plugins/reference_footnotes/fakeobjects/lang/mk.js new file mode 100644 index 0000000..9c643cc --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/mk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/mn.js b/js/plugins/reference_footnotes/fakeobjects/lang/mn.js new file mode 100644 index 0000000..eb3894a --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/mn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ms.js b/js/plugins/reference_footnotes/fakeobjects/lang/ms.js new file mode 100644 index 0000000..f8415fa --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ms.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/nb.js b/js/plugins/reference_footnotes/fakeobjects/lang/nb.js new file mode 100644 index 0000000..b97fe40 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/nb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/nl.js b/js/plugins/reference_footnotes/fakeobjects/lang/nl.js new file mode 100644 index 0000000..62a3283 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/nl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/no.js b/js/plugins/reference_footnotes/fakeobjects/lang/no.js new file mode 100644 index 0000000..5802ef6 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/no.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/pl.js b/js/plugins/reference_footnotes/fakeobjects/lang/pl.js new file mode 100644 index 0000000..0fcf1ec --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/pl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/pt-br.js b/js/plugins/reference_footnotes/fakeobjects/lang/pt-br.js new file mode 100644 index 0000000..d4e60e2 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/pt-br.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/pt.js b/js/plugins/reference_footnotes/fakeobjects/lang/pt.js new file mode 100644 index 0000000..9997f08 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/pt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 oculto', + iframe: 'IFrame', + unknown: 'Objeto Desconhecido' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ro.js b/js/plugins/reference_footnotes/fakeobjects/lang/ro.js new file mode 100644 index 0000000..ca41a83 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ro.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ru.js b/js/plugins/reference_footnotes/fakeobjects/lang/ru.js new file mode 100644 index 0000000..2cc2ebe --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ru.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'Неизвестный объект' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/si.js b/js/plugins/reference_footnotes/fakeobjects/lang/si.js new file mode 100644 index 0000000..fa2aee2 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/si.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/sk.js b/js/plugins/reference_footnotes/fakeobjects/lang/sk.js new file mode 100644 index 0000000..bca519a --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/sk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/sl.js b/js/plugins/reference_footnotes/fakeobjects/lang/sl.js new file mode 100644 index 0000000..7231697 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/sl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/sq.js b/js/plugins/reference_footnotes/fakeobjects/lang/sq.js new file mode 100644 index 0000000..fdc878a --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/sq.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/sr-latn.js b/js/plugins/reference_footnotes/fakeobjects/lang/sr-latn.js new file mode 100644 index 0000000..c6d7746 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/sr-latn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/sr.js b/js/plugins/reference_footnotes/fakeobjects/lang/sr.js new file mode 100644 index 0000000..6c3a91c --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/sr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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 +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/sv.js b/js/plugins/reference_footnotes/fakeobjects/lang/sv.js new file mode 100644 index 0000000..e7548e7 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/sv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/th.js b/js/plugins/reference_footnotes/fakeobjects/lang/th.js new file mode 100644 index 0000000..431c6e8 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/th.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'วัตถุไม่ทราบชนิด' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/tr.js b/js/plugins/reference_footnotes/fakeobjects/lang/tr.js new file mode 100644 index 0000000..7809bdb --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/tr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/tt.js b/js/plugins/reference_footnotes/fakeobjects/lang/tt.js new file mode 100644 index 0000000..edce402 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/tt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'fakeobjects', 'tt', { + anchor: 'Якорь', + flash: 'Флеш анимациясы', + hiddenfield: 'Яшерен кыр', + iframe: 'IFrame', + unknown: 'Танылмаган объект' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/ug.js b/js/plugins/reference_footnotes/fakeobjects/lang/ug.js new file mode 100644 index 0000000..3b57ee9 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/ug.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'يوچۇن نەڭ' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/uk.js b/js/plugins/reference_footnotes/fakeobjects/lang/uk.js new file mode 100644 index 0000000..c2a5b8d --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/uk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: 'Невідомий об\'єкт' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/vi.js b/js/plugins/reference_footnotes/fakeobjects/lang/vi.js new file mode 100644 index 0000000..bf4374f --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/vi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/zh-cn.js b/js/plugins/reference_footnotes/fakeobjects/lang/zh-cn.js new file mode 100644 index 0000000..c25f110 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/zh-cn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: '未知对象' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/lang/zh.js b/js/plugins/reference_footnotes/fakeobjects/lang/zh.js new file mode 100644 index 0000000..19bf223 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/lang/zh.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, 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: '無法辨識的物件' +} ); diff --git a/js/plugins/reference_footnotes/fakeobjects/plugin.js b/js/plugins/reference_footnotes/fakeobjects/plugin.js new file mode 100644 index 0000000..7779087 --- /dev/null +++ b/js/plugins/reference_footnotes/fakeobjects/plugin.js @@ -0,0 +1,183 @@ +/** + * @license Copyright (c) 2003-2015, 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; + } + } + }; + + CKEDITOR.plugins.add( 'fakeobjects', { + // jscs:disable maximumLineLength + 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,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + + 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, { + applyToAll: true + } ); + } + } + } ); + + /** + * @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.tools.transparentImageData; + + 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.tools.transparentImageData; + + 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; + }; + +} )(); diff --git a/js/plugins/reference_footnotes/icons/reference_footnotes.png b/js/plugins/reference_footnotes/icons/reference_footnotes.png new file mode 100644 index 0000000..d5124df Binary files /dev/null and b/js/plugins/reference_footnotes/icons/reference_footnotes.png differ diff --git a/js/plugins/reference_footnotes/images/bgcolor.png b/js/plugins/reference_footnotes/images/bgcolor.png new file mode 100644 index 0000000..a313938 Binary files /dev/null and b/js/plugins/reference_footnotes/images/bgcolor.png differ diff --git a/js/plugins/reference_footnotes/images/fn.png b/js/plugins/reference_footnotes/images/fn.png new file mode 100644 index 0000000..7b9b741 Binary files /dev/null and b/js/plugins/reference_footnotes/images/fn.png differ diff --git a/js/plugins/reference_footnotes/images/fn_icon.png b/js/plugins/reference_footnotes/images/fn_icon.png new file mode 100644 index 0000000..329accd Binary files /dev/null and b/js/plugins/reference_footnotes/images/fn_icon.png differ diff --git a/js/plugins/reference_footnotes/images/fn_icon2.png b/js/plugins/reference_footnotes/images/fn_icon2.png new file mode 100644 index 0000000..6a3f896 Binary files /dev/null and b/js/plugins/reference_footnotes/images/fn_icon2.png differ diff --git a/js/plugins/reference_footnotes/images/footnotes.png b/js/plugins/reference_footnotes/images/footnotes.png new file mode 100644 index 0000000..f0e8224 Binary files /dev/null and b/js/plugins/reference_footnotes/images/footnotes.png differ diff --git a/js/plugins/reference_footnotes/images/hidpi/bgcolor.png b/js/plugins/reference_footnotes/images/hidpi/bgcolor.png new file mode 100644 index 0000000..54b3e18 Binary files /dev/null and b/js/plugins/reference_footnotes/images/hidpi/bgcolor.png differ diff --git a/js/plugins/reference_footnotes/images/hidpi/textcolor.png b/js/plugins/reference_footnotes/images/hidpi/textcolor.png new file mode 100644 index 0000000..8fc56bc Binary files /dev/null and b/js/plugins/reference_footnotes/images/hidpi/textcolor.png differ diff --git a/js/plugins/reference_footnotes/images/icon.png b/js/plugins/reference_footnotes/images/icon.png new file mode 100644 index 0000000..d5124df Binary files /dev/null and b/js/plugins/reference_footnotes/images/icon.png differ diff --git a/js/plugins/reference_footnotes/images/note_add.png b/js/plugins/reference_footnotes/images/note_add.png new file mode 100644 index 0000000..6307bb8 Binary files /dev/null and b/js/plugins/reference_footnotes/images/note_add.png differ diff --git a/js/plugins/reference_footnotes/images/textcolor.png b/js/plugins/reference_footnotes/images/textcolor.png new file mode 100644 index 0000000..0d8e459 Binary files /dev/null and b/js/plugins/reference_footnotes/images/textcolor.png differ diff --git a/js/plugins/reference_footnotes/plugin.js b/js/plugins/reference_footnotes/plugin.js new file mode 100644 index 0000000..499050e --- /dev/null +++ b/js/plugins/reference_footnotes/plugin.js @@ -0,0 +1,109 @@ +(function() { + CKEDITOR.plugins.add( 'reference_footnotes', + { + requires : [ 'fakeobjects','dialog' ], + icons: 'reference_footnotes', + onLoad: function() { + var icon_path = window.location.origin + this.path + 'images/fn_icon2.png'; + CKEDITOR.addCss( + '.cke_footnote' + + '{' + + 'background-image: url(' + CKEDITOR.getUrl( icon_path ) + ');' + + 'background-position: center center;' + + 'background-repeat: no-repeat;' + + 'width: 16px;' + + 'height: 16px;' + + '}' + ); + }, + init: function( editor ) + { + editor.addCommand('createfootnotes', new CKEDITOR.dialogCommand('createfootnotes', { + allowedContent: 'fn[value]' + })); + editor.addCommand('editfootnotes', new CKEDITOR.dialogCommand('editfootnotes', { + allowedContent: 'fn[value]' + })); + + // Drupal Wysiwyg requirement: The first argument to editor.ui.addButton() + // must be equal to the key used in $plugins[]['buttons'][] + // in hook_wysiwyg_plugin(). + editor.ui.addButton && editor.ui.addButton( 'reference_footnotes', { + label: Drupal.t('Add a reference footnote'), + command: 'createfootnotes', + icon: 'reference_footnotes' + }); + + if (editor.addMenuItems) { + editor.addMenuGroup('reference_footnotes', 100); + editor.addMenuItems({ + footnotes: { + label: Drupal.t('Edit footnote'), + command: 'editfootnotes', + icon: 'reference_footnotes', + group: 'reference_footnotes' + } + }); + } + if (editor.contextMenu) { + editor.contextMenu.addListener( function( element, selection ) { + if ( !element || element.data('cke-real-element-type') != 'fn' ) + return null; + + return { footnotes: CKEDITOR.TRISTATE_ON }; + }); + } + + editor.on( 'doubleclick', function( evt ) { + if ( CKEDITOR.plugins.footnotes.getSelectedFootnote( editor ) ) + evt.data.dialog = 'editfootnotes'; + }); + + CKEDITOR.dialog.add( 'createfootnotes', this.path + 'dialogs/footnotes.js' ); + CKEDITOR.dialog.add( 'editfootnotes', this.path + 'dialogs/footnotes.js' ); + }, + afterInit : function( editor ) { + var dataProcessor = editor.dataProcessor, + dataFilter = dataProcessor && dataProcessor.dataFilter; + + if (dataFilter) { + dataFilter.addRules({ + elements: { + fn: function(element ) { + return editor.createFakeParserElement( element, 'cke_footnote', 'hiddenfield', false ); + } + } + }); + } + } + }); +})(); + +CKEDITOR.plugins.reference_footnotes = { + createFootnote: function( editor, origElement, text, value) { + if (!origElement) { + var realElement = CKEDITOR.dom.element.createFromHtml(''); + } + else { + realElement = origElement; + } + + if (text && text.length > 0 ) + realElement.setText(text); + if (value && value.length > 0 ) + realElement.setAttribute('value',value); + + var fakeElement = editor.createFakeElement( realElement , 'cke_footnote', 'hiddenfield', false ); + editor.insertElement(fakeElement); + }, + + getSelectedFootnote: function( editor ) { + var selection = editor.getSelection(); + var element = selection.getSelectedElement(); + var seltype = selection.getType(); + + if ( seltype == CKEDITOR.SELECTION_ELEMENT && element.data('cke-real-element-type') == 'hiddenfield') { + return element; + } + } +}; diff --git a/src/Plugin/CKEditorPlugin/FakeObjects.php b/src/Plugin/CKEditorPlugin/FakeObjects.php new file mode 100644 index 0000000..cdac432 --- /dev/null +++ b/src/Plugin/CKEditorPlugin/FakeObjects.php @@ -0,0 +1,65 @@ + [ + 'label' => t('Reference Footnotes'), + 'image' => drupal_get_path('module', 'bibcite_footnotes') . '/js/plugins/reference_footnotes/images/icon.png', + ], + ]; + } + + /** + * {@inheritdoc} + */ + public function getFile() { + // Make sure that the path to the plugin.js matches the file structure of + // the CKEditor plugin you are implementing. + return drupal_get_path('module', 'bibcite_footnotes') . '/js/plugins/reference_footnotes/plugin.js'; + } + + /** + * {@inheritdoc} + */ + public function isInternal() { + return FALSE; + } + + /** + * {@inheritdoc} + */ + public function getDependencies(Editor $editor) { + return ['fakeobjects']; + } + + /** + * {@inheritdoc} + */ + public function getLibraries(Editor $editor) { + return []; + } + + /** + * {@inheritdoc} + */ + public function getConfig(Editor $editor) { + $uid = \Drupal::currentUser()->id(); + + $query = \Drupal::service('entity.query'); + + $ref_ids = $query + ->get('bibcite_reference') + ->condition('uid', $uid) + ->execute(); + + $reference_storage = \Drupal::entityTypeManager()->getStorage('bibcite_reference')->loadMultiple($ref_ids); + $view_builder = \Drupal::entityTypeManager()->getViewBuilder('bibcite_reference'); + $options = []; + foreach($reference_storage as $ref_id => $ref_item) { + print_r($ref_id); + $build = $view_builder->view($ref_item, 'citation'); + $output = trim(strip_tags(render($build))); + $options[] = [$output, $ref_id]; + } + + return ['referenceFootnotes_list' => $options]; + } + +}