code
stringlengths 1
2.01M
| repo_name
stringlengths 3
62
| path
stringlengths 1
267
| language
stringclasses 231
values | license
stringclasses 13
values | size
int64 1
2.01M
|
|---|---|---|---|---|---|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Hindi language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['hi'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'रिच टेक्स्ट एडिटर, %1, मदद के लिये ALT 0 दबाए.',
// ARIA descriptions.
toolbars : 'एडिटर टूलबार',
editor : 'रिच टेक्स्ट एडिटर',
// Toolbar buttons without dialogs.
source : 'सोर्स',
newPage : 'नया पेज',
save : 'सेव',
preview : 'प्रीव्यू',
cut : 'कट',
copy : 'कॉपी',
paste : 'पेस्ट',
print : 'प्रिन्ट',
underline : 'रेखांकण',
bold : 'बोल्ड',
italic : 'इटैलिक',
selectAll : 'सब सॅलॅक्ट करें',
removeFormat : 'फ़ॉर्मैट हटायें',
strike : 'स्ट्राइक थ्रू',
subscript : 'अधोलेख',
superscript : 'अभिलेख',
horizontalrule : 'हॉरिज़ॉन्टल रेखा इन्सर्ट करें',
pagebreak : 'पेज ब्रेक इन्सर्ट् करें',
pagebreakAlt : 'पेज ब्रेक',
unlink : 'लिंक हटायें',
undo : 'अन्डू',
redo : 'रीडू',
// Common messages and labels.
common :
{
browseServer : 'सर्वर ब्राउज़ करें',
url : 'URL',
protocol : 'प्रोटोकॉल',
upload : 'अपलोड',
uploadSubmit : 'इसे सर्वर को भेजें',
image : 'तस्वीर',
flash : 'फ़्लैश',
form : 'फ़ॉर्म',
checkbox : 'चॅक बॉक्स',
radio : 'रेडिओ बटन',
textField : 'टेक्स्ट फ़ील्ड',
textarea : 'टेक्स्ट एरिया',
hiddenField : 'गुप्त फ़ील्ड',
button : 'बटन',
select : 'चुनाव फ़ील्ड',
imageButton : 'तस्वीर बटन',
notSet : '<सॅट नहीं>',
id : 'Id',
name : 'नाम',
langDir : 'भाषा लिखने की दिशा',
langDirLtr : 'बायें से दायें (LTR)',
langDirRtl : 'दायें से बायें (RTL)',
langCode : 'भाषा कोड',
longDescr : 'अधिक विवरण के लिए URL',
cssClass : 'स्टाइल-शीट क्लास',
advisoryTitle : 'परामर्श शीर्शक',
cssStyle : 'स्टाइल',
ok : 'ठीक है',
cancel : 'रद्द करें',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'सामान्य',
advancedTab : 'ऍड्वान्स्ड',
validateNumberFailed : 'This value is not a number.', // MISSING
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
options : 'Options', // MISSING
target : 'Target', // MISSING
targetNew : 'New Window (_blank)', // MISSING
targetTop : 'Topmost Window (_top)', // MISSING
targetSelf : 'Same Window (_self)', // MISSING
targetParent : 'Parent Window (_parent)', // MISSING
langDirLTR : 'Left to Right (LTR)', // MISSING
langDirRTL : 'Right to Left (RTL)', // MISSING
styles : 'Style', // MISSING
cssClasses : 'Stylesheet Classes', // MISSING
width : 'चौड़ाई',
height : 'ऊँचाई',
align : 'ऍलाइन',
alignLeft : 'दायें',
alignRight : 'दायें',
alignCenter : 'बीच में',
alignTop : 'ऊपर',
alignMiddle : 'मध्य',
alignBottom : 'नीचे',
invalidHeight : 'Height must be a number.', // MISSING
invalidWidth : 'Width must be a number.', // MISSING
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'विशेष करॅक्टर इन्सर्ट करें',
title : 'विशेष करॅक्टर चुनें',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'लिंक इन्सर्ट/संपादन',
other : '<अन्य>',
menu : 'लिंक संपादन',
title : 'लिंक',
info : 'लिंक ',
target : 'टार्गेट',
upload : 'अपलोड',
advanced : 'ऍड्वान्स्ड',
type : 'लिंक प्रकार',
toUrl : 'URL', // MISSING
toAnchor : 'इस पेज का ऐंकर',
toEmail : 'ई-मेल',
targetFrame : '<फ़्रेम>',
targetPopup : '<पॉप-अप विन्डो>',
targetFrameName : 'टार्गेट फ़्रेम का नाम',
targetPopupName : 'पॉप-अप विन्डो का नाम',
popupFeatures : 'पॉप-अप विन्डो फ़ीचर्स',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'स्टेटस बार',
popupLocationBar: 'लोकेशन बार',
popupToolbar : 'टूल बार',
popupMenuBar : 'मॅन्यू बार',
popupFullScreen : 'फ़ुल स्क्रीन (IE)',
popupScrollBars : 'स्क्रॉल बार',
popupDependent : 'डिपेन्डॅन्ट (Netscape)',
popupLeft : 'बायीं तरफ',
popupTop : 'दायीं तरफ',
id : 'Id', // MISSING
langDir : 'भाषा लिखने की दिशा',
langDirLTR : 'बायें से दायें (LTR)',
langDirRTL : 'दायें से बायें (RTL)',
acccessKey : 'ऍक्सॅस की',
name : 'नाम',
langCode : 'भाषा लिखने की दिशा',
tabIndex : 'टैब इन्डॅक्स',
advisoryTitle : 'परामर्श शीर्शक',
advisoryContentType : 'परामर्श कन्टॅन्ट प्रकार',
cssClasses : 'स्टाइल-शीट क्लास',
charset : 'लिंक रिसोर्स करॅक्टर सॅट',
styles : 'स्टाइल',
rel : 'Relationship', // MISSING
selectAnchor : 'ऐंकर चुनें',
anchorName : 'ऐंकर नाम से',
anchorId : 'ऍलीमॅन्ट Id से',
emailAddress : 'ई-मेल पता',
emailSubject : 'संदेश विषय',
emailBody : 'संदेश',
noAnchors : '(डॉक्यूमॅन्ट में ऐंकर्स की संख्या)',
noUrl : 'लिंक URL टाइप करें',
noEmail : 'ई-मेल पता टाइप करें'
},
// Anchor dialog
anchor :
{
toolbar : 'ऐंकर इन्सर्ट/संपादन',
menu : 'ऐंकर प्रॉपर्टीज़',
title : 'ऐंकर प्रॉपर्टीज़',
name : 'ऐंकर का नाम',
errorName : 'ऐंकर का नाम टाइप करें',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties', // MISSING
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Type', // MISSING
start : 'Start', // MISSING
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Circle', // MISSING
disc : 'Disc', // MISSING
square : 'Square', // MISSING
none : 'None', // MISSING
notset : '<not set>', // MISSING
armenian : 'Armenian numbering', // MISSING
georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING
lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING
upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING
lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING
upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING
lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING
decimal : 'Decimal (1, 2, 3, etc.)', // MISSING
decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING
},
// Find And Replace Dialog
findAndReplace :
{
title : 'खोजें और बदलें',
find : 'खोजें',
replace : 'रीप्लेस',
findWhat : 'यह खोजें:',
replaceWith : 'इससे रिप्लेस करें:',
notFoundMsg : 'आपके द्वारा दिया गया टेक्स्ट नहीं मिला',
findOptions : 'Find Options', // MISSING
matchCase : 'केस मिलायें',
matchWord : 'पूरा शब्द मिलायें',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'सभी रिप्लेस करें',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'टेबल',
title : 'टेबल प्रॉपर्टीज़',
menu : 'टेबल प्रॉपर्टीज़',
deleteTable : 'टेबल डिलीट करें',
rows : 'पंक्तियाँ',
columns : 'कालम',
border : 'बॉर्डर साइज़',
widthPx : 'पिक्सैल',
widthPc : 'प्रतिशत',
widthUnit : 'width unit', // MISSING
cellSpace : 'सैल अंतर',
cellPad : 'सैल पैडिंग',
caption : 'शीर्षक',
summary : 'सारांश',
headers : 'Headers', // MISSING
headersNone : 'None', // MISSING
headersColumn : 'First column', // MISSING
headersRow : 'First Row', // MISSING
headersBoth : 'Both', // MISSING
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
invalidBorder : 'Border size must be a number.', // MISSING
invalidWidth : 'Table width must be a number.', // MISSING
invalidHeight : 'Table height must be a number.', // MISSING
invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING
invalidCellPadding : 'Cell padding must be a positive number.', // MISSING
cell :
{
menu : 'खाना',
insertBefore : 'पहले सैल डालें',
insertAfter : 'बाद में सैल डालें',
deleteCell : 'सैल डिलीट करें',
merge : 'सैल मिलायें',
mergeRight : 'बाँया विलय',
mergeDown : 'नीचे विलय करें',
splitHorizontal : 'सैल को क्षैतिज स्थिति में विभाजित करें',
splitVertical : 'सैल को लम्बाकार में विभाजित करें',
title : 'Cell Properties', // MISSING
cellType : 'Cell Type', // MISSING
rowSpan : 'Rows Span', // MISSING
colSpan : 'Columns Span', // MISSING
wordWrap : 'Word Wrap', // MISSING
hAlign : 'Horizontal Alignment', // MISSING
vAlign : 'Vertical Alignment', // MISSING
alignBaseline : 'Baseline', // MISSING
bgColor : 'Background Color', // MISSING
borderColor : 'Border Color', // MISSING
data : 'Data', // MISSING
header : 'Header', // MISSING
yes : 'Yes', // MISSING
no : 'No', // MISSING
invalidWidth : 'Cell width must be a number.', // MISSING
invalidHeight : 'Cell height must be a number.', // MISSING
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
invalidColSpan : 'Columns span must be a whole number.', // MISSING
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'पंक्ति',
insertBefore : 'पहले पंक्ति डालें',
insertAfter : 'बाद में पंक्ति डालें',
deleteRow : 'पंक्तियाँ डिलीट करें'
},
column :
{
menu : 'कालम',
insertBefore : 'पहले कालम डालें',
insertAfter : 'बाद में कालम डालें',
deleteColumn : 'कालम डिलीट करें'
}
},
// Button Dialog.
button :
{
title : 'बटन प्रॉपर्टीज़',
text : 'टेक्स्ट (वैल्यू)',
type : 'प्रकार',
typeBtn : 'बटन',
typeSbm : 'सब्मिट',
typeRst : 'रिसेट'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'चॅक बॉक्स प्रॉपर्टीज़',
radioTitle : 'रेडिओ बटन प्रॉपर्टीज़',
value : 'वैल्यू',
selected : 'सॅलॅक्टॅड'
},
// Form Dialog.
form :
{
title : 'फ़ॉर्म प्रॉपर्टीज़',
menu : 'फ़ॉर्म प्रॉपर्टीज़',
action : 'क्रिया',
method : 'तरीका',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'चुनाव फ़ील्ड प्रॉपर्टीज़',
selectInfo : 'सूचना',
opAvail : 'उपलब्ध विकल्प',
value : 'वैल्यू',
size : 'साइज़',
lines : 'पंक्तियाँ',
chkMulti : 'एक से ज्यादा विकल्प चुनने दें',
opText : 'टेक्स्ट',
opValue : 'वैल्यू',
btnAdd : 'जोड़ें',
btnModify : 'बदलें',
btnUp : 'ऊपर',
btnDown : 'नीचे',
btnSetValue : 'चुनी गई वैल्यू सॅट करें',
btnDelete : 'डिलीट'
},
// Textarea Dialog.
textarea :
{
title : 'टेक्स्त एरिया प्रॉपर्टीज़',
cols : 'कालम',
rows : 'पंक्तियां'
},
// Text Field Dialog.
textfield :
{
title : 'टेक्स्ट फ़ील्ड प्रॉपर्टीज़',
name : 'नाम',
value : 'वैल्यू',
charWidth : 'करॅक्टर की चौढ़ाई',
maxChars : 'अधिकतम करॅक्टर',
type : 'टाइप',
typeText : 'टेक्स्ट',
typePass : 'पास्वर्ड'
},
// Hidden Field Dialog.
hidden :
{
title : 'गुप्त फ़ील्ड प्रॉपर्टीज़',
name : 'नाम',
value : 'वैल्यू'
},
// Image Dialog.
image :
{
title : 'तस्वीर प्रॉपर्टीज़',
titleButton : 'तस्वीर बटन प्रॉपर्टीज़',
menu : 'तस्वीर प्रॉपर्टीज़',
infoTab : 'तस्वीर की जानकारी',
btnUpload : 'इसे सर्वर को भेजें',
upload : 'अपलोड',
alt : 'वैकल्पिक टेक्स्ट',
lockRatio : 'लॉक अनुपात',
resetSize : 'रीसॅट साइज़',
border : 'बॉर्डर',
hSpace : 'हॉरिज़ॉन्टल स्पेस',
vSpace : 'वर्टिकल स्पेस',
alertUrl : 'तस्वीर का URL टाइप करें ',
linkTab : 'लिंक',
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
img2Button : 'Do you want to transform the selected image on a image button?', // MISSING
urlMissing : 'Image source URL is missing.', // MISSING
validateBorder : 'Border must be a whole number.', // MISSING
validateHSpace : 'HSpace must be a whole number.', // MISSING
validateVSpace : 'VSpace must be a whole number.' // MISSING
},
// Flash Dialog
flash :
{
properties : 'फ़्लैश प्रॉपर्टीज़',
propertiesTab : 'Properties', // MISSING
title : 'फ़्लैश प्रॉपर्टीज़',
chkPlay : 'ऑटो प्ले',
chkLoop : 'लूप',
chkMenu : 'फ़्लैश मॅन्यू का प्रयोग करें',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'स्केल',
scaleAll : 'सभी दिखायें',
scaleNoBorder : 'कोई बॉर्डर नहीं',
scaleFit : 'बिल्कुल फ़िट',
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Abs नीचे',
alignAbsMiddle : 'Abs ऊपर',
alignBaseline : 'मूल रेखा',
alignTextTop : 'टेक्स्ट ऊपर',
quality : 'Quality', // MISSING
qualityBest : 'Best', // MISSING
qualityHigh : 'High', // MISSING
qualityAutoHigh : 'Auto High', // MISSING
qualityMedium : 'Medium', // MISSING
qualityAutoLow : 'Auto Low', // MISSING
qualityLow : 'Low', // MISSING
windowModeWindow: 'Window', // MISSING
windowModeOpaque: 'Opaque', // MISSING
windowModeTransparent : 'Transparent', // MISSING
windowMode : 'Window mode', // MISSING
flashvars : 'Variables for Flash', // MISSING
bgcolor : 'बैक्ग्राउन्ड रंग',
hSpace : 'हॉरिज़ॉन्टल स्पेस',
vSpace : 'वर्टिकल स्पेस',
validateSrc : 'लिंक URL टाइप करें',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'वर्तनी (स्पेलिंग) जाँच',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'शब्दकोश में नहीं',
changeTo : 'इसमें बदलें',
btnIgnore : 'इग्नोर',
btnIgnoreAll : 'सभी इग्नोर करें',
btnReplace : 'रिप्लेस',
btnReplaceAll : 'सभी रिप्लेस करें',
btnUndo : 'अन्डू',
noSuggestions : '- कोई सुझाव नहीं -',
progress : 'वर्तनी की जाँच (स्पॅल-चॅक) जारी है...',
noMispell : 'वर्तनी की जाँच : कोई गलत वर्तनी (स्पॅलिंग) नहीं पाई गई',
noChanges : 'वर्तनी की जाँच :कोई शब्द नहीं बदला गया',
oneChange : 'वर्तनी की जाँच : एक शब्द बदला गया',
manyChanges : 'वर्तनी की जाँच : %1 शब्द बदले गये',
ieSpellDownload : 'स्पॅल-चॅकर इन्स्टाल नहीं किया गया है। क्या आप इसे डाउनलोड करना चाहेंगे?'
},
smiley :
{
toolbar : 'स्माइली',
title : 'स्माइली इन्सर्ट करें',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'अंकीय सूची',
bulletedlist : 'बुलॅट सूची',
indent : 'इन्डॅन्ट बढ़ायें',
outdent : 'इन्डॅन्ट कम करें',
justify :
{
left : 'बायीं तरफ',
center : 'बीच में',
right : 'दायीं तरफ',
block : 'ब्लॉक जस्टीफ़ाई'
},
blockquote : 'ब्लॉक-कोट',
clipboard :
{
title : 'पेस्ट',
cutError : 'आपके ब्राउज़र की सुरक्षा सॅटिन्ग्स ने कट करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+X) का प्रयोग करें।',
copyError : 'आपके ब्राआउज़र की सुरक्षा सॅटिन्ग्स ने कॉपी करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+C) का प्रयोग करें।',
pasteMsg : 'Ctrl/Cmd+V का प्रयोग करके पेस्ट करें और ठीक है करें.',
securityMsg : 'आपके ब्राउज़र की सुरक्षा आपके ब्राउज़र की सुरKश सैटिंग के कारण, एडिटर आपके क्लिपबोर्ड डेटा को नहीं पा सकता है. आपको उसे इस विन्डो में दोबारा पेस्ट करना होगा.',
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING
toolbar : 'पेस्ट (वर्ड से)',
title : 'पेस्ट (वर्ड से)',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'पेस्ट (सादा टॅक्स्ट)',
title : 'पेस्ट (सादा टॅक्स्ट)'
},
templates :
{
button : 'टॅम्प्लेट',
title : 'कन्टेन्ट टॅम्प्लेट',
options : 'Template Options', // MISSING
insertOption : 'मूल शब्दों को बदलें',
selectPromptMsg : 'ऍडिटर में ओपन करने हेतु टॅम्प्लेट चुनें(वर्तमान कन्टॅन्ट सेव नहीं होंगे):',
emptyListMsg : '(कोई टॅम्प्लेट डिफ़ाइन नहीं किया गया है)'
},
showBlocks : 'ब्लॉक दिखायें',
stylesCombo :
{
label : 'स्टाइल',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'फ़ॉर्मैट',
panelTitle : 'फ़ॉर्मैट',
tag_p : 'साधारण',
tag_pre : 'फ़ॉर्मैटॅड',
tag_address : 'पता',
tag_h1 : 'शीर्षक 1',
tag_h2 : 'शीर्षक 2',
tag_h3 : 'शीर्षक 3',
tag_h4 : 'शीर्षक 4',
tag_h5 : 'शीर्षक 5',
tag_h6 : 'शीर्षक 6',
tag_div : 'शीर्षक (DIV)'
},
div :
{
title : 'Create Div Container', // MISSING
toolbar : 'Create Div Container', // MISSING
cssClassInputLabel : 'Stylesheet Classes', // MISSING
styleSelectLabel : 'Style', // MISSING
IdInputLabel : 'Id', // MISSING
languageCodeInputLabel : ' Language Code', // MISSING
inlineStyleInputLabel : 'Inline Style', // MISSING
advisoryTitleInputLabel : 'Advisory Title', // MISSING
langDirLabel : 'Language Direction', // MISSING
langDirLTRLabel : 'Left to Right (LTR)', // MISSING
langDirRTLLabel : 'Right to Left (RTL)', // MISSING
edit : 'Edit Div', // MISSING
remove : 'Remove Div' // MISSING
},
iframe :
{
title : 'IFrame Properties', // MISSING
toolbar : 'IFrame', // MISSING
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'फ़ॉन्ट',
voiceLabel : 'Font', // MISSING
panelTitle : 'फ़ॉन्ट'
},
fontSize :
{
label : 'साइज़',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'साइज़'
},
colorButton :
{
textColorTitle : 'टेक्स्ट रंग',
bgColorTitle : 'बैक्ग्राउन्ड रंग',
panelTitle : 'Colors', // MISSING
auto : 'स्वचालित',
more : 'और रंग...'
},
colors :
{
'000' : 'Black', // MISSING
'800000' : 'Maroon', // MISSING
'8B4513' : 'Saddle Brown', // MISSING
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Indigo', // MISSING
'696969' : 'Dark Gray', // MISSING
'B22222' : 'Fire Brick', // MISSING
'A52A2A' : 'Brown', // MISSING
'DAA520' : 'Golden Rod', // MISSING
'006400' : 'Dark Green', // MISSING
'40E0D0' : 'Turquoise', // MISSING
'0000CD' : 'Medium Blue', // MISSING
'800080' : 'Purple', // MISSING
'808080' : 'Gray', // MISSING
'F00' : 'Red', // MISSING
'FF8C00' : 'Dark Orange', // MISSING
'FFD700' : 'Gold', // MISSING
'008000' : 'Green', // MISSING
'0FF' : 'Cyan', // MISSING
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'Spell Check As You Type', // MISSING
opera_title : 'Not supported by Opera', // MISSING
enable : 'Enable SCAYT', // MISSING
disable : 'Disable SCAYT', // MISSING
about : 'About SCAYT', // MISSING
toggle : 'Toggle SCAYT', // MISSING
options : 'Options', // MISSING
langs : 'Languages', // MISSING
moreSuggestions : 'More suggestions', // MISSING
ignore : 'Ignore', // MISSING
ignoreAll : 'Ignore All', // MISSING
addWord : 'Add Word', // MISSING
emptyDic : 'Dictionary name should not be empty.', // MISSING
optionsTab : 'Options', // MISSING
allCaps : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Ignore Words with Numbers', // MISSING
languagesTab : 'Languages', // MISSING
dictionariesTab : 'Dictionaries', // MISSING
dic_field_name : 'Dictionary name', // MISSING
dic_create : 'Create', // MISSING
dic_restore : 'Restore', // MISSING
dic_delete : 'Delete', // MISSING
dic_rename : 'Rename', // MISSING
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING
aboutTab : 'About' // MISSING
},
about :
{
title : 'About CKEditor', // MISSING
dlgTitle : 'About CKEditor', // MISSING
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'For licensing information please visit our web site:', // MISSING
copy : 'Copyright © $1. All rights reserved.' // MISSING
},
maximize : 'मेक्सिमाईज़',
minimize : 'मिनिमाईज़',
fakeobjects :
{
anchor : 'Anchor', // MISSING
flash : 'Flash Animation', // MISSING
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Unknown Object' // MISSING
},
resize : 'Drag to resize', // MISSING
colordialog :
{
title : 'Select color', // MISSING
options : 'Color Options', // MISSING
highlight : 'Highlight', // MISSING
selected : 'Selected Color', // MISSING
clear : 'Clear' // MISSING
},
toolbarCollapse : 'Collapse Toolbar', // MISSING
toolbarExpand : 'Expand Toolbar', // MISSING
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'Text direction from left to right', // MISSING
rtl : 'Text direction from right to left' // MISSING
},
docprops :
{
label : 'डॉक्यूमॅन्ट प्रॉपर्टीज़',
title : 'डॉक्यूमॅन्ट प्रॉपर्टीज़',
design : 'Design', // MISSING
meta : 'मॅटाडेटा',
chooseColor : 'Choose', // MISSING
other : '<अन्य>',
docTitle : 'पेज शीर्षक',
charset : 'करेक्टर सॅट ऍन्कोडिंग',
charsetOther : 'अन्य करेक्टर सॅट ऍन्कोडिंग',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'मध्य यूरोपीय (Central European)',
charsetCT : 'चीनी (Chinese Traditional Big5)',
charsetCR : 'सिरीलिक (Cyrillic)',
charsetGR : 'यवन (Greek)',
charsetJP : 'जापानी (Japanese)',
charsetKR : 'कोरीयन (Korean)',
charsetTR : 'तुर्की (Turkish)',
charsetUN : 'यूनीकोड (UTF-8)',
charsetWE : 'पश्चिम यूरोपीय (Western European)',
docType : 'डॉक्यूमॅन्ट प्रकार शीर्षक',
docTypeOther : 'अन्य डॉक्यूमॅन्ट प्रकार शीर्षक',
xhtmlDec : 'XHTML सूचना सम्मिलित करें',
bgColor : 'बैक्ग्राउन्ड रंग',
bgImage : 'बैक्ग्राउन्ड तस्वीर URL',
bgFixed : 'स्क्रॉल न करने वाला बैक्ग्राउन्ड',
txtColor : 'टेक्स्ट रंग',
margin : 'पेज मार्जिन',
marginTop : 'ऊपर',
marginLeft : 'बायें',
marginRight : 'दायें',
marginBottom : 'नीचे',
metaKeywords : 'डॉक्युमॅन्ट इन्डेक्स संकेतशब्द (अल्पविराम से अलग करें)',
metaDescription : 'डॉक्यूमॅन्ट करॅक्टरन',
metaAuthor : 'लेखक',
metaCopyright : 'कॉपीराइट',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/hi.js
|
JavaScript
|
gpl3
| 33,433
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Spanish language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['es'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Editor de texto, %1, pulse ALT 0 para ayuda.',
// ARIA descriptions.
toolbars : 'Barras de herramientas del editor',
editor : 'Editor de texto enriquecido',
// Toolbar buttons without dialogs.
source : 'Fuente HTML',
newPage : 'Nueva Página',
save : 'Guardar',
preview : 'Vista Previa',
cut : 'Cortar',
copy : 'Copiar',
paste : 'Pegar',
print : 'Imprimir',
underline : 'Subrayado',
bold : 'Negrita',
italic : 'Cursiva',
selectAll : 'Seleccionar Todo',
removeFormat : 'Eliminar Formato',
strike : 'Tachado',
subscript : 'Subíndice',
superscript : 'Superíndice',
horizontalrule : 'Insertar Línea Horizontal',
pagebreak : 'Insertar Salto de Página',
pagebreakAlt : 'Salto de página',
unlink : 'Eliminar Vínculo',
undo : 'Deshacer',
redo : 'Rehacer',
// Common messages and labels.
common :
{
browseServer : 'Ver Servidor',
url : 'URL',
protocol : 'Protocolo',
upload : 'Cargar',
uploadSubmit : 'Enviar al Servidor',
image : 'Imagen',
flash : 'Flash',
form : 'Formulario',
checkbox : 'Casilla de Verificación',
radio : 'Botones de Radio',
textField : 'Campo de Texto',
textarea : 'Area de Texto',
hiddenField : 'Campo Oculto',
button : 'Botón',
select : 'Campo de Selección',
imageButton : 'Botón Imagen',
notSet : '<No definido>',
id : 'Id',
name : 'Nombre',
langDir : 'Orientación',
langDirLtr : 'Izquierda a Derecha (LTR)',
langDirRtl : 'Derecha a Izquierda (RTL)',
langCode : 'Cód. de idioma',
longDescr : 'Descripción larga URL',
cssClass : 'Clases de hojas de estilo',
advisoryTitle : 'Título',
cssStyle : 'Estilo',
ok : 'Aceptar',
cancel : 'Cancelar',
close : 'Cerrar',
preview : 'Previsualización',
generalTab : 'General',
advancedTab : 'Avanzado',
validateNumberFailed : 'El valor no es un número.',
confirmNewPage : 'Cualquier cambio que no se haya guardado se perderá.\r\n¿Está seguro de querer crear una nueva página?',
confirmCancel : 'Algunas de las opciones se han cambiado.\r\n¿Está seguro de querer cerrar el diálogo?',
options : 'Opciones',
target : 'Destino',
targetNew : 'Nueva ventana (_blank)',
targetTop : 'Ventana principal (_top)',
targetSelf : 'Misma ventana (_self)',
targetParent : 'Ventana padre (_parent)',
langDirLTR : 'Izquierda a derecha (LTR)',
langDirRTL : 'Derecha a izquierda (RTL)',
styles : 'Estilos',
cssClasses : 'Clase de la hoja de estilos',
width : 'Anchura',
height : 'Altura',
align : 'Alineación',
alignLeft : 'Izquierda',
alignRight : 'Derecha',
alignCenter : 'Centrado',
alignTop : 'Tope',
alignMiddle : 'Centro',
alignBottom : 'Pie',
invalidHeight : 'Altura debe ser un número.',
invalidWidth : 'Anchura debe ser un número.',
invalidCssLength : 'El valor especificado para el campo "%1" debe ser un número positivo, incluyendo optionalmente una unidad de medida CSS válida (px, %, in, cm, mm, em, ex, pt, o pc).',
invalidHtmlLength : 'El valor especificado para el campo "%1" debe ser un número positivo, incluyendo optionalmente una unidad de medida HTML válida (px o %).',
invalidInlineStyle : 'El valor especificado para el estilo debe consistir en uno o más pares con el formato "nombre: valor", separados por punto y coma.',
cssLengthTooltip : 'Introduca un número para el valor en pixels o un número con una unidad de medida CSS válida (px, %, in, cm, mm, em, ex, pt, o pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, no disponible</span>'
},
contextmenu :
{
options : 'Opciones del menú contextual'
},
// Special char dialog.
specialChar :
{
toolbar : 'Insertar Caracter Especial',
title : 'Seleccione un caracter especial',
options : 'Opciones de caracteres especiales'
},
// Link dialog.
link :
{
toolbar : 'Insertar/Editar Vínculo',
other : '<otro>',
menu : 'Editar Vínculo',
title : 'Vínculo',
info : 'Información de Vínculo',
target : 'Destino',
upload : 'Cargar',
advanced : 'Avanzado',
type : 'Tipo de vínculo',
toUrl : 'URL',
toAnchor : 'Referencia en esta página',
toEmail : 'E-Mail',
targetFrame : '<marco>',
targetPopup : '<ventana emergente>',
targetFrameName : 'Nombre del Marco Destino',
targetPopupName : 'Nombre de Ventana Emergente',
popupFeatures : 'Características de Ventana Emergente',
popupResizable : 'Redimensionable',
popupStatusBar : 'Barra de Estado',
popupLocationBar: 'Barra de ubicación',
popupToolbar : 'Barra de Herramientas',
popupMenuBar : 'Barra de Menú',
popupFullScreen : 'Pantalla Completa (IE)',
popupScrollBars : 'Barras de desplazamiento',
popupDependent : 'Dependiente (Netscape)',
popupLeft : 'Posición Izquierda',
popupTop : 'Posición Derecha',
id : 'Id',
langDir : 'Orientación',
langDirLTR : 'Izquierda a Derecha (LTR)',
langDirRTL : 'Derecha a Izquierda (RTL)',
acccessKey : 'Tecla de Acceso',
name : 'Nombre',
langCode : 'Código idioma',
tabIndex : 'Indice de tabulación',
advisoryTitle : 'Título',
advisoryContentType : 'Tipo de Contenido',
cssClasses : 'Clases de hojas de estilo',
charset : 'Fuente de caracteres vinculado',
styles : 'Estilo',
rel : 'Relación',
selectAnchor : 'Seleccionar una referencia',
anchorName : 'Por Nombre de Referencia',
anchorId : 'Por ID de elemento',
emailAddress : 'Dirección de E-Mail',
emailSubject : 'Título del Mensaje',
emailBody : 'Cuerpo del Mensaje',
noAnchors : '(No hay referencias disponibles en el documento)',
noUrl : 'Por favor escriba el vínculo URL',
noEmail : 'Por favor escriba la dirección de e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Referencia',
menu : 'Propiedades de Referencia',
title : 'Propiedades de Referencia',
name : 'Nombre de la Referencia',
errorName : 'Por favor, complete el nombre de la Referencia',
remove : 'Quitar Referencia'
},
// List style dialog
list:
{
numberedTitle : 'Propiedades de lista numerada',
bulletedTitle : 'Propiedades de viñetas',
type : 'Tipo',
start : 'Inicio',
validateStartNumber :'El Inicio debe ser un número entero.',
circle : 'Círculo',
disc : 'Disco',
square : 'Cuadrado',
none : 'Ninguno',
notset : '<sin establecer>',
armenian : 'Numeración armenia',
georgian : 'Numeración georgiana (an, ban, gan, etc.)',
lowerRoman : 'Números romanos en minúsculas (i, ii, iii, iv, v, etc.)',
upperRoman : 'Números romanos en mayúsculas (I, II, III, IV, V, etc.)',
lowerAlpha : 'Alfabeto en minúsculas (a, b, c, d, e, etc.)',
upperAlpha : 'Alfabeto en mayúsculas (A, B, C, D, E, etc.)',
lowerGreek : 'Letras griegas (alpha, beta, gamma, etc.)',
decimal : 'Decimal (1, 2, 3, etc.)',
decimalLeadingZero : 'Decimal con cero inicial (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Buscar y Reemplazar',
find : 'Buscar',
replace : 'Reemplazar',
findWhat : 'Texto a buscar:',
replaceWith : 'Reemplazar con:',
notFoundMsg : 'El texto especificado no ha sido encontrado.',
findOptions : 'Opciones de búsqueda',
matchCase : 'Coincidir may/min',
matchWord : 'Coincidir toda la palabra',
matchCyclic : 'Buscar en todo el contenido',
replaceAll : 'Reemplazar Todo',
replaceSuccessMsg : 'La expresión buscada ha sido reemplazada %1 veces.'
},
// Table Dialog
table :
{
toolbar : 'Tabla',
title : 'Propiedades de Tabla',
menu : 'Propiedades de Tabla',
deleteTable : 'Eliminar Tabla',
rows : 'Filas',
columns : 'Columnas',
border : 'Tamaño de Borde',
widthPx : 'pixeles',
widthPc : 'porcentaje',
widthUnit : 'unidad de la anchura',
cellSpace : 'Esp. e/celdas',
cellPad : 'Esp. interior',
caption : 'Título',
summary : 'Síntesis',
headers : 'Encabezados',
headersNone : 'Ninguno',
headersColumn : 'Primera columna',
headersRow : 'Primera fila',
headersBoth : 'Ambas',
invalidRows : 'El número de filas debe ser un número mayor que 0.',
invalidCols : 'El número de columnas debe ser un número mayor que 0.',
invalidBorder : 'El tamaño del borde debe ser un número.',
invalidWidth : 'La anchura de tabla debe ser un número.',
invalidHeight : 'La altura de tabla debe ser un número.',
invalidCellSpacing : 'El espaciado entre celdas debe ser un número.',
invalidCellPadding : 'El espaciado interior debe ser un número.',
cell :
{
menu : 'Celda',
insertBefore : 'Insertar celda a la izquierda',
insertAfter : 'Insertar celda a la derecha',
deleteCell : 'Eliminar Celdas',
merge : 'Combinar Celdas',
mergeRight : 'Combinar a la derecha',
mergeDown : 'Combinar hacia abajo',
splitHorizontal : 'Dividir la celda horizontalmente',
splitVertical : 'Dividir la celda verticalmente',
title : 'Propiedades de celda',
cellType : 'Tipo de Celda',
rowSpan : 'Expandir filas',
colSpan : 'Expandir columnas',
wordWrap : 'Ajustar al contenido',
hAlign : 'Alineación Horizontal',
vAlign : 'Alineación Vertical',
alignBaseline : 'Linea de base',
bgColor : 'Color de fondo',
borderColor : 'Color de borde',
data : 'Datos',
header : 'Encabezado',
yes : 'Sí',
no : 'No',
invalidWidth : 'La anchura de celda debe ser un número.',
invalidHeight : 'La altura de celda debe ser un número.',
invalidRowSpan : 'La expansión de filas debe ser un número entero.',
invalidColSpan : 'La expansión de columnas debe ser un número entero.',
chooseColor : 'Elegir'
},
row :
{
menu : 'Fila',
insertBefore : 'Insertar fila en la parte superior',
insertAfter : 'Insertar fila en la parte inferior',
deleteRow : 'Eliminar Filas'
},
column :
{
menu : 'Columna',
insertBefore : 'Insertar columna a la izquierda',
insertAfter : 'Insertar columna a la derecha',
deleteColumn : 'Eliminar Columnas'
}
},
// Button Dialog.
button :
{
title : 'Propiedades de Botón',
text : 'Texto (Valor)',
type : 'Tipo',
typeBtn : 'Boton',
typeSbm : 'Enviar',
typeRst : 'Reestablecer'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Propiedades de Casilla',
radioTitle : 'Propiedades de Botón de Radio',
value : 'Valor',
selected : 'Seleccionado'
},
// Form Dialog.
form :
{
title : 'Propiedades de Formulario',
menu : 'Propiedades de Formulario',
action : 'Acción',
method : 'Método',
encoding : 'Codificación'
},
// Select Field Dialog.
select :
{
title : 'Propiedades de Campo de Selección',
selectInfo : 'Información',
opAvail : 'Opciones disponibles',
value : 'Valor',
size : 'Tamaño',
lines : 'Lineas',
chkMulti : 'Permitir múltiple selección',
opText : 'Texto',
opValue : 'Valor',
btnAdd : 'Agregar',
btnModify : 'Modificar',
btnUp : 'Subir',
btnDown : 'Bajar',
btnSetValue : 'Establecer como predeterminado',
btnDelete : 'Eliminar'
},
// Textarea Dialog.
textarea :
{
title : 'Propiedades de Area de Texto',
cols : 'Columnas',
rows : 'Filas'
},
// Text Field Dialog.
textfield :
{
title : 'Propiedades de Campo de Texto',
name : 'Nombre',
value : 'Valor',
charWidth : 'Caracteres de ancho',
maxChars : 'Máximo caracteres',
type : 'Tipo',
typeText : 'Texto',
typePass : 'Contraseña'
},
// Hidden Field Dialog.
hidden :
{
title : 'Propiedades de Campo Oculto',
name : 'Nombre',
value : 'Valor'
},
// Image Dialog.
image :
{
title : 'Propiedades de Imagen',
titleButton : 'Propiedades de Botón de Imagen',
menu : 'Propiedades de Imagen',
infoTab : 'Información de Imagen',
btnUpload : 'Enviar al Servidor',
upload : 'Cargar',
alt : 'Texto Alternativo',
lockRatio : 'Proporcional',
resetSize : 'Tamaño Original',
border : 'Borde',
hSpace : 'Esp.Horiz',
vSpace : 'Esp.Vert',
alertUrl : 'Por favor escriba la URL de la imagen',
linkTab : 'Vínculo',
button2Img : '¿Desea convertir el botón de imagen en una simple imagen?',
img2Button : '¿Desea convertir la imagen en un botón de imagen?',
urlMissing : 'Debe indicar la URL de la imagen.',
validateBorder : 'El borde debe ser un número.',
validateHSpace : 'El espaciado horizontal debe ser un número.',
validateVSpace : 'El espaciado vertical debe ser un número.'
},
// Flash Dialog
flash :
{
properties : 'Propiedades de Flash',
propertiesTab : 'Propiedades',
title : 'Propiedades de Flash',
chkPlay : 'Autoejecución',
chkLoop : 'Repetir',
chkMenu : 'Activar Menú Flash',
chkFull : 'Permitir pantalla completa',
scale : 'Escala',
scaleAll : 'Mostrar todo',
scaleNoBorder : 'Sin Borde',
scaleFit : 'Ajustado',
access : 'Acceso de scripts',
accessAlways : 'Siempre',
accessSameDomain: 'Mismo dominio',
accessNever : 'Nunca',
alignAbsBottom : 'Abs inferior',
alignAbsMiddle : 'Abs centro',
alignBaseline : 'Línea de base',
alignTextTop : 'Tope del texto',
quality : 'Calidad',
qualityBest : 'La mejor',
qualityHigh : 'Alta',
qualityAutoHigh : 'Auto Alta',
qualityMedium : 'Media',
qualityAutoLow : 'Auto Baja',
qualityLow : 'Baja',
windowModeWindow: 'Ventana',
windowModeOpaque: 'Opaco',
windowModeTransparent : 'Transparente',
windowMode : 'WindowMode',
flashvars : 'Opciones',
bgcolor : 'Color de Fondo',
hSpace : 'Esp.Horiz',
vSpace : 'Esp.Vert',
validateSrc : 'Por favor escriba el vínculo URL',
validateHSpace : 'Esp.Horiz debe ser un número.',
validateVSpace : 'Esp.Vert debe ser un número.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Ortografía',
title : 'Comprobar ortografía',
notAvailable : 'Lo sentimos pero el servicio no está disponible.',
errorLoading : 'Error cargando la aplicación del servidor: %s.',
notInDic : 'No se encuentra en el Diccionario',
changeTo : 'Cambiar a',
btnIgnore : 'Ignorar',
btnIgnoreAll : 'Ignorar Todo',
btnReplace : 'Reemplazar',
btnReplaceAll : 'Reemplazar Todo',
btnUndo : 'Deshacer',
noSuggestions : '- No hay sugerencias -',
progress : 'Control de Ortografía en progreso...',
noMispell : 'Control finalizado: no se encontraron errores',
noChanges : 'Control finalizado: no se ha cambiado ninguna palabra',
oneChange : 'Control finalizado: se ha cambiado una palabra',
manyChanges : 'Control finalizado: se ha cambiado %1 palabras',
ieSpellDownload : 'Módulo de Control de Ortografía no instalado.\r\n¿Desea descargarlo ahora?'
},
smiley :
{
toolbar : 'Emoticonos',
title : 'Insertar un Emoticon',
options : 'Opciones de emoticonos'
},
elementsPath :
{
eleLabel : 'Ruta de los elementos',
eleTitle : '%1 elemento'
},
numberedlist : 'Numeración',
bulletedlist : 'Viñetas',
indent : 'Aumentar Sangría',
outdent : 'Disminuir Sangría',
justify :
{
left : 'Alinear a Izquierda',
center : 'Centrar',
right : 'Alinear a Derecha',
block : 'Justificado'
},
blockquote : 'Cita',
clipboard :
{
title : 'Pegar',
cutError : 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de cortado.\r\nPor favor use el teclado (Ctrl/Cmd+X).',
copyError : 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de copiado.\r\nPor favor use el teclado (Ctrl/Cmd+C).',
pasteMsg : 'Por favor pegue dentro del cuadro utilizando el teclado (<STRONG>Ctrl/Cmd+V</STRONG>);\r\nluego presione <STRONG>Aceptar</STRONG>.',
securityMsg : 'Debido a la configuración de seguridad de su navegador, el editor no tiene acceso al portapapeles.\r\nEs necesario que lo pegue de nuevo en esta ventana.',
pasteArea : 'Zona de pegado'
},
pastefromword :
{
confirmCleanup : 'El texto que desea parece provenir de Word.\r\n¿Desea depurarlo antes de pegarlo?',
toolbar : 'Pegar desde Word',
title : 'Pegar desde Word',
error : 'No ha sido posible limpiar los datos debido a un error interno'
},
pasteText :
{
button : 'Pegar como Texto Plano',
title : 'Pegar como Texto Plano'
},
templates :
{
button : 'Plantillas',
title : 'Contenido de Plantillas',
options : 'Opciones de plantillas',
insertOption : 'Reemplazar el contenido actual',
selectPromptMsg : 'Por favor selecciona la plantilla a abrir en el editor<br>(el contenido actual se perderá):',
emptyListMsg : '(No hay plantillas definidas)'
},
showBlocks : 'Mostrar bloques',
stylesCombo :
{
label : 'Estilo',
panelTitle : 'Estilos para formatear',
panelTitle1 : 'Estilos de párrafo',
panelTitle2 : 'Estilos de carácter',
panelTitle3 : 'Estilos de objeto'
},
format :
{
label : 'Formato',
panelTitle : 'Formato',
tag_p : 'Normal',
tag_pre : 'Con formato',
tag_address : 'Dirección',
tag_h1 : 'Encabezado 1',
tag_h2 : 'Encabezado 2',
tag_h3 : 'Encabezado 3',
tag_h4 : 'Encabezado 4',
tag_h5 : 'Encabezado 5',
tag_h6 : 'Encabezado 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Crear contenedor DIV',
toolbar : 'Crear contenedor DIV',
cssClassInputLabel : 'Clase de hoja de estilos',
styleSelectLabel : 'Estilo',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Codigo de idioma',
inlineStyleInputLabel : 'Estilo',
advisoryTitleInputLabel : 'Título',
langDirLabel : 'Orientación',
langDirLTRLabel : 'Izquierda a Derecha (LTR)',
langDirRTLLabel : 'Derecha a Izquierda (RTL)',
edit : 'Editar Div',
remove : 'Quitar Div'
},
iframe :
{
title : 'Propiedades de iframe',
toolbar : 'IFrame',
noUrl : 'Por favor, escriba la dirección del iframe',
scrolling : 'Activar barras de desplazamiento',
border : 'Mostrar borde del marco'
},
font :
{
label : 'Fuente',
voiceLabel : 'Fuente',
panelTitle : 'Fuente'
},
fontSize :
{
label : 'Tamaño',
voiceLabel : 'Tamaño de fuente',
panelTitle : 'Tamaño'
},
colorButton :
{
textColorTitle : 'Color de Texto',
bgColorTitle : 'Color de Fondo',
panelTitle : 'Colores',
auto : 'Automático',
more : 'Más Colores...'
},
colors :
{
'000' : 'Negro',
'800000' : 'Marrón oscuro',
'8B4513' : 'Marrón tierra',
'2F4F4F' : 'Pizarra Oscuro',
'008080' : 'Azul verdoso',
'000080' : 'Azul marino',
'4B0082' : 'Añil',
'696969' : 'Gris oscuro',
'B22222' : 'Ladrillo',
'A52A2A' : 'Marrón',
'DAA520' : 'Oro oscuro',
'006400' : 'Verde oscuro',
'40E0D0' : 'Turquesa',
'0000CD' : 'Azul medio-oscuro',
'800080' : 'Púrpura',
'808080' : 'Gris',
'F00' : 'Rojo',
'FF8C00' : 'Naranja oscuro',
'FFD700' : 'Oro',
'008000' : 'Verde',
'0FF' : 'Cian',
'00F' : 'Azul',
'EE82EE' : 'Violeta',
'A9A9A9' : 'Gris medio',
'FFA07A' : 'Salmón claro',
'FFA500' : 'Naranja',
'FFFF00' : 'Amarillo',
'00FF00' : 'Lima',
'AFEEEE' : 'Turquesa claro',
'ADD8E6' : 'Azul claro',
'DDA0DD' : 'Violeta claro',
'D3D3D3' : 'Gris claro',
'FFF0F5' : 'Lavanda rojizo',
'FAEBD7' : 'Blanco antiguo',
'FFFFE0' : 'Amarillo claro',
'F0FFF0' : 'Miel',
'F0FFFF' : 'Azul celeste',
'F0F8FF' : 'Azul pálido',
'E6E6FA' : 'Lavanda',
'FFF' : 'Blanco'
},
scayt :
{
title : 'Comprobar Ortografía Mientras Escribe',
opera_title : 'No soportado en Opera',
enable : 'Activar Corrector',
disable : 'Desactivar Corrector',
about : 'Acerca de Corrector',
toggle : 'Cambiar Corrector',
options : 'Opciones',
langs : 'Idiomas',
moreSuggestions : 'Más sugerencias',
ignore : 'Ignorar',
ignoreAll : 'Ignorar Todas',
addWord : 'Añadir palabra',
emptyDic : 'El nombre del diccionario no puede estar en blanco.',
optionsTab : 'Opciones',
allCaps : 'Omitir palabras en MAYÚSCULAS',
ignoreDomainNames : 'Omitir nombres de dominio',
mixedCase : 'Ignorar palabras con combinación de mayúsculas y minúsculas',
mixedWithDigits : 'Omitir palabras con números',
languagesTab : 'Idiomas',
dictionariesTab : 'Diccionarios',
dic_field_name : 'Nombre del diccionario',
dic_create : 'Crear',
dic_restore : 'Recuperar',
dic_delete : 'Borrar',
dic_rename : 'Renombrar',
dic_info : 'Inicialmente el Diccionario de usuario se guarda en una Cookie. Sin embargo, las cookies están limitadas en tamaño. Cuando el diccionario crece a un punto en el que no se puede guardar en una Cookie, el diccionario puede ser almacenado en nuestro servidor. Para almacenar su diccionario personalizado en nuestro servidor debe especificar un nombre para su diccionario. Si ya ha guardado un diccionaro, por favor, escriba su nombre y pulse el botón Recuperar',
aboutTab : 'Acerca de'
},
about :
{
title : 'Acerca de CKEditor',
dlgTitle : 'Acerca de CKEditor',
help : 'Lea la $1 para resolver sus dudas.',
userGuide : 'Guía de usuario de CKEditor',
moreInfo : 'Para información de licencia, por favor visite nuestro sitio web:',
copy : 'Copyright © $1. Todos los derechos reservados.'
},
maximize : 'Maximizar',
minimize : 'Minimizar',
fakeobjects :
{
anchor : 'Ancla',
flash : 'Animación flash',
iframe : 'IFrame',
hiddenfield : 'Campo oculto',
unknown : 'Objeto desconocido'
},
resize : 'Arrastre para redimensionar',
colordialog :
{
title : 'Elegir color',
options : 'Opciones de colores',
highlight : 'Muestra',
selected : 'Elegido',
clear : 'Borrar'
},
toolbarCollapse : 'Contraer barra de herramientas',
toolbarExpand : 'Expandir barra de herramientas',
toolbarGroups :
{
document : 'Documento',
clipboard : 'Portapapeles/Deshacer',
editing : 'Edición',
forms : 'Formularios',
basicstyles : 'Estilos básicos',
paragraph : 'Párrafo',
links : 'Enlaces',
insert : 'Insertar',
styles : 'Estilos',
colors : 'Colores',
tools : 'Herramientas'
},
bidi :
{
ltr : 'Dirección del texto de izquierda a derecha',
rtl : 'Dirección del texto de derecha a izquierda'
},
docprops :
{
label : 'Propiedades del documento',
title : 'Propiedades del documento',
design : 'Diseño',
meta : 'Meta Tags',
chooseColor : 'Elegir',
other : 'Otro...',
docTitle : 'Título de página',
charset : 'Codificación de caracteres',
charsetOther : 'Otra codificación de caracteres',
charsetASCII : 'ASCII',
charsetCE : 'Centro Europeo',
charsetCT : 'Chino Tradicional (Big5)',
charsetCR : 'Ruso',
charsetGR : 'Griego',
charsetJP : 'Japonés',
charsetKR : 'Koreano',
charsetTR : 'Turco',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Europeo occidental',
docType : 'Tipo de documento',
docTypeOther : 'Otro tipo de documento',
xhtmlDec : 'Incluir declaración XHTML',
bgColor : 'Color de fondo',
bgImage : 'Imagen de fondo',
bgFixed : 'Fondo fijo (no se desplaza)',
txtColor : 'Color del texto',
margin : 'Márgenes',
marginTop : 'Superior',
marginLeft : 'Izquierdo',
marginRight : 'Derecho',
marginBottom : 'Inferior',
metaKeywords : 'Palabras claves del documento separadas por coma (meta keywords)',
metaDescription : 'Descripción del documento',
metaAuthor : 'Autor',
metaCopyright : 'Copyright',
previewHtml : '<p>Este es un <strong>texto de ejemplo</strong>. Usted está usando <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/es.js
|
JavaScript
|
gpl3
| 25,154
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Estonian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['et'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rikkalik tekstiredaktor %1, abi jaoks vajuta ALT 0.',
// ARIA descriptions.
toolbars : 'Redaktori tööriistaribad',
editor : 'Rikkalik tekstiredaktor',
// Toolbar buttons without dialogs.
source : 'Lähtekood',
newPage : 'Uus leht',
save : 'Salvestamine',
preview : 'Eelvaade',
cut : 'Lõika',
copy : 'Kopeeri',
paste : 'Aseta',
print : 'Printimine',
underline : 'Allajoonitud',
bold : 'Paks',
italic : 'Kursiiv',
selectAll : 'Kõige valimine',
removeFormat : 'Vormingu eemaldamine',
strike : 'Läbijoonitud',
subscript : 'Allindeks',
superscript : 'Ülaindeks',
horizontalrule : 'Horisontaaljoone sisestamine',
pagebreak : 'Lehevahetuskoha sisestamine',
pagebreakAlt : 'Lehevahetuskoht',
unlink : 'Lingi eemaldamine',
undo : 'Tagasivõtmine',
redo : 'Toimingu kordamine',
// Common messages and labels.
common :
{
browseServer : 'Serveri sirvimine',
url : 'URL',
protocol : 'Protokoll',
upload : 'Laadi üles',
uploadSubmit : 'Saada serverisse',
image : 'Pilt',
flash : 'Flash',
form : 'Vorm',
checkbox : 'Märkeruut',
radio : 'Raadionupp',
textField : 'Tekstilahter',
textarea : 'Tekstiala',
hiddenField : 'Varjatud lahter',
button : 'Nupp',
select : 'Valiklahter',
imageButton : 'Piltnupp',
notSet : '<määramata>',
id : 'ID',
name : 'Nimi',
langDir : 'Keele suund',
langDirLtr : 'Vasakult paremale (LTR)',
langDirRtl : 'Paremalt vasakule (RTL)',
langCode : 'Keele kood',
longDescr : 'Pikk kirjeldus URL',
cssClass : 'Stiilistiku klassid',
advisoryTitle : 'Soovituslik pealkiri',
cssStyle : 'Laad',
ok : 'OK',
cancel : 'Loobu',
close : 'Sulge',
preview : 'Eelvaade',
generalTab : 'Üldine',
advancedTab : 'Täpsemalt',
validateNumberFailed : 'See väärtus pole number.',
confirmNewPage : 'Kõik salvestamata muudatused lähevad kaotsi. Kas oled kindel, et tahad laadida uue lehe?',
confirmCancel : 'Mõned valikud on muudetud. Kas oled kindel, et tahad dialoogi sulgeda?',
options : 'Valikud',
target : 'Sihtkoht',
targetNew : 'Uus aken (_blank)',
targetTop : 'Kõige ülemine aken (_top)',
targetSelf : 'Sama aken (_self)',
targetParent : 'Vanemaken (_parent)',
langDirLTR : 'Vasakult paremale (LTR)',
langDirRTL : 'Paremalt vasakule (RTL)',
styles : 'Stiili',
cssClasses : 'Stiililehe klassid',
width : 'Laius',
height : 'Kõrgus',
align : 'Joondus',
alignLeft : 'Vasak',
alignRight : 'Paremale',
alignCenter : 'Kesk',
alignTop : 'Üles',
alignMiddle : 'Keskele',
alignBottom : 'Alla',
invalidHeight : 'Kõrgus peab olema number.',
invalidWidth : 'Laius peab olema number.',
invalidCssLength : '"%1" välja jaoks määratud väärtus peab olema positiivne täisarv CSS ühikuga (px, %, in, cm, mm, em, ex, pt või pc) või ilma.',
invalidHtmlLength : '"%1" välja jaoks määratud väärtus peab olema positiivne täisarv HTML ühikuga (px või %) või ilma.',
invalidInlineStyle : 'Reasisese stiili määrangud peavad koosnema paarisväärtustest (tuples), mis on semikoolonitega eraldatult järgnevas vormingus: "nimi : väärtus".',
cssLengthTooltip : 'Sisesta väärtus pikslites või number koos sobiva CSS-i ühikuga (px, %, in, cm, mm, em, ex, pt või pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, pole saadaval</span>'
},
contextmenu :
{
options : 'Kontekstimenüü valikud'
},
// Special char dialog.
specialChar :
{
toolbar : 'Erimärgi sisestamine',
title : 'Erimärgi valimine',
options : 'Erimärkide valikud'
},
// Link dialog.
link :
{
toolbar : 'Lingi lisamine/muutmine',
other : '<muu>',
menu : 'Muuda linki',
title : 'Link',
info : 'Lingi info',
target : 'Sihtkoht',
upload : 'Lae üles',
advanced : 'Täpsemalt',
type : 'Lingi liik',
toUrl : 'URL',
toAnchor : 'Ankur sellel lehel',
toEmail : 'E-post',
targetFrame : '<raam>',
targetPopup : '<hüpikaken>',
targetFrameName : 'Sihtmärk raami nimi',
targetPopupName : 'Hüpikakna nimi',
popupFeatures : 'Hüpikakna omadused',
popupResizable : 'Suurust saab muuta',
popupStatusBar : 'Olekuriba',
popupLocationBar: 'Aadressiriba',
popupToolbar : 'Tööriistariba',
popupMenuBar : 'Menüüriba',
popupFullScreen : 'Täisekraan (IE)',
popupScrollBars : 'Kerimisribad',
popupDependent : 'Sõltuv (Netscape)',
popupLeft : 'Vasak asukoht',
popupTop : 'Ülemine asukoht',
id : 'ID',
langDir : 'Keele suund',
langDirLTR : 'Vasakult paremale (LTR)',
langDirRTL : 'Paremalt vasakule (RTL)',
acccessKey : 'Juurdepääsu võti',
name : 'Nimi',
langCode : 'Keele suund',
tabIndex : 'Tab indeks',
advisoryTitle : 'Juhendav tiitel',
advisoryContentType : 'Juhendava sisu tüüp',
cssClasses : 'Stiilistiku klassid',
charset : 'Lingitud ressursi märgistik',
styles : 'Laad',
rel : 'Suhe',
selectAnchor : 'Vali ankur',
anchorName : 'Ankru nime järgi',
anchorId : 'Elemendi id järgi',
emailAddress : 'E-posti aadress',
emailSubject : 'Sõnumi teema',
emailBody : 'Sõnumi tekst',
noAnchors : '(Selles dokumendis pole ankruid)',
noUrl : 'Palun kirjuta lingi URL',
noEmail : 'Palun kirjuta e-posti aadress'
},
// Anchor dialog
anchor :
{
toolbar : 'Ankru sisestamine/muutmine',
menu : 'Ankru omadused',
title : 'Ankru omadused',
name : 'Ankru nimi',
errorName : 'Palun sisesta ankru nimi',
remove : 'Eemalda ankur'
},
// List style dialog
list:
{
numberedTitle : 'Numberloendi omadused',
bulletedTitle : 'Punktloendi omadused',
type : 'Liik',
start : 'Algus',
validateStartNumber :'Loendi algusnumber peab olema täisarv.',
circle : 'Ring',
disc : 'Täpp',
square : 'Ruut',
none : 'Puudub',
notset : '<pole määratud>',
armenian : 'Armeenia numbrid',
georgian : 'Gruusia numbrid (an, ban, gan, jne)',
lowerRoman : 'Väiksed rooma numbrid (i, ii, iii, iv, v, jne)',
upperRoman : 'Suured rooma numbrid (I, II, III, IV, V, jne)',
lowerAlpha : 'Väiketähed (a, b, c, d, e, jne)',
upperAlpha : 'Suurtähed (A, B, C, D, E, jne)',
lowerGreek : 'Kreeka väiketähed (alpha, beta, gamma, jne)',
decimal : 'Numbrid (1, 2, 3, jne)',
decimalLeadingZero : 'Numbrid algusnulliga (01, 02, 03, jne)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Otsimine ja asendamine',
find : 'Otsi',
replace : 'Asenda',
findWhat : 'Otsitav:',
replaceWith : 'Asendus:',
notFoundMsg : 'Otsitud teksti ei leitud.',
findOptions : 'Otsingu valikud',
matchCase : 'Suur- ja väiketähtede eristamine',
matchWord : 'Ainult terved sõnad',
matchCyclic : 'Jätkatakse algusest',
replaceAll : 'Asenda kõik',
replaceSuccessMsg : '%1 vastet asendati.'
},
// Table Dialog
table :
{
toolbar : 'Tabel',
title : 'Tabeli omadused',
menu : 'Tabeli omadused',
deleteTable : 'Kustuta tabel',
rows : 'Read',
columns : 'Veerud',
border : 'Joone suurus',
widthPx : 'pikslit',
widthPc : 'protsenti',
widthUnit : 'laiuse ühik',
cellSpace : 'Lahtri vahe',
cellPad : 'Lahtri täidis',
caption : 'Tabeli tiitel',
summary : 'Kokkuvõte',
headers : 'Päised',
headersNone : 'Puudub',
headersColumn : 'Esimene tulp',
headersRow : 'Esimene rida',
headersBoth : 'Mõlemad',
invalidRows : 'Ridade arv peab olema nullist suurem.',
invalidCols : 'Tulpade arv peab olema nullist suurem.',
invalidBorder : 'Äärise suurus peab olema number.',
invalidWidth : 'Tabeli laius peab olema number.',
invalidHeight : 'Tabeli kõrgus peab olema number.',
invalidCellSpacing : 'Lahtrite vahe peab olema positiivne arv.',
invalidCellPadding : 'Lahtrite polsterdus (padding) peab olema positiivne arv.',
cell :
{
menu : 'Lahter',
insertBefore : 'Sisesta lahter enne',
insertAfter : 'Sisesta lahter peale',
deleteCell : 'Eemalda lahtrid',
merge : 'Ühenda lahtrid',
mergeRight : 'Ühenda paremale',
mergeDown : 'Ühenda alla',
splitHorizontal : 'Poolita lahter horisontaalselt',
splitVertical : 'Poolita lahter vertikaalselt',
title : 'Lahtri omadused',
cellType : 'Lahtri liik',
rowSpan : 'Ridade vahe',
colSpan : 'Tulpade vahe',
wordWrap : 'Sõnade murdmine',
hAlign : 'Horisontaalne joondus',
vAlign : 'Vertikaalne joondus',
alignBaseline : 'Baasjoon',
bgColor : 'Tausta värv',
borderColor : 'Äärise värv',
data : 'Andmed',
header : 'Päis',
yes : 'Jah',
no : 'Ei',
invalidWidth : 'Lahtri laius peab olema number.',
invalidHeight : 'Lahtri kõrgus peab olema number.',
invalidRowSpan : 'Ridade vahe peab olema täisarv.',
invalidColSpan : 'Tulpade vahe peab olema täisarv.',
chooseColor : 'Vali'
},
row :
{
menu : 'Rida',
insertBefore : 'Sisesta rida enne',
insertAfter : 'Sisesta rida peale',
deleteRow : 'Eemalda read'
},
column :
{
menu : 'Veerg',
insertBefore : 'Sisesta veerg enne',
insertAfter : 'Sisesta veerg peale',
deleteColumn : 'Eemalda veerud'
}
},
// Button Dialog.
button :
{
title : 'Nupu omadused',
text : 'Tekst (väärtus)',
type : 'Liik',
typeBtn : 'Nupp',
typeSbm : 'Saada',
typeRst : 'Lähtesta'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Märkeruudu omadused',
radioTitle : 'Raadionupu omadused',
value : 'Väärtus',
selected : 'Märgitud'
},
// Form Dialog.
form :
{
title : 'Vormi omadused',
menu : 'Vormi omadused',
action : 'Toiming',
method : 'Meetod',
encoding : 'Kodeering'
},
// Select Field Dialog.
select :
{
title : 'Valiklahtri omadused',
selectInfo : 'Info',
opAvail : 'Võimalikud valikud:',
value : 'Väärtus',
size : 'Suurus',
lines : 'ridu',
chkMulti : 'Võimalik mitu valikut',
opText : 'Tekst',
opValue : 'Väärtus',
btnAdd : 'Lisa',
btnModify : 'Muuda',
btnUp : 'Üles',
btnDown : 'Alla',
btnSetValue : 'Määra vaikimisi',
btnDelete : 'Kustuta'
},
// Textarea Dialog.
textarea :
{
title : 'Tekstiala omadused',
cols : 'Veerge',
rows : 'Ridu'
},
// Text Field Dialog.
textfield :
{
title : 'Tekstilahtri omadused',
name : 'Nimi',
value : 'Väärtus',
charWidth : 'Laius (tähemärkides)',
maxChars : 'Maksimaalselt tähemärke',
type : 'Liik',
typeText : 'Tekst',
typePass : 'Parool'
},
// Hidden Field Dialog.
hidden :
{
title : 'Varjatud lahtri omadused',
name : 'Nimi',
value : 'Väärtus'
},
// Image Dialog.
image :
{
title : 'Pildi omadused',
titleButton : 'Piltnupu omadused',
menu : 'Pildi omadused',
infoTab : 'Pildi info',
btnUpload : 'Saada serverisse',
upload : 'Lae üles',
alt : 'Alternatiivne tekst',
lockRatio : 'Lukusta kuvasuhe',
resetSize : 'Lähtesta suurus',
border : 'Joon',
hSpace : 'H. vaheruum',
vSpace : 'V. vaheruum',
alertUrl : 'Palun kirjuta pildi URL',
linkTab : 'Link',
button2Img : 'Kas tahad teisendada valitud pildiga nupu tavaliseks pildiks?',
img2Button : 'Kas tahad teisendada valitud tavalise pildi pildiga nupuks?',
urlMissing : 'Pildi lähte-URL on puudu.',
validateBorder : 'Äärise laius peab olema täisarv.',
validateHSpace : 'Horisontaalne vaheruum peab olema täisarv.',
validateVSpace : 'Vertikaalne vaheruum peab olema täisarv.'
},
// Flash Dialog
flash :
{
properties : 'Flashi omadused',
propertiesTab : 'Omadused',
title : 'Flashi omadused',
chkPlay : 'Automaatne start ',
chkLoop : 'Korduv',
chkMenu : 'Flashi menüü lubatud',
chkFull : 'Täisekraan lubatud',
scale : 'Mastaap',
scaleAll : 'Näidatakse kõike',
scaleNoBorder : 'Äärist ei ole',
scaleFit : 'Täpne sobivus',
access : 'Skriptide ligipääs',
accessAlways : 'Kõigile',
accessSameDomain: 'Samalt domeenilt',
accessNever : 'Mitte ühelegi',
alignAbsBottom : 'Abs alla',
alignAbsMiddle : 'Abs keskele',
alignBaseline : 'Baasjoonele',
alignTextTop : 'Tekstist üles',
quality : 'Kvaliteet',
qualityBest : 'Parim',
qualityHigh : 'Kõrge',
qualityAutoHigh : 'Automaatne kõrge',
qualityMedium : 'Keskmine',
qualityAutoLow : 'Automaatne madal',
qualityLow : 'Madal',
windowModeWindow: 'Aken',
windowModeOpaque: 'Läbipaistmatu',
windowModeTransparent : 'Läbipaistev',
windowMode : 'Akna režiim',
flashvars : 'Flashi muutujad',
bgcolor : 'Tausta värv',
hSpace : 'H. vaheruum',
vSpace : 'V. vaheruum',
validateSrc : 'Palun kirjuta lingi URL',
validateHSpace : 'H. vaheruum peab olema number.',
validateVSpace : 'V. vaheruum peab olema number.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Õigekirjakontroll',
title : 'Õigekirjakontroll',
notAvailable : 'Kahjuks ei ole teenus praegu saadaval.',
errorLoading : 'Viga rakenduse teenushosti laadimisel: %s.',
notInDic : 'Puudub sõnastikust',
changeTo : 'Muuda',
btnIgnore : 'Ignoreeri',
btnIgnoreAll : 'Ignoreeri kõiki',
btnReplace : 'Asenda',
btnReplaceAll : 'Asenda kõik',
btnUndo : 'Võta tagasi',
noSuggestions : '- Soovitused puuduvad -',
progress : 'Toimub õigekirja kontroll...',
noMispell : 'Õigekirja kontroll sooritatud: õigekirjuvigu ei leitud',
noChanges : 'Õigekirja kontroll sooritatud: ühtegi sõna ei muudetud',
oneChange : 'Õigekirja kontroll sooritatud: üks sõna muudeti',
manyChanges : 'Õigekirja kontroll sooritatud: %1 sõna muudetud',
ieSpellDownload : 'Õigekirja kontrollija ei ole paigaldatud. Soovid sa selle alla laadida?'
},
smiley :
{
toolbar : 'Emotikon',
title : 'Sisesta emotikon',
options : 'Emotikonide valikud'
},
elementsPath :
{
eleLabel : 'Elementide asukoht',
eleTitle : '%1 element'
},
numberedlist : 'Numberloend',
bulletedlist : 'Punktloend',
indent : 'Taande suurendamine',
outdent : 'Taande vähendamine',
justify :
{
left : 'Vasakjoondus',
center : 'Keskjoondus',
right : 'Paremjoondus',
block : 'Rööpjoondus'
},
blockquote : 'Blokktsitaat',
clipboard :
{
title : 'Asetamine',
cutError : 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt lõigata. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+X).',
copyError : 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt kopeerida. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+C).',
pasteMsg : 'Palun aseta tekst järgnevasse kasti kasutades klaviatuuri klahvikombinatsiooni (<STRONG>Ctrl/Cmd+V</STRONG>) ja vajuta seejärel <STRONG>OK</STRONG>.',
securityMsg : 'Sinu veebisirvija turvaseadete tõttu ei oma redaktor otsest ligipääsu lõikelaua andmetele. Sa pead asetama need uuesti siia aknasse.',
pasteArea : 'Asetamise ala'
},
pastefromword :
{
confirmCleanup : 'Tekst, mida tahad asetada näib pärinevat Wordist. Kas tahad selle enne asetamist puhastada?',
toolbar : 'Asetamine Wordist',
title : 'Asetamine Wordist',
error : 'Asetatud andmete puhastamine ei olnud sisemise vea tõttu võimalik'
},
pasteText :
{
button : 'Asetamine tavalise tekstina',
title : 'Asetamine tavalise tekstina'
},
templates :
{
button : 'Mall',
title : 'Sisumallid',
options : 'Malli valikud',
insertOption : 'Praegune sisu asendatakse',
selectPromptMsg : 'Palun vali mall, mis avada redaktoris<br />(praegune sisu läheb kaotsi):',
emptyListMsg : '(Ühtegi malli ei ole defineeritud)'
},
showBlocks : 'Blokkide näitamine',
stylesCombo :
{
label : 'Stiil',
panelTitle : 'Vormindusstiilid',
panelTitle1 : 'Blokkstiilid',
panelTitle2 : 'Reasisesed stiilid',
panelTitle3 : 'Objektistiilid'
},
format :
{
label : 'Vorming',
panelTitle : 'Vorming',
tag_p : 'Tavaline',
tag_pre : 'Vormindatud',
tag_address : 'Aadress',
tag_h1 : 'Pealkiri 1',
tag_h2 : 'Pealkiri 2',
tag_h3 : 'Pealkiri 3',
tag_h4 : 'Pealkiri 4',
tag_h5 : 'Pealkiri 5',
tag_h6 : 'Pealkiri 6',
tag_div : 'Tavaline (DIV)'
},
div :
{
title : 'Div-konteineri loomine',
toolbar : 'Div-konteineri loomine',
cssClassInputLabel : 'Stiililehe klassid',
styleSelectLabel : 'Stiil',
IdInputLabel : 'ID',
languageCodeInputLabel : ' Keelekood',
inlineStyleInputLabel : 'Reasisene stiil',
advisoryTitleInputLabel : 'Soovitatav pealkiri',
langDirLabel : 'Keele suund',
langDirLTRLabel : 'Vasakult paremale (LTR)',
langDirRTLLabel : 'Paremalt vasakule (RTL)',
edit : 'Muuda Div',
remove : 'Eemalda Div'
},
iframe :
{
title : 'IFrame omadused',
toolbar : 'IFrame',
noUrl : 'Vali iframe URLi liik',
scrolling : 'Kerimisribade lubamine',
border : 'Raami äärise näitamine'
},
font :
{
label : 'Kiri',
voiceLabel : 'Kiri',
panelTitle : 'Kiri'
},
fontSize :
{
label : 'Suurus',
voiceLabel : 'Kirja suurus',
panelTitle : 'Suurus'
},
colorButton :
{
textColorTitle : 'Teksti värv',
bgColorTitle : 'Tausta värv',
panelTitle : 'Värvid',
auto : 'Automaatne',
more : 'Rohkem värve...'
},
colors :
{
'000' : 'Must',
'800000' : 'Kastanpruun',
'8B4513' : 'Sadulapruun',
'2F4F4F' : 'Tume paehall',
'008080' : 'Sinakasroheline',
'000080' : 'Meresinine',
'4B0082' : 'Indigosinine',
'696969' : 'Tumehall',
'B22222' : 'Šamottkivi',
'A52A2A' : 'Pruun',
'DAA520' : 'Kuldkollane',
'006400' : 'Tumeroheline',
'40E0D0' : 'Türkiissinine',
'0000CD' : 'Keskmine sinine',
'800080' : 'Lilla',
'808080' : 'Hall',
'F00' : 'Punanae',
'FF8C00' : 'Tumeoranž',
'FFD700' : 'Kuldne',
'008000' : 'Roheline',
'0FF' : 'Tsüaniidsinine',
'00F' : 'Sinine',
'EE82EE' : 'Violetne',
'A9A9A9' : 'Tuhm hall',
'FFA07A' : 'Hele lõhe',
'FFA500' : 'Oranž',
'FFFF00' : 'Kollane',
'00FF00' : 'Lubja hall',
'AFEEEE' : 'Kahvatu türkiis',
'ADD8E6' : 'Helesinine',
'DDA0DD' : 'Ploomililla',
'D3D3D3' : 'Helehall',
'FFF0F5' : 'Lavendlipunane',
'FAEBD7' : 'Antiikvalge',
'FFFFE0' : 'Helekollane',
'F0FFF0' : 'Meloniroheline',
'F0FFFF' : 'Taevasinine',
'F0F8FF' : 'Beebisinine',
'E6E6FA' : 'Lavendel',
'FFF' : 'Valge'
},
scayt :
{
title : 'Õigekirjakontroll kirjutamise ajal',
opera_title : 'Operas pole toetatud',
enable : 'SCAYT lubatud',
disable : 'SCAYT keelatud',
about : 'SCAYT-ist lähemalt',
toggle : 'SCAYT sisse/välja lülitamine',
options : 'Valikud',
langs : 'Keeled',
moreSuggestions : 'Veel soovitusi',
ignore : 'Eira',
ignoreAll : 'Eira kõiki',
addWord : 'Lisa sõna',
emptyDic : 'Sõnaraamatu nimi ei tohi olla tühi.',
optionsTab : 'Valikud',
allCaps : 'Läbivate suurtähtedega sõnade eiramine',
ignoreDomainNames : 'Domeeninimede eiramine',
mixedCase : 'Tavapäratu tõstuga sõnade eiramine',
mixedWithDigits : 'Numbreid sisaldavate sõnade eiramine',
languagesTab : 'Keeled',
dictionariesTab : 'Sõnaraamatud',
dic_field_name : 'Sõnaraamatu nimi',
dic_create : 'Loo',
dic_restore : 'Taasta',
dic_delete : 'Kustuta',
dic_rename : 'Nimeta ümber',
dic_info : 'Alguses säilitatakse kasutaja sõnaraamatut küpsises. Küpsise suurus on piiratud. Pärast sõnaraamatu kasvamist nii suureks, et see küpsisesse ei mahu, võib sõnaraamatut hoida meie serveris. Oma isikliku sõnaraamatu hoidmiseks meie serveris pead andma sellele nime. Kui sa juba oled sõnaraamatu salvestanud, sisesta selle nimi ja klõpsa taastamise nupule.',
aboutTab : 'Lähemalt'
},
about :
{
title : 'CKEditorist',
dlgTitle : 'CKEditorist',
help : 'Abi jaoks vaata $1.',
userGuide : 'CKEditori kasutusjuhendit',
moreInfo : 'Litsentsi andmed leiab meie veebilehelt:',
copy : 'Copyright © $1. Kõik õigused kaitstud.'
},
maximize : 'Maksimeerimine',
minimize : 'Minimeerimine',
fakeobjects :
{
anchor : 'Ankur',
flash : 'Flashi animatsioon',
iframe : 'IFrame',
hiddenfield : 'Varjatud väli',
unknown : 'Tundmatu objekt'
},
resize : 'Suuruse muutmiseks lohista',
colordialog :
{
title : 'Värvi valimine',
options : 'Värvi valikud',
highlight : 'Näidis',
selected : 'Valitud värv',
clear : 'Eemalda'
},
toolbarCollapse : 'Tööriistariba peitmine',
toolbarExpand : 'Tööriistariba näitamine',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Lõikelaud/tagasivõtmine',
editing : 'Muutmine',
forms : 'Vormid',
basicstyles : 'Põhistiilid',
paragraph : 'Lõik',
links : 'Lingid',
insert : 'Sisesta',
styles : 'Stiilid',
colors : 'Värvid',
tools : 'Tööriistad'
},
bidi :
{
ltr : 'Teksti suund vasakult paremale',
rtl : 'Teksti suund paremalt vasakule'
},
docprops :
{
label : 'Dokumendi omadused',
title : 'Dokumendi omadused',
design : 'Disain',
meta : 'Meta andmed',
chooseColor : 'Vali',
other : '<muu>',
docTitle : 'Lehekülje tiitel',
charset : 'Märgistiku kodeering',
charsetOther : 'Ülejäänud märgistike kodeeringud',
charsetASCII : 'ASCII',
charsetCE : 'Kesk-Euroopa',
charsetCT : 'Hiina traditsiooniline (Big5)',
charsetCR : 'Kirillisa',
charsetGR : 'Kreeka',
charsetJP : 'Jaapani',
charsetKR : 'Korea',
charsetTR : 'Türgi',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Lääne-Euroopa',
docType : 'Dokumendi tüüppäis',
docTypeOther : 'Teised dokumendi tüüppäised',
xhtmlDec : 'Arva kaasa XHTML deklaratsioonid',
bgColor : 'Taustavärv',
bgImage : 'Taustapildi URL',
bgFixed : 'Mittekeritav tagataust',
txtColor : 'Teksti värv',
margin : 'Lehekülje äärised',
marginTop : 'Ülaserv',
marginLeft : 'Vasakserv',
marginRight : 'Paremserv',
marginBottom : 'Alaserv',
metaKeywords : 'Dokumendi võtmesõnad (eraldatud komadega)',
metaDescription : 'Dokumendi kirjeldus',
metaAuthor : 'Autor',
metaCopyright : 'Autoriõigus',
previewHtml : '<p>See on <strong>näidistekst</strong>. Sa kasutad <a href="javascript:void(0)">CKEditori</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/et.js
|
JavaScript
|
gpl3
| 23,763
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Faroese language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['fo'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1, trýst ALT og 0 fyri vegleiðing.',
// ARIA descriptions.
toolbars : 'Editor toolbars',
editor : 'Rich Text Editor',
// Toolbar buttons without dialogs.
source : 'Kelda',
newPage : 'Nýggj síða',
save : 'Goym',
preview : 'Frumsýning',
cut : 'Kvett',
copy : 'Avrita',
paste : 'Innrita',
print : 'Prenta',
underline : 'Undirstrikað',
bold : 'Feit skrift',
italic : 'Skráskrift',
selectAll : 'Markera alt',
removeFormat : 'Strika sniðgeving',
strike : 'Yvirstrikað',
subscript : 'Lækkað skrift',
superscript : 'Hækkað skrift',
horizontalrule : 'Ger vatnrætta linju',
pagebreak : 'Ger síðuskift',
pagebreakAlt : 'Síðuskift',
unlink : 'Strika tilknýti',
undo : 'Angra',
redo : 'Vend aftur',
// Common messages and labels.
common :
{
browseServer : 'Ambætarakagi',
url : 'URL',
protocol : 'Protokoll',
upload : 'Send til ambætaran',
uploadSubmit : 'Send til ambætaran',
image : 'Myndir',
flash : 'Flash',
form : 'Formur',
checkbox : 'Flugubein',
radio : 'Radioknøttur',
textField : 'Tekstteigur',
textarea : 'Tekstumráði',
hiddenField : 'Fjaldur teigur',
button : 'Knøttur',
select : 'Valskrá',
imageButton : 'Myndaknøttur',
notSet : '<ikki sett>',
id : 'Id',
name : 'Navn',
langDir : 'Tekstkós',
langDirLtr : 'Frá vinstru til høgru (LTR)',
langDirRtl : 'Frá høgru til vinstru (RTL)',
langCode : 'Málkoda',
longDescr : 'Víðkað URL frágreiðing',
cssClass : 'Typografi klassar',
advisoryTitle : 'Vegleiðandi heiti',
cssStyle : 'Typografi',
ok : 'Góðkent',
cancel : 'Avlýst',
close : 'Lat aftur',
preview : 'Frumsýn',
generalTab : 'Generelt',
advancedTab : 'Fjølbroytt',
validateNumberFailed : 'Hetta er ikki eitt tal.',
confirmNewPage : 'Allar ikki goymdar broytingar í hesum innihaldið hvørva. Skal nýggj síða lesast kortini?',
confirmCancel : 'Nakrir valmøguleikar eru broyttir. Ert tú vísur í, at dialogurin skal latast aftur?',
options : 'Options',
target : 'Target',
targetNew : 'Nýtt vindeyga (_blank)',
targetTop : 'Vindeyga ovast (_top)',
targetSelf : 'Sama vindeyga (_self)',
targetParent : 'Upphavligt vindeyga (_parent)',
langDirLTR : 'Frá vinstru til høgru (LTR)',
langDirRTL : 'Frá høgru til vinstru (RTL)',
styles : 'Style',
cssClasses : 'Stylesheet Classes',
width : 'Breidd',
height : 'Hædd',
align : 'Justering',
alignLeft : 'Vinstra',
alignRight : 'Høgra',
alignCenter : 'Miðsett',
alignTop : 'Ovast',
alignMiddle : 'Miðja',
alignBottom : 'Botnur',
invalidHeight : 'Hædd má vera eitt tal.',
invalidWidth : 'Breidd má vera eitt tal.',
invalidCssLength : 'Virðið sett í "%1" feltið má vera eitt positivt tal, við ella uttan gyldugum CSS mátieind (px, %, in, cm, mm, em, ex, pt, ella pc).',
invalidHtmlLength : 'Virðið sett í "%1" feltiðield má vera eitt positivt tal, við ella uttan gyldugum CSS mátieind (px ella %).',
invalidInlineStyle : 'Virði specifiserað fyri inline style má hava eitt ella fleiri pør (tuples) skrivað sum "name : value", hvørt parið sundurskilt við semi-colon.',
cssLengthTooltip : 'Skriva eitt tal fyri eitt virði í pixels ella eitt tal við gyldigum CSS eind (px, %, in, cm, mm, em, ex, pt, ella pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, ikki tøkt</span>'
},
contextmenu :
{
options : 'Context Menu Options'
},
// Special char dialog.
specialChar :
{
toolbar : 'Set inn sertekn',
title : 'Vel sertekn',
options : 'Møguleikar við serteknum'
},
// Link dialog.
link :
{
toolbar : 'Ger/broyt tilknýti',
other : '<annað>',
menu : 'Broyt tilknýti',
title : 'Tilknýti',
info : 'Tilknýtis upplýsingar',
target : 'Target',
upload : 'Send til ambætaran',
advanced : 'Fjølbroytt',
type : 'Tilknýtisslag',
toUrl : 'URL',
toAnchor : 'Tilknýti til marknastein í tekstinum',
toEmail : 'Teldupostur',
targetFrame : '<ramma>',
targetPopup : '<popup vindeyga>',
targetFrameName : 'Vís navn vindeygans',
targetPopupName : 'Popup vindeygans navn',
popupFeatures : 'Popup vindeygans víðkaðu eginleikar',
popupResizable : 'Stødd kann broytast',
popupStatusBar : 'Støðufrágreiðingarbjálki',
popupLocationBar: 'Adressulinja',
popupToolbar : 'Amboðsbjálki',
popupMenuBar : 'Skrábjálki',
popupFullScreen : 'Fullur skermur (IE)',
popupScrollBars : 'Rullibjálki',
popupDependent : 'Bundið (Netscape)',
popupLeft : 'Frástøða frá vinstru',
popupTop : 'Frástøða frá íerva',
id : 'Id',
langDir : 'Tekstkós',
langDirLTR : 'Frá vinstru til høgru (LTR)',
langDirRTL : 'Frá høgru til vinstru (RTL)',
acccessKey : 'Snarvegisknöttur',
name : 'Navn',
langCode : 'Tekstkós',
tabIndex : 'Tabulator indeks',
advisoryTitle : 'Vegleiðandi heiti',
advisoryContentType : 'Vegleiðandi innihaldsslag',
cssClasses : 'Typografi klassar',
charset : 'Atknýtt teknsett',
styles : 'Typografi',
rel : 'Relatión',
selectAnchor : 'Vel ein marknastein',
anchorName : 'Eftir navni á marknasteini',
anchorId : 'Eftir element Id',
emailAddress : 'Teldupost-adressa',
emailSubject : 'Evni',
emailBody : 'Breyðtekstur',
noAnchors : '(Eingir marknasteinar eru í hesum dokumentið)',
noUrl : 'Vinarliga skriva tilknýti (URL)',
noEmail : 'Vinarliga skriva teldupost-adressu'
},
// Anchor dialog
anchor :
{
toolbar : 'Ger/broyt marknastein',
menu : 'Eginleikar fyri marknastein',
title : 'Eginleikar fyri marknastein',
name : 'Heiti marknasteinsins',
errorName : 'Vinarliga rita marknasteinsins heiti',
remove : 'Strika marknastein'
},
// List style dialog
list:
{
numberedTitle : 'Eginleikar fyri lista við tølum',
bulletedTitle : 'Eginleikar fyri lista við prikkum',
type : 'Slag',
start : 'Byrjan',
validateStartNumber :'Byrjunartalið fyri lista má vera eitt heiltal.',
circle : 'Sirkul',
disc : 'Disc',
square : 'Fýrkantur',
none : 'Einki',
notset : '<ikki sett>',
armenian : 'Armensk talskipan',
georgian : 'Georgisk talskipan (an, ban, gan, osv.)',
lowerRoman : 'Lítil rómaratøl (i, ii, iii, iv, v, etc.)',
upperRoman : 'Stór rómaratøl (I, II, III, IV, V, etc.)',
lowerAlpha : 'Lítlir bókstavir (a, b, c, d, e, etc.)',
upperAlpha : 'Stórir bókstavir (A, B, C, D, E, etc.)',
lowerGreek : 'Grikskt við lítlum (alpha, beta, gamma, etc.)',
decimal : 'Vanlig tøl (1, 2, 3, etc.)',
decimalLeadingZero : 'Tøl við null frammanfyri (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Finn og broyt',
find : 'Leita',
replace : 'Yvirskriva',
findWhat : 'Finn:',
replaceWith : 'Yvirskriva við:',
notFoundMsg : 'Leititeksturin varð ikki funnin',
findOptions : 'Finn møguleikar',
matchCase : 'Munur á stórum og smáum bókstavum',
matchWord : 'Bert heil orð',
matchCyclic : 'Match cyclic',
replaceAll : 'Yvirskriva alt',
replaceSuccessMsg : '%1 úrslit broytt.'
},
// Table Dialog
table :
{
toolbar : 'Tabell',
title : 'Eginleikar fyri tabell',
menu : 'Eginleikar fyri tabell',
deleteTable : 'Strika tabell',
rows : 'Røðir',
columns : 'Kolonnur',
border : 'Bordabreidd',
widthPx : 'pixels',
widthPc : 'prosent',
widthUnit : 'breiddar unit',
cellSpace : 'Fjarstøða millum meskar',
cellPad : 'Meskubreddi',
caption : 'Tabellfrágreiðing',
summary : 'Samandráttur',
headers : 'Yvirskriftir',
headersNone : 'Eingin',
headersColumn : 'Fyrsta kolonna',
headersRow : 'Fyrsta rað',
headersBoth : 'Báðir',
invalidRows : 'Talið av røðum má vera eitt tal størri enn 0.',
invalidCols : 'Talið av kolonnum má vera eitt tal størri enn 0.',
invalidBorder : 'Borda-stødd má vera eitt tal.',
invalidWidth : 'Tabell-breidd má vera eitt tal.',
invalidHeight : 'Tabell-hædd má vera eitt tal.',
invalidCellSpacing : 'Cell spacing má vera eitt tal.',
invalidCellPadding : 'Cell padding má vera eitt tal.',
cell :
{
menu : 'Meski',
insertBefore : 'Set meska inn áðrenn',
insertAfter : 'Set meska inn aftaná',
deleteCell : 'Strika meskar',
merge : 'Flætta meskar',
mergeRight : 'Flætta meskar til høgru',
mergeDown : 'Flætta saman',
splitHorizontal : 'Kloyv meska vatnrætt',
splitVertical : 'Kloyv meska loddrætt',
title : 'Mesku eginleikar',
cellType : 'Mesku slag',
rowSpan : 'Ræð spenni',
colSpan : 'Kolonnu spenni',
wordWrap : 'Orðkloyving',
hAlign : 'Horisontal plasering',
vAlign : 'Loddrøtt plasering',
alignBaseline : 'Basislinja',
bgColor : 'Bakgrundslitur',
borderColor : 'Bordalitur',
data : 'Data',
header : 'Header',
yes : 'Ja',
no : 'Nei',
invalidWidth : 'Meskubreidd má vera eitt tal.',
invalidHeight : 'Meskuhædd má vera eitt tal.',
invalidRowSpan : 'Raðspennið má vera eitt heiltal.',
invalidColSpan : 'Kolonnuspennið má vera eitt heiltal.',
chooseColor : 'Vel'
},
row :
{
menu : 'Rað',
insertBefore : 'Set rað inn áðrenn',
insertAfter : 'Set rað inn aftaná',
deleteRow : 'Strika røðir'
},
column :
{
menu : 'Kolonna',
insertBefore : 'Set kolonnu inn áðrenn',
insertAfter : 'Set kolonnu inn aftaná',
deleteColumn : 'Strika kolonnur'
}
},
// Button Dialog.
button :
{
title : 'Eginleikar fyri knøtt',
text : 'Tekstur',
type : 'Slag',
typeBtn : 'Knøttur',
typeSbm : 'Send',
typeRst : 'Nullstilla'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Eginleikar fyri flugubein',
radioTitle : 'Eginleikar fyri radioknøtt',
value : 'Virði',
selected : 'Valt'
},
// Form Dialog.
form :
{
title : 'Eginleikar fyri Form',
menu : 'Eginleikar fyri Form',
action : 'Hending',
method : 'Háttur',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Eginleikar fyri valskrá',
selectInfo : 'Upplýsingar',
opAvail : 'Tøkir møguleikar',
value : 'Virði',
size : 'Stødd',
lines : 'Linjur',
chkMulti : 'Loyv fleiri valmøguleikum samstundis',
opText : 'Tekstur',
opValue : 'Virði',
btnAdd : 'Legg afturat',
btnModify : 'Broyt',
btnUp : 'Upp',
btnDown : 'Niður',
btnSetValue : 'Set sum valt virði',
btnDelete : 'Strika'
},
// Textarea Dialog.
textarea :
{
title : 'Eginleikar fyri tekstumráði',
cols : 'kolonnur',
rows : 'røðir'
},
// Text Field Dialog.
textfield :
{
title : 'Eginleikar fyri tekstteig',
name : 'Navn',
value : 'Virði',
charWidth : 'Breidd (sjónlig tekn)',
maxChars : 'Mest loyvdu tekn',
type : 'Slag',
typeText : 'Tekstur',
typePass : 'Loyniorð'
},
// Hidden Field Dialog.
hidden :
{
title : 'Eginleikar fyri fjaldan teig',
name : 'Navn',
value : 'Virði'
},
// Image Dialog.
image :
{
title : 'Myndaeginleikar',
titleButton : 'Eginleikar fyri myndaknøtt',
menu : 'Myndaeginleikar',
infoTab : 'Myndaupplýsingar',
btnUpload : 'Send til ambætaran',
upload : 'Send',
alt : 'Alternativur tekstur',
lockRatio : 'Læs lutfallið',
resetSize : 'Upprunastødd',
border : 'Bordi',
hSpace : 'Høgri breddi',
vSpace : 'Vinstri breddi',
alertUrl : 'Rita slóðina til myndina',
linkTab : 'Tilknýti',
button2Img : 'Skal valdi myndaknøttur gerast til vanliga mynd?',
img2Button : 'Skal valda mynd gerast til myndaknøtt?',
urlMissing : 'URL til mynd manglar.',
validateBorder : 'Bordi má vera eitt heiltal.',
validateHSpace : 'HSpace má vera eitt heiltal.',
validateVSpace : 'VSpace má vera eitt heiltal.'
},
// Flash Dialog
flash :
{
properties : 'Flash eginleikar',
propertiesTab : 'Eginleikar',
title : 'Flash eginleikar',
chkPlay : 'Avspælingin byrjar sjálv',
chkLoop : 'Endurspæl',
chkMenu : 'Ger Flash skrá virkna',
chkFull : 'Loyv fullan skerm',
scale : 'Skalering',
scaleAll : 'Vís alt',
scaleNoBorder : 'Eingin bordi',
scaleFit : 'Neyv skalering',
access : 'Script atgongd',
accessAlways : 'Altíð',
accessSameDomain: 'Sama navnaøki',
accessNever : 'Ongantíð',
alignAbsBottom : 'Abs botnur',
alignAbsMiddle : 'Abs miðja',
alignBaseline : 'Basislinja',
alignTextTop : 'Tekst toppur',
quality : 'Góðska',
qualityBest : 'Besta',
qualityHigh : 'Høg',
qualityAutoHigh : 'Auto høg',
qualityMedium : 'Meðal',
qualityAutoLow : 'Auto Lág',
qualityLow : 'Lág',
windowModeWindow: 'Rútur',
windowModeOpaque: 'Ikki transparent',
windowModeTransparent : 'Transparent',
windowMode : 'Slag av rúti',
flashvars : 'Variablar fyri Flash',
bgcolor : 'Bakgrundslitur',
hSpace : 'Høgri breddi',
vSpace : 'Vinstri breddi',
validateSrc : 'Vinarliga skriva tilknýti (URL)',
validateHSpace : 'HSpace má vera eitt tal.',
validateVSpace : 'VSpace má vera eitt tal.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Kanna stavseting',
title : 'Kanna stavseting',
notAvailable : 'Tíverri, ikki tøkt í løtuni.',
errorLoading : 'Feilur við innlesing av application service host: %s.',
notInDic : 'Finst ikki í orðabókini',
changeTo : 'Broyt til',
btnIgnore : 'Forfjóna',
btnIgnoreAll : 'Forfjóna alt',
btnReplace : 'Yvirskriva',
btnReplaceAll : 'Yvirskriva alt',
btnUndo : 'Angra',
noSuggestions : '- Einki uppskot -',
progress : 'Rættstavarin arbeiðir...',
noMispell : 'Rættstavarin liðugur: Eingin feilur funnin',
noChanges : 'Rættstavarin liðugur: Einki orð varð broytt',
oneChange : 'Rættstavarin liðugur: Eitt orð er broytt',
manyChanges : 'Rættstavarin liðugur: %1 orð broytt',
ieSpellDownload : 'Rættstavarin er ikki tøkur í tekstviðgeranum. Vilt tú heinta hann nú?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Vel Smiley',
options : 'Møguleikar fyri Smiley'
},
elementsPath :
{
eleLabel : 'Slóð til elementir',
eleTitle : '%1 element'
},
numberedlist : 'Talmerktur listi',
bulletedlist : 'Punktmerktur listi',
indent : 'Økja reglubrotarinntriv',
outdent : 'Minka reglubrotarinntriv',
justify :
{
left : 'Vinstrasett',
center : 'Miðsett',
right : 'Høgrasett',
block : 'Javnir tekstkantar'
},
blockquote : 'Blockquote',
clipboard :
{
title : 'Innrita',
cutError : 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at kvetta tekstin. Vinarliga nýt knappaborðið til at kvetta tekstin (Ctrl/Cmd+X).',
copyError : 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at avrita tekstin. Vinarliga nýt knappaborðið til at avrita tekstin (Ctrl/Cmd+C).',
pasteMsg : 'Vinarliga koyr tekstin í hendan rútin við knappaborðinum (<strong>Ctrl/Cmd+V</strong>) og klikk á <strong>Góðtak</strong>.',
securityMsg : 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í beinleiðis atgongd til avritingarminnið. Tygum mugu royna aftur í hesum rútinum.',
pasteArea : 'Avritingarumráði'
},
pastefromword :
{
confirmCleanup : 'Teksturin, tú roynir at seta inn, sýnist at stava frá Word. Skal teksturin reinsast fyrst?',
toolbar : 'Innrita frá Word',
title : 'Innrita frá Word',
error : 'Tað eydnaðist ikki at reinsa tekstin vegna ein internan feil'
},
pasteText :
{
button : 'Innrita som reinan tekst',
title : 'Innrita som reinan tekst'
},
templates :
{
button : 'Skabelónir',
title : 'Innihaldsskabelónir',
options : 'Møguleikar fyri Template',
insertOption : 'Yvirskriva núverandi innihald',
selectPromptMsg : 'Vinarliga vel ta skabelón, ið skal opnast í tekstviðgeranum<br>(Hetta yvirskrivar núverandi innihald):',
emptyListMsg : '(Ongar skabelónir tøkar)'
},
showBlocks : 'Vís blokkar',
stylesCombo :
{
label : 'Typografi',
panelTitle : 'Formatterings stílir',
panelTitle1 : 'Blokk stílir',
panelTitle2 : 'Inline stílir',
panelTitle3 : 'Object stílir'
},
format :
{
label : 'Skriftsnið',
panelTitle : 'Skriftsnið',
tag_p : 'Vanligt',
tag_pre : 'Sniðgivið',
tag_address : 'Adressa',
tag_h1 : 'Yvirskrift 1',
tag_h2 : 'Yvirskrift 2',
tag_h3 : 'Yvirskrift 3',
tag_h4 : 'Yvirskrift 4',
tag_h5 : 'Yvirskrift 5',
tag_h6 : 'Yvirskrift 6',
tag_div : 'Vanligt (DIV)'
},
div :
{
title : 'Ger Div Container',
toolbar : 'Ger Div Container',
cssClassInputLabel : 'Stylesheet Classes',
styleSelectLabel : 'Style',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Language Code',
inlineStyleInputLabel : 'Inline Style',
advisoryTitleInputLabel : 'Advisory Title',
langDirLabel : 'Language Direction',
langDirLTRLabel : 'Vinstru til høgru (LTR)',
langDirRTLLabel : 'Høgru til vinstru (RTL)',
edit : 'Redigera Div',
remove : 'Strika Div'
},
iframe :
{
title : 'Møguleikar fyri IFrame',
toolbar : 'IFrame',
noUrl : 'Vinarliga skriva URL til iframe',
scrolling : 'Loyv scrollbars',
border : 'Vís frame kant'
},
font :
{
label : 'Skrift',
voiceLabel : 'Skrift',
panelTitle : 'Skrift'
},
fontSize :
{
label : 'Skriftstødd',
voiceLabel : 'Skriftstødd',
panelTitle : 'Skriftstødd'
},
colorButton :
{
textColorTitle : 'Tekstlitur',
bgColorTitle : 'Bakgrundslitur',
panelTitle : 'Litir',
auto : 'Automatiskt',
more : 'Fleiri litir...'
},
colors :
{
'000' : 'Svart',
'800000' : 'Maroon',
'8B4513' : 'Saðilsbrúnt',
'2F4F4F' : 'Dark Slate Gray',
'008080' : 'Teal',
'000080' : 'Navy',
'4B0082' : 'Indigo',
'696969' : 'Myrkagrátt',
'B22222' : 'Fire Brick',
'A52A2A' : 'Brúnt',
'DAA520' : 'Gullstavur',
'006400' : 'Myrkagrønt',
'40E0D0' : 'Turquoise',
'0000CD' : 'Meðal blátt',
'800080' : 'Purple',
'808080' : 'Grátt',
'F00' : 'Reytt',
'FF8C00' : 'Myrkt appelsingult',
'FFD700' : 'Gull',
'008000' : 'Grønt',
'0FF' : 'Cyan',
'00F' : 'Blátt',
'EE82EE' : 'Violet',
'A9A9A9' : 'Døkt grátt',
'FFA07A' : 'Ljósur laksur',
'FFA500' : 'Appelsingult',
'FFFF00' : 'Gult',
'00FF00' : 'Lime',
'AFEEEE' : 'Pale Turquoise',
'ADD8E6' : 'Ljósablátt',
'DDA0DD' : 'Plum',
'D3D3D3' : 'Ljósagrátt',
'FFF0F5' : 'Lavender Blush',
'FAEBD7' : 'Klassiskt hvítt',
'FFFFE0' : 'Ljósagult',
'F0FFF0' : 'Hunangsdøggur',
'F0FFFF' : 'Azure',
'F0F8FF' : 'Alice Blátt',
'E6E6FA' : 'Lavender',
'FFF' : 'Hvítt'
},
scayt :
{
title : 'Kanna stavseting, meðan tú skrivar',
opera_title : 'Ikki stuðlað í Opera',
enable : 'Loyv SCAYT',
disable : 'Nokta SCAYT',
about : 'Um SCAYT',
toggle : 'Toggle SCAYT',
options : 'Uppseting',
langs : 'Tungumál',
moreSuggestions : 'Fleiri tilráðingar',
ignore : 'Ignorera',
ignoreAll : 'Ignorera alt',
addWord : 'Legg orð afturat',
emptyDic : 'Heiti á orðabók eigur ikki at vera tómt.',
optionsTab : 'Uppseting',
allCaps : 'Loyp orð við bert stórum stavum um',
ignoreDomainNames : 'loyp økisnøvn um',
mixedCase : 'Loyp orð við blandaðum smáum og stórum stavum um',
mixedWithDigits : 'Loyp orð við tølum um',
languagesTab : 'Tungumál',
dictionariesTab : 'Orðabøkur',
dic_field_name : 'Orðabókanavn',
dic_create : 'Upprætta nýggja',
dic_restore : 'Endurskapa',
dic_delete : 'Strika',
dic_rename : 'Broyt',
dic_info : 'Upprunaliga er brúkara-orðabókin goymd í eini cookie í tínum egna kaga. Men hesar cookies eru avmarkaðar í stødd. Tá brúkara-orðabókin veksur seg ov stóra til eina cookie, so er møguligt at goyma hana á ambætara okkara. Fyri at goyma persónligu orðabókina á ambætaranum eigur tú at velja eitt navn til tína skuffu. Hevur tú longu goymt eina orðabók, so vinarliga skriva navnið og klikk á knøttin Endurskapa.',
aboutTab : 'Um'
},
about :
{
title : 'Um CKEditor',
dlgTitle : 'Um CKEditor',
help : 'Kekka $1 fyri hjálp.',
userGuide : 'CKEditor Brúkaravegleiðing',
moreInfo : 'Licens upplýsingar finnast á heimasíðu okkara:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Maksimera',
minimize : 'Minimera',
fakeobjects :
{
anchor : 'Anchor',
flash : 'Flash Animation',
iframe : 'IFrame',
hiddenfield : 'Fjaldur teigur',
unknown : 'Ókent Object'
},
resize : 'Drag fyri at broyta stødd',
colordialog :
{
title : 'Vel lit',
options : 'Litmøguleikar',
highlight : 'Framheva',
selected : 'Valdur litur',
clear : 'Strika'
},
toolbarCollapse : 'Lat Toolbar aftur',
toolbarExpand : 'Vís Toolbar',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Clipboard/Undo',
editing : 'Editering',
forms : 'Formar',
basicstyles : 'Grundleggjandi Styles',
paragraph : 'Reglubrot',
links : 'Leinkjur',
insert : 'Set inn',
styles : 'Styles',
colors : 'Litir',
tools : 'Tól'
},
bidi :
{
ltr : 'Tekstkós frá vinstru til høgru',
rtl : 'Tekstkós frá høgru til vinstru'
},
docprops :
{
label : 'Eginleikar fyri dokument',
title : 'Eginleikar fyri dokument',
design : 'Design',
meta : 'META-upplýsingar',
chooseColor : 'Vel',
other : '<annað>',
docTitle : 'Síðuheiti',
charset : 'Teknsett koda',
charsetOther : 'Onnur teknsett koda',
charsetASCII : 'ASCII',
charsetCE : 'Miðeuropa',
charsetCT : 'Kinesiskt traditionelt (Big5)',
charsetCR : 'Cyrilliskt',
charsetGR : 'Grikst',
charsetJP : 'Japanskt',
charsetKR : 'Koreanskt',
charsetTR : 'Turkiskt',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Vestureuropa',
docType : 'Dokumentslag yvirskrift',
docTypeOther : 'Annað dokumentslag yvirskrift',
xhtmlDec : 'Viðfest XHTML deklaratiónir',
bgColor : 'Bakgrundslitur',
bgImage : 'Leið til bakgrundsmynd (URL)',
bgFixed : 'Læst bakgrund (rullar ikki)',
txtColor : 'Tekstlitur',
margin : 'Síðubreddar',
marginTop : 'Ovast',
marginLeft : 'Vinstra',
marginRight : 'Høgra',
marginBottom : 'Niðast',
metaKeywords : 'Dokument index lyklaorð (sundurbýtt við komma)',
metaDescription : 'Dokumentlýsing',
metaAuthor : 'Høvundur',
metaCopyright : 'Upphavsrættindi',
previewHtml : '<p>Hetta er ein <strong>royndartekstur</strong>. Tygum brúka <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/fo.js
|
JavaScript
|
gpl3
| 24,244
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['pt-br'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Editor de Texto, %1, pressione ALT 0 para obter ajuda.',
// ARIA descriptions.
toolbars : 'Barra de Ferramentas do Editor',
editor : 'Editor de Texto',
// Toolbar buttons without dialogs.
source : 'Código-Fonte',
newPage : 'Novo',
save : 'Salvar',
preview : 'Visualizar',
cut : 'Recortar',
copy : 'Copiar',
paste : 'Colar',
print : 'Imprimir',
underline : 'Sublinhado',
bold : 'Negrito',
italic : 'Itálico',
selectAll : 'Selecionar Tudo',
removeFormat : 'Remover Formatação',
strike : 'Tachado',
subscript : 'Subscrito',
superscript : 'Sobrescrito',
horizontalrule : 'Inserir Linha Horizontal',
pagebreak : 'Inserir Quebra de Página',
pagebreakAlt : 'Quebra de Página',
unlink : 'Remover Link',
undo : 'Desfazer',
redo : 'Refazer',
// Common messages and labels.
common :
{
browseServer : 'Localizar no Servidor',
url : 'URL',
protocol : 'Protocolo',
upload : 'Enviar ao Servidor',
uploadSubmit : 'Enviar para o Servidor',
image : 'Imagem',
flash : 'Flash',
form : 'Formulário',
checkbox : 'Caixa de Seleção',
radio : 'Botão de Opção',
textField : 'Caixa de Texto',
textarea : 'Área de Texto',
hiddenField : 'Campo Oculto',
button : 'Botão',
select : 'Caixa de Listagem',
imageButton : 'Botão de Imagem',
notSet : '<não ajustado>',
id : 'Id',
name : 'Nome',
langDir : 'Direção do idioma',
langDirLtr : 'Esquerda para Direita (LTR)',
langDirRtl : 'Direita para Esquerda (RTL)',
langCode : 'Idioma',
longDescr : 'Descrição da URL',
cssClass : 'Classe de CSS',
advisoryTitle : 'Título',
cssStyle : 'Estilos',
ok : 'OK',
cancel : 'Cancelar',
close : 'Fechar',
preview : 'Visualizar',
generalTab : 'Geral',
advancedTab : 'Avançado',
validateNumberFailed : 'Este valor não é um número.',
confirmNewPage : 'Todas as mudanças não salvas serão perdidas. Tem certeza de que quer abrir uma nova página?',
confirmCancel : 'Algumas opções foram alteradas. Tem certeza de que quer fechar a caixa de diálogo?',
options : 'Opções',
target : 'Destino',
targetNew : 'Nova Janela (_blank)',
targetTop : 'Janela de Cima (_top)',
targetSelf : 'Mesma Janela (_self)',
targetParent : 'Janela Pai (_parent)',
langDirLTR : 'Esquerda para Direita (LTR)',
langDirRTL : 'Direita para Esquerda (RTL)',
styles : 'Estilo',
cssClasses : 'Classes',
width : 'Largura',
height : 'Altura',
align : 'Alinhamento',
alignLeft : 'Esquerda',
alignRight : 'Direita',
alignCenter : 'Centralizado',
alignTop : 'Superior',
alignMiddle : 'Centralizado',
alignBottom : 'Inferior',
invalidHeight : 'A altura tem que ser um número',
invalidWidth : 'A largura tem que ser um número.',
invalidCssLength : 'O valor do campo "%1" deve ser um número positivo opcionalmente seguido por uma válida unidade de medida de CSS (px, %, in, cm, mm, em, ex, pt, or pc).',
invalidHtmlLength : 'O valor do campo "%1" deve ser um número positivo opcionalmente seguido por uma válida unidade de medida de HTML (px or %).',
invalidInlineStyle : 'O valor válido para estilo deve conter uma ou mais tuplas no formato "nome : valor", separados por ponto e vírgula.',
cssLengthTooltip : 'Insira um número para valor em pixels ou um número seguido de uma válida unidade de medida de CSS (px, %, in, cm, mm, em, ex, pt, or pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, indisponível</span>'
},
contextmenu :
{
options : 'Opções Menu de Contexto'
},
// Special char dialog.
specialChar :
{
toolbar : 'Inserir Caractere Especial',
title : 'Selecione um Caractere Especial',
options : 'Opções de Caractere Especial'
},
// Link dialog.
link :
{
toolbar : 'Inserir/Editar Link',
other : '<outro>',
menu : 'Editar Link',
title : 'Editar Link',
info : 'Informações',
target : 'Destino',
upload : 'Enviar ao Servidor',
advanced : 'Avançado',
type : 'Tipo de hiperlink',
toUrl : 'URL',
toAnchor : 'Âncora nesta página',
toEmail : 'E-Mail',
targetFrame : '<frame>',
targetPopup : '<janela popup>',
targetFrameName : 'Nome do Frame de Destino',
targetPopupName : 'Nome da Janela Pop-up',
popupFeatures : 'Propriedades da Janela Pop-up',
popupResizable : 'Redimensionável',
popupStatusBar : 'Barra de Status',
popupLocationBar: 'Barra de Endereços',
popupToolbar : 'Barra de Ferramentas',
popupMenuBar : 'Barra de Menus',
popupFullScreen : 'Modo Tela Cheia (IE)',
popupScrollBars : 'Barras de Rolagem',
popupDependent : 'Dependente (Netscape)',
popupLeft : 'Esquerda',
popupTop : 'Topo',
id : 'Id',
langDir : 'Direção do idioma',
langDirLTR : 'Esquerda para Direita (LTR)',
langDirRTL : 'Direita para Esquerda (RTL)',
acccessKey : 'Chave de Acesso',
name : 'Nome',
langCode : 'Direção do idioma',
tabIndex : 'Índice de Tabulação',
advisoryTitle : 'Título',
advisoryContentType : 'Tipo de Conteúdo',
cssClasses : 'Classe de CSS',
charset : 'Charset do Link',
styles : 'Estilos',
rel : 'Tipo de Relação',
selectAnchor : 'Selecione uma âncora',
anchorName : 'Nome da âncora',
anchorId : 'Id da âncora',
emailAddress : 'Endereço E-Mail',
emailSubject : 'Assunto da Mensagem',
emailBody : 'Corpo da Mensagem',
noAnchors : '(Não há âncoras no documento)',
noUrl : 'Por favor, digite o endereço do Link',
noEmail : 'Por favor, digite o endereço de e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Inserir/Editar Âncora',
menu : 'Formatar Âncora',
title : 'Formatar Âncora',
name : 'Nome da Âncora',
errorName : 'Por favor, digite o nome da âncora',
remove : 'Remover Âncora'
},
// List style dialog
list:
{
numberedTitle : 'Propriedades da Lista Numerada',
bulletedTitle : 'Propriedades da Lista sem Numeros',
type : 'Tipo',
start : 'Início',
validateStartNumber :'O número inicial da lista deve ser um número inteiro.',
circle : 'Círculo',
disc : 'Disco',
square : 'Quadrado',
none : 'Nenhum',
notset : '<não definido>',
armenian : 'Numeração Armêna',
georgian : 'Numeração da Geórgia (an, ban, gan, etc.)',
lowerRoman : 'Numeração Romana minúscula (i, ii, iii, iv, v, etc.)',
upperRoman : 'Numeração Romana maiúscula (I, II, III, IV, V, etc.)',
lowerAlpha : 'Numeração Alfabética minúscula (a, b, c, d, e, etc.)',
upperAlpha : 'Numeração Alfabética Maiúscula (A, B, C, D, E, etc.)',
lowerGreek : 'Numeração Grega minúscula (alpha, beta, gamma, etc.)',
decimal : 'Numeração Decimal (1, 2, 3, etc.)',
decimalLeadingZero : 'Numeração Decimal com zeros (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Localizar e Substituir',
find : 'Localizar',
replace : 'Substituir',
findWhat : 'Procurar por:',
replaceWith : 'Substituir por:',
notFoundMsg : 'O texto especificado não foi encontrado.',
findOptions : 'Opções',
matchCase : 'Coincidir Maiúsculas/Minúsculas',
matchWord : 'Coincidir a palavra inteira',
matchCyclic : 'Coincidir cíclico',
replaceAll : 'Substituir Tudo',
replaceSuccessMsg : '%1 ocorrência(s) substituída(s).'
},
// Table Dialog
table :
{
toolbar : 'Tabela',
title : 'Formatar Tabela',
menu : 'Formatar Tabela',
deleteTable : 'Apagar Tabela',
rows : 'Linhas',
columns : 'Colunas',
border : 'Borda',
widthPx : 'pixels',
widthPc : '%',
widthUnit : 'unidade largura',
cellSpace : 'Espaçamento',
cellPad : 'Margem interna',
caption : 'Legenda',
summary : 'Resumo',
headers : 'Cabeçalho',
headersNone : 'Nenhum',
headersColumn : 'Primeira coluna',
headersRow : 'Primeira linha',
headersBoth : 'Ambos',
invalidRows : 'O número de linhas tem que ser um número maior que 0.',
invalidCols : 'O número de colunas tem que ser um número maior que 0.',
invalidBorder : 'O tamanho da borda tem que ser um número.',
invalidWidth : 'A largura da tabela tem que ser um número.',
invalidHeight : 'A altura da tabela tem que ser um número.',
invalidCellSpacing : 'O espaçamento das células tem que ser um número.',
invalidCellPadding : 'A margem interna das células tem que ser um número.',
cell :
{
menu : 'Célula',
insertBefore : 'Inserir célula a esquerda',
insertAfter : 'Inserir célula a direita',
deleteCell : 'Remover Células',
merge : 'Mesclar Células',
mergeRight : 'Mesclar com célula a direita',
mergeDown : 'Mesclar com célula abaixo',
splitHorizontal : 'Dividir célula horizontalmente',
splitVertical : 'Dividir célula verticalmente',
title : 'Propriedades da célula',
cellType : 'Tipo de célula',
rowSpan : 'Linhas cobertas',
colSpan : 'Colunas cobertas',
wordWrap : 'Quebra de palavra',
hAlign : 'Alinhamento horizontal',
vAlign : 'Alinhamento vertical',
alignBaseline : 'Patamar de alinhamento',
bgColor : 'Cor de fundo',
borderColor : 'Cor das bordas',
data : 'Dados',
header : 'Cabeçalho',
yes : 'Sim',
no : 'Não',
invalidWidth : 'A largura da célula tem que ser um número.',
invalidHeight : 'A altura da célula tem que ser um número.',
invalidRowSpan : 'Linhas cobertas tem que ser um número inteiro.',
invalidColSpan : 'Colunas cobertas tem que ser um número inteiro.',
chooseColor : 'Escolher'
},
row :
{
menu : 'Linha',
insertBefore : 'Inserir linha acima',
insertAfter : 'Inserir linha abaixo',
deleteRow : 'Remover Linhas'
},
column :
{
menu : 'Coluna',
insertBefore : 'Inserir coluna a esquerda',
insertAfter : 'Inserir coluna a direita',
deleteColumn : 'Remover Colunas'
}
},
// Button Dialog.
button :
{
title : 'Formatar Botão',
text : 'Texto (Valor)',
type : 'Tipo',
typeBtn : 'Botão',
typeSbm : 'Enviar',
typeRst : 'Limpar'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Formatar Caixa de Seleção',
radioTitle : 'Formatar Botão de Opção',
value : 'Valor',
selected : 'Selecionado'
},
// Form Dialog.
form :
{
title : 'Formatar Formulário',
menu : 'Formatar Formulário',
action : 'Ação',
method : 'Método',
encoding : 'Codificação'
},
// Select Field Dialog.
select :
{
title : 'Formatar Caixa de Listagem',
selectInfo : 'Informações',
opAvail : 'Opções disponíveis',
value : 'Valor',
size : 'Tamanho',
lines : 'linhas',
chkMulti : 'Permitir múltiplas seleções',
opText : 'Texto',
opValue : 'Valor',
btnAdd : 'Adicionar',
btnModify : 'Modificar',
btnUp : 'Para cima',
btnDown : 'Para baixo',
btnSetValue : 'Definir como selecionado',
btnDelete : 'Remover'
},
// Textarea Dialog.
textarea :
{
title : 'Formatar Área de Texto',
cols : 'Colunas',
rows : 'Linhas'
},
// Text Field Dialog.
textfield :
{
title : 'Formatar Caixa de Texto',
name : 'Nome',
value : 'Valor',
charWidth : 'Comprimento (em caracteres)',
maxChars : 'Número Máximo de Caracteres',
type : 'Tipo',
typeText : 'Texto',
typePass : 'Senha'
},
// Hidden Field Dialog.
hidden :
{
title : 'Formatar Campo Oculto',
name : 'Nome',
value : 'Valor'
},
// Image Dialog.
image :
{
title : 'Formatar Imagem',
titleButton : 'Formatar Botão de Imagem',
menu : 'Formatar Imagem',
infoTab : 'Informações da Imagem',
btnUpload : 'Enviar para o Servidor',
upload : 'Enviar',
alt : 'Texto Alternativo',
lockRatio : 'Travar Proporções',
resetSize : 'Redefinir para o Tamanho Original',
border : 'Borda',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Por favor, digite a URL da imagem.',
linkTab : 'Link',
button2Img : 'Deseja transformar o botão de imagem em uma imagem comum?',
img2Button : 'Deseja transformar a imagem em um botão de imagem?',
urlMissing : 'URL da imagem está faltando.',
validateBorder : 'A borda deve ser um número inteiro.',
validateHSpace : 'O HSpace deve ser um número inteiro.',
validateVSpace : 'O VSpace deve ser um número inteiro.'
},
// Flash Dialog
flash :
{
properties : 'Propriedades do Flash',
propertiesTab : 'Propriedades',
title : 'Propriedades do Flash',
chkPlay : 'Tocar Automaticamente',
chkLoop : 'Tocar Infinitamente',
chkMenu : 'Habilita Menu Flash',
chkFull : 'Permitir tela cheia',
scale : 'Escala',
scaleAll : 'Mostrar tudo',
scaleNoBorder : 'Sem Borda',
scaleFit : 'Escala Exata',
access : 'Acesso ao script',
accessAlways : 'Sempre',
accessSameDomain: 'Acessar Mesmo Domínio',
accessNever : 'Nunca',
alignAbsBottom : 'Inferior Absoluto',
alignAbsMiddle : 'Centralizado Absoluto',
alignBaseline : 'Baseline',
alignTextTop : 'Superior Absoluto',
quality : 'Qualidade',
qualityBest : 'Qualidade Melhor',
qualityHigh : 'Qualidade Alta',
qualityAutoHigh : 'Qualidade Alta Automática',
qualityMedium : 'Qualidade Média',
qualityAutoLow : 'Qualidade Baixa Automática',
qualityLow : 'Qualidade Baixa',
windowModeWindow: 'Janela',
windowModeOpaque: 'Opaca',
windowModeTransparent : 'Transparente',
windowMode : 'Modo da janela',
flashvars : 'Variáveis do Flash',
bgcolor : 'Cor do Plano de Fundo',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Por favor, digite o endereço do link',
validateHSpace : 'O HSpace tem que ser um número',
validateVSpace : 'O VSpace tem que ser um número.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Verificar Ortografia',
title : 'Corretor Ortográfico',
notAvailable : 'Desculpe, o serviço não está disponível no momento.',
errorLoading : 'Erro carregando servidor de aplicação: %s.',
notInDic : 'Não encontrada',
changeTo : 'Alterar para',
btnIgnore : 'Ignorar uma vez',
btnIgnoreAll : 'Ignorar Todas',
btnReplace : 'Alterar',
btnReplaceAll : 'Alterar Todas',
btnUndo : 'Desfazer',
noSuggestions : '-sem sugestões de ortografia-',
progress : 'Verificação ortográfica em andamento...',
noMispell : 'Verificação encerrada: Não foram encontrados erros de ortografia',
noChanges : 'Verificação ortográfica encerrada: Não houve alterações',
oneChange : 'Verificação ortográfica encerrada: Uma palavra foi alterada',
manyChanges : 'Verificação ortográfica encerrada: %1 palavras foram alteradas',
ieSpellDownload : 'A verificação ortográfica não foi instalada. Você gostaria de realizar o download agora?'
},
smiley :
{
toolbar : 'Emoticon',
title : 'Inserir Emoticon',
options : 'Opções de Emoticons'
},
elementsPath :
{
eleLabel : 'Caminho dos Elementos',
eleTitle : 'Elemento %1'
},
numberedlist : 'Lista numerada',
bulletedlist : 'Lista sem números',
indent : 'Aumentar Recuo',
outdent : 'Diminuir Recuo',
justify :
{
left : 'Alinhar Esquerda',
center : 'Centralizar',
right : 'Alinhar Direita',
block : 'Justificado'
},
blockquote : 'Citação',
clipboard :
{
title : 'Colar',
cutError : 'As configurações de segurança do seu navegador não permitem que o editor execute operações de recortar automaticamente. Por favor, utilize o teclado para recortar (Ctrl/Cmd+X).',
copyError : 'As configurações de segurança do seu navegador não permitem que o editor execute operações de copiar automaticamente. Por favor, utilize o teclado para copiar (Ctrl/Cmd+C).',
pasteMsg : 'Transfira o link usado na caixa usando o teclado com (<STRONG>Ctrl/Cmd+V</STRONG>) e <STRONG>OK</STRONG>.',
securityMsg : 'As configurações de segurança do seu navegador não permitem que o editor acesse os dados da área de transferência diretamente. Por favor cole o conteúdo manualmente nesta janela.',
pasteArea : 'Área para Colar'
},
pastefromword :
{
confirmCleanup : 'O texto que você deseja colar parece ter sido copiado do Word. Você gostaria de remover a formatação antes de colar?',
toolbar : 'Colar do Word',
title : 'Colar do Word',
error : 'Não foi possível limpar os dados colados devido a um erro interno'
},
pasteText :
{
button : 'Colar como Texto sem Formatação',
title : 'Colar como Texto sem Formatação'
},
templates :
{
button : 'Modelos de layout',
title : 'Modelo de layout de conteúdo',
options : 'Opções de Template',
insertOption : 'Substituir o conteúdo atual',
selectPromptMsg : 'Selecione um modelo de layout para ser aberto no editor<br>(o conteúdo atual será perdido):',
emptyListMsg : '(Não foram definidos modelos de layout)'
},
showBlocks : 'Mostrar blocos de código',
stylesCombo :
{
label : 'Estilo',
panelTitle : 'Estilos de Formatação',
panelTitle1 : 'Estilos de bloco',
panelTitle2 : 'Estilos de texto corrido',
panelTitle3 : 'Estilos de objeto'
},
format :
{
label : 'Formatação',
panelTitle : 'Formatação',
tag_p : 'Normal',
tag_pre : 'Formatado',
tag_address : 'Endereço',
tag_h1 : 'Título 1',
tag_h2 : 'Título 2',
tag_h3 : 'Título 3',
tag_h4 : 'Título 4',
tag_h5 : 'Título 5',
tag_h6 : 'Título 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Criar Container de DIV',
toolbar : 'Criar Container de DIV',
cssClassInputLabel : 'Classes de CSS',
styleSelectLabel : 'Estilo',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Código de Idioma',
inlineStyleInputLabel : 'Estilo Inline',
advisoryTitleInputLabel : 'Título Consulta',
langDirLabel : 'Direção da Escrita',
langDirLTRLabel : 'Esquerda para Direita (LTR)',
langDirRTLLabel : 'Direita para Esquerda (RTL)',
edit : 'Editar Div',
remove : 'Remover Div'
},
iframe :
{
title : 'Propriedade do IFrame',
toolbar : 'IFrame',
noUrl : 'Insira a URL do iframe',
scrolling : 'Abilita scrollbars',
border : 'Mostra borda do iframe'
},
font :
{
label : 'Fonte',
voiceLabel : 'Fonte',
panelTitle : 'Fonte'
},
fontSize :
{
label : 'Tamanho',
voiceLabel : 'Tamanho da fonte',
panelTitle : 'Tamanho'
},
colorButton :
{
textColorTitle : 'Cor do Texto',
bgColorTitle : 'Cor do Plano de Fundo',
panelTitle : 'Cores',
auto : 'Automático',
more : 'Mais Cores...'
},
colors :
{
'000' : 'Preto',
'800000' : 'Foquete',
'8B4513' : 'Marrom 1',
'2F4F4F' : 'Cinza 1',
'008080' : 'Cerceta',
'000080' : 'Azul Marinho',
'4B0082' : 'Índigo',
'696969' : 'Cinza 2',
'B22222' : 'Tijolo de Fogo',
'A52A2A' : 'Marrom 2',
'DAA520' : 'Vara Dourada',
'006400' : 'Verde Escuro',
'40E0D0' : 'Turquesa',
'0000CD' : 'Azul Médio',
'800080' : 'Roxo',
'808080' : 'Cinza 3',
'F00' : 'Vermelho',
'FF8C00' : 'Laranja Escuro',
'FFD700' : 'Dourado',
'008000' : 'Verde',
'0FF' : 'Ciano',
'00F' : 'Azul',
'EE82EE' : 'Violeta',
'A9A9A9' : 'Cinza Escuro',
'FFA07A' : 'Salmão Claro',
'FFA500' : 'Laranja',
'FFFF00' : 'Amarelo',
'00FF00' : 'Lima',
'AFEEEE' : 'Turquesa Pálido',
'ADD8E6' : 'Azul Claro',
'DDA0DD' : 'Ameixa',
'D3D3D3' : 'Cinza Claro',
'FFF0F5' : 'Lavanda 1',
'FAEBD7' : 'Branco Antiguidade',
'FFFFE0' : 'Amarelo Claro',
'F0FFF0' : 'Orvalho',
'F0FFFF' : 'Azure',
'F0F8FF' : 'Azul Alice',
'E6E6FA' : 'Lavanda 2',
'FFF' : 'Branco'
},
scayt :
{
title : 'Correção ortográfica durante a digitação',
opera_title : 'Não suportado no Opera',
enable : 'Habilitar correção ortográfica durante a digitação',
disable : 'Desabilitar correção ortográfica durante a digitação',
about : 'Sobre a correção ortográfica durante a digitação',
toggle : 'Ativar/desativar correção ortográfica durante a digitação',
options : 'Opções',
langs : 'Idiomas',
moreSuggestions : 'Mais sugestões',
ignore : 'Ignorar',
ignoreAll : 'Ignorar todas',
addWord : 'Adicionar palavra',
emptyDic : 'O nome do dicionário não deveria estar vazio.',
optionsTab : 'Opções',
allCaps : 'Ignorar palavras maiúsculas',
ignoreDomainNames : 'Ignorar nomes de domínio',
mixedCase : 'Ignorar palavras com maiúsculas e minúsculas misturadas',
mixedWithDigits : 'Ignorar palavras com números',
languagesTab : 'Idiomas',
dictionariesTab : 'Dicionários',
dic_field_name : 'Nome do Dicionário',
dic_create : 'Criar',
dic_restore : 'Restaurar',
dic_delete : 'Excluir',
dic_rename : 'Renomear',
dic_info : 'Inicialmente, o dicionário do usuário fica armazenado em um Cookie. Porém, Cookies tem tamanho limitado, portanto quand o dicionário do usuário atingir o tamanho limite poderá ser armazenado no nosso servidor. Para armazenar seu dicionário pessoal no nosso servidor deverá especificar um nome para ele. Se já tiver um dicionário armazenado por favor especifique o seu nome e clique em Restaurar.',
aboutTab : 'Sobre'
},
about :
{
title : 'Sobre o CKEditor',
dlgTitle : 'Sobre o CKEditor',
help : 'Verifique o $1 para obter ajuda.',
userGuide : 'Guia do Usuário do CKEditor',
moreInfo : 'Para informações sobre a licença por favor visite o nosso site:',
copy : 'Copyright © $1. Todos os direitos reservados.'
},
maximize : 'Maximizar',
minimize : 'Minimize',
fakeobjects :
{
anchor : 'Âncora',
flash : 'Animação em Flash',
iframe : 'IFrame',
hiddenfield : 'Campo Oculto',
unknown : 'Objeto desconhecido'
},
resize : 'Arraste para redimensionar',
colordialog :
{
title : 'Selecione uma Cor',
options : 'Opções de Cor',
highlight : 'Grifar',
selected : 'Cor Selecionada',
clear : 'Limpar'
},
toolbarCollapse : 'Diminuir Barra de Ferramentas',
toolbarExpand : 'Aumentar Barra de Ferramentas',
toolbarGroups :
{
document : 'Documento',
clipboard : 'Clipboard/Desfazer',
editing : 'Edição',
forms : 'Formulários',
basicstyles : 'Estilos Básicos',
paragraph : 'Paragrafo',
links : 'Links',
insert : 'Inserir',
styles : 'Estilos',
colors : 'Cores',
tools : 'Ferramentas'
},
bidi :
{
ltr : 'Direção do texto da esquerda para a direita',
rtl : 'Direção do texto da direita para a esquerda'
},
docprops :
{
label : 'Propriedades Documento',
title : 'Propriedades Documento',
design : 'Design',
meta : 'Meta Dados',
chooseColor : 'Escolher',
other : '<outro>',
docTitle : 'Título da Página',
charset : 'Codificação de Caracteres',
charsetOther : 'Outra Codificação de Caracteres',
charsetASCII : 'ASCII',
charsetCE : 'Europa Central',
charsetCT : 'Chinês Tradicional (Big5)',
charsetCR : 'Cirílico',
charsetGR : 'Grego',
charsetJP : 'Japonês',
charsetKR : 'Coreano',
charsetTR : 'Turco',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Europa Ocidental',
docType : 'Cabeçalho Tipo de Documento',
docTypeOther : 'Outro Tipo de Documento',
xhtmlDec : 'Incluir Declarações XHTML',
bgColor : 'Cor do Plano de Fundo',
bgImage : 'URL da Imagem de Plano de Fundo',
bgFixed : 'Plano de Fundo Fixo',
txtColor : 'Cor do Texto',
margin : 'Margens da Página',
marginTop : 'Superior',
marginLeft : 'Inferior',
marginRight : 'Direita',
marginBottom : 'Inferior',
metaKeywords : 'Palavras-chave de Indexação do Documento (separadas por vírgula)',
metaDescription : 'Descrição do Documento',
metaAuthor : 'Autor',
metaCopyright : 'Direitos Autorais',
previewHtml : '<p>Este é um <strong>texto de exemplo</strong>. Você está usando <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/pt-br.js
|
JavaScript
|
gpl3
| 25,344
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Gujarati language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['gu'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'રીચ ટેક્ષ્ત્ એડિટર, %1, પ્રેસ ALT 0 મદદ માટે.',
// ARIA descriptions.
toolbars : 'એડીટર ટૂલ બાર',
editor : 'રીચ ટેક્ષ્ત્ એડીટર',
// Toolbar buttons without dialogs.
source : 'મૂળ કે પ્રાથમિક દસ્તાવેજ',
newPage : 'નવુ પાનું',
save : 'સેવ',
preview : 'પૂર્વદર્શન',
cut : 'કાપવું',
copy : 'નકલ',
paste : 'પેસ્ટ',
print : 'પ્રિન્ટ',
underline : 'અન્ડર્લાઇન, નીચે લીટી',
bold : 'બોલ્ડ/સ્પષ્ટ',
italic : 'ઇટેલિક, ત્રાંસા',
selectAll : 'બઘું પસંદ કરવું',
removeFormat : 'ફૉર્મટ કાઢવું',
strike : 'છેકી નાખવું',
subscript : 'એક ચિહ્નની નીચે કરેલું બીજું ચિહ્ન',
superscript : 'એક ચિહ્ન ઉપર કરેલું બીજું ચિહ્ન.',
horizontalrule : 'સમસ્તરીય રેખા ઇન્સર્ટ/દાખલ કરવી',
pagebreak : 'ઇન્સર્ટ પેજબ્રેક/પાનાને અલગ કરવું/દાખલ કરવું',
pagebreakAlt : 'નવું પાનું',
unlink : 'લિંક કાઢવી',
undo : 'રદ કરવું; પહેલાં હતી એવી સ્થિતિ પાછી લાવવી',
redo : 'રિડૂ; પછી હતી એવી સ્થિતિ પાછી લાવવી',
// Common messages and labels.
common :
{
browseServer : 'સર્વર બ્રાઉઝ કરો',
url : 'URL',
protocol : 'પ્રોટોકૉલ',
upload : 'અપલોડ',
uploadSubmit : 'આ સર્વરને મોકલવું',
image : 'ચિત્ર',
flash : 'ફ્લૅશ',
form : 'ફૉર્મ/પત્રક',
checkbox : 'ચેક બોક્સ',
radio : 'રેડિઓ બટન',
textField : 'ટેક્સ્ટ ફીલ્ડ, શબ્દ ક્ષેત્ર',
textarea : 'ટેક્સ્ટ એરિઆ, શબ્દ વિસ્તાર',
hiddenField : 'ગુપ્ત ક્ષેત્ર',
button : 'બટન',
select : 'પસંદગી ક્ષેત્ર',
imageButton : 'ચિત્ર બટન',
notSet : '<સેટ નથી>',
id : 'Id',
name : 'નામ',
langDir : 'ભાષા લેખવાની પદ્ધતિ',
langDirLtr : 'ડાબે થી જમણે (LTR)',
langDirRtl : 'જમણે થી ડાબે (RTL)',
langCode : 'ભાષા કોડ',
longDescr : 'વધારે માહિતી માટે URL',
cssClass : 'સ્ટાઇલ-શીટ ક્લાસ',
advisoryTitle : 'મુખ્ય મથાળું',
cssStyle : 'સ્ટાઇલ',
ok : 'ઠીક છે',
cancel : 'રદ કરવું',
close : 'બંધ કરવું',
preview : 'જોવું',
generalTab : 'જનરલ',
advancedTab : 'અડ્વાન્સડ',
validateNumberFailed : 'આ રકમ આકડો નથી.',
confirmNewPage : 'સવે કાર્ય વગરનું ફકરો ખોવાઈ જશે. તમને ખાતરી છે કે તમને નવું પાનું ખોલવું છે?',
confirmCancel : 'ઘણા વિકલ્પો બદલાયા છે. તમારે આ બોક્ષ્ બંધ કરવું છે?',
options : 'વિકલ્પો',
target : 'લક્ષ્ય',
targetNew : 'નવી વિન્ડો (_blank)',
targetTop : 'ઉપરની વિન્ડો (_top)',
targetSelf : 'એજ વિન્ડો (_self)',
targetParent : 'પેરનટ વિન્ડો (_parent)',
langDirLTR : 'ડાબે થી જમણે (LTR)',
langDirRTL : 'જમણે થી ડાબે (RTL)',
styles : 'શૈલી',
cssClasses : 'શૈલી કલાસીસ',
width : 'પહોળાઈ',
height : 'ઊંચાઈ',
align : 'લાઇનદોરીમાં ગોઠવવું',
alignLeft : 'ડાબી બાજુ ગોઠવવું',
alignRight : 'જમણી',
alignCenter : 'મધ્ય સેન્ટર',
alignTop : 'ઉપર',
alignMiddle : 'વચ્ચે',
alignBottom : 'નીચે',
invalidHeight : 'ઉંચાઈ એક આંકડો હોવો જોઈએ.',
invalidWidth : 'પોહળ ઈ એક આંકડો હોવો જોઈએ.',
invalidCssLength : '"%1" ની વેલ્યુ એક પોસીટીવ આંકડો હોવો જોઈએ અથવા CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc) વગર.',
invalidHtmlLength : '"%1" ની વેલ્યુ એક પોસીટીવ આંકડો હોવો જોઈએ અથવા HTML measurement unit (px or %) વગર.',
invalidInlineStyle : 'ઈનલાઈન સ્ટાઈલ ની વેલ્યુ "name : value" ના ફોર્મેટ માં હોવી જોઈએ, વચ્ચે સેમી-કોલોન જોઈએ.',
cssLengthTooltip : 'પિક્ષ્લ્ નો આંકડો CSS unit (px, %, in, cm, mm, em, ex, pt, or pc) માં નાખો.',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, નથી મળતું</span>'
},
contextmenu :
{
options : 'કોન્તેક્ષ્ત્ મેનુના વિકલ્પો'
},
// Special char dialog.
specialChar :
{
toolbar : 'વિશિષ્ટ અક્ષર ઇન્સર્ટ/દાખલ કરવું',
title : 'સ્પેશિઅલ વિશિષ્ટ અક્ષર પસંદ કરો',
options : 'સ્પેશિઅલ કરેક્ટરના વિકલ્પો'
},
// Link dialog.
link :
{
toolbar : 'લિંક ઇન્સર્ટ/દાખલ કરવી',
other : '<other> <અન્ય>',
menu : ' લિંક એડિટ/માં ફેરફાર કરવો',
title : 'લિંક',
info : 'લિંક ઇન્ફૉ ટૅબ',
target : 'ટાર્ગેટ/લક્ષ્ય',
upload : 'અપલોડ',
advanced : 'અડ્વાન્સડ',
type : 'લિંક પ્રકાર',
toUrl : 'URL',
toAnchor : 'આ પેજનો ઍંકર',
toEmail : 'ઈ-મેલ',
targetFrame : '<ફ્રેમ>',
targetPopup : '<પૉપ-અપ વિન્ડો>',
targetFrameName : 'ટાર્ગેટ ફ્રેમ નું નામ',
targetPopupName : 'પૉપ-અપ વિન્ડો નું નામ',
popupFeatures : 'પૉપ-અપ વિન્ડો ફીચરસૅ',
popupResizable : 'રીસાઈઝએબલ',
popupStatusBar : 'સ્ટૅટસ બાર',
popupLocationBar: 'લોકેશન બાર',
popupToolbar : 'ટૂલ બાર',
popupMenuBar : 'મેન્યૂ બાર',
popupFullScreen : 'ફુલ સ્ક્રીન (IE)',
popupScrollBars : 'સ્ક્રોલ બાર',
popupDependent : 'ડિપેન્ડન્ટ (Netscape)',
popupLeft : 'ડાબી બાજુ',
popupTop : 'જમણી બાજુ',
id : 'Id',
langDir : 'ભાષા લેખવાની પદ્ધતિ',
langDirLTR : 'ડાબે થી જમણે (LTR)',
langDirRTL : 'જમણે થી ડાબે (RTL)',
acccessKey : 'ઍક્સેસ કી',
name : 'નામ',
langCode : 'ભાષા લેખવાની પદ્ધતિ',
tabIndex : 'ટૅબ ઇન્ડેક્સ',
advisoryTitle : 'મુખ્ય મથાળું',
advisoryContentType : 'મુખ્ય કન્ટેન્ટ પ્રકાર',
cssClasses : 'સ્ટાઇલ-શીટ ક્લાસ',
charset : 'લિંક રિસૉર્સ કૅરિક્ટર સેટ',
styles : 'સ્ટાઇલ',
rel : 'સંબંધની સ્થિતિ',
selectAnchor : 'ઍંકર પસંદ કરો',
anchorName : 'ઍંકર નામથી પસંદ કરો',
anchorId : 'ઍંકર એલિમન્ટ Id થી પસંદ કરો',
emailAddress : 'ઈ-મેલ સરનામું',
emailSubject : 'ઈ-મેલ વિષય',
emailBody : 'સંદેશ',
noAnchors : '(ડૉક્યુમન્ટમાં ઍંકરની સંખ્યા)',
noUrl : 'લિંક URL ટાઇપ કરો',
noEmail : 'ઈ-મેલ સરનામું ટાઇપ કરો'
},
// Anchor dialog
anchor :
{
toolbar : 'ઍંકર ઇન્સર્ટ/દાખલ કરવી',
menu : 'ઍંકરના ગુણ',
title : 'ઍંકરના ગુણ',
name : 'ઍંકરનું નામ',
errorName : 'ઍંકરનું નામ ટાઈપ કરો',
remove : 'સ્થિર નકરવું'
},
// List style dialog
list:
{
numberedTitle : 'આંકડાના લીસ્ટના ગુણ',
bulletedTitle : 'બુલેટેડ લીસ્ટના ગુણ',
type : 'પ્રકાર',
start : 'શરુ કરવું',
validateStartNumber :'લીસ્ટના સરુઆતનો આંકડો પુરો હોવો જોઈએ.',
circle : 'વર્તુળ',
disc : 'ડિસ્ક',
square : 'ચોરસ',
none : 'કસુ ',
notset : '<સેટ નથી>',
armenian : 'અરમેનિયન આંકડા પદ્ધતિ',
georgian : 'ગેઓર્ગિયન આંકડા પદ્ધતિ (an, ban, gan, etc.)',
lowerRoman : 'રોમન નાના (i, ii, iii, iv, v, etc.)',
upperRoman : 'રોમન મોટા (I, II, III, IV, V, etc.)',
lowerAlpha : 'આલ્ફા નાના (a, b, c, d, e, etc.)',
upperAlpha : 'આલ્ફા મોટા (A, B, C, D, E, etc.)',
lowerGreek : 'ગ્રીક નાના (alpha, beta, gamma, etc.)',
decimal : 'આંકડા (1, 2, 3, etc.)',
decimalLeadingZero : 'સુન્ય આગળ આંકડા (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'શોધવું અને બદલવું',
find : 'શોધવું',
replace : 'રિપ્લેસ/બદલવું',
findWhat : 'આ શોધો',
replaceWith : 'આનાથી બદલો',
notFoundMsg : 'તમે શોધેલી ટેક્સ્ટ નથી મળી',
findOptions : 'વીકલ્પ શોધો',
matchCase : 'કેસ સરખા રાખો',
matchWord : 'બઘા શબ્દ સરખા રાખો',
matchCyclic : 'સરખાવવા બધા',
replaceAll : 'બઘા બદલી ',
replaceSuccessMsg : '%1 ફેરફારો બાદલાયા છે.'
},
// Table Dialog
table :
{
toolbar : 'ટેબલ, કોઠો',
title : 'ટેબલ, કોઠાનું મથાળું',
menu : 'ટેબલ, કોઠાનું મથાળું',
deleteTable : 'કોઠો ડિલીટ/કાઢી નાખવું',
rows : 'પંક્તિના ખાના',
columns : 'કૉલમ/ઊભી કટાર',
border : 'કોઠાની બાજુ(બોર્ડર) સાઇઝ',
widthPx : 'પિકસલ',
widthPc : 'પ્રતિશત',
widthUnit : 'પોહાલાઈ એકમ',
cellSpace : 'સેલ અંતર',
cellPad : 'સેલ પૅડિંગ',
caption : 'મથાળું/કૅપ્શન ',
summary : 'ટૂંકો એહેવાલ',
headers : 'મથાળા',
headersNone : 'નથી ',
headersColumn : 'પહેલી ઊભી કટાર',
headersRow : 'પહેલી કટાર',
headersBoth : 'બેવું',
invalidRows : 'આડી કટાર, 0 કરતા વધારે હોવી જોઈએ.',
invalidCols : 'ઉભી કટાર, 0 કરતા વધારે હોવી જોઈએ.',
invalidBorder : 'બોર્ડર એક આંકડો હોવો જોઈએ',
invalidWidth : 'ટેબલની પોહલાઈ આંકડો હોવો જોઈએ.',
invalidHeight : 'ટેબલની ઊંચાઈ આંકડો હોવો જોઈએ.',
invalidCellSpacing : 'સેલ વચ્ચેની જગ્યા સુન્ય કરતા વધારે હોવી જોઈએ.',
invalidCellPadding : 'સેલની અંદરની જગ્યા સુન્ય કરતા વધારે હોવી જોઈએ.',
cell :
{
menu : 'કોષના ખાના',
insertBefore : 'પહેલાં કોષ ઉમેરવો',
insertAfter : 'પછી કોષ ઉમેરવો',
deleteCell : 'કોષ ડિલીટ/કાઢી નાખવો',
merge : 'કોષ ભેગા કરવા',
mergeRight : 'જમણી બાજુ ભેગા કરવા',
mergeDown : 'નીચે ભેગા કરવા',
splitHorizontal : 'કોષને સમસ્તરીય વિભાજન કરવું',
splitVertical : 'કોષને સીધું ને ઊભું વિભાજન કરવું',
title : 'સેલના ગુણ',
cellType : 'સેલનો પ્રકાર',
rowSpan : 'આડી કટારની જગ્યા',
colSpan : 'ઊભી કતારની જગ્યા',
wordWrap : 'વર્ડ રેપ',
hAlign : 'સપાટ લાઈનદોરી',
vAlign : 'ઊભી લાઈનદોરી',
alignBaseline : 'બસે લાઈન',
bgColor : 'પાછાળનો રંગ',
borderColor : 'બોર્ડેર રંગ',
data : 'સ્વીકૃત માહિતી',
header : 'મથાળું',
yes : 'હા',
no : 'ના',
invalidWidth : 'સેલની પોહલાઈ આંકડો હોવો જોઈએ.',
invalidHeight : 'સેલની ઊંચાઈ આંકડો હોવો જોઈએ.',
invalidRowSpan : 'રો સ્પાન આંકડો હોવો જોઈએ.',
invalidColSpan : 'કોલમ સ્પાન આંકડો હોવો જોઈએ.',
chooseColor : 'પસંદ કરવું'
},
row :
{
menu : 'પંક્તિના ખાના',
insertBefore : 'પહેલાં પંક્તિ ઉમેરવી',
insertAfter : 'પછી પંક્તિ ઉમેરવી',
deleteRow : 'પંક્તિઓ ડિલીટ/કાઢી નાખવી'
},
column :
{
menu : 'કૉલમ/ઊભી કટાર',
insertBefore : 'પહેલાં કૉલમ/ઊભી કટાર ઉમેરવી',
insertAfter : 'પછી કૉલમ/ઊભી કટાર ઉમેરવી',
deleteColumn : 'કૉલમ/ઊભી કટાર ડિલીટ/કાઢી નાખવી'
}
},
// Button Dialog.
button :
{
title : 'બટનના ગુણ',
text : 'ટેક્સ્ટ (વૅલ્યૂ)',
type : 'પ્રકાર',
typeBtn : 'બટન',
typeSbm : 'સબ્મિટ',
typeRst : 'રિસેટ'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'ચેક બોક્સ ગુણ',
radioTitle : 'રેડિઓ બટનના ગુણ',
value : 'વૅલ્યૂ',
selected : 'સિલેક્ટેડ'
},
// Form Dialog.
form :
{
title : 'ફૉર્મ/પત્રકના ગુણ',
menu : 'ફૉર્મ/પત્રકના ગુણ',
action : 'ક્રિયા',
method : 'પદ્ધતિ',
encoding : 'અન્કોડીન્ગ'
},
// Select Field Dialog.
select :
{
title : 'પસંદગી ક્ષેત્રના ગુણ',
selectInfo : 'સૂચના',
opAvail : 'ઉપલબ્ધ વિકલ્પ',
value : 'વૅલ્યૂ',
size : 'સાઇઝ',
lines : 'લીટીઓ',
chkMulti : 'એકથી વધારે પસંદ કરી શકો',
opText : 'ટેક્સ્ટ',
opValue : 'વૅલ્યૂ',
btnAdd : 'ઉમેરવું',
btnModify : 'બદલવું',
btnUp : 'ઉપર',
btnDown : 'નીચે',
btnSetValue : 'પસંદ કરલી વૅલ્યૂ સેટ કરો',
btnDelete : 'રદ કરવું'
},
// Textarea Dialog.
textarea :
{
title : 'ટેક્સ્ટ એઅરિઆ, શબ્દ વિસ્તારના ગુણ',
cols : 'કૉલમ/ઊભી કટાર',
rows : 'પંક્તિઓ'
},
// Text Field Dialog.
textfield :
{
title : 'ટેક્સ્ટ ફીલ્ડ, શબ્દ ક્ષેત્રના ગુણ',
name : 'નામ',
value : 'વૅલ્યૂ',
charWidth : 'કેરેક્ટરની પહોળાઈ',
maxChars : 'અધિકતમ કેરેક્ટર',
type : 'ટાઇપ',
typeText : 'ટેક્સ્ટ',
typePass : 'પાસવર્ડ'
},
// Hidden Field Dialog.
hidden :
{
title : 'ગુપ્ત ક્ષેત્રના ગુણ',
name : 'નામ',
value : 'વૅલ્યૂ'
},
// Image Dialog.
image :
{
title : 'ચિત્રના ગુણ',
titleButton : 'ચિત્ર બટનના ગુણ',
menu : 'ચિત્રના ગુણ',
infoTab : 'ચિત્ર ની જાણકારી',
btnUpload : 'આ સર્વરને મોકલવું',
upload : 'અપલોડ',
alt : 'ઑલ્ટર્નટ ટેક્સ્ટ',
lockRatio : 'લૉક ગુણોત્તર',
resetSize : 'રીસેટ સાઇઝ',
border : 'બોર્ડર',
hSpace : 'સમસ્તરીય જગ્યા',
vSpace : 'લંબરૂપ જગ્યા',
alertUrl : 'ચિત્રની URL ટાઇપ કરો',
linkTab : 'લિંક',
button2Img : 'તમારે ઈમેજ બટનને સાદી ઈમેજમાં બદલવું છે.',
img2Button : 'તમારે સાદી ઈમેજને ઈમેજ બટનમાં બદલવું છે.',
urlMissing : 'ઈમેજની મૂળ URL છે નહી.',
validateBorder : 'બોર્ડેર આંકડો હોવો જોઈએ.',
validateHSpace : 'HSpaceઆંકડો હોવો જોઈએ.',
validateVSpace : 'VSpace આંકડો હોવો જોઈએ. '
},
// Flash Dialog
flash :
{
properties : 'ફ્લૅશના ગુણ',
propertiesTab : 'ગુણ',
title : 'ફ્લૅશ ગુણ',
chkPlay : 'ઑટો/સ્વયં પ્લે',
chkLoop : 'લૂપ',
chkMenu : 'ફ્લૅશ મેન્યૂ નો પ્રયોગ કરો',
chkFull : 'ફૂલ સ્ક્રીન કરવું',
scale : 'સ્કેલ',
scaleAll : 'સ્કેલ ઓલ/બધુ બતાવો',
scaleNoBorder : 'સ્કેલ બોર્ડર વગર',
scaleFit : 'સ્કેલ એકદમ ફીટ',
access : 'સ્ક્રીપ્ટ એક્સેસ',
accessAlways : 'હમેશાં',
accessSameDomain: 'એજ ડોમેન',
accessNever : 'નહી',
alignAbsBottom : 'Abs નીચે',
alignAbsMiddle : 'Abs ઉપર',
alignBaseline : 'આધાર લીટી',
alignTextTop : 'ટેક્સ્ટ ઉપર',
quality : 'ગુણધર્મ',
qualityBest : 'શ્રેષ્ઠ',
qualityHigh : 'ઊંચું',
qualityAutoHigh : 'ઓટો ઊંચું',
qualityMedium : 'મધ્યમ',
qualityAutoLow : 'ઓટો નીચું',
qualityLow : 'નીચું',
windowModeWindow: 'વિન્ડો',
windowModeOpaque: 'અપારદર્શક',
windowModeTransparent : 'પારદર્શક',
windowMode : 'વિન્ડો મોડ',
flashvars : 'ફલેશ ના વિકલ્પો',
bgcolor : 'બૅકગ્રાઉન્ડ રંગ,',
hSpace : 'સમસ્તરીય જગ્યા',
vSpace : 'લંબરૂપ જગ્યા',
validateSrc : 'લિંક URL ટાઇપ કરો',
validateHSpace : 'HSpace આંકડો હોવો જોઈએ.',
validateVSpace : 'VSpace આંકડો હોવો જોઈએ.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'જોડણી (સ્પેલિંગ) તપાસવી',
title : 'સ્પેલ ',
notAvailable : 'માફ કરશો, આ સુવિધા ઉપલબ્ધ નથી',
errorLoading : 'સર્વિસ એપ્લીકેશન લોડ નથી થ: %s.',
notInDic : 'શબ્દકોશમાં નથી',
changeTo : 'આનાથી બદલવું',
btnIgnore : 'ઇગ્નોર/અવગણના કરવી',
btnIgnoreAll : 'બધાની ઇગ્નોર/અવગણના કરવી',
btnReplace : 'બદલવું',
btnReplaceAll : 'બધા બદલી કરો',
btnUndo : 'અન્ડૂ',
noSuggestions : '- કઇ સજેશન નથી -',
progress : 'શબ્દની જોડણી/સ્પેલ ચેક ચાલુ છે...',
noMispell : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: ખોટી જોડણી મળી નથી',
noChanges : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: એકપણ શબ્દ બદલયો નથી',
oneChange : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: એક શબ્દ બદલયો છે',
manyChanges : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: %1 શબ્દ બદલયા છે',
ieSpellDownload : 'સ્પેલ-ચેકર ઇન્સ્ટોલ નથી. શું તમે ડાઉનલોડ કરવા માંગો છો?'
},
smiley :
{
toolbar : 'સ્માઇલી',
title : 'સ્માઇલી પસંદ કરો',
options : 'સમ્ય્લી વિકલ્પો'
},
elementsPath :
{
eleLabel : 'એલીમેન્ટ્સ નો ',
eleTitle : 'એલીમેન્ટ %1'
},
numberedlist : 'સંખ્યાંકન સૂચિ',
bulletedlist : 'બુલેટ સૂચિ',
indent : 'ઇન્ડેન્ટ, લીટીના આરંભમાં જગ્યા વધારવી',
outdent : 'ઇન્ડેન્ટ લીટીના આરંભમાં જગ્યા ઘટાડવી',
justify :
{
left : 'ડાબી બાજુએ/બાજુ તરફ',
center : 'સંકેંદ્રણ/સેંટરિંગ',
right : 'જમણી બાજુએ/બાજુ તરફ',
block : 'બ્લૉક, અંતરાય જસ્ટિફાઇ'
},
blockquote : 'બ્લૉક-કોટ, અવતરણચિહ્નો',
clipboard :
{
title : 'પેસ્ટ',
cutError : 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કટ કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+X) નો ઉપયોગ કરો.',
copyError : 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કોપી કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+C) का प्रयोग करें।',
pasteMsg : 'Ctrl/Cmd+V નો પ્રયોગ કરી પેસ્ટ કરો',
securityMsg : 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસના કારણે,એડિટર તમારા કિલ્પબોર્ડ ડેટા ને કોપી નથી કરી શકતો. તમારે આ વિન્ડોમાં ફરીથી પેસ્ટ કરવું પડશે.',
pasteArea : 'પેસ્ટ કરવાની જગ્યા'
},
pastefromword :
{
confirmCleanup : 'તમે જે ટેક્ષ્ત્ કોપી કરી રહ્યા છો ટે વર્ડ ની છે. કોપી કરતા પેહલા સાફ કરવી છે?',
toolbar : 'પેસ્ટ (વડૅ ટેક્સ્ટ)',
title : 'પેસ્ટ (વડૅ ટેક્સ્ટ)',
error : 'પેસ્ટ કરેલો ડેટા ઇન્ટરનલ એરર ના લીથે સાફ કરી શકાયો નથી.'
},
pasteText :
{
button : 'પેસ્ટ (ટેક્સ્ટ)',
title : 'પેસ્ટ (ટેક્સ્ટ)'
},
templates :
{
button : 'ટેમ્પ્લેટ',
title : 'કન્ટેન્ટ ટેમ્પ્લેટ',
options : 'ટેમ્પ્લેટના વિકલ્પો',
insertOption : 'મૂળ શબ્દને બદલો',
selectPromptMsg : 'એડિટરમાં ઓપન કરવા ટેમ્પ્લેટ પસંદ કરો (વર્તમાન કન્ટેન્ટ સેવ નહીં થાય):',
emptyListMsg : '(કોઈ ટેમ્પ્લેટ ડિફાઇન નથી)'
},
showBlocks : 'બ્લૉક બતાવવું',
stylesCombo :
{
label : 'શૈલી/રીત',
panelTitle : 'ફોર્મેટ ',
panelTitle1 : 'બ્લોક ',
panelTitle2 : 'ઈનલાઈન ',
panelTitle3 : 'ઓબ્જેક્ટ પદ્ધતિ'
},
format :
{
label : 'ફૉન્ટ ફૉર્મટ, રચનાની શૈલી',
panelTitle : 'ફૉન્ટ ફૉર્મટ, રચનાની શૈલી',
tag_p : 'સામાન્ય',
tag_pre : 'ફૉર્મટેડ',
tag_address : 'સરનામું',
tag_h1 : 'શીર્ષક 1',
tag_h2 : 'શીર્ષક 2',
tag_h3 : 'શીર્ષક 3',
tag_h4 : 'શીર્ષક 4',
tag_h5 : 'શીર્ષક 5',
tag_h6 : 'શીર્ષક 6',
tag_div : 'શીર્ષક (DIV)'
},
div :
{
title : 'Div કન્ટેનર બનાવુંવું',
toolbar : 'Div કન્ટેનર બનાવુંવું',
cssClassInputLabel : 'સ્ટાઈલશીટ કલાસીસ',
styleSelectLabel : 'સ્ટાઈલ',
IdInputLabel : 'Id',
languageCodeInputLabel : 'ભાષાનો કોડ',
inlineStyleInputLabel : 'ઈનલાઈન પદ્ધતિ',
advisoryTitleInputLabel : 'એડવાઈઝર શીર્ષક',
langDirLabel : 'ભાષાની દિશા',
langDirLTRLabel : 'ડાબે થી જમણે (LTR)',
langDirRTLLabel : 'જમણે થી ડાબે (RTL)',
edit : 'ડીવીમાં ફેરફાર કરવો',
remove : 'ડીવી કાઢી કાઢવું'
},
iframe :
{
title : 'IFrame વિકલ્પો',
toolbar : 'IFrame',
noUrl : 'iframe URL ટાઈપ્ કરો',
scrolling : 'સ્ક્રોલબાર ચાલુ કરવા',
border : 'ફ્રેમ બોર્ડેર બતાવવી'
},
font :
{
label : 'ફૉન્ટ',
voiceLabel : 'ફોન્ટ',
panelTitle : 'ફૉન્ટ'
},
fontSize :
{
label : 'ફૉન્ટ સાઇઝ/કદ',
voiceLabel : 'ફોન્ટ સાઈઝ',
panelTitle : 'ફૉન્ટ સાઇઝ/કદ'
},
colorButton :
{
textColorTitle : 'શબ્દનો રંગ',
bgColorTitle : 'બૅકગ્રાઉન્ડ રંગ,',
panelTitle : 'રંગ',
auto : 'સ્વચાલિત',
more : 'ઔર રંગ...'
},
colors :
{
'000' : 'કાળો',
'800000' : 'મરુન',
'8B4513' : 'છીક',
'2F4F4F' : 'ડાર્ક સ્લેટ ગ્રે ',
'008080' : 'ટીલ',
'000080' : 'નેવી',
'4B0082' : 'જામલી',
'696969' : 'ડાર્ક ગ્રે',
'B22222' : 'ઈટ',
'A52A2A' : 'બ્રાઉન',
'DAA520' : 'ગોલ્ડન રોડ',
'006400' : 'ડાર્ક લીલો',
'40E0D0' : 'ટ્રકોઈસ',
'0000CD' : 'મધ્યમ વાદળી',
'800080' : 'પર્પલ',
'808080' : 'ગ્રે',
'F00' : 'લાલ',
'FF8C00' : 'ડાર્ક ઓરંજ',
'FFD700' : 'ગોલ્ડ',
'008000' : 'ગ્રીન',
'0FF' : 'સાયન',
'00F' : 'વાદળી',
'EE82EE' : 'વાયોલેટ',
'A9A9A9' : 'ડીમ ',
'FFA07A' : 'લાઈટ સાલમન',
'FFA500' : 'ઓરંજ',
'FFFF00' : 'પીળો',
'00FF00' : 'લાઈમ',
'AFEEEE' : 'પેલ કોઈસ',
'ADD8E6' : 'લાઈટ બ્લુ',
'DDA0DD' : 'પલ્મ',
'D3D3D3' : 'લાઈટ ગ્રે',
'FFF0F5' : 'લવંડર ',
'FAEBD7' : 'એન્ટીક સફેદ',
'FFFFE0' : 'લાઈટ પીળો',
'F0FFF0' : 'હનીડઉય',
'F0FFFF' : 'અઝુરે',
'F0F8FF' : 'એલીસ બ્લુ',
'E6E6FA' : 'લવંડર',
'FFF' : 'સફેદ'
},
scayt :
{
title : 'ટાઈપ કરતા સ્પેલ તપાસો',
opera_title : 'ઓપેરામાં સપોર્ટ નથી',
enable : 'SCAYT એનેબલ કરવું',
disable : 'SCAYT ડિસેબલ કરવું',
about : 'SCAYT વિષે',
toggle : 'SCAYT ટોગલ',
options : 'વિકલ્પો',
langs : 'ભાષાઓ',
moreSuggestions : 'વધારે વિકલ્પો',
ignore : 'ઇગ્નોર',
ignoreAll : 'બધા ઇગ્નોર ',
addWord : 'શબ્દ ઉમેરવો',
emptyDic : 'ડિક્સનરીનું નામ ખાલી ના હોય.',
optionsTab : 'વિકલ્પો',
allCaps : 'ઓલ-કેપ્સ વર્ડ છોડી દો.',
ignoreDomainNames : 'ડોમેન નામ છોડી દો.',
mixedCase : 'મિક્સ કેસ વર્ડ છોડી દો.',
mixedWithDigits : 'આંકડા વાળા શબ્દ છોડી દો.',
languagesTab : 'ભાષા',
dictionariesTab : 'શબ્દકોશ',
dic_field_name : 'શબ્દકોશ નામ',
dic_create : 'બનાવવું',
dic_restore : 'પાછું ',
dic_delete : 'કાઢી નાખવું',
dic_rename : 'નવું નામ આપવું',
dic_info : 'પેહલા User Dictionary, Cookie તરીકે સ્ટોર થાય છે. પણ Cookie ની સમતા ઓછી છે. જયારે User Dictionary, Cookie તરીકે સ્ટોર ના કરી શકાય, ત્યારે તે અમારા સર્વર પર સ્ટોર થાય છે. તમારી વ્યતિગત ડીકસ્નરી ને સર્વર પર સ્ટોર કરવા માટે તમારે તેનું નામ આપવું પડશે. જો તમે તમારી ડીકસ્નરી નું નામ આપેલું હોય તો તમે રિસ્ટોર બટન ક્લીક કરી શકો.',
aboutTab : 'વિષે'
},
about :
{
title : 'CKEditor વિષે',
dlgTitle : 'CKEditor વિષે',
help : 'મદદ માટે $1 તપાસો',
userGuide : 'CKEditor યુઝર્સ ગાઈડ',
moreInfo : 'લાયસનસની માહિતી માટે અમારી વેબ સાઈટ',
copy : 'કોપીરાઈટ © $1. ઓલ રાઈટ્સ '
},
maximize : 'મોટું કરવું',
minimize : 'નાનું કરવું',
fakeobjects :
{
anchor : 'અનકર',
flash : 'ફ્લેશ ',
iframe : 'IFrame',
hiddenfield : 'હિડન ',
unknown : 'અનનોન ઓબ્જેક્ટ'
},
resize : 'ખેંચી ને યોગ્ય કરવું',
colordialog :
{
title : 'રંગ પસંદ કરો',
options : 'રંગના વિકલ્પ',
highlight : 'હાઈઈટ',
selected : 'પસંદ કરેલો રંગ',
clear : 'સાફ કરવું'
},
toolbarCollapse : 'ટૂલબાર નાનું કરવું',
toolbarExpand : 'ટૂલબાર મોટું કરવું',
toolbarGroups :
{
document : 'દસ્તાવેજ',
clipboard : 'ક્લિપબોર્ડ/અન',
editing : 'એડીટ કરવું',
forms : 'ફોર્મ',
basicstyles : 'બેસિક્ સ્ટાઇલ',
paragraph : 'ફકરો',
links : 'લીંક',
insert : 'ઉમેરવું',
styles : 'સ્ટાઇલ',
colors : 'રંગ',
tools : 'ટૂલ્સ'
},
bidi :
{
ltr : 'ટેક્ષ્ત્ ની દિશા ડાબે થી જમણે',
rtl : 'ટેક્ષ્ત્ ની દિશા જમણે થી ડાબે'
},
docprops :
{
label : 'ડૉક્યુમન્ટ ગુણ/પ્રૉપર્ટિઝ',
title : 'ડૉક્યુમન્ટ ગુણ/પ્રૉપર્ટિઝ',
design : 'ડીસા',
meta : 'મેટાડૅટા',
chooseColor : 'વિકલ્પ',
other : '<other>',
docTitle : 'પેજ મથાળું/ટાઇટલ',
charset : 'કેરેક્ટર સેટ એન્કોડિંગ',
charsetOther : 'અન્ય કેરેક્ટર સેટ એન્કોડિંગ',
charsetASCII : 'ASCII',
charsetCE : 'મધ્ય યુરોપિઅન (Central European)',
charsetCT : 'ચાઇનીઝ (Chinese Traditional Big5)',
charsetCR : 'સિરીલિક (Cyrillic)',
charsetGR : 'ગ્રીક (Greek)',
charsetJP : 'જાપાનિઝ (Japanese)',
charsetKR : 'કોરીયન (Korean)',
charsetTR : 'ટર્કિ (Turkish)',
charsetUN : 'યૂનિકોડ (UTF-8)',
charsetWE : 'પશ્ચિમ યુરોપિઅન (Western European)',
docType : 'ડૉક્યુમન્ટ પ્રકાર શીર્ષક',
docTypeOther : 'અન્ય ડૉક્યુમન્ટ પ્રકાર શીર્ષક',
xhtmlDec : 'XHTML સૂચના સમાવિષ્ટ કરવી',
bgColor : 'બૅકગ્રાઉન્ડ રંગ',
bgImage : 'બૅકગ્રાઉન્ડ ચિત્ર URL',
bgFixed : 'સ્ક્રોલ ન થાય તેવું બૅકગ્રાઉન્ડ',
txtColor : 'શબ્દનો રંગ',
margin : 'પેજ માર્જિન',
marginTop : 'ઉપર',
marginLeft : 'ડાબી',
marginRight : 'જમણી',
marginBottom : 'નીચે',
metaKeywords : 'ડૉક્યુમન્ટ ઇન્ડેક્સ સંકેતશબ્દ (અલ્પવિરામ (,) થી અલગ કરો)',
metaDescription : 'ડૉક્યુમન્ટ વર્ણન',
metaAuthor : 'લેખક',
metaCopyright : 'કૉપિરાઇટ',
previewHtml : '<p>આ એક <strong>સેમ્પલ ટેક્ષ્ત્</strong> છે. તમે <a href="javascript:void(0)">CKEditor</a> વાપરો છો.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/gu.js
|
JavaScript
|
gpl3
| 37,502
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* English (Canadian) language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['en-ca'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1, press ALT 0 for help.', // MISSING
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'Rich Text Editor', // MISSING
// Toolbar buttons without dialogs.
source : 'Source',
newPage : 'New Page',
save : 'Save',
preview : 'Preview',
cut : 'Cut',
copy : 'Copy',
paste : 'Paste',
print : 'Print',
underline : 'Underline',
bold : 'Bold',
italic : 'Italic',
selectAll : 'Select All',
removeFormat : 'Remove Format',
strike : 'Strike Through',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Insert Horizontal Line',
pagebreak : 'Insert Page Break for Printing',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Unlink',
undo : 'Undo',
redo : 'Redo',
// Common messages and labels.
common :
{
browseServer : 'Browse Server',
url : 'URL',
protocol : 'Protocol',
upload : 'Upload',
uploadSubmit : 'Send it to the Server',
image : 'Image',
flash : 'Flash',
form : 'Form',
checkbox : 'Checkbox',
radio : 'Radio Button',
textField : 'Text Field',
textarea : 'Textarea',
hiddenField : 'Hidden Field',
button : 'Button',
select : 'Selection Field',
imageButton : 'Image Button',
notSet : '<not set>',
id : 'Id',
name : 'Name',
langDir : 'Language Direction',
langDirLtr : 'Left to Right (LTR)',
langDirRtl : 'Right to Left (RTL)',
langCode : 'Language Code',
longDescr : 'Long Description URL',
cssClass : 'Stylesheet Classes',
advisoryTitle : 'Advisory Title',
cssStyle : 'Style',
ok : 'OK',
cancel : 'Cancel',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General',
advancedTab : 'Advanced',
validateNumberFailed : 'This value is not a number.',
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?',
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?',
options : 'Options', // MISSING
target : 'Target', // MISSING
targetNew : 'New Window (_blank)', // MISSING
targetTop : 'Topmost Window (_top)', // MISSING
targetSelf : 'Same Window (_self)', // MISSING
targetParent : 'Parent Window (_parent)', // MISSING
langDirLTR : 'Left to Right (LTR)', // MISSING
langDirRTL : 'Right to Left (RTL)', // MISSING
styles : 'Style', // MISSING
cssClasses : 'Stylesheet Classes', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
align : 'Align',
alignLeft : 'Left', // MISSING
alignRight : 'Right', // MISSING
alignCenter : 'Centre',
alignTop : 'Top', // MISSING
alignMiddle : 'Middle', // MISSING
alignBottom : 'Bottom', // MISSING
invalidHeight : 'Height must be a number.', // MISSING
invalidWidth : 'Width must be a number.', // MISSING
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Insert Special Character',
title : 'Select Special Character',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Link',
other : '<other>',
menu : 'Edit Link',
title : 'Link',
info : 'Link Info',
target : 'Target',
upload : 'Upload',
advanced : 'Advanced',
type : 'Link Type',
toUrl : 'URL', // MISSING
toAnchor : 'Link to anchor in the text',
toEmail : 'E-mail',
targetFrame : '<frame>',
targetPopup : '<popup window>',
targetFrameName : 'Target Frame Name',
targetPopupName : 'Popup Window Name',
popupFeatures : 'Popup Window Features',
popupResizable : 'Resizable',
popupStatusBar : 'Status Bar',
popupLocationBar: 'Location Bar',
popupToolbar : 'Toolbar',
popupMenuBar : 'Menu Bar',
popupFullScreen : 'Full Screen (IE)',
popupScrollBars : 'Scroll Bars',
popupDependent : 'Dependent (Netscape)',
popupLeft : 'Left Position',
popupTop : 'Top Position',
id : 'Id',
langDir : 'Language Direction',
langDirLTR : 'Left to Right (LTR)',
langDirRTL : 'Right to Left (RTL)',
acccessKey : 'Access Key',
name : 'Name',
langCode : 'Language Code',
tabIndex : 'Tab Index',
advisoryTitle : 'Advisory Title',
advisoryContentType : 'Advisory Content Type',
cssClasses : 'Stylesheet Classes',
charset : 'Linked Resource Charset',
styles : 'Style',
rel : 'Relationship', // MISSING
selectAnchor : 'Select an Anchor',
anchorName : 'By Anchor Name',
anchorId : 'By Element Id',
emailAddress : 'E-Mail Address',
emailSubject : 'Message Subject',
emailBody : 'Message Body',
noAnchors : '(No anchors available in the document)',
noUrl : 'Please type the link URL',
noEmail : 'Please type the e-mail address'
},
// Anchor dialog
anchor :
{
toolbar : 'Anchor',
menu : 'Edit Anchor',
title : 'Anchor Properties',
name : 'Anchor Name',
errorName : 'Please type the anchor name',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties', // MISSING
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Type', // MISSING
start : 'Start', // MISSING
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Circle', // MISSING
disc : 'Disc', // MISSING
square : 'Square', // MISSING
none : 'None', // MISSING
notset : '<not set>', // MISSING
armenian : 'Armenian numbering', // MISSING
georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING
lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING
upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING
lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING
upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING
lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING
decimal : 'Decimal (1, 2, 3, etc.)', // MISSING
decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Find and Replace',
find : 'Find',
replace : 'Replace',
findWhat : 'Find what:',
replaceWith : 'Replace with:',
notFoundMsg : 'The specified text was not found.',
findOptions : 'Find Options', // MISSING
matchCase : 'Match case',
matchWord : 'Match whole word',
matchCyclic : 'Match cyclic',
replaceAll : 'Replace All',
replaceSuccessMsg : '%1 occurrence(s) replaced.'
},
// Table Dialog
table :
{
toolbar : 'Table',
title : 'Table Properties',
menu : 'Table Properties',
deleteTable : 'Delete Table',
rows : 'Rows',
columns : 'Columns',
border : 'Border size',
widthPx : 'pixels',
widthPc : 'percent',
widthUnit : 'width unit', // MISSING
cellSpace : 'Cell spacing',
cellPad : 'Cell padding',
caption : 'Caption',
summary : 'Summary',
headers : 'Headers',
headersNone : 'None',
headersColumn : 'First column',
headersRow : 'First Row',
headersBoth : 'Both',
invalidRows : 'Number of rows must be a number greater than 0.',
invalidCols : 'Number of columns must be a number greater than 0.',
invalidBorder : 'Border size must be a number.',
invalidWidth : 'Table width must be a number.',
invalidHeight : 'Table height must be a number.',
invalidCellSpacing : 'Cell spacing must be a number.',
invalidCellPadding : 'Cell padding must be a number.',
cell :
{
menu : 'Cell',
insertBefore : 'Insert Cell Before',
insertAfter : 'Insert Cell After',
deleteCell : 'Delete Cells',
merge : 'Merge Cells',
mergeRight : 'Merge Right',
mergeDown : 'Merge Down',
splitHorizontal : 'Split Cell Horizontally',
splitVertical : 'Split Cell Vertically',
title : 'Cell Properties',
cellType : 'Cell Type',
rowSpan : 'Rows Span',
colSpan : 'Columns Span',
wordWrap : 'Word Wrap',
hAlign : 'Horizontal Alignment',
vAlign : 'Vertical Alignment',
alignBaseline : 'Baseline',
bgColor : 'Background Color',
borderColor : 'Border Color',
data : 'Data',
header : 'Header',
yes : 'Yes',
no : 'No',
invalidWidth : 'Cell width must be a number.',
invalidHeight : 'Cell height must be a number.',
invalidRowSpan : 'Rows span must be a whole number.',
invalidColSpan : 'Columns span must be a whole number.',
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'Row',
insertBefore : 'Insert Row Before',
insertAfter : 'Insert Row After',
deleteRow : 'Delete Rows'
},
column :
{
menu : 'Column',
insertBefore : 'Insert Column Before',
insertAfter : 'Insert Column After',
deleteColumn : 'Delete Columns'
}
},
// Button Dialog.
button :
{
title : 'Button Properties',
text : 'Text (Value)',
type : 'Type',
typeBtn : 'Button',
typeSbm : 'Submit',
typeRst : 'Reset'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox Properties',
radioTitle : 'Radio Button Properties',
value : 'Value',
selected : 'Selected'
},
// Form Dialog.
form :
{
title : 'Form Properties',
menu : 'Form Properties',
action : 'Action',
method : 'Method',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Selection Field Properties',
selectInfo : 'Select Info',
opAvail : 'Available Options',
value : 'Value',
size : 'Size',
lines : 'lines',
chkMulti : 'Allow multiple selections',
opText : 'Text',
opValue : 'Value',
btnAdd : 'Add',
btnModify : 'Modify',
btnUp : 'Up',
btnDown : 'Down',
btnSetValue : 'Set as selected value',
btnDelete : 'Delete'
},
// Textarea Dialog.
textarea :
{
title : 'Textarea Properties',
cols : 'Columns',
rows : 'Rows'
},
// Text Field Dialog.
textfield :
{
title : 'Text Field Properties',
name : 'Name',
value : 'Value',
charWidth : 'Character Width',
maxChars : 'Maximum Characters',
type : 'Type',
typeText : 'Text',
typePass : 'Password'
},
// Hidden Field Dialog.
hidden :
{
title : 'Hidden Field Properties',
name : 'Name',
value : 'Value'
},
// Image Dialog.
image :
{
title : 'Image Properties',
titleButton : 'Image Button Properties',
menu : 'Image Properties',
infoTab : 'Image Info',
btnUpload : 'Send it to the Server',
upload : 'Upload',
alt : 'Alternative Text',
lockRatio : 'Lock Ratio',
resetSize : 'Reset Size',
border : 'Border',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Please type the image URL',
linkTab : 'Link',
button2Img : 'Do you want to transform the selected image button on a simple image?',
img2Button : 'Do you want to transform the selected image on a image button?',
urlMissing : 'Image source URL is missing.', // MISSING
validateBorder : 'Border must be a whole number.', // MISSING
validateHSpace : 'HSpace must be a whole number.', // MISSING
validateVSpace : 'VSpace must be a whole number.' // MISSING
},
// Flash Dialog
flash :
{
properties : 'Flash Properties',
propertiesTab : 'Properties',
title : 'Flash Properties',
chkPlay : 'Auto Play',
chkLoop : 'Loop',
chkMenu : 'Enable Flash Menu',
chkFull : 'Allow Fullscreen',
scale : 'Scale',
scaleAll : 'Show all',
scaleNoBorder : 'No Border',
scaleFit : 'Exact Fit',
access : 'Script Access',
accessAlways : 'Always',
accessSameDomain: 'Same domain',
accessNever : 'Never',
alignAbsBottom : 'Abs Bottom',
alignAbsMiddle : 'Abs Middle',
alignBaseline : 'Baseline',
alignTextTop : 'Text Top',
quality : 'Quality',
qualityBest : 'Best', // MISSING
qualityHigh : 'High', // MISSING
qualityAutoHigh : 'Auto High', // MISSING
qualityMedium : 'Medium', // MISSING
qualityAutoLow : 'Auto Low', // MISSING
qualityLow : 'Low', // MISSING
windowModeWindow: 'Window', // MISSING
windowModeOpaque: 'Opaque', // MISSING
windowModeTransparent : 'Transparent', // MISSING
windowMode : 'Window mode',
flashvars : 'Variables for Flash',
bgcolor : 'Background colour',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'URL must not be empty.',
validateHSpace : 'HSpace must be a number.',
validateVSpace : 'VSpace must be a number.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Check Spelling',
title : 'Spell Check',
notAvailable : 'Sorry, but service is unavailable now.',
errorLoading : 'Error loading application service host: %s.',
notInDic : 'Not in dictionary',
changeTo : 'Change to',
btnIgnore : 'Ignore',
btnIgnoreAll : 'Ignore All',
btnReplace : 'Replace',
btnReplaceAll : 'Replace All',
btnUndo : 'Undo',
noSuggestions : '- No suggestions -',
progress : 'Spell check in progress...',
noMispell : 'Spell check complete: No misspellings found',
noChanges : 'Spell check complete: No words changed',
oneChange : 'Spell check complete: One word changed',
manyChanges : 'Spell check complete: %1 words changed',
ieSpellDownload : 'Spell checker not installed. Do you want to download it now?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Insert a Smiley',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element'
},
numberedlist : 'Insert/Remove Numbered List',
bulletedlist : 'Insert/Remove Bulleted List',
indent : 'Increase Indent',
outdent : 'Decrease Indent',
justify :
{
left : 'Align Left',
center : 'Centre',
right : 'Align Right',
block : 'Justify'
},
blockquote : 'Block Quote',
clipboard :
{
title : 'Paste',
cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).',
copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).',
pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK',
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.',
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING
toolbar : 'Paste from Word',
title : 'Paste from Word',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Paste as plain text',
title : 'Paste as Plain Text'
},
templates :
{
button : 'Templates',
title : 'Content Templates',
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents',
selectPromptMsg : 'Please select the template to open in the editor',
emptyListMsg : '(No templates defined)'
},
showBlocks : 'Show Blocks',
stylesCombo :
{
label : 'Styles',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles',
panelTitle2 : 'Inline Styles',
panelTitle3 : 'Object Styles'
},
format :
{
label : 'Format',
panelTitle : 'Paragraph Format',
tag_p : 'Normal',
tag_pre : 'Formatted',
tag_address : 'Address',
tag_h1 : 'Heading 1',
tag_h2 : 'Heading 2',
tag_h3 : 'Heading 3',
tag_h4 : 'Heading 4',
tag_h5 : 'Heading 5',
tag_h6 : 'Heading 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Create Div Container', // MISSING
toolbar : 'Create Div Container', // MISSING
cssClassInputLabel : 'Stylesheet Classes', // MISSING
styleSelectLabel : 'Style', // MISSING
IdInputLabel : 'Id', // MISSING
languageCodeInputLabel : ' Language Code', // MISSING
inlineStyleInputLabel : 'Inline Style', // MISSING
advisoryTitleInputLabel : 'Advisory Title', // MISSING
langDirLabel : 'Language Direction', // MISSING
langDirLTRLabel : 'Left to Right (LTR)', // MISSING
langDirRTLLabel : 'Right to Left (RTL)', // MISSING
edit : 'Edit Div', // MISSING
remove : 'Remove Div' // MISSING
},
iframe :
{
title : 'IFrame Properties', // MISSING
toolbar : 'IFrame', // MISSING
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'Font',
voiceLabel : 'Font', // MISSING
panelTitle : 'Font Name'
},
fontSize :
{
label : 'Size',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Font Size'
},
colorButton :
{
textColorTitle : 'Text Colour',
bgColorTitle : 'Background Colour',
panelTitle : 'Colors', // MISSING
auto : 'Automatic',
more : 'More Colours...'
},
colors :
{
'000' : 'Black', // MISSING
'800000' : 'Maroon', // MISSING
'8B4513' : 'Saddle Brown', // MISSING
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Indigo', // MISSING
'696969' : 'Dark Gray', // MISSING
'B22222' : 'Fire Brick', // MISSING
'A52A2A' : 'Brown', // MISSING
'DAA520' : 'Golden Rod', // MISSING
'006400' : 'Dark Green', // MISSING
'40E0D0' : 'Turquoise', // MISSING
'0000CD' : 'Medium Blue', // MISSING
'800080' : 'Purple', // MISSING
'808080' : 'Gray', // MISSING
'F00' : 'Red', // MISSING
'FF8C00' : 'Dark Orange', // MISSING
'FFD700' : 'Gold', // MISSING
'008000' : 'Green', // MISSING
'0FF' : 'Cyan', // MISSING
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'Spell Check As You Type', // MISSING
opera_title : 'Not supported by Opera', // MISSING
enable : 'Enable SCAYT', // MISSING
disable : 'Disable SCAYT', // MISSING
about : 'About SCAYT', // MISSING
toggle : 'Toggle SCAYT', // MISSING
options : 'Options', // MISSING
langs : 'Languages', // MISSING
moreSuggestions : 'More suggestions', // MISSING
ignore : 'Ignore', // MISSING
ignoreAll : 'Ignore All', // MISSING
addWord : 'Add Word', // MISSING
emptyDic : 'Dictionary name should not be empty.', // MISSING
optionsTab : 'Options', // MISSING
allCaps : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Ignore Words with Numbers', // MISSING
languagesTab : 'Languages', // MISSING
dictionariesTab : 'Dictionaries', // MISSING
dic_field_name : 'Dictionary name', // MISSING
dic_create : 'Create', // MISSING
dic_restore : 'Restore', // MISSING
dic_delete : 'Delete', // MISSING
dic_rename : 'Rename', // MISSING
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING
aboutTab : 'About' // MISSING
},
about :
{
title : 'About CKEditor',
dlgTitle : 'About CKEditor', // MISSING
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'For licensing information please visit our web site:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Maximize',
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Anchor', // MISSING
flash : 'Flash Animation', // MISSING
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Unknown Object' // MISSING
},
resize : 'Drag to resize', // MISSING
colordialog :
{
title : 'Select color', // MISSING
options : 'Color Options', // MISSING
highlight : 'Highlight', // MISSING
selected : 'Selected Color', // MISSING
clear : 'Clear' // MISSING
},
toolbarCollapse : 'Collapse Toolbar', // MISSING
toolbarExpand : 'Expand Toolbar', // MISSING
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'Text direction from left to right', // MISSING
rtl : 'Text direction from right to left' // MISSING
},
docprops :
{
label : 'Document Properties', // MISSING
title : 'Document Properties', // MISSING
design : 'Design', // MISSING
meta : 'Meta Tags', // MISSING
chooseColor : 'Choose', // MISSING
other : 'Other...', // MISSING
docTitle : 'Page Title', // MISSING
charset : 'Character Set Encoding', // MISSING
charsetOther : 'Other Character Set Encoding', // MISSING
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Central European', // MISSING
charsetCT : 'Chinese Traditional (Big5)', // MISSING
charsetCR : 'Cyrillic', // MISSING
charsetGR : 'Greek', // MISSING
charsetJP : 'Japanese', // MISSING
charsetKR : 'Korean', // MISSING
charsetTR : 'Turkish', // MISSING
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Western European', // MISSING
docType : 'Document Type Heading', // MISSING
docTypeOther : 'Other Document Type Heading', // MISSING
xhtmlDec : 'Include XHTML Declarations', // MISSING
bgColor : 'Background Color', // MISSING
bgImage : 'Background Image URL', // MISSING
bgFixed : 'Non-scrolling (Fixed) Background', // MISSING
txtColor : 'Text Color', // MISSING
margin : 'Page Margins', // MISSING
marginTop : 'Top', // MISSING
marginLeft : 'Left', // MISSING
marginRight : 'Right', // MISSING
marginBottom : 'Bottom', // MISSING
metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING
metaDescription : 'Document Description', // MISSING
metaAuthor : 'Author', // MISSING
metaCopyright : 'Copyright', // MISSING
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/en-ca.js
|
JavaScript
|
gpl3
| 25,464
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Afrikaans language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['af'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Teksverwerker, %1, druk op ALT 0 vir hulp.',
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'Teksverwerker',
// Toolbar buttons without dialogs.
source : 'Bron',
newPage : 'Nuwe bladsy',
save : 'Bewaar',
preview : 'Voorbeeld',
cut : 'Knip',
copy : 'Kopiëer',
paste : 'Plak',
print : 'Druk',
underline : 'Onderstreep',
bold : 'Vet',
italic : 'Skuins',
selectAll : 'Selekteer alles',
removeFormat : 'Verwyder opmaak',
strike : 'Deurstreep',
subscript : 'Onderskrif',
superscript : 'Bo-skrif',
horizontalrule : 'Horisontale lyn invoeg',
pagebreak : 'Bladsy-einde invoeg',
pagebreakAlt : 'Bladsy-einde',
unlink : 'Verwyder skakel',
undo : 'Ontdoen',
redo : 'Oordoen',
// Common messages and labels.
common :
{
browseServer : 'Blaai op bediener',
url : 'URL',
protocol : 'Protokol',
upload : 'Oplaai',
uploadSubmit : 'Stuur na bediener',
image : 'Afbeelding',
flash : 'Flash',
form : 'Vorm',
checkbox : 'Merkhokkie',
radio : 'Radioknoppie',
textField : 'Teksveld',
textarea : 'Teks-area',
hiddenField : 'Blinde veld',
button : 'Knop',
select : 'Keuseveld',
imageButton : 'Afbeeldingsknop',
notSet : '<geen instelling>',
id : 'Id',
name : 'Naam',
langDir : 'Skryfrigting',
langDirLtr : 'Links na regs (LTR)',
langDirRtl : 'Regs na links (RTL)',
langCode : 'Taalkode',
longDescr : 'Lang beskrywing URL',
cssClass : 'CSS klasse',
advisoryTitle : 'Aanbevole titel',
cssStyle : 'Styl',
ok : 'OK',
cancel : 'Kanselleer',
close : 'Sluit',
preview : 'Voorbeeld',
generalTab : 'Algemeen',
advancedTab : 'Gevorderd',
validateNumberFailed : 'Hierdie waarde is nie \'n getal nie.',
confirmNewPage : 'Alle wysiginge sal verlore gaan. Is u seker dat u \'n nuwe bladsy wil laai?',
confirmCancel : 'Sommige opsies is gewysig. Is u seker dat u hierdie dialoogvenster wil sluit?',
options : 'Opsies',
target : 'Doel',
targetNew : 'Nuwe venster (_blank)',
targetTop : 'Boonste venster (_top)',
targetSelf : 'Selfde venster (_self)',
targetParent : 'Oorspronklike venster (_parent)',
langDirLTR : 'Links na Regs (LTR)',
langDirRTL : 'Regs na Links (RTL)',
styles : 'Styl',
cssClasses : 'CSS klasse',
width : 'Breedte',
height : 'Hoogte',
align : 'Oplyn',
alignLeft : 'Links',
alignRight : 'Regs',
alignCenter : 'Sentreer',
alignTop : 'Bo',
alignMiddle : 'Middel',
alignBottom : 'Onder',
invalidHeight : 'Hoogte moet \'n getal wees',
invalidWidth : 'Breedte moet \'n getal wees.',
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, nie beskikbaar nie</span>'
},
contextmenu :
{
options : 'Konteks Spyskaart-opsies'
},
// Special char dialog.
specialChar :
{
toolbar : 'Voeg spesiaale karakter in',
title : 'Kies spesiale karakter',
options : 'Spesiale karakter-opsies'
},
// Link dialog.
link :
{
toolbar : 'Skakel invoeg/wysig',
other : '<ander>',
menu : 'Wysig skakel',
title : 'Skakel',
info : 'Skakel informasie',
target : 'Doel',
upload : 'Oplaai',
advanced : 'Gevorderd',
type : 'Skakelsoort',
toUrl : 'URL',
toAnchor : 'Anker in bladsy',
toEmail : 'E-pos',
targetFrame : '<raam>',
targetPopup : '<opspringvenster>',
targetFrameName : 'Naam van doelraam',
targetPopupName : 'Naam van opspringvenster',
popupFeatures : 'Eienskappe van opspringvenster',
popupResizable : 'Herskaalbaar',
popupStatusBar : 'Statusbalk',
popupLocationBar: 'Adresbalk',
popupToolbar : 'Werkbalk',
popupMenuBar : 'Spyskaartbalk',
popupFullScreen : 'Volskerm (IE)',
popupScrollBars : 'Skuifbalke',
popupDependent : 'Afhanklik (Netscape)',
popupLeft : 'Posisie links',
popupTop : 'Posisie bo',
id : 'Id',
langDir : 'Skryfrigting',
langDirLTR : 'Links na regs (LTR)',
langDirRTL : 'Regs na links (RTL)',
acccessKey : 'Toegangsleutel',
name : 'Naam',
langCode : 'Taalkode',
tabIndex : 'Tab indeks',
advisoryTitle : 'Aanbevole titel',
advisoryContentType : 'Aanbevole inhoudstipe',
cssClasses : 'CSS klasse',
charset : 'Karakterstel van geskakelde bron',
styles : 'Styl',
rel : 'Relationship', // MISSING
selectAnchor : 'Kies \'n anker',
anchorName : 'Op ankernaam',
anchorId : 'Op element Id',
emailAddress : 'E-posadres',
emailSubject : 'Berig-onderwerp',
emailBody : 'Berig-inhoud',
noAnchors : '(Geen ankers beskikbaar in dokument)',
noUrl : 'Gee die skakel se URL',
noEmail : 'Gee die e-posadres'
},
// Anchor dialog
anchor :
{
toolbar : 'Anker byvoeg/verander',
menu : 'Anker-eienskappe',
title : 'Anker-eienskappe',
name : 'Ankernaam',
errorName : 'Voltooi die ankernaam asseblief',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Eienskappe van genommerde lys',
bulletedTitle : 'Eienskappe van ongenommerde lys',
type : 'Tipe',
start : 'Begin',
validateStartNumber :'Beginnommer van lys moet \'n heelgetal wees.',
circle : 'Sirkel',
disc : 'Skyf',
square : 'Vierkant',
none : 'Geen',
notset : '<nie ingestel nie>',
armenian : 'Armeense nommering',
georgian : 'Georgiese nommering (an, ban, gan, ens.)',
lowerRoman : 'Romeinse kleinletters (i, ii, iii, iv, v, ens.)',
upperRoman : 'Romeinse hoofletters (I, II, III, IV, V, ens.)',
lowerAlpha : 'Kleinletters (a, b, c, d, e, ens.)',
upperAlpha : 'Hoofletters (A, B, C, D, E, ens.)',
lowerGreek : 'Griekse kleinletters (alpha, beta, gamma, ens.)',
decimal : 'Desimale syfers (1, 2, 3, ens.)',
decimalLeadingZero : 'Desimale syfers met voorloopnul (01, 02, 03, ens.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Soek en vervang',
find : 'Soek',
replace : 'Vervang',
findWhat : 'Soek na:',
replaceWith : 'Vervang met:',
notFoundMsg : 'Teks nie gevind nie.',
findOptions : 'Find Options', // MISSING
matchCase : 'Hoof/kleinletter sensitief',
matchWord : 'Hele woord moet voorkom',
matchCyclic : 'Soek deurlopend',
replaceAll : 'Vervang alles',
replaceSuccessMsg : '%1 voorkoms(te) vervang.'
},
// Table Dialog
table :
{
toolbar : 'Tabel',
title : 'Tabel eienskappe',
menu : 'Tabel eienskappe',
deleteTable : 'Verwyder tabel',
rows : 'Rye',
columns : 'Kolomme',
border : 'Randbreedte',
widthPx : 'piksels',
widthPc : 'persent',
widthUnit : 'breedte-eenheid',
cellSpace : 'Sel-afstand',
cellPad : 'Sel-spasie',
caption : 'Naam',
summary : 'Opsomming',
headers : 'Opskrifte',
headersNone : 'Geen',
headersColumn : 'Eerste kolom',
headersRow : 'Eerste ry',
headersBoth : 'Beide ',
invalidRows : 'Aantal rye moet \'n getal groter as 0 wees.',
invalidCols : 'Aantal kolomme moet \'n getal groter as 0 wees.',
invalidBorder : 'Randbreedte moet \'n getal wees.',
invalidWidth : 'Tabelbreedte moet \'n getal wees.',
invalidHeight : 'Tabelhoogte moet \'n getal wees.',
invalidCellSpacing : 'Sel-afstand moet \'n getal wees.',
invalidCellPadding : 'Sel-spasie moet \'n getal wees.',
cell :
{
menu : 'Sel',
insertBefore : 'Voeg sel in voor',
insertAfter : 'Voeg sel in na',
deleteCell : 'Verwyder sel',
merge : 'Voeg selle saam',
mergeRight : 'Voeg saam na regs',
mergeDown : 'Voeg saam ondertoe',
splitHorizontal : 'Splits sel horisontaal',
splitVertical : 'Splits sel vertikaal',
title : 'Sel eienskappe',
cellType : 'Sel tipe',
rowSpan : 'Omspan rye',
colSpan : 'Omspan kolomme',
wordWrap : 'Woord terugloop',
hAlign : 'Horisontale oplyning',
vAlign : 'Vertikale oplyning',
alignBaseline : 'Basislyn',
bgColor : 'Agtergrondkleur',
borderColor : 'Randkleur',
data : 'Inhoud',
header : 'Opskrif',
yes : 'Ja',
no : 'Nee',
invalidWidth : 'Selbreedte moet \'n getal wees.',
invalidHeight : 'Selhoogte moet \'n getal wees.',
invalidRowSpan : 'Omspan rye moet \'n heelgetal wees.',
invalidColSpan : 'Omspan kolomme moet \'n heelgetal wees.',
chooseColor : 'Kies'
},
row :
{
menu : 'Ry',
insertBefore : 'Voeg ry in voor',
insertAfter : 'Voeg ry in na',
deleteRow : 'Verwyder ry'
},
column :
{
menu : 'Kolom',
insertBefore : 'Voeg kolom in voor',
insertAfter : 'Voeg kolom in na',
deleteColumn : 'Verwyder kolom'
}
},
// Button Dialog.
button :
{
title : 'Knop eienskappe',
text : 'Teks (Waarde)',
type : 'Soort',
typeBtn : 'Knop',
typeSbm : 'Stuur',
typeRst : 'Maak leeg'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Merkhokkie eienskappe',
radioTitle : 'Radioknoppie eienskappe',
value : 'Waarde',
selected : 'Geselekteer'
},
// Form Dialog.
form :
{
title : 'Vorm eienskappe',
menu : 'Vorm eienskappe',
action : 'Aksie',
method : 'Metode',
encoding : 'Kodering'
},
// Select Field Dialog.
select :
{
title : 'Keuseveld eienskappe',
selectInfo : 'Info',
opAvail : 'Beskikbare opsies',
value : 'Waarde',
size : 'Grootte',
lines : 'Lyne',
chkMulti : 'Laat meer as een keuse toe',
opText : 'Teks',
opValue : 'Waarde',
btnAdd : 'Byvoeg',
btnModify : 'Wysig',
btnUp : 'Op',
btnDown : 'Af',
btnSetValue : 'Stel as geselekteerde waarde',
btnDelete : 'Verwyder'
},
// Textarea Dialog.
textarea :
{
title : 'Teks-area eienskappe',
cols : 'Kolomme',
rows : 'Rye'
},
// Text Field Dialog.
textfield :
{
title : 'Teksveld eienskappe',
name : 'Naam',
value : 'Waarde',
charWidth : 'Breedte (karakters)',
maxChars : 'Maksimum karakters',
type : 'Soort',
typeText : 'Teks',
typePass : 'Wagwoord'
},
// Hidden Field Dialog.
hidden :
{
title : 'Verborge veld eienskappe',
name : 'Naam',
value : 'Waarde'
},
// Image Dialog.
image :
{
title : 'Afbeelding eienskappe',
titleButton : 'Afbeeldingsknop eienskappe',
menu : 'Afbeelding eienskappe',
infoTab : 'Afbeelding informasie',
btnUpload : 'Stuur na bediener',
upload : 'Oplaai',
alt : 'Alternatiewe teks',
lockRatio : 'Vaste proporsie',
resetSize : 'Herstel grootte',
border : 'Rand',
hSpace : 'HSpasie',
vSpace : 'VSpasie',
alertUrl : 'Gee URL van afbeelding.',
linkTab : 'Skakel',
button2Img : 'Wil u die geselekteerde afbeeldingsknop vervang met \'n eenvoudige afbeelding?',
img2Button : 'Wil u die geselekteerde afbeelding vervang met \'n afbeeldingsknop?',
urlMissing : 'Die URL na die afbeelding ontbreek.',
validateBorder : 'Rand moet \'n heelgetal wees.',
validateHSpace : 'HSpasie moet \'n heelgetal wees.',
validateVSpace : 'VSpasie moet \'n heelgetal wees.'
},
// Flash Dialog
flash :
{
properties : 'Flash eienskappe',
propertiesTab : 'Eienskappe',
title : 'Flash eienskappe',
chkPlay : 'Speel outomaties',
chkLoop : 'Herhaal',
chkMenu : 'Flash spyskaart aan',
chkFull : 'Laat volledige skerm toe',
scale : 'Skaal',
scaleAll : 'Wys alles',
scaleNoBorder : 'Geen rand',
scaleFit : 'Presiese pas',
access : 'Skrip toegang',
accessAlways : 'Altyd',
accessSameDomain: 'Selfde domeinnaam',
accessNever : 'Nooit',
alignAbsBottom : 'Absoluut-onder',
alignAbsMiddle : 'Absoluut-middel',
alignBaseline : 'Basislyn',
alignTextTop : 'Teks bo',
quality : 'Kwaliteit',
qualityBest : 'Beste',
qualityHigh : 'Hoog',
qualityAutoHigh : 'Outomaties hoog',
qualityMedium : 'Gemiddeld',
qualityAutoLow : 'Outomaties laag',
qualityLow : 'Laag',
windowModeWindow: 'Venster',
windowModeOpaque: 'Ondeursigtig',
windowModeTransparent : 'Deursigtig',
windowMode : 'Venster modus',
flashvars : 'Veranderlikes vir Flash',
bgcolor : 'Agtergrondkleur',
hSpace : 'HSpasie',
vSpace : 'VSpasie',
validateSrc : 'Voeg die URL in',
validateHSpace : 'HSpasie moet \'n heelgetal wees.',
validateVSpace : 'VSpasie moet \'n heelgetal wees.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Speltoets',
title : 'Speltoetser',
notAvailable : 'Jammer, hierdie diens is nie nou beskikbaar nie.',
errorLoading : 'Fout by inlaai van diens: %s.',
notInDic : 'Nie in woordeboek nie',
changeTo : 'Verander na',
btnIgnore : 'Ignoreer',
btnIgnoreAll : 'Ignoreer alles',
btnReplace : 'Vervang',
btnReplaceAll : 'vervang alles',
btnUndo : 'Ontdoen',
noSuggestions : '- Geen voorstel -',
progress : 'Spelling word getoets...',
noMispell : 'Klaar met speltoets: Geen foute nie',
noChanges : 'Klaar met speltoets: Geen woorde verander nie',
oneChange : 'Klaar met speltoets: Een woord verander',
manyChanges : 'Klaar met speltoets: %1 woorde verander',
ieSpellDownload : 'Speltoetser is nie geïnstalleer nie. Wil u dit nou aflaai?'
},
smiley :
{
toolbar : 'Lagbekkie',
title : 'Voeg lagbekkie by',
options : 'Lagbekkie opsies'
},
elementsPath :
{
eleLabel : 'Elemente-pad',
eleTitle : '%1 element'
},
numberedlist : 'Genommerde lys',
bulletedlist : 'Ongenommerde lys',
indent : 'Vergroot inspring',
outdent : 'Verklein inspring',
justify :
{
left : 'Links oplyn',
center : 'Sentreer',
right : 'Regs oplyn',
block : 'Uitvul'
},
blockquote : 'Sitaatblok',
clipboard :
{
title : 'Byvoeg',
cutError : 'U blaaier se sekuriteitsinstelling belet die outomatiese knip-aksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+X).',
copyError : 'U blaaier se sekuriteitsinstelling belet die kopiëringsaksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+C).',
pasteMsg : 'Plak die teks in die volgende teks-area met die sleutelbordkombinasie (<STRONG>Ctrl/Cmd+V</STRONG>) en druk <STRONG>OK</STRONG>.',
securityMsg : 'Weens u blaaier se sekuriteitsinstelling is data op die knipbord nie toeganklik nie. U kan dit eers weer in hierdie venster plak.',
pasteArea : 'Plak-area'
},
pastefromword :
{
confirmCleanup : 'Die teks wat u wil plak lyk asof dit uit Word gekopiëer is. Wil u dit eers skoonmaak voordat dit geplak word?',
toolbar : 'Plak vanuit Word',
title : 'Plak vanuit Word',
error : 'Die geplakte teks kon nie skoongemaak word nie, weens \'n interne fout'
},
pasteText :
{
button : 'Plak as eenvoudige teks',
title : 'Plak as eenvoudige teks'
},
templates :
{
button : 'Sjablone',
title : 'Inhoud Sjablone',
options : 'Sjabloon opsies',
insertOption : 'Vervang huidige inhoud',
selectPromptMsg : 'Kies die sjabloon om te gebruik in die redigeerder (huidige inhoud gaan verlore):',
emptyListMsg : '(Geen sjablone gedefineer nie)'
},
showBlocks : 'Toon blokke',
stylesCombo :
{
label : 'Styl',
panelTitle : 'Opmaak style',
panelTitle1 : 'Blok style',
panelTitle2 : 'Inlyn style',
panelTitle3 : 'Objek style'
},
format :
{
label : 'Opmaak',
panelTitle : 'Opmaak',
tag_p : 'Normaal',
tag_pre : 'Opgemaak',
tag_address : 'Adres',
tag_h1 : 'Opskrif 1',
tag_h2 : 'Opskrif 2',
tag_h3 : 'Opskrif 3',
tag_h4 : 'Opskrif 4',
tag_h5 : 'Opskrif 5',
tag_h6 : 'Opskrif 6',
tag_div : 'Normaal (DIV)'
},
div :
{
title : 'Skep Div houer',
toolbar : 'Skep Div houer',
cssClassInputLabel : 'CSS klasse',
styleSelectLabel : 'Styl',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Taalkode',
inlineStyleInputLabel : 'Inlyn Styl',
advisoryTitleInputLabel : 'Aanbevole Titel',
langDirLabel : 'Skryfrigting',
langDirLTRLabel : 'Links na regs (LTR)',
langDirRTLLabel : 'Regs na links (RTL)',
edit : 'Wysig Div',
remove : 'Verwyder Div'
},
iframe :
{
title : 'IFrame Eienskappe',
toolbar : 'IFrame',
noUrl : 'Gee die iframe URL',
scrolling : 'Skuifbalke aan',
border : 'Wys rand van raam'
},
font :
{
label : 'Font',
voiceLabel : 'Font',
panelTitle : 'Fontnaam'
},
fontSize :
{
label : 'Grootte',
voiceLabel : 'Fontgrootte',
panelTitle : 'Fontgrootte'
},
colorButton :
{
textColorTitle : 'Tekskleur',
bgColorTitle : 'Agtergrondkleur',
panelTitle : 'Kleure',
auto : 'Outomaties',
more : 'Meer Kleure...'
},
colors :
{
'000' : 'Swart',
'800000' : 'Meroen',
'8B4513' : 'Sjokoladebruin',
'2F4F4F' : 'Donkerleisteengrys',
'008080' : 'Blougroen',
'000080' : 'Vlootblou',
'4B0082' : 'Indigo',
'696969' : 'Donkergrys',
'B22222' : 'Rooibaksteen',
'A52A2A' : 'Bruin',
'DAA520' : 'Donkergeel',
'006400' : 'Donkergroen',
'40E0D0' : 'Turkoois',
'0000CD' : 'Middelblou',
'800080' : 'Pers',
'808080' : 'Grys',
'F00' : 'Rooi',
'FF8C00' : 'Donkeroranje',
'FFD700' : 'Goud',
'008000' : 'Groen',
'0FF' : 'Siaan',
'00F' : 'Blou',
'EE82EE' : 'Viooltjieblou',
'A9A9A9' : 'Donkergrys',
'FFA07A' : 'Ligsalm',
'FFA500' : 'Oranje',
'FFFF00' : 'Geel',
'00FF00' : 'Lemmetjie',
'AFEEEE' : 'Ligturkoois',
'ADD8E6' : 'Ligblou',
'DDA0DD' : 'Pruim',
'D3D3D3' : 'Liggrys',
'FFF0F5' : 'Linne',
'FAEBD7' : 'Ivoor',
'FFFFE0' : 'Liggeel',
'F0FFF0' : 'Heuningdou',
'F0FFFF' : 'Asuur',
'F0F8FF' : 'Ligte hemelsblou',
'E6E6FA' : 'Laventel',
'FFF' : 'Wit'
},
scayt :
{
title : 'Speltoets terwyl u tik',
opera_title : 'Nie ondersteun deur Opera nie',
enable : 'SCAYT aan',
disable : 'SCAYT af',
about : 'SCAYT info',
toggle : 'SCAYT wissel aan/af',
options : 'Opsies',
langs : 'Tale',
moreSuggestions : 'Meer voorstelle',
ignore : 'Ignoreer',
ignoreAll : 'Ignoreer alles',
addWord : 'Voeg woord by',
emptyDic : 'Woordeboeknaam mag nie leeg wees nie.',
optionsTab : 'Opsies',
allCaps : 'Ignoreer woorde in hoofletters',
ignoreDomainNames : 'Ignoreer domeinname',
mixedCase : 'Ignoreer woorde met hoof- en kleinletters',
mixedWithDigits : 'Ignoreer woorde met syfers',
languagesTab : 'Tale',
dictionariesTab : 'Woordeboeke',
dic_field_name : 'Naam van woordeboek',
dic_create : 'Skep',
dic_restore : 'Herstel',
dic_delete : 'Verwijder',
dic_rename : 'Hernoem',
dic_info : 'Aanvanklik word die gebruikerswoordeboek in \'n koekie gestoor. Koekies is egter beperk in grootte. Wanneer die gebruikerswoordeboek te groot vir \'n koekie geword het, kan dit op ons bediener gestoor word. Om u persoonlike woordeboek op ons bediener te stoor, gee asb. \'n naam vir u woordeboek. Indien u alreeds \'n gestoorde woordeboek het, tik die naam en kliek op die Herstel knop.',
aboutTab : 'Info'
},
about :
{
title : 'Info oor CKEditor',
dlgTitle : 'Info oor CKEditor',
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'Vir lisensie-informasie, besoek asb. ons webwerf:',
copy : 'Kopiereg © $1. Alle regte voorbehou.'
},
maximize : 'Maksimaliseer',
minimize : 'Minimaliseer',
fakeobjects :
{
anchor : 'Anker',
flash : 'Flash animasie',
iframe : 'IFrame',
hiddenfield : 'Verborge veld',
unknown : 'Onbekende objek'
},
resize : 'Sleep om te herskaal',
colordialog :
{
title : 'Kies kleur',
options : 'Kleuropsies',
highlight : 'Aktief',
selected : 'Geselekteer',
clear : 'Herstel'
},
toolbarCollapse : 'Verklein werkbalk',
toolbarExpand : 'Vergroot werkbalk',
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'Skryfrigting van links na regs',
rtl : 'Skryfrigting van regs na links'
},
docprops :
{
label : 'Dokument Eienskappe',
title : 'Dokument Eienskappe',
design : 'Design', // MISSING
meta : 'Meta Data',
chooseColor : 'Kies',
other : '<ander>',
docTitle : 'Bladsy Opskrif',
charset : 'Karakterstel Kodeering',
charsetOther : 'Ander Karakterstel Kodeering',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Sentraal Europa',
charsetCT : 'Chinees Traditioneel (Big5)',
charsetCR : 'Cyrillic', // MISSING
charsetGR : 'Grieks',
charsetJP : 'Japanees',
charsetKR : 'Koreans',
charsetTR : 'Turks',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Western European', // MISSING
docType : 'Dokument Opskrif Soort',
docTypeOther : 'Ander Dokument Opskrif Soort',
xhtmlDec : 'Voeg XHTML verklaring by',
bgColor : 'Agtergrond kleur',
bgImage : 'Agtergrond Beeld URL',
bgFixed : 'Vasgeklemde Agtergrond',
txtColor : 'Tekskleur',
margin : 'Bladsy Rante',
marginTop : 'Bo',
marginLeft : 'Links',
marginRight : 'Regs',
marginBottom : 'Onder',
metaKeywords : 'Dokument Index Sleutelwoorde(comma verdeelt)',
metaDescription : 'Dokument Beskrywing',
metaAuthor : 'Skrywer',
metaCopyright : 'Kopiereg',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/af.js
|
JavaScript
|
gpl3
| 23,446
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object for the
* Polish language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['pl'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Edytor tekstu sformatowanego, %1, w celu uzyskania pomocy naciśnij ALT 0.',
// ARIA descriptions.
toolbars : 'Paski narzędzi edytora',
editor : 'Edytor tekstu sformatowanego',
// Toolbar buttons without dialogs.
source : 'Źródło dokumentu',
newPage : 'Nowa strona',
save : 'Zapisz',
preview : 'Podgląd',
cut : 'Wytnij',
copy : 'Kopiuj',
paste : 'Wklej',
print : 'Drukuj',
underline : 'Podkreślenie',
bold : 'Pogrubienie',
italic : 'Kursywa',
selectAll : 'Zaznacz wszystko',
removeFormat : 'Usuń formatowanie',
strike : 'Przekreślenie',
subscript : 'Indeks dolny',
superscript : 'Indeks górny',
horizontalrule : 'Wstaw poziomą linię',
pagebreak : 'Wstaw podział strony',
pagebreakAlt : 'Wstaw podział strony',
unlink : 'Usuń odnośnik',
undo : 'Cofnij',
redo : 'Ponów',
// Common messages and labels.
common :
{
browseServer : 'Przeglądaj',
url : 'Adres URL',
protocol : 'Protokół',
upload : 'Wyślij',
uploadSubmit : 'Wyślij',
image : 'Obrazek',
flash : 'Flash',
form : 'Formularz',
checkbox : 'Pole wyboru (checkbox)',
radio : 'Przycisk opcji (radio)',
textField : 'Pole tekstowe',
textarea : 'Obszar tekstowy',
hiddenField : 'Pole ukryte',
button : 'Przycisk',
select : 'Lista wyboru',
imageButton : 'Przycisk graficzny',
notSet : '<nie ustawiono>',
id : 'Id',
name : 'Nazwa',
langDir : 'Kierunek tekstu',
langDirLtr : 'Od lewej do prawej (LTR)',
langDirRtl : 'Od prawej do lewej (RTL)',
langCode : 'Kod języka',
longDescr : 'Adres URL długiego opisu',
cssClass : 'Nazwa klasy CSS',
advisoryTitle : 'Opis obiektu docelowego',
cssStyle : 'Styl',
ok : 'OK',
cancel : 'Anuluj',
close : 'Zamknij',
preview : 'Podgląd',
generalTab : 'Ogólne',
advancedTab : 'Zaawansowane',
validateNumberFailed : 'Ta wartość nie jest liczbą.',
confirmNewPage : 'Wszystkie niezapisane zmiany zostaną utracone. Czy na pewno wczytać nową stronę?',
confirmCancel : 'Pewne opcje zostały zmienione. Czy na pewno zamknąć okno dialogowe?',
options : 'Opcje',
target : 'Obiekt docelowy',
targetNew : 'Nowe okno (_blank)',
targetTop : 'Okno najwyżej w hierarchii (_top)',
targetSelf : 'To samo okno (_self)',
targetParent : 'Okno nadrzędne (_parent)',
langDirLTR : 'Od lewej do prawej (LTR)',
langDirRTL : 'Od prawej do lewej (RTL)',
styles : 'Style',
cssClasses : 'Klasy arkusza stylów',
width : 'Szerokość',
height : 'Wysokość',
align : 'Wyrównaj',
alignLeft : 'Do lewej',
alignRight : 'Do prawej',
alignCenter : 'Do środka',
alignTop : 'Do góry',
alignMiddle : 'Do środka',
alignBottom : 'Do dołu',
invalidHeight : 'Wysokość musi być liczbą.',
invalidWidth : 'Szerokość musi być liczbą.',
invalidCssLength : 'Wartość podana dla pola "%1" musi być liczbą dodatnią bez jednostki lub z poprawną jednostką długości zgodną z CSS (px, %, in, cm, mm, em, ex, pt lub pc).',
invalidHtmlLength : 'Wartość podana dla pola "%1" musi być liczbą dodatnią bez jednostki lub z poprawną jednostką długości zgodną z HTML (px lub %).',
invalidInlineStyle : 'Wartość podana dla stylu musi składać się z jednej lub większej liczby krotek w formacie "nazwa : wartość", rozdzielonych średnikami.',
cssLengthTooltip : 'Wpisz liczbę dla wartości w pikselach lub liczbę wraz z jednostką długości zgodną z CSS (px, %, in, cm, mm, em, ex, pt lub pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, niedostępne</span>'
},
contextmenu :
{
options : 'Opcje menu kontekstowego'
},
// Special char dialog.
specialChar :
{
toolbar : 'Wstaw znak specjalny',
title : 'Wybierz znak specjalny',
options : 'Opcje znaków specjalnych'
},
// Link dialog.
link :
{
toolbar : 'Wstaw/edytuj odnośnik',
other : '<inny>',
menu : 'Edytuj odnośnik',
title : 'Odnośnik',
info : 'Informacje ',
target : 'Obiekt docelowy',
upload : 'Wyślij',
advanced : 'Zaawansowane',
type : 'Typ odnośnika',
toUrl : 'Adres URL',
toAnchor : 'Odnośnik wewnątrz strony (kotwica)',
toEmail : 'Adres e-mail',
targetFrame : '<ramka>',
targetPopup : '<wyskakujące okno>',
targetFrameName : 'Nazwa ramki docelowej',
targetPopupName : 'Nazwa wyskakującego okna',
popupFeatures : 'Właściwości wyskakującego okna',
popupResizable : 'Skalowalny',
popupStatusBar : 'Pasek statusu',
popupLocationBar: 'Pasek adresu',
popupToolbar : 'Pasek narzędzi',
popupMenuBar : 'Pasek menu',
popupFullScreen : 'Pełny ekran (IE)',
popupScrollBars : 'Paski przewijania',
popupDependent : 'Okno zależne (Netscape)',
popupLeft : 'Pozycja w poziomie',
popupTop : 'Pozycja w pionie',
id : 'Id',
langDir : 'Kierunek tekstu',
langDirLTR : 'Od lewej do prawej (LTR)',
langDirRTL : 'Od prawej do lewej (RTL)',
acccessKey : 'Klawisz dostępu',
name : 'Nazwa',
langCode : 'Kod języka',
tabIndex : 'Indeks kolejności',
advisoryTitle : 'Opis obiektu docelowego',
advisoryContentType : 'Typ MIME obiektu docelowego',
cssClasses : 'Nazwa klasy CSS',
charset : 'Kodowanie znaków obiektu docelowego',
styles : 'Styl',
rel : 'Relacja',
selectAnchor : 'Wybierz kotwicę',
anchorName : 'Wg nazwy',
anchorId : 'Wg identyfikatora',
emailAddress : 'Adres e-mail',
emailSubject : 'Temat',
emailBody : 'Treść',
noAnchors : '(W dokumencie nie zdefiniowano żadnych kotwic)',
noUrl : 'Podaj adres URL',
noEmail : 'Podaj adres e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Wstaw/edytuj kotwicę',
menu : 'Właściwości kotwicy',
title : 'Właściwości kotwicy',
name : 'Nazwa kotwicy',
errorName : 'Wpisz nazwę kotwicy',
remove : 'Usuń kotwicę'
},
// List style dialog
list:
{
numberedTitle : 'Właściwości list numerowanych',
bulletedTitle : 'Właściwości list wypunktowanych',
type : 'Typ punktora',
start : 'Początek',
validateStartNumber :'Listę musi rozpoczynać liczba całkowita.',
circle : 'Koło',
disc : 'Okrąg',
square : 'Kwadrat',
none : 'Brak',
notset : '<nie ustawiono>',
armenian : 'Numerowanie armeńskie',
georgian : 'Numerowanie gruzińskie (an, ban, gan itd.)',
lowerRoman : 'Małe cyfry rzymskie (i, ii, iii, iv, v itd.)',
upperRoman : 'Duże cyfry rzymskie (I, II, III, IV, V itd.)',
lowerAlpha : 'Małe litery (a, b, c, d, e itd.)',
upperAlpha : 'Duże litery (A, B, C, D, E itd.)',
lowerGreek : 'Małe litery greckie (alpha, beta, gamma itd.)',
decimal : 'Liczby (1, 2, 3 itd.)',
decimalLeadingZero : 'Liczby z początkowym zerem (01, 02, 03 itd.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Znajdź i zamień',
find : 'Znajdź',
replace : 'Zamień',
findWhat : 'Znajdź:',
replaceWith : 'Zastąp przez:',
notFoundMsg : 'Nie znaleziono szukanego hasła.',
findOptions : 'Opcje wyszukiwania',
matchCase : 'Uwzględnij wielkość liter',
matchWord : 'Całe słowa',
matchCyclic : 'Cykliczne dopasowanie',
replaceAll : 'Zamień wszystko',
replaceSuccessMsg : '%1 wystąpień zastąpionych.'
},
// Table Dialog
table :
{
toolbar : 'Tabela',
title : 'Właściwości tabeli',
menu : 'Właściwości tabeli',
deleteTable : 'Usuń tabelę',
rows : 'Liczba wierszy',
columns : 'Liczba kolumn',
border : 'Grubość obramowania',
widthPx : 'piksele',
widthPc : '%',
widthUnit : 'jednostka szerokości',
cellSpace : 'Odstęp pomiędzy komórkami',
cellPad : 'Dopełnienie komórek',
caption : 'Tytuł',
summary : 'Podsumowanie',
headers : 'Nagłówki',
headersNone : 'Brak',
headersColumn : 'Pierwsza kolumna',
headersRow : 'Pierwszy wiersz',
headersBoth : 'Oba',
invalidRows : 'Liczba wierszy musi być większa niż 0.',
invalidCols : 'Liczba kolumn musi być większa niż 0.',
invalidBorder : 'Wartość obramowania musi być liczbą.',
invalidWidth : 'Szerokość tabeli musi być liczbą.',
invalidHeight : 'Wysokość tabeli musi być liczbą.',
invalidCellSpacing : 'Odstęp pomiędzy komórkami musi być liczbą dodatnią.',
invalidCellPadding : 'Dopełnienie komórek musi być liczbą dodatnią.',
cell :
{
menu : 'Komórka',
insertBefore : 'Wstaw komórkę z lewej',
insertAfter : 'Wstaw komórkę z prawej',
deleteCell : 'Usuń komórki',
merge : 'Połącz komórki',
mergeRight : 'Połącz z komórką z prawej',
mergeDown : 'Połącz z komórką poniżej',
splitHorizontal : 'Podziel komórkę poziomo',
splitVertical : 'Podziel komórkę pionowo',
title : 'Właściwości komórki',
cellType : 'Typ komórki',
rowSpan : 'Scalenie wierszy',
colSpan : 'Scalenie komórek',
wordWrap : 'Zawijanie słów',
hAlign : 'Wyrównanie poziome',
vAlign : 'Wyrównanie pionowe',
alignBaseline : 'Linia bazowa',
bgColor : 'Kolor tła',
borderColor : 'Kolor obramowania',
data : 'Dane',
header : 'Nagłówek',
yes : 'Tak',
no : 'Nie',
invalidWidth : 'Szerokość komórki musi być liczbą.',
invalidHeight : 'Wysokość komórki musi być liczbą.',
invalidRowSpan : 'Scalenie wierszy musi być liczbą całkowitą.',
invalidColSpan : 'Scalenie komórek musi być liczbą całkowitą.',
chooseColor : 'Wybierz'
},
row :
{
menu : 'Wiersz',
insertBefore : 'Wstaw wiersz powyżej',
insertAfter : 'Wstaw wiersz poniżej',
deleteRow : 'Usuń wiersze'
},
column :
{
menu : 'Kolumna',
insertBefore : 'Wstaw kolumnę z lewej',
insertAfter : 'Wstaw kolumnę z prawej',
deleteColumn : 'Usuń kolumny'
}
},
// Button Dialog.
button :
{
title : 'Właściwości przycisku',
text : 'Tekst (Wartość)',
type : 'Typ',
typeBtn : 'Przycisk',
typeSbm : 'Wyślij',
typeRst : 'Wyczyść'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Właściwości pola wyboru (checkbox)',
radioTitle : 'Właściwości przycisku opcji (radio)',
value : 'Wartość',
selected : 'Zaznaczone'
},
// Form Dialog.
form :
{
title : 'Właściwości formularza',
menu : 'Właściwości formularza',
action : 'Akcja',
method : 'Metoda',
encoding : 'Kodowanie'
},
// Select Field Dialog.
select :
{
title : 'Właściwości listy wyboru',
selectInfo : 'Informacje',
opAvail : 'Dostępne opcje',
value : 'Wartość',
size : 'Rozmiar',
lines : 'wierszy',
chkMulti : 'Wielokrotny wybór',
opText : 'Tekst',
opValue : 'Wartość',
btnAdd : 'Dodaj',
btnModify : 'Zmień',
btnUp : 'Do góry',
btnDown : 'Do dołu',
btnSetValue : 'Ustaw jako zaznaczoną',
btnDelete : 'Usuń'
},
// Textarea Dialog.
textarea :
{
title : 'Właściwości obszaru tekstowego',
cols : 'Liczba kolumn',
rows : 'Liczba wierszy'
},
// Text Field Dialog.
textfield :
{
title : 'Właściwości pola tekstowego',
name : 'Nazwa',
value : 'Wartość',
charWidth : 'Szerokość w znakach',
maxChars : 'Szerokość maksymalna',
type : 'Typ',
typeText : 'Tekst',
typePass : 'Hasło'
},
// Hidden Field Dialog.
hidden :
{
title : 'Właściwości pola ukrytego',
name : 'Nazwa',
value : 'Wartość'
},
// Image Dialog.
image :
{
title : 'Właściwości obrazka',
titleButton : 'Właściwości przycisku graficznego',
menu : 'Właściwości obrazka',
infoTab : 'Informacje o obrazku',
btnUpload : 'Wyślij',
upload : 'Wyślij',
alt : 'Tekst zastępczy',
lockRatio : 'Zablokuj proporcje',
resetSize : 'Przywróć rozmiar',
border : 'Obramowanie',
hSpace : 'Odstęp poziomy',
vSpace : 'Odstęp pionowy',
alertUrl : 'Podaj adres obrazka.',
linkTab : 'Hiperłącze',
button2Img : 'Czy chcesz przekonwertować zaznaczony przycisk graficzny do zwykłego obrazka?',
img2Button : 'Czy chcesz przekonwertować zaznaczony obrazek do przycisku graficznego?',
urlMissing : 'Podaj adres URL obrazka.',
validateBorder : 'Wartość obramowania musi być liczbą całkowitą.',
validateHSpace : 'Wartość odstępu poziomego musi być liczbą całkowitą.',
validateVSpace : 'Wartość odstępu pionowego musi być liczbą całkowitą.'
},
// Flash Dialog
flash :
{
properties : 'Właściwości obiektu Flash',
propertiesTab : 'Właściwości',
title : 'Właściwości obiektu Flash',
chkPlay : 'Autoodtwarzanie',
chkLoop : 'Pętla',
chkMenu : 'Włącz menu',
chkFull : 'Zezwól na pełny ekran',
scale : 'Skaluj',
scaleAll : 'Pokaż wszystko',
scaleNoBorder : 'Bez obramowania',
scaleFit : 'Dokładne dopasowanie',
access : 'Dostęp skryptów',
accessAlways : 'Zawsze',
accessSameDomain: 'Ta sama domena',
accessNever : 'Nigdy',
alignAbsBottom : 'Do dołu',
alignAbsMiddle : 'Do środka w pionie',
alignBaseline : 'Do linii bazowej',
alignTextTop : 'Do góry tekstu',
quality : 'Jakość',
qualityBest : 'Najlepsza',
qualityHigh : 'Wysoka',
qualityAutoHigh : 'Auto wysoka',
qualityMedium : 'Średnia',
qualityAutoLow : 'Auto niska',
qualityLow : 'Niska',
windowModeWindow: 'Okno',
windowModeOpaque: 'Nieprzezroczyste',
windowModeTransparent : 'Przezroczyste',
windowMode : 'Tryb okna',
flashvars : 'Zmienne obiektu Flash',
bgcolor : 'Kolor tła',
hSpace : 'Odstęp poziomy',
vSpace : 'Odstęp pionowy',
validateSrc : 'Podaj adres URL',
validateHSpace : 'Odstęp poziomy musi być liczbą.',
validateVSpace : 'Odstęp pionowy musi być liczbą.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Sprawdź pisownię',
title : 'Sprawdź pisownię',
notAvailable : 'Przepraszamy, ale usługa jest obecnie niedostępna.',
errorLoading : 'Błąd wczytywania hosta aplikacji usługi: %s.',
notInDic : 'Słowa nie ma w słowniku',
changeTo : 'Zmień na',
btnIgnore : 'Ignoruj',
btnIgnoreAll : 'Ignoruj wszystkie',
btnReplace : 'Zmień',
btnReplaceAll : 'Zmień wszystkie',
btnUndo : 'Cofnij',
noSuggestions : '- Brak sugestii -',
progress : 'Trwa sprawdzanie...',
noMispell : 'Sprawdzanie zakończone: nie znaleziono błędów',
noChanges : 'Sprawdzanie zakończone: nie zmieniono żadnego słowa',
oneChange : 'Sprawdzanie zakończone: zmieniono jedno słowo',
manyChanges : 'Sprawdzanie zakończone: zmieniono %l słów',
ieSpellDownload : 'Słownik nie jest zainstalowany. Czy chcesz go pobrać?'
},
smiley :
{
toolbar : 'Emotikony',
title : 'Wstaw emotikona',
options : 'Opcje emotikonów'
},
elementsPath :
{
eleLabel : 'Ścieżka elementów',
eleTitle : 'element %1'
},
numberedlist : 'Lista numerowana',
bulletedlist : 'Lista wypunktowana',
indent : 'Zwiększ wcięcie',
outdent : 'Zmniejsz wcięcie',
justify :
{
left : 'Wyrównaj do lewej',
center : 'Wyśrodkuj',
right : 'Wyrównaj do prawej',
block : 'Wyjustuj'
},
blockquote : 'Cytat',
clipboard :
{
title : 'Wklej',
cutError : 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne wycinanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+X.',
copyError : 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne kopiowanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+C.',
pasteMsg : 'Wklej tekst w poniższym polu, używając skrótu klawiaturowego (<STRONG>Ctrl/Cmd+V</STRONG>), i kliknij <STRONG>OK</STRONG>.',
securityMsg : 'Zabezpieczenia przeglądarki uniemożliwiają wklejenie danych bezpośrednio do edytora. Proszę ponownie wkleić dane w tym oknie.',
pasteArea : 'Obszar wklejania'
},
pastefromword :
{
confirmCleanup : 'Tekst, który chcesz wkleić, prawdopodobnie pochodzi z programu Microsoft Word. Czy chcesz go wyczyścić przed wklejeniem?',
toolbar : 'Wklej z programu MS Word',
title : 'Wklej z programu MS Word',
error : 'Wyczyszczenie wklejonych danych nie było możliwe z powodu wystąpienia błędu.'
},
pasteText :
{
button : 'Wklej jako czysty tekst',
title : 'Wklej jako czysty tekst'
},
templates :
{
button : 'Szablony',
title : 'Szablony zawartości',
options : 'Opcje szablonów',
insertOption : 'Zastąp obecną zawartość',
selectPromptMsg : 'Wybierz szablon do otwarcia w edytorze<br>(obecna zawartość okna edytora zostanie utracona):',
emptyListMsg : '(Brak zdefiniowanych szablonów)'
},
showBlocks : 'Pokaż bloki',
stylesCombo :
{
label : 'Styl',
panelTitle : 'Style formatujące',
panelTitle1 : 'Style blokowe',
panelTitle2 : 'Style liniowe',
panelTitle3 : 'Style obiektowe'
},
format :
{
label : 'Format',
panelTitle : 'Format',
tag_p : 'Normalny',
tag_pre : 'Tekst sformatowany',
tag_address : 'Adres',
tag_h1 : 'Nagłówek 1',
tag_h2 : 'Nagłówek 2',
tag_h3 : 'Nagłówek 3',
tag_h4 : 'Nagłówek 4',
tag_h5 : 'Nagłówek 5',
tag_h6 : 'Nagłówek 6',
tag_div : 'Normalny (DIV)'
},
div :
{
title : 'Utwórz pojemnik Div',
toolbar : 'Utwórz pojemnik Div',
cssClassInputLabel : 'Klasy arkusza stylów',
styleSelectLabel : 'Styl',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Kod języka',
inlineStyleInputLabel : 'Style liniowe',
advisoryTitleInputLabel : 'Opis obiektu docelowego',
langDirLabel : 'Kierunek tekstu',
langDirLTRLabel : 'Od lewej do prawej (LTR)',
langDirRTLLabel : 'Od prawej do lewej (RTL)',
edit : 'Edytuj pojemnik Div',
remove : 'Usuń pojemnik Div'
},
iframe :
{
title : 'Właściwości elementu IFrame',
toolbar : 'IFrame',
noUrl : 'Podaj adres URL elementu IFrame',
scrolling : 'Włącz paski przewijania',
border : 'Pokaż obramowanie obiektu IFrame'
},
font :
{
label : 'Czcionka',
voiceLabel : 'Czcionka',
panelTitle : 'Czcionka'
},
fontSize :
{
label : 'Rozmiar',
voiceLabel : 'Rozmiar czcionki',
panelTitle : 'Rozmiar'
},
colorButton :
{
textColorTitle : 'Kolor tekstu',
bgColorTitle : 'Kolor tła',
panelTitle : 'Kolory',
auto : 'Automatycznie',
more : 'Więcej kolorów...'
},
colors :
{
'000' : 'Czarny',
'800000' : 'Kasztanowy',
'8B4513' : 'Czekoladowy',
'2F4F4F' : 'Ciemnografitowy',
'008080' : 'Morski',
'000080' : 'Granatowy',
'4B0082' : 'Indygo',
'696969' : 'Ciemnoszary',
'B22222' : 'Czerwień żelazowa',
'A52A2A' : 'Brązowy',
'DAA520' : 'Ciemnozłoty',
'006400' : 'Ciemnozielony',
'40E0D0' : 'Turkusowy',
'0000CD' : 'Ciemnoniebieski',
'800080' : 'Purpurowy',
'808080' : 'Szary',
'F00' : 'Czerwony',
'FF8C00' : 'Ciemnopomarańczowy',
'FFD700' : 'Złoty',
'008000' : 'Zielony',
'0FF' : 'Cyjan',
'00F' : 'Niebieski',
'EE82EE' : 'Fioletowy',
'A9A9A9' : 'Przygaszony szary',
'FFA07A' : 'Łososiowy',
'FFA500' : 'Pomarańczowy',
'FFFF00' : 'Żółty',
'00FF00' : 'Limonkowy',
'AFEEEE' : 'Bladoturkusowy',
'ADD8E6' : 'Jasnoniebieski',
'DDA0DD' : 'Śliwkowy',
'D3D3D3' : 'Jasnoszary',
'FFF0F5' : 'Jasnolawendowy',
'FAEBD7' : 'Kremowobiały',
'FFFFE0' : 'Jasnożółty',
'F0FFF0' : 'Bladozielony',
'F0FFFF' : 'Jasnolazurowy',
'F0F8FF' : 'Jasnobłękitny',
'E6E6FA' : 'Lawendowy',
'FFF' : 'Biały'
},
scayt :
{
title : 'Sprawdź pisownię podczas pisania (SCAYT)',
opera_title : 'Funkcja nie jest obsługiwana przez przeglądarkę Opera',
enable : 'Włącz SCAYT',
disable : 'Wyłącz SCAYT',
about : 'Informacje o SCAYT',
toggle : 'Przełącz SCAYT',
options : 'Opcje',
langs : 'Języki',
moreSuggestions : 'Więcej sugestii',
ignore : 'Ignoruj',
ignoreAll : 'Ignoruj wszystkie',
addWord : 'Dodaj słowo',
emptyDic : 'Nazwa słownika nie może być pusta.',
optionsTab : 'Opcje',
allCaps : 'Ignoruj wyrazy pisane dużymi literami',
ignoreDomainNames : 'Ignoruj nazwy domen',
mixedCase : 'Ignoruj wyrazy pisane dużymi i małymi literami',
mixedWithDigits : 'Ignoruj wyrazy zawierające cyfry',
languagesTab : 'Języki',
dictionariesTab : 'Słowniki',
dic_field_name : 'Nazwa słownika',
dic_create : 'Utwórz',
dic_restore : 'Przywróć',
dic_delete : 'Usuń',
dic_rename : 'Zmień nazwę',
dic_info : 'Początkowo słownik użytkownika przechowywany jest w cookie. Pliki cookie mają jednak ograniczoną pojemność. Jeśli słownik użytkownika przekroczy wielkość dopuszczalną dla pliku cookie, możliwe jest przechowanie go na naszym serwerze. W celu zapisania słownika na serwerze niezbędne jest nadanie mu nazwy. Jeśli słownik został już zapisany na serwerze, wystarczy podać jego nazwę i nacisnąć przycisk Przywróć.',
aboutTab : 'Informacje o SCAYT'
},
about :
{
title : 'Informacje o programie CKEditor',
dlgTitle : 'Informacje o programie CKEditor',
help : 'Pomoc znajdziesz w $1.',
userGuide : 'podręczniku użytkownika programu CKEditor',
moreInfo : 'Informacje na temat licencji można znaleźć na naszej stronie:',
copy : 'Copyright © $1. Wszelkie prawa zastrzeżone.'
},
maximize : 'Maksymalizuj',
minimize : 'Minimalizuj',
fakeobjects :
{
anchor : 'Kotwica',
flash : 'Animacja Flash',
iframe : 'IFrame',
hiddenfield : 'Pole ukryte',
unknown : 'Nieznany obiekt'
},
resize : 'Przeciągnij, aby zmienić rozmiar',
colordialog :
{
title : 'Wybierz kolor',
options : 'Opcje koloru',
highlight : 'Zaznacz',
selected : 'Wybrany',
clear : 'Wyczyść'
},
toolbarCollapse : 'Zwiń pasek narzędzi',
toolbarExpand : 'Rozwiń pasek narzędzi',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Schowek/Wstecz',
editing : 'Edycja',
forms : 'Formularze',
basicstyles : 'Style podstawowe',
paragraph : 'Akapit',
links : 'Hiperłącza',
insert : 'Wstawianie',
styles : 'Style',
colors : 'Kolory',
tools : 'Narzędzia'
},
bidi :
{
ltr : 'Kierunek tekstu od lewej strony do prawej',
rtl : 'Kierunek tekstu od prawej strony do lewej'
},
docprops :
{
label : 'Właściwości dokumentu',
title : 'Właściwości dokumentu',
design : 'Projekt strony',
meta : 'Znaczniki meta',
chooseColor : 'Wybierz',
other : 'Inne',
docTitle : 'Tytuł strony',
charset : 'Kodowanie znaków',
charsetOther : 'Inne kodowanie znaków',
charsetASCII : 'ASCII',
charsetCE : 'Środkowoeuropejskie',
charsetCT : 'Chińskie tradycyjne (Big5)',
charsetCR : 'Cyrylica',
charsetGR : 'Greckie',
charsetJP : 'Japońskie',
charsetKR : 'Koreańskie',
charsetTR : 'Tureckie',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Zachodnioeuropejskie',
docType : 'Definicja typu dokumentu',
docTypeOther : 'Inna definicja typu dokumentu',
xhtmlDec : 'Uwzględnij deklaracje XHTML',
bgColor : 'Kolor tła',
bgImage : 'Adres URL obrazka tła',
bgFixed : 'Tło nieruchome (nieprzewijające się)',
txtColor : 'Kolor tekstu',
margin : 'Marginesy strony',
marginTop : 'Górny',
marginLeft : 'Lewy',
marginRight : 'Prawy',
marginBottom : 'Dolny',
metaKeywords : 'Słowa kluczowe dokumentu (oddzielone przecinkami)',
metaDescription : 'Opis dokumentu',
metaAuthor : 'Autor',
metaCopyright : 'Prawa autorskie',
previewHtml : '<p>To jest <strong>przykładowy tekst</strong>. Korzystasz z programu <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/pl.js
|
JavaScript
|
gpl3
| 25,110
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Icelandic language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['is'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1, press ALT 0 for help.', // MISSING
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'Rich Text Editor', // MISSING
// Toolbar buttons without dialogs.
source : 'Kóði',
newPage : 'Ný síða',
save : 'Vista',
preview : 'Forskoða',
cut : 'Klippa',
copy : 'Afrita',
paste : 'Líma',
print : 'Prenta',
underline : 'Undirstrikað',
bold : 'Feitletrað',
italic : 'Skáletrað',
selectAll : 'Velja allt',
removeFormat : 'Fjarlægja snið',
strike : 'Yfirstrikað',
subscript : 'Niðurskrifað',
superscript : 'Uppskrifað',
horizontalrule : 'Lóðrétt lína',
pagebreak : 'Setja inn síðuskil',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Fjarlægja stiklu',
undo : 'Afturkalla',
redo : 'Hætta við afturköllun',
// Common messages and labels.
common :
{
browseServer : 'Fletta í skjalasafni',
url : 'Vefslóð',
protocol : 'Samskiptastaðall',
upload : 'Senda upp',
uploadSubmit : 'Hlaða upp',
image : 'Setja inn mynd',
flash : 'Flash',
form : 'Setja inn innsláttarform',
checkbox : 'Setja inn hökunarreit',
radio : 'Setja inn valhnapp',
textField : 'Setja inn textareit',
textarea : 'Setja inn textasvæði',
hiddenField : 'Setja inn falið svæði',
button : 'Setja inn hnapp',
select : 'Setja inn lista',
imageButton : 'Setja inn myndahnapp',
notSet : '<ekkert valið>',
id : 'Auðkenni',
name : 'Nafn',
langDir : 'Lesstefna',
langDirLtr : 'Frá vinstri til hægri (LTR)',
langDirRtl : 'Frá hægri til vinstri (RTL)',
langCode : 'Tungumálakóði',
longDescr : 'Nánari lýsing',
cssClass : 'Stílsniðsflokkur',
advisoryTitle : 'Titill',
cssStyle : 'Stíll',
ok : 'Í lagi',
cancel : 'Hætta við',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'Almennt',
advancedTab : 'Tæknilegt',
validateNumberFailed : 'This value is not a number.', // MISSING
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
options : 'Options', // MISSING
target : 'Target', // MISSING
targetNew : 'New Window (_blank)', // MISSING
targetTop : 'Topmost Window (_top)', // MISSING
targetSelf : 'Same Window (_self)', // MISSING
targetParent : 'Parent Window (_parent)', // MISSING
langDirLTR : 'Left to Right (LTR)', // MISSING
langDirRTL : 'Right to Left (RTL)', // MISSING
styles : 'Style', // MISSING
cssClasses : 'Stylesheet Classes', // MISSING
width : 'Breidd',
height : 'Hæð',
align : 'Jöfnun',
alignLeft : 'Vinstri',
alignRight : 'Hægri',
alignCenter : 'Miðjað',
alignTop : 'Efst',
alignMiddle : 'Miðjuð',
alignBottom : 'Neðst',
invalidHeight : 'Height must be a number.', // MISSING
invalidWidth : 'Width must be a number.', // MISSING
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Setja inn merki',
title : 'Velja tákn',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Stofna/breyta stiklu',
other : '<annar>',
menu : 'Breyta stiklu',
title : 'Stikla',
info : 'Almennt',
target : 'Mark',
upload : 'Senda upp',
advanced : 'Tæknilegt',
type : 'Stikluflokkur',
toUrl : 'URL', // MISSING
toAnchor : 'Bókamerki á þessari síðu',
toEmail : 'Netfang',
targetFrame : '<rammi>',
targetPopup : '<sprettigluggi>',
targetFrameName : 'Nafn markglugga',
targetPopupName : 'Nafn sprettiglugga',
popupFeatures : 'Eigindi sprettiglugga',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Stöðustika',
popupLocationBar: 'Fanglína',
popupToolbar : 'Verkfærastika',
popupMenuBar : 'Vallína',
popupFullScreen : 'Heilskjár (IE)',
popupScrollBars : 'Skrunstikur',
popupDependent : 'Háð venslum (Netscape)',
popupLeft : 'Fjarlægð frá vinstri',
popupTop : 'Fjarlægð frá efri brún',
id : 'Id', // MISSING
langDir : 'Lesstefna',
langDirLTR : 'Frá vinstri til hægri (LTR)',
langDirRTL : 'Frá hægri til vinstri (RTL)',
acccessKey : 'Skammvalshnappur',
name : 'Nafn',
langCode : 'Lesstefna',
tabIndex : 'Raðnúmer innsláttarreits',
advisoryTitle : 'Titill',
advisoryContentType : 'Tegund innihalds',
cssClasses : 'Stílsniðsflokkur',
charset : 'Táknróf',
styles : 'Stíll',
rel : 'Relationship', // MISSING
selectAnchor : 'Veldu akkeri',
anchorName : 'Eftir akkerisnafni',
anchorId : 'Eftir auðkenni einingar',
emailAddress : 'Netfang',
emailSubject : 'Efni',
emailBody : 'Meginmál',
noAnchors : '<Engin bókamerki á skrá>',
noUrl : 'Sláðu inn veffang stiklunnar!',
noEmail : 'Sláðu inn netfang!'
},
// Anchor dialog
anchor :
{
toolbar : 'Stofna/breyta kaflamerki',
menu : 'Eigindi kaflamerkis',
title : 'Eigindi kaflamerkis',
name : 'Nafn bókamerkis',
errorName : 'Sláðu inn nafn bókamerkis!',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties', // MISSING
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Type', // MISSING
start : 'Start', // MISSING
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Circle', // MISSING
disc : 'Disc', // MISSING
square : 'Square', // MISSING
none : 'None', // MISSING
notset : '<not set>', // MISSING
armenian : 'Armenian numbering', // MISSING
georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING
lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING
upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING
lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING
upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING
lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING
decimal : 'Decimal (1, 2, 3, etc.)', // MISSING
decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Finna og skipta',
find : 'Leita',
replace : 'Skipta út',
findWhat : 'Leita að:',
replaceWith : 'Skipta út fyrir:',
notFoundMsg : 'Leitartexti fannst ekki!',
findOptions : 'Find Options', // MISSING
matchCase : 'Gera greinarmun á¡ há¡- og lágstöfum',
matchWord : 'Aðeins heil orð',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Skipta út allsstaðar',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Tafla',
title : 'Eigindi töflu',
menu : 'Eigindi töflu',
deleteTable : 'Fella töflu',
rows : 'Raðir',
columns : 'Dálkar',
border : 'Breidd ramma',
widthPx : 'myndeindir',
widthPc : 'prósent',
widthUnit : 'width unit', // MISSING
cellSpace : 'Bil milli reita',
cellPad : 'Reitaspássía',
caption : 'Titill',
summary : 'Áfram',
headers : 'Fyrirsagnir',
headersNone : 'Engar',
headersColumn : 'Fyrsti dálkur',
headersRow : 'Fyrsta röð',
headersBoth : 'Hvort tveggja',
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
invalidBorder : 'Border size must be a number.', // MISSING
invalidWidth : 'Table width must be a number.', // MISSING
invalidHeight : 'Table height must be a number.', // MISSING
invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING
invalidCellPadding : 'Cell padding must be a positive number.', // MISSING
cell :
{
menu : 'Reitur',
insertBefore : 'Skjóta inn reiti fyrir aftan',
insertAfter : 'Skjóta inn reiti fyrir framan',
deleteCell : 'Fella reit',
merge : 'Sameina reiti',
mergeRight : 'Sameina til hægri',
mergeDown : 'Sameina niður á við',
splitHorizontal : 'Kljúfa reit lárétt',
splitVertical : 'Kljúfa reit lóðrétt',
title : 'Cell Properties', // MISSING
cellType : 'Cell Type', // MISSING
rowSpan : 'Rows Span', // MISSING
colSpan : 'Columns Span', // MISSING
wordWrap : 'Word Wrap', // MISSING
hAlign : 'Horizontal Alignment', // MISSING
vAlign : 'Vertical Alignment', // MISSING
alignBaseline : 'Baseline', // MISSING
bgColor : 'Background Color', // MISSING
borderColor : 'Border Color', // MISSING
data : 'Data', // MISSING
header : 'Header', // MISSING
yes : 'Yes', // MISSING
no : 'No', // MISSING
invalidWidth : 'Cell width must be a number.', // MISSING
invalidHeight : 'Cell height must be a number.', // MISSING
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
invalidColSpan : 'Columns span must be a whole number.', // MISSING
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'Röð',
insertBefore : 'Skjóta inn röð fyrir ofan',
insertAfter : 'Skjóta inn röð fyrir neðan',
deleteRow : 'Eyða röð'
},
column :
{
menu : 'Dálkur',
insertBefore : 'Skjóta inn dálki vinstra megin',
insertAfter : 'Skjóta inn dálki hægra megin',
deleteColumn : 'Fella dálk'
}
},
// Button Dialog.
button :
{
title : 'Eigindi hnapps',
text : 'Texti',
type : 'Gerð',
typeBtn : 'Hnappur',
typeSbm : 'Staðfesta',
typeRst : 'Hreinsa'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Eigindi markreits',
radioTitle : 'Eigindi valhnapps',
value : 'Gildi',
selected : 'Valið'
},
// Form Dialog.
form :
{
title : 'Eigindi innsláttarforms',
menu : 'Eigindi innsláttarforms',
action : 'Aðgerð',
method : 'Aðferð',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'Eigindi lista',
selectInfo : 'Upplýsingar',
opAvail : 'Kostir',
value : 'Gildi',
size : 'Stærð',
lines : 'línur',
chkMulti : 'Leyfa fleiri kosti',
opText : 'Texti',
opValue : 'Gildi',
btnAdd : 'Bæta við',
btnModify : 'Breyta',
btnUp : 'Upp',
btnDown : 'Niður',
btnSetValue : 'Merkja sem valið',
btnDelete : 'Eyða'
},
// Textarea Dialog.
textarea :
{
title : 'Eigindi textasvæðis',
cols : 'Dálkar',
rows : 'Línur'
},
// Text Field Dialog.
textfield :
{
title : 'Eigindi textareits',
name : 'Nafn',
value : 'Gildi',
charWidth : 'Breidd (leturtákn)',
maxChars : 'Hámarksfjöldi leturtákna',
type : 'Gerð',
typeText : 'Texti',
typePass : 'Lykilorð'
},
// Hidden Field Dialog.
hidden :
{
title : 'Eigindi falins svæðis',
name : 'Nafn',
value : 'Gildi'
},
// Image Dialog.
image :
{
title : 'Eigindi myndar',
titleButton : 'Eigindi myndahnapps',
menu : 'Eigindi myndar',
infoTab : 'Almennt',
btnUpload : 'Hlaða upp',
upload : 'Hlaða upp',
alt : 'Baklægur texti',
lockRatio : 'Festa stærðarhlutfall',
resetSize : 'Reikna stærð',
border : 'Rammi',
hSpace : 'Vinstri bil',
vSpace : 'Hægri bil',
alertUrl : 'Sláðu inn slóðina að myndinni',
linkTab : 'Stikla',
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
img2Button : 'Do you want to transform the selected image on a image button?', // MISSING
urlMissing : 'Image source URL is missing.', // MISSING
validateBorder : 'Border must be a whole number.', // MISSING
validateHSpace : 'HSpace must be a whole number.', // MISSING
validateVSpace : 'VSpace must be a whole number.' // MISSING
},
// Flash Dialog
flash :
{
properties : 'Eigindi Flash',
propertiesTab : 'Properties', // MISSING
title : 'Eigindi Flash',
chkPlay : 'Sjálfvirk spilun',
chkLoop : 'Endurtekning',
chkMenu : 'Sýna Flash-valmynd',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Skali',
scaleAll : 'Sýna allt',
scaleNoBorder : 'Án ramma',
scaleFit : 'Fella skala að stærð',
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Abs neðst',
alignAbsMiddle : 'Abs miðjuð',
alignBaseline : 'Grunnlína',
alignTextTop : 'Efri brún texta',
quality : 'Quality', // MISSING
qualityBest : 'Best', // MISSING
qualityHigh : 'High', // MISSING
qualityAutoHigh : 'Auto High', // MISSING
qualityMedium : 'Medium', // MISSING
qualityAutoLow : 'Auto Low', // MISSING
qualityLow : 'Low', // MISSING
windowModeWindow: 'Window', // MISSING
windowModeOpaque: 'Opaque', // MISSING
windowModeTransparent : 'Transparent', // MISSING
windowMode : 'Window mode', // MISSING
flashvars : 'Variables for Flash', // MISSING
bgcolor : 'Bakgrunnslitur',
hSpace : 'Vinstri bil',
vSpace : 'Hægri bil',
validateSrc : 'Sláðu inn veffang stiklunnar!',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Villuleit',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Ekki í orðabókinni',
changeTo : 'Tillaga',
btnIgnore : 'Hunsa',
btnIgnoreAll : 'Hunsa allt',
btnReplace : 'Skipta',
btnReplaceAll : 'Skipta öllu',
btnUndo : 'Til baka',
noSuggestions : '- engar tillögur -',
progress : 'Villuleit í gangi...',
noMispell : 'Villuleit lokið: Engin villa fannst',
noChanges : 'Villuleit lokið: Engu orði breytt',
oneChange : 'Villuleit lokið: Einu orði breytt',
manyChanges : 'Villuleit lokið: %1 orðum breytt',
ieSpellDownload : 'Villuleit ekki sett upp.<br>Viltu setja hana upp?'
},
smiley :
{
toolbar : 'Svipur',
title : 'Velja svip',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Númeraður listi',
bulletedlist : 'Punktalisti',
indent : 'Minnka inndrátt',
outdent : 'Auka inndrátt',
justify :
{
left : 'Vinstrijöfnun',
center : 'Miðja texta',
right : 'Hægrijöfnun',
block : 'Jafna báðum megin'
},
blockquote : 'Inndráttur',
clipboard :
{
title : 'Líma',
cutError : 'Öryggisstillingar vafrans þíns leyfa ekki klippingu texta með músaraðgerð. Notaðu lyklaborðið í klippa (Ctrl/Cmd+X).',
copyError : 'Öryggisstillingar vafrans þíns leyfa ekki afritun texta með músaraðgerð. Notaðu lyklaborðið í afrita (Ctrl/Cmd+C).',
pasteMsg : 'Límdu í svæðið hér að neðan og (<STRONG>Ctrl/Cmd+V</STRONG>) og smelltu á <STRONG>OK</STRONG>.',
securityMsg : 'Vegna öryggisstillinga í vafranum þínum fær ritillinn ekki beinan aðgang að klippuborðinu. Þú verður að líma innihaldið aftur inn í þennan glugga.',
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING
toolbar : 'Líma úr Word',
title : 'Líma úr Word',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Líma sem ósniðinn texta',
title : 'Líma sem ósniðinn texta'
},
templates :
{
button : 'Sniðmát',
title : 'Innihaldssniðmát',
options : 'Template Options', // MISSING
insertOption : 'Skipta út raunverulegu innihaldi',
selectPromptMsg : 'Veldu sniðmát til að opna í ritlinum.<br>(Núverandi innihald víkur fyrir því!):',
emptyListMsg : '(Ekkert sniðmát er skilgreint!)'
},
showBlocks : 'Sýna blokkir',
stylesCombo :
{
label : 'Stílflokkur',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'Stílsnið',
panelTitle : 'Stílsnið',
tag_p : 'Venjulegt letur',
tag_pre : 'Forsniðið',
tag_address : 'Vistfang',
tag_h1 : 'Fyrirsögn 1',
tag_h2 : 'Fyrirsögn 2',
tag_h3 : 'Fyrirsögn 3',
tag_h4 : 'Fyrirsögn 4',
tag_h5 : 'Fyrirsögn 5',
tag_h6 : 'Fyrirsögn 6',
tag_div : 'Venjulegt (DIV)'
},
div :
{
title : 'Create Div Container', // MISSING
toolbar : 'Create Div Container', // MISSING
cssClassInputLabel : 'Stylesheet Classes', // MISSING
styleSelectLabel : 'Style', // MISSING
IdInputLabel : 'Id', // MISSING
languageCodeInputLabel : ' Language Code', // MISSING
inlineStyleInputLabel : 'Inline Style', // MISSING
advisoryTitleInputLabel : 'Advisory Title', // MISSING
langDirLabel : 'Language Direction', // MISSING
langDirLTRLabel : 'Left to Right (LTR)', // MISSING
langDirRTLLabel : 'Right to Left (RTL)', // MISSING
edit : 'Edit Div', // MISSING
remove : 'Remove Div' // MISSING
},
iframe :
{
title : 'IFrame Properties', // MISSING
toolbar : 'IFrame', // MISSING
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'Leturgerð ',
voiceLabel : 'Font', // MISSING
panelTitle : 'Leturgerð '
},
fontSize :
{
label : 'Leturstærð ',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Leturstærð '
},
colorButton :
{
textColorTitle : 'Litur texta',
bgColorTitle : 'Bakgrunnslitur',
panelTitle : 'Colors', // MISSING
auto : 'Sjálfval',
more : 'Fleiri liti...'
},
colors :
{
'000' : 'Black', // MISSING
'800000' : 'Maroon', // MISSING
'8B4513' : 'Saddle Brown', // MISSING
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Indigo', // MISSING
'696969' : 'Dark Gray', // MISSING
'B22222' : 'Fire Brick', // MISSING
'A52A2A' : 'Brown', // MISSING
'DAA520' : 'Golden Rod', // MISSING
'006400' : 'Dark Green', // MISSING
'40E0D0' : 'Turquoise', // MISSING
'0000CD' : 'Medium Blue', // MISSING
'800080' : 'Purple', // MISSING
'808080' : 'Gray', // MISSING
'F00' : 'Red', // MISSING
'FF8C00' : 'Dark Orange', // MISSING
'FFD700' : 'Gold', // MISSING
'008000' : 'Green', // MISSING
'0FF' : 'Cyan', // MISSING
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'Spell Check As You Type', // MISSING
opera_title : 'Not supported by Opera', // MISSING
enable : 'Enable SCAYT', // MISSING
disable : 'Disable SCAYT', // MISSING
about : 'About SCAYT', // MISSING
toggle : 'Toggle SCAYT', // MISSING
options : 'Options', // MISSING
langs : 'Languages', // MISSING
moreSuggestions : 'More suggestions', // MISSING
ignore : 'Ignore', // MISSING
ignoreAll : 'Ignore All', // MISSING
addWord : 'Add Word', // MISSING
emptyDic : 'Dictionary name should not be empty.', // MISSING
optionsTab : 'Options', // MISSING
allCaps : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Ignore Words with Numbers', // MISSING
languagesTab : 'Languages', // MISSING
dictionariesTab : 'Dictionaries', // MISSING
dic_field_name : 'Dictionary name', // MISSING
dic_create : 'Create', // MISSING
dic_restore : 'Restore', // MISSING
dic_delete : 'Delete', // MISSING
dic_rename : 'Rename', // MISSING
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING
aboutTab : 'About' // MISSING
},
about :
{
title : 'About CKEditor', // MISSING
dlgTitle : 'About CKEditor', // MISSING
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'For licensing information please visit our web site:', // MISSING
copy : 'Copyright © $1. All rights reserved.' // MISSING
},
maximize : 'Maximize', // MISSING
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Anchor', // MISSING
flash : 'Flash Animation', // MISSING
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Unknown Object' // MISSING
},
resize : 'Drag to resize', // MISSING
colordialog :
{
title : 'Select color', // MISSING
options : 'Color Options', // MISSING
highlight : 'Highlight', // MISSING
selected : 'Selected Color', // MISSING
clear : 'Clear' // MISSING
},
toolbarCollapse : 'Collapse Toolbar', // MISSING
toolbarExpand : 'Expand Toolbar', // MISSING
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'Text direction from left to right', // MISSING
rtl : 'Text direction from right to left' // MISSING
},
docprops :
{
label : 'Eigindi skjals',
title : 'Eigindi skjals',
design : 'Design', // MISSING
meta : 'Lýsigögn',
chooseColor : 'Choose', // MISSING
other : '<annar>',
docTitle : 'Titill síðu',
charset : 'Letursett',
charsetOther : 'Annað letursett',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Mið-evrópskt',
charsetCT : 'Kínverskt, hefðbundið (Big5)',
charsetCR : 'Kýrilskt',
charsetGR : 'Grískt',
charsetJP : 'Japanskt',
charsetKR : 'Kóreskt',
charsetTR : 'Tyrkneskt',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Vestur-evrópst',
docType : 'Flokkur skjalategunda',
docTypeOther : 'Annar flokkur skjalategunda',
xhtmlDec : 'Fella inn XHTML lýsingu',
bgColor : 'Bakgrunnslitur',
bgImage : 'Slóð bakgrunnsmyndar',
bgFixed : 'Læstur bakgrunnur',
txtColor : 'Litur texta',
margin : 'Hliðarspássía',
marginTop : 'Efst',
marginLeft : 'Vinstri',
marginRight : 'Hægri',
marginBottom : 'Neðst',
metaKeywords : 'Lykilorð efnisorðaskrár (aðgreind með kommum)',
metaDescription : 'Lýsing skjals',
metaAuthor : 'Höfundur',
metaCopyright : 'Höfundarréttur',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/is.js
|
JavaScript
|
gpl3
| 26,229
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Czech language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['cs'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Textový editor, %1, nápovědu zobrazíte stiskem ALT 0.',
// ARIA descriptions.
toolbars : 'Panely nástrojů editoru',
editor : 'Textový editor',
// Toolbar buttons without dialogs.
source : 'Zdroj',
newPage : 'Nová stránka',
save : 'Uložit',
preview : 'Náhled',
cut : 'Vyjmout',
copy : 'Kopírovat',
paste : 'Vložit',
print : 'Tisk',
underline : 'Podtržené',
bold : 'Tučné',
italic : 'Kurzíva',
selectAll : 'Vybrat vše',
removeFormat : 'Odstranit formátování',
strike : 'Přeškrtnuté',
subscript : 'Dolní index',
superscript : 'Horní index',
horizontalrule : 'Vložit vodorovnou linku',
pagebreak : 'Vložit konec stránky',
pagebreakAlt : 'Konec stránky',
unlink : 'Odstranit odkaz',
undo : 'Zpět',
redo : 'Znovu',
// Common messages and labels.
common :
{
browseServer : 'Vybrat na serveru',
url : 'URL',
protocol : 'Protokol',
upload : 'Odeslat',
uploadSubmit : 'Odeslat na server',
image : 'Obrázek',
flash : 'Flash',
form : 'Formulář',
checkbox : 'Zaškrtávací políčko',
radio : 'Přepínač',
textField : 'Textové pole',
textarea : 'Textová oblast',
hiddenField : 'Skryté pole',
button : 'Tlačítko',
select : 'Seznam',
imageButton : 'Obrázkové tlačítko',
notSet : '<nenastaveno>',
id : 'Id',
name : 'Jméno',
langDir : 'Orientace jazyka',
langDirLtr : 'Zleva do prava (LTR)',
langDirRtl : 'Zprava do leva (RTL)',
langCode : 'Kód jazyka',
longDescr : 'Dlouhý popis URL',
cssClass : 'Třída stylu',
advisoryTitle : 'Pomocný titulek',
cssStyle : 'Styl',
ok : 'OK',
cancel : 'Storno',
close : 'Zavřít',
preview : 'Náhled',
generalTab : 'Obecné',
advancedTab : 'Rozšířené',
validateNumberFailed : 'Zadaná hodnota není číselná.',
confirmNewPage : 'Jakékoliv neuložené změny obsahu budou ztraceny. Skutečně chete otevrít novou stránku?',
confirmCancel : 'Některá z nastavení byla změněna. Skutečně chete zavřít dialogové okno?',
options : 'Nastavení',
target : 'Cíl',
targetNew : 'Nové okno (_blank)',
targetTop : 'Okno nejvyšší úrovně (_top)',
targetSelf : 'Stejné okno (_self)',
targetParent : 'Rodičovské onko (_parent)',
langDirLTR : 'Zleva doprava (LTR)',
langDirRTL : 'Zprava doleva (RTL)',
styles : 'Styly',
cssClasses : 'Třídy stylů',
width : 'Šířka',
height : 'Výška',
align : 'Zarovnání',
alignLeft : 'Vlevo',
alignRight : 'Vpravo',
alignCenter : 'Na střed',
alignTop : 'Nahoru',
alignMiddle : 'Na střed',
alignBottom : 'Dolů',
invalidHeight : 'Zadaná výška musí být číslo.',
invalidWidth : 'Zadaná šířka musí být číslo.',
invalidCssLength : 'Hodnota určená pro pole "%1" musí být kladné číslo bez nebo s platnou jednotkou míry CSS (px, %, in, cm, mm, em, ex, pt, nebo pc).',
invalidHtmlLength : 'Hodnota určená pro pole "%1" musí být kladné číslo bez nebo s platnou jednotkou míry HTML (px nebo %).',
invalidInlineStyle : 'Hodnota určená pro řádkový styl se musí skládat z jedné nebo více n-tic ve formátu "název : hodnota", oddělené středníky',
cssLengthTooltip : 'Zadejte číslo jako hodnotu v pixelech nebo číslo s platnou jednotkou CSS (px, %, v cm, mm, em, ex, pt, nebo pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, nedostupné</span>'
},
contextmenu :
{
options : 'Nastavení kontextové nabídky'
},
// Special char dialog.
specialChar :
{
toolbar : 'Vložit speciální znaky',
title : 'Výběr speciálního znaku',
options : 'Nastavení speciálních znaků'
},
// Link dialog.
link :
{
toolbar : 'Vložit/změnit odkaz',
other : '<jiný>',
menu : 'Změnit odkaz',
title : 'Odkaz',
info : 'Informace o odkazu',
target : 'Cíl',
upload : 'Odeslat',
advanced : 'Rozšířené',
type : 'Typ odkazu',
toUrl : 'URL',
toAnchor : 'Kotva v této stránce',
toEmail : 'E-Mail',
targetFrame : '<rámec>',
targetPopup : '<vyskakovací okno>',
targetFrameName : 'Název cílového rámu',
targetPopupName : 'Název vyskakovacího okna',
popupFeatures : 'Vlastnosti vyskakovacího okna',
popupResizable : 'Umožňující měnit velikost',
popupStatusBar : 'Stavový řádek',
popupLocationBar: 'Panel umístění',
popupToolbar : 'Panel nástrojů',
popupMenuBar : 'Panel nabídky',
popupFullScreen : 'Celá obrazovka (IE)',
popupScrollBars : 'Posuvníky',
popupDependent : 'Závislost (Netscape)',
popupLeft : 'Levý okraj',
popupTop : 'Horní okraj',
id : 'Id',
langDir : 'Orientace jazyka',
langDirLTR : 'Zleva do prava (LTR)',
langDirRTL : 'Zprava do leva (RTL)',
acccessKey : 'Přístupový klíč',
name : 'Jméno',
langCode : 'Orientace jazyka',
tabIndex : 'Pořadí prvku',
advisoryTitle : 'Pomocný titulek',
advisoryContentType : 'Pomocný typ obsahu',
cssClasses : 'Třída stylu',
charset : 'Přiřazená znaková sada',
styles : 'Styl',
rel : 'Vztah',
selectAnchor : 'Vybrat kotvu',
anchorName : 'Podle jména kotvy',
anchorId : 'Podle Id objektu',
emailAddress : 'E-Mailová adresa',
emailSubject : 'Předmět zprávy',
emailBody : 'Tělo zprávy',
noAnchors : '(Ve stránce není definována žádná kotva!)',
noUrl : 'Zadejte prosím URL odkazu',
noEmail : 'Zadejte prosím e-mailovou adresu'
},
// Anchor dialog
anchor :
{
toolbar : 'Vložít/změnit záložku',
menu : 'Vlastnosti záložky',
title : 'Vlastnosti záložky',
name : 'Název záložky',
errorName : 'Zadejte prosím název záložky',
remove : 'Odstranit záložku'
},
// List style dialog
list:
{
numberedTitle : 'Vlastnosti číslování',
bulletedTitle : 'Vlastnosti odrážek',
type : 'Typ',
start : 'Počátek',
validateStartNumber :'Číslování musí začínat celým číslem.',
circle : 'Kroužky',
disc : 'Kolečka',
square : 'Čtverce',
none : 'Nic',
notset : '<nenastaveno>',
armenian : 'Arménské',
georgian : 'Gruzínské (an, ban, gan, atd.)',
lowerRoman : 'Malé římské (i, ii, iii, iv, v, atd.)',
upperRoman : 'Velké římské (I, II, III, IV, V, atd.)',
lowerAlpha : 'Malá latinka (a, b, c, d, e, atd.)',
upperAlpha : 'Velká latinka (A, B, C, D, E, atd.)',
lowerGreek : 'Malé řecké (alpha, beta, gamma, atd.)',
decimal : 'Arabská čísla (1, 2, 3, atd.)',
decimalLeadingZero : 'Arabská čísla uvozená nulou (01, 02, 03, atd.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Najít a nahradit',
find : 'Hledat',
replace : 'Nahradit',
findWhat : 'Co hledat:',
replaceWith : 'Čím nahradit:',
notFoundMsg : 'Hledaný text nebyl nalezen.',
findOptions : 'Možnosti hledání',
matchCase : 'Rozlišovat velikost písma',
matchWord : 'Pouze celá slova',
matchCyclic : 'Procházet opakovaně',
replaceAll : 'Nahradit vše',
replaceSuccessMsg : '%1 nahrazení.'
},
// Table Dialog
table :
{
toolbar : 'Tabulka',
title : 'Vlastnosti tabulky',
menu : 'Vlastnosti tabulky',
deleteTable : 'Smazat tabulku',
rows : 'Řádky',
columns : 'Sloupce',
border : 'Ohraničení',
widthPx : 'bodů',
widthPc : 'procent',
widthUnit : 'jednotka šířky',
cellSpace : 'Vzdálenost buněk',
cellPad : 'Odsazení obsahu v buňce',
caption : 'Popis',
summary : 'Souhrn',
headers : 'Záhlaví',
headersNone : 'Žádné',
headersColumn : 'První sloupec',
headersRow : 'První řádek',
headersBoth : 'Obojí',
invalidRows : 'Počet řádků musí být číslo větší než 0.',
invalidCols : 'Počet sloupců musí být číslo větší než 0.',
invalidBorder : 'Zdaná velikost okraje musí být číselná.',
invalidWidth : 'Zadaná šířka tabulky musí být číselná.',
invalidHeight : 'zadaná výška tabulky musí být číselná.',
invalidCellSpacing : 'Zadaná vzdálenost buněk musí být číselná.',
invalidCellPadding : 'Zadané odsazení obsahu v buňce musí být číselné.',
cell :
{
menu : 'Buňka',
insertBefore : 'Vložit buňku před',
insertAfter : 'Vložit buňku za',
deleteCell : 'Smazat buňky',
merge : 'Sloučit buňky',
mergeRight : 'Sloučit doprava',
mergeDown : 'Sloučit dolů',
splitHorizontal : 'Rozdělit buňky vodorovně',
splitVertical : 'Rozdělit buňky svisle',
title : 'Vlastnosti buňky',
cellType : 'Typ buňky',
rowSpan : 'Spojit řádky',
colSpan : 'Spojit sloupce',
wordWrap : 'Zalamování',
hAlign : 'Vodorovné zarovnání',
vAlign : 'Svislé zarovnání',
alignBaseline : 'Na účaří',
bgColor : 'Barva pozadí',
borderColor : 'Barva okraje',
data : 'Data',
header : 'Hlavička',
yes : 'Ano',
no : 'Ne',
invalidWidth : 'Zadaná šířka buňky musí být číslená.',
invalidHeight : 'Zadaná výška buňky musí být číslená.',
invalidRowSpan : 'Zadaný počet sloučených řádků musí být celé číslo.',
invalidColSpan : 'Zadaný počet sloučených sloupců musí být celé číslo.',
chooseColor : 'Výběr'
},
row :
{
menu : 'Řádek',
insertBefore : 'Vložit řádek před',
insertAfter : 'Vložit řádek za',
deleteRow : 'Smazat řádky'
},
column :
{
menu : 'Sloupec',
insertBefore : 'Vložit sloupec před',
insertAfter : 'Vložit sloupec za',
deleteColumn : 'Smazat sloupec'
}
},
// Button Dialog.
button :
{
title : 'Vlastnosti tlačítka',
text : 'Popisek',
type : 'Typ',
typeBtn : 'Tlačítko',
typeSbm : 'Odeslat',
typeRst : 'Obnovit'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Vlastnosti zaškrtávacího políčka',
radioTitle : 'Vlastnosti přepínače',
value : 'Hodnota',
selected : 'Zaškrtnuto'
},
// Form Dialog.
form :
{
title : 'Vlastnosti formuláře',
menu : 'Vlastnosti formuláře',
action : 'Akce',
method : 'Metoda',
encoding : 'Kódování'
},
// Select Field Dialog.
select :
{
title : 'Vlastnosti seznamu',
selectInfo : 'Info',
opAvail : 'Dostupná nastavení',
value : 'Hodnota',
size : 'Velikost',
lines : 'Řádků',
chkMulti : 'Povolit mnohonásobné výběry',
opText : 'Text',
opValue : 'Hodnota',
btnAdd : 'Přidat',
btnModify : 'Změnit',
btnUp : 'Nahoru',
btnDown : 'Dolů',
btnSetValue : 'Nastavit jako vybranou hodnotu',
btnDelete : 'Smazat'
},
// Textarea Dialog.
textarea :
{
title : 'Vlastnosti textové oblasti',
cols : 'Sloupců',
rows : 'Řádků'
},
// Text Field Dialog.
textfield :
{
title : 'Vlastnosti textového pole',
name : 'Název',
value : 'Hodnota',
charWidth : 'Šířka ve znacích',
maxChars : 'Maximální počet znaků',
type : 'Typ',
typeText : 'Text',
typePass : 'Heslo'
},
// Hidden Field Dialog.
hidden :
{
title : 'Vlastnosti skrytého pole',
name : 'Název',
value : 'Hodnota'
},
// Image Dialog.
image :
{
title : 'Vlastnosti obrázku',
titleButton : 'Vlastností obrázkového tlačítka',
menu : 'Vlastnosti obrázku',
infoTab : 'Informace o obrázku',
btnUpload : 'Odeslat na server',
upload : 'Odeslat',
alt : 'Alternativní text',
lockRatio : 'Zámek',
resetSize : 'Původní velikost',
border : 'Okraje',
hSpace : 'H-mezera',
vSpace : 'V-mezera',
alertUrl : 'Zadejte prosím URL obrázku',
linkTab : 'Odkaz',
button2Img : 'Skutečně chcete převést zvolené obrázkové tlačítko na obyčejný obrázek?',
img2Button : 'Skutečně chcete převést zvolený obrázek na obrázkové tlačítko?',
urlMissing : 'Zadané URL zdroje obrázku nebylo nalezeno.',
validateBorder : 'Okraj musí být nastaven v celých číslech.',
validateHSpace : 'H-mezera musí být nastavena v celých číslech.',
validateVSpace : 'V-mezera musí být nastavena v celých číslech.'
},
// Flash Dialog
flash :
{
properties : 'Vlastnosti Flashe',
propertiesTab : 'Vlastnosti',
title : 'Vlastnosti Flashe',
chkPlay : 'Automatické spuštění',
chkLoop : 'Opakování',
chkMenu : 'Nabídka Flash',
chkFull : 'Povolit celoobrazovkový režim',
scale : 'Zobrazit',
scaleAll : 'Zobrazit vše',
scaleNoBorder : 'Bez okraje',
scaleFit : 'Přizpůsobit',
access : 'Přístup ke skriptu',
accessAlways : 'Vždy',
accessSameDomain: 'Ve stejné doméně',
accessNever : 'Nikdy',
alignAbsBottom : 'Zcela dolů',
alignAbsMiddle : 'Doprostřed',
alignBaseline : 'Na účaří',
alignTextTop : 'Na horní okraj textu',
quality : 'Kvalita',
qualityBest : 'Nejlepší',
qualityHigh : 'Vysoká',
qualityAutoHigh : 'Vysoká - auto',
qualityMedium : 'Střední',
qualityAutoLow : 'Nízká - auto',
qualityLow : 'Nejnižší',
windowModeWindow: 'Okno',
windowModeOpaque: 'Neprůhledné',
windowModeTransparent : 'Průhledné',
windowMode : 'Režim okna',
flashvars : 'Proměnné pro Flash',
bgcolor : 'Barva pozadí',
hSpace : 'H-mezera',
vSpace : 'V-mezera',
validateSrc : 'Zadejte prosím URL odkazu',
validateHSpace : 'Zadaná H-mezera musí být číslo.',
validateVSpace : 'Zadaná V-mezera musí být číslo.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Zkontrolovat pravopis',
title : 'Kontrola pravopisu',
notAvailable : 'Omlouváme se, ale služba nyní není dostupná.',
errorLoading : 'Chyba nahrávání služby aplikace z: %s.',
notInDic : 'Není ve slovníku',
changeTo : 'Změnit na',
btnIgnore : 'Přeskočit',
btnIgnoreAll : 'Přeskakovat vše',
btnReplace : 'Zaměnit',
btnReplaceAll : 'Zaměňovat vše',
btnUndo : 'Zpět',
noSuggestions : '- žádné návrhy -',
progress : 'Probíhá kontrola pravopisu...',
noMispell : 'Kontrola pravopisu dokončena: Žádné pravopisné chyby nenalezeny',
noChanges : 'Kontrola pravopisu dokončena: Beze změn',
oneChange : 'Kontrola pravopisu dokončena: Jedno slovo změněno',
manyChanges : 'Kontrola pravopisu dokončena: %1 slov změněno',
ieSpellDownload : 'Kontrola pravopisu není nainstalována. Chcete ji nyní stáhnout?'
},
smiley :
{
toolbar : 'Smajlíci',
title : 'Vkládání smajlíků',
options : 'Nastavení smajlíků'
},
elementsPath :
{
eleLabel : 'Cesta objektu',
eleTitle : '%1 objekt'
},
numberedlist : 'Číslování',
bulletedlist : 'Odrážky',
indent : 'Zvětšit odsazení',
outdent : 'Zmenšit odsazení',
justify :
{
left : 'Zarovnat vlevo',
center : 'Zarovnat na střed',
right : 'Zarovnat vpravo',
block : 'Zarovnat do bloku'
},
blockquote : 'Citace',
clipboard :
{
title : 'Vložit',
cutError : 'Bezpečnostní nastavení Vašeho prohlížeče nedovolují editoru spustit funkci pro vyjmutí zvoleného textu do schránky. Prosím vyjměte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+X).',
copyError : 'Bezpečnostní nastavení Vašeho prohlížeče nedovolují editoru spustit funkci pro kopírování zvoleného textu do schránky. Prosím zkopírujte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+C).',
pasteMsg : 'Do následujícího pole vložte požadovaný obsah pomocí klávesnice (<STRONG>Ctrl/Cmd+V</STRONG>) a stiskněte <STRONG>OK</STRONG>.',
securityMsg : 'Z důvodů nastavení bezpečnosti Vašeho prohlížeče nemůže editor přistupovat přímo do schránky. Obsah schránky prosím vložte znovu do tohoto okna.',
pasteArea : 'Oblast vlkádání'
},
pastefromword :
{
confirmCleanup : 'Jak je vidět, vkládaný text je kopírován z Wordu. Chcete jej před vložením vyčistit?',
toolbar : 'Vložit z Wordu',
title : 'Vložit z Wordu',
error : 'Z důvodu vnitřní chyby nebylo možné provést vyčištění vkládaného textu.'
},
pasteText :
{
button : 'Vložit jako čistý text',
title : 'Vložit jako čistý text'
},
templates :
{
button : 'Šablony',
title : 'Šablony obsahu',
options : 'Nastavení šablon',
insertOption : 'Nahradit aktuální obsah',
selectPromptMsg : 'Prosím zvolte šablonu pro otevření v editoru<br>(aktuální obsah editoru bude ztracen):',
emptyListMsg : '(Není definována žádná šablona)'
},
showBlocks : 'Ukázat bloky',
stylesCombo :
{
label : 'Styl',
panelTitle : 'Formátovací styly',
panelTitle1 : 'Blokové styly',
panelTitle2 : 'Řádkové styly',
panelTitle3 : 'Objektové styly'
},
format :
{
label : 'Formát',
panelTitle : 'Formát',
tag_p : 'Normální',
tag_pre : 'Naformátováno',
tag_address : 'Adresa',
tag_h1 : 'Nadpis 1',
tag_h2 : 'Nadpis 2',
tag_h3 : 'Nadpis 3',
tag_h4 : 'Nadpis 4',
tag_h5 : 'Nadpis 5',
tag_h6 : 'Nadpis 6',
tag_div : 'Normální (DIV)'
},
div :
{
title : 'Vytvořit Div kontejner',
toolbar : 'Vytvořit Div kontejner',
cssClassInputLabel : 'Třídy stylů',
styleSelectLabel : 'Styly',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Kód jazyka',
inlineStyleInputLabel : 'Vnitřní styly',
advisoryTitleInputLabel : 'Nápovědní titulek',
langDirLabel : 'Orientace textu',
langDirLTRLabel : 'Zleva doprava (LTR)',
langDirRTLLabel : 'Zprava doleva (RTL)',
edit : 'Změnit Div',
remove : 'Odstranit Div'
},
iframe :
{
title : 'Vlastnosti IFrame',
toolbar : 'IFrame',
noUrl : 'Zadejte prosím URL obsahu pro IFrame',
scrolling : 'Zapnout posuvníky',
border : 'Zobrazit okraj'
},
font :
{
label : 'Písmo',
voiceLabel : 'Písmo',
panelTitle : 'Písmo'
},
fontSize :
{
label : 'Velikost',
voiceLabel : 'Velikost písma',
panelTitle : 'Velikost'
},
colorButton :
{
textColorTitle : 'Barva textu',
bgColorTitle : 'Barva pozadí',
panelTitle : 'Barvy',
auto : 'Automaticky',
more : 'Více barev...'
},
colors :
{
'000' : 'Černá',
'800000' : 'Kaštanová',
'8B4513' : 'Sedlová hněď',
'2F4F4F' : 'Tmavě bledě šedá',
'008080' : 'Čírka',
'000080' : 'Námořnická modř',
'4B0082' : 'Inkoustová',
'696969' : 'Tmavě šedá',
'B22222' : 'Pálená cihla',
'A52A2A' : 'Hnědá',
'DAA520' : 'Zlatý prut',
'006400' : 'Tmavě zelená',
'40E0D0' : 'Tyrkisová',
'0000CD' : 'Středně modrá',
'800080' : 'Purpurová',
'808080' : 'Šedá',
'F00' : 'Červená',
'FF8C00' : 'Tmavě oranžová',
'FFD700' : 'Zlatá',
'008000' : 'Zelená',
'0FF' : 'Kyanidová',
'00F' : 'Modrá',
'EE82EE' : 'Fialová',
'A9A9A9' : 'Kalně šedá',
'FFA07A' : 'Světle lososová',
'FFA500' : 'Oranžová',
'FFFF00' : 'Žlutá',
'00FF00' : 'Limetková',
'AFEEEE' : 'Bledě tyrkisová',
'ADD8E6' : 'Světle modrá',
'DDA0DD' : 'Švestková',
'D3D3D3' : 'Světle šedá',
'FFF0F5' : 'Levandulově ruměnná',
'FAEBD7' : 'Antická bílá',
'FFFFE0' : 'Světle žlutá',
'F0FFF0' : 'Medová rosa',
'F0FFFF' : 'Azurová',
'F0F8FF' : 'Alenčina modrá',
'E6E6FA' : 'Lavendulová',
'FFF' : 'Bílá'
},
scayt :
{
title : 'Kontrola pravopisu během psaní (SCAYT)',
opera_title : 'Toto Opera nepodporuje',
enable : 'Zapnout SCAYT',
disable : 'Vypnout SCAYT',
about : 'O aplikaci SCAYT',
toggle : 'Vypínač SCAYT',
options : 'Nastavení',
langs : 'Jazyky',
moreSuggestions : 'Více návrhů',
ignore : 'Přeskočit',
ignoreAll : 'Přeskočit vše',
addWord : 'Přidat slovo',
emptyDic : 'Název slovníku nesmí být prázdný.',
optionsTab : 'Nastavení',
allCaps : 'Ignorovat slova velkými písmeny',
ignoreDomainNames : 'Ignorovat doménová jména',
mixedCase : 'Ignorovat slova obsahující různou velikost písma',
mixedWithDigits : 'Ignorovat slova obsahující čísla',
languagesTab : 'Jazyky',
dictionariesTab : 'Slovníky',
dic_field_name : 'Název slovníku',
dic_create : 'vytvořit',
dic_restore : 'Obnovit',
dic_delete : 'Smazat',
dic_rename : 'Přejmenovat',
dic_info : 'Zpočátku se uživatelský slovník ukládá do cookies ve vašem prohlížeči. Ovšem cookies mají omezenou velikost, takže když slovník dosáhne velikosti, kdy se již do cookies nevejde, může být uložen na našem serveru. Chcete-li uložit Váš osobní slovník na našem serveru, je třeba slovník nejdříve pojmenovat. Máte-li již slovník pojmenován a uložen, zadejte jeho název a klepněte na tlačítko Obnovit.',
aboutTab : 'O aplikaci'
},
about :
{
title : 'O aplikaci CKEditor',
dlgTitle : 'O aplikaci CKEditor',
help : 'Prohlédněte si $1 pro nápovědu.',
userGuide : 'Uživatelská příručka CKEditor',
moreInfo : 'Pro informace o lincenci navštivte naši webovou stránku:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Maximalizovat',
minimize : 'Minimalizovat',
fakeobjects :
{
anchor : 'Záložka',
flash : 'Flash animace',
iframe : 'IFrame',
hiddenfield : 'Skryté pole',
unknown : 'Neznámý objekt'
},
resize : 'Uchopit pro změnu velikosti',
colordialog :
{
title : 'Výběr barvy',
options : 'Nastavení barvy',
highlight : 'Zvýraznit',
selected : 'Vybráno',
clear : 'Vyčistit'
},
toolbarCollapse : 'Skrýt panel nástrojů',
toolbarExpand : 'Zobrazit panel nástrojů',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Schránka/Zpět',
editing : 'Úpravy',
forms : 'Formuláře',
basicstyles : 'Základní styly',
paragraph : 'Odstavec',
links : 'Odkazy',
insert : 'Vložit',
styles : 'Styly',
colors : 'Barvy',
tools : 'Nástroje'
},
bidi :
{
ltr : 'Orientace textu zleva doprava',
rtl : 'Orientace textu zprava do leva'
},
docprops :
{
label : 'Vlastnosti dokumentu',
title : 'Vlastnosti dokumentu',
design : 'Vzhled',
meta : 'Metadata',
chooseColor : 'Výběr',
other : '<jiný>',
docTitle : 'Titulek stránky',
charset : 'Znaková sada',
charsetOther : 'Další znaková sada',
charsetASCII : 'ASCII',
charsetCE : 'Středoevropské jazyky',
charsetCT : 'Tradiční čínština (Big5)',
charsetCR : 'Cyrilice',
charsetGR : 'Řečtina',
charsetJP : 'Japonština',
charsetKR : 'Korejština',
charsetTR : 'Turečtina',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Západoevropské jazyky',
docType : 'Typ dokumentu',
docTypeOther : 'Jiný typ dokumetu',
xhtmlDec : 'Zahrnou deklarace XHTML',
bgColor : 'Barva pozadí',
bgImage : 'URL obrázku na pozadí',
bgFixed : 'Nerolovatelné pozadí',
txtColor : 'Barva textu',
margin : 'Okraje stránky',
marginTop : 'Horní',
marginLeft : 'Levý',
marginRight : 'Pravý',
marginBottom : 'Dolní',
metaKeywords : 'Klíčová slova (oddělená čárkou)',
metaDescription : 'Popis dokumentu',
metaAuthor : 'Autor',
metaCopyright : 'Autorská práva',
previewHtml : '<p>Toto je <strong>ukázkový text</strong>. Používáte <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/cs.js
|
JavaScript
|
gpl3
| 24,870
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Croatian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['hr'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Bogati uređivač teksta, %1, pritisni ALT 0 za pomoć.',
// ARIA descriptions.
toolbars : 'Alatne trake uređivača teksta',
editor : 'Bogati uređivač teksta',
// Toolbar buttons without dialogs.
source : 'Kôd',
newPage : 'Nova stranica',
save : 'Snimi',
preview : 'Pregledaj',
cut : 'Izreži',
copy : 'Kopiraj',
paste : 'Zalijepi',
print : 'Ispiši',
underline : 'Potcrtano',
bold : 'Podebljaj',
italic : 'Ukosi',
selectAll : 'Odaberi sve',
removeFormat : 'Ukloni formatiranje',
strike : 'Precrtano',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Ubaci vodoravnu liniju',
pagebreak : 'Ubaci prijelom stranice',
pagebreakAlt : 'Prijelom stranice',
unlink : 'Ukloni link',
undo : 'Poništi',
redo : 'Ponovi',
// Common messages and labels.
common :
{
browseServer : 'Pretraži server',
url : 'URL',
protocol : 'Protokol',
upload : 'Pošalji',
uploadSubmit : 'Pošalji na server',
image : 'Slika',
flash : 'Flash',
form : 'Form',
checkbox : 'Checkbox',
radio : 'Radio Button',
textField : 'Text Field',
textarea : 'Textarea',
hiddenField : 'Hidden Field',
button : 'Button',
select : 'Selection Field',
imageButton : 'Image Button',
notSet : '<nije postavljeno>',
id : 'Id',
name : 'Naziv',
langDir : 'Smjer jezika',
langDirLtr : 'S lijeva na desno (LTR)',
langDirRtl : 'S desna na lijevo (RTL)',
langCode : 'Kôd jezika',
longDescr : 'Dugački opis URL',
cssClass : 'Stylesheet klase',
advisoryTitle : 'Advisory naslov',
cssStyle : 'Stil',
ok : 'OK',
cancel : 'Poništi',
close : 'Zatvori',
preview : 'Pregledaj',
generalTab : 'Općenito',
advancedTab : 'Napredno',
validateNumberFailed : 'Ova vrijednost nije broj.',
confirmNewPage : 'Sve napravljene promjene će biti izgubljene ukoliko ih niste snimili. Sigurno želite učitati novu stranicu?',
confirmCancel : 'Neke od opcija su promjenjene. Sigurno želite zatvoriti ovaj prozor?',
options : 'Opcije',
target : 'Odredište',
targetNew : 'Novi prozor (_blank)',
targetTop : 'Vršni prozor (_top)',
targetSelf : 'Isti prozor (_self)',
targetParent : 'Roditeljski prozor (_parent)',
langDirLTR : 'S lijeva na desno (LTR)',
langDirRTL : 'S desna na lijevo (RTL)',
styles : 'Stil',
cssClasses : 'Klase stilova',
width : 'Širina',
height : 'Visina',
align : 'Poravnaj',
alignLeft : 'Lijevo',
alignRight : 'Desno',
alignCenter : 'Središnje',
alignTop : 'Vrh',
alignMiddle : 'Sredina',
alignBottom : 'Dolje',
invalidHeight : 'Visina mora biti broj.',
invalidWidth : 'Širina mora biti broj.',
invalidCssLength : 'Vrijednost određena za "%1" polje mora biti pozitivni broj sa ili bez važećih CSS mjernih jedinica (px, %, in, cm, mm, em, ex, pt ili pc).',
invalidHtmlLength : 'Vrijednost određena za "%1" polje mora biti pozitivni broj sa ili bez važećih HTML mjernih jedinica (px ili %).',
invalidInlineStyle : 'Vrijednost za linijski stil mora sadržavati jednu ili više definicija s formatom "naziv:vrijednost", odvojenih točka-zarezom.',
cssLengthTooltip : 'Unesite broj za vrijednost u pikselima ili broj s važećim CSS mjernim jedinicama (px, %, in, cm, mm, em, ex, pt ili pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, nedostupno</span>'
},
contextmenu :
{
options : 'Opcije izbornika'
},
// Special char dialog.
specialChar :
{
toolbar : 'Ubaci posebne znakove',
title : 'Odaberite posebni karakter',
options : 'Opcije specijalnih znakova'
},
// Link dialog.
link :
{
toolbar : 'Ubaci/promijeni link',
other : '<drugi>',
menu : 'Promijeni link',
title : 'Link',
info : 'Link Info',
target : 'Meta',
upload : 'Pošalji',
advanced : 'Napredno',
type : 'Link vrsta',
toUrl : 'URL',
toAnchor : 'Sidro na ovoj stranici',
toEmail : 'E-Mail',
targetFrame : '<okvir>',
targetPopup : '<popup prozor>',
targetFrameName : 'Ime ciljnog okvira',
targetPopupName : 'Naziv popup prozora',
popupFeatures : 'Mogućnosti popup prozora',
popupResizable : 'Promjenjiva veličina',
popupStatusBar : 'Statusna traka',
popupLocationBar: 'Traka za lokaciju',
popupToolbar : 'Traka s alatima',
popupMenuBar : 'Izborna traka',
popupFullScreen : 'Cijeli ekran (IE)',
popupScrollBars : 'Scroll traka',
popupDependent : 'Ovisno (Netscape)',
popupLeft : 'Lijeva pozicija',
popupTop : 'Gornja pozicija',
id : 'Id',
langDir : 'Smjer jezika',
langDirLTR : 'S lijeva na desno (LTR)',
langDirRTL : 'S desna na lijevo (RTL)',
acccessKey : 'Pristupna tipka',
name : 'Naziv',
langCode : 'Smjer jezika',
tabIndex : 'Tab Indeks',
advisoryTitle : 'Advisory naslov',
advisoryContentType : 'Advisory vrsta sadržaja',
cssClasses : 'Stylesheet klase',
charset : 'Kodna stranica povezanih resursa',
styles : 'Stil',
rel : 'Veza',
selectAnchor : 'Odaberi sidro',
anchorName : 'Po nazivu sidra',
anchorId : 'Po Id elementa',
emailAddress : 'E-Mail adresa',
emailSubject : 'Naslov',
emailBody : 'Sadržaj poruke',
noAnchors : '(Nema dostupnih sidra)',
noUrl : 'Molimo upišite URL link',
noEmail : 'Molimo upišite e-mail adresu'
},
// Anchor dialog
anchor :
{
toolbar : 'Ubaci/promijeni sidro',
menu : 'Svojstva sidra',
title : 'Svojstva sidra',
name : 'Ime sidra',
errorName : 'Molimo unesite ime sidra',
remove : 'Ukloni sidro'
},
// List style dialog
list:
{
numberedTitle : 'Svojstva brojčane liste',
bulletedTitle : 'Svojstva liste',
type : 'Vrsta',
start : 'Početak',
validateStartNumber :'Početak brojčane liste mora biti cijeli broj.',
circle : 'Krug',
disc : 'Disk',
square : 'Kvadrat',
none : 'Bez',
notset : '<nije određen>',
armenian : 'Armenijska numeracija',
georgian : 'Gruzijska numeracija(an, ban, gan, etc.)',
lowerRoman : 'Romanska numeracija mala slova (i, ii, iii, iv, v, itd.)',
upperRoman : 'Romanska numeracija velika slova (I, II, III, IV, V, itd.)',
lowerAlpha : 'Znakovi mala slova (a, b, c, d, e, itd.)',
upperAlpha : 'Znakovi velika slova (A, B, C, D, E, itd.)',
lowerGreek : 'Grčka numeracija mala slova (alfa, beta, gama, itd).',
decimal : 'Decimalna numeracija (1, 2, 3, itd.)',
decimalLeadingZero : 'Decimalna s vodećom nulom (01, 02, 03, itd)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Pronađi i zamijeni',
find : 'Pronađi',
replace : 'Zamijeni',
findWhat : 'Pronađi:',
replaceWith : 'Zamijeni s:',
notFoundMsg : 'Traženi tekst nije pronađen.',
findOptions : 'Opcije traženja',
matchCase : 'Usporedi mala/velika slova',
matchWord : 'Usporedi cijele riječi',
matchCyclic : 'Usporedi kružno',
replaceAll : 'Zamijeni sve',
replaceSuccessMsg : 'Zamijenjeno %1 pojmova.'
},
// Table Dialog
table :
{
toolbar : 'Tablica',
title : 'Svojstva tablice',
menu : 'Svojstva tablice',
deleteTable : 'Izbriši tablicu',
rows : 'Redova',
columns : 'Kolona',
border : 'Veličina okvira',
widthPx : 'piksela',
widthPc : 'postotaka',
widthUnit : 'jedinica širine',
cellSpace : 'Prostornost ćelija',
cellPad : 'Razmak ćelija',
caption : 'Naslov',
summary : 'Sažetak',
headers : 'Zaglavlje',
headersNone : 'Ništa',
headersColumn : 'Prva kolona',
headersRow : 'Prvi red',
headersBoth : 'Oba',
invalidRows : 'Broj redova mora biti broj veći od 0.',
invalidCols : 'Broj kolona mora biti broj veći od 0.',
invalidBorder : 'Debljina ruba mora biti broj.',
invalidWidth : 'Širina tablice mora biti broj.',
invalidHeight : 'Visina tablice mora biti broj.',
invalidCellSpacing : 'Prostornost ćelija mora biti broj.',
invalidCellPadding : 'Razmak ćelija mora biti broj.',
cell :
{
menu : 'Ćelija',
insertBefore : 'Ubaci ćeliju prije',
insertAfter : 'Ubaci ćeliju poslije',
deleteCell : 'Izbriši ćelije',
merge : 'Spoji ćelije',
mergeRight : 'Spoji desno',
mergeDown : 'Spoji dolje',
splitHorizontal : 'Podijeli ćeliju vodoravno',
splitVertical : 'Podijeli ćeliju okomito',
title : 'Svojstva ćelije',
cellType : 'Vrsta ćelije',
rowSpan : 'Rows Span',
colSpan : 'Columns Span',
wordWrap : 'Prelazak u novi red',
hAlign : 'Vodoravno poravnanje',
vAlign : 'Okomito poravnanje',
alignBaseline : 'Osnovna linija',
bgColor : 'Boja pozadine',
borderColor : 'Boja ruba',
data : 'Podatak',
header : 'Zaglavlje',
yes : 'Da',
no : 'ne',
invalidWidth : 'Širina ćelije mora biti broj.',
invalidHeight : 'Visina ćelije mora biti broj.',
invalidRowSpan : 'Rows span mora biti cijeli broj.',
invalidColSpan : 'Columns span mora biti cijeli broj.',
chooseColor : 'Odaberi'
},
row :
{
menu : 'Red',
insertBefore : 'Ubaci red prije',
insertAfter : 'Ubaci red poslije',
deleteRow : 'Izbriši redove'
},
column :
{
menu : 'Kolona',
insertBefore : 'Ubaci kolonu prije',
insertAfter : 'Ubaci kolonu poslije',
deleteColumn : 'Izbriši kolone'
}
},
// Button Dialog.
button :
{
title : 'Image Button svojstva',
text : 'Tekst (vrijednost)',
type : 'Vrsta',
typeBtn : 'Gumb',
typeSbm : 'Pošalji',
typeRst : 'Poništi'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox svojstva',
radioTitle : 'Radio Button svojstva',
value : 'Vrijednost',
selected : 'Odabrano'
},
// Form Dialog.
form :
{
title : 'Form svojstva',
menu : 'Form svojstva',
action : 'Akcija',
method : 'Metoda',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Selection svojstva',
selectInfo : 'Info',
opAvail : 'Dostupne opcije',
value : 'Vrijednost',
size : 'Veličina',
lines : 'linija',
chkMulti : 'Dozvoli višestruki odabir',
opText : 'Tekst',
opValue : 'Vrijednost',
btnAdd : 'Dodaj',
btnModify : 'Promijeni',
btnUp : 'Gore',
btnDown : 'Dolje',
btnSetValue : 'Postavi kao odabranu vrijednost',
btnDelete : 'Obriši'
},
// Textarea Dialog.
textarea :
{
title : 'Textarea svojstva',
cols : 'Kolona',
rows : 'Redova'
},
// Text Field Dialog.
textfield :
{
title : 'Text Field svojstva',
name : 'Ime',
value : 'Vrijednost',
charWidth : 'Širina',
maxChars : 'Najviše karaktera',
type : 'Vrsta',
typeText : 'Tekst',
typePass : 'Šifra'
},
// Hidden Field Dialog.
hidden :
{
title : 'Hidden Field svojstva',
name : 'Ime',
value : 'Vrijednost'
},
// Image Dialog.
image :
{
title : 'Svojstva slika',
titleButton : 'Image Button svojstva',
menu : 'Svojstva slika',
infoTab : 'Info slike',
btnUpload : 'Pošalji na server',
upload : 'Pošalji',
alt : 'Alternativni tekst',
lockRatio : 'Zaključaj odnos',
resetSize : 'Obriši veličinu',
border : 'Okvir',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Unesite URL slike',
linkTab : 'Link',
button2Img : 'Želite li promijeniti odabrani gumb u jednostavnu sliku?',
img2Button : 'Želite li promijeniti odabranu sliku u gumb?',
urlMissing : 'Nedostaje URL slike.',
validateBorder : 'Okvir mora biti cijeli broj.',
validateHSpace : 'HSpace mora biti cijeli broj',
validateVSpace : 'VSpace mora biti cijeli broj.'
},
// Flash Dialog
flash :
{
properties : 'Flash svojstva',
propertiesTab : 'Svojstva',
title : 'Flash svojstva',
chkPlay : 'Auto Play',
chkLoop : 'Ponavljaj',
chkMenu : 'Omogući Flash izbornik',
chkFull : 'Omogući Fullscreen',
scale : 'Omjer',
scaleAll : 'Prikaži sve',
scaleNoBorder : 'Bez okvira',
scaleFit : 'Točna veličina',
access : 'Script Access',
accessAlways : 'Uvijek',
accessSameDomain: 'Ista domena',
accessNever : 'Nikad',
alignAbsBottom : 'Abs dolje',
alignAbsMiddle : 'Abs sredina',
alignBaseline : 'Bazno',
alignTextTop : 'Vrh teksta',
quality : 'Kvaliteta',
qualityBest : 'Best',
qualityHigh : 'High',
qualityAutoHigh : 'Auto High',
qualityMedium : 'Medium',
qualityAutoLow : 'Auto Low',
qualityLow : 'Low',
windowModeWindow: 'Window',
windowModeOpaque: 'Opaque',
windowModeTransparent : 'Transparent',
windowMode : 'Vrsta prozora',
flashvars : 'Varijable za Flash',
bgcolor : 'Boja pozadine',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Molimo upišite URL link',
validateHSpace : 'HSpace mora biti broj.',
validateVSpace : 'VSpace mora biti broj.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Provjeri pravopis',
title : 'Provjera pravopisa',
notAvailable : 'Žao nam je, ali usluga trenutno nije dostupna.',
errorLoading : 'Greška učitavanja aplikacije: %s.',
notInDic : 'Nije u rječniku',
changeTo : 'Promijeni u',
btnIgnore : 'Zanemari',
btnIgnoreAll : 'Zanemari sve',
btnReplace : 'Zamijeni',
btnReplaceAll : 'Zamijeni sve',
btnUndo : 'Vrati',
noSuggestions : '-Nema preporuke-',
progress : 'Provjera u tijeku...',
noMispell : 'Provjera završena: Nema grešaka',
noChanges : 'Provjera završena: Nije napravljena promjena',
oneChange : 'Provjera završena: Jedna riječ promjenjena',
manyChanges : 'Provjera završena: Promijenjeno %1 riječi',
ieSpellDownload : 'Provjera pravopisa nije instalirana. Želite li skinuti provjeru pravopisa?'
},
smiley :
{
toolbar : 'Smješko',
title : 'Ubaci smješka',
options : 'Opcije smješka'
},
elementsPath :
{
eleLabel : 'Putanja elemenata',
eleTitle : '%1 element'
},
numberedlist : 'Brojčana lista',
bulletedlist : 'Obična lista',
indent : 'Pomakni udesno',
outdent : 'Pomakni ulijevo',
justify :
{
left : 'Lijevo poravnanje',
center : 'Središnje poravnanje',
right : 'Desno poravnanje',
block : 'Blok poravnanje'
},
blockquote : 'Blockquote',
clipboard :
{
title : 'Zalijepi',
cutError : 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog izrezivanja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+X).',
copyError : 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+C).',
pasteMsg : 'Molimo zaljepite unutar doljnjeg okvira koristeći tipkovnicu (<STRONG>Ctrl/Cmd+V</STRONG>) i kliknite <STRONG>OK</STRONG>.',
securityMsg : 'Zbog sigurnosnih postavki Vašeg pretraživača, editor nema direktan pristup Vašem međuspremniku. Potrebno je ponovno zalijepiti tekst u ovaj prozor.',
pasteArea : 'Prostor za ljepljenje'
},
pastefromword :
{
confirmCleanup : 'Tekst koji želite zalijepiti čini se da je kopiran iz Worda. Želite li prije očistiti tekst?',
toolbar : 'Zalijepi iz Worda',
title : 'Zalijepi iz Worda',
error : 'Nije moguće očistiti podatke za ljepljenje zbog interne greške'
},
pasteText :
{
button : 'Zalijepi kao čisti tekst',
title : 'Zalijepi kao čisti tekst'
},
templates :
{
button : 'Predlošci',
title : 'Predlošci sadržaja',
options : 'Opcije predložaka',
insertOption : 'Zamijeni trenutne sadržaje',
selectPromptMsg : 'Molimo odaberite predložak koji želite otvoriti<br>(stvarni sadržaj će biti izgubljen):',
emptyListMsg : '(Nema definiranih predložaka)'
},
showBlocks : 'Prikaži blokove',
stylesCombo :
{
label : 'Stil',
panelTitle : 'Stilovi formatiranja',
panelTitle1 : 'Block stilovi',
panelTitle2 : 'Inline stilovi',
panelTitle3 : 'Object stilovi'
},
format :
{
label : 'Format',
panelTitle : 'Format',
tag_p : 'Normal',
tag_pre : 'Formatirano',
tag_address : 'Address',
tag_h1 : 'Heading 1',
tag_h2 : 'Heading 2',
tag_h3 : 'Heading 3',
tag_h4 : 'Heading 4',
tag_h5 : 'Heading 5',
tag_h6 : 'Heading 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Napravi DIV kontejner',
toolbar : 'Napravi DIV kontejner',
cssClassInputLabel : 'Klase stilova',
styleSelectLabel : 'Stil',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Jezični kod',
inlineStyleInputLabel : 'Stil u liniji',
advisoryTitleInputLabel : 'Savjetodavni naslov',
langDirLabel : 'Smjer jezika',
langDirLTRLabel : 'S lijeva na desno (LTR)',
langDirRTLLabel : 'S desna na lijevo (RTL)',
edit : 'Uredi DIV',
remove : 'Ukloni DIV'
},
iframe :
{
title : 'IFrame svojstva',
toolbar : 'IFrame',
noUrl : 'Unesite URL iframe-a',
scrolling : 'Omogući trake za skrolanje',
border : 'Prikaži okvir IFrame-a'
},
font :
{
label : 'Font',
voiceLabel : 'Font',
panelTitle : 'Font'
},
fontSize :
{
label : 'Veličina',
voiceLabel : 'Veličina slova',
panelTitle : 'Veličina'
},
colorButton :
{
textColorTitle : 'Boja teksta',
bgColorTitle : 'Boja pozadine',
panelTitle : 'Boje',
auto : 'Automatski',
more : 'Više boja...'
},
colors :
{
'000' : 'Crna',
'800000' : 'Kesten',
'8B4513' : 'Smeđa',
'2F4F4F' : 'Tamno siva',
'008080' : 'Teal',
'000080' : 'Mornarska',
'4B0082' : 'Indigo',
'696969' : 'Tamno siva',
'B22222' : 'Vatrena cigla',
'A52A2A' : 'Smeđa',
'DAA520' : 'Zlatna',
'006400' : 'Tamno zelena',
'40E0D0' : 'Tirkizna',
'0000CD' : 'Srednje plava',
'800080' : 'Ljubičasta',
'808080' : 'Siva',
'F00' : 'Crvena',
'FF8C00' : 'Tamno naranđasta',
'FFD700' : 'Zlatna',
'008000' : 'Zelena',
'0FF' : 'Cijan',
'00F' : 'Plava',
'EE82EE' : 'Ljubičasta',
'A9A9A9' : 'Mutno siva',
'FFA07A' : 'Svijetli losos',
'FFA500' : 'Naranđasto',
'FFFF00' : 'Žuto',
'00FF00' : 'Limun',
'AFEEEE' : 'Blijedo tirkizna',
'ADD8E6' : 'Svijetlo plava',
'DDA0DD' : 'Šljiva',
'D3D3D3' : 'Svijetlo siva',
'FFF0F5' : 'Lavanda rumeno',
'FAEBD7' : 'Antikno bijela',
'FFFFE0' : 'Svijetlo žuta',
'F0FFF0' : 'Med',
'F0FFFF' : 'Azurna',
'F0F8FF' : 'Alice plava',
'E6E6FA' : 'Lavanda',
'FFF' : 'Bijela'
},
scayt :
{
title : 'Provjeri pravopis tijekom tipkanja (SCAYT)',
opera_title : 'Nije podržano u Operi',
enable : 'Omogući SCAYT',
disable : 'Onemogući SCAYT',
about : 'O SCAYT',
toggle : 'Omoguću/Onemogući SCAYT',
options : 'Opcije',
langs : 'Jezici',
moreSuggestions : 'Više prijedloga',
ignore : 'Zanemari',
ignoreAll : 'Zanemari sve',
addWord : 'Dodaj riječ',
emptyDic : 'Naziv rječnika ne smije biti prazno.',
optionsTab : 'Opcije',
allCaps : 'Ignoriraj riječi s velikim slovima',
ignoreDomainNames : 'Ignoriraj nazive domena',
mixedCase : 'Ignoriraj riječi s miješanim slovima',
mixedWithDigits : 'Ignoriraj riječi s brojevima',
languagesTab : 'Jezici',
dictionariesTab : 'Rječnici',
dic_field_name : 'Naziv riječnika',
dic_create : 'Napravi',
dic_restore : 'Povrati',
dic_delete : 'Obriši',
dic_rename : 'Promijeni naziv',
dic_info : 'Na početku se korisnički Riječnik sprema u Cookie. Nažalost, veličina im je ograničena. Kada korisnički Riječnik naraste preko te veličine, Riječnik će biti smješten na naš server. Kako bi se korisnički Riječnik spremio na naš server morate odabrati naziv Vašeg Riječnika. Ukoliko ste već prije spremali Riječnik na naše servere, unesite naziv Riječnika i pritisnite na Povrati.',
aboutTab : 'O SCAYT'
},
about :
{
title : 'O CKEditoru',
dlgTitle : 'O CKEditoru',
help : 'Provjeri $1 za pomoć.',
userGuide : 'Vodič za CKEditor korisnike',
moreInfo : 'Za informacije o licencama posjetite našu web stranicu:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Povećaj',
minimize : 'Smanji',
fakeobjects :
{
anchor : 'Sidro',
flash : 'Flash animacija',
iframe : 'IFrame',
hiddenfield : 'Sakriveno polje',
unknown : 'Nepoznati objekt'
},
resize : 'Povuci za promjenu veličine',
colordialog :
{
title : 'Odaberi boju',
options : 'Opcije boje',
highlight : 'Istaknuto',
selected : 'Odabrana boja',
clear : 'Očisti'
},
toolbarCollapse : 'Smanji alatnu traku',
toolbarExpand : 'Proširi alatnu traku',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Međuspremnik/Poništi',
editing : 'Uređivanje',
forms : 'Forme',
basicstyles : 'Osnovni stilovi',
paragraph : 'Paragraf',
links : 'Veze',
insert : 'Umetni',
styles : 'Stilovi',
colors : 'Boje',
tools : 'Alatke'
},
bidi :
{
ltr : 'Smjer teksta s lijeva na desno',
rtl : 'Smjer teksta s desna na lijevo'
},
docprops :
{
label : 'Svojstva dokumenta',
title : 'Svojstva dokumenta',
design : 'Dizajn',
meta : 'Meta Data',
chooseColor : 'Odaberi',
other : '<drugi>',
docTitle : 'Naslov stranice',
charset : 'Enkodiranje znakova',
charsetOther : 'Ostalo enkodiranje znakova',
charsetASCII : 'ASCII',
charsetCE : 'Središnja Europa',
charsetCT : 'Tradicionalna kineska (Big5)',
charsetCR : 'Ćirilica',
charsetGR : 'Grčka',
charsetJP : 'Japanska',
charsetKR : 'Koreanska',
charsetTR : 'Turska',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Zapadna Europa',
docType : 'Zaglavlje vrste dokumenta',
docTypeOther : 'Ostalo zaglavlje vrste dokumenta',
xhtmlDec : 'Ubaci XHTML deklaracije',
bgColor : 'Boja pozadine',
bgImage : 'URL slike pozadine',
bgFixed : 'Pozadine se ne pomiče',
txtColor : 'Boja teksta',
margin : 'Margine stranice',
marginTop : 'Vrh',
marginLeft : 'Lijevo',
marginRight : 'Desno',
marginBottom : 'Dolje',
metaKeywords : 'Ključne riječi dokumenta (odvojene zarezom)',
metaDescription : 'Opis dokumenta',
metaAuthor : 'Autor',
metaCopyright : 'Autorska prava',
previewHtml : '<p>Ovo je neki <strong>primjer teksta</strong>. Vi koristite <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/hr.js
|
JavaScript
|
gpl3
| 23,585
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object for the
* Finnish language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['fi'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rikastekstieditori, %1, paina ALT 0 nähdäksesi ohjeen.',
// ARIA descriptions.
toolbars : 'Editorin työkalupalkit',
editor : 'Rikastekstieditori',
// Toolbar buttons without dialogs.
source : 'Koodi',
newPage : 'Tyhjennä',
save : 'Tallenna',
preview : 'Esikatsele',
cut : 'Leikkaa',
copy : 'Kopioi',
paste : 'Liitä',
print : 'Tulosta',
underline : 'Alleviivattu',
bold : 'Lihavoitu',
italic : 'Kursivoitu',
selectAll : 'Valitse kaikki',
removeFormat : 'Poista muotoilu',
strike : 'Yliviivattu',
subscript : 'Alaindeksi',
superscript : 'Yläindeksi',
horizontalrule : 'Lisää murtoviiva',
pagebreak : 'Lisää sivunvaihto',
pagebreakAlt : 'Sivunvaihto',
unlink : 'Poista linkki',
undo : 'Kumoa',
redo : 'Toista',
// Common messages and labels.
common :
{
browseServer : 'Selaa palvelinta',
url : 'Osoite',
protocol : 'Protokolla',
upload : 'Lisää tiedosto',
uploadSubmit : 'Lähetä palvelimelle',
image : 'Kuva',
flash : 'Flash-animaatio',
form : 'Lomake',
checkbox : 'Valintaruutu',
radio : 'Radiopainike',
textField : 'Tekstikenttä',
textarea : 'Tekstilaatikko',
hiddenField : 'Piilokenttä',
button : 'Painike',
select : 'Valintakenttä',
imageButton : 'Kuvapainike',
notSet : '<ei asetettu>',
id : 'Tunniste',
name : 'Nimi',
langDir : 'Kielen suunta',
langDirLtr : 'Vasemmalta oikealle (LTR)',
langDirRtl : 'Oikealta vasemmalle (RTL)',
langCode : 'Kielikoodi',
longDescr : 'Pitkän kuvauksen URL',
cssClass : 'Tyyliluokat',
advisoryTitle : 'Avustava otsikko',
cssStyle : 'Tyyli',
ok : 'OK',
cancel : 'Peruuta',
close : 'Sulje',
preview : 'Esikatselu',
generalTab : 'Yleinen',
advancedTab : 'Lisäominaisuudet',
validateNumberFailed : 'Arvon pitää olla numero.',
confirmNewPage : 'Kaikki tallentamattomat muutokset tähän sisältöön menetetään. Oletko varma, että haluat ladata uuden sivun?',
confirmCancel : 'Jotkut asetuksista on muuttuneet. Oletko varma, että haluat sulkea valintaikkunan?',
options : 'Asetukset',
target : 'Kohde',
targetNew : 'Uusi ikkuna (_blank)',
targetTop : 'Päällimmäinen ikkuna (_top)',
targetSelf : 'Sama ikkuna (_self)',
targetParent : 'Ylemmän tason ikkuna (_parent)',
langDirLTR : 'Vasemmalta oikealle (LTR)',
langDirRTL : 'Oikealta vasemmalle (RTL)',
styles : 'Tyyli',
cssClasses : 'Tyylitiedoston luokat',
width : 'Leveys',
height : 'Korkeus',
align : 'Kohdistus',
alignLeft : 'Vasemmalle',
alignRight : 'Oikealle',
alignCenter : 'Keskelle',
alignTop : 'Ylös',
alignMiddle : 'Keskelle',
alignBottom : 'Alas',
invalidHeight : 'Korkeuden täytyy olla numero.',
invalidWidth : 'Leveyden täytyy olla numero.',
invalidCssLength : 'Kentän "%1" arvon täytyy olla positiivinen luku CSS mittayksikön (px, %, in, cm, mm, em, ex, pt tai pc) kanssa tai ilman.',
invalidHtmlLength : 'Kentän "%1" arvon täytyy olla positiivinen luku HTML mittayksikön (px tai %) kanssa tai ilman.',
invalidInlineStyle : 'Tyylille annetun arvon täytyy koostua yhdestä tai useammasta "nimi : arvo" parista, jotka ovat eroteltuna toisistaan puolipisteillä.',
cssLengthTooltip : 'Anna numeroarvo pikseleinä tai numeroarvo CSS mittayksikön kanssa (px, %, in, cm, mm, em, ex, pt, tai pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, ei saatavissa</span>'
},
contextmenu :
{
options : 'Pikavalikon ominaisuudet'
},
// Special char dialog.
specialChar :
{
toolbar : 'Lisää erikoismerkki',
title : 'Valitse erikoismerkki',
options : 'Erikoismerkin ominaisuudet'
},
// Link dialog.
link :
{
toolbar : 'Lisää linkki/muokkaa linkkiä',
other : '<muu>',
menu : 'Muokkaa linkkiä',
title : 'Linkki',
info : 'Linkin tiedot',
target : 'Kohde',
upload : 'Lisää tiedosto',
advanced : 'Lisäominaisuudet',
type : 'Linkkityyppi',
toUrl : 'Osoite',
toAnchor : 'Ankkuri tässä sivussa',
toEmail : 'Sähköposti',
targetFrame : '<kehys>',
targetPopup : '<popup ikkuna>',
targetFrameName : 'Kohdekehyksen nimi',
targetPopupName : 'Popup ikkunan nimi',
popupFeatures : 'Popup ikkunan ominaisuudet',
popupResizable : 'Venytettävä',
popupStatusBar : 'Tilarivi',
popupLocationBar: 'Osoiterivi',
popupToolbar : 'Vakiopainikkeet',
popupMenuBar : 'Valikkorivi',
popupFullScreen : 'Täysi ikkuna (IE)',
popupScrollBars : 'Vierityspalkit',
popupDependent : 'Riippuva (Netscape)',
popupLeft : 'Vasemmalta (px)',
popupTop : 'Ylhäältä (px)',
id : 'Tunniste',
langDir : 'Kielen suunta',
langDirLTR : 'Vasemmalta oikealle (LTR)',
langDirRTL : 'Oikealta vasemmalle (RTL)',
acccessKey : 'Pikanäppäin',
name : 'Nimi',
langCode : 'Kielen suunta',
tabIndex : 'Tabulaattori indeksi',
advisoryTitle : 'Avustava otsikko',
advisoryContentType : 'Avustava sisällön tyyppi',
cssClasses : 'Tyyliluokat',
charset : 'Linkitetty kirjaimisto',
styles : 'Tyyli',
rel : 'Suhde',
selectAnchor : 'Valitse ankkuri',
anchorName : 'Ankkurin nimen mukaan',
anchorId : 'Ankkurin ID:n mukaan',
emailAddress : 'Sähköpostiosoite',
emailSubject : 'Aihe',
emailBody : 'Viesti',
noAnchors : '(Ei ankkureita tässä dokumentissa)',
noUrl : 'Linkille on kirjoitettava URL',
noEmail : 'Kirjoita sähköpostiosoite'
},
// Anchor dialog
anchor :
{
toolbar : 'Lisää ankkuri/muokkaa ankkuria',
menu : 'Ankkurin ominaisuudet',
title : 'Ankkurin ominaisuudet',
name : 'Nimi',
errorName : 'Ankkurille on kirjoitettava nimi',
remove : 'Poista ankkuri'
},
// List style dialog
list:
{
numberedTitle : 'Numeroidun listan ominaisuudet',
bulletedTitle : 'Numeroimattoman listan ominaisuudet',
type : 'Tyyppi',
start : 'Alku',
validateStartNumber :'Listan ensimmäisen numeron tulee olla kokonaisluku.',
circle : 'Ympyrä',
disc : 'Levy',
square : 'Neliö',
none : 'Ei mikään',
notset : '<ei asetettu>',
armenian : 'Armeenialainen numerointi',
georgian : 'Georgialainen numerointi (an, ban, gan, etc.)',
lowerRoman : 'Pienet roomalaiset (i, ii, iii, iv, v, jne.)',
upperRoman : 'Isot roomalaiset (I, II, III, IV, V, jne.)',
lowerAlpha : 'Pienet aakkoset (a, b, c, d, e, jne.)',
upperAlpha : 'Isot aakkoset (A, B, C, D, E, jne.)',
lowerGreek : 'Pienet kreikkalaiset (alpha, beta, gamma, jne.)',
decimal : 'Desimaalit (1, 2, 3, jne.)',
decimalLeadingZero : 'Desimaalit, alussa nolla (01, 02, 03, jne.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Etsi ja korvaa',
find : 'Etsi',
replace : 'Korvaa',
findWhat : 'Etsi mitä:',
replaceWith : 'Korvaa tällä:',
notFoundMsg : 'Etsittyä tekstiä ei löytynyt.',
findOptions : 'Hakuasetukset',
matchCase : 'Sama kirjainkoko',
matchWord : 'Koko sana',
matchCyclic : 'Kierrä ympäri',
replaceAll : 'Korvaa kaikki',
replaceSuccessMsg : '%1 esiintymä(ä) korvattu.'
},
// Table Dialog
table :
{
toolbar : 'Taulu',
title : 'Taulun ominaisuudet',
menu : 'Taulun ominaisuudet',
deleteTable : 'Poista taulu',
rows : 'Rivit',
columns : 'Sarakkeet',
border : 'Rajan paksuus',
widthPx : 'pikseliä',
widthPc : 'prosenttia',
widthUnit : 'leveysyksikkö',
cellSpace : 'Solujen väli',
cellPad : 'Solujen sisennys',
caption : 'Otsikko',
summary : 'Yhteenveto',
headers : 'Ylätunnisteet',
headersNone : 'Ei',
headersColumn : 'Ensimmäinen sarake',
headersRow : 'Ensimmäinen rivi',
headersBoth : 'Molemmat',
invalidRows : 'Rivien määrän täytyy olla suurempi kuin 0.',
invalidCols : 'Sarakkeiden määrän täytyy olla suurempi kuin 0.',
invalidBorder : 'Reunan koon täytyy olla numero.',
invalidWidth : 'Taulun leveyden täytyy olla numero.',
invalidHeight : 'Taulun korkeuden täytyy olla numero.',
invalidCellSpacing : 'Solujen välin täytyy olla numero.',
invalidCellPadding : 'Solujen sisennyksen täytyy olla numero.',
cell :
{
menu : 'Solu',
insertBefore : 'Lisää solu eteen',
insertAfter : 'Lisää solu perään',
deleteCell : 'Poista solut',
merge : 'Yhdistä solut',
mergeRight : 'Yhdistä oikealla olevan kanssa',
mergeDown : 'Yhdistä alla olevan kanssa',
splitHorizontal : 'Jaa solu vaakasuunnassa',
splitVertical : 'Jaa solu pystysuunnassa',
title : 'Solun ominaisuudet',
cellType : 'Solun tyyppi',
rowSpan : 'Rivin jatkuvuus',
colSpan : 'Solun jatkuvuus',
wordWrap : 'Rivitys',
hAlign : 'Horisontaali kohdistus',
vAlign : 'Vertikaali kohdistus',
alignBaseline : 'Alas (teksti)',
bgColor : 'Taustan väri',
borderColor : 'Reunan väri',
data : 'Data',
header : 'Ylätunniste',
yes : 'Kyllä',
no : 'Ei',
invalidWidth : 'Solun leveyden täytyy olla numero.',
invalidHeight : 'Solun korkeuden täytyy olla numero.',
invalidRowSpan : 'Rivin jatkuvuuden täytyy olla kokonaisluku.',
invalidColSpan : 'Solun jatkuvuuden täytyy olla kokonaisluku.',
chooseColor : 'Valitse'
},
row :
{
menu : 'Rivi',
insertBefore : 'Lisää rivi yläpuolelle',
insertAfter : 'Lisää rivi alapuolelle',
deleteRow : 'Poista rivit'
},
column :
{
menu : 'Sarake',
insertBefore : 'Lisää sarake vasemmalle',
insertAfter : 'Lisää sarake oikealle',
deleteColumn : 'Poista sarakkeet'
}
},
// Button Dialog.
button :
{
title : 'Painikkeen ominaisuudet',
text : 'Teksti (arvo)',
type : 'Tyyppi',
typeBtn : 'Painike',
typeSbm : 'Lähetä',
typeRst : 'Tyhjennä'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Valintaruudun ominaisuudet',
radioTitle : 'Radiopainikkeen ominaisuudet',
value : 'Arvo',
selected : 'Valittu'
},
// Form Dialog.
form :
{
title : 'Lomakkeen ominaisuudet',
menu : 'Lomakkeen ominaisuudet',
action : 'Toiminto',
method : 'Tapa',
encoding : 'Enkoodaus'
},
// Select Field Dialog.
select :
{
title : 'Valintakentän ominaisuudet',
selectInfo : 'Info',
opAvail : 'Ominaisuudet',
value : 'Arvo',
size : 'Koko',
lines : 'Rivit',
chkMulti : 'Salli usea valinta',
opText : 'Teksti',
opValue : 'Arvo',
btnAdd : 'Lisää',
btnModify : 'Muuta',
btnUp : 'Ylös',
btnDown : 'Alas',
btnSetValue : 'Aseta valituksi',
btnDelete : 'Poista'
},
// Textarea Dialog.
textarea :
{
title : 'Tekstilaatikon ominaisuudet',
cols : 'Sarakkeita',
rows : 'Rivejä'
},
// Text Field Dialog.
textfield :
{
title : 'Tekstikentän ominaisuudet',
name : 'Nimi',
value : 'Arvo',
charWidth : 'Leveys',
maxChars : 'Maksimi merkkimäärä',
type : 'Tyyppi',
typeText : 'Teksti',
typePass : 'Salasana'
},
// Hidden Field Dialog.
hidden :
{
title : 'Piilokentän ominaisuudet',
name : 'Nimi',
value : 'Arvo'
},
// Image Dialog.
image :
{
title : 'Kuvan ominaisuudet',
titleButton : 'Kuvapainikkeen ominaisuudet',
menu : 'Kuvan ominaisuudet',
infoTab : 'Kuvan tiedot',
btnUpload : 'Lähetä palvelimelle',
upload : 'Lisää kuva',
alt : 'Vaihtoehtoinen teksti',
lockRatio : 'Lukitse suhteet',
resetSize : 'Alkuperäinen koko',
border : 'Kehys',
hSpace : 'Vaakatila',
vSpace : 'Pystytila',
alertUrl : 'Kirjoita kuvan osoite (URL)',
linkTab : 'Linkki',
button2Img : 'Haluatko muuntaa valitun kuvanäppäimen kuvaksi?',
img2Button : 'Haluatko muuntaa valitun kuvan kuvanäppäimeksi?',
urlMissing : 'Kuvan lähdeosoite puuttuu.',
validateBorder : 'Kehyksen täytyy olla kokonaisluku.',
validateHSpace : 'HSpace-määrityksen täytyy olla kokonaisluku.',
validateVSpace : 'VSpace-määrityksen täytyy olla kokonaisluku.'
},
// Flash Dialog
flash :
{
properties : 'Flash-ominaisuudet',
propertiesTab : 'Ominaisuudet',
title : 'Flash ominaisuudet',
chkPlay : 'Automaattinen käynnistys',
chkLoop : 'Toisto',
chkMenu : 'Näytä Flash-valikko',
chkFull : 'Salli kokoruututila',
scale : 'Levitä',
scaleAll : 'Näytä kaikki',
scaleNoBorder : 'Ei rajaa',
scaleFit : 'Tarkka koko',
access : 'Skriptien pääsy',
accessAlways : 'Aina',
accessSameDomain: 'Sama verkkotunnus',
accessNever : 'Ei koskaan',
alignAbsBottom : 'Aivan alas',
alignAbsMiddle : 'Aivan keskelle',
alignBaseline : 'Alas (teksti)',
alignTextTop : 'Ylös (teksti)',
quality : 'Laatu',
qualityBest : 'Paras',
qualityHigh : 'Korkea',
qualityAutoHigh : 'Automaattinen korkea',
qualityMedium : 'Keskitaso',
qualityAutoLow : 'Automaattinen matala',
qualityLow : 'Matala',
windowModeWindow: 'Ikkuna',
windowModeOpaque: 'Läpinäkyvyys',
windowModeTransparent : 'Läpinäkyvä',
windowMode : 'Ikkuna tila',
flashvars : 'Muuttujat Flash:lle',
bgcolor : 'Taustaväri',
hSpace : 'Vaakatila',
vSpace : 'Pystytila',
validateSrc : 'Linkille on kirjoitettava URL',
validateHSpace : 'Vaakatilan täytyy olla numero.',
validateVSpace : 'Pystytilan täytyy olla numero.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Tarkista oikeinkirjoitus',
title : 'Oikoluku',
notAvailable : 'Valitettavasti oikoluku ei ole käytössä tällä hetkellä.',
errorLoading : 'Virhe ladattaessa oikolukupalvelua isännältä: %s.',
notInDic : 'Ei sanakirjassa',
changeTo : 'Vaihda',
btnIgnore : 'Jätä huomioimatta',
btnIgnoreAll : 'Jätä kaikki huomioimatta',
btnReplace : 'Korvaa',
btnReplaceAll : 'Korvaa kaikki',
btnUndo : 'Kumoa',
noSuggestions : 'Ei ehdotuksia',
progress : 'Tarkistus käynnissä...',
noMispell : 'Tarkistus valmis: Ei virheitä',
noChanges : 'Tarkistus valmis: Yhtään sanaa ei muutettu',
oneChange : 'Tarkistus valmis: Yksi sana muutettiin',
manyChanges : 'Tarkistus valmis: %1 sanaa muutettiin',
ieSpellDownload : 'Oikeinkirjoituksen tarkistusta ei ole asennettu. Haluatko ladata sen nyt?'
},
smiley :
{
toolbar : 'Hymiö',
title : 'Lisää hymiö',
options : 'Hymiön ominaisuudet'
},
elementsPath :
{
eleLabel : 'Elementin polku',
eleTitle : '%1 elementti'
},
numberedlist : 'Numerointi',
bulletedlist : 'Luottelomerkit',
indent : 'Suurenna sisennystä',
outdent : 'Pienennä sisennystä',
justify :
{
left : 'Tasaa vasemmat reunat',
center : 'Keskitä',
right : 'Tasaa oikeat reunat',
block : 'Tasaa molemmat reunat'
},
blockquote : 'Lainaus',
clipboard :
{
title : 'Liitä',
cutError : 'Selaimesi turva-asetukset eivät salli editorin toteuttaa leikkaamista. Käytä näppäimistöä leikkaamiseen (Ctrl+X).',
copyError : 'Selaimesi turva-asetukset eivät salli editorin toteuttaa kopioimista. Käytä näppäimistöä kopioimiseen (Ctrl+C).',
pasteMsg : 'Liitä painamalla (<STRONG>Ctrl+V</STRONG>) ja painamalla <STRONG>OK</STRONG>.',
securityMsg : 'Selaimesi turva-asetukset eivät salli editorin käyttää leikepöytää suoraan. Sinun pitää suorittaa liittäminen tässä ikkunassa.',
pasteArea : 'Leikealue'
},
pastefromword :
{
confirmCleanup : 'Liittämäsi teksti näyttäisi olevan Word-dokumentista. Haluatko siivota sen ennen liittämistä? (Suositus: Kyllä)',
toolbar : 'Liitä Word-dokumentista',
title : 'Liitä Word-dokumentista',
error : 'Liitetyn tiedon siivoaminen ei onnistunut sisäisen virheen takia'
},
pasteText :
{
button : 'Liitä tekstinä',
title : 'Liitä tekstinä'
},
templates :
{
button : 'Pohjat',
title : 'Sisältöpohjat',
options : 'Sisältöpohjan ominaisuudet',
insertOption : 'Korvaa editorin koko sisältö',
selectPromptMsg : 'Valitse pohja editoriin<br>(aiempi sisältö menetetään):',
emptyListMsg : '(Ei määriteltyjä pohjia)'
},
showBlocks : 'Näytä elementit',
stylesCombo :
{
label : 'Tyyli',
panelTitle : 'Muotoilujen tyylit',
panelTitle1 : 'Lohkojen tyylit',
panelTitle2 : 'Rivinsisäiset tyylit',
panelTitle3 : 'Objektien tyylit'
},
format :
{
label : 'Muotoilu',
panelTitle : 'Muotoilu',
tag_p : 'Normaali',
tag_pre : 'Muotoiltu',
tag_address : 'Osoite',
tag_h1 : 'Otsikko 1',
tag_h2 : 'Otsikko 2',
tag_h3 : 'Otsikko 3',
tag_h4 : 'Otsikko 4',
tag_h5 : 'Otsikko 5',
tag_h6 : 'Otsikko 6',
tag_div : 'Normaali (DIV)'
},
div :
{
title : 'Luo div-kehikko',
toolbar : 'Luo div-kehikko',
cssClassInputLabel : 'Tyylitiedoston luokat',
styleSelectLabel : 'Tyyli',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Kielen koodi',
inlineStyleInputLabel : 'Sisätyyli',
advisoryTitleInputLabel : 'Ohjeistava otsikko',
langDirLabel : 'Kielen suunta',
langDirLTRLabel : 'Vasemmalta oikealle (LTR)',
langDirRTLLabel : 'Oikealta vasemmalle (RTL)',
edit : 'Muokkaa Diviä',
remove : 'Poista Div'
},
iframe :
{
title : 'IFrame-kehyksen ominaisuudet',
toolbar : 'IFrame-kehys',
noUrl : 'Anna IFrame-kehykselle lähdeosoite (src)',
scrolling : 'Näytä vierityspalkit',
border : 'Näytä kehyksen reunat'
},
font :
{
label : 'Kirjaisinlaji',
voiceLabel : 'Kirjaisinlaji',
panelTitle : 'Kirjaisinlaji'
},
fontSize :
{
label : 'Koko',
voiceLabel : 'Kirjaisimen koko',
panelTitle : 'Koko'
},
colorButton :
{
textColorTitle : 'Tekstiväri',
bgColorTitle : 'Taustaväri',
panelTitle : 'Värit',
auto : 'Automaattinen',
more : 'Lisää värejä...'
},
colors :
{
'000' : 'Musta',
'800000' : 'Kastanjanruskea',
'8B4513' : 'Satulanruskea',
'2F4F4F' : 'Tumma liuskekivenharmaa',
'008080' : 'Sinivihreä',
'000080' : 'Laivastonsininen',
'4B0082' : 'Indigonsininen',
'696969' : 'Tummanharmaa',
'B22222' : 'Tiili',
'A52A2A' : 'Ruskea',
'DAA520' : 'Kultapiisku',
'006400' : 'Tummanvihreä',
'40E0D0' : 'Turkoosi',
'0000CD' : 'Keskisininen',
'800080' : 'Purppura',
'808080' : 'Harmaa',
'F00' : 'Punainen',
'FF8C00' : 'Tumma oranssi',
'FFD700' : 'Kulta',
'008000' : 'Vihreä',
'0FF' : 'Syaani',
'00F' : 'Sininen',
'EE82EE' : 'Violetti',
'A9A9A9' : 'Tummanharmaa',
'FFA07A' : 'Vaaleanlohenpunainen',
'FFA500' : 'Oranssi',
'FFFF00' : 'Keltainen',
'00FF00' : 'Limetin vihreä',
'AFEEEE' : 'Haalea turkoosi',
'ADD8E6' : 'Vaaleansininen',
'DDA0DD' : 'Luumu',
'D3D3D3' : 'Vaaleanharmaa',
'FFF0F5' : 'Laventelinpunainen',
'FAEBD7' : 'Antiikinvalkoinen',
'FFFFE0' : 'Vaaleankeltainen',
'F0FFF0' : 'Hunajameloni',
'F0FFFF' : 'Asurinsininen',
'F0F8FF' : 'Alice Blue -sininen',
'E6E6FA' : 'Lavanteli',
'FFF' : 'Valkoinen'
},
scayt :
{
title : 'Oikolue kirjoitettaessa',
opera_title : 'Opera ei tue tätä ominaisuutta',
enable : 'Ota käyttöön oikoluku kirjoitettaessa',
disable : 'Poista käytöstä oikoluku kirjoitetaessa',
about : 'Tietoja oikoluvusta kirjoitetaessa',
toggle : 'Vaihda oikoluku kirjoittaessa tilaa',
options : 'Asetukset',
langs : 'Kielet',
moreSuggestions : 'Lisää ehdotuksia',
ignore : 'Ohita',
ignoreAll : 'Ohita kaikki',
addWord : 'Lisää sana',
emptyDic : 'Sanakirjan nimi on annettava.',
optionsTab : 'Asetukset',
allCaps : 'Ohita sanat, jotka on kirjoitettu kokonaan isoilla kirjaimilla',
ignoreDomainNames : 'Ohita verkkotunnukset',
mixedCase : 'Ohita sanat, joissa on sekoitettu isoja ja pieniä kirjaimia',
mixedWithDigits : 'Ohita sanat, joissa on numeroita',
languagesTab : 'Kielet',
dictionariesTab : 'Sanakirjat',
dic_field_name : 'Sanakirjan nimi',
dic_create : 'Luo',
dic_restore : 'Palauta',
dic_delete : 'Poista',
dic_rename : 'Nimeä uudelleen',
dic_info : 'Oletuksena sanakirjat tallennetaan evästeeseen, mutta evästeiden koko on kuitenkin rajallinen. Sanakirjan kasvaessa niin suureksi, ettei se enää mahdu evästeeseen, sanakirja täytyy tallentaa palvelimellemme. Tallentaaksesi sanakirjasi palvelimellemme tulee sinun antaa sille nimi. Jos olet jo tallentanut sanakirjan, anna sen nimi ja klikkaa Palauta-painiketta',
aboutTab : 'Tietoa'
},
about :
{
title : 'Tietoa CKEditorista',
dlgTitle : 'Tietoa CKEditorista',
help : 'Katso ohjeet: $1.',
userGuide : 'CKEditorin käyttäjäopas',
moreInfo : 'Lisenssitiedot löytyvät kotisivuiltamme:',
copy : 'Copyright © $1. Kaikki oikeuden pidätetään.'
},
maximize : 'Suurenna',
minimize : 'Pienennä',
fakeobjects :
{
anchor : 'Ankkuri',
flash : 'Flash animaatio',
iframe : 'IFrame-kehys',
hiddenfield : 'Piilokenttä',
unknown : 'Tuntematon objekti'
},
resize : 'Raahaa muuttaaksesi kokoa',
colordialog :
{
title : 'Valitse väri',
options : 'Värin ominaisuudet',
highlight : 'Korostus',
selected : 'Valittu',
clear : 'Poista'
},
toolbarCollapse : 'Kutista työkalupalkki',
toolbarExpand : 'Laajenna työkalupalkki',
toolbarGroups :
{
document : 'Dokumentti',
clipboard : 'Leikepöytä/Kumoa',
editing : 'Muokkaus',
forms : 'Lomakkeet',
basicstyles : 'Perustyylit',
paragraph : 'Kappale',
links : 'Linkit',
insert : 'Lisää',
styles : 'Tyylit',
colors : 'Värit',
tools : 'Työkalut'
},
bidi :
{
ltr : 'Tekstin suunta vasemmalta oikealle',
rtl : 'Tekstin suunta oikealta vasemmalle'
},
docprops :
{
label : 'Dokumentin ominaisuudet',
title : 'Dokumentin ominaisuudet',
design : 'Sommittelu',
meta : 'Metatieto',
chooseColor : 'Valitse',
other : '<muu>',
docTitle : 'Sivun nimi',
charset : 'Merkistökoodaus',
charsetOther : 'Muu merkistökoodaus',
charsetASCII : 'ASCII',
charsetCE : 'Keskieurooppalainen',
charsetCT : 'Kiina, perinteinen (Big5)',
charsetCR : 'Kyrillinen',
charsetGR : 'Kreikka',
charsetJP : 'Japani',
charsetKR : 'Korealainen',
charsetTR : 'Turkkilainen',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Länsieurooppalainen',
docType : 'Dokumentin tyyppi',
docTypeOther : 'Muu dokumentin tyyppi',
xhtmlDec : 'Lisää XHTML julistukset',
bgColor : 'Taustaväri',
bgImage : 'Taustakuva',
bgFixed : 'Paikallaanpysyvä tausta',
txtColor : 'Tekstiväri',
margin : 'Sivun marginaalit',
marginTop : 'Ylä',
marginLeft : 'Vasen',
marginRight : 'Oikea',
marginBottom : 'Ala',
metaKeywords : 'Hakusanat (pilkulla erotettuna)',
metaDescription : 'Kuvaus',
metaAuthor : 'Tekijä',
metaCopyright : 'Tekijänoikeudet',
previewHtml : '<p>Tämä on <strong>esimerkkitekstiä</strong>. Käytät juuri <a href="javascript:void(0)">CKEditoria</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/fi.js
|
JavaScript
|
gpl3
| 24,250
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['ug'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'rtl',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'كۆرۈنۈشچان تەھرىرلىگۈچ، %1، ALT+0 نى بېسىپ ياردەمنى كۆرۈڭ.',
// ARIA descriptions.
toolbars : 'قورال بالداق',
editor : 'تەھرىرلىگۈچ',
// Toolbar buttons without dialogs.
source : 'مەنبە',
newPage : 'يېڭى بەت',
save : 'ساقلا',
preview : 'ئالدىن كۆزەت',
cut : 'كەس',
copy : 'نەشر ھوقۇقىغا ئىگە بەلگىسى',
paste : 'چاپلا',
print : 'باس ',
underline : 'ئاستى سىزىق',
bold : 'توم',
italic : 'يانتۇ',
selectAll : 'ھەممىنى تاللا',
removeFormat : 'پىچىمنى چىقىرىۋەت',
strike : 'ئۆچۈرۈش سىزىقى',
subscript : 'تۆۋەن ئىندېكس',
superscript : 'يۇقىرى ئىندېكس',
horizontalrule : 'توغرا سىزىق قىستۇر',
pagebreak : 'بەت ئايرىغۇچ قىستۇر',
pagebreakAlt : 'بەت ئايرىغۇچ',
unlink : 'ئۇلانما بىكار قىل',
undo : 'يېنىۋال',
redo : 'قايتىلا ',
// Common messages and labels.
common :
{
browseServer : 'كۆرسىتىش مۇلازىمېتىر',
url : 'ئەسلى ھۆججەت',
protocol : 'كېلىشىم',
upload : 'يۈكلە',
uploadSubmit : 'مۇلازىمېتىرغا يۈكلە',
image : 'سۈرەت',
flash : 'Flash',
form : 'جەدۋەل',
checkbox : 'كۆپ تاللاش رامكىسى',
radio : 'يەككە تاللاش توپچىسى',
textField : 'يەككە قۇر تېكىست',
textarea : 'كۆپ قۇر تېكىست',
hiddenField : 'يوشۇرۇن دائىرە',
button : 'توپچا',
select : 'تىزىم/تىزىملىك',
imageButton : 'سۈرەت دائىرە',
notSet : '‹تەڭشەلمىگەن›',
id : 'ID',
name : 'ئات',
langDir : 'تىل يۆنىلىشى',
langDirLtr : 'سولدىن ئوڭغا (LTR)',
langDirRtl : 'ئوڭدىن سولغا (RTL)',
langCode : 'تىل كودى',
longDescr : 'تەپسىلىي چۈشەندۈرۈش ئادرېسى',
cssClass : 'ئۇسلۇب خىلىنىڭ ئاتى',
advisoryTitle : 'ماۋزۇ',
cssStyle : 'قۇر ئىچىدىكى ئۇسلۇبى',
ok : 'جەزملە',
cancel : 'ۋاز كەچ',
close : 'تاقا',
preview : 'ئالدىن كۆزەت',
generalTab : 'ئادەتتىكى',
advancedTab : 'ئالىي',
validateNumberFailed : 'سان پىچىمىدا كىرگۈزۈش زۆرۈر',
confirmNewPage : 'نۆۋەتتىكى پۈتۈك مەزمۇنى ساقلانمىدى، يېڭى پۈتۈك قۇرامسىز؟',
confirmCancel : 'قىسمەن ئۆزگەرتىش ساقلانمىدى، بۇ سۆزلەشكۈنى تاقامسىز؟',
options : 'تاللانما',
target : 'نىشان كۆزنەك',
targetNew : 'يېڭى كۆزنەك (_blank)',
targetTop : 'پۈتۈن بەت (_top)',
targetSelf : 'مەزكۇر كۆزنەك (_self)',
targetParent : 'ئاتا كۆزنەك (_parent)',
langDirLTR : 'سولدىن ئوڭغا (LTR)',
langDirRTL : 'ئوڭدىن سولغا (RTL)',
styles : 'ئۇسلۇبلار',
cssClasses : 'ئۇسلۇب خىللىرى',
width : 'كەڭلىك',
height : 'ئېگىزلىك',
align : 'توغرىلىنىشى',
alignLeft : 'سول',
alignRight : 'ئوڭ',
alignCenter : 'ئوتتۇرا',
alignTop : 'ئۈستى',
alignMiddle : 'ئوتتۇرا',
alignBottom : 'ئاستى',
invalidHeight : 'ئېگىزلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر',
invalidWidth : 'كەڭلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر',
invalidCssLength : 'بۇ سۆز بۆلىكى چوقۇم مۇۋاپىق بولغان CSS ئۇزۇنلۇق قىممىتى بولۇشى زۆرۈر، بىرلىكى (px, %, in, cm, mm, em, ex, pt ياكى pc)',
invalidHtmlLength : 'بۇ سۆز بۆلىكى چوقۇم بىرىكمە HTML ئۇزۇنلۇق قىممىتى بولۇشى كېرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px ياكى %)',
invalidInlineStyle : 'ئىچكى باغلانما ئۇسلۇبى چوقۇم چېكىتلىك پەش بىلەن ئايرىلغان بىر ياكى كۆپ «خاسلىق ئاتى:خاسلىق قىممىتى» پىچىمىدا بولۇشى لازىم',
cssLengthTooltip : 'بۇ سۆز بۆلىكى بىرىكمە CSS ئۇزۇنلۇق قىممىتى بولۇشى كېرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px, %, in, cm, mm, em, ex, pt ياكى pc)',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class=\\\\"cke_accessibility\\\\">، ئىشلەتكىلى بولمايدۇ</span>'
},
contextmenu :
{
options : 'قىسقا يول تىزىملىك تاللانمىسى'
},
// Special char dialog.
specialChar :
{
toolbar : 'ئالاھىدە ھەرپ قىستۇر',
title : 'ئالاھىدە ھەرپ تاللاڭ',
options : 'ئالاھىدە ھەرپ تاللانمىسى'
},
// Link dialog.
link :
{
toolbar : 'ئۇلانما قىستۇر/تەھرىرلە',
other : '‹باشقا›',
menu : 'ئۇلانما تەھرىر',
title : 'ئۇلانما',
info : 'ئۇلانما ئۇچۇرى',
target : 'نىشان',
upload : 'يۈكلە',
advanced : 'ئالىي',
type : 'ئۇلانما تىپى',
toUrl : 'ئادرېس',
toAnchor : 'بەت ئىچىدىكى لەڭگەرلىك نۇقتا ئۇلانمىسى',
toEmail : 'ئېلخەت',
targetFrame : '‹كاندۇك›',
targetPopup : '‹قاڭقىش كۆزنەك›',
targetFrameName : 'نىشان كاندۇك ئاتى',
targetPopupName : 'قاڭقىش كۆزنەك ئاتى',
popupFeatures : 'قاڭقىش كۆزنەك خاسلىقى',
popupResizable : 'چوڭلۇقى ئۆزگەرتىشچان',
popupStatusBar : 'ھالەت بالداق',
popupLocationBar: 'ئادرېس بالداق',
popupToolbar : 'قورال بالداق',
popupMenuBar : 'تىزىملىك بالداق',
popupFullScreen : 'پۈتۈن ئېكران (IE)',
popupScrollBars : 'دومىلىما سۈرگۈچ',
popupDependent : 'تەۋە (NS)',
popupLeft : 'سول',
popupTop : 'ئوڭ',
id : 'ID',
langDir : 'تىل يۆنىلىشى',
langDirLTR : 'سولدىن ئوڭغا (LTR)',
langDirRTL : 'ئوڭدىن سولغا (RTL)',
acccessKey : 'زىيارەت كۇنۇپكا',
name : 'ئات',
langCode : 'تىل كودى',
tabIndex : 'Tab تەرتىپى',
advisoryTitle : 'ماۋزۇ',
advisoryContentType : 'مەزمۇن تىپى',
cssClasses : 'ئۇسلۇب خىلى ئاتى',
charset : 'ھەرپ كودلىنىشى',
styles : 'قۇر ئىچىدىكى ئۇسلۇبى',
rel : 'باغلىنىش',
selectAnchor : 'بىر لەڭگەرلىك نۇقتا تاللاڭ',
anchorName : 'لەڭگەرلىك نۇقتا ئاتى بويىچە',
anchorId : 'لەڭگەرلىك نۇقتا ID سى بويىچە',
emailAddress : 'ئادرېس',
emailSubject : 'ماۋزۇ',
emailBody : 'مەزمۇن',
noAnchors : '(بۇ پۈتۈكتە ئىشلەتكىلى بولىدىغان لەڭگەرلىك نۇقتا يوق)',
noUrl : 'ئۇلانما ئادرېسىنى كىرگۈزۈڭ',
noEmail : 'ئېلخەت ئادرېسىنى كىرگۈزۈڭ'
},
// Anchor dialog
anchor :
{
toolbar : 'لەڭگەرلىك نۇقتا ئۇلانمىسى قىستۇر/تەھرىرلە',
menu : 'لەڭگەرلىك نۇقتا ئۇلانما خاسلىقى',
title : 'لەڭگەرلىك نۇقتا ئۇلانما خاسلىقى',
name : 'لەڭگەرلىك نۇقتا ئاتى',
errorName : 'لەڭگەرلىك نۇقتا ئاتىنى كىرگۈزۈڭ',
remove : 'لەڭگەرلىك نۇقتا ئۆچۈر'
},
// List style dialog
list:
{
numberedTitle : 'تەرتىپ نومۇر تىزىم خاسلىقى',
bulletedTitle : 'تۈر بەلگە تىزىم خاسلىقى',
type : 'بەلگە تىپى',
start : 'باشلىنىش نومۇرى',
validateStartNumber :'تىزىم باشلىنىش تەرتىپ نومۇرى چوقۇم پۈتۈن سان پىچىمىدا بولۇشى لازىم',
circle : 'بوش چەمبەر',
disc : 'تولدۇرۇلغان چەمبەر',
square : 'تولدۇرۇلغان تۆت چاسا',
none : 'بەلگە يوق',
notset : '‹تەڭشەلمىگەن›',
armenian : 'قەدىمكى ئەرمىنىيە تەرتىپ نومۇرى شەكلى',
georgian : 'قەدىمكى جورجىيە تەرتىپ نومۇرى شەكلى (an, ban, gan قاتارلىق)',
lowerRoman : 'كىچىك ھەرپلىك رىم رەقىمى (i, ii, iii, iv, v قاتارلىق)',
upperRoman : 'چوڭ ھەرپلىك رىم رەقىمى (I, II, III, IV, V قاتارلىق)',
lowerAlpha : 'ئىنگلىزچە كىچىك ھەرپ (a, b, c, d, e قاتارلىق)',
upperAlpha : 'ئىنگلىزچە چوڭ ھەرپ (A, B, C, D, E قاتارلىق)',
lowerGreek : 'گرېكچە كىچىك ھەرپ (alpha, beta, gamma قاتارلىق)',
decimal : 'سان (1, 2, 3 قاتارلىق)',
decimalLeadingZero : 'نۆلدىن باشلانغان سان بەلگە (01, 02, 03 قاتارلىق)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'ئىزدەپ ئالماشتۇر',
find : 'ئىزدە',
replace : 'ئالماشتۇر',
findWhat : 'ئىزدە:',
replaceWith : 'ئالماشتۇر:',
notFoundMsg : 'بەلگىلەنگەن تېكىستنى تاپالمىدى',
findOptions : 'ئىزدەش تاللانمىسى',
matchCase : 'چوڭ كىچىك ھەرپنى پەرقلەندۈر',
matchWord : 'پۈتۈن سۆز ماسلىشىش',
matchCyclic : 'ئايلانما ماسلىشىش',
replaceAll : 'ھەممىنى ئالماشتۇر',
replaceSuccessMsg : 'جەمئى %1 جايدىكى ئالماشتۇرۇش تاماملاندى'
},
// Table Dialog
table :
{
toolbar : 'جەدۋەل',
title : 'جەدۋەل خاسلىقى',
menu : 'جەدۋەل خاسلىقى',
deleteTable : 'جەدۋەل ئۆچۈر',
rows : 'قۇر سانى',
columns : 'ئىستون سانى',
border : 'گىرۋەك',
widthPx : 'پىكسېل',
widthPc : 'پىرسەنت',
widthUnit : 'كەڭلىك بىرلىكى',
cellSpace : 'ئارىلىق',
cellPad : 'يان ئارىلىق',
caption : 'ماۋزۇ',
summary : 'ئۈزۈندە',
headers : 'ماۋزۇ كاتەكچە',
headersNone : 'يوق',
headersColumn : 'بىرىنچى ئىستون',
headersRow : 'بىرىنچى قۇر',
headersBoth : 'بىرىنچى ئىستون ۋە بىرىنچى قۇر',
invalidRows : 'بەلگىلەنگەن ئىستون سانى چوقۇم نۆلدىن چوڭ بولىدۇ',
invalidCols : 'بەلگىلەنگەن قۇر سانى چوقۇم نۆلدىن چوڭ بولىدۇ',
invalidBorder : 'گىرۋەك توملۇقى چوقۇم سان بولىدۇ',
invalidWidth : 'جەدۋەل كەڭلىكى چوقۇم سان بولىدۇ',
invalidHeight : 'جەدۋەل ئېگىزلىكى چوقۇم سان بولىدۇ',
invalidCellSpacing : 'كاتەكچە ئارىلىقى چوقۇم سان بولىدۇ',
invalidCellPadding : 'كاتەكچىگە چوقۇم سان تولدۇرۇلىدۇ',
cell :
{
menu : 'كاتەكچە',
insertBefore : 'سولغا كاتەكچە قىستۇر',
insertAfter : 'ئوڭغا كاتەكچە قىستۇر',
deleteCell : 'كەتەكچە ئۆچۈر',
merge : 'كاتەكچە بىرلەشتۈر',
mergeRight : 'كاتەكچىنى ئوڭغا بىرلەشتۈر',
mergeDown : 'كاتەكچىنى ئاستىغا بىرلەشتۈر',
splitHorizontal : 'كاتەكچىنى توغرىسىغا بىرلەشتۈر',
splitVertical : 'كاتەكچىنى بويىغا بىرلەشتۈر',
title : 'كاتەكچە خاسلىقى',
cellType : 'كاتەكچە تىپى',
rowSpan : 'بويىغا چات ئارىسى قۇر سانى',
colSpan : 'توغرىسىغا چات ئارىسى ئىستون سانى',
wordWrap : 'ئۆزلۈكىدىن قۇر قاتلا',
hAlign : 'توغرىسىغا توغرىلا',
vAlign : 'بويىغا توغرىلا',
alignBaseline : 'ئاساسىي سىزىق',
bgColor : 'تەگلىك رەڭگى',
borderColor : 'گىرۋەك رەڭگى',
data : 'سانلىق مەلۇمات',
header : 'جەدۋەل باشى',
yes : 'ھەئە',
no : 'ياق',
invalidWidth : 'كاتەكچە كەڭلىكى چوقۇم سان بولىدۇ',
invalidHeight : 'كاتەكچە ئېگىزلىكى چوقۇم سان بولىدۇ',
invalidRowSpan : 'قۇر چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ ',
invalidColSpan : 'ئىستون چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ',
chooseColor : 'تاللاڭ'
},
row :
{
menu : 'قۇر',
insertBefore : 'ئۈستىگە قۇر قىستۇر',
insertAfter : 'ئاستىغا قۇر قىستۇر',
deleteRow : 'قۇر ئۆچۈر'
},
column :
{
menu : 'ئىستون',
insertBefore : 'سولغا ئىستون قىستۇر',
insertAfter : 'ئوڭغا ئىستون قىستۇر',
deleteColumn : 'ئىستون ئۆچۈر'
}
},
// Button Dialog.
button :
{
title : 'توپچا خاسلىقى',
text : 'بەلگە (قىممەت)',
type : 'تىپى',
typeBtn : 'توپچا',
typeSbm : 'تاپشۇر',
typeRst : 'ئەسلىگە قايتۇر'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'كۆپ تاللاش خاسلىقى',
radioTitle : 'تاق تاللاش توپچا خاسلىقى',
value : 'تاللىغان قىممەت',
selected : 'تاللانغان'
},
// Form Dialog.
form :
{
title : 'جەدۋەل خاسلىقى',
menu : 'جەدۋەل خاسلىقى',
action : 'مەشغۇلات',
method : 'ئۇسۇل',
encoding : 'جەدۋەل كودلىنىشى'
},
// Select Field Dialog.
select :
{
title : 'جەدۋەل/تىزىم خاسلىقى',
selectInfo : 'ئۇچۇر تاللاڭ',
opAvail : 'تاللاش تۈرلىرى',
value : 'قىممەت',
size : 'ئېگىزلىكى',
lines : 'قۇر',
chkMulti : 'كۆپ تاللاشچان',
opText : 'تاللانما تېكىستى',
opValue : 'تاللانما قىممىتى',
btnAdd : 'قوش',
btnModify : 'ئۆزگەرت',
btnUp : 'ئۈستىگە',
btnDown : 'ئاستىغا',
btnSetValue : 'دەسلەپكى تاللانما قىممىتىگە تەڭشە',
btnDelete : 'ئۆچۈر'
},
// Textarea Dialog.
textarea :
{
title : ' كۆپ قۇرلۇق تېكىست خاسلىقى',
cols : 'ھەرپ كەڭلىكى',
rows : 'قۇر سانى'
},
// Text Field Dialog.
textfield :
{
title : 'تاق قۇرلۇق تېكىست خاسلىقى',
name : 'ئات',
value : 'دەسلەپكى قىممىتى',
charWidth : 'ھەرپ كەڭلىكى',
maxChars : 'ئەڭ كۆپ ھەرپ سانى',
type : 'تىپى',
typeText : 'تېكىست',
typePass : 'ئىم'
},
// Hidden Field Dialog.
hidden :
{
title : 'يوشۇرۇن دائىرە خاسلىقى',
name : 'ئات',
value : 'دەسلەپكى قىممىتى'
},
// Image Dialog.
image :
{
title : 'سۈرەت خاسلىقى',
titleButton : 'سۈرەت دائىرە خاسلىقى',
menu : 'سۈرەت خاسلىقى',
infoTab : 'سۈرەت',
btnUpload : 'مۇلازىمېتىرغا يۈكلە',
upload : 'يۈكلە',
alt : 'تېكىست ئالماشتۇر',
lockRatio : 'نىسبەتنى قۇلۇپلا',
resetSize : 'ئەسلى چوڭلۇق',
border : 'گىرۋەك چوڭلۇقى',
hSpace : 'توغرىسىغا ئارىلىقى',
vSpace : 'بويىغا ئارىلىقى',
alertUrl : 'سۈرەت ئادرېسىنى كىرگۈزۈڭ',
linkTab : 'ئۇلانما',
button2Img : 'نۆۋەتتىكى توپچىنى سۈرەتكە ئۆزگەرتەمسىز؟',
img2Button : 'نۆۋەتتىكى سۈرەتنى توپچىغا ئۆزگەرتەمسىز؟',
urlMissing : 'سۈرەتنىڭ ئەسلى ھۆججەت ئادرېسى كەم',
validateBorder : 'گىرۋەك چوڭلۇقى چوقۇم سان بولىدۇ',
validateHSpace : 'توغرىسىغا ئارىلىق چوقۇم پۈتۈن سان بولىدۇ',
validateVSpace : 'بويىغا ئارىلىق چوقۇم پۈتۈن سان بولىدۇ'
},
// Flash Dialog
flash :
{
properties : 'Flash خاسلىق',
propertiesTab : 'خاسلىق',
title : 'ماۋزۇ',
chkPlay : 'ئۆزلۈكىدىن چال',
chkLoop : 'دەۋرىي',
chkMenu : 'Flash تىزىملىكنى قوزغات',
chkFull : 'پۈتۈن ئېكراننى قوزغات',
scale : 'نىسبىتى',
scaleAll : 'ھەممىنى كۆرسەت',
scaleNoBorder : 'گىرۋەك يوق',
scaleFit : 'قەتئىي ماسلىشىش',
access : 'قوليازما زىيارەتكە يول قوي',
accessAlways : 'ھەمىشە',
accessSameDomain: 'ئوخشاش دائىرىدە',
accessNever : 'ھەرگىز',
alignAbsBottom : 'مۇتلەق ئاستى',
alignAbsMiddle : 'مۇتلەق ئوتتۇرا',
alignBaseline : 'ئاساسىي سىزىق',
alignTextTop : 'تېكىست ئۈستىدە',
quality : 'سۈپەت',
qualityBest : 'ئەڭ ياخشى',
qualityHigh : 'يۇقىرى',
qualityAutoHigh : 'يۇقىرى (ئاپتوماتىك)',
qualityMedium : 'ئوتتۇرا (ئاپتوماتىك)',
qualityAutoLow : 'تۆۋەن (ئاپتوماتىك)',
qualityLow : 'تۆۋەن',
windowModeWindow: 'كۆزنەك گەۋدىسى',
windowModeOpaque: 'خىرە',
windowModeTransparent : 'سۈزۈك',
windowMode : 'كۆزنەك ھالىتى',
flashvars : 'Flash ئۆزگەرگۈچى',
bgcolor : 'تەگلىك رەڭگى',
hSpace : 'توغرىسىغا ئارىلىق',
vSpace : 'بويىغا ئارىلىق',
validateSrc : 'ئەسلى ھۆججەت ئادرېسىنى كىرگۈزۈڭ',
validateHSpace : 'توغرىسىغا ئارىلىق چوقۇم سان بولىدۇ',
validateVSpace : 'بويىغا ئارىلىق چوقۇم سان بولىدۇ'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'ئىملا تەكشۈر',
title : 'ئىملا تەكشۈر',
notAvailable : 'كەچۈرۈڭ، مۇلازىمېتىرنى ۋاقتىنچە ئىشلەتكىلى بولمايدۇ',
errorLoading : 'لازىملىق مۇلازىمېتىرنى يۈكلىگەندە خاتالىق كۆرۈلدى: %s.',
notInDic : 'لۇغەتتە يوق',
changeTo : 'ئۆزگەرت',
btnIgnore : 'پەرۋا قىلما',
btnIgnoreAll : 'ھەممىگە پەرۋا قىلما',
btnReplace : 'ئالماشتۇر',
btnReplaceAll : 'ھەممىنى ئالماشتۇر',
btnUndo : 'يېنىۋال',
noSuggestions : '-تەكلىپ يوق-',
progress : 'ئىملا تەكشۈرۈۋاتىدۇ…',
noMispell : 'ئىملا تەكشۈرۈش تامام: ئىملا خاتالىقى بايقالمىدى',
noChanges : 'ئىملا تەكشۈرۈش تامام: ھېچقانداق سۆزنى ئۆزگەرتمىدى',
oneChange : 'ئىملا تەكشۈرۈش تامام: بىر سۆزنى ئۆزگەرتتى',
manyChanges : 'ئىملا تەكشۈرۈش تامام: %1 سۆزنى ئۆزگەرتتى',
ieSpellDownload : 'ئىملا تەكشۈرۈش قىستۇرمىسى تېخى ئورنىتىلمىغان، ھازىرلا چۈشۈرەمسىز؟'
},
smiley :
{
toolbar : 'چىراي ئىپادە',
title : 'چىراي ئىپادە سىنبەلگە قىستۇر',
options : 'چىراي ئىپادە سىنبەلگە تاللانمىسى'
},
elementsPath :
{
eleLabel : 'ئېلېمېنت يولى',
eleTitle : '%1 ئېلېمېنت'
},
numberedlist : 'تەرتىپ نومۇر تىزىمى',
bulletedlist : 'تۈر بەلگە تىزىمى',
indent : 'تارايت',
outdent : 'كەڭەيت',
justify :
{
left : 'سولغا توغرىلا',
center : 'ئوتتۇرىغا توغرىلا',
right : 'ئوڭغا توغرىلا',
block : 'ئىككى تەرەپتىن توغرىلا'
},
blockquote : 'بۆلەك نەقىل',
clipboard :
{
title : 'چاپلا',
cutError : 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كەس مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+X) ئارقىلىق تاماملاڭ',
copyError : 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كۆچۈر مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+C) ئارقىلىق تاماملاڭ',
pasteMsg : 'ھەرپتاختا تېز كۇنۇپكا (<STRONG>Ctrl/Cmd+V</STRONG>) نى ئىشلىتىپ مەزمۇننى تۆۋەندىكى رامكىغا كۆچۈرۈڭ، ئاندىن <STRONG>جەزملە</STRONG>نى بېسىڭ',
securityMsg : 'توركۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى سەۋەبىدىن بۇ تەھرىرلىگۈچ چاپلاش تاختىسىدىكى مەزمۇننى بىۋاستە زىيارەت قىلالمايدۇ، بۇ كۆزنەكتە قايتا بىر قېتىم چاپلىشىڭىز كېرەك.',
pasteArea : 'چاپلاش دائىرىسى'
},
pastefromword :
{
confirmCleanup : 'سىز چاپلىماقچى بولغان مەزمۇن MS Word تىن كەلگەندەك قىلىدۇ، MS Word پىچىمىنى تازىلىۋەتكەندىن كېيىن ئاندىن چاپلامدۇ؟',
toolbar : 'MS Word تىن چاپلا',
title : 'MS Word تىن چاپلا',
error : 'ئىچكى خاتالىق سەۋەبىدىن چاپلايدىغان سانلىق مەلۇماتنى تازىلىيالمايدۇ'
},
pasteText :
{
button : 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا',
title : 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا'
},
templates :
{
button : 'قېلىپ',
title : 'مەزمۇن قېلىپى',
options : 'قېلىپ تاللانمىسى',
insertOption : 'نۆۋەتتىكى مەزمۇننى ئالماشتۇر',
selectPromptMsg : 'تەھرىرلىگۈچنىڭ مەزمۇن قېلىپىنى تاللاڭ:',
emptyListMsg : '(قېلىپ يوق)'
},
showBlocks : 'بۆلەكنى كۆرسەت',
stylesCombo :
{
label : 'ئۇسلۇب',
panelTitle : 'ئۇسلۇب',
panelTitle1 : 'بۆلەك دەرىجىسىدىكى ئېلېمېنت ئۇسلۇبى',
panelTitle2 : 'ئىچكى باغلانما ئېلېمېنت ئۇسلۇبى',
panelTitle3 : 'نەڭ (Object) ئېلېمېنت ئۇسلۇبى'
},
format :
{
label : 'پىچىم',
panelTitle : 'پىچىم',
tag_p : 'ئادەتتىكى',
tag_pre : 'تىزىلغان پىچىم',
tag_address : 'ئادرېس',
tag_h1 : 'ماۋزۇ 1',
tag_h2 : 'ماۋزۇ 2',
tag_h3 : 'ماۋزۇ 3',
tag_h4 : 'ماۋزۇ 4',
tag_h5 : 'ماۋزۇ 5',
tag_h6 : 'ماۋزۇ 6',
tag_div : 'ئابزاس (DIV)'
},
div :
{
title : 'DIV قاچا قۇر',
toolbar : 'DIV قاچا قۇر',
cssClassInputLabel : 'ئۇسلۇب تىپىنىڭ ئاتى',
styleSelectLabel : 'ئۇسلۇب',
IdInputLabel : 'ID',
languageCodeInputLabel : 'تىل كودى',
inlineStyleInputLabel : 'قۇر ئىچىدىكى ئۇسلۇبى',
advisoryTitleInputLabel : 'ماۋزۇ',
langDirLabel : 'تىل يۆنىلىشى',
langDirLTRLabel : 'سولدىن ئوڭغا (LTR)',
langDirRTLLabel : 'ئوڭدىن سولغا (RTL)',
edit : 'DIV تەھرىر',
remove : 'DIV چىقىرىۋەت'
},
iframe :
{
title : 'IFrame خاسلىق',
toolbar : 'IFrame ',
noUrl : 'كاندۇكنىڭ ئادرېسى(Url)نى كىرگۈزۈڭ',
scrolling : 'دومىلىما سۈرگۈچكە يول قوي',
border : 'كاندۇك گىرۋەكلىرىنى كۆرسەت'
},
font :
{
label : 'خەت نۇسخا',
voiceLabel : 'خەت نۇسخا',
panelTitle : 'خەت نۇسخا'
},
fontSize :
{
label : 'چوڭلۇقى',
voiceLabel : 'خەت چوڭلۇقى',
panelTitle : 'چوڭلۇقى'
},
colorButton :
{
textColorTitle : 'تېكىست رەڭگى',
bgColorTitle : 'تەگلىك رەڭگى',
panelTitle : 'رەڭ',
auto : 'ئۆزلۈكىدىن',
more : 'باشقا رەڭ'
},
colors :
{
'000' : 'قارا',
'800000' : 'قىزغۇچ سېرىق',
'8B4513' : 'توق قوڭۇر',
'2F4F4F' : 'قارامتۇل يېشىل',
'008080' : 'كۆكۈش يېشىل',
'000080' : 'قارامتۇل كۆك',
'4B0082' : 'كۆكۈش كۈلرەڭ',
'696969' : 'قارامتۇل كۈلرەڭ',
'B22222' : 'خىش قىزىل',
'A52A2A' : 'قوڭۇر',
'DAA520' : 'ئالتۇن سېرىق',
'006400' : 'توق يېشىل',
'40E0D0' : 'كۆكۈچ يېشىل',
'0000CD' : 'ئوتتۇراھال كۆك',
'800080' : 'بىنەپشە',
'808080' : 'كۈلرەڭ',
'F00' : 'قىزىل',
'FF8C00' : 'توق قىزغۇچ سېرىق',
'FFD700' : 'ئالتۇن',
'008000' : 'يېشىل',
'0FF' : 'يېشىل كۆك',
'00F' : 'كۆك',
'EE82EE' : 'قىزغۇچ بىنەپشە',
'A9A9A9' : 'توق كۈلرەڭ',
'FFA07A' : 'كاۋا چېچىكى سېرىق',
'FFA500' : 'قىزغۇچ سېرىق',
'FFFF00' : 'سېرىق',
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'سۇس ھاۋا رەڭ',
'ADD8E6' : 'ئوچۇق كۆك',
'DDA0DD' : 'قىزغۇچ بىنەپشە',
'D3D3D3' : 'سۇس كۆكۈچ كۈلرەڭ',
'FFF0F5' : 'سۇس قىزغۇچ بىنەپشە',
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'سۇس سېرىق',
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'ئاسمان كۆكى',
'F0F8FF' : 'سۇس كۆك',
'E6E6FA' : 'سۇس بىنەپشە',
'FFF' : 'ئاق'
},
scayt :
{
title : 'شۇئان ئىملا تەكشۈر',
opera_title : 'Opera توركۆرگۈنى قوللىمايدۇ',
enable : 'شۇئان ئىملا تەكشۈرۈشنى قوزغات',
disable : 'شۇئان ئىملا تەكشۈرۈشنى چەكلە',
about : 'شۇئان ئىملا تەكشۈرۈش ھەققىدە',
toggle : 'شۇئان ئىملا تەكشۈرۈشنى ۋاقىتلىق توختات/قوزغات',
options : 'تاللانما',
langs : 'تىل',
moreSuggestions : 'تېخىمۇ كۆپ ئىملا تەۋسىيەسى',
ignore : 'پەرۋا قىلما',
ignoreAll : 'ھەممىسىگە پەرۋا قىلما',
addWord : 'سۆز قوش',
emptyDic : 'لۇغەت ئاتى بوش قالمايدۇ',
optionsTab : 'تاللانما',
allCaps : 'چوڭ ھەرپتە يېزىلغان ھەممە سۆزگە پەرۋا قىلما',
ignoreDomainNames : 'دائىرە ئاتىغا پەرۋا قىلما',
mixedCase : 'چوڭ كىچىك ھەرپ بىلەن ئارىلاش يېزىلغان سۆزگە پەرۋا قىلما',
mixedWithDigits : 'سان بار سۆزگە پەرۋا قىلما',
languagesTab : 'تىل',
dictionariesTab : 'لۇغەت',
dic_field_name : 'لۇغەت ئاتى',
dic_create : 'قۇر',
dic_restore : 'ئەسلىگە كەلتۈر',
dic_delete : 'ئۆچۈر',
dic_rename : 'ئات ئۆزگەرت',
dic_info : 'باشلىنىشتا ئىشلەتكۈچى لۇغىتى Cookie غا ساقلىنىدۇ ئەمما Cookie نىڭ سىغىمى چەكلىك بولغاچقا، ئىشلەتكۈچى لۇغىتى كۆپىيىپ Cookie چەكلىمىسىدىن ئېشىپ كەتكەندە ساقلىغىلى بولمايدۇ، بۇ چاغدا لۇغىتىڭىزنى مۇلازىمېتىرىمىزغا ساقلىسىڭىز بولىدۇ. شەخسىي لۇغىتىڭىزنى مۇلازىمېتىرىمىزغا ساقلىماقچى بولسىڭىز لۇغىتىڭىزگە ئاتتىن بىرنى قويۇڭ، ئەگەر مۇلازىمتېرىمىزدا سىزنىڭ لۇغىتىڭىزدىن بىرسى بولسا لۇغەت ئاتىنى كىرگۈزۈپ ئەسلىگە قايتۇر توپچىسىنى بېسىڭ.',
aboutTab : 'ھەققىدە'
},
about :
{
title : 'CKEditor ھەققىدە',
dlgTitle : 'CKEditor ھەققىدە',
help : '$1 نى زىيارەت قىلىپ ياردەمگە ئېرىشىڭ',
userGuide : 'CKEditor ئىشلەتكۈچى قوللانمىسى',
moreInfo : 'تور تۇرايىمىزنى زىيارەت قىلىپ كېلىشىمگە ئائىت تېخىمۇ كۆپ ئۇچۇرغا ئېرىشىڭ',
copy : 'Copyright © $1. نەشر ھوقۇقىغا ئىگە'
},
maximize : 'چوڭايت',
minimize : 'كىچىكلەت',
fakeobjects :
{
anchor : 'لەڭگەرلىك نۇقتا',
flash : 'Flash جانلاندۇرۇم',
iframe : 'IFrame',
hiddenfield : 'يوشۇرۇن دائىرە',
unknown : 'يوچۇن نەڭ'
},
resize : 'چوڭلۇقىنى ئۆزگەرت',
colordialog :
{
title : 'رەڭ تاللاڭ',
options : 'رەڭ تاللانمىسى',
highlight : 'يورۇت',
selected : 'رەڭ تاللاڭ',
clear : 'تازىلا'
},
toolbarCollapse : 'قورال بالداقنى قاتلا',
toolbarExpand : 'قورال بالداقنى ياي',
toolbarGroups :
{
document : 'پۈتۈك',
clipboard : 'چاپلاش تاختىسى/يېنىۋال',
editing : 'تەھرىر',
forms : 'جەدۋەل',
basicstyles : 'ئاساسىي ئۇسلۇب',
paragraph : 'ئابزاس',
links : 'ئۇلانما',
insert : 'قىستۇر',
styles : 'ئۇسلۇب',
colors : 'رەڭ',
tools : 'قورال'
},
bidi :
{
ltr : 'تېكىست يۆنىلىشى سولدىن ئوڭغا',
rtl : 'تېكىست يۆنىلىشى ئوڭدىن سولغا'
},
docprops :
{
label : 'بەت خاسلىقى',
title : 'بەت خاسلىقى',
design : 'لايىھە',
meta : 'مېتا سانلىق مەلۇمات',
chooseColor : 'تاللاڭ',
other : 'باشقا',
docTitle : 'بەت ماۋزۇسى',
charset : 'ھەرپ كودلىنىشى',
charsetOther : 'باشقا ھەرپ كودلىنىشى',
charsetASCII : 'ASCII',
charsetCE : 'ئوتتۇرا ياۋرۇپا',
charsetCT : 'مۇرەككەپ خەنزۇچە (Big5)',
charsetCR : 'سىلاۋيانچە',
charsetGR : 'گىرېكچە',
charsetJP : 'ياپونچە',
charsetKR : 'كۆرىيەچە',
charsetTR : 'تۈركچە',
charsetUN : 'يۇنىكود (UTF-8)',
charsetWE : 'غەربىي ياۋرۇپا',
docType : 'پۈتۈك تىپى',
docTypeOther : 'باشقا پۈتۈك تىپى',
xhtmlDec : 'XHTML ئېنىقلىمىسىنى ئۆز ئىچىگە ئالىدۇ',
bgColor : 'تەگلىك رەڭگى',
bgImage : 'تەگلىك سۈرەت',
bgFixed : 'تەگلىك سۈرەتنى دومىلاتما',
txtColor : 'تېكىست رەڭگى',
margin : 'بەت گىرۋەك',
marginTop : 'ئۈستى',
marginLeft : 'سول',
marginRight : 'ئوڭ',
marginBottom : 'ئاستى',
metaKeywords : 'بەت يۈزى ئىندېكىس ھالقىلىق سۆزى (ئىنگلىزچە پەش [,] بىلەن ئايرىلىدۇ)',
metaDescription : 'بەت يۈزى چۈشەندۈرۈشى',
metaAuthor : 'يازغۇچى',
metaCopyright : 'نەشر ھوقۇقى',
previewHtml : '<p>بۇ بىر قىسىم <strong>كۆرسەتمىگە ئىشلىتىدىغان تېكىست </strong>سىز نۆۋەتتە <a href=\\\\"javascript:void(0)\\\\">CKEditor</a>.نى ئىشلىتىۋاتىسىز.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/ug.js
|
JavaScript
|
gpl3
| 33,232
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Bengali/Bangla language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['bn'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1, press ALT 0 for help.', // MISSING
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'Rich Text Editor', // MISSING
// Toolbar buttons without dialogs.
source : 'সোর্স',
newPage : 'নতুন পেজ',
save : 'সংরক্ষন কর',
preview : 'প্রিভিউ',
cut : 'কাট',
copy : 'কপি',
paste : 'পেস্ট',
print : 'প্রিন্ট',
underline : 'আন্ডারলাইন',
bold : 'বোল্ড',
italic : 'ইটালিক',
selectAll : 'সব সিলেক্ট কর',
removeFormat : 'ফরমেট সরাও',
strike : 'স্ট্রাইক থ্রু',
subscript : 'অধোলেখ',
superscript : 'অভিলেখ',
horizontalrule : 'রেখা যুক্ত কর',
pagebreak : 'পেজ ব্রেক',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'লিংক সরাও',
undo : 'আনডু',
redo : 'রি-ডু',
// Common messages and labels.
common :
{
browseServer : 'ব্রাউজ সার্ভার',
url : 'URL',
protocol : 'প্রোটোকল',
upload : 'আপলোড',
uploadSubmit : 'ইহাকে সার্ভারে প্রেরন কর',
image : 'ছবির লেবেল যুক্ত কর',
flash : 'ফ্লাশ লেবেল যুক্ত কর',
form : 'ফর্ম',
checkbox : 'চেক বাক্স',
radio : 'রেডিও বাটন',
textField : 'টেক্সট ফীল্ড',
textarea : 'টেক্সট এরিয়া',
hiddenField : 'গুপ্ত ফীল্ড',
button : 'বাটন',
select : 'বাছাই ফীল্ড',
imageButton : 'ছবির বাটন',
notSet : '<সেট নেই>',
id : 'আইডি',
name : 'নাম',
langDir : 'ভাষা লেখার দিক',
langDirLtr : 'বাম থেকে ডান (LTR)',
langDirRtl : 'ডান থেকে বাম (RTL)',
langCode : 'ভাষা কোড',
longDescr : 'URL এর লম্বা বর্ণনা',
cssClass : 'স্টাইল-শীট ক্লাস',
advisoryTitle : 'পরামর্শ শীর্ষক',
cssStyle : 'স্টাইল',
ok : 'ওকে',
cancel : 'বাতিল',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General', // MISSING
advancedTab : 'এডভান্সড',
validateNumberFailed : 'This value is not a number.', // MISSING
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
options : 'Options', // MISSING
target : 'Target', // MISSING
targetNew : 'New Window (_blank)', // MISSING
targetTop : 'Topmost Window (_top)', // MISSING
targetSelf : 'Same Window (_self)', // MISSING
targetParent : 'Parent Window (_parent)', // MISSING
langDirLTR : 'Left to Right (LTR)', // MISSING
langDirRTL : 'Right to Left (RTL)', // MISSING
styles : 'Style', // MISSING
cssClasses : 'Stylesheet Classes', // MISSING
width : 'প্রস্থ',
height : 'দৈর্ঘ্য',
align : 'এলাইন',
alignLeft : 'বামে',
alignRight : 'ডানে',
alignCenter : 'মাঝখানে',
alignTop : 'উপর',
alignMiddle : 'মধ্য',
alignBottom : 'নীচে',
invalidHeight : 'Height must be a number.', // MISSING
invalidWidth : 'Width must be a number.', // MISSING
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'বিশেষ অক্ষর যুক্ত কর',
title : 'বিশেষ ক্যারেক্টার বাছাই কর',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'লিংক যুক্ত কর',
other : '<other>', // MISSING
menu : 'লিংক সম্পাদন',
title : 'লিংক',
info : 'লিংক তথ্য',
target : 'টার্গেট',
upload : 'আপলোড',
advanced : 'এডভান্সড',
type : 'লিংক প্রকার',
toUrl : 'URL', // MISSING
toAnchor : 'এই পেজে নোঙর কর',
toEmail : 'ইমেইল',
targetFrame : '<ফ্রেম>',
targetPopup : '<পপআপ উইন্ডো>',
targetFrameName : 'টার্গেট ফ্রেমের নাম',
targetPopupName : 'পপআপ উইন্ডোর নাম',
popupFeatures : 'পপআপ উইন্ডো ফীচার সমূহ',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'স্ট্যাটাস বার',
popupLocationBar: 'লোকেশন বার',
popupToolbar : 'টুল বার',
popupMenuBar : 'মেন্যু বার',
popupFullScreen : 'পূর্ণ পর্দা জুড়ে (IE)',
popupScrollBars : 'স্ক্রল বার',
popupDependent : 'ডিপেন্ডেন্ট (Netscape)',
popupLeft : 'বামের পজিশন',
popupTop : 'ডানের পজিশন',
id : 'Id', // MISSING
langDir : 'ভাষা লেখার দিক',
langDirLTR : 'বাম থেকে ডান (LTR)',
langDirRTL : 'ডান থেকে বাম (RTL)',
acccessKey : 'এক্সেস কী',
name : 'নাম',
langCode : 'ভাষা লেখার দিক',
tabIndex : 'ট্যাব ইন্ডেক্স',
advisoryTitle : 'পরামর্শ শীর্ষক',
advisoryContentType : 'পরামর্শ কন্টেন্টের প্রকার',
cssClasses : 'স্টাইল-শীট ক্লাস',
charset : 'লিংক রিসোর্স ক্যারেক্টর সেট',
styles : 'স্টাইল',
rel : 'Relationship', // MISSING
selectAnchor : 'নোঙর বাছাই',
anchorName : 'নোঙরের নাম দিয়ে',
anchorId : 'নোঙরের আইডি দিয়ে',
emailAddress : 'ইমেইল ঠিকানা',
emailSubject : 'মেসেজের বিষয়',
emailBody : 'মেসেজের দেহ',
noAnchors : '(No anchors available in the document)', // MISSING
noUrl : 'অনুগ্রহ করে URL লিংক টাইপ করুন',
noEmail : 'অনুগ্রহ করে ইমেইল এড্রেস টাইপ করুন'
},
// Anchor dialog
anchor :
{
toolbar : 'নোঙ্গর',
menu : 'নোঙর প্রোপার্টি',
title : 'নোঙর প্রোপার্টি',
name : 'নোঙরের নাম',
errorName : 'নোঙরের নাম টাইপ করুন',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties', // MISSING
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Type', // MISSING
start : 'Start', // MISSING
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Circle', // MISSING
disc : 'Disc', // MISSING
square : 'Square', // MISSING
none : 'None', // MISSING
notset : '<not set>', // MISSING
armenian : 'Armenian numbering', // MISSING
georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING
lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING
upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING
lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING
upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING
lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING
decimal : 'Decimal (1, 2, 3, etc.)', // MISSING
decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Find and Replace', // MISSING
find : 'খোজো',
replace : 'রিপ্লেস',
findWhat : 'যা খুঁজতে হবে:',
replaceWith : 'যার সাথে বদলাতে হবে:',
notFoundMsg : 'আপনার উল্লেখিত টেকস্ট পাওয়া যায়নি',
findOptions : 'Find Options', // MISSING
matchCase : 'কেস মিলাও',
matchWord : 'পুরা শব্দ মেলাও',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'সব বদলে দাও',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'টেবিলের লেবেল যুক্ত কর',
title : 'টেবিল প্রোপার্টি',
menu : 'টেবিল প্রোপার্টি',
deleteTable : 'টেবিল ডিলীট কর',
rows : 'রো',
columns : 'কলাম',
border : 'বর্ডার সাইজ',
widthPx : 'পিক্সেল',
widthPc : 'শতকরা',
widthUnit : 'width unit', // MISSING
cellSpace : 'সেল স্পেস',
cellPad : 'সেল প্যাডিং',
caption : 'শীর্ষক',
summary : 'সারাংশ',
headers : 'Headers', // MISSING
headersNone : 'None', // MISSING
headersColumn : 'First column', // MISSING
headersRow : 'First Row', // MISSING
headersBoth : 'Both', // MISSING
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
invalidBorder : 'Border size must be a number.', // MISSING
invalidWidth : 'Table width must be a number.', // MISSING
invalidHeight : 'Table height must be a number.', // MISSING
invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING
invalidCellPadding : 'Cell padding must be a positive number.', // MISSING
cell :
{
menu : 'সেল',
insertBefore : 'Insert Cell Before', // MISSING
insertAfter : 'Insert Cell After', // MISSING
deleteCell : 'সেল মুছে দাও',
merge : 'সেল জোড়া দাও',
mergeRight : 'Merge Right', // MISSING
mergeDown : 'Merge Down', // MISSING
splitHorizontal : 'Split Cell Horizontally', // MISSING
splitVertical : 'Split Cell Vertically', // MISSING
title : 'Cell Properties', // MISSING
cellType : 'Cell Type', // MISSING
rowSpan : 'Rows Span', // MISSING
colSpan : 'Columns Span', // MISSING
wordWrap : 'Word Wrap', // MISSING
hAlign : 'Horizontal Alignment', // MISSING
vAlign : 'Vertical Alignment', // MISSING
alignBaseline : 'Baseline', // MISSING
bgColor : 'Background Color', // MISSING
borderColor : 'Border Color', // MISSING
data : 'Data', // MISSING
header : 'Header', // MISSING
yes : 'Yes', // MISSING
no : 'No', // MISSING
invalidWidth : 'Cell width must be a number.', // MISSING
invalidHeight : 'Cell height must be a number.', // MISSING
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
invalidColSpan : 'Columns span must be a whole number.', // MISSING
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'রো',
insertBefore : 'Insert Row Before', // MISSING
insertAfter : 'Insert Row After', // MISSING
deleteRow : 'রো মুছে দাও'
},
column :
{
menu : 'কলাম',
insertBefore : 'Insert Column Before', // MISSING
insertAfter : 'Insert Column After', // MISSING
deleteColumn : 'কলাম মুছে দাও'
}
},
// Button Dialog.
button :
{
title : 'বাটন প্রোপার্টি',
text : 'টেক্সট (ভ্যালু)',
type : 'প্রকার',
typeBtn : 'Button', // MISSING
typeSbm : 'Submit', // MISSING
typeRst : 'Reset' // MISSING
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'চেক বক্স প্রোপার্টি',
radioTitle : 'রেডিও বাটন প্রোপার্টি',
value : 'ভ্যালু',
selected : 'সিলেক্টেড'
},
// Form Dialog.
form :
{
title : 'ফর্ম প্রোপার্টি',
menu : 'ফর্ম প্রোপার্টি',
action : 'একশ্যন',
method : 'পদ্ধতি',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'বাছাই ফীল্ড প্রোপার্টি',
selectInfo : 'তথ্য',
opAvail : 'অন্যান্য বিকল্প',
value : 'ভ্যালু',
size : 'সাইজ',
lines : 'লাইন সমূহ',
chkMulti : 'একাধিক সিলেকশন এলাউ কর',
opText : 'টেক্সট',
opValue : 'ভ্যালু',
btnAdd : 'যুক্ত',
btnModify : 'বদলে দাও',
btnUp : 'উপর',
btnDown : 'নীচে',
btnSetValue : 'বাছাই করা ভ্যালু হিসেবে সেট কর',
btnDelete : 'ডিলীট'
},
// Textarea Dialog.
textarea :
{
title : 'টেক্সট এরিয়া প্রোপার্টি',
cols : 'কলাম',
rows : 'রো'
},
// Text Field Dialog.
textfield :
{
title : 'টেক্সট ফীল্ড প্রোপার্টি',
name : 'নাম',
value : 'ভ্যালু',
charWidth : 'ক্যারেক্টার প্রশস্ততা',
maxChars : 'সর্বাধিক ক্যারেক্টার',
type : 'টাইপ',
typeText : 'টেক্সট',
typePass : 'পাসওয়ার্ড'
},
// Hidden Field Dialog.
hidden :
{
title : 'গুপ্ত ফীল্ড প্রোপার্টি',
name : 'নাম',
value : 'ভ্যালু'
},
// Image Dialog.
image :
{
title : 'ছবির প্রোপার্টি',
titleButton : 'ছবি বাটন প্রোপার্টি',
menu : 'ছবির প্রোপার্টি',
infoTab : 'ছবির তথ্য',
btnUpload : 'ইহাকে সার্ভারে প্রেরন কর',
upload : 'আপলোড',
alt : 'বিকল্প টেক্সট',
lockRatio : 'অনুপাত লক কর',
resetSize : 'সাইজ পূর্বাবস্থায় ফিরিয়ে দাও',
border : 'বর্ডার',
hSpace : 'হরাইজন্টাল স্পেস',
vSpace : 'ভার্টিকেল স্পেস',
alertUrl : 'অনুগ্রহক করে ছবির URL টাইপ করুন',
linkTab : 'লিংক',
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
img2Button : 'Do you want to transform the selected image on a image button?', // MISSING
urlMissing : 'Image source URL is missing.', // MISSING
validateBorder : 'Border must be a whole number.', // MISSING
validateHSpace : 'HSpace must be a whole number.', // MISSING
validateVSpace : 'VSpace must be a whole number.' // MISSING
},
// Flash Dialog
flash :
{
properties : 'ফ্লাশ প্রোপার্টি',
propertiesTab : 'Properties', // MISSING
title : 'ফ্ল্যাশ প্রোপার্টি',
chkPlay : 'অটো প্লে',
chkLoop : 'লূপ',
chkMenu : 'ফ্ল্যাশ মেনু এনাবল কর',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'স্কেল',
scaleAll : 'সব দেখাও',
scaleNoBorder : 'কোনো বর্ডার নেই',
scaleFit : 'নিখুঁত ফিট',
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Abs নীচে',
alignAbsMiddle : 'Abs উপর',
alignBaseline : 'মূল রেখা',
alignTextTop : 'টেক্সট উপর',
quality : 'Quality', // MISSING
qualityBest : 'Best', // MISSING
qualityHigh : 'High', // MISSING
qualityAutoHigh : 'Auto High', // MISSING
qualityMedium : 'Medium', // MISSING
qualityAutoLow : 'Auto Low', // MISSING
qualityLow : 'Low', // MISSING
windowModeWindow: 'Window', // MISSING
windowModeOpaque: 'Opaque', // MISSING
windowModeTransparent : 'Transparent', // MISSING
windowMode : 'Window mode', // MISSING
flashvars : 'Variables for Flash', // MISSING
bgcolor : 'বেকগ্রাউন্ড রং',
hSpace : 'হরাইজন্টাল স্পেস',
vSpace : 'ভার্টিকেল স্পেস',
validateSrc : 'অনুগ্রহ করে URL লিংক টাইপ করুন',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'বানান চেক',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'শব্দকোষে নেই',
changeTo : 'এতে বদলাও',
btnIgnore : 'ইগনোর কর',
btnIgnoreAll : 'সব ইগনোর কর',
btnReplace : 'বদলে দাও',
btnReplaceAll : 'সব বদলে দাও',
btnUndo : 'আন্ডু',
noSuggestions : '- কোন সাজেশন নেই -',
progress : 'বানান পরীক্ষা চলছে...',
noMispell : 'বানান পরীক্ষা শেষ: কোন ভুল বানান পাওয়া যায়নি',
noChanges : 'বানান পরীক্ষা শেষ: কোন শব্দ পরিবর্তন করা হয়নি',
oneChange : 'বানান পরীক্ষা শেষ: একটি মাত্র শব্দ পরিবর্তন করা হয়েছে',
manyChanges : 'বানান পরীক্ষা শেষ: %1 গুলো শব্দ বদলে গ্যাছে',
ieSpellDownload : 'বানান পরীক্ষক ইনস্টল করা নেই। আপনি কি এখনই এটা ডাউনলোড করতে চান?'
},
smiley :
{
toolbar : 'স্মাইলী',
title : 'স্মাইলী যুক্ত কর',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'সাংখ্যিক লিস্টের লেবেল',
bulletedlist : 'বুলেট লিস্ট লেবেল',
indent : 'ইনডেন্ট বাড়াও',
outdent : 'ইনডেন্ট কমাও',
justify :
{
left : 'বা দিকে ঘেঁষা',
center : 'মাঝ বরাবর ঘেষা',
right : 'ডান দিকে ঘেঁষা',
block : 'ব্লক জাস্টিফাই'
},
blockquote : 'Block Quote', // MISSING
clipboard :
{
title : 'পেস্ট',
cutError : 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কাট করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+X)।',
copyError : 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কপি করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+C)।',
pasteMsg : 'অনুগ্রহ করে নীচের বাক্সে কিবোর্ড ব্যবহার করে (<STRONG>Ctrl/Cmd+V</STRONG>) পেস্ট করুন এবং <STRONG>OK</STRONG> চাপ দিন',
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING
toolbar : 'পেস্ট (শব্দ)',
title : 'পেস্ট (শব্দ)',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'সাদা টেক্সট হিসেবে পেস্ট কর',
title : 'সাদা টেক্সট হিসেবে পেস্ট কর'
},
templates :
{
button : 'টেমপ্লেট',
title : 'কনটেন্ট টেমপ্লেট',
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents', // MISSING
selectPromptMsg : 'অনুগ্রহ করে এডিটরে ওপেন করার জন্য টেমপ্লেট বাছাই করুন<br>(আসল কনটেন্ট হারিয়ে যাবে):',
emptyListMsg : '(কোন টেমপ্লেট ডিফাইন করা নেই)'
},
showBlocks : 'Show Blocks', // MISSING
stylesCombo :
{
label : 'স্টাইল',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'ফন্ট ফরমেট',
panelTitle : 'ফন্ট ফরমেট',
tag_p : 'সাধারণ',
tag_pre : 'ফর্মেটেড',
tag_address : 'ঠিকানা',
tag_h1 : 'শীর্ষক ১',
tag_h2 : 'শীর্ষক ২',
tag_h3 : 'শীর্ষক ৩',
tag_h4 : 'শীর্ষক ৪',
tag_h5 : 'শীর্ষক ৫',
tag_h6 : 'শীর্ষক ৬',
tag_div : 'শীর্ষক (DIV)'
},
div :
{
title : 'Create Div Container', // MISSING
toolbar : 'Create Div Container', // MISSING
cssClassInputLabel : 'Stylesheet Classes', // MISSING
styleSelectLabel : 'Style', // MISSING
IdInputLabel : 'Id', // MISSING
languageCodeInputLabel : ' Language Code', // MISSING
inlineStyleInputLabel : 'Inline Style', // MISSING
advisoryTitleInputLabel : 'Advisory Title', // MISSING
langDirLabel : 'Language Direction', // MISSING
langDirLTRLabel : 'Left to Right (LTR)', // MISSING
langDirRTLLabel : 'Right to Left (RTL)', // MISSING
edit : 'Edit Div', // MISSING
remove : 'Remove Div' // MISSING
},
iframe :
{
title : 'IFrame Properties', // MISSING
toolbar : 'IFrame', // MISSING
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'ফন্ট',
voiceLabel : 'Font', // MISSING
panelTitle : 'ফন্ট'
},
fontSize :
{
label : 'সাইজ',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'সাইজ'
},
colorButton :
{
textColorTitle : 'টেক্স্ট রং',
bgColorTitle : 'বেকগ্রাউন্ড রং',
panelTitle : 'Colors', // MISSING
auto : 'অটোমেটিক',
more : 'আরও রং...'
},
colors :
{
'000' : 'Black', // MISSING
'800000' : 'Maroon', // MISSING
'8B4513' : 'Saddle Brown', // MISSING
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Indigo', // MISSING
'696969' : 'Dark Gray', // MISSING
'B22222' : 'Fire Brick', // MISSING
'A52A2A' : 'Brown', // MISSING
'DAA520' : 'Golden Rod', // MISSING
'006400' : 'Dark Green', // MISSING
'40E0D0' : 'Turquoise', // MISSING
'0000CD' : 'Medium Blue', // MISSING
'800080' : 'Purple', // MISSING
'808080' : 'Gray', // MISSING
'F00' : 'Red', // MISSING
'FF8C00' : 'Dark Orange', // MISSING
'FFD700' : 'Gold', // MISSING
'008000' : 'Green', // MISSING
'0FF' : 'Cyan', // MISSING
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'Spell Check As You Type', // MISSING
opera_title : 'Not supported by Opera', // MISSING
enable : 'Enable SCAYT', // MISSING
disable : 'Disable SCAYT', // MISSING
about : 'About SCAYT', // MISSING
toggle : 'Toggle SCAYT', // MISSING
options : 'Options', // MISSING
langs : 'Languages', // MISSING
moreSuggestions : 'More suggestions', // MISSING
ignore : 'Ignore', // MISSING
ignoreAll : 'Ignore All', // MISSING
addWord : 'Add Word', // MISSING
emptyDic : 'Dictionary name should not be empty.', // MISSING
optionsTab : 'Options', // MISSING
allCaps : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Ignore Words with Numbers', // MISSING
languagesTab : 'Languages', // MISSING
dictionariesTab : 'Dictionaries', // MISSING
dic_field_name : 'Dictionary name', // MISSING
dic_create : 'Create', // MISSING
dic_restore : 'Restore', // MISSING
dic_delete : 'Delete', // MISSING
dic_rename : 'Rename', // MISSING
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING
aboutTab : 'About' // MISSING
},
about :
{
title : 'About CKEditor', // MISSING
dlgTitle : 'About CKEditor', // MISSING
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'For licensing information please visit our web site:', // MISSING
copy : 'Copyright © $1. All rights reserved.' // MISSING
},
maximize : 'Maximize', // MISSING
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Anchor', // MISSING
flash : 'Flash Animation', // MISSING
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Unknown Object' // MISSING
},
resize : 'Drag to resize', // MISSING
colordialog :
{
title : 'Select color', // MISSING
options : 'Color Options', // MISSING
highlight : 'Highlight', // MISSING
selected : 'Selected Color', // MISSING
clear : 'Clear' // MISSING
},
toolbarCollapse : 'Collapse Toolbar', // MISSING
toolbarExpand : 'Expand Toolbar', // MISSING
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'Text direction from left to right', // MISSING
rtl : 'Text direction from right to left' // MISSING
},
docprops :
{
label : 'ডক্যুমেন্ট প্রোপার্টি',
title : 'ডক্যুমেন্ট প্রোপার্টি',
design : 'Design', // MISSING
meta : 'মেটাডেটা',
chooseColor : 'Choose', // MISSING
other : '<other>',
docTitle : 'পেজ শীর্ষক',
charset : 'ক্যারেক্টার সেট এনকোডিং',
charsetOther : 'অন্য ক্যারেক্টার সেট এনকোডিং',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Central European', // MISSING
charsetCT : 'Chinese Traditional (Big5)', // MISSING
charsetCR : 'Cyrillic', // MISSING
charsetGR : 'Greek', // MISSING
charsetJP : 'Japanese', // MISSING
charsetKR : 'Korean', // MISSING
charsetTR : 'Turkish', // MISSING
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Western European', // MISSING
docType : 'ডক্যুমেন্ট টাইপ হেডিং',
docTypeOther : 'অন্য ডক্যুমেন্ট টাইপ হেডিং',
xhtmlDec : 'XHTML ডেক্লারেশন যুক্ত কর',
bgColor : 'ব্যাকগ্রাউন্ড রং',
bgImage : 'ব্যাকগ্রাউন্ড ছবির URL',
bgFixed : 'স্ক্রলহীন ব্যাকগ্রাউন্ড',
txtColor : 'টেক্স্ট রং',
margin : 'পেজ মার্জিন',
marginTop : 'উপর',
marginLeft : 'বামে',
marginRight : 'ডানে',
marginBottom : 'নীচে',
metaKeywords : 'ডক্যুমেন্ট ইন্ডেক্স কিওয়ার্ড (কমা দ্বারা বিচ্ছিন্ন)',
metaDescription : 'ডক্যূমেন্ট বর্ণনা',
metaAuthor : 'লেখক',
metaCopyright : 'কপীরাইট',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/bn.js
|
JavaScript
|
gpl3
| 33,000
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Chinese Simplified language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['zh-cn'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : '所见即所得编辑器, %1, 按 ALT+0 查看帮助。',
// ARIA descriptions.
toolbars : '工具栏',
editor : '所见即所得编辑器',
// Toolbar buttons without dialogs.
source : '源码',
newPage : '新建',
save : '保存',
preview : '预览',
cut : '剪切',
copy : '复制',
paste : '粘贴',
print : '打印',
underline : '下划线',
bold : '加粗',
italic : '倾斜',
selectAll : '全选',
removeFormat : '清除格式',
strike : '删除线',
subscript : '下标',
superscript : '上标',
horizontalrule : '插入水平线',
pagebreak : '插入分页符',
pagebreakAlt : '分页符',
unlink : '取消超链接',
undo : '撤消',
redo : '重做',
// Common messages and labels.
common :
{
browseServer : '浏览服务器',
url : '源文件',
protocol : '协议',
upload : '上传',
uploadSubmit : '上传到服务器上',
image : '图象',
flash : 'Flash',
form : '表单',
checkbox : '复选框',
radio : '单选按钮',
textField : '单行文本',
textarea : '多行文本',
hiddenField : '隐藏域',
button : '按钮',
select : '列表/菜单',
imageButton : '图像域',
notSet : '<没有设置>',
id : 'ID',
name : '名称',
langDir : '语言方向',
langDirLtr : '从左到右 (LTR)',
langDirRtl : '从右到左 (RTL)',
langCode : '语言代码',
longDescr : '详细说明地址',
cssClass : '样式类名称',
advisoryTitle : '标题',
cssStyle : '行内样式',
ok : '确定',
cancel : '取消',
close : '关闭',
preview : '预览',
generalTab : '常规',
advancedTab : '高级',
validateNumberFailed : '需要输入数字格式',
confirmNewPage : '当前文档内容未保存,是否确认新建文档?',
confirmCancel : '部分修改尚未保存,是否确认关闭对话框?',
options : '选项',
target : '目标窗口',
targetNew : '新窗口 (_blank)',
targetTop : '整页 (_top)',
targetSelf : '本窗口 (_self)',
targetParent : '父窗口 (_parent)',
langDirLTR : '从左到右 (LTR)',
langDirRTL : '从右到左 (RTL)',
styles : '样式',
cssClasses : '样式类',
width : '宽度',
height : '高度',
align : '对齐方式',
alignLeft : '左对齐',
alignRight : '右对齐',
alignCenter : '居中',
alignTop : '顶端',
alignMiddle : '居中',
alignBottom : '底部',
invalidHeight : '高度必须为数字格式',
invalidWidth : '宽度必须为数字格式',
invalidCssLength : '该字段必须为合式的CSS长度值,包括单位(px, %, in, cm, mm, em, ex, pt 或 pc)',
invalidHtmlLength : '该字段必须为合式的HTML长度值,包括单位(px 或 %)',
invalidInlineStyle : '内联样式必须为格式是以分号分隔的一个或多个“属性名 : 属性值”',
cssLengthTooltip : '该字段必须为合式的CSS长度值,包括单位(px, %, in, cm, mm, em, ex, pt 或 pc)',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, 不可用</span>'
},
contextmenu :
{
options : '快捷菜单选项'
},
// Special char dialog.
specialChar :
{
toolbar : '插入特殊符号',
title : '选择特殊符号',
options : '特殊符号选项'
},
// Link dialog.
link :
{
toolbar : '插入/编辑超链接',
other : '<其他>',
menu : '编辑超链接',
title : '超链接',
info : '超链接信息',
target : '目标',
upload : '上传',
advanced : '高级',
type : '超链接类型',
toUrl : '地址',
toAnchor : '页内锚点链接',
toEmail : '电子邮件',
targetFrame : '<框架>',
targetPopup : '<弹出窗口>',
targetFrameName : '目标框架名称',
targetPopupName : '弹出窗口名称',
popupFeatures : '弹出窗口属性',
popupResizable : '可缩放',
popupStatusBar : '状态栏',
popupLocationBar: '地址栏',
popupToolbar : '工具栏',
popupMenuBar : '菜单栏',
popupFullScreen : '全屏 (IE)',
popupScrollBars : '滚动条',
popupDependent : '依附 (NS)',
popupLeft : '左',
popupTop : '右',
id : 'ID',
langDir : '语言方向',
langDirLTR : '从左到右 (LTR)',
langDirRTL : '从右到左 (RTL)',
acccessKey : '访问键',
name : '名称',
langCode : '语言代码',
tabIndex : 'Tab 键次序',
advisoryTitle : '标题',
advisoryContentType : '内容类型',
cssClasses : '样式类名称',
charset : '字符编码',
styles : '行内样式',
rel : '关联',
selectAnchor : '选择一个锚点',
anchorName : '按锚点名称',
anchorId : '按锚点 ID',
emailAddress : '地址',
emailSubject : '主题',
emailBody : '内容',
noAnchors : '(此文档没有可用的锚点)',
noUrl : '请输入超链接地址',
noEmail : '请输入电子邮件地址'
},
// Anchor dialog
anchor :
{
toolbar : '插入/编辑锚点链接',
menu : '锚点链接属性',
title : '锚点链接属性',
name : '锚点名称',
errorName : '请输入锚点名称',
remove : '删除锚点'
},
// List style dialog
list:
{
numberedTitle : '编号列表属性',
bulletedTitle : '项目列表属性',
type : '标记类型',
start : '开始序号',
validateStartNumber :'列表开始序号必须为整数格式',
circle : '空心圆',
disc : '实心圆',
square : '实心方块',
none : '无标记',
notset : '<没有设置>',
armenian : '传统的亚美尼亚编号方式',
georgian : '传统的乔治亚编号方式(an, ban, gan, 等)',
lowerRoman : '小写罗马数字(i, ii, iii, iv, v, 等)',
upperRoman : '大写罗马数字(I, II, III, IV, V, 等)',
lowerAlpha : '小写英文字母(a, b, c, d, e, 等)',
upperAlpha : '大写英文字母(A, B, C, D, E, 等)',
lowerGreek : '小写希腊字母(alpha, beta, gamma, 等)',
decimal : '数字 (1, 2, 3, 等)',
decimalLeadingZero : '0开头的数字标记(01, 02, 03, 等)'
},
// Find And Replace Dialog
findAndReplace :
{
title : '查找和替换',
find : '查找',
replace : '替换',
findWhat : '查找:',
replaceWith : '替换:',
notFoundMsg : '指定文本没有找到',
findOptions : '查找选项',
matchCase : '区分大小写',
matchWord : '全字匹配',
matchCyclic : '循环匹配',
replaceAll : '全部替换',
replaceSuccessMsg : '共完成 %1 处替换.'
},
// Table Dialog
table :
{
toolbar : '表格',
title : '表格属性',
menu : '表格属性',
deleteTable : '删除表格',
rows : '行数',
columns : '列数',
border : '边框',
widthPx : '像素',
widthPc : '百分比',
widthUnit : '宽度单位',
cellSpace : '间距',
cellPad : '边距',
caption : '标题',
summary : '摘要',
headers : '标题单元格',
headersNone : '无',
headersColumn : '第一列',
headersRow : '第一行',
headersBoth : '第一列和第一行',
invalidRows : '指定的列数必须大于零',
invalidCols : '指定的行数必须大于零',
invalidBorder : '边框粗细必须为数字格式',
invalidWidth : '表格宽度必须为数字格式',
invalidHeight : '表格高度必须为数字格式',
invalidCellSpacing : '单元格间距必须为数字格式',
invalidCellPadding : '单元格填充必须为数字格式',
cell :
{
menu : '单元格',
insertBefore : '在左侧插入单元格',
insertAfter : '在右侧插入单元格',
deleteCell : '删除单元格',
merge : '合并单元格',
mergeRight : '向右合并单元格',
mergeDown : '向下合并单元格',
splitHorizontal : '水平拆分单元格',
splitVertical : '垂直拆分单元格',
title : '单元格属性',
cellType : '单元格类型',
rowSpan : '纵跨行数',
colSpan : '横跨列数',
wordWrap : '自动换行',
hAlign : '水平对齐',
vAlign : '垂直对齐',
alignBaseline : '基线',
bgColor : '背景颜色',
borderColor : '边框颜色',
data : '数据',
header : '表头',
yes : '是',
no : '否',
invalidWidth : '单元格宽度必须为数字格式',
invalidHeight : '单元格高度必须为数字格式',
invalidRowSpan : '行跨度必须为整数格式',
invalidColSpan : '列跨度必须为整数格式',
chooseColor : '选择'
},
row :
{
menu : '行',
insertBefore : '在上方插入行',
insertAfter : '在下方插入行',
deleteRow : '删除行'
},
column :
{
menu : '列',
insertBefore : '在左侧插入列',
insertAfter : '在右侧插入列',
deleteColumn : '删除列'
}
},
// Button Dialog.
button :
{
title : '按钮属性',
text : '标签(值)',
type : '类型',
typeBtn : '按钮',
typeSbm : '提交',
typeRst : '重设'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : '复选框属性',
radioTitle : '单选按钮属性',
value : '选定值',
selected : '已勾选'
},
// Form Dialog.
form :
{
title : '表单属性',
menu : '表单属性',
action : '动作',
method : '方法',
encoding : '表单编码'
},
// Select Field Dialog.
select :
{
title : '菜单/列表属性',
selectInfo : '选择信息',
opAvail : '可选项',
value : '值',
size : '高度',
lines : '行',
chkMulti : '允许多选',
opText : '选项文本',
opValue : '选项值',
btnAdd : '添加',
btnModify : '修改',
btnUp : '上移',
btnDown : '下移',
btnSetValue : '设为初始选定',
btnDelete : '删除'
},
// Textarea Dialog.
textarea :
{
title : '多行文本属性',
cols : '字符宽度',
rows : '行数'
},
// Text Field Dialog.
textfield :
{
title : '单行文本属性',
name : '名称',
value : '初始值',
charWidth : '字符宽度',
maxChars : '最多字符数',
type : '类型',
typeText : '文本',
typePass : '密码'
},
// Hidden Field Dialog.
hidden :
{
title : '隐藏域属性',
name : '名称',
value : '初始值'
},
// Image Dialog.
image :
{
title : '图象属性',
titleButton : '图像域属性',
menu : '图象属性',
infoTab : '图象',
btnUpload : '上传到服务器上',
upload : '上传',
alt : '替换文本',
lockRatio : '锁定比例',
resetSize : '原始尺寸',
border : '边框大小',
hSpace : '水平间距',
vSpace : '垂直间距',
alertUrl : '请输入图象地址',
linkTab : '链接',
button2Img : '确定要把当前按钮改变为图像吗?',
img2Button : '确定要把当前图像改变为按钮吗?',
urlMissing : '缺少图像源文件地址',
validateBorder : '边框大小必须为整数格式',
validateHSpace : '水平间距必须为整数格式',
validateVSpace : '垂直间距必须为整数格式'
},
// Flash Dialog
flash :
{
properties : 'Flash 属性',
propertiesTab : '属性',
title : '标题',
chkPlay : '自动播放',
chkLoop : '循环',
chkMenu : '启用 Flash 菜单',
chkFull : '启用全屏',
scale : '缩放',
scaleAll : '全部显示',
scaleNoBorder : '无边框',
scaleFit : '严格匹配',
access : '允许脚本访问',
accessAlways : '总是',
accessSameDomain: '同域',
accessNever : '从不',
alignAbsBottom : '绝对底部',
alignAbsMiddle : '绝对居中',
alignBaseline : '基线',
alignTextTop : '文本上方',
quality : '质量',
qualityBest : '最好',
qualityHigh : '高',
qualityAutoHigh : '高(自动)',
qualityMedium : '中(自动)',
qualityAutoLow : '低(自动)',
qualityLow : '低',
windowModeWindow: '窗体',
windowModeOpaque: '不透明',
windowModeTransparent : '透明',
windowMode : '窗体模式',
flashvars : 'Flash 变量',
bgcolor : '背景颜色',
hSpace : '水平间距',
vSpace : '垂直间距',
validateSrc : '请输入源文件地址',
validateHSpace : '水平间距必须为数字格式',
validateVSpace : '垂直间距必须为数字格式'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : '拼写检查',
title : '拼写检查',
notAvailable : '抱歉, 服务目前暂不可用',
errorLoading : '加载应该服务主机时出错: %s.',
notInDic : '没有在字典里',
changeTo : '更改为',
btnIgnore : '忽略',
btnIgnoreAll : '全部忽略',
btnReplace : '替换',
btnReplaceAll : '全部替换',
btnUndo : '撤消',
noSuggestions : '- 没有建议 -',
progress : '正在进行拼写检查...',
noMispell : '拼写检查完成: 没有发现拼写错误',
noChanges : '拼写检查完成: 没有更改任何单词',
oneChange : '拼写检查完成: 更改了一个单词',
manyChanges : '拼写检查完成: 更改了 %1 个单词',
ieSpellDownload : '拼写检查插件还没安装, 你是否想现在就下载?'
},
smiley :
{
toolbar : '表情符',
title : '插入表情图标',
options : '表情图标选项'
},
elementsPath :
{
eleLabel : '元素路径',
eleTitle : '%1 元素'
},
numberedlist : '编号列表',
bulletedlist : '项目列表',
indent : '增加缩进量',
outdent : '减少缩进量',
justify :
{
left : '左对齐',
center : '居中',
right : '右对齐',
block : '两端对齐'
},
blockquote : '块引用',
clipboard :
{
title : '粘贴',
cutError : '您的浏览器安全设置不允许编辑器自动执行剪切操作, 请使用键盘快捷键(Ctrl/Cmd+X)来完成',
copyError : '您的浏览器安全设置不允许编辑器自动执行复制操作, 请使用键盘快捷键(Ctrl/Cmd+C)来完成',
pasteMsg : '请使用键盘快捷键(<STRONG>Ctrl/Cmd+V</STRONG>)把内容粘贴到下面的方框里,再按 <STRONG>确定</STRONG>',
securityMsg : '因为你的浏览器的安全设置原因, 本编辑器不能直接访问你的剪贴板内容, 你需要在本窗口重新粘贴一次',
pasteArea : '粘贴区域'
},
pastefromword :
{
confirmCleanup : '您要粘贴的内容好像是来自 MS Word, 是否要清除 MS Word 格式后再粘贴?',
toolbar : '从 MS Word 粘贴',
title : '从 MS Word 粘贴',
error : '由于内部错误无法清理要粘贴的数据'
},
pasteText :
{
button : '粘贴为无格式文本',
title : '粘贴为无格式文本'
},
templates :
{
button : '模板',
title : '内容模板',
options : '模板选项',
insertOption : '替换当前内容',
selectPromptMsg : '请选择编辑器内容模板:',
emptyListMsg : '(没有模板)'
},
showBlocks : '显示区块',
stylesCombo :
{
label : '样式',
panelTitle : '样式',
panelTitle1 : '块级元素样式',
panelTitle2 : '内联元素样式',
panelTitle3 : '对象元素样式'
},
format :
{
label : '格式',
panelTitle : '格式',
tag_p : '普通',
tag_pre : '已编排格式',
tag_address : '地址',
tag_h1 : '标题 1',
tag_h2 : '标题 2',
tag_h3 : '标题 3',
tag_h4 : '标题 4',
tag_h5 : '标题 5',
tag_h6 : '标题 6',
tag_div : '段落(DIV)'
},
div :
{
title : '创建 DIV 容器',
toolbar : '创建 DIV 容器',
cssClassInputLabel : '样式类名称',
styleSelectLabel : '样式',
IdInputLabel : 'ID',
languageCodeInputLabel : '语言代码',
inlineStyleInputLabel : '行内样式',
advisoryTitleInputLabel : '标题',
langDirLabel : '语言方向',
langDirLTRLabel : '从左到右 (LTR)',
langDirRTLLabel : '从右到左 (RTL)',
edit : '编辑 DIV',
remove : '移除 DIV'
},
iframe :
{
title : 'IFrame 属性',
toolbar : 'IFrame',
noUrl : '请输入框架的 URL',
scrolling : '允许滚动条',
border : '显示框架边框'
},
font :
{
label : '字体',
voiceLabel : '字体',
panelTitle : '字体'
},
fontSize :
{
label : '大小',
voiceLabel : '文字大小',
panelTitle : '大小'
},
colorButton :
{
textColorTitle : '文本颜色',
bgColorTitle : '背景颜色',
panelTitle : '颜色',
auto : '自动',
more : '其它颜色...'
},
colors :
{
'000' : '黑',
'800000' : '褐红',
'8B4513' : '深褐',
'2F4F4F' : '墨绿',
'008080' : '绿松石',
'000080' : '海军蓝',
'4B0082' : '靛蓝',
'696969' : '暗灰',
'B22222' : '砖红',
'A52A2A' : '褐',
'DAA520' : '金黄',
'006400' : '深绿',
'40E0D0' : '蓝绿',
'0000CD' : '中蓝',
'800080' : '紫',
'808080' : '灰',
'F00' : '红',
'FF8C00' : '深橙',
'FFD700' : '金',
'008000' : '绿',
'0FF' : '青',
'00F' : '蓝',
'EE82EE' : '紫罗兰',
'A9A9A9' : '深灰',
'FFA07A' : '亮橙',
'FFA500' : '橙',
'FFFF00' : '黄',
'00FF00' : '水绿',
'AFEEEE' : '粉蓝',
'ADD8E6' : '亮蓝',
'DDA0DD' : '梅红',
'D3D3D3' : '淡灰',
'FFF0F5' : '淡紫红',
'FAEBD7' : '古董白',
'FFFFE0' : '淡黄',
'F0FFF0' : '蜜白',
'F0FFFF' : '天蓝',
'F0F8FF' : '淡蓝',
'E6E6FA' : '淡紫',
'FFF' : '白'
},
scayt :
{
title : '即时拼写检查',
opera_title : '不支持 Opera 浏览器',
enable : '启用即时拼写检查',
disable : '禁用即时拼写检查',
about : '关于即时拼写检查',
toggle : '暂停/启用即时拼写检查',
options : '选项',
langs : '语言',
moreSuggestions : '更多拼写建议',
ignore : '忽略',
ignoreAll : '全部忽略',
addWord : '添加单词',
emptyDic : '字典名不应为空.',
optionsTab : '选项',
allCaps : '忽略所有大写单词',
ignoreDomainNames : '忽略域名',
mixedCase : '忽略大小写混合的单词',
mixedWithDigits : '忽略带数字的单词',
languagesTab : '语言',
dictionariesTab : '字典',
dic_field_name : '字典名称',
dic_create : '创建',
dic_restore : '还原',
dic_delete : '删除',
dic_rename : '重命名',
dic_info : '一开始用户词典储存在 Cookie 中, 但是 Cookies 的容量是有限的, 当用户词典增长到超出 Cookie 限制时就无法再储存了, 这时您可以将词典储存到我们的服务器上. 要把您的个人词典到储存到我们的服务器上的话, 需要为您的词典指定一个名称, 如果您在我们的服务器上已经有储存有一个词典, 请输入词典名称并按还原按钮.',
aboutTab : '关于'
},
about :
{
title : '关于CKEditor',
dlgTitle : '关于CKEditor',
help : '请访问 $1 以获取帮助.',
userGuide : 'CKEditor 用户向导',
moreInfo : '访问我们的网站以获取更多关于协议的信息',
copy : 'Copyright © $1. 版权所有。'
},
maximize : '全屏',
minimize : '最小化',
fakeobjects :
{
anchor : '锚点',
flash : 'Flash 动画',
iframe : 'IFrame',
hiddenfield : '隐藏域',
unknown : '未知对象'
},
resize : '拖拽以改变尺寸',
colordialog :
{
title : '选择颜色',
options : '颜色选项',
highlight : '高亮',
selected : '选择颜色',
clear : '清除'
},
toolbarCollapse : '折叠工具栏',
toolbarExpand : '展开工具栏',
toolbarGroups :
{
document : '文档',
clipboard : '剪贴板/撤销',
editing : '编辑',
forms : '表单',
basicstyles : '基本格式',
paragraph : '段落',
links : '链接',
insert : '插入',
styles : '样式',
colors : '颜色',
tools : '工具'
},
bidi :
{
ltr : '文字方向为从左至右',
rtl : '文字方向为从右至左'
},
docprops :
{
label : '页面属性',
title : '页面属性',
design : '设计',
meta : 'Meta 数据',
chooseColor : '选择',
other : '<其他>',
docTitle : '页面标题',
charset : '字符编码',
charsetOther : '其它字符编码',
charsetASCII : 'ASCII',
charsetCE : '中欧',
charsetCT : '繁体中文 (Big5)',
charsetCR : '西里尔文',
charsetGR : '希腊文',
charsetJP : '日文',
charsetKR : '韩文',
charsetTR : '土耳其文',
charsetUN : 'Unicode (UTF-8)',
charsetWE : '西欧',
docType : '文档类型',
docTypeOther : '其它文档类型',
xhtmlDec : '包含 XHTML 声明',
bgColor : '背景颜色',
bgImage : '背景图像',
bgFixed : '不滚动背景图像',
txtColor : '文本颜色',
margin : '页面边距',
marginTop : '上',
marginLeft : '左',
marginRight : '右',
marginBottom : '下',
metaKeywords : '页面索引关键字 (用半角逗号[,]分隔)',
metaDescription : '页面说明',
metaAuthor : '作者',
metaCopyright : '版权',
previewHtml : '<p>这是一些<strong>演示用文字</strong>。你当前正在使用<a href="javascript:void(0)">CKEditor</a>。</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/zh-cn.js
|
JavaScript
|
gpl3
| 22,369
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Japanese language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['ja'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'リッチテキストエディタ, %1, ヘルプは ALT 0 を押してください',
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'リッチテキストエディタ',
// Toolbar buttons without dialogs.
source : 'ソース',
newPage : '新しいページ',
save : '保存',
preview : 'プレビュー',
cut : '切り取り',
copy : 'コピー',
paste : '貼り付け',
print : '印刷',
underline : '下線',
bold : '太字',
italic : '斜体',
selectAll : 'すべて選択',
removeFormat : 'フォーマット削除',
strike : '打ち消し線',
subscript : '添え字',
superscript : '上付き文字',
horizontalrule : '横罫線',
pagebreak : '改ページ挿入',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'リンク削除',
undo : '元に戻す',
redo : 'やり直し',
// Common messages and labels.
common :
{
browseServer : 'サーバーブラウザー',
url : 'URL',
protocol : 'プロトコル',
upload : 'アップロード',
uploadSubmit : 'サーバーに送信',
image : 'イメージ',
flash : 'Flash',
form : 'フォーム',
checkbox : 'チェックボックス',
radio : 'ラジオボタン',
textField : '1行テキスト',
textarea : 'テキストエリア',
hiddenField : '不可視フィールド',
button : 'ボタン',
select : '選択フィールド',
imageButton : '画像ボタン',
notSet : '<なし>',
id : 'Id',
name : 'Name属性',
langDir : '文字表記の方向',
langDirLtr : '左から右 (LTR)',
langDirRtl : '右から左 (RTL)',
langCode : '言語コード',
longDescr : 'longdesc属性(長文説明)',
cssClass : 'スタイルシートクラス',
advisoryTitle : 'Title属性',
cssStyle : 'スタイルシート',
ok : 'OK',
cancel : 'キャンセル',
close : '閉じる',
preview : 'プレビュー',
generalTab : '全般',
advancedTab : '高度な設定',
validateNumberFailed : '値が数ではありません',
confirmNewPage : '変更内容を保存せず、 新しいページを開いてもよろしいでしょうか?',
confirmCancel : 'オプション設定を変更しました。ダイアログを閉じてもよろしいでしょうか?',
options : 'オプション',
target : 'ターゲット',
targetNew : '新しいウィンドウ (_空白)',
targetTop : '最上部ウィンドウ (_トップ)',
targetSelf : '同じウィンドウ (_同一)',
targetParent : '親ウィンドウ (_親)',
langDirLTR : '左から右 (LTR)',
langDirRTL : '右から左 (RTL)',
styles : 'スタイル',
cssClasses : 'スタイルシートクラス',
width : '幅',
height : '高さ',
align : '行揃え',
alignLeft : '左',
alignRight : '右',
alignCenter : '中央',
alignTop : '上',
alignMiddle : '中央',
alignBottom : '下',
invalidHeight : '高さは数値で入力してください。',
invalidWidth : '幅は数値で入力してください。',
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, 利用不可能</span>'
},
contextmenu :
{
options : 'コンテキストメニューオプション'
},
// Special char dialog.
specialChar :
{
toolbar : '特殊文字挿入',
title : '特殊文字選択',
options : '特殊文字オプション'
},
// Link dialog.
link :
{
toolbar : 'リンク挿入/編集',
other : '<その他の>',
menu : 'リンク編集',
title : 'ハイパーリンク',
info : 'ハイパーリンク 情報',
target : 'ターゲット',
upload : 'アップロード',
advanced : '高度な設定',
type : 'リンクタイプ',
toUrl : 'URL', // MISSING
toAnchor : 'このページのアンカー',
toEmail : 'E-Mail',
targetFrame : '<フレーム>',
targetPopup : '<ポップアップウィンドウ>',
targetFrameName : '目的のフレーム名',
targetPopupName : 'ポップアップウィンドウ名',
popupFeatures : 'ポップアップウィンドウ特徴',
popupResizable : 'サイズ可変',
popupStatusBar : 'ステータスバー',
popupLocationBar: 'ロケーションバー',
popupToolbar : 'ツールバー',
popupMenuBar : 'メニューバー',
popupFullScreen : '全画面モード(IE)',
popupScrollBars : 'スクロールバー',
popupDependent : '開いたウィンドウに連動して閉じる (Netscape)',
popupLeft : '左端からの座標で指定',
popupTop : '上端からの座標で指定',
id : 'Id',
langDir : '文字表記の方向',
langDirLTR : '左から右 (LTR)',
langDirRTL : '右から左 (RTL)',
acccessKey : 'アクセスキー',
name : 'Name属性',
langCode : '言語コード',
tabIndex : 'タブインデックス',
advisoryTitle : 'Title属性',
advisoryContentType : 'Content Type属性',
cssClasses : 'スタイルシートクラス',
charset : 'リンクcharset属性',
styles : 'スタイルシート',
rel : 'Relationship', // MISSING
selectAnchor : 'アンカーを選択',
anchorName : 'アンカー名',
anchorId : 'エレメントID',
emailAddress : 'E-Mail アドレス',
emailSubject : '件名',
emailBody : '本文',
noAnchors : '(ドキュメントにおいて利用可能なアンカーはありません。)',
noUrl : 'リンクURLを入力してください。',
noEmail : 'メールアドレスを入力してください。'
},
// Anchor dialog
anchor :
{
toolbar : 'アンカー挿入/編集',
menu : 'アンカー プロパティ',
title : 'アンカー プロパティ',
name : 'アンカー名',
errorName : 'アンカー名を必ず入力してください。',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : '段落番号 プロパティ',
bulletedTitle : '箇条書き プロパティ',
type : 'タイプ',
start : '開始',
validateStartNumber :'リスト開始番号は数値で入力してください。',
circle : '白丸',
disc : '黒丸',
square : '四角',
none : 'なし',
notset : '<なし>',
armenian : 'アルメニア数字',
georgian : 'グルジア数字 (an, ban, gan, etc.)',
lowerRoman : '小文字ローマ数字 (i, ii, iii, iv, v, etc.)',
upperRoman : '大文字ローマ数字 (I, II, III, IV, V, etc.)',
lowerAlpha : '小文字アルファベット (a, b, c, d, e, etc.)',
upperAlpha : '大文字アルファベット (A, B, C, D, E, etc.)',
lowerGreek : '小文字ギリシャ文字 (alpha, beta, gamma, etc.)',
decimal : '数字 (1, 2, 3, etc.)',
decimalLeadingZero : '上位桁に0をつけた数字 (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : '検索して置換',
find : '検索',
replace : '置き換え',
findWhat : '検索する文字列:',
replaceWith : '置換えする文字列:',
notFoundMsg : '指定された文字列は見つかりませんでした。',
findOptions : 'Find Options', // MISSING
matchCase : '大文字と小文字を区別する',
matchWord : '単語単位で探す',
matchCyclic : '一周する',
replaceAll : 'すべて置換え',
replaceSuccessMsg : '%1 個置換しました。'
},
// Table Dialog
table :
{
toolbar : 'テーブル',
title : 'テーブル プロパティ',
menu : 'テーブル プロパティ',
deleteTable : 'テーブル削除',
rows : '行',
columns : '列',
border : 'ボーダーサイズ',
widthPx : 'ピクセル',
widthPc : 'パーセント',
widthUnit : 'ユニット',
cellSpace : 'セル内余白',
cellPad : 'セル内間隔',
caption : 'キャプション',
summary : 'テーブルの概要',
headers : 'テーブルヘッダ(th)',
headersNone : 'なし',
headersColumn : '初めの列のみ',
headersRow : '初めの行のみ',
headersBoth : '両方',
invalidRows : '行は0より大きな数値で入力してください。',
invalidCols : '列は0より大きな数値で入力してください。',
invalidBorder : 'ボーダーサイズは数値で入力してください。',
invalidWidth : '幅は数値で入力してください。',
invalidHeight : '高さは数値で入力してください。',
invalidCellSpacing : 'セル内余白は数値で入力してください。',
invalidCellPadding : 'セル内間隔は数値で入力してください。',
cell :
{
menu : 'セル',
insertBefore : 'セルの前に挿入',
insertAfter : 'セルの後に挿入',
deleteCell : 'セル削除',
merge : 'セル結合',
mergeRight : '右に結合',
mergeDown : '下に結合',
splitHorizontal : 'セルを水平方向分割',
splitVertical : 'セルを垂直方向に分割',
title : 'セルプロパティ',
cellType : 'セルタイプ',
rowSpan : '縦幅(行数)',
colSpan : '横幅(列数)',
wordWrap : '折り返し',
hAlign : 'セル横の整列',
vAlign : 'セル縦の整列',
alignBaseline : 'ベースライン',
bgColor : '背景色',
borderColor : 'ボーダーカラー',
data : 'テーブルデータ(td)',
header : 'テーブルヘッダ(th)',
yes : 'Yes',
no : 'No',
invalidWidth : 'セル幅は数値で入力してください。',
invalidHeight : 'セル高さは数値で入力してください。',
invalidRowSpan : '縦幅(行数)は数値で入力してください。',
invalidColSpan : '横幅(列数)は数値で入力してください。',
chooseColor : '色の選択'
},
row :
{
menu : '行',
insertBefore : '行の前に挿入',
insertAfter : '行の後に挿入',
deleteRow : '行削除'
},
column :
{
menu : 'カラム',
insertBefore : 'カラムの前に挿入',
insertAfter : 'カラムの後に挿入',
deleteColumn : '列削除'
}
},
// Button Dialog.
button :
{
title : 'ボタン プロパティ',
text : 'テキスト (値)',
type : 'タイプ',
typeBtn : 'ボタン',
typeSbm : '送信',
typeRst : 'リセット'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'チェックボックス プロパティ',
radioTitle : 'ラジオボタン プロパティ',
value : '値',
selected : '選択済み'
},
// Form Dialog.
form :
{
title : 'フォーム プロパティ',
menu : 'フォーム プロパティ',
action : 'アクション',
method : 'メソッド',
encoding : 'エンコーディング'
},
// Select Field Dialog.
select :
{
title : '選択フィールド プロパティ',
selectInfo : '情報',
opAvail : '利用可能なオプション',
value : '選択項目値',
size : 'サイズ',
lines : '行',
chkMulti : '複数項目選択を許可',
opText : '選択項目名',
opValue : '値',
btnAdd : '追加',
btnModify : '編集',
btnUp : '上へ',
btnDown : '下へ',
btnSetValue : '選択した値を設定',
btnDelete : '削除'
},
// Textarea Dialog.
textarea :
{
title : 'テキストエリア プロパティ',
cols : '列',
rows : '行'
},
// Text Field Dialog.
textfield :
{
title : '1行テキスト プロパティ',
name : '名前',
value : '値',
charWidth : 'サイズ',
maxChars : '最大長',
type : 'タイプ',
typeText : 'テキスト',
typePass : 'パスワード入力'
},
// Hidden Field Dialog.
hidden :
{
title : '不可視フィールド プロパティ',
name : '名前',
value : '値'
},
// Image Dialog.
image :
{
title : 'イメージ プロパティ',
titleButton : '画像ボタン プロパティ',
menu : 'イメージ プロパティ',
infoTab : 'イメージ 情報',
btnUpload : 'サーバーに送信',
upload : 'アップロード',
alt : '代替テキスト',
lockRatio : 'ロック比率',
resetSize : 'サイズリセット',
border : 'ボーダー',
hSpace : '横間隔',
vSpace : '縦間隔',
alertUrl : 'イメージのURLを入力してください。',
linkTab : 'リンク',
button2Img : '選択したボタンを画像に置き換えますか?',
img2Button : '選択した画像をボタンに置き換えますか?',
urlMissing : 'イメージのURLを入力してください。',
validateBorder : 'ボーダーは数値で入力してください。',
validateHSpace : '横間隔は数値で入力してください。',
validateVSpace : '縦間隔は数値で入力してください。'
},
// Flash Dialog
flash :
{
properties : 'Flash プロパティ',
propertiesTab : 'プロパティ',
title : 'Flash プロパティ',
chkPlay : '再生',
chkLoop : 'ループ再生',
chkMenu : 'Flashメニュー可能',
chkFull : 'フルスクリーン許可',
scale : '拡大縮小設定',
scaleAll : 'すべて表示',
scaleNoBorder : '外が見えない様に拡大',
scaleFit : '上下左右にフィット',
access : 'スプリクトアクセス(AllowScriptAccess)',
accessAlways : 'すべての場合に通信可能(Always)',
accessSameDomain: '同一ドメインのみに通信可能(Same domain)',
accessNever : 'すべての場合に通信不可能(Never)',
alignAbsBottom : '下部(絶対的)',
alignAbsMiddle : '中央(絶対的)',
alignBaseline : 'ベースライン',
alignTextTop : 'テキスト上部',
quality : '画質',
qualityBest : '品質優先',
qualityHigh : '高',
qualityAutoHigh : '自動/高',
qualityMedium : '中',
qualityAutoLow : '自動/低',
qualityLow : '低',
windowModeWindow: '標準',
windowModeOpaque: '背景を不透明設定',
windowModeTransparent : '背景を透過設定',
windowMode : 'ウィンドウモード',
flashvars : 'フラッシュに渡す変数(FlashVars)',
bgcolor : '背景色',
hSpace : '横間隔',
vSpace : '縦間隔',
validateSrc : 'リンクURLを入力してください。',
validateHSpace : '横間隔は数値で入力してください。',
validateVSpace : '縦間隔は数値で入力してください。'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'スペルチェック',
title : 'スペルチェック',
notAvailable : '申し訳ありません、現在サービスを利用することができません',
errorLoading : 'アプリケーションサービスホスト読込みエラー: %s.',
notInDic : '辞書にありません',
changeTo : '変更',
btnIgnore : '無視',
btnIgnoreAll : 'すべて無視',
btnReplace : '置換',
btnReplaceAll : 'すべて置換',
btnUndo : 'やり直し',
noSuggestions : '- 該当なし -',
progress : 'スペルチェック処理中...',
noMispell : 'スペルチェック完了: スペルの誤りはありませんでした',
noChanges : 'スペルチェック完了: 語句は変更されませんでした',
oneChange : 'スペルチェック完了: 1語句変更されました',
manyChanges : 'スペルチェック完了: %1 語句変更されました',
ieSpellDownload : 'スペルチェッカーがインストールされていません。今すぐダウンロードしますか?'
},
smiley :
{
toolbar : '絵文字',
title : '顔文字挿入',
options : '絵文字オプション'
},
elementsPath :
{
eleLabel : 'エレメントパス',
eleTitle : '%1 エレメント'
},
numberedlist : '段落番号',
bulletedlist : '箇条書き',
indent : 'インデント',
outdent : 'インデント解除',
justify :
{
left : '左揃え',
center : '中央揃え',
right : '右揃え',
block : '両端揃え'
},
blockquote : 'ブロック引用',
clipboard :
{
title : '貼り付け',
cutError : 'ブラウザーのセキュリティ設定によりエディタの切り取り操作が自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+X)を使用してください。',
copyError : 'ブラウザーのセキュリティ設定によりエディタのコピー操作が自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+C)を使用してください。',
pasteMsg : 'キーボード(<STRONG>Ctrl/Cmd+V</STRONG>)を使用して、次の入力エリア内で貼って、<STRONG>OK</STRONG>を押してください。',
securityMsg : 'ブラウザのセキュリティ設定により、エディタはクリップボード・データに直接アクセスすることができません。このウィンドウは貼り付け操作を行う度に表示されます。',
pasteArea : '貼り付け場所'
},
pastefromword :
{
confirmCleanup : '貼り付けを行うテキストは、ワード文章からコピーされようとしています。貼り付ける前にクリーニングを行いますか?',
toolbar : 'ワード文章から貼り付け',
title : 'ワード文章から貼り付け',
error : '内部エラーにより貼り付けたデータがクリアできませんでした'
},
pasteText :
{
button : 'プレーンテキスト貼り付け',
title : 'プレーンテキスト貼り付け'
},
templates :
{
button : 'テンプレート(雛形)',
title : 'テンプレート内容',
options : 'テンプレートオプション',
insertOption : '現在のエディタの内容と置換えをします',
selectPromptMsg : 'エディターで使用するテンプレートを選択してください。<br>(現在のエディタの内容は失われます):',
emptyListMsg : '(テンプレートが定義されていません)'
},
showBlocks : 'ブロック表示',
stylesCombo :
{
label : 'スタイル',
panelTitle : 'スタイル',
panelTitle1 : 'ブロックスタイル',
panelTitle2 : 'インラインスタイル',
panelTitle3 : 'オブジェクトスタイル'
},
format :
{
label : 'フォーマット',
panelTitle : 'フォーマット',
tag_p : '標準',
tag_pre : '書式付き',
tag_address : 'アドレス',
tag_h1 : '見出し 1',
tag_h2 : '見出し 2',
tag_h3 : '見出し 3',
tag_h4 : '見出し 4',
tag_h5 : '見出し 5',
tag_h6 : '見出し 6',
tag_div : '標準 (DIV)'
},
div :
{
title : 'Divコンテナ',
toolbar : 'Divコンテナ',
cssClassInputLabel : 'スタイルシートクラス',
styleSelectLabel : 'スタイル',
IdInputLabel : 'Id', // MISSING
languageCodeInputLabel : ' 言語コード',
inlineStyleInputLabel : 'インラインスタイル',
advisoryTitleInputLabel : 'Title属性',
langDirLabel : '文字表記の方向',
langDirLTRLabel : '左から右 (LTR)',
langDirRTLLabel : '右から左 (RTL)',
edit : 'Divコンテナ 編集',
remove : 'Divコンテナ 削除'
},
iframe :
{
title : 'IFrame Properties', // MISSING
toolbar : 'IFrame', // MISSING
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'フォント',
voiceLabel : 'フォント',
panelTitle : 'フォント'
},
fontSize :
{
label : 'サイズ',
voiceLabel : 'フォントサイズ',
panelTitle : 'サイズ'
},
colorButton :
{
textColorTitle : 'テキスト色',
bgColorTitle : '背景色',
panelTitle : '色',
auto : '自動',
more : 'その他の色...'
},
colors :
{
'000' : 'Black', // MISSING
'800000' : 'Maroon', // MISSING
'8B4513' : 'Saddle Brown', // MISSING
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Indigo', // MISSING
'696969' : 'Dark Gray', // MISSING
'B22222' : 'Fire Brick', // MISSING
'A52A2A' : 'Brown', // MISSING
'DAA520' : 'Golden Rod', // MISSING
'006400' : 'Dark Green', // MISSING
'40E0D0' : 'Turquoise', // MISSING
'0000CD' : 'Medium Blue', // MISSING
'800080' : 'Purple', // MISSING
'808080' : 'Gray', // MISSING
'F00' : 'Red', // MISSING
'FF8C00' : 'Dark Orange', // MISSING
'FFD700' : 'Gold', // MISSING
'008000' : 'Green', // MISSING
'0FF' : 'Cyan', // MISSING
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'スペルチェック設定(SCAYT)',
opera_title : 'Operaではサポートされません',
enable : 'SCAYT有効',
disable : 'SCAYT無効',
about : 'SCAYTバージョン',
toggle : 'SCAYT切替',
options : 'オプション',
langs : '言語',
moreSuggestions : '他の候補',
ignore : '無視',
ignoreAll : 'すべて無視',
addWord : '語句追加',
emptyDic : '辞書名は必ず入力してください',
optionsTab : 'オプション',
allCaps : '全て大文字の単語を無視',
ignoreDomainNames : 'ドメイン名を無視',
mixedCase : '大文字小文字混在の単語を無視',
mixedWithDigits : '数字付き単語を無視',
languagesTab : '言語',
dictionariesTab : '辞書',
dic_field_name : '辞書名',
dic_create : '登録',
dic_restore : '元に戻す',
dic_delete : '削除',
dic_rename : '名前変更',
dic_info : '始めユーザーディレクトリは、Cookieに保存されます。但し Cookie はサイズに制限があります。ユーザーディレクトリがCookieに保存できないサイズに到達するとディレクトリはサーバー上に保存されます。個人のディレクトリをサーバー上に保存するには、ディレクトリ名を明示する必要があります。もし既に保存されたディレクトリがある場合、その名前を入力し、元に戻すボタンを押してください。',
aboutTab : 'バージョン情報'
},
about :
{
title : 'CKEditorバージョン情報',
dlgTitle : 'CKEditorバージョン情報',
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'ライセンス情報の詳細はウェブサイトにて確認してください:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : '最大化',
minimize : '最小化',
fakeobjects :
{
anchor : 'アンカー',
flash : 'Flash Animation',
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Unknown Object'
},
resize : 'ドラッグしてリサイズ',
colordialog :
{
title : '色選択',
options : 'カラーオプション',
highlight : 'ハイライト',
selected : '選択された色',
clear : 'クリア'
},
toolbarCollapse : 'ツールバーを閉じる',
toolbarExpand : 'ツールバーを開く',
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'テキストの向き : 左から右へ',
rtl : 'テキストの向き : 右から左へ'
},
docprops :
{
label : '文書 プロパティ',
title : '文書 プロパティ',
design : 'Design', // MISSING
meta : 'メタデータ',
chooseColor : '色の選択',
other : '<その他の>',
docTitle : 'ページタイトル',
charset : '文字セット符号化',
charsetOther : '他の文字セット符号化',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Central European', // MISSING
charsetCT : 'Chinese Traditional (Big5)', // MISSING
charsetCR : 'Cyrillic', // MISSING
charsetGR : 'Greek', // MISSING
charsetJP : 'Japanese', // MISSING
charsetKR : 'Korean', // MISSING
charsetTR : 'Turkish', // MISSING
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Western European',
docType : '文書タイプヘッダー',
docTypeOther : 'その他文書タイプヘッダー',
xhtmlDec : 'XHTML宣言をインクルード',
bgColor : '背景色',
bgImage : '背景画像 URL',
bgFixed : 'スクロールしない背景',
txtColor : 'テキスト色',
margin : 'ページ・マージン',
marginTop : '上部',
marginLeft : '左',
marginRight : '右',
marginBottom : '下部',
metaKeywords : '文書のキーワード(カンマ区切り)',
metaDescription : '文書の概要',
metaAuthor : '文書の作者',
metaCopyright : '文書の著作権',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/ja.js
|
JavaScript
|
gpl3
| 27,827
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Bosnian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['bs'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1, press ALT 0 for help.', // MISSING
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'Rich Text Editor', // MISSING
// Toolbar buttons without dialogs.
source : 'HTML kôd',
newPage : 'Novi dokument',
save : 'Snimi',
preview : 'Prikaži',
cut : 'Izreži',
copy : 'Kopiraj',
paste : 'Zalijepi',
print : 'Štampaj',
underline : 'Podvuci',
bold : 'Boldiraj',
italic : 'Ukosi',
selectAll : 'Selektuj sve',
removeFormat : 'Poništi format',
strike : 'Precrtaj',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Ubaci horizontalnu liniju',
pagebreak : 'Insert Page Break for Printing', // MISSING
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Izbriši link',
undo : 'Vrati',
redo : 'Ponovi',
// Common messages and labels.
common :
{
browseServer : 'Browse Server', // MISSING
url : 'URL',
protocol : 'Protokol',
upload : 'Šalji',
uploadSubmit : 'Šalji na server',
image : 'Slika',
flash : 'Flash', // MISSING
form : 'Form', // MISSING
checkbox : 'Checkbox', // MISSING
radio : 'Radio Button', // MISSING
textField : 'Text Field', // MISSING
textarea : 'Textarea', // MISSING
hiddenField : 'Hidden Field', // MISSING
button : 'Button', // MISSING
select : 'Selection Field', // MISSING
imageButton : 'Image Button', // MISSING
notSet : '<nije podešeno>',
id : 'Id',
name : 'Naziv',
langDir : 'Smjer pisanja',
langDirLtr : 'S lijeva na desno (LTR)',
langDirRtl : 'S desna na lijevo (RTL)',
langCode : 'Jezièni kôd',
longDescr : 'Dugaèki opis URL-a',
cssClass : 'Klase CSS stilova',
advisoryTitle : 'Advisory title',
cssStyle : 'Stil',
ok : 'OK',
cancel : 'Odustani',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General', // MISSING
advancedTab : 'Naprednije',
validateNumberFailed : 'This value is not a number.', // MISSING
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
options : 'Options', // MISSING
target : 'Target', // MISSING
targetNew : 'New Window (_blank)', // MISSING
targetTop : 'Topmost Window (_top)', // MISSING
targetSelf : 'Same Window (_self)', // MISSING
targetParent : 'Parent Window (_parent)', // MISSING
langDirLTR : 'Left to Right (LTR)', // MISSING
langDirRTL : 'Right to Left (RTL)', // MISSING
styles : 'Style', // MISSING
cssClasses : 'Stylesheet Classes', // MISSING
width : 'Širina',
height : 'Visina',
align : 'Poravnanje',
alignLeft : 'Lijevo',
alignRight : 'Desno',
alignCenter : 'Centar',
alignTop : 'Vrh',
alignMiddle : 'Sredina',
alignBottom : 'Dno',
invalidHeight : 'Height must be a number.', // MISSING
invalidWidth : 'Width must be a number.', // MISSING
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Ubaci specijalni karater',
title : 'Izaberi specijalni karakter',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Ubaci/Izmjeni link',
other : '<other>', // MISSING
menu : 'Izmjeni link',
title : 'Link',
info : 'Link info',
target : 'Prozor',
upload : 'Šalji',
advanced : 'Naprednije',
type : 'Tip linka',
toUrl : 'URL', // MISSING
toAnchor : 'Sidro na ovoj stranici',
toEmail : 'E-Mail',
targetFrame : '<frejm>',
targetPopup : '<popup prozor>',
targetFrameName : 'Target Frame Name', // MISSING
targetPopupName : 'Naziv popup prozora',
popupFeatures : 'Moguænosti popup prozora',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Statusna traka',
popupLocationBar: 'Traka za lokaciju',
popupToolbar : 'Traka sa alatima',
popupMenuBar : 'Izborna traka',
popupFullScreen : 'Cijeli ekran (IE)',
popupScrollBars : 'Scroll traka',
popupDependent : 'Ovisno (Netscape)',
popupLeft : 'Lijeva pozicija',
popupTop : 'Gornja pozicija',
id : 'Id', // MISSING
langDir : 'Smjer pisanja',
langDirLTR : 'S lijeva na desno (LTR)',
langDirRTL : 'S desna na lijevo (RTL)',
acccessKey : 'Pristupna tipka',
name : 'Naziv',
langCode : 'Smjer pisanja',
tabIndex : 'Tab indeks',
advisoryTitle : 'Advisory title',
advisoryContentType : 'Advisory vrsta sadržaja',
cssClasses : 'Klase CSS stilova',
charset : 'Linked Resource Charset',
styles : 'Stil',
rel : 'Relationship', // MISSING
selectAnchor : 'Izaberi sidro',
anchorName : 'Po nazivu sidra',
anchorId : 'Po Id-u elementa',
emailAddress : 'E-Mail Adresa',
emailSubject : 'Subjekt poruke',
emailBody : 'Poruka',
noAnchors : '(Nema dostupnih sidra na stranici)',
noUrl : 'Molimo ukucajte URL link',
noEmail : 'Molimo ukucajte e-mail adresu'
},
// Anchor dialog
anchor :
{
toolbar : 'Anchor', // MISSING
menu : 'Edit Anchor', // MISSING
title : 'Anchor Properties', // MISSING
name : 'Anchor Name', // MISSING
errorName : 'Please type the anchor name', // MISSING
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties', // MISSING
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Type', // MISSING
start : 'Start', // MISSING
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Circle', // MISSING
disc : 'Disc', // MISSING
square : 'Square', // MISSING
none : 'None', // MISSING
notset : '<not set>', // MISSING
armenian : 'Armenian numbering', // MISSING
georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING
lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING
upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING
lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING
upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING
lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING
decimal : 'Decimal (1, 2, 3, etc.)', // MISSING
decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Find and Replace', // MISSING
find : 'Naði',
replace : 'Zamjeni',
findWhat : 'Naði šta:',
replaceWith : 'Zamjeni sa:',
notFoundMsg : 'Traženi tekst nije pronaðen.',
findOptions : 'Find Options', // MISSING
matchCase : 'Uporeðuj velika/mala slova',
matchWord : 'Uporeðuj samo cijelu rijeè',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Zamjeni sve',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Tabela',
title : 'Svojstva tabele',
menu : 'Svojstva tabele',
deleteTable : 'Delete Table', // MISSING
rows : 'Redova',
columns : 'Kolona',
border : 'Okvir',
widthPx : 'piksela',
widthPc : 'posto',
widthUnit : 'width unit', // MISSING
cellSpace : 'Razmak æelija',
cellPad : 'Uvod æelija',
caption : 'Naslov',
summary : 'Summary', // MISSING
headers : 'Headers', // MISSING
headersNone : 'None', // MISSING
headersColumn : 'First column', // MISSING
headersRow : 'First Row', // MISSING
headersBoth : 'Both', // MISSING
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
invalidBorder : 'Border size must be a number.', // MISSING
invalidWidth : 'Table width must be a number.', // MISSING
invalidHeight : 'Table height must be a number.', // MISSING
invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING
invalidCellPadding : 'Cell padding must be a positive number.', // MISSING
cell :
{
menu : 'Cell', // MISSING
insertBefore : 'Insert Cell Before', // MISSING
insertAfter : 'Insert Cell After', // MISSING
deleteCell : 'Briši æelije',
merge : 'Spoji æelije',
mergeRight : 'Merge Right', // MISSING
mergeDown : 'Merge Down', // MISSING
splitHorizontal : 'Split Cell Horizontally', // MISSING
splitVertical : 'Split Cell Vertically', // MISSING
title : 'Cell Properties', // MISSING
cellType : 'Cell Type', // MISSING
rowSpan : 'Rows Span', // MISSING
colSpan : 'Columns Span', // MISSING
wordWrap : 'Word Wrap', // MISSING
hAlign : 'Horizontal Alignment', // MISSING
vAlign : 'Vertical Alignment', // MISSING
alignBaseline : 'Baseline', // MISSING
bgColor : 'Background Color', // MISSING
borderColor : 'Border Color', // MISSING
data : 'Data', // MISSING
header : 'Header', // MISSING
yes : 'Yes', // MISSING
no : 'No', // MISSING
invalidWidth : 'Cell width must be a number.', // MISSING
invalidHeight : 'Cell height must be a number.', // MISSING
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
invalidColSpan : 'Columns span must be a whole number.', // MISSING
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'Row', // MISSING
insertBefore : 'Insert Row Before', // MISSING
insertAfter : 'Insert Row After', // MISSING
deleteRow : 'Briši redove'
},
column :
{
menu : 'Column', // MISSING
insertBefore : 'Insert Column Before', // MISSING
insertAfter : 'Insert Column After', // MISSING
deleteColumn : 'Briši kolone'
}
},
// Button Dialog.
button :
{
title : 'Button Properties', // MISSING
text : 'Text (Value)', // MISSING
type : 'Type', // MISSING
typeBtn : 'Button', // MISSING
typeSbm : 'Submit', // MISSING
typeRst : 'Reset' // MISSING
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox Properties', // MISSING
radioTitle : 'Radio Button Properties', // MISSING
value : 'Value', // MISSING
selected : 'Selected' // MISSING
},
// Form Dialog.
form :
{
title : 'Form Properties', // MISSING
menu : 'Form Properties', // MISSING
action : 'Action', // MISSING
method : 'Method', // MISSING
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'Selection Field Properties', // MISSING
selectInfo : 'Select Info', // MISSING
opAvail : 'Available Options', // MISSING
value : 'Value', // MISSING
size : 'Size', // MISSING
lines : 'lines', // MISSING
chkMulti : 'Allow multiple selections', // MISSING
opText : 'Text', // MISSING
opValue : 'Value', // MISSING
btnAdd : 'Add', // MISSING
btnModify : 'Modify', // MISSING
btnUp : 'Up', // MISSING
btnDown : 'Down', // MISSING
btnSetValue : 'Set as selected value', // MISSING
btnDelete : 'Delete' // MISSING
},
// Textarea Dialog.
textarea :
{
title : 'Textarea Properties', // MISSING
cols : 'Columns', // MISSING
rows : 'Rows' // MISSING
},
// Text Field Dialog.
textfield :
{
title : 'Text Field Properties', // MISSING
name : 'Name', // MISSING
value : 'Value', // MISSING
charWidth : 'Character Width', // MISSING
maxChars : 'Maximum Characters', // MISSING
type : 'Type', // MISSING
typeText : 'Text', // MISSING
typePass : 'Password' // MISSING
},
// Hidden Field Dialog.
hidden :
{
title : 'Hidden Field Properties', // MISSING
name : 'Name', // MISSING
value : 'Value' // MISSING
},
// Image Dialog.
image :
{
title : 'Svojstva slike',
titleButton : 'Image Button Properties', // MISSING
menu : 'Svojstva slike',
infoTab : 'Info slike',
btnUpload : 'Šalji na server',
upload : 'Šalji',
alt : 'Tekst na slici',
lockRatio : 'Zakljuèaj odnos',
resetSize : 'Resetuj dimenzije',
border : 'Okvir',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Molimo ukucajte URL od slike.',
linkTab : 'Link', // MISSING
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
img2Button : 'Do you want to transform the selected image on a image button?', // MISSING
urlMissing : 'Image source URL is missing.', // MISSING
validateBorder : 'Border must be a whole number.', // MISSING
validateHSpace : 'HSpace must be a whole number.', // MISSING
validateVSpace : 'VSpace must be a whole number.' // MISSING
},
// Flash Dialog
flash :
{
properties : 'Flash Properties', // MISSING
propertiesTab : 'Properties', // MISSING
title : 'Flash Properties', // MISSING
chkPlay : 'Auto Play', // MISSING
chkLoop : 'Loop', // MISSING
chkMenu : 'Enable Flash Menu', // MISSING
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Scale', // MISSING
scaleAll : 'Show all', // MISSING
scaleNoBorder : 'No Border', // MISSING
scaleFit : 'Exact Fit', // MISSING
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Abs dole',
alignAbsMiddle : 'Abs sredina',
alignBaseline : 'Bazno',
alignTextTop : 'Vrh teksta',
quality : 'Quality', // MISSING
qualityBest : 'Best', // MISSING
qualityHigh : 'High', // MISSING
qualityAutoHigh : 'Auto High', // MISSING
qualityMedium : 'Medium', // MISSING
qualityAutoLow : 'Auto Low', // MISSING
qualityLow : 'Low', // MISSING
windowModeWindow: 'Window', // MISSING
windowModeOpaque: 'Opaque', // MISSING
windowModeTransparent : 'Transparent', // MISSING
windowMode : 'Window mode', // MISSING
flashvars : 'Variables for Flash', // MISSING
bgcolor : 'Boja pozadine',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Molimo ukucajte URL link',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Check Spelling', // MISSING
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Not in dictionary', // MISSING
changeTo : 'Change to', // MISSING
btnIgnore : 'Ignore', // MISSING
btnIgnoreAll : 'Ignore All', // MISSING
btnReplace : 'Replace', // MISSING
btnReplaceAll : 'Replace All', // MISSING
btnUndo : 'Undo', // MISSING
noSuggestions : '- No suggestions -', // MISSING
progress : 'Spell check in progress...', // MISSING
noMispell : 'Spell check complete: No misspellings found', // MISSING
noChanges : 'Spell check complete: No words changed', // MISSING
oneChange : 'Spell check complete: One word changed', // MISSING
manyChanges : 'Spell check complete: %1 words changed', // MISSING
ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING
},
smiley :
{
toolbar : 'Smješko',
title : 'Ubaci smješka',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Numerisana lista',
bulletedlist : 'Lista',
indent : 'Poveæaj uvod',
outdent : 'Smanji uvod',
justify :
{
left : 'Lijevo poravnanje',
center : 'Centralno poravnanje',
right : 'Desno poravnanje',
block : 'Puno poravnanje'
},
blockquote : 'Block Quote', // MISSING
clipboard :
{
title : 'Zalijepi',
cutError : 'Sigurnosne postavke vašeg pretraživaèa ne dozvoljavaju operacije automatskog rezanja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+X).',
copyError : 'Sigurnosne postavke Vašeg pretraživaèa ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+C).',
pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING
toolbar : 'Zalijepi iz Word-a',
title : 'Zalijepi iz Word-a',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Zalijepi kao obièan tekst',
title : 'Zalijepi kao obièan tekst'
},
templates :
{
button : 'Templates', // MISSING
title : 'Content Templates', // MISSING
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents', // MISSING
selectPromptMsg : 'Please select the template to open in the editor', // MISSING
emptyListMsg : '(No templates defined)' // MISSING
},
showBlocks : 'Show Blocks', // MISSING
stylesCombo :
{
label : 'Stil',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'Format',
panelTitle : 'Format',
tag_p : 'Normal',
tag_pre : 'Formatted',
tag_address : 'Address',
tag_h1 : 'Heading 1',
tag_h2 : 'Heading 2',
tag_h3 : 'Heading 3',
tag_h4 : 'Heading 4',
tag_h5 : 'Heading 5',
tag_h6 : 'Heading 6',
tag_div : 'Normal (DIV)' // MISSING
},
div :
{
title : 'Create Div Container', // MISSING
toolbar : 'Create Div Container', // MISSING
cssClassInputLabel : 'Stylesheet Classes', // MISSING
styleSelectLabel : 'Style', // MISSING
IdInputLabel : 'Id', // MISSING
languageCodeInputLabel : ' Language Code', // MISSING
inlineStyleInputLabel : 'Inline Style', // MISSING
advisoryTitleInputLabel : 'Advisory Title', // MISSING
langDirLabel : 'Language Direction', // MISSING
langDirLTRLabel : 'Left to Right (LTR)', // MISSING
langDirRTLLabel : 'Right to Left (RTL)', // MISSING
edit : 'Edit Div', // MISSING
remove : 'Remove Div' // MISSING
},
iframe :
{
title : 'IFrame Properties', // MISSING
toolbar : 'IFrame', // MISSING
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'Font',
voiceLabel : 'Font', // MISSING
panelTitle : 'Font'
},
fontSize :
{
label : 'Velièina',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Velièina'
},
colorButton :
{
textColorTitle : 'Boja teksta',
bgColorTitle : 'Boja pozadine',
panelTitle : 'Colors', // MISSING
auto : 'Automatska',
more : 'Više boja...'
},
colors :
{
'000' : 'Black', // MISSING
'800000' : 'Maroon', // MISSING
'8B4513' : 'Saddle Brown', // MISSING
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Indigo', // MISSING
'696969' : 'Dark Gray', // MISSING
'B22222' : 'Fire Brick', // MISSING
'A52A2A' : 'Brown', // MISSING
'DAA520' : 'Golden Rod', // MISSING
'006400' : 'Dark Green', // MISSING
'40E0D0' : 'Turquoise', // MISSING
'0000CD' : 'Medium Blue', // MISSING
'800080' : 'Purple', // MISSING
'808080' : 'Gray', // MISSING
'F00' : 'Red', // MISSING
'FF8C00' : 'Dark Orange', // MISSING
'FFD700' : 'Gold', // MISSING
'008000' : 'Green', // MISSING
'0FF' : 'Cyan', // MISSING
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'Spell Check As You Type', // MISSING
opera_title : 'Not supported by Opera', // MISSING
enable : 'Enable SCAYT', // MISSING
disable : 'Disable SCAYT', // MISSING
about : 'About SCAYT', // MISSING
toggle : 'Toggle SCAYT', // MISSING
options : 'Options', // MISSING
langs : 'Languages', // MISSING
moreSuggestions : 'More suggestions', // MISSING
ignore : 'Ignore', // MISSING
ignoreAll : 'Ignore All', // MISSING
addWord : 'Add Word', // MISSING
emptyDic : 'Dictionary name should not be empty.', // MISSING
optionsTab : 'Options', // MISSING
allCaps : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Ignore Words with Numbers', // MISSING
languagesTab : 'Languages', // MISSING
dictionariesTab : 'Dictionaries', // MISSING
dic_field_name : 'Dictionary name', // MISSING
dic_create : 'Create', // MISSING
dic_restore : 'Restore', // MISSING
dic_delete : 'Delete', // MISSING
dic_rename : 'Rename', // MISSING
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING
aboutTab : 'About' // MISSING
},
about :
{
title : 'About CKEditor', // MISSING
dlgTitle : 'About CKEditor', // MISSING
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'For licensing information please visit our web site:', // MISSING
copy : 'Copyright © $1. All rights reserved.' // MISSING
},
maximize : 'Maximize', // MISSING
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Anchor', // MISSING
flash : 'Flash Animation', // MISSING
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Unknown Object' // MISSING
},
resize : 'Drag to resize', // MISSING
colordialog :
{
title : 'Select color', // MISSING
options : 'Color Options', // MISSING
highlight : 'Highlight', // MISSING
selected : 'Selected Color', // MISSING
clear : 'Clear' // MISSING
},
toolbarCollapse : 'Collapse Toolbar', // MISSING
toolbarExpand : 'Expand Toolbar', // MISSING
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'Text direction from left to right', // MISSING
rtl : 'Text direction from right to left' // MISSING
},
docprops :
{
label : 'Document Properties', // MISSING
title : 'Document Properties', // MISSING
design : 'Design', // MISSING
meta : 'Meta Tags', // MISSING
chooseColor : 'Choose', // MISSING
other : 'Other...', // MISSING
docTitle : 'Page Title', // MISSING
charset : 'Character Set Encoding', // MISSING
charsetOther : 'Other Character Set Encoding', // MISSING
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Central European', // MISSING
charsetCT : 'Chinese Traditional (Big5)', // MISSING
charsetCR : 'Cyrillic', // MISSING
charsetGR : 'Greek', // MISSING
charsetJP : 'Japanese', // MISSING
charsetKR : 'Korean', // MISSING
charsetTR : 'Turkish', // MISSING
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Western European', // MISSING
docType : 'Document Type Heading', // MISSING
docTypeOther : 'Other Document Type Heading', // MISSING
xhtmlDec : 'Include XHTML Declarations', // MISSING
bgColor : 'Background Color', // MISSING
bgImage : 'Background Image URL', // MISSING
bgFixed : 'Non-scrolling (Fixed) Background', // MISSING
txtColor : 'Text Color', // MISSING
margin : 'Page Margins', // MISSING
marginTop : 'Top', // MISSING
marginLeft : 'Left', // MISSING
marginRight : 'Right', // MISSING
marginBottom : 'Bottom', // MISSING
metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING
metaDescription : 'Document Description', // MISSING
metaAuthor : 'Author', // MISSING
metaCopyright : 'Copyright', // MISSING
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/bs.js
|
JavaScript
|
gpl3
| 27,453
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Bulgarian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['bg'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Текстов редактор за форматиран текст, %1, натиснете ALT 0 за помощ.',
// ARIA descriptions.
toolbars : 'Ленти с инструменти',
editor : 'Текстов редактор за форматиран текст',
// Toolbar buttons without dialogs.
source : 'Източник',
newPage : 'Нова страница',
save : 'Запис',
preview : 'Преглед',
cut : 'Отрежи',
copy : 'Копирай',
paste : 'Вмъкни',
print : 'Печат',
underline : 'Подчертан',
bold : 'Удебелен',
italic : 'Наклонен',
selectAll : 'Избери всичко',
removeFormat : 'Премахване на форматирането',
strike : 'Зачертан текст',
subscript : 'Индексиран текст',
superscript : 'Суперскрипт',
horizontalrule : 'Вмъкване на хоризонтална линия',
pagebreak : 'Вмъкване на нова страница при печат',
pagebreakAlt : 'Разделяне на страници',
unlink : 'Премахни връзката',
undo : 'Възтанови',
redo : 'Връщане на предишен статус',
// Common messages and labels.
common :
{
browseServer : 'Избор ор сървъра',
url : 'URL',
protocol : 'Протокол',
upload : 'Качване',
uploadSubmit : 'Изпращане към сървъра',
image : 'Снимка',
flash : 'Флаш',
form : 'Форма',
checkbox : 'Поле за избор',
radio : 'Радио бутон',
textField : 'Текстово поле',
textarea : 'Текстова зона',
hiddenField : 'Скрито поле',
button : 'Бутон',
select : 'Поле за избор',
imageButton : 'Бутон за снимка',
notSet : '<не е избрано>',
id : 'ID',
name : 'Име',
langDir : 'Посока на езика',
langDirLtr : 'Ляво на дясно (ЛнД)',
langDirRtl : 'Дясно на ляво (ДнЛ)',
langCode : 'Код на езика',
longDescr : 'Уеб адрес за дълго описание',
cssClass : 'Класове за CSS',
advisoryTitle : 'Advisory Title', // MISSING
cssStyle : 'Стил',
ok : 'ОК',
cancel : 'Отказ',
close : 'Затвори',
preview : 'Преглед',
generalTab : 'Общо',
advancedTab : 'Разширено',
validateNumberFailed : 'Тази стойност не е число',
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
options : 'Опции',
target : 'Цел',
targetNew : 'Нов прозорец (_blank)',
targetTop : 'Горна позиция (_top)',
targetSelf : 'Текущия прозорец (_self)',
targetParent : 'Основен прозорец (_parent)',
langDirLTR : 'Ляво на дясно (ЛнД)',
langDirRTL : 'Дясно на ляво (ДнЛ)',
styles : 'Стил',
cssClasses : 'Класове за CSS',
width : 'Ширина',
height : 'Височина',
align : 'Подравняване',
alignLeft : 'Ляво',
alignRight : 'Дясно',
alignCenter : 'Център',
alignTop : 'Горе',
alignMiddle : 'По средата',
alignBottom : 'Долу',
invalidHeight : 'Височината трябва да е число.',
invalidWidth : 'Ширина требе да е число.',
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
},
contextmenu :
{
options : 'Опции на контекстното меню'
},
// Special char dialog.
specialChar :
{
toolbar : 'Вмъкване на специален знак',
title : 'Избор на специален знак',
options : 'Опции за специален знак'
},
// Link dialog.
link :
{
toolbar : 'Връзка',
other : '<друго>',
menu : 'Промяна на връзка',
title : 'Връзка',
info : 'Инфо за връзката',
target : 'Цел',
upload : 'Качване',
advanced : 'Разширено',
type : 'Тип на връзката',
toUrl : 'Уеб адрес',
toAnchor : 'Връзка към котва в текста',
toEmail : 'E-mail',
targetFrame : '<frame>',
targetPopup : '<изкачащ прозорец>',
targetFrameName : 'Име на целевият прозорец',
targetPopupName : 'Име на изкачащ прозорец',
popupFeatures : 'Функции на изкачащ прозорец',
popupResizable : 'Оразмеряем',
popupStatusBar : 'Статусна лента',
popupLocationBar: 'Лента с локацията',
popupToolbar : 'Лента с инструменти',
popupMenuBar : 'Лента за меню',
popupFullScreen : 'Цял екран (IE)',
popupScrollBars : 'Скролери',
popupDependent : 'Зависимост (Netscape)',
popupLeft : 'Лява позиция',
popupTop : 'Горна позиция',
id : 'ID',
langDir : 'Посока на езика',
langDirLTR : 'Ляво на Дясно (ЛнД)',
langDirRTL : 'Дясно на Ляво (ДнЛ)',
acccessKey : 'Ключ за достъп',
name : 'Име',
langCode : 'Код за езика',
tabIndex : 'Tab Index', // MISSING
advisoryTitle : 'Advisory Title', // MISSING
advisoryContentType : 'Advisory Content Type', // MISSING
cssClasses : 'Класове за CSS',
charset : 'Linked Resource Charset', // MISSING
styles : 'Стил',
rel : 'Връзка',
selectAnchor : 'Изберете котва',
anchorName : 'По име на котва',
anchorId : 'По ID на елемент',
emailAddress : 'E-mail aдрес',
emailSubject : 'Тема',
emailBody : 'Съдържание',
noAnchors : '(No anchors available in the document)', // MISSING
noUrl : 'Please type the link URL', // MISSING
noEmail : 'Моля въведете e-mail aдрес'
},
// Anchor dialog
anchor :
{
toolbar : 'Котва',
menu : 'Промяна на котва',
title : 'Настройки на котва',
name : 'Име на котва',
errorName : 'Моля въведете име на котвата',
remove : 'Премахване на котва'
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties', // MISSING
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Тип',
start : 'Старт',
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Кръг',
disc : 'Диск',
square : 'Квадрат',
none : 'Няма',
notset : '<не е указано>',
armenian : 'Арменско номериране',
georgian : 'Грузинско номериране (an, ban, gan, и т.н.)',
lowerRoman : 'Малки римски числа (i, ii, iii, iv, v и т.н.)',
upperRoman : 'Големи римски числа (I, II, III, IV, V и т.н.)',
lowerAlpha : 'Малки букви (а, б, в, г, д и т.н.)',
upperAlpha : 'Големи букви (А, Б, В, Г, Д и т.н.)',
lowerGreek : 'Малки гръцки букви (алфа, бета, гама и т.н.)',
decimal : 'Числа (1, 2, 3 и др.)',
decimalLeadingZero : 'Числа с водеща нула (01, 02, 03 и т.н.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Търсене и препокриване',
find : 'Търсене',
replace : 'Препокриване',
findWhat : 'Търси за:',
replaceWith : 'Препокрива с:',
notFoundMsg : 'Указаният текст не е намерен.',
findOptions : 'Find Options', // MISSING
matchCase : 'Съвпадение',
matchWord : 'Съвпадение с дума',
matchCyclic : 'Циклично съвпадение',
replaceAll : 'Препокрий всички',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Таблица',
title : 'Настройки на таблицата',
menu : 'Настройки на таблицата',
deleteTable : 'Изтриване на таблица',
rows : 'Редове',
columns : 'Колони',
border : 'Размер на рамката',
widthPx : 'пиксела',
widthPc : 'процент',
widthUnit : 'единица за ширина',
cellSpace : 'Разтояние между клетките',
cellPad : 'Отделяне на клетките',
caption : 'Заглавие',
summary : 'Обща информация',
headers : 'Хедъри',
headersNone : 'Няма',
headersColumn : 'Първа колона',
headersRow : 'Първи ред',
headersBoth : 'Заедно',
invalidRows : 'Броят редове трябва да е по-голям от 0.',
invalidCols : 'Броят колони трябва да е по-голям от 0.',
invalidBorder : 'Border size must be a number.', // MISSING
invalidWidth : 'Table width must be a number.', // MISSING
invalidHeight : 'Table height must be a number.', // MISSING
invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING
invalidCellPadding : 'Cell padding must be a positive number.', // MISSING
cell :
{
menu : 'Клетка',
insertBefore : 'Вмъкване на клетка преди',
insertAfter : 'Вмъкване на клетка след',
deleteCell : 'Изтриване на клетки',
merge : 'Сливане на клетки',
mergeRight : 'Сливане в дясно',
mergeDown : 'Merge Down', // MISSING
splitHorizontal : 'Split Cell Horizontally', // MISSING
splitVertical : 'Split Cell Vertically', // MISSING
title : 'Настройки на клетката',
cellType : 'Тип на клетката',
rowSpan : 'Rows Span', // MISSING
colSpan : 'Columns Span', // MISSING
wordWrap : 'Авто. пренос',
hAlign : 'Хоризонтално подравняване',
vAlign : 'Вертикално подравняване',
alignBaseline : 'Базова линия',
bgColor : 'Фон',
borderColor : 'Цвят на рамката',
data : 'Данни',
header : 'Хедър',
yes : 'Да',
no : 'Не',
invalidWidth : 'Cell width must be a number.', // MISSING
invalidHeight : 'Cell height must be a number.', // MISSING
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
invalidColSpan : 'Columns span must be a whole number.', // MISSING
chooseColor : 'Изберете'
},
row :
{
menu : 'Ред',
insertBefore : 'Insert Row Before', // MISSING
insertAfter : 'Вмъкване на ред след',
deleteRow : 'Изтриване на редове'
},
column :
{
menu : 'Колона',
insertBefore : 'Вмъкване на колона преди',
insertAfter : 'Вмъкване на колона след',
deleteColumn : 'Изтриване на колони'
}
},
// Button Dialog.
button :
{
title : 'Настройки на бутона',
text : 'Текст (стойност)',
type : 'Тип',
typeBtn : 'Бутон',
typeSbm : 'Добави',
typeRst : 'Нулиране'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox Properties', // MISSING
radioTitle : 'Настройки на радиобутон',
value : 'Стойност',
selected : 'Избрано'
},
// Form Dialog.
form :
{
title : 'Настройки на формата',
menu : 'Настройки на формата',
action : 'Действие',
method : 'Метод',
encoding : 'Кодиране'
},
// Select Field Dialog.
select :
{
title : 'Selection Field Properties', // MISSING
selectInfo : 'Select Info', // MISSING
opAvail : 'Налични опции',
value : 'Стойност',
size : 'Размер',
lines : 'линии',
chkMulti : 'Allow multiple selections', // MISSING
opText : 'Текст',
opValue : 'Стойност',
btnAdd : 'Добави',
btnModify : 'Промени',
btnUp : 'На горе',
btnDown : 'На долу',
btnSetValue : 'Set as selected value', // MISSING
btnDelete : 'Изтриване'
},
// Textarea Dialog.
textarea :
{
title : 'Опции за текстовата зона',
cols : 'Колони',
rows : 'Редове'
},
// Text Field Dialog.
textfield :
{
title : 'Настройки за текстово поле',
name : 'Име',
value : 'Стойност',
charWidth : 'Ширина на знаците',
maxChars : 'Макс. знаци',
type : 'Тип',
typeText : 'Текст',
typePass : 'Парола'
},
// Hidden Field Dialog.
hidden :
{
title : 'Настройки за скрито поле',
name : 'Име',
value : 'Стойност'
},
// Image Dialog.
image :
{
title : 'Настройки за снимка',
titleButton : 'Настойки за бутон за снимка',
menu : 'Настройки за снимка',
infoTab : 'Инфо за снимка',
btnUpload : 'Изпрати я на сървъра',
upload : 'Качване',
alt : 'Алтернативен текст',
lockRatio : 'Заключване на съотношението',
resetSize : 'Нулиране на размер',
border : 'Рамка',
hSpace : 'HSpace', // MISSING
vSpace : 'VSpace', // MISSING
alertUrl : 'Please type the image URL', // MISSING
linkTab : 'Връзка',
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
img2Button : 'Do you want to transform the selected image on a image button?', // MISSING
urlMissing : 'Image source URL is missing.', // MISSING
validateBorder : 'Border must be a whole number.', // MISSING
validateHSpace : 'HSpace must be a whole number.', // MISSING
validateVSpace : 'VSpace must be a whole number.' // MISSING
},
// Flash Dialog
flash :
{
properties : 'Настройки за флаш',
propertiesTab : 'Настройки',
title : 'Настройки за флаш',
chkPlay : 'Авто. пускане',
chkLoop : 'Цикъл',
chkMenu : 'Enable Flash Menu', // MISSING
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Scale', // MISSING
scaleAll : 'Показва всичко',
scaleNoBorder : 'Без рамка',
scaleFit : 'Exact Fit', // MISSING
access : 'Script Access', // MISSING
accessAlways : 'Винаги',
accessSameDomain: 'Същият домейн',
accessNever : 'Никога',
alignAbsBottom : 'Abs Bottom', // MISSING
alignAbsMiddle : 'Abs Middle', // MISSING
alignBaseline : 'Baseline', // MISSING
alignTextTop : 'Text Top', // MISSING
quality : 'Качество',
qualityBest : 'Отлично',
qualityHigh : 'Високо',
qualityAutoHigh : 'Авто. високо',
qualityMedium : 'Средно',
qualityAutoLow : 'Авто. ниско',
qualityLow : 'Ниско',
windowModeWindow: 'Прозорец',
windowModeOpaque: 'Плътност',
windowModeTransparent : 'Прозрачност',
windowMode : 'Режим на прозореца',
flashvars : 'Променливи за Флаш',
bgcolor : 'Background color', // MISSING
hSpace : 'HSpace', // MISSING
vSpace : 'VSpace', // MISSING
validateSrc : 'Уеб адреса не трябва да е празен.',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Проверка на правопис',
title : 'Проверка на правопис',
notAvailable : 'Съжаляваме, но услугата не е достъпна за момента',
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Не е в речника',
changeTo : 'Промени на',
btnIgnore : 'Игнорирай',
btnIgnoreAll : 'Игнорирай всичко',
btnReplace : 'Препокриване',
btnReplaceAll : 'Препокрий всичко',
btnUndo : 'Възтанови',
noSuggestions : '- Няма препоръчани -',
progress : 'Проверява се правописа...',
noMispell : 'Spell check complete: No misspellings found', // MISSING
noChanges : 'Spell check complete: No words changed', // MISSING
oneChange : 'Spell check complete: One word changed', // MISSING
manyChanges : 'Spell check complete: %1 words changed', // MISSING
ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING
},
smiley :
{
toolbar : 'Усмивка',
title : 'Вмъкване на усмивка',
options : 'Опции за усмивката'
},
elementsPath :
{
eleLabel : 'Път за елементите',
eleTitle : '%1 елемент'
},
numberedlist : 'Вмъкване/Премахване на номериран списък',
bulletedlist : 'Вмъкване/Премахване на точков списък',
indent : 'Увеличаване на отстъпа',
outdent : 'Намаляване на отстъпа',
justify :
{
left : 'Подравни в ляво',
center : 'Център',
right : 'Подравни в дясно',
block : 'Justify' // MISSING
},
blockquote : 'Блок за цитат',
clipboard :
{
title : 'Paste', // MISSING
cutError : 'Настройките за сигурност на Вашия браузър не позволяват на редактора автоматично да изъплни действията за отрязване. Моля ползвайте клавиатурните команди за целта (ctrl+x).',
copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING
pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING
toolbar : 'Paste from Word', // MISSING
title : 'Paste from Word', // MISSING
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Paste as plain text', // MISSING
title : 'Paste as Plain Text' // MISSING
},
templates :
{
button : 'Templates', // MISSING
title : 'Content Templates', // MISSING
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents', // MISSING
selectPromptMsg : 'Please select the template to open in the editor', // MISSING
emptyListMsg : '(No templates defined)' // MISSING
},
showBlocks : 'Показва блокове',
stylesCombo :
{
label : 'Styles', // MISSING
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'Format', // MISSING
panelTitle : 'Paragraph Format', // MISSING
tag_p : 'Normal', // MISSING
tag_pre : 'Formatted', // MISSING
tag_address : 'Address', // MISSING
tag_h1 : 'Heading 1', // MISSING
tag_h2 : 'Heading 2', // MISSING
tag_h3 : 'Heading 3', // MISSING
tag_h4 : 'Heading 4', // MISSING
tag_h5 : 'Heading 5', // MISSING
tag_h6 : 'Heading 6', // MISSING
tag_div : 'Normal (DIV)' // MISSING
},
div :
{
title : 'Create Div Container', // MISSING
toolbar : 'Create Div Container', // MISSING
cssClassInputLabel : 'Stylesheet Classes', // MISSING
styleSelectLabel : 'Стил',
IdInputLabel : 'ID',
languageCodeInputLabel : ' Код на езика',
inlineStyleInputLabel : 'Inline Style', // MISSING
advisoryTitleInputLabel : 'Advisory Title', // MISSING
langDirLabel : 'Language Direction', // MISSING
langDirLTRLabel : 'Left to Right (LTR)', // MISSING
langDirRTLLabel : 'Right to Left (RTL)', // MISSING
edit : 'Промяна на Div',
remove : 'Премахване на Div'
},
iframe :
{
title : 'IFrame настройки',
toolbar : 'IFrame',
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'Шрифт',
voiceLabel : 'Шрифт',
panelTitle : 'Име на шрифт'
},
fontSize :
{
label : 'Размер',
voiceLabel : 'Размер на шрифт',
panelTitle : 'Размер на шрифт'
},
colorButton :
{
textColorTitle : 'Цвят на шрифт',
bgColorTitle : 'Фонов цвят',
panelTitle : 'Цветове',
auto : 'Автоматично',
more : 'Още цветове'
},
colors :
{
'000' : 'Черно',
'800000' : 'Кестеняво',
'8B4513' : 'Светлокафяво',
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Индиго',
'696969' : 'Тъмно сиво',
'B22222' : 'Огнено червено',
'A52A2A' : 'Кафяво',
'DAA520' : 'Златисто',
'006400' : 'Тъмно зелено',
'40E0D0' : 'Тюркуазено',
'0000CD' : 'Средно синьо',
'800080' : 'Пурпурно',
'808080' : 'Сиво',
'F00' : 'Червено',
'FF8C00' : 'Тъмно оранжево',
'FFD700' : 'Златно',
'008000' : 'Зелено',
'0FF' : 'Светло синьо',
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'Spell Check As You Type', // MISSING
opera_title : 'Not supported by Opera', // MISSING
enable : 'Enable SCAYT', // MISSING
disable : 'Disable SCAYT', // MISSING
about : 'About SCAYT', // MISSING
toggle : 'Toggle SCAYT', // MISSING
options : 'Options', // MISSING
langs : 'Languages', // MISSING
moreSuggestions : 'More suggestions', // MISSING
ignore : 'Ignore', // MISSING
ignoreAll : 'Ignore All', // MISSING
addWord : 'Add Word', // MISSING
emptyDic : 'Dictionary name should not be empty.', // MISSING
optionsTab : 'Options', // MISSING
allCaps : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Игнорирани думи и цифри',
languagesTab : 'Езици',
dictionariesTab : 'Речници',
dic_field_name : 'Име на речнк',
dic_create : 'Нов',
dic_restore : 'Възтановяване',
dic_delete : 'Изтриване',
dic_rename : 'Преименуване',
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING
aboutTab : 'Относно'
},
about :
{
title : 'Относно CKEditor',
dlgTitle : 'Относно CKEditor',
help : 'Проверете $1 за помощ.',
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'За лицензионна информация моля посетете сайта ни:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Максимизиране',
minimize : 'Минимизиране',
fakeobjects :
{
anchor : 'Кука',
flash : 'Флаш анимация',
iframe : 'IFrame',
hiddenfield : 'Скрито поле',
unknown : 'Неизвестен обект'
},
resize : 'Влачете за да оразмерите',
colordialog :
{
title : 'Изберете цвят',
options : 'Цветови опции',
highlight : 'Осветяване',
selected : 'Изберете цвят',
clear : 'Изчистване'
},
toolbarCollapse : 'Свиване на лентата с инструменти',
toolbarExpand : 'Разширяване на лентата с инструменти',
toolbarGroups :
{
document : 'Документ',
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Промяна',
forms : 'Форми',
basicstyles : 'Базови стилове',
paragraph : 'Параграф',
links : 'Връзки',
insert : 'Вмъкване',
styles : 'Стилове',
colors : 'Цветове',
tools : 'Инструменти'
},
bidi :
{
ltr : 'Text direction from left to right', // MISSING
rtl : 'Text direction from right to left' // MISSING
},
docprops :
{
label : 'Настройки на документа',
title : 'Настройки на документа',
design : 'Дизайн',
meta : 'Мета етикети',
chooseColor : 'Изберете',
other : 'Други...',
docTitle : 'Заглавие на страницата',
charset : 'Кодова таблица',
charsetOther : 'Друга кодова таблица',
charsetASCII : 'ASCII',
charsetCE : 'Централна европейска',
charsetCT : 'Китайски традиционен',
charsetCR : 'Cyrillic', // MISSING
charsetGR : 'Greek', // MISSING
charsetJP : 'Japanese', // MISSING
charsetKR : 'Korean', // MISSING
charsetTR : 'Turkish', // MISSING
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Western European', // MISSING
docType : 'Document Type Heading', // MISSING
docTypeOther : 'Other Document Type Heading', // MISSING
xhtmlDec : 'Include XHTML Declarations', // MISSING
bgColor : 'Background Color', // MISSING
bgImage : 'Background Image URL', // MISSING
bgFixed : 'Non-scrolling (Fixed) Background', // MISSING
txtColor : 'Text Color', // MISSING
margin : 'Page Margins', // MISSING
marginTop : 'Top', // MISSING
marginLeft : 'Left', // MISSING
marginRight : 'Right', // MISSING
marginBottom : 'Bottom', // MISSING
metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING
metaDescription : 'Document Description', // MISSING
metaAuthor : 'Author', // MISSING
metaCopyright : 'Copyright', // MISSING
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/bg.js
|
JavaScript
|
gpl3
| 30,453
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Hungarian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['hu'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'HTML szerkesztő',
// ARIA descriptions.
toolbars : 'Szerkesztő Eszköztár',
editor : 'HTML szerkesztő',
// Toolbar buttons without dialogs.
source : 'Forráskód',
newPage : 'Új oldal',
save : 'Mentés',
preview : 'Előnézet',
cut : 'Kivágás',
copy : 'Másolás',
paste : 'Beillesztés',
print : 'Nyomtatás',
underline : 'Aláhúzott',
bold : 'Félkövér',
italic : 'Dőlt',
selectAll : 'Mindent kijelöl',
removeFormat : 'Formázás eltávolítása',
strike : 'Áthúzott',
subscript : 'Alsó index',
superscript : 'Felső index',
horizontalrule : 'Elválasztóvonal beillesztése',
pagebreak : 'Oldaltörés beillesztése',
pagebreakAlt : 'Oldaltörés',
unlink : 'Hivatkozás törlése',
undo : 'Visszavonás',
redo : 'Ismétlés',
// Common messages and labels.
common :
{
browseServer : 'Böngészés a szerveren',
url : 'Hivatkozás',
protocol : 'Protokoll',
upload : 'Feltöltés',
uploadSubmit : 'Küldés a szerverre',
image : 'Kép',
flash : 'Flash',
form : 'Űrlap',
checkbox : 'Jelölőnégyzet',
radio : 'Választógomb',
textField : 'Szövegmező',
textarea : 'Szövegterület',
hiddenField : 'Rejtettmező',
button : 'Gomb',
select : 'Legördülő lista',
imageButton : 'Képgomb',
notSet : '<nincs beállítva>',
id : 'Azonosító',
name : 'Név',
langDir : 'Írás iránya',
langDirLtr : 'Balról jobbra',
langDirRtl : 'Jobbról balra',
langCode : 'Nyelv kódja',
longDescr : 'Részletes leírás webcíme',
cssClass : 'Stíluskészlet',
advisoryTitle : 'Súgócimke',
cssStyle : 'Stílus',
ok : 'Rendben',
cancel : 'Mégsem',
close : 'Bezárás',
preview : 'Előnézet',
generalTab : 'Általános',
advancedTab : 'További opciók',
validateNumberFailed : 'A mezőbe csak számokat írhat.',
confirmNewPage : 'Minden nem mentett változás el fog veszni! Biztosan be szeretné tölteni az oldalt?',
confirmCancel : 'Az űrlap tartalma megváltozott, ám a változásokat nem rögzítette. Biztosan be szeretné zárni az űrlapot?',
options : 'Beállítások',
target : 'Cél',
targetNew : 'Új ablak (_blank)',
targetTop : 'Legfelső ablak (_top)',
targetSelf : 'Aktuális ablakban (_self)',
targetParent : 'Szülő ablak (_parent)',
langDirLTR : 'Balról jobbra (LTR)',
langDirRTL : 'Jobbról balra (RTL)',
styles : 'Stílus',
cssClasses : 'Stíluslap osztály',
width : 'Szélesség',
height : 'Magasság',
align : 'Igazítás',
alignLeft : 'Bal',
alignRight : 'Jobbra',
alignCenter : 'Középre',
alignTop : 'Tetejére',
alignMiddle : 'Középre',
alignBottom : 'Aljára',
invalidHeight : 'A magasság mezőbe csak számokat írhat.',
invalidWidth : 'A szélesség mezőbe csak számokat írhat.',
invalidCssLength : '"%1"-hez megadott érték csakis egy pozitív szám lehet, esetleg egy érvényes CSS egységgel megjelölve(px, %, in, cm, mm, em, ex, pt vagy pc).',
invalidHtmlLength : '"%1"-hez megadott érték csakis egy pozitív szám lehet, esetleg egy érvényes HTML egységgel megjelölve(px vagy %).',
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, nem elérhető</span>'
},
contextmenu :
{
options : 'Helyi menü opciók'
},
// Special char dialog.
specialChar :
{
toolbar : 'Speciális karakter beillesztése',
title : 'Speciális karakter választása',
options : 'Speciális karakter opciók'
},
// Link dialog.
link :
{
toolbar : 'Hivatkozás beillesztése/módosítása',
other : '<más>',
menu : 'Hivatkozás módosítása',
title : 'Hivatkozás tulajdonságai',
info : 'Alaptulajdonságok',
target : 'Tartalom megjelenítése',
upload : 'Feltöltés',
advanced : 'További opciók',
type : 'Hivatkozás típusa',
toUrl : 'URL',
toAnchor : 'Horgony az oldalon',
toEmail : 'E-Mail',
targetFrame : '<keretben>',
targetPopup : '<felugró ablakban>',
targetFrameName : 'Keret neve',
targetPopupName : 'Felugró ablak neve',
popupFeatures : 'Felugró ablak jellemzői',
popupResizable : 'Átméretezés',
popupStatusBar : 'Állapotsor',
popupLocationBar: 'Címsor',
popupToolbar : 'Eszköztár',
popupMenuBar : 'Menü sor',
popupFullScreen : 'Teljes képernyő (csak IE)',
popupScrollBars : 'Gördítősáv',
popupDependent : 'Szülőhöz kapcsolt (csak Netscape)',
popupLeft : 'Bal pozíció',
popupTop : 'Felső pozíció',
id : 'Id',
langDir : 'Írás iránya',
langDirLTR : 'Balról jobbra',
langDirRTL : 'Jobbról balra',
acccessKey : 'Billentyűkombináció',
name : 'Név',
langCode : 'Írás iránya',
tabIndex : 'Tabulátor index',
advisoryTitle : 'Súgócimke',
advisoryContentType : 'Súgó tartalomtípusa',
cssClasses : 'Stíluskészlet',
charset : 'Hivatkozott tartalom kódlapja',
styles : 'Stílus',
rel : 'Kapcsolat típusa',
selectAnchor : 'Horgony választása',
anchorName : 'Horgony név szerint',
anchorId : 'Azonosító szerint',
emailAddress : 'E-Mail cím',
emailSubject : 'Üzenet tárgya',
emailBody : 'Üzenet',
noAnchors : '(Nincs horgony a dokumentumban)',
noUrl : 'Adja meg a hivatkozás webcímét',
noEmail : 'Adja meg az E-Mail címet'
},
// Anchor dialog
anchor :
{
toolbar : 'Horgony beillesztése/szerkesztése',
menu : 'Horgony tulajdonságai',
title : 'Horgony tulajdonságai',
name : 'Horgony neve',
errorName : 'Kérem adja meg a horgony nevét',
remove : 'Horgony eltávolítása'
},
// List style dialog
list:
{
numberedTitle : 'Sorszámozott lista tulajdonságai',
bulletedTitle : 'Pontozott lista tulajdonságai',
type : 'Típus',
start : 'Kezdőszám',
validateStartNumber :'A kezdőszám nem lehet tört érték.',
circle : 'Kör',
disc : 'Korong',
square : 'Négyzet',
none : 'Nincs',
notset : '<Nincs beállítva>',
armenian : 'Örmény számozás',
georgian : 'Grúz számozás (an, ban, gan, stb.)',
lowerRoman : 'Római kisbetűs (i, ii, iii, iv, v, stb.)',
upperRoman : 'Római nagybetűs (I, II, III, IV, V, stb.)',
lowerAlpha : 'Kisbetűs (a, b, c, d, e, stb.)',
upperAlpha : 'Nagybetűs (A, B, C, D, E, stb.)',
lowerGreek : 'Görög (alpha, beta, gamma, stb.)',
decimal : 'Arab számozás (1, 2, 3, stb.)',
decimalLeadingZero : 'Számozás bevezető nullákkal (01, 02, 03, stb.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Keresés és csere',
find : 'Keresés',
replace : 'Csere',
findWhat : 'Keresett szöveg:',
replaceWith : 'Csere erre:',
notFoundMsg : 'A keresett szöveg nem található.',
findOptions : 'Find Options', // MISSING
matchCase : 'kis- és nagybetű megkülönböztetése',
matchWord : 'csak ha ez a teljes szó',
matchCyclic : 'Ciklikus keresés',
replaceAll : 'Az összes cseréje',
replaceSuccessMsg : '%1 egyezőség cserélve.'
},
// Table Dialog
table :
{
toolbar : 'Táblázat',
title : 'Táblázat tulajdonságai',
menu : 'Táblázat tulajdonságai',
deleteTable : 'Táblázat törlése',
rows : 'Sorok',
columns : 'Oszlopok',
border : 'Szegélyméret',
widthPx : 'képpont',
widthPc : 'százalék',
widthUnit : 'Szélesség egység',
cellSpace : 'Cella térköz',
cellPad : 'Cella belső margó',
caption : 'Felirat',
summary : 'Leírás',
headers : 'Fejlécek',
headersNone : 'Nincsenek',
headersColumn : 'Első oszlop',
headersRow : 'Első sor',
headersBoth : 'Mindkettő',
invalidRows : 'A sorok számának nagyobbnak kell lenni mint 0.',
invalidCols : 'Az oszlopok számának nagyobbnak kell lenni mint 0.',
invalidBorder : 'A szegélyméret mezőbe csak számokat írhat.',
invalidWidth : 'A szélesség mezőbe csak számokat írhat.',
invalidHeight : 'A magasság mezőbe csak számokat írhat.',
invalidCellSpacing : 'A cella térköz mezőbe csak számokat írhat.',
invalidCellPadding : 'A cella belső margó mezőbe csak számokat írhat.',
cell :
{
menu : 'Cella',
insertBefore : 'Beszúrás balra',
insertAfter : 'Beszúrás jobbra',
deleteCell : 'Cellák törlése',
merge : 'Cellák egyesítése',
mergeRight : 'Cellák egyesítése jobbra',
mergeDown : 'Cellák egyesítése lefelé',
splitHorizontal : 'Cellák szétválasztása vízszintesen',
splitVertical : 'Cellák szétválasztása függőlegesen',
title : 'Cella tulajdonságai',
cellType : 'Cella típusa',
rowSpan : 'Függőleges egyesítés',
colSpan : 'Vízszintes egyesítés',
wordWrap : 'Hosszú sorok törése',
hAlign : 'Vízszintes igazítás',
vAlign : 'Függőleges igazítás',
alignBaseline : 'Alapvonalra',
bgColor : 'Háttér színe',
borderColor : 'Keret színe',
data : 'Adat',
header : 'Fejléc',
yes : 'Igen',
no : 'Nem',
invalidWidth : 'A szélesség mezőbe csak számokat írhat.',
invalidHeight : 'A magasság mezőbe csak számokat írhat.',
invalidRowSpan : 'A függőleges egyesítés mezőbe csak számokat írhat.',
invalidColSpan : 'A vízszintes egyesítés mezőbe csak számokat írhat.',
chooseColor : 'Válasszon'
},
row :
{
menu : 'Sor',
insertBefore : 'Beszúrás fölé',
insertAfter : 'Beszúrás alá',
deleteRow : 'Sorok törlése'
},
column :
{
menu : 'Oszlop',
insertBefore : 'Beszúrás balra',
insertAfter : 'Beszúrás jobbra',
deleteColumn : 'Oszlopok törlése'
}
},
// Button Dialog.
button :
{
title : 'Gomb tulajdonságai',
text : 'Szöveg (Érték)',
type : 'Típus',
typeBtn : 'Gomb',
typeSbm : 'Küldés',
typeRst : 'Alaphelyzet'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Jelölőnégyzet tulajdonságai',
radioTitle : 'Választógomb tulajdonságai',
value : 'Érték',
selected : 'Kiválasztott'
},
// Form Dialog.
form :
{
title : 'Űrlap tulajdonságai',
menu : 'Űrlap tulajdonságai',
action : 'Adatfeldolgozást végző hivatkozás',
method : 'Adatküldés módja',
encoding : 'Kódolás'
},
// Select Field Dialog.
select :
{
title : 'Legördülő lista tulajdonságai',
selectInfo : 'Alaptulajdonságok',
opAvail : 'Elérhető opciók',
value : 'Érték',
size : 'Méret',
lines : 'sor',
chkMulti : 'több sor is kiválasztható',
opText : 'Szöveg',
opValue : 'Érték',
btnAdd : 'Hozzáad',
btnModify : 'Módosít',
btnUp : 'Fel',
btnDown : 'Le',
btnSetValue : 'Legyen az alapértelmezett érték',
btnDelete : 'Töröl'
},
// Textarea Dialog.
textarea :
{
title : 'Szövegterület tulajdonságai',
cols : 'Karakterek száma egy sorban',
rows : 'Sorok száma'
},
// Text Field Dialog.
textfield :
{
title : 'Szövegmező tulajdonságai',
name : 'Név',
value : 'Érték',
charWidth : 'Megjelenített karakterek száma',
maxChars : 'Maximális karakterszám',
type : 'Típus',
typeText : 'Szöveg',
typePass : 'Jelszó'
},
// Hidden Field Dialog.
hidden :
{
title : 'Rejtett mező tulajdonságai',
name : 'Név',
value : 'Érték'
},
// Image Dialog.
image :
{
title : 'Kép tulajdonságai',
titleButton : 'Képgomb tulajdonságai',
menu : 'Kép tulajdonságai',
infoTab : 'Alaptulajdonságok',
btnUpload : 'Küldés a szerverre',
upload : 'Feltöltés',
alt : 'Buborék szöveg',
lockRatio : 'Arány megtartása',
resetSize : 'Eredeti méret',
border : 'Keret',
hSpace : 'Vízsz. táv',
vSpace : 'Függ. táv',
alertUrl : 'Töltse ki a kép webcímét',
linkTab : 'Hivatkozás',
button2Img : 'A kiválasztott képgombból sima képet szeretne csinálni?',
img2Button : 'A kiválasztott képből képgombot szeretne csinálni?',
urlMissing : 'Hiányzik a kép URL-je',
validateBorder : 'A keret méretének egész számot kell beírni!',
validateHSpace : 'Vízszintes távolságnak egész számot kell beírni!',
validateVSpace : 'Függőleges távolságnak egész számot kell beírni!'
},
// Flash Dialog
flash :
{
properties : 'Flash tulajdonságai',
propertiesTab : 'Tulajdonságok',
title : 'Flash tulajdonságai',
chkPlay : 'Automata lejátszás',
chkLoop : 'Folyamatosan',
chkMenu : 'Flash menü engedélyezése',
chkFull : 'Teljes képernyő engedélyezése',
scale : 'Méretezés',
scaleAll : 'Mindent mutat',
scaleNoBorder : 'Keret nélkül',
scaleFit : 'Teljes kitöltés',
access : 'Szkript hozzáférés',
accessAlways : 'Mindig',
accessSameDomain: 'Azonos domainről',
accessNever : 'Soha',
alignAbsBottom : 'Legaljára',
alignAbsMiddle : 'Közepére',
alignBaseline : 'Alapvonalhoz',
alignTextTop : 'Szöveg tetejére',
quality : 'Minőség',
qualityBest : 'Legjobb',
qualityHigh : 'Jó',
qualityAutoHigh : 'Automata jó',
qualityMedium : 'Közepes',
qualityAutoLow : 'Automata gyenge',
qualityLow : 'Gyenge',
windowModeWindow: 'Window',
windowModeOpaque: 'Opaque',
windowModeTransparent : 'Transparent',
windowMode : 'Ablak mód',
flashvars : 'Flash változók',
bgcolor : 'Háttérszín',
hSpace : 'Vízsz. táv',
vSpace : 'Függ. táv',
validateSrc : 'Adja meg a hivatkozás webcímét',
validateHSpace : 'A vízszintes távolsűág mezőbe csak számokat írhat.',
validateVSpace : 'A függőleges távolsűág mezőbe csak számokat írhat.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Helyesírás-ellenőrzés',
title : 'Helyesírás ellenörző',
notAvailable : 'Sajnálom, de a szolgáltatás jelenleg nem elérhető.',
errorLoading : 'Hiba a szolgáltatás host betöltése közben: %s.',
notInDic : 'Nincs a szótárban',
changeTo : 'Módosítás',
btnIgnore : 'Kihagyja',
btnIgnoreAll : 'Mindet kihagyja',
btnReplace : 'Csere',
btnReplaceAll : 'Összes cseréje',
btnUndo : 'Visszavonás',
noSuggestions : 'Nincs javaslat',
progress : 'Helyesírás-ellenőrzés folyamatban...',
noMispell : 'Helyesírás-ellenőrzés kész: Nem találtam hibát',
noChanges : 'Helyesírás-ellenőrzés kész: Nincs változtatott szó',
oneChange : 'Helyesírás-ellenőrzés kész: Egy szó cserélve',
manyChanges : 'Helyesírás-ellenőrzés kész: %1 szó cserélve',
ieSpellDownload : 'A helyesírás-ellenőrző nincs telepítve. Szeretné letölteni most?'
},
smiley :
{
toolbar : 'Hangulatjelek',
title : 'Hangulatjel beszúrása',
options : 'Hangulatjel opciók'
},
elementsPath :
{
eleLabel : 'Elem utak',
eleTitle : '%1 elem'
},
numberedlist : 'Számozás',
bulletedlist : 'Felsorolás',
indent : 'Behúzás növelése',
outdent : 'Behúzás csökkentése',
justify :
{
left : 'Balra',
center : 'Középre',
right : 'Jobbra',
block : 'Sorkizárt'
},
blockquote : 'Idézet blokk',
clipboard :
{
title : 'Beillesztés',
cutError : 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a kivágás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).',
copyError : 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a másolás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).',
pasteMsg : 'Másolja be az alábbi mezőbe a <STRONG>Ctrl/Cmd+V</STRONG> billentyűk lenyomásával, majd nyomjon <STRONG>Rendben</STRONG>-t.',
securityMsg : 'A böngésző biztonsági beállításai miatt a szerkesztő nem képes hozzáférni a vágólap adataihoz. Illeszd be újra ebben az ablakban.',
pasteArea : 'Beszúrás mező'
},
pastefromword :
{
confirmCleanup : 'Úgy tűnik a beillesztett szöveget Word-ből másolt át. Meg szeretné tisztítani a szöveget? (ajánlott)',
toolbar : 'Beillesztés Word-ből',
title : 'Beillesztés Word-ből',
error : 'Egy belső hiba miatt nem sikerült megtisztítani a szöveget'
},
pasteText :
{
button : 'Beillesztés formázatlan szövegként',
title : 'Beillesztés formázatlan szövegként'
},
templates :
{
button : 'Sablonok',
title : 'Elérhető sablonok',
options : 'Sablon opciók',
insertOption : 'Kicseréli a jelenlegi tartalmat',
selectPromptMsg : 'Válassza ki melyik sablon nyíljon meg a szerkesztőben<br>(a jelenlegi tartalom elveszik):',
emptyListMsg : '(Nincs sablon megadva)'
},
showBlocks : 'Blokkok megjelenítése',
stylesCombo :
{
label : 'Stílus',
panelTitle : 'Formázási stílusok',
panelTitle1 : 'Blokk stílusok',
panelTitle2 : 'Inline stílusok',
panelTitle3 : 'Objektum stílusok'
},
format :
{
label : 'Formátum',
panelTitle : 'Formátum',
tag_p : 'Normál',
tag_pre : 'Formázott',
tag_address : 'Címsor',
tag_h1 : 'Fejléc 1',
tag_h2 : 'Fejléc 2',
tag_h3 : 'Fejléc 3',
tag_h4 : 'Fejléc 4',
tag_h5 : 'Fejléc 5',
tag_h6 : 'Fejléc 6',
tag_div : 'Bekezdés (DIV)'
},
div :
{
title : 'DIV tároló létrehozása',
toolbar : 'DIV tároló létrehozása',
cssClassInputLabel : 'Stíluslap osztály',
styleSelectLabel : 'Stílus',
IdInputLabel : 'Azonosító',
languageCodeInputLabel : ' Nyelv kódja',
inlineStyleInputLabel : 'Inline stílus',
advisoryTitleInputLabel : 'Tipp szöveg',
langDirLabel : 'Nyelvi irány',
langDirLTRLabel : 'Balról jobbra (LTR)',
langDirRTLLabel : 'Jobbról balra (RTL)',
edit : 'DIV szerkesztése',
remove : 'DIV eltávolítása'
},
iframe :
{
title : 'IFrame Tulajdonságok',
toolbar : 'IFrame',
noUrl : 'Kérem írja be a iframe URL-t',
scrolling : 'Gördítősáv bekapcsolása',
border : 'Legyen keret'
},
font :
{
label : 'Betűtípus',
voiceLabel : 'Betűtípus',
panelTitle : 'Betűtípus'
},
fontSize :
{
label : 'Méret',
voiceLabel : 'Betűméret',
panelTitle : 'Méret'
},
colorButton :
{
textColorTitle : 'Betűszín',
bgColorTitle : 'Háttérszín',
panelTitle : 'Színek',
auto : 'Automatikus',
more : 'További színek...'
},
colors :
{
'000' : 'Fekete',
'800000' : 'Bordó',
'8B4513' : 'Barna',
'2F4F4F' : 'Sötét türkiz',
'008080' : 'Türkiz',
'000080' : 'Király kék',
'4B0082' : 'Indigó kék',
'696969' : 'Szürke',
'B22222' : 'Tégla vörös',
'A52A2A' : 'Vörös',
'DAA520' : 'Arany sárga',
'006400' : 'Sötét zöld',
'40E0D0' : 'Türkiz',
'0000CD' : 'Kék',
'800080' : 'Lila',
'808080' : 'Szürke',
'F00' : 'Piros',
'FF8C00' : 'Sötét narancs',
'FFD700' : 'Arany',
'008000' : 'Zöld',
'0FF' : 'Türkiz',
'00F' : 'Kék',
'EE82EE' : 'Rózsaszín',
'A9A9A9' : 'Sötét szürke',
'FFA07A' : 'Lazac',
'FFA500' : 'Narancs',
'FFFF00' : 'Citromsárga',
'00FF00' : 'Neon zöld',
'AFEEEE' : 'Világos türkiz',
'ADD8E6' : 'Világos kék',
'DDA0DD' : 'Világos lila',
'D3D3D3' : 'Világos szürke',
'FFF0F5' : 'Lavender Blush',
'FAEBD7' : 'Törtfehér',
'FFFFE0' : 'Világos sárga',
'F0FFF0' : 'Menta',
'F0FFFF' : 'Azúr kék',
'F0F8FF' : 'Halvány kék',
'E6E6FA' : 'Lavender',
'FFF' : 'Fehér'
},
scayt :
{
title : 'Helyesírás ellenőrzés gépelés közben',
opera_title : 'Az Opera nem támogatja',
enable : 'SCAYT engedélyezése',
disable : 'SCAYT letiltása',
about : 'SCAYT névjegy',
toggle : 'SCAYT kapcsolása',
options : 'Beállítások',
langs : 'Nyelvek',
moreSuggestions : 'További javaslatok',
ignore : 'Kihagy',
ignoreAll : 'Összes kihagyása',
addWord : 'Szó hozzáadása',
emptyDic : 'A szótár nevét meg kell adni.',
optionsTab : 'Beállítások',
allCaps : 'Nagybetűs szavak kihagyása',
ignoreDomainNames : 'Domain nevek kihagyása',
mixedCase : 'Kis és nagybetűt is tartalmazó szavak kihagyása',
mixedWithDigits : 'Számokat tartalmazó szavak kihagyása',
languagesTab : 'Nyelvek',
dictionariesTab : 'Szótár',
dic_field_name : 'Szótár neve',
dic_create : 'Létrehozás',
dic_restore : 'Visszaállítás',
dic_delete : 'Törlés',
dic_rename : 'Átnevezés',
dic_info : 'Kezdetben a felhasználói szótár böngésző sütiben tárolódik. Azonban a sütik maximális mérete korlátozott. Amikora a szótár akkora lesz, hogy már sütiben nem lehet tárolni, akkor a szótárat tárolhatja a szerveren is. Ehhez egy nevet kell megadni a szótárhoz. Amennyiben már van szerveren tárolt szótára, adja meg a nevét és kattintson a visszaállítás gombra.',
aboutTab : 'Névjegy'
},
about :
{
title : 'CKEditor névjegy',
dlgTitle : 'CKEditor névjegy',
help : 'Itt találsz segítséget: $1',
userGuide : 'CKEditor Felhasználói útmutató',
moreInfo : 'Licenszelési információkért kérjük látogassa meg weboldalunkat:',
copy : 'Copyright © $1. Minden jog fenntartva.'
},
maximize : 'Teljes méret',
minimize : 'Kis méret',
fakeobjects :
{
anchor : 'Horgony',
flash : 'Flash animáció',
iframe : 'IFrame',
hiddenfield : 'Rejtett mezõ',
unknown : 'Ismeretlen objektum'
},
resize : 'Húzza az átméretezéshez',
colordialog :
{
title : 'Válasszon színt',
options : 'Szín opciók',
highlight : 'Nagyítás',
selected : 'Kiválasztott',
clear : 'Ürítés'
},
toolbarCollapse : 'Eszköztár összecsukása',
toolbarExpand : 'Eszköztár szétnyitása',
toolbarGroups :
{
document : 'Dokumentum',
clipboard : 'Vágólap/Visszavonás',
editing : 'Szerkesztés',
forms : 'Űrlapok',
basicstyles : 'Alapstílusok',
paragraph : 'Bekezdés',
links : 'Hivatkozások',
insert : 'Beszúrás',
styles : 'Stílusok',
colors : 'Színek',
tools : 'Eszközök'
},
bidi :
{
ltr : 'Szöveg iránya balról jobbra',
rtl : 'Szöveg iránya jobbról balra'
},
docprops :
{
label : 'Dokumentum tulajdonságai',
title : 'Dokumentum tulajdonságai',
design : 'Design',
meta : 'Meta adatok',
chooseColor : 'Válasszon',
other : '<más>',
docTitle : 'Oldalcím',
charset : 'Karakterkódolás',
charsetOther : 'Más karakterkódolás',
charsetASCII : 'ASCII',
charsetCE : 'Közép-Európai',
charsetCT : 'Kínai Tradicionális (Big5)',
charsetCR : 'Cyrill',
charsetGR : 'Görög',
charsetJP : 'Japán',
charsetKR : 'Koreai',
charsetTR : 'Török',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Nyugat-Európai',
docType : 'Dokumentum típus fejléc',
docTypeOther : 'Más dokumentum típus fejléc',
xhtmlDec : 'XHTML deklarációk beillesztése',
bgColor : 'Háttérszín',
bgImage : 'Háttérkép cím',
bgFixed : 'Nem gördíthető háttér',
txtColor : 'Betűszín',
margin : 'Oldal margók',
marginTop : 'Felső',
marginLeft : 'Bal',
marginRight : 'Jobb',
marginBottom : 'Alsó',
metaKeywords : 'Dokumentum keresőszavak (vesszővel elválasztva)',
metaDescription : 'Dokumentum leírás',
metaAuthor : 'Szerző',
metaCopyright : 'Szerzői jog',
previewHtml : '<p>Ez itt egy <strong>példa</strong>. A <a href="javascript:void(0)">CKEditor</a>-t használod.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/hu.js
|
JavaScript
|
gpl3
| 25,293
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* English (Australia) language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['en-au'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1, press ALT 0 for help.',
// ARIA descriptions.
toolbars : 'Editor toolbars',
editor : 'Rich Text Editor',
// Toolbar buttons without dialogs.
source : 'Source',
newPage : 'New Page',
save : 'Save',
preview : 'Preview',
cut : 'Cut',
copy : 'Copy',
paste : 'Paste',
print : 'Print',
underline : 'Underline',
bold : 'Bold',
italic : 'Italic',
selectAll : 'Select All',
removeFormat : 'Remove Format',
strike : 'Strike Through',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Insert Horizontal Line',
pagebreak : 'Insert Page Break for Printing',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Unlink',
undo : 'Undo',
redo : 'Redo',
// Common messages and labels.
common :
{
browseServer : 'Browse Server',
url : 'URL',
protocol : 'Protocol',
upload : 'Upload',
uploadSubmit : 'Send it to the Server',
image : 'Image',
flash : 'Flash',
form : 'Form',
checkbox : 'Checkbox',
radio : 'Radio Button',
textField : 'Text Field',
textarea : 'Textarea',
hiddenField : 'Hidden Field',
button : 'Button',
select : 'Selection Field',
imageButton : 'Image Button',
notSet : '<not set>',
id : 'Id',
name : 'Name',
langDir : 'Language Direction',
langDirLtr : 'Left to Right (LTR)',
langDirRtl : 'Right to Left (RTL)',
langCode : 'Language Code',
longDescr : 'Long Description URL',
cssClass : 'Stylesheet Classes',
advisoryTitle : 'Advisory Title',
cssStyle : 'Style',
ok : 'OK',
cancel : 'Cancel',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General',
advancedTab : 'Advanced',
validateNumberFailed : 'This value is not a number.',
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?',
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?',
options : 'Options', // MISSING
target : 'Target', // MISSING
targetNew : 'New Window (_blank)', // MISSING
targetTop : 'Topmost Window (_top)', // MISSING
targetSelf : 'Same Window (_self)', // MISSING
targetParent : 'Parent Window (_parent)', // MISSING
langDirLTR : 'Left to Right (LTR)', // MISSING
langDirRTL : 'Right to Left (RTL)', // MISSING
styles : 'Style', // MISSING
cssClasses : 'Stylesheet Classes', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
align : 'Align',
alignLeft : 'Left', // MISSING
alignRight : 'Right', // MISSING
alignCenter : 'Centre',
alignTop : 'Top', // MISSING
alignMiddle : 'Middle', // MISSING
alignBottom : 'Bottom', // MISSING
invalidHeight : 'Height must be a number.', // MISSING
invalidWidth : 'Width must be a number.', // MISSING
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Insert Special Character',
title : 'Select Special Character',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Link',
other : '<other>',
menu : 'Edit Link',
title : 'Link',
info : 'Link Info',
target : 'Target',
upload : 'Upload',
advanced : 'Advanced',
type : 'Link Type',
toUrl : 'URL', // MISSING
toAnchor : 'Link to anchor in the text',
toEmail : 'E-mail',
targetFrame : '<frame>',
targetPopup : '<popup window>',
targetFrameName : 'Target Frame Name',
targetPopupName : 'Popup Window Name',
popupFeatures : 'Popup Window Features',
popupResizable : 'Resizable',
popupStatusBar : 'Status Bar',
popupLocationBar: 'Location Bar',
popupToolbar : 'Toolbar',
popupMenuBar : 'Menu Bar',
popupFullScreen : 'Full Screen (IE)',
popupScrollBars : 'Scroll Bars',
popupDependent : 'Dependent (Netscape)',
popupLeft : 'Left Position',
popupTop : 'Top Position',
id : 'Id',
langDir : 'Language Direction',
langDirLTR : 'Left to Right (LTR)',
langDirRTL : 'Right to Left (RTL)',
acccessKey : 'Access Key',
name : 'Name',
langCode : 'Language Code',
tabIndex : 'Tab Index',
advisoryTitle : 'Advisory Title',
advisoryContentType : 'Advisory Content Type',
cssClasses : 'Stylesheet Classes',
charset : 'Linked Resource Charset',
styles : 'Style',
rel : 'Relationship', // MISSING
selectAnchor : 'Select an Anchor',
anchorName : 'By Anchor Name',
anchorId : 'By Element Id',
emailAddress : 'E-Mail Address',
emailSubject : 'Message Subject',
emailBody : 'Message Body',
noAnchors : '(No anchors available in the document)',
noUrl : 'Please type the link URL',
noEmail : 'Please type the e-mail address'
},
// Anchor dialog
anchor :
{
toolbar : 'Anchor',
menu : 'Edit Anchor',
title : 'Anchor Properties',
name : 'Anchor Name',
errorName : 'Please type the anchor name',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties', // MISSING
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Type', // MISSING
start : 'Start', // MISSING
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Circle', // MISSING
disc : 'Disc', // MISSING
square : 'Square', // MISSING
none : 'None', // MISSING
notset : '<not set>', // MISSING
armenian : 'Armenian numbering', // MISSING
georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING
lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING
upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING
lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING
upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING
lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING
decimal : 'Decimal (1, 2, 3, etc.)', // MISSING
decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Find and Replace',
find : 'Find',
replace : 'Replace',
findWhat : 'Find what:',
replaceWith : 'Replace with:',
notFoundMsg : 'The specified text was not found.',
findOptions : 'Find Options', // MISSING
matchCase : 'Match case',
matchWord : 'Match whole word',
matchCyclic : 'Match cyclic',
replaceAll : 'Replace All',
replaceSuccessMsg : '%1 occurrence(s) replaced.'
},
// Table Dialog
table :
{
toolbar : 'Table',
title : 'Table Properties',
menu : 'Table Properties',
deleteTable : 'Delete Table',
rows : 'Rows',
columns : 'Columns',
border : 'Border size',
widthPx : 'pixels',
widthPc : 'percent',
widthUnit : 'width unit', // MISSING
cellSpace : 'Cell spacing',
cellPad : 'Cell padding',
caption : 'Caption',
summary : 'Summary',
headers : 'Headers',
headersNone : 'None',
headersColumn : 'First column',
headersRow : 'First Row',
headersBoth : 'Both',
invalidRows : 'Number of rows must be a number greater than 0.',
invalidCols : 'Number of columns must be a number greater than 0.',
invalidBorder : 'Border size must be a number.',
invalidWidth : 'Table width must be a number.',
invalidHeight : 'Table height must be a number.',
invalidCellSpacing : 'Cell spacing must be a number.',
invalidCellPadding : 'Cell padding must be a number.',
cell :
{
menu : 'Cell',
insertBefore : 'Insert Cell Before',
insertAfter : 'Insert Cell After',
deleteCell : 'Delete Cells',
merge : 'Merge Cells',
mergeRight : 'Merge Right',
mergeDown : 'Merge Down',
splitHorizontal : 'Split Cell Horizontally',
splitVertical : 'Split Cell Vertically',
title : 'Cell Properties',
cellType : 'Cell Type',
rowSpan : 'Rows Span',
colSpan : 'Columns Span',
wordWrap : 'Word Wrap',
hAlign : 'Horizontal Alignment',
vAlign : 'Vertical Alignment',
alignBaseline : 'Baseline',
bgColor : 'Background Color',
borderColor : 'Border Color',
data : 'Data',
header : 'Header',
yes : 'Yes',
no : 'No',
invalidWidth : 'Cell width must be a number.',
invalidHeight : 'Cell height must be a number.',
invalidRowSpan : 'Rows span must be a whole number.',
invalidColSpan : 'Columns span must be a whole number.',
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'Row',
insertBefore : 'Insert Row Before',
insertAfter : 'Insert Row After',
deleteRow : 'Delete Rows'
},
column :
{
menu : 'Column',
insertBefore : 'Insert Column Before',
insertAfter : 'Insert Column After',
deleteColumn : 'Delete Columns'
}
},
// Button Dialog.
button :
{
title : 'Button Properties',
text : 'Text (Value)',
type : 'Type',
typeBtn : 'Button',
typeSbm : 'Submit',
typeRst : 'Reset'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox Properties',
radioTitle : 'Radio Button Properties',
value : 'Value',
selected : 'Selected'
},
// Form Dialog.
form :
{
title : 'Form Properties',
menu : 'Form Properties',
action : 'Action',
method : 'Method',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Selection Field Properties',
selectInfo : 'Select Info',
opAvail : 'Available Options',
value : 'Value',
size : 'Size',
lines : 'lines',
chkMulti : 'Allow multiple selections',
opText : 'Text',
opValue : 'Value',
btnAdd : 'Add',
btnModify : 'Modify',
btnUp : 'Up',
btnDown : 'Down',
btnSetValue : 'Set as selected value',
btnDelete : 'Delete'
},
// Textarea Dialog.
textarea :
{
title : 'Textarea Properties',
cols : 'Columns',
rows : 'Rows'
},
// Text Field Dialog.
textfield :
{
title : 'Text Field Properties',
name : 'Name',
value : 'Value',
charWidth : 'Character Width',
maxChars : 'Maximum Characters',
type : 'Type',
typeText : 'Text',
typePass : 'Password'
},
// Hidden Field Dialog.
hidden :
{
title : 'Hidden Field Properties',
name : 'Name',
value : 'Value'
},
// Image Dialog.
image :
{
title : 'Image Properties',
titleButton : 'Image Button Properties',
menu : 'Image Properties',
infoTab : 'Image Info',
btnUpload : 'Send it to the Server',
upload : 'Upload',
alt : 'Alternative Text',
lockRatio : 'Lock Ratio',
resetSize : 'Reset Size',
border : 'Border',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Please type the image URL',
linkTab : 'Link',
button2Img : 'Do you want to transform the selected image button on a simple image?',
img2Button : 'Do you want to transform the selected image on a image button?',
urlMissing : 'Image source URL is missing.', // MISSING
validateBorder : 'Border must be a whole number.', // MISSING
validateHSpace : 'HSpace must be a whole number.', // MISSING
validateVSpace : 'VSpace must be a whole number.' // MISSING
},
// Flash Dialog
flash :
{
properties : 'Flash Properties',
propertiesTab : 'Properties',
title : 'Flash Properties',
chkPlay : 'Auto Play',
chkLoop : 'Loop',
chkMenu : 'Enable Flash Menu',
chkFull : 'Allow Fullscreen',
scale : 'Scale',
scaleAll : 'Show all',
scaleNoBorder : 'No Border',
scaleFit : 'Exact Fit',
access : 'Script Access',
accessAlways : 'Always',
accessSameDomain: 'Same domain',
accessNever : 'Never',
alignAbsBottom : 'Abs Bottom',
alignAbsMiddle : 'Abs Middle',
alignBaseline : 'Baseline',
alignTextTop : 'Text Top',
quality : 'Quality',
qualityBest : 'Best', // MISSING
qualityHigh : 'High', // MISSING
qualityAutoHigh : 'Auto High', // MISSING
qualityMedium : 'Medium', // MISSING
qualityAutoLow : 'Auto Low', // MISSING
qualityLow : 'Low', // MISSING
windowModeWindow: 'Window', // MISSING
windowModeOpaque: 'Opaque', // MISSING
windowModeTransparent : 'Transparent', // MISSING
windowMode : 'Window mode',
flashvars : 'Variables for Flash',
bgcolor : 'Background colour',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'URL must not be empty.',
validateHSpace : 'HSpace must be a number.',
validateVSpace : 'VSpace must be a number.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Check Spelling',
title : 'Spell Check',
notAvailable : 'Sorry, but service is unavailable now.',
errorLoading : 'Error loading application service host: %s.',
notInDic : 'Not in dictionary',
changeTo : 'Change to',
btnIgnore : 'Ignore',
btnIgnoreAll : 'Ignore All',
btnReplace : 'Replace',
btnReplaceAll : 'Replace All',
btnUndo : 'Undo',
noSuggestions : '- No suggestions -',
progress : 'Spell check in progress...',
noMispell : 'Spell check complete: No misspellings found',
noChanges : 'Spell check complete: No words changed',
oneChange : 'Spell check complete: One word changed',
manyChanges : 'Spell check complete: %1 words changed',
ieSpellDownload : 'Spell checker not installed. Do you want to download it now?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Insert a Smiley',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element'
},
numberedlist : 'Insert/Remove Numbered List',
bulletedlist : 'Insert/Remove Bulleted List',
indent : 'Increase Indent',
outdent : 'Decrease Indent',
justify :
{
left : 'Align Left',
center : 'Centre',
right : 'Align Right',
block : 'Justify'
},
blockquote : 'Block Quote',
clipboard :
{
title : 'Paste',
cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).',
copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).',
pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK',
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.',
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING
toolbar : 'Paste from Word',
title : 'Paste from Word',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Paste as plain text',
title : 'Paste as Plain Text'
},
templates :
{
button : 'Templates',
title : 'Content Templates',
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents',
selectPromptMsg : 'Please select the template to open in the editor',
emptyListMsg : '(No templates defined)'
},
showBlocks : 'Show Blocks',
stylesCombo :
{
label : 'Styles',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles',
panelTitle2 : 'Inline Styles',
panelTitle3 : 'Object Styles'
},
format :
{
label : 'Format',
panelTitle : 'Paragraph Format',
tag_p : 'Normal',
tag_pre : 'Formatted',
tag_address : 'Address',
tag_h1 : 'Heading 1',
tag_h2 : 'Heading 2',
tag_h3 : 'Heading 3',
tag_h4 : 'Heading 4',
tag_h5 : 'Heading 5',
tag_h6 : 'Heading 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Create Div Container', // MISSING
toolbar : 'Create Div Container', // MISSING
cssClassInputLabel : 'Stylesheet Classes', // MISSING
styleSelectLabel : 'Style', // MISSING
IdInputLabel : 'Id', // MISSING
languageCodeInputLabel : ' Language Code', // MISSING
inlineStyleInputLabel : 'Inline Style', // MISSING
advisoryTitleInputLabel : 'Advisory Title', // MISSING
langDirLabel : 'Language Direction', // MISSING
langDirLTRLabel : 'Left to Right (LTR)', // MISSING
langDirRTLLabel : 'Right to Left (RTL)', // MISSING
edit : 'Edit Div', // MISSING
remove : 'Remove Div' // MISSING
},
iframe :
{
title : 'IFrame Properties', // MISSING
toolbar : 'IFrame', // MISSING
noUrl : 'Please type the iframe URL', // MISSING
scrolling : 'Enable scrollbars', // MISSING
border : 'Show frame border' // MISSING
},
font :
{
label : 'Font',
voiceLabel : 'Font', // MISSING
panelTitle : 'Font Name'
},
fontSize :
{
label : 'Size',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Font Size'
},
colorButton :
{
textColorTitle : 'Text Colour',
bgColorTitle : 'Background Colour',
panelTitle : 'Colors', // MISSING
auto : 'Automatic',
more : 'More Colours...'
},
colors :
{
'000' : 'Black', // MISSING
'800000' : 'Maroon', // MISSING
'8B4513' : 'Saddle Brown', // MISSING
'2F4F4F' : 'Dark Slate Gray', // MISSING
'008080' : 'Teal', // MISSING
'000080' : 'Navy', // MISSING
'4B0082' : 'Indigo', // MISSING
'696969' : 'Dark Gray', // MISSING
'B22222' : 'Fire Brick', // MISSING
'A52A2A' : 'Brown', // MISSING
'DAA520' : 'Golden Rod', // MISSING
'006400' : 'Dark Green', // MISSING
'40E0D0' : 'Turquoise', // MISSING
'0000CD' : 'Medium Blue', // MISSING
'800080' : 'Purple', // MISSING
'808080' : 'Gray', // MISSING
'F00' : 'Red', // MISSING
'FF8C00' : 'Dark Orange', // MISSING
'FFD700' : 'Gold', // MISSING
'008000' : 'Green', // MISSING
'0FF' : 'Cyan', // MISSING
'00F' : 'Blue', // MISSING
'EE82EE' : 'Violet', // MISSING
'A9A9A9' : 'Dim Gray', // MISSING
'FFA07A' : 'Light Salmon', // MISSING
'FFA500' : 'Orange', // MISSING
'FFFF00' : 'Yellow', // MISSING
'00FF00' : 'Lime', // MISSING
'AFEEEE' : 'Pale Turquoise', // MISSING
'ADD8E6' : 'Light Blue', // MISSING
'DDA0DD' : 'Plum', // MISSING
'D3D3D3' : 'Light Grey', // MISSING
'FFF0F5' : 'Lavender Blush', // MISSING
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'Light Yellow', // MISSING
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'Azure', // MISSING
'F0F8FF' : 'Alice Blue', // MISSING
'E6E6FA' : 'Lavender', // MISSING
'FFF' : 'White' // MISSING
},
scayt :
{
title : 'Spell Check As You Type', // MISSING
opera_title : 'Not supported by Opera', // MISSING
enable : 'Enable SCAYT', // MISSING
disable : 'Disable SCAYT', // MISSING
about : 'About SCAYT', // MISSING
toggle : 'Toggle SCAYT', // MISSING
options : 'Options', // MISSING
langs : 'Languages', // MISSING
moreSuggestions : 'More suggestions', // MISSING
ignore : 'Ignore', // MISSING
ignoreAll : 'Ignore All', // MISSING
addWord : 'Add Word', // MISSING
emptyDic : 'Dictionary name should not be empty.', // MISSING
optionsTab : 'Options', // MISSING
allCaps : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Ignore Words with Numbers', // MISSING
languagesTab : 'Languages', // MISSING
dictionariesTab : 'Dictionaries', // MISSING
dic_field_name : 'Dictionary name', // MISSING
dic_create : 'Create', // MISSING
dic_restore : 'Restore', // MISSING
dic_delete : 'Delete', // MISSING
dic_rename : 'Rename', // MISSING
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING
aboutTab : 'About' // MISSING
},
about :
{
title : 'About CKEditor',
dlgTitle : 'About CKEditor', // MISSING
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'For licensing information please visit our web site:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Maximize',
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Anchor', // MISSING
flash : 'Flash Animation', // MISSING
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Unknown Object' // MISSING
},
resize : 'Drag to resize', // MISSING
colordialog :
{
title : 'Select color', // MISSING
options : 'Color Options', // MISSING
highlight : 'Highlight', // MISSING
selected : 'Selected Color', // MISSING
clear : 'Clear' // MISSING
},
toolbarCollapse : 'Collapse Toolbar', // MISSING
toolbarExpand : 'Expand Toolbar', // MISSING
toolbarGroups :
{
document : 'Document', // MISSING
clipboard : 'Clipboard/Undo', // MISSING
editing : 'Editing', // MISSING
forms : 'Forms', // MISSING
basicstyles : 'Basic Styles', // MISSING
paragraph : 'Paragraph', // MISSING
links : 'Links', // MISSING
insert : 'Insert', // MISSING
styles : 'Styles', // MISSING
colors : 'Colors', // MISSING
tools : 'Tools' // MISSING
},
bidi :
{
ltr : 'Text direction from left to right', // MISSING
rtl : 'Text direction from right to left' // MISSING
},
docprops :
{
label : 'Document Properties', // MISSING
title : 'Document Properties', // MISSING
design : 'Design', // MISSING
meta : 'Meta Tags', // MISSING
chooseColor : 'Choose', // MISSING
other : 'Other...', // MISSING
docTitle : 'Page Title', // MISSING
charset : 'Character Set Encoding', // MISSING
charsetOther : 'Other Character Set Encoding', // MISSING
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Central European', // MISSING
charsetCT : 'Chinese Traditional (Big5)', // MISSING
charsetCR : 'Cyrillic', // MISSING
charsetGR : 'Greek', // MISSING
charsetJP : 'Japanese', // MISSING
charsetKR : 'Korean', // MISSING
charsetTR : 'Turkish', // MISSING
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Western European', // MISSING
docType : 'Document Type Heading', // MISSING
docTypeOther : 'Other Document Type Heading', // MISSING
xhtmlDec : 'Include XHTML Declarations', // MISSING
bgColor : 'Background Color', // MISSING
bgImage : 'Background Image URL', // MISSING
bgFixed : 'Non-scrolling (Fixed) Background', // MISSING
txtColor : 'Text Color', // MISSING
margin : 'Page Margins', // MISSING
marginTop : 'Top', // MISSING
marginLeft : 'Left', // MISSING
marginRight : 'Right', // MISSING
marginBottom : 'Bottom', // MISSING
metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING
metaDescription : 'Document Description', // MISSING
metaAuthor : 'Author', // MISSING
metaCopyright : 'Copyright', // MISSING
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/en-au.js
|
JavaScript
|
gpl3
| 25,432
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object for the English
* language. This is the base file for all translations.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['en'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1, press ALT 0 for help.',
// ARIA descriptions.
toolbars : 'Editor toolbars',
editor : 'Rich Text Editor',
// Toolbar buttons without dialogs.
source : 'Source',
newPage : 'New Page',
save : 'Save',
preview : 'Preview',
cut : 'Cut',
copy : 'Copy',
paste : 'Paste',
print : 'Print',
underline : 'Underline',
bold : 'Bold',
italic : 'Italic',
selectAll : 'Select All',
removeFormat : 'Remove Format',
strike : 'Strike Through',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Insert Horizontal Line',
pagebreak : 'Insert Page Break for Printing',
pagebreakAlt : 'Page Break',
unlink : 'Unlink',
undo : 'Undo',
redo : 'Redo',
// Common messages and labels.
common :
{
browseServer : 'Browse Server',
url : 'URL',
protocol : 'Protocol',
upload : 'Upload',
uploadSubmit : 'Send it to the Server',
image : 'Image',
flash : 'Flash',
form : 'Form',
checkbox : 'Checkbox',
radio : 'Radio Button',
textField : 'Text Field',
textarea : 'Textarea',
hiddenField : 'Hidden Field',
button : 'Button',
select : 'Selection Field',
imageButton : 'Image Button',
notSet : '<not set>',
id : 'Id',
name : 'Name',
langDir : 'Language Direction',
langDirLtr : 'Left to Right (LTR)',
langDirRtl : 'Right to Left (RTL)',
langCode : 'Language Code',
longDescr : 'Long Description URL',
cssClass : 'Stylesheet Classes',
advisoryTitle : 'Advisory Title',
cssStyle : 'Style',
ok : 'OK',
cancel : 'Cancel',
close : 'Close',
preview : 'Preview',
generalTab : 'General',
advancedTab : 'Advanced',
validateNumberFailed : 'This value is not a number.',
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?',
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?',
options : 'Options',
target : 'Target',
targetNew : 'New Window (_blank)',
targetTop : 'Topmost Window (_top)',
targetSelf : 'Same Window (_self)',
targetParent : 'Parent Window (_parent)',
langDirLTR : 'Left to Right (LTR)',
langDirRTL : 'Right to Left (RTL)',
styles : 'Style',
cssClasses : 'Stylesheet Classes',
width : 'Width',
height : 'Height',
align : 'Alignment',
alignLeft : 'Left',
alignRight : 'Right',
alignCenter : 'Center',
alignTop : 'Top',
alignMiddle : 'Middle',
alignBottom : 'Bottom',
invalidHeight : 'Height must be a number.',
invalidWidth : 'Width must be a number.',
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).',
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).',
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.',
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>'
},
contextmenu :
{
options : 'Context Menu Options'
},
// Special char dialog.
specialChar :
{
toolbar : 'Insert Special Character',
title : 'Select Special Character',
options : 'Special Character Options'
},
// Link dialog.
link :
{
toolbar : 'Link',
other : '<other>',
menu : 'Edit Link',
title : 'Link',
info : 'Link Info',
target : 'Target',
upload : 'Upload',
advanced : 'Advanced',
type : 'Link Type',
toUrl : 'URL',
toAnchor : 'Link to anchor in the text',
toEmail : 'E-mail',
targetFrame : '<frame>',
targetPopup : '<popup window>',
targetFrameName : 'Target Frame Name',
targetPopupName : 'Popup Window Name',
popupFeatures : 'Popup Window Features',
popupResizable : 'Resizable',
popupStatusBar : 'Status Bar',
popupLocationBar: 'Location Bar',
popupToolbar : 'Toolbar',
popupMenuBar : 'Menu Bar',
popupFullScreen : 'Full Screen (IE)',
popupScrollBars : 'Scroll Bars',
popupDependent : 'Dependent (Netscape)',
popupLeft : 'Left Position',
popupTop : 'Top Position',
id : 'Id',
langDir : 'Language Direction',
langDirLTR : 'Left to Right (LTR)',
langDirRTL : 'Right to Left (RTL)',
acccessKey : 'Access Key',
name : 'Name',
langCode : 'Language Code',
tabIndex : 'Tab Index',
advisoryTitle : 'Advisory Title',
advisoryContentType : 'Advisory Content Type',
cssClasses : 'Stylesheet Classes',
charset : 'Linked Resource Charset',
styles : 'Style',
rel : 'Relationship',
selectAnchor : 'Select an Anchor',
anchorName : 'By Anchor Name',
anchorId : 'By Element Id',
emailAddress : 'E-Mail Address',
emailSubject : 'Message Subject',
emailBody : 'Message Body',
noAnchors : '(No anchors available in the document)',
noUrl : 'Please type the link URL',
noEmail : 'Please type the e-mail address'
},
// Anchor dialog
anchor :
{
toolbar : 'Anchor',
menu : 'Edit Anchor',
title : 'Anchor Properties',
name : 'Anchor Name',
errorName : 'Please type the anchor name',
remove : 'Remove Anchor'
},
// List style dialog
list:
{
numberedTitle : 'Numbered List Properties',
bulletedTitle : 'Bulleted List Properties',
type : 'Type',
start : 'Start',
validateStartNumber :'List start number must be a whole number.',
circle : 'Circle',
disc : 'Disc',
square : 'Square',
none : 'None',
notset : '<not set>',
armenian : 'Armenian numbering',
georgian : 'Georgian numbering (an, ban, gan, etc.)',
lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)',
upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)',
lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)',
upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)',
lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)',
decimal : 'Decimal (1, 2, 3, etc.)',
decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Find and Replace',
find : 'Find',
replace : 'Replace',
findWhat : 'Find what:',
replaceWith : 'Replace with:',
notFoundMsg : 'The specified text was not found.',
findOptions : 'Find Options',
matchCase : 'Match case',
matchWord : 'Match whole word',
matchCyclic : 'Match cyclic',
replaceAll : 'Replace All',
replaceSuccessMsg : '%1 occurrence(s) replaced.'
},
// Table Dialog
table :
{
toolbar : 'Table',
title : 'Table Properties',
menu : 'Table Properties',
deleteTable : 'Delete Table',
rows : 'Rows',
columns : 'Columns',
border : 'Border size',
widthPx : 'pixels',
widthPc : 'percent',
widthUnit : 'width unit',
cellSpace : 'Cell spacing',
cellPad : 'Cell padding',
caption : 'Caption',
summary : 'Summary',
headers : 'Headers',
headersNone : 'None',
headersColumn : 'First column',
headersRow : 'First Row',
headersBoth : 'Both',
invalidRows : 'Number of rows must be a number greater than 0.',
invalidCols : 'Number of columns must be a number greater than 0.',
invalidBorder : 'Border size must be a number.',
invalidWidth : 'Table width must be a number.',
invalidHeight : 'Table height must be a number.',
invalidCellSpacing : 'Cell spacing must be a positive number.',
invalidCellPadding : 'Cell padding must be a positive number.',
cell :
{
menu : 'Cell',
insertBefore : 'Insert Cell Before',
insertAfter : 'Insert Cell After',
deleteCell : 'Delete Cells',
merge : 'Merge Cells',
mergeRight : 'Merge Right',
mergeDown : 'Merge Down',
splitHorizontal : 'Split Cell Horizontally',
splitVertical : 'Split Cell Vertically',
title : 'Cell Properties',
cellType : 'Cell Type',
rowSpan : 'Rows Span',
colSpan : 'Columns Span',
wordWrap : 'Word Wrap',
hAlign : 'Horizontal Alignment',
vAlign : 'Vertical Alignment',
alignBaseline : 'Baseline',
bgColor : 'Background Color',
borderColor : 'Border Color',
data : 'Data',
header : 'Header',
yes : 'Yes',
no : 'No',
invalidWidth : 'Cell width must be a number.',
invalidHeight : 'Cell height must be a number.',
invalidRowSpan : 'Rows span must be a whole number.',
invalidColSpan : 'Columns span must be a whole number.',
chooseColor : 'Choose'
},
row :
{
menu : 'Row',
insertBefore : 'Insert Row Before',
insertAfter : 'Insert Row After',
deleteRow : 'Delete Rows'
},
column :
{
menu : 'Column',
insertBefore : 'Insert Column Before',
insertAfter : 'Insert Column After',
deleteColumn : 'Delete Columns'
}
},
// Button Dialog.
button :
{
title : 'Button Properties',
text : 'Text (Value)',
type : 'Type',
typeBtn : 'Button',
typeSbm : 'Submit',
typeRst : 'Reset'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox Properties',
radioTitle : 'Radio Button Properties',
value : 'Value',
selected : 'Selected'
},
// Form Dialog.
form :
{
title : 'Form Properties',
menu : 'Form Properties',
action : 'Action',
method : 'Method',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Selection Field Properties',
selectInfo : 'Select Info',
opAvail : 'Available Options',
value : 'Value',
size : 'Size',
lines : 'lines',
chkMulti : 'Allow multiple selections',
opText : 'Text',
opValue : 'Value',
btnAdd : 'Add',
btnModify : 'Modify',
btnUp : 'Up',
btnDown : 'Down',
btnSetValue : 'Set as selected value',
btnDelete : 'Delete'
},
// Textarea Dialog.
textarea :
{
title : 'Textarea Properties',
cols : 'Columns',
rows : 'Rows'
},
// Text Field Dialog.
textfield :
{
title : 'Text Field Properties',
name : 'Name',
value : 'Value',
charWidth : 'Character Width',
maxChars : 'Maximum Characters',
type : 'Type',
typeText : 'Text',
typePass : 'Password'
},
// Hidden Field Dialog.
hidden :
{
title : 'Hidden Field Properties',
name : 'Name',
value : 'Value'
},
// Image Dialog.
image :
{
title : 'Image Properties',
titleButton : 'Image Button Properties',
menu : 'Image Properties',
infoTab : 'Image Info',
btnUpload : 'Send it to the Server',
upload : 'Upload',
alt : 'Alternative Text',
lockRatio : 'Lock Ratio',
resetSize : 'Reset Size',
border : 'Border',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Please type the image URL',
linkTab : 'Link',
button2Img : 'Do you want to transform the selected image button on a simple image?',
img2Button : 'Do you want to transform the selected image on a image button?',
urlMissing : 'Image source URL is missing.',
validateBorder : 'Border must be a whole number.',
validateHSpace : 'HSpace must be a whole number.',
validateVSpace : 'VSpace must be a whole number.'
},
// Flash Dialog
flash :
{
properties : 'Flash Properties',
propertiesTab : 'Properties',
title : 'Flash Properties',
chkPlay : 'Auto Play',
chkLoop : 'Loop',
chkMenu : 'Enable Flash Menu',
chkFull : 'Allow Fullscreen',
scale : 'Scale',
scaleAll : 'Show all',
scaleNoBorder : 'No Border',
scaleFit : 'Exact Fit',
access : 'Script Access',
accessAlways : 'Always',
accessSameDomain: 'Same domain',
accessNever : 'Never',
alignAbsBottom : 'Abs Bottom',
alignAbsMiddle : 'Abs Middle',
alignBaseline : 'Baseline',
alignTextTop : 'Text Top',
quality : 'Quality',
qualityBest : 'Best',
qualityHigh : 'High',
qualityAutoHigh : 'Auto High',
qualityMedium : 'Medium',
qualityAutoLow : 'Auto Low',
qualityLow : 'Low',
windowModeWindow: 'Window',
windowModeOpaque: 'Opaque',
windowModeTransparent : 'Transparent',
windowMode : 'Window mode',
flashvars : 'Variables for Flash',
bgcolor : 'Background color',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'URL must not be empty.',
validateHSpace : 'HSpace must be a number.',
validateVSpace : 'VSpace must be a number.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Check Spelling',
title : 'Spell Check',
notAvailable : 'Sorry, but service is unavailable now.',
errorLoading : 'Error loading application service host: %s.',
notInDic : 'Not in dictionary',
changeTo : 'Change to',
btnIgnore : 'Ignore',
btnIgnoreAll : 'Ignore All',
btnReplace : 'Replace',
btnReplaceAll : 'Replace All',
btnUndo : 'Undo',
noSuggestions : '- No suggestions -',
progress : 'Spell check in progress...',
noMispell : 'Spell check complete: No misspellings found',
noChanges : 'Spell check complete: No words changed',
oneChange : 'Spell check complete: One word changed',
manyChanges : 'Spell check complete: %1 words changed',
ieSpellDownload : 'Spell checker not installed. Do you want to download it now?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Insert a Smiley',
options : 'Smiley Options'
},
elementsPath :
{
eleLabel : 'Elements path',
eleTitle : '%1 element'
},
numberedlist : 'Insert/Remove Numbered List',
bulletedlist : 'Insert/Remove Bulleted List',
indent : 'Increase Indent',
outdent : 'Decrease Indent',
justify :
{
left : 'Align Left',
center : 'Center',
right : 'Align Right',
block : 'Justify'
},
blockquote : 'Block Quote',
clipboard :
{
title : 'Paste',
cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).',
copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).',
pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK',
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.',
pasteArea : 'Paste Area'
},
pastefromword :
{
confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?',
toolbar : 'Paste from Word',
title : 'Paste from Word',
error : 'It was not possible to clean up the pasted data due to an internal error'
},
pasteText :
{
button : 'Paste as plain text',
title : 'Paste as Plain Text'
},
templates :
{
button : 'Templates',
title : 'Content Templates',
options : 'Template Options',
insertOption : 'Replace actual contents',
selectPromptMsg : 'Please select the template to open in the editor',
emptyListMsg : '(No templates defined)'
},
showBlocks : 'Show Blocks',
stylesCombo :
{
label : 'Styles',
panelTitle : 'Formatting Styles',
panelTitle1 : 'Block Styles',
panelTitle2 : 'Inline Styles',
panelTitle3 : 'Object Styles'
},
format :
{
label : 'Format',
panelTitle : 'Paragraph Format',
tag_p : 'Normal',
tag_pre : 'Formatted',
tag_address : 'Address',
tag_h1 : 'Heading 1',
tag_h2 : 'Heading 2',
tag_h3 : 'Heading 3',
tag_h4 : 'Heading 4',
tag_h5 : 'Heading 5',
tag_h6 : 'Heading 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Create Div Container',
toolbar : 'Create Div Container',
cssClassInputLabel : 'Stylesheet Classes',
styleSelectLabel : 'Style',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Language Code',
inlineStyleInputLabel : 'Inline Style',
advisoryTitleInputLabel : 'Advisory Title',
langDirLabel : 'Language Direction',
langDirLTRLabel : 'Left to Right (LTR)',
langDirRTLLabel : 'Right to Left (RTL)',
edit : 'Edit Div',
remove : 'Remove Div'
},
iframe :
{
title : 'IFrame Properties',
toolbar : 'IFrame',
noUrl : 'Please type the iframe URL',
scrolling : 'Enable scrollbars',
border : 'Show frame border'
},
font :
{
label : 'Font',
voiceLabel : 'Font',
panelTitle : 'Font Name'
},
fontSize :
{
label : 'Size',
voiceLabel : 'Font Size',
panelTitle : 'Font Size'
},
colorButton :
{
textColorTitle : 'Text Color',
bgColorTitle : 'Background Color',
panelTitle : 'Colors',
auto : 'Automatic',
more : 'More Colors...'
},
colors :
{
'000' : 'Black',
'800000' : 'Maroon',
'8B4513' : 'Saddle Brown',
'2F4F4F' : 'Dark Slate Gray',
'008080' : 'Teal',
'000080' : 'Navy',
'4B0082' : 'Indigo',
'696969' : 'Dark Gray',
'B22222' : 'Fire Brick',
'A52A2A' : 'Brown',
'DAA520' : 'Golden Rod',
'006400' : 'Dark Green',
'40E0D0' : 'Turquoise',
'0000CD' : 'Medium Blue',
'800080' : 'Purple',
'808080' : 'Gray',
'F00' : 'Red',
'FF8C00' : 'Dark Orange',
'FFD700' : 'Gold',
'008000' : 'Green',
'0FF' : 'Cyan',
'00F' : 'Blue',
'EE82EE' : 'Violet',
'A9A9A9' : 'Dim Gray',
'FFA07A' : 'Light Salmon',
'FFA500' : 'Orange',
'FFFF00' : 'Yellow',
'00FF00' : 'Lime',
'AFEEEE' : 'Pale Turquoise',
'ADD8E6' : 'Light Blue',
'DDA0DD' : 'Plum',
'D3D3D3' : 'Light Grey',
'FFF0F5' : 'Lavender Blush',
'FAEBD7' : 'Antique White',
'FFFFE0' : 'Light Yellow',
'F0FFF0' : 'Honeydew',
'F0FFFF' : 'Azure',
'F0F8FF' : 'Alice Blue',
'E6E6FA' : 'Lavender',
'FFF' : 'White'
},
scayt :
{
title : 'Spell Check As You Type',
opera_title : 'Not supported by Opera',
enable : 'Enable SCAYT',
disable : 'Disable SCAYT',
about : 'About SCAYT',
toggle : 'Toggle SCAYT',
options : 'Options',
langs : 'Languages',
moreSuggestions : 'More suggestions',
ignore : 'Ignore',
ignoreAll : 'Ignore All',
addWord : 'Add Word',
emptyDic : 'Dictionary name should not be empty.',
optionsTab : 'Options',
allCaps : 'Ignore All-Caps Words',
ignoreDomainNames : 'Ignore Domain Names',
mixedCase : 'Ignore Words with Mixed Case',
mixedWithDigits : 'Ignore Words with Numbers',
languagesTab : 'Languages',
dictionariesTab : 'Dictionaries',
dic_field_name : 'Dictionary name',
dic_create : 'Create',
dic_restore : 'Restore',
dic_delete : 'Delete',
dic_rename : 'Rename',
dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.',
aboutTab : 'About'
},
about :
{
title : 'About CKEditor',
dlgTitle : 'About CKEditor',
help : 'Check $1 for help.',
userGuide : 'CKEditor User\'s Guide',
moreInfo : 'For licensing information please visit our web site:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Maximize',
minimize : 'Minimize',
fakeobjects :
{
anchor : 'Anchor',
flash : 'Flash Animation',
iframe : 'IFrame',
hiddenfield : 'Hidden Field',
unknown : 'Unknown Object'
},
resize : 'Drag to resize',
colordialog :
{
title : 'Select color',
options : 'Color Options',
highlight : 'Highlight',
selected : 'Selected Color',
clear : 'Clear'
},
toolbarCollapse : 'Collapse Toolbar',
toolbarExpand : 'Expand Toolbar',
toolbarGroups :
{
document : 'Document',
clipboard : 'Clipboard/Undo',
editing : 'Editing',
forms : 'Forms',
basicstyles : 'Basic Styles',
paragraph : 'Paragraph',
links : 'Links',
insert : 'Insert',
styles : 'Styles',
colors : 'Colors',
tools : 'Tools'
},
bidi :
{
ltr : 'Text direction from left to right',
rtl : 'Text direction from right to left'
},
docprops :
{
label : 'Document Properties',
title : 'Document Properties',
design : 'Design',
meta : 'Meta Tags',
chooseColor : 'Choose',
other : 'Other...',
docTitle : 'Page Title',
charset : 'Character Set Encoding',
charsetOther : 'Other Character Set Encoding',
charsetASCII : 'ASCII',
charsetCE : 'Central European',
charsetCT : 'Chinese Traditional (Big5)',
charsetCR : 'Cyrillic',
charsetGR : 'Greek',
charsetJP : 'Japanese',
charsetKR : 'Korean',
charsetTR : 'Turkish',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Western European',
docType : 'Document Type Heading',
docTypeOther : 'Other Document Type Heading',
xhtmlDec : 'Include XHTML Declarations',
bgColor : 'Background Color',
bgImage : 'Background Image URL',
bgFixed : 'Non-scrolling (Fixed) Background',
txtColor : 'Text Color',
margin : 'Page Margins',
marginTop : 'Top',
marginLeft : 'Left',
marginRight : 'Right',
marginBottom : 'Bottom',
metaKeywords : 'Document Indexing Keywords (comma separated)',
metaDescription : 'Document Description',
metaAuthor : 'Author',
metaCopyright : 'Copyright',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/lang/en.js
|
JavaScript
|
gpl3
| 22,971
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.scriptLoader} object, used to load scripts
* asynchronously.
*/
/**
* Load scripts asynchronously.
* @namespace
* @example
*/
CKEDITOR.scriptLoader = (function()
{
var uniqueScripts = {},
waitingList = {};
return /** @lends CKEDITOR.scriptLoader */ {
/**
* Loads one or more external script checking if not already loaded
* previously by this function.
* @param {String|Array} scriptUrl One or more URLs pointing to the
* scripts to be loaded.
* @param {Function} [callback] A function to be called when the script
* is loaded and executed. If a string is passed to "scriptUrl", a
* boolean parameter is passed to the callback, indicating the
* success of the load. If an array is passed instead, two array
* parameters are passed to the callback; the first contains the
* URLs that have been properly loaded, and the second the failed
* ones.
* @param {Object} [scope] The scope ("this" reference) to be used for
* the callback call. Default to {@link CKEDITOR}.
* @param {Boolean} [showBusy] Changes the cursor of the document while
+ * the script is loaded.
* @example
* CKEDITOR.scriptLoader.load( '/myscript.js' );
* @example
* CKEDITOR.scriptLoader.load( '/myscript.js', function( success )
* {
* // Alerts "true" if the script has been properly loaded.
* // HTTP error 404 should return "false".
* alert( success );
* });
* @example
* CKEDITOR.scriptLoader.load( [ '/myscript1.js', '/myscript2.js' ], function( completed, failed )
* {
* alert( 'Number of scripts loaded: ' + completed.length );
* alert( 'Number of failures: ' + failed.length );
* });
*/
load : function( scriptUrl, callback, scope, showBusy )
{
var isString = ( typeof scriptUrl == 'string' );
if ( isString )
scriptUrl = [ scriptUrl ];
if ( !scope )
scope = CKEDITOR;
var scriptCount = scriptUrl.length,
completed = [],
failed = [];
var doCallback = function( success )
{
if ( callback )
{
if ( isString )
callback.call( scope, success );
else
callback.call( scope, completed, failed );
}
};
if ( scriptCount === 0 )
{
doCallback( true );
return;
}
var checkLoaded = function( url, success )
{
( success ? completed : failed ).push( url );
if ( --scriptCount <= 0 )
{
showBusy && CKEDITOR.document.getDocumentElement().removeStyle( 'cursor' );
doCallback( success );
}
};
var onLoad = function( url, success )
{
// Mark this script as loaded.
uniqueScripts[ url ] = 1;
// Get the list of callback checks waiting for this file.
var waitingInfo = waitingList[ url ];
delete waitingList[ url ];
// Check all callbacks waiting for this file.
for ( var i = 0 ; i < waitingInfo.length ; i++ )
waitingInfo[ i ]( url, success );
};
var loadScript = function( url )
{
if ( uniqueScripts[ url ] )
{
checkLoaded( url, true );
return;
}
var waitingInfo = waitingList[ url ] || ( waitingList[ url ] = [] );
waitingInfo.push( checkLoaded );
// Load it only for the first request.
if ( waitingInfo.length > 1 )
return;
// Create the <script> element.
var script = new CKEDITOR.dom.element( 'script' );
script.setAttributes( {
type : 'text/javascript',
src : url } );
if ( callback )
{
if ( CKEDITOR.env.ie )
{
// FIXME: For IE, we are not able to return false on error (like 404).
/** @ignore */
script.$.onreadystatechange = function ()
{
if ( script.$.readyState == 'loaded' || script.$.readyState == 'complete' )
{
script.$.onreadystatechange = null;
onLoad( url, true );
}
};
}
else
{
/** @ignore */
script.$.onload = function()
{
// Some browsers, such as Safari, may call the onLoad function
// immediately. Which will break the loading sequence. (#3661)
setTimeout( function() { onLoad( url, true ); }, 0 );
};
// FIXME: Opera and Safari will not fire onerror.
/** @ignore */
script.$.onerror = function()
{
onLoad( url, false );
};
}
}
// Append it to <head>.
script.appendTo( CKEDITOR.document.getHead() );
CKEDITOR.fire( 'download', url ); // @Packager.RemoveLine
};
showBusy && CKEDITOR.document.getDocumentElement().setStyle( 'cursor', 'wait' );
for ( var i = 0 ; i < scriptCount ; i++ )
{
loadScript( scriptUrl[ i ] );
}
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/scriptloader.js
|
JavaScript
|
gpl3
| 5,043
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Contains the second part of the {@link CKEDITOR} object
* definition, which defines the basic editor features to be available in
* the root ckeditor_basic.js file.
*/
if ( CKEDITOR.status == 'unloaded' )
{
(function()
{
CKEDITOR.event.implementOn( CKEDITOR );
/**
* Forces the full CKEditor core code, in the case only the basic code has been
* loaded (ckeditor_basic.js). This method self-destroys (becomes undefined) in
* the first call or as soon as the full code is available.
* @example
* // Check if the full core code has been loaded and load it.
* if ( CKEDITOR.loadFullCore )
* <b>CKEDITOR.loadFullCore()</b>;
*/
CKEDITOR.loadFullCore = function()
{
// If not the basic code is not ready it, just mark it to be loaded.
if ( CKEDITOR.status != 'basic_ready' )
{
CKEDITOR.loadFullCore._load = 1;
return;
}
// Destroy this function.
delete CKEDITOR.loadFullCore;
// Append the script to the head.
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = CKEDITOR.basePath + 'ckeditor.js';
document.getElementsByTagName( 'head' )[0].appendChild( script );
};
/**
* The time to wait (in seconds) to load the full editor code after the
* page load, if the "ckeditor_basic" file is used. If set to zero, the
* editor is loaded on demand, as soon as an instance is created.
*
* This value must be set on the page before the page load completion.
* @type Number
* @default 0 (zero)
* @example
* // Loads the full source after five seconds.
* CKEDITOR.loadFullCoreTimeout = 5;
*/
CKEDITOR.loadFullCoreTimeout = 0;
/**
* The class name used to identify <textarea> elements to be replace
* by CKEditor instances.
* @type String
* @default 'ckeditor'
* @example
* <b>CKEDITOR.replaceClass</b> = 'rich_editor';
*/
CKEDITOR.replaceClass = 'ckeditor';
/**
* Enables the replacement of all textareas with class name matching
* {@link CKEDITOR.replaceClass}.
* @type Boolean
* @default true
* @example
* // Disable the auto-replace feature.
* <b>CKEDITOR.replaceByClassEnabled</b> = false;
*/
CKEDITOR.replaceByClassEnabled = 1;
var createInstance = function( elementOrIdOrName, config, creationFunction, data )
{
if ( CKEDITOR.env.isCompatible )
{
// Load the full core.
if ( CKEDITOR.loadFullCore )
CKEDITOR.loadFullCore();
var editor = creationFunction( elementOrIdOrName, config, data );
CKEDITOR.add( editor );
return editor;
}
return null;
};
/**
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
* instance. For textareas, the initial value in the editor will be the
* textarea value. For DOM elements, their innerHTML will be used
* instead. We recommend using TEXTAREA and DIV elements only.
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
* ID or name.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
* <textarea id="myfield" name="myfield"><:/textarea>
* ...
* <b>CKEDITOR.replace( 'myfield' )</b>;
* @example
* var textarea = document.body.appendChild( document.createElement( 'textarea' ) );
* <b>CKEDITOR.replace( textarea )</b>;
*/
CKEDITOR.replace = function( elementOrIdOrName, config )
{
return createInstance( elementOrIdOrName, config, CKEDITOR.editor.replace );
};
/**
* Creates a new editor instance inside a specific DOM element.
* @param {Object|String} elementOrId The DOM element or its ID.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @param {String} [data] Since 3.3. Initial value for the instance.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
* <div id="editorSpace"><:/div>
* ...
* <b>CKEDITOR.appendTo( 'editorSpace' )</b>;
*/
CKEDITOR.appendTo = function( elementOrId, config, data )
{
return createInstance( elementOrId, config, CKEDITOR.editor.appendTo, data );
};
// Documented at ckeditor.js.
CKEDITOR.add = function( editor )
{
// For now, just put the editor in the pending list. It will be
// processed as soon as the full code gets loaded.
var pending = this._.pending || ( this._.pending = [] );
pending.push( editor );
};
/**
* Replace all <textarea> elements available in the document with
* editor instances.
* @example
* // Replace all <textarea> elements in the page.
* CKEDITOR.replaceAll();
* @example
* // Replace all <textarea class="myClassName"> elements in the page.
* CKEDITOR.replaceAll( 'myClassName' );
* @example
* // Selectively replace <textarea> elements, based on custom assertions.
* CKEDITOR.replaceAll( function( textarea, config )
* {
* // Custom code to evaluate the replace, returning false
* // if it must not be done.
* // It also passes the "config" parameter, so the
* // developer can customize the instance.
* } );
*/
CKEDITOR.replaceAll = function()
{
var textareas = document.getElementsByTagName( 'textarea' );
for ( var i = 0 ; i < textareas.length ; i++ )
{
var config = null,
textarea = textareas[i];
// The "name" and/or "id" attribute must exist.
if ( !textarea.name && !textarea.id )
continue;
if ( typeof arguments[0] == 'string' )
{
// The textarea class name could be passed as the function
// parameter.
var classRegex = new RegExp( '(?:^|\\s)' + arguments[0] + '(?:$|\\s)' );
if ( !classRegex.test( textarea.className ) )
continue;
}
else if ( typeof arguments[0] == 'function' )
{
// An assertion function could be passed as the function parameter.
// It must explicitly return "false" to ignore a specific <textarea>.
config = {};
if ( arguments[0]( textarea, config ) === false )
continue;
}
this.replace( textarea, config );
}
};
(function()
{
var onload = function()
{
var loadFullCore = CKEDITOR.loadFullCore,
loadFullCoreTimeout = CKEDITOR.loadFullCoreTimeout;
// Replace all textareas with the default class name.
if ( CKEDITOR.replaceByClassEnabled )
CKEDITOR.replaceAll( CKEDITOR.replaceClass );
CKEDITOR.status = 'basic_ready';
if ( loadFullCore && loadFullCore._load )
loadFullCore();
else if ( loadFullCoreTimeout )
{
setTimeout( function()
{
if ( CKEDITOR.loadFullCore )
CKEDITOR.loadFullCore();
}
, loadFullCoreTimeout * 1000 );
}
};
if ( window.addEventListener )
window.addEventListener( 'load', onload, false );
else if ( window.attachEvent )
window.attachEvent( 'onload', onload );
})();
CKEDITOR.status = 'basic_loaded';
})();
}
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/ckeditor_basic.js
|
JavaScript
|
gpl3
| 7,605
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.tools} object, which contains
* utility functions.
*/
(function()
{
var functions = [];
CKEDITOR.on( 'reset', function()
{
functions = [];
});
/**
* Utility functions.
* @namespace
* @example
*/
CKEDITOR.tools =
{
/**
* Compare the elements of two arrays.
* @param {Array} arrayA An array to be compared.
* @param {Array} arrayB The other array to be compared.
* @returns {Boolean} "true" is the arrays have the same lenght and
* their elements match.
* @example
* var a = [ 1, 'a', 3 ];
* var b = [ 1, 3, 'a' ];
* var c = [ 1, 'a', 3 ];
* var d = [ 1, 'a', 3, 4 ];
*
* alert( CKEDITOR.tools.arrayCompare( a, b ) ); // false
* alert( CKEDITOR.tools.arrayCompare( a, c ) ); // true
* alert( CKEDITOR.tools.arrayCompare( a, d ) ); // false
*/
arrayCompare : function( arrayA, arrayB )
{
if ( !arrayA && !arrayB )
return true;
if ( !arrayA || !arrayB || arrayA.length != arrayB.length )
return false;
for ( var i = 0 ; i < arrayA.length ; i++ )
{
if ( arrayA[ i ] != arrayB[ i ] )
return false;
}
return true;
},
/**
* Creates a deep copy of an object.
* Attention: there is no support for recursive references.
* @param {Object} object The object to be cloned.
* @returns {Object} The object clone.
* @example
* var obj =
* {
* name : 'John',
* cars :
* {
* Mercedes : { color : 'blue' },
* Porsche : { color : 'red' }
* }
* };
* var clone = CKEDITOR.tools.clone( obj );
* clone.name = 'Paul';
* clone.cars.Porsche.color = 'silver';
* alert( obj.name ); // John
* alert( clone.name ); // Paul
* alert( obj.cars.Porsche.color ); // red
* alert( clone.cars.Porsche.color ); // silver
*/
clone : function( obj )
{
var clone;
// Array.
if ( obj && ( obj instanceof Array ) )
{
clone = [];
for ( var i = 0 ; i < obj.length ; i++ )
clone[ i ] = this.clone( obj[ i ] );
return clone;
}
// "Static" types.
if ( obj === null
|| ( typeof( obj ) != 'object' )
|| ( obj instanceof String )
|| ( obj instanceof Number )
|| ( obj instanceof Boolean )
|| ( obj instanceof Date )
|| ( obj instanceof RegExp) )
{
return obj;
}
// Objects.
clone = new obj.constructor();
for ( var propertyName in obj )
{
var property = obj[ propertyName ];
clone[ propertyName ] = this.clone( property );
}
return clone;
},
/**
* Turn the first letter of string to upper-case.
* @param {String} str
*/
capitalize: function( str )
{
return str.charAt( 0 ).toUpperCase() + str.substring( 1 ).toLowerCase();
},
/**
* Copy the properties from one object to another. By default, properties
* already present in the target object <strong>are not</strong> overwritten.
* @param {Object} target The object to be extended.
* @param {Object} source[,souce(n)] The objects from which copy
* properties. Any number of objects can be passed to this function.
* @param {Boolean} [overwrite] If 'true' is specified it indicates that
* properties already present in the target object could be
* overwritten by subsequent objects.
* @param {Object} [properties] Only properties within the specified names
* list will be received from the source object.
* @returns {Object} the extended object (target).
* @example
* // Create the sample object.
* var myObject =
* {
* prop1 : true
* };
*
* // Extend the above object with two properties.
* CKEDITOR.tools.extend( myObject,
* {
* prop2 : true,
* prop3 : true
* } );
*
* // Alert "prop1", "prop2" and "prop3".
* for ( var p in myObject )
* alert( p );
*/
extend : function( target )
{
var argsLength = arguments.length,
overwrite, propertiesList;
if ( typeof ( overwrite = arguments[ argsLength - 1 ] ) == 'boolean')
argsLength--;
else if ( typeof ( overwrite = arguments[ argsLength - 2 ] ) == 'boolean' )
{
propertiesList = arguments [ argsLength -1 ];
argsLength-=2;
}
for ( var i = 1 ; i < argsLength ; i++ )
{
var source = arguments[ i ];
for ( var propertyName in source )
{
// Only copy existed fields if in overwrite mode.
if ( overwrite === true || target[ propertyName ] == undefined )
{
// Only copy specified fields if list is provided.
if ( !propertiesList || ( propertyName in propertiesList ) )
target[ propertyName ] = source[ propertyName ];
}
}
}
return target;
},
/**
* Creates an object which is an instance of a class which prototype is a
* predefined object. All properties defined in the source object are
* automatically inherited by the resulting object, including future
* changes to it.
* @param {Object} source The source object to be used as the prototype for
* the final object.
* @returns {Object} The resulting copy.
*/
prototypedCopy : function( source )
{
var copy = function()
{};
copy.prototype = source;
return new copy();
},
/**
* Checks if an object is an Array.
* @param {Object} object The object to be checked.
* @type Boolean
* @returns <i>true</i> if the object is an Array, otherwise <i>false</i>.
* @example
* alert( CKEDITOR.tools.isArray( [] ) ); // "true"
* alert( CKEDITOR.tools.isArray( 'Test' ) ); // "false"
*/
isArray : function( object )
{
return ( !!object && object instanceof Array );
},
/**
* Whether the object contains no properties of it's own.
* @param object
*/
isEmpty : function ( object )
{
for ( var i in object )
{
if ( object.hasOwnProperty( i ) )
return false;
}
return true;
},
/**
* Transforms a CSS property name to its relative DOM style name.
* @param {String} cssName The CSS property name.
* @returns {String} The transformed name.
* @example
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'background-color' ) ); // "backgroundColor"
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'float' ) ); // "cssFloat"
*/
cssStyleToDomStyle : ( function()
{
var test = document.createElement( 'div' ).style;
var cssFloat = ( typeof test.cssFloat != 'undefined' ) ? 'cssFloat'
: ( typeof test.styleFloat != 'undefined' ) ? 'styleFloat'
: 'float';
return function( cssName )
{
if ( cssName == 'float' )
return cssFloat;
else
{
return cssName.replace( /-./g, function( match )
{
return match.substr( 1 ).toUpperCase();
});
}
};
} )(),
/**
* Build the HTML snippet of a set of <style>/<link>.
* @param css {String|Array} Each of which are url (absolute) of a CSS file or
* a trunk of style text.
*/
buildStyleHtml : function ( css )
{
css = [].concat( css );
var item, retval = [];
for ( var i = 0; i < css.length; i++ )
{
item = css[ i ];
// Is CSS style text ?
if ( /@import|[{}]/.test(item) )
retval.push('<style>' + item + '</style>');
else
retval.push('<link type="text/css" rel=stylesheet href="' + item + '">');
}
return retval.join( '' );
},
/**
* Replace special HTML characters in a string with their relative HTML
* entity values.
* @param {String} text The string to be encoded.
* @returns {String} The encode string.
* @example
* alert( CKEDITOR.tools.htmlEncode( 'A > B & C < D' ) ); // "A &gt; B &amp; C &lt; D"
*/
htmlEncode : function( text )
{
var standard = function( text )
{
var span = new CKEDITOR.dom.element( 'span' );
span.setText( text );
return span.getHtml();
};
var fix1 = ( standard( '\n' ).toLowerCase() == '<br>' ) ?
function( text )
{
// #3874 IE and Safari encode line-break into <br>
return standard( text ).replace( /<br>/gi, '\n' );
} :
standard;
var fix2 = ( standard( '>' ) == '>' ) ?
function( text )
{
// WebKit does't encode the ">" character, which makes sense, but
// it's different than other browsers.
return fix1( text ).replace( />/g, '>' );
} :
fix1;
var fix3 = ( standard( ' ' ) == ' ' ) ?
function( text )
{
// #3785 IE8 changes spaces (>= 2) to
return fix2( text ).replace( / /g, ' ' );
} :
fix2;
this.htmlEncode = fix3;
return this.htmlEncode( text );
},
/**
* Replace special HTML characters in HTMLElement's attribute with their relative HTML entity values.
* @param {String} The attribute's value to be encoded.
* @returns {String} The encode value.
* @example
* element.setAttribute( 'title', '<a " b >' );
* alert( CKEDITOR.tools.htmlEncodeAttr( element.getAttribute( 'title' ) ); // ">a " b <"
*/
htmlEncodeAttr : function( text )
{
return text.replace( /"/g, '"' ).replace( /</g, '<' ).replace( />/g, '>' );
},
/**
* Gets a unique number for this CKEDITOR execution session. It returns
* progressive numbers starting at 1.
* @function
* @returns {Number} A unique number.
* @example
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "1" (e.g.)
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "2"
*/
getNextNumber : (function()
{
var last = 0;
return function()
{
return ++last;
};
})(),
/**
* Gets a unique ID for CKEditor's interface elements. It returns a
* string with the "cke_" prefix and a progressive number.
* @function
* @returns {String} A unique ID.
* @example
* alert( CKEDITOR.tools.<b>getNextId()</b> ); // "cke_1" (e.g.)
* alert( CKEDITOR.tools.<b>getNextId()</b> ); // "cke_2"
*/
getNextId : function()
{
return 'cke_' + this.getNextNumber();
},
/**
* Creates a function override.
* @param {Function} originalFunction The function to be overridden.
* @param {Function} functionBuilder A function that returns the new
* function. The original function reference will be passed to this
* function.
* @returns {Function} The new function.
* @example
* var example =
* {
* myFunction : function( name )
* {
* alert( 'Name: ' + name );
* }
* };
*
* example.myFunction = CKEDITOR.tools.override( example.myFunction, function( myFunctionOriginal )
* {
* return function( name )
* {
* alert( 'Override Name: ' + name );
* myFunctionOriginal.call( this, name );
* };
* });
*/
override : function( originalFunction, functionBuilder )
{
return functionBuilder( originalFunction );
},
/**
* Executes a function after specified delay.
* @param {Function} func The function to be executed.
* @param {Number} [milliseconds] The amount of time (millisecods) to wait
* to fire the function execution. Defaults to zero.
* @param {Object} [scope] The object to hold the function execution scope
* (the "this" object). By default the "window" object.
* @param {Object|Array} [args] A single object, or an array of objects, to
* pass as arguments to the function.
* @param {Object} [ownerWindow] The window that will be used to set the
* timeout. By default the current "window".
* @returns {Object} A value that can be used to cancel the function execution.
* @example
* CKEDITOR.tools.<b>setTimeout(
* function()
* {
* alert( 'Executed after 2 seconds' );
* },
* 2000 )</b>;
*/
setTimeout : function( func, milliseconds, scope, args, ownerWindow )
{
if ( !ownerWindow )
ownerWindow = window;
if ( !scope )
scope = ownerWindow;
return ownerWindow.setTimeout(
function()
{
if ( args )
func.apply( scope, [].concat( args ) ) ;
else
func.apply( scope ) ;
},
milliseconds || 0 );
},
/**
* Remove spaces from the start and the end of a string. The following
* characters are removed: space, tab, line break, line feed.
* @function
* @param {String} str The text from which remove the spaces.
* @returns {String} The modified string without the boundary spaces.
* @example
* alert( CKEDITOR.tools.trim( ' example ' ); // "example"
*/
trim : (function()
{
// We are not using \s because we don't want "non-breaking spaces" to be caught.
var trimRegex = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;
return function( str )
{
return str.replace( trimRegex, '' ) ;
};
})(),
/**
* Remove spaces from the start (left) of a string. The following
* characters are removed: space, tab, line break, line feed.
* @function
* @param {String} str The text from which remove the spaces.
* @returns {String} The modified string excluding the removed spaces.
* @example
* alert( CKEDITOR.tools.ltrim( ' example ' ); // "example "
*/
ltrim : (function()
{
// We are not using \s because we don't want "non-breaking spaces" to be caught.
var trimRegex = /^[ \t\n\r]+/g;
return function( str )
{
return str.replace( trimRegex, '' ) ;
};
})(),
/**
* Remove spaces from the end (right) of a string. The following
* characters are removed: space, tab, line break, line feed.
* @function
* @param {String} str The text from which remove the spaces.
* @returns {String} The modified string excluding the removed spaces.
* @example
* alert( CKEDITOR.tools.ltrim( ' example ' ); // " example"
*/
rtrim : (function()
{
// We are not using \s because we don't want "non-breaking spaces" to be caught.
var trimRegex = /[ \t\n\r]+$/g;
return function( str )
{
return str.replace( trimRegex, '' ) ;
};
})(),
/**
* Returns the index of an element in an array.
* @param {Array} array The array to be searched.
* @param {Object} entry The element to be found.
* @returns {Number} The (zero based) index of the first entry that matches
* the entry, or -1 if not found.
* @example
* var letters = [ 'a', 'b', 0, 'c', false ];
* alert( CKEDITOR.tools.indexOf( letters, '0' ) ); "-1" because 0 !== '0'
* alert( CKEDITOR.tools.indexOf( letters, false ) ); "4" because 0 !== false
*/
indexOf :
// #2514: We should try to use Array.indexOf if it does exist.
( Array.prototype.indexOf ) ?
function( array, entry )
{
return array.indexOf( entry );
}
:
function( array, entry )
{
for ( var i = 0, len = array.length ; i < len ; i++ )
{
if ( array[ i ] === entry )
return i;
}
return -1;
},
/**
* Creates a function that will always execute in the context of a
* specified object.
* @param {Function} func The function to be executed.
* @param {Object} obj The object to which bind the execution context.
* @returns {Function} The function that can be used to execute the
* "func" function in the context of "obj".
* @example
* var obj = { text : 'My Object' };
*
* function alertText()
* {
* alert( this.text );
* }
*
* var newFunc = <b>CKEDITOR.tools.bind( alertText, obj )</b>;
* newFunc(); // Alerts "My Object".
*/
bind : function( func, obj )
{
return function() { return func.apply( obj, arguments ); };
},
/**
* Class creation based on prototype inheritance, with supports of the
* following features:
* <ul>
* <li> Static fields </li>
* <li> Private fields </li>
* <li> Public (prototype) fields </li>
* <li> Chainable base class constructor </li>
* </ul>
* @param {Object} definition The class definition object.
* @returns {Function} A class-like JavaScript function.
*/
createClass : function( definition )
{
var $ = definition.$,
baseClass = definition.base,
privates = definition.privates || definition._,
proto = definition.proto,
statics = definition.statics;
if ( privates )
{
var originalConstructor = $;
$ = function()
{
// Create (and get) the private namespace.
var _ = this._ || ( this._ = {} );
// Make some magic so "this" will refer to the main
// instance when coding private functions.
for ( var privateName in privates )
{
var priv = privates[ privateName ];
_[ privateName ] =
( typeof priv == 'function' ) ? CKEDITOR.tools.bind( priv, this ) : priv;
}
originalConstructor.apply( this, arguments );
};
}
if ( baseClass )
{
$.prototype = this.prototypedCopy( baseClass.prototype );
$.prototype.constructor = $;
$.prototype.base = function()
{
this.base = baseClass.prototype.base;
baseClass.apply( this, arguments );
this.base = arguments.callee;
};
}
if ( proto )
this.extend( $.prototype, proto, true );
if ( statics )
this.extend( $, statics, true );
return $;
},
/**
* Creates a function reference that can be called later using
* CKEDITOR.tools.callFunction. This approach is specially useful to
* make DOM attribute function calls to JavaScript defined functions.
* @param {Function} fn The function to be executed on call.
* @param {Object} [scope] The object to have the context on "fn" execution.
* @returns {Number} A unique reference to be used in conjuction with
* CKEDITOR.tools.callFunction.
* @example
* var ref = <b>CKEDITOR.tools.addFunction</b>(
* function()
* {
* alert( 'Hello!');
* });
* CKEDITOR.tools.callFunction( ref ); // Hello!
*/
addFunction : function( fn, scope )
{
return functions.push( function()
{
return fn.apply( scope || this, arguments );
}) - 1;
},
/**
* Removes the function reference created with {@see CKEDITOR.tools.addFunction}.
* @param {Number} ref The function reference created with
* CKEDITOR.tools.addFunction.
*/
removeFunction : function( ref )
{
functions[ ref ] = null;
},
/**
* Executes a function based on the reference created with
* CKEDITOR.tools.addFunction.
* @param {Number} ref The function reference created with
* CKEDITOR.tools.addFunction.
* @param {[Any,[Any,...]} params Any number of parameters to be passed
* to the executed function.
* @returns {Any} The return value of the function.
* @example
* var ref = CKEDITOR.tools.addFunction(
* function()
* {
* alert( 'Hello!');
* });
* <b>CKEDITOR.tools.callFunction( ref )</b>; // Hello!
*/
callFunction : function( ref )
{
var fn = functions[ ref ];
return fn && fn.apply( window, Array.prototype.slice.call( arguments, 1 ) );
},
/**
* Append the 'px' length unit to the size if it's missing.
* @param length
*/
cssLength : (function()
{
return function( length )
{
return length + ( !length || isNaN( Number( length ) ) ? '' : 'px' );
};
})(),
/**
* Convert the specified CSS length value to the calculated pixel length inside this page.
* <strong>Note:</strong> Percentage based value is left intact.
* @param {String} cssLength CSS length value.
*/
convertToPx : ( function ()
{
var calculator;
return function( cssLength )
{
if ( !calculator )
{
calculator = CKEDITOR.dom.element.createFromHtml(
'<div style="position:absolute;left:-9999px;' +
'top:-9999px;margin:0px;padding:0px;border:0px;"' +
'></div>', CKEDITOR.document );
CKEDITOR.document.getBody().append( calculator );
}
if ( !(/%$/).test( cssLength ) )
{
calculator.setStyle( 'width', cssLength );
return calculator.$.clientWidth;
}
return cssLength;
};
} )(),
/**
* String specified by {@param str} repeats {@param times} times.
* @param str
* @param times
*/
repeat : function( str, times )
{
return new Array( times + 1 ).join( str );
},
/**
* Return the first successfully executed function's return value that
* doesn't throw any exception.
*/
tryThese : function()
{
var returnValue;
for ( var i = 0, length = arguments.length; i < length; i++ )
{
var lambda = arguments[i];
try
{
returnValue = lambda();
break;
}
catch (e) {}
}
return returnValue;
},
/**
* Generate a combined key from a series of params.
* @param {String} subKey One or more string used as sub keys.
* @example
* var key = CKEDITOR.tools.genKey( 'key1', 'key2', 'key3' );
* alert( key ); // "key1-key2-key3".
*/
genKey : function()
{
return Array.prototype.slice.call( arguments ).join( '-' );
}
};
})();
// PACKAGER_RENAME( CKEDITOR.tools )
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/tools.js
|
JavaScript
|
gpl3
| 21,920
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.focusManager} class, which is used
* to handle the focus on editor instances..
*/
/**
* Creates a focusManager class instance.
* @class Manages the focus activity in an editor instance. This class is to be
* used mainly by UI elements coders when adding interface elements that need
* to set the focus state of the editor.
* @param {CKEDITOR.editor} editor The editor instance.
* @example
* var focusManager = <b>new CKEDITOR.focusManager( editor )</b>;
* focusManager.focus();
*/
CKEDITOR.focusManager = function( editor )
{
if ( editor.focusManager )
return editor.focusManager;
/**
* Indicates that the editor instance has focus.
* @type Boolean
* @example
* alert( CKEDITOR.instances.editor1.focusManager.hasFocus ); // e.g "true"
*/
this.hasFocus = false;
/**
* Object used to hold private stuff.
* @private
*/
this._ =
{
editor : editor
};
return this;
};
CKEDITOR.focusManager.prototype =
{
/**
* Used to indicate that the editor instance has the focus.<br />
* <br />
* Note that this function will not explicitelly set the focus in the
* editor (for example, making the caret blinking on it). Use
* {@link CKEDITOR.editor#focus} for it instead.
* @example
* var editor = CKEDITOR.instances.editor1;
* <b>editor.focusManager.focus()</b>;
*/
focus : function()
{
if ( this._.timer )
clearTimeout( this._.timer );
if ( !this.hasFocus )
{
// If another editor has the current focus, we first "blur" it. In
// this way the events happen in a more logical sequence, like:
// "focus 1" > "blur 1" > "focus 2"
// ... instead of:
// "focus 1" > "focus 2" > "blur 1"
if ( CKEDITOR.currentInstance )
CKEDITOR.currentInstance.focusManager.forceBlur();
var editor = this._.editor;
editor.container.getChild( 1 ).addClass( 'cke_focus' );
this.hasFocus = true;
editor.fire( 'focus' );
}
},
/**
* Used to indicate that the editor instance has lost the focus.<br />
* <br />
* Note that this functions acts asynchronously with a delay of 100ms to
* avoid subsequent blur/focus effects. If you want the "blur" to happen
* immediately, use the {@link #forceBlur} function instead.
* @example
* var editor = CKEDITOR.instances.editor1;
* <b>editor.focusManager.blur()</b>;
*/
blur : function()
{
var focusManager = this;
if ( focusManager._.timer )
clearTimeout( focusManager._.timer );
focusManager._.timer = setTimeout(
function()
{
delete focusManager._.timer;
focusManager.forceBlur();
}
, 100 );
},
/**
* Used to indicate that the editor instance has lost the focus. Unlike
* {@link #blur}, this function is synchronous, marking the instance as
* "blured" immediately.
* @example
* var editor = CKEDITOR.instances.editor1;
* <b>editor.focusManager.forceBlur()</b>;
*/
forceBlur : function()
{
if ( this.hasFocus )
{
var editor = this._.editor;
editor.container.getChild( 1 ).removeClass( 'cke_focus' );
this.hasFocus = false;
editor.fire( 'blur' );
}
}
};
/**
* Fired when the editor instance receives the input focus.
* @name CKEDITOR.editor#focus
* @event
* @param {CKEDITOR.editor} editor The editor instance.
* @example
* editor.on( 'focus', function( e )
* {
* alert( 'The editor named ' + e.editor.name + ' is now focused' );
* });
*/
/**
* Fired when the editor instance loses the input focus.
* @name CKEDITOR.editor#blur
* @event
* @param {CKEDITOR.editor} editor The editor instance.
* @example
* editor.on( 'blur', function( e )
* {
* alert( 'The editor named ' + e.editor.name + ' lost the focus' );
* });
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/focusmanager.js
|
JavaScript
|
gpl3
| 4,031
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Contains the first and essential part of the {@link CKEDITOR}
* object definition.
*/
// #### Compressed Code
// Must be updated on changes in the script as well as updated in the
// ckeditor_source.js and ckeditor_basic_source.js files.
// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.3',revision:'7474',rnd:Math.floor(Math.random()*900)+100,_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;if(!d)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/'&&!/[&?]t=/.test(d))d+=(d.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
// #### Raw code
// ATTENTION: read the above "Compressed Code" notes when changing this code.
/* @Packager.RemoveLine
// Avoid having the editor code initialized twice. (#7588)
// Use CKEDITOR.dom to check whether the full ckeditor.js code has been loaded
// or just ckeditor_basic.js.
// Remove these lines when compressing manually.
if ( window.CKEDITOR && window.CKEDITOR.dom )
return;
@Packager.RemoveLine */
if ( !window.CKEDITOR )
{
/**
* @name CKEDITOR
* @namespace This is the API entry point. The entire CKEditor code runs under this object.
* @example
*/
window.CKEDITOR = (function()
{
var CKEDITOR =
/** @lends CKEDITOR */
{
/**
* A constant string unique for each release of CKEditor. Its value
* is used, by default, to build the URL for all resources loaded
* by the editor code, guaranteeing clean cache results when
* upgrading.
* @type String
* @example
* alert( CKEDITOR.timestamp ); // e.g. '87dm'
*/
// The production implementation contains a fixed timestamp, unique
// for each release and generated by the releaser.
// (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122)
timestamp : 'C3HA5RM',
/**
* Contains the CKEditor version number.
* @type String
* @example
* alert( CKEDITOR.version ); // e.g. 'CKEditor 3.4.1'
*/
version : '3.6.3',
/**
* Contains the CKEditor revision number.
* The revision number is incremented automatically, following each
* modification to the CKEditor source code.
* @type String
* @example
* alert( CKEDITOR.revision ); // e.g. '3975'
*/
revision : '7474',
/**
* A 3-digit random integer, valid for the entire life of the CKEDITOR object.
* @type Number
* @example
* alert( CKEDITOR.rnd ); // e.g. '319'
*/
rnd : Math.floor( Math.random() * ( 999/*Max*/ - 100/*Min*/ + 1 ) ) + 100/*Min*/,
/**
* Private object used to hold core stuff. It should not be used outside of
* the API code as properties defined here may change at any time
* without notice.
* @private
*/
_ : {},
/**
* Indicates the API loading status. The following statuses are available:
* <ul>
* <li><b>unloaded</b>: the API is not yet loaded.</li>
* <li><b>basic_loaded</b>: the basic API features are available.</li>
* <li><b>basic_ready</b>: the basic API is ready to load the full core code.</li>
* <li><b>loading</b>: the full API is being loaded.</li>
* <li><b>loaded</b>: the API can be fully used.</li>
* </ul>
* @type String
* @example
* if ( <b>CKEDITOR.status</b> == 'loaded' )
* {
* // The API can now be fully used.
* }
*/
status : 'unloaded',
/**
* Contains the full URL for the CKEditor installation directory.
* It is possible to manually provide the base path by setting a
* global variable named CKEDITOR_BASEPATH. This global variable
* must be set <strong>before</strong> the editor script loading.
* @type String
* @example
* alert( <b>CKEDITOR.basePath</b> ); // "http://www.example.com/ckeditor/" (e.g.)
*/
basePath : (function()
{
// ATTENTION: fixes to this code must be ported to
// var basePath in "core/loader.js".
// Find out the editor directory path, based on its <script> tag.
var path = window.CKEDITOR_BASEPATH || '';
if ( !path )
{
var scripts = document.getElementsByTagName( 'script' );
for ( var i = 0 ; i < scripts.length ; i++ )
{
var match = scripts[i].src.match( /(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i );
if ( match )
{
path = match[1];
break;
}
}
}
// In IE (only) the script.src string is the raw value entered in the
// HTML source. Other browsers return the full resolved URL instead.
if ( path.indexOf(':/') == -1 )
{
// Absolute path.
if ( path.indexOf( '/' ) === 0 )
path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;
// Relative path.
else
path = location.href.match( /^[^\?]*\/(?:)/ )[0] + path;
}
if ( !path )
throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';
return path;
})(),
/**
* Gets the full URL for CKEditor resources. By default, URLs
* returned by this function contain a querystring parameter ("t")
* set to the {@link CKEDITOR.timestamp} value.<br />
* <br />
* It is possible to provide a custom implementation of this
* function by setting a global variable named CKEDITOR_GETURL.
* This global variable must be set <strong>before</strong> the editor script
* loading. If the custom implementation returns nothing (==null), the
* default implementation is used.
* @param {String} resource The resource whose full URL we want to get.
* It may be a full, absolute, or relative URL.
* @returns {String} The full URL.
* @example
* // e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );
* @example
* // e.g. http://www.example.com/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );
* @example
* // e.g. http://www.somesite.com/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );
*/
getUrl : function( resource )
{
// If this is not a full or absolute path.
if ( resource.indexOf(':/') == -1 && resource.indexOf( '/' ) !== 0 )
resource = this.basePath + resource;
// Add the timestamp, except for directories.
if ( this.timestamp && resource.charAt( resource.length - 1 ) != '/' && !(/[&?]t=/).test( resource ) )
resource += ( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) + 't=' + this.timestamp;
return resource;
}
};
// Make it possible to override the getUrl function with a custom
// implementation pointing to a global named CKEDITOR_GETURL.
var newGetUrl = window.CKEDITOR_GETURL;
if ( newGetUrl )
{
var originalGetUrl = CKEDITOR.getUrl;
CKEDITOR.getUrl = function ( resource )
{
return newGetUrl.call( CKEDITOR, resource ) ||
originalGetUrl.call( CKEDITOR, resource );
};
}
return CKEDITOR;
})();
}
/**
* Function called upon loading a custom configuration file that can
* modify the editor instance configuration ({@link CKEDITOR.editor#config }).
* It is usually defined inside the custom configuration files that can
* include developer defined settings.
* @name CKEDITOR.editorConfig
* @function
* @param {CKEDITOR.config} config A configuration object containing the
* settings defined for a {@link CKEDITOR.editor} instance up to this
* function call. Note that not all settings may still be available. See
* <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Configuration_Loading_Order">Configuration Loading Order</a>
* for details.
* @example
* // This is supposed to be placed in the config.js file.
* CKEDITOR.editorConfig = function( config )
* {
* // Define changes to default configuration here. For example:
* config.language = 'fr';
* config.uiColor = '#AADC6E';
* };
*/
// PACKAGER_RENAME( CKEDITOR )
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/ckeditor_base.js
|
JavaScript
|
gpl3
| 9,180
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.themes} object, which is used to
* manage themes registration and loading.
*/
/**
* Manages themes registration and loading.
* @namespace
* @augments CKEDITOR.resourceManager
* @example
*/
CKEDITOR.themes = new CKEDITOR.resourceManager(
'_source/'+ // @Packager.RemoveLine
'themes/', 'theme' );
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/themes.js
|
JavaScript
|
gpl3
| 524
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dtd} object, which holds the DTD
* mapping for XHTML 1.0 Transitional. This file was automatically
* generated from the file: xhtml1-transitional.dtd.
*/
/**
* @namespace Holds and object representation of the HTML DTD to be used by the
* editor in its internal operations.<br />
* <br />
* Each element in the DTD is represented by a property in this object. Each
* property contains the list of elements that can be contained by the element.
* Text is represented by the "#" property.<br />
* <br />
* Several special grouping properties are also available. Their names start
* with the "$" character.
* @example
* // Check if "div" can be contained in a "p" element.
* alert( !!CKEDITOR.dtd[ 'p' ][ 'div' ] ); "false"
* @example
* // Check if "p" can be contained in a "div" element.
* alert( !!CKEDITOR.dtd[ 'div' ][ 'p' ] ); "true"
* @example
* // Check if "p" is a block element.
* alert( !!CKEDITOR.dtd.$block[ 'p' ] ); "true"
*/
CKEDITOR.dtd = (function()
{
var X = CKEDITOR.tools.extend,
A = {isindex:1,fieldset:1},
B = {input:1,button:1,select:1,textarea:1,label:1},
C = X({a:1},B),
D = X({iframe:1},C),
E = {hr:1,ul:1,menu:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},
F = {ins:1,del:1,script:1,style:1},
G = X({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1,wbr:1},F),
H = X({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1,mark:1},G),
I = X({p:1},H),
J = X({iframe:1},H,B),
K = {img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},
L = X({a:1},J),
M = {tr:1},
N = {'#':1},
O = X({param:1},K),
P = X({form:1},A,D,E,I),
Q = {li:1},
R = {style:1,script:1},
S = {base:1,link:1,meta:1,title:1},
T = X(S,R),
U = {head:1,body:1},
V = {html:1};
var block = {address:1,blockquote:1,center:1,dir:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
return /** @lends CKEDITOR.dtd */ {
// The "$" items have been added manually.
// List of elements living outside body.
$nonBodyContent: X(V,U,S),
/**
* List of block elements, like "p" or "div".
* @type Object
* @example
*/
$block : block,
/**
* List of block limit elements.
* @type Object
* @example
*/
$blockLimit : { body:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,td:1,th:1,caption:1,form:1 },
/**
* List of inline (<span> like) elements.
*/
$inline : L, // Just like span.
/**
* list of elements that can be children at <body>.
*/
$body : X({script:1,style:1}, block),
$cdata : {script:1,style:1},
/**
* List of empty (self-closing) elements, like "br" or "img".
* @type Object
* @example
*/
$empty : {area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1,wbr:1},
/**
* List of list item elements, like "li" or "dd".
* @type Object
* @example
*/
$listItem : {dd:1,dt:1,li:1},
/**
* List of list root elements.
* @type Object
* @example
*/
$list: {ul:1,ol:1,dl:1},
/**
* Elements that accept text nodes, but are not possible to edit into
* the browser.
* @type Object
* @example
*/
$nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1,audio:1,video:1},
/**
* List of block tags with each one a singleton element lives in the corresponding structure for description.
*/
$captionBlock : { caption:1, legend:1 },
/**
* List of elements that can be ignored if empty, like "b" or "span".
* @type Object
* @example
*/
$removeEmpty : {abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1,mark:1},
/**
* List of elements that have tabindex set to zero by default.
* @type Object
* @example
*/
$tabIndex : {a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},
/**
* List of elements used inside the "table" element, like "tbody" or "td".
* @type Object
* @example
*/
$tableContent : {caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},
html: U,
head: T,
style: N,
script: N,
body: P,
base: {},
link: {},
meta: {},
title: N,
col : {},
tr : {td:1,th:1},
img : {},
colgroup : {col:1},
noscript : P,
td : P,
br : {},
wbr : {},
th : P,
center : P,
kbd : L,
button : X(I,E),
basefont : {},
h5 : L,
h4 : L,
samp : L,
h6 : L,
ol : Q,
h1 : L,
h3 : L,
option : N,
h2 : L,
form : X(A,D,E,I),
select : {optgroup:1,option:1},
font : L,
ins : L,
menu : Q,
abbr : L,
label : L,
table : {thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},
code : L,
tfoot : M,
cite : L,
li : P,
input : {},
iframe : P,
strong : L,
textarea : N,
noframes : P,
big : L,
small : L,
span : L,
hr : {},
dt : L,
sub : L,
optgroup : {option:1},
param : {},
bdo : L,
'var' : L,
div : P,
object : O,
sup : L,
dd : P,
strike : L,
area : {},
dir : Q,
map : X({area:1,form:1,p:1},A,F,E),
applet : O,
dl : {dt:1,dd:1},
del : L,
isindex : {},
fieldset : X({legend:1},K),
thead : M,
ul : Q,
acronym : L,
b : L,
a : J,
blockquote : P,
caption : L,
i : L,
u : L,
tbody : M,
s : L,
address : X(D,I),
tt : L,
legend : L,
q : L,
pre : X(G,C),
p : L,
em : L,
dfn : L,
//HTML5
section : P,
header : P,
footer : P,
nav : P,
article : P,
aside : P,
figure: P,
dialog : P,
hgroup : P,
mark : L,
time : L,
meter : L,
menu : L,
command : L,
keygen : L,
output : L,
progress : O,
audio : O,
video : O,
details : O,
datagrid : O,
datalist : O
};
})();
// PACKAGER_RENAME( CKEDITOR.dtd )
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dtd.js
|
JavaScript
|
gpl3
| 8,098
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom} object, which contains DOM
* manipulation objects and function.
*/
/**
* @namespace DOM manipulation objects, classes and functions.
* @see CKEDITOR.dom.element
* @see CKEDITOR.dom.node
* @example
*/
CKEDITOR.dom =
{};
// PACKAGER_RENAME( CKEDITOR.dom )
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom.js
|
JavaScript
|
gpl3
| 487
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to
* load core scripts and their dependencies from _source.
*/
if ( typeof CKEDITOR == 'undefined' )
CKEDITOR = {};
if ( !CKEDITOR.loader )
{
/**
* Load core scripts and their dependencies from _source.
* @namespace
* @example
*/
CKEDITOR.loader = (function()
{
// Table of script names and their dependencies.
var scripts =
{
'core/_bootstrap' : [ 'core/config', 'core/ckeditor', 'core/plugins', 'core/scriptloader', 'core/tools', /* The following are entries that we want to force loading at the end to avoid dependence recursion */ 'core/dom/comment', 'core/dom/elementpath', 'core/dom/text', 'core/dom/rangelist' ],
'core/ckeditor' : [ 'core/ckeditor_basic', 'core/dom', 'core/dtd', 'core/dom/document', 'core/dom/element', 'core/editor', 'core/event', 'core/htmlparser', 'core/htmlparser/element', 'core/htmlparser/fragment', 'core/htmlparser/filter', 'core/htmlparser/basicwriter', 'core/tools' ],
'core/ckeditor_base' : [],
'core/ckeditor_basic' : [ 'core/editor_basic', 'core/env', 'core/event' ],
'core/command' : [],
'core/config' : [ 'core/ckeditor_base' ],
'core/dom' : [],
'core/dom/comment' : [ 'core/dom/node' ],
'core/dom/document' : [ 'core/dom', 'core/dom/domobject', 'core/dom/window' ],
'core/dom/documentfragment' : [ 'core/dom/element' ],
'core/dom/element' : [ 'core/dom', 'core/dom/document', 'core/dom/domobject', 'core/dom/node', 'core/dom/nodelist', 'core/tools' ],
'core/dom/elementpath' : [ 'core/dom/element' ],
'core/dom/event' : [],
'core/dom/node' : [ 'core/dom/domobject', 'core/tools' ],
'core/dom/nodelist' : [ 'core/dom/node' ],
'core/dom/domobject' : [ 'core/dom/event' ],
'core/dom/range' : [ 'core/dom/document', 'core/dom/documentfragment', 'core/dom/element', 'core/dom/walker' ],
'core/dom/rangelist' : [ 'core/dom/range' ],
'core/dom/text' : [ 'core/dom/node', 'core/dom/domobject' ],
'core/dom/walker' : [ 'core/dom/node' ],
'core/dom/window' : [ 'core/dom/domobject' ],
'core/dtd' : [ 'core/tools' ],
'core/editor' : [ 'core/command', 'core/config', 'core/editor_basic', 'core/focusmanager', 'core/lang', 'core/plugins', 'core/skins', 'core/themes', 'core/tools', 'core/ui' ],
'core/editor_basic' : [ 'core/event' ],
'core/env' : [],
'core/event' : [],
'core/focusmanager' : [],
'core/htmlparser' : [],
'core/htmlparser/comment' : [ 'core/htmlparser' ],
'core/htmlparser/element' : [ 'core/htmlparser', 'core/htmlparser/fragment' ],
'core/htmlparser/fragment' : [ 'core/htmlparser', 'core/htmlparser/comment', 'core/htmlparser/text', 'core/htmlparser/cdata' ],
'core/htmlparser/text' : [ 'core/htmlparser' ],
'core/htmlparser/cdata' : [ 'core/htmlparser' ],
'core/htmlparser/filter' : [ 'core/htmlparser' ],
'core/htmlparser/basicwriter': [ 'core/htmlparser' ],
'core/lang' : [],
'core/plugins' : [ 'core/resourcemanager' ],
'core/resourcemanager' : [ 'core/scriptloader', 'core/tools' ],
'core/scriptloader' : [ 'core/dom/element', 'core/env' ],
'core/skins' : [ 'core/scriptloader' ],
'core/themes' : [ 'core/resourcemanager' ],
'core/tools' : [ 'core/env' ],
'core/ui' : []
};
var basePath = (function()
{
// This is a copy of CKEDITOR.basePath, but requires the script having
// "_source/core/loader.js".
if ( CKEDITOR && CKEDITOR.basePath )
return CKEDITOR.basePath;
// Find out the editor directory path, based on its <script> tag.
var path = '';
var scripts = document.getElementsByTagName( 'script' );
for ( var i = 0 ; i < scripts.length ; i++ )
{
var match = scripts[i].src.match( /(^|.*?[\\\/])(?:_source\/)?core\/loader.js(?:\?.*)?$/i );
if ( match )
{
path = match[1];
break;
}
}
// In IE (only) the script.src string is the raw valued entered in the
// HTML. Other browsers return the full resolved URL instead.
if ( path.indexOf('://') == -1 )
{
// Absolute path.
if ( path.indexOf( '/' ) === 0 )
path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;
// Relative path.
else
path = location.href.match( /^[^\?]*\// )[0] + path;
}
return path;
})();
var timestamp = 'C3HA5RM';
var getUrl = function( resource )
{
if ( CKEDITOR && CKEDITOR.getUrl )
return CKEDITOR.getUrl( resource );
return basePath + resource +
( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) +
't=' + timestamp;
};
var pendingLoad = [];
/** @lends CKEDITOR.loader */
return {
/**
* The list of loaded scripts in their loading order.
* @type Array
* @example
* // Alert the loaded script names.
* alert( <b>CKEDITOR.loader.loadedScripts</b> );
*/
loadedScripts : [],
loadPending : function()
{
var scriptName = pendingLoad.shift();
if ( !scriptName )
return;
var scriptSrc = getUrl( '_source/' + scriptName + '.js' );
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = scriptSrc;
function onScriptLoaded()
{
// Append this script to the list of loaded scripts.
CKEDITOR.loader.loadedScripts.push( scriptName );
// Load the next.
CKEDITOR.loader.loadPending();
}
// We must guarantee the execution order of the scripts, so we
// need to load them one by one. (#4145)
// The following if/else block has been taken from the scriptloader core code.
if ( typeof(script.onreadystatechange) !== "undefined" )
{
/** @ignore */
script.onreadystatechange = function()
{
if ( script.readyState == 'loaded' || script.readyState == 'complete' )
{
script.onreadystatechange = null;
onScriptLoaded();
}
};
}
else
{
/** @ignore */
script.onload = function()
{
// Some browsers, such as Safari, may call the onLoad function
// immediately. Which will break the loading sequence. (#3661)
setTimeout( function() { onScriptLoaded( scriptName ); }, 0 );
};
}
document.body.appendChild( script );
},
/**
* Loads a specific script, including its dependencies. This is not a
* synchronous loading, which means that the code to be loaded will
* not necessarily be available after this call.
* @example
* CKEDITOR.loader.load( 'core/dom/element' );
*/
load : function( scriptName, defer )
{
// Check if the script has already been loaded.
if ( scriptName in this.loadedScripts )
return;
// Get the script dependencies list.
var dependencies = scripts[ scriptName ];
if ( !dependencies )
throw 'The script name"' + scriptName + '" is not defined.';
// Mark the script as loaded, even before really loading it, to
// avoid cross references recursion.
this.loadedScripts[ scriptName ] = true;
// Load all dependencies first.
for ( var i = 0 ; i < dependencies.length ; i++ )
this.load( dependencies[ i ], true );
var scriptSrc = getUrl( '_source/' + scriptName + '.js' );
// Append the <script> element to the DOM.
// If the page is fully loaded, we can't use document.write
// but if the script is run while the body is loading then it's safe to use it
// Unfortunately, Firefox <3.6 doesn't support document.readyState, so it won't get this improvement
if ( document.body && (!document.readyState || document.readyState == 'complete') )
{
pendingLoad.push( scriptName );
if ( !defer )
this.loadPending();
}
else
{
// Append this script to the list of loaded scripts.
this.loadedScripts.push( scriptName );
document.write( '<script src="' + scriptSrc + '" type="text/javascript"><\/script>' );
}
}
};
})();
}
// Check if any script has been defined for autoload.
if ( CKEDITOR._autoLoad )
{
CKEDITOR.loader.load( CKEDITOR._autoLoad );
delete CKEDITOR._autoLoad;
}
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/loader.js
|
JavaScript
|
gpl3
| 8,455
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.pluginDefinition} class, which
* contains the defintion of a plugin. This file is for documentation
* purposes only.
*/
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API. It just illustrates the features of plugin objects to be
* passed to the {@link CKEDITOR.plugins.add} function.
* @name CKEDITOR.pluginDefinition
* @constructor
* @example
*/
/**
* A list of plugins that are required by this plugin. Note that this property
* doesn't guarantee the loading order of the plugins.
* @name CKEDITOR.pluginDefinition.prototype.requires
* @type Array
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* requires : [ 'button', 'selection' ]
* });
*/
/**
* A list of language files available for this plugin. These files are stored inside
* the "lang" directory, which is inside the plugin directory, follow the name
* pattern of "langCode.js", and contain a language definition created with {@link CKEDITOR.pluginDefinition#setLang}.
* While the plugin is being loaded, the editor checks this list to see if
* a language file of the current editor language ({@link CKEDITOR.editor#langCode})
* is available, and if so, loads it. Otherwise, the file represented by the first list item
* in the list is loaded.
* @name CKEDITOR.pluginDefinition.prototype.lang
* @type Array
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* lang : [ 'en', 'fr' ]
* });
*/
/**
* Function called on initialization of every editor instance created in the
* page before the init() call task. The beforeInit function will be called for
* all plugins, after that the init function is called for all of them. This
* feature makes it possible to initialize things that could be used in the
* init function of other plugins.
* @name CKEDITOR.pluginDefinition.prototype.beforeInit
* @function
* @param {CKEDITOR.editor} editor The editor instance being initialized.
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* beforeInit : function( editor )
* {
* alert( 'Editor "' + editor.name + '" is to be initialized!' );
* }
* });
*/
/**
* Function called on initialization of every editor instance created in the
* page.
* @name CKEDITOR.pluginDefinition.prototype.init
* @function
* @param {CKEDITOR.editor} editor The editor instance being initialized.
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* init : function( editor )
* {
* alert( 'Editor "' + editor.name + '" is being initialized!' );
* }
* });
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/plugindefinition.js
|
JavaScript
|
gpl3
| 2,841
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the <code>{@link CKEDITOR.config}</code> object that stores the
* default configuration settings.
*/
/**
* Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code>
* and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration
* settings to make the editor produce <code><p></code> tags when
* using the <em>Enter</em> key.
* @constant
*/
CKEDITOR.ENTER_P = 1;
/**
* Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code>
* and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration
* settings to make the editor produce <code><br></code> tags when
* using the <em>Enter</em> key.
* @constant
*/
CKEDITOR.ENTER_BR = 2;
/**
* Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code>
* and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration
* settings to make the editor produce <code><div></code> tags when
* using the <em>Enter</em> key.
* @constant
*/
CKEDITOR.ENTER_DIV = 3;
/**
* @namespace Stores default configuration settings. Changes to this object are
* reflected in all editor instances, if not specified otherwise for a particular
* instance.
*/
CKEDITOR.config =
{
/**
* The URL path for the custom configuration file to be loaded. If not
* overloaded with inline configuration, it defaults to the <code>config.js</code>
* file present in the root of the CKEditor installation directory.<br /><br />
*
* CKEditor will recursively load custom configuration files defined inside
* other custom configuration files.
* @type String
* @default <code>'<em><CKEditor folder></em>/config.js'</code>
* @example
* // Load a specific configuration file.
* CKEDITOR.replace( 'myfield', { customConfig : '/myconfig.js' } );
* @example
* // Do not load any custom configuration file.
* CKEDITOR.replace( 'myfield', { customConfig : '' } );
*/
customConfig : 'config.js',
/**
* Whether the replaced element (usually a <code><textarea></code>)
* is to be updated automatically when posting the form containing the editor.
* @type Boolean
* @default <code>true</code>
* @example
* config.autoUpdateElement = true;
*/
autoUpdateElement : true,
/**
* The base href URL used to resolve relative and absolute URLs in the
* editor content.
* @type String
* @default <code>''</code> (empty)
* @example
* config.baseHref = 'http://www.example.com/path/';
*/
baseHref : '',
/**
* The CSS file(s) to be used to apply style to editor contents. It should
* reflect the CSS used in the final pages where the contents are to be
* used.
* @type String|Array
* @default <code>'<em><CKEditor folder></em>/contents.css'</code>
* @example
* config.contentsCss = '/css/mysitestyles.css';
* config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css'];
*/
contentsCss : CKEDITOR.basePath + 'contents.css',
/**
* The writing direction of the language used to create the editor
* contents. Allowed values are:
* <ul>
* <li><code>'ui'</code> – indicates that content direction will be the same as the user interface language direction;</li>
* <li><code>'ltr'</code> – for Left-To-Right language (like English);</li>
* <li><code>'rtl'</code> – for Right-To-Left languages (like Arabic).</li>
* </ul>
* @default <code>'ui'</code>
* @type String
* @example
* config.contentsLangDirection = 'rtl';
*/
contentsLangDirection : 'ui',
/**
* Language code of the writing language which is used to create the editor
* contents.
* @default Same value as editor UI language.
* @type String
* @example
* config.contentsLanguage = 'fr';
*/
contentsLanguage : '',
/**
* The user interface language localization to use. If left empty, the editor
* will automatically be localized to the user language. If the user language is not supported,
* the language specified in the <code>{@link CKEDITOR.config.defaultLanguage}</code>
* configuration setting is used.
* @default <code>''</code> (empty)
* @type String
* @example
* // Load the German interface.
* config.language = 'de';
*/
language : '',
/**
* The language to be used if the <code>{@link CKEDITOR.config.language}</code>
* setting is left empty and it is not possible to localize the editor to the user language.
* @default <code>'en'</code>
* @type String
* @example
* config.defaultLanguage = 'it';
*/
defaultLanguage : 'en',
/**
* Sets the behavior of the <em>Enter</em> key. It also determines other behavior
* rules of the editor, like whether the <code><br></code> element is to be used
* as a paragraph separator when indenting text.
* The allowed values are the following constants that cause the behavior outlined below:
* <ul>
* <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li>
* <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li>
* <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li>
* </ul>
* <strong>Note</strong>: It is recommended to use the
* <code>{@link CKEDITOR.ENTER_P}</code> setting because of its semantic value and
* correctness. The editor is optimized for this setting.
* @type Number
* @default <code>{@link CKEDITOR.ENTER_P}</code>
* @example
* // Not recommended.
* config.enterMode = CKEDITOR.ENTER_BR;
*/
enterMode : CKEDITOR.ENTER_P,
/**
* Force the use of <code>{@link CKEDITOR.config.enterMode}</code> as line break regardless
* of the context. If, for example, <code>{@link CKEDITOR.config.enterMode}</code> is set
* to <code>{@link CKEDITOR.ENTER_P}</code>, pressing the <em>Enter</em> key inside a
* <code><div></code> element will create a new paragraph with <code><p></code>
* instead of a <code><div></code>.
* @since 3.2.1
* @type Boolean
* @default <code>false</code>
* @example
* // Not recommended.
* config.forceEnterMode = true;
*/
forceEnterMode : false,
/**
* Similarly to the <code>{@link CKEDITOR.config.enterMode}</code> setting, it defines the behavior
* of the <em>Shift+Enter</em> key combination.
* The allowed values are the following constants the behavior outlined below:
* <ul>
* <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li>
* <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li>
* <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li>
* </ul>
* @type Number
* @default <code>{@link CKEDITOR.ENTER_BR}</code>
* @example
* config.shiftEnterMode = CKEDITOR.ENTER_P;
*/
shiftEnterMode : CKEDITOR.ENTER_BR,
/**
* A comma separated list of plugins that are not related to editor
* instances. Reserved for plugins that extend the core code only.<br /><br />
*
* There are no ways to override this setting except by editing the source
* code of CKEditor (<code>_source/core/config.js</code>).
* @type String
* @example
*/
corePlugins : '',
/**
* Sets the <code>DOCTYPE</code> to be used when loading the editor content as HTML.
* @type String
* @default <code>'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'</code>
* @example
* // Set the DOCTYPE to the HTML 4 (Quirks) mode.
* config.docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
*/
docType : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
/**
* Sets the <code>id</code> attribute to be used on the <code>body</code> element
* of the editing area. This can be useful when you intend to reuse the original CSS
* file you are using on your live website and want to assign the editor the same ID
* as the section that will include the contents. In this way ID-specific CSS rules will
* be enabled.
* @since 3.1
* @type String
* @default <code>''</code> (empty)
* @example
* config.bodyId = 'contents_id';
*/
bodyId : '',
/**
* Sets the <code>class</code> attribute to be used on the <code>body</code> element
* of the editing area. This can be useful when you intend to reuse the original CSS
* file you are using on your live website and want to assign the editor the same class
* as the section that will include the contents. In this way class-specific CSS rules will
* be enabled.
* @since 3.1
* @type String
* @default <code>''</code> (empty)
* @example
* config.bodyClass = 'contents';
*/
bodyClass : '',
/**
* Indicates whether the contents to be edited are being input as a full
* HTML page. A full page includes the <code><html></code>,
* <code><head></code>, and <code><body></code> elements.
* The final output will also reflect this setting, including the
* <code><body></code> contents only if this setting is disabled.
* @since 3.1
* @type Boolean
* @default <code>false</code>
* @example
* config.fullPage = true;
*/
fullPage : false,
/**
* The height of the editing area (that includes the editor content). This
* can be an integer, for pixel sizes, or any CSS-defined length unit.<br>
* <br>
* <strong>Note:</strong> Percent units (%) are not supported.
* @type Number|String
* @default <code>200</code>
* @example
* config.height = 500; // 500 pixels.
* @example
* config.height = '25em'; // CSS length.
* @example
* config.height = '300px'; // CSS length.
*/
height : 200,
/**
* Comma separated list of plugins to be loaded and initialized for an editor
* instance. This setting should rarely be changed. It is recommended to use the
* <code>{@link CKEDITOR.config.extraPlugins}</code> and
* <code>{@link CKEDITOR.config.removePlugins}</code> for customization purposes instead.
* @type String
* @example
*/
plugins :
'about,' +
'a11yhelp,' +
'basicstyles,' +
'bidi,' +
'blockquote,' +
'button,' +
'clipboard,' +
'colorbutton,' +
'colordialog,' +
'contextmenu,' +
'dialogadvtab,' +
'div,' +
'elementspath,' +
'enterkey,' +
'entities,' +
'filebrowser,' +
'find,' +
'flash,' +
'font,' +
'format,' +
'forms,' +
'horizontalrule,' +
'htmldataprocessor,' +
'iframe,' +
'image,' +
'indent,' +
'justify,' +
'keystrokes,' +
'link,' +
'list,' +
'liststyle,' +
'maximize,' +
'newpage,' +
'pagebreak,' +
'pastefromword,' +
'pastetext,' +
'popup,' +
'preview,' +
'print,' +
'removeformat,' +
'resize,' +
'save,' +
'scayt,' +
'smiley,' +
'showblocks,' +
'showborders,' +
'sourcearea,' +
'stylescombo,' +
'table,' +
'tabletools,' +
'specialchar,' +
'tab,' +
'templates,' +
'toolbar,' +
'undo,' +
'wysiwygarea,' +
'wsc',
/**
* A list of additional plugins to be loaded. This setting makes it easier
* to add new plugins without having to touch and potentially break the
* <code>{@link CKEDITOR.config.plugins}</code> setting.
* @type String
* @example
* config.extraPlugins = 'myplugin,anotherplugin';
*/
extraPlugins : '',
/**
* A list of plugins that must not be loaded. This setting makes it possible
* to avoid loading some plugins defined in the <code>{@link CKEDITOR.config.plugins}</code>
* setting, without having to touch it and potentially break it.
* @type String
* @example
* config.removePlugins = 'elementspath,save,font';
*/
removePlugins : '',
/**
* List of regular expressions to be executed on input HTML,
* indicating HTML source code that when matched, must <strong>not</strong> be available in the WYSIWYG
* mode for editing.
* @type Array
* @default <code>[]</code> (empty array)
* @example
* config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP code
* config.protectedSource.push( /<%[\s\S]*?%>/g ); // ASP code
* config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ); // ASP.Net code
*/
protectedSource : [],
/**
* The editor <code>tabindex</code> value.
* @type Number
* @default <code>0</code> (zero)
* @example
* config.tabIndex = 1;
*/
tabIndex : 0,
/**
* The theme to be used to build the user interface.
* @type String
* @default <code>'default'</code>
* @see CKEDITOR.config.skin
* @example
* config.theme = 'default';
*/
theme : 'default',
/**
* The skin to load. It may be the name of the skin folder inside the
* editor installation path, or the name and the path separated by a comma.
* @type String
* @default <code>'default'</code>
* @example
* config.skin = 'v2';
* @example
* config.skin = 'myskin,/customstuff/myskin/';
*/
skin : 'kama',
/**
* The editor UI outer width. This can be an integer, for pixel sizes, or
* any CSS-defined unit.<br>
* <br>
* Unlike the <code>{@link CKEDITOR.config.height}</code> setting, this
* one will set the outer width of the entire editor UI, not for the
* editing area only.
* @type String|Number
* @default <code>''</code> (empty)
* @example
* config.width = 850; // 850 pixels wide.
* @example
* config.width = '75%'; // CSS unit.
*/
width : '',
/**
* The base Z-index for floating dialog windows and popups.
* @type Number
* @default <code>10000</code>
* @example
* config.baseFloatZIndex = 2000
*/
baseFloatZIndex : 10000
};
/**
* Indicates that some of the editor features, like alignment and text
* direction, should use the "computed value" of the feature to indicate its
* on/off state instead of using the "real value".<br />
* <br />
* If enabled in a Left-To-Right written document, the "Left Justify"
* alignment button will be shown as active, even if the alignment style is not
* explicitly applied to the current paragraph in the editor.
* @name CKEDITOR.config.useComputedState
* @type Boolean
* @default <code>true</code>
* @since 3.4
* @example
* config.useComputedState = false;
*/
// PACKAGER_RENAME( CKEDITOR.config )
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/config.js
|
JavaScript
|
gpl3
| 14,931
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.plugins} object, which is used to
* manage plugins registration and loading.
*/
/**
* Manages plugins registration and loading.
* @namespace
* @augments CKEDITOR.resourceManager
* @example
*/
CKEDITOR.plugins = new CKEDITOR.resourceManager(
'_source/' + // @Packager.RemoveLine
'plugins/', 'plugin' );
// PACKAGER_RENAME( CKEDITOR.plugins )
CKEDITOR.plugins.load = CKEDITOR.tools.override( CKEDITOR.plugins.load, function( originalLoad )
{
return function( name, callback, scope )
{
var allPlugins = {};
var loadPlugins = function( names )
{
originalLoad.call( this, names, function( plugins )
{
CKEDITOR.tools.extend( allPlugins, plugins );
var requiredPlugins = [];
for ( var pluginName in plugins )
{
var plugin = plugins[ pluginName ],
requires = plugin && plugin.requires;
if ( requires )
{
for ( var i = 0 ; i < requires.length ; i++ )
{
if ( !allPlugins[ requires[ i ] ] )
requiredPlugins.push( requires[ i ] );
}
}
}
if ( requiredPlugins.length )
loadPlugins.call( this, requiredPlugins );
else
{
// Call the "onLoad" function for all plugins.
for ( pluginName in allPlugins )
{
plugin = allPlugins[ pluginName ];
if ( plugin.onLoad && !plugin.onLoad._called )
{
plugin.onLoad();
plugin.onLoad._called = 1;
}
}
// Call the callback.
if ( callback )
callback.call( scope || window, allPlugins );
}
}
, this);
};
loadPlugins.call( this, name );
};
});
/**
* Loads a specific language file, or auto detect it. A callback is
* then called when the file gets loaded.
* @param {String} pluginName The name of the plugin to which the provided translation
* should be attached.
* @param {String} languageCode The code of the language translation provided.
* @param {Object} languageEntries An object that contains pairs of label and
* the respective translation.
* @example
* CKEDITOR.plugins.setLang( 'myPlugin', 'en', {
* title : 'My plugin',
* selectOption : 'Please select an option'
* } );
*/
CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries )
{
var plugin = this.get( pluginName ),
pluginLangEntries = plugin.langEntries || ( plugin.langEntries = {} ),
pluginLang = plugin.lang || ( plugin.lang = [] );
if ( CKEDITOR.tools.indexOf( pluginLang, languageCode ) == -1 )
pluginLang.push( languageCode );
pluginLangEntries[ languageCode ] = languageEntries;
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/plugins.js
|
JavaScript
|
gpl3
| 2,925
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.env} object, which constains
* environment and browser information.
*/
if ( !CKEDITOR.env )
{
/**
* @namespace Environment and browser information.
*/
CKEDITOR.env = (function()
{
var agent = navigator.userAgent.toLowerCase();
var opera = window.opera;
var env =
/** @lends CKEDITOR.env */
{
/**
* Indicates that CKEditor is running on Internet Explorer.
* @type Boolean
* @example
* if ( CKEDITOR.env.ie )
* alert( "I'm on IE!" );
*/
ie : /*@cc_on!@*/false,
/**
* Indicates that CKEditor is running on Opera.
* @type Boolean
* @example
* if ( CKEDITOR.env.opera )
* alert( "I'm on Opera!" );
*/
opera : ( !!opera && opera.version ),
/**
* Indicates that CKEditor is running on a WebKit based browser, like
* Safari.
* @type Boolean
* @example
* if ( CKEDITOR.env.webkit )
* alert( "I'm on WebKit!" );
*/
webkit : ( agent.indexOf( ' applewebkit/' ) > -1 ),
/**
* Indicates that CKEditor is running on Adobe AIR.
* @type Boolean
* @example
* if ( CKEDITOR.env.air )
* alert( "I'm on AIR!" );
*/
air : ( agent.indexOf( ' adobeair/' ) > -1 ),
/**
* Indicates that CKEditor is running on Macintosh.
* @type Boolean
* @example
* if ( CKEDITOR.env.mac )
* alert( "I love apples!" );
*/
mac : ( agent.indexOf( 'macintosh' ) > -1 ),
/**
* Indicates that CKEditor is running on a quirks mode environemnt.
* @type Boolean
* @example
* if ( CKEDITOR.env.quirks )
* alert( "Nooooo!" );
*/
quirks : ( document.compatMode == 'BackCompat' ),
/**
* Indicates that CKEditor is running on a mobile like environemnt.
* @type Boolean
* @example
* if ( CKEDITOR.env.mobile )
* alert( "I'm running with CKEditor today!" );
*/
mobile : ( agent.indexOf( 'mobile' ) > -1 ),
/**
* Indicates that CKEditor is running on Apple iPhone/iPad/iPod devices.
* @type Boolean
* @example
* if ( CKEDITOR.env.iOS )
* alert( "I like little apples!" );
*/
iOS : /(ipad|iphone|ipod)/.test(agent),
/**
* Indicates that the browser has a custom domain enabled. This has
* been set with "document.domain".
* @returns {Boolean} "true" if a custom domain is enabled.
* @example
* if ( CKEDITOR.env.isCustomDomain() )
* alert( "I'm in a custom domain!" );
*/
isCustomDomain : function()
{
if ( !this.ie )
return false;
var domain = document.domain,
hostname = window.location.hostname;
return domain != hostname &&
domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434)
},
/**
* Indicates that page is running under an encrypted connection.
* @returns {Boolean} "true" if the page has an encrypted connection.
* @example
* if ( CKEDITOR.env.secure )
* alert( "I'm in SSL!" );
*/
secure : location.protocol == 'https:'
};
/**
* Indicates that CKEditor is running on a Gecko based browser, like
* Firefox.
* @name CKEDITOR.env.gecko
* @type Boolean
* @example
* if ( CKEDITOR.env.gecko )
* alert( "I'm riding a gecko!" );
*/
env.gecko = ( navigator.product == 'Gecko' && !env.webkit && !env.opera );
var version = 0;
// Internet Explorer 6.0+
if ( env.ie )
{
version = parseFloat( agent.match( /msie (\d+)/ )[1] );
/**
* Indicates that CKEditor is running on Internet Explorer 8.
* @name CKEDITOR.env.ie8
* @type Boolean
* @example
* if ( CKEDITOR.env.ie8 )
* alert( "I'm on IE8!" );
*/
env.ie8 = !!document.documentMode;
/**
* Indicates that CKEditor is running on Internet Explorer 8 on
* standards mode.
* @name CKEDITOR.env.ie8Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie8Compat )
* alert( "Now I'm on IE8, for real!" );
*/
env.ie8Compat = document.documentMode == 8;
/**
* Indicates that CKEditor is running on Internet Explorer 9's standards mode.
* @name CKEDITOR.env.ie9Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie9Compat )
* alert( "IE9, the beauty of the web!" );
*/
env.ie9Compat = document.documentMode == 9;
/**
* Indicates that CKEditor is running on an IE7-like environment, which
* includes IE7 itself and IE8's IE7 document mode.
* @name CKEDITOR.env.ie7Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie8Compat )
* alert( "I'm on IE7 or on an IE7 like IE8!" );
*/
env.ie7Compat = ( ( version == 7 && !document.documentMode )
|| document.documentMode == 7 );
/**
* Indicates that CKEditor is running on an IE6-like environment, which
* includes IE6 itself and IE7 and IE8 quirks mode.
* @name CKEDITOR.env.ie6Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie6Compat )
* alert( "I'm on IE6 or quirks mode!" );
*/
env.ie6Compat = ( version < 7 || env.quirks );
}
// Gecko.
if ( env.gecko )
{
var geckoRelease = agent.match( /rv:([\d\.]+)/ );
if ( geckoRelease )
{
geckoRelease = geckoRelease[1].split( '.' );
version = geckoRelease[0] * 10000 + ( geckoRelease[1] || 0 ) * 100 + ( geckoRelease[2] || 0 ) * 1;
}
}
// Opera 9.50+
if ( env.opera )
version = parseFloat( opera.version() );
// Adobe AIR 1.0+
// Checked before Safari because AIR have the WebKit rich text editor
// features from Safari 3.0.4, but the version reported is 420.
if ( env.air )
version = parseFloat( agent.match( / adobeair\/(\d+)/ )[1] );
// WebKit 522+ (Safari 3+)
if ( env.webkit )
version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] );
/**
* Contains the browser version.<br />
* <br />
* For gecko based browsers (like Firefox) it contains the revision
* number with first three parts concatenated with a padding zero
* (e.g. for revision 1.9.0.2 we have 10900).<br />
* <br />
* For webkit based browser (like Safari and Chrome) it contains the
* WebKit build version (e.g. 522).
* @name CKEDITOR.env.version
* @type Boolean
* @example
* if ( CKEDITOR.env.ie && <b>CKEDITOR.env.version</b> <= 6 )
* alert( "Ouch!" );
*/
env.version = version;
/**
* Indicates that CKEditor is running on a compatible browser.
* @name CKEDITOR.env.isCompatible
* @type Boolean
* @example
* if ( CKEDITOR.env.isCompatible )
* alert( "Your browser is pretty cool!" );
*/
env.isCompatible =
// White list of mobile devices that supports.
env.iOS && version >= 534 ||
!env.mobile && (
( env.ie && version >= 6 ) ||
( env.gecko && version >= 10801 ) ||
( env.opera && version >= 9.5 ) ||
( env.air && version >= 1 ) ||
( env.webkit && version >= 522 ) ||
false );
/**
* The CSS class to be appended on the main UI containers, making it
* easy to apply browser specific styles to it.
* @name CKEDITOR.env.cssClass
* @type String
* @example
* myDiv.className = CKEDITOR.env.cssClass;
*/
env.cssClass =
'cke_browser_' + (
env.ie ? 'ie' :
env.gecko ? 'gecko' :
env.opera ? 'opera' :
env.webkit ? 'webkit' :
'unknown' );
if ( env.quirks )
env.cssClass += ' cke_browser_quirks';
if ( env.ie )
{
env.cssClass += ' cke_browser_ie' + (
env.version < 7 ? '6' :
env.version >= 8 ? document.documentMode:
'7' );
if ( env.quirks )
env.cssClass += ' cke_browser_iequirks';
}
if ( env.gecko && version < 10900 )
env.cssClass += ' cke_browser_gecko18';
if ( env.air )
env.cssClass += ' cke_browser_air';
return env;
})();
}
// PACKAGER_RENAME( CKEDITOR.env )
// PACKAGER_RENAME( CKEDITOR.env.ie )
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/env.js
|
JavaScript
|
gpl3
| 8,311
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.skins} object, which is used to
* manage skins loading.
*/
/**
* Manages skins loading.
* @namespace
* @example
*/
CKEDITOR.skins = (function()
{
// Holds the list of loaded skins.
var loaded = {},
paths = {};
var loadPart = function( editor, skinName, part, callback )
{
// Get the skin definition.
var skinDefinition = loaded[ skinName ];
if ( !editor.skin )
{
editor.skin = skinDefinition;
// Trigger init function if any.
if ( skinDefinition.init )
skinDefinition.init( editor );
}
var appendSkinPath = function( fileNames )
{
for ( var n = 0 ; n < fileNames.length ; n++ )
{
fileNames[ n ] = CKEDITOR.getUrl( paths[ skinName ] + fileNames[ n ] );
}
};
function fixCSSTextRelativePath( cssStyleText, baseUrl )
{
return cssStyleText.replace( /url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,
function( match, opener, path, closer )
{
if ( /^\/|^\w?:/.test( path ) )
return match;
else
return 'url(' + baseUrl + opener + path + closer + ')';
} );
}
// Get the part definition.
part = skinDefinition[ part ];
var partIsLoaded = !part || !!part._isLoaded;
// Call the callback immediately if already loaded.
if ( partIsLoaded )
callback && callback();
else
{
// Put the callback in a queue.
var pending = part._pending || ( part._pending = [] );
pending.push( callback );
// We may have more than one skin part load request. Just the first
// one must do the loading job.
if ( pending.length > 1 )
return;
// Check whether the "css" and "js" properties have been defined
// for that part.
var cssIsLoaded = !part.css || !part.css.length,
jsIsLoaded = !part.js || !part.js.length;
// This is the function that will trigger the callback calls on
// load.
var checkIsLoaded = function()
{
if ( cssIsLoaded && jsIsLoaded )
{
// Mark the part as loaded.
part._isLoaded = 1;
// Call all pending callbacks.
for ( var i = 0 ; i < pending.length ; i++ )
{
if ( pending[ i ] )
pending[ i ]();
}
}
};
// Load the "css" pieces.
if ( !cssIsLoaded )
{
var cssPart = part.css;
if ( CKEDITOR.tools.isArray( cssPart ) )
{
appendSkinPath( cssPart );
for ( var c = 0 ; c < cssPart.length ; c++ )
CKEDITOR.document.appendStyleSheet( cssPart[ c ] );
}
else
{
cssPart = fixCSSTextRelativePath(
cssPart, CKEDITOR.getUrl( paths[ skinName ] ) );
// Processing Inline CSS part.
CKEDITOR.document.appendStyleText( cssPart );
}
part.css = cssPart;
cssIsLoaded = 1;
}
// Load the "js" pieces.
if ( !jsIsLoaded )
{
appendSkinPath( part.js );
CKEDITOR.scriptLoader.load( part.js, function()
{
jsIsLoaded = 1;
checkIsLoaded();
});
}
// We may have nothing to load, so check it immediately.
checkIsLoaded();
}
};
return /** @lends CKEDITOR.skins */ {
/**
* Registers a skin definition.
* @param {String} skinName The skin name.
* @param {Object} skinDefinition The skin definition.
* @example
*/
add : function( skinName, skinDefinition )
{
loaded[ skinName ] = skinDefinition;
skinDefinition.skinPath = paths[ skinName ]
|| ( paths[ skinName ] =
CKEDITOR.getUrl(
'_source/' + // @Packager.RemoveLine
'skins/' + skinName + '/' ) );
},
/**
* Loads a skin part. Skins are defined in parts, which are basically
* separated CSS files. This function is mainly used by the core code and
* should not have much use out of it.
* @param {String} skinName The name of the skin to be loaded.
* @param {String} skinPart The skin part to be loaded. Common skin parts
* are "editor" and "dialog".
* @param {Function} [callback] A function to be called once the skin
* part files are loaded.
* @example
*/
load : function( editor, skinPart, callback )
{
var skinName = editor.skinName,
skinPath = editor.skinPath;
if ( loaded[ skinName ] )
loadPart( editor, skinName, skinPart, callback );
else
{
paths[ skinName ] = skinPath;
CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( skinPath + 'skin.js' ), function()
{
loadPart( editor, skinName, skinPart, callback );
});
}
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/skins.js
|
JavaScript
|
gpl3
| 4,733
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
if ( !CKEDITOR.editor )
{
/**
* No element is linked to the editor instance.
* @constant
* @example
*/
CKEDITOR.ELEMENT_MODE_NONE = 0;
/**
* The element is to be replaced by the editor instance.
* @constant
* @example
*/
CKEDITOR.ELEMENT_MODE_REPLACE = 1;
/**
* The editor is to be created inside the element.
* @constant
* @example
*/
CKEDITOR.ELEMENT_MODE_APPENDTO = 2;
/**
* Creates an editor class instance. This constructor should be rarely
* used, in favor of the {@link CKEDITOR} editor creation functions.
* @ class Represents an editor instance.
* @param {Object} instanceConfig Configuration values for this specific
* instance.
* @param {CKEDITOR.dom.element} [element] The element linked to this
* instance.
* @param {Number} [mode] The mode in which the element is linked to this
* instance. See {@link #elementMode}.
* @param {String} [data] Since 3.3. Initial value for the instance.
* @augments CKEDITOR.event
* @example
*/
CKEDITOR.editor = function( instanceConfig, element, mode, data )
{
this._ =
{
// Save the config to be processed later by the full core code.
instanceConfig : instanceConfig,
element : element,
data : data
};
/**
* The mode in which the {@link #element} is linked to this editor
* instance. It can be any of the following values:
* <ul>
* <li>{@link CKEDITOR.ELEMENT_MODE_NONE}: No element is linked to the
* editor instance.</li>
* <li>{@link CKEDITOR.ELEMENT_MODE_REPLACE}: The element is to be
* replaced by the editor instance.</li>
* <li>{@link CKEDITOR.ELEMENT_MODE_APPENDTO}: The editor is to be
* created inside the element.</li>
* </ul>
* @name CKEDITOR.editor.prototype.elementMode
* @type Number
* @example
* var editor = CKEDITOR.replace( 'editor1' );
* alert( <b>editor.elementMode</b> ); "1"
*/
this.elementMode = mode || CKEDITOR.ELEMENT_MODE_NONE;
// Call the CKEDITOR.event constructor to initialize this instance.
CKEDITOR.event.call( this );
this._init();
};
/**
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
* instance. For textareas, the initial value in the editor will be the
* textarea value. For DOM elements, their innerHTML will be used
* instead. We recommend using TEXTAREA and DIV elements only. Do not use
* this function directly. Use {@link CKEDITOR.replace} instead.
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
* ID or name.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
*/
CKEDITOR.editor.replace = function( elementOrIdOrName, config )
{
var element = elementOrIdOrName;
if ( typeof element != 'object' )
{
// Look for the element by id. We accept any kind of element here.
element = document.getElementById( elementOrIdOrName );
// Elements that should go into head are unacceptable (#6791).
if ( element && element.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1} )
element = null;
// If not found, look for elements by name. In this case we accept only
// textareas.
if ( !element )
{
var i = 0,
textareasByName = document.getElementsByName( elementOrIdOrName );
while ( ( element = textareasByName[ i++ ] ) && element.tagName.toLowerCase() != 'textarea' )
{ /*jsl:pass*/ }
}
if ( !element )
throw '[CKEDITOR.editor.replace] The element with id or name "' + elementOrIdOrName + '" was not found.';
}
// Do not replace the textarea right now, just hide it. The effective
// replacement will be done by the _init function.
element.style.visibility = 'hidden';
// Create the editor instance.
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_REPLACE );
};
/**
* Creates a new editor instance inside a specific DOM element. Do not use
* this function directly. Use {@link CKEDITOR.appendTo} instead.
* @param {Object|String} elementOrId The DOM element or its ID.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @param {String} [data] Since 3.3. Initial value for the instance.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
*/
CKEDITOR.editor.appendTo = function( elementOrId, config, data )
{
var element = elementOrId;
if ( typeof element != 'object' )
{
element = document.getElementById( elementOrId );
if ( !element )
throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.';
}
// Create the editor instance.
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO, data );
};
CKEDITOR.editor.prototype =
{
/**
* Initializes the editor instance. This function will be overriden by the
* full CKEDITOR.editor implementation (editor.js).
* @private
*/
_init : function()
{
var pending = CKEDITOR.editor._pending || ( CKEDITOR.editor._pending = [] );
pending.push( this );
},
// Both fire and fireOnce will always pass this editor instance as the
// "editor" param in CKEDITOR.event.fire. So, we override it to do that
// automaticaly.
/** @ignore */
fire : function( eventName, data )
{
return CKEDITOR.event.prototype.fire.call( this, eventName, data, this );
},
/** @ignore */
fireOnce : function( eventName, data )
{
return CKEDITOR.event.prototype.fireOnce.call( this, eventName, data, this );
}
};
// "Inherit" (copy actually) from CKEDITOR.event.
CKEDITOR.event.implementOn( CKEDITOR.editor.prototype, true );
}
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/editor_basic.js
|
JavaScript
|
gpl3
| 6,174
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.eventInfo} class, which
* contains the defintions of the event object passed to event listeners.
* This file is for documentation purposes only.
*/
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API.
* @class Virtual class that illustrates the features of the event object to be
* passed to event listeners by a {@link CKEDITOR.event} based object.
* @name CKEDITOR.eventInfo
* @example
* // Do not do this.
* var myEvent = new CKEDITOR.eventInfo(); // Error: CKEDITOR.eventInfo is undefined
*/
/**
* The event name.
* @name CKEDITOR.eventInfo.prototype.name
* @field
* @type String
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.name</b> ); // "someEvent"
* });
* someObject.fire( 'someEvent' );
*/
/**
* The object that publishes (sends) the event.
* @name CKEDITOR.eventInfo.prototype.sender
* @field
* @type Object
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.sender</b> == someObject ); // "true"
* });
* someObject.fire( 'someEvent' );
*/
/**
* The editor instance that holds the sender. May be the same as sender. May be
* null if the sender is not part of an editor instance, like a component
* running in standalone mode.
* @name CKEDITOR.eventInfo.prototype.editor
* @field
* @type CKEDITOR.editor
* @example
* myButton.on( 'someEvent', function( event )
* {
* alert( <b>event.editor</b> == myEditor ); // "true"
* });
* myButton.fire( 'someEvent', null, <b>myEditor</b> );
*/
/**
* Any kind of additional data. Its format and usage is event dependent.
* @name CKEDITOR.eventInfo.prototype.data
* @field
* @type Object
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.data</b> ); // "Example"
* });
* someObject.fire( 'someEvent', <b>'Example'</b> );
*/
/**
* Any extra data appended during the listener registration.
* @name CKEDITOR.eventInfo.prototype.listenerData
* @field
* @type Object
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.listenerData</b> ); // "Example"
* }
* , null, <b>'Example'</b> );
*/
/**
* Indicates that no further listeners are to be called.
* @name CKEDITOR.eventInfo.prototype.stop
* @function
* @example
* someObject.on( 'someEvent', function( event )
* {
* <b>event.stop()</b>;
* });
* someObject.on( 'someEvent', function( event )
* {
* // This one will not be called.
* });
* alert( someObject.fire( 'someEvent' ) ); // "false"
*/
/**
* Indicates that the event is to be cancelled (if cancelable).
* @name CKEDITOR.eventInfo.prototype.cancel
* @function
* @example
* someObject.on( 'someEvent', function( event )
* {
* <b>event.cancel()</b>;
* });
* someObject.on( 'someEvent', function( event )
* {
* // This one will not be called.
* });
* alert( someObject.fire( 'someEvent' ) ); // "true"
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/eventInfo.js
|
JavaScript
|
gpl3
| 3,410
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Contains UI features related to an editor instance.
* @constructor
* @param {CKEDITOR.editor} editor The editor instance.
* @example
*/
CKEDITOR.ui = function( editor )
{
if ( editor.ui )
return editor.ui;
/**
* Object used to hold private stuff.
* @private
*/
this._ =
{
handlers : {},
items : {},
editor : editor
};
return this;
};
// PACKAGER_RENAME( CKEDITOR.ui )
CKEDITOR.ui.prototype =
{
/**
* Adds a UI item to the items collection. These items can be later used in
* the interface.
* @param {String} name The UI item name.
* @param {Object} type The item type.
* @param {Object} definition The item definition. The properties of this
* object depend on the item type.
* @example
* // Add a new button named "MyBold".
* editorInstance.ui.add( 'MyBold', CKEDITOR.UI_BUTTON,
* {
* label : 'My Bold',
* command : 'bold'
* });
*/
add : function( name, type, definition )
{
this._.items[ name ] =
{
type : type,
// The name of {@link CKEDITOR.command} which associate with this UI.
command : definition.command || null,
args : Array.prototype.slice.call( arguments, 2 )
};
},
/**
* Gets a UI object.
* @param {String} name The UI item hame.
* @example
*/
create : function( name )
{
var item = this._.items[ name ],
handler = item && this._.handlers[ item.type ],
command = item && item.command && this._.editor.getCommand( item.command );
var result = handler && handler.create.apply( this, item.args );
// Allow overrides from skin ui definitions..
item && ( result = CKEDITOR.tools.extend( result, this._.editor.skin[ item.type ], true ) );
// Add reference inside command object.
if ( command )
command.uiItems.push( result );
return result;
},
/**
* Adds a handler for a UI item type. The handler is responsible for
* transforming UI item definitions in UI objects.
* @param {Object} type The item type.
* @param {Object} handler The handler definition.
* @example
*/
addHandler : function( type, handler )
{
this._.handlers[ type ] = handler;
}
};
CKEDITOR.event.implementOn( CKEDITOR.ui );
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API. It just illustrates the features of hanlder objects to be
* passed to the {@link CKEDITOR.ui.prototype.addHandler} function.
* @name CKEDITOR.ui.handlerDefinition
* @constructor
* @example
*/
/**
* Transforms an item definition into an UI item object.
* @name CKEDITOR.handlerDefinition.prototype.create
* @function
* @param {Object} definition The item definition.
* @example
* editorInstance.ui.addHandler( CKEDITOR.UI_BUTTON,
* {
* create : function( definition )
* {
* return new CKEDITOR.ui.button( definition );
* }
* });
*/
/**
* Internal event fired when a new UI element is ready
* @name CKEDITOR.ui#ready
* @event
* @param {Object} element The new element
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/ui.js
|
JavaScript
|
gpl3
| 3,286
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Creates a command class instance.
* @class Represents a command that can be executed on an editor instance.
* @param {CKEDITOR.editor} editor The editor instance this command will be
* related to.
* @param {CKEDITOR.commandDefinition} commandDefinition The command
* definition.
* @augments CKEDITOR.event
* @example
* var command = new CKEDITOR.command( editor,
* {
* exec : function( editor )
* {
* alert( editor.document.getBody().getHtml() );
* }
* });
*/
CKEDITOR.command = function( editor, commandDefinition )
{
/**
* Lists UI items that are associated to this command. This list can be
* used to interact with the UI on command execution (by the execution code
* itself, for example).
* @type Array
* @example
* alert( 'Number of UI items associated to this command: ' + command.<b>uiItems</b>.length );
*/
this.uiItems = [];
/**
* Executes the command.
* @param {Object} [data] Any data to pass to the command. Depends on the
* command implementation and requirements.
* @returns {Boolean} A boolean indicating that the command has been
* successfully executed.
* @example
* command.<b>exec()</b>; // The command gets executed.
*/
this.exec = function( data )
{
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
return false;
if ( this.editorFocus ) // Give editor focus if necessary (#4355).
editor.focus();
if ( this.fire( 'exec' ) === true )
return true;
return ( commandDefinition.exec.call( this, editor, data ) !== false );
};
/**
* Explicitly update the status of the command, by firing the {@link CKEDITOR.command#event:refresh} event,
* as well as invoke the {@link CKEDITOR.commandDefinition.prototype.refresh} method if defined, this method
* is to allow different parts of the editor code to contribute in command status resolution.
*/
this.refresh = function()
{
if ( this.fire( 'refresh' ) === true )
return true;
return ( commandDefinition.refresh && commandDefinition.refresh.apply( this, arguments ) !== false );
};
CKEDITOR.tools.extend( this, commandDefinition,
// Defaults
/** @lends CKEDITOR.command.prototype */
{
/**
* The editor modes within which the command can be executed. The
* execution will have no action if the current mode is not listed
* in this property.
* @type Object
* @default { wysiwyg : 1 }
* @see CKEDITOR.editor.prototype.mode
* @example
* // Enable the command in both WYSIWYG and Source modes.
* command.<b>modes</b> = { wysiwyg : 1, source : 1 };
* @example
* // Enable the command in Source mode only.
* command.<b>modes</b> = { source : 1 };
*/
modes : { wysiwyg : 1 },
/**
* Indicates that the editor will get the focus before executing
* the command.
* @type Boolean
* @default true
* @example
* // Do not force the editor to have focus when executing the command.
* command.<b>editorFocus</b> = false;
*/
editorFocus : 1,
/**
* Indicates the editor state. Possible values are:
* <ul>
* <li>{@link CKEDITOR.TRISTATE_DISABLED}: the command is
* disabled. It's execution will have no effect. Same as
* {@link disable}.</li>
* <li>{@link CKEDITOR.TRISTATE_ON}: the command is enabled
* and currently active in the editor (for context sensitive commands,
* for example).</li>
* <li>{@link CKEDITOR.TRISTATE_OFF}: the command is enabled
* and currently inactive in the editor (for context sensitive
* commands, for example).</li>
* </ul>
* Do not set this property directly, using the {@link #setState}
* method instead.
* @type Number
* @default {@link CKEDITOR.TRISTATE_OFF}
* @example
* if ( command.<b>state</b> == CKEDITOR.TRISTATE_DISABLED )
* alert( 'This command is disabled' );
*/
state : CKEDITOR.TRISTATE_OFF
});
// Call the CKEDITOR.event constructor to initialize this instance.
CKEDITOR.event.call( this );
};
CKEDITOR.command.prototype =
{
/**
* Enables the command for execution. The command state (see
* {@link CKEDITOR.command.prototype.state}) available before disabling it
* is restored.
* @example
* command.<b>enable()</b>;
* command.exec(); // Execute the command.
*/
enable : function()
{
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
this.setState( ( !this.preserveState || ( typeof this.previousState == 'undefined' ) ) ? CKEDITOR.TRISTATE_OFF : this.previousState );
},
/**
* Disables the command for execution. The command state (see
* {@link CKEDITOR.command.prototype.state}) will be set to
* {@link CKEDITOR.TRISTATE_DISABLED}.
* @example
* command.<b>disable()</b>;
* command.exec(); // "false" - Nothing happens.
*/
disable : function()
{
this.setState( CKEDITOR.TRISTATE_DISABLED );
},
/**
* Sets the command state.
* @param {Number} newState The new state. See {@link #state}.
* @returns {Boolean} Returns "true" if the command state changed.
* @example
* command.<b>setState( CKEDITOR.TRISTATE_ON )</b>;
* command.exec(); // Execute the command.
* command.<b>setState( CKEDITOR.TRISTATE_DISABLED )</b>;
* command.exec(); // "false" - Nothing happens.
* command.<b>setState( CKEDITOR.TRISTATE_OFF )</b>;
* command.exec(); // Execute the command.
*/
setState : function( newState )
{
// Do nothing if there is no state change.
if ( this.state == newState )
return false;
this.previousState = this.state;
// Set the new state.
this.state = newState;
// Fire the "state" event, so other parts of the code can react to the
// change.
this.fire( 'state' );
return true;
},
/**
* Toggles the on/off (active/inactive) state of the command. This is
* mainly used internally by context sensitive commands.
* @example
* command.<b>toggleState()</b>;
*/
toggleState : function()
{
if ( this.state == CKEDITOR.TRISTATE_OFF )
this.setState( CKEDITOR.TRISTATE_ON );
else if ( this.state == CKEDITOR.TRISTATE_ON )
this.setState( CKEDITOR.TRISTATE_OFF );
}
};
CKEDITOR.event.implementOn( CKEDITOR.command.prototype, true );
/**
* Indicates the previous command state.
* @name CKEDITOR.command.prototype.previousState
* @type Number
* @see #state
* @example
* alert( command.<b>previousState</b> );
*/
/**
* Fired when the command state changes.
* @name CKEDITOR.command#state
* @event
* @example
* command.on( <b>'state'</b> , function( e )
* {
* // Alerts the new state.
* alert( this.state );
* });
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/command.js
|
JavaScript
|
gpl3
| 6,997
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* A lightweight representation of an HTML comment.
* @constructor
* @example
*/
CKEDITOR.htmlParser.comment = function( value )
{
/**
* The comment text.
* @type String
* @example
*/
this.value = value;
/** @private */
this._ =
{
isBlockLike : false
};
};
CKEDITOR.htmlParser.comment.prototype =
{
/**
* The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_COMMENT,
/**
* Writes the HTML representation of this comment to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
*/
writeHtml : function( writer, filter )
{
var comment = this.value;
if ( filter )
{
if ( !( comment = filter.onComment( comment, this ) ) )
return;
if ( typeof comment != 'string' )
{
comment.parent = this.parent;
comment.writeHtml( writer, filter );
return;
}
}
writer.comment( comment );
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser/comment.js
|
JavaScript
|
gpl3
| 1,201
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.htmlParser.filter = CKEDITOR.tools.createClass(
{
$ : function( rules )
{
this._ =
{
elementNames : [],
attributeNames : [],
elements : { $length : 0 },
attributes : { $length : 0 }
};
if ( rules )
this.addRules( rules, 10 );
},
proto :
{
addRules : function( rules, priority )
{
if ( typeof priority != 'number' )
priority = 10;
// Add the elementNames.
addItemsToList( this._.elementNames, rules.elementNames, priority );
// Add the attributeNames.
addItemsToList( this._.attributeNames, rules.attributeNames, priority );
// Add the elements.
addNamedItems( this._.elements, rules.elements, priority );
// Add the attributes.
addNamedItems( this._.attributes, rules.attributes, priority );
// Add the text.
this._.text = transformNamedItem( this._.text, rules.text, priority ) || this._.text;
// Add the comment.
this._.comment = transformNamedItem( this._.comment, rules.comment, priority ) || this._.comment;
// Add root fragment.
this._.root = transformNamedItem( this._.root, rules.root, priority ) || this._.root;
},
onElementName : function( name )
{
return filterName( name, this._.elementNames );
},
onAttributeName : function( name )
{
return filterName( name, this._.attributeNames );
},
onText : function( text )
{
var textFilter = this._.text;
return textFilter ? textFilter.filter( text ) : text;
},
onComment : function( commentText, comment )
{
var textFilter = this._.comment;
return textFilter ? textFilter.filter( commentText, comment ) : commentText;
},
onFragment : function( element )
{
var rootFilter = this._.root;
return rootFilter ? rootFilter.filter( element ) : element;
},
onElement : function( element )
{
// We must apply filters set to the specific element name as
// well as those set to the generic $ name. So, add both to an
// array and process them in a small loop.
var filters = [ this._.elements[ '^' ], this._.elements[ element.name ], this._.elements.$ ],
filter, ret;
for ( var i = 0 ; i < 3 ; i++ )
{
filter = filters[ i ];
if ( filter )
{
ret = filter.filter( element, this );
if ( ret === false )
return null;
if ( ret && ret != element )
return this.onNode( ret );
// The non-root element has been dismissed by one of the filters.
if ( element.parent && !element.name )
break;
}
}
return element;
},
onNode : function( node )
{
var type = node.type;
return type == CKEDITOR.NODE_ELEMENT ? this.onElement( node ) :
type == CKEDITOR.NODE_TEXT ? new CKEDITOR.htmlParser.text( this.onText( node.value ) ) :
type == CKEDITOR.NODE_COMMENT ? new CKEDITOR.htmlParser.comment( this.onComment( node.value ) ):
null;
},
onAttribute : function( element, name, value )
{
var filter = this._.attributes[ name ];
if ( filter )
{
var ret = filter.filter( value, element, this );
if ( ret === false )
return false;
if ( typeof ret != 'undefined' )
return ret;
}
return value;
}
}
});
function filterName( name, filters )
{
for ( var i = 0 ; name && i < filters.length ; i++ )
{
var filter = filters[ i ];
name = name.replace( filter[ 0 ], filter[ 1 ] );
}
return name;
}
function addItemsToList( list, items, priority )
{
if ( typeof items == 'function' )
items = [ items ];
var i, j,
listLength = list.length,
itemsLength = items && items.length;
if ( itemsLength )
{
// Find the index to insert the items at.
for ( i = 0 ; i < listLength && list[ i ].pri < priority ; i++ )
{ /*jsl:pass*/ }
// Add all new items to the list at the specific index.
for ( j = itemsLength - 1 ; j >= 0 ; j-- )
{
var item = items[ j ];
if ( item )
{
item.pri = priority;
list.splice( i, 0, item );
}
}
}
}
function addNamedItems( hashTable, items, priority )
{
if ( items )
{
for ( var name in items )
{
var current = hashTable[ name ];
hashTable[ name ] =
transformNamedItem(
current,
items[ name ],
priority );
if ( !current )
hashTable.$length++;
}
}
}
function transformNamedItem( current, item, priority )
{
if ( item )
{
item.pri = priority;
if ( current )
{
// If the current item is not an Array, transform it.
if ( !current.splice )
{
if ( current.pri > priority )
current = [ item, current ];
else
current = [ current, item ];
current.filter = callItems;
}
else
addItemsToList( current, item, priority );
return current;
}
else
{
item.filter = item;
return item;
}
}
}
// Invoke filters sequentially on the array, break the iteration
// when it doesn't make sense to continue anymore.
function callItems( currentEntry )
{
var isNode = currentEntry.type
|| currentEntry instanceof CKEDITOR.htmlParser.fragment;
for ( var i = 0 ; i < this.length ; i++ )
{
// Backup the node info before filtering.
if ( isNode )
{
var orgType = currentEntry.type,
orgName = currentEntry.name;
}
var item = this[ i ],
ret = item.apply( window, arguments );
if ( ret === false )
return ret;
// We're filtering node (element/fragment).
if ( isNode )
{
// No further filtering if it's not anymore
// fitable for the subsequent filters.
if ( ret && ( ret.name != orgName
|| ret.type != orgType ) )
{
return ret;
}
}
// Filtering value (nodeName/textValue/attrValue).
else
{
// No further filtering if it's not
// any more values.
if ( typeof ret != 'string' )
return ret;
}
ret != undefined && ( currentEntry = ret );
}
return currentEntry;
}
})();
// "entities" plugin
/*
{
text : function( text )
{
// TODO : Process entities.
return text.toUpperCase();
}
};
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser/filter.js
|
JavaScript
|
gpl3
| 6,544
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
/**
* A lightweight representation of HTML text.
* @constructor
* @example
*/
CKEDITOR.htmlParser.cdata = function( value )
{
/**
* The CDATA value.
* @type String
* @example
*/
this.value = value;
};
CKEDITOR.htmlParser.cdata.prototype =
{
/**
* CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is
* a constant value set to {@link CKEDITOR.NODE_TEXT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_TEXT,
/**
* Writes write the CDATA with no special manipulations.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
*/
writeHtml : function( writer )
{
writer.write( this.value );
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser/cdata.js
|
JavaScript
|
gpl3
| 913
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
/**
* A lightweight representation of HTML text.
* @constructor
* @example
*/
CKEDITOR.htmlParser.text = function( value )
{
/**
* The text value.
* @type String
* @example
*/
this.value = value;
/** @private */
this._ =
{
isBlockLike : false
};
};
CKEDITOR.htmlParser.text.prototype =
{
/**
* The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_TEXT,
/**
* Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
*/
writeHtml : function( writer, filter )
{
var text = this.value;
if ( filter && !( text = filter.onText( text, this ) ) )
return;
writer.text( text );
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser/text.js
|
JavaScript
|
gpl3
| 1,063
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass(
{
$ : function()
{
this._ =
{
output : []
};
},
proto :
{
/**
* Writes the tag opening part for a opener tag.
* @param {String} tagName The element name for this tag.
* @param {Object} attributes The attributes defined for this tag. The
* attributes could be used to inspect the tag.
* @example
* // Writes "<p".
* writer.openTag( 'p', { class : 'MyClass', id : 'MyId' } );
*/
openTag : function( tagName, attributes )
{
this._.output.push( '<', tagName );
},
/**
* Writes the tag closing part for a opener tag.
* @param {String} tagName The element name for this tag.
* @param {Boolean} isSelfClose Indicates that this is a self-closing tag,
* like "br" or "img".
* @example
* // Writes ">".
* writer.openTagClose( 'p', false );
* @example
* // Writes " />".
* writer.openTagClose( 'br', true );
*/
openTagClose : function( tagName, isSelfClose )
{
if ( isSelfClose )
this._.output.push( ' />' );
else
this._.output.push( '>' );
},
/**
* Writes an attribute. This function should be called after opening the
* tag with {@link #openTagClose}.
* @param {String} attName The attribute name.
* @param {String} attValue The attribute value.
* @example
* // Writes ' class="MyClass"'.
* writer.attribute( 'class', 'MyClass' );
*/
attribute : function( attName, attValue )
{
// Browsers don't always escape special character in attribute values. (#4683, #4719).
if ( typeof attValue == 'string' )
attValue = CKEDITOR.tools.htmlEncodeAttr( attValue );
this._.output.push( ' ', attName, '="', attValue, '"' );
},
/**
* Writes a closer tag.
* @param {String} tagName The element name for this tag.
* @example
* // Writes "</p>".
* writer.closeTag( 'p' );
*/
closeTag : function( tagName )
{
this._.output.push( '</', tagName, '>' );
},
/**
* Writes text.
* @param {String} text The text value
* @example
* // Writes "Hello Word".
* writer.text( 'Hello Word' );
*/
text : function( text )
{
this._.output.push( text );
},
/**
* Writes a comment.
* @param {String} comment The comment text.
* @example
* // Writes "<!-- My comment -->".
* writer.comment( ' My comment ' );
*/
comment : function( comment )
{
this._.output.push( '<!--', comment, '-->' );
},
/**
* Writes any kind of data to the ouput.
* @example
* writer.write( 'This is an <b>example</b>.' );
*/
write : function( data )
{
this._.output.push( data );
},
/**
* Empties the current output buffer.
* @example
* writer.reset();
*/
reset : function()
{
this._.output = [];
this._.indent = false;
},
/**
* Empties the current output buffer.
* @param {Boolean} reset Indicates that the {@link reset} function is to
* be automatically called after retrieving the HTML.
* @returns {String} The HTML written to the writer so far.
* @example
* var html = writer.getHtml();
*/
getHtml : function( reset )
{
var html = this._.output.join( '' );
if ( reset )
this.reset();
return html;
}
}
});
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser/basicwriter.js
|
JavaScript
|
gpl3
| 3,568
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* A lightweight representation of an HTML DOM structure.
* @constructor
* @example
*/
CKEDITOR.htmlParser.fragment = function()
{
/**
* The nodes contained in the root of this fragment.
* @type Array
* @example
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' );
* alert( fragment.children.length ); "2"
*/
this.children = [];
/**
* Get the fragment parent. Should always be null.
* @type Object
* @default null
* @example
*/
this.parent = null;
/** @private */
this._ =
{
isBlockLike : true,
hasInlineStarted : false
};
};
(function()
{
// Block-level elements whose internal structure should be respected during
// parser fixing.
var nonBreakingBlocks = CKEDITOR.tools.extend( { table:1,ul:1,ol:1,dl:1 }, CKEDITOR.dtd.table, CKEDITOR.dtd.ul, CKEDITOR.dtd.ol, CKEDITOR.dtd.dl );
// IE < 8 don't output the close tag on definition list items. (#6975)
var optionalCloseTags = CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? { dd : 1, dt :1 } : {};
var listBlocks = { ol:1, ul:1 };
// Dtd of the fragment element, basically it accept anything except for intermediate structure, e.g. orphan <li>.
var rootDtd = CKEDITOR.tools.extend( {}, { html: 1 }, CKEDITOR.dtd.html, CKEDITOR.dtd.body, CKEDITOR.dtd.head, { style:1,script:1 } );
function isRemoveEmpty( node )
{
// Empty link is to be removed when empty but not anchor. (#7894)
return node.name == 'a' && node.attributes.href
|| CKEDITOR.dtd.$removeEmpty[ node.name ];
}
/**
* Creates a {@link CKEDITOR.htmlParser.fragment} from an HTML string.
* @param {String} fragmentHtml The HTML to be parsed, filling the fragment.
* @param {Number} [fixForBody=false] Wrap body with specified element if needed.
* @param {CKEDITOR.htmlParser.element} contextNode Parse the html as the content of this element.
* @returns CKEDITOR.htmlParser.fragment The fragment created.
* @example
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' );
* alert( fragment.children[0].name ); "b"
* alert( fragment.children[1].value ); " Text"
*/
CKEDITOR.htmlParser.fragment.fromHtml = function( fragmentHtml, fixForBody, contextNode )
{
var parser = new CKEDITOR.htmlParser(),
fragment = contextNode || new CKEDITOR.htmlParser.fragment(),
pendingInline = [],
pendingBRs = [],
currentNode = fragment,
// Indicate we're inside a <textarea> element, spaces should be touched differently.
inTextarea = false,
// Indicate we're inside a <pre> element, spaces should be touched differently.
inPre = false;
function checkPending( newTagName )
{
var pendingBRsSent;
if ( pendingInline.length > 0 )
{
for ( var i = 0 ; i < pendingInline.length ; i++ )
{
var pendingElement = pendingInline[ i ],
pendingName = pendingElement.name,
pendingDtd = CKEDITOR.dtd[ pendingName ],
currentDtd = currentNode.name && CKEDITOR.dtd[ currentNode.name ];
if ( ( !currentDtd || currentDtd[ pendingName ] ) && ( !newTagName || !pendingDtd || pendingDtd[ newTagName ] || !CKEDITOR.dtd[ newTagName ] ) )
{
if ( !pendingBRsSent )
{
sendPendingBRs();
pendingBRsSent = 1;
}
// Get a clone for the pending element.
pendingElement = pendingElement.clone();
// Add it to the current node and make it the current,
// so the new element will be added inside of it.
pendingElement.parent = currentNode;
currentNode = pendingElement;
// Remove the pending element (back the index by one
// to properly process the next entry).
pendingInline.splice( i, 1 );
i--;
}
else
{
// Some element of the same type cannot be nested, flat them,
// e.g. <a href="#">foo<a href="#">bar</a></a>. (#7894)
if ( pendingName == currentNode.name )
addElement( currentNode, currentNode.parent, 1 ), i--;
}
}
}
}
function sendPendingBRs()
{
while ( pendingBRs.length )
currentNode.add( pendingBRs.shift() );
}
/*
* Beside of simply append specified element to target, this function also takes
* care of other dirty lifts like forcing block in body, trimming spaces at
* the block boundaries etc.
*
* @param {Element} element The element to be added as the last child of {@link target}.
* @param {Element} target The parent element to relieve the new node.
* @param {Boolean} [moveCurrent=false] Don't change the "currentNode" global unless
* there's a return point node specified on the element, otherwise move current onto {@link target} node.
*/
function addElement( element, target, moveCurrent )
{
// Ignore any element that has already been added.
if ( element.previous !== undefined )
return;
target = target || currentNode || fragment;
// Current element might be mangled by fix body below,
// save it for restore later.
var savedCurrent = currentNode;
// If the target is the fragment and this inline element can't go inside
// body (if fixForBody).
if ( fixForBody && ( !target.type || target.name == 'body' ) )
{
var elementName, realElementName;
if ( element.attributes
&& ( realElementName =
element.attributes[ 'data-cke-real-element-type' ] ) )
elementName = realElementName;
else
elementName = element.name;
if ( elementName && !( elementName in CKEDITOR.dtd.$body || elementName == 'body' || element.isOrphan ) )
{
// Create a <p> in the fragment.
currentNode = target;
parser.onTagOpen( fixForBody, {} );
// The new target now is the <p>.
element.returnPoint = target = currentNode;
}
}
// Rtrim empty spaces on block end boundary. (#3585)
if ( element._.isBlockLike
&& element.name != 'pre' && element.name != 'textarea' )
{
var length = element.children.length,
lastChild = element.children[ length - 1 ],
text;
if ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT )
{
if ( !( text = CKEDITOR.tools.rtrim( lastChild.value ) ) )
element.children.length = length -1;
else
lastChild.value = text;
}
}
target.add( element );
if ( element.name == 'pre' )
inPre = false;
if ( element.name == 'textarea' )
inTextarea = false;
if ( element.returnPoint )
{
currentNode = element.returnPoint;
delete element.returnPoint;
}
else
currentNode = moveCurrent ? target : savedCurrent;
}
parser.onTagOpen = function( tagName, attributes, selfClosing, optionalClose )
{
var element = new CKEDITOR.htmlParser.element( tagName, attributes );
// "isEmpty" will be always "false" for unknown elements, so we
// must force it if the parser has identified it as a selfClosing tag.
if ( element.isUnknown && selfClosing )
element.isEmpty = true;
// Check for optional closed elements, including browser quirks and manually opened blocks.
element.isOptionalClose = tagName in optionalCloseTags || optionalClose;
// This is a tag to be removed if empty, so do not add it immediately.
if ( isRemoveEmpty( element ) )
{
pendingInline.push( element );
return;
}
else if ( tagName == 'pre' )
inPre = true;
else if ( tagName == 'br' && inPre )
{
currentNode.add( new CKEDITOR.htmlParser.text( '\n' ) );
return;
}
else if ( tagName == 'textarea' )
inTextarea = true;
if ( tagName == 'br' )
{
pendingBRs.push( element );
return;
}
while( 1 )
{
var currentName = currentNode.name;
var currentDtd = currentName ? ( CKEDITOR.dtd[ currentName ]
|| ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span ) )
: rootDtd;
// If the element cannot be child of the current element.
if ( !element.isUnknown && !currentNode.isUnknown && !currentDtd[ tagName ] )
{
// Current node doesn't have a close tag, time for a close
// as this element isn't fit in. (#7497)
if ( currentNode.isOptionalClose )
parser.onTagClose( currentName );
// Fixing malformed nested lists by moving it into a previous list item. (#3828)
else if ( tagName in listBlocks
&& currentName in listBlocks )
{
var children = currentNode.children,
lastChild = children[ children.length - 1 ];
// Establish the list item if it's not existed.
if ( !( lastChild && lastChild.name == 'li' ) )
addElement( ( lastChild = new CKEDITOR.htmlParser.element( 'li' ) ), currentNode );
!element.returnPoint && ( element.returnPoint = currentNode );
currentNode = lastChild;
}
// Establish new list root for orphan list items.
else if ( tagName in CKEDITOR.dtd.$listItem && currentName != tagName )
parser.onTagOpen( tagName == 'li' ? 'ul' : 'dl', {}, 0, 1 );
// We're inside a structural block like table and list, AND the incoming element
// is not of the same type (e.g. <td>td1<td>td2</td>), we simply add this new one before it,
// and most importantly, return back to here once this element is added,
// e.g. <table><tr><td>td1</td><p>p1</p><td>td2</td></tr></table>
else if ( currentName in nonBreakingBlocks && currentName != tagName )
{
!element.returnPoint && ( element.returnPoint = currentNode );
currentNode = currentNode.parent;
}
else
{
// The current element is an inline element, which
// need to be continued even after the close, so put
// it in the pending list.
if ( currentName in CKEDITOR.dtd.$inline )
pendingInline.unshift( currentNode );
// The most common case where we just need to close the
// current one and append the new one to the parent.
if ( currentNode.parent )
addElement( currentNode, currentNode.parent, 1 );
// We've tried our best to fix the embarrassment here, while
// this element still doesn't find it's parent, mark it as
// orphan and show our tolerance to it.
else
{
element.isOrphan = 1;
break;
}
}
}
else
break;
}
checkPending( tagName );
sendPendingBRs();
element.parent = currentNode;
if ( element.isEmpty )
addElement( element );
else
currentNode = element;
};
parser.onTagClose = function( tagName )
{
// Check if there is any pending tag to be closed.
for ( var i = pendingInline.length - 1 ; i >= 0 ; i-- )
{
// If found, just remove it from the list.
if ( tagName == pendingInline[ i ].name )
{
pendingInline.splice( i, 1 );
return;
}
}
var pendingAdd = [],
newPendingInline = [],
candidate = currentNode;
while ( candidate != fragment && candidate.name != tagName )
{
// If this is an inline element, add it to the pending list, if we're
// really closing one of the parents element later, they will continue
// after it.
if ( !candidate._.isBlockLike )
newPendingInline.unshift( candidate );
// This node should be added to it's parent at this point. But,
// it should happen only if the closing tag is really closing
// one of the nodes. So, for now, we just cache it.
pendingAdd.push( candidate );
// Make sure return point is properly restored.
candidate = candidate.returnPoint || candidate.parent;
}
if ( candidate != fragment )
{
// Add all elements that have been found in the above loop.
for ( i = 0 ; i < pendingAdd.length ; i++ )
{
var node = pendingAdd[ i ];
addElement( node, node.parent );
}
currentNode = candidate;
if ( candidate._.isBlockLike )
sendPendingBRs();
addElement( candidate, candidate.parent );
// The parent should start receiving new nodes now, except if
// addElement changed the currentNode.
if ( candidate == currentNode )
currentNode = currentNode.parent;
pendingInline = pendingInline.concat( newPendingInline );
}
if ( tagName == 'body' )
fixForBody = false;
};
parser.onText = function( text )
{
// Trim empty spaces at beginning of text contents except <pre> and <textarea>.
if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre && !inTextarea )
{
text = CKEDITOR.tools.ltrim( text );
if ( text.length === 0 )
return;
}
var currentName = currentNode.name,
currentDtd = currentName ? ( CKEDITOR.dtd[ currentName ]
|| ( currentNode._.isBlockLike ?
CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ) : rootDtd;
// Fix orphan text in list/table. (#8540) (#8870)
if ( !inTextarea &&
!currentDtd [ '#' ] &&
currentName in nonBreakingBlocks )
{
parser.onTagOpen( currentName in listBlocks ? 'li' :
currentName == 'dl' ? 'dd' :
currentName == 'table' ? 'tr' :
currentName == 'tr' ? 'td' : '' );
parser.onText( text );
return;
}
sendPendingBRs();
checkPending();
if ( fixForBody
&& ( !currentNode.type || currentNode.name == 'body' )
&& CKEDITOR.tools.trim( text ) )
{
this.onTagOpen( fixForBody, {}, 0, 1 );
}
// Shrinking consequential spaces into one single for all elements
// text contents.
if ( !inPre && !inTextarea )
text = text.replace( /[\t\r\n ]{2,}|[\t\r\n]/g, ' ' );
currentNode.add( new CKEDITOR.htmlParser.text( text ) );
};
parser.onCDATA = function( cdata )
{
currentNode.add( new CKEDITOR.htmlParser.cdata( cdata ) );
};
parser.onComment = function( comment )
{
sendPendingBRs();
checkPending();
currentNode.add( new CKEDITOR.htmlParser.comment( comment ) );
};
// Parse it.
parser.parse( fragmentHtml );
// Send all pending BRs except one, which we consider a unwanted bogus. (#5293)
sendPendingBRs( !CKEDITOR.env.ie && 1 );
// Close all pending nodes, make sure return point is properly restored.
while ( currentNode != fragment )
addElement( currentNode, currentNode.parent, 1 );
return fragment;
};
CKEDITOR.htmlParser.fragment.prototype =
{
/**
* Adds a node to this fragment.
* @param {Object} node The node to be added. It can be any of of the
* following types: {@link CKEDITOR.htmlParser.element},
* {@link CKEDITOR.htmlParser.text} and
* {@link CKEDITOR.htmlParser.comment}.
* @param {Number} [index] From where the insertion happens.
* @example
*/
add : function( node, index )
{
isNaN( index ) && ( index = this.children.length );
var previous = index > 0 ? this.children[ index - 1 ] : null;
if ( previous )
{
// If the block to be appended is following text, trim spaces at
// the right of it.
if ( node._.isBlockLike && previous.type == CKEDITOR.NODE_TEXT )
{
previous.value = CKEDITOR.tools.rtrim( previous.value );
// If we have completely cleared the previous node.
if ( previous.value.length === 0 )
{
// Remove it from the list and add the node again.
this.children.pop();
this.add( node );
return;
}
}
previous.next = node;
}
node.previous = previous;
node.parent = this;
this.children.splice( index, 0, node );
this._.hasInlineStarted = node.type == CKEDITOR.NODE_TEXT || ( node.type == CKEDITOR.NODE_ELEMENT && !node._.isBlockLike );
},
/**
* Writes the fragment HTML to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
* var writer = new CKEDITOR.htmlWriter();
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<P><B>Example' );
* fragment.writeHtml( writer )
* alert( writer.getHtml() ); "<p><b>Example</b></p>"
*/
writeHtml : function( writer, filter )
{
var isChildrenFiltered;
this.filterChildren = function()
{
var writer = new CKEDITOR.htmlParser.basicWriter();
this.writeChildrenHtml.call( this, writer, filter, true );
var html = writer.getHtml();
this.children = new CKEDITOR.htmlParser.fragment.fromHtml( html ).children;
isChildrenFiltered = 1;
};
// Filtering the root fragment before anything else.
!this.name && filter && filter.onFragment( this );
this.writeChildrenHtml( writer, isChildrenFiltered ? null : filter );
},
writeChildrenHtml : function( writer, filter )
{
for ( var i = 0 ; i < this.children.length ; i++ )
this.children[i].writeHtml( writer, filter );
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser/fragment.js
|
JavaScript
|
gpl3
| 17,196
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* A lightweight representation of an HTML element.
* @param {String} name The element name.
* @param {Object} attributes And object holding all attributes defined for
* this element.
* @constructor
* @example
*/
CKEDITOR.htmlParser.element = function( name, attributes )
{
/**
* The element name.
* @type String
* @example
*/
this.name = name;
/**
* Holds the attributes defined for this element.
* @type Object
* @example
*/
this.attributes = attributes || ( attributes = {} );
/**
* The nodes that are direct children of this element.
* @type Array
* @example
*/
this.children = [];
var tagName = attributes[ 'data-cke-real-element-type' ] || name || '';
// Reveal the real semantic of our internal custom tag name (#6639).
var internalTag = tagName.match( /^cke:(.*)/ );
internalTag && ( tagName = internalTag[ 1 ] );
var dtd = CKEDITOR.dtd,
isBlockLike = !!( dtd.$nonBodyContent[ tagName ]
|| dtd.$block[ tagName ]
|| dtd.$listItem[ tagName ]
|| dtd.$tableContent[ tagName ]
|| dtd.$nonEditable[ tagName ]
|| tagName == 'br' ),
isEmpty = !!dtd.$empty[ name ];
this.isEmpty = isEmpty;
this.isUnknown = !dtd[ name ];
/** @private */
this._ =
{
isBlockLike : isBlockLike,
hasInlineStarted : isEmpty || !isBlockLike
};
};
/**
* Object presentation of CSS style declaration text.
* @param {CKEDITOR.htmlParser.element|String} elementOrStyleText A html parser element or the inline style text.
*/
CKEDITOR.htmlParser.cssStyle = function()
{
var styleText,
arg = arguments[ 0 ],
rules = {};
styleText = arg instanceof CKEDITOR.htmlParser.element ? arg.attributes.style : arg;
// html-encoded quote might be introduced by 'font-family'
// from MS-Word which confused the following regexp. e.g.
//'font-family: "Lucida, Console"'
( styleText || '' )
.replace( /"/g, '"' )
.replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,
function( match, name, value )
{
name == 'font-family' && ( value = value.replace( /["']/g, '' ) );
rules[ name.toLowerCase() ] = value;
});
return {
rules : rules,
/**
* Apply the styles onto the specified element or object.
* @param {CKEDITOR.htmlParser.element|CKEDITOR.dom.element|Object} obj
*/
populate : function( obj )
{
var style = this.toString();
if ( style )
{
obj instanceof CKEDITOR.dom.element ?
obj.setAttribute( 'style', style ) :
obj instanceof CKEDITOR.htmlParser.element ?
obj.attributes.style = style :
obj.style = style;
}
},
toString : function()
{
var output = [];
for ( var i in rules )
rules[ i ] && output.push( i, ':', rules[ i ], ';' );
return output.join( '' );
}
};
};
(function()
{
// Used to sort attribute entries in an array, where the first element of
// each object is the attribute name.
var sortAttribs = function( a, b )
{
a = a[0];
b = b[0];
return a < b ? -1 : a > b ? 1 : 0;
};
CKEDITOR.htmlParser.element.prototype =
{
/**
* The node type. This is a constant value set to {@link CKEDITOR.NODE_ELEMENT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_ELEMENT,
/**
* Adds a node to the element children list.
* @param {Object} node The node to be added. It can be any of of the
* following types: {@link CKEDITOR.htmlParser.element},
* {@link CKEDITOR.htmlParser.text} and
* {@link CKEDITOR.htmlParser.comment}.
* @function
* @example
*/
add : CKEDITOR.htmlParser.fragment.prototype.add,
/**
* Clone this element.
* @returns {CKEDITOR.htmlParser.element} The element clone.
* @example
*/
clone : function()
{
return new CKEDITOR.htmlParser.element( this.name, this.attributes );
},
/**
* Writes the element HTML to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
*/
writeHtml : function( writer, filter )
{
var attributes = this.attributes;
// Ignore cke: prefixes when writing HTML.
var element = this,
writeName = element.name,
a, newAttrName, value;
var isChildrenFiltered;
/**
* Providing an option for bottom-up filtering order ( element
* children to be pre-filtered before the element itself ).
*/
element.filterChildren = function()
{
if ( !isChildrenFiltered )
{
var writer = new CKEDITOR.htmlParser.basicWriter();
CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.call( element, writer, filter );
element.children = new CKEDITOR.htmlParser.fragment.fromHtml( writer.getHtml(), 0, element.clone() ).children;
isChildrenFiltered = 1;
}
};
if ( filter )
{
while ( true )
{
if ( !( writeName = filter.onElementName( writeName ) ) )
return;
element.name = writeName;
if ( !( element = filter.onElement( element ) ) )
return;
element.parent = this.parent;
if ( element.name == writeName )
break;
// If the element has been replaced with something of a
// different type, then make the replacement write itself.
if ( element.type != CKEDITOR.NODE_ELEMENT )
{
element.writeHtml( writer, filter );
return;
}
writeName = element.name;
// This indicate that the element has been dropped by
// filter but not the children.
if ( !writeName )
{
// Fix broken parent refs.
for ( var c = 0, length = this.children.length ; c < length ; c++ )
this.children[ c ].parent = element.parent;
this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter );
return;
}
}
// The element may have been changed, so update the local
// references.
attributes = element.attributes;
}
// Open element tag.
writer.openTag( writeName, attributes );
// Copy all attributes to an array.
var attribsArray = [];
// Iterate over the attributes twice since filters may alter
// other attributes.
for ( var i = 0 ; i < 2; i++ )
{
for ( a in attributes )
{
newAttrName = a;
value = attributes[ a ];
if ( i == 1 )
attribsArray.push( [ a, value ] );
else if ( filter )
{
while ( true )
{
if ( !( newAttrName = filter.onAttributeName( a ) ) )
{
delete attributes[ a ];
break;
}
else if ( newAttrName != a )
{
delete attributes[ a ];
a = newAttrName;
continue;
}
else
break;
}
if ( newAttrName )
{
if ( ( value = filter.onAttribute( element, newAttrName, value ) ) === false )
delete attributes[ newAttrName ];
else
attributes [ newAttrName ] = value;
}
}
}
}
// Sort the attributes by name.
if ( writer.sortAttributes )
attribsArray.sort( sortAttribs );
// Send the attributes.
var len = attribsArray.length;
for ( i = 0 ; i < len ; i++ )
{
var attrib = attribsArray[ i ];
writer.attribute( attrib[0], attrib[1] );
}
// Close the tag.
writer.openTagClose( writeName, element.isEmpty );
if ( !element.isEmpty )
{
this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter );
// Close the element.
writer.closeTag( writeName );
}
},
writeChildrenHtml : function( writer, filter )
{
// Send children.
CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.apply( this, arguments );
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser/element.js
|
JavaScript
|
gpl3
| 8,007
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.commandDefinition} class,
* which contains the defintion of a command. This file is for
* documentation purposes only.
*/
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API.
* @name CKEDITOR.commandDefinition
* @class Virtual class that illustrates the features of command objects to be
* passed to the {@link CKEDITOR.editor.prototype.addCommand} function.
* @example
*/
/**
* The function to be fired when the commend is executed.
* @name CKEDITOR.commandDefinition.prototype.exec
* @function
* @param {CKEDITOR.editor} editor The editor within which run the command.
* @param {Object} [data] Additional data to be used to execute the command.
* @returns {Boolean} Whether the command has been successfully executed.
* Defaults to "true", if nothing is returned.
* @example
* editorInstance.addCommand( 'sample',
* {
* exec : function( editor )
* {
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
* }
* });
*/
/**
* Whether the command need to be hooked into the redo/undo system.
* @name CKEDITOR.commandDefinition.prototype.canUndo
* @type {Boolean}
* @default true
* @field
* @example
* editorInstance.addCommand( 'alertName',
* {
* exec : function( editor )
* {
* alert( editor.name );
* },
* canUndo : false // No support for undo/redo
* });
*/
/**
* Whether the command is asynchronous, which means that the
* {@link CKEDITOR.editor#event:afterCommandExec} event will be fired by the
* command itself manually, and that the return value of this command is not to
* be returned by the {@link CKEDITOR.command#exec} function.
* @name CKEDITOR.commandDefinition.prototype.async
* @default false
* @type {Boolean}
* @example
* editorInstance.addCommand( 'loadOptions',
* {
* exec : function( editor )
* {
* // Asynchronous operation below.
* CKEDITOR.ajax.loadXml( 'data.xml', function()
* {
* editor.fire( 'afterCommandExec' );
* ));
* },
* async : true // The command need some time to complete after exec function returns.
* });
*/
/**
* Whether the command should give focus to the editor before execution.
* @name CKEDITOR.commandDefinition.prototype.editorFocus
* @type {Boolean}
* @default true
* @see CKEDITOR.command#editorFocus
* @example
* editorInstance.addCommand( 'maximize',
* {
* exec : function( editor )
* {
* // ...
* },
* editorFocus : false // The command doesn't require focusing the editing document.
* });
*/
/**
* Whether the command state should be set to {@link CKEDITOR.TRISTATE_DISABLED} on startup.
* @name CKEDITOR.commandDefinition.prototype.startDisabled
* @type {Boolean}
* @default false
* @example
* editorInstance.addCommand( 'unlink',
* {
* exec : function( editor )
* {
* // ...
* },
* startDisabled : true // Command is unavailable until selection is inside a link.
* });
*/
/**
* The editor modes within which the command can be executed. The execution
* will have no action if the current mode is not listed in this property.
* @name CKEDITOR.commandDefinition.prototype.modes
* @type Object
* @default { wysiwyg : 1 }
* @see CKEDITOR.command#modes
* @example
* editorInstance.addCommand( 'link',
* {
* exec : function( editor )
* {
* // ...
* },
* modes : { wysiwyg : 1 } // Command is available in wysiwyg mode only.
* });
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/commanddefinition.js
|
JavaScript
|
gpl3
| 3,912
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Creates a {@link CKEDITOR.htmlParser} class instance.
* @class Provides an "event like" system to parse strings of HTML data.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onTagOpen = function( tagName, attributes, selfClosing )
* {
* alert( tagName );
* };
* parser.parse( '<p>Some <b>text</b>.</p>' );
*/
CKEDITOR.htmlParser = function()
{
this._ =
{
htmlPartsRegex : new RegExp( '<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:"[^"]*")|(?:\'[^\']*\')|[^"\'>])*)\\/?>))', 'g' )
};
};
(function()
{
var attribsRegex = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,
emptyAttribs = {checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};
CKEDITOR.htmlParser.prototype =
{
/**
* Function to be fired when a tag opener is found. This function
* should be overriden when using this class.
* @param {String} tagName The tag name. The name is guarantted to be
* lowercased.
* @param {Object} attributes An object containing all tag attributes. Each
* property in this object represent and attribute name and its
* value is the attribute value.
* @param {Boolean} selfClosing true if the tag closes itself, false if the
* tag doesn't.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onTagOpen = function( tagName, attributes, selfClosing )
* {
* alert( tagName ); // e.g. "b"
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onTagOpen : function() {},
/**
* Function to be fired when a tag closer is found. This function
* should be overriden when using this class.
* @param {String} tagName The tag name. The name is guarantted to be
* lowercased.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onTagClose = function( tagName )
* {
* alert( tagName ); // e.g. "b"
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onTagClose : function() {},
/**
* Function to be fired when text is found. This function
* should be overriden when using this class.
* @param {String} text The text found.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onText = function( text )
* {
* alert( text ); // e.g. "Hello"
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onText : function() {},
/**
* Function to be fired when CDATA section is found. This function
* should be overriden when using this class.
* @param {String} cdata The CDATA been found.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onCDATA = function( cdata )
* {
* alert( cdata ); // e.g. "var hello;"
* });
* parser.parse( "<script>var hello;</script>" );
*/
onCDATA : function() {},
/**
* Function to be fired when a commend is found. This function
* should be overriden when using this class.
* @param {String} comment The comment text.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onComment = function( comment )
* {
* alert( comment ); // e.g. " Example "
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onComment : function() {},
/**
* Parses text, looking for HTML tokens, like tag openers or closers,
* or comments. This function fires the onTagOpen, onTagClose, onText
* and onComment function during its execution.
* @param {String} html The HTML to be parsed.
* @example
* var parser = new CKEDITOR.htmlParser();
* // The onTagOpen, onTagClose, onText and onComment should be overriden
* // at this point.
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
parse : function( html )
{
var parts,
tagName,
nextIndex = 0,
cdata; // The collected data inside a CDATA section.
while ( ( parts = this._.htmlPartsRegex.exec( html ) ) )
{
var tagIndex = parts.index;
if ( tagIndex > nextIndex )
{
var text = html.substring( nextIndex, tagIndex );
if ( cdata )
cdata.push( text );
else
this.onText( text );
}
nextIndex = this._.htmlPartsRegex.lastIndex;
/*
"parts" is an array with the following items:
0 : The entire match for opening/closing tags and comments.
1 : Group filled with the tag name for closing tags.
2 : Group filled with the comment text.
3 : Group filled with the tag name for opening tags.
4 : Group filled with the attributes part of opening tags.
*/
// Closing tag
if ( ( tagName = parts[ 1 ] ) )
{
tagName = tagName.toLowerCase();
if ( cdata && CKEDITOR.dtd.$cdata[ tagName ] )
{
// Send the CDATA data.
this.onCDATA( cdata.join('') );
cdata = null;
}
if ( !cdata )
{
this.onTagClose( tagName );
continue;
}
}
// If CDATA is enabled, just save the raw match.
if ( cdata )
{
cdata.push( parts[ 0 ] );
continue;
}
// Opening tag
if ( ( tagName = parts[ 3 ] ) )
{
tagName = tagName.toLowerCase();
// There are some tag names that can break things, so let's
// simply ignore them when parsing. (#5224)
if ( /="/.test( tagName ) )
continue;
var attribs = {},
attribMatch,
attribsPart = parts[ 4 ],
selfClosing = !!( attribsPart && attribsPart.charAt( attribsPart.length - 1 ) == '/' );
if ( attribsPart )
{
while ( ( attribMatch = attribsRegex.exec( attribsPart ) ) )
{
var attName = attribMatch[1].toLowerCase(),
attValue = attribMatch[2] || attribMatch[3] || attribMatch[4] || '';
if ( !attValue && emptyAttribs[ attName ] )
attribs[ attName ] = attName;
else
attribs[ attName ] = attValue;
}
}
this.onTagOpen( tagName, attribs, selfClosing );
// Open CDATA mode when finding the appropriate tags.
if ( !cdata && CKEDITOR.dtd.$cdata[ tagName ] )
cdata = [];
continue;
}
// Comment
if ( ( tagName = parts[ 2 ] ) )
this.onComment( tagName );
}
if ( html.length > nextIndex )
this.onText( html.substring( nextIndex, html.length ) );
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/htmlparser.js
|
JavaScript
|
gpl3
| 6,878
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var loadedLangs = {};
/**
* @namespace Holds language related functions.
*/
CKEDITOR.lang =
{
/**
* The list of languages available in the editor core.
* @type Object
* @example
* alert( CKEDITOR.lang.en ); // "true"
*/
languages :
{
'af' : 1,
'ar' : 1,
'bg' : 1,
'bn' : 1,
'bs' : 1,
'ca' : 1,
'cs' : 1,
'cy' : 1,
'da' : 1,
'de' : 1,
'el' : 1,
'en-au' : 1,
'en-ca' : 1,
'en-gb' : 1,
'en' : 1,
'eo' : 1,
'es' : 1,
'et' : 1,
'eu' : 1,
'fa' : 1,
'fi' : 1,
'fo' : 1,
'fr-ca' : 1,
'fr' : 1,
'gl' : 1,
'gu' : 1,
'he' : 1,
'hi' : 1,
'hr' : 1,
'hu' : 1,
'is' : 1,
'it' : 1,
'ja' : 1,
'ka' : 1,
'km' : 1,
'ko' : 1,
'lt' : 1,
'lv' : 1,
'mn' : 1,
'ms' : 1,
'nb' : 1,
'nl' : 1,
'no' : 1,
'pl' : 1,
'pt-br' : 1,
'pt' : 1,
'ro' : 1,
'ru' : 1,
'sk' : 1,
'sl' : 1,
'sr-latn' : 1,
'sr' : 1,
'sv' : 1,
'th' : 1,
'tr' : 1,
'uk' : 1,
'vi' : 1,
'zh-cn' : 1,
'zh' : 1
},
/**
* Loads a specific language file, or auto detect it. A callback is
* then called when the file gets loaded.
* @param {String} languageCode The code of the language file to be
* loaded. If null or empty, autodetection will be performed. The
* same happens if the language is not supported.
* @param {String} defaultLanguage The language to be used if
* languageCode is not supported or if the autodetection fails.
* @param {Function} callback A function to be called once the
* language file is loaded. Two parameters are passed to this
* function: the language code and the loaded language entries.
* @example
*/
load : function( languageCode, defaultLanguage, callback )
{
// If no languageCode - fallback to browser or default.
// If languageCode - fallback to no-localized version or default.
if ( !languageCode || !CKEDITOR.lang.languages[ languageCode ] )
languageCode = this.detect( defaultLanguage, languageCode );
if ( !this[ languageCode ] )
{
CKEDITOR.scriptLoader.load( CKEDITOR.getUrl(
'_source/' + // @Packager.RemoveLine
'lang/' + languageCode + '.js' ),
function()
{
callback( languageCode, this[ languageCode ] );
}
, this );
}
else
callback( languageCode, this[ languageCode ] );
},
/**
* Returns the language that best fit the user language. For example,
* suppose that the user language is "pt-br". If this language is
* supported by the editor, it is returned. Otherwise, if only "pt" is
* supported, it is returned instead. If none of the previous are
* supported, a default language is then returned.
* @param {String} defaultLanguage The default language to be returned
* if the user language is not supported.
* @param {String} [probeLanguage] A language code to try to use,
* instead of the browser based autodetection.
* @returns {String} The detected language code.
* @example
* alert( CKEDITOR.lang.detect( 'en' ) ); // e.g., in a German browser: "de"
*/
detect : function( defaultLanguage, probeLanguage )
{
var languages = this.languages;
probeLanguage = probeLanguage || navigator.userLanguage || navigator.language || defaultLanguage;
var parts = probeLanguage
.toLowerCase()
.match( /([a-z]+)(?:-([a-z]+))?/ ),
lang = parts[1],
locale = parts[2];
if ( languages[ lang + '-' + locale ] )
lang = lang + '-' + locale;
else if ( !languages[ lang ] )
lang = null;
CKEDITOR.lang.detect = lang ?
function() { return lang; } :
function( defaultLanguage ) { return defaultLanguage; };
return lang || defaultLanguage;
}
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/lang.js
|
JavaScript
|
gpl3
| 4,071
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview API initialization code.
*/
(function()
{
// Disable HC detaction in WebKit. (#5429)
if ( CKEDITOR.env.webkit )
{
CKEDITOR.env.hc = false;
return;
}
// Check whether high contrast is active by creating a colored border.
var hcDetect = CKEDITOR.dom.element.createFromHtml(
'<div style="width:0px;height:0px;position:absolute;left:-10000px;' +
'border: 1px solid;border-color: red blue;"></div>', CKEDITOR.document );
hcDetect.appendTo( CKEDITOR.document.getHead() );
// Update CKEDITOR.env.
// Catch exception needed sometimes for FF. (#4230)
try
{
CKEDITOR.env.hc = hcDetect.getComputedStyle( 'border-top-color' ) == hcDetect.getComputedStyle( 'border-right-color' );
}
catch (e)
{
CKEDITOR.env.hc = false;
}
if ( CKEDITOR.env.hc )
CKEDITOR.env.cssClass += ' cke_hc';
hcDetect.remove();
})();
// Load core plugins.
CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function()
{
CKEDITOR.status = 'loaded';
CKEDITOR.fire( 'loaded' );
// Process all instances created by the "basic" implementation.
var pending = CKEDITOR._.pending;
if ( pending )
{
delete CKEDITOR._.pending;
for ( var i = 0 ; i < pending.length ; i++ )
CKEDITOR.add( pending[ i ] );
}
});
// Needed for IE6 to not request image (HTTP 200 or 304) for every CSS background. (#6187)
if ( CKEDITOR.env.ie )
{
// Remove IE mouse flickering on IE6 because of background images.
try
{
document.execCommand( 'BackgroundImageCache', false, true );
}
catch (e)
{
// We have been reported about loading problems caused by the above
// line. For safety, let's just ignore errors.
}
}
/**
* Indicates that CKEditor is running on a High Contrast environment.
* @name CKEDITOR.env.hc
* @example
* if ( CKEDITOR.env.hc )
* alert( 'You're running on High Contrast mode. The editor interface will get adapted to provide you a better experience.' );
*/
/**
* Fired when a CKEDITOR core object is fully loaded and ready for interaction.
* @name CKEDITOR#loaded
* @event
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/_bootstrap.js
|
JavaScript
|
gpl3
| 2,290
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.comment} class, which represents
* a DOM comment node.
*/
/**
* Represents a DOM comment node.
* @constructor
* @augments CKEDITOR.dom.node
* @param {Object|String} comment A native DOM comment node or a string containing
* the text to use to create a new comment node.
* @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain
* the node in case of new node creation. Defaults to the current document.
* @example
* var nativeNode = document.createComment( 'Example' );
* var comment = CKEDITOR.dom.comment( nativeNode );
* @example
* var comment = CKEDITOR.dom.comment( 'Example' );
*/
CKEDITOR.dom.comment = function( comment, ownerDocument )
{
if ( typeof comment == 'string' )
comment = ( ownerDocument ? ownerDocument.$ : document ).createComment( comment );
CKEDITOR.dom.domObject.call( this, comment );
};
CKEDITOR.dom.comment.prototype = new CKEDITOR.dom.node();
CKEDITOR.tools.extend( CKEDITOR.dom.comment.prototype,
/** @lends CKEDITOR.dom.comment.prototype */
{
type : CKEDITOR.NODE_COMMENT,
getOuterHtml : function()
{
return '<!--' + this.$.nodeValue + '-->';
}
});
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/comment.js
|
JavaScript
|
gpl3
| 1,388
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.editor} class, which is the base
* for other classes representing DOM objects.
*/
/**
* Represents a DOM object. This class is not intended to be used directly. It
* serves as the base class for other classes representing specific DOM
* objects.
* @constructor
* @param {Object} nativeDomObject A native DOM object.
* @augments CKEDITOR.event
* @example
*/
CKEDITOR.dom.domObject = function( nativeDomObject )
{
if ( nativeDomObject )
{
/**
* The native DOM object represented by this class instance.
* @type Object
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( element.$.nodeType ); // "1"
*/
this.$ = nativeDomObject;
}
};
CKEDITOR.dom.domObject.prototype = (function()
{
// Do not define other local variables here. We want to keep the native
// listener closures as clean as possible.
var getNativeListener = function( domObject, eventName )
{
return function( domEvent )
{
// In FF, when reloading the page with the editor focused, it may
// throw an error because the CKEDITOR global is not anymore
// available. So, we check it here first. (#2923)
if ( typeof CKEDITOR != 'undefined' )
domObject.fire( eventName, new CKEDITOR.dom.event( domEvent ) );
};
};
return /** @lends CKEDITOR.dom.domObject.prototype */ {
getPrivate : function()
{
var priv;
// Get the main private function from the custom data. Create it if not
// defined.
if ( !( priv = this.getCustomData( '_' ) ) )
this.setCustomData( '_', ( priv = {} ) );
return priv;
},
/** @ignore */
on : function( eventName )
{
// We customize the "on" function here. The basic idea is that we'll have
// only one listener for a native event, which will then call all listeners
// set to the event.
// Get the listeners holder object.
var nativeListeners = this.getCustomData( '_cke_nativeListeners' );
if ( !nativeListeners )
{
nativeListeners = {};
this.setCustomData( '_cke_nativeListeners', nativeListeners );
}
// Check if we have a listener for that event.
if ( !nativeListeners[ eventName ] )
{
var listener = nativeListeners[ eventName ] = getNativeListener( this, eventName );
if ( this.$.addEventListener )
this.$.addEventListener( eventName, listener, !!CKEDITOR.event.useCapture );
else if ( this.$.attachEvent )
this.$.attachEvent( 'on' + eventName, listener );
}
// Call the original implementation.
return CKEDITOR.event.prototype.on.apply( this, arguments );
},
/** @ignore */
removeListener : function( eventName )
{
// Call the original implementation.
CKEDITOR.event.prototype.removeListener.apply( this, arguments );
// If we don't have listeners for this event, clean the DOM up.
if ( !this.hasListeners( eventName ) )
{
var nativeListeners = this.getCustomData( '_cke_nativeListeners' );
var listener = nativeListeners && nativeListeners[ eventName ];
if ( listener )
{
if ( this.$.removeEventListener )
this.$.removeEventListener( eventName, listener, false );
else if ( this.$.detachEvent )
this.$.detachEvent( 'on' + eventName, listener );
delete nativeListeners[ eventName ];
}
}
},
/**
* Removes any listener set on this object.
* To avoid memory leaks we must assure that there are no
* references left after the object is no longer needed.
*/
removeAllListeners : function()
{
var nativeListeners = this.getCustomData( '_cke_nativeListeners' );
for ( var eventName in nativeListeners )
{
var listener = nativeListeners[ eventName ];
if ( this.$.detachEvent )
this.$.detachEvent( 'on' + eventName, listener );
else if ( this.$.removeEventListener )
this.$.removeEventListener( eventName, listener, false );
delete nativeListeners[ eventName ];
}
}
};
})();
(function( domObjectProto )
{
var customData = {};
CKEDITOR.on( 'reset', function()
{
customData = {};
});
/**
* Determines whether the specified object is equal to the current object.
* @name CKEDITOR.dom.domObject.prototype.equals
* @function
* @param {Object} object The object to compare with the current object.
* @returns {Boolean} "true" if the object is equal.
* @example
* var doc = new CKEDITOR.dom.document( document );
* alert( doc.equals( CKEDITOR.document ) ); // "true"
* alert( doc == CKEDITOR.document ); // "false"
*/
domObjectProto.equals = function( object )
{
return ( object && object.$ === this.$ );
};
/**
* Sets a data slot value for this object. These values are shared by all
* instances pointing to that same DOM object.
* <strong>Note:</strong> The created data slot is only guarantied to be available on this unique dom node,
* thus any wish to continue access it from other element clones (either created by clone node or from innerHtml)
* will fail, for such usage, please use {@link CKEDITOR.dom.element::setAttribute} instead.
* @name CKEDITOR.dom.domObject.prototype.setCustomData
* @function
* @param {String} key A key used to identify the data slot.
* @param {Object} value The value to set to the data slot.
* @returns {CKEDITOR.dom.domObject} This DOM object instance.
* @see CKEDITOR.dom.domObject.prototype.getCustomData
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* element.setCustomData( 'hasCustomData', true );
*/
domObjectProto.setCustomData = function( key, value )
{
var expandoNumber = this.getUniqueId(),
dataSlot = customData[ expandoNumber ] || ( customData[ expandoNumber ] = {} );
dataSlot[ key ] = value;
return this;
};
/**
* Gets the value set to a data slot in this object.
* @name CKEDITOR.dom.domObject.prototype.getCustomData
* @function
* @param {String} key The key used to identify the data slot.
* @returns {Object} This value set to the data slot.
* @see CKEDITOR.dom.domObject.prototype.setCustomData
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( element.getCustomData( 'hasCustomData' ) ); // e.g. 'true'
*/
domObjectProto.getCustomData = function( key )
{
var expandoNumber = this.$[ 'data-cke-expando' ],
dataSlot = expandoNumber && customData[ expandoNumber ];
return dataSlot && dataSlot[ key ];
};
/**
* @name CKEDITOR.dom.domObject.prototype.removeCustomData
*/
domObjectProto.removeCustomData = function( key )
{
var expandoNumber = this.$[ 'data-cke-expando' ],
dataSlot = expandoNumber && customData[ expandoNumber ],
retval = dataSlot && dataSlot[ key ];
if ( typeof retval != 'undefined' )
delete dataSlot[ key ];
return retval || null;
};
/**
* Removes any data stored on this object.
* To avoid memory leaks we must assure that there are no
* references left after the object is no longer needed.
* @name CKEDITOR.dom.domObject.prototype.clearCustomData
* @function
*/
domObjectProto.clearCustomData = function()
{
// Clear all event listeners
this.removeAllListeners();
var expandoNumber = this.$[ 'data-cke-expando' ];
expandoNumber && delete customData[ expandoNumber ];
};
/**
* Gets an ID that can be used to identiquely identify this DOM object in
* the running session.
* @name CKEDITOR.dom.domObject.prototype.getUniqueId
* @function
* @returns {Number} A unique ID.
*/
domObjectProto.getUniqueId = function()
{
return this.$[ 'data-cke-expando' ] || ( this.$[ 'data-cke-expando' ] = CKEDITOR.tools.getNextNumber() );
};
// Implement CKEDITOR.event.
CKEDITOR.event.implementOn( domObjectProto );
})( CKEDITOR.dom.domObject.prototype );
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/domobject.js
|
JavaScript
|
gpl3
| 8,120
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.node} class which is the base
* class for classes that represent DOM nodes.
*/
/**
* Base class for classes representing DOM nodes. This constructor may return
* an instance of a class that inherits from this class, like
* {@link CKEDITOR.dom.element} or {@link CKEDITOR.dom.text}.
* @augments CKEDITOR.dom.domObject
* @param {Object} domNode A native DOM node.
* @constructor
* @see CKEDITOR.dom.element
* @see CKEDITOR.dom.text
* @example
*/
CKEDITOR.dom.node = function( domNode )
{
if ( domNode )
{
var type = domNode.nodeType == CKEDITOR.NODE_DOCUMENT ? 'document'
: domNode.nodeType == CKEDITOR.NODE_ELEMENT ? 'element'
: domNode.nodeType == CKEDITOR.NODE_TEXT ? 'text'
: domNode.nodeType == CKEDITOR.NODE_COMMENT ? 'comment'
: 'domObject'; // Call the base constructor otherwise.
return new CKEDITOR.dom[ type ]( domNode );
}
return this;
};
CKEDITOR.dom.node.prototype = new CKEDITOR.dom.domObject();
/**
* Element node type.
* @constant
* @example
*/
CKEDITOR.NODE_ELEMENT = 1;
/**
* Document node type.
* @constant
* @example
*/
CKEDITOR.NODE_DOCUMENT = 9;
/**
* Text node type.
* @constant
* @example
*/
CKEDITOR.NODE_TEXT = 3;
/**
* Comment node type.
* @constant
* @example
*/
CKEDITOR.NODE_COMMENT = 8;
CKEDITOR.NODE_DOCUMENT_FRAGMENT = 11;
CKEDITOR.POSITION_IDENTICAL = 0;
CKEDITOR.POSITION_DISCONNECTED = 1;
CKEDITOR.POSITION_FOLLOWING = 2;
CKEDITOR.POSITION_PRECEDING = 4;
CKEDITOR.POSITION_IS_CONTAINED = 8;
CKEDITOR.POSITION_CONTAINS = 16;
CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype,
/** @lends CKEDITOR.dom.node.prototype */
{
/**
* Makes this node a child of another element.
* @param {CKEDITOR.dom.element} element The target element to which
* this node will be appended.
* @returns {CKEDITOR.dom.element} The target element.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
* var strong = new CKEDITOR.dom.element( 'strong' );
* strong.appendTo( p );
*
* // result: "<p><strong></strong></p>"
*/
appendTo : function( element, toStart )
{
element.append( this, toStart );
return element;
},
clone : function( includeChildren, cloneId )
{
var $clone = this.$.cloneNode( includeChildren );
var removeIds = function( node )
{
if ( node.nodeType != CKEDITOR.NODE_ELEMENT )
return;
if ( !cloneId )
node.removeAttribute( 'id', false );
node.removeAttribute( 'data-cke-expando', false );
if ( includeChildren )
{
var childs = node.childNodes;
for ( var i=0; i < childs.length; i++ )
removeIds( childs[ i ] );
}
};
// The "id" attribute should never be cloned to avoid duplication.
removeIds( $clone );
return new CKEDITOR.dom.node( $clone );
},
hasPrevious : function()
{
return !!this.$.previousSibling;
},
hasNext : function()
{
return !!this.$.nextSibling;
},
/**
* Inserts this element after a node.
* @param {CKEDITOR.dom.node} node The node that will precede this element.
* @returns {CKEDITOR.dom.node} The node preceding this one after
* insertion.
* @example
* var em = new CKEDITOR.dom.element( 'em' );
* var strong = new CKEDITOR.dom.element( 'strong' );
* strong.insertAfter( em );
*
* // result: "<em></em><strong></strong>"
*/
insertAfter : function( node )
{
node.$.parentNode.insertBefore( this.$, node.$.nextSibling );
return node;
},
/**
* Inserts this element before a node.
* @param {CKEDITOR.dom.node} node The node that will succeed this element.
* @returns {CKEDITOR.dom.node} The node being inserted.
* @example
* var em = new CKEDITOR.dom.element( 'em' );
* var strong = new CKEDITOR.dom.element( 'strong' );
* strong.insertBefore( em );
*
* // result: "<strong></strong><em></em>"
*/
insertBefore : function( node )
{
node.$.parentNode.insertBefore( this.$, node.$ );
return node;
},
insertBeforeMe : function( node )
{
this.$.parentNode.insertBefore( node.$, this.$ );
return node;
},
/**
* Retrieves a uniquely identifiable tree address for this node.
* The tree address returned is an array of integers, with each integer
* indicating a child index of a DOM node, starting from
* <code>document.documentElement</code>.
*
* For example, assuming <code><body></code> is the second child
* of <code><html></code> (<code><head></code> being the first),
* and we would like to address the third child under the
* fourth child of <code><body></code>, the tree address returned would be:
* [1, 3, 2]
*
* The tree address cannot be used for finding back the DOM tree node once
* the DOM tree structure has been modified.
*/
getAddress : function( normalized )
{
var address = [];
var $documentElement = this.getDocument().$.documentElement;
var node = this.$;
while ( node && node != $documentElement )
{
var parentNode = node.parentNode;
if ( parentNode )
{
// Get the node index. For performance, call getIndex
// directly, instead of creating a new node object.
address.unshift( this.getIndex.call( { $ : node }, normalized ) );
}
node = parentNode;
}
return address;
},
/**
* Gets the document containing this element.
* @returns {CKEDITOR.dom.document} The document.
* @example
* var element = CKEDITOR.document.getById( 'example' );
* alert( <strong>element.getDocument().equals( CKEDITOR.document )</strong> ); // "true"
*/
getDocument : function()
{
return new CKEDITOR.dom.document( this.$.ownerDocument || this.$.parentNode.ownerDocument );
},
getIndex : function( normalized )
{
// Attention: getAddress depends on this.$
var current = this.$,
index = 0;
while ( ( current = current.previousSibling ) )
{
// When normalizing, do not count it if this is an
// empty text node or if it's a text node following another one.
if ( normalized && current.nodeType == 3 &&
( !current.nodeValue.length ||
( current.previousSibling && current.previousSibling.nodeType == 3 ) ) )
{
continue;
}
index++;
}
return index;
},
getNextSourceNode : function( startFromSibling, nodeType, guard )
{
// If "guard" is a node, transform it in a function.
if ( guard && !guard.call )
{
var guardNode = guard;
guard = function( node )
{
return !node.equals( guardNode );
};
}
var node = ( !startFromSibling && this.getFirst && this.getFirst() ),
parent;
// Guarding when we're skipping the current element( no children or 'startFromSibling' ).
// send the 'moving out' signal even we don't actually dive into.
if ( !node )
{
if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false )
return null;
node = this.getNext();
}
while ( !node && ( parent = ( parent || this ).getParent() ) )
{
// The guard check sends the "true" paramenter to indicate that
// we are moving "out" of the element.
if ( guard && guard( parent, true ) === false )
return null;
node = parent.getNext();
}
if ( !node )
return null;
if ( guard && guard( node ) === false )
return null;
if ( nodeType && nodeType != node.type )
return node.getNextSourceNode( false, nodeType, guard );
return node;
},
getPreviousSourceNode : function( startFromSibling, nodeType, guard )
{
if ( guard && !guard.call )
{
var guardNode = guard;
guard = function( node )
{
return !node.equals( guardNode );
};
}
var node = ( !startFromSibling && this.getLast && this.getLast() ),
parent;
// Guarding when we're skipping the current element( no children or 'startFromSibling' ).
// send the 'moving out' signal even we don't actually dive into.
if ( !node )
{
if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false )
return null;
node = this.getPrevious();
}
while ( !node && ( parent = ( parent || this ).getParent() ) )
{
// The guard check sends the "true" paramenter to indicate that
// we are moving "out" of the element.
if ( guard && guard( parent, true ) === false )
return null;
node = parent.getPrevious();
}
if ( !node )
return null;
if ( guard && guard( node ) === false )
return null;
if ( nodeType && node.type != nodeType )
return node.getPreviousSourceNode( false, nodeType, guard );
return node;
},
getPrevious : function( evaluator )
{
var previous = this.$, retval;
do
{
previous = previous.previousSibling;
// Avoid returning the doc type node.
// http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-412266927
retval = previous && previous.nodeType != 10 && new CKEDITOR.dom.node( previous );
}
while ( retval && evaluator && !evaluator( retval ) )
return retval;
},
/**
* Gets the node that follows this element in its parent's child list.
* @param {Function} evaluator Filtering the result node.
* @returns {CKEDITOR.dom.node} The next node or null if not available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b> <i>next</i></div>' );
* var first = <strong>element.getFirst().getNext()</strong>;
* alert( first.getName() ); // "i"
*/
getNext : function( evaluator )
{
var next = this.$, retval;
do
{
next = next.nextSibling;
retval = next && new CKEDITOR.dom.node( next );
}
while ( retval && evaluator && !evaluator( retval ) )
return retval;
},
/**
* Gets the parent element for this node.
* @returns {CKEDITOR.dom.element} The parent element.
* @example
* var node = editor.document.getBody().getFirst();
* var parent = node.<strong>getParent()</strong>;
* alert( node.getName() ); // "body"
*/
getParent : function()
{
var parent = this.$.parentNode;
return ( parent && parent.nodeType == 1 ) ? new CKEDITOR.dom.node( parent ) : null;
},
getParents : function( closerFirst )
{
var node = this;
var parents = [];
do
{
parents[ closerFirst ? 'push' : 'unshift' ]( node );
}
while ( ( node = node.getParent() ) )
return parents;
},
getCommonAncestor : function( node )
{
if ( node.equals( this ) )
return this;
if ( node.contains && node.contains( this ) )
return node;
var start = this.contains ? this : this.getParent();
do
{
if ( start.contains( node ) )
return start;
}
while ( ( start = start.getParent() ) );
return null;
},
getPosition : function( otherNode )
{
var $ = this.$;
var $other = otherNode.$;
if ( $.compareDocumentPosition )
return $.compareDocumentPosition( $other );
// IE and Safari have no support for compareDocumentPosition.
if ( $ == $other )
return CKEDITOR.POSITION_IDENTICAL;
// Only element nodes support contains and sourceIndex.
if ( this.type == CKEDITOR.NODE_ELEMENT && otherNode.type == CKEDITOR.NODE_ELEMENT )
{
if ( $.contains )
{
if ( $.contains( $other ) )
return CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING;
if ( $other.contains( $ ) )
return CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING;
}
if ( 'sourceIndex' in $ )
{
return ( $.sourceIndex < 0 || $other.sourceIndex < 0 ) ? CKEDITOR.POSITION_DISCONNECTED :
( $.sourceIndex < $other.sourceIndex ) ? CKEDITOR.POSITION_PRECEDING :
CKEDITOR.POSITION_FOLLOWING;
}
}
// For nodes that don't support compareDocumentPosition, contains
// or sourceIndex, their "address" is compared.
var addressOfThis = this.getAddress(),
addressOfOther = otherNode.getAddress(),
minLevel = Math.min( addressOfThis.length, addressOfOther.length );
// Determinate preceed/follow relationship.
for ( var i = 0 ; i <= minLevel - 1 ; i++ )
{
if ( addressOfThis[ i ] != addressOfOther[ i ] )
{
if ( i < minLevel )
{
return addressOfThis[ i ] < addressOfOther[ i ] ?
CKEDITOR.POSITION_PRECEDING : CKEDITOR.POSITION_FOLLOWING;
}
break;
}
}
// Determinate contains/contained relationship.
return ( addressOfThis.length < addressOfOther.length ) ?
CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING :
CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING;
},
/**
* Gets the closest ancestor node of this node, specified by its name.
* @param {String} reference The name of the ancestor node to search or
* an object with the node names to search for.
* @param {Boolean} [includeSelf] Whether to include the current
* node in the search.
* @returns {CKEDITOR.dom.node} The located ancestor node or null if not found.
* @since 3.6.1
* @example
* // Suppose we have the following HTML structure:
* // <div id="outer"><div id="inner"><p><b>Some text</b></p></div></div>
* // If node == <b>
* ascendant = node.getAscendant( 'div' ); // ascendant == <div id="inner">
* ascendant = node.getAscendant( 'b' ); // ascendant == null
* ascendant = node.getAscendant( 'b', true ); // ascendant == <b>
* ascendant = node.getAscendant( { div: 1, p: 1} ); // Searches for the first 'div' or 'p': ascendant == <div id="inner">
*/
getAscendant : function( reference, includeSelf )
{
var $ = this.$,
name;
if ( !includeSelf )
$ = $.parentNode;
while ( $ )
{
if ( $.nodeName && ( name = $.nodeName.toLowerCase(), ( typeof reference == 'string' ? name == reference : name in reference ) ) )
return new CKEDITOR.dom.node( $ );
$ = $.parentNode;
}
return null;
},
hasAscendant : function( name, includeSelf )
{
var $ = this.$;
if ( !includeSelf )
$ = $.parentNode;
while ( $ )
{
if ( $.nodeName && $.nodeName.toLowerCase() == name )
return true;
$ = $.parentNode;
}
return false;
},
move : function( target, toStart )
{
target.append( this.remove(), toStart );
},
/**
* Removes this node from the document DOM.
* @param {Boolean} [preserveChildren] Indicates that the children
* elements must remain in the document, removing only the outer
* tags.
* @example
* var element = CKEDITOR.dom.element.getById( 'MyElement' );
* <strong>element.remove()</strong>;
*/
remove : function( preserveChildren )
{
var $ = this.$;
var parent = $.parentNode;
if ( parent )
{
if ( preserveChildren )
{
// Move all children before the node.
for ( var child ; ( child = $.firstChild ) ; )
{
parent.insertBefore( $.removeChild( child ), $ );
}
}
parent.removeChild( $ );
}
return this;
},
replace : function( nodeToReplace )
{
this.insertBefore( nodeToReplace );
nodeToReplace.remove();
},
trim : function()
{
this.ltrim();
this.rtrim();
},
ltrim : function()
{
var child;
while ( this.getFirst && ( child = this.getFirst() ) )
{
if ( child.type == CKEDITOR.NODE_TEXT )
{
var trimmed = CKEDITOR.tools.ltrim( child.getText() ),
originalLength = child.getLength();
if ( !trimmed )
{
child.remove();
continue;
}
else if ( trimmed.length < originalLength )
{
child.split( originalLength - trimmed.length );
// IE BUG: child.remove() may raise JavaScript errors here. (#81)
this.$.removeChild( this.$.firstChild );
}
}
break;
}
},
rtrim : function()
{
var child;
while ( this.getLast && ( child = this.getLast() ) )
{
if ( child.type == CKEDITOR.NODE_TEXT )
{
var trimmed = CKEDITOR.tools.rtrim( child.getText() ),
originalLength = child.getLength();
if ( !trimmed )
{
child.remove();
continue;
}
else if ( trimmed.length < originalLength )
{
child.split( trimmed.length );
// IE BUG: child.getNext().remove() may raise JavaScript errors here.
// (#81)
this.$.lastChild.parentNode.removeChild( this.$.lastChild );
}
}
break;
}
if ( !CKEDITOR.env.ie && !CKEDITOR.env.opera )
{
child = this.$.lastChild;
if ( child && child.type == 1 && child.nodeName.toLowerCase() == 'br' )
{
// Use "eChildNode.parentNode" instead of "node" to avoid IE bug (#324).
child.parentNode.removeChild( child ) ;
}
}
},
/**
* Checks if this node is read-only (should not be changed).
* @returns {Boolean}
* @since 3.5
* @example
* // For the following HTML:
* // <div contenteditable="false">Some <b>text</b></div>
*
* // If "ele" is the above <div>
* ele.isReadOnly(); // true
*/
isReadOnly : function()
{
var element = this;
if ( this.type != CKEDITOR.NODE_ELEMENT )
element = this.getParent();
if ( element && typeof element.$.isContentEditable != 'undefined' )
return ! ( element.$.isContentEditable || element.data( 'cke-editable' ) );
else
{
// Degrade for old browsers which don't support "isContentEditable", e.g. FF3
var current = element;
while( current )
{
if ( current.is( 'body' ) || !!current.data( 'cke-editable' ) )
break;
if ( current.getAttribute( 'contentEditable' ) == 'false' )
return true;
else if ( current.getAttribute( 'contentEditable' ) == 'true' )
break;
current = current.getParent();
}
return false;
}
}
}
);
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/node.js
|
JavaScript
|
gpl3
| 18,762
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @class DocumentFragment is a "lightweight" or "minimal" Document object. It is
* commonly used to extract a portion of a document's tree or to create a new
* fragment of a document. Various operations may take DocumentFragment objects
* as arguments and results in all the child nodes of the DocumentFragment being
* moved to the child list of this node.
* @param {Object} ownerDocument
*/
CKEDITOR.dom.documentFragment = function( ownerDocument )
{
ownerDocument = ownerDocument || CKEDITOR.document;
this.$ = ownerDocument.$.createDocumentFragment();
};
CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype,
CKEDITOR.dom.element.prototype,
{
type : CKEDITOR.NODE_DOCUMENT_FRAGMENT,
insertAfterNode : function( node )
{
node = node.$;
node.parentNode.insertBefore( this.$, node.nextSibling );
}
},
true,
{
'append' : 1,
'appendBogus' : 1,
'getFirst' : 1,
'getLast' : 1,
'appendTo' : 1,
'moveChildren' : 1,
'insertBefore' : 1,
'insertAfterNode' : 1,
'replace' : 1,
'trim' : 1,
'type' : 1,
'ltrim' : 1,
'rtrim' : 1,
'getDocument' : 1,
'getChildCount' : 1,
'getChild' : 1,
'getChildren' : 1
} );
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/documentfragment.js
|
JavaScript
|
gpl3
| 1,372
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.text} class, which represents
* a DOM text node.
*/
/**
* Represents a DOM text node.
* @constructor
* @augments CKEDITOR.dom.node
* @param {Object|String} text A native DOM text node or a string containing
* the text to use to create a new text node.
* @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain
* the node in case of new node creation. Defaults to the current document.
* @example
* var nativeNode = document.createTextNode( 'Example' );
* var text = CKEDITOR.dom.text( nativeNode );
* @example
* var text = CKEDITOR.dom.text( 'Example' );
*/
CKEDITOR.dom.text = function( text, ownerDocument )
{
if ( typeof text == 'string' )
text = ( ownerDocument ? ownerDocument.$ : document ).createTextNode( text );
// Theoretically, we should call the base constructor here
// (not CKEDITOR.dom.node though). But, IE doesn't support expando
// properties on text node, so the features provided by domObject will not
// work for text nodes (which is not a big issue for us).
//
// CKEDITOR.dom.domObject.call( this, element );
/**
* The native DOM text node represented by this class instance.
* @type Object
* @example
* var element = new CKEDITOR.dom.text( 'Example' );
* alert( element.$.nodeType ); // "3"
*/
this.$ = text;
};
CKEDITOR.dom.text.prototype = new CKEDITOR.dom.node();
CKEDITOR.tools.extend( CKEDITOR.dom.text.prototype,
/** @lends CKEDITOR.dom.text.prototype */
{
/**
* The node type. This is a constant value set to
* {@link CKEDITOR.NODE_TEXT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_TEXT,
getLength : function()
{
return this.$.nodeValue.length;
},
getText : function()
{
return this.$.nodeValue;
},
setText : function( text )
{
this.$.nodeValue = text;
},
/**
* Breaks this text node into two nodes at the specified offset,
* keeping both in the tree as siblings. This node then only contains
* all the content up to the offset point. A new text node, which is
* inserted as the next sibling of this node, contains all the content
* at and after the offset point. When the offset is equal to the
* length of this node, the new node has no data.
* @param {Number} The position at which to split, starting from zero.
* @returns {CKEDITOR.dom.text} The new text node.
*/
split : function( offset )
{
// If the offset is after the last char, IE creates the text node
// on split, but don't include it into the DOM. So, we have to do
// that manually here.
if ( CKEDITOR.env.ie && offset == this.getLength() )
{
var next = this.getDocument().createText( '' );
next.insertAfter( this );
return next;
}
var doc = this.getDocument();
var retval = new CKEDITOR.dom.text( this.$.splitText( offset ), doc );
// IE BUG: IE8 does not update the childNodes array in DOM after splitText(),
// we need to make some DOM changes to make it update. (#3436)
if ( CKEDITOR.env.ie8 )
{
var workaround = new CKEDITOR.dom.text( '', doc );
workaround.insertAfter( retval );
workaround.remove();
}
return retval;
},
/**
* Extracts characters from indexA up to but not including indexB.
* @param {Number} indexA An integer between 0 and one less than the
* length of the text.
* @param {Number} [indexB] An integer between 0 and the length of the
* string. If omitted, extracts characters to the end of the text.
*/
substring : function( indexA, indexB )
{
// We need the following check due to a Firefox bug
// https://bugzilla.mozilla.org/show_bug.cgi?id=458886
if ( typeof indexB != 'number' )
return this.$.nodeValue.substr( indexA );
else
return this.$.nodeValue.substring( indexA, indexB );
}
});
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/text.js
|
JavaScript
|
gpl3
| 4,119
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Creates a CKEDITOR.dom.range instance that can be used inside a specific
* DOM Document.
* @class Represents a delimited piece of content in a DOM Document.
* It is contiguous in the sense that it can be characterized as selecting all
* of the content between a pair of boundary-points.<br>
* <br>
* This class shares much of the W3C
* <a href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html">Document Object Model Range</a>
* ideas and features, adding several range manipulation tools to it, but it's
* not intended to be compatible with it.
* @param {CKEDITOR.dom.document} document The document into which the range
* features will be available.
* @example
* // Create a range for the entire contents of the editor document body.
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* // Delete the contents.
* range.deleteContents();
*/
CKEDITOR.dom.range = function( document )
{
/**
* Node within which the range begins.
* @type {CKEDITOR.NODE_ELEMENT|CKEDITOR.NODE_TEXT}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.startContainer.getName() ); // "body"
*/
this.startContainer = null;
/**
* Offset within the starting node of the range.
* @type {Number}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.startOffset ); // "0"
*/
this.startOffset = null;
/**
* Node within which the range ends.
* @type {CKEDITOR.NODE_ELEMENT|CKEDITOR.NODE_TEXT}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.endContainer.getName() ); // "body"
*/
this.endContainer = null;
/**
* Offset within the ending node of the range.
* @type {Number}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.endOffset ); // == editor.document.getBody().getChildCount()
*/
this.endOffset = null;
/**
* Indicates that this is a collapsed range. A collapsed range has it's
* start and end boudaries at the very same point so nothing is contained
* in it.
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.collapsed ); // "false"
* range.collapse();
* alert( range.collapsed ); // "true"
*/
this.collapsed = true;
/**
* The document within which the range can be used.
* @type {CKEDITOR.dom.document}
* @example
* // Selects the body contents of the range document.
* range.selectNodeContents( range.document.getBody() );
*/
this.document = document;
};
(function()
{
// Updates the "collapsed" property for the given range object.
var updateCollapsed = function( range )
{
range.collapsed = (
range.startContainer &&
range.endContainer &&
range.startContainer.equals( range.endContainer ) &&
range.startOffset == range.endOffset );
};
// This is a shared function used to delete, extract and clone the range
// contents.
// V2
var execContentsAction = function( range, action, docFrag, mergeThen )
{
range.optimizeBookmark();
var startNode = range.startContainer;
var endNode = range.endContainer;
var startOffset = range.startOffset;
var endOffset = range.endOffset;
var removeStartNode;
var removeEndNode;
// For text containers, we must simply split the node and point to the
// second part. The removal will be handled by the rest of the code .
if ( endNode.type == CKEDITOR.NODE_TEXT )
endNode = endNode.split( endOffset );
else
{
// If the end container has children and the offset is pointing
// to a child, then we should start from it.
if ( endNode.getChildCount() > 0 )
{
// If the offset points after the last node.
if ( endOffset >= endNode.getChildCount() )
{
// Let's create a temporary node and mark it for removal.
endNode = endNode.append( range.document.createText( '' ) );
removeEndNode = true;
}
else
endNode = endNode.getChild( endOffset );
}
}
// For text containers, we must simply split the node. The removal will
// be handled by the rest of the code .
if ( startNode.type == CKEDITOR.NODE_TEXT )
{
startNode.split( startOffset );
// In cases the end node is the same as the start node, the above
// splitting will also split the end, so me must move the end to
// the second part of the split.
if ( startNode.equals( endNode ) )
endNode = startNode.getNext();
}
else
{
// If the start container has children and the offset is pointing
// to a child, then we should start from its previous sibling.
// If the offset points to the first node, we don't have a
// sibling, so let's use the first one, but mark it for removal.
if ( !startOffset )
{
// Let's create a temporary node and mark it for removal.
startNode = startNode.getFirst().insertBeforeMe( range.document.createText( '' ) );
removeStartNode = true;
}
else if ( startOffset >= startNode.getChildCount() )
{
// Let's create a temporary node and mark it for removal.
startNode = startNode.append( range.document.createText( '' ) );
removeStartNode = true;
}
else
startNode = startNode.getChild( startOffset ).getPrevious();
}
// Get the parent nodes tree for the start and end boundaries.
var startParents = startNode.getParents();
var endParents = endNode.getParents();
// Compare them, to find the top most siblings.
var i, topStart, topEnd;
for ( i = 0 ; i < startParents.length ; i++ )
{
topStart = startParents[ i ];
topEnd = endParents[ i ];
// The compared nodes will match until we find the top most
// siblings (different nodes that have the same parent).
// "i" will hold the index in the parents array for the top
// most element.
if ( !topStart.equals( topEnd ) )
break;
}
var clone = docFrag, levelStartNode, levelClone, currentNode, currentSibling;
// Remove all successive sibling nodes for every node in the
// startParents tree.
for ( var j = i ; j < startParents.length ; j++ )
{
levelStartNode = startParents[j];
// For Extract and Clone, we must clone this level.
if ( clone && !levelStartNode.equals( startNode ) ) // action = 0 = Delete
levelClone = clone.append( levelStartNode.clone() );
currentNode = levelStartNode.getNext();
while ( currentNode )
{
// Stop processing when the current node matches a node in the
// endParents tree or if it is the endNode.
if ( currentNode.equals( endParents[ j ] ) || currentNode.equals( endNode ) )
break;
// Cache the next sibling.
currentSibling = currentNode.getNext();
// If cloning, just clone it.
if ( action == 2 ) // 2 = Clone
clone.append( currentNode.clone( true ) );
else
{
// Both Delete and Extract will remove the node.
currentNode.remove();
// When Extracting, move the removed node to the docFrag.
if ( action == 1 ) // 1 = Extract
clone.append( currentNode );
}
currentNode = currentSibling;
}
if ( clone )
clone = levelClone;
}
clone = docFrag;
// Remove all previous sibling nodes for every node in the
// endParents tree.
for ( var k = i ; k < endParents.length ; k++ )
{
levelStartNode = endParents[ k ];
// For Extract and Clone, we must clone this level.
if ( action > 0 && !levelStartNode.equals( endNode ) ) // action = 0 = Delete
levelClone = clone.append( levelStartNode.clone() );
// The processing of siblings may have already been done by the parent.
if ( !startParents[ k ] || levelStartNode.$.parentNode != startParents[ k ].$.parentNode )
{
currentNode = levelStartNode.getPrevious();
while ( currentNode )
{
// Stop processing when the current node matches a node in the
// startParents tree or if it is the startNode.
if ( currentNode.equals( startParents[ k ] ) || currentNode.equals( startNode ) )
break;
// Cache the next sibling.
currentSibling = currentNode.getPrevious();
// If cloning, just clone it.
if ( action == 2 ) // 2 = Clone
clone.$.insertBefore( currentNode.$.cloneNode( true ), clone.$.firstChild ) ;
else
{
// Both Delete and Extract will remove the node.
currentNode.remove();
// When Extracting, mode the removed node to the docFrag.
if ( action == 1 ) // 1 = Extract
clone.$.insertBefore( currentNode.$, clone.$.firstChild );
}
currentNode = currentSibling;
}
}
if ( clone )
clone = levelClone;
}
if ( action == 2 ) // 2 = Clone.
{
// No changes in the DOM should be done, so fix the split text (if any).
var startTextNode = range.startContainer;
if ( startTextNode.type == CKEDITOR.NODE_TEXT )
{
startTextNode.$.data += startTextNode.$.nextSibling.data;
startTextNode.$.parentNode.removeChild( startTextNode.$.nextSibling );
}
var endTextNode = range.endContainer;
if ( endTextNode.type == CKEDITOR.NODE_TEXT && endTextNode.$.nextSibling )
{
endTextNode.$.data += endTextNode.$.nextSibling.data;
endTextNode.$.parentNode.removeChild( endTextNode.$.nextSibling );
}
}
else
{
// Collapse the range.
// If a node has been partially selected, collapse the range between
// topStart and topEnd. Otherwise, simply collapse it to the start. (W3C specs).
if ( topStart && topEnd && ( startNode.$.parentNode != topStart.$.parentNode || endNode.$.parentNode != topEnd.$.parentNode ) )
{
var endIndex = topEnd.getIndex();
// If the start node is to be removed, we must correct the
// index to reflect the removal.
if ( removeStartNode && topEnd.$.parentNode == startNode.$.parentNode )
endIndex--;
// Merge splitted parents.
if ( mergeThen && topStart.type == CKEDITOR.NODE_ELEMENT )
{
var span = CKEDITOR.dom.element.createFromHtml( '<span ' +
'data-cke-bookmark="1" style="display:none"> </span>', range.document );
span.insertAfter( topStart );
topStart.mergeSiblings( false );
range.moveToBookmark( { startNode : span } );
}
else
range.setStart( topEnd.getParent(), endIndex );
}
// Collapse it to the start.
range.collapse( true );
}
// Cleanup any marked node.
if ( removeStartNode )
startNode.remove();
if ( removeEndNode && endNode.$.parentNode )
endNode.remove();
};
var inlineChildReqElements = { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 };
// Creates the appropriate node evaluator for the dom walker used inside
// check(Start|End)OfBlock.
function getCheckStartEndBlockEvalFunction( isStart )
{
var hadBr = false, bookmarkEvaluator = CKEDITOR.dom.walker.bookmark( true );
return function( node )
{
// First ignore bookmark nodes.
if ( bookmarkEvaluator( node ) )
return true;
if ( node.type == CKEDITOR.NODE_TEXT )
{
// If there's any visible text, then we're not at the start.
if ( node.hasAscendant( 'pre' ) || CKEDITOR.tools.trim( node.getText() ).length )
return false;
}
else if ( node.type == CKEDITOR.NODE_ELEMENT )
{
// If there are non-empty inline elements (e.g. <img />), then we're not
// at the start.
if ( !inlineChildReqElements[ node.getName() ] )
{
// If we're working at the end-of-block, forgive the first <br /> in non-IE
// browsers.
if ( !isStart && !CKEDITOR.env.ie && node.getName() == 'br' && !hadBr )
hadBr = true;
else
return false;
}
}
return true;
};
}
var isBogus = CKEDITOR.dom.walker.bogus();
// Evaluator for CKEDITOR.dom.element::checkBoundaryOfElement, reject any
// text node and non-empty elements unless it's being bookmark text.
function elementBoundaryEval( checkStart )
{
return function( node )
{
// Tolerant bogus br when checking at the end of block.
// Reject any text node unless it's being bookmark
// OR it's spaces.
// Reject any element unless it's being invisible empty. (#3883)
return !checkStart && isBogus( node ) ||
( node.type == CKEDITOR.NODE_TEXT ?
!CKEDITOR.tools.trim( node.getText() ) || !!node.getParent().data( 'cke-bookmark' )
: node.getName() in CKEDITOR.dtd.$removeEmpty );
};
}
var whitespaceEval = new CKEDITOR.dom.walker.whitespaces(),
bookmarkEval = new CKEDITOR.dom.walker.bookmark();
function nonWhitespaceOrBookmarkEval( node )
{
// Whitespaces and bookmark nodes are to be ignored.
return !whitespaceEval( node ) && !bookmarkEval( node );
}
CKEDITOR.dom.range.prototype =
{
clone : function()
{
var clone = new CKEDITOR.dom.range( this.document );
clone.startContainer = this.startContainer;
clone.startOffset = this.startOffset;
clone.endContainer = this.endContainer;
clone.endOffset = this.endOffset;
clone.collapsed = this.collapsed;
return clone;
},
collapse : function( toStart )
{
if ( toStart )
{
this.endContainer = this.startContainer;
this.endOffset = this.startOffset;
}
else
{
this.startContainer = this.endContainer;
this.startOffset = this.endOffset;
}
this.collapsed = true;
},
/**
* The content nodes of the range are cloned and added to a document fragment, which is returned.
* <strong> Note: </strong> Text selection may lost after invoking this method. (caused by text node splitting).
*/
cloneContents : function()
{
var docFrag = new CKEDITOR.dom.documentFragment( this.document );
if ( !this.collapsed )
execContentsAction( this, 2, docFrag );
return docFrag;
},
/**
* Deletes the content nodes of the range permanently from the DOM tree.
* @param {Boolean} [mergeThen] Merge any splitted elements result in DOM true due to partial selection.
*/
deleteContents : function( mergeThen )
{
if ( this.collapsed )
return;
execContentsAction( this, 0, null, mergeThen );
},
/**
* The content nodes of the range are cloned and added to a document fragment,
* meanwhile they're removed permanently from the DOM tree.
* @param {Boolean} [mergeThen] Merge any splitted elements result in DOM true due to partial selection.
*/
extractContents : function( mergeThen )
{
var docFrag = new CKEDITOR.dom.documentFragment( this.document );
if ( !this.collapsed )
execContentsAction( this, 1, docFrag, mergeThen );
return docFrag;
},
/**
* Creates a bookmark object, which can be later used to restore the
* range by using the moveToBookmark function.
* This is an "intrusive" way to create a bookmark. It includes <span> tags
* in the range boundaries. The advantage of it is that it is possible to
* handle DOM mutations when moving back to the bookmark.
* Attention: the inclusion of nodes in the DOM is a design choice and
* should not be changed as there are other points in the code that may be
* using those nodes to perform operations. See GetBookmarkNode.
* @param {Boolean} [serializable] Indicates that the bookmark nodes
* must contain ids, which can be used to restore the range even
* when these nodes suffer mutations (like a clonation or innerHTML
* change).
* @returns {Object} And object representing a bookmark.
*/
createBookmark : function( serializable )
{
var startNode, endNode;
var baseId;
var clone;
var collapsed = this.collapsed;
startNode = this.document.createElement( 'span' );
startNode.data( 'cke-bookmark', 1 );
startNode.setStyle( 'display', 'none' );
// For IE, it must have something inside, otherwise it may be
// removed during DOM operations.
startNode.setHtml( ' ' );
if ( serializable )
{
baseId = 'cke_bm_' + CKEDITOR.tools.getNextNumber();
startNode.setAttribute( 'id', baseId + 'S' );
}
// If collapsed, the endNode will not be created.
if ( !collapsed )
{
endNode = startNode.clone();
endNode.setHtml( ' ' );
if ( serializable )
endNode.setAttribute( 'id', baseId + 'E' );
clone = this.clone();
clone.collapse();
clone.insertNode( endNode );
}
clone = this.clone();
clone.collapse( true );
clone.insertNode( startNode );
// Update the range position.
if ( endNode )
{
this.setStartAfter( startNode );
this.setEndBefore( endNode );
}
else
this.moveToPosition( startNode, CKEDITOR.POSITION_AFTER_END );
return {
startNode : serializable ? baseId + 'S' : startNode,
endNode : serializable ? baseId + 'E' : endNode,
serializable : serializable,
collapsed : collapsed
};
},
/**
* Creates a "non intrusive" and "mutation sensible" bookmark. This
* kind of bookmark should be used only when the DOM is supposed to
* remain stable after its creation.
* @param {Boolean} [normalized] Indicates that the bookmark must
* normalized. When normalized, the successive text nodes are
* considered a single node. To sucessful load a normalized
* bookmark, the DOM tree must be also normalized before calling
* moveToBookmark.
* @returns {Object} An object representing the bookmark.
*/
createBookmark2 : function( normalized )
{
var startContainer = this.startContainer,
endContainer = this.endContainer;
var startOffset = this.startOffset,
endOffset = this.endOffset;
var collapsed = this.collapsed;
var child, previous;
// If there is no range then get out of here.
// It happens on initial load in Safari #962 and if the editor it's
// hidden also in Firefox
if ( !startContainer || !endContainer )
return { start : 0, end : 0 };
if ( normalized )
{
// Find out if the start is pointing to a text node that will
// be normalized.
if ( startContainer.type == CKEDITOR.NODE_ELEMENT )
{
child = startContainer.getChild( startOffset );
// In this case, move the start information to that text
// node.
if ( child && child.type == CKEDITOR.NODE_TEXT
&& startOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT )
{
startContainer = child;
startOffset = 0;
}
// Get the normalized offset.
if ( child && child.type == CKEDITOR.NODE_ELEMENT )
startOffset = child.getIndex( 1 );
}
// Normalize the start.
while ( startContainer.type == CKEDITOR.NODE_TEXT
&& ( previous = startContainer.getPrevious() )
&& previous.type == CKEDITOR.NODE_TEXT )
{
startContainer = previous;
startOffset += previous.getLength();
}
// Process the end only if not normalized.
if ( !collapsed )
{
// Find out if the start is pointing to a text node that
// will be normalized.
if ( endContainer.type == CKEDITOR.NODE_ELEMENT )
{
child = endContainer.getChild( endOffset );
// In this case, move the start information to that
// text node.
if ( child && child.type == CKEDITOR.NODE_TEXT
&& endOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT )
{
endContainer = child;
endOffset = 0;
}
// Get the normalized offset.
if ( child && child.type == CKEDITOR.NODE_ELEMENT )
endOffset = child.getIndex( 1 );
}
// Normalize the end.
while ( endContainer.type == CKEDITOR.NODE_TEXT
&& ( previous = endContainer.getPrevious() )
&& previous.type == CKEDITOR.NODE_TEXT )
{
endContainer = previous;
endOffset += previous.getLength();
}
}
}
return {
start : startContainer.getAddress( normalized ),
end : collapsed ? null : endContainer.getAddress( normalized ),
startOffset : startOffset,
endOffset : endOffset,
normalized : normalized,
collapsed : collapsed,
is2 : true // It's a createBookmark2 bookmark.
};
},
moveToBookmark : function( bookmark )
{
if ( bookmark.is2 ) // Created with createBookmark2().
{
// Get the start information.
var startContainer = this.document.getByAddress( bookmark.start, bookmark.normalized ),
startOffset = bookmark.startOffset;
// Get the end information.
var endContainer = bookmark.end && this.document.getByAddress( bookmark.end, bookmark.normalized ),
endOffset = bookmark.endOffset;
// Set the start boundary.
this.setStart( startContainer, startOffset );
// Set the end boundary. If not available, collapse it.
if ( endContainer )
this.setEnd( endContainer, endOffset );
else
this.collapse( true );
}
else // Created with createBookmark().
{
var serializable = bookmark.serializable,
startNode = serializable ? this.document.getById( bookmark.startNode ) : bookmark.startNode,
endNode = serializable ? this.document.getById( bookmark.endNode ) : bookmark.endNode;
// Set the range start at the bookmark start node position.
this.setStartBefore( startNode );
// Remove it, because it may interfere in the setEndBefore call.
startNode.remove();
// Set the range end at the bookmark end node position, or simply
// collapse it if it is not available.
if ( endNode )
{
this.setEndBefore( endNode );
endNode.remove();
}
else
this.collapse( true );
}
},
getBoundaryNodes : function()
{
var startNode = this.startContainer,
endNode = this.endContainer,
startOffset = this.startOffset,
endOffset = this.endOffset,
childCount;
if ( startNode.type == CKEDITOR.NODE_ELEMENT )
{
childCount = startNode.getChildCount();
if ( childCount > startOffset )
startNode = startNode.getChild( startOffset );
else if ( childCount < 1 )
startNode = startNode.getPreviousSourceNode();
else // startOffset > childCount but childCount is not 0
{
// Try to take the node just after the current position.
startNode = startNode.$;
while ( startNode.lastChild )
startNode = startNode.lastChild;
startNode = new CKEDITOR.dom.node( startNode );
// Normally we should take the next node in DFS order. But it
// is also possible that we've already reached the end of
// document.
startNode = startNode.getNextSourceNode() || startNode;
}
}
if ( endNode.type == CKEDITOR.NODE_ELEMENT )
{
childCount = endNode.getChildCount();
if ( childCount > endOffset )
endNode = endNode.getChild( endOffset ).getPreviousSourceNode( true );
else if ( childCount < 1 )
endNode = endNode.getPreviousSourceNode();
else // endOffset > childCount but childCount is not 0
{
// Try to take the node just before the current position.
endNode = endNode.$;
while ( endNode.lastChild )
endNode = endNode.lastChild;
endNode = new CKEDITOR.dom.node( endNode );
}
}
// Sometimes the endNode will come right before startNode for collapsed
// ranges. Fix it. (#3780)
if ( startNode.getPosition( endNode ) & CKEDITOR.POSITION_FOLLOWING )
startNode = endNode;
return { startNode : startNode, endNode : endNode };
},
/**
* Find the node which fully contains the range.
* @param includeSelf
* @param {Boolean} ignoreTextNode Whether ignore CKEDITOR.NODE_TEXT type.
*/
getCommonAncestor : function( includeSelf , ignoreTextNode )
{
var start = this.startContainer,
end = this.endContainer,
ancestor;
if ( start.equals( end ) )
{
if ( includeSelf
&& start.type == CKEDITOR.NODE_ELEMENT
&& this.startOffset == this.endOffset - 1 )
ancestor = start.getChild( this.startOffset );
else
ancestor = start;
}
else
ancestor = start.getCommonAncestor( end );
return ignoreTextNode && !ancestor.is ? ancestor.getParent() : ancestor;
},
/**
* Transforms the startContainer and endContainer properties from text
* nodes to element nodes, whenever possible. This is actually possible
* if either of the boundary containers point to a text node, and its
* offset is set to zero, or after the last char in the node.
*/
optimize : function()
{
var container = this.startContainer;
var offset = this.startOffset;
if ( container.type != CKEDITOR.NODE_ELEMENT )
{
if ( !offset )
this.setStartBefore( container );
else if ( offset >= container.getLength() )
this.setStartAfter( container );
}
container = this.endContainer;
offset = this.endOffset;
if ( container.type != CKEDITOR.NODE_ELEMENT )
{
if ( !offset )
this.setEndBefore( container );
else if ( offset >= container.getLength() )
this.setEndAfter( container );
}
},
/**
* Move the range out of bookmark nodes if they'd been the container.
*/
optimizeBookmark: function()
{
var startNode = this.startContainer,
endNode = this.endContainer;
if ( startNode.is && startNode.is( 'span' )
&& startNode.data( 'cke-bookmark' ) )
this.setStartAt( startNode, CKEDITOR.POSITION_BEFORE_START );
if ( endNode && endNode.is && endNode.is( 'span' )
&& endNode.data( 'cke-bookmark' ) )
this.setEndAt( endNode, CKEDITOR.POSITION_AFTER_END );
},
trim : function( ignoreStart, ignoreEnd )
{
var startContainer = this.startContainer,
startOffset = this.startOffset,
collapsed = this.collapsed;
if ( ( !ignoreStart || collapsed )
&& startContainer && startContainer.type == CKEDITOR.NODE_TEXT )
{
// If the offset is zero, we just insert the new node before
// the start.
if ( !startOffset )
{
startOffset = startContainer.getIndex();
startContainer = startContainer.getParent();
}
// If the offset is at the end, we'll insert it after the text
// node.
else if ( startOffset >= startContainer.getLength() )
{
startOffset = startContainer.getIndex() + 1;
startContainer = startContainer.getParent();
}
// In other case, we split the text node and insert the new
// node at the split point.
else
{
var nextText = startContainer.split( startOffset );
startOffset = startContainer.getIndex() + 1;
startContainer = startContainer.getParent();
// Check all necessity of updating the end boundary.
if ( this.startContainer.equals( this.endContainer ) )
this.setEnd( nextText, this.endOffset - this.startOffset );
else if ( startContainer.equals( this.endContainer ) )
this.endOffset += 1;
}
this.setStart( startContainer, startOffset );
if ( collapsed )
{
this.collapse( true );
return;
}
}
var endContainer = this.endContainer;
var endOffset = this.endOffset;
if ( !( ignoreEnd || collapsed )
&& endContainer && endContainer.type == CKEDITOR.NODE_TEXT )
{
// If the offset is zero, we just insert the new node before
// the start.
if ( !endOffset )
{
endOffset = endContainer.getIndex();
endContainer = endContainer.getParent();
}
// If the offset is at the end, we'll insert it after the text
// node.
else if ( endOffset >= endContainer.getLength() )
{
endOffset = endContainer.getIndex() + 1;
endContainer = endContainer.getParent();
}
// In other case, we split the text node and insert the new
// node at the split point.
else
{
endContainer.split( endOffset );
endOffset = endContainer.getIndex() + 1;
endContainer = endContainer.getParent();
}
this.setEnd( endContainer, endOffset );
}
},
/**
* Expands the range so that partial units are completely contained.
* @param unit {Number} The unit type to expand with.
* @param {Boolean} [excludeBrs=false] Whether include line-breaks when expanding.
*/
enlarge : function( unit, excludeBrs )
{
switch ( unit )
{
case CKEDITOR.ENLARGE_ELEMENT :
if ( this.collapsed )
return;
// Get the common ancestor.
var commonAncestor = this.getCommonAncestor();
var body = this.document.getBody();
// For each boundary
// a. Depending on its position, find out the first node to be checked (a sibling) or, if not available, to be enlarge.
// b. Go ahead checking siblings and enlarging the boundary as much as possible until the common ancestor is not reached. After reaching the common ancestor, just save the enlargeable node to be used later.
var startTop, endTop;
var enlargeable, sibling, commonReached;
// Indicates that the node can be added only if whitespace
// is available before it.
var needsWhiteSpace = false;
var isWhiteSpace;
var siblingText;
// Process the start boundary.
var container = this.startContainer;
var offset = this.startOffset;
if ( container.type == CKEDITOR.NODE_TEXT )
{
if ( offset )
{
// Check if there is any non-space text before the
// offset. Otherwise, container is null.
container = !CKEDITOR.tools.trim( container.substring( 0, offset ) ).length && container;
// If we found only whitespace in the node, it
// means that we'll need more whitespace to be able
// to expand. For example, <i> can be expanded in
// "A <i> [B]</i>", but not in "A<i> [B]</i>".
needsWhiteSpace = !!container;
}
if ( container )
{
if ( !( sibling = container.getPrevious() ) )
enlargeable = container.getParent();
}
}
else
{
// If we have offset, get the node preceeding it as the
// first sibling to be checked.
if ( offset )
sibling = container.getChild( offset - 1 ) || container.getLast();
// If there is no sibling, mark the container to be
// enlarged.
if ( !sibling )
enlargeable = container;
}
while ( enlargeable || sibling )
{
if ( enlargeable && !sibling )
{
// If we reached the common ancestor, mark the flag
// for it.
if ( !commonReached && enlargeable.equals( commonAncestor ) )
commonReached = true;
if ( !body.contains( enlargeable ) )
break;
// If we don't need space or this element breaks
// the line, then enlarge it.
if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' )
{
needsWhiteSpace = false;
// If the common ancestor has been reached,
// we'll not enlarge it immediately, but just
// mark it to be enlarged later if the end
// boundary also enlarges it.
if ( commonReached )
startTop = enlargeable;
else
this.setStartBefore( enlargeable );
}
sibling = enlargeable.getPrevious();
}
// Check all sibling nodes preceeding the enlargeable
// node. The node wil lbe enlarged only if none of them
// blocks it.
while ( sibling )
{
// This flag indicates that this node has
// whitespaces at the end.
isWhiteSpace = false;
if ( sibling.type == CKEDITOR.NODE_COMMENT )
{
sibling = sibling.getPrevious();
continue;
}
else if ( sibling.type == CKEDITOR.NODE_TEXT )
{
siblingText = sibling.getText();
if ( /[^\s\ufeff]/.test( siblingText ) )
sibling = null;
isWhiteSpace = /[\s\ufeff]$/.test( siblingText );
}
else
{
// If this is a visible element.
// We need to check for the bookmark attribute because IE insists on
// rendering the display:none nodes we use for bookmarks. (#3363)
// Line-breaks (br) are rendered with zero width, which we don't want to include. (#7041)
if ( ( sibling.$.offsetWidth > 0 || excludeBrs && sibling.is( 'br' ) ) && !sibling.data( 'cke-bookmark' ) )
{
// We'll accept it only if we need
// whitespace, and this is an inline
// element with whitespace only.
if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] )
{
// It must contains spaces and inline elements only.
siblingText = sibling.getText();
if ( (/[^\s\ufeff]/).test( siblingText ) ) // Spaces + Zero Width No-Break Space (U+FEFF)
sibling = null;
else
{
var allChildren = sibling.$.getElementsByTagName( '*' );
for ( var i = 0, child ; child = allChildren[ i++ ] ; )
{
if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] )
{
sibling = null;
break;
}
}
}
if ( sibling )
isWhiteSpace = !!siblingText.length;
}
else
sibling = null;
}
}
// A node with whitespaces has been found.
if ( isWhiteSpace )
{
// Enlarge the last enlargeable node, if we
// were waiting for spaces.
if ( needsWhiteSpace )
{
if ( commonReached )
startTop = enlargeable;
else if ( enlargeable )
this.setStartBefore( enlargeable );
}
else
needsWhiteSpace = true;
}
if ( sibling )
{
var next = sibling.getPrevious();
if ( !enlargeable && !next )
{
// Set the sibling as enlargeable, so it's
// parent will be get later outside this while.
enlargeable = sibling;
sibling = null;
break;
}
sibling = next;
}
else
{
// If sibling has been set to null, then we
// need to stop enlarging.
enlargeable = null;
}
}
if ( enlargeable )
enlargeable = enlargeable.getParent();
}
// Process the end boundary. This is basically the same
// code used for the start boundary, with small changes to
// make it work in the oposite side (to the right). This
// makes it difficult to reuse the code here. So, fixes to
// the above code are likely to be replicated here.
container = this.endContainer;
offset = this.endOffset;
// Reset the common variables.
enlargeable = sibling = null;
commonReached = needsWhiteSpace = false;
if ( container.type == CKEDITOR.NODE_TEXT )
{
// Check if there is any non-space text after the
// offset. Otherwise, container is null.
container = !CKEDITOR.tools.trim( container.substring( offset ) ).length && container;
// If we found only whitespace in the node, it
// means that we'll need more whitespace to be able
// to expand. For example, <i> can be expanded in
// "A <i> [B]</i>", but not in "A<i> [B]</i>".
needsWhiteSpace = !( container && container.getLength() );
if ( container )
{
if ( !( sibling = container.getNext() ) )
enlargeable = container.getParent();
}
}
else
{
// Get the node right after the boudary to be checked
// first.
sibling = container.getChild( offset );
if ( !sibling )
enlargeable = container;
}
while ( enlargeable || sibling )
{
if ( enlargeable && !sibling )
{
if ( !commonReached && enlargeable.equals( commonAncestor ) )
commonReached = true;
if ( !body.contains( enlargeable ) )
break;
if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' )
{
needsWhiteSpace = false;
if ( commonReached )
endTop = enlargeable;
else if ( enlargeable )
this.setEndAfter( enlargeable );
}
sibling = enlargeable.getNext();
}
while ( sibling )
{
isWhiteSpace = false;
if ( sibling.type == CKEDITOR.NODE_TEXT )
{
siblingText = sibling.getText();
if ( /[^\s\ufeff]/.test( siblingText ) )
sibling = null;
isWhiteSpace = /^[\s\ufeff]/.test( siblingText );
}
else if ( sibling.type == CKEDITOR.NODE_ELEMENT )
{
// If this is a visible element.
// We need to check for the bookmark attribute because IE insists on
// rendering the display:none nodes we use for bookmarks. (#3363)
// Line-breaks (br) are rendered with zero width, which we don't want to include. (#7041)
if ( ( sibling.$.offsetWidth > 0 || excludeBrs && sibling.is( 'br' ) ) && !sibling.data( 'cke-bookmark' ) )
{
// We'll accept it only if we need
// whitespace, and this is an inline
// element with whitespace only.
if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] )
{
// It must contains spaces and inline elements only.
siblingText = sibling.getText();
if ( (/[^\s\ufeff]/).test( siblingText ) )
sibling = null;
else
{
allChildren = sibling.$.getElementsByTagName( '*' );
for ( i = 0 ; child = allChildren[ i++ ] ; )
{
if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] )
{
sibling = null;
break;
}
}
}
if ( sibling )
isWhiteSpace = !!siblingText.length;
}
else
sibling = null;
}
}
else
isWhiteSpace = 1;
if ( isWhiteSpace )
{
if ( needsWhiteSpace )
{
if ( commonReached )
endTop = enlargeable;
else
this.setEndAfter( enlargeable );
}
}
if ( sibling )
{
next = sibling.getNext();
if ( !enlargeable && !next )
{
enlargeable = sibling;
sibling = null;
break;
}
sibling = next;
}
else
{
// If sibling has been set to null, then we
// need to stop enlarging.
enlargeable = null;
}
}
if ( enlargeable )
enlargeable = enlargeable.getParent();
}
// If the common ancestor can be enlarged by both boundaries, then include it also.
if ( startTop && endTop )
{
commonAncestor = startTop.contains( endTop ) ? endTop : startTop;
this.setStartBefore( commonAncestor );
this.setEndAfter( commonAncestor );
}
break;
case CKEDITOR.ENLARGE_BLOCK_CONTENTS:
case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:
// Enlarging the start boundary.
var walkerRange = new CKEDITOR.dom.range( this.document );
body = this.document.getBody();
walkerRange.setStartAt( body, CKEDITOR.POSITION_AFTER_START );
walkerRange.setEnd( this.startContainer, this.startOffset );
var walker = new CKEDITOR.dom.walker( walkerRange ),
blockBoundary, // The node on which the enlarging should stop.
tailBr, // In case BR as block boundary.
notBlockBoundary = CKEDITOR.dom.walker.blockBoundary(
( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ? { br : 1 } : null ),
// Record the encountered 'blockBoundary' for later use.
boundaryGuard = function( node )
{
var retval = notBlockBoundary( node );
if ( !retval )
blockBoundary = node;
return retval;
},
// Record the encounted 'tailBr' for later use.
tailBrGuard = function( node )
{
var retval = boundaryGuard( node );
if ( !retval && node.is && node.is( 'br' ) )
tailBr = node;
return retval;
};
walker.guard = boundaryGuard;
enlargeable = walker.lastBackward();
// It's the body which stop the enlarging if no block boundary found.
blockBoundary = blockBoundary || body;
// Start the range either after the end of found block (<p>...</p>[text)
// or at the start of block (<p>[text...), by comparing the document position
// with 'enlargeable' node.
this.setStartAt(
blockBoundary,
!blockBoundary.is( 'br' ) &&
( !enlargeable && this.checkStartOfBlock()
|| enlargeable && blockBoundary.contains( enlargeable ) ) ?
CKEDITOR.POSITION_AFTER_START :
CKEDITOR.POSITION_AFTER_END );
// Avoid enlarging the range further when end boundary spans right after the BR. (#7490)
if ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS )
{
var theRange = this.clone();
walker = new CKEDITOR.dom.walker( theRange );
var whitespaces = CKEDITOR.dom.walker.whitespaces(),
bookmark = CKEDITOR.dom.walker.bookmark();
walker.evaluator = function( node ) { return !whitespaces( node ) && !bookmark( node ); };
var previous = walker.previous();
if ( previous && previous.type == CKEDITOR.NODE_ELEMENT && previous.is( 'br' ) )
return;
}
// Enlarging the end boundary.
walkerRange = this.clone();
walkerRange.collapse();
walkerRange.setEndAt( body, CKEDITOR.POSITION_BEFORE_END );
walker = new CKEDITOR.dom.walker( walkerRange );
// tailBrGuard only used for on range end.
walker.guard = ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ?
tailBrGuard : boundaryGuard;
blockBoundary = null;
// End the range right before the block boundary node.
enlargeable = walker.lastForward();
// It's the body which stop the enlarging if no block boundary found.
blockBoundary = blockBoundary || body;
// Close the range either before the found block start (text]<p>...</p>) or at the block end (...text]</p>)
// by comparing the document position with 'enlargeable' node.
this.setEndAt(
blockBoundary,
( !enlargeable && this.checkEndOfBlock()
|| enlargeable && blockBoundary.contains( enlargeable ) ) ?
CKEDITOR.POSITION_BEFORE_END :
CKEDITOR.POSITION_BEFORE_START );
// We must include the <br> at the end of range if there's
// one and we're expanding list item contents
if ( tailBr )
this.setEndAfter( tailBr );
}
},
/**
* Descrease the range to make sure that boundaries
* always anchor beside text nodes or innermost element.
* @param {Number} mode ( CKEDITOR.SHRINK_ELEMENT | CKEDITOR.SHRINK_TEXT ) The shrinking mode.
* <dl>
* <dt>CKEDITOR.SHRINK_ELEMENT</dt>
* <dd>Shrink the range boundaries to the edge of the innermost element.</dd>
* <dt>CKEDITOR.SHRINK_TEXT</dt>
* <dd>Shrink the range boudaries to anchor by the side of enclosed text node, range remains if there's no text nodes on boundaries at all.</dd>
* </dl>
* @param {Boolean} selectContents Whether result range anchors at the inner OR outer boundary of the node.
*/
shrink : function( mode, selectContents )
{
// Unable to shrink a collapsed range.
if ( !this.collapsed )
{
mode = mode || CKEDITOR.SHRINK_TEXT;
var walkerRange = this.clone();
var startContainer = this.startContainer,
endContainer = this.endContainer,
startOffset = this.startOffset,
endOffset = this.endOffset,
collapsed = this.collapsed;
// Whether the start/end boundary is moveable.
var moveStart = 1,
moveEnd = 1;
if ( startContainer && startContainer.type == CKEDITOR.NODE_TEXT )
{
if ( !startOffset )
walkerRange.setStartBefore( startContainer );
else if ( startOffset >= startContainer.getLength( ) )
walkerRange.setStartAfter( startContainer );
else
{
// Enlarge the range properly to avoid walker making
// DOM changes caused by triming the text nodes later.
walkerRange.setStartBefore( startContainer );
moveStart = 0;
}
}
if ( endContainer && endContainer.type == CKEDITOR.NODE_TEXT )
{
if ( !endOffset )
walkerRange.setEndBefore( endContainer );
else if ( endOffset >= endContainer.getLength( ) )
walkerRange.setEndAfter( endContainer );
else
{
walkerRange.setEndAfter( endContainer );
moveEnd = 0;
}
}
var walker = new CKEDITOR.dom.walker( walkerRange ),
isBookmark = CKEDITOR.dom.walker.bookmark();
walker.evaluator = function( node )
{
return node.type == ( mode == CKEDITOR.SHRINK_ELEMENT ?
CKEDITOR.NODE_ELEMENT : CKEDITOR.NODE_TEXT );
};
var currentElement;
walker.guard = function( node, movingOut )
{
if ( isBookmark( node ) )
return true;
// Stop when we're shrink in element mode while encountering a text node.
if ( mode == CKEDITOR.SHRINK_ELEMENT && node.type == CKEDITOR.NODE_TEXT )
return false;
// Stop when we've already walked "through" an element.
if ( movingOut && node.equals( currentElement ) )
return false;
if ( !movingOut && node.type == CKEDITOR.NODE_ELEMENT )
currentElement = node;
return true;
};
if ( moveStart )
{
var textStart = walker[ mode == CKEDITOR.SHRINK_ELEMENT ? 'lastForward' : 'next']();
textStart && this.setStartAt( textStart, selectContents ? CKEDITOR.POSITION_AFTER_START : CKEDITOR.POSITION_BEFORE_START );
}
if ( moveEnd )
{
walker.reset();
var textEnd = walker[ mode == CKEDITOR.SHRINK_ELEMENT ? 'lastBackward' : 'previous']();
textEnd && this.setEndAt( textEnd, selectContents ? CKEDITOR.POSITION_BEFORE_END : CKEDITOR.POSITION_AFTER_END );
}
return !!( moveStart || moveEnd );
}
},
/**
* Inserts a node at the start of the range. The range will be expanded
* the contain the node.
*/
insertNode : function( node )
{
this.optimizeBookmark();
this.trim( false, true );
var startContainer = this.startContainer;
var startOffset = this.startOffset;
var nextNode = startContainer.getChild( startOffset );
if ( nextNode )
node.insertBefore( nextNode );
else
startContainer.append( node );
// Check if we need to update the end boundary.
if ( node.getParent().equals( this.endContainer ) )
this.endOffset++;
// Expand the range to embrace the new node.
this.setStartBefore( node );
},
moveToPosition : function( node, position )
{
this.setStartAt( node, position );
this.collapse( true );
},
selectNodeContents : function( node )
{
this.setStart( node, 0 );
this.setEnd( node, node.type == CKEDITOR.NODE_TEXT ? node.getLength() : node.getChildCount() );
},
/**
* Sets the start position of a Range.
* @param {CKEDITOR.dom.node} startNode The node to start the range.
* @param {Number} startOffset An integer greater than or equal to zero
* representing the offset for the start of the range from the start
* of startNode.
*/
setStart : function( startNode, startOffset )
{
// W3C requires a check for the new position. If it is after the end
// boundary, the range should be collapsed to the new start. It seams
// we will not need this check for our use of this class so we can
// ignore it for now.
// Fixing invalid range start inside dtd empty elements.
if( startNode.type == CKEDITOR.NODE_ELEMENT
&& CKEDITOR.dtd.$empty[ startNode.getName() ] )
startOffset = startNode.getIndex(), startNode = startNode.getParent();
this.startContainer = startNode;
this.startOffset = startOffset;
if ( !this.endContainer )
{
this.endContainer = startNode;
this.endOffset = startOffset;
}
updateCollapsed( this );
},
/**
* Sets the end position of a Range.
* @param {CKEDITOR.dom.node} endNode The node to end the range.
* @param {Number} endOffset An integer greater than or equal to zero
* representing the offset for the end of the range from the start
* of endNode.
*/
setEnd : function( endNode, endOffset )
{
// W3C requires a check for the new position. If it is before the start
// boundary, the range should be collapsed to the new end. It seams we
// will not need this check for our use of this class so we can ignore
// it for now.
// Fixing invalid range end inside dtd empty elements.
if( endNode.type == CKEDITOR.NODE_ELEMENT
&& CKEDITOR.dtd.$empty[ endNode.getName() ] )
endOffset = endNode.getIndex() + 1, endNode = endNode.getParent();
this.endContainer = endNode;
this.endOffset = endOffset;
if ( !this.startContainer )
{
this.startContainer = endNode;
this.startOffset = endOffset;
}
updateCollapsed( this );
},
setStartAfter : function( node )
{
this.setStart( node.getParent(), node.getIndex() + 1 );
},
setStartBefore : function( node )
{
this.setStart( node.getParent(), node.getIndex() );
},
setEndAfter : function( node )
{
this.setEnd( node.getParent(), node.getIndex() + 1 );
},
setEndBefore : function( node )
{
this.setEnd( node.getParent(), node.getIndex() );
},
setStartAt : function( node, position )
{
switch( position )
{
case CKEDITOR.POSITION_AFTER_START :
this.setStart( node, 0 );
break;
case CKEDITOR.POSITION_BEFORE_END :
if ( node.type == CKEDITOR.NODE_TEXT )
this.setStart( node, node.getLength() );
else
this.setStart( node, node.getChildCount() );
break;
case CKEDITOR.POSITION_BEFORE_START :
this.setStartBefore( node );
break;
case CKEDITOR.POSITION_AFTER_END :
this.setStartAfter( node );
}
updateCollapsed( this );
},
setEndAt : function( node, position )
{
switch( position )
{
case CKEDITOR.POSITION_AFTER_START :
this.setEnd( node, 0 );
break;
case CKEDITOR.POSITION_BEFORE_END :
if ( node.type == CKEDITOR.NODE_TEXT )
this.setEnd( node, node.getLength() );
else
this.setEnd( node, node.getChildCount() );
break;
case CKEDITOR.POSITION_BEFORE_START :
this.setEndBefore( node );
break;
case CKEDITOR.POSITION_AFTER_END :
this.setEndAfter( node );
}
updateCollapsed( this );
},
fixBlock : function( isStart, blockTag )
{
var bookmark = this.createBookmark(),
fixedBlock = this.document.createElement( blockTag );
this.collapse( isStart );
this.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS );
this.extractContents().appendTo( fixedBlock );
fixedBlock.trim();
if ( !CKEDITOR.env.ie )
fixedBlock.appendBogus();
this.insertNode( fixedBlock );
this.moveToBookmark( bookmark );
return fixedBlock;
},
splitBlock : function( blockTag )
{
var startPath = new CKEDITOR.dom.elementPath( this.startContainer ),
endPath = new CKEDITOR.dom.elementPath( this.endContainer );
var startBlockLimit = startPath.blockLimit,
endBlockLimit = endPath.blockLimit;
var startBlock = startPath.block,
endBlock = endPath.block;
var elementPath = null;
// Do nothing if the boundaries are in different block limits.
if ( !startBlockLimit.equals( endBlockLimit ) )
return null;
// Get or fix current blocks.
if ( blockTag != 'br' )
{
if ( !startBlock )
{
startBlock = this.fixBlock( true, blockTag );
endBlock = new CKEDITOR.dom.elementPath( this.endContainer ).block;
}
if ( !endBlock )
endBlock = this.fixBlock( false, blockTag );
}
// Get the range position.
var isStartOfBlock = startBlock && this.checkStartOfBlock(),
isEndOfBlock = endBlock && this.checkEndOfBlock();
// Delete the current contents.
// TODO: Why is 2.x doing CheckIsEmpty()?
this.deleteContents();
if ( startBlock && startBlock.equals( endBlock ) )
{
if ( isEndOfBlock )
{
elementPath = new CKEDITOR.dom.elementPath( this.startContainer );
this.moveToPosition( endBlock, CKEDITOR.POSITION_AFTER_END );
endBlock = null;
}
else if ( isStartOfBlock )
{
elementPath = new CKEDITOR.dom.elementPath( this.startContainer );
this.moveToPosition( startBlock, CKEDITOR.POSITION_BEFORE_START );
startBlock = null;
}
else
{
endBlock = this.splitElement( startBlock );
// In Gecko, the last child node must be a bogus <br>.
// Note: bogus <br> added under <ul> or <ol> would cause
// lists to be incorrectly rendered.
if ( !CKEDITOR.env.ie && !startBlock.is( 'ul', 'ol') )
startBlock.appendBogus() ;
}
}
return {
previousBlock : startBlock,
nextBlock : endBlock,
wasStartOfBlock : isStartOfBlock,
wasEndOfBlock : isEndOfBlock,
elementPath : elementPath
};
},
/**
* Branch the specified element from the collapsed range position and
* place the caret between the two result branches.
* Note: The range must be collapsed and been enclosed by this element.
* @param {CKEDITOR.dom.element} element
* @return {CKEDITOR.dom.element} Root element of the new branch after the split.
*/
splitElement : function( toSplit )
{
if ( !this.collapsed )
return null;
// Extract the contents of the block from the selection point to the end
// of its contents.
this.setEndAt( toSplit, CKEDITOR.POSITION_BEFORE_END );
var documentFragment = this.extractContents();
// Duplicate the element after it.
var clone = toSplit.clone( false );
// Place the extracted contents into the duplicated element.
documentFragment.appendTo( clone );
clone.insertAfter( toSplit );
this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END );
return clone;
},
/**
* Check whether a range boundary is at the inner boundary of a given
* element.
* @param {CKEDITOR.dom.element} element The target element to check.
* @param {Number} checkType The boundary to check for both the range
* and the element. It can be CKEDITOR.START or CKEDITOR.END.
* @returns {Boolean} "true" if the range boundary is at the inner
* boundary of the element.
*/
checkBoundaryOfElement : function( element, checkType )
{
var checkStart = ( checkType == CKEDITOR.START );
// Create a copy of this range, so we can manipulate it for our checks.
var walkerRange = this.clone();
// Collapse the range at the proper size.
walkerRange.collapse( checkStart );
// Expand the range to element boundary.
walkerRange[ checkStart ? 'setStartAt' : 'setEndAt' ]
( element, checkStart ? CKEDITOR.POSITION_AFTER_START : CKEDITOR.POSITION_BEFORE_END );
// Create the walker, which will check if we have anything useful
// in the range.
var walker = new CKEDITOR.dom.walker( walkerRange );
walker.evaluator = elementBoundaryEval( checkStart );
return walker[ checkStart ? 'checkBackward' : 'checkForward' ]();
},
// Calls to this function may produce changes to the DOM. The range may
// be updated to reflect such changes.
checkStartOfBlock : function()
{
var startContainer = this.startContainer,
startOffset = this.startOffset;
// If the starting node is a text node, and non-empty before the offset,
// then we're surely not at the start of block.
if ( startOffset && startContainer.type == CKEDITOR.NODE_TEXT )
{
var textBefore = CKEDITOR.tools.ltrim( startContainer.substring( 0, startOffset ) );
if ( textBefore.length )
return false;
}
// Antecipate the trim() call here, so the walker will not make
// changes to the DOM, which would not get reflected into this
// range otherwise.
this.trim();
// We need to grab the block element holding the start boundary, so
// let's use an element path for it.
var path = new CKEDITOR.dom.elementPath( this.startContainer );
// Creates a range starting at the block start until the range start.
var walkerRange = this.clone();
walkerRange.collapse( true );
walkerRange.setStartAt( path.block || path.blockLimit, CKEDITOR.POSITION_AFTER_START );
var walker = new CKEDITOR.dom.walker( walkerRange );
walker.evaluator = getCheckStartEndBlockEvalFunction( true );
return walker.checkBackward();
},
checkEndOfBlock : function()
{
var endContainer = this.endContainer,
endOffset = this.endOffset;
// If the ending node is a text node, and non-empty after the offset,
// then we're surely not at the end of block.
if ( endContainer.type == CKEDITOR.NODE_TEXT )
{
var textAfter = CKEDITOR.tools.rtrim( endContainer.substring( endOffset ) );
if ( textAfter.length )
return false;
}
// Antecipate the trim() call here, so the walker will not make
// changes to the DOM, which would not get reflected into this
// range otherwise.
this.trim();
// We need to grab the block element holding the start boundary, so
// let's use an element path for it.
var path = new CKEDITOR.dom.elementPath( this.endContainer );
// Creates a range starting at the block start until the range start.
var walkerRange = this.clone();
walkerRange.collapse( false );
walkerRange.setEndAt( path.block || path.blockLimit, CKEDITOR.POSITION_BEFORE_END );
var walker = new CKEDITOR.dom.walker( walkerRange );
walker.evaluator = getCheckStartEndBlockEvalFunction( false );
return walker.checkForward();
},
/**
* Check if elements at which the range boundaries anchor are read-only,
* with respect to "contenteditable" attribute.
*/
checkReadOnly : ( function()
{
function checkNodesEditable( node, anotherEnd )
{
while( node )
{
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
if ( node.getAttribute( 'contentEditable' ) == 'false'
&& !node.data( 'cke-editable' ) )
{
return 0;
}
// Range enclosed entirely in an editable element.
else if ( node.is( 'html' )
|| node.getAttribute( 'contentEditable' ) == 'true'
&& ( node.contains( anotherEnd ) || node.equals( anotherEnd ) ) )
{
break;
}
}
node = node.getParent();
}
return 1;
}
return function()
{
var startNode = this.startContainer,
endNode = this.endContainer;
// Check if elements path at both boundaries are editable.
return !( checkNodesEditable( startNode, endNode ) && checkNodesEditable( endNode, startNode ) );
};
})(),
/**
* Moves the range boundaries to the first/end editing point inside an
* element. For example, in an element tree like
* "<p><b><i></i></b> Text</p>", the start editing point is
* "<p><b><i>^</i></b> Text</p>" (inside <i>).
* @param {CKEDITOR.dom.element} el The element into which look for the
* editing spot.
* @param {Boolean} isMoveToEnd Whether move to the end editable position.
*/
moveToElementEditablePosition : function( el, isMoveToEnd )
{
function nextDFS( node, childOnly )
{
var next;
if ( node.type == CKEDITOR.NODE_ELEMENT
&& node.isEditable( false )
&& !CKEDITOR.dtd.$nonEditable[ node.getName() ] )
{
next = node[ isMoveToEnd ? 'getLast' : 'getFirst' ]( nonWhitespaceOrBookmarkEval );
}
if ( !childOnly && !next )
next = node[ isMoveToEnd ? 'getPrevious' : 'getNext' ]( nonWhitespaceOrBookmarkEval );
return next;
}
var found = 0;
while ( el )
{
// Stop immediately if we've found a text node.
if ( el.type == CKEDITOR.NODE_TEXT )
{
this.moveToPosition( el, isMoveToEnd ?
CKEDITOR.POSITION_AFTER_END :
CKEDITOR.POSITION_BEFORE_START );
found = 1;
break;
}
// If an editable element is found, move inside it, but not stop the searching.
if ( el.type == CKEDITOR.NODE_ELEMENT )
{
if ( el.isEditable() )
{
this.moveToPosition( el, isMoveToEnd ?
CKEDITOR.POSITION_BEFORE_END :
CKEDITOR.POSITION_AFTER_START );
found = 1;
}
}
el = nextDFS( el, found );
}
return !!found;
},
/**
*@see {CKEDITOR.dom.range.moveToElementEditablePosition}
*/
moveToElementEditStart : function( target )
{
return this.moveToElementEditablePosition( target );
},
/**
*@see {CKEDITOR.dom.range.moveToElementEditablePosition}
*/
moveToElementEditEnd : function( target )
{
return this.moveToElementEditablePosition( target, true );
},
/**
* Get the single node enclosed within the range if there's one.
*/
getEnclosedNode : function()
{
var walkerRange = this.clone();
// Optimize and analyze the range to avoid DOM destructive nature of walker. (#5780)
walkerRange.optimize();
if ( walkerRange.startContainer.type != CKEDITOR.NODE_ELEMENT
|| walkerRange.endContainer.type != CKEDITOR.NODE_ELEMENT )
return null;
var walker = new CKEDITOR.dom.walker( walkerRange ),
isNotBookmarks = CKEDITOR.dom.walker.bookmark( true ),
isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ),
evaluator = function( node )
{
return isNotWhitespaces( node ) && isNotBookmarks( node );
};
walkerRange.evaluator = evaluator;
var node = walker.next();
walker.reset();
return node && node.equals( walker.previous() ) ? node : null;
},
getTouchedStartNode : function()
{
var container = this.startContainer ;
if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT )
return container ;
return container.getChild( this.startOffset ) || container ;
},
getTouchedEndNode : function()
{
var container = this.endContainer ;
if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT )
return container ;
return container.getChild( this.endOffset - 1 ) || container ;
}
};
})();
CKEDITOR.POSITION_AFTER_START = 1; // <element>^contents</element> "^text"
CKEDITOR.POSITION_BEFORE_END = 2; // <element>contents^</element> "text^"
CKEDITOR.POSITION_BEFORE_START = 3; // ^<element>contents</element> ^"text"
CKEDITOR.POSITION_AFTER_END = 4; // <element>contents</element>^ "text"
CKEDITOR.ENLARGE_ELEMENT = 1;
CKEDITOR.ENLARGE_BLOCK_CONTENTS = 2;
CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS = 3;
// Check boundary types.
// @see CKEDITOR.dom.range.prototype.checkBoundaryOfElement
CKEDITOR.START = 1;
CKEDITOR.END = 2;
CKEDITOR.STARTEND = 3;
// Shrink range types.
// @see CKEDITOR.dom.range.prototype.shrink
CKEDITOR.SHRINK_ELEMENT = 1;
CKEDITOR.SHRINK_TEXT = 2;
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/range.js
|
JavaScript
|
gpl3
| 65,012
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.document} class, which
* represents a DOM document.
*/
/**
* Represents a DOM window.
* @constructor
* @augments CKEDITOR.dom.domObject
* @param {Object} domWindow A native DOM window.
* @example
* var document = new CKEDITOR.dom.window( window );
*/
CKEDITOR.dom.window = function( domWindow )
{
CKEDITOR.dom.domObject.call( this, domWindow );
};
CKEDITOR.dom.window.prototype = new CKEDITOR.dom.domObject();
CKEDITOR.tools.extend( CKEDITOR.dom.window.prototype,
/** @lends CKEDITOR.dom.window.prototype */
{
/**
* Moves the selection focus to this window.
* @function
* @example
* var win = new CKEDITOR.dom.window( window );
* <b>win.focus()</b>;
*/
focus : function()
{
// Webkit is sometimes failed to focus iframe, blur it first(#3835).
if ( CKEDITOR.env.webkit && this.$.parent )
this.$.parent.focus();
this.$.focus();
},
/**
* Gets the width and height of this window's viewable area.
* @function
* @returns {Object} An object with the "width" and "height"
* properties containing the size.
* @example
* var win = new CKEDITOR.dom.window( window );
* var size = <b>win.getViewPaneSize()</b>;
* alert( size.width );
* alert( size.height );
*/
getViewPaneSize : function()
{
var doc = this.$.document,
stdMode = doc.compatMode == 'CSS1Compat';
return {
width : ( stdMode ? doc.documentElement.clientWidth : doc.body.clientWidth ) || 0,
height : ( stdMode ? doc.documentElement.clientHeight : doc.body.clientHeight ) || 0
};
},
/**
* Gets the current position of the window's scroll.
* @function
* @returns {Object} An object with the "x" and "y" properties
* containing the scroll position.
* @example
* var win = new CKEDITOR.dom.window( window );
* var pos = <b>win.getScrollPosition()</b>;
* alert( pos.x );
* alert( pos.y );
*/
getScrollPosition : function()
{
var $ = this.$;
if ( 'pageXOffset' in $ )
{
return {
x : $.pageXOffset || 0,
y : $.pageYOffset || 0
};
}
else
{
var doc = $.document;
return {
x : doc.documentElement.scrollLeft || doc.body.scrollLeft || 0,
y : doc.documentElement.scrollTop || doc.body.scrollTop || 0
};
}
}
});
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/window.js
|
JavaScript
|
gpl3
| 2,567
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @class
*/
CKEDITOR.dom.nodeList = function( nativeList )
{
this.$ = nativeList;
};
CKEDITOR.dom.nodeList.prototype =
{
count : function()
{
return this.$.length;
},
getItem : function( index )
{
var $node = this.$[ index ];
return $node ? new CKEDITOR.dom.node( $node ) : null;
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/nodelist.js
|
JavaScript
|
gpl3
| 481
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.document} class, which
* represents a DOM document.
*/
/**
* Represents a DOM document.
* @constructor
* @augments CKEDITOR.dom.domObject
* @param {Object} domDocument A native DOM document.
* @example
* var document = new CKEDITOR.dom.document( document );
*/
CKEDITOR.dom.document = function( domDocument )
{
CKEDITOR.dom.domObject.call( this, domDocument );
};
// PACKAGER_RENAME( CKEDITOR.dom.document )
CKEDITOR.dom.document.prototype = new CKEDITOR.dom.domObject();
CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype,
/** @lends CKEDITOR.dom.document.prototype */
{
/**
* Appends a CSS file to the document.
* @param {String} cssFileUrl The CSS file URL.
* @example
* <b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>;
*/
appendStyleSheet : function( cssFileUrl )
{
if ( this.$.createStyleSheet )
this.$.createStyleSheet( cssFileUrl );
else
{
var link = new CKEDITOR.dom.element( 'link' );
link.setAttributes(
{
rel :'stylesheet',
type : 'text/css',
href : cssFileUrl
});
this.getHead().append( link );
}
},
appendStyleText : function( cssStyleText )
{
if ( this.$.createStyleSheet )
{
var styleSheet = this.$.createStyleSheet( "" );
styleSheet.cssText = cssStyleText ;
}
else
{
var style = new CKEDITOR.dom.element( 'style', this );
style.append( new CKEDITOR.dom.text( cssStyleText, this ) );
this.getHead().append( style );
}
},
createElement : function( name, attribsAndStyles )
{
var element = new CKEDITOR.dom.element( name, this );
if ( attribsAndStyles )
{
if ( attribsAndStyles.attributes )
element.setAttributes( attribsAndStyles.attributes );
if ( attribsAndStyles.styles )
element.setStyles( attribsAndStyles.styles );
}
return element;
},
createText : function( text )
{
return new CKEDITOR.dom.text( text, this );
},
focus : function()
{
this.getWindow().focus();
},
/**
* Gets and element based on its id.
* @param {String} elementId The element id.
* @returns {CKEDITOR.dom.element} The element instance, or null if not found.
* @example
* var element = <b>CKEDITOR.document.getById( 'myElement' )</b>;
* alert( element.getId() ); // "myElement"
*/
getById : function( elementId )
{
var $ = this.$.getElementById( elementId );
return $ ? new CKEDITOR.dom.element( $ ) : null;
},
getByAddress : function( address, normalized )
{
var $ = this.$.documentElement;
for ( var i = 0 ; $ && i < address.length ; i++ )
{
var target = address[ i ];
if ( !normalized )
{
$ = $.childNodes[ target ];
continue;
}
var currentIndex = -1;
for (var j = 0 ; j < $.childNodes.length ; j++ )
{
var candidate = $.childNodes[ j ];
if ( normalized === true &&
candidate.nodeType == 3 &&
candidate.previousSibling &&
candidate.previousSibling.nodeType == 3 )
{
continue;
}
currentIndex++;
if ( currentIndex == target )
{
$ = candidate;
break;
}
}
}
return $ ? new CKEDITOR.dom.node( $ ) : null;
},
getElementsByTag : function( tagName, namespace )
{
if ( !( CKEDITOR.env.ie && ! ( document.documentMode > 8 ) ) && namespace )
tagName = namespace + ':' + tagName;
return new CKEDITOR.dom.nodeList( this.$.getElementsByTagName( tagName ) );
},
/**
* Gets the <head> element for this document.
* @returns {CKEDITOR.dom.element} The <head> element.
* @example
* var element = <b>CKEDITOR.document.getHead()</b>;
* alert( element.getName() ); // "head"
*/
getHead : function()
{
var head = this.$.getElementsByTagName( 'head' )[0];
if ( !head )
head = this.getDocumentElement().append( new CKEDITOR.dom.element( 'head' ), true );
else
head = new CKEDITOR.dom.element( head );
return (
this.getHead = function()
{
return head;
})();
},
/**
* Gets the <body> element for this document.
* @returns {CKEDITOR.dom.element} The <body> element.
* @example
* var element = <b>CKEDITOR.document.getBody()</b>;
* alert( element.getName() ); // "body"
*/
getBody : function()
{
var body = new CKEDITOR.dom.element( this.$.body );
return (
this.getBody = function()
{
return body;
})();
},
/**
* Gets the DOM document element for this document.
* @returns {CKEDITOR.dom.element} The DOM document element.
*/
getDocumentElement : function()
{
var documentElement = new CKEDITOR.dom.element( this.$.documentElement );
return (
this.getDocumentElement = function()
{
return documentElement;
})();
},
/**
* Gets the window object that holds this document.
* @returns {CKEDITOR.dom.window} The window object.
*/
getWindow : function()
{
var win = new CKEDITOR.dom.window( this.$.parentWindow || this.$.defaultView );
return (
this.getWindow = function()
{
return win;
})();
},
/**
* Defines the document contents through document.write. Note that the
* previous document contents will be lost (cleaned).
* @since 3.5
* @param {String} html The HTML defining the document contents.
* @example
* document.write(
* '<html>' +
* '<head><title>Sample Doc</title></head>' +
* '<body>Document contents created by code</body>' +
* '</html>' );
*/
write : function( html )
{
// Don't leave any history log in IE. (#5657)
this.$.open( 'text/html', 'replace' );
// Support for custom document.domain in IE.
CKEDITOR.env.isCustomDomain() && ( this.$.domain = document.domain );
this.$.write( html );
this.$.close();
}
});
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/document.js
|
JavaScript
|
gpl3
| 6,323
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// This function is to be called under a "walker" instance scope.
function iterate( rtl, breakOnFalse )
{
var range = this.range;
// Return null if we have reached the end.
if ( this._.end )
return null;
// This is the first call. Initialize it.
if ( !this._.start )
{
this._.start = 1;
// A collapsed range must return null at first call.
if ( range.collapsed )
{
this.end();
return null;
}
// Move outside of text node edges.
range.optimize();
}
var node,
startCt = range.startContainer,
endCt = range.endContainer,
startOffset = range.startOffset,
endOffset = range.endOffset,
guard,
userGuard = this.guard,
type = this.type,
getSourceNodeFn = ( rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' );
// Create the LTR guard function, if necessary.
if ( !rtl && !this._.guardLTR )
{
// The node that stops walker from moving up.
var limitLTR = endCt.type == CKEDITOR.NODE_ELEMENT ?
endCt :
endCt.getParent();
// The node that stops the walker from going to next.
var blockerLTR = endCt.type == CKEDITOR.NODE_ELEMENT ?
endCt.getChild( endOffset ) :
endCt.getNext();
this._.guardLTR = function( node, movingOut )
{
return ( ( !movingOut || !limitLTR.equals( node ) )
&& ( !blockerLTR || !node.equals( blockerLTR ) )
&& ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) );
};
}
// Create the RTL guard function, if necessary.
if ( rtl && !this._.guardRTL )
{
// The node that stops walker from moving up.
var limitRTL = startCt.type == CKEDITOR.NODE_ELEMENT ?
startCt :
startCt.getParent();
// The node that stops the walker from going to next.
var blockerRTL = startCt.type == CKEDITOR.NODE_ELEMENT ?
startOffset ?
startCt.getChild( startOffset - 1 ) : null :
startCt.getPrevious();
this._.guardRTL = function( node, movingOut )
{
return ( ( !movingOut || !limitRTL.equals( node ) )
&& ( !blockerRTL || !node.equals( blockerRTL ) )
&& ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) );
};
}
// Define which guard function to use.
var stopGuard = rtl ? this._.guardRTL : this._.guardLTR;
// Make the user defined guard function participate in the process,
// otherwise simply use the boundary guard.
if ( userGuard )
{
guard = function( node, movingOut )
{
if ( stopGuard( node, movingOut ) === false )
return false;
return userGuard( node, movingOut );
};
}
else
guard = stopGuard;
if ( this.current )
node = this.current[ getSourceNodeFn ]( false, type, guard );
else
{
// Get the first node to be returned.
if ( rtl )
{
node = endCt;
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
if ( endOffset > 0 )
node = node.getChild( endOffset - 1 );
else
node = ( guard ( node, true ) === false ) ?
null : node.getPreviousSourceNode( true, type, guard );
}
}
else
{
node = startCt;
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
if ( ! ( node = node.getChild( startOffset ) ) )
node = ( guard ( startCt, true ) === false ) ?
null : startCt.getNextSourceNode( true, type, guard ) ;
}
}
if ( node && guard( node ) === false )
node = null;
}
while ( node && !this._.end )
{
this.current = node;
if ( !this.evaluator || this.evaluator( node ) !== false )
{
if ( !breakOnFalse )
return node;
}
else if ( breakOnFalse && this.evaluator )
return false;
node = node[ getSourceNodeFn ]( false, type, guard );
}
this.end();
return this.current = null;
}
function iterateToLast( rtl )
{
var node, last = null;
while ( ( node = iterate.call( this, rtl ) ) )
last = node;
return last;
}
CKEDITOR.dom.walker = CKEDITOR.tools.createClass(
{
/**
* Utility class to "walk" the DOM inside a range boundaries. If
* necessary, partially included nodes (text nodes) are broken to
* reflect the boundaries limits, so DOM and range changes may happen.
* Outside changes to the range may break the walker.
*
* The walker may return nodes that are not totaly included into the
* range boundaires. Let's take the following range representation,
* where the square brackets indicate the boundaries:
*
* [<p>Some <b>sample] text</b>
*
* While walking forward into the above range, the following nodes are
* returned: <p>, "Some ", <b> and "sample". Going
* backwards instead we have: "sample" and "Some ". So note that the
* walker always returns nodes when "entering" them, but not when
* "leaving" them. The guard function is instead called both when
* entering and leaving nodes.
*
* @constructor
* @param {CKEDITOR.dom.range} range The range within which walk.
*/
$ : function( range )
{
this.range = range;
/**
* A function executed for every matched node, to check whether
* it's to be considered into the walk or not. If not provided, all
* matched nodes are considered good.
* If the function returns "false" the node is ignored.
* @name CKEDITOR.dom.walker.prototype.evaluator
* @property
* @type Function
*/
// this.evaluator = null;
/**
* A function executed for every node the walk pass by to check
* whether the walk is to be finished. It's called when both
* entering and exiting nodes, as well as for the matched nodes.
* If this function returns "false", the walking ends and no more
* nodes are evaluated.
* @name CKEDITOR.dom.walker.prototype.guard
* @property
* @type Function
*/
// this.guard = null;
/** @private */
this._ = {};
},
// statics :
// {
// /* Creates a CKEDITOR.dom.walker instance to walk inside DOM boundaries set by nodes.
// * @param {CKEDITOR.dom.node} startNode The node from wich the walk
// * will start.
// * @param {CKEDITOR.dom.node} [endNode] The last node to be considered
// * in the walk. No more nodes are retrieved after touching or
// * passing it. If not provided, the walker stops at the
// * <body> closing boundary.
// * @returns {CKEDITOR.dom.walker} A DOM walker for the nodes between the
// * provided nodes.
// */
// createOnNodes : function( startNode, endNode, startInclusive, endInclusive )
// {
// var range = new CKEDITOR.dom.range();
// if ( startNode )
// range.setStartAt( startNode, startInclusive ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_END ) ;
// else
// range.setStartAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_AFTER_START ) ;
//
// if ( endNode )
// range.setEndAt( endNode, endInclusive ? CKEDITOR.POSITION_AFTER_END : CKEDITOR.POSITION_BEFORE_START ) ;
// else
// range.setEndAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_BEFORE_END ) ;
//
// return new CKEDITOR.dom.walker( range );
// }
// },
//
proto :
{
/**
* Stop walking. No more nodes are retrieved if this function gets
* called.
*/
end : function()
{
this._.end = 1;
},
/**
* Retrieves the next node (at right).
* @returns {CKEDITOR.dom.node} The next node or null if no more
* nodes are available.
*/
next : function()
{
return iterate.call( this );
},
/**
* Retrieves the previous node (at left).
* @returns {CKEDITOR.dom.node} The previous node or null if no more
* nodes are available.
*/
previous : function()
{
return iterate.call( this, 1 );
},
/**
* Check all nodes at right, executing the evaluation fuction.
* @returns {Boolean} "false" if the evaluator function returned
* "false" for any of the matched nodes. Otherwise "true".
*/
checkForward : function()
{
return iterate.call( this, 0, 1 ) !== false;
},
/**
* Check all nodes at left, executing the evaluation fuction.
* @returns {Boolean} "false" if the evaluator function returned
* "false" for any of the matched nodes. Otherwise "true".
*/
checkBackward : function()
{
return iterate.call( this, 1, 1 ) !== false;
},
/**
* Executes a full walk forward (to the right), until no more nodes
* are available, returning the last valid node.
* @returns {CKEDITOR.dom.node} The last node at the right or null
* if no valid nodes are available.
*/
lastForward : function()
{
return iterateToLast.call( this );
},
/**
* Executes a full walk backwards (to the left), until no more nodes
* are available, returning the last valid node.
* @returns {CKEDITOR.dom.node} The last node at the left or null
* if no valid nodes are available.
*/
lastBackward : function()
{
return iterateToLast.call( this, 1 );
},
reset : function()
{
delete this.current;
this._ = {};
}
}
});
/*
* Anything whose display computed style is block, list-item, table,
* table-row-group, table-header-group, table-footer-group, table-row,
* table-column-group, table-column, table-cell, table-caption, or whose node
* name is hr, br (when enterMode is br only) is a block boundary.
*/
var blockBoundaryDisplayMatch =
{
block : 1,
'list-item' : 1,
table : 1,
'table-row-group' : 1,
'table-header-group' : 1,
'table-footer-group' : 1,
'table-row' : 1,
'table-column-group' : 1,
'table-column' : 1,
'table-cell' : 1,
'table-caption' : 1
};
CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames )
{
var nodeNameMatches = customNodeNames ?
CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} ) :
CKEDITOR.dtd.$block;
// Don't consider floated formatting as block boundary, fall back to dtd check in that case. (#6297)
return this.getComputedStyle( 'float' ) == 'none' && blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ]
|| nodeNameMatches[ this.getName() ];
};
CKEDITOR.dom.walker.blockBoundary = function( customNodeNames )
{
return function( node , type )
{
return ! ( node.type == CKEDITOR.NODE_ELEMENT
&& node.isBlockBoundary( customNodeNames ) );
};
};
CKEDITOR.dom.walker.listItemBoundary = function()
{
return this.blockBoundary( { br : 1 } );
};
/**
* Whether the to-be-evaluated node is a bookmark node OR bookmark node
* inner contents.
* @param {Boolean} contentOnly Whether only test againt the text content of
* bookmark node instead of the element itself(default).
* @param {Boolean} isReject Whether should return 'false' for the bookmark
* node instead of 'true'(default).
*/
CKEDITOR.dom.walker.bookmark = function( contentOnly, isReject )
{
function isBookmarkNode( node )
{
return ( node && node.getName
&& node.getName() == 'span'
&& node.data( 'cke-bookmark' ) );
}
return function( node )
{
var isBookmark, parent;
// Is bookmark inner text node?
isBookmark = ( node && !node.getName && ( parent = node.getParent() )
&& isBookmarkNode( parent ) );
// Is bookmark node?
isBookmark = contentOnly ? isBookmark : isBookmark || isBookmarkNode( node );
return !! ( isReject ^ isBookmark );
};
};
/**
* Whether the node is a text node containing only whitespaces characters.
* @param isReject
*/
CKEDITOR.dom.walker.whitespaces = function( isReject )
{
return function( node )
{
var isWhitespace = node && ( node.type == CKEDITOR.NODE_TEXT )
&& !CKEDITOR.tools.trim( node.getText() );
return !! ( isReject ^ isWhitespace );
};
};
/**
* Whether the node is invisible in wysiwyg mode.
* @param isReject
*/
CKEDITOR.dom.walker.invisible = function( isReject )
{
var whitespace = CKEDITOR.dom.walker.whitespaces();
return function( node )
{
// Nodes that take no spaces in wysiwyg:
// 1. White-spaces but not including NBSP;
// 2. Empty inline elements, e.g. <b></b> we're checking here
// 'offsetHeight' instead of 'offsetWidth' for properly excluding
// all sorts of empty paragraph, e.g. <br />.
var isInvisible = whitespace( node ) || node.is && !node.$.offsetHeight;
return !! ( isReject ^ isInvisible );
};
};
CKEDITOR.dom.walker.nodeType = function( type, isReject )
{
return function( node )
{
return !! ( isReject ^ ( node.type == type ) );
};
};
CKEDITOR.dom.walker.bogus = function( type, isReject )
{
function nonEmpty( node )
{
return !isWhitespaces( node ) && !isBookmark( node );
}
return function( node )
{
var parent = node.getParent(),
isBogus = !CKEDITOR.env.ie ? node.is && node.is( 'br' ) :
node.getText && tailNbspRegex.test( node.getText() );
isBogus = isBogus && parent.isBlockBoundary() && !!parent.getLast( nonEmpty );
return !! ( isReject ^ isBogus );
};
};
var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/,
isWhitespaces = CKEDITOR.dom.walker.whitespaces(),
isBookmark = CKEDITOR.dom.walker.bookmark(),
toSkip = function( node )
{
return isBookmark( node )
|| isWhitespaces( node )
|| node.type == CKEDITOR.NODE_ELEMENT
&& node.getName() in CKEDITOR.dtd.$inline
&& !( node.getName() in CKEDITOR.dtd.$empty );
};
// Check if there's a filler node at the end of an element, and return it.
CKEDITOR.dom.element.prototype.getBogus = function()
{
// Bogus are not always at the end, e.g. <p><a>text<br /></a></p> (#7070).
var tail = this;
do { tail = tail.getPreviousSourceNode(); }
while ( toSkip( tail ) )
if ( tail && ( !CKEDITOR.env.ie ? tail.is && tail.is( 'br' )
: tail.getText && tailNbspRegex.test( tail.getText() ) ) )
{
return tail;
}
return false;
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/walker.js
|
JavaScript
|
gpl3
| 14,505
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.element} class, which
* represents a DOM element.
*/
/**
* Represents a DOM element.
* @constructor
* @augments CKEDITOR.dom.node
* @param {Object|String} element A native DOM element or the element name for
* new elements.
* @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain
* the element in case of element creation.
* @example
* // Create a new <span> element.
* var element = new CKEDITOR.dom.element( 'span' );
* @example
* // Create an element based on a native DOM element.
* var element = new CKEDITOR.dom.element( document.getElementById( 'myId' ) );
*/
CKEDITOR.dom.element = function( element, ownerDocument )
{
if ( typeof element == 'string' )
element = ( ownerDocument ? ownerDocument.$ : document ).createElement( element );
// Call the base constructor (we must not call CKEDITOR.dom.node).
CKEDITOR.dom.domObject.call( this, element );
};
// PACKAGER_RENAME( CKEDITOR.dom.element )
/**
* The the {@link CKEDITOR.dom.element} representing and element. If the
* element is a native DOM element, it will be transformed into a valid
* CKEDITOR.dom.element object.
* @returns {CKEDITOR.dom.element} The transformed element.
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( element == <b>CKEDITOR.dom.element.get( element )</b> ); "true"
* @example
* var element = document.getElementById( 'myElement' );
* alert( <b>CKEDITOR.dom.element.get( element )</b>.getName() ); e.g. "p"
*/
CKEDITOR.dom.element.get = function( element )
{
return element && ( element.$ ? element : new CKEDITOR.dom.element( element ) );
};
CKEDITOR.dom.element.prototype = new CKEDITOR.dom.node();
/**
* Creates an instance of the {@link CKEDITOR.dom.element} class based on the
* HTML representation of an element.
* @param {String} html The element HTML. It should define only one element in
* the "root" level. The "root" element can have child nodes, but not
* siblings.
* @returns {CKEDITOR.dom.element} The element instance.
* @example
* var element = <b>CKEDITOR.dom.element.createFromHtml( '<strong class="anyclass">My element</strong>' )</b>;
* alert( element.getName() ); // "strong"
*/
CKEDITOR.dom.element.createFromHtml = function( html, ownerDocument )
{
var temp = new CKEDITOR.dom.element( 'div', ownerDocument );
temp.setHtml( html );
// When returning the node, remove it from its parent to detach it.
return temp.getFirst().remove();
};
CKEDITOR.dom.element.setMarker = function( database, element, name, value )
{
var id = element.getCustomData( 'list_marker_id' ) ||
( element.setCustomData( 'list_marker_id', CKEDITOR.tools.getNextNumber() ).getCustomData( 'list_marker_id' ) ),
markerNames = element.getCustomData( 'list_marker_names' ) ||
( element.setCustomData( 'list_marker_names', {} ).getCustomData( 'list_marker_names' ) );
database[id] = element;
markerNames[name] = 1;
return element.setCustomData( name, value );
};
CKEDITOR.dom.element.clearAllMarkers = function( database )
{
for ( var i in database )
CKEDITOR.dom.element.clearMarkers( database, database[i], 1 );
};
CKEDITOR.dom.element.clearMarkers = function( database, element, removeFromDatabase )
{
var names = element.getCustomData( 'list_marker_names' ),
id = element.getCustomData( 'list_marker_id' );
for ( var i in names )
element.removeCustomData( i );
element.removeCustomData( 'list_marker_names' );
if ( removeFromDatabase )
{
element.removeCustomData( 'list_marker_id' );
delete database[id];
}
};
CKEDITOR.tools.extend( CKEDITOR.dom.element.prototype,
/** @lends CKEDITOR.dom.element.prototype */
{
/**
* The node type. This is a constant value set to
* {@link CKEDITOR.NODE_ELEMENT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_ELEMENT,
/**
* Adds a CSS class to the element. It appends the class to the
* already existing names.
* @param {String} className The name of the class to be added.
* @example
* var element = new CKEDITOR.dom.element( 'div' );
* element.addClass( 'classA' ); // <div class="classA">
* element.addClass( 'classB' ); // <div class="classA classB">
* element.addClass( 'classA' ); // <div class="classA classB">
*/
addClass : function( className )
{
var c = this.$.className;
if ( c )
{
var regex = new RegExp( '(?:^|\\s)' + className + '(?:\\s|$)', '' );
if ( !regex.test( c ) )
c += ' ' + className;
}
this.$.className = c || className;
},
/**
* Removes a CSS class name from the elements classes. Other classes
* remain untouched.
* @param {String} className The name of the class to remove.
* @example
* var element = new CKEDITOR.dom.element( 'div' );
* element.addClass( 'classA' ); // <div class="classA">
* element.addClass( 'classB' ); // <div class="classA classB">
* element.removeClass( 'classA' ); // <div class="classB">
* element.removeClass( 'classB' ); // <div>
*/
removeClass : function( className )
{
var c = this.getAttribute( 'class' );
if ( c )
{
var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', 'i' );
if ( regex.test( c ) )
{
c = c.replace( regex, '' ).replace( /^\s+/, '' );
if ( c )
this.setAttribute( 'class', c );
else
this.removeAttribute( 'class' );
}
}
},
hasClass : function( className )
{
var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', '' );
return regex.test( this.getAttribute('class') );
},
/**
* Append a node as a child of this element.
* @param {CKEDITOR.dom.node|String} node The node or element name to be
* appended.
* @param {Boolean} [toStart] Indicates that the element is to be
* appended at the start.
* @returns {CKEDITOR.dom.node} The appended node.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
*
* var strong = new CKEDITOR.dom.element( 'strong' );
* <b>p.append( strong );</b>
*
* var em = <b>p.append( 'em' );</b>
*
* // result: "<p><strong></strong><em></em></p>"
*/
append : function( node, toStart )
{
if ( typeof node == 'string' )
node = this.getDocument().createElement( node );
if ( toStart )
this.$.insertBefore( node.$, this.$.firstChild );
else
this.$.appendChild( node.$ );
return node;
},
appendHtml : function( html )
{
if ( !this.$.childNodes.length )
this.setHtml( html );
else
{
var temp = new CKEDITOR.dom.element( 'div', this.getDocument() );
temp.setHtml( html );
temp.moveChildren( this );
}
},
/**
* Append text to this element.
* @param {String} text The text to be appended.
* @returns {CKEDITOR.dom.node} The appended node.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
* p.appendText( 'This is' );
* p.appendText( ' some text' );
*
* // result: "<p>This is some text</p>"
*/
appendText : function( text )
{
if ( this.$.text != undefined )
this.$.text += text;
else
this.append( new CKEDITOR.dom.text( text ) );
},
appendBogus : function()
{
var lastChild = this.getLast() ;
// Ignore empty/spaces text.
while ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.rtrim( lastChild.getText() ) )
lastChild = lastChild.getPrevious();
if ( !lastChild || !lastChild.is || !lastChild.is( 'br' ) )
{
var bogus = CKEDITOR.env.opera ?
this.getDocument().createText('') :
this.getDocument().createElement( 'br' );
CKEDITOR.env.gecko && bogus.setAttribute( 'type', '_moz' );
this.append( bogus );
}
},
/**
* Breaks one of the ancestor element in the element position, moving
* this element between the broken parts.
* @param {CKEDITOR.dom.element} parent The anscestor element to get broken.
* @example
* // Before breaking:
* // <b>This <i>is some<span /> sample</i> test text</b>
* // If "element" is <span /> and "parent" is <i>:
* // <b>This <i>is some</i><span /><i> sample</i> test text</b>
* element.breakParent( parent );
* @example
* // Before breaking:
* // <b>This <i>is some<span /> sample</i> test text</b>
* // If "element" is <span /> and "parent" is <b>:
* // <b>This <i>is some</i></b><span /><b><i> sample</i> test text</b>
* element.breakParent( parent );
*/
breakParent : function( parent )
{
var range = new CKEDITOR.dom.range( this.getDocument() );
// We'll be extracting part of this element, so let's use our
// range to get the correct piece.
range.setStartAfter( this );
range.setEndAfter( parent );
// Extract it.
var docFrag = range.extractContents();
// Move the element outside the broken element.
range.insertNode( this.remove() );
// Re-insert the extracted piece after the element.
docFrag.insertAfterNode( this );
},
contains :
CKEDITOR.env.ie || CKEDITOR.env.webkit ?
function( node )
{
var $ = this.$;
return node.type != CKEDITOR.NODE_ELEMENT ?
$.contains( node.getParent().$ ) :
$ != node.$ && $.contains( node.$ );
}
:
function( node )
{
return !!( this.$.compareDocumentPosition( node.$ ) & 16 );
},
/**
* Moves the selection focus to this element.
* @function
* @param {Boolean} defer Whether to asynchronously defer the
* execution by 100 ms.
* @example
* var element = CKEDITOR.document.getById( 'myTextarea' );
* <b>element.focus()</b>;
*/
focus : ( function()
{
function exec()
{
// IE throws error if the element is not visible.
try
{
this.$.focus();
}
catch (e)
{}
}
return function( defer )
{
if ( defer )
CKEDITOR.tools.setTimeout( exec, 100, this );
else
exec.call( this );
};
})(),
/**
* Gets the inner HTML of this element.
* @returns {String} The inner HTML of this element.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b></div>' );
* alert( <b>p.getHtml()</b> ); // "<b>Example</b>"
*/
getHtml : function()
{
var retval = this.$.innerHTML;
// Strip <?xml:namespace> tags in IE. (#3341).
return CKEDITOR.env.ie ? retval.replace( /<\?[^>]*>/g, '' ) : retval;
},
getOuterHtml : function()
{
if ( this.$.outerHTML )
{
// IE includes the <?xml:namespace> tag in the outerHTML of
// namespaced element. So, we must strip it here. (#3341)
return this.$.outerHTML.replace( /<\?[^>]*>/, '' );
}
var tmpDiv = this.$.ownerDocument.createElement( 'div' );
tmpDiv.appendChild( this.$.cloneNode( true ) );
return tmpDiv.innerHTML;
},
/**
* Sets the inner HTML of this element.
* @param {String} html The HTML to be set for this element.
* @returns {String} The inserted HTML.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
* <b>p.setHtml( '<b>Inner</b> HTML' );</b>
*
* // result: "<p><b>Inner</b> HTML</p>"
*/
setHtml : function( html )
{
return ( this.$.innerHTML = html );
},
/**
* Sets the element contents as plain text.
* @param {String} text The text to be set.
* @returns {String} The inserted text.
* @example
* var element = new CKEDITOR.dom.element( 'div' );
* element.setText( 'A > B & C < D' );
* alert( element.innerHTML ); // "A &gt; B &amp; C &lt; D"
*/
setText : function( text )
{
CKEDITOR.dom.element.prototype.setText = ( this.$.innerText != undefined ) ?
function ( text )
{
return this.$.innerText = text;
} :
function ( text )
{
return this.$.textContent = text;
};
return this.setText( text );
},
/**
* Gets the value of an element attribute.
* @function
* @param {String} name The attribute name.
* @returns {String} The attribute value or null if not defined.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<input type="text" />' );
* alert( <b>element.getAttribute( 'type' )</b> ); // "text"
*/
getAttribute : (function()
{
var standard = function( name )
{
return this.$.getAttribute( name, 2 );
};
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) )
{
return function( name )
{
switch ( name )
{
case 'class':
name = 'className';
break;
case 'http-equiv':
name = 'httpEquiv';
break;
case 'name':
return this.$.name;
case 'tabindex':
var tabIndex = standard.call( this, name );
// IE returns tabIndex=0 by default for all
// elements. For those elements,
// getAtrribute( 'tabindex', 2 ) returns 32768
// instead. So, we must make this check to give a
// uniform result among all browsers.
if ( tabIndex !== 0 && this.$.tabIndex === 0 )
tabIndex = null;
return tabIndex;
break;
case 'checked':
{
var attr = this.$.attributes.getNamedItem( name ),
attrValue = attr.specified ? attr.nodeValue // For value given by parser.
: this.$.checked; // For value created via DOM interface.
return attrValue ? 'checked' : null;
}
case 'hspace':
case 'value':
return this.$[ name ];
case 'style':
// IE does not return inline styles via getAttribute(). See #2947.
return this.$.style.cssText;
}
return standard.call( this, name );
};
}
else
return standard;
})(),
getChildren : function()
{
return new CKEDITOR.dom.nodeList( this.$.childNodes );
},
/**
* Gets the current computed value of one of the element CSS style
* properties.
* @function
* @param {String} propertyName The style property name.
* @returns {String} The property value.
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( <b>element.getComputedStyle( 'display' )</b> ); // "inline"
*/
getComputedStyle :
CKEDITOR.env.ie ?
function( propertyName )
{
return this.$.currentStyle[ CKEDITOR.tools.cssStyleToDomStyle( propertyName ) ];
}
:
function( propertyName )
{
return this.getWindow().$.getComputedStyle( this.$, '' ).getPropertyValue( propertyName );
},
/**
* Gets the DTD entries for this element.
* @returns {Object} An object containing the list of elements accepted
* by this element.
*/
getDtd : function()
{
var dtd = CKEDITOR.dtd[ this.getName() ];
this.getDtd = function()
{
return dtd;
};
return dtd;
},
getElementsByTag : CKEDITOR.dom.document.prototype.getElementsByTag,
/**
* Gets the computed tabindex for this element.
* @function
* @returns {Number} The tabindex value.
* @example
* var element = CKEDITOR.document.getById( 'myDiv' );
* alert( <b>element.getTabIndex()</b> ); // e.g. "-1"
*/
getTabIndex :
CKEDITOR.env.ie ?
function()
{
var tabIndex = this.$.tabIndex;
// IE returns tabIndex=0 by default for all elements. In
// those cases we must check that the element really has
// the tabindex attribute set to zero, or it is one of
// those element that should have zero by default.
if ( tabIndex === 0 && !CKEDITOR.dtd.$tabIndex[ this.getName() ] && parseInt( this.getAttribute( 'tabindex' ), 10 ) !== 0 )
tabIndex = -1;
return tabIndex;
}
: CKEDITOR.env.webkit ?
function()
{
var tabIndex = this.$.tabIndex;
// Safari returns "undefined" for elements that should not
// have tabindex (like a div). So, we must try to get it
// from the attribute.
// https://bugs.webkit.org/show_bug.cgi?id=20596
if ( tabIndex == undefined )
{
tabIndex = parseInt( this.getAttribute( 'tabindex' ), 10 );
// If the element don't have the tabindex attribute,
// then we should return -1.
if ( isNaN( tabIndex ) )
tabIndex = -1;
}
return tabIndex;
}
:
function()
{
return this.$.tabIndex;
},
/**
* Gets the text value of this element.
*
* Only in IE (which uses innerText), <br> will cause linebreaks,
* and sucessive whitespaces (including line breaks) will be reduced to
* a single space. This behavior is ok for us, for now. It may change
* in the future.
* @returns {String} The text value.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div>Sample <i>text</i>.</div>' );
* alert( <b>element.getText()</b> ); // "Sample text."
*/
getText : function()
{
return this.$.textContent || this.$.innerText || '';
},
/**
* Gets the window object that contains this element.
* @returns {CKEDITOR.dom.window} The window object.
* @example
*/
getWindow : function()
{
return this.getDocument().getWindow();
},
/**
* Gets the value of the "id" attribute of this element.
* @returns {String} The element id, or null if not available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<p id="myId"></p>' );
* alert( <b>element.getId()</b> ); // "myId"
*/
getId : function()
{
return this.$.id || null;
},
/**
* Gets the value of the "name" attribute of this element.
* @returns {String} The element name, or null if not available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<input name="myName"></input>' );
* alert( <b>element.getNameAtt()</b> ); // "myName"
*/
getNameAtt : function()
{
return this.$.name || null;
},
/**
* Gets the element name (tag name). The returned name is guaranteed to
* be always full lowercased.
* @returns {String} The element name.
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( <b>element.getName()</b> ); // "span"
*/
getName : function()
{
// Cache the lowercased name inside a closure.
var nodeName = this.$.nodeName.toLowerCase();
if ( CKEDITOR.env.ie && ! ( document.documentMode > 8 ) )
{
var scopeName = this.$.scopeName;
if ( scopeName != 'HTML' )
nodeName = scopeName.toLowerCase() + ':' + nodeName;
}
return (
this.getName = function()
{
return nodeName;
})();
},
/**
* Gets the value set to this element. This value is usually available
* for form field elements.
* @returns {String} The element value.
*/
getValue : function()
{
return this.$.value;
},
/**
* Gets the first child node of this element.
* @param {Function} evaluator Filtering the result node.
* @returns {CKEDITOR.dom.node} The first child node or null if not
* available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b></div>' );
* var first = <b>element.getFirst()</b>;
* alert( first.getName() ); // "b"
*/
getFirst : function( evaluator )
{
var first = this.$.firstChild,
retval = first && new CKEDITOR.dom.node( first );
if ( retval && evaluator && !evaluator( retval ) )
retval = retval.getNext( evaluator );
return retval;
},
/**
* @param {Function} evaluator Filtering the result node.
*/
getLast : function( evaluator )
{
var last = this.$.lastChild,
retval = last && new CKEDITOR.dom.node( last );
if ( retval && evaluator && !evaluator( retval ) )
retval = retval.getPrevious( evaluator );
return retval;
},
getStyle : function( name )
{
return this.$.style[ CKEDITOR.tools.cssStyleToDomStyle( name ) ];
},
/**
* Checks if the element name matches one or more names.
* @param {String} name[,name[,...]] One or more names to be checked.
* @returns {Boolean} true if the element name matches any of the names.
* @example
* var element = new CKEDITOR.element( 'span' );
* alert( <b>element.is( 'span' )</b> ); "true"
* alert( <b>element.is( 'p', 'span' )</b> ); "true"
* alert( <b>element.is( 'p' )</b> ); "false"
* alert( <b>element.is( 'p', 'div' )</b> ); "false"
*/
is : function()
{
var name = this.getName();
for ( var i = 0 ; i < arguments.length ; i++ )
{
if ( arguments[ i ] == name )
return true;
}
return false;
},
/**
* Decide whether one element is able to receive cursor.
* @param {Boolean} [textCursor=true] Only consider element that could receive text child.
*/
isEditable : function( textCursor )
{
var name = this.getName();
if ( this.isReadOnly()
|| this.getComputedStyle( 'display' ) == 'none'
|| this.getComputedStyle( 'visibility' ) == 'hidden'
|| this.is( 'a' ) && this.data( 'cke-saved-name' ) && !this.getChildCount()
|| CKEDITOR.dtd.$nonEditable[ name ] )
{
return false;
}
if ( textCursor !== false )
{
// Get the element DTD (defaults to span for unknown elements).
var dtd = CKEDITOR.dtd[ name ] || CKEDITOR.dtd.span;
// In the DTD # == text node.
return ( dtd && dtd[ '#'] );
}
return true;
},
isIdentical : function( otherElement )
{
if ( this.getName() != otherElement.getName() )
return false;
var thisAttribs = this.$.attributes,
otherAttribs = otherElement.$.attributes;
var thisLength = thisAttribs.length,
otherLength = otherAttribs.length;
for ( var i = 0 ; i < thisLength ; i++ )
{
var attribute = thisAttribs[ i ];
if ( attribute.nodeName == '_moz_dirty' )
continue;
if ( ( !CKEDITOR.env.ie || ( attribute.specified && attribute.nodeName != 'data-cke-expando' ) ) && attribute.nodeValue != otherElement.getAttribute( attribute.nodeName ) )
return false;
}
// For IE, we have to for both elements, because it's difficult to
// know how the atttibutes collection is organized in its DOM.
if ( CKEDITOR.env.ie )
{
for ( i = 0 ; i < otherLength ; i++ )
{
attribute = otherAttribs[ i ];
if ( attribute.specified && attribute.nodeName != 'data-cke-expando'
&& attribute.nodeValue != this.getAttribute( attribute.nodeName ) )
return false;
}
}
return true;
},
/**
* Checks if this element is visible. May not work if the element is
* child of an element with visibility set to "hidden", but works well
* on the great majority of cases.
* @return {Boolean} True if the element is visible.
*/
isVisible : function()
{
var isVisible = ( this.$.offsetHeight || this.$.offsetWidth ) && this.getComputedStyle( 'visibility' ) != 'hidden',
elementWindow,
elementWindowFrame;
// Webkit and Opera report non-zero offsetHeight despite that
// element is inside an invisible iframe. (#4542)
if ( isVisible && ( CKEDITOR.env.webkit || CKEDITOR.env.opera ) )
{
elementWindow = this.getWindow();
if ( !elementWindow.equals( CKEDITOR.document.getWindow() )
&& ( elementWindowFrame = elementWindow.$.frameElement ) )
{
isVisible = new CKEDITOR.dom.element( elementWindowFrame ).isVisible();
}
}
return !!isVisible;
},
/**
* Whether it's an empty inline elements which has no visual impact when removed.
*/
isEmptyInlineRemoveable : function()
{
if ( !CKEDITOR.dtd.$removeEmpty[ this.getName() ] )
return false;
var children = this.getChildren();
for ( var i = 0, count = children.count(); i < count; i++ )
{
var child = children.getItem( i );
if ( child.type == CKEDITOR.NODE_ELEMENT && child.data( 'cke-bookmark' ) )
continue;
if ( child.type == CKEDITOR.NODE_ELEMENT && !child.isEmptyInlineRemoveable()
|| child.type == CKEDITOR.NODE_TEXT && CKEDITOR.tools.trim( child.getText() ) )
{
return false;
}
}
return true;
},
/**
* Checks if the element has any defined attributes.
* @function
* @returns {Boolean} True if the element has attributes.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div title="Test">Example</div>' );
* alert( <b>element.hasAttributes()</b> ); // "true"
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div>Example</div>' );
* alert( <b>element.hasAttributes()</b> ); // "false"
*/
hasAttributes :
CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ?
function()
{
var attributes = this.$.attributes;
for ( var i = 0 ; i < attributes.length ; i++ )
{
var attribute = attributes[i];
switch ( attribute.nodeName )
{
case 'class' :
// IE has a strange bug. If calling removeAttribute('className'),
// the attributes collection will still contain the "class"
// attribute, which will be marked as "specified", even if the
// outerHTML of the element is not displaying the class attribute.
// Note : I was not able to reproduce it outside the editor,
// but I've faced it while working on the TC of #1391.
if ( this.getAttribute( 'class' ) )
return true;
// Attributes to be ignored.
case 'data-cke-expando' :
continue;
/*jsl:fallthru*/
default :
if ( attribute.specified )
return true;
}
}
return false;
}
:
function()
{
var attrs = this.$.attributes,
attrsNum = attrs.length;
// The _moz_dirty attribute might get into the element after pasting (#5455)
var execludeAttrs = { 'data-cke-expando' : 1, _moz_dirty : 1 };
return attrsNum > 0 &&
( attrsNum > 2 ||
!execludeAttrs[ attrs[0].nodeName ] ||
( attrsNum == 2 && !execludeAttrs[ attrs[1].nodeName ] ) );
},
/**
* Checks if the specified attribute is defined for this element.
* @returns {Boolean} True if the specified attribute is defined.
* @param {String} name The attribute name.
* @example
*/
hasAttribute : (function()
{
function standard( name )
{
var $attr = this.$.attributes.getNamedItem( name );
return !!( $attr && $attr.specified );
}
return ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) ?
function( name )
{
// On IE < 8 the name attribute cannot be retrieved
// right after the element creation and setting the
// name with setAttribute.
if ( name == 'name' )
return !!this.$.name;
return standard.call( this, name );
}
:
standard;
})(),
/**
* Hides this element (display:none).
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.hide()</b>;
*/
hide : function()
{
this.setStyle( 'display', 'none' );
},
moveChildren : function( target, toStart )
{
var $ = this.$;
target = target.$;
if ( $ == target )
return;
var child;
if ( toStart )
{
while ( ( child = $.lastChild ) )
target.insertBefore( $.removeChild( child ), target.firstChild );
}
else
{
while ( ( child = $.firstChild ) )
target.appendChild( $.removeChild( child ) );
}
},
/**
* Merges sibling elements that are identical to this one.<br>
* <br>
* Identical child elements are also merged. For example:<br>
* <b><i></i></b><b><i></i></b> => <b><i></i></b>
* @function
* @param {Boolean} [inlineOnly] Allow only inline elements to be merged. Defaults to "true".
*/
mergeSiblings : ( function()
{
function mergeElements( element, sibling, isNext )
{
if ( sibling && sibling.type == CKEDITOR.NODE_ELEMENT )
{
// Jumping over bookmark nodes and empty inline elements, e.g. <b><i></i></b>,
// queuing them to be moved later. (#5567)
var pendingNodes = [];
while ( sibling.data( 'cke-bookmark' )
|| sibling.isEmptyInlineRemoveable() )
{
pendingNodes.push( sibling );
sibling = isNext ? sibling.getNext() : sibling.getPrevious();
if ( !sibling || sibling.type != CKEDITOR.NODE_ELEMENT )
return;
}
if ( element.isIdentical( sibling ) )
{
// Save the last child to be checked too, to merge things like
// <b><i></i></b><b><i></i></b> => <b><i></i></b>
var innerSibling = isNext ? element.getLast() : element.getFirst();
// Move pending nodes first into the target element.
while( pendingNodes.length )
pendingNodes.shift().move( element, !isNext );
sibling.moveChildren( element, !isNext );
sibling.remove();
// Now check the last inner child (see two comments above).
if ( innerSibling && innerSibling.type == CKEDITOR.NODE_ELEMENT )
innerSibling.mergeSiblings();
}
}
}
return function( inlineOnly )
{
if ( ! ( inlineOnly === false
|| CKEDITOR.dtd.$removeEmpty[ this.getName() ]
|| this.is( 'a' ) ) ) // Merge empty links and anchors also. (#5567)
{
return;
}
mergeElements( this, this.getNext(), true );
mergeElements( this, this.getPrevious() );
};
} )(),
/**
* Shows this element (display it).
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.show()</b>;
*/
show : function()
{
this.setStyles(
{
display : '',
visibility : ''
});
},
/**
* Sets the value of an element attribute.
* @param {String} name The name of the attribute.
* @param {String} value The value to be set to the attribute.
* @function
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setAttribute( 'class', 'myClass' )</b>;
* <b>element.setAttribute( 'title', 'This is an example' )</b>;
*/
setAttribute : (function()
{
var standard = function( name, value )
{
this.$.setAttribute( name, value );
return this;
};
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) )
{
return function( name, value )
{
if ( name == 'class' )
this.$.className = value;
else if ( name == 'style' )
this.$.style.cssText = value;
else if ( name == 'tabindex' ) // Case sensitive.
this.$.tabIndex = value;
else if ( name == 'checked' )
this.$.checked = value;
else
standard.apply( this, arguments );
return this;
};
}
else if ( CKEDITOR.env.ie8Compat && CKEDITOR.env.secure )
{
return function( name, value )
{
// IE8 throws error when setting src attribute to non-ssl value. (#7847)
if ( name == 'src' && value.match( /^http:\/\// ) )
try { standard.apply( this, arguments ); } catch( e ){}
else
standard.apply( this, arguments );
return this;
};
}
else
return standard;
})(),
/**
* Sets the value of several element attributes.
* @param {Object} attributesPairs An object containing the names and
* values of the attributes.
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setAttributes({
* 'class' : 'myClass',
* 'title' : 'This is an example' })</b>;
*/
setAttributes : function( attributesPairs )
{
for ( var name in attributesPairs )
this.setAttribute( name, attributesPairs[ name ] );
return this;
},
/**
* Sets the element value. This function is usually used with form
* field element.
* @param {String} value The element value.
* @returns {CKEDITOR.dom.element} This element instance.
*/
setValue : function( value )
{
this.$.value = value;
return this;
},
/**
* Removes an attribute from the element.
* @param {String} name The attribute name.
* @function
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div class="classA"></div>' );
* element.removeAttribute( 'class' );
*/
removeAttribute : (function()
{
var standard = function( name )
{
this.$.removeAttribute( name );
};
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) )
{
return function( name )
{
if ( name == 'class' )
name = 'className';
else if ( name == 'tabindex' )
name = 'tabIndex';
standard.call( this, name );
};
}
else
return standard;
})(),
removeAttributes : function ( attributes )
{
if ( CKEDITOR.tools.isArray( attributes ) )
{
for ( var i = 0 ; i < attributes.length ; i++ )
this.removeAttribute( attributes[ i ] );
}
else
{
for ( var attr in attributes )
attributes.hasOwnProperty( attr ) && this.removeAttribute( attr );
}
},
/**
* Removes a style from the element.
* @param {String} name The style name.
* @function
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div style="display:none"></div>' );
* element.removeStyle( 'display' );
*/
removeStyle : function( name )
{
this.setStyle( name, '' );
if ( this.$.style.removeAttribute )
this.$.style.removeAttribute( CKEDITOR.tools.cssStyleToDomStyle( name ) );
if ( !this.$.style.cssText )
this.removeAttribute( 'style' );
},
/**
* Sets the value of an element style.
* @param {String} name The name of the style. The CSS naming notation
* must be used (e.g. "background-color").
* @param {String} value The value to be set to the style.
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setStyle( 'background-color', '#ff0000' )</b>;
* <b>element.setStyle( 'margin-top', '10px' )</b>;
* <b>element.setStyle( 'float', 'right' )</b>;
*/
setStyle : function( name, value )
{
this.$.style[ CKEDITOR.tools.cssStyleToDomStyle( name ) ] = value;
return this;
},
/**
* Sets the value of several element styles.
* @param {Object} stylesPairs An object containing the names and
* values of the styles.
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setStyles({
* 'position' : 'absolute',
* 'float' : 'right' })</b>;
*/
setStyles : function( stylesPairs )
{
for ( var name in stylesPairs )
this.setStyle( name, stylesPairs[ name ] );
return this;
},
/**
* Sets the opacity of an element.
* @param {Number} opacity A number within the range [0.0, 1.0].
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setOpacity( 0.75 )</b>;
*/
setOpacity : function( opacity )
{
if ( CKEDITOR.env.ie )
{
opacity = Math.round( opacity * 100 );
this.setStyle( 'filter', opacity >= 100 ? '' : 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + opacity + ')' );
}
else
this.setStyle( 'opacity', opacity );
},
/**
* Makes the element and its children unselectable.
* @function
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* element.unselectable();
*/
unselectable :
CKEDITOR.env.gecko ?
function()
{
this.$.style.MozUserSelect = 'none';
this.on( 'dragstart', function( evt ) { evt.data.preventDefault(); } );
}
: CKEDITOR.env.webkit ?
function()
{
this.$.style.KhtmlUserSelect = 'none';
this.on( 'dragstart', function( evt ) { evt.data.preventDefault(); } );
}
:
function()
{
if ( CKEDITOR.env.ie || CKEDITOR.env.opera )
{
var element = this.$,
elements = element.getElementsByTagName("*"),
e,
i = 0;
element.unselectable = 'on';
while ( ( e = elements[ i++ ] ) )
{
switch ( e.tagName.toLowerCase() )
{
case 'iframe' :
case 'textarea' :
case 'input' :
case 'select' :
/* Ignore the above tags */
break;
default :
e.unselectable = 'on';
}
}
}
},
getPositionedAncestor : function()
{
var current = this;
while ( current.getName() != 'html' )
{
if ( current.getComputedStyle( 'position' ) != 'static' )
return current;
current = current.getParent();
}
return null;
},
getDocumentPosition : function( refDocument )
{
var x = 0, y = 0,
doc = this.getDocument(),
body = doc.getBody(),
quirks = doc.$.compatMode == 'BackCompat';
if ( document.documentElement[ "getBoundingClientRect" ] )
{
var box = this.$.getBoundingClientRect(),
$doc = doc.$,
$docElem = $doc.documentElement;
var clientTop = $docElem.clientTop || body.$.clientTop || 0,
clientLeft = $docElem.clientLeft || body.$.clientLeft || 0,
needAdjustScrollAndBorders = true;
/*
* #3804: getBoundingClientRect() works differently on IE and non-IE
* browsers, regarding scroll positions.
*
* On IE, the top position of the <html> element is always 0, no matter
* how much you scrolled down.
*
* On other browsers, the top position of the <html> element is negative
* scrollTop.
*/
if ( CKEDITOR.env.ie )
{
var inDocElem = doc.getDocumentElement().contains( this ),
inBody = doc.getBody().contains( this );
needAdjustScrollAndBorders = ( quirks && inBody ) || ( !quirks && inDocElem );
}
if ( needAdjustScrollAndBorders )
{
x = box.left + ( !quirks && $docElem.scrollLeft || body.$.scrollLeft );
x -= clientLeft;
y = box.top + ( !quirks && $docElem.scrollTop || body.$.scrollTop );
y -= clientTop;
}
}
else
{
var current = this, previous = null, offsetParent;
while ( current && !( current.getName() == 'body' || current.getName() == 'html' ) )
{
x += current.$.offsetLeft - current.$.scrollLeft;
y += current.$.offsetTop - current.$.scrollTop;
// Opera includes clientTop|Left into offsetTop|Left.
if ( !current.equals( this ) )
{
x += ( current.$.clientLeft || 0 );
y += ( current.$.clientTop || 0 );
}
var scrollElement = previous;
while ( scrollElement && !scrollElement.equals( current ) )
{
x -= scrollElement.$.scrollLeft;
y -= scrollElement.$.scrollTop;
scrollElement = scrollElement.getParent();
}
previous = current;
current = ( offsetParent = current.$.offsetParent ) ?
new CKEDITOR.dom.element( offsetParent ) : null;
}
}
if ( refDocument )
{
var currentWindow = this.getWindow(),
refWindow = refDocument.getWindow();
if ( !currentWindow.equals( refWindow ) && currentWindow.$.frameElement )
{
var iframePosition = ( new CKEDITOR.dom.element( currentWindow.$.frameElement ) ).getDocumentPosition( refDocument );
x += iframePosition.x;
y += iframePosition.y;
}
}
if ( !document.documentElement[ "getBoundingClientRect" ] )
{
// In Firefox, we'll endup one pixel before the element positions,
// so we must add it here.
if ( CKEDITOR.env.gecko && !quirks )
{
x += this.$.clientLeft ? 1 : 0;
y += this.$.clientTop ? 1 : 0;
}
}
return { x : x, y : y };
},
/**
* Make any page element visible inside the browser viewport.
* @param {Boolean} [alignToTop]
*/
scrollIntoView : function( alignToTop )
{
var parent = this.getParent();
if ( !parent ) return;
// Scroll the element into parent container from the inner out.
do
{
// Check ancestors that overflows.
var overflowed =
parent.$.clientWidth && parent.$.clientWidth < parent.$.scrollWidth
|| parent.$.clientHeight && parent.$.clientHeight < parent.$.scrollHeight;
if ( overflowed )
this.scrollIntoParent( parent, alignToTop, 1 );
// Walk across the frame.
if ( parent.is( 'html' ) )
{
var win = parent.getWindow();
// Avoid security error.
try
{
var iframe = win.$.frameElement;
iframe && ( parent = new CKEDITOR.dom.element( iframe ) );
}
catch(er){}
}
}
while ( ( parent = parent.getParent() ) );
},
/**
* Make any page element visible inside one of the ancestors by scrolling the parent.
* @param {CKEDITOR.dom.element|CKEDITOR.dom.window} parent The container to scroll into.
* @param {Boolean} [alignToTop] Align the element's top side with the container's
* when <code>true</code> is specified; align the bottom with viewport bottom when
* <code>false</code> is specified. Otherwise scroll on either side with the minimum
* amount to show the element.
* @param {Boolean} [hscroll] Whether horizontal overflow should be considered.
*/
scrollIntoParent : function( parent, alignToTop, hscroll )
{
!parent && ( parent = this.getWindow() );
var doc = parent.getDocument();
var isQuirks = doc.$.compatMode == 'BackCompat';
// On window <html> is scrolled while quirks scrolls <body>.
if ( parent instanceof CKEDITOR.dom.window )
parent = isQuirks ? doc.getBody() : doc.getDocumentElement();
// Scroll the parent by the specified amount.
function scrollBy( x, y )
{
// Webkit doesn't support "scrollTop/scrollLeft"
// on documentElement/body element.
if ( /body|html/.test( parent.getName() ) )
parent.getWindow().$.scrollBy( x, y );
else
{
parent.$[ 'scrollLeft' ] += x;
parent.$[ 'scrollTop' ] += y;
}
}
// Figure out the element position relative to the specified window.
function screenPos( element, refWin )
{
var pos = { x: 0, y: 0 };
if ( !( element.is( isQuirks ? 'body' : 'html' ) ) )
{
var box = element.$.getBoundingClientRect();
pos.x = box.left, pos.y = box.top;
}
var win = element.getWindow();
if ( !win.equals( refWin ) )
{
var outerPos = screenPos( CKEDITOR.dom.element.get( win.$.frameElement ), refWin );
pos.x += outerPos.x, pos.y += outerPos.y;
}
return pos;
}
// calculated margin size.
function margin( element, side )
{
return parseInt( element.getComputedStyle( 'margin-' + side ) || 0, 10 ) || 0;
}
var win = parent.getWindow();
var thisPos = screenPos( this, win ),
parentPos = screenPos( parent, win ),
eh = this.$.offsetHeight,
ew = this.$.offsetWidth,
ch = parent.$.clientHeight,
cw = parent.$.clientWidth,
lt,
br;
// Left-top margins.
lt =
{
x : thisPos.x - margin( this, 'left' ) - parentPos.x || 0,
y : thisPos.y - margin( this, 'top' ) - parentPos.y|| 0
};
// Bottom-right margins.
br =
{
x : thisPos.x + ew + margin( this, 'right' ) - ( ( parentPos.x ) + cw ) || 0,
y : thisPos.y + eh + margin( this, 'bottom' ) - ( ( parentPos.y ) + ch ) || 0
};
// 1. Do the specified alignment as much as possible;
// 2. Otherwise be smart to scroll only the minimum amount;
// 3. Never cut at the top;
// 4. DO NOT scroll when already visible.
if ( lt.y < 0 || br.y > 0 )
{
scrollBy( 0,
alignToTop === true ? lt.y :
alignToTop === false ? br.y :
lt.y < 0 ? lt.y : br.y );
}
if ( hscroll && ( lt.x < 0 || br.x > 0 ) )
scrollBy( lt.x < 0 ? lt.x : br.x, 0 );
},
setState : function( state )
{
switch ( state )
{
case CKEDITOR.TRISTATE_ON :
this.addClass( 'cke_on' );
this.removeClass( 'cke_off' );
this.removeClass( 'cke_disabled' );
break;
case CKEDITOR.TRISTATE_DISABLED :
this.addClass( 'cke_disabled' );
this.removeClass( 'cke_off' );
this.removeClass( 'cke_on' );
break;
default :
this.addClass( 'cke_off' );
this.removeClass( 'cke_on' );
this.removeClass( 'cke_disabled' );
break;
}
},
/**
* Returns the inner document of this IFRAME element.
* @returns {CKEDITOR.dom.document} The inner document.
*/
getFrameDocument : function()
{
var $ = this.$;
try
{
// In IE, with custom document.domain, it may happen that
// the iframe is not yet available, resulting in "Access
// Denied" for the following property access.
$.contentWindow.document;
}
catch ( e )
{
// Trick to solve this issue, forcing the iframe to get ready
// by simply setting its "src" property.
$.src = $.src;
// In IE6 though, the above is not enough, so we must pause the
// execution for a while, giving it time to think.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 )
{
window.showModalDialog(
'javascript:document.write("' +
'<script>' +
'window.setTimeout(' +
'function(){window.close();}' +
',50);' +
'</script>")' );
}
}
return $ && new CKEDITOR.dom.document( $.contentWindow.document );
},
/**
* Copy all the attributes from one node to the other, kinda like a clone
* skipAttributes is an object with the attributes that must NOT be copied.
* @param {CKEDITOR.dom.element} dest The destination element.
* @param {Object} skipAttributes A dictionary of attributes to skip.
* @example
*/
copyAttributes : function( dest, skipAttributes )
{
var attributes = this.$.attributes;
skipAttributes = skipAttributes || {};
for ( var n = 0 ; n < attributes.length ; n++ )
{
var attribute = attributes[n];
// Lowercase attribute name hard rule is broken for
// some attribute on IE, e.g. CHECKED.
var attrName = attribute.nodeName.toLowerCase(),
attrValue;
// We can set the type only once, so do it with the proper value, not copying it.
if ( attrName in skipAttributes )
continue;
if ( attrName == 'checked' && ( attrValue = this.getAttribute( attrName ) ) )
dest.setAttribute( attrName, attrValue );
// IE BUG: value attribute is never specified even if it exists.
else if ( attribute.specified ||
( CKEDITOR.env.ie && attribute.nodeValue && attrName == 'value' ) )
{
attrValue = this.getAttribute( attrName );
if ( attrValue === null )
attrValue = attribute.nodeValue;
dest.setAttribute( attrName, attrValue );
}
}
// The style:
if ( this.$.style.cssText !== '' )
dest.$.style.cssText = this.$.style.cssText;
},
/**
* Changes the tag name of the current element.
* @param {String} newTag The new tag for the element.
*/
renameNode : function( newTag )
{
// If it's already correct exit here.
if ( this.getName() == newTag )
return;
var doc = this.getDocument();
// Create the new node.
var newNode = new CKEDITOR.dom.element( newTag, doc );
// Copy all attributes.
this.copyAttributes( newNode );
// Move children to the new node.
this.moveChildren( newNode );
// Replace the node.
this.getParent() && this.$.parentNode.replaceChild( newNode.$, this.$ );
newNode.$[ 'data-cke-expando' ] = this.$[ 'data-cke-expando' ];
this.$ = newNode.$;
},
/**
* Gets a DOM tree descendant under the current node.
* @param {Array|Number} indices The child index or array of child indices under the node.
* @returns {CKEDITOR.dom.node} The specified DOM child under the current node. Null if child does not exist.
* @example
* var strong = p.getChild(0);
*/
getChild : function( indices )
{
var rawNode = this.$;
if ( !indices.slice )
rawNode = rawNode.childNodes[ indices ];
else
{
while ( indices.length > 0 && rawNode )
rawNode = rawNode.childNodes[ indices.shift() ];
}
return rawNode ? new CKEDITOR.dom.node( rawNode ) : null;
},
getChildCount : function()
{
return this.$.childNodes.length;
},
disableContextMenu : function()
{
this.on( 'contextmenu', function( event )
{
// Cancel the browser context menu.
if ( !event.data.getTarget().hasClass( 'cke_enable_context_menu' ) )
event.data.preventDefault();
} );
},
/**
* Gets element's direction. Supports both CSS 'direction' prop and 'dir' attr.
*/
getDirection : function( useComputed )
{
return useComputed ?
this.getComputedStyle( 'direction' )
// Webkit: offline element returns empty direction (#8053).
|| this.getDirection()
|| this.getDocument().$.dir
|| this.getDocument().getBody().getDirection( 1 )
: this.getStyle( 'direction' ) || this.getAttribute( 'dir' );
},
/**
* Gets, sets and removes custom data to be stored as HTML5 data-* attributes.
* @param {String} name The name of the attribute, excluding the 'data-' part.
* @param {String} [value] The value to set. If set to false, the attribute will be removed.
* @example
* element.data( 'extra-info', 'test' ); // appended the attribute data-extra-info="test" to the element
* alert( element.data( 'extra-info' ) ); // "test"
* element.data( 'extra-info', false ); // remove the data-extra-info attribute from the element
*/
data : function ( name, value )
{
name = 'data-' + name;
if ( value === undefined )
return this.getAttribute( name );
else if ( value === false )
this.removeAttribute( name );
else
this.setAttribute( name, value );
return null;
}
});
( function()
{
var sides = {
width : [ "border-left-width", "border-right-width","padding-left", "padding-right" ],
height : [ "border-top-width", "border-bottom-width", "padding-top", "padding-bottom" ]
};
function marginAndPaddingSize( type )
{
var adjustment = 0;
for ( var i = 0, len = sides[ type ].length; i < len; i++ )
adjustment += parseInt( this.getComputedStyle( sides [ type ][ i ] ) || 0, 10 ) || 0;
return adjustment;
}
/**
* Sets the element size considering the box model.
* @name CKEDITOR.dom.element.prototype.setSize
* @function
* @param {String} type The dimension to set. It accepts "width" and "height".
* @param {Number} size The length unit in px.
* @param {Boolean} isBorderBox Apply the size based on the border box model.
*/
CKEDITOR.dom.element.prototype.setSize = function( type, size, isBorderBox )
{
if ( typeof size == 'number' )
{
if ( isBorderBox && !( CKEDITOR.env.ie && CKEDITOR.env.quirks ) )
size -= marginAndPaddingSize.call( this, type );
this.setStyle( type, size + 'px' );
}
};
/**
* Gets the element size, possibly considering the box model.
* @name CKEDITOR.dom.element.prototype.getSize
* @function
* @param {String} type The dimension to get. It accepts "width" and "height".
* @param {Boolean} isBorderBox Get the size based on the border box model.
*/
CKEDITOR.dom.element.prototype.getSize = function( type, isBorderBox )
{
var size = Math.max( this.$[ 'offset' + CKEDITOR.tools.capitalize( type ) ],
this.$[ 'client' + CKEDITOR.tools.capitalize( type ) ] ) || 0;
if ( isBorderBox )
size -= marginAndPaddingSize.call( this, type );
return size;
};
})();
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/element.js
|
JavaScript
|
gpl3
| 53,413
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
/**
* Represents a list os CKEDITOR.dom.range objects, which can be easily
* iterated sequentially.
* @constructor
* @param {CKEDITOR.dom.range|Array} [ranges] The ranges contained on this list.
* Note that, if an array of ranges is specified, the range sequence
* should match its DOM order. This class will not help to sort them.
*/
CKEDITOR.dom.rangeList = function( ranges )
{
if ( ranges instanceof CKEDITOR.dom.rangeList )
return ranges;
if ( !ranges )
ranges = [];
else if ( ranges instanceof CKEDITOR.dom.range )
ranges = [ ranges ];
return CKEDITOR.tools.extend( ranges, mixins );
};
var mixins =
/** @lends CKEDITOR.dom.rangeList.prototype */
{
/**
* Creates an instance of the rangeList iterator, it should be used
* only when the ranges processing could be DOM intrusive, which
* means it may pollute and break other ranges in this list.
* Otherwise, it's enough to just iterate over this array in a for loop.
* @returns {CKEDITOR.dom.rangeListIterator}
*/
createIterator : function()
{
var rangeList = this,
bookmark = CKEDITOR.dom.walker.bookmark(),
guard = function( node ) { return ! ( node.is && node.is( 'tr' ) ); },
bookmarks = [],
current;
/**
* @lends CKEDITOR.dom.rangeListIterator.prototype
*/
return {
/**
* Retrieves the next range in the list.
* @param {Boolean} mergeConsequent Whether join two adjacent ranges into single, e.g. consequent table cells.
*/
getNextRange : function( mergeConsequent )
{
current = current == undefined ? 0 : current + 1;
var range = rangeList[ current ];
// Multiple ranges might be mangled by each other.
if ( range && rangeList.length > 1 )
{
// Bookmarking all other ranges on the first iteration,
// the range correctness after it doesn't matter since we'll
// restore them before the next iteration.
if ( !current )
{
// Make sure bookmark correctness by reverse processing.
for ( var i = rangeList.length - 1; i >= 0; i-- )
bookmarks.unshift( rangeList[ i ].createBookmark( true ) );
}
if ( mergeConsequent )
{
// Figure out how many ranges should be merged.
var mergeCount = 0;
while ( rangeList[ current + mergeCount + 1 ] )
{
var doc = range.document,
found = 0,
left = doc.getById( bookmarks[ mergeCount ].endNode ),
right = doc.getById( bookmarks[ mergeCount + 1 ].startNode ),
next;
// Check subsequent range.
while ( 1 )
{
next = left.getNextSourceNode( false );
if ( !right.equals( next ) )
{
// This could be yet another bookmark or
// walking across block boundaries.
if ( bookmark( next ) || ( next.type == CKEDITOR.NODE_ELEMENT && next.isBlockBoundary() ) )
{
left = next;
continue;
}
}
else
found = 1;
break;
}
if ( !found )
break;
mergeCount++;
}
}
range.moveToBookmark( bookmarks.shift() );
// Merge ranges finally after moving to bookmarks.
while( mergeCount-- )
{
next = rangeList[ ++current ];
next.moveToBookmark( bookmarks.shift() );
range.setEnd( next.endContainer, next.endOffset );
}
}
return range;
}
};
},
createBookmarks : function( serializable )
{
var retval = [], bookmark;
for ( var i = 0; i < this.length ; i++ )
{
retval.push( bookmark = this[ i ].createBookmark( serializable, true) );
// Updating the container & offset values for ranges
// that have been touched.
for ( var j = i + 1; j < this.length; j++ )
{
this[ j ] = updateDirtyRange( bookmark, this[ j ] );
this[ j ] = updateDirtyRange( bookmark, this[ j ], true );
}
}
return retval;
},
createBookmarks2 : function( normalized )
{
var bookmarks = [];
for ( var i = 0 ; i < this.length ; i++ )
bookmarks.push( this[ i ].createBookmark2( normalized ) );
return bookmarks;
},
/**
* Move each range in the list to the position specified by a list of bookmarks.
* @param {Array} bookmarks The list of bookmarks, each one matching a range in the list.
*/
moveToBookmarks : function( bookmarks )
{
for ( var i = 0 ; i < this.length ; i++ )
this[ i ].moveToBookmark( bookmarks[ i ] );
}
};
// Update the specified range which has been mangled by previous insertion of
// range bookmark nodes.(#3256)
function updateDirtyRange( bookmark, dirtyRange, checkEnd )
{
var serializable = bookmark.serializable,
container = dirtyRange[ checkEnd ? 'endContainer' : 'startContainer' ],
offset = checkEnd ? 'endOffset' : 'startOffset';
var bookmarkStart = serializable ?
dirtyRange.document.getById( bookmark.startNode )
: bookmark.startNode;
var bookmarkEnd = serializable ?
dirtyRange.document.getById( bookmark.endNode )
: bookmark.endNode;
if ( container.equals( bookmarkStart.getPrevious() ) )
{
dirtyRange.startOffset = dirtyRange.startOffset
- container.getLength()
- bookmarkEnd.getPrevious().getLength();
container = bookmarkEnd.getNext();
}
else if ( container.equals( bookmarkEnd.getPrevious() ) )
{
dirtyRange.startOffset = dirtyRange.startOffset - container.getLength();
container = bookmarkEnd.getNext();
}
container.equals( bookmarkStart.getParent() ) && dirtyRange[ offset ]++;
container.equals( bookmarkEnd.getParent() ) && dirtyRange[ offset ]++;
// Update and return this range.
dirtyRange[ checkEnd ? 'endContainer' : 'startContainer' ] = container;
return dirtyRange;
}
})();
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API. It just describes the return type of {@link CKEDITOR.dom.rangeList#createIterator}.
* @name CKEDITOR.dom.rangeListIterator
* @constructor
* @example
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/rangelist.js
|
JavaScript
|
gpl3
| 6,554
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// Elements that may be considered the "Block boundary" in an element path.
var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1, legend:1,caption:1 };
// Elements that may be considered the "Block limit" in an element path.
var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,form:1,fieldset:1 };
// Check if an element contains any block element.
var checkHasBlock = function( element )
{
var childNodes = element.getChildren();
for ( var i = 0, count = childNodes.count() ; i < count ; i++ )
{
var child = childNodes.getItem( i );
if ( child.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$block[ child.getName() ] )
return true;
}
return false;
};
/**
* @class
*/
CKEDITOR.dom.elementPath = function( lastNode )
{
var block = null;
var blockLimit = null;
var elements = [];
var e = lastNode;
while ( e )
{
if ( e.type == CKEDITOR.NODE_ELEMENT )
{
if ( !this.lastElement )
this.lastElement = e;
var elementName = e.getName();
if ( !blockLimit )
{
if ( !block && pathBlockElements[ elementName ] )
block = e;
if ( pathBlockLimitElements[ elementName ] )
{
// DIV is considered the Block, if no block is available (#525)
// and if it doesn't contain other blocks.
if ( !block && elementName == 'div' && !checkHasBlock( e ) )
block = e;
else
blockLimit = e;
}
}
elements.push( e );
if ( elementName == 'body' )
break;
}
e = e.getParent();
}
this.block = block;
this.blockLimit = blockLimit;
this.elements = elements;
};
})();
CKEDITOR.dom.elementPath.prototype =
{
/**
* Compares this element path with another one.
* @param {CKEDITOR.dom.elementPath} otherPath The elementPath object to be
* compared with this one.
* @returns {Boolean} "true" if the paths are equal, containing the same
* number of elements and the same elements in the same order.
*/
compare : function( otherPath )
{
var thisElements = this.elements;
var otherElements = otherPath && otherPath.elements;
if ( !otherElements || thisElements.length != otherElements.length )
return false;
for ( var i = 0 ; i < thisElements.length ; i++ )
{
if ( !thisElements[ i ].equals( otherElements[ i ] ) )
return false;
}
return true;
},
contains : function( tagNames )
{
var elements = this.elements;
for ( var i = 0 ; i < elements.length ; i++ )
{
if ( elements[ i ].getName() in tagNames )
return elements[ i ];
}
return null;
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/elementpath.js
|
JavaScript
|
gpl3
| 2,902
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.event} class, which
* represents the a native DOM event object.
*/
/**
* Represents a native DOM event object.
* @constructor
* @param {Object} domEvent A native DOM event object.
* @example
*/
CKEDITOR.dom.event = function( domEvent )
{
/**
* The native DOM event object represented by this class instance.
* @type Object
* @example
*/
this.$ = domEvent;
};
CKEDITOR.dom.event.prototype =
{
/**
* Gets the key code associated to the event.
* @returns {Number} The key code.
* @example
* alert( event.getKey() ); "65" is "a" has been pressed
*/
getKey : function()
{
return this.$.keyCode || this.$.which;
},
/**
* Gets a number represeting the combination of the keys pressed during the
* event. It is the sum with the current key code and the {@link CKEDITOR.CTRL},
* {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT} constants.
* @returns {Number} The number representing the keys combination.
* @example
* alert( event.getKeystroke() == 65 ); // "a" key
* alert( event.getKeystroke() == CKEDITOR.CTRL + 65 ); // CTRL + "a" key
* alert( event.getKeystroke() == CKEDITOR.CTRL + CKEDITOR.SHIFT + 65 ); // CTRL + SHIFT + "a" key
*/
getKeystroke : function()
{
var keystroke = this.getKey();
if ( this.$.ctrlKey || this.$.metaKey )
keystroke += CKEDITOR.CTRL;
if ( this.$.shiftKey )
keystroke += CKEDITOR.SHIFT;
if ( this.$.altKey )
keystroke += CKEDITOR.ALT;
return keystroke;
},
/**
* Prevents the original behavior of the event to happen. It can optionally
* stop propagating the event in the event chain.
* @param {Boolean} [stopPropagation] Stop propagating this event in the
* event chain.
* @example
* var element = CKEDITOR.document.getById( 'myElement' );
* element.on( 'click', function( ev )
* {
* // The DOM event object is passed by the "data" property.
* var domEvent = ev.data;
* // Prevent the click to chave any effect in the element.
* domEvent.preventDefault();
* });
*/
preventDefault : function( stopPropagation )
{
var $ = this.$;
if ( $.preventDefault )
$.preventDefault();
else
$.returnValue = false;
if ( stopPropagation )
this.stopPropagation();
},
stopPropagation : function()
{
var $ = this.$;
if ( $.stopPropagation )
$.stopPropagation();
else
$.cancelBubble = true;
},
/**
* Returns the DOM node where the event was targeted to.
* @returns {CKEDITOR.dom.node} The target DOM node.
* @example
* var element = CKEDITOR.document.getById( 'myElement' );
* element.on( 'click', function( ev )
* {
* // The DOM event object is passed by the "data" property.
* var domEvent = ev.data;
* // Add a CSS class to the event target.
* domEvent.getTarget().addClass( 'clicked' );
* });
*/
getTarget : function()
{
var rawNode = this.$.target || this.$.srcElement;
return rawNode ? new CKEDITOR.dom.node( rawNode ) : null;
}
};
// For the followind constants, we need to go over the Unicode boundaries
// (0x10FFFF) to avoid collision.
/**
* CTRL key (0x110000).
* @constant
* @example
*/
CKEDITOR.CTRL = 0x110000;
/**
* SHIFT key (0x220000).
* @constant
* @example
*/
CKEDITOR.SHIFT = 0x220000;
/**
* ALT key (0x440000).
* @constant
* @example
*/
CKEDITOR.ALT = 0x440000;
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dom/event.js
|
JavaScript
|
gpl3
| 3,766
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.resourceManager} class, which is
* the base for resource managers, like plugins and themes.
*/
/**
* Base class for resource managers, like plugins and themes. This class is not
* intended to be used out of the CKEditor core code.
* @param {String} basePath The path for the resources folder.
* @param {String} fileName The name used for resource files.
* @namespace
* @example
*/
CKEDITOR.resourceManager = function( basePath, fileName )
{
/**
* The base directory containing all resources.
* @name CKEDITOR.resourceManager.prototype.basePath
* @type String
* @example
*/
this.basePath = basePath;
/**
* The name used for resource files.
* @name CKEDITOR.resourceManager.prototype.fileName
* @type String
* @example
*/
this.fileName = fileName;
/**
* Contains references to all resources that have already been registered
* with {@link #add}.
* @name CKEDITOR.resourceManager.prototype.registered
* @type Object
* @example
*/
this.registered = {};
/**
* Contains references to all resources that have already been loaded
* with {@link #load}.
* @name CKEDITOR.resourceManager.prototype.loaded
* @type Object
* @example
*/
this.loaded = {};
/**
* Contains references to all resources that have already been registered
* with {@link #addExternal}.
* @name CKEDITOR.resourceManager.prototype.externals
* @type Object
* @example
*/
this.externals = {};
/**
* @private
*/
this._ =
{
// List of callbacks waiting for plugins to be loaded.
waitingList : {}
};
};
CKEDITOR.resourceManager.prototype =
{
/**
* Registers a resource.
* @param {String} name The resource name.
* @param {Object} [definition] The resource definition.
* @example
* CKEDITOR.plugins.add( 'sample', { ... plugin definition ... } );
* @see CKEDITOR.pluginDefinition
*/
add : function( name, definition )
{
if ( this.registered[ name ] )
throw '[CKEDITOR.resourceManager.add] The resource name "' + name + '" is already registered.';
CKEDITOR.fire( name + CKEDITOR.tools.capitalize( this.fileName ) + 'Ready',
this.registered[ name ] = definition || {} );
},
/**
* Gets the definition of a specific resource.
* @param {String} name The resource name.
* @type Object
* @example
* var definition = <b>CKEDITOR.plugins.get( 'sample' )</b>;
*/
get : function( name )
{
return this.registered[ name ] || null;
},
/**
* Get the folder path for a specific loaded resource.
* @param {String} name The resource name.
* @type String
* @example
* alert( <b>CKEDITOR.plugins.getPath( 'sample' )</b> ); // "<editor path>/plugins/sample/"
*/
getPath : function( name )
{
var external = this.externals[ name ];
return CKEDITOR.getUrl( ( external && external.dir ) || this.basePath + name + '/' );
},
/**
* Get the file path for a specific loaded resource.
* @param {String} name The resource name.
* @type String
* @example
* alert( <b>CKEDITOR.plugins.getFilePath( 'sample' )</b> ); // "<editor path>/plugins/sample/plugin.js"
*/
getFilePath : function( name )
{
var external = this.externals[ name ];
return CKEDITOR.getUrl(
this.getPath( name ) +
( ( external && ( typeof external.file == 'string' ) ) ? external.file : this.fileName + '.js' ) );
},
/**
* Registers one or more resources to be loaded from an external path
* instead of the core base path.
* @param {String} names The resource names, separated by commas.
* @param {String} path The path of the folder containing the resource.
* @param {String} [fileName] The resource file name. If not provided, the
* default name is used; If provided with a empty string, will implicitly indicates that {@param path}
* is already the full path.
* @example
* // Loads a plugin from '/myplugin/samples/plugin.js'.
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/' );
* @example
* // Loads a plugin from '/myplugin/samples/my_plugin.js'.
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/', 'my_plugin.js' );
* @example
* // Loads a plugin from '/myplugin/samples/my_plugin.js'.
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/my_plugin.js', '' );
*/
addExternal : function( names, path, fileName )
{
names = names.split( ',' );
for ( var i = 0 ; i < names.length ; i++ )
{
var name = names[ i ];
this.externals[ name ] =
{
dir : path,
file : fileName
};
}
},
/**
* Loads one or more resources.
* @param {String|Array} name The name of the resource to load. It may be a
* string with a single resource name, or an array with several names.
* @param {Function} callback A function to be called when all resources
* are loaded. The callback will receive an array containing all
* loaded names.
* @param {Object} [scope] The scope object to be used for the callback
* call.
* @example
* <b>CKEDITOR.plugins.load</b>( 'myplugin', function( plugins )
* {
* alert( plugins['myplugin'] ); // "object"
* });
*/
load : function( names, callback, scope )
{
// Ensure that we have an array of names.
if ( !CKEDITOR.tools.isArray( names ) )
names = names ? [ names ] : [];
var loaded = this.loaded,
registered = this.registered,
urls = [],
urlsNames = {},
resources = {};
// Loop through all names.
for ( var i = 0 ; i < names.length ; i++ )
{
var name = names[ i ];
if ( !name )
continue;
// If not available yet.
if ( !loaded[ name ] && !registered[ name ] )
{
var url = this.getFilePath( name );
urls.push( url );
if ( !( url in urlsNames ) )
urlsNames[ url ] = [];
urlsNames[ url ].push( name );
}
else
resources[ name ] = this.get( name );
}
CKEDITOR.scriptLoader.load( urls, function( completed, failed )
{
if ( failed.length )
{
throw '[CKEDITOR.resourceManager.load] Resource name "' + urlsNames[ failed[ 0 ] ].join( ',' )
+ '" was not found at "' + failed[ 0 ] + '".';
}
for ( var i = 0 ; i < completed.length ; i++ )
{
var nameList = urlsNames[ completed[ i ] ];
for ( var j = 0 ; j < nameList.length ; j++ )
{
var name = nameList[ j ];
resources[ name ] = this.get( name );
loaded[ name ] = 1;
}
}
callback.call( scope, resources );
}
, this);
}
};
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/resourcemanager.js
|
JavaScript
|
gpl3
| 6,832
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.editor} class, which represents an
* editor instance.
*/
(function()
{
// The counter for automatic instance names.
var nameCounter = 0;
var getNewName = function()
{
var name = 'editor' + ( ++nameCounter );
return ( CKEDITOR.instances && CKEDITOR.instances[ name ] ) ? getNewName() : name;
};
// ##### START: Config Privates
// These function loads custom configuration files and cache the
// CKEDITOR.editorConfig functions defined on them, so there is no need to
// download them more than once for several instances.
var loadConfigLoaded = {};
var loadConfig = function( editor )
{
var customConfig = editor.config.customConfig;
// Check if there is a custom config to load.
if ( !customConfig )
return false;
customConfig = CKEDITOR.getUrl( customConfig );
var loadedConfig = loadConfigLoaded[ customConfig ] || ( loadConfigLoaded[ customConfig ] = {} );
// If the custom config has already been downloaded, reuse it.
if ( loadedConfig.fn )
{
// Call the cached CKEDITOR.editorConfig defined in the custom
// config file for the editor instance depending on it.
loadedConfig.fn.call( editor, editor.config );
// If there is no other customConfig in the chain, fire the
// "configLoaded" event.
if ( CKEDITOR.getUrl( editor.config.customConfig ) == customConfig || !loadConfig( editor ) )
editor.fireOnce( 'customConfigLoaded' );
}
else
{
// Load the custom configuration file.
CKEDITOR.scriptLoader.load( customConfig, function()
{
// If the CKEDITOR.editorConfig function has been properly
// defined in the custom configuration file, cache it.
if ( CKEDITOR.editorConfig )
loadedConfig.fn = CKEDITOR.editorConfig;
else
loadedConfig.fn = function(){};
// Call the load config again. This time the custom
// config is already cached and so it will get loaded.
loadConfig( editor );
});
}
return true;
};
var initConfig = function( editor, instanceConfig )
{
// Setup the lister for the "customConfigLoaded" event.
editor.on( 'customConfigLoaded', function()
{
if ( instanceConfig )
{
// Register the events that may have been set at the instance
// configuration object.
if ( instanceConfig.on )
{
for ( var eventName in instanceConfig.on )
{
editor.on( eventName, instanceConfig.on[ eventName ] );
}
}
// Overwrite the settings from the in-page config.
CKEDITOR.tools.extend( editor.config, instanceConfig, true );
delete editor.config.on;
}
onConfigLoaded( editor );
});
// The instance config may override the customConfig setting to avoid
// loading the default ~/config.js file.
if ( instanceConfig && instanceConfig.customConfig != undefined )
editor.config.customConfig = instanceConfig.customConfig;
// Load configs from the custom configuration files.
if ( !loadConfig( editor ) )
editor.fireOnce( 'customConfigLoaded' );
};
// ##### END: Config Privates
var onConfigLoaded = function( editor )
{
// Set config related properties.
var skin = editor.config.skin.split( ',' ),
skinName = skin[ 0 ],
skinPath = CKEDITOR.getUrl( skin[ 1 ] || (
'_source/' + // @Packager.RemoveLine
'skins/' + skinName + '/' ) );
/**
* The name of the skin used by this editor instance. The skin name can
* be set through the <code>{@link CKEDITOR.config.skin}</code> setting.
* @name CKEDITOR.editor.prototype.skinName
* @type String
* @example
* alert( editor.skinName ); // E.g. "kama"
*/
editor.skinName = skinName;
/**
* The full URL of the skin directory.
* @name CKEDITOR.editor.prototype.skinPath
* @type String
* @example
* alert( editor.skinPath ); // E.g. "http://example.com/ckeditor/skins/kama/"
*/
editor.skinPath = skinPath;
/**
* The CSS class name used for skin identification purposes.
* @name CKEDITOR.editor.prototype.skinClass
* @type String
* @example
* alert( editor.skinClass ); // E.g. "cke_skin_kama"
*/
editor.skinClass = 'cke_skin_' + skinName;
/**
* The <a href="http://en.wikipedia.org/wiki/Tabbing_navigation">tabbing
* navigation</a> order that has been calculated for this editor
* instance. This can be set by the <code>{@link CKEDITOR.config.tabIndex}</code>
* setting or taken from the <code>tabindex</code> attribute of the
* <code>{@link #element}</code> associated with the editor.
* @name CKEDITOR.editor.prototype.tabIndex
* @type Number
* @default 0 (zero)
* @example
* alert( editor.tabIndex ); // E.g. "0"
*/
editor.tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0;
/**
* Indicates the read-only state of this editor. This is a read-only property.
* @name CKEDITOR.editor.prototype.readOnly
* @type Boolean
* @since 3.6
* @see CKEDITOR.editor#setReadOnly
*/
editor.readOnly = !!( editor.config.readOnly || editor.element.getAttribute( 'disabled' ) );
// Fire the "configLoaded" event.
editor.fireOnce( 'configLoaded' );
// Load language file.
loadSkin( editor );
};
var loadLang = function( editor )
{
CKEDITOR.lang.load( editor.config.language, editor.config.defaultLanguage, function( languageCode, lang )
{
/**
* The code for the language resources that have been loaded
* for the user interface elements of this editor instance.
* @name CKEDITOR.editor.prototype.langCode
* @type String
* @example
* alert( editor.langCode ); // E.g. "en"
*/
editor.langCode = languageCode;
/**
* An object that contains all language strings used by the editor
* interface.
* @name CKEDITOR.editor.prototype.lang
* @type CKEDITOR.lang
* @example
* alert( editor.lang.bold ); // E.g. "Negrito" (if the language is set to Portuguese)
*/
// As we'll be adding plugin specific entries that could come
// from different language code files, we need a copy of lang,
// not a direct reference to it.
editor.lang = CKEDITOR.tools.prototypedCopy( lang );
// We're not able to support RTL in Firefox 2 at this time.
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' )
editor.lang.dir = 'ltr';
editor.fire( 'langLoaded' );
var config = editor.config;
config.contentsLangDirection == 'ui' && ( config.contentsLangDirection = editor.lang.dir );
loadPlugins( editor );
});
};
var loadPlugins = function( editor )
{
var config = editor.config,
plugins = config.plugins,
extraPlugins = config.extraPlugins,
removePlugins = config.removePlugins;
if ( extraPlugins )
{
// Remove them first to avoid duplications.
var removeRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
plugins = plugins.replace( removeRegex, '' );
plugins += ',' + extraPlugins;
}
if ( removePlugins )
{
removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
plugins = plugins.replace( removeRegex, '' );
}
// Load the Adobe AIR plugin conditionally.
CKEDITOR.env.air && ( plugins += ',adobeair' );
// Load all plugins defined in the "plugins" setting.
CKEDITOR.plugins.load( plugins.split( ',' ), function( plugins )
{
// The list of plugins.
var pluginsArray = [];
// The language code to get loaded for each plugin. Null
// entries will be appended for plugins with no language files.
var languageCodes = [];
// The list of URLs to language files.
var languageFiles = [];
/**
* An object that contains references to all plugins used by this
* editor instance.
* @name CKEDITOR.editor.prototype.plugins
* @type Object
* @example
* alert( editor.plugins.dialog.path ); // E.g. "http://example.com/ckeditor/plugins/dialog/"
*/
editor.plugins = plugins;
// Loop through all plugins, to build the list of language
// files to get loaded.
for ( var pluginName in plugins )
{
var plugin = plugins[ pluginName ],
pluginLangs = plugin.lang,
pluginPath = CKEDITOR.plugins.getPath( pluginName ),
lang = null;
// Set the plugin path in the plugin.
plugin.path = pluginPath;
// If the plugin has "lang".
if ( pluginLangs )
{
// Resolve the plugin language. If the current language
// is not available, get the first one (default one).
lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] );
if ( !plugin.langEntries || !plugin.langEntries[ lang ] )
{
// Put the language file URL into the list of files to
// get downloaded.
languageFiles.push( CKEDITOR.getUrl( pluginPath + 'lang/' + lang + '.js' ) );
}
else
{
CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ lang ] );
lang = null;
}
}
// Save the language code, so we know later which
// language has been resolved to this plugin.
languageCodes.push( lang );
pluginsArray.push( plugin );
}
// Load all plugin specific language files in a row.
CKEDITOR.scriptLoader.load( languageFiles, function()
{
// Initialize all plugins that have the "beforeInit" and "init" methods defined.
var methods = [ 'beforeInit', 'init', 'afterInit' ];
for ( var m = 0 ; m < methods.length ; m++ )
{
for ( var i = 0 ; i < pluginsArray.length ; i++ )
{
var plugin = pluginsArray[ i ];
// Uses the first loop to update the language entries also.
if ( m === 0 && languageCodes[ i ] && plugin.lang )
CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ languageCodes[ i ] ] );
// Call the plugin method (beforeInit and init).
if ( plugin[ methods[ m ] ] )
plugin[ methods[ m ] ]( editor );
}
}
// Load the editor skin.
editor.fire( 'pluginsLoaded' );
loadTheme( editor );
});
});
};
var loadSkin = function( editor )
{
CKEDITOR.skins.load( editor, 'editor', function()
{
loadLang( editor );
});
};
var loadTheme = function( editor )
{
var theme = editor.config.theme;
CKEDITOR.themes.load( theme, function()
{
/**
* The theme used by this editor instance.
* @name CKEDITOR.editor.prototype.theme
* @type CKEDITOR.theme
* @example
* alert( editor.theme ); // E.g. "http://example.com/ckeditor/themes/default/"
*/
var editorTheme = editor.theme = CKEDITOR.themes.get( theme );
editorTheme.path = CKEDITOR.themes.getPath( theme );
editorTheme.build( editor );
if ( editor.config.autoUpdateElement )
attachToForm( editor );
});
};
var attachToForm = function( editor )
{
var element = editor.element;
// If are replacing a textarea, we must
if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.is( 'textarea' ) )
{
var form = element.$.form && new CKEDITOR.dom.element( element.$.form );
if ( form )
{
function onSubmit()
{
editor.updateElement();
}
form.on( 'submit',onSubmit );
// Setup the submit function because it doesn't fire the
// "submit" event.
if ( !form.$.submit.nodeName && !form.$.submit.length )
{
form.$.submit = CKEDITOR.tools.override( form.$.submit, function( originalSubmit )
{
return function()
{
editor.updateElement();
// For IE, the DOM submit function is not a
// function, so we need thid check.
if ( originalSubmit.apply )
originalSubmit.apply( this, arguments );
else
originalSubmit();
};
});
}
// Remove 'submit' events registered on form element before destroying.(#3988)
editor.on( 'destroy', function()
{
form.removeListener( 'submit', onSubmit );
} );
}
}
};
function updateCommands()
{
var command,
commands = this._.commands,
mode = this.mode;
if ( !mode )
return;
for ( var name in commands )
{
command = commands[ name ];
command[ command.startDisabled ? 'disable' :
this.readOnly && !command.readOnly ? 'disable' : command.modes[ mode ] ? 'enable' : 'disable' ]();
}
}
/**
* Initializes the editor instance. This function is called by the editor
* contructor (<code>editor_basic.js</code>).
* @private
*/
CKEDITOR.editor.prototype._init = function()
{
// Get the properties that have been saved in the editor_base
// implementation.
var element = CKEDITOR.dom.element.get( this._.element ),
instanceConfig = this._.instanceConfig;
delete this._.element;
delete this._.instanceConfig;
this._.commands = {};
this._.styles = [];
/**
* The DOM element that was replaced by this editor instance. This
* element stores the editor data on load and post.
* @name CKEDITOR.editor.prototype.element
* @type CKEDITOR.dom.element
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <strong>editor.element</strong>.getName() ); // E.g. "textarea"
*/
this.element = element;
/**
* The editor instance name. It may be the replaced element ID, name, or
* a default name using the progressive counter (<code>editor1</code>,
* <code>editor2</code>, ...).
* @name CKEDITOR.editor.prototype.name
* @type String
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <strong>editor.name</strong> ); // "editor1"
*/
this.name = ( element && ( this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
&& ( element.getId() || element.getNameAtt() ) )
|| getNewName();
if ( this.name in CKEDITOR.instances )
throw '[CKEDITOR.editor] The instance "' + this.name + '" already exists.';
/**
* A unique random string assigned to each editor instance on the page.
* @name CKEDITOR.editor.prototype.id
* @type String
*/
this.id = CKEDITOR.tools.getNextId();
/**
* The configurations for this editor instance. It inherits all
* settings defined in <code>(@link CKEDITOR.config}</code>, combined with settings
* loaded from custom configuration files and those defined inline in
* the page when creating the editor.
* @name CKEDITOR.editor.prototype.config
* @type Object
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <strong>editor.config.theme</strong> ); // E.g. "default"
*/
this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config );
/**
* The namespace containing UI features related to this editor instance.
* @name CKEDITOR.editor.prototype.ui
* @type CKEDITOR.ui
* @example
*/
this.ui = new CKEDITOR.ui( this );
/**
* Controls the focus state of this editor instance. This property
* is rarely used for normal API operations. It is mainly
* intended for developers adding UI elements to the editor interface.
* @name CKEDITOR.editor.prototype.focusManager
* @type CKEDITOR.focusManager
* @example
*/
this.focusManager = new CKEDITOR.focusManager( this );
CKEDITOR.fire( 'instanceCreated', null, this );
this.on( 'mode', updateCommands, null, null, 1 );
this.on( 'readOnly', updateCommands, null, null, 1 );
initConfig( this, instanceConfig );
};
})();
CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
/** @lends CKEDITOR.editor.prototype */
{
/**
* Adds a command definition to the editor instance. Commands added with
* this function can be executed later with the <code>{@link #execCommand}</code> method.
* @param {String} commandName The indentifier name of the command.
* @param {CKEDITOR.commandDefinition} commandDefinition The command definition.
* @example
* editorInstance.addCommand( 'sample',
* {
* exec : function( editor )
* {
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
* }
* });
*/
addCommand : function( commandName, commandDefinition )
{
return this._.commands[ commandName ] = new CKEDITOR.command( this, commandDefinition );
},
/**
* Adds a piece of CSS code to the editor which will be applied to the WYSIWYG editing document.
* This CSS would not be added to the output, and is there mainly for editor-specific editing requirements.
* Note: This function should be called before the editor is loaded to take effect.
* @param css {String} CSS text.
* @example
* editorInstance.addCss( 'body { background-color: grey; }' );
*/
addCss : function( css )
{
this._.styles.push( css );
},
/**
* Destroys the editor instance, releasing all resources used by it.
* If the editor replaced an element, the element will be recovered.
* @param {Boolean} [noUpdate] If the instance is replacing a DOM
* element, this parameter indicates whether or not to update the
* element with the instance contents.
* @example
* alert( CKEDITOR.instances.editor1 ); // E.g "object"
* <strong>CKEDITOR.instances.editor1.destroy()</strong>;
* alert( CKEDITOR.instances.editor1 ); // "undefined"
*/
destroy : function( noUpdate )
{
if ( !noUpdate )
this.updateElement();
this.fire( 'destroy' );
this.theme && this.theme.destroy( this );
CKEDITOR.remove( this );
CKEDITOR.fire( 'instanceDestroyed', null, this );
},
/**
* Executes a command associated with the editor.
* @param {String} commandName The indentifier name of the command.
* @param {Object} [data] Data to be passed to the command.
* @returns {Boolean} <code>true</code> if the command was executed
* successfully, otherwise <code>false</code>.
* @see CKEDITOR.editor.addCommand
* @example
* editorInstance.execCommand( 'bold' );
*/
execCommand : function( commandName, data )
{
var command = this.getCommand( commandName );
var eventData =
{
name: commandName,
commandData: data,
command: command
};
if ( command && command.state != CKEDITOR.TRISTATE_DISABLED )
{
if ( this.fire( 'beforeCommandExec', eventData ) !== true )
{
eventData.returnValue = command.exec( eventData.commandData );
// Fire the 'afterCommandExec' immediately if command is synchronous.
if ( !command.async && this.fire( 'afterCommandExec', eventData ) !== true )
return eventData.returnValue;
}
}
// throw 'Unknown command name "' + commandName + '"';
return false;
},
/**
* Gets one of the registered commands. Note that after registering a
* command definition with <code>{@link #addCommand}</code>, it is
* transformed internally into an instance of
* <code>{@link CKEDITOR.command}</code>, which will then be returned
* by this function.
* @param {String} commandName The name of the command to be returned.
* This is the same name that is used to register the command with
* <code>addCommand</code>.
* @returns {CKEDITOR.command} The command object identified by the
* provided name.
*/
getCommand : function( commandName )
{
return this._.commands[ commandName ];
},
/**
* Gets the editor data. The data will be in raw format. It is the same
* data that is posted by the editor.
* @type String
* @returns (String) The editor data.
* @example
* if ( CKEDITOR.instances.editor1.<strong>getData()</strong> == '' )
* alert( 'There is no data available' );
*/
getData : function()
{
this.fire( 'beforeGetData' );
var eventData = this._.data;
if ( typeof eventData != 'string' )
{
var element = this.element;
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
eventData = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
else
eventData = '';
}
eventData = { dataValue : eventData };
// Fire "getData" so data manipulation may happen.
this.fire( 'getData', eventData );
return eventData.dataValue;
},
/**
* Gets the "raw data" currently available in the editor. This is a
* fast method which returns the data as is, without processing, so it is
* not recommended to use it on resulting pages. Instead it can be used
* combined with the <code>{@link #loadSnapshot}</code> method in order
* to be able to automatically save the editor data from time to time
* while the user is using the editor, to avoid data loss, without risking
* performance issues.
* @see CKEDITOR.editor.getData
* @example
* alert( editor.getSnapshot() );
*/
getSnapshot : function()
{
var data = this.fire( 'getSnapshot' );
if ( typeof data != 'string' )
{
var element = this.element;
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
data = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
}
return data;
},
/**
* Loads "raw data" into the editor. The data is loaded with processing
* straight to the editing area. It should not be used as a way to load
* any kind of data, but instead in combination with
* <code>{@link #getSnapshot}</code> produced data.
* @see CKEDITOR.editor.setData
* @example
* var data = editor.getSnapshot();
* editor.<strong>loadSnapshot( data )</strong>;
*/
loadSnapshot : function( snapshot )
{
this.fire( 'loadSnapshot', snapshot );
},
/**
* Sets the editor data. The data must be provided in the raw format (HTML).<br />
* <br />
* Note that this method is asynchronous. The <code>callback</code> parameter must
* be used if interaction with the editor is needed after setting the data.
* @param {String} data HTML code to replace the curent content in the
* editor.
* @param {Function} callback Function to be called after the <code>setData</code>
* is completed.
*@param {Boolean} internal Whether to suppress any event firing when copying data
* internally inside the editor.
* @example
* CKEDITOR.instances.editor1.<strong>setData</strong>( '<p>This is the editor data.</p>' );
* @example
* CKEDITOR.instances.editor1.<strong>setData</strong>( '<p>Some other editor data.</p>', function()
* {
* this.checkDirty(); // true
* });
*/
setData : function( data , callback, internal )
{
if( callback )
{
this.on( 'dataReady', function( evt )
{
evt.removeListener();
callback.call( evt.editor );
} );
}
// Fire "setData" so data manipulation may happen.
var eventData = { dataValue : data };
!internal && this.fire( 'setData', eventData );
this._.data = eventData.dataValue;
!internal && this.fire( 'afterSetData', eventData );
},
/**
* Puts or restores the editor into read-only state. When in read-only,
* the user is not able to change the editor contents, but can still use
* some editor features. This function sets the <code>{@link CKEDITOR.config.readOnly}</code>
* property of the editor, firing the <code>{@link CKEDITOR.editor#readOnly}</code> event.<br><br>
* <strong>Note:</strong> the current editing area will be reloaded.
* @param {Boolean} [isReadOnly] Indicates that the editor must go
* read-only (<code>true</code>, default) or be restored and made editable
* (<code>false</code>).
* @since 3.6
*/
setReadOnly : function( isReadOnly )
{
isReadOnly = ( isReadOnly == undefined ) || isReadOnly;
if ( this.readOnly != isReadOnly )
{
this.readOnly = isReadOnly;
// Fire the readOnly event so the editor features can update
// their state accordingly.
this.fire( 'readOnly' );
}
},
/**
* Inserts HTML code into the currently selected position in the editor in WYSIWYG mode.
* @param {String} data HTML code to be inserted into the editor.
* @example
* CKEDITOR.instances.editor1.<strong>insertHtml( '<p>This is a new paragraph.</p>' )</strong>;
*/
insertHtml : function( data )
{
this.fire( 'insertHtml', data );
},
/**
* Insert text content into the currently selected position in the
* editor in WYSIWYG mode. The styles of the selected element will be applied to the inserted text.
* Spaces around the text will be leaving untouched.
* <strong>Note:</strong> two subsequent line-breaks will introduce one paragraph. This depends on <code>{@link CKEDITOR.config.enterMode}</code>;
* A single line-break will be instead translated into one <br />.
* @since 3.5
* @param {String} text Text to be inserted into the editor.
* @example
* CKEDITOR.instances.editor1.<strong>insertText( ' line1 \n\n line2' )</strong>;
*/
insertText : function( text )
{
this.fire( 'insertText', text );
},
/**
* Inserts an element into the currently selected position in the
* editor in WYSIWYG mode.
* @param {CKEDITOR.dom.element} element The element to be inserted
* into the editor.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<img src="hello.png" border="0" title="Hello" />' );
* CKEDITOR.instances.editor1.<strong>insertElement( element )</strong>;
*/
insertElement : function( element )
{
this.fire( 'insertElement', element );
},
/**
* Checks whether the current editor contents contain changes when
* compared to the contents loaded into the editor at startup, or to
* the contents available in the editor when <code>{@link #resetDirty}</code>
* was called.
* @returns {Boolean} "true" is the contents contain changes.
* @example
* function beforeUnload( e )
* {
* if ( CKEDITOR.instances.editor1.<strong>checkDirty()</strong> )
* return e.returnValue = "You will lose the changes made in the editor.";
* }
*
* if ( window.addEventListener )
* window.addEventListener( 'beforeunload', beforeUnload, false );
* else
* window.attachEvent( 'onbeforeunload', beforeUnload );
*/
checkDirty : function()
{
return ( this.mayBeDirty && this._.previousValue !== this.getSnapshot() );
},
/**
* Resets the "dirty state" of the editor so subsequent calls to
* <code>{@link #checkDirty}</code> will return <code>false</code> if the user will not
* have made further changes to the contents.
* @example
* alert( editor.checkDirty() ); // E.g. "true"
* editor.<strong>resetDirty()</strong>;
* alert( editor.checkDirty() ); // "false"
*/
resetDirty : function()
{
if ( this.mayBeDirty )
this._.previousValue = this.getSnapshot();
},
/**
* Updates the <code><textarea></code> element that was replaced by the editor with
* the current data available in the editor.
* @see CKEDITOR.editor.element
* @example
* CKEDITOR.instances.editor1.updateElement();
* alert( document.getElementById( 'editor1' ).value ); // The current editor data.
*/
updateElement : function()
{
var element = this.element;
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
{
var data = this.getData();
if ( this.config.htmlEncodeOutput )
data = CKEDITOR.tools.htmlEncode( data );
if ( element.is( 'textarea' ) )
element.setValue( data );
else
element.setHtml( data );
}
}
});
CKEDITOR.on( 'loaded', function()
{
// Run the full initialization for pending editors.
var pending = CKEDITOR.editor._pending;
if ( pending )
{
delete CKEDITOR.editor._pending;
for ( var i = 0 ; i < pending.length ; i++ )
pending[ i ]._init();
}
});
/**
* Whether to escape HTML when the editor updates the original input element.
* @name CKEDITOR.config.htmlEncodeOutput
* @since 3.1
* @type Boolean
* @default false
* @example
* config.htmlEncodeOutput = true;
*/
/**
* If <code>true</code>, makes the editor start in read-only state. Otherwise, it will check
* if the linked <code><textarea></code> element has the <code>disabled</code> attribute.
* @name CKEDITOR.config.readOnly
* @see CKEDITOR.editor#setReadOnly
* @type Boolean
* @default false
* @since 3.6
* @example
* config.readOnly = true;
*/
/**
* Fired when a CKEDITOR instance is created, but still before initializing it.
* To interact with a fully initialized instance, use the
* <code>{@link CKEDITOR#instanceReady}</code> event instead.
* @name CKEDITOR#instanceCreated
* @event
* @param {CKEDITOR.editor} editor The editor instance that has been created.
*/
/**
* Fired when a CKEDITOR instance is destroyed.
* @name CKEDITOR#instanceDestroyed
* @event
* @param {CKEDITOR.editor} editor The editor instance that has been destroyed.
*/
/**
* Fired when the language is loaded into the editor instance.
* @name CKEDITOR.editor#langLoaded
* @event
* @since 3.6.1
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired when all plugins are loaded and initialized into the editor instance.
* @name CKEDITOR.editor#pluginsLoaded
* @event
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired before the command execution when <code>{@link #execCommand}</code> is called.
* @name CKEDITOR.editor#beforeCommandExec
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.name The command name.
* @param {Object} data.commandData The data to be sent to the command. This
* can be manipulated by the event listener.
* @param {CKEDITOR.command} data.command The command itself.
*/
/**
* Fired after the command execution when <code>{@link #execCommand}</code> is called.
* @name CKEDITOR.editor#afterCommandExec
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.name The command name.
* @param {Object} data.commandData The data sent to the command.
* @param {CKEDITOR.command} data.command The command itself.
* @param {Object} data.returnValue The value returned by the command execution.
*/
/**
* Fired when the custom configuration file is loaded, before the final
* configurations initialization.<br />
* <br />
* Custom configuration files can be loaded thorugh the
* <code>{@link CKEDITOR.config.customConfig}</code> setting. Several files can be loaded
* by changing this setting.
* @name CKEDITOR.editor#customConfigLoaded
* @event
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired once the editor configuration is ready (loaded and processed).
* @name CKEDITOR.editor#configLoaded
* @event
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired when this editor instance is destroyed. The editor at this
* point is not usable and this event should be used to perform the clean-up
* in any plugin.
* @name CKEDITOR.editor#destroy
* @event
*/
/**
* Internal event to get the current data.
* @name CKEDITOR.editor#beforeGetData
* @event
*/
/**
* Internal event to perform the <code>#getSnapshot</code> call.
* @name CKEDITOR.editor#getSnapshot
* @event
*/
/**
* Internal event to perform the <code>#loadSnapshot</code> call.
* @name CKEDITOR.editor#loadSnapshot
* @event
*/
/**
* Event fired before the <code>#getData</code> call returns allowing additional manipulation.
* @name CKEDITOR.editor#getData
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.dataValue The data that will be returned.
*/
/**
* Event fired before the <code>#setData</code> call is executed allowing additional manipulation.
* @name CKEDITOR.editor#setData
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.dataValue The data that will be used.
*/
/**
* Event fired at the end of the <code>#setData</code> call execution. Usually it is better to use the
* <code>{@link CKEDITOR.editor.prototype.dataReady}</code> event.
* @name CKEDITOR.editor#afterSetData
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.dataValue The data that has been set.
*/
/**
* Internal event to perform the <code>#insertHtml</code> call
* @name CKEDITOR.editor#insertHtml
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data The HTML to insert.
*/
/**
* Internal event to perform the <code>#insertText</code> call
* @name CKEDITOR.editor#insertText
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} text The text to insert.
*/
/**
* Internal event to perform the <code>#insertElement</code> call
* @name CKEDITOR.editor#insertElement
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {Object} element The element to insert.
*/
/**
* Event fired after the <code>{@link CKEDITOR.editor#readOnly}</code> property changes.
* @name CKEDITOR.editor#readOnly
* @event
* @since 3.6
* @param {CKEDITOR.editor} editor This editor instance.
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/editor.js
|
JavaScript
|
gpl3
| 34,308
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.event} class, which serves as the
* base for classes and objects that require event handling features.
*/
if ( !CKEDITOR.event )
{
/**
* Creates an event class instance. This constructor is rearely used, being
* the {@link #.implementOn} function used in class prototypes directly
* instead.
* @class This is a base class for classes and objects that require event
* handling features.<br />
* <br />
* Do not confuse this class with {@link CKEDITOR.dom.event} which is
* instead used for DOM events. The CKEDITOR.event class implements the
* internal event system used by the CKEditor to fire API related events.
* @example
*/
CKEDITOR.event = function()
{};
/**
* Implements the {@link CKEDITOR.event} features in an object.
* @param {Object} targetObject The object into which implement the features.
* @example
* var myObject = { message : 'Example' };
* <b>CKEDITOR.event.implementOn( myObject }</b>;
* myObject.on( 'testEvent', function()
* {
* alert( this.message ); // "Example"
* });
* myObject.fire( 'testEvent' );
*/
CKEDITOR.event.implementOn = function( targetObject )
{
var eventProto = CKEDITOR.event.prototype;
for ( var prop in eventProto )
{
if ( targetObject[ prop ] == undefined )
targetObject[ prop ] = eventProto[ prop ];
}
};
CKEDITOR.event.prototype = (function()
{
// Returns the private events object for a given object.
var getPrivate = function( obj )
{
var _ = ( obj.getPrivate && obj.getPrivate() ) || obj._ || ( obj._ = {} );
return _.events || ( _.events = {} );
};
var eventEntry = function( eventName )
{
this.name = eventName;
this.listeners = [];
};
eventEntry.prototype =
{
// Get the listener index for a specified function.
// Returns -1 if not found.
getListenerIndex : function( listenerFunction )
{
for ( var i = 0, listeners = this.listeners ; i < listeners.length ; i++ )
{
if ( listeners[i].fn == listenerFunction )
return i;
}
return -1;
}
};
return /** @lends CKEDITOR.event.prototype */ {
/**
* Registers a listener to a specific event in the current object.
* @param {String} eventName The event name to which listen.
* @param {Function} listenerFunction The function listening to the
* event. A single {@link CKEDITOR.eventInfo} object instanced
* is passed to this function containing all the event data.
* @param {Object} [scopeObj] The object used to scope the listener
* call (the this object. If omitted, the current object is used.
* @param {Object} [listenerData] Data to be sent as the
* {@link CKEDITOR.eventInfo#listenerData} when calling the
* listener.
* @param {Number} [priority] The listener priority. Lower priority
* listeners are called first. Listeners with the same priority
* value are called in registration order. Defaults to 10.
* @example
* someObject.on( 'someEvent', function()
* {
* alert( this == someObject ); // "true"
* });
* @example
* someObject.on( 'someEvent', function()
* {
* alert( this == anotherObject ); // "true"
* }
* , anotherObject );
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( event.listenerData ); // "Example"
* }
* , null, 'Example' );
* @example
* someObject.on( 'someEvent', function() { ... } ); // 2nd called
* someObject.on( 'someEvent', function() { ... }, null, null, 100 ); // 3rd called
* someObject.on( 'someEvent', function() { ... }, null, null, 1 ); // 1st called
*/
on : function( eventName, listenerFunction, scopeObj, listenerData, priority )
{
// Get the event entry (create it if needed).
var events = getPrivate( this ),
event = events[ eventName ] || ( events[ eventName ] = new eventEntry( eventName ) );
if ( event.getListenerIndex( listenerFunction ) < 0 )
{
// Get the listeners.
var listeners = event.listeners;
// Fill the scope.
if ( !scopeObj )
scopeObj = this;
// Default the priority, if needed.
if ( isNaN( priority ) )
priority = 10;
var me = this;
// Create the function to be fired for this listener.
var listenerFirer = function( editor, publisherData, stopFn, cancelFn )
{
var ev =
{
name : eventName,
sender : this,
editor : editor,
data : publisherData,
listenerData : listenerData,
stop : stopFn,
cancel : cancelFn,
removeListener : function()
{
me.removeListener( eventName, listenerFunction );
}
};
listenerFunction.call( scopeObj, ev );
return ev.data;
};
listenerFirer.fn = listenerFunction;
listenerFirer.priority = priority;
// Search for the right position for this new listener, based on its
// priority.
for ( var i = listeners.length - 1 ; i >= 0 ; i-- )
{
// Find the item which should be before the new one.
if ( listeners[ i ].priority <= priority )
{
// Insert the listener in the array.
listeners.splice( i + 1, 0, listenerFirer );
return;
}
}
// If no position has been found (or zero length), put it in
// the front of list.
listeners.unshift( listenerFirer );
}
},
/**
* Fires an specific event in the object. All registered listeners are
* called at this point.
* @function
* @param {String} eventName The event name to fire.
* @param {Object} [data] Data to be sent as the
* {@link CKEDITOR.eventInfo#data} when calling the
* listeners.
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
* {@link CKEDITOR.eventInfo#editor} when calling the
* listener.
* @returns {Boolean|Object} A booloan indicating that the event is to be
* canceled, or data returned by one of the listeners.
* @example
* someObject.on( 'someEvent', function() { ... } );
* someObject.on( 'someEvent', function() { ... } );
* <b>someObject.fire( 'someEvent' )</b>; // both listeners are called
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( event.data ); // "Example"
* });
* <b>someObject.fire( 'someEvent', 'Example' )</b>;
*/
fire : (function()
{
// Create the function that marks the event as stopped.
var stopped = false;
var stopEvent = function()
{
stopped = true;
};
// Create the function that marks the event as canceled.
var canceled = false;
var cancelEvent = function()
{
canceled = true;
};
return function( eventName, data, editor )
{
// Get the event entry.
var event = getPrivate( this )[ eventName ];
// Save the previous stopped and cancelled states. We may
// be nesting fire() calls.
var previousStopped = stopped,
previousCancelled = canceled;
// Reset the stopped and canceled flags.
stopped = canceled = false;
if ( event )
{
var listeners = event.listeners;
if ( listeners.length )
{
// As some listeners may remove themselves from the
// event, the original array length is dinamic. So,
// let's make a copy of all listeners, so we are
// sure we'll call all of them.
listeners = listeners.slice( 0 );
// Loop through all listeners.
for ( var i = 0 ; i < listeners.length ; i++ )
{
// Call the listener, passing the event data.
var retData = listeners[i].call( this, editor, data, stopEvent, cancelEvent );
if ( typeof retData != 'undefined' )
data = retData;
// No further calls is stopped or canceled.
if ( stopped || canceled )
break;
}
}
}
var ret = canceled || ( typeof data == 'undefined' ? false : data );
// Restore the previous stopped and canceled states.
stopped = previousStopped;
canceled = previousCancelled;
return ret;
};
})(),
/**
* Fires an specific event in the object, releasing all listeners
* registered to that event. The same listeners are not called again on
* successive calls of it or of {@link #fire}.
* @param {String} eventName The event name to fire.
* @param {Object} [data] Data to be sent as the
* {@link CKEDITOR.eventInfo#data} when calling the
* listeners.
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
* {@link CKEDITOR.eventInfo#editor} when calling the
* listener.
* @returns {Boolean|Object} A booloan indicating that the event is to be
* canceled, or data returned by one of the listeners.
* @example
* someObject.on( 'someEvent', function() { ... } );
* someObject.fire( 'someEvent' ); // above listener called
* <b>someObject.fireOnce( 'someEvent' )</b>; // above listener called
* someObject.fire( 'someEvent' ); // no listeners called
*/
fireOnce : function( eventName, data, editor )
{
var ret = this.fire( eventName, data, editor );
delete getPrivate( this )[ eventName ];
return ret;
},
/**
* Unregisters a listener function from being called at the specified
* event. No errors are thrown if the listener has not been
* registered previously.
* @param {String} eventName The event name.
* @param {Function} listenerFunction The listener function to unregister.
* @example
* var myListener = function() { ... };
* someObject.on( 'someEvent', myListener );
* someObject.fire( 'someEvent' ); // myListener called
* <b>someObject.removeListener( 'someEvent', myListener )</b>;
* someObject.fire( 'someEvent' ); // myListener not called
*/
removeListener : function( eventName, listenerFunction )
{
// Get the event entry.
var event = getPrivate( this )[ eventName ];
if ( event )
{
var index = event.getListenerIndex( listenerFunction );
if ( index >= 0 )
event.listeners.splice( index, 1 );
}
},
/**
* Checks if there is any listener registered to a given event.
* @param {String} eventName The event name.
* @example
* var myListener = function() { ... };
* someObject.on( 'someEvent', myListener );
* alert( someObject.<b>hasListeners( 'someEvent' )</b> ); // "true"
* alert( someObject.<b>hasListeners( 'noEvent' )</b> ); // "false"
*/
hasListeners : function( eventName )
{
var event = getPrivate( this )[ eventName ];
return ( event && event.listeners.length > 0 ) ;
}
};
})();
}
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/event.js
|
JavaScript
|
gpl3
| 11,337
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.dataProcessor} class, which
* defines the basic structure of data processor objects to be
* set to {@link CKEDITOR.editor.dataProcessor}.
*/
/**
* If defined, points to the data processor which is responsible to translate
* and transform the editor data on input and output.
* Generaly it will point to an instance of {@link CKEDITOR.htmlDataProcessor},
* which handles HTML data. The editor may also handle other data formats by
* using different data processors provided by specific plugins.
* @name CKEDITOR.editor.prototype.dataProcessor
* @type CKEDITOR.dataProcessor
*/
/**
* This class is here for documentation purposes only and is not really part of
* the API. It serves as the base ("interface") for data processors
* implementation.
* @name CKEDITOR.dataProcessor
* @class Represents a data processor, which is responsible to translate and
* transform the editor data on input and output.
* @example
*/
/**
* Transforms input data into HTML to be loaded in the editor.
* While the editor is able to handle non HTML data (like BBCode), at runtime
* it can handle HTML data only. The role of the data processor is transforming
* the input data into HTML through this function.
* @name CKEDITOR.dataProcessor.prototype.toHtml
* @function
* @param {String} data The input data to be transformed.
* @param {String} [fixForBody] The tag name to be used if the data must be
* fixed because it is supposed to be loaded direcly into the <body>
* tag. This is generally not used by non-HTML data processors.
* @example
* // Tranforming BBCode data, having a custom BBCode data processor.
* var data = 'This is [b]an example[/b].';
* var html = editor.dataProcessor.toHtml( data ); // '<p>This is <b>an example</b>.</p>'
*/
/**
* Transforms HTML into data to be outputted by the editor, in the format
* expected by the data processor.
* While the editor is able to handle non HTML data (like BBCode), at runtime
* it can handle HTML data only. The role of the data processor is transforming
* the HTML data containined by the editor into a specific data format through
* this function.
* @name CKEDITOR.dataProcessor.prototype.toDataFormat
* @function
* @param {String} html The HTML to be transformed.
* @param {String} fixForBody The tag name to be used if the output data is
* coming from <body> and may be eventually fixed for it. This is
* generally not used by non-HTML data processors.
* // Tranforming into BBCode data, having a custom BBCode data processor.
* var html = '<p>This is <b>an example</b>.</p>';
* var data = editor.dataProcessor.toDataFormat( html ); // 'This is [b]an example[/b].'
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/core/dataprocessor.js
|
JavaScript
|
gpl3
| 3,009
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @name CKEDITOR.theme
* @class
*/
CKEDITOR.themes.add( 'default', (function()
{
var hiddenSkins = {};
function checkSharedSpace( editor, spaceName )
{
var container,
element;
// Try to retrieve the target element from the sharedSpaces settings.
element = editor.config.sharedSpaces;
element = element && element[ spaceName ];
element = element && CKEDITOR.document.getById( element );
// If the element is available, we'll then create the container for
// the space.
if ( element )
{
// Creates an HTML structure that reproduces the editor class hierarchy.
var html =
'<span class="cke_shared "' +
' dir="'+ editor.lang.dir + '"' +
'>' +
'<span class="' + editor.skinClass + ' ' + editor.id + ' cke_editor_' + editor.name + '">' +
'<span class="' + CKEDITOR.env.cssClass + '">' +
'<span class="cke_wrapper cke_' + editor.lang.dir + '">' +
'<span class="cke_editor">' +
'<div class="cke_' + spaceName + '">' +
'</div></span></span></span></span></span>';
var mainContainer = element.append( CKEDITOR.dom.element.createFromHtml( html, element.getDocument() ) );
// Only the first container starts visible. Others get hidden.
if ( element.getCustomData( 'cke_hasshared' ) )
mainContainer.hide();
else
element.setCustomData( 'cke_hasshared', 1 );
// Get the deeper inner <div>.
container = mainContainer.getChild( [0,0,0,0] );
// Save a reference to the shared space container.
!editor.sharedSpaces && ( editor.sharedSpaces = {} );
editor.sharedSpaces[ spaceName ] = container;
// When the editor gets focus, we show the space container, hiding others.
editor.on( 'focus', function()
{
for ( var i = 0, sibling, children = element.getChildren() ; ( sibling = children.getItem( i ) ) ; i++ )
{
if ( sibling.type == CKEDITOR.NODE_ELEMENT
&& !sibling.equals( mainContainer )
&& sibling.hasClass( 'cke_shared' ) )
{
sibling.hide();
}
}
mainContainer.show();
});
editor.on( 'destroy', function()
{
mainContainer.remove();
});
}
return container;
}
return /** @lends CKEDITOR.theme */ {
build : function( editor, themePath )
{
var name = editor.name,
element = editor.element,
elementMode = editor.elementMode;
if ( !element || elementMode == CKEDITOR.ELEMENT_MODE_NONE )
return;
if ( elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
element.hide();
// Get the HTML for the predefined spaces.
var topHtml = editor.fire( 'themeSpace', { space : 'top', html : '' } ).html;
var contentsHtml = editor.fire( 'themeSpace', { space : 'contents', html : '' } ).html;
var bottomHtml = editor.fireOnce( 'themeSpace', { space : 'bottom', html : '' } ).html;
var height = contentsHtml && editor.config.height;
var tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0;
// The editor height is considered only if the contents space got filled.
if ( !contentsHtml )
height = 'auto';
else if ( !isNaN( height ) )
height += 'px';
var style = '';
var width = editor.config.width;
if ( width )
{
if ( !isNaN( width ) )
width += 'px';
style += "width: " + width + ";";
}
var sharedTop = topHtml && checkSharedSpace( editor, 'top' ),
sharedBottoms = checkSharedSpace( editor, 'bottom' );
sharedTop && ( sharedTop.setHtml( topHtml ) , topHtml = '' );
sharedBottoms && ( sharedBottoms.setHtml( bottomHtml ), bottomHtml = '' );
var hideSkin = '<style>.' + editor.skinClass + '{visibility:hidden;}</style>';
if ( hiddenSkins[ editor.skinClass ] )
hideSkin = '';
else
hiddenSkins[ editor.skinClass ] = 1;
var container = CKEDITOR.dom.element.createFromHtml( [
'<span' +
' id="cke_', name, '"' +
' class="', editor.skinClass, ' ', editor.id, ' cke_editor_', name, '"' +
' dir="', editor.lang.dir, '"' +
' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' +
' lang="', editor.langCode, '"' +
( CKEDITOR.env.webkit? ' tabindex="' + tabIndex + '"' : '' ) +
' role="application"' +
' aria-labelledby="cke_', name, '_arialbl"' +
( style ? ' style="' + style + '"' : '' ) +
'>' +
'<span id="cke_', name, '_arialbl" class="cke_voice_label">' + editor.lang.editor + '</span>' +
'<span class="' , CKEDITOR.env.cssClass, '" role="presentation">' +
'<span class="cke_wrapper cke_', editor.lang.dir, '" role="presentation">' +
'<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" role="presentation"><tbody>' +
'<tr', topHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_top_' , name, '" class="cke_top" role="presentation">' , topHtml , '</td></tr>' +
'<tr', contentsHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_contents_', name, '" class="cke_contents" style="height:', height, '" role="presentation">', contentsHtml, '</td></tr>' +
'<tr', bottomHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_bottom_' , name, '" class="cke_bottom" role="presentation">' , bottomHtml , '</td></tr>' +
'</tbody></table>' +
//Hide the container when loading skins, later restored by skin css.
hideSkin +
'</span>' +
'</span>' +
'</span>' ].join( '' ) );
container.getChild( [1, 0, 0, 0, 0] ).unselectable();
container.getChild( [1, 0, 0, 0, 2] ).unselectable();
if ( elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
container.insertAfter( element );
else
element.append( container );
/**
* The DOM element that holds the main editor interface.
* @name CKEDITOR.editor.prototype.container
* @type CKEDITOR.dom.element
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <b>editor.container</b>.getName() ); "span"
*/
editor.container = container;
// Disable browser context menu for editor's chrome.
container.disableContextMenu();
// Use a class to indicate that the current selection is in different direction than the UI.
editor.on( 'contentDirChanged', function( evt )
{
var func = ( editor.lang.dir != evt.data ? 'add' : 'remove' ) + 'Class';
container.getChild( 1 )[ func ]( 'cke_mixed_dir_content' );
// Put the mixed direction class on the respective element also for shared spaces.
var toolbarSpace = this.sharedSpaces && this.sharedSpaces[ this.config.toolbarLocation ];
toolbarSpace && toolbarSpace.getParent().getParent()[ func ]( 'cke_mixed_dir_content' );
});
editor.fireOnce( 'themeLoaded' );
editor.fireOnce( 'uiReady' );
},
buildDialog : function( editor )
{
var baseIdNumber = CKEDITOR.tools.getNextNumber();
var element = CKEDITOR.dom.element.createFromHtml( [
'<div class="', editor.id, '_dialog cke_editor_', editor.name.replace('.', '\\.'), '_dialog cke_skin_', editor.skinName,
'" dir="', editor.lang.dir, '"' +
' lang="', editor.langCode, '"' +
' role="dialog"' +
' aria-labelledby="%title#"' +
'>' +
'<table class="cke_dialog', ' ' + CKEDITOR.env.cssClass,
' cke_', editor.lang.dir, '" style="position:absolute" role="presentation">' +
'<tr><td role="presentation">' +
'<div class="%body" role="presentation">' +
'<div id="%title#" class="%title" role="presentation"></div>' +
'<a id="%close_button#" class="%close_button" href="javascript:void(0)" title="' + editor.lang.common.close+'" role="button"><span class="cke_label">X</span></a>' +
'<div id="%tabs#" class="%tabs" role="tablist"></div>' +
'<table class="%contents" role="presentation">' +
'<tr>' +
'<td id="%contents#" class="%contents" role="presentation"></td>' +
'</tr>' +
'<tr>' +
'<td id="%footer#" class="%footer" role="presentation"></td>' +
'</tr>' +
'</table>' +
'</div>' +
'<div id="%tl#" class="%tl"></div>' +
'<div id="%tc#" class="%tc"></div>' +
'<div id="%tr#" class="%tr"></div>' +
'<div id="%ml#" class="%ml"></div>' +
'<div id="%mr#" class="%mr"></div>' +
'<div id="%bl#" class="%bl"></div>' +
'<div id="%bc#" class="%bc"></div>' +
'<div id="%br#" class="%br"></div>' +
'</td></tr>' +
'</table>',
//Hide the container when loading skins, later restored by skin css.
( CKEDITOR.env.ie ? '' : '<style>.cke_dialog{visibility:hidden;}</style>' ),
'</div>'
].join( '' )
.replace( /#/g, '_' + baseIdNumber )
.replace( /%/g, 'cke_dialog_' ) );
var body = element.getChild( [ 0, 0, 0, 0, 0 ] ),
title = body.getChild( 0 ),
close = body.getChild( 1 );
// IFrame shim for dialog that masks activeX in IE. (#7619)
if ( CKEDITOR.env.ie && !CKEDITOR.env.ie6Compat )
{
var isCustomDomain = CKEDITOR.env.isCustomDomain(),
src = 'javascript:void(function(){' + encodeURIComponent( 'document.open();' + ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + 'document.close();' ) + '}())',
iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' +
' frameBorder="0"' +
' class="cke_iframe_shim"' +
' src="' + src + '"' +
' tabIndex="-1"' +
'></iframe>' );
iframe.appendTo( body.getParent() );
}
// Make the Title and Close Button unselectable.
title.unselectable();
close.unselectable();
return {
element : element,
parts :
{
dialog : element.getChild( 0 ),
title : title,
close : close,
tabs : body.getChild( 2 ),
contents : body.getChild( [ 3, 0, 0, 0 ] ),
footer : body.getChild( [ 3, 0, 1, 0 ] )
}
};
},
destroy : function( editor )
{
var container = editor.container,
element = editor.element;
if ( container )
{
container.clearCustomData();
container.remove();
}
if ( element )
{
element.clearCustomData();
editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.show();
delete editor.element;
}
}
};
})() );
/**
* Returns the DOM element that represents a theme space. The default theme defines
* three spaces, namely "top", "contents" and "bottom", representing the main
* blocks that compose the editor interface.
* @param {String} spaceName The space name.
* @returns {CKEDITOR.dom.element} The element that represents the space.
* @example
* // Hide the bottom space in the UI.
* var bottom = editor.getThemeSpace( 'bottom' );
* bottom.setStyle( 'display', 'none' );
*/
CKEDITOR.editor.prototype.getThemeSpace = function( spaceName )
{
var spacePrefix = 'cke_' + spaceName;
var space = this._[ spacePrefix ] ||
( this._[ spacePrefix ] = CKEDITOR.document.getById( spacePrefix + '_' + this.name ) );
return space;
};
/**
* Resizes the editor interface.
* @param {Number|String} width The new width. It can be an pixels integer or a
* CSS size value.
* @param {Number|String} height The new height. It can be an pixels integer or
* a CSS size value.
* @param {Boolean} [isContentHeight] Indicates that the provided height is to
* be applied to the editor contents space, not to the entire editor
* interface. Defaults to false.
* @param {Boolean} [resizeInner] Indicates that the first inner interface
* element must receive the size, not the outer element. The default theme
* defines the interface inside a pair of span elements
* (<span><span>...</span></span>). By default the
* first span element receives the sizes. If this parameter is set to
* true, the second span is sized instead.
* @example
* editor.resize( 900, 300 );
* @example
* editor.resize( '100%', 450, true );
*/
CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, resizeInner )
{
var container = this.container,
contents = CKEDITOR.document.getById( 'cke_contents_' + this.name ),
contentsFrame = CKEDITOR.env.webkit && this.document && this.document.getWindow().$.frameElement,
outer = resizeInner ? container.getChild( 1 ) : container;
// Set as border box width. (#5353)
outer.setSize( 'width', width, true );
// WebKit needs to refresh the iframe size to avoid rendering issues. (1/2) (#8348)
contentsFrame && ( contentsFrame.style.width = '1%' );
// Get the height delta between the outer table and the content area.
// If we're setting the content area's height, then we don't need the delta.
var delta = isContentHeight ? 0 : ( outer.$.offsetHeight || 0 ) - ( contents.$.clientHeight || 0 );
contents.setStyle( 'height', Math.max( height - delta, 0 ) + 'px' );
// WebKit needs to refresh the iframe size to avoid rendering issues. (2/2) (#8348)
contentsFrame && ( contentsFrame.style.width = '100%' );
// Emit a resize event.
this.fire( 'resize' );
};
/**
* Gets the element that can be freely used to check the editor size. This method
* is mainly used by the resize plugin, which adds a UI handle that can be used
* to resize the editor.
* @param {Boolean} forContents Whether to return the "contents" part of the theme instead of the container.
* @returns {CKEDITOR.dom.element} The resizable element.
* @example
*/
CKEDITOR.editor.prototype.getResizable = function( forContents )
{
return forContents ? CKEDITOR.document.getById( 'cke_contents_' + this.name ) : this.container;
};
/**
* Makes it possible to place some of the editor UI blocks, like the toolbar
* and the elements path, into any element in the page.
* The elements used to hold the UI blocks can be shared among several editor
* instances. In that case, only the blocks of the active editor instance will
* display.
* @name CKEDITOR.config.sharedSpaces
* @type Object
* @default undefined
* @example
* // Place the toolbar inside the element with ID "someElementId" and the
* // elements path into the element with ID "anotherId".
* config.sharedSpaces =
* {
* top : 'someElementId',
* bottom : 'anotherId'
* };
* @example
* // Place the toolbar inside the element with ID "someElementId". The
* // elements path will remain attached to the editor UI.
* config.sharedSpaces =
* {
* top : 'someElementId'
* };
*/
/**
* Fired after the editor instance is resized through
* the {@link CKEDITOR.editor.prototype.resize} method.
* @name CKEDITOR.editor#resize
* @event
*/
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/includes/ckeditor/_source/themes/default/theme.js
|
JavaScript
|
gpl3
| 15,021
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0; url=quan_tri/dang_nhap.php" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
|
10-ptud-v1
|
trunk/ 10-ptud-v1/admin/index.php
|
Hack
|
gpl3
| 391
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI removeClass</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/removeClass?section=1" title="Edit section: removeClass( [class], [duration] )">edit</a>]</div><a name="removeClass.28_.5Bclass.5D.2C_.5Bduration.5D_.29"></a><h3>removeClass( <span class="optional">[</span>class<span class="optional">]</span>, <span class="optional">[</span>duration<span class="optional">]</span> )</h3>
<p>Removes all or specified class from each of the set of matched elements with an optional transition between the states.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="100">
Removes the class 'selected' from the matched elements with a one second transition.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">removeClass</strong>("selected", 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<style type="text/css">
p { cursor: pointer; font-size: 1.2em; }
.selected { color:red; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">removeClass</strong>("selected", 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p class="selected">Click me to remove 'selected' class.</p>
<p class="selected">Click me to remove 'selected' class.</p>
<p class="selected">Click me to remove 'selected' class.</p>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-class">
<div class="option-header">
<h3 class="option-name"><a href="#option-class">class</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>CSS classes to remove from the elements.</p>
</div>
</li>
<li class="option" id="option-duration">
<div class="option-header">
<h3 class="option-name"><a href="#option-duration">duration</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 5297 bytes
Post-expand include size: 7164 bytes
Template argument size: 4498 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2607-1!1!0!!en!2 and timestamp 20110119144608 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/removeClass.html
|
HTML
|
gpl3
| 4,306
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Dialog</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>A dialog is a floating window that contains a title bar and a content area. The dialog window can be moved, resized and closed with the 'x' icon by default.</p>
<p>If the content length exceeds the maximum height, a scrollbar will automatically appear.</p>
<p>A bottom button bar and semi-transparent modal overlay layer are common options that can be added.</p>
<p>A call to <code>$(foo).dialog()</code> will initialize a dialog instance and will auto-open the dialog by default. If you want to reuse a dialog, the easiest way is to disable the "auto-open" option with: <code>$(foo).dialog({ autoOpen: false })</code> and open it with <code>$(foo).dialog('open')</code>. To close it, use <code>$(foo).dialog('close')</code>. A more in-depth explanation with a full demo is available on <a href="http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/" class="external text" title="http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/">the Nemikor blog</a>.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Mouse (Optional; only needed if using UI Draggable or UI Resizable)</li>
<li>UI Draggable (Optional)</li>
<li>UI Resizable (Optional)</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="300">
A simple jQuery UI Dialog.<br />
</p>
<pre>$("#dialog").dialog();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#dialog").dialog();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="dialog" title="Dialog Title">I'm in a dialog</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the dialog. Can be set when initialising (first creating) the dialog.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).dialog( "option", "disabled" );
//setter
$( ".selector" ).dialog( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-autoOpen">
<div class="option-header">
<h3 class="option-name"><a href="#option-autoOpen">autoOpen</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>When <i>autoOpen</i> is <i>true</i> the dialog will open automatically when <i>dialog</i> is called. If <i>false</i> it will stay hidden until <i>.dialog("open")</i> is called on it.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>autoOpen</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ autoOpen: false });</code></pre>
</dd>
<dt>
Get or set the <code>autoOpen</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var autoOpen = $( ".selector" ).dialog( "option", "autoOpen" );
//setter
$( ".selector" ).dialog( "option", "autoOpen", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-buttons">
<div class="option-header">
<h3 class="option-name"><a href="#option-buttons">buttons</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Object</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">{ }</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies which buttons should be displayed on the dialog. The property key is the text of the button. The value is the callback function for when the button is clicked. The context of the callback is the dialog element; if you need access to the button, it is available as the target of the event object.
</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>buttons</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ buttons: { "Ok": function() { $(this).dialog("close"); } } });</code></pre>
</dd>
<dt>
Get or set the <code>buttons</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var buttons = $( ".selector" ).dialog( "option", "buttons" );
//setter
$( ".selector" ).dialog( "option", "buttons", { "Ok": function() { $(this).dialog("close"); } } );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-buttons">
<div class="option-header">
<h3 class="option-name"><a href="#option-buttons">buttons</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">[ ]</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies which buttons should be displayed on the dialog. Each element of the array must be an Object defining the properties to set on the button.
</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>buttons</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ buttons: [
{
text: "Ok",
click: function() { $(this).dialog("close"); }
}
] });</code></pre>
</dd>
<dt>
Get or set the <code>buttons</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var buttons = $( ".selector" ).dialog( "option", "buttons" );
//setter
$( ".selector" ).dialog( "option", "buttons", [
{
text: "Ok",
click: function() { $(this).dialog("close"); }
}
] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-closeOnEscape">
<div class="option-header">
<h3 class="option-name"><a href="#option-closeOnEscape">closeOnEscape</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies whether the dialog should close when it has focus and the user presses the esacpe (ESC) key.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>closeOnEscape</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ closeOnEscape: false });</code></pre>
</dd>
<dt>
Get or set the <code>closeOnEscape</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var closeOnEscape = $( ".selector" ).dialog( "option", "closeOnEscape" );
//setter
$( ".selector" ).dialog( "option", "closeOnEscape", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-closeText">
<div class="option-header">
<h3 class="option-name"><a href="#option-closeText">closeText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'close'</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies the text for the close button. Note that the close text is visibly hidden when using a standard theme.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>closeText</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ closeText: 'hide' });</code></pre>
</dd>
<dt>
Get or set the <code>closeText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var closeText = $( ".selector" ).dialog( "option", "closeText" );
//setter
$( ".selector" ).dialog( "option", "closeText", 'hide' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-dialogClass">
<div class="option-header">
<h3 class="option-name"><a href="#option-dialogClass">dialogClass</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The specified class name(s) will be added to the dialog, for additional theming.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>dialogClass</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ dialogClass: 'alert' });</code></pre>
</dd>
<dt>
Get or set the <code>dialogClass</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var dialogClass = $( ".selector" ).dialog( "option", "dialogClass" );
//setter
$( ".selector" ).dialog( "option", "dialogClass", 'alert' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-draggable">
<div class="option-header">
<h3 class="option-name"><a href="#option-draggable">draggable</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, the dialog will be draggable will be draggable by the titlebar.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>draggable</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ draggable: false });</code></pre>
</dd>
<dt>
Get or set the <code>draggable</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var draggable = $( ".selector" ).dialog( "option", "draggable" );
//setter
$( ".selector" ).dialog( "option", "draggable", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-height">
<div class="option-header">
<h3 class="option-name"><a href="#option-height">height</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'auto'</dd>
</dl>
</div>
<div class="option-description">
<p>The height of the dialog, in pixels. Specifying 'auto' is also supported to make the dialog adjust based on its content.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>height</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ height: 530 });</code></pre>
</dd>
<dt>
Get or set the <code>height</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var height = $( ".selector" ).dialog( "option", "height" );
//setter
$( ".selector" ).dialog( "option", "height", 530 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-hide">
<div class="option-header">
<h3 class="option-name"><a href="#option-hide">hide</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>The effect to be used when the dialog is closed.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>hide</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ hide: 'slide' });</code></pre>
</dd>
<dt>
Get or set the <code>hide</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var hide = $( ".selector" ).dialog( "option", "hide" );
//setter
$( ".selector" ).dialog( "option", "hide", 'slide' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-maxHeight">
<div class="option-header">
<h3 class="option-name"><a href="#option-maxHeight">maxHeight</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>The maximum height to which the dialog can be resized, in pixels.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>maxHeight</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ maxHeight: 400 });</code></pre>
</dd>
<dt>
Get or set the <code>maxHeight</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var maxHeight = $( ".selector" ).dialog( "option", "maxHeight" );
//setter
$( ".selector" ).dialog( "option", "maxHeight", 400 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-maxWidth">
<div class="option-header">
<h3 class="option-name"><a href="#option-maxWidth">maxWidth</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>The maximum width to which the dialog can be resized, in pixels.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>maxWidth</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ maxWidth: 600 });</code></pre>
</dd>
<dt>
Get or set the <code>maxWidth</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var maxWidth = $( ".selector" ).dialog( "option", "maxWidth" );
//setter
$( ".selector" ).dialog( "option", "maxWidth", 600 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-minHeight">
<div class="option-header">
<h3 class="option-name"><a href="#option-minHeight">minHeight</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">150</dd>
</dl>
</div>
<div class="option-description">
<p>The minimum height to which the dialog can be resized, in pixels.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>minHeight</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ minHeight: 300 });</code></pre>
</dd>
<dt>
Get or set the <code>minHeight</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var minHeight = $( ".selector" ).dialog( "option", "minHeight" );
//setter
$( ".selector" ).dialog( "option", "minHeight", 300 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-minWidth">
<div class="option-header">
<h3 class="option-name"><a href="#option-minWidth">minWidth</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">150</dd>
</dl>
</div>
<div class="option-description">
<p>The minimum width to which the dialog can be resized, in pixels.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>minWidth</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ minWidth: 400 });</code></pre>
</dd>
<dt>
Get or set the <code>minWidth</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var minWidth = $( ".selector" ).dialog( "option", "minWidth" );
//setter
$( ".selector" ).dialog( "option", "minWidth", 400 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-modal">
<div class="option-header">
<h3 class="option-name"><a href="#option-modal">modal</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, the dialog will have modal behavior; other items on the page will be disabled (i.e. cannot be interacted with). Modal dialogs create an overlay below the dialog but above other page elements.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>modal</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ modal: true });</code></pre>
</dd>
<dt>
Get or set the <code>modal</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var modal = $( ".selector" ).dialog( "option", "modal" );
//setter
$( ".selector" ).dialog( "option", "modal", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-position">
<div class="option-header">
<h3 class="option-name"><a href="#option-position">position</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'center'</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies where the dialog should be displayed. Possible values: <br />1) a single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'. <br />2) an array containing an <em>x,y</em> coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100]) <br />3) an array containing <em>x,y</em> position string values (e.g. ['right','top'] for top right corner).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>position</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ position: 'top' });</code></pre>
</dd>
<dt>
Get or set the <code>position</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var position = $( ".selector" ).dialog( "option", "position" );
//setter
$( ".selector" ).dialog( "option", "position", 'top' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-resizable">
<div class="option-header">
<h3 class="option-name"><a href="#option-resizable">resizable</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, the dialog will be resizeable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>resizable</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ resizable: false });</code></pre>
</dd>
<dt>
Get or set the <code>resizable</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var resizable = $( ".selector" ).dialog( "option", "resizable" );
//setter
$( ".selector" ).dialog( "option", "resizable", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-show">
<div class="option-header">
<h3 class="option-name"><a href="#option-show">show</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>The effect to be used when the dialog is opened.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>show</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ show: 'slide' });</code></pre>
</dd>
<dt>
Get or set the <code>show</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var show = $( ".selector" ).dialog( "option", "show" );
//setter
$( ".selector" ).dialog( "option", "show", 'slide' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-stack">
<div class="option-header">
<h3 class="option-name"><a href="#option-stack">stack</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies whether the dialog will stack on top of other dialogs. This will cause the dialog to move to the front of other dialogs when it gains focus.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>stack</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ stack: false });</code></pre>
</dd>
<dt>
Get or set the <code>stack</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var stack = $( ".selector" ).dialog( "option", "stack" );
//setter
$( ".selector" ).dialog( "option", "stack", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-title">
<div class="option-header">
<h3 class="option-name"><a href="#option-title">title</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies the title of the dialog. Any valid HTML may be set as the title. The title can also be specified by the title attribute on the dialog source element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>title</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ title: 'Dialog Title' });</code></pre>
</dd>
<dt>
Get or set the <code>title</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var title = $( ".selector" ).dialog( "option", "title" );
//setter
$( ".selector" ).dialog( "option", "title", 'Dialog Title' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-width">
<div class="option-header">
<h3 class="option-name"><a href="#option-width">width</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">300</dd>
</dl>
</div>
<div class="option-description">
<p>The width of the dialog, in pixels.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>width</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ width: 460 });</code></pre>
</dd>
<dt>
Get or set the <code>width</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var width = $( ".selector" ).dialog( "option", "width" );
//setter
$( ".selector" ).dialog( "option", "width", 460 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-zIndex">
<div class="option-header">
<h3 class="option-name"><a href="#option-zIndex">zIndex</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1000</dd>
</dl>
</div>
<div class="option-description">
<p>The starting z-index for the dialog.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a dialog with the <code>zIndex</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({ zIndex: 3999 });</code></pre>
</dd>
<dt>
Get or set the <code>zIndex</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var zIndex = $( ".selector" ).dialog( "option", "zIndex" );
//setter
$( ".selector" ).dialog( "option", "zIndex", 3999 );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogcreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when dialog is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>dialogcreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogcreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-beforeClose">
<div class="event-header">
<h3 class="event-name"><a href="#event-beforeClose">beforeClose</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogbeforeclose</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a dialog attempts to close. If the beforeClose event handler (callback function) returns false, the close will be prevented.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>beforeClose</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
beforeClose: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>beforeClose</code> event by type: <code>dialogbeforeclose</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogbeforeclose", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-open">
<div class="event-header">
<h3 class="event-name"><a href="#event-open">open</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogopen</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when dialog is opened.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>open</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
open: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>open</code> event by type: <code>dialogopen</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogopen", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-focus">
<div class="event-header">
<h3 class="event-name"><a href="#event-focus">focus</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogfocus</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the dialog gains focus.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>focus</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
focus: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>focus</code> event by type: <code>dialogfocus</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogfocus", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-dragStart">
<div class="event-header">
<h3 class="event-name"><a href="#event-dragStart">dragStart</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogdragstart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the beginning of the dialog being dragged.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>dragStart</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
dragStart: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>dragStart</code> event by type: <code>dialogdragstart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogdragstart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-drag">
<div class="event-header">
<h3 class="event-name"><a href="#event-drag">drag</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogdrag</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the dialog is dragged.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>drag</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
drag: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>drag</code> event by type: <code>dialogdrag</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogdrag", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-dragStop">
<div class="event-header">
<h3 class="event-name"><a href="#event-dragStop">dragStop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogdragstop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered after the dialog has been dragged.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>dragStop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
dragStop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>dragStop</code> event by type: <code>dialogdragstop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogdragstop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-resizeStart">
<div class="event-header">
<h3 class="event-name"><a href="#event-resizeStart">resizeStart</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogresizestart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the beginning of the dialog being resized.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>resizeStart</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
resizeStart: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>resizeStart</code> event by type: <code>dialogresizestart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogresizestart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-resize">
<div class="event-header">
<h3 class="event-name"><a href="#event-resize">resize</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogresize</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the dialog is resized. <a href="http://www.jsfiddle.net/Jp7TM/18/" class="external text" title="http://www.jsfiddle.net/Jp7TM/18/">demo</a></p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>resize</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
resize: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>resize</code> event by type: <code>dialogresize</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogresize", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-resizeStop">
<div class="event-header">
<h3 class="event-name"><a href="#event-resizeStop">resizeStop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogresizestop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered after the dialog has been resized.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>resizeStop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
resizeStop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>resizeStop</code> event by type: <code>dialogresizestop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogresizestop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-close">
<div class="event-header">
<h3 class="event-name"><a href="#event-close">close</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dialogclose</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the dialog is closed.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>close</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).dialog({
close: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>close</code> event by type: <code>dialogclose</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dialogclose", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the dialog functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the dialog.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the dialog.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any dialog option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple dialog options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-dialog element.</p>
</div>
</li>
<li class="method" id="method-close">
<div class="method-header">
<h3 class="method-name"><a href="#method-close">close</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "close"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Close the dialog.</p>
</div>
</li>
<li class="method" id="method-isOpen">
<div class="method-header">
<h3 class="method-name"><a href="#method-isOpen">isOpen</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "isOpen"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns true if the dialog is currently open.</p>
</div>
</li>
<li class="method" id="method-moveToTop">
<div class="method-header">
<h3 class="method-name"><a href="#method-moveToTop">moveToTop</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "moveToTop"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Move the dialog to the top of the dialogs stack.</p>
</div>
</li>
<li class="method" id="method-open">
<div class="method-header">
<h3 class="method-name"><a href="#method-open">open</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.dialog( "open"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Open the dialog.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Dialog plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.dialog.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="<strong>ui-dialog</strong> ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable"><br />
<div class="<strong>ui-dialog-titlebar</strong> ui-widget-header ui-corner-all ui-helper-clearfix"><br />
<span id="<strong>ui-dialog-title-dialog</strong>" class="ui-dialog-title">Dialog title</span><br />
<a class="<strong>ui-dialog-titlebar-close</strong> ui-corner-all" href="#"><span class="ui-icon ui-icon-closethick">close</span></a><br />
</div><br />
<div style="height: 200px; min-height: 109px; width: auto;" class="<strong>ui-dialog-content</strong> ui-widget-content" id="dialog"><br />
<p>Dialog content goes here.</p><br />
</div><br />
</div><br />
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the dialog plugin, not markup you should use to create a dialog. The only markup needed for that is <div></div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 66533 bytes
Post-expand include size: 111294 bytes
Template argument size: 61299 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3775-1!1!0!!en!2 and timestamp 20110119033020 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/dialog.html
|
HTML
|
gpl3
| 44,268
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI toggle</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/toggle?section=1" title="Edit section: toggle( effect, [options], [speed], [callback] )">edit</a>]</div><a name="toggle.28_effect.2C_.5Boptions.5D.2C_.5Bspeed.5D.2C_.5Bcallback.5D_.29"></a><h3>toggle( effect, <span class="optional">[</span>options<span class="optional">]</span>, <span class="optional">[</span>speed<span class="optional">]</span>, <span class="optional">[</span>callback<span class="optional">]</span> )</h3>
<p>The enhanced toggle method optionally accepts jQuery UI advanced effects.</p>
<p>Uses a specific effect on an element to toggle the element if the first argument is an effect string.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Apply the effect slide if you click on the p to toggle a div.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">toggle</strong>("slide", {}, 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.slide.js"></script>
<style type="text/css">
div { display: none; margin: 0px; width: 100px; height: 80px; background: blue; position: relative; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">toggle</strong>("slide", {}, 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Click me</p><div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-effect">
<div class="option-header">
<h3 class="option-name"><a href="#option-effect">effect</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>The effect to be used. Possible values: 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'slide', 'scale', 'size', 'pulsate'.</p>
</div>
</li>
<li class="option" id="option-options">
<div class="option-header">
<h3 class="option-name"><a href="#option-options">options</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Hash</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A object/hash including specific options for the effect.</p>
</div>
</li>
<li class="option" id="option-speed">
<div class="option-header">
<h3 class="option-name"><a href="#option-speed">speed</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the predefined speeds ("slow" or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
<li class="option" id="option-callback">
<div class="option-header">
<h3 class="option-name"><a href="#option-callback">callback</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Function</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A function that is called after the effect is completed.</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 6372 bytes
Post-expand include size: 8797 bytes
Template argument size: 5515 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2615-1!1!0!!en!2 and timestamp 20110119093643 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/toggle.html
|
HTML
|
gpl3
| 5,293
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Slider</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Slider plugin makes selected elements into sliders. There are various options such as multiple handles, and ranges. The handle can be moved with the mouse or the arrow keys.</p>
<p>All callbacks receive two arguments: The original browser event and a prepared ui object, view below for a documentation of this object (if you name your second argument 'ui'):
</p><p>The slider widget will create handle elements with the class 'ui-slider-handle' on initialization. You can specify custom handle elements by creating and appending the elements and adding the 'ui-slider-handle' class before init. It will only create the number of handles needed to match the length of value/values. For example, if you specify 'values: [1, 5, 18]' and create one custom handle, the plugin will create the other two.
</p>
<ul>
<li><b>ui.handle</b>: DOMElement - the current focused handle
<li><b>ui.value</b>: Integer - the current handle's value
</ul>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Mouse</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="">
A simple jQuery UI Slider.<br />
</p>
<pre>$("#slider").slider();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
#slider { margin: 10px; }
</style>
<script>
$(document).ready(function() {
$("#slider").slider();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="slider"></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the slider. Can be set when initialising (first creating) the slider.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).slider( "option", "disabled" );
//setter
$( ".selector" ).slider( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-animate">
<div class="option-header">
<h3 class="option-name"><a href="#option-animate">animate</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean, String, Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Whether to slide handle smoothly when user click outside handle on the bar. Will also accept a string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>animate</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ animate: true });</code></pre>
</dd>
<dt>
Get or set the <code>animate</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var animate = $( ".selector" ).slider( "option", "animate" );
//setter
$( ".selector" ).slider( "option", "animate", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-max">
<div class="option-header">
<h3 class="option-name"><a href="#option-max">max</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">100</dd>
</dl>
</div>
<div class="option-description">
<p>The maximum value of the slider.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>max</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ max: 7 });</code></pre>
</dd>
<dt>
Get or set the <code>max</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var max = $( ".selector" ).slider( "option", "max" );
//setter
$( ".selector" ).slider( "option", "max", 7 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-min">
<div class="option-header">
<h3 class="option-name"><a href="#option-min">min</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>The minimum value of the slider.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>min</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ min: -7 });</code></pre>
</dd>
<dt>
Get or set the <code>min</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var min = $( ".selector" ).slider( "option", "min" );
//setter
$( ".selector" ).slider( "option", "min", -7 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-orientation">
<div class="option-header">
<h3 class="option-name"><a href="#option-orientation">orientation</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'horizontal'</dd>
</dl>
</div>
<div class="option-description">
<p>This option determines whether the slider has the min at the left, the max at the right or the min at the bottom, the max at the top. Possible values: 'horizontal', 'vertical'.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>orientation</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ orientation: 'vertical' });</code></pre>
</dd>
<dt>
Get or set the <code>orientation</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var orientation = $( ".selector" ).slider( "option", "orientation" );
//setter
$( ".selector" ).slider( "option", "orientation", 'vertical' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-range">
<div class="option-header">
<h3 class="option-name"><a href="#option-range">range</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean, String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, the slider will detect if you have two handles and create a stylable range element between these two. Two other possible values are 'min' and 'max'. A min range goes from the slider min to one handle. A max range goes from one handle to the slider max.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>range</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ range: 'min' });</code></pre>
</dd>
<dt>
Get or set the <code>range</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var range = $( ".selector" ).slider( "option", "range" );
//setter
$( ".selector" ).slider( "option", "range", 'min' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-step">
<div class="option-header">
<h3 class="option-name"><a href="#option-step">step</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1</dd>
</dl>
</div>
<div class="option-description">
<p>Determines the size or amount of each interval or step the slider takes between min and max. The full specified value range of the slider (max - min) needs to be evenly divisible by the step.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>step</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ step: 5 });</code></pre>
</dd>
<dt>
Get or set the <code>step</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var step = $( ".selector" ).slider( "option", "step" );
//setter
$( ".selector" ).slider( "option", "step", 5 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-value">
<div class="option-header">
<h3 class="option-name"><a href="#option-value">value</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Determines the value of the slider, if there's only one handle. If there is more than one handle, determines the value of the first handle.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>value</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ value: 37 });</code></pre>
</dd>
<dt>
Get or set the <code>value</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var value = $( ".selector" ).slider( "option", "value" );
//setter
$( ".selector" ).slider( "option", "value", 37 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-values">
<div class="option-header">
<h3 class="option-name"><a href="#option-values">values</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>This option can be used to specify multiple handles. If range is set to true, the length of 'values' should be 2.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a slider with the <code>values</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({ values: [1,5,9] });</code></pre>
</dd>
<dt>
Get or set the <code>values</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var values = $( ".selector" ).slider( "option", "values" );
//setter
$( ".selector" ).slider( "option", "values", [1,5,9] );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">slidecreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when slider is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>slidecreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "slidecreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-start">
<div class="event-header">
<h3 class="event-name"><a href="#event-start">start</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">slidestart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the user starts sliding.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>start</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({
start: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>start</code> event by type: <code>slidestart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "slidestart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-slide">
<div class="event-header">
<h3 class="event-name"><a href="#event-slide">slide</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">slide</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered on every mouse move during slide. Use ui.value (single-handled sliders) to obtain the value of the current handle, $(..).slider('value', index) to get another handles' value.
</p><p>Return false in order to prevent a slide, based on ui.value.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>slide</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({
slide: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>slide</code> event by type: <code>slide</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "slide", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-change">
<div class="event-header">
<h3 class="event-name"><a href="#event-change">change</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">slidechange</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered on slide stop, or if the value is changed programmatically (by the <code>value</code> method). Takes arguments event and ui. Use event.orginalEvent to detect whether the value changed by mouse, keyboard, or programmatically. Use ui.value (single-handled sliders) to obtain the value of the current handle, $(this).slider('values', index) to get another handle's value.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>change</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({
change: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>change</code> event by type: <code>slidechange</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "slidechange", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-stop">
<div class="event-header">
<h3 class="event-name"><a href="#event-stop">stop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">slidestop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the user stops sliding.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>stop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).slider({
stop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>stop</code> event by type: <code>slidestop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "slidestop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the slider functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the slider.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the slider.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any slider option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple slider options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-slider element.</p>
</div>
</li>
<li class="method" id="method-value">
<div class="method-header">
<h3 class="method-name"><a href="#method-value">value</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "value"
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Gets or sets the value of the slider. For single handle sliders.</p>
</div>
</li>
<li class="method" id="method-values">
<div class="method-header">
<h3 class="method-name"><a href="#method-values">values</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.slider( "values"
, index
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Gets or sets the values of the slider. For multiple handle or range sliders.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Slider plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.slider.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="ui-slider<strong> ui-slider-horizontal</strong> ui-widget ui-widget-content ui-corner-all"><br />
<a style="left: 0%;" class="<strong>ui-slider-handle</strong> ui-state-default ui-corner-all" href="#"></a><br />
</div><br />
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the slider plugin, not markup you should use to create a slider. The only markup needed for that is <div><div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 36451 bytes
Post-expand include size: 55582 bytes
Template argument size: 27644 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3776-1!1!0!!en!2 and timestamp 20110119033042 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/slider.html
|
HTML
|
gpl3
| 23,039
|
<p>The jQuery UI effects core extends the <a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a> function to be able to animate colors as well. It's heavily used by the class transition feature and it's able to color animate the following properties:
</p>
<ul><li> <b>backgroundColor</b>
</li><li> <b>borderBottomColor</b>
</li><li> <b>borderLeftColor</b>
</li><li> <b>borderRightColor</b>
</li><li> <b>borderTopColor</b>
</li><li> <b>color</b>
</li><li> <b>outlineColor</b>
</li></ul>
<p>with one of the following combinations:
</p>
<ul><li> <b>hex (#FF0000)</b>
</li><li> <b>rgb (rgb(255,255,255))</b>
</li><li> <b>names ("black")</b>
</li></ul>
<p><br />
</p><p><div class="options list"><table class="options examples" cellspacing="0"><thead><tr><th>Name</th><th>Type</th></tr></thead><tbody>
</table><b class="options">Example:</b><table class="options examples" cellspacing="0"><thead><tr><th>Name</th><th>Type</th></tr></thead><tbody>
<div class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<div id="demo" class="tabs-container" rel="125">
A simple color animation.<br />
</p>
<pre>$(".block").<a href="http://docs.jquery.com/Events/toggle" title="Events/toggle">toggle</a>(function() {
$(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: "black" }, 1000);
},function() {
$(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: "#68BFEF" }, 500);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<a href="http://www.w3.org/TR/html4/loose.dtd" class="external free" title="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>">
<html>
<head>
<script src="<a href="http://code.jquery.com/jquery-latest.js" class="external free" title="http://code.jquery.com/jquery-latest.js">http://code.jquery.com/jquery-latest.js</a>"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function(){
$(".block").<a href="http://docs.jquery.com/Events/toggle" title="Events/toggle">toggle</a>(function() {
$(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: "black" }, 1000);
},function() {
$(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: "#68BFEF" }, 500);
});
});
</script>
<style>
.block {
color: white;
background-color: #68BFEF;
width: 150px;
height: 70px;
margin: 10px;
}
</style>
</head>
<body>
<div class="block"> Click me</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</p><p></tbody></table></div>
</p><!--
Pre-expand include size: 3730 bytes
Post-expand include size: 5382 bytes
Template argument size: 3450 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3094-1!1!0!!en!2 and timestamp 20110119062612 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/animate.html
|
HTML
|
gpl3
| 3,480
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Selectable</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Selectable plugin allows for elements to be selected by dragging a box (sometimes called a lasso) with the mouse over the elements. Also, elements can be selected by click or drag while holding the Ctrl/Meta key, allowing for multiple (non-contiguous) selections.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Mouse</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="">
A simple jQuery UI Selectable.<br />
</p>
<pre>$("#selectable").selectable();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
#selectable .ui-selecting {
background: silver;
}
#selectable .ui-selected {
background: gray;
}
</style>
<script>
$(document).ready(function() {
$("#selectable").selectable();
});
</script>
</head>
<body style="font-size:62.5%;">
<ul id="selectable">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the selectable. Can be set when initialising (first creating) the selectable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a selectable with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).selectable( "option", "disabled" );
//setter
$( ".selector" ).selectable( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-autoRefresh">
<div class="option-header">
<h3 class="option-name"><a href="#option-autoRefresh">autoRefresh</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>This determines whether to refresh (recalculate) the position and size of each selectee at the beginning of each select operation. If you have many many items, you may want to set this to false and call the refresh method manually.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a selectable with the <code>autoRefresh</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({ autoRefresh: false });</code></pre>
</dd>
<dt>
Get or set the <code>autoRefresh</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var autoRefresh = $( ".selector" ).selectable( "option", "autoRefresh" );
//setter
$( ".selector" ).selectable( "option", "autoRefresh", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cancel">
<div class="option-header">
<h3 class="option-name"><a href="#option-cancel">cancel</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">':input,option'</dd>
</dl>
</div>
<div class="option-description">
<p>Prevents selecting if you start on elements matching the selector.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a selectable with the <code>cancel</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({ cancel: ':input,option' });</code></pre>
</dd>
<dt>
Get or set the <code>cancel</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cancel = $( ".selector" ).selectable( "option", "cancel" );
//setter
$( ".selector" ).selectable( "option", "cancel", ':input,option' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-delay">
<div class="option-header">
<h3 class="option-name"><a href="#option-delay">delay</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Time in milliseconds to define when the selecting should start. It helps preventing unwanted selections when clicking on an element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a selectable with the <code>delay</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({ delay: 20 });</code></pre>
</dd>
<dt>
Get or set the <code>delay</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var delay = $( ".selector" ).selectable( "option", "delay" );
//setter
$( ".selector" ).selectable( "option", "delay", 20 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-distance">
<div class="option-header">
<h3 class="option-name"><a href="#option-distance">distance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Tolerance, in pixels, for when selecting should start. If specified, selecting will not start until after mouse is dragged beyond distance.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a selectable with the <code>distance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({ distance: 20 });</code></pre>
</dd>
<dt>
Get or set the <code>distance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var distance = $( ".selector" ).selectable( "option", "distance" );
//setter
$( ".selector" ).selectable( "option", "distance", 20 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-filter">
<div class="option-header">
<h3 class="option-name"><a href="#option-filter">filter</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'*'</dd>
</dl>
</div>
<div class="option-description">
<p>The matching child elements will be made selectees (able to be selected).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a selectable with the <code>filter</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({ filter: 'li' });</code></pre>
</dd>
<dt>
Get or set the <code>filter</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var filter = $( ".selector" ).selectable( "option", "filter" );
//setter
$( ".selector" ).selectable( "option", "filter", 'li' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-tolerance">
<div class="option-header">
<h3 class="option-name"><a href="#option-tolerance">tolerance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'touch'</dd>
</dl>
</div>
<div class="option-description">
<p>Possible values: 'touch', 'fit'.
</p>
<ul>
<li><b>fit</b>: draggable overlaps the droppable entirely</li>
<li><b>touch</b>: draggable overlaps the droppable any amount</li>
</ul>
<p></p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a selectable with the <code>tolerance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({ tolerance: 'fit' });</code></pre>
</dd>
<dt>
Get or set the <code>tolerance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var tolerance = $( ".selector" ).selectable( "option", "tolerance" );
//setter
$( ".selector" ).selectable( "option", "tolerance", 'fit' );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">selectablecreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when selectable is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>selectablecreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "selectablecreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-selected">
<div class="event-header">
<h3 class="event-name"><a href="#event-selected">selected</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">selectableselected</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the end of the select operation, on each element added to the selection.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>selected</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({
selected: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>selected</code> event by type: <code>selectableselected</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "selectableselected", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-selecting">
<div class="event-header">
<h3 class="event-name"><a href="#event-selecting">selecting</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">selectableselecting</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered during the select operation, on each element added to the selection.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>selecting</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({
selecting: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>selecting</code> event by type: <code>selectableselecting</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "selectableselecting", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-start">
<div class="event-header">
<h3 class="event-name"><a href="#event-start">start</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">selectablestart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the beginning of the select operation.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>start</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({
start: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>start</code> event by type: <code>selectablestart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "selectablestart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-stop">
<div class="event-header">
<h3 class="event-name"><a href="#event-stop">stop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">selectablestop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the end of the select operation.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>stop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({
stop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>stop</code> event by type: <code>selectablestop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "selectablestop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-unselected">
<div class="event-header">
<h3 class="event-name"><a href="#event-unselected">unselected</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">selectableunselected</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the end of the select operation, on each element removed from the selection.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>unselected</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({
unselected: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>unselected</code> event by type: <code>selectableunselected</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "selectableunselected", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-unselecting">
<div class="event-header">
<h3 class="event-name"><a href="#event-unselecting">unselecting</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">selectableunselecting</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered during the select operation, on each element removed from the selection.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>unselecting</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).selectable({
unselecting: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>unselecting</code> event by type: <code>selectableunselecting</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "selectableunselecting", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.selectable( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the selectable functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.selectable( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the selectable.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.selectable( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the selectable.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.selectable( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any selectable option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.selectable( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple selectable options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.selectable( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-selectable element.</p>
</div>
</li>
<li class="method" id="method-refresh">
<div class="method-header">
<h3 class="method-name"><a href="#method-refresh">refresh</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.selectable( "refresh"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Refresh the position and size of each selectee element. This method can be used to manually recalculate the position and size of each selectee element. Very useful if autoRefresh is set to false.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Selectable plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.selectable.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<ul class="<strong>ui-selectable</strong>"><br />
   <li class="<strong>ui-selectee</strong>"></li><br />
   <li class="<strong>ui-selectee</strong>"></li><br />
   <li class="<strong>ui-selectee</strong>"></li><br />
</ul>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the selectable plugin, not markup you should use to create a selectable. The only markup needed for that is <br /><ul><br />
   <li></li><br />
   <li></li><br />
   <li></li><br />
</ul>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 34674 bytes
Post-expand include size: 53359 bytes
Template argument size: 26926 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3771-1!1!0!!en!2 and timestamp 20110119062402 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/selectable.html
|
HTML
|
gpl3
| 22,157
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Autocomplete</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>Autocomplete, when added to an input field, enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.</p>
<p>By giving an Autocomplete field focus or entering something into it, the plugin starts searching for entries that match and displays a list of values to choose from. By entering more characters, the user can filter down the list to better matches.</p>
<p>This can be used to enter previous selected values, for example you could use Autocomplete for entering tags, to complete an address, you could enter a city name and get the zip code, or maybe enter email addresses from an address book.</p>
<p>You can pull data in from a local and/or a remote source: Local is good for small data sets (like an address book with 50 entries), remote is necessary for big data sets, like a database with hundreds or millions of entries to select from.</p>
<p>Autocomplete can be customized to work with various data sources, by just specifying the source option. A data source can be:</p>
<ul>
<li>an Array with local data</li>
<li>a String, specifying a URL</li>
<li>a Callback</li>
</ul>
<p>The local data can be a simple Array of Strings, or it contains Objects for each item in the array, with either a label or value property or both. The label property is displayed in the suggestion menu. The value will be inserted into the input element after the user selected something from the menu. If just one property is specified, it will be used for both, eg. if you provide only value-properties, the value will also be used as the label.</p>
<p>When a String is used, the Autocomplete plugin expects that string to point to a URL resource that will return JSON data. It can be on the same host or on a different one (must provide JSONP). The request parameter "term" gets added to that URL. The data itself can be in the same format as the local data described above.</p>
<p>The third variation, the callback, provides the most flexibility, and can be used to connect any data source to Autocomplete. The callback gets two arguments:</p>
<ul>
<li>A request object, with a single property called "term", which refers to the value currently in the text input. For example, when the user entered "new yo" in a city field, the Autocomplete term will equal "new yo".</li>
<li>A response callback, which expects a single argument to contain the data to suggest to the user. This data should be filtered based on the provided term, and can be in any of the formats described above for simple local data (String-Array or Object-Array with label/value/both properties). It's important when providing a custom source callback to handle errors during the request. You must always call the response callback even if you encounter an error. This ensures that the widget always has the correct state.</li>
</ul>
<p>The label is always treated as text, if you want the label to be treated as html you can use <a href="https://github.com/scottgonzalez/jquery-ui-extensions/blob/master/autocomplete/jquery.ui.autocomplete.html.js" class="external text" title="https://github.com/scottgonzalez/jquery-ui-extensions/blob/master/autocomplete/jquery.ui.autocomplete.html.js">Scott González' html extension</a>. The demos all focus on different variations of the source-option - look for the one that matches your use case, and take a look at the code.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Position</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="300">
A simple jQuery UI Autocomplete.<br />
</p>
<pre>$("input#autocomplete").autocomplete({
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("input#autocomplete").autocomplete({
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
});
</script>
</head>
<body style="font-size:62.5%;">
<input id="autocomplete" />
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the autocomplete. Can be set when initialising (first creating) the autocomplete.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a autocomplete with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).autocomplete( "option", "disabled" );
//setter
$( ".selector" ).autocomplete( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-appendTo">
<div class="option-header">
<h3 class="option-name"><a href="#option-appendTo">appendTo</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">"body"</dd>
</dl>
</div>
<div class="option-description">
<p>Which element the menu should be appended to.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a autocomplete with the <code>appendTo</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({ appendTo: "#someElem" });</code></pre>
</dd>
<dt>
Get or set the <code>appendTo</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var appendTo = $( ".selector" ).autocomplete( "option", "appendTo" );
//setter
$( ".selector" ).autocomplete( "option", "appendTo", "#someElem" );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-delay">
<div class="option-header">
<h3 class="option-name"><a href="#option-delay">delay</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">300</dd>
</dl>
</div>
<div class="option-description">
<p>The delay in milliseconds the Autocomplete waits after a keystroke to activate itself. A zero-delay makes sense for local data (more responsive), but can produce a lot of load for remote data, while being less responsive.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a autocomplete with the <code>delay</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({ delay: 0 });</code></pre>
</dd>
<dt>
Get or set the <code>delay</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var delay = $( ".selector" ).autocomplete( "option", "delay" );
//setter
$( ".selector" ).autocomplete( "option", "delay", 0 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-minLength">
<div class="option-header">
<h3 class="option-name"><a href="#option-minLength">minLength</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1</dd>
</dl>
</div>
<div class="option-description">
<p>The minimum number of characters a user has to type before the Autocomplete activates. Zero is useful for local data with just a few items. Should be increased when there are a lot of items, where a single character would match a few thousand items.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a autocomplete with the <code>minLength</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({ minLength: 0 });</code></pre>
</dd>
<dt>
Get or set the <code>minLength</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var minLength = $( ".selector" ).autocomplete( "option", "minLength" );
//setter
$( ".selector" ).autocomplete( "option", "minLength", 0 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-source">
<div class="option-header">
<h3 class="option-name"><a href="#option-source">source</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Array, Callback</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">none, must be specified</dd>
</dl>
</div>
<div class="option-description">
<p>Defines the data to use, must be specified. See Overview section for more details, and look at the various demos.
</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a autocomplete with the <code>source</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({ source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"] });</code></pre>
</dd>
<dt>
Get or set the <code>source</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var source = $( ".selector" ).autocomplete( "option", "source" );
//setter
$( ".selector" ).autocomplete( "option", "source", ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"] );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">autocompletecreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when autocomplete is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>autocompletecreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "autocompletecreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-search">
<div class="event-header">
<h3 class="event-name"><a href="#event-search">search</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">autocompletesearch</dd>
</dl>
</div>
<div class="event-description">
<p>Before a request (source-option) is started, after minLength and delay are met. Can be canceled (return false), then no request will be started and no items suggested.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>search</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({
search: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>search</code> event by type: <code>autocompletesearch</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "autocompletesearch", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-open">
<div class="event-header">
<h3 class="event-name"><a href="#event-open">open</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">autocompleteopen</dd>
</dl>
</div>
<div class="event-description">
<p>Triggered when the suggestion menu is opened.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>open</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({
open: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>open</code> event by type: <code>autocompleteopen</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "autocompleteopen", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-focus">
<div class="event-header">
<h3 class="event-name"><a href="#event-focus">focus</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">autocompletefocus</dd>
</dl>
</div>
<div class="event-description">
<p>Before focus is moved to an item (not selecting), ui.item refers to the focused item. The default action of focus is to replace the text field's value with the value of the focused item, though only if the focus event was triggered by a keyboard interaction. Canceling this event prevents the value from being updated, but does not prevent the menu item from being focused.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>focus</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({
focus: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>focus</code> event by type: <code>autocompletefocus</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "autocompletefocus", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-select">
<div class="event-header">
<h3 class="event-name"><a href="#event-select">select</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">autocompleteselect</dd>
</dl>
</div>
<div class="event-description">
<p>Triggered when an item is selected from the menu; ui.item refers to the selected item. The default action of select is to replace the text field's value with the value of the selected item. Canceling this event prevents the value from being updated, but does not prevent the menu from closing.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>select</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({
select: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>select</code> event by type: <code>autocompleteselect</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "autocompleteselect", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-close">
<div class="event-header">
<h3 class="event-name"><a href="#event-close">close</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">autocompleteclose</dd>
</dl>
</div>
<div class="event-description">
<p>When the list is hidden - doesn't have to occur together with a change.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>close</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({
close: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>close</code> event by type: <code>autocompleteclose</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "autocompleteclose", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-change">
<div class="event-header">
<h3 class="event-name"><a href="#event-change">change</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">autocompletechange</dd>
</dl>
</div>
<div class="event-description">
<p>After an item was selected; ui.item refers to the selected item. Always triggered after the close event.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>change</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).autocomplete({
change: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>change</code> event by type: <code>autocompletechange</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "autocompletechange", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the autocomplete functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the autocomplete.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the autocomplete.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any autocomplete option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple autocomplete options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-autocomplete element.</p>
</div>
</li>
<li class="method" id="method-search">
<div class="method-header">
<h3 class="method-name"><a href="#method-search">search</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "search"
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Triggers a search event, which, when data is available, then will display the suggestions; can be used by a selectbox-like button to open the suggestions when clicked. If no value argument is specified, the current input's value is used. Can be called with an empty string and minLength: 0 to display all items.</p>
</div>
</li>
<li class="method" id="method-close">
<div class="method-header">
<h3 class="method-name"><a href="#method-close">close</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.autocomplete( "close"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Close the Autocomplete menu. Useful in combination with the search method, to close the open menu.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Autocomplete plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.autocomplete.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<input class="ui-autocomplete-input"/><br />
<ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all"><br />
<li class="ui-menu-item"><br />
<a class="ui-corner-all">item 1</a><br />
</li><br />
<li class="ui-menu-item"><br />
<a class="ui-corner-all">item 2</a><br />
</li><br />
<li class="ui-menu-item"><br />
<a class="ui-corner-all">item 3</a><br />
</li><br />
</ul>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the autocomplete plugin, not markup you should use to create a autocomplete. The only markup needed for that is <input/>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 32903 bytes
Post-expand include size: 54578 bytes
Template argument size: 29474 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3766-1!1!0!!en!2 and timestamp 20110119065152 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/autocomplete.html
|
HTML
|
gpl3
| 24,773
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Draggable</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Draggable plugin makes selected elements draggable by mouse.</p>
<p>Draggable elements gets a class of <code>ui-draggable</code>. During drag the element also gets a class of <code>ui-draggable-dragging</code>. If you want not just drag, but drag-and-drop, see the jQuery UI Droppable plugin, which provides a drop target for draggables.</p>
<p>All callbacks (start, stop, drag) receive two arguments: The original browser event and a prepared ui object, view below for a documentation of this object (if you name your second argument 'ui'):</p>
<ul>
<li><b>ui.helper</b> - the jQuery object representing the helper that's being dragged</li>
<li><b>ui.position</b> - current position of the helper as { top, left } object, relative to the offset element</li>
<li><b>ui.offset</b> - current absolute position of the helper as { top, left } object, relative to page</li>
</ul>
<p><br />
</p>
<p>To manipulate the position of a draggable during drag, you can either <a href="http://jsbin.com/etako/edit" class="external text" title="http://jsbin.com/etako/edit">use a wrapper as the draggable helper</a> and position the wrapped element with absolute positioning, or you can correct internal values like so: <code>$(this).data('draggable').offset.click.top -= x</code>.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Mouse</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Initialize a draggable with default options.<br />
</p>
<pre>$("#draggable").draggable();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
#draggable { width: 100px; height: 70px; background: silver; }
</style>
<script>
$(document).ready(function() {
$("#draggable").draggable();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="draggable">Drag me</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the draggable. Can be set when initialising (first creating) the draggable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).draggable( "option", "disabled" );
//setter
$( ".selector" ).draggable( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-addClasses">
<div class="option-header">
<h3 class="option-name"><a href="#option-addClasses">addClasses</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If set to false, will prevent the <code>ui-draggable</code> class from being added. This may be desired as a performance optimization when calling <code>.draggable()</code> init on many hundreds of elements.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>addClasses</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ addClasses: false });</code></pre>
</dd>
<dt>
Get or set the <code>addClasses</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var addClasses = $( ".selector" ).draggable( "option", "addClasses" );
//setter
$( ".selector" ).draggable( "option", "addClasses", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-appendTo">
<div class="option-header">
<h3 class="option-name"><a href="#option-appendTo">appendTo</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Element, Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'parent'</dd>
</dl>
</div>
<div class="option-description">
<p>The element passed to or selected by the <code>appendTo</code> option will be used as the draggable helper's container during dragging. By default, the helper is appended to the same container as the draggable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>appendTo</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ appendTo: 'body' });</code></pre>
</dd>
<dt>
Get or set the <code>appendTo</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var appendTo = $( ".selector" ).draggable( "option", "appendTo" );
//setter
$( ".selector" ).draggable( "option", "appendTo", 'body' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-axis">
<div class="option-header">
<h3 class="option-name"><a href="#option-axis">axis</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Constrains dragging to either the horizontal (x) or vertical (y) axis. Possible values: 'x', 'y'.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>axis</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ axis: 'x' });</code></pre>
</dd>
<dt>
Get or set the <code>axis</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var axis = $( ".selector" ).draggable( "option", "axis" );
//setter
$( ".selector" ).draggable( "option", "axis", 'x' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cancel">
<div class="option-header">
<h3 class="option-name"><a href="#option-cancel">cancel</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">':input,option'</dd>
</dl>
</div>
<div class="option-description">
<p>Prevents dragging from starting on specified elements.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>cancel</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ cancel: 'button' });</code></pre>
</dd>
<dt>
Get or set the <code>cancel</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cancel = $( ".selector" ).draggable( "option", "cancel" );
//setter
$( ".selector" ).draggable( "option", "cancel", 'button' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-connectToSortable">
<div class="option-header">
<h3 class="option-name"><a href="#option-connectToSortable">connectToSortable</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Allows the draggable to be dropped onto the specified sortables. If this option is used (<code>helper</code> must be set to 'clone' in order to work flawlessly), a draggable can be dropped onto a sortable list and then becomes part of it.
</p><p>Note: Specifying this option as an array of selectors has been removed.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>connectToSortable</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ connectToSortable: 'ul#myList' });</code></pre>
</dd>
<dt>
Get or set the <code>connectToSortable</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var connectToSortable = $( ".selector" ).draggable( "option", "connectToSortable" );
//setter
$( ".selector" ).draggable( "option", "connectToSortable", 'ul#myList' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-containment">
<div class="option-header">
<h3 class="option-name"><a href="#option-containment">containment</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, Element, String, Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Constrains dragging to within the bounds of the specified element or region. Possible string values: 'parent', 'document', 'window', [x1, y1, x2, y2].</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>containment</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ containment: 'parent' });</code></pre>
</dd>
<dt>
Get or set the <code>containment</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var containment = $( ".selector" ).draggable( "option", "containment" );
//setter
$( ".selector" ).draggable( "option", "containment", 'parent' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cursor">
<div class="option-header">
<h3 class="option-name"><a href="#option-cursor">cursor</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'auto'</dd>
</dl>
</div>
<div class="option-description">
<p>The css cursor during the drag operation.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>cursor</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ cursor: 'crosshair' });</code></pre>
</dd>
<dt>
Get or set the <code>cursor</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cursor = $( ".selector" ).draggable( "option", "cursor" );
//setter
$( ".selector" ).draggable( "option", "cursor", 'crosshair' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cursorAt">
<div class="option-header">
<h3 class="option-name"><a href="#option-cursorAt">cursorAt</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Object</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Sets the offset of the dragging helper relative to the mouse cursor. Coordinates can be given as a hash using a combination of one or two keys: <code>{ top, left, right, bottom }</code>.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>cursorAt</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ cursorAt: { left: 5 } });</code></pre>
</dd>
<dt>
Get or set the <code>cursorAt</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cursorAt = $( ".selector" ).draggable( "option", "cursorAt" );
//setter
$( ".selector" ).draggable( "option", "cursorAt", { left: 5 } );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-delay">
<div class="option-header">
<h3 class="option-name"><a href="#option-delay">delay</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Time in milliseconds after mousedown until dragging should start. This option can be used to prevent unwanted drags when clicking on an element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>delay</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ delay: 500 });</code></pre>
</dd>
<dt>
Get or set the <code>delay</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var delay = $( ".selector" ).draggable( "option", "delay" );
//setter
$( ".selector" ).draggable( "option", "delay", 500 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-distance">
<div class="option-header">
<h3 class="option-name"><a href="#option-distance">distance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1</dd>
</dl>
</div>
<div class="option-description">
<p>Distance in pixels after mousedown the mouse must move before dragging should start. This option can be used to prevent unwanted drags when clicking on an element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>distance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ distance: 30 });</code></pre>
</dd>
<dt>
Get or set the <code>distance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var distance = $( ".selector" ).draggable( "option", "distance" );
//setter
$( ".selector" ).draggable( "option", "distance", 30 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-grid">
<div class="option-header">
<h3 class="option-name"><a href="#option-grid">grid</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Snaps the dragging helper to a grid, every x and y pixels. Array values: [x, y]</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>grid</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ grid: [50, 20] });</code></pre>
</dd>
<dt>
Get or set the <code>grid</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var grid = $( ".selector" ).draggable( "option", "grid" );
//setter
$( ".selector" ).draggable( "option", "grid", [50, 20] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-handle">
<div class="option-header">
<h3 class="option-name"><a href="#option-handle">handle</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Element, Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If specified, restricts drag start click to the specified element(s).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>handle</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ handle: 'h2' });</code></pre>
</dd>
<dt>
Get or set the <code>handle</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var handle = $( ".selector" ).draggable( "option", "handle" );
//setter
$( ".selector" ).draggable( "option", "handle", 'h2' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-helper">
<div class="option-header">
<h3 class="option-name"><a href="#option-helper">helper</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Function</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'original'</dd>
</dl>
</div>
<div class="option-description">
<p>Allows for a helper element to be used for dragging display. Possible values: 'original', 'clone', Function. If a function is specified, it must return a DOMElement.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>helper</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ helper: 'clone' });</code></pre>
</dd>
<dt>
Get or set the <code>helper</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var helper = $( ".selector" ).draggable( "option", "helper" );
//setter
$( ".selector" ).draggable( "option", "helper", 'clone' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-iframeFix">
<div class="option-header">
<h3 class="option-name"><a href="#option-iframeFix">iframeFix</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean, Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Prevent iframes from capturing the mousemove events during a drag. Useful in combination with cursorAt, or in any case, if the mouse cursor is not over the helper. If set to true, transparent overlays will be placed over all iframes on the page. If a selector is supplied, the matched iframes will have an overlay placed over them.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>iframeFix</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ iframeFix: true });</code></pre>
</dd>
<dt>
Get or set the <code>iframeFix</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var iframeFix = $( ".selector" ).draggable( "option", "iframeFix" );
//setter
$( ".selector" ).draggable( "option", "iframeFix", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-opacity">
<div class="option-header">
<h3 class="option-name"><a href="#option-opacity">opacity</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Float</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Opacity for the helper while being dragged.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>opacity</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ opacity: 0.35 });</code></pre>
</dd>
<dt>
Get or set the <code>opacity</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var opacity = $( ".selector" ).draggable( "option", "opacity" );
//setter
$( ".selector" ).draggable( "option", "opacity", 0.35 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-refreshPositions">
<div class="option-header">
<h3 class="option-name"><a href="#option-refreshPositions">refreshPositions</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, all droppable positions are calculated on every mousemove. Caution: This solves issues on highly dynamic pages, but dramatically decreases performance.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>refreshPositions</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ refreshPositions: true });</code></pre>
</dd>
<dt>
Get or set the <code>refreshPositions</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var refreshPositions = $( ".selector" ).draggable( "option", "refreshPositions" );
//setter
$( ".selector" ).draggable( "option", "refreshPositions", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-revert">
<div class="option-header">
<h3 class="option-name"><a href="#option-revert">revert</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean, String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, the element will return to its start position when dragging stops. Possible string values: 'valid', 'invalid'. If set to invalid, revert will only occur if the draggable has not been dropped on a droppable. For valid, it's the other way around.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>revert</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ revert: true });</code></pre>
</dd>
<dt>
Get or set the <code>revert</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var revert = $( ".selector" ).draggable( "option", "revert" );
//setter
$( ".selector" ).draggable( "option", "revert", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-revertDuration">
<div class="option-header">
<h3 class="option-name"><a href="#option-revertDuration">revertDuration</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">500</dd>
</dl>
</div>
<div class="option-description">
<p>The duration of the revert animation, in milliseconds. Ignored if revert is false.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>revertDuration</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ revertDuration: 1000 });</code></pre>
</dd>
<dt>
Get or set the <code>revertDuration</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var revertDuration = $( ".selector" ).draggable( "option", "revertDuration" );
//setter
$( ".selector" ).draggable( "option", "revertDuration", 1000 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scope">
<div class="option-header">
<h3 class="option-name"><a href="#option-scope">scope</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'default'</dd>
</dl>
</div>
<div class="option-description">
<p>Used to group sets of draggable and droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted by the droppable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>scope</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ scope: 'tasks' });</code></pre>
</dd>
<dt>
Get or set the <code>scope</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scope = $( ".selector" ).draggable( "option", "scope" );
//setter
$( ".selector" ).draggable( "option", "scope", 'tasks' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scroll">
<div class="option-header">
<h3 class="option-name"><a href="#option-scroll">scroll</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, container auto-scrolls while dragging.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>scroll</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ scroll: false });</code></pre>
</dd>
<dt>
Get or set the <code>scroll</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scroll = $( ".selector" ).draggable( "option", "scroll" );
//setter
$( ".selector" ).draggable( "option", "scroll", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scrollSensitivity">
<div class="option-header">
<h3 class="option-name"><a href="#option-scrollSensitivity">scrollSensitivity</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">20</dd>
</dl>
</div>
<div class="option-description">
<p>Distance in pixels from the edge of the viewport after which the viewport should scroll. Distance is relative to pointer, not the draggable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>scrollSensitivity</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ scrollSensitivity: 40 });</code></pre>
</dd>
<dt>
Get or set the <code>scrollSensitivity</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scrollSensitivity = $( ".selector" ).draggable( "option", "scrollSensitivity" );
//setter
$( ".selector" ).draggable( "option", "scrollSensitivity", 40 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scrollSpeed">
<div class="option-header">
<h3 class="option-name"><a href="#option-scrollSpeed">scrollSpeed</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">20</dd>
</dl>
</div>
<div class="option-description">
<p>The speed at which the window should scroll once the mouse pointer gets within the <code>scrollSensitivity</code> distance.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>scrollSpeed</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ scrollSpeed: 40 });</code></pre>
</dd>
<dt>
Get or set the <code>scrollSpeed</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scrollSpeed = $( ".selector" ).draggable( "option", "scrollSpeed" );
//setter
$( ".selector" ).draggable( "option", "scrollSpeed", 40 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-snap">
<div class="option-header">
<h3 class="option-name"><a href="#option-snap">snap</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean, Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to a selector or to true (equivalent to '.ui-draggable'), the draggable will snap to the edges of the selected elements when near an edge of the element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>snap</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ snap: true });</code></pre>
</dd>
<dt>
Get or set the <code>snap</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var snap = $( ".selector" ).draggable( "option", "snap" );
//setter
$( ".selector" ).draggable( "option", "snap", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-snapMode">
<div class="option-header">
<h3 class="option-name"><a href="#option-snapMode">snapMode</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'both'</dd>
</dl>
</div>
<div class="option-description">
<p>Determines which edges of snap elements the draggable will snap to. Ignored if snap is false. Possible values: 'inner', 'outer', 'both'</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>snapMode</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ snapMode: 'outer' });</code></pre>
</dd>
<dt>
Get or set the <code>snapMode</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var snapMode = $( ".selector" ).draggable( "option", "snapMode" );
//setter
$( ".selector" ).draggable( "option", "snapMode", 'outer' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-snapTolerance">
<div class="option-header">
<h3 class="option-name"><a href="#option-snapTolerance">snapTolerance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">20</dd>
</dl>
</div>
<div class="option-description">
<p>The distance in pixels from the snap element edges at which snapping should occur. Ignored if snap is false.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>snapTolerance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ snapTolerance: 40 });</code></pre>
</dd>
<dt>
Get or set the <code>snapTolerance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var snapTolerance = $( ".selector" ).draggable( "option", "snapTolerance" );
//setter
$( ".selector" ).draggable( "option", "snapTolerance", 40 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-stack">
<div class="option-header">
<h3 class="option-name"><a href="#option-stack">stack</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Controls the z-Index of the set of elements that match the selector, always brings to front the dragged item. Very useful in things like window managers.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>stack</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ stack: ".products" });</code></pre>
</dd>
<dt>
Get or set the <code>stack</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var stack = $( ".selector" ).draggable( "option", "stack" );
//setter
$( ".selector" ).draggable( "option", "stack", ".products" );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-zIndex">
<div class="option-header">
<h3 class="option-name"><a href="#option-zIndex">zIndex</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>z-index for the helper while being dragged.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a draggable with the <code>zIndex</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({ zIndex: 2700 });</code></pre>
</dd>
<dt>
Get or set the <code>zIndex</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var zIndex = $( ".selector" ).draggable( "option", "zIndex" );
//setter
$( ".selector" ).draggable( "option", "zIndex", 2700 );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dragcreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when draggable is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>dragcreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dragcreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-start">
<div class="event-header">
<h3 class="event-name"><a href="#event-start">start</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dragstart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when dragging starts.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>start</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({
start: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>start</code> event by type: <code>dragstart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dragstart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-drag">
<div class="event-header">
<h3 class="event-name"><a href="#event-drag">drag</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">drag</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the mouse is moved during the dragging.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>drag</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({
drag: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>drag</code> event by type: <code>drag</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "drag", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-stop">
<div class="event-header">
<h3 class="event-name"><a href="#event-stop">stop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dragstop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when dragging stops.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>stop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).draggable({
stop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>stop</code> event by type: <code>dragstop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dragstop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.draggable( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the draggable functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.draggable( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the draggable.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.draggable( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the draggable.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.draggable( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any draggable option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.draggable( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple draggable options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.draggable( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-draggable element.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Draggable plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.draggable.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="<strong>ui-draggable</strong>"></div>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the draggable plugin, not markup you should use to create a draggable. The only markup needed for that is <div></div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 61321 bytes
Post-expand include size: 105979 bytes
Template argument size: 58128 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3768-1!1!0!!en!2 and timestamp 20110119062313 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/draggable.html
|
HTML
|
gpl3
| 42,728
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Position Utility</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>Utility script for positioning any widget relative to the window, document, a particular element, or the cursor/mouse.</p>
<p><em>Note: jQuery UI does not support positioning hidden elements.</em></p>
<p>Does not need ui.core.js or effects.core.js.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li><i>none (only jQuery core)</i></li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="300">
Clicking on the green element transfers to the other.<br />
</p>
<pre>
$("#position1").position({
my: "center",
at: "center",
of: "#targetElement"
});
$("#position2").position({
my: "left top",
at: "left top",
of: "#targetElement"
});
$("#position3").position({
my: "right center",
at: "right bottom",
of: "#targetElement"
});
$(document).mousemove(function(ev){
$("#position4").position({
my: "left bottom",
of: ev,
offset: "3 -3",
collision: "fit"
});
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
#targetElement { width:240px;height:200px;background-color:#999;margin:30px auto; }
.positionDiv { width:50px;height:50px;opacity:0.6; }
#position1 {background-color:#F00;}
#position2 {background-color:#0F0;}
#position3 {background-color:#00F;}
#position4 {background-color:#FF0;}
</style>
<script>
$(document).ready(function() {
$("#position1").position({
my: "center",
at: "center",
of: "#targetElement"
});
$("#position2").position({
my: "left top",
at: "left top",
of: "#targetElement"
});
$("#position3").position({
my: "right center",
at: "right bottom",
of: "#targetElement"
});
$(document).mousemove(function(ev){
$("#position4").position({
my: "left bottom",
of: ev,
offset: "3 -3",
collision: "fit"
});
});
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="targetElement">
<div class="positionDiv" id="position1"></div>
<div class="positionDiv" id="position2"></div>
<div class="positionDiv" id="position3"></div>
<div class="positionDiv" id="position4"></div>
</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-my">
<div class="option-header">
<h3 class="option-name"><a href="#option-my">my</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>Defines which position on <b>the element being positioned</b> to align with the target element: "horizontal vertical" alignment. A single value such as "right" will default to "right center", "top" will default to "center top" (following CSS convention). Acceptable values: "top", "center", "bottom", "left", "right". Example: "left top" or "center center"</p>
</div>
</li>
<li class="option" id="option-at">
<div class="option-header">
<h3 class="option-name"><a href="#option-at">at</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>Defines which position on <b>the target element</b> to align the positioned element against: "horizontal vertical" alignment. A single value such as "right" will default to "right center", "top" will default to "center top" (following CSS convention). Acceptable values: "top", "center", "bottom", "left", "right". Example: "left top" or "center center"</p>
</div>
</li>
<li class="option" id="option-of">
<div class="option-header">
<h3 class="option-name"><a href="#option-of">of</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, Element, jQuery, Event</dd>
</dl>
</div>
<div class="option-description">
<p>Element to position against. If you provide a selector, the first matching element will be used. If you provide a jQuery object, the first element will be used. If you provide an event object, the pageX and pageY properties will be used. Example: "#top-menu"</p>
</div>
</li>
<li class="option" id="option-offset">
<div class="option-header">
<h3 class="option-name"><a href="#option-offset">offset</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>Add these left-top values to the calculated position, eg. "50 50" (left top) A single value such as "50" will apply to both.</p>
</div>
</li>
<li class="option" id="option-collision">
<div class="option-header">
<h3 class="option-name"><a href="#option-collision">collision</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>When the positioned element overflows the window in some direction, move it to an alternative position. Similar to my and at, this accepts a single value or a pair for horizontal/vertical, eg. "flip", "fit", "fit flip", "fit none".
</p>
<ul><li> <b>flip</b>: to the opposite side and the collision detection is run again to see if it will fit. If it won't fit in either position, the center option should be used as a fall back.
</li><li> <b>fit</b>: so the element keeps in the desired direction, but is re-positioned so it fits.
</li><li> <b>none</b>: not do collision detection.
</li></ul>
<p></p>
</div>
</li>
<li class="option" id="option-using">
<div class="option-header">
<h3 class="option-name"><a href="#option-using">using</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Function</dd>
</dl>
</div>
<div class="option-description">
<p>When specified the actual property setting is delegated to this callback. Receives a single parameter which is a hash of top and left values for the position that should be set.</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 7124 bytes
Post-expand include size: 11012 bytes
Template argument size: 7642 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3784-1!1!0!!en!2 and timestamp 20110119144600 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/position.html
|
HTML
|
gpl3
| 7,851
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Resizable</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Resizable plugin makes selected elements resizable (meaning they have draggable resize handles). You can specify one or more handles as well as min and max width and height.</p>
<p>All callbacks (start,stop,resize) receive two arguments: The original browser event and a prepared ui object. The ui object has the following fields:</p>
<ul>
<li><b>ui.helper</b> - a jQuery object containing the helper element</li>
<li><b>ui.originalPosition</b> - {top, left} before resizing started</li>
<li><b>ui.originalSize</b> - {width, height} before resizing started</li>
<li><b>ui.position</b> - {top, left} current position</li>
<li><b>ui.size</b> - {width, height} current size</li>
</ul>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Mouse</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="250">
A simple jQuery UI Resizable.<br />
</p>
<pre>$("#resizable").resizable();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
#resizable { width: 100px; height: 100px; background: silver; }
</style>
<script>
$(document).ready(function() {
$("#resizable").resizable();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="resizable"></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the resizable. Can be set when initialising (first creating) the resizable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).resizable( "option", "disabled" );
//setter
$( ".selector" ).resizable( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-alsoResize">
<div class="option-header">
<h3 class="option-name"><a href="#option-alsoResize">alsoResize</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, jQuery, Element</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Resize these elements synchronous when resizing.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>alsoResize</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ alsoResize: '.other' });</code></pre>
</dd>
<dt>
Get or set the <code>alsoResize</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var alsoResize = $( ".selector" ).resizable( "option", "alsoResize" );
//setter
$( ".selector" ).resizable( "option", "alsoResize", '.other' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-animate">
<div class="option-header">
<h3 class="option-name"><a href="#option-animate">animate</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Animates to the final size after resizing.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>animate</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ animate: true });</code></pre>
</dd>
<dt>
Get or set the <code>animate</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var animate = $( ".selector" ).resizable( "option", "animate" );
//setter
$( ".selector" ).resizable( "option", "animate", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-animateDuration">
<div class="option-header">
<h3 class="option-name"><a href="#option-animateDuration">animateDuration</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer, String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'slow'</dd>
</dl>
</div>
<div class="option-description">
<p>Duration time for animating, in milliseconds. Other possible values: 'slow', 'normal', 'fast'.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>animateDuration</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ animateDuration: 500 });</code></pre>
</dd>
<dt>
Get or set the <code>animateDuration</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var animateDuration = $( ".selector" ).resizable( "option", "animateDuration" );
//setter
$( ".selector" ).resizable( "option", "animateDuration", 500 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-animateEasing">
<div class="option-header">
<h3 class="option-name"><a href="#option-animateEasing">animateEasing</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'swing'</dd>
</dl>
</div>
<div class="option-description">
<p>Easing effect for animating.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>animateEasing</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ animateEasing: 'swing' });</code></pre>
</dd>
<dt>
Get or set the <code>animateEasing</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var animateEasing = $( ".selector" ).resizable( "option", "animateEasing" );
//setter
$( ".selector" ).resizable( "option", "animateEasing", 'swing' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-aspectRatio">
<div class="option-header">
<h3 class="option-name"><a href="#option-aspectRatio">aspectRatio</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean, Float</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, resizing is constrained by the original aspect ratio. Otherwise a custom aspect ratio can be specified, such as 9 / 16, or 0.5.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>aspectRatio</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ aspectRatio: .75 });</code></pre>
</dd>
<dt>
Get or set the <code>aspectRatio</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var aspectRatio = $( ".selector" ).resizable( "option", "aspectRatio" );
//setter
$( ".selector" ).resizable( "option", "aspectRatio", .75 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-autoHide">
<div class="option-header">
<h3 class="option-name"><a href="#option-autoHide">autoHide</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, automatically hides the handles except when the mouse hovers over the element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>autoHide</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ autoHide: true });</code></pre>
</dd>
<dt>
Get or set the <code>autoHide</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var autoHide = $( ".selector" ).resizable( "option", "autoHide" );
//setter
$( ".selector" ).resizable( "option", "autoHide", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cancel">
<div class="option-header">
<h3 class="option-name"><a href="#option-cancel">cancel</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">':input,option'</dd>
</dl>
</div>
<div class="option-description">
<p>Prevents resizing if you start on elements matching the selector.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>cancel</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ cancel: ':input,option' });</code></pre>
</dd>
<dt>
Get or set the <code>cancel</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cancel = $( ".selector" ).resizable( "option", "cancel" );
//setter
$( ".selector" ).resizable( "option", "cancel", ':input,option' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-containment">
<div class="option-header">
<h3 class="option-name"><a href="#option-containment">containment</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Element, Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Constrains resizing to within the bounds of the specified element. Possible values: 'parent', 'document', a DOMElement, or a Selector.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>containment</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ containment: 'parent' });</code></pre>
</dd>
<dt>
Get or set the <code>containment</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var containment = $( ".selector" ).resizable( "option", "containment" );
//setter
$( ".selector" ).resizable( "option", "containment", 'parent' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-delay">
<div class="option-header">
<h3 class="option-name"><a href="#option-delay">delay</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Tolerance, in milliseconds, for when resizing should start. If specified, resizing will not start until after mouse is moved beyond duration. This can help prevent unintended resizing when clicking on an element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>delay</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ delay: 20 });</code></pre>
</dd>
<dt>
Get or set the <code>delay</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var delay = $( ".selector" ).resizable( "option", "delay" );
//setter
$( ".selector" ).resizable( "option", "delay", 20 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-distance">
<div class="option-header">
<h3 class="option-name"><a href="#option-distance">distance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1</dd>
</dl>
</div>
<div class="option-description">
<p>Tolerance, in pixels, for when resizing should start. If specified, resizing will not start until after mouse is moved beyond distance. This can help prevent unintended resizing when clicking on an element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>distance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ distance: 20 });</code></pre>
</dd>
<dt>
Get or set the <code>distance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var distance = $( ".selector" ).resizable( "option", "distance" );
//setter
$( ".selector" ).resizable( "option", "distance", 20 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-ghost">
<div class="option-header">
<h3 class="option-name"><a href="#option-ghost">ghost</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, a semi-transparent helper element is shown for resizing.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>ghost</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ ghost: true });</code></pre>
</dd>
<dt>
Get or set the <code>ghost</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var ghost = $( ".selector" ).resizable( "option", "ghost" );
//setter
$( ".selector" ).resizable( "option", "ghost", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-grid">
<div class="option-header">
<h3 class="option-name"><a href="#option-grid">grid</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Snaps the resizing element to a grid, every x and y pixels. Array values: [x, y]</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>grid</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ grid: [50, 50] });</code></pre>
</dd>
<dt>
Get or set the <code>grid</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var grid = $( ".selector" ).resizable( "option", "grid" );
//setter
$( ".selector" ).resizable( "option", "grid", [50, 50] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-handles">
<div class="option-header">
<h3 class="option-name"><a href="#option-handles">handles</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Object</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'e, s, se'</dd>
</dl>
</div>
<div class="option-description">
<p>If specified as a string, should be a comma-split list of any of the following: 'n, e, s, w, ne, se, sw, nw, all'. The necessary handles will be auto-generated by the plugin.
</p><p>If specified as an object, the following keys are supported: { n, e, s, w, ne, se, sw, nw }. The value of any specified should be a jQuery selector matching the child element of the resizable to use as that handle. If the handle is not a child of the resizable, you can pass in the DOMElement or a valid jQuery object directly.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>handles</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ handles: 'n, e, s, w' });</code></pre>
</dd>
<dt>
Get or set the <code>handles</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var handles = $( ".selector" ).resizable( "option", "handles" );
//setter
$( ".selector" ).resizable( "option", "handles", 'n, e, s, w' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-helper">
<div class="option-header">
<h3 class="option-name"><a href="#option-helper">helper</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>This is the css class that will be added to a proxy element to outline the resize during the drag of the resize handle. Once the resize is complete, the original element is sized.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>helper</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ helper: 'ui-state-highlight' });</code></pre>
</dd>
<dt>
Get or set the <code>helper</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var helper = $( ".selector" ).resizable( "option", "helper" );
//setter
$( ".selector" ).resizable( "option", "helper", 'ui-state-highlight' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-maxHeight">
<div class="option-header">
<h3 class="option-name"><a href="#option-maxHeight">maxHeight</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>This is the maximum height the resizable should be allowed to resize to.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>maxHeight</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ maxHeight: 300 });</code></pre>
</dd>
<dt>
Get or set the <code>maxHeight</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var maxHeight = $( ".selector" ).resizable( "option", "maxHeight" );
//setter
$( ".selector" ).resizable( "option", "maxHeight", 300 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-maxWidth">
<div class="option-header">
<h3 class="option-name"><a href="#option-maxWidth">maxWidth</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>This is the maximum width the resizable should be allowed to resize to.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>maxWidth</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ maxWidth: 250 });</code></pre>
</dd>
<dt>
Get or set the <code>maxWidth</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var maxWidth = $( ".selector" ).resizable( "option", "maxWidth" );
//setter
$( ".selector" ).resizable( "option", "maxWidth", 250 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-minHeight">
<div class="option-header">
<h3 class="option-name"><a href="#option-minHeight">minHeight</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">10</dd>
</dl>
</div>
<div class="option-description">
<p>This is the minimum height the resizable should be allowed to resize to.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>minHeight</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ minHeight: 150 });</code></pre>
</dd>
<dt>
Get or set the <code>minHeight</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var minHeight = $( ".selector" ).resizable( "option", "minHeight" );
//setter
$( ".selector" ).resizable( "option", "minHeight", 150 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-minWidth">
<div class="option-header">
<h3 class="option-name"><a href="#option-minWidth">minWidth</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">10</dd>
</dl>
</div>
<div class="option-description">
<p>This is the minimum width the resizable should be allowed to resize to.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a resizable with the <code>minWidth</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({ minWidth: 75 });</code></pre>
</dd>
<dt>
Get or set the <code>minWidth</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var minWidth = $( ".selector" ).resizable( "option", "minWidth" );
//setter
$( ".selector" ).resizable( "option", "minWidth", 75 );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">resizecreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when resizable is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>resizecreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "resizecreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-start">
<div class="event-header">
<h3 class="event-name"><a href="#event-start">start</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">resizestart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the start of a resize operation.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>start</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({
start: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>start</code> event by type: <code>resizestart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "resizestart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-resize">
<div class="event-header">
<h3 class="event-name"><a href="#event-resize">resize</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">resize</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered during the resize, on the drag of the resize handler.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>resize</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({
resize: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>resize</code> event by type: <code>resize</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "resize", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-stop">
<div class="event-header">
<h3 class="event-name"><a href="#event-stop">stop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">resizestop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered at the end of a resize operation.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>stop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).resizable({
stop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>stop</code> event by type: <code>resizestop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "resizestop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.resizable( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the resizable functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.resizable( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the resizable.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.resizable( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the resizable.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.resizable( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any resizable option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.resizable( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple resizable options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.resizable( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-resizable element.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Resizable plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.resizable.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="<strong>ui-resizable</strong>"><br />
   <div style="-moz-user-select: none;" unselectable="on" class="<strong>ui-resizable-handle ui-resizable-e</strong>"></div><br />
   <div style="-moz-user-select: none;" unselectable="on" class="<strong>ui-resizable-handle ui-resizable-s</strong>"></div><br />
   <div unselectable="on" style="z-index: 1001; -moz-user-select: none;" class="<strong>ui-resizable-handle ui-resizable-se</strong> ui-icon ui-icon-gripsmall-diagonal-se"></div><br />
</div>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the resizable plugin, not markup you should use to create a resizable. The only markup needed for that is <div></div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 47687 bytes
Post-expand include size: 80197 bytes
Template argument size: 42354 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3770-1!1!0!!en!2 and timestamp 20110119062414 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/resizable.html
|
HTML
|
gpl3
| 32,192
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI toggleClass</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/toggleClass?section=1" title="Edit section: toggleClass( class, [duration] )">edit</a>]</div><a name="toggleClass.28_class.2C_.5Bduration.5D_.29"></a><h3>toggleClass( class, <span class="optional">[</span>duration<span class="optional">]</span> )</h3>
<p>Adds the specified class if it is not present, and removes the specified class if it is present, using an optional transition.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="100">
Adds the 'selected' class if it is not present, and removes the 'selected' class if it is present.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">toggleClass</strong>("selected", 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<style type="text/css">
p { cursor: pointer; font-size: 1.2em; }
.selected { color:red; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">toggleClass</strong>("selected", 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Click me to toggle 'selected' class.</p>
<p class="selected">Click me to toggle 'selected' class.</p>
<p>Click me to toggle 'selected' class.</p>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-class">
<div class="option-header">
<h3 class="option-name"><a href="#option-class">class</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>A CSS class to toggle on the elements.</p>
</div>
</li>
<li class="option" id="option-duration">
<div class="option-header">
<h3 class="option-name"><a href="#option-duration">duration</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 5271 bytes
Post-expand include size: 7027 bytes
Template argument size: 4437 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2608-1!1!0!!en!2 and timestamp 20110119090339 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/toggleClass.html
|
HTML
|
gpl3
| 4,140
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Sortable</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Sortable plugin makes selected elements sortable by dragging with the mouse.</p>
<p>All callbacks receive two arguments: The original browser event and a prepared ui object, view below for a documentation of this object (if you name your second argument 'ui'):</p>
<ul>
<li><b>ui.helper</b> - the current helper element (most often a clone of the item)</li>
<li><b>ui.position</b> - current position of the helper</li>
<li><b>ui.offset</b> - current absolute position of the helper</li>
<li><b>ui.item</b> - the current dragged element</li>
<li><b>ui.placeholder</b> - the placeholder (if you defined one)</li>
<li><b>ui.sender</b> - the sortable where the item comes from (only exists if you move from one connected list to another)</li>
</ul>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Mouse</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="100">
A simple jQuery UI Sortable.<br />
</p>
<pre>$("#sortable").sortable();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#sortable").sortable();
});
</script>
</head>
<body style="font-size:62.5%;">
<ul id="sortable">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the sortable. Can be set when initialising (first creating) the sortable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).sortable( "option", "disabled" );
//setter
$( ".selector" ).sortable( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-appendTo">
<div class="option-header">
<h3 class="option-name"><a href="#option-appendTo">appendTo</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'parent'</dd>
</dl>
</div>
<div class="option-description">
<p>Defines where the helper that moves with the mouse is being appended to during the drag (for example, to resolve overlap/zIndex issues).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>appendTo</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ appendTo: 'body' });</code></pre>
</dd>
<dt>
Get or set the <code>appendTo</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var appendTo = $( ".selector" ).sortable( "option", "appendTo" );
//setter
$( ".selector" ).sortable( "option", "appendTo", 'body' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-axis">
<div class="option-header">
<h3 class="option-name"><a href="#option-axis">axis</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If defined, the items can be dragged only horizontally or vertically. Possible values:'x', 'y'.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>axis</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ axis: 'x' });</code></pre>
</dd>
<dt>
Get or set the <code>axis</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var axis = $( ".selector" ).sortable( "option", "axis" );
//setter
$( ".selector" ).sortable( "option", "axis", 'x' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cancel">
<div class="option-header">
<h3 class="option-name"><a href="#option-cancel">cancel</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">':input,button'</dd>
</dl>
</div>
<div class="option-description">
<p>Prevents sorting if you start on elements matching the selector.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>cancel</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ cancel: 'button' });</code></pre>
</dd>
<dt>
Get or set the <code>cancel</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cancel = $( ".selector" ).sortable( "option", "cancel" );
//setter
$( ".selector" ).sortable( "option", "cancel", 'button' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-connectWith">
<div class="option-header">
<h3 class="option-name"><a href="#option-connectWith">connectWith</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Takes a jQuery selector with items that also have sortables applied. If used, the sortable is now connected to the other one-way, so you can drag from this sortable to the other.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>connectWith</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ connectWith: '.otherlist' });</code></pre>
</dd>
<dt>
Get or set the <code>connectWith</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var connectWith = $( ".selector" ).sortable( "option", "connectWith" );
//setter
$( ".selector" ).sortable( "option", "connectWith", '.otherlist' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-containment">
<div class="option-header">
<h3 class="option-name"><a href="#option-containment">containment</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Element, String, Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Constrains dragging to within the bounds of the specified element - can be a DOM element, 'parent', 'document', 'window', or a jQuery selector.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>containment</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ containment: 'parent' });</code></pre>
</dd>
<dt>
Get or set the <code>containment</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var containment = $( ".selector" ).sortable( "option", "containment" );
//setter
$( ".selector" ).sortable( "option", "containment", 'parent' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cursor">
<div class="option-header">
<h3 class="option-name"><a href="#option-cursor">cursor</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'auto'</dd>
</dl>
</div>
<div class="option-description">
<p>Defines the cursor that is being shown while sorting.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>cursor</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ cursor: 'crosshair' });</code></pre>
</dd>
<dt>
Get or set the <code>cursor</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cursor = $( ".selector" ).sortable( "option", "cursor" );
//setter
$( ".selector" ).sortable( "option", "cursor", 'crosshair' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cursorAt">
<div class="option-header">
<h3 class="option-name"><a href="#option-cursorAt">cursorAt</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Object</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Moves the sorting element or helper so the cursor always appears to drag from the same position. Coordinates can be given as a hash using a combination of one or two keys: <code>{ top, left, right, bottom }</code>.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>cursorAt</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ cursorAt: 'top' });</code></pre>
</dd>
<dt>
Get or set the <code>cursorAt</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cursorAt = $( ".selector" ).sortable( "option", "cursorAt" );
//setter
$( ".selector" ).sortable( "option", "cursorAt", 'top' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-delay">
<div class="option-header">
<h3 class="option-name"><a href="#option-delay">delay</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Time in milliseconds to define when the sorting should start. It helps preventing unwanted drags when clicking on an element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>delay</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ delay: 500 });</code></pre>
</dd>
<dt>
Get or set the <code>delay</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var delay = $( ".selector" ).sortable( "option", "delay" );
//setter
$( ".selector" ).sortable( "option", "delay", 500 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-distance">
<div class="option-header">
<h3 class="option-name"><a href="#option-distance">distance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1</dd>
</dl>
</div>
<div class="option-description">
<p>Tolerance, in pixels, for when sorting should start. If specified, sorting will not start until after mouse is dragged beyond distance. Can be used to allow for clicks on elements within a handle.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>distance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ distance: 30 });</code></pre>
</dd>
<dt>
Get or set the <code>distance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var distance = $( ".selector" ).sortable( "option", "distance" );
//setter
$( ".selector" ).sortable( "option", "distance", 30 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-dropOnEmpty">
<div class="option-header">
<h3 class="option-name"><a href="#option-dropOnEmpty">dropOnEmpty</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If false items from this sortable can't be dropped to an empty linked sortable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>dropOnEmpty</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ dropOnEmpty: false });</code></pre>
</dd>
<dt>
Get or set the <code>dropOnEmpty</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var dropOnEmpty = $( ".selector" ).sortable( "option", "dropOnEmpty" );
//setter
$( ".selector" ).sortable( "option", "dropOnEmpty", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-forceHelperSize">
<div class="option-header">
<h3 class="option-name"><a href="#option-forceHelperSize">forceHelperSize</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If true, forces the helper to have a size.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>forceHelperSize</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ forceHelperSize: true });</code></pre>
</dd>
<dt>
Get or set the <code>forceHelperSize</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var forceHelperSize = $( ".selector" ).sortable( "option", "forceHelperSize" );
//setter
$( ".selector" ).sortable( "option", "forceHelperSize", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-forcePlaceholderSize">
<div class="option-header">
<h3 class="option-name"><a href="#option-forcePlaceholderSize">forcePlaceholderSize</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If true, forces the placeholder to have a size.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>forcePlaceholderSize</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ forcePlaceholderSize: true });</code></pre>
</dd>
<dt>
Get or set the <code>forcePlaceholderSize</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var forcePlaceholderSize = $( ".selector" ).sortable( "option", "forcePlaceholderSize" );
//setter
$( ".selector" ).sortable( "option", "forcePlaceholderSize", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-grid">
<div class="option-header">
<h3 class="option-name"><a href="#option-grid">grid</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Snaps the sorting element or helper to a grid, every x and y pixels. Array values: [x, y]</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>grid</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ grid: [50, 20] });</code></pre>
</dd>
<dt>
Get or set the <code>grid</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var grid = $( ".selector" ).sortable( "option", "grid" );
//setter
$( ".selector" ).sortable( "option", "grid", [50, 20] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-handle">
<div class="option-header">
<h3 class="option-name"><a href="#option-handle">handle</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, Element</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Restricts sort start click to the specified element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>handle</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ handle: 'h2' });</code></pre>
</dd>
<dt>
Get or set the <code>handle</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var handle = $( ".selector" ).sortable( "option", "handle" );
//setter
$( ".selector" ).sortable( "option", "handle", 'h2' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-helper">
<div class="option-header">
<h3 class="option-name"><a href="#option-helper">helper</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Function</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'original'</dd>
</dl>
</div>
<div class="option-description">
<p>Allows for a helper element to be used for dragging display. The supplied function receives the event and the element being sorted, and should return a DOMElement to be used as a custom proxy helper. Possible values: 'original', 'clone'</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>helper</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ helper: 'clone' });</code></pre>
</dd>
<dt>
Get or set the <code>helper</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var helper = $( ".selector" ).sortable( "option", "helper" );
//setter
$( ".selector" ).sortable( "option", "helper", 'clone' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-items">
<div class="option-header">
<h3 class="option-name"><a href="#option-items">items</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'> *'</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies which items inside the element should be sortable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>items</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ items: 'li' });</code></pre>
</dd>
<dt>
Get or set the <code>items</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var items = $( ".selector" ).sortable( "option", "items" );
//setter
$( ".selector" ).sortable( "option", "items", 'li' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-opacity">
<div class="option-header">
<h3 class="option-name"><a href="#option-opacity">opacity</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Float</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Defines the opacity of the helper while sorting. From 0.01 to 1</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>opacity</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ opacity: 0.6 });</code></pre>
</dd>
<dt>
Get or set the <code>opacity</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var opacity = $( ".selector" ).sortable( "option", "opacity" );
//setter
$( ".selector" ).sortable( "option", "opacity", 0.6 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-placeholder">
<div class="option-header">
<h3 class="option-name"><a href="#option-placeholder">placeholder</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Class that gets applied to the otherwise white space.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>placeholder</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ placeholder: 'ui-state-highlight' });</code></pre>
</dd>
<dt>
Get or set the <code>placeholder</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var placeholder = $( ".selector" ).sortable( "option", "placeholder" );
//setter
$( ".selector" ).sortable( "option", "placeholder", 'ui-state-highlight' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-revert">
<div class="option-header">
<h3 class="option-name"><a href="#option-revert">revert</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean/Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, the item will be reverted to its new DOM position with a smooth animation. Optionally, it can also be set to a number that controls the duration of the animation in ms.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>revert</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ revert: true });</code></pre>
</dd>
<dt>
Get or set the <code>revert</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var revert = $( ".selector" ).sortable( "option", "revert" );
//setter
$( ".selector" ).sortable( "option", "revert", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scroll">
<div class="option-header">
<h3 class="option-name"><a href="#option-scroll">scroll</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If set to true, the page scrolls when coming to an edge.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>scroll</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ scroll: false });</code></pre>
</dd>
<dt>
Get or set the <code>scroll</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scroll = $( ".selector" ).sortable( "option", "scroll" );
//setter
$( ".selector" ).sortable( "option", "scroll", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scrollSensitivity">
<div class="option-header">
<h3 class="option-name"><a href="#option-scrollSensitivity">scrollSensitivity</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">20</dd>
</dl>
</div>
<div class="option-description">
<p>Defines how near the mouse must be to an edge to start scrolling.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>scrollSensitivity</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ scrollSensitivity: 40 });</code></pre>
</dd>
<dt>
Get or set the <code>scrollSensitivity</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scrollSensitivity = $( ".selector" ).sortable( "option", "scrollSensitivity" );
//setter
$( ".selector" ).sortable( "option", "scrollSensitivity", 40 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scrollSpeed">
<div class="option-header">
<h3 class="option-name"><a href="#option-scrollSpeed">scrollSpeed</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">20</dd>
</dl>
</div>
<div class="option-description">
<p>The speed at which the window should scroll once the mouse pointer gets within the scrollSensitivity distance.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>scrollSpeed</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ scrollSpeed: 40 });</code></pre>
</dd>
<dt>
Get or set the <code>scrollSpeed</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scrollSpeed = $( ".selector" ).sortable( "option", "scrollSpeed" );
//setter
$( ".selector" ).sortable( "option", "scrollSpeed", 40 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-tolerance">
<div class="option-header">
<h3 class="option-name"><a href="#option-tolerance">tolerance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'intersect'</dd>
</dl>
</div>
<div class="option-description">
<p>This is the way the reordering behaves during drag. Possible values: 'intersect', 'pointer'. In some setups, 'pointer' is more natural.
</p>
<ul>
<li><b>intersect</b>: draggable overlaps the droppable at least 50%</li>
<li><b>pointer</b>: mouse pointer overlaps the droppable</li>
</ul>
<p></p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>tolerance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ tolerance: 'pointer' });</code></pre>
</dd>
<dt>
Get or set the <code>tolerance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var tolerance = $( ".selector" ).sortable( "option", "tolerance" );
//setter
$( ".selector" ).sortable( "option", "tolerance", 'pointer' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-zIndex">
<div class="option-header">
<h3 class="option-name"><a href="#option-zIndex">zIndex</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1000</dd>
</dl>
</div>
<div class="option-description">
<p>Z-index for element/helper while being sorted.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a sortable with the <code>zIndex</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({ zIndex: 5 });</code></pre>
</dd>
<dt>
Get or set the <code>zIndex</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var zIndex = $( ".selector" ).sortable( "option", "zIndex" );
//setter
$( ".selector" ).sortable( "option", "zIndex", 5 );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortcreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when sortable is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>sortcreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortcreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-start">
<div class="event-header">
<h3 class="event-name"><a href="#event-start">start</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortstart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when sorting starts.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>start</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
start: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>start</code> event by type: <code>sortstart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortstart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-sort">
<div class="event-header">
<h3 class="event-name"><a href="#event-sort">sort</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sort</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered during sorting.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>sort</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
sort: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>sort</code> event by type: <code>sort</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sort", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-change">
<div class="event-header">
<h3 class="event-name"><a href="#event-change">change</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortchange</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered during sorting, but only when the DOM position has changed.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>change</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
change: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>change</code> event by type: <code>sortchange</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortchange", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-beforeStop">
<div class="event-header">
<h3 class="event-name"><a href="#event-beforeStop">beforeStop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortbeforestop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when sorting stops, but when the placeholder/helper is still available.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>beforeStop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
beforeStop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>beforeStop</code> event by type: <code>sortbeforestop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortbeforestop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-stop">
<div class="event-header">
<h3 class="event-name"><a href="#event-stop">stop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortstop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when sorting has stopped.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>stop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
stop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>stop</code> event by type: <code>sortstop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortstop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-update">
<div class="event-header">
<h3 class="event-name"><a href="#event-update">update</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortupdate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the user stopped sorting and the DOM position has changed.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>update</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
update: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>update</code> event by type: <code>sortupdate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortupdate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-receive">
<div class="event-header">
<h3 class="event-name"><a href="#event-receive">receive</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortreceive</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a connected sortable list has received an item from another list.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>receive</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
receive: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>receive</code> event by type: <code>sortreceive</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortreceive", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-remove">
<div class="event-header">
<h3 class="event-name"><a href="#event-remove">remove</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortremove</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a sortable item has been dragged out from the list and into another.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>remove</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
remove: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>remove</code> event by type: <code>sortremove</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortremove", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-over">
<div class="event-header">
<h3 class="event-name"><a href="#event-over">over</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortover</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a sortable item is moved into a connected list.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>over</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
over: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>over</code> event by type: <code>sortover</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortover", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-out">
<div class="event-header">
<h3 class="event-name"><a href="#event-out">out</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortout</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a sortable item is moved away from a connected list.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>out</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
out: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>out</code> event by type: <code>sortout</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortout", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-activate">
<div class="event-header">
<h3 class="event-name"><a href="#event-activate">activate</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortactivate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when using connected lists, every connected list on drag start receives it.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>activate</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
activate: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>activate</code> event by type: <code>sortactivate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortactivate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-deactivate">
<div class="event-header">
<h3 class="event-name"><a href="#event-deactivate">deactivate</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">sortdeactivate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when sorting was stopped, is propagated to all possible connected lists.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>deactivate</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).sortable({
deactivate: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>deactivate</code> event by type: <code>sortdeactivate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "sortdeactivate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the sortable functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the sortable.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the sortable.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any sortable option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple sortable options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-sortable element.</p>
</div>
</li>
<li class="method" id="method-serialize">
<div class="method-header">
<h3 class="method-name"><a href="#method-serialize">serialize</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "serialize"
, <span class="optional">[</span>options<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Serializes the sortable's item id's into a form/ajax submittable string. Calling this method produces a hash that can be appended to any url to easily submit a new item order back to the server.
</p><p>It works by default by looking at the id of each item in the format 'setname_number', and it spits out a hash like "setname[]=number&setname[]=number".
</p><p>You can also give in a option hash as second argument to custom define how the function works. The possible options are: 'key' (replaces part1[] with whatever you want), 'attribute' (test another attribute than 'id') and 'expression' (use your own regexp).
</p><p>If serialize returns an empty string, make sure the id attributes include an underscore. They must be in the form: "set_number" For example, a 3 element list with id attributes foo_1, foo_5, foo_2 will serialize to foo[]=1&foo[]=5&foo[]=2. You can use an underscore, equal sign or hyphen to separate the set and number. For example foo=1 or foo-1 or foo_1 all serialize to foo[]=1.</p>
</div>
</li>
<li class="method" id="method-toArray">
<div class="method-header">
<h3 class="method-name"><a href="#method-toArray">toArray</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "toArray"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Serializes the sortable's item id's into an array of string. If you have
</p>
<pre>
<ul id="a_sortable"><br>
<li id="hello">Hello</li><br>
<li id="goodbye">Good bye</li><br>
</ul>
</pre>
<p>and do
</p>
<pre>var result = $('#a_sortable').sortable('toArray');</pre>
<p>then
</p>
<pre>result[0] will contain "hello" and result[1] will contain "goodbye".</pre></p>
</div>
</li>
<p>
<li class="method" id="method-refresh">
<div class="method-header">
<h3 class="method-name"><a href="#method-refresh">refresh</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "refresh"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Refresh the sortable items. Custom trigger the reloading of all sortable items, causing new items to be recognized.</p>
</div>
</li>
<li class="method" id="method-refreshPositions">
<div class="method-header">
<h3 class="method-name"><a href="#method-refreshPositions">refreshPositions</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "refreshPositions"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Refresh the cached positions of the sortables' items. Calling this method refreshes the cached item positions of all sortables. This is usually done automatically by the script and slows down performance. Use wisely.</p>
</div>
</li>
<li class="method" id="method-cancel">
<div class="method-header">
<h3 class="method-name"><a href="#method-cancel">cancel</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.sortable( "cancel"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Cancels a change in the current sortable and reverts it back to how it was before the current sort started. Useful in the stop and receive callback functions.
</p><p>If the sortable item is not being moved from one connected sortable to another:
</p>
<pre>$(this).sortable('cancel');</pre>
<p>will cancel the change.
</p><p>If the sortable item is being moved from one connected sortable to another:
</p>
<pre>$(ui.sender).sortable('cancel');</pre>
<p>will cancel the change. Useful in the 'receive' callback.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Sortable plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.sortable.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<ul class="<strong>ui-sortable</strong>"><br />
   <li></li><br />
   <li></li><br />
   <li></li><br />
</ul>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the sortable plugin, not markup you should use to create a sortable. The only markup needed for that is <br /><ul><br />
   <li></li><br />
   <li></li><br />
   <li></li><br />
</ul>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 75037 bytes
Post-expand include size: 130561 bytes
Template argument size: 72935 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3772-1!1!0!!en!2 and timestamp 20110119062344 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/sortable.html
|
HTML
|
gpl3
| 51,095
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Button</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>Button enhances standard form elements like button, input of type submit or reset or anchors to themable buttons with appropiate mouseover and active styles.</p>
<p>In addition to basic push buttons, radio buttons and checkboxes (inputs of type radio and checkbox) can be converted to buttons: Their associated label is styled to appear as the button, while the underlying input is updated on click.</p>
<p>In order to group radio buttons, Button also provides an additional widget-method, called Buttonset. Its used by selecting a container element (which contains the radio buttons) and calling buttonset(). Buttonset will also provide visual grouping, and therefore should be used whenever you have a group of buttons. It works by selecting all descendents and applying button() to them. You can enable and disable a buttonset, which will enable and disable all contained buttons. Destroying a buttonset also calls the button's destroy method.</p>
<p>When using an input of type button, submit or reset, support is limited to plain text labels with no icons.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="300">
A simple jQuery UI Button.<br />
</p>
<pre>$("button").button();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("button").button();
});
</script>
</head>
<body style="font-size:62.5%;">
<button>Button label</button>
</body>
</html>
</pre>
<p></div>
</p><p></div>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<div id="demo" class="tabs-container" rel="300">
A simple jQuery UI Button.<br />
</p>
<pre>$("#radio").buttonset();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#radio").buttonset();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="radio">
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the button. Can be set when initialising (first creating) the button.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a button with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).button({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).button( "option", "disabled" );
//setter
$( ".selector" ).button( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-text">
<div class="option-header">
<h3 class="option-name"><a href="#option-text">text</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>Whether to show any text - when set to false (display no text), icons (see icons option) must be enabled, otherwise it'll be ignored.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a button with the <code>text</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).button({ text: false });</code></pre>
</dd>
<dt>
Get or set the <code>text</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var text = $( ".selector" ).button( "option", "text" );
//setter
$( ".selector" ).button( "option", "text", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-icons">
<div class="option-header">
<h3 class="option-name"><a href="#option-icons">icons</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Options</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">{ primary: null, secondary: null }</dd>
</dl>
</div>
<div class="option-description">
<p>Icons to display, with or without text (see text option). The primary icon is displayed by default on the left of the label text, the secondary by default is on the right. Value for the primary and secondary properties must be a classname (String), eg. "ui-icon-gear". For using only one icon: icons: {primary:'ui-icon-locked'}. For using two icons: icons: {primary:'ui-icon-gear',secondary:'ui-icon-triangle-1-s'}</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a button with the <code>icons</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).button({ icons: {primary:'ui-icon-gear',secondary:'ui-icon-triangle-1-s'} });</code></pre>
</dd>
<dt>
Get or set the <code>icons</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var icons = $( ".selector" ).button( "option", "icons" );
//setter
$( ".selector" ).button( "option", "icons", {primary:'ui-icon-gear',secondary:'ui-icon-triangle-1-s'} );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-label">
<div class="option-header">
<h3 class="option-name"><a href="#option-label">label</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">HTML content of the button, or value attribute</dd>
</dl>
</div>
<div class="option-description">
<p>Text to show on the button. When not specified (null), the element's html content is used, or its value attribute when it's an input element of type submit or reset; or the html content of the associated label element if its an input of type radio or checkbox</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a button with the <code>label</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).button({ label: "custom label" });</code></pre>
</dd>
<dt>
Get or set the <code>label</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var label = $( ".selector" ).button( "option", "label" );
//setter
$( ".selector" ).button( "option", "label", "custom label" );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">buttoncreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when button is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).button({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>buttoncreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "buttoncreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</p>
<p>There are no events for this plugin.</p>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.button( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the button functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<p>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.button( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the button.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.button( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the button.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.button( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any button option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.button( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple button options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.button( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-button element.</p>
</div>
</li>
<li class="method" id="method-refresh">
<div class="method-header">
<h3 class="method-name"><a href="#method-refresh">refresh</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.button( "refresh"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Refreshes the visual state of the button. Useful for updating button state after the native element's checked or disabled state is changed programatically.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Button plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.button.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<button class="<strong>ui-button ui-button-text-only</strong> ui-widget ui-state-default ui-corner-all"><br />
<span class="<strong>ui-button-text</strong>">Button Label</span><br /></button>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the button plugin, not markup you should use to create a button. The only markup needed for that is <button>Button Label</button>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 24542 bytes
Post-expand include size: 31799 bytes
Template argument size: 14018 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3767-1!1!0!!en!2 and timestamp 20110119065208 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/button.html
|
HTML
|
gpl3
| 14,929
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Tabs</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>Tabs are generally used to break content into multiple sections that can be swapped to save space, much like an accordion.</p>
<p>By default a tab widget will swap between tabbed sections onClick, but the events can be changed to onHover through an option. Tab content can be loaded via Ajax by setting an href on a tab.</p>
<p><em>NOTE: Tabs created dynamically using .tabs( "add", ... ) are given an id of ui-tabs-NUM, where NUM is an auto-incrementing id. If you use this naming convention for your own elements, you may encounter problems.</em></p>
<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Events"><span class="tocnumber">1</span> <span class="toctext">Events</span></a></li>
<li class="toclevel-1"><a href="#Ajax_mode"><span class="tocnumber">2</span> <span class="toctext">Ajax mode</span></a>
<ul>
<li class="toclevel-2"><a href="#Back_button_and_bookmarking"><span class="tocnumber">2.1</span> <span class="toctext">Back button and bookmarking</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#How_to..."><span class="tocnumber">3</span> <span class="toctext">How to...</span></a>
<ul>
<li class="toclevel-2"><a href="#...retrieve_the_index_of_the_currently_selected_tab"><span class="tocnumber">3.1</span> <span class="toctext">...retrieve the index of the currently selected tab</span></a></li>
<li class="toclevel-2"><a href="#...open_links_in_the_current_tab_instead_of_leaving_the_page"><span class="tocnumber">3.2</span> <span class="toctext">...open links in the current tab instead of leaving the page</span></a></li>
<li class="toclevel-2"><a href="#...select_a_tab_from_a_text_link_instead_of_clicking_a_tab_itself"><span class="tocnumber">3.3</span> <span class="toctext">...select a tab from a text link instead of clicking a tab itself</span></a></li>
<li class="toclevel-2"><a href="#...prevent_switching_to_the_tab_on_click_depending_on_form_validation"><span class="tocnumber">3.4</span> <span class="toctext">...prevent switching to the tab on click depending on form validation</span></a></li>
<li class="toclevel-2"><a href="#...immediately_select_a_just_added_tab"><span class="tocnumber">3.5</span> <span class="toctext">...immediately select a just added tab</span></a></li>
<li class="toclevel-2"><a href="#...follow_a_tab.27s_URL_instead_of_loading_its_content_via_ajax"><span class="tocnumber">3.6</span> <span class="toctext">...follow a tab's URL instead of loading its content via ajax</span></a></li>
<li class="toclevel-2"><a href="#...prevent_a_FOUC_.28Flash_of_Unstyled_Content.29_before_tabs_are_initialized"><span class="tocnumber">3.7</span> <span class="toctext">...prevent a FOUC (Flash of Unstyled Content) before tabs are initialized</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#Why_does..."><span class="tocnumber">4</span> <span class="toctext">Why does...</span></a>
<ul>
<li class="toclevel-2"><a href="#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F"><span class="tocnumber">4.1</span> <span class="toctext">...my slider, Google Map, sIFR etc. not work when placed in a hidden (inactive) tab?</span></a></li>
</ul>
</li>
</ul>
</td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=1" title="Template:UIAPIPlugin">edit</a>]</div><a name="Events"></a><h2>Events</h2>
<p>A series of events fire when interacting with a tabs interface:
</p>
<ul><li> tabsselect, tabsload, tabsshow (in that order)
</li><li> tabsadd, tabsremove
</li><li> tabsenable, tabsdisable
</li></ul>
<p>Event binding example:
</p>
<pre>$('#example').bind('tabsselect', function(event, ui) {
// Objects available in the function context:
ui.tab // anchor element of the selected (clicked) tab
ui.panel // element, that contains the selected/clicked tab contents
ui.index // zero-based index of the selected (clicked) tab
});</pre>
<p>Note that if a handler for the tabsselect event returns false, the clicked tab will not become selected (useful for example if switching to the next tab requires a form validation).
</p>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=2" title="Template:UIAPIPlugin">edit</a>]</div><a name="Ajax_mode"></a><h2> Ajax mode </h2>
<p>Tabs supports loading tab content via Ajax in an unobtrusive manner.
</p><p>The HTML you need is slightly different from the one that is used for static tabs: A list of links pointing to existing resources (from where the content gets loaded) and no additional containers at all (unobtrusive!). The containers' markup is going to be created on the fly:
</p>
<pre>
<div id="example">
<ul>
<li><a href="ahah_1.html"><span>Content 1</span></a></li>
<li><a href="ahah_2.html"><span>Content 2</span></a></li>
<li><a href="ahah_3.html"><span>Content 3</span></a></li>
</ul>
</div>
</pre>
<p>Obviously this degrades gracefully - the links, e.g. the content, will still be accessible with JavaScript disabled.
</p><p>Note that if you wish to reuse an existing container, you
could do so by matching a title attribute and the container's id:
</p>
<pre>
<li><a href="hello/world.html" title="Todo Overview"> ... </a></li>
</pre>
<p>and a container like:
</p>
<pre>
<div id="Todo_Overview"> ... </div>
</pre>
<p>(Note how white space is replaced with an underscore)
</p><p>This is useful if you want a human readable hash in the URL instead of
a cryptic generated one.
</p>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=3" title="Template:UIAPIPlugin">edit</a>]</div><a name="Back_button_and_bookmarking"></a><h3>Back button and bookmarking</h3>
<p>Tabs 2 already supported this functionality, although the history plugin needs a rewrite first (it doesn't support Safari 3 and is in general a little inflexible) before it can be build back into the tabs. It is planned and Klaus is working on it whenever he finds the time. Actual bugs in the UI Tabs plugin itself always have higher priority though.
</p>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=4" title="Template:UIAPIPlugin">edit</a>]</div><a name="How_to..."></a><h2>How to...</h2>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=5" title="Template:UIAPIPlugin">edit</a>]</div><a name="...retrieve_the_index_of_the_currently_selected_tab"></a><h3>...retrieve the index of the currently selected tab</h3>
<pre>var $tabs = $('#example').tabs();
var selected = $tabs.tabs('option', 'selected'); // => 0</pre>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=6" title="Template:UIAPIPlugin">edit</a>]</div><a name="...open_links_in_the_current_tab_instead_of_leaving_the_page"></a><h3>...open links in the current tab instead of leaving the page</h3>
<p>"Hijax" links after tab content has been loaded:
</p>
<pre>$('#example').tabs({
load: function(event, ui) {
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
return false;
});
}
});</pre>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=7" title="Template:UIAPIPlugin">edit</a>]</div><a name="...select_a_tab_from_a_text_link_instead_of_clicking_a_tab_itself"></a><h3>...select a tab from a text link instead of clicking a tab itself</h3>
<pre>var $tabs = $('#example').tabs(); // first tab selected
$('#my-text-link').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to third tab
return false;
});</pre>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=8" title="Template:UIAPIPlugin">edit</a>]</div><a name="...prevent_switching_to_the_tab_on_click_depending_on_form_validation"></a><h3>...prevent switching to the tab on click depending on form validation</h3>
<p>Returning false in the tabs select handler prevents the clicked tab from becoming selected.
</p>
<pre>$('#example').tabs({
select: function(event, ui) {
var isValid = ... // form validation returning true or false
return isValid;
}
});</pre>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=9" title="Template:UIAPIPlugin">edit</a>]</div><a name="...immediately_select_a_just_added_tab"></a><h3>...immediately select a just added tab</h3>
<pre>var $tabs = $('#example').tabs({
add: function(event, ui) {
$tabs.tabs('select', '#' + ui.panel.id);
}
});</pre>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=10" title="Template:UIAPIPlugin">edit</a>]</div><a name="...follow_a_tab.27s_URL_instead_of_loading_its_content_via_ajax"></a><h3>...follow a tab's URL instead of loading its content via ajax</h3>
<p>Note that opening a tab in a new window is unexpected, e.g.
inconsistent behaviour exposing a usablity problem (<a href="http://www.useit.com/alertbox/tabs.html" class="external free" title="http://www.useit.com/alertbox/tabs.html">http://www.useit.com/alertbox/tabs.html</a>).
</p>
<pre>$('#example').tabs({
select: function(event, ui) {
var url = $.data(ui.tab, 'load.tabs');
if( url ) {
location.href = url;
return false;
}
return true;
}
});</pre>
<p><br />
</p>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=11" title="Template:UIAPIPlugin">edit</a>]</div><a name="...prevent_a_FOUC_.28Flash_of_Unstyled_Content.29_before_tabs_are_initialized"></a><h3>...prevent a FOUC (Flash of Unstyled Content) before tabs are initialized</h3>
<p>Add the necessary classes to hide an inactive tab panel to the HTML right away - note that this will <b>not</b> degrade gracefully with JavaScript being disabled:
</p>
<pre><div id="example" class="ui-tabs">
...
<div id="a-tab-panel" class="ui-tabs-hide"> </div>
...
</div></pre>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=12" title="Template:UIAPIPlugin">edit</a>]</div><a name="Why_does..."></a><h2>Why does...</h2>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/Template:UIAPIPlugin?section=13" title="Template:UIAPIPlugin">edit</a>]</div><a name="...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F"></a><h3>...my slider, Google Map, sIFR etc. not work when placed in a hidden (inactive) tab?</h3>
<p>Any component that requires some dimensional computation for its initialization won't work in a hidden tab, because the tab panel itself is hidden via <code>display: none</code> so that any elements inside won't report their actual width and height (0 in most browsers).
</p><p>There's an easy workaround. Use the <em>off-left technique</em> for hiding inactive tab panels. E.g. in your style sheet replace the rule for the class selector ".ui-tabs .ui-tabs-hide" with
</p>
<pre>.ui-tabs .ui-tabs-hide {
position: absolute;
left: -10000px;
}</pre>
<p>For Google maps you can also resize the map once the tab is displayed like this:
</p>
<pre>$('#example').bind('tabsshow', function(event, ui) {
if (ui.panel.id == "map-tab") {
resizeMap();
}
});</pre>
resizeMap() will call Google Maps' checkResize() on the particular map.
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>To use the cookie option: <a href="http://plugins.jquery.com/project/cookie" class="external text" title="http://plugins.jquery.com/project/cookie">jquery.cookie.js</a></li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="295">
A simple jQuery UI Tabs.<br />
</p>
<pre>$("#tabs").tabs();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#tabs").tabs();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="tabs">
<ul>
<li><a href="#fragment-1"><span>One</span></a></li>
<li><a href="#fragment-2"><span>Two</span></a></li>
<li><a href="#fragment-3"><span>Three</span></a></li>
</ul>
<div id="fragment-1">
<p>First tab is active by default:</p>
<pre><code>$('#example').tabs();</code></pre>
</div>
<div id="fragment-2">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
</div>
<div id="fragment-3">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
</div>
</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the tabs. Can be set when initialising (first creating) the tabs.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).tabs( "option", "disabled" );
//setter
$( ".selector" ).tabs( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-ajaxOptions">
<div class="option-header">
<h3 class="option-name"><a href="#option-ajaxOptions">ajaxOptions</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Options</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>Additional Ajax options to consider when loading tab content (see $.ajax).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>ajaxOptions</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ ajaxOptions: { async: false } });</code></pre>
</dd>
<dt>
Get or set the <code>ajaxOptions</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var ajaxOptions = $( ".selector" ).tabs( "option", "ajaxOptions" );
//setter
$( ".selector" ).tabs( "option", "ajaxOptions", { async: false } );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cache">
<div class="option-header">
<h3 class="option-name"><a href="#option-cache">cache</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Whether or not to cache remote tabs content, e.g. load only once or with every click. Cached content is being lazy loaded, e.g once and only once for the first click. Note that to prevent the actual Ajax requests from being cached by the browser you need to provide an extra cache: false flag to ajaxOptions.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>cache</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ cache: true });</code></pre>
</dd>
<dt>
Get or set the <code>cache</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cache = $( ".selector" ).tabs( "option", "cache" );
//setter
$( ".selector" ).tabs( "option", "cache", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-collapsible">
<div class="option-header">
<h3 class="option-name"><a href="#option-collapsible">collapsible</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Set to true to allow an already selected tab to become unselected again upon reselection.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>collapsible</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ collapsible: true });</code></pre>
</dd>
<dt>
Get or set the <code>collapsible</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var collapsible = $( ".selector" ).tabs( "option", "collapsible" );
//setter
$( ".selector" ).tabs( "option", "collapsible", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-cookie">
<div class="option-header">
<h3 class="option-name"><a href="#option-cookie">cookie</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Object</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>Store the latest selected tab in a cookie. The cookie is then used to determine the initially selected tab if the <i>selected</i> option is not defined. Requires cookie plugin. The object needs to have key/value pairs of the form the cookie plugin expects as options. Available options (example): { expires: 7, path: '/', domain: 'jquery.com', secure: true }. Since jQuery UI 1.7 it is also possible to define the cookie name being used via <i>name</i> property.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>cookie</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ cookie: { expires: 30 } });</code></pre>
</dd>
<dt>
Get or set the <code>cookie</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var cookie = $( ".selector" ).tabs( "option", "cookie" );
//setter
$( ".selector" ).tabs( "option", "cookie", { expires: 30 } );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-deselectable">
<div class="option-header">
<h3 class="option-name"><a href="#option-deselectable">deselectable</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>deprecated in jQuery UI 1.7, use collapsible.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>deselectable</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ deselectable: true });</code></pre>
</dd>
<dt>
Get or set the <code>deselectable</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var deselectable = $( ".selector" ).tabs( "option", "deselectable" );
//setter
$( ".selector" ).tabs( "option", "deselectable", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array<Number></dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">[]</dd>
</dl>
</div>
<div class="option-description">
<p>An array containing the position of the tabs (zero-based index) that should be disabled on initialization.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ disabled: [1, 2] });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).tabs( "option", "disabled" );
//setter
$( ".selector" ).tabs( "option", "disabled", [1, 2] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-event">
<div class="option-header">
<h3 class="option-name"><a href="#option-event">event</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'click'</dd>
</dl>
</div>
<div class="option-description">
<p>The type of event to be used for selecting a tab.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>event</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ event: 'mouseover' });</code></pre>
</dd>
<dt>
Get or set the <code>event</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var event = $( ".selector" ).tabs( "option", "event" );
//setter
$( ".selector" ).tabs( "option", "event", 'mouseover' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-fx">
<div class="option-header">
<h3 class="option-name"><a href="#option-fx">fx</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Options, Array<Options></dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>Enable animations for hiding and showing tab panels. The duration option can be a string representing one of the three predefined speeds ("slow", "normal", "fast") or the duration in milliseconds to run an animation (default is "normal").</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>fx</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ fx: { opacity: 'toggle' } });</code></pre>
</dd>
<dt>
Get or set the <code>fx</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var fx = $( ".selector" ).tabs( "option", "fx" );
//setter
$( ".selector" ).tabs( "option", "fx", { opacity: 'toggle' } );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-idPrefix">
<div class="option-header">
<h3 class="option-name"><a href="#option-idPrefix">idPrefix</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'ui-tabs-'</dd>
</dl>
</div>
<div class="option-description">
<p>If the remote tab, its anchor element that is, has no title attribute to generate an id from, an id/fragment identifier is created from this prefix and a unique id returned by $.data(el), for example "ui-tabs-54".</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>idPrefix</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ idPrefix: 'ui-tabs-primary' });</code></pre>
</dd>
<dt>
Get or set the <code>idPrefix</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var idPrefix = $( ".selector" ).tabs( "option", "idPrefix" );
//setter
$( ".selector" ).tabs( "option", "idPrefix", 'ui-tabs-primary' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-panelTemplate">
<div class="option-header">
<h3 class="option-name"><a href="#option-panelTemplate">panelTemplate</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'<div></div>'</dd>
</dl>
</div>
<div class="option-description">
<p>HTML template from which a new tab panel is created in case of adding a tab with the add method or when creating a panel for a remote tab on the fly.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>panelTemplate</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ panelTemplate: '<li></li>' });</code></pre>
</dd>
<dt>
Get or set the <code>panelTemplate</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var panelTemplate = $( ".selector" ).tabs( "option", "panelTemplate" );
//setter
$( ".selector" ).tabs( "option", "panelTemplate", '<li></li>' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-selected">
<div class="option-header">
<h3 class="option-name"><a href="#option-selected">selected</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Zero-based index of the tab to be selected on initialization. To set all tabs to unselected pass -1 as value.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>selected</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ selected: 3 });</code></pre>
</dd>
<dt>
Get or set the <code>selected</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var selected = $( ".selector" ).tabs( "option", "selected" );
//setter
$( ".selector" ).tabs( "option", "selected", 3 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-spinner">
<div class="option-header">
<h3 class="option-name"><a href="#option-spinner">spinner</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'<em>Loading&#8230;</em>'</dd>
</dl>
</div>
<div class="option-description">
<p>The HTML content of this string is shown in a tab title while remote content is loading. Pass in empty string to deactivate that behavior. An span element must be present in the A tag of the title, for the spinner content to be visible.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>spinner</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ spinner: 'Retrieving data...' });</code></pre>
</dd>
<dt>
Get or set the <code>spinner</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var spinner = $( ".selector" ).tabs( "option", "spinner" );
//setter
$( ".selector" ).tabs( "option", "spinner", 'Retrieving data...' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-tabTemplate">
<div class="option-header">
<h3 class="option-name"><a href="#option-tabTemplate">tabTemplate</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'<li><a href="#{href}"><span>#{label}</span></a></li>'</dd>
</dl>
</div>
<div class="option-description">
<p>HTML template from which a new tab is created and added. The placeholders #{href} and #{label} are replaced with the url and tab label that are passed as arguments to the add method.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a tabs with the <code>tabTemplate</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({ tabTemplate: '<div><a href="#{href}"><span>#{label}</span></a></div>' });</code></pre>
</dd>
<dt>
Get or set the <code>tabTemplate</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var tabTemplate = $( ".selector" ).tabs( "option", "tabTemplate" );
//setter
$( ".selector" ).tabs( "option", "tabTemplate", '<div><a href="#{href}"><span>#{label}</span></a></div>' );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabscreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when tabs is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>tabscreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabscreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-select">
<div class="event-header">
<h3 class="event-name"><a href="#event-select">select</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabsselect</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when clicking a tab.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>select</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
select: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>select</code> event by type: <code>tabsselect</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabsselect", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-load">
<div class="event-header">
<h3 class="event-name"><a href="#event-load">load</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabsload</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered after the content of a remote tab has been loaded.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>load</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
load: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>load</code> event by type: <code>tabsload</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabsload", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-show">
<div class="event-header">
<h3 class="event-name"><a href="#event-show">show</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabsshow</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a tab is shown.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>show</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
show: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>show</code> event by type: <code>tabsshow</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabsshow", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-add">
<div class="event-header">
<h3 class="event-name"><a href="#event-add">add</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabsadd</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a tab is added.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>add</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
add: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>add</code> event by type: <code>tabsadd</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabsadd", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-remove">
<div class="event-header">
<h3 class="event-name"><a href="#event-remove">remove</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabsremove</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a tab is removed.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>remove</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
remove: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>remove</code> event by type: <code>tabsremove</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabsremove", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-enable">
<div class="event-header">
<h3 class="event-name"><a href="#event-enable">enable</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabsenable</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a tab is enabled.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>enable</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
enable: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>enable</code> event by type: <code>tabsenable</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabsenable", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-disable">
<div class="event-header">
<h3 class="event-name"><a href="#event-disable">disable</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">tabsdisable</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when a tab is disabled.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>disable</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).tabs({
disable: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>disable</code> event by type: <code>tabsdisable</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "tabsdisable", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the tabs functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the tabs.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the tabs.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any tabs option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple tabs options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-tabs element.</p>
</div>
</li>
<li class="method" id="method-add">
<div class="method-header">
<h3 class="method-name"><a href="#method-add">add</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "add"
, url
, label
, <span class="optional">[</span>index<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Add a new tab. The second argument is either a URL consisting of a fragment identifier only to create an in-page tab or a full url (relative or absolute, no cross-domain support) to turn the new tab into an Ajax (remote) tab. The third is the zero-based position where to insert the new tab. Optional, by default a new tab is appended at the end.</p>
</div>
</li>
<li class="method" id="method-remove">
<div class="method-header">
<h3 class="method-name"><a href="#method-remove">remove</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "remove"
, index
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove a tab. The second argument is the zero-based index of the tab to be removed.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "enable"
, index
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable a disabled tab. To enable more than one tab at once reset the disabled property like: <code>$('#example').tabs("option","disabled",[]);</code>. The second argument is the zero-based index of the tab to be enabled.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "disable"
, index
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable a tab. The selected tab cannot be disabled. To disable more than one tab at once use: <code>$('#example').tabs("option","disabled", [1, 2, 3]);</code> The second argument is the zero-based index of the tab to be disabled.</p>
</div>
</li>
<li class="method" id="method-select">
<div class="method-header">
<h3 class="method-name"><a href="#method-select">select</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "select"
, index
)</dd>
</dl>
</div>
<div class="method-description">
<p>Select a tab, as if it were clicked. The second argument is the zero-based index of the tab to be selected or the id selector of the panel the tab is associated with (the tab's href fragment identifier, e.g. hash, points to the panel's id).</p>
</div>
</li>
<li class="method" id="method-load">
<div class="method-header">
<h3 class="method-name"><a href="#method-load">load</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "load"
, index
)</dd>
</dl>
</div>
<div class="method-description">
<p>Reload the content of an Ajax tab programmatically. This method always loads the tab content from the remote location, even if cache is set to true. The second argument is the zero-based index of the tab to be reloaded.</p>
</div>
</li>
<li class="method" id="method-url">
<div class="method-header">
<h3 class="method-name"><a href="#method-url">url</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "url"
, index
, url
)</dd>
</dl>
</div>
<div class="method-description">
<p>Change the url from which an Ajax (remote) tab will be loaded. The specified URL will be used for subsequent loads. Note that you can not only change the URL for an existing remote tab with this method, but also turn an in-page tab into a remote tab. The second argument is the zero-based index of the tab of which its URL is to be updated. The third is a URL the content of the tab is loaded from.</p>
</div>
</li>
<li class="method" id="method-length">
<div class="method-header">
<h3 class="method-name"><a href="#method-length">length</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "length"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Retrieve the number of tabs of the first matched tab pane.</p>
</div>
</li>
<li class="method" id="method-abort">
<div class="method-header">
<h3 class="method-name"><a href="#method-abort">abort</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "abort"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Terminate all running tab ajax requests and animations.</p>
</div>
</li>
<li class="method" id="method-rotate">
<div class="method-header">
<h3 class="method-name"><a href="#method-rotate">rotate</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.tabs( "rotate"
, ms
, <span class="optional">[</span>continuing<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set up an automatic rotation through tabs of a tab pane. The second argument is an amount of time in milliseconds until the next tab in the cycle gets activated. Use 0 or null to stop the rotation. The third controls whether or not to continue the rotation after a tab has been selected by a user. Default: false.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Tabs plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.tabs.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="<strong>ui-tabs</strong> ui-widget ui-widget-content ui-corner-all" id="tabs"><br />
<ul class="<strong>ui-tabs-nav</strong> ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"><br />
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-1">Nunc tincidunt</a></li><br />
<li class="ui-state-default ui-corner-top"><a href="#tabs-2">Proin dolor</a></li><br />
<div class="<strong>ui-tabs-panel</strong> ui-widget-content ui-corner-bottom" id="tabs-1"><br />
<p>Tab one content goes here.</p><br />
</div><br />
...<br />
</div><br />
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the tabs plugin, not markup you should use to create a tabs. The only markup needed for that is <br /><div id="tabs"><br />
   <ul><br />
      <li><a href="#tabs-1">Nunc tincidunt</a></li><br />
      <li><a href="#tabs-2">Proin dolor</a></li><br />
      <li><a href="#tabs-3">Aenean lacinia</a></li><br />
   </ul><br />
   <div id="tabs-1"><br />
      <p>Tab 1 content</p><br />
   </div><br />
   <div id="tabs-2"><br />
      <p>Tab 2 content</p><br />
   </div><br />
   <div id="tabs-3"><br />
      <p>Tab 3 content</p><br />
   </div><br />
</div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 57666 bytes
Post-expand include size: 97047 bytes
Template argument size: 57150 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3777-1!1!0!!en!2 and timestamp 20110119023354 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/tabs.html
|
HTML
|
gpl3
| 51,356
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI addClass</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/addClass?section=1" title="Edit section: addClass( class, [duration] )">edit</a>]</div><a name="addClass.28_class.2C_.5Bduration.5D_.29"></a><h3>addClass( class, <span class="optional">[</span>duration<span class="optional">]</span> )</h3>
<p>Adds the specified class to each of the set of matched elements with an optional transition between the states.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="100">
Adds the class 'selected' to the matched elements with a one second transition.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">addClass</strong>("selected", 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<style type="text/css">
p { cursor: pointer; font-size: 1.2em; }
.selected { color:red; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">addClass</strong>("selected", 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Click me to add a 'selected' class.</p>
<p>Click me to add a 'selected' class.</p>
<p>Click me to add a 'selected' class.</p>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-class">
<div class="option-header">
<h3 class="option-name"><a href="#option-class">class</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>One CSS class to add to the elements.</p>
</div>
</li>
<li class="option" id="option-duration">
<div class="option-header">
<h3 class="option-name"><a href="#option-duration">duration</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 5208 bytes
Post-expand include size: 6765 bytes
Template argument size: 4231 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2606-1!1!0!!en!2 and timestamp 20110119095532 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/addClass.html
|
HTML
|
gpl3
| 4,052
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Accordion</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>Make the selected elements Accordion widgets. Semantic requirements:</p>
<p>The markup of your accordion container needs pairs of headers and content panels:</p>
<pre><div id="accordion">
<h3><a href="#">First header</a></h3>
<div>First content</div>
<h3><a href="#">Second header</a></h3>
<div>Second content</div>
</div></pre>
<p>If you use a different element for the header, specify the header-option with an appropriate selector, eg. header: 'a.header'. The content element must be always next to its header.</p>
<p>If you have links inside the accordion content and use a-elements as headers, add a class to them and use that as the header, eg. header: 'a.header'.</p>
<p>Use activate(Number) to change the active content programmatically.</p>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/API/1.8/Accordion?section=1" title="Edit section: NOTE: If you want multiple sections open at once, don't use an accordion">edit</a>]</div><a name="NOTE:_If_you_want_multiple_sections_open_at_once.2C_don.27t_use_an_accordion"></a><h4>NOTE: If you want multiple sections open at once, don't use an accordion</h4>
<p>An accordion doesn't allow more than one content panel to be open at the same time, and it takes a lot of effort to do that. If you are looking for a widget that allows more than one content panel to be open, don't use this. Usually it can be written with a few lines of jQuery instead, something like this:</p>
<pre>jQuery(document).ready(function(){
$('.accordion .head').click(function() {
$(this).next().toggle();
return false;
}).next().hide();
});</pre>
<p>Or animated:</p>
<pre>jQuery(document).ready(function(){
$('.accordion .head').click(function() {
$(this).next().toggle('slow');
return false;
}).next().hide();
});</pre>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Effects Core (Optional - only for non-default animations)</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="310">
A simple jQuery UI Accordion.<br />
</p>
<pre>$("#accordion").accordion();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#accordion").accordion();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="accordion">
<h3><a href="#">Section 1</a></h3>
<div>
<p>
Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
</p>
</div>
<h3><a href="#">Section 2</a></h3>
<div>
<p>
Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
suscipit faucibus urna.
</p>
</div>
<h3><a href="#">Section 3</a></h3>
<div>
<p>
Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
</p>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</div>
<h3><a href="#">Section 4</a></h3>
<div>
<p>
Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.
</p>
<p>
Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
inceptos himenaeos.
</p>
</div>
</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the accordion. Can be set when initialising (first creating) the accordion.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).accordion( "option", "disabled" );
//setter
$( ".selector" ).accordion( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-active">
<div class="option-header">
<h3 class="option-name"><a href="#option-active">active</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, Element, jQuery, Boolean, Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">first child</dd>
</dl>
</div>
<div class="option-description">
<p>Selector for the active element. Set to false to display none at start. Needs <code>collapsible: true</code>.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>active</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ active: 2 });</code></pre>
</dd>
<dt>
Get or set the <code>active</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var active = $( ".selector" ).accordion( "option", "active" );
//setter
$( ".selector" ).accordion( "option", "active", 2 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-animated">
<div class="option-header">
<h3 class="option-name"><a href="#option-animated">animated</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean, String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'slide'</dd>
</dl>
</div>
<div class="option-description">
<p>Choose your favorite animation, or disable them (set to false). In addition to the default, 'bounceslide' and all defined easing methods are supported ('bounceslide' requires UI Effects Core).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>animated</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ animated: 'bounceslide' });</code></pre>
</dd>
<dt>
Get or set the <code>animated</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var animated = $( ".selector" ).accordion( "option", "animated" );
//setter
$( ".selector" ).accordion( "option", "animated", 'bounceslide' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-autoHeight">
<div class="option-header">
<h3 class="option-name"><a href="#option-autoHeight">autoHeight</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If set, the highest content part is used as height reference for all other parts. Provides more consistent animations.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>autoHeight</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ autoHeight: false });</code></pre>
</dd>
<dt>
Get or set the <code>autoHeight</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var autoHeight = $( ".selector" ).accordion( "option", "autoHeight" );
//setter
$( ".selector" ).accordion( "option", "autoHeight", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-clearStyle">
<div class="option-header">
<h3 class="option-name"><a href="#option-clearStyle">clearStyle</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set, clears height and overflow styles after finishing animations. This enables accordions to work with dynamic content. Won't work together with autoHeight.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>clearStyle</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ clearStyle: true });</code></pre>
</dd>
<dt>
Get or set the <code>clearStyle</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var clearStyle = $( ".selector" ).accordion( "option", "clearStyle" );
//setter
$( ".selector" ).accordion( "option", "clearStyle", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-collapsible">
<div class="option-header">
<h3 class="option-name"><a href="#option-collapsible">collapsible</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Whether all the sections can be closed at once. Allows collapsing the active section by the triggering event (click is the default).</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>collapsible</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ collapsible: true });</code></pre>
</dd>
<dt>
Get or set the <code>collapsible</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var collapsible = $( ".selector" ).accordion( "option", "collapsible" );
//setter
$( ".selector" ).accordion( "option", "collapsible", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-event">
<div class="option-header">
<h3 class="option-name"><a href="#option-event">event</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'click'</dd>
</dl>
</div>
<div class="option-description">
<p>The event on which to trigger the accordion.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>event</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ event: 'mouseover' });</code></pre>
</dd>
<dt>
Get or set the <code>event</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var event = $( ".selector" ).accordion( "option", "event" );
//setter
$( ".selector" ).accordion( "option", "event", 'mouseover' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-fillSpace">
<div class="option-header">
<h3 class="option-name"><a href="#option-fillSpace">fillSpace</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set, the accordion completely fills the height of the parent element. Overrides autoheight.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>fillSpace</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ fillSpace: true });</code></pre>
</dd>
<dt>
Get or set the <code>fillSpace</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var fillSpace = $( ".selector" ).accordion( "option", "fillSpace" );
//setter
$( ".selector" ).accordion( "option", "fillSpace", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-header">
<div class="option-header">
<h3 class="option-name"><a href="#option-header">header</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, jQuery</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'> li > :first-child,> :not(li):even'</dd>
</dl>
</div>
<div class="option-description">
<p>Selector for the header element.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>header</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ header: 'h3' });</code></pre>
</dd>
<dt>
Get or set the <code>header</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var header = $( ".selector" ).accordion( "option", "header" );
//setter
$( ".selector" ).accordion( "option", "header", 'h3' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-icons">
<div class="option-header">
<h3 class="option-name"><a href="#option-icons">icons</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Object</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">{ 'header': 'ui-icon-triangle-1-e', 'headerSelected': 'ui-icon-triangle-1-s' }</dd>
</dl>
</div>
<div class="option-description">
<p>Icons to use for headers. Icons may be specified for 'header' and 'headerSelected', and we recommend using the icons native to the jQuery UI CSS Framework manipulated by <a href="http://www.themeroller.com" class="external text" title="http://www.themeroller.com">jQuery UI ThemeRoller</a></p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>icons</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ icons: { 'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' } });</code></pre>
</dd>
<dt>
Get or set the <code>icons</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var icons = $( ".selector" ).accordion( "option", "icons" );
//setter
$( ".selector" ).accordion( "option", "icons", { 'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' } );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-navigation">
<div class="option-header">
<h3 class="option-name"><a href="#option-navigation">navigation</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If set, looks for the anchor that matches location.href and activates it. Great for href-based state-saving. Use navigationFilter to implement your own matcher.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>navigation</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ navigation: true });</code></pre>
</dd>
<dt>
Get or set the <code>navigation</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var navigation = $( ".selector" ).accordion( "option", "navigation" );
//setter
$( ".selector" ).accordion( "option", "navigation", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-navigationFilter">
<div class="option-header">
<h3 class="option-name"><a href="#option-navigationFilter">navigationFilter</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Function</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default"> </dd>
</dl>
</div>
<div class="option-description">
<p>Overwrite the default location.href-matching with your own matcher.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a accordion with the <code>navigationFilter</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({ navigationFilter: function(){ ... } });</code></pre>
</dd>
<dt>
Get or set the <code>navigationFilter</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var navigationFilter = $( ".selector" ).accordion( "option", "navigationFilter" );
//setter
$( ".selector" ).accordion( "option", "navigationFilter", function(){ ... } );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">accordioncreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when accordion is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>accordioncreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "accordioncreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-change">
<div class="event-header">
<h3 class="event-name"><a href="#event-change">change</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">accordionchange</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered every time the accordion changes. If the accordion is animated, the event will be triggered upon completion of the animation; otherwise, it is triggered immediately.
</p>
<pre>$('.ui-accordion').bind('accordionchange', function(event, ui) {
ui.newHeader // jQuery object, activated header
ui.oldHeader // jQuery object, previous header
ui.newContent // jQuery object, activated content
ui.oldContent // jQuery object, previous content
});</pre></p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>change</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({
change: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>change</code> event by type: <code>accordionchange</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "accordionchange", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<p>
<li class="event" id="event-changestart">
<div class="event-header">
<h3 class="event-name"><a href="#event-changestart">changestart</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">accordionchangestart</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered every time the accordion starts to change.
</p>
<pre>$('.ui-accordion').bind('accordionchangestart', function(event, ui) {
ui.newHeader // jQuery object, activated header
ui.oldHeader // jQuery object, previous header
ui.newContent // jQuery object, activated content
ui.oldContent // jQuery object, previous content
});</pre></p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>changestart</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).accordion({
changestart: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>changestart</code> event by type: <code>accordionchangestart</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "accordionchangestart", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the accordion functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<p>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the accordion.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the accordion.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any accordion option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple accordion options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-accordion element.</p>
</div>
</li>
<li class="method" id="method-activate">
<div class="method-header">
<h3 class="method-name"><a href="#method-activate">activate</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "activate"
, index
)</dd>
</dl>
</div>
<div class="method-description">
<p>Activate a content part of the Accordion programmatically. The index can be a zero-indexed number to match the position of the header to close or a Selector matching an element. Pass <code>false</code> to close all (only possible with <code>collapsible:true</code>).</p>
</div>
</li>
<li class="method" id="method-resize">
<div class="method-header">
<h3 class="method-name"><a href="#method-resize">resize</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.accordion( "resize"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Recompute heights of the accordion contents when using the fillSpace option and the container height changed. For example, when the container is a resizable, this method should be called by its resize-event.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Accordion plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.accordion.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="<strong>ui-accordion</strong> ui-widget ui-helper-reset"><br />
<h3 class="<strong>ui-accordion-header</strong> ui-helper-reset ui-state-active ui-corner-top"><br />
<span class="ui-icon ui-icon-triangle-1-s"/><br />
<a href="#">Section 1</a><br />
</h3><br />
<div class="<strong>ui-accordion-content</strong> ui-helper-reset ui-widget-content ui-corner-bottom <strong>ui-accordion-content-active</strong>"><br />
Section 1 content<br />
</div><br />
<h3 class="<strong>ui-accordion-header</strong> ui-helper-reset ui-state-default ui-corner-all"><br />
<span class="ui-icon ui-icon-triangle-1-e"/><br />
<a href="#">Section 2</a><br />
</h3><br />
<div class="<strong>ui-accordion-content</strong> ui-helper-reset ui-widget-content ui-corner-bottom"><br />
Section 2 content<br />
</div><br />
<h3 class="<strong>ui-accordion-header</strong> ui-helper-reset ui-state-default ui-corner-all"><br />
<span class="ui-icon ui-icon-triangle-1-e"/><br />
<a href="#">Section 3</a><br />
</h3><br />
<div class="<strong>ui-accordion-content</strong> ui-helper-reset ui-widget-content ui-corner-bottom"><br />
Section 3 content<br />
</div><br />
</div><br />
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the accordion plugin, not markup you should use to create a accordion. The only markup needed for that is <br /><div><br />
   <h3><a href="#">Section 1</a></h3><br />
   <div><br />
      Section 1 content<br />
   </div><br />
   <h3><a href="#">Section 2</a></h3><br />
   <div><br />
      Section 2 content<br />
   </div><br />
   <h3><a href="#">Section 3</a></h3><br />
   <div><br />
      Section 3 content<br />
   </div><br />
</div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 38072 bytes
Post-expand include size: 64737 bytes
Template argument size: 35841 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3773-1!1!0!!en!2 and timestamp 20110119062432 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/accordion.html
|
HTML
|
gpl3
| 30,591
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI hide</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/hide?section=1" title="Edit section: hide( effect, [options], [speed], [callback] )">edit</a>]</div><a name="hide.28_effect.2C_.5Boptions.5D.2C_.5Bspeed.5D.2C_.5Bcallback.5D_.29"></a><h3>hide( effect, <span class="optional">[</span>options<span class="optional">]</span>, <span class="optional">[</span>speed<span class="optional">]</span>, <span class="optional">[</span>callback<span class="optional">]</span> )</h3>
<p>The enhanced hide method optionally accepts jQuery UI advanced effects.</p>
<p>Uses a specific effect on an element to hide the element if the first argument is an effect string.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Apply the effect slide if you click on the p to hide a div.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">hide</strong>("slide", {}, 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.slide.js"></script>
<style type="text/css">
div { margin: 0px; width: 100px; height: 80px; background: blue; position: relative; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">hide</strong>("slide", {}, 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Click me</p><div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-effect">
<div class="option-header">
<h3 class="option-name"><a href="#option-effect">effect</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>The effect to be used. Possible values: 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'slide', 'scale', 'size', 'pulsate'.</p>
</div>
</li>
<li class="option" id="option-options">
<div class="option-header">
<h3 class="option-name"><a href="#option-options">options</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Hash</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A object/hash including specific options for the effect.</p>
</div>
</li>
<li class="option" id="option-speed">
<div class="option-header">
<h3 class="option-name"><a href="#option-speed">speed</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the predefined speeds ("slow" or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
<li class="option" id="option-callback">
<div class="option-header">
<h3 class="option-name"><a href="#option-callback">callback</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Function</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A function that is called after the effect is completed.</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 6354 bytes
Post-expand include size: 8727 bytes
Template argument size: 5453 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2614-1!1!0!!en!2 and timestamp 20110119091155 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/hide.html
|
HTML
|
gpl3
| 5,258
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Datepicker</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and language, restrict the selectable date ranges and add in buttons and other navigation options easily.</p>
<p>By default, the datepicker calendar opens in a small overlay onFocus and closes automatically onBlur or when a date is selected. For an inline calendar, simply attach the datepicker to a div or span.
</p><p>You can use keyboard shortcuts to drive the datepicker:
</p>
<ul>
<li>page up/down - previous/next month</li>
<li>ctrl+page up/down - previous/next year</li>
<li>ctrl+home - current month or open when closed</li>
<li>ctrl+left/right - previous/next day</li>
<li>ctrl+up/down - previous/next week</li>
<li>enter - accept the selected date</li>
<li>ctrl+end - close and erase the date</li>
<li>escape - close the datepicker without selection</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/API/1.8/Datepicker?section=1" title="Edit section: Utility functions">edit</a>]</div><a name="Utility_functions"></a><h3 id="utility-functions">Utility functions</h3>
<ul>
<li><a href="http://docs.jquery.com/UI/Datepicker/setDefaults" title="UI/Datepicker/setDefaults">$.datepicker.setDefaults( settings )</a> - Set settings for all datepicker instances.</li>
<li><a href="http://docs.jquery.com/UI/Datepicker/formatDate" title="UI/Datepicker/formatDate">$.datepicker.formatDate( format, date, settings )</a> - Format a date into a string value with a specified format.</li>
<li><a href="http://docs.jquery.com/UI/Datepicker/parseDate" title="UI/Datepicker/parseDate">$.datepicker.parseDate( format, value, settings ) </a> - Extract a date from a string value with a specified format.</li>
<li><a href="http://docs.jquery.com/UI/Datepicker/iso8601Week" title="UI/Datepicker/iso8601Week">$.datepicker.iso8601Week( date )</a> - Determine the week of the year for a given date: 1 to 53.</li>
<li><a href="http://docs.jquery.com/UI/Datepicker/noWeekends" title="UI/Datepicker/noWeekends">$.datepicker.noWeekends</a> - Set as beforeShowDay function to prevent selection of weekends.</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/API/1.8/Datepicker?section=2" title="Edit section: Localization">edit</a>]</div><a name="Localization"></a><h3>Localization</h3>
<p>Datepicker provides support for localizing its content to cater for different languages
and date formats. Each localization is contained within its own file with the
language code appended to the name, e.g. <code>jquery.ui.datepicker-fr.js</code> for French.
The desired localization file should be include after the main datepicker code. They add their settings to the set
of available localizations and automatically apply them as defaults for all instances.</p>
<p>The <code>$.datepicker.regional</code> attribute holds an array of localizations,
indexed by language code, with '' referring to the default (English). Each entry is
an object with the following attributes: <code>closeText</code>, <code>prevText</code>,
<code>nextText</code>, <code>currentText</code>, <code>monthNames</code>,
<code>monthNamesShort</code>, <code>dayNames</code>, <code>dayNamesShort</code>,
<code>dayNamesMin</code>, <code>weekHeader</code>, <code>dateFormat</code>,
<code>firstDay</code>, <code>isRTL</code>, <code>showMonthAfterYear</code>,
and <code>yearSuffix</code>.</p>
<p>You can restore the default localizations with:</p>
<p><code>$.datepicker.setDefaults($.datepicker.regional['']);</code>
</p>
<p>And can then override an individual datepicker for a specific locale:</p>
<p><code>$(selector).datepicker($.datepicker.regional['fr']);</code>
</p>
The localization files are also available in the UI svn: <a href="http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/" class="external free" title="http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/">http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/</a>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="220">
A simple jQuery UI Datepicker.<br />
</p>
<pre>$("#datepicker").datepicker();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#datepicker").datepicker();
});
</script>
</head>
<body style="font-size:62.5%;">
<div type="text" id="datepicker"></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the datepicker. Can be set when initialising (first creating) the datepicker.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).datepicker( "option", "disabled" );
//setter
$( ".selector" ).datepicker( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-altField">
<div class="option-header">
<h3 class="option-name"><a href="#option-altField">altField</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, jQuery, Element</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The jQuery selector for another field that is to be updated with the selected date from the datepicker. Use the <code><a href="http://docs.jquery.com/UI/Datepicker#option-altFormat" title="UI/Datepicker">altFormat</a></code> setting to change the format of the date within this field. Leave as blank for no alternate field.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>altField</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ altField: '#actualDate' });</code></pre>
</dd>
<dt>
Get or set the <code>altField</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var altField = $( ".selector" ).datepicker( "option", "altField" );
//setter
$( ".selector" ).datepicker( "option", "altField", '#actualDate' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-altFormat">
<div class="option-header">
<h3 class="option-name"><a href="#option-altFormat">altFormat</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code> to be used for the <code><a href="http://docs.jquery.com/UI/Datepicker#option-altField" title="UI/Datepicker">altField</a></code> option. This allows one date format to be shown to the user for selection purposes, while a different format is actually sent behind the scenes. For a full list of the possible formats see the <a href="http://docs.jquery.com/UI/Datepicker/formatDate" title="UI/Datepicker/formatDate">formatDate</a> function</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>altFormat</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ altFormat: 'yy-mm-dd' });</code></pre>
</dd>
<dt>
Get or set the <code>altFormat</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var altFormat = $( ".selector" ).datepicker( "option", "altFormat" );
//setter
$( ".selector" ).datepicker( "option", "altFormat", 'yy-mm-dd' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-appendText">
<div class="option-header">
<h3 class="option-name"><a href="#option-appendText">appendText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display after each date field, e.g. to show the required format.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>appendText</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ appendText: '(yyyy-mm-dd)' });</code></pre>
</dd>
<dt>
Get or set the <code>appendText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var appendText = $( ".selector" ).datepicker( "option", "appendText" );
//setter
$( ".selector" ).datepicker( "option", "appendText", '(yyyy-mm-dd)' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-autoSize">
<div class="option-header">
<h3 class="option-name"><a href="#option-autoSize">autoSize</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Set to true to automatically resize the input field to accomodate dates in the current <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code>.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>autoSize</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ autoSize: true });</code></pre>
</dd>
<dt>
Get or set the <code>autoSize</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var autoSize = $( ".selector" ).datepicker( "option", "autoSize" );
//setter
$( ".selector" ).datepicker( "option", "autoSize", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-buttonImage">
<div class="option-header">
<h3 class="option-name"><a href="#option-buttonImage">buttonImage</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The URL for the popup button image. If set, <code><a href="http://docs.jquery.com/UI/Datepicker#option-buttonText" title="UI/Datepicker">buttonText</a></code> becomes the <i>alt</i> value and is not directly displayed.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>buttonImage</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ buttonImage: '/images/datepicker.gif' });</code></pre>
</dd>
<dt>
Get or set the <code>buttonImage</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var buttonImage = $( ".selector" ).datepicker( "option", "buttonImage" );
//setter
$( ".selector" ).datepicker( "option", "buttonImage", '/images/datepicker.gif' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-buttonImageOnly">
<div class="option-header">
<h3 class="option-name"><a href="#option-buttonImageOnly">buttonImageOnly</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Set to true to place an image after the field to use as the trigger without it appearing on a button.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>buttonImageOnly</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ buttonImageOnly: true });</code></pre>
</dd>
<dt>
Get or set the <code>buttonImageOnly</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var buttonImageOnly = $( ".selector" ).datepicker( "option", "buttonImageOnly" );
//setter
$( ".selector" ).datepicker( "option", "buttonImageOnly", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-buttonText">
<div class="option-header">
<h3 class="option-name"><a href="#option-buttonText">buttonText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'...'</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display on the trigger button. Use in conjunction with <code><a href="http://docs.jquery.com/UI/Datepicker#option-showOn" title="UI/Datepicker">showOn</a></code> equal to 'button' or 'both'.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>buttonText</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ buttonText: 'Choose' });</code></pre>
</dd>
<dt>
Get or set the <code>buttonText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var buttonText = $( ".selector" ).datepicker( "option", "buttonText" );
//setter
$( ".selector" ).datepicker( "option", "buttonText", 'Choose' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-calculateWeek">
<div class="option-header">
<h3 class="option-name"><a href="#option-calculateWeek">calculateWeek</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Function</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">$.datepicker.iso8601Week</dd>
</dl>
</div>
<div class="option-description">
<p>A function to calculate the week of the year for a given date. The default implementation uses the ISO 8601 definition: weeks start on a Monday; the first week of the year contains the first Thursday of the year.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>calculateWeek</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ calculateWeek: myWeekCalc });</code></pre>
</dd>
<dt>
Get or set the <code>calculateWeek</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var calculateWeek = $( ".selector" ).datepicker( "option", "calculateWeek" );
//setter
$( ".selector" ).datepicker( "option", "calculateWeek", myWeekCalc );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-changeMonth">
<div class="option-header">
<h3 class="option-name"><a href="#option-changeMonth">changeMonth</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Allows you to change the month by selecting from a drop-down list. You can enable this feature by setting the attribute to true.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>changeMonth</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ changeMonth: true });</code></pre>
</dd>
<dt>
Get or set the <code>changeMonth</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var changeMonth = $( ".selector" ).datepicker( "option", "changeMonth" );
//setter
$( ".selector" ).datepicker( "option", "changeMonth", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-changeYear">
<div class="option-header">
<h3 class="option-name"><a href="#option-changeYear">changeYear</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Allows you to change the year by selecting from a drop-down list. You can enable this feature by setting the attribute to true. Use the <code><a href="http://docs.jquery.com/UI/Datepicker#option-yearRange" title="UI/Datepicker">yearRange</a></code> option to control which years are made available for selection.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>changeYear</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ changeYear: true });</code></pre>
</dd>
<dt>
Get or set the <code>changeYear</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var changeYear = $( ".selector" ).datepicker( "option", "changeYear" );
//setter
$( ".selector" ).datepicker( "option", "changeYear", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-closeText">
<div class="option-header">
<h3 class="option-name"><a href="#option-closeText">closeText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'Done'</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display for the close link. This attribute is one of the regionalisation attributes. Use the <code><a href="http://docs.jquery.com/UI/Datepicker#option-showButtonPanel" title="UI/Datepicker">showButtonPanel</a></code> to display this button.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>closeText</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ closeText: 'X' });</code></pre>
</dd>
<dt>
Get or set the <code>closeText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var closeText = $( ".selector" ).datepicker( "option", "closeText" );
//setter
$( ".selector" ).datepicker( "option", "closeText", 'X' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-constrainInput">
<div class="option-header">
<h3 class="option-name"><a href="#option-constrainInput">constrainInput</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>When true entry in the input field is constrained to those characters allowed by the current <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code>.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>constrainInput</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ constrainInput: false });</code></pre>
</dd>
<dt>
Get or set the <code>constrainInput</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var constrainInput = $( ".selector" ).datepicker( "option", "constrainInput" );
//setter
$( ".selector" ).datepicker( "option", "constrainInput", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-currentText">
<div class="option-header">
<h3 class="option-name"><a href="#option-currentText">currentText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'Today'</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display for the current day link. This attribute is one of the regionalisation attributes. Use the <code><a href="http://docs.jquery.com/UI/Datepicker#option-showButtonPanel" title="UI/Datepicker">showButtonPanel</a></code> to display this button.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>currentText</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ currentText: 'Now' });</code></pre>
</dd>
<dt>
Get or set the <code>currentText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var currentText = $( ".selector" ).datepicker( "option", "currentText" );
//setter
$( ".selector" ).datepicker( "option", "currentText", 'Now' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-dateFormat">
<div class="option-header">
<h3 class="option-name"><a href="#option-dateFormat">dateFormat</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'mm/dd/yy'</dd>
</dl>
</div>
<div class="option-description">
<p>The format for parsed and displayed dates. This attribute is one of the regionalisation attributes. For a full list of the possible formats see the <code><a href="http://docs.jquery.com/UI/Datepicker/formatDate" title="UI/Datepicker/formatDate">formatDate</a></code> function.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>dateFormat</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ dateFormat: 'yy-mm-dd' });</code></pre>
</dd>
<dt>
Get or set the <code>dateFormat</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var dateFormat = $( ".selector" ).datepicker( "option", "dateFormat" );
//setter
$( ".selector" ).datepicker( "option", "dateFormat", 'yy-mm-dd' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-dayNames">
<div class="option-header">
<h3 class="option-name"><a href="#option-dayNames">dayNames</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']</dd>
</dl>
</div>
<div class="option-description">
<p>The list of long day names, starting from Sunday, for use as requested via the <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code> setting. They also appear as popup hints when hovering over the corresponding column headings. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>dayNames</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'] });</code></pre>
</dd>
<dt>
Get or set the <code>dayNames</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var dayNames = $( ".selector" ).datepicker( "option", "dayNames" );
//setter
$( ".selector" ).datepicker( "option", "dayNames", ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-dayNamesMin">
<div class="option-header">
<h3 class="option-name"><a href="#option-dayNamesMin">dayNamesMin</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']</dd>
</dl>
</div>
<div class="option-description">
<p>The list of minimised day names, starting from Sunday, for use as column headers within the datepicker. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>dayNamesMin</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ dayNamesMin: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'] });</code></pre>
</dd>
<dt>
Get or set the <code>dayNamesMin</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var dayNamesMin = $( ".selector" ).datepicker( "option", "dayNamesMin" );
//setter
$( ".selector" ).datepicker( "option", "dayNamesMin", ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-dayNamesShort">
<div class="option-header">
<h3 class="option-name"><a href="#option-dayNamesShort">dayNamesShort</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']</dd>
</dl>
</div>
<div class="option-description">
<p>The list of abbreviated day names, starting from Sunday, for use as requested via the <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code> setting. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>dayNamesShort</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ dayNamesShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'] });</code></pre>
</dd>
<dt>
Get or set the <code>dayNamesShort</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var dayNamesShort = $( ".selector" ).datepicker( "option", "dayNamesShort" );
//setter
$( ".selector" ).datepicker( "option", "dayNamesShort", ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-defaultDate">
<div class="option-header">
<h3 class="option-name"><a href="#option-defaultDate">defaultDate</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Date, Number, String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>Set the date to highlight on first opening if the field is blank. Specify either an actual date via a Date object or as a string in the current <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code>, or a number of days from today (e.g. +7) or a string of values and periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days, e.g. '+1m +7d'), or null for today.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>defaultDate</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ defaultDate: +7 });</code></pre>
</dd>
<dt>
Get or set the <code>defaultDate</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var defaultDate = $( ".selector" ).datepicker( "option", "defaultDate" );
//setter
$( ".selector" ).datepicker( "option", "defaultDate", +7 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-duration">
<div class="option-header">
<h3 class="option-name"><a href="#option-duration">duration</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'normal'</dd>
</dl>
</div>
<div class="option-description">
<p>Control the speed at which the datepicker appears, it may be a time in milliseconds or a string representing one of the three predefined speeds ("slow", "normal", "fast").</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>duration</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ duration: 'slow' });</code></pre>
</dd>
<dt>
Get or set the <code>duration</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var duration = $( ".selector" ).datepicker( "option", "duration" );
//setter
$( ".selector" ).datepicker( "option", "duration", 'slow' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-firstDay">
<div class="option-header">
<h3 class="option-name"><a href="#option-firstDay">firstDay</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Set the first day of the week: Sunday is 0, Monday is 1, ... This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>firstDay</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ firstDay: 1 });</code></pre>
</dd>
<dt>
Get or set the <code>firstDay</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var firstDay = $( ".selector" ).datepicker( "option", "firstDay" );
//setter
$( ".selector" ).datepicker( "option", "firstDay", 1 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-gotoCurrent">
<div class="option-header">
<h3 class="option-name"><a href="#option-gotoCurrent">gotoCurrent</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>When true the current day link moves to the currently selected date instead of today.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>gotoCurrent</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ gotoCurrent: true });</code></pre>
</dd>
<dt>
Get or set the <code>gotoCurrent</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var gotoCurrent = $( ".selector" ).datepicker( "option", "gotoCurrent" );
//setter
$( ".selector" ).datepicker( "option", "gotoCurrent", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-hideIfNoPrevNext">
<div class="option-header">
<h3 class="option-name"><a href="#option-hideIfNoPrevNext">hideIfNoPrevNext</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Normally the previous and next links are disabled when not applicable (see <code><a href="http://docs.jquery.com/UI/Datepicker#option-minDate" title="UI/Datepicker">minDate</a></code>/<code><a href="http://docs.jquery.com/UI/Datepicker#option-maxDate" title="UI/Datepicker">maxDate</a></code>). You can hide them altogether by setting this attribute to true.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>hideIfNoPrevNext</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ hideIfNoPrevNext: true });</code></pre>
</dd>
<dt>
Get or set the <code>hideIfNoPrevNext</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var hideIfNoPrevNext = $( ".selector" ).datepicker( "option", "hideIfNoPrevNext" );
//setter
$( ".selector" ).datepicker( "option", "hideIfNoPrevNext", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-isRTL">
<div class="option-header">
<h3 class="option-name"><a href="#option-isRTL">isRTL</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>True if the current language is drawn from right to left. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>isRTL</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ isRTL: true });</code></pre>
</dd>
<dt>
Get or set the <code>isRTL</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var isRTL = $( ".selector" ).datepicker( "option", "isRTL" );
//setter
$( ".selector" ).datepicker( "option", "isRTL", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-maxDate">
<div class="option-header">
<h3 class="option-name"><a href="#option-maxDate">maxDate</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Date, Number, String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>Set a maximum selectable date via a Date object or as a string in the current <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code>, or a number of days from today (e.g. +7) or a string of values and periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days, e.g. '+1m +1w'), or null for no limit.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>maxDate</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ maxDate: '+1m +1w' });</code></pre>
</dd>
<dt>
Get or set the <code>maxDate</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var maxDate = $( ".selector" ).datepicker( "option", "maxDate" );
//setter
$( ".selector" ).datepicker( "option", "maxDate", '+1m +1w' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-minDate">
<div class="option-header">
<h3 class="option-name"><a href="#option-minDate">minDate</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Date, Number, String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">null</dd>
</dl>
</div>
<div class="option-description">
<p>Set a minimum selectable date via a Date object or as a string in the current <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code>, or a number of days from today (e.g. +7) or a string of values and periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days, e.g. '-1y -1m'), or null for no limit.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>minDate</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ minDate: new Date(2007, 1 - 1, 1) });</code></pre>
</dd>
<dt>
Get or set the <code>minDate</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var minDate = $( ".selector" ).datepicker( "option", "minDate" );
//setter
$( ".selector" ).datepicker( "option", "minDate", new Date(2007, 1 - 1, 1) );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-monthNames">
<div class="option-header">
<h3 class="option-name"><a href="#option-monthNames">monthNames</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']</dd>
</dl>
</div>
<div class="option-description">
<p>The list of full month names, for use as requested via the <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code> setting. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>monthNames</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ monthNames: ['Januar','Februar','Marts','April','Maj','Juni','Juli','August','September','Oktober','November','December'] });</code></pre>
</dd>
<dt>
Get or set the <code>monthNames</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var monthNames = $( ".selector" ).datepicker( "option", "monthNames" );
//setter
$( ".selector" ).datepicker( "option", "monthNames", ['Januar','Februar','Marts','April','Maj','Juni','Juli','August','September','Oktober','November','December'] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-monthNamesShort">
<div class="option-header">
<h3 class="option-name"><a href="#option-monthNamesShort">monthNamesShort</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']</dd>
</dl>
</div>
<div class="option-description">
<p>The list of abbreviated month names, as used in the month header on each datepicker and as requested via the <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code> setting. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>monthNamesShort</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'] });</code></pre>
</dd>
<dt>
Get or set the <code>monthNamesShort</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var monthNamesShort = $( ".selector" ).datepicker( "option", "monthNamesShort" );
//setter
$( ".selector" ).datepicker( "option", "monthNamesShort", ['Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-navigationAsDateFormat">
<div class="option-header">
<h3 class="option-name"><a href="#option-navigationAsDateFormat">navigationAsDateFormat</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>When true the <code><a href="http://docs.jquery.com/UI/Datepicker/formatDate" title="UI/Datepicker/formatDate">formatDate</a></code> function is applied to the <code><a href="http://docs.jquery.com/UI/Datepicker#option-prevText" title="UI/Datepicker">prevText</a></code>, <code><a href="http://docs.jquery.com/UI/Datepicker#option-nextText" title="UI/Datepicker">nextText</a></code>, and <code><a href="http://docs.jquery.com/UI/Datepicker#option-currentText" title="UI/Datepicker">currentText</a></code> values before display, allowing them to display the target month names for example.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>navigationAsDateFormat</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ navigationAsDateFormat: true });</code></pre>
</dd>
<dt>
Get or set the <code>navigationAsDateFormat</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var navigationAsDateFormat = $( ".selector" ).datepicker( "option", "navigationAsDateFormat" );
//setter
$( ".selector" ).datepicker( "option", "navigationAsDateFormat", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-nextText">
<div class="option-header">
<h3 class="option-name"><a href="#option-nextText">nextText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'Next'</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display for the next month link. This attribute is one of the regionalisation attributes. With the standard ThemeRoller styling, this value is replaced by an icon.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>nextText</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ nextText: 'Later' });</code></pre>
</dd>
<dt>
Get or set the <code>nextText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var nextText = $( ".selector" ).datepicker( "option", "nextText" );
//setter
$( ".selector" ).datepicker( "option", "nextText", 'Later' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-numberOfMonths">
<div class="option-header">
<h3 class="option-name"><a href="#option-numberOfMonths">numberOfMonths</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number, Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1</dd>
</dl>
</div>
<div class="option-description">
<p>Set how many months to show at once. The value can be a straight integer, or can be a two-element array to define the number of rows and columns to display.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>numberOfMonths</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ numberOfMonths: [2, 3] });</code></pre>
</dd>
<dt>
Get or set the <code>numberOfMonths</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var numberOfMonths = $( ".selector" ).datepicker( "option", "numberOfMonths" );
//setter
$( ".selector" ).datepicker( "option", "numberOfMonths", [2, 3] );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-prevText">
<div class="option-header">
<h3 class="option-name"><a href="#option-prevText">prevText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'Prev'</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display for the previous month link. This attribute is one of the regionalisation attributes. With the standard ThemeRoller styling, this value is replaced by an icon.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>prevText</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ prevText: 'Earlier' });</code></pre>
</dd>
<dt>
Get or set the <code>prevText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var prevText = $( ".selector" ).datepicker( "option", "prevText" );
//setter
$( ".selector" ).datepicker( "option", "prevText", 'Earlier' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-selectOtherMonths">
<div class="option-header">
<h3 class="option-name"><a href="#option-selectOtherMonths">selectOtherMonths</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>When true days in other months shown before or after the current month are selectable. This only applies if <code><a href="http://docs.jquery.com/UI/Datepicker#option-showOtherMonths" title="UI/Datepicker">showOtherMonths</a></code> is also true.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>selectOtherMonths</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ selectOtherMonths: true });</code></pre>
</dd>
<dt>
Get or set the <code>selectOtherMonths</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var selectOtherMonths = $( ".selector" ).datepicker( "option", "selectOtherMonths" );
//setter
$( ".selector" ).datepicker( "option", "selectOtherMonths", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-shortYearCutoff">
<div class="option-header">
<h3 class="option-name"><a href="#option-shortYearCutoff">shortYearCutoff</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'+10'</dd>
</dl>
</div>
<div class="option-description">
<p>Set the cutoff year for determining the century for a date (used in conjunction with <code><a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">dateFormat</a></code> 'y'). If a numeric value (0-99) is provided then this value is used directly. If a string value is provided then it is converted to a number and added to the current year. Once the cutoff year is calculated, any dates entered with a year value less than or equal to it are considered to be in the current century, while those greater than it are deemed to be in the previous century.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>shortYearCutoff</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ shortYearCutoff: 50 });</code></pre>
</dd>
<dt>
Get or set the <code>shortYearCutoff</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var shortYearCutoff = $( ".selector" ).datepicker( "option", "shortYearCutoff" );
//setter
$( ".selector" ).datepicker( "option", "shortYearCutoff", 50 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showAnim">
<div class="option-header">
<h3 class="option-name"><a href="#option-showAnim">showAnim</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'show'</dd>
</dl>
</div>
<div class="option-description">
<p>Set the name of the animation used to show/hide the datepicker. Use 'show' (the default), 'slideDown', 'fadeIn', any of the show/hide <a href="http://docs.jquery.com/UI/Effects" class="external text" title="http://docs.jquery.com/UI/Effects">jQuery UI effects</a>, or '' for no animation.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showAnim</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showAnim: 'fold' });</code></pre>
</dd>
<dt>
Get or set the <code>showAnim</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showAnim = $( ".selector" ).datepicker( "option", "showAnim" );
//setter
$( ".selector" ).datepicker( "option", "showAnim", 'fold' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showButtonPanel">
<div class="option-header">
<h3 class="option-name"><a href="#option-showButtonPanel">showButtonPanel</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Whether to show the button panel.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showButtonPanel</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showButtonPanel: true });</code></pre>
</dd>
<dt>
Get or set the <code>showButtonPanel</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showButtonPanel = $( ".selector" ).datepicker( "option", "showButtonPanel" );
//setter
$( ".selector" ).datepicker( "option", "showButtonPanel", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showCurrentAtPos">
<div class="option-header">
<h3 class="option-name"><a href="#option-showCurrentAtPos">showCurrentAtPos</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>Specify where in a <a href="http://docs.jquery.com/UI/Datepicker#option-numberOfMonths" title="UI/Datepicker">multi-month</a> display the current month shows, starting from 0 at the top/left.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showCurrentAtPos</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showCurrentAtPos: 3 });</code></pre>
</dd>
<dt>
Get or set the <code>showCurrentAtPos</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showCurrentAtPos = $( ".selector" ).datepicker( "option", "showCurrentAtPos" );
//setter
$( ".selector" ).datepicker( "option", "showCurrentAtPos", 3 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showMonthAfterYear">
<div class="option-header">
<h3 class="option-name"><a href="#option-showMonthAfterYear">showMonthAfterYear</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Whether to show the month after the year in the header. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showMonthAfterYear</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showMonthAfterYear: true });</code></pre>
</dd>
<dt>
Get or set the <code>showMonthAfterYear</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showMonthAfterYear = $( ".selector" ).datepicker( "option", "showMonthAfterYear" );
//setter
$( ".selector" ).datepicker( "option", "showMonthAfterYear", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showOn">
<div class="option-header">
<h3 class="option-name"><a href="#option-showOn">showOn</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'focus'</dd>
</dl>
</div>
<div class="option-description">
<p>Have the datepicker appear automatically when the field receives focus ('focus'), appear only when a button is clicked ('button'), or appear when either event takes place ('both').</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showOn</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showOn: 'both' });</code></pre>
</dd>
<dt>
Get or set the <code>showOn</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showOn = $( ".selector" ).datepicker( "option", "showOn" );
//setter
$( ".selector" ).datepicker( "option", "showOn", 'both' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showOptions">
<div class="option-header">
<h3 class="option-name"><a href="#option-showOptions">showOptions</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Options</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">{}</dd>
</dl>
</div>
<div class="option-description">
<p>If using one of the jQuery UI effects for <code><a href="http://docs.jquery.com/UI/Datepicker#option-showAnim" title="UI/Datepicker">showAnim</a></code>, you can provide additional settings for that animation via this option.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showOptions</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showOptions: {direction: 'up' });</code></pre>
</dd>
<dt>
Get or set the <code>showOptions</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showOptions = $( ".selector" ).datepicker( "option", "showOptions" );
//setter
$( ".selector" ).datepicker( "option", "showOptions", {direction: 'up' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showOtherMonths">
<div class="option-header">
<h3 class="option-name"><a href="#option-showOtherMonths">showOtherMonths</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use <code><a href="http://docs.jquery.com/UI/Datepicker#option-selectOtherMonths" title="UI/Datepicker">selectOtherMonths</a></code>.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showOtherMonths</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showOtherMonths: true });</code></pre>
</dd>
<dt>
Get or set the <code>showOtherMonths</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showOtherMonths = $( ".selector" ).datepicker( "option", "showOtherMonths" );
//setter
$( ".selector" ).datepicker( "option", "showOtherMonths", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-showWeek">
<div class="option-header">
<h3 class="option-name"><a href="#option-showWeek">showWeek</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>When true a column is added to show the week of the year. The <code><a href="http://docs.jquery.com/UI/Datepicker#option-calculateWeek" title="UI/Datepicker">calculateWeek</a></code> option determines how the week of the year is calculated. You may also want to change the <code><a href="http://docs.jquery.com/UI/Datepicker#option-firstDay" title="UI/Datepicker">firstDay</a></code> option.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>showWeek</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ showWeek: true });</code></pre>
</dd>
<dt>
Get or set the <code>showWeek</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var showWeek = $( ".selector" ).datepicker( "option", "showWeek" );
//setter
$( ".selector" ).datepicker( "option", "showWeek", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-stepMonths">
<div class="option-header">
<h3 class="option-name"><a href="#option-stepMonths">stepMonths</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">1</dd>
</dl>
</div>
<div class="option-description">
<p>Set how many months to move when clicking the Previous/Next links.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>stepMonths</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ stepMonths: 3 });</code></pre>
</dd>
<dt>
Get or set the <code>stepMonths</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var stepMonths = $( ".selector" ).datepicker( "option", "stepMonths" );
//setter
$( ".selector" ).datepicker( "option", "stepMonths", 3 );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-weekHeader">
<div class="option-header">
<h3 class="option-name"><a href="#option-weekHeader">weekHeader</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'Wk'</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display for the week of the year column heading. This attribute is one of the regionalisation attributes. Use <code><a href="http://docs.jquery.com/UI/Datepicker#option-showWeek" title="UI/Datepicker">showWeek</a></code> to display this column.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>weekHeader</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ weekHeader: 'W' });</code></pre>
</dd>
<dt>
Get or set the <code>weekHeader</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var weekHeader = $( ".selector" ).datepicker( "option", "weekHeader" );
//setter
$( ".selector" ).datepicker( "option", "weekHeader", 'W' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-yearRange">
<div class="option-header">
<h3 class="option-name"><a href="#option-yearRange">yearRange</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'c-10:c+10'</dd>
</dl>
</div>
<div class="option-description">
<p>Control the range of years displayed in the year drop-down: either relative to today's year (-nn:+nn), relative to the currently selected year (c-nn:c+nn), absolute (nnnn:nnnn), or combinations of these formats (nnnn:-nn). Note that this option only affects what appears in the drop-down, to restrict which dates may be selected use the <code><a href="http://docs.jquery.com/UI/Datepicker#option-minDate" title="UI/Datepicker">minDate</a></code> and/or <code><a href="http://docs.jquery.com/UI/Datepicker#option-maxDate" title="UI/Datepicker">maxDate</a></code> options.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>yearRange</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ yearRange: '2000:2010' });</code></pre>
</dd>
<dt>
Get or set the <code>yearRange</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var yearRange = $( ".selector" ).datepicker( "option", "yearRange" );
//setter
$( ".selector" ).datepicker( "option", "yearRange", '2000:2010' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-yearSuffix">
<div class="option-header">
<h3 class="option-name"><a href="#option-yearSuffix">yearSuffix</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>Additional text to display after the year in the month headers. This attribute is one of the regionalisation attributes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>yearSuffix</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({ yearSuffix: 'CE' });</code></pre>
</dd>
<dt>
Get or set the <code>yearSuffix</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var yearSuffix = $( ".selector" ).datepicker( "option", "yearSuffix" );
//setter
$( ".selector" ).datepicker( "option", "yearSuffix", 'CE' );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">datepickercreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when datepicker is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).datepicker({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>datepickercreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "datepickercreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-beforeShow">
<div class="event-header">
<h3 class="event-name"><a href="#event-beforeShow">beforeShow</a></h3>
<dl>
<dt class="event-type-label"></dt>
<dd class="event-type">function(input, inst)</dd>
</dl>
</div>
<div class="event-description">
<p>Can be a function that takes an input field and current datepicker instance and returns an options object to update the datepicker with. It is called just before the datepicker is displayed.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>beforeShow</code> event as an init option.
</dt>
<dd>
<pre><code>$('.selector').datepicker({
beforeShow: function(input, inst) { ... }
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-beforeShowDay">
<div class="event-header">
<h3 class="event-name"><a href="#event-beforeShowDay">beforeShowDay</a></h3>
<dl>
<dt class="event-type-label"></dt>
<dd class="event-type">function(date)</dd>
</dl>
</div>
<div class="event-description">
<p>The function takes a date as a parameter and must return an array with [0] equal to true/false indicating whether or not this date is selectable, [1] equal to a CSS class name(s) or '' for the default presentation, and [2] an optional popup tooltip for this date. It is called for each day in the datepicker before it is displayed.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>beforeShowDay</code> event as an init option.
</dt>
<dd>
<pre><code>$('.selector').datepicker({
beforeShowDay: function(date) { ... }
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-onChangeMonthYear">
<div class="event-header">
<h3 class="event-name"><a href="#event-onChangeMonthYear">onChangeMonthYear</a></h3>
<dl>
<dt class="event-type-label"></dt>
<dd class="event-type">function(year, month, inst)</dd>
</dl>
</div>
<div class="event-description">
<p>Allows you to define your own event when the datepicker moves to a new month and/or year. The function receives the selected year, month (1-12), and the datepicker instance as parameters. <code>this</code> refers to the associated input field.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>onChangeMonthYear</code> event as an init option.
</dt>
<dd>
<pre><code>$('.selector').datepicker({
onChangeMonthYear: function(year, month, inst) { ... }
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-onClose">
<div class="event-header">
<h3 class="event-name"><a href="#event-onClose">onClose</a></h3>
<dl>
<dt class="event-type-label"></dt>
<dd class="event-type">function(dateText, inst)</dd>
</dl>
</div>
<div class="event-description">
<p>Allows you to define your own event when the datepicker is closed, whether or not a date is selected. The function receives the selected date as text ('' if none) and the datepicker instance as parameters. <code>this</code> refers to the associated input field.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>onClose</code> event as an init option.
</dt>
<dd>
<pre><code>$('.selector').datepicker({
onClose: function(dateText, inst) { ... }
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-onSelect">
<div class="event-header">
<h3 class="event-name"><a href="#event-onSelect">onSelect</a></h3>
<dl>
<dt class="event-type-label"></dt>
<dd class="event-type">function(dateText, inst)</dd>
</dl>
</div>
<div class="event-description">
<p>Allows you to define your own event when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. <code>this</code> refers to the associated input field.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>onSelect</code> event as an init option.
</dt>
<dd>
<pre><code>$('.selector').datepicker({
onSelect: function(dateText, inst) { ... }
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the datepicker functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the datepicker.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the datepicker.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any datepicker option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple datepicker options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-datepicker element.</p>
</div>
</li>
<li class="method" id="method-dialog">
<div class="method-header">
<h3 class="method-name"><a href="#method-dialog">dialog</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "dialog"
, date
, <span class="optional">[</span>onSelect<span class="optional">] </span>
, <span class="optional">[</span>settings<span class="optional">] </span>
, <span class="optional">[</span>pos<span class="optional">] </span>)</dd>
</dl>
</div>
<div class="method-description">
<p>Open a datepicker in a "dialog" box.
</p><p>dateText: the initial date for the date picker as either a Date or a string in the current date format.
</p><p>onSelect: A callback function when a date is selected. The function receives the date text and date picker instance as parameters.
</p><p>settings: The new settings for the date picker.
</p><p>pos: The position of the top/left of the dialog as [x, y] or a MouseEvent that contains the coordinates. If not specified the dialog is centered on the screen.</p>
</div>
</li>
<li class="method" id="method-isDisabled">
<div class="method-header">
<h3 class="method-name"><a href="#method-isDisabled">isDisabled</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "isDisabled"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Determine whether a date picker has been disabled.</p>
</div>
</li>
<li class="method" id="method-hide">
<div class="method-header">
<h3 class="method-name"><a href="#method-hide">hide</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "hide"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Close a previously opened date picker.</p>
</div>
</li>
<li class="method" id="method-show">
<div class="method-header">
<h3 class="method-name"><a href="#method-show">show</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "show"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Call up a previously attached date picker.</p>
</div>
</li>
<li class="method" id="method-refresh">
<div class="method-header">
<h3 class="method-name"><a href="#method-refresh">refresh</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "refresh"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Redraw a date picker, after having made some external modifications.</p>
</div>
</li>
<li class="method" id="method-getDate">
<div class="method-header">
<h3 class="method-name"><a href="#method-getDate">getDate</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "getDate"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the current date for the datepicker or null if no date has been selected.</p>
</div>
</li>
<li class="method" id="method-setDate">
<div class="method-header">
<h3 class="method-name"><a href="#method-setDate">setDate</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.datepicker( "setDate"
, date
)</dd>
</dl>
</div>
<div class="method-description">
<p>Sets the current date for the datepicker. The new date may be a Date object or a string in the current <a href="http://docs.jquery.com/UI/Datepicker#option-dateFormat" title="UI/Datepicker">date format</a> (e.g. '01/26/2009'), a number of days from today (e.g. +7) or a string of values and periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days, e.g. '+1m +7d'), or null to clear the selected date.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Datepicker plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.datepicker.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div id="ui-datepicker-div" class="<strong>ui-datepicker</strong> ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"><br />
<div class="<strong>ui-datepicker-header</strong> ui-widget-header ui-helper-clearfix ui-corner-all"><br />
<a class="<strong>ui-datepicker-prev</strong> ui-corner-all">title="Prev"><span class="ui-icon ui-icon-circle-triangle-w">Prev</span></a><br />
<a class="<strong>ui-datepicker-next</strong> ui-corner-all" title="Next"><span class="ui-icon ui-icon-circle-triangle-e">Next</span></a><br />
<div class="<strong>ui-datepicker-title</strong>"><br />
<span class="<strong>ui-datepicker-month</strong>">January</span><span class="<strong>ui-datepicker-year</strong>">2009</span><br />
</div><br />
</div><br />
<table class="<strong>ui-datepicker-calendar</strong>"><br />
<thead><br />
<tr><br />
<th class="<strong>ui-datepicker-week-end</strong>"><span title="Sunday">Su</span></th><br />
...<br />
</tr><br />
</thead><br />
<tbody><tr><br />
<td class="<strong>ui-datepicker-week-end ui-datepicker-other-month</strong> "> 1 </td><br />
...<br />
</tr><br />
</tbody><br />
</table><br />
<div class="<strong>ui-datepicker-buttonpane</strong> ui-widget-content"><br />
<button type="button" class="<strong>ui-datepicker-current</strong> ui-state-default ui-priority-secondary ui-corner-all">Today</button><br />
<button type="button" class="<strong>ui-datepicker-close</strong> ui-state-default ui-priority-primary ui-corner-all">Done</button><br />
</div><br />
</div><br />
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the datepicker plugin, not markup you should use to create a datepicker. The only markup needed for that is <input type="text" /> or <div></div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 98753 bytes
Post-expand include size: 196021 bytes
Template argument size: 121355 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3774-1!1!0!!en!2 and timestamp 20110119033003 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/datepicker.html
|
HTML
|
gpl3
| 81,637
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI show</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/show?section=1" title="Edit section: show( effect, [options], [speed], [callback] )">edit</a>]</div><a name="show.28_effect.2C_.5Boptions.5D.2C_.5Bspeed.5D.2C_.5Bcallback.5D_.29"></a><h3>show( effect, <span class="optional">[</span>options<span class="optional">]</span>, <span class="optional">[</span>speed<span class="optional">]</span>, <span class="optional">[</span>callback<span class="optional">]</span> )</h3>
<p>The enhanced show method optionally accepts jQuery UI advanced effects.</p>
<p>Uses a specific effect on an element to show the element if the first argument is a effect string.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Apply the effect slide if you click on the p to show a div.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">show</strong>("slide", {}, 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.slide.js"></script>
<style type="text/css">
div { display: none; margin: 0px; width: 100px; height: 80px; background: blue; position: relative; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">show</strong>("slide", {}, 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Click me</p><div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-effect">
<div class="option-header">
<h3 class="option-name"><a href="#option-effect">effect</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>The effect to be used. Possible values: 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'slide', 'scale', 'size', 'pulsate'.</p>
</div>
</li>
<li class="option" id="option-options">
<div class="option-header">
<h3 class="option-name"><a href="#option-options">options</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Hash</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A object/hash including specific options for the effect.</p>
</div>
</li>
<li class="option" id="option-speed">
<div class="option-header">
<h3 class="option-name"><a href="#option-speed">speed</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the predefined speeds ("slow" or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
<li class="option" id="option-callback">
<div class="option-header">
<h3 class="option-name"><a href="#option-callback">callback</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Function</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A function that is called after the effect is completed.</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 6332 bytes
Post-expand include size: 8594 bytes
Template argument size: 5382 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2613-1!1!0!!en!2 and timestamp 20110119083515 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/show.html
|
HTML
|
gpl3
| 5,272
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI effect</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/effect?section=1" title="Edit section: effect( effect, [options], [speed], [callback] )">edit</a>]</div><a name="effect.28_effect.2C_.5Boptions.5D.2C_.5Bspeed.5D.2C_.5Bcallback.5D_.29"></a><h3>effect( effect, <span class="optional">[</span>options<span class="optional">]</span>, <span class="optional">[</span>speed<span class="optional">]</span>, <span class="optional">[</span>callback<span class="optional">]</span> )</h3>
<p>Uses a specific effect on an element (without the show/hide logic).</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Apply the effect explode if you click on the element.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">effect</strong>("explode");
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.explode.js"></script>
<style type="text/css">
div { margin: 0 auto; width: 100px; height: 80px; background: blue; position: relative; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$("div").<strong class="selflink">effect</strong>("explode");
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Click me</p><div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-effect">
<div class="option-header">
<h3 class="option-name"><a href="#option-effect">effect</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>The effect to be used. Possible values: 'blind', 'bounce', 'clip', 'drop', 'explode', 'fold', 'highlight', 'puff', 'pulsate', 'scale', 'shake', 'size', 'slide', 'transfer'.</p>
</div>
</li>
<li class="option" id="option-options">
<div class="option-header">
<h3 class="option-name"><a href="#option-options">options</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Hash</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A object/hash including specific options for the effect.</p>
</div>
</li>
<li class="option" id="option-speed">
<div class="option-header">
<h3 class="option-name"><a href="#option-speed">speed</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
<li class="option" id="option-callback">
<div class="option-header">
<h3 class="option-name"><a href="#option-callback">callback</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Function</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A function that is called after the effect is completed.</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 6364 bytes
Post-expand include size: 8780 bytes
Template argument size: 5498 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2612-1!1!0!!en!2 and timestamp 20110119063330 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/effect.html
|
HTML
|
gpl3
| 5,205
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Progressbar</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>
The progress bar is designed to simply display the current % complete for a process. The bar is coded to be flexibly sized through CSS and will scale to fit inside it's parent container by default.
</p>
<p>
This is a determinate progress bar, meaning that it should only be used in situations where the system can accurately update the current status complete. A determinate progress bar should never fill from left to right, then loop back to empty for a single process -- if the actual percent complete status cannot be calculated, an indeterminate progress bar (coming soon) or spinner animation is a better way to provide user feedback.
</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="100">
A simple jQuery UI Progressbar.<br />
</p>
<pre>$("#progressbar").progressbar({ value: 37 });
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#progressbar").progressbar({ value: 37 });
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="progressbar"></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the progressbar. Can be set when initialising (first creating) the progressbar.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a progressbar with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).progressbar({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).progressbar( "option", "disabled" );
//setter
$( ".selector" ).progressbar( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-value">
<div class="option-header">
<h3 class="option-name"><a href="#option-value">value</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Number</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0</dd>
</dl>
</div>
<div class="option-description">
<p>The value of the progressbar.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a progressbar with the <code>value</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).progressbar({ value: 37 });</code></pre>
</dd>
<dt>
Get or set the <code>value</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var value = $( ".selector" ).progressbar( "option", "value" );
//setter
$( ".selector" ).progressbar( "option", "value", 37 );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">progressbarcreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when progressbar is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).progressbar({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>progressbarcreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "progressbarcreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-change">
<div class="event-header">
<h3 class="event-name"><a href="#event-change">change</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">progressbarchange</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the value of the progressbar changes.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>change</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).progressbar({
change: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>change</code> event by type: <code>progressbarchange</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "progressbarchange", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-complete">
<div class="event-header">
<h3 class="event-name"><a href="#event-complete">complete</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">progressbarcomplete</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when the value of the progressbar reaches the maximum value of 100.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>complete</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).progressbar({
complete: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>complete</code> event by type: <code>progressbarcomplete</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "progressbarcomplete", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.progressbar( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the progressbar functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.progressbar( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the progressbar.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.progressbar( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the progressbar.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.progressbar( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any progressbar option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.progressbar( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple progressbar options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.progressbar( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-progressbar element.</p>
</div>
</li>
<li class="method" id="method-value">
<div class="method-header">
<h3 class="method-name"><a href="#method-value">value</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.progressbar( "value"
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>This method gets or sets the current value of the progressbar.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Progressbar plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.progressbar.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="<strong>ui-progressbar </strong>ui-widget ui-widget-content ui-corner-all"><br />
<div style="width: 37%;" class="<strong>ui-progressbar-value</strong> ui-widget-header ui-corner-left"></div><br />
</div>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the progressbar plugin, not markup you should use to create a progressbar. The only markup needed for that is <div></div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 21686 bytes
Post-expand include size: 27328 bytes
Template argument size: 10881 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3780-1!1!0!!en!2 and timestamp 20110119062523 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/progressbar.html
|
HTML
|
gpl3
| 12,247
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Droppable</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Droppable plugin makes selected elements droppable (meaning they accept being dropped on by draggables). You can specify which (individually) or which kind of draggables each will accept.</p>
<p>All callbacks receive two arguments: The original browser event and a prepared ui object, view below for a documentation of this object (if you name your second argument 'ui'):</p>
<ul>
<li> <b>ui.draggable</b> - current draggable element, a jQuery object.</li>
<li> <b>ui.helper</b> - current draggable helper, a jQuery object</li>
<li> <b>ui.position</b> - current position of the draggable helper { top: , left: }</li>
<li> <b>ui.offset</b> - current absolute position of the draggable helper { top: , left: }</li>
</ul>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
<li>UI Widget</li>
<li>UI Mouse</li>
<li><a href="http://docs.jquery.com/UI/Draggable" title="UI/Draggable">UI Draggable</a></li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="100">
Makes the div droppable (a drop target for a draggable).<br />
</p>
<pre>$("#draggable").draggable();
$("#droppable").droppable({
drop: function() { alert('dropped'); }
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
#draggable { width: 75px; height: 25px; background: silver; padding: 10px; }
#droppable { position: absolute; left: 250px; top: 0; width: 125px; height: 75px; background: gray; color: white; padding: 10px; }
</style>
<script>
$(document).ready(function() {
$("#draggable").draggable();
$("#droppable").droppable({
drop: function() { alert('dropped'); }
});
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="droppable">Drop here</div>
<div id="draggable">Drag me</div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-disabled">
<div class="option-header">
<h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Disables (true) or enables (false) the droppable. Can be set when initialising (first creating) the droppable.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>disabled</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ disabled: true });</code></pre>
</dd>
<dt>
Get or set the <code>disabled</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var disabled = $( ".selector" ).droppable( "option", "disabled" );
//setter
$( ".selector" ).droppable( "option", "disabled", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-accept">
<div class="option-header">
<h3 class="option-name"><a href="#option-accept">accept</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Selector, Function</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'*'</dd>
</dl>
</div>
<div class="option-description">
<p>All draggables that match the selector will be accepted. If a function is specified, the function will be called for each draggable on the page (passed as the first argument to the function), to provide a custom filter. The function should return true if the draggable should be accepted.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>accept</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ accept: '.special' });</code></pre>
</dd>
<dt>
Get or set the <code>accept</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var accept = $( ".selector" ).droppable( "option", "accept" );
//setter
$( ".selector" ).droppable( "option", "accept", '.special' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-activeClass">
<div class="option-header">
<h3 class="option-name"><a href="#option-activeClass">activeClass</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If specified, the class will be added to the droppable while an acceptable draggable is being dragged.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>activeClass</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ activeClass: 'ui-state-highlight' });</code></pre>
</dd>
<dt>
Get or set the <code>activeClass</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var activeClass = $( ".selector" ).droppable( "option", "activeClass" );
//setter
$( ".selector" ).droppable( "option", "activeClass", 'ui-state-highlight' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-addClasses">
<div class="option-header">
<h3 class="option-name"><a href="#option-addClasses">addClasses</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">true</dd>
</dl>
</div>
<div class="option-description">
<p>If set to false, will prevent the ui-droppable class from being added. This may be desired as a performance optimization when calling .droppable() init on many hundreds of elements.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>addClasses</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ addClasses: false });</code></pre>
</dd>
<dt>
Get or set the <code>addClasses</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var addClasses = $( ".selector" ).droppable( "option", "addClasses" );
//setter
$( ".selector" ).droppable( "option", "addClasses", false );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-greedy">
<div class="option-header">
<h3 class="option-name"><a href="#option-greedy">greedy</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If true, will prevent event propagation on nested droppables.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>greedy</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ greedy: true });</code></pre>
</dd>
<dt>
Get or set the <code>greedy</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var greedy = $( ".selector" ).droppable( "option", "greedy" );
//setter
$( ".selector" ).droppable( "option", "greedy", true );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-hoverClass">
<div class="option-header">
<h3 class="option-name"><a href="#option-hoverClass">hoverClass</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>If specified, the class will be added to the droppable while an acceptable draggable is being hovered.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>hoverClass</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ hoverClass: 'drophover' });</code></pre>
</dd>
<dt>
Get or set the <code>hoverClass</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var hoverClass = $( ".selector" ).droppable( "option", "hoverClass" );
//setter
$( ".selector" ).droppable( "option", "hoverClass", 'drophover' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-scope">
<div class="option-header">
<h3 class="option-name"><a href="#option-scope">scope</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'default'</dd>
</dl>
</div>
<div class="option-description">
<p>Used to group sets of draggable and droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>scope</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ scope: 'tasks' });</code></pre>
</dd>
<dt>
Get or set the <code>scope</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var scope = $( ".selector" ).droppable( "option", "scope" );
//setter
$( ".selector" ).droppable( "option", "scope", 'tasks' );</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-tolerance">
<div class="option-header">
<h3 class="option-name"><a href="#option-tolerance">tolerance</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">'intersect'</dd>
</dl>
</div>
<div class="option-description">
<p>Specifies which mode to use for testing whether a draggable is 'over' a droppable. Possible values: 'fit', 'intersect', 'pointer', 'touch'.
</p>
<ul>
<li><b>fit</b>: draggable overlaps the droppable entirely</li>
<li><b>intersect</b>: draggable overlaps the droppable at least 50%</li>
<li><b>pointer</b>: mouse pointer overlaps the droppable</li>
<li><b>touch</b>: draggable overlaps the droppable any amount</li>
</ul>
<p></p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a droppable with the <code>tolerance</code> option specified.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({ tolerance: 'fit' });</code></pre>
</dd>
<dt>
Get or set the <code>tolerance</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var tolerance = $( ".selector" ).droppable( "option", "tolerance" );
//setter
$( ".selector" ).droppable( "option", "tolerance", 'fit' );</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="events">
<h2 class="top-header">Events</h2>
<ul class="events-list">
<li class="event" id="event-create">
<div class="event-header">
<h3 class="event-name"><a href="#event-create">create</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dropcreate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when droppable is created.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>create</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({
create: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>create</code> event by type: <code>dropcreate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dropcreate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-activate">
<div class="event-header">
<h3 class="event-name"><a href="#event-activate">activate</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dropactivate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered any time an accepted draggable starts dragging. This can be useful if you want to make the droppable 'light up' when it can be dropped on.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>activate</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({
activate: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>activate</code> event by type: <code>dropactivate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dropactivate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-deactivate">
<div class="event-header">
<h3 class="event-name"><a href="#event-deactivate">deactivate</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dropdeactivate</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered any time an accepted draggable stops dragging.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>deactivate</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({
deactivate: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>deactivate</code> event by type: <code>dropdeactivate</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dropdeactivate", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-over">
<div class="event-header">
<h3 class="event-name"><a href="#event-over">over</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dropover</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered as an accepted draggable is dragged 'over' (within the tolerance of) this droppable.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>over</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({
over: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>over</code> event by type: <code>dropover</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dropover", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-out">
<div class="event-header">
<h3 class="event-name"><a href="#event-out">out</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">dropout</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when an accepted draggable is dragged out (within the tolerance of) this droppable.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>out</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({
out: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>out</code> event by type: <code>dropout</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "dropout", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
<li class="event" id="event-drop">
<div class="event-header">
<h3 class="event-name"><a href="#event-drop">drop</a></h3>
<dl>
<dt class="event-type-label">Type:</dt>
<dd class="event-type">drop</dd>
</dl>
</div>
<div class="event-description">
<p>This event is triggered when an accepted draggable is dropped 'over' (within the tolerance of) this droppable. In the callback, $(this) represents the droppable the draggable is dropped on.
ui.draggable represents the draggable.</p>
</div>
<div class="event-examples">
<h4>Code examples</h4>
<dl class="event-examples-list">
<dt>
Supply a callback function to handle the <code>drop</code> event as an init option.
</dt>
<dd>
<pre><code>$( ".selector" ).droppable({
drop: function(event, ui) { ... }
});</code></pre>
</dd>
<dt>
Bind to the <code>drop</code> event by type: <code>drop</code>.
</dt>
<dd>
<pre><code>$( ".selector" ).bind( "drop", function(event, ui) {
...
});</code></pre>
</dd>
</dl>
</div>
</li>
</ul>
</div>
<div id="methods">
<h2 class="top-header">Methods</h2>
<ul class="methods-list">
<li class="method" id="method-destroy">
<div class="method-header">
<h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.droppable( "destroy"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Remove the droppable functionality completely. This will return the element back to its pre-init state.</p>
</div>
</li>
<li class="method" id="method-disable">
<div class="method-header">
<h3 class="method-name"><a href="#method-disable">disable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.droppable( "disable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Disable the droppable.</p>
</div>
</li>
<li class="method" id="method-enable">
<div class="method-header">
<h3 class="method-name"><a href="#method-enable">enable</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.droppable( "enable"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Enable the droppable.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.droppable( "option"
, optionName
, <span class="optional">[</span>value<span class="optional">] </span>
)</dd>
</dl>
</div>
<div class="method-description">
<p>Get or set any droppable option. If no value is specified, will act as a getter.</p>
</div>
</li>
<li class="method" id="method-option">
<div class="method-header">
<h3 class="method-name"><a href="#method-option">option</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.droppable( "option"
, options
)</dd>
</dl>
</div>
<div class="method-description">
<p>Set multiple droppable options at once by providing an options object.</p>
</div>
</li>
<li class="method" id="method-widget">
<div class="method-header">
<h3 class="method-name"><a href="#method-widget">widget</a></h3>
<dl>
<dt class="method-signature-label">Signature:</dt>
<dd class="method-signature">.droppable( "widget"
)</dd>
</dl>
</div>
<div class="method-description">
<p>Returns the .ui-droppable element.</p>
</div>
</li>
</ul>
</div>
<div id="theming">
<h2 class="top-header">Theming</h2>
<p>The jQuery UI Droppable plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
</p>
<p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.droppable.css stylesheet that can be modified. These classes are highlighed in bold below.
</p>
<h3>Sample markup with jQuery UI CSS Framework classes</h3>
<div class="<strong>ui-droppable</strong>"></div>
<p class="theme-note">
<strong>
Note: This is a sample of markup generated by the droppable plugin, not markup you should use to create a droppable. The only markup needed for that is <div></div>.
</strong>
</p>
</div>
</div>
</p><!--
Pre-expand include size: 33718 bytes
Post-expand include size: 53508 bytes
Template argument size: 26843 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3769-1!1!0!!en!2 and timestamp 20110119062329 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/droppable.html
|
HTML
|
gpl3
| 22,546
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI switchClass</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/switchClass?section=1" title="Edit section: switchClass( remove, add, [duration] )">edit</a>]</div><a name="switchClass.28_remove.2C_add.2C_.5Bduration.5D_.29"></a><h3>switchClass( remove, add, <span class="optional">[</span>duration<span class="optional">]</span> )</h3>
<p>Switches from the class defined in the first argument to the class defined as second argument, using an optional transition.</p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Switch the class 'highlight' to 'blue' when a paragraph is clicked with a one second transition.<br />
</p>
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">switchClass</strong>("highlight", "blue", 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
<style type="text/css">
p { margin: 4px; font-size:16px; font-weight:bolder;
cursor:pointer; }
.blue { background: blue; }
.highlight { background:yellow; }
</style>
<script>
$(document).ready(function() {
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<strong class="selflink">switchClass</strong>("highlight", "blue", 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p class="highlight">Click to switch</p>
<p class="highlight">to blue</p>
<p class="highlight">on these</p>
<p class="highlight">paragraphs</p>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-remove">
<div class="option-header">
<h3 class="option-name"><a href="#option-remove">remove</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>The CSS class that will be removed.</p>
</div>
</li>
<li class="option" id="option-add">
<div class="option-header">
<h3 class="option-name"><a href="#option-add">add</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>The CSS class that will be added.</p>
</div>
</li>
<li class="option" id="option-duration">
<div class="option-header">
<h3 class="option-name"><a href="#option-duration">duration</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String, Number</dd>
<dt class="option-optional-label">Optional</dt>
</dl>
</div>
<div class="option-description">
<p>A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 5818 bytes
Post-expand include size: 7682 bytes
Template argument size: 4812 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2609-1!1!0!!en!2 and timestamp 20110119103754 -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/js/jquery/ui/docs/switchClass.html
|
HTML
|
gpl3
| 4,659
|
<div class="elements">
<h3 class="ui-widget-header widgets">
<div class="title">Đăng ký</div>
</h3>
<div class="tin_noi_bat">
<ul class="danh_muc">
<li class="menu"><a href="../dang_ky/phieu_dang_ky.php" class="text">Bán doanh nghiệp</a></li>
<li class="menu"><a href="#" class="text">Tìm nguồn tín dụng</a></li>
<li class="menu"><a href="#" class="text">Tìm nhà đầu tư</a></li>
</ul>
</div>
</div>
|
10-ptud-v1
|
trunk/ 10-ptud-v1/widgets/dang_ky.php
|
Hack
|
gpl3
| 507
|
<div class="elements">
<h3 class="ui-widget-header widgets">
<div class="title">Đối tác</div>
</h3>
<div class="quang_cao">
<img src="../upload/images/doi_tac_01.jpg" />
<img src="../upload/images/doi_tac_02.jpg" />
<img src="../upload/images/doi_tac_03.jpg" />
<img src="../upload/images/doi_tac_04.jpg" />
<img src="../upload/images/doi_tac_05.jpg" />
<img src="../upload/images/doi_tac_06.gif" />
<img src="../upload/images/doi_tac_07.gif" />
<img src="../upload/images/doi_tac_08.gif" />
<img src="../upload/images/doi_tac_09.gif" />
</div>
</div>
|
10-ptud-v1
|
trunk/ 10-ptud-v1/widgets/doi_tac.php
|
Hack
|
gpl3
| 666
|
<?php
//require_once '../config.php';
require_once '../classes/xl_loai_du_an.php';
require_once '../classes/xl_loai_hinh_kinh_doanh.php';
require_once '../classes/xl_loai_phieu.php';
//require_once '../DTO/DOANHNGHIEP_DTO.php';
$xl_lhkd =new xl_loai_hinh_kinh_doanh();
$xl_lp = new xl_loai_phieu();
$xl_lda = new xl_loai_du_an();
$loai_du_an = $xl_lda->danh_sach();
$ldn = $xl_lhkd->danh_sach();
$phieu_ban_dn =$xl_lp->lay_ma(ban_dn);
$phieu_tim_td = $xl_lp->lay_ma(tim_td);
$phieu_tim_ndt = $xl_lp->lay_ma(tim_ndt);
?>
<div class="elements">
<h3 class="ui-widget-header widgets">
<div class="title">Cơ hội</div>
</h3>
<div id="accordion">
<h3><a href="#">Mua các DN muốn bán</a></h3>
<ul>
<?php foreach($ldn as $row){ ?>
<li class="menu">
<a href="../co_hoi/danh_sach_mdn.php?ma_lhkd=<?php echo $row['ma']?>&ma_p=<?php echo $phieu_ban_dn?>"
class="text"><?php echo $row['ten_loai'] ?>
</a>
</li>
<?php } ?>
<li class="menu"><a href="../co_hoi/danh_sach_mdn.php?ma_lhkd=all&ma_p=<?php echo $phieu_ban_dn?>"
class="text">Toàn bộ các DN</a>
</li>
</ul>
<h3><a href="#">Dự án mời đầu tư</a></h3>
<ul>
<?php foreach($loai_du_an as $row){ ?>
<li class="menu">
<a href="../co_hoi/danh_sach_dadt.php?ma_lda=<?php echo $row['ma']?>&ma_p=<?php echo $phieu_tim_ndt?>"
class="text"><?php echo $row['ten_loai'] ?></a></li>
<?php } ?>
<li class="menu">
<a href="../co_hoi/danh_sach_dadt.php?ma_lda=all&ma_p=<?php echo $phieu_tim_ndt?>"
class="text">Toàn bộ các dự án</a>
</li>
</ul>
<h3><a href="#">Những DN cần vay vốn</a></h3>
<ul>
<?php foreach($ldn as $row){ ?>
<li class="menu">
<a href="../co_hoi/danh_sach_dnvv.php?ma_lhkd=<?php echo $row['ma']?>&ma_p=<?php echo $phieu_tim_td?>"
class="text"><?php echo $row['ten_loai'] ?>
</a>
</li>
<?php } ?>
<li class="menu"><a href="../co_hoi/danh_sach_dnvv.php?ma_lhkd=all&ma_p=<?php echo $phieu_tim_td?>"
class="text">Toàn bộ các DN</a>
</li>
</ul>
</div>
<script type="text/javascript">
$(function () {
$("#accordion").accordion({
autoHeight :false,
animated :'easeOutBounce',
active :1000,
navigation :true,
collapsible:true
});
});
</script>
</div>
|
10-ptud-v1
|
trunk/ 10-ptud-v1/widgets/co_hoi.php
|
PHP
|
gpl3
| 3,011
|
<div class="banner">
<img src="../upload/images/banner.jpg" alt="" width="1005px" height="205px" />
</div>
|
10-ptud-v1
|
trunk/ 10-ptud-v1/widgets/banner.php
|
Hack
|
gpl3
| 112
|
<!-- Begin: jquery -->
<link rel="stylesheet" href="../js/jquery/themes/redmond/jquery-ui-1.8.22.custom.css" type="text/css"
media="screen" />
<script type="text/javascript" src="../js/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/jquery/ui/jquery-ui-1.8.9.custom.js"></script>
<script type="text/javascript" src="../js/jquery/ui/i18n/jquery.ui.datepicker-vi.js"></script>
<!-- End: jquery -->
<!-- Begin: It's me -->
<link rel="stylesheet" type="text/css" href="../css/common.css">
<link rel="stylesheet" type="text/css" href="../css/general.css">
<!-- End: It's me -->
<!-- Begin: Menu -->
<link rel="stylesheet" type="text/css" href="../js/jquery/external/jquery-mega-drop-down-menu/css/dcmegamenu.css">
<link rel="stylesheet" type="text/css" href="../js/jquery/external/jquery-mega-drop-down-menu/css/skins/blue.css" />
<script type="text/javascript"
src="../js/jquery/external/jquery-mega-drop-down-menu/js/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript"
src="../js/jquery/external/jquery-mega-drop-down-menu/js/jquery.dcmegamenu.1.3.3.js"></script>
<!-- End: Menu -->
<!-- Begin: Thong bao -->
<link rel="stylesheet" type="text/css" href="../css/examples.css">
<script type="text/javascript"
src="../js/jquery/external/jquery-impromptu.4.0.min.js"></script>
<!-- End: Thong bao -->
|
10-ptud-v1
|
trunk/ 10-ptud-v1/widgets/js_css.php
|
Hack
|
gpl3
| 1,405
|
<?php
//require_once '../config.php';
require_once '../classes/xl_loai_tai_san.php';
//require_once '../DTO/DOANHNGHIEP_DTO.php';
$xl_lts = new xl_loai_tai_san();
$loai_ts = $xl_lts->danh_sach_all();
?>
<div class="elements">
<h3 class="ui-widget-header widgets">
<div class="title">Thuê và cho thuê</div>
</h3>
<div class="tin_noi_bat">
<ul class="danh_muc">
<li class="menu"><a href="#" class="text">Đăng ký cho thuê</a></li>
<li class="menu"><a href="#" class="text">Danh sách cho thuê</a></li>
<?php foreach($loai_ts as $row_lts){ ?>
<li class="menu">
<a href="../cho_thue/danh_sach_cho_thue.php?ma_lts=<?php echo $row_lts['ma']?>"
class="text"><?php echo $row_lts['ten_loai']?></a>
</li>
<?php }?>
</ul>
</div>
</div>
|
10-ptud-v1
|
trunk/ 10-ptud-v1/widgets/thue_cho_thue.php
|
PHP
|
gpl3
| 960
|