natural search in list pages

This commit is contained in:
Cédric Salvador
2013-09-10 16:43:06 +02:00
parent 9826b202e9
commit d9a26d0aa9
422 changed files with 126638 additions and 126593 deletions

View File

@@ -1,71 +1,71 @@
/*
* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
function placeholderDialog( editor, isEdit )
{
var lang = editor.lang.placeholder,
generalLabel = editor.lang.common.generalTab;
return {
title : lang.title,
minWidth : 300,
minHeight : 80,
contents :
[
{
id : 'info',
label : generalLabel,
title : generalLabel,
elements :
[
{
id : 'text',
type : 'text',
style : 'width: 100%;',
label : lang.text,
'default' : '',
required : true,
validate : CKEDITOR.dialog.validate.notEmpty( lang.textMissing ),
setup : function( element )
{
if ( isEdit )
this.setValue( element.getText().slice( 2, -2 ) );
},
commit : function( element )
{
var text = '[[' + this.getValue() + ']]';
// The placeholder must be recreated.
CKEDITOR.plugins.placeholder.createPlaceholder( editor, element, text );
}
}
]
}
],
onShow : function()
{
if ( isEdit )
this._element = CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor );
this.setupContent( this._element );
},
onOk : function()
{
this.commitContent( this._element );
delete this._element;
}
};
}
CKEDITOR.dialog.add( 'createplaceholder', function( editor )
{
return placeholderDialog( editor );
});
CKEDITOR.dialog.add( 'editplaceholder', function( editor )
{
return placeholderDialog( editor, 1 );
});
} )();
/*
* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
function placeholderDialog( editor, isEdit )
{
var lang = editor.lang.placeholder,
generalLabel = editor.lang.common.generalTab;
return {
title : lang.title,
minWidth : 300,
minHeight : 80,
contents :
[
{
id : 'info',
label : generalLabel,
title : generalLabel,
elements :
[
{
id : 'text',
type : 'text',
style : 'width: 100%;',
label : lang.text,
'default' : '',
required : true,
validate : CKEDITOR.dialog.validate.notEmpty( lang.textMissing ),
setup : function( element )
{
if ( isEdit )
this.setValue( element.getText().slice( 2, -2 ) );
},
commit : function( element )
{
var text = '[[' + this.getValue() + ']]';
// The placeholder must be recreated.
CKEDITOR.plugins.placeholder.createPlaceholder( editor, element, text );
}
}
]
}
],
onShow : function()
{
if ( isEdit )
this._element = CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor );
this.setupContent( this._element );
},
onOk : function()
{
this.commitContent( this._element );
delete this._element;
}
};
}
CKEDITOR.dialog.add( 'createplaceholder', function( editor )
{
return placeholderDialog( editor );
});
CKEDITOR.dialog.add( 'editplaceholder', function( editor )
{
return placeholderDialog( editor, 1 );
});
} )();

View File

@@ -1,27 +1,27 @@
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
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
pt-br.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: 4 Missing: 1
zh-cn.js Found: 5 Missing: 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
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
pt-br.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: 4 Missing: 1
zh-cn.js Found: 5 Missing: 0

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'bg',
{
placeholder :
{
title : 'Настройки на контейнера',
toolbar : 'Нов контейнер',
text : 'Текст за контейнера',
edit : 'Промяна на контейнер',
textMissing : 'Контейнера трябва да съдържа текст.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'bg',
{
placeholder :
{
title : 'Настройки на контейнера',
toolbar : 'Нов контейнер',
text : 'Текст за контейнера',
edit : 'Промяна на контейнер',
textMissing : 'Контейнера трябва да съдържа текст.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'cs',
{
placeholder :
{
title : 'Vlastnosti vyhrazeného prostoru',
toolbar : 'Vytvořit vyhrazený prostor',
text : 'Vyhrazený text',
edit : 'Upravit vyhrazený prostor',
textMissing : 'Vyhrazený prostor musí obsahovat text.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'cs',
{
placeholder :
{
title : 'Vlastnosti vyhrazeného prostoru',
toolbar : 'Vytvořit vyhrazený prostor',
text : 'Vyhrazený text',
edit : 'Upravit vyhrazený prostor',
textMissing : 'Vyhrazený prostor musí obsahovat text.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'cy',
{
placeholder :
{
title : 'Priodweddau\'r Daliwr Geiriau',
toolbar : 'Creu Daliwr Geiriau',
text : 'Testun y Daliwr Geiriau',
edit : 'Golygu\'r Dailwr Geiriau',
textMissing : 'Mae\'n rhaid i\'r daliwr geiriau gynnwys testun.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'cy',
{
placeholder :
{
title : 'Priodweddau\'r Daliwr Geiriau',
toolbar : 'Creu Daliwr Geiriau',
text : 'Testun y Daliwr Geiriau',
edit : 'Golygu\'r Dailwr Geiriau',
textMissing : 'Mae\'n rhaid i\'r daliwr geiriau gynnwys testun.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'da',
{
placeholder :
{
title : 'Egenskaber for pladsholder',
toolbar : 'Opret pladsholder',
text : 'Tekst til pladsholder',
edit : 'Redigér pladsholder',
textMissing : 'Pladsholder skal indeholde tekst'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'da',
{
placeholder :
{
title : 'Egenskaber for pladsholder',
toolbar : 'Opret pladsholder',
text : 'Tekst til pladsholder',
edit : 'Redigér pladsholder',
textMissing : 'Pladsholder skal indeholde tekst'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'de',
{
placeholder :
{
title : 'Platzhalter Einstellungen',
toolbar : 'Platzhalter erstellen',
text : 'Platzhalter Text',
edit : 'Platzhalter bearbeiten',
textMissing : 'Der Platzhalter muss einen Text beinhalten.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'de',
{
placeholder :
{
title : 'Platzhalter Einstellungen',
toolbar : 'Platzhalter erstellen',
text : 'Platzhalter Text',
edit : 'Platzhalter bearbeiten',
textMissing : 'Der Platzhalter muss einen Text beinhalten.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'el',
{
placeholder :
{
title : 'Ιδιότητες Υποκατάστατου Κειμένου',
toolbar : 'Δημιουργία Υποκατάσταστου Κειμένου',
text : 'Υποκαθιστόμενο Κείμενο',
edit : 'Επεξεργασία Υποκατάσταστου Κειμένου',
textMissing : 'Πρέπει να υπάρχει υποκαθιστόμενο κείμενο.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'el',
{
placeholder :
{
title : 'Ιδιότητες Υποκατάστατου Κειμένου',
toolbar : 'Δημιουργία Υποκατάσταστου Κειμένου',
text : 'Υποκαθιστόμενο Κείμενο',
edit : 'Επεξεργασία Υποκατάσταστου Κειμένου',
textMissing : 'Πρέπει να υπάρχει υποκαθιστόμενο κείμενο.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'en',
{
placeholder :
{
title : 'Placeholder Properties',
toolbar : 'Create Placeholder',
text : 'Placeholder Text',
edit : 'Edit Placeholder',
textMissing : 'The placeholder must contain text.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'en',
{
placeholder :
{
title : 'Placeholder Properties',
toolbar : 'Create Placeholder',
text : 'Placeholder Text',
edit : 'Edit Placeholder',
textMissing : 'The placeholder must contain text.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'eo',
{
placeholder :
{
title : 'Atributoj de la rezervita spaco',
toolbar : 'Krei la rezervitan spacon',
text : 'Texto de la rezervita spaco',
edit : 'Modifi la rezervitan spacon',
textMissing : 'La rezervita spaco devas enteni tekston.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'eo',
{
placeholder :
{
title : 'Atributoj de la rezervita spaco',
toolbar : 'Krei la rezervitan spacon',
text : 'Texto de la rezervita spaco',
edit : 'Modifi la rezervitan spacon',
textMissing : 'La rezervita spaco devas enteni tekston.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'et',
{
placeholder :
{
title : 'Kohahoidja omadused',
toolbar : 'Kohahoidja loomine',
text : 'Kohahoidja tekst',
edit : 'Kohahoidja muutmine',
textMissing : 'Kohahoidja peab sisaldama teksti.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'et',
{
placeholder :
{
title : 'Kohahoidja omadused',
toolbar : 'Kohahoidja loomine',
text : 'Kohahoidja tekst',
edit : 'Kohahoidja muutmine',
textMissing : 'Kohahoidja peab sisaldama teksti.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'fa',
{
placeholder :
{
title : 'ویژگیهای محل نگهداری',
toolbar : 'ایجاد یک محل نگهداری',
text : 'متن محل نگهداری',
edit : 'ویرایش محل نگهداری',
textMissing : 'محل نگهداری باید محتوی متن باشد.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'fa',
{
placeholder :
{
title : 'ویژگیهای محل نگهداری',
toolbar : 'ایجاد یک محل نگهداری',
text : 'متن محل نگهداری',
edit : 'ویرایش محل نگهداری',
textMissing : 'محل نگهداری باید محتوی متن باشد.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'fi',
{
placeholder :
{
title : 'Paikkamerkin ominaisuudet',
toolbar : 'Luo paikkamerkki',
text : 'Paikkamerkin teksti',
edit : 'Muokkaa paikkamerkkiä',
textMissing : 'Paikkamerkin täytyy sisältää tekstiä'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'fi',
{
placeholder :
{
title : 'Paikkamerkin ominaisuudet',
toolbar : 'Luo paikkamerkki',
text : 'Paikkamerkin teksti',
edit : 'Muokkaa paikkamerkkiä',
textMissing : 'Paikkamerkin täytyy sisältää tekstiä'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'fr',
{
placeholder :
{
title : 'Propriétés de l\'Espace réservé',
toolbar : 'Créer l\'Espace réservé',
text : 'Texte de l\'Espace réservé',
edit : 'Modifier l\'Espace réservé',
textMissing : 'L\'Espace réservé doit contenir du texte.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'fr',
{
placeholder :
{
title : 'Propriétés de l\'Espace réservé',
toolbar : 'Créer l\'Espace réservé',
text : 'Texte de l\'Espace réservé',
edit : 'Modifier l\'Espace réservé',
textMissing : 'L\'Espace réservé doit contenir du texte.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'he',
{
placeholder :
{
title : 'מאפייני שומר מקום',
toolbar : 'צור שומר מקום',
text : 'תוכן שומר המקום',
edit : 'ערוך שומר מקום',
textMissing : 'שומר המקום חייב להכיל טקסט.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'he',
{
placeholder :
{
title : 'מאפייני שומר מקום',
toolbar : 'צור שומר מקום',
text : 'תוכן שומר המקום',
edit : 'ערוך שומר מקום',
textMissing : 'שומר המקום חייב להכיל טקסט.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'hr',
{
placeholder :
{
title : 'Svojstva rezerviranog mjesta',
toolbar : 'Napravi rezervirano mjesto',
text : 'Tekst rezerviranog mjesta',
edit : 'Uredi rezervirano mjesto',
textMissing : 'Rezervirano mjesto mora sadržavati tekst.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'hr',
{
placeholder :
{
title : 'Svojstva rezerviranog mjesta',
toolbar : 'Napravi rezervirano mjesto',
text : 'Tekst rezerviranog mjesta',
edit : 'Uredi rezervirano mjesto',
textMissing : 'Rezervirano mjesto mora sadržavati tekst.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'it',
{
placeholder :
{
title : 'Proprietà segnaposto',
toolbar : 'Crea segnaposto',
text : 'Testo segnaposto',
edit : 'Modifica segnaposto',
textMissing : 'Il segnaposto deve contenere del testo.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'it',
{
placeholder :
{
title : 'Proprietà segnaposto',
toolbar : 'Crea segnaposto',
text : 'Testo segnaposto',
edit : 'Modifica segnaposto',
textMissing : 'Il segnaposto deve contenere del testo.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'nb',
{
placeholder :
{
title : 'Egenskaper for plassholder',
toolbar : 'Opprett plassholder',
text : 'Tekst for plassholder',
edit : 'Rediger plassholder',
textMissing : 'Plassholderen må inneholde tekst.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'nb',
{
placeholder :
{
title : 'Egenskaper for plassholder',
toolbar : 'Opprett plassholder',
text : 'Tekst for plassholder',
edit : 'Rediger plassholder',
textMissing : 'Plassholderen må inneholde tekst.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'nl',
{
placeholder :
{
title : 'Eigenschappen placeholder',
toolbar : 'Placeholder aanmaken',
text : 'Placeholder tekst',
edit : 'Placeholder wijzigen',
textMissing : 'De placeholder moet tekst bevatten.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'nl',
{
placeholder :
{
title : 'Eigenschappen placeholder',
toolbar : 'Placeholder aanmaken',
text : 'Placeholder tekst',
edit : 'Placeholder wijzigen',
textMissing : 'De placeholder moet tekst bevatten.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'no',
{
placeholder :
{
title : 'Egenskaper for plassholder',
toolbar : 'Opprett plassholder',
text : 'Tekst for plassholder',
edit : 'Rediger plassholder',
textMissing : 'Plassholderen må inneholde tekst.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'no',
{
placeholder :
{
title : 'Egenskaper for plassholder',
toolbar : 'Opprett plassholder',
text : 'Tekst for plassholder',
edit : 'Rediger plassholder',
textMissing : 'Plassholderen må inneholde tekst.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'pl',
{
placeholder :
{
title : 'Właściwości wypełniacza',
toolbar : 'Utwórz wypełniacz',
text : 'Tekst wypełnienia',
edit : 'Edytuj wypełnienie',
textMissing : 'Wypełnienie musi posiadać jakiś tekst.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'pl',
{
placeholder :
{
title : 'Właściwości wypełniacza',
toolbar : 'Utwórz wypełniacz',
text : 'Tekst wypełnienia',
edit : 'Edytuj wypełnienie',
textMissing : 'Wypełnienie musi posiadać jakiś tekst.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'pt-br',
{
placeholder :
{
title : 'Propriedades do Espaço Reservado',
toolbar : 'Criar Espaço Reservado',
text : 'Texto do Espaço Reservado',
edit : 'Editar Espaço Reservado',
textMissing : 'O espaço reservado deve conter texto.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'pt-br',
{
placeholder :
{
title : 'Propriedades do Espaço Reservado',
toolbar : 'Criar Espaço Reservado',
text : 'Texto do Espaço Reservado',
edit : 'Editar Espaço Reservado',
textMissing : 'O espaço reservado deve conter texto.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'tr',
{
placeholder :
{
title : 'Yer tutucu özellikleri',
toolbar : 'Yer tutucu oluşturun',
text : 'Yer tutucu metini',
edit : 'Yer tutucuyu düzenle',
textMissing : 'Yer tutucu metin içermelidir.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'tr',
{
placeholder :
{
title : 'Yer tutucu özellikleri',
toolbar : 'Yer tutucu oluşturun',
text : 'Yer tutucu metini',
edit : 'Yer tutucuyu düzenle',
textMissing : 'Yer tutucu metin içermelidir.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'ug',
{
placeholder :
{
title : 'ئورۇن بەلگە خاسلىقى',
toolbar : 'ئورۇن بەلگە قۇر',
text : 'ئورۇن بەلگە تېكىستى',
edit : 'ئورۇن بەلگە تەھرىر',
textMissing : 'ئورۇن بەلگىسىدە چوقۇم تېكىست بولۇشى لازىم'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'ug',
{
placeholder :
{
title : 'ئورۇن بەلگە خاسلىقى',
toolbar : 'ئورۇن بەلگە قۇر',
text : 'ئورۇن بەلگە تېكىستى',
edit : 'ئورۇن بەلگە تەھرىر',
textMissing : 'ئورۇن بەلگىسىدە چوقۇم تېكىست بولۇشى لازىم'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'uk',
{
placeholder :
{
title : 'Налаштування Заповнювача',
toolbar : 'Створити Заповнювач',
text : 'Текст Заповнювача',
edit : 'Редагувати Заповнювач',
textMissing : 'Заповнювач повинен містити текст.'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'uk',
{
placeholder :
{
title : 'Налаштування Заповнювача',
toolbar : 'Створити Заповнювач',
text : 'Текст Заповнювача',
edit : 'Редагувати Заповнювач',
textMissing : 'Заповнювач повинен містити текст.'
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'vi',
{
placeholder :
{
title : 'Thuộc tính đặt chỗ',
toolbar : 'Tạo đặt chỗ',
text : 'Văn bản đặt chỗ',
edit : 'Chỉnh sửa ',
textMissing : 'The placeholder must contain text.' // MISSING
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'vi',
{
placeholder :
{
title : 'Thuộc tính đặt chỗ',
toolbar : 'Tạo đặt chỗ',
text : 'Văn bản đặt chỗ',
edit : 'Chỉnh sửa ',
textMissing : 'The placeholder must contain text.' // MISSING
}
});

View File

@@ -1,16 +1,16 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'zh-cn',
{
placeholder :
{
title : '占位符属性',
toolbar : '创建占位符',
text : '占位符文字',
edit : '编辑占位符',
textMissing : '占位符必需包含有文字'
}
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'zh-cn',
{
placeholder :
{
title : '占位符属性',
toolbar : '创建占位符',
text : '占位符文字',
edit : '编辑占位符',
textMissing : '占位符必需包含有文字'
}
});

View File

@@ -1,171 +1,171 @@
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "placeholder" plugin.
*
*/
(function()
{
var placeholderReplaceRegex = /\[\[[^\]]+\]\]/g;
CKEDITOR.plugins.add( 'placeholder',
{
requires : [ 'dialog' ],
lang : [ 'bg', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'it', 'nb', 'nl', 'no', 'pl', 'pt-br', 'tr', 'ug', 'uk', 'vi', 'zh-cn' ],
init : function( editor )
{
var lang = editor.lang.placeholder;
editor.addCommand( 'createplaceholder', new CKEDITOR.dialogCommand( 'createplaceholder' ) );
editor.addCommand( 'editplaceholder', new CKEDITOR.dialogCommand( 'editplaceholder' ) );
editor.ui.addButton( 'CreatePlaceholder',
{
label : lang.toolbar,
command :'createplaceholder',
icon : this.path + 'placeholder.gif'
});
if ( editor.addMenuItems )
{
editor.addMenuGroup( 'placeholder', 20 );
editor.addMenuItems(
{
editplaceholder :
{
label : lang.edit,
command : 'editplaceholder',
group : 'placeholder',
order : 1,
icon : this.path + 'placeholder.gif'
}
} );
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( !element || !element.data( 'cke-placeholder' ) )
return null;
return { editplaceholder : CKEDITOR.TRISTATE_OFF };
} );
}
}
editor.on( 'doubleclick', function( evt )
{
if ( CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor ) )
evt.data.dialog = 'editplaceholder';
});
editor.addCss(
'.cke_placeholder' +
'{' +
'background-color: #ffff00;' +
( CKEDITOR.env.gecko ? 'cursor: default;' : '' ) +
'}'
);
editor.on( 'contentDom', function()
{
editor.document.getBody().on( 'resizestart', function( evt )
{
if ( editor.getSelection().getSelectedElement().data( 'cke-placeholder' ) )
evt.data.preventDefault();
});
});
CKEDITOR.dialog.add( 'createplaceholder', this.path + 'dialogs/placeholder.js' );
CKEDITOR.dialog.add( 'editplaceholder', this.path + 'dialogs/placeholder.js' );
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
text : function( text )
{
return text.replace( placeholderReplaceRegex, function( match )
{
return CKEDITOR.plugins.placeholder.createPlaceholder( editor, null, match, 1 );
});
}
});
}
if ( htmlFilter )
{
htmlFilter.addRules(
{
elements :
{
'span' : function( element )
{
if ( element.attributes && element.attributes[ 'data-cke-placeholder' ] )
delete element.name;
}
}
});
}
}
});
})();
CKEDITOR.plugins.placeholder =
{
createPlaceholder : function( editor, oldElement, text, isGet )
{
var element = new CKEDITOR.dom.element( 'span', editor.document );
element.setAttributes(
{
contentEditable : 'false',
'data-cke-placeholder' : 1,
'class' : 'cke_placeholder'
}
);
text && element.setText( text );
if ( isGet )
return element.getOuterHtml();
if ( oldElement )
{
if ( CKEDITOR.env.ie )
{
element.insertAfter( oldElement );
// Some time is required for IE before the element is removed.
setTimeout( function()
{
oldElement.remove();
element.focus();
}, 10 );
}
else
element.replace( oldElement );
}
else
editor.insertElement( element );
return null;
},
getSelectedPlaceHoder : function( editor )
{
var range = editor.getSelection().getRanges()[ 0 ];
range.shrink( CKEDITOR.SHRINK_TEXT );
var node = range.startContainer;
while( node && !( node.type == CKEDITOR.NODE_ELEMENT && node.data( 'cke-placeholder' ) ) )
node = node.getParent();
return node;
}
};
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "placeholder" plugin.
*
*/
(function()
{
var placeholderReplaceRegex = /\[\[[^\]]+\]\]/g;
CKEDITOR.plugins.add( 'placeholder',
{
requires : [ 'dialog' ],
lang : [ 'bg', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'it', 'nb', 'nl', 'no', 'pl', 'pt-br', 'tr', 'ug', 'uk', 'vi', 'zh-cn' ],
init : function( editor )
{
var lang = editor.lang.placeholder;
editor.addCommand( 'createplaceholder', new CKEDITOR.dialogCommand( 'createplaceholder' ) );
editor.addCommand( 'editplaceholder', new CKEDITOR.dialogCommand( 'editplaceholder' ) );
editor.ui.addButton( 'CreatePlaceholder',
{
label : lang.toolbar,
command :'createplaceholder',
icon : this.path + 'placeholder.gif'
});
if ( editor.addMenuItems )
{
editor.addMenuGroup( 'placeholder', 20 );
editor.addMenuItems(
{
editplaceholder :
{
label : lang.edit,
command : 'editplaceholder',
group : 'placeholder',
order : 1,
icon : this.path + 'placeholder.gif'
}
} );
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( !element || !element.data( 'cke-placeholder' ) )
return null;
return { editplaceholder : CKEDITOR.TRISTATE_OFF };
} );
}
}
editor.on( 'doubleclick', function( evt )
{
if ( CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor ) )
evt.data.dialog = 'editplaceholder';
});
editor.addCss(
'.cke_placeholder' +
'{' +
'background-color: #ffff00;' +
( CKEDITOR.env.gecko ? 'cursor: default;' : '' ) +
'}'
);
editor.on( 'contentDom', function()
{
editor.document.getBody().on( 'resizestart', function( evt )
{
if ( editor.getSelection().getSelectedElement().data( 'cke-placeholder' ) )
evt.data.preventDefault();
});
});
CKEDITOR.dialog.add( 'createplaceholder', this.path + 'dialogs/placeholder.js' );
CKEDITOR.dialog.add( 'editplaceholder', this.path + 'dialogs/placeholder.js' );
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
text : function( text )
{
return text.replace( placeholderReplaceRegex, function( match )
{
return CKEDITOR.plugins.placeholder.createPlaceholder( editor, null, match, 1 );
});
}
});
}
if ( htmlFilter )
{
htmlFilter.addRules(
{
elements :
{
'span' : function( element )
{
if ( element.attributes && element.attributes[ 'data-cke-placeholder' ] )
delete element.name;
}
}
});
}
}
});
})();
CKEDITOR.plugins.placeholder =
{
createPlaceholder : function( editor, oldElement, text, isGet )
{
var element = new CKEDITOR.dom.element( 'span', editor.document );
element.setAttributes(
{
contentEditable : 'false',
'data-cke-placeholder' : 1,
'class' : 'cke_placeholder'
}
);
text && element.setText( text );
if ( isGet )
return element.getOuterHtml();
if ( oldElement )
{
if ( CKEDITOR.env.ie )
{
element.insertAfter( oldElement );
// Some time is required for IE before the element is removed.
setTimeout( function()
{
oldElement.remove();
element.focus();
}, 10 );
}
else
element.replace( oldElement );
}
else
editor.insertElement( element );
return null;
},
getSelectedPlaceHoder : function( editor )
{
var range = editor.getSelection().getRanges()[ 0 ];
range.shrink( CKEDITOR.SHRINK_TEXT );
var node = range.startContainer;
while( node && !( node.type == CKEDITOR.NODE_ELEMENT && node.data( 'cke-placeholder' ) ) )
node = node.getParent();
return node;
}
};