diff options
Diffstat (limited to '_source/plugins/devtools')
27 files changed, 0 insertions, 600 deletions
diff --git a/_source/plugins/devtools/lang/_translationstatus.txt b/_source/plugins/devtools/lang/_translationstatus.txt deleted file mode 100644 index fc6f642..0000000 --- a/_source/plugins/devtools/lang/_translationstatus.txt +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-
-bg.js Found: 5 Missing: 0
-cs.js Found: 5 Missing: 0
-cy.js Found: 5 Missing: 0
-da.js Found: 5 Missing: 0
-de.js Found: 5 Missing: 0
-el.js Found: 5 Missing: 0
-eo.js Found: 5 Missing: 0
-et.js Found: 5 Missing: 0
-fa.js Found: 5 Missing: 0
-fi.js Found: 5 Missing: 0
-fr.js Found: 5 Missing: 0
-gu.js Found: 5 Missing: 0
-he.js Found: 5 Missing: 0
-hr.js Found: 5 Missing: 0
-it.js Found: 5 Missing: 0
-nb.js Found: 5 Missing: 0
-nl.js Found: 5 Missing: 0
-no.js Found: 5 Missing: 0
-pl.js Found: 5 Missing: 0
-tr.js Found: 5 Missing: 0
-ug.js Found: 5 Missing: 0
-uk.js Found: 5 Missing: 0
-vi.js Found: 5 Missing: 0
-zh-cn.js Found: 5 Missing: 0
diff --git a/_source/plugins/devtools/lang/bg.js b/_source/plugins/devtools/lang/bg.js deleted file mode 100644 index c524ded..0000000 --- a/_source/plugins/devtools/lang/bg.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'bg',
-{
- devTools :
- {
- title : 'Информация за елемента',
- dialogName : 'Име на диалоговия прозорец',
- tabName : 'Име на таб',
- elementId : 'ID на елемента',
- elementType : 'Тип на елемента'
- }
-});
diff --git a/_source/plugins/devtools/lang/cs.js b/_source/plugins/devtools/lang/cs.js deleted file mode 100644 index 41050c8..0000000 --- a/_source/plugins/devtools/lang/cs.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'cs',
-{
- devTools :
- {
- title : 'Informace o prvku',
- dialogName : 'Název dialogového okna',
- tabName : 'Název karty',
- elementId : 'ID prvku',
- elementType : 'Typ prvku'
- }
-});
diff --git a/_source/plugins/devtools/lang/cy.js b/_source/plugins/devtools/lang/cy.js deleted file mode 100644 index eb65ec7..0000000 --- a/_source/plugins/devtools/lang/cy.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'cy',
-{
- devTools :
- {
- title : 'Gwybodaeth am yr Elfen',
- dialogName : 'Enw ffenestr y deialog',
- tabName : 'Enw\'r tab',
- elementId : 'ID yr Elfen',
- elementType : 'Math yr elfen'
- }
-});
diff --git a/_source/plugins/devtools/lang/da.js b/_source/plugins/devtools/lang/da.js deleted file mode 100644 index 90279c3..0000000 --- a/_source/plugins/devtools/lang/da.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'da',
-{
- devTools :
- {
- title : 'Information på elementet',
- dialogName : 'Dialogboks',
- tabName : 'Tab beskrivelse',
- elementId : 'ID på element',
- elementType : 'Type af element'
- }
-});
diff --git a/_source/plugins/devtools/lang/de.js b/_source/plugins/devtools/lang/de.js deleted file mode 100644 index c958ef9..0000000 --- a/_source/plugins/devtools/lang/de.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'de',
-{
- devTools :
- {
- title : 'Elementinformation',
- dialogName : 'Dialogfenstername',
- tabName : 'Reitername',
- elementId : 'Element ID',
- elementType : 'Elementtyp'
- }
-});
diff --git a/_source/plugins/devtools/lang/el.js b/_source/plugins/devtools/lang/el.js deleted file mode 100644 index 9e7223c..0000000 --- a/_source/plugins/devtools/lang/el.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'el',
-{
- devTools :
- {
- title : 'Πληροφορίες Στοιχείου',
- dialogName : 'Όνομα παραθύρου διαλόγου',
- tabName : 'Όνομα καρτέλας',
- elementId : 'ID Στοιχείου',
- elementType : 'Τύπος στοιχείου'
- }
-});
diff --git a/_source/plugins/devtools/lang/en.js b/_source/plugins/devtools/lang/en.js deleted file mode 100644 index ec2771a..0000000 --- a/_source/plugins/devtools/lang/en.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'en',
-{
- devTools :
- {
- title : 'Element Information',
- dialogName : 'Dialog window name',
- tabName : 'Tab name',
- elementId : 'Element ID',
- elementType : 'Element type'
- }
-});
diff --git a/_source/plugins/devtools/lang/eo.js b/_source/plugins/devtools/lang/eo.js deleted file mode 100644 index 15bceba..0000000 --- a/_source/plugins/devtools/lang/eo.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'eo',
-{
- devTools :
- {
- title : 'Informo pri la elemento',
- dialogName : 'Nomo de la dialogfenestro',
- tabName : 'Langetnomo',
- elementId : 'ID de la elemento',
- elementType : 'Tipo de la elemento'
- }
-});
diff --git a/_source/plugins/devtools/lang/et.js b/_source/plugins/devtools/lang/et.js deleted file mode 100644 index 6ca4ef9..0000000 --- a/_source/plugins/devtools/lang/et.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'et',
-{
- devTools :
- {
- title : 'Elemendi andmed',
- dialogName : 'Dialoogiakna nimi',
- tabName : 'Saki nimi',
- elementId : 'Elemendi ID',
- elementType : 'Elemendi liik'
- }
-});
diff --git a/_source/plugins/devtools/lang/fa.js b/_source/plugins/devtools/lang/fa.js deleted file mode 100644 index 4184d14..0000000 --- a/_source/plugins/devtools/lang/fa.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'fa',
-{
- devTools :
- {
- title : 'اطلاعات عنصر',
- dialogName : 'نام پنجره محاورهای',
- tabName : 'نام برگه',
- elementId : 'ID عنصر',
- elementType : 'نوع عنصر'
- }
-});
diff --git a/_source/plugins/devtools/lang/fi.js b/_source/plugins/devtools/lang/fi.js deleted file mode 100644 index c415660..0000000 --- a/_source/plugins/devtools/lang/fi.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'fi',
-{
- devTools :
- {
- title : 'Elementin tiedot',
- dialogName : 'Dialogi-ikkunan nimi',
- tabName : 'Välilehden nimi',
- elementId : 'Elementin ID',
- elementType : 'Elementin tyyppi'
- }
-});
diff --git a/_source/plugins/devtools/lang/fr.js b/_source/plugins/devtools/lang/fr.js deleted file mode 100644 index 2eab122..0000000 --- a/_source/plugins/devtools/lang/fr.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'fr',
-{
- devTools :
- {
- title : 'Information sur l\'élément',
- dialogName : 'Nom de la fenêtre de dialogue',
- tabName : 'Nom de l\'onglet',
- elementId : 'ID de l\'élément',
- elementType : 'Type de l\'élément'
- }
-});
diff --git a/_source/plugins/devtools/lang/gu.js b/_source/plugins/devtools/lang/gu.js deleted file mode 100644 index cea9282..0000000 --- a/_source/plugins/devtools/lang/gu.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'gu',
-{
- devTools :
- {
- title : 'પ્રાથમિક માહિતી',
- dialogName : 'વિન્ડોનું નામ',
- tabName : 'ટેબનું નામ',
- elementId : 'પ્રાથમિક આઈડી',
- elementType : 'પ્રાથમિક પ્રકાર'
- }
-});
diff --git a/_source/plugins/devtools/lang/he.js b/_source/plugins/devtools/lang/he.js deleted file mode 100644 index b61f3c7..0000000 --- a/_source/plugins/devtools/lang/he.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'he',
-{
- devTools :
- {
- title : 'מידע על האלמנט',
- dialogName : 'שם הדיאלוג',
- tabName : 'שם הטאב',
- elementId : 'ID של האלמנט',
- elementType : 'סוג האלמנט'
- }
-});
diff --git a/_source/plugins/devtools/lang/hr.js b/_source/plugins/devtools/lang/hr.js deleted file mode 100644 index a4e5d1b..0000000 --- a/_source/plugins/devtools/lang/hr.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'hr',
-{
- devTools :
- {
- title : 'Informacije elementa',
- dialogName : 'Naziv prozora za dijalog',
- tabName : 'Naziva jahača',
- elementId : 'ID elementa',
- elementType : 'Vrsta elementa'
- }
-});
diff --git a/_source/plugins/devtools/lang/it.js b/_source/plugins/devtools/lang/it.js deleted file mode 100644 index 27c01ed..0000000 --- a/_source/plugins/devtools/lang/it.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'it',
-{
- devTools :
- {
- title : 'Informazioni elemento',
- dialogName : 'Nome finestra di dialogo',
- tabName : 'Nome Tab',
- elementId : 'ID Elemento',
- elementType : 'Tipo elemento'
- }
-});
diff --git a/_source/plugins/devtools/lang/nb.js b/_source/plugins/devtools/lang/nb.js deleted file mode 100644 index 1df7af1..0000000 --- a/_source/plugins/devtools/lang/nb.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'nb',
-{
- devTools :
- {
- title : 'Elementinformasjon',
- dialogName : 'Navn på dialogvindu',
- tabName : 'Navn på fane',
- elementId : 'Element-ID',
- elementType : 'Elementtype'
- }
-});
diff --git a/_source/plugins/devtools/lang/nl.js b/_source/plugins/devtools/lang/nl.js deleted file mode 100644 index 2c674fc..0000000 --- a/_source/plugins/devtools/lang/nl.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'nl',
-{
- devTools :
- {
- title : 'Elementinformatie',
- dialogName : 'Naam dialoogvenster',
- tabName : 'Tabnaam',
- elementId : 'Element ID',
- elementType : 'Elementtype'
- }
-});
diff --git a/_source/plugins/devtools/lang/no.js b/_source/plugins/devtools/lang/no.js deleted file mode 100644 index 0d51dbf..0000000 --- a/_source/plugins/devtools/lang/no.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'no',
-{
- devTools :
- {
- title : 'Elementinformasjon',
- dialogName : 'Navn på dialogvindu',
- tabName : 'Navn på fane',
- elementId : 'Element-ID',
- elementType : 'Elementtype'
- }
-});
diff --git a/_source/plugins/devtools/lang/pl.js b/_source/plugins/devtools/lang/pl.js deleted file mode 100644 index 1099684..0000000 --- a/_source/plugins/devtools/lang/pl.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'pl',
-{
- devTools :
- {
- title : 'Informacja o elemencie',
- dialogName : 'Nazwa okna dialogowego',
- tabName : 'Nazwa zakładki',
- elementId : 'ID elementu',
- elementType : 'Typ elementu'
- }
-});
diff --git a/_source/plugins/devtools/lang/tr.js b/_source/plugins/devtools/lang/tr.js deleted file mode 100644 index 9940638..0000000 --- a/_source/plugins/devtools/lang/tr.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'tr',
-{
- devTools :
- {
- title : 'Eleman Bilgisi',
- dialogName : 'İletişim pencere ismi',
- tabName : 'Sekme adı',
- elementId : 'Eleman ID',
- elementType : 'Eleman türü'
- }
-});
diff --git a/_source/plugins/devtools/lang/ug.js b/_source/plugins/devtools/lang/ug.js deleted file mode 100644 index 5b1be62..0000000 --- a/_source/plugins/devtools/lang/ug.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'ug',
-{
- devTools :
- {
- title : 'ئېلېمېنت ئۇچۇرى',
- dialogName : 'سۆزلەشكۈ كۆزنەك ئاتى',
- tabName : 'Tab ئاتى',
- elementId : 'ئېلېمېنت كىملىكى',
- elementType : 'ئېلېمېنت تىپى'
- }
-});
diff --git a/_source/plugins/devtools/lang/uk.js b/_source/plugins/devtools/lang/uk.js deleted file mode 100644 index 21c4f29..0000000 --- a/_source/plugins/devtools/lang/uk.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'uk',
-{
- devTools :
- {
- title : 'Відомості про Елемент',
- dialogName : 'Заголовок діалогового вікна',
- tabName : 'Назва вкладки',
- elementId : 'Ідентифікатор Елемента',
- elementType : 'Тип Елемента'
- }
-});
diff --git a/_source/plugins/devtools/lang/vi.js b/_source/plugins/devtools/lang/vi.js deleted file mode 100644 index 9470587..0000000 --- a/_source/plugins/devtools/lang/vi.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'vi',
-{
- devTools :
- {
- title : 'Thông tin thành ph',
- dialogName : 'Tên hộp tho',
- tabName : 'Tên th',
- elementId : 'Mã thành ph',
- elementType : 'Loại thành ph'
- }
-});
diff --git a/_source/plugins/devtools/lang/zh-cn.js b/_source/plugins/devtools/lang/zh-cn.js deleted file mode 100644 index d06ceb2..0000000 --- a/_source/plugins/devtools/lang/zh-cn.js +++ /dev/null @@ -1,16 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.setLang( 'devtools', 'zh-cn',
-{
- devTools :
- {
- title : '元素信息',
- dialogName : '对话框窗口名称',
- tabName : 'Tab 名称',
- elementId : '元素 ID',
- elementType : '元素类型'
- }
-});
diff --git a/_source/plugins/devtools/plugin.js b/_source/plugins/devtools/plugin.js deleted file mode 100644 index 255b1c3..0000000 --- a/_source/plugins/devtools/plugin.js +++ /dev/null @@ -1,173 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-CKEDITOR.plugins.add( 'devtools',
-{
- lang : [ 'bg', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'et', 'fa', 'fi', 'fr', 'gu', 'he', 'hr', 'it', 'nb', 'nl', 'no', 'pl', 'tr', 'ug', 'uk', 'vi', 'zh-cn' ],
-
- init : function( editor )
- {
- editor._.showDialogDefinitionTooltips = 1;
- },
- onLoad : function()
- {
- CKEDITOR.document.appendStyleText( CKEDITOR.config.devtools_styles ||
- '#cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff }' +
- '#cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; }' +
- '#cke_tooltip ul { padding: 0pt; list-style-type: none; }' );
- }
-});
-
-(function()
-{
- function defaultCallback( editor, dialog, element, tabName )
- {
- var lang = editor.lang.devTools,
- link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' +
- ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) +
- '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>',
- str =
- '<h2>' + lang.title + '</h2>' +
- '<ul>' +
- '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' +
- '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>';
-
- if ( element )
- str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>';
-
- str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>';
-
- return str + '</ul>';
- }
-
- function showTooltip( callback, el, editor, dialog, obj, tabName )
- {
- var pos = el.getDocumentPosition(),
- styles = { 'z-index' : CKEDITOR.dialog._.currentZIndex + 10, top : ( pos.y + el.getSize( 'height' ) ) + 'px' };
-
- tooltip.setHtml( callback( editor, dialog, obj, tabName ) );
- tooltip.show();
-
- // Translate coordinate for RTL.
- if ( editor.lang.dir == 'rtl' )
- {
- var viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize();
- styles.right = ( viewPaneSize.width - pos.x - el.getSize( 'width' ) ) + 'px';
- }
- else
- styles.left = pos.x + 'px';
-
- tooltip.setStyles( styles );
- }
-
- var tooltip;
- CKEDITOR.on( 'reset', function()
- {
- tooltip && tooltip.remove();
- tooltip = null;
- });
-
- CKEDITOR.on( 'dialogDefinition', function( evt )
- {
- var editor = evt.editor;
- if ( editor._.showDialogDefinitionTooltips )
- {
- if ( !tooltip )
- {
- tooltip = CKEDITOR.dom.element.createFromHtml( '<div id="cke_tooltip" tabindex="-1" style="position: absolute"></div>', CKEDITOR.document );
- tooltip.hide();
- tooltip.on( 'mouseover', function(){ this.show(); } );
- tooltip.on( 'mouseout', function(){ this.hide(); } );
- tooltip.appendTo( CKEDITOR.document.getBody() );
- }
-
- var dialog = evt.data.definition.dialog,
- callback = editor.config.devtools_textCallback || defaultCallback;
-
- dialog.on( 'load', function()
- {
- var tabs = dialog.parts.tabs.getChildren(), tab;
- for ( var i = 0, len = tabs.count(); i < len; i++ )
- {
- tab = tabs.getItem( i );
- tab.on( 'mouseover', function()
- {
- var id = this.$.id;
- showTooltip( callback, this, editor, dialog, null, id.substring( 4, id.lastIndexOf( '_' ) ) );
- });
- tab.on( 'mouseout', function()
- {
- tooltip.hide();
- });
- }
-
- dialog.foreach( function( obj )
- {
- if ( obj.type in { hbox : 1, vbox : 1 } )
- return;
-
- var el = obj.getElement();
- if ( el )
- {
- el.on( 'mouseover', function()
- {
- showTooltip( callback, this, editor, dialog, obj, dialog._.currentTabId );
- });
- el.on( 'mouseout', function()
- {
- tooltip.hide();
- });
- }
- });
- });
- }
- });
-})();
-
-/**
- * A function that returns the text to be displayed inside the Developer Tools tooltip when hovering over a dialog UI element.
- * There are 4 parameters that are being passed into the function: editor, dialog window, element, tab name.
- * @name editor.config.devtools_textCallback
- * @since 3.6
- * @type Function
- * @default (see example)
- * @example
- * // This is actually the default value.
- * // Show dialog window name, tab ID, and element ID.
- * config.devtools_textCallback = function( editor, dialog, element, tabName )
- * {
- * var lang = editor.lang.devTools,
- * link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' +
- * ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) +
- * '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>',
- * str =
- * '<h2>' + lang.title + '</h2>' +
- * '<ul>' +
- * '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' +
- * '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>';
- *
- * if ( element )
- * str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>';
- *
- * str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>';
- *
- * return str + '</ul>';
- * }
- */
-
-/**
- * A setting that stores CSS rules to be injected into the page with styles to be applied to the tooltip element.
- * @name CKEDITOR.config.devtools_styles
- * @since 3.6
- * @type String
- * @default (see example)
- * @example
- * // This is actually the default value.
- * CKEDITOR.config.devtools_styles = "
- * #cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff }
- * #cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; }
- * #cke_tooltip ul { padding: 0pt; list-style-type: none; }
- * ";
- */
|
