code
stringlengths 501
5.19M
| package
stringlengths 2
81
| path
stringlengths 9
304
| filename
stringlengths 4
145
|
---|---|---|---|
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "placeholder" plugin.
*
*/
(function()
{
var placeholderReplaceRegex = /\[\[[^\]]+\]\]/g;
CKEDITOR.plugins.add( 'placeholder',
{
requires : [ 'dialog' ],
lang : [ 'en', 'he' ],
init : function( editor )
{
var lang = editor.lang.placeholder;
editor.addCommand( 'createplaceholder', new CKEDITOR.dialogCommand( 'createplaceholder' ) );
editor.addCommand( 'editplaceholder', new CKEDITOR.dialogCommand( 'editplaceholder' ) );
editor.ui.addButton( 'CreatePlaceholder',
{
label : lang.toolbar,
command :'createplaceholder',
icon : this.path + 'placeholder.gif'
});
if ( editor.addMenuItems )
{
editor.addMenuGroup( 'placeholder', 20 );
editor.addMenuItems(
{
editplaceholder :
{
label : lang.edit,
command : 'editplaceholder',
group : 'placeholder',
order : 1,
icon : this.path + 'placeholder.gif'
}
} );
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( !element || !element.data( 'cke-placeholder' ) )
return null;
return { editplaceholder : CKEDITOR.TRISTATE_OFF };
} );
}
}
editor.on( 'doubleclick', function( evt )
{
if ( CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor ) )
evt.data.dialog = 'editplaceholder';
});
editor.addCss(
'.cke_placeholder' +
'{' +
'background-color: #ffff00;' +
( CKEDITOR.env.gecko ? 'cursor: default;' : '' ) +
'}'
);
editor.on( 'contentDom', function()
{
editor.document.getBody().on( 'resizestart', function( evt )
{
if ( editor.getSelection().getSelectedElement().data( 'cke-placeholder' ) )
evt.data.preventDefault();
});
});
CKEDITOR.dialog.add( 'createplaceholder', this.path + 'dialogs/placeholder.js' );
CKEDITOR.dialog.add( 'editplaceholder', this.path + 'dialogs/placeholder.js' );
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
text : function( text )
{
return text.replace( placeholderReplaceRegex, function( match )
{
return CKEDITOR.plugins.placeholder.createPlaceholder( editor, null, match, 1 );
});
}
});
}
if ( htmlFilter )
{
htmlFilter.addRules(
{
elements :
{
'span' : function( element )
{
if ( element.attributes && element.attributes[ 'data-cke-placeholder' ] )
delete element.name;
}
}
});
}
}
});
})();
CKEDITOR.plugins.placeholder =
{
createPlaceholder : function( editor, oldElement, text, isGet )
{
var element = new CKEDITOR.dom.element( 'span', editor.document );
element.setAttributes(
{
contentEditable : 'false',
'data-cke-placeholder' : 1,
'class' : 'cke_placeholder'
}
);
text && element.setText( text );
if ( isGet )
return element.getOuterHtml();
if ( oldElement )
{
if ( CKEDITOR.env.ie )
{
element.insertAfter( oldElement );
// Some time is required for IE before the element is removed.
setTimeout( function()
{
oldElement.remove();
element.focus();
}, 10 );
}
else
element.replace( oldElement );
}
else
editor.insertElement( element );
return null;
},
getSelectedPlaceHoder : function( editor )
{
var range = editor.getSelection().getRanges()[ 0 ];
range.shrink( CKEDITOR.SHRINK_TEXT );
var node = range.startContainer;
while( node && !( node.type == CKEDITOR.NODE_ELEMENT && node.data( 'cke-placeholder' ) ) )
node = node.getParent();
return node;
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/placeholder/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var cellNodeRegex = /^(?:td|th)$/;
function getSelectedCells( selection )
{
// Walker will try to split text nodes, which will make the current selection
// invalid. So save bookmarks before doing anything.
var bookmarks = selection.createBookmarks();
var ranges = selection.getRanges();
var retval = [];
var database = {};
function moveOutOfCellGuard( node )
{
// Apply to the first cell only.
if ( retval.length > 0 )
return;
// If we are exiting from the first </td>, then the td should definitely be
// included.
if ( node.type == CKEDITOR.NODE_ELEMENT && cellNodeRegex.test( node.getName() )
&& !node.getCustomData( 'selected_cell' ) )
{
CKEDITOR.dom.element.setMarker( database, node, 'selected_cell', true );
retval.push( node );
}
}
for ( var i = 0 ; i < ranges.length ; i++ )
{
var range = ranges[ i ];
if ( range.collapsed )
{
// Walker does not handle collapsed ranges yet - fall back to old API.
var startNode = range.getCommonAncestor();
var nearestCell = startNode.getAscendant( 'td', true ) || startNode.getAscendant( 'th', true );
if ( nearestCell )
retval.push( nearestCell );
}
else
{
var walker = new CKEDITOR.dom.walker( range );
var node;
walker.guard = moveOutOfCellGuard;
while ( ( node = walker.next() ) )
{
// If may be possible for us to have a range like this:
// <td>^1</td><td>^2</td>
// The 2nd td shouldn't be included.
//
// So we have to take care to include a td we've entered only when we've
// walked into its children.
var parent = node.getAscendant( 'td' ) || node.getAscendant( 'th' );
if ( parent && !parent.getCustomData( 'selected_cell' ) )
{
CKEDITOR.dom.element.setMarker( database, parent, 'selected_cell', true );
retval.push( parent );
}
}
}
}
CKEDITOR.dom.element.clearAllMarkers( database );
// Restore selection position.
selection.selectBookmarks( bookmarks );
return retval;
}
function getFocusElementAfterDelCells( cellsToDelete ) {
var i = 0,
last = cellsToDelete.length - 1,
database = {},
cell,focusedCell,
tr;
while ( ( cell = cellsToDelete[ i++ ] ) )
CKEDITOR.dom.element.setMarker( database, cell, 'delete_cell', true );
// 1.first we check left or right side focusable cell row by row;
i = 0;
while ( ( cell = cellsToDelete[ i++ ] ) )
{
if ( ( focusedCell = cell.getPrevious() ) && !focusedCell.getCustomData( 'delete_cell' )
|| ( focusedCell = cell.getNext() ) && !focusedCell.getCustomData( 'delete_cell' ) )
{
CKEDITOR.dom.element.clearAllMarkers( database );
return focusedCell;
}
}
CKEDITOR.dom.element.clearAllMarkers( database );
// 2. then we check the toppest row (outside the selection area square) focusable cell
tr = cellsToDelete[ 0 ].getParent();
if ( ( tr = tr.getPrevious() ) )
return tr.getLast();
// 3. last we check the lowerest row focusable cell
tr = cellsToDelete[ last ].getParent();
if ( ( tr = tr.getNext() ) )
return tr.getChild( 0 );
return null;
}
function insertRow( selection, insertBefore )
{
var cells = getSelectedCells( selection ),
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
doc = firstCell.getDocument(),
startRow = cells[ 0 ].getParent(),
startRowIndex = startRow.$.rowIndex,
lastCell = cells[ cells.length - 1 ],
endRowIndex = lastCell.getParent().$.rowIndex + lastCell.$.rowSpan - 1,
endRow = new CKEDITOR.dom.element( table.$.rows[ endRowIndex ] ),
rowIndex = insertBefore ? startRowIndex : endRowIndex,
row = insertBefore ? startRow : endRow;
var map = CKEDITOR.tools.buildTableMap( table ),
cloneRow = map[ rowIndex ],
nextRow = insertBefore ? map[ rowIndex - 1 ] : map[ rowIndex + 1 ],
width = map[0].length;
var newRow = doc.createElement( 'tr' );
for ( var i = 0; cloneRow[ i ] && i < width; i++ )
{
var cell;
// Check whether there's a spanning row here, do not break it.
if ( cloneRow[ i ].rowSpan > 1 && nextRow && cloneRow[ i ] == nextRow[ i ] )
{
cell = cloneRow[ i ];
cell.rowSpan += 1;
}
else
{
cell = new CKEDITOR.dom.element( cloneRow[ i ] ).clone();
cell.removeAttribute( 'rowSpan' );
!CKEDITOR.env.ie && cell.appendBogus();
newRow.append( cell );
cell = cell.$;
}
i += cell.colSpan - 1;
}
insertBefore ?
newRow.insertBefore( row ) :
newRow.insertAfter( row );
}
function deleteRows( selectionOrRow )
{
if ( selectionOrRow instanceof CKEDITOR.dom.selection )
{
var cells = getSelectedCells( selectionOrRow ),
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
startRow = cells[ 0 ].getParent(),
startRowIndex = startRow.$.rowIndex,
lastCell = cells[ cells.length - 1 ],
endRowIndex = lastCell.getParent().$.rowIndex + lastCell.$.rowSpan - 1,
rowsToDelete = [];
// Delete cell or reduce cell spans by checking through the table map.
for ( var i = startRowIndex; i <= endRowIndex; i++ )
{
var mapRow = map[ i ],
row = new CKEDITOR.dom.element( table.$.rows[ i ] );
for ( var j = 0; j < mapRow.length; j++ )
{
var cell = new CKEDITOR.dom.element( mapRow[ j ] ),
cellRowIndex = cell.getParent().$.rowIndex;
if ( cell.$.rowSpan == 1 )
cell.remove();
// Row spanned cell.
else
{
// Span row of the cell, reduce spanning.
cell.$.rowSpan -= 1;
// Root row of the cell, root cell to next row.
if ( cellRowIndex == i )
{
var nextMapRow = map[ i + 1 ];
nextMapRow[ j - 1 ] ?
cell.insertAfter( new CKEDITOR.dom.element( nextMapRow[ j - 1 ] ) )
: new CKEDITOR.dom.element( table.$.rows[ i + 1 ] ).append( cell, 1 );
}
}
j += cell.$.colSpan - 1;
}
rowsToDelete.push( row );
}
var rows = table.$.rows;
// Where to put the cursor after rows been deleted?
// 1. Into next sibling row if any;
// 2. Into previous sibling row if any;
// 3. Into table's parent element if it's the very last row.
var cursorPosition = new CKEDITOR.dom.element( rows[ endRowIndex + 1 ] || ( startRowIndex > 0 ? rows[ startRowIndex - 1 ] : null ) || table.$.parentNode );
for ( i = rowsToDelete.length ; i >= 0 ; i-- )
deleteRows( rowsToDelete[ i ] );
return cursorPosition;
}
else if ( selectionOrRow instanceof CKEDITOR.dom.element )
{
table = selectionOrRow.getAscendant( 'table' );
if ( table.$.rows.length == 1 )
table.remove();
else
selectionOrRow.remove();
}
return null;
}
function getCellColIndex( cell, isStart )
{
var row = cell.getParent(),
rowCells = row.$.cells;
var colIndex = 0;
for ( var i = 0; i < rowCells.length; i++ )
{
var mapCell = rowCells[ i ];
colIndex += isStart ? 1 : mapCell.colSpan;
if ( mapCell == cell.$ )
break;
}
return colIndex -1;
}
function getColumnsIndices( cells, isStart )
{
var retval = isStart ? Infinity : 0;
for ( var i = 0; i < cells.length; i++ )
{
var colIndex = getCellColIndex( cells[ i ], isStart );
if ( isStart ? colIndex < retval : colIndex > retval )
retval = colIndex;
}
return retval;
}
function insertColumn( selection, insertBefore )
{
var cells = getSelectedCells( selection ),
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
startCol = getColumnsIndices( cells, 1 ),
lastCol = getColumnsIndices( cells ),
colIndex = insertBefore? startCol : lastCol;
var map = CKEDITOR.tools.buildTableMap( table ),
cloneCol = [],
nextCol = [],
height = map.length;
for ( var i = 0; i < height; i++ )
{
cloneCol.push( map[ i ][ colIndex ] );
var nextCell = insertBefore ? map[ i ][ colIndex - 1 ] : map[ i ][ colIndex + 1 ];
nextCell && nextCol.push( nextCell );
}
for ( i = 0; i < height; i++ )
{
var cell;
// Check whether there's a spanning column here, do not break it.
if ( cloneCol[ i ].colSpan > 1
&& nextCol.length
&& nextCol[ i ] == cloneCol[ i ] )
{
cell = cloneCol[ i ];
cell.colSpan += 1;
}
else
{
cell = new CKEDITOR.dom.element( cloneCol[ i ] ).clone();
cell.removeAttribute( 'colSpan' );
!CKEDITOR.env.ie && cell.appendBogus();
cell[ insertBefore? 'insertBefore' : 'insertAfter' ].call( cell, new CKEDITOR.dom.element ( cloneCol[ i ] ) );
cell = cell.$;
}
i += cell.rowSpan - 1;
}
}
function deleteColumns( selectionOrCell )
{
var cells = getSelectedCells( selectionOrCell ),
firstCell = cells[ 0 ],
lastCell = cells[ cells.length - 1 ],
table = firstCell.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
startColIndex,
endColIndex,
rowsToDelete = [];
// Figure out selected cells' column indices.
for ( var i = 0, rows = map.length; i < rows; i++ )
{
for ( var j = 0, cols = map[ i ].length; j < cols; j++ )
{
if ( map[ i ][ j ] == firstCell.$ )
startColIndex = j;
if ( map[ i ][ j ] == lastCell.$ )
endColIndex = j;
}
}
// Delete cell or reduce cell spans by checking through the table map.
for ( i = startColIndex; i <= endColIndex; i++ )
{
for ( j = 0; j < map.length; j++ )
{
var mapRow = map[ j ],
row = new CKEDITOR.dom.element( table.$.rows[ j ] ),
cell = new CKEDITOR.dom.element( mapRow[ i ] );
if ( cell.$ )
{
if ( cell.$.colSpan == 1 )
cell.remove();
// Reduce the col spans.
else
cell.$.colSpan -= 1;
j += cell.$.rowSpan - 1;
if ( !row.$.cells.length )
rowsToDelete.push( row );
}
}
}
var firstRowCells = table.$.rows[ 0 ] && table.$.rows[ 0 ].cells;
// Where to put the cursor after columns been deleted?
// 1. Into next cell of the first row if any;
// 2. Into previous cell of the first row if any;
// 3. Into table's parent element;
var cursorPosition = new CKEDITOR.dom.element( firstRowCells[ startColIndex ] || ( startColIndex ? firstRowCells[ startColIndex - 1 ] : table.$.parentNode ) );
// Delete table rows only if all columns are gone (do not remove empty row).
if ( rowsToDelete.length == rows )
table.remove();
return cursorPosition;
}
function getFocusElementAfterDelCols( cells )
{
var cellIndexList = [],
table = cells[ 0 ] && cells[ 0 ].getAscendant( 'table' ),
i, length,
targetIndex, targetCell;
// get the cellIndex list of delete cells
for ( i = 0, length = cells.length; i < length; i++ )
cellIndexList.push( cells[i].$.cellIndex );
// get the focusable column index
cellIndexList.sort();
for ( i = 1, length = cellIndexList.length; i < length; i++ )
{
if ( cellIndexList[ i ] - cellIndexList[ i - 1 ] > 1 )
{
targetIndex = cellIndexList[ i - 1 ] + 1;
break;
}
}
if ( !targetIndex )
targetIndex = cellIndexList[ 0 ] > 0 ? ( cellIndexList[ 0 ] - 1 )
: ( cellIndexList[ cellIndexList.length - 1 ] + 1 );
// scan row by row to get the target cell
var rows = table.$.rows;
for ( i = 0, length = rows.length; i < length ; i++ )
{
targetCell = rows[ i ].cells[ targetIndex ];
if ( targetCell )
break;
}
return targetCell ? new CKEDITOR.dom.element( targetCell ) : table.getPrevious();
}
function insertCell( selection, insertBefore )
{
var startElement = selection.getStartElement();
var cell = startElement.getAscendant( 'td', 1 ) || startElement.getAscendant( 'th', 1 );
if ( !cell )
return;
// Create the new cell element to be added.
var newCell = cell.clone();
if ( !CKEDITOR.env.ie )
newCell.appendBogus();
if ( insertBefore )
newCell.insertBefore( cell );
else
newCell.insertAfter( cell );
}
function deleteCells( selectionOrCell )
{
if ( selectionOrCell instanceof CKEDITOR.dom.selection )
{
var cellsToDelete = getSelectedCells( selectionOrCell );
var table = cellsToDelete[ 0 ] && cellsToDelete[ 0 ].getAscendant( 'table' );
var cellToFocus = getFocusElementAfterDelCells( cellsToDelete );
for ( var i = cellsToDelete.length - 1 ; i >= 0 ; i-- )
deleteCells( cellsToDelete[ i ] );
if ( cellToFocus )
placeCursorInCell( cellToFocus, true );
else if ( table )
table.remove();
}
else if ( selectionOrCell instanceof CKEDITOR.dom.element )
{
var tr = selectionOrCell.getParent();
if ( tr.getChildCount() == 1 )
tr.remove();
else
selectionOrCell.remove();
}
}
// Remove filler at end and empty spaces around the cell content.
function trimCell( cell )
{
var bogus = cell.getBogus();
bogus && bogus.remove();
cell.trim();
}
function placeCursorInCell( cell, placeAtEnd )
{
var range = new CKEDITOR.dom.range( cell.getDocument() );
if ( !range[ 'moveToElementEdit' + ( placeAtEnd ? 'End' : 'Start' ) ]( cell ) )
{
range.selectNodeContents( cell );
range.collapse( placeAtEnd ? false : true );
}
range.select( true );
}
function cellInRow( tableMap, rowIndex, cell )
{
var oRow = tableMap[ rowIndex ];
if ( typeof cell == 'undefined' )
return oRow;
for ( var c = 0 ; oRow && c < oRow.length ; c++ )
{
if ( cell.is && oRow[c] == cell.$ )
return c;
else if ( c == cell )
return new CKEDITOR.dom.element( oRow[ c ] );
}
return cell.is ? -1 : null;
}
function cellInCol( tableMap, colIndex, cell )
{
var oCol = [];
for ( var r = 0; r < tableMap.length; r++ )
{
var row = tableMap[ r ];
if ( typeof cell == 'undefined' )
oCol.push( row[ colIndex ] );
else if ( cell.is && row[ colIndex ] == cell.$ )
return r;
else if ( r == cell )
return new CKEDITOR.dom.element( row[ colIndex ] );
}
return ( typeof cell == 'undefined' )? oCol : cell.is ? -1 : null;
}
function mergeCells( selection, mergeDirection, isDetect )
{
var cells = getSelectedCells( selection );
// Invalid merge request if:
// 1. In batch mode despite that less than two selected.
// 2. In solo mode while not exactly only one selected.
// 3. Cells distributed in different table groups (e.g. from both thead and tbody).
var commonAncestor;
if ( ( mergeDirection ? cells.length != 1 : cells.length < 2 )
|| ( commonAncestor = selection.getCommonAncestor() )
&& commonAncestor.type == CKEDITOR.NODE_ELEMENT
&& commonAncestor.is( 'table' ) )
{
return false;
}
var cell,
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
mapHeight = map.length,
mapWidth = map[ 0 ].length,
startRow = firstCell.getParent().$.rowIndex,
startColumn = cellInRow( map, startRow, firstCell );
if ( mergeDirection )
{
var targetCell;
try
{
var rowspan = parseInt( firstCell.getAttribute( 'rowspan' ), 10 ) || 1;
var colspan = parseInt( firstCell.getAttribute( 'colspan' ), 10 ) || 1;
targetCell =
map[ mergeDirection == 'up' ?
( startRow - rowspan ):
mergeDirection == 'down' ? ( startRow + rowspan ) : startRow ] [
mergeDirection == 'left' ?
( startColumn - colspan ):
mergeDirection == 'right' ? ( startColumn + colspan ) : startColumn ];
}
catch( er )
{
return false;
}
// 1. No cell could be merged.
// 2. Same cell actually.
if ( !targetCell || firstCell.$ == targetCell )
return false;
// Sort in map order regardless of the DOM sequence.
cells[ ( mergeDirection == 'up' || mergeDirection == 'left' ) ?
'unshift' : 'push' ]( new CKEDITOR.dom.element( targetCell ) );
}
// Start from here are merging way ignorance (merge up/right, batch merge).
var doc = firstCell.getDocument(),
lastRowIndex = startRow,
totalRowSpan = 0,
totalColSpan = 0,
// Use a documentFragment as buffer when appending cell contents.
frag = !isDetect && new CKEDITOR.dom.documentFragment( doc ),
dimension = 0;
for ( var i = 0; i < cells.length; i++ )
{
cell = cells[ i ];
var tr = cell.getParent(),
cellFirstChild = cell.getFirst(),
colSpan = cell.$.colSpan,
rowSpan = cell.$.rowSpan,
rowIndex = tr.$.rowIndex,
colIndex = cellInRow( map, rowIndex, cell );
// Accumulated the actual places taken by all selected cells.
dimension += colSpan * rowSpan;
// Accumulated the maximum virtual spans from column and row.
totalColSpan = Math.max( totalColSpan, colIndex - startColumn + colSpan ) ;
totalRowSpan = Math.max( totalRowSpan, rowIndex - startRow + rowSpan );
if ( !isDetect )
{
// Trim all cell fillers and check to remove empty cells.
if ( trimCell( cell ), cell.getChildren().count() )
{
// Merge vertically cells as two separated paragraphs.
if ( rowIndex != lastRowIndex
&& cellFirstChild
&& !( cellFirstChild.isBlockBoundary
&& cellFirstChild.isBlockBoundary( { br : 1 } ) ) )
{
var last = frag.getLast( CKEDITOR.dom.walker.whitespaces( true ) );
if ( last && !( last.is && last.is( 'br' ) ) )
frag.append( 'br' );
}
cell.moveChildren( frag );
}
i ? cell.remove() : cell.setHtml( '' );
}
lastRowIndex = rowIndex;
}
if ( !isDetect )
{
frag.moveChildren( firstCell );
if ( !CKEDITOR.env.ie )
firstCell.appendBogus();
if ( totalColSpan >= mapWidth )
firstCell.removeAttribute( 'rowSpan' );
else
firstCell.$.rowSpan = totalRowSpan;
if ( totalRowSpan >= mapHeight )
firstCell.removeAttribute( 'colSpan' );
else
firstCell.$.colSpan = totalColSpan;
// Swip empty <tr> left at the end of table due to the merging.
var trs = new CKEDITOR.dom.nodeList( table.$.rows ),
count = trs.count();
for ( i = count - 1; i >= 0; i-- )
{
var tailTr = trs.getItem( i );
if ( !tailTr.$.cells.length )
{
tailTr.remove();
count++;
continue;
}
}
return firstCell;
}
// Be able to merge cells only if actual dimension of selected
// cells equals to the caculated rectangle.
else
return ( totalRowSpan * totalColSpan ) == dimension;
}
function verticalSplitCell ( selection, isDetect )
{
var cells = getSelectedCells( selection );
if ( cells.length > 1 )
return false;
else if ( isDetect )
return true;
var cell = cells[ 0 ],
tr = cell.getParent(),
table = tr.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
rowIndex = tr.$.rowIndex,
colIndex = cellInRow( map, rowIndex, cell ),
rowSpan = cell.$.rowSpan,
newCell,
newRowSpan,
newCellRowSpan,
newRowIndex;
if ( rowSpan > 1 )
{
newRowSpan = Math.ceil( rowSpan / 2 );
newCellRowSpan = Math.floor( rowSpan / 2 );
newRowIndex = rowIndex + newRowSpan;
var newCellTr = new CKEDITOR.dom.element( table.$.rows[ newRowIndex ] ),
newCellRow = cellInRow( map, newRowIndex ),
candidateCell;
newCell = cell.clone();
// Figure out where to insert the new cell by checking the vitual row.
for ( var c = 0; c < newCellRow.length; c++ )
{
candidateCell = newCellRow[ c ];
// Catch first cell actually following the column.
if ( candidateCell.parentNode == newCellTr.$
&& c > colIndex )
{
newCell.insertBefore( new CKEDITOR.dom.element( candidateCell ) );
break;
}
else
candidateCell = null;
}
// The destination row is empty, append at will.
if ( !candidateCell )
newCellTr.append( newCell, true );
}
else
{
newCellRowSpan = newRowSpan = 1;
newCellTr = tr.clone();
newCellTr.insertAfter( tr );
newCellTr.append( newCell = cell.clone() );
var cellsInSameRow = cellInRow( map, rowIndex );
for ( var i = 0; i < cellsInSameRow.length; i++ )
cellsInSameRow[ i ].rowSpan++;
}
if ( !CKEDITOR.env.ie )
newCell.appendBogus();
cell.$.rowSpan = newRowSpan;
newCell.$.rowSpan = newCellRowSpan;
if ( newRowSpan == 1 )
cell.removeAttribute( 'rowSpan' );
if ( newCellRowSpan == 1 )
newCell.removeAttribute( 'rowSpan' );
return newCell;
}
function horizontalSplitCell( selection, isDetect )
{
var cells = getSelectedCells( selection );
if ( cells.length > 1 )
return false;
else if ( isDetect )
return true;
var cell = cells[ 0 ],
tr = cell.getParent(),
table = tr.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
rowIndex = tr.$.rowIndex,
colIndex = cellInRow( map, rowIndex, cell ),
colSpan = cell.$.colSpan,
newCell,
newColSpan,
newCellColSpan;
if ( colSpan > 1 )
{
newColSpan = Math.ceil( colSpan / 2 );
newCellColSpan = Math.floor( colSpan / 2 );
}
else
{
newCellColSpan = newColSpan = 1;
var cellsInSameCol = cellInCol( map, colIndex );
for ( var i = 0; i < cellsInSameCol.length; i++ )
cellsInSameCol[ i ].colSpan++;
}
newCell = cell.clone();
newCell.insertAfter( cell );
if ( !CKEDITOR.env.ie )
newCell.appendBogus();
cell.$.colSpan = newColSpan;
newCell.$.colSpan = newCellColSpan;
if ( newColSpan == 1 )
cell.removeAttribute( 'colSpan' );
if ( newCellColSpan == 1 )
newCell.removeAttribute( 'colSpan' );
return newCell;
}
// Context menu on table caption incorrect (#3834)
var contextMenuTags = { thead : 1, tbody : 1, tfoot : 1, td : 1, tr : 1, th : 1 };
CKEDITOR.plugins.tabletools =
{
init : function( editor )
{
var lang = editor.lang.table;
editor.addCommand( 'cellProperties', new CKEDITOR.dialogCommand( 'cellProperties' ) );
CKEDITOR.dialog.add( 'cellProperties', this.path + 'dialogs/tableCell.js' );
editor.addCommand( 'tableDelete',
{
exec : function( editor )
{
var selection = editor.getSelection(),
startElement = selection && selection.getStartElement(),
table = startElement && startElement.getAscendant( 'table', 1 );
if ( !table )
return;
// If the table's parent has only one child remove it as well (unless it's the body or a table cell) (#5416, #6289)
var parent = table.getParent();
if ( parent.getChildCount() == 1 && !parent.is( 'body', 'td', 'th' ) )
table = parent;
var range = new CKEDITOR.dom.range( editor.document );
range.moveToPosition( table, CKEDITOR.POSITION_BEFORE_START );
table.remove();
range.select();
}
} );
editor.addCommand( 'rowDelete',
{
exec : function( editor )
{
var selection = editor.getSelection();
placeCursorInCell( deleteRows( selection ) );
}
} );
editor.addCommand( 'rowInsertBefore',
{
exec : function( editor )
{
var selection = editor.getSelection();
insertRow( selection, true );
}
} );
editor.addCommand( 'rowInsertAfter',
{
exec : function( editor )
{
var selection = editor.getSelection();
insertRow( selection );
}
} );
editor.addCommand( 'columnDelete',
{
exec : function( editor )
{
var selection = editor.getSelection();
var element = deleteColumns( selection );
element && placeCursorInCell( element, true );
}
} );
editor.addCommand( 'columnInsertBefore',
{
exec : function( editor )
{
var selection = editor.getSelection();
insertColumn( selection, true );
}
} );
editor.addCommand( 'columnInsertAfter',
{
exec : function( editor )
{
var selection = editor.getSelection();
insertColumn( selection );
}
} );
editor.addCommand( 'cellDelete',
{
exec : function( editor )
{
var selection = editor.getSelection();
deleteCells( selection );
}
} );
editor.addCommand( 'cellMerge',
{
exec : function( editor )
{
placeCursorInCell( mergeCells( editor.getSelection() ), true );
}
} );
editor.addCommand( 'cellMergeRight',
{
exec : function( editor )
{
placeCursorInCell( mergeCells( editor.getSelection(), 'right' ), true );
}
} );
editor.addCommand( 'cellMergeDown',
{
exec : function( editor )
{
placeCursorInCell( mergeCells( editor.getSelection(), 'down' ), true );
}
} );
editor.addCommand( 'cellVerticalSplit',
{
exec : function( editor )
{
placeCursorInCell( verticalSplitCell( editor.getSelection() ) );
}
} );
editor.addCommand( 'cellHorizontalSplit',
{
exec : function( editor )
{
placeCursorInCell( horizontalSplitCell( editor.getSelection() ) );
}
} );
editor.addCommand( 'cellInsertBefore',
{
exec : function( editor )
{
var selection = editor.getSelection();
insertCell( selection, true );
}
} );
editor.addCommand( 'cellInsertAfter',
{
exec : function( editor )
{
var selection = editor.getSelection();
insertCell( selection );
}
} );
// If the "menu" plugin is loaded, register the menu items.
if ( editor.addMenuItems )
{
editor.addMenuItems(
{
tablecell :
{
label : lang.cell.menu,
group : 'tablecell',
order : 1,
getItems : function()
{
var selection = editor.getSelection(),
cells = getSelectedCells( selection );
return {
tablecell_insertBefore : CKEDITOR.TRISTATE_OFF,
tablecell_insertAfter : CKEDITOR.TRISTATE_OFF,
tablecell_delete : CKEDITOR.TRISTATE_OFF,
tablecell_merge : mergeCells( selection, null, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_merge_right : mergeCells( selection, 'right', true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_merge_down : mergeCells( selection, 'down', true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_split_vertical : verticalSplitCell( selection, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_split_horizontal : horizontalSplitCell( selection, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_properties : cells.length > 0 ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED
};
}
},
tablecell_insertBefore :
{
label : lang.cell.insertBefore,
group : 'tablecell',
command : 'cellInsertBefore',
order : 5
},
tablecell_insertAfter :
{
label : lang.cell.insertAfter,
group : 'tablecell',
command : 'cellInsertAfter',
order : 10
},
tablecell_delete :
{
label : lang.cell.deleteCell,
group : 'tablecell',
command : 'cellDelete',
order : 15
},
tablecell_merge :
{
label : lang.cell.merge,
group : 'tablecell',
command : 'cellMerge',
order : 16
},
tablecell_merge_right :
{
label : lang.cell.mergeRight,
group : 'tablecell',
command : 'cellMergeRight',
order : 17
},
tablecell_merge_down :
{
label : lang.cell.mergeDown,
group : 'tablecell',
command : 'cellMergeDown',
order : 18
},
tablecell_split_horizontal :
{
label : lang.cell.splitHorizontal,
group : 'tablecell',
command : 'cellHorizontalSplit',
order : 19
},
tablecell_split_vertical :
{
label : lang.cell.splitVertical,
group : 'tablecell',
command : 'cellVerticalSplit',
order : 20
},
tablecell_properties :
{
label : lang.cell.title,
group : 'tablecellproperties',
command : 'cellProperties',
order : 21
},
tablerow :
{
label : lang.row.menu,
group : 'tablerow',
order : 1,
getItems : function()
{
return {
tablerow_insertBefore : CKEDITOR.TRISTATE_OFF,
tablerow_insertAfter : CKEDITOR.TRISTATE_OFF,
tablerow_delete : CKEDITOR.TRISTATE_OFF
};
}
},
tablerow_insertBefore :
{
label : lang.row.insertBefore,
group : 'tablerow',
command : 'rowInsertBefore',
order : 5
},
tablerow_insertAfter :
{
label : lang.row.insertAfter,
group : 'tablerow',
command : 'rowInsertAfter',
order : 10
},
tablerow_delete :
{
label : lang.row.deleteRow,
group : 'tablerow',
command : 'rowDelete',
order : 15
},
tablecolumn :
{
label : lang.column.menu,
group : 'tablecolumn',
order : 1,
getItems : function()
{
return {
tablecolumn_insertBefore : CKEDITOR.TRISTATE_OFF,
tablecolumn_insertAfter : CKEDITOR.TRISTATE_OFF,
tablecolumn_delete : CKEDITOR.TRISTATE_OFF
};
}
},
tablecolumn_insertBefore :
{
label : lang.column.insertBefore,
group : 'tablecolumn',
command : 'columnInsertBefore',
order : 5
},
tablecolumn_insertAfter :
{
label : lang.column.insertAfter,
group : 'tablecolumn',
command : 'columnInsertAfter',
order : 10
},
tablecolumn_delete :
{
label : lang.column.deleteColumn,
group : 'tablecolumn',
command : 'columnDelete',
order : 15
}
});
}
// If the "contextmenu" plugin is laoded, register the listeners.
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( !element || element.isReadOnly() )
return null;
while ( element )
{
if ( element.getName() in contextMenuTags )
{
return {
tablecell : CKEDITOR.TRISTATE_OFF,
tablerow : CKEDITOR.TRISTATE_OFF,
tablecolumn : CKEDITOR.TRISTATE_OFF
};
}
element = element.getParent();
}
return null;
} );
}
},
getSelectedCells : getSelectedCells
};
CKEDITOR.plugins.add( 'tabletools', CKEDITOR.plugins.tabletools );
})();
/**
* Create a two-dimension array that reflects the actual layout of table cells,
* with cell spans, with mappings to the original td elements.
* @param table {CKEDITOR.dom.element}
*/
CKEDITOR.tools.buildTableMap = function ( table )
{
var aRows = table.$.rows ;
// Row and Column counters.
var r = -1 ;
var aMap = [];
for ( var i = 0 ; i < aRows.length ; i++ )
{
r++ ;
!aMap[r] && ( aMap[r] = [] );
var c = -1 ;
for ( var j = 0 ; j < aRows[i].cells.length ; j++ )
{
var oCell = aRows[i].cells[j] ;
c++ ;
while ( aMap[r][c] )
c++ ;
var iColSpan = isNaN( oCell.colSpan ) ? 1 : oCell.colSpan ;
var iRowSpan = isNaN( oCell.rowSpan ) ? 1 : oCell.rowSpan ;
for ( var rs = 0 ; rs < iRowSpan ; rs++ )
{
if ( !aMap[r + rs] )
aMap[r + rs] = [];
for ( var cs = 0 ; cs < iColSpan ; cs++ )
{
aMap[r + rs][c + cs] = aRows[i].cells[j] ;
}
}
c += iColSpan - 1 ;
}
}
return aMap ;
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/tabletools/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'cellProperties', function( editor )
{
var langTable = editor.lang.table,
langCell = langTable.cell,
langCommon = editor.lang.common,
validate = CKEDITOR.dialog.validate,
widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/,
heightPattern = /^(\d+(?:\.\d+)?)px$/,
bind = CKEDITOR.tools.bind,
spacer = { type : 'html', html : ' ' },
rtl = editor.lang.dir == 'rtl';
/**
*
* @param dialogName
* @param callback [ childDialog ]
*/
function getDialogValue( dialogName, callback )
{
var onOk = function()
{
releaseHandlers( this );
callback( this, this._.parentDialog );
this._.parentDialog.changeFocus( true );
};
var onCancel = function()
{
releaseHandlers( this );
this._.parentDialog.changeFocus();
};
var releaseHandlers = function( dialog )
{
dialog.removeListener( 'ok', onOk );
dialog.removeListener( 'cancel', onCancel );
};
var bindToDialog = function( dialog )
{
dialog.on( 'ok', onOk );
dialog.on( 'cancel', onCancel );
};
editor.execCommand( dialogName );
if ( editor._.storedDialogs.colordialog )
bindToDialog( editor._.storedDialogs.colordialog );
else
{
CKEDITOR.on( 'dialogDefinition', function( e )
{
if ( e.data.name != dialogName )
return;
var definition = e.data.definition;
e.removeListener();
definition.onLoad = CKEDITOR.tools.override( definition.onLoad, function( orginal )
{
return function()
{
bindToDialog( this );
definition.onLoad = orginal;
if ( typeof orginal == 'function' )
orginal.call( this );
};
} );
});
}
}
return {
title : langCell.title,
minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks? 450 : 410,
minHeight : CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks )? 230 : 200,
contents : [
{
id : 'info',
label : langCell.title,
accessKey : 'I',
elements :
[
{
type : 'hbox',
widths : [ '40%', '5%', '40%' ],
children :
[
{
type : 'vbox',
padding : 0,
children :
[
{
type : 'hbox',
widths : [ '70%', '30%' ],
children :
[
{
type : 'text',
id : 'width',
width: '100px',
label : langCommon.width,
validate : validate[ 'number' ]( langCell.invalidWidth ),
// Extra labelling of width unit type.
onLoad : function()
{
var widthType = this.getDialog().getContentElement( 'info', 'widthType' ),
labelElement = widthType.getElement(),
inputElement = this.getInputElement(),
ariaLabelledByAttr = inputElement.getAttribute( 'aria-labelledby' );
inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
},
setup : function( element )
{
var widthAttr = parseInt( element.getAttribute( 'width' ), 10 ),
widthStyle = parseInt( element.getStyle( 'width' ), 10 );
!isNaN( widthAttr ) && this.setValue( widthAttr );
!isNaN( widthStyle ) && this.setValue( widthStyle );
},
commit : function( element )
{
var value = parseInt( this.getValue(), 10 ),
unit = this.getDialog().getValueOf( 'info', 'widthType' );
if ( !isNaN( value ) )
element.setStyle( 'width', value + unit );
else
element.removeStyle( 'width' );
element.removeAttribute( 'width' );
},
'default' : ''
},
{
type : 'select',
id : 'widthType',
label : editor.lang.table.widthUnit,
labelStyle: 'visibility:hidden',
'default' : 'px',
items :
[
[ langTable.widthPx, 'px' ],
[ langTable.widthPc, '%' ]
],
setup : function( selectedCell )
{
var widthMatch = widthPattern.exec( selectedCell.getStyle( 'width' ) || selectedCell.getAttribute( 'width' ) );
if ( widthMatch )
this.setValue( widthMatch[2] );
}
}
]
},
{
type : 'hbox',
widths : [ '70%', '30%' ],
children :
[
{
type : 'text',
id : 'height',
label : langCommon.height,
width: '100px',
'default' : '',
validate : validate[ 'number' ]( langCell.invalidHeight ),
// Extra labelling of height unit type.
onLoad : function()
{
var heightType = this.getDialog().getContentElement( 'info', 'htmlHeightType' ),
labelElement = heightType.getElement(),
inputElement = this.getInputElement(),
ariaLabelledByAttr = inputElement.getAttribute( 'aria-labelledby' );
inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
},
setup : function( element )
{
var heightAttr = parseInt( element.getAttribute( 'height' ), 10 ),
heightStyle = parseInt( element.getStyle( 'height' ), 10 );
!isNaN( heightAttr ) && this.setValue( heightAttr );
!isNaN( heightStyle ) && this.setValue( heightStyle );
},
commit : function( element )
{
var value = parseInt( this.getValue(), 10 );
if ( !isNaN( value ) )
element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) );
else
element.removeStyle( 'height' );
element.removeAttribute( 'height' );
}
},
{
id : 'htmlHeightType',
type : 'html',
html : '<br />'+ langTable.widthPx
}
]
},
spacer,
{
type : 'select',
id : 'wordWrap',
label : langCell.wordWrap,
'default' : 'yes',
items :
[
[ langCell.yes, 'yes' ],
[ langCell.no, 'no' ]
],
setup : function( element )
{
var wordWrapAttr = element.getAttribute( 'noWrap' ),
wordWrapStyle = element.getStyle( 'white-space' );
if ( wordWrapStyle == 'nowrap' || wordWrapAttr )
this.setValue( 'no' );
},
commit : function( element )
{
if ( this.getValue() == 'no' )
element.setStyle( 'white-space', 'nowrap' );
else
element.removeStyle( 'white-space' );
element.removeAttribute( 'noWrap' );
}
},
spacer,
{
type : 'select',
id : 'hAlign',
label : langCell.hAlign,
'default' : '',
items :
[
[ langCommon.notSet, '' ],
[ langCommon.alignLeft, 'left' ],
[ langCommon.alignCenter, 'center' ],
[ langCommon.alignRight, 'right' ]
],
setup : function( element )
{
var alignAttr = element.getAttribute( 'align' ),
textAlignStyle = element.getStyle( 'text-align');
this.setValue( textAlignStyle || alignAttr || '' );
},
commit : function( selectedCell )
{
var value = this.getValue();
if ( value )
selectedCell.setStyle( 'text-align', value );
else
selectedCell.removeStyle( 'text-align' );
selectedCell.removeAttribute( 'align' );
}
},
{
type : 'select',
id : 'vAlign',
label : langCell.vAlign,
'default' : '',
items :
[
[ langCommon.notSet, '' ],
[ langCommon.alignTop, 'top' ],
[ langCommon.alignMiddle, 'middle' ],
[ langCommon.alignBottom, 'bottom' ],
[ langCell.alignBaseline, 'baseline' ]
],
setup : function( element )
{
var vAlignAttr = element.getAttribute( 'vAlign' ),
vAlignStyle = element.getStyle( 'vertical-align' );
switch( vAlignStyle )
{
// Ignore all other unrelated style values..
case 'top':
case 'middle':
case 'bottom':
case 'baseline':
break;
default:
vAlignStyle = '';
}
this.setValue( vAlignStyle || vAlignAttr || '' );
},
commit : function( element )
{
var value = this.getValue();
if ( value )
element.setStyle( 'vertical-align', value );
else
element.removeStyle( 'vertical-align' );
element.removeAttribute( 'vAlign' );
}
}
]
},
spacer,
{
type : 'vbox',
padding : 0,
children :
[
{
type : 'select',
id : 'cellType',
label : langCell.cellType,
'default' : 'td',
items :
[
[ langCell.data, 'td' ],
[ langCell.header, 'th' ]
],
setup : function( selectedCell )
{
this.setValue( selectedCell.getName() );
},
commit : function( selectedCell )
{
selectedCell.renameNode( this.getValue() );
}
},
spacer,
{
type : 'text',
id : 'rowSpan',
label : langCell.rowSpan,
'default' : '',
validate : validate.integer( langCell.invalidRowSpan ),
setup : function( selectedCell )
{
var attrVal = parseInt( selectedCell.getAttribute( 'rowSpan' ), 10 );
if ( attrVal && attrVal != 1 )
this.setValue( attrVal );
},
commit : function( selectedCell )
{
var value = parseInt( this.getValue(), 10 );
if ( value && value != 1 )
selectedCell.setAttribute( 'rowSpan', this.getValue() );
else
selectedCell.removeAttribute( 'rowSpan' );
}
},
{
type : 'text',
id : 'colSpan',
label : langCell.colSpan,
'default' : '',
validate : validate.integer( langCell.invalidColSpan ),
setup : function( element )
{
var attrVal = parseInt( element.getAttribute( 'colSpan' ), 10 );
if ( attrVal && attrVal != 1 )
this.setValue( attrVal );
},
commit : function( selectedCell )
{
var value = parseInt( this.getValue(), 10 );
if ( value && value != 1 )
selectedCell.setAttribute( 'colSpan', this.getValue() );
else
selectedCell.removeAttribute( 'colSpan' );
}
},
spacer,
{
type : 'hbox',
padding : 0,
widths : [ '60%', '40%' ],
children :
[
{
type : 'text',
id : 'bgColor',
label : langCell.bgColor,
'default' : '',
setup : function( element )
{
var bgColorAttr = element.getAttribute( 'bgColor' ),
bgColorStyle = element.getStyle( 'background-color' );
this.setValue( bgColorStyle || bgColorAttr );
},
commit : function( selectedCell )
{
var value = this.getValue();
if ( value )
selectedCell.setStyle( 'background-color', this.getValue() );
else
selectedCell.removeStyle( 'background-color' );
selectedCell.removeAttribute( 'bgColor');
}
},
{
type : 'button',
id : 'bgColorChoose',
"class" : 'colorChooser',
label : langCell.chooseColor,
onLoad : function()
{
// Stick the element to the bottom (#5587)
this.getElement().getParent().setStyle( 'vertical-align', 'bottom' );
},
onClick : function()
{
var self = this;
getDialogValue( 'colordialog', function( colorDialog )
{
self.getDialog().getContentElement( 'info', 'bgColor' ).setValue(
colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue()
);
} );
}
}
]
},
spacer,
{
type : 'hbox',
padding : 0,
widths : [ '60%', '40%' ],
children :
[
{
type : 'text',
id : 'borderColor',
label : langCell.borderColor,
'default' : '',
setup : function( element )
{
var borderColorAttr = element.getAttribute( 'borderColor' ),
borderColorStyle = element.getStyle( 'border-color' );
this.setValue( borderColorStyle || borderColorAttr );
},
commit : function( selectedCell )
{
var value = this.getValue();
if ( value )
selectedCell.setStyle( 'border-color', this.getValue() );
else
selectedCell.removeStyle( 'border-color' );
selectedCell.removeAttribute( 'borderColor');
}
},
{
type : 'button',
id : 'borderColorChoose',
"class" : 'colorChooser',
label : langCell.chooseColor,
style : ( rtl ? 'margin-right' : 'margin-left' ) + ': 10px',
onLoad : function()
{
// Stick the element to the bottom (#5587)
this.getElement().getParent().setStyle( 'vertical-align', 'bottom' );
},
onClick : function()
{
var self = this;
getDialogValue( 'colordialog', function( colorDialog )
{
self.getDialog().getContentElement( 'info', 'borderColor' ).setValue(
colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue()
);
} );
}
}
]
}
]
}
]
}
]
}
],
onShow : function()
{
this.cells = CKEDITOR.plugins.tabletools.getSelectedCells(
this._.editor.getSelection() );
this.setupContent( this.cells[ 0 ] );
},
onOk : function()
{
var selection = this._.editor.getSelection(),
bookmarks = selection.createBookmarks();
var cells = this.cells;
for ( var i = 0 ; i < cells.length ; i++ )
this.commitContent( cells[ i ] );
selection.selectBookmarks( bookmarks );
// Force selectionChange event because of alignment style.
var firstElement = selection.getStartElement();
var currentPath = new CKEDITOR.dom.elementPath( firstElement );
this._.editor._.selectionPreviousPath = currentPath;
this._.editor.fire( 'selectionChange', { selection : selection, path : currentPath, element : firstElement } );
}
};
} ); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js | tableCell.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The default editing block plugin, which holds the editing area
* and source view.
*/
(function()
{
// This is a semaphore used to avoid recursive calls between
// the following data handling functions.
var isHandlingData;
CKEDITOR.plugins.add( 'editingblock',
{
init : function( editor )
{
if ( !editor.config.editingBlock )
return;
editor.on( 'themeSpace', function( event )
{
if ( event.data.space == 'contents' )
event.data.html += '<br>';
});
editor.on( 'themeLoaded', function()
{
editor.fireOnce( 'editingBlockReady' );
});
editor.on( 'uiReady', function()
{
editor.setMode( editor.config.startupMode );
});
editor.on( 'afterSetData', function()
{
if ( !isHandlingData )
{
function setData()
{
isHandlingData = true;
editor.getMode().loadData( editor.getData() );
isHandlingData = false;
}
if ( editor.mode )
setData();
else
{
editor.on( 'mode', function()
{
if ( editor.mode )
{
setData();
editor.removeListener( 'mode', arguments.callee );
}
});
}
}
});
editor.on( 'beforeGetData', function()
{
if ( !isHandlingData && editor.mode )
{
isHandlingData = true;
editor.setData( editor.getMode().getData(), null, 1 );
isHandlingData = false;
}
});
editor.on( 'getSnapshot', function( event )
{
if ( editor.mode )
event.data = editor.getMode().getSnapshotData();
});
editor.on( 'loadSnapshot', function( event )
{
if ( editor.mode )
editor.getMode().loadSnapshotData( event.data );
});
// For the first "mode" call, we'll also fire the "instanceReady"
// event.
editor.on( 'mode', function( event )
{
// Do that once only.
event.removeListener();
// Redirect the focus into editor for webkit. (#5713)
CKEDITOR.env.webkit && editor.container.on( 'focus', function()
{
editor.focus();
});
if ( editor.config.startupFocus )
editor.focus();
// Fire instanceReady for both the editor and CKEDITOR, but
// defer this until the whole execution has completed
// to guarantee the editor is fully responsible.
setTimeout( function(){
editor.fireOnce( 'instanceReady' );
CKEDITOR.fire( 'instanceReady', null, editor );
}, 0 );
});
editor.on( 'destroy', function ()
{
// -> currentMode.unload( holderElement );
if ( this.mode )
this._.modes[ this.mode ].unload( this.getThemeSpace( 'contents' ) );
});
}
});
/**
* The current editing mode. An editing mode is basically a viewport for
* editing or content viewing. By default the possible values for this
* property are "wysiwyg" and "source".
* @type String
* @example
* alert( CKEDITOR.instances.editor1.mode ); // "wysiwyg" (e.g.)
*/
CKEDITOR.editor.prototype.mode = '';
/**
* Registers an editing mode. This function is to be used mainly by plugins.
* @param {String} mode The mode name.
* @param {Object} modeEditor The mode editor definition.
* @example
*/
CKEDITOR.editor.prototype.addMode = function( mode, modeEditor )
{
modeEditor.name = mode;
( this._.modes || ( this._.modes = {} ) )[ mode ] = modeEditor;
};
/**
* Sets the current editing mode in this editor instance.
* @param {String} mode A registered mode name.
* @example
* // Switch to "source" view.
* CKEDITOR.instances.editor1.setMode( 'source' );
*/
CKEDITOR.editor.prototype.setMode = function( mode )
{
this.fire( 'beforeSetMode', { newMode : mode } );
var data,
holderElement = this.getThemeSpace( 'contents' ),
isDirty = this.checkDirty();
// Unload the previous mode.
if ( this.mode )
{
if ( mode == this.mode )
return;
this._.previousMode = this.mode;
this.fire( 'beforeModeUnload' );
var currentMode = this.getMode();
data = currentMode.getData();
currentMode.unload( holderElement );
this.mode = '';
}
holderElement.setHtml( '' );
// Load required mode.
var modeEditor = this.getMode( mode );
if ( !modeEditor )
throw '[CKEDITOR.editor.setMode] Unknown mode "' + mode + '".';
if ( !isDirty )
{
this.on( 'mode', function()
{
this.resetDirty();
this.removeListener( 'mode', arguments.callee );
});
}
modeEditor.load( holderElement, ( typeof data ) != 'string' ? this.getData() : data );
};
/**
* Gets the current or any of the objects that represent the editing
* area modes. The two most common editing modes are "wysiwyg" and "source".
* @param {String} [mode] The mode to be retrieved. If not specified, the
* current one is returned.
*/
CKEDITOR.editor.prototype.getMode = function( mode )
{
return this._.modes && this._.modes[ mode || this.mode ];
};
/**
* Moves the selection focus to the editing are space in the editor.
*/
CKEDITOR.editor.prototype.focus = function()
{
this.forceNextSelectionCheck();
var mode = this.getMode();
if ( mode )
mode.focus();
};
})();
/**
* The mode to load at the editor startup. It depends on the plugins
* loaded. By default, the "wysiwyg" and "source" modes are available.
* @type String
* @default 'wysiwyg'
* @example
* config.startupMode = 'source';
*/
CKEDITOR.config.startupMode = 'wysiwyg';
/**
* Sets whether the editor should have the focus when the page loads.
* @name CKEDITOR.config.startupFocus
* @type Boolean
* @default false
* @example
* config.startupFocus = true;
*/
/**
* Whether to render or not the editing block area in the editor interface.
* @type Boolean
* @default true
* @example
* config.editingBlock = false;
*/
CKEDITOR.config.editingBlock = true;
/**
* Fired when a CKEDITOR instance is created, fully initialized and ready for interaction.
* @name CKEDITOR#instanceReady
* @event
* @param {CKEDITOR.editor} editor The editor instance that has been created.
*/
/**
* Fired when the CKEDITOR instance is created, fully initialized and ready for interaction.
* @name CKEDITOR.editor#instanceReady
* @event
*/
/**
* Fired before changing the editing mode. See also CKEDITOR.editor#beforeSetMode and CKEDITOR.editor#mode
* @name CKEDITOR.editor#beforeModeUnload
* @event
*/
/**
* Fired before the editor mode is set. See also CKEDITOR.editor#mode and CKEDITOR.editor#beforeModeUnload
* @name CKEDITOR.editor#beforeSetMode
* @event
* @since 3.5.3
* @param {String} newMode The name of the mode which is about to be set.
*/
/**
* Fired after setting the editing mode. See also CKEDITOR.editor#beforeSetMode and CKEDITOR.editor#beforeModeUnload
* @name CKEDITOR.editor#mode
* @event
* @param {String} previousMode The previous mode of the editor.
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/editingblock/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'removeformat',
{
requires : [ 'selection' ],
init : function( editor )
{
editor.addCommand( 'removeFormat', CKEDITOR.plugins.removeformat.commands.removeformat );
editor.ui.addButton( 'RemoveFormat',
{
label : editor.lang.removeFormat,
command : 'removeFormat'
});
editor._.removeFormat = { filters: [] };
}
});
CKEDITOR.plugins.removeformat =
{
commands :
{
removeformat :
{
exec : function( editor )
{
var tagsRegex = editor._.removeFormatRegex ||
( editor._.removeFormatRegex = new RegExp( '^(?:' + editor.config.removeFormatTags.replace( /,/g,'|' ) + ')$', 'i' ) );
var removeAttributes = editor._.removeAttributes ||
( editor._.removeAttributes = editor.config.removeFormatAttributes.split( ',' ) );
var filter = CKEDITOR.plugins.removeformat.filter;
var ranges = editor.getSelection().getRanges( 1 ),
iterator = ranges.createIterator(),
range;
while ( ( range = iterator.getNextRange() ) )
{
if ( ! range.collapsed )
range.enlarge( CKEDITOR.ENLARGE_ELEMENT );
// Bookmark the range so we can re-select it after processing.
var bookmark = range.createBookmark(),
// The style will be applied within the bookmark boundaries.
startNode = bookmark.startNode,
endNode = bookmark.endNode,
currentNode;
// We need to check the selection boundaries (bookmark spans) to break
// the code in a way that we can properly remove partially selected nodes.
// For example, removing a <b> style from
// <b>This is [some text</b> to show <b>the] problem</b>
// ... where [ and ] represent the selection, must result:
// <b>This is </b>[some text to show the]<b> problem</b>
// The strategy is simple, we just break the partial nodes before the
// removal logic, having something that could be represented this way:
// <b>This is </b>[<b>some text</b> to show <b>the</b>]<b> problem</b>
var breakParent = function( node )
{
// Let's start checking the start boundary.
var path = new CKEDITOR.dom.elementPath( node ),
pathElements = path.elements;
for ( var i = 1, pathElement ; pathElement = pathElements[ i ] ; i++ )
{
if ( pathElement.equals( path.block ) || pathElement.equals( path.blockLimit ) )
break;
// If this element can be removed (even partially).
if ( tagsRegex.test( pathElement.getName() ) && filter( editor, pathElement ) )
node.breakParent( pathElement );
}
};
breakParent( startNode );
if ( endNode )
{
breakParent( endNode );
// Navigate through all nodes between the bookmarks.
currentNode = startNode.getNextSourceNode( true, CKEDITOR.NODE_ELEMENT );
while ( currentNode )
{
// If we have reached the end of the selection, stop looping.
if ( currentNode.equals( endNode ) )
break;
// Cache the next node to be processed. Do it now, because
// currentNode may be removed.
var nextNode = currentNode.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT );
// This node must not be a fake element.
if ( !( currentNode.getName() == 'img'
&& currentNode.data( 'cke-realelement' ) )
&& filter( editor, currentNode ) )
{
// Remove elements nodes that match with this style rules.
if ( tagsRegex.test( currentNode.getName() ) )
currentNode.remove( 1 );
else
{
currentNode.removeAttributes( removeAttributes );
editor.fire( 'removeFormatCleanup', currentNode );
}
}
currentNode = nextNode;
}
}
range.moveToBookmark( bookmark );
}
editor.getSelection().selectRanges( ranges );
}
}
},
/**
* Perform the remove format filters on the passed element.
* @param {CKEDITOR.editor} editor
* @param {CKEDITOR.dom.element} element
*/
filter : function ( editor, element )
{
var filters = editor._.removeFormat.filters;
for ( var i = 0; i < filters.length; i++ )
{
if ( filters[ i ]( element ) === false )
return false;
}
return true;
}
};
/**
* Add to a collection of functions to decide whether a specific
* element should be considered as formatting element and thus
* could be removed during <b>removeFormat</b> command,
* Note: Only available with the existence of 'removeformat' plugin.
* @since 3.3
* @param {Function} func The function to be called, which will be passed a {CKEDITOR.dom.element} element to test.
* @example
* // Don't remove empty span
* editor.addRemoveFormatFilter.push( function( element )
* {
* return !( element.is( 'span' ) && CKEDITOR.tools.isEmpty( element.getAttributes() ) );
* });
*/
CKEDITOR.editor.prototype.addRemoveFormatFilter = function( func )
{
this._.removeFormat.filters.push( func );
};
/**
* A comma separated list of elements to be removed when executing the "remove
" format" command. Note that only inline elements are allowed.
* @type String
* @default 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var'
* @example
*/
CKEDITOR.config.removeFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';
/**
* A comma separated list of elements attributes to be removed when executing
* the "remove format" command.
* @type String
* @default 'class,style,lang,width,height,align,hspace,valign'
* @example
*/
CKEDITOR.config.removeFormatAttributes = 'class,style,lang,width,height,align,hspace,valign';
/**
* Fired after an element was cleaned by the removeFormat plugin.
* @name CKEDITOR.editor#removeFormatCleanup
* @event
* @param {Object} data.element The element that was cleaned up.
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/removeformat/plugin.js | plugin.js |
/*
* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
function getListElement( editor, listTag )
{
var range;
try { range = editor.getSelection().getRanges()[ 0 ]; }
catch( e ) { return null; }
range.shrink( CKEDITOR.SHRINK_TEXT );
return range.getCommonAncestor().getAscendant( listTag, 1 );
}
var listItem = function( node ) { return node.type == CKEDITOR.NODE_ELEMENT && node.is( 'li' ); };
var mapListStyle = {
'a' : 'lower-alpha',
'A' : 'upper-alpha',
'i' : 'lower-roman',
'I' : 'upper-roman',
'1' : 'decimal',
'disc' : 'disc',
'circle': 'circle',
'square' : 'square'
};
function listStyle( editor, startupPage )
{
var lang = editor.lang.list;
if ( startupPage == 'bulletedListStyle' )
{
return {
title : lang.bulletedTitle,
minWidth : 300,
minHeight : 50,
contents :
[
{
id : 'info',
accessKey : 'I',
elements :
[
{
type : 'select',
label : lang.type,
id : 'type',
align : 'center',
style : 'width:150px',
items :
[
[ lang.notset, '' ],
[ lang.circle, 'circle' ],
[ lang.disc, 'disc' ],
[ lang.square, 'square' ]
],
setup : function( element )
{
var value = element.getStyle( 'list-style-type' )
|| mapListStyle[ element.getAttribute( 'type' ) ]
|| element.getAttribute( 'type' )
|| '';
this.setValue( value );
},
commit : function( element )
{
var value = this.getValue();
if ( value )
element.setStyle( 'list-style-type', value );
else
element.removeStyle( 'list-style-type' );
}
}
]
}
],
onShow: function()
{
var editor = this.getParentEditor(),
element = getListElement( editor, 'ul' );
element && this.setupContent( element );
},
onOk: function()
{
var editor = this.getParentEditor(),
element = getListElement( editor, 'ul' );
element && this.commitContent( element );
}
};
}
else if ( startupPage == 'numberedListStyle' )
{
var listStyleOptions =
[
[ lang.notset, '' ],
[ lang.lowerRoman, 'lower-roman' ],
[ lang.upperRoman, 'upper-roman' ],
[ lang.lowerAlpha, 'lower-alpha' ],
[ lang.upperAlpha, 'upper-alpha' ],
[ lang.decimal, 'decimal' ]
];
if ( !CKEDITOR.env.ie || CKEDITOR.env.version > 7 )
{
listStyleOptions.concat( [
[ lang.armenian, 'armenian' ],
[ lang.decimalLeadingZero, 'decimal-leading-zero' ],
[ lang.georgian, 'georgian' ],
[ lang.lowerGreek, 'lower-greek' ]
]);
}
return {
title : lang.numberedTitle,
minWidth : 300,
minHeight : 50,
contents :
[
{
id : 'info',
accessKey : 'I',
elements :
[
{
type : 'hbox',
widths : [ '25%', '75%' ],
children :
[
{
label : lang.start,
type : 'text',
id : 'start',
validate : CKEDITOR.dialog.validate.integer( lang.validateStartNumber ),
setup : function( element )
{
// List item start number dominates.
var value = element.getFirst( listItem ).getAttribute( 'value' ) || element.getAttribute( 'start' ) || 1;
value && this.setValue( value );
},
commit : function( element )
{
var firstItem = element.getFirst( listItem );
var oldStart = firstItem.getAttribute( 'value' ) || element.getAttribute( 'start' ) || 1;
// Force start number on list root.
element.getFirst( listItem ).removeAttribute( 'value' );
var val = parseInt( this.getValue(), 10 );
if ( isNaN( val ) )
element.removeAttribute( 'start' );
else
element.setAttribute( 'start', val );
// Update consequent list item numbering.
var nextItem = firstItem, conseq = oldStart, startNumber = isNaN( val ) ? 1 : val;
while ( ( nextItem = nextItem.getNext( listItem ) ) && conseq++ )
{
if ( nextItem.getAttribute( 'value' ) == conseq )
nextItem.setAttribute( 'value', startNumber + conseq - oldStart );
}
}
},
{
type : 'select',
label : lang.type,
id : 'type',
style : 'width: 100%;',
items : listStyleOptions,
setup : function( element )
{
var value = element.getStyle( 'list-style-type' )
|| mapListStyle[ element.getAttribute( 'type' ) ]
|| element.getAttribute( 'type' )
|| '';
this.setValue( value );
},
commit : function( element )
{
var value = this.getValue();
if ( value )
element.setStyle( 'list-style-type', value );
else
element.removeStyle( 'list-style-type' );
}
}
]
}
]
}
],
onShow: function()
{
var editor = this.getParentEditor(),
element = getListElement( editor, 'ol' );
element && this.setupContent( element );
},
onOk: function()
{
var editor = this.getParentEditor(),
element = getListElement( editor, 'ol' );
element && this.commitContent( element );
}
};
}
}
CKEDITOR.dialog.add( 'numberedListStyle', function( editor )
{
return listStyle( editor, 'numberedListStyle' );
});
CKEDITOR.dialog.add( 'bulletedListStyle', function( editor )
{
return listStyle( editor, 'bulletedListStyle' );
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js | liststyle.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "toolbar" plugin. Renders the default toolbar interface in
* the editor.
*/
(function()
{
var toolbox = function()
{
this.toolbars = [];
this.focusCommandExecuted = false;
};
toolbox.prototype.focus = function()
{
for ( var t = 0, toolbar ; toolbar = this.toolbars[ t++ ] ; )
{
for ( var i = 0, item ; item = toolbar.items[ i++ ] ; )
{
if ( item.focus )
{
item.focus();
return;
}
}
}
};
var commands =
{
toolbarFocus :
{
modes : { wysiwyg : 1, source : 1 },
readOnly : 1,
exec : function( editor )
{
if ( editor.toolbox )
{
editor.toolbox.focusCommandExecuted = true;
// Make the first button focus accessible for IE. (#3417)
// Adobe AIR instead need while of delay.
if ( CKEDITOR.env.ie || CKEDITOR.env.air )
setTimeout( function(){ editor.toolbox.focus(); }, 100 );
else
editor.toolbox.focus();
}
}
}
};
CKEDITOR.plugins.add( 'toolbar',
{
init : function( editor )
{
var endFlag;
var itemKeystroke = function( item, keystroke )
{
var next, toolbar;
var rtl = editor.lang.dir == 'rtl',
toolbarGroupCycling = editor.config.toolbarGroupCycling;
toolbarGroupCycling = toolbarGroupCycling === undefined || toolbarGroupCycling;
switch ( keystroke )
{
case 9 : // TAB
case CKEDITOR.SHIFT + 9 : // SHIFT + TAB
// Cycle through the toolbars, starting from the one
// closest to the current item.
while ( !toolbar || !toolbar.items.length )
{
toolbar = keystroke == 9 ?
( ( toolbar ? toolbar.next : item.toolbar.next ) || editor.toolbox.toolbars[ 0 ] ) :
( ( toolbar ? toolbar.previous : item.toolbar.previous ) || editor.toolbox.toolbars[ editor.toolbox.toolbars.length - 1 ] );
// Look for the first item that accepts focus.
if ( toolbar.items.length )
{
item = toolbar.items[ endFlag ? ( toolbar.items.length - 1 ) : 0 ];
while ( item && !item.focus )
{
item = endFlag ? item.previous : item.next;
if ( !item )
toolbar = 0;
}
}
}
if ( item )
item.focus();
return false;
case rtl ? 37 : 39 : // RIGHT-ARROW
case 40 : // DOWN-ARROW
next = item;
do
{
// Look for the next item in the toolbar.
next = next.next;
// If it's the last item, cycle to the first one.
if ( !next && toolbarGroupCycling )
next = item.toolbar.items[ 0 ];
}
while ( next && !next.focus )
// If available, just focus it, otherwise focus the
// first one.
if ( next )
next.focus();
else
// Send a TAB.
itemKeystroke( item, 9 );
return false;
case rtl ? 39 : 37 : // LEFT-ARROW
case 38 : // UP-ARROW
next = item;
do
{
// Look for the previous item in the toolbar.
next = next.previous;
// If it's the first item, cycle to the last one.
if ( !next && toolbarGroupCycling )
next = item.toolbar.items[ item.toolbar.items.length - 1 ];
}
while ( next && !next.focus )
// If available, just focus it, otherwise focus the
// last one.
if ( next )
next.focus();
else
{
endFlag = 1;
// Send a SHIFT + TAB.
itemKeystroke( item, CKEDITOR.SHIFT + 9 );
endFlag = 0;
}
return false;
case 27 : // ESC
editor.focus();
return false;
case 13 : // ENTER
case 32 : // SPACE
item.execute();
return false;
}
return true;
};
editor.on( 'themeSpace', function( event )
{
if ( event.data.space == editor.config.toolbarLocation )
{
editor.toolbox = new toolbox();
var labelId = CKEDITOR.tools.getNextId();
var output = [ '<div class="cke_toolbox" role="group" aria-labelledby="', labelId, '" onmousedown="return false;"' ],
expanded = editor.config.toolbarStartupExpanded !== false,
groupStarted;
output.push( expanded ? '>' : ' style="display:none">' );
// Sends the ARIA label.
output.push( '<span id="', labelId, '" class="cke_voice_label">', editor.lang.toolbars, '</span>' );
var toolbars = editor.toolbox.toolbars,
toolbar =
( editor.config.toolbar instanceof Array ) ?
editor.config.toolbar
:
editor.config[ 'toolbar_' + editor.config.toolbar ];
for ( var r = 0 ; r < toolbar.length ; r++ )
{
var toolbarId,
toolbarObj = 0,
toolbarName,
row = toolbar[ r ],
items;
// It's better to check if the row object is really
// available because it's a common mistake to leave
// an extra comma in the toolbar definition
// settings, which leads on the editor not loading
// at all in IE. (#3983)
if ( !row )
continue;
if ( groupStarted )
{
output.push( '</div>' );
groupStarted = 0;
}
if ( row === '/' )
{
output.push( '<div class="cke_break"></div>' );
continue;
}
items = row.items || row;
// Create all items defined for this toolbar.
for ( var i = 0 ; i < items.length ; i++ )
{
var item,
itemName = items[ i ],
canGroup;
item = editor.ui.create( itemName );
if ( item )
{
canGroup = item.canGroup !== false;
// Initialize the toolbar first, if needed.
if ( !toolbarObj )
{
// Create the basic toolbar object.
toolbarId = CKEDITOR.tools.getNextId();
toolbarObj = { id : toolbarId, items : [] };
toolbarName = row.name && ( editor.lang.toolbarGroups[ row.name ] || row.name );
// Output the toolbar opener.
output.push( '<span id="', toolbarId, '" class="cke_toolbar"',
( toolbarName ? ' aria-labelledby="'+ toolbarId + '_label"' : '' ),
' role="toolbar">' );
// If a toolbar name is available, send the voice label.
toolbarName && output.push( '<span id="', toolbarId, '_label" class="cke_voice_label">', toolbarName, '</span>' );
output.push( '<span class="cke_toolbar_start"></span>' );
// Add the toolbar to the "editor.toolbox.toolbars"
// array.
var index = toolbars.push( toolbarObj ) - 1;
// Create the next/previous reference.
if ( index > 0 )
{
toolbarObj.previous = toolbars[ index - 1 ];
toolbarObj.previous.next = toolbarObj;
}
}
if ( canGroup )
{
if ( !groupStarted )
{
output.push( '<span class="cke_toolgroup" role="presentation">' );
groupStarted = 1;
}
}
else if ( groupStarted )
{
output.push( '</span>' );
groupStarted = 0;
}
var itemObj = item.render( editor, output );
index = toolbarObj.items.push( itemObj ) - 1;
if ( index > 0 )
{
itemObj.previous = toolbarObj.items[ index - 1 ];
itemObj.previous.next = itemObj;
}
itemObj.toolbar = toolbarObj;
itemObj.onkey = itemKeystroke;
/*
* Fix for #3052:
* Prevent JAWS from focusing the toolbar after document load.
*/
itemObj.onfocus = function()
{
if ( !editor.toolbox.focusCommandExecuted )
editor.focus();
};
}
}
if ( groupStarted )
{
output.push( '</span>' );
groupStarted = 0;
}
if ( toolbarObj )
output.push( '<span class="cke_toolbar_end"></span></span>' );
}
output.push( '</div>' );
if ( editor.config.toolbarCanCollapse )
{
var collapserFn = CKEDITOR.tools.addFunction(
function()
{
editor.execCommand( 'toolbarCollapse' );
});
editor.on( 'destroy', function () {
CKEDITOR.tools.removeFunction( collapserFn );
});
var collapserId = CKEDITOR.tools.getNextId();
editor.addCommand( 'toolbarCollapse',
{
readOnly : 1,
exec : function( editor )
{
var collapser = CKEDITOR.document.getById( collapserId ),
toolbox = collapser.getPrevious(),
contents = editor.getThemeSpace( 'contents' ),
toolboxContainer = toolbox.getParent(),
contentHeight = parseInt( contents.$.style.height, 10 ),
previousHeight = toolboxContainer.$.offsetHeight,
collapsed = !toolbox.isVisible();
if ( !collapsed )
{
toolbox.hide();
collapser.addClass( 'cke_toolbox_collapser_min' );
collapser.setAttribute( 'title', editor.lang.toolbarExpand );
}
else
{
toolbox.show();
collapser.removeClass( 'cke_toolbox_collapser_min' );
collapser.setAttribute( 'title', editor.lang.toolbarCollapse );
}
// Update collapser symbol.
collapser.getFirst().setText( collapsed ?
'\u25B2' : // BLACK UP-POINTING TRIANGLE
'\u25C0' ); // BLACK LEFT-POINTING TRIANGLE
var dy = toolboxContainer.$.offsetHeight - previousHeight;
contents.setStyle( 'height', ( contentHeight - dy ) + 'px' );
editor.fire( 'resize' );
},
modes : { wysiwyg : 1, source : 1 }
} );
output.push( '<a title="' + ( expanded ? editor.lang.toolbarCollapse : editor.lang.toolbarExpand )
+ '" id="' + collapserId + '" tabIndex="-1" class="cke_toolbox_collapser' );
if ( !expanded )
output.push( ' cke_toolbox_collapser_min' );
output.push( '" onclick="CKEDITOR.tools.callFunction(' + collapserFn + ')">',
'<span>▲</span>', // BLACK UP-POINTING TRIANGLE
'</a>' );
}
event.data.html += output.join( '' );
}
});
editor.on( 'destroy', function()
{
var toolbars, index = 0, i,
items, instance;
toolbars = this.toolbox.toolbars;
for ( ; index < toolbars.length; index++ )
{
items = toolbars[ index ].items;
for ( i = 0; i < items.length; i++ )
{
instance = items[ i ];
if ( instance.clickFn ) CKEDITOR.tools.removeFunction( instance.clickFn );
if ( instance.keyDownFn ) CKEDITOR.tools.removeFunction( instance.keyDownFn );
}
}
});
editor.addCommand( 'toolbarFocus', commands.toolbarFocus );
editor.ui.add( '-', CKEDITOR.UI_SEPARATOR, {} );
editor.ui.addHandler( CKEDITOR.UI_SEPARATOR,
{
create: function()
{
return {
render : function( editor, output )
{
output.push( '<span class="cke_separator" role="separator"></span>' );
return {};
}
};
}
});
}
});
})();
CKEDITOR.UI_SEPARATOR = 'separator';
/**
* The "theme space" to which rendering the toolbar. For the default theme,
* the recommended options are "top" and "bottom".
* @type String
* @default 'top'
* @see CKEDITOR.config.theme
* @example
* config.toolbarLocation = 'bottom';
*/
CKEDITOR.config.toolbarLocation = 'top';
/**
* The toolbar definition. It is an array of toolbars (strips),
* each one being also an array, containing a list of UI items.
* Note that this setting is composed by "toolbar_" added by the toolbar name,
* which in this case is called "Basic". This second part of the setting name
* can be anything. You must use this name in the
* {@link CKEDITOR.config.toolbar} setting, so you instruct the editor which
* toolbar_(name) setting to you.
* @type Array
* @example
* // Defines a toolbar with only one strip containing the "Source" button, a
* // separator and the "Bold" and "Italic" buttons.
* <b>config.toolbar_Basic =
* [
* [ 'Source', '-', 'Bold', 'Italic' ]
* ]</b>;
* config.toolbar = 'Basic';
*/
CKEDITOR.config.toolbar_Basic =
[
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
];
/**
* This is the default toolbar definition used by the editor. It contains all
* editor features.
* @type Array
* @default (see example)
* @example
* // This is actually the default value.
* config.toolbar_Full =
* [
* { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
* { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
* { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
* { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
* '/',
* { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
* { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
* { name: 'links', items : [ 'Link','Unlink','Anchor' ] },
* { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },
* '/',
* { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
* { name: 'colors', items : [ 'TextColor','BGColor' ] },
* { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
* ];
*/
CKEDITOR.config.toolbar_Full =
[
{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
{ name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
];
/**
* The toolbox (alias toolbar) definition. It is a toolbar name or an array of
* toolbars (strips), each one being also an array, containing a list of UI items.
* @type Array|String
* @default 'Full'
* @example
* // Defines a toolbar with only one strip containing the "Source" button, a
* // separator and the "Bold" and "Italic" buttons.
* config.toolbar =
* [
* [ 'Source', '-', 'Bold', 'Italic' ]
* ];
* @example
* // Load toolbar_Name where Name = Basic.
* config.toolbar = 'Basic';
*/
CKEDITOR.config.toolbar = 'Full';
/**
* Whether the toolbar can be collapsed by the user. If disabled, the collapser
* button will not be displayed.
* @type Boolean
* @default true
* @example
* config.toolbarCanCollapse = false;
*/
CKEDITOR.config.toolbarCanCollapse = true;
/**
* Whether the toolbar must start expanded when the editor is loaded.
* @name CKEDITOR.config.toolbarStartupExpanded
* @type Boolean
* @default true
* @example
* config.toolbarStartupExpanded = false;
*/
/**
* When enabled, makes the arrow keys navigation cycle within the current
* toolbar group. Otherwise the arrows will move trought all items available in
* the toolbar. The TAB key will still be used to quickly jump among the
* toolbar groups.
* @name CKEDITOR.config.toolbarGroupCycling
* @since 3.6
* @type Boolean
* @default true
* @example
* config.toolbarGroupCycling = false;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/toolbar/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'panel',
{
beforeInit : function( editor )
{
editor.ui.addHandler( CKEDITOR.UI_PANEL, CKEDITOR.ui.panel.handler );
}
});
/**
* Panel UI element.
* @constant
* @example
*/
CKEDITOR.UI_PANEL = 'panel';
CKEDITOR.ui.panel = function( document, definition )
{
// Copy all definition properties to this object.
if ( definition )
CKEDITOR.tools.extend( this, definition );
// Set defaults.
CKEDITOR.tools.extend( this,
{
className : '',
css : []
});
this.id = CKEDITOR.tools.getNextId();
this.document = document;
this._ =
{
blocks : {}
};
};
/**
* Transforms a rich combo definition in a {@link CKEDITOR.ui.richCombo}
* instance.
* @type Object
* @example
*/
CKEDITOR.ui.panel.handler =
{
create : function( definition )
{
return new CKEDITOR.ui.panel( definition );
}
};
CKEDITOR.ui.panel.prototype =
{
renderHtml : function( editor )
{
var output = [];
this.render( editor, output );
return output.join( '' );
},
/**
* Renders the combo.
* @param {CKEDITOR.editor} editor The editor instance which this button is
* to be used by.
* @param {Array} output The output array to which append the HTML relative
* to this button.
* @example
*/
render : function( editor, output )
{
var id = this.id;
output.push(
'<div class="', editor.skinClass ,'"' +
' lang="', editor.langCode, '"' +
' role="presentation"' +
// iframe loading need sometime, keep the panel hidden(#4186).
' style="display:none;z-index:' + ( editor.config.baseFloatZIndex + 1 ) + '">' +
'<div' +
' id=', id,
' dir=', editor.lang.dir,
' role="presentation"' +
' class="cke_panel cke_', editor.lang.dir );
if ( this.className )
output.push( ' ', this.className );
output.push(
'">' );
if ( this.forceIFrame || this.css.length )
{
output.push(
'<iframe id="', id, '_frame"' +
' frameborder="0"' +
' role="application" src="javascript:void(' );
output.push(
// Support for custom document.domain in IE.
CKEDITOR.env.isCustomDomain() ?
'(function(){' +
'document.open();' +
'document.domain=\'' + document.domain + '\';' +
'document.close();' +
'})()'
:
'0' );
output.push(
')"></iframe>' );
}
output.push(
'</div>' +
'</div>' );
return id;
},
getHolderElement : function()
{
var holder = this._.holder;
if ( !holder )
{
if ( this.forceIFrame || this.css.length )
{
var iframe = this.document.getById( this.id + '_frame' ),
parentDiv = iframe.getParent(),
dir = parentDiv.getAttribute( 'dir' ),
className = parentDiv.getParent().getAttribute( 'class' ),
langCode = parentDiv.getParent().getAttribute( 'lang' ),
doc = iframe.getFrameDocument();
// Make it scrollable on iOS. (#8308)
CKEDITOR.env.iOS && parentDiv.setStyles(
{
'overflow' : 'scroll',
'-webkit-overflow-scrolling' : 'touch'
});
var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev )
{
this.isLoaded = true;
if ( this.onLoad )
this.onLoad();
}, this ) );
var data =
'<!DOCTYPE html>' +
'<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' +
'<head>' +
'<style>.' + className + '_container{visibility:hidden}</style>' +
'</head>' +
'<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' +
' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"></body>' +
// It looks strange, but for FF2, the styles must go
// after <body>, so it (body) becames immediatelly
// available. (#3031)
CKEDITOR.tools.buildStyleHtml( this.css ) +
'<\/html>';
doc.write( data );
var win = doc.getWindow();
// Register the CKEDITOR global.
win.$.CKEDITOR = CKEDITOR;
// Arrow keys for scrolling is only preventable with 'keypress' event in Opera (#4534).
doc.on( 'key' + ( CKEDITOR.env.opera? 'press':'down' ), function( evt )
{
var keystroke = evt.data.getKeystroke(),
dir = this.document.getById( this.id ).getAttribute( 'dir' );
// Delegate key processing to block.
if ( this._.onKeyDown && this._.onKeyDown( keystroke ) === false )
{
evt.data.preventDefault();
return;
}
// ESC/ARROW-LEFT(ltr) OR ARROW-RIGHT(rtl)
if ( keystroke == 27 || keystroke == ( dir == 'rtl' ? 39 : 37 ) )
{
if ( this.onEscape && this.onEscape( keystroke ) === false )
evt.data.preventDefault();
}
},
this );
holder = doc.getBody();
holder.unselectable();
CKEDITOR.env.air && CKEDITOR.tools.callFunction( onLoad );
}
else
holder = this.document.getById( this.id );
this._.holder = holder;
}
return holder;
},
addBlock : function( name, block )
{
block = this._.blocks[ name ] = block instanceof CKEDITOR.ui.panel.block ? block
: new CKEDITOR.ui.panel.block( this.getHolderElement(), block );
if ( !this._.currentBlock )
this.showBlock( name );
return block;
},
getBlock : function( name )
{
return this._.blocks[ name ];
},
showBlock : function( name )
{
var blocks = this._.blocks,
block = blocks[ name ],
current = this._.currentBlock,
holder = this.forceIFrame ?
this.document.getById( this.id + '_frame' )
: this._.holder;
// Disable context menu for block panel.
holder.getParent().getParent().disableContextMenu();
if ( current )
{
// Clean up the current block's effects on holder.
holder.removeAttributes( current.attributes );
current.hide();
}
this._.currentBlock = block;
holder.setAttributes( block.attributes );
CKEDITOR.fire( 'ariaWidget', holder );
// Reset the focus index, so it will always go into the first one.
block._.focusIndex = -1;
this._.onKeyDown = block.onKeyDown && CKEDITOR.tools.bind( block.onKeyDown, block );
block.show();
return block;
},
destroy : function()
{
this.element && this.element.remove();
}
};
CKEDITOR.ui.panel.block = CKEDITOR.tools.createClass(
{
$ : function( blockHolder, blockDefinition )
{
this.element = blockHolder.append(
blockHolder.getDocument().createElement( 'div',
{
attributes :
{
'tabIndex' : -1,
'class' : 'cke_panel_block',
'role' : 'presentation'
},
styles :
{
display : 'none'
}
}) );
// Copy all definition properties to this object.
if ( blockDefinition )
CKEDITOR.tools.extend( this, blockDefinition );
if ( !this.attributes.title )
this.attributes.title = this.attributes[ 'aria-label' ];
this.keys = {};
this._.focusIndex = -1;
// Disable context menu for panels.
this.element.disableContextMenu();
},
_ : {
/**
* Mark the item specified by the index as current activated.
*/
markItem: function( index )
{
if ( index == -1 )
return;
var links = this.element.getElementsByTag( 'a' );
var item = links.getItem( this._.focusIndex = index );
// Safari need focus on the iframe window first(#3389), but we need
// lock the blur to avoid hiding the panel.
if ( CKEDITOR.env.webkit || CKEDITOR.env.opera )
item.getDocument().getWindow().focus();
item.focus();
this.onMark && this.onMark( item );
}
},
proto :
{
show : function()
{
this.element.setStyle( 'display', '' );
},
hide : function()
{
if ( !this.onHide || this.onHide.call( this ) !== true )
this.element.setStyle( 'display', 'none' );
},
onKeyDown : function( keystroke )
{
var keyAction = this.keys[ keystroke ];
switch ( keyAction )
{
// Move forward.
case 'next' :
var index = this._.focusIndex,
links = this.element.getElementsByTag( 'a' ),
link;
while ( ( link = links.getItem( ++index ) ) )
{
// Move the focus only if the element is marked with
// the _cke_focus and it it's visible (check if it has
// width).
if ( link.getAttribute( '_cke_focus' ) && link.$.offsetWidth )
{
this._.focusIndex = index;
link.focus();
break;
}
}
return false;
// Move backward.
case 'prev' :
index = this._.focusIndex;
links = this.element.getElementsByTag( 'a' );
while ( index > 0 && ( link = links.getItem( --index ) ) )
{
// Move the focus only if the element is marked with
// the _cke_focus and it it's visible (check if it has
// width).
if ( link.getAttribute( '_cke_focus' ) && link.$.offsetWidth )
{
this._.focusIndex = index;
link.focus();
break;
}
}
return false;
case 'click' :
case 'mouseup' :
index = this._.focusIndex;
link = index >= 0 && this.element.getElementsByTag( 'a' ).getItem( index );
if ( link )
link.$[ keyAction ] ? link.$[ keyAction ]() : link.$[ 'on' + keyAction ]();
return false;
}
return true;
}
}
});
/**
* Fired when a panel is added to the document
* @name CKEDITOR#ariaWidget
* @event
* @param {Object} holder The element wrapping the panel
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/panel/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "show border" plugin. The command display visible outline
* border line around all table elements if table doesn't have a none-zero 'border' attribute specified.
*/
(function()
{
var showBorderClassName = 'cke_show_border',
cssStyleText,
cssTemplate =
// TODO: For IE6, we don't have child selector support,
// where nested table cells could be incorrect.
( CKEDITOR.env.ie6Compat ?
[
'.%1 table.%2,',
'.%1 table.%2 td, .%1 table.%2 th',
'{',
'border : #d3d3d3 1px dotted',
'}'
] :
[
'.%1 table.%2,',
'.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,',
'.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,',
'.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,',
'.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th',
'{',
'border : #d3d3d3 1px dotted',
'}'
] ).join( '' );
cssStyleText = cssTemplate.replace( /%2/g, showBorderClassName ).replace( /%1/g, 'cke_show_borders ' );
var commandDefinition =
{
preserveState : true,
editorFocus : false,
readOnly: 1,
exec : function ( editor )
{
this.toggleState();
this.refresh( editor );
},
refresh : function( editor )
{
if ( editor.document )
{
var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';
editor.document.getBody()[ funcName ]( 'cke_show_borders' );
}
}
};
CKEDITOR.plugins.add( 'showborders',
{
requires : [ 'wysiwygarea' ],
modes : { 'wysiwyg' : 1 },
init : function( editor )
{
var command = editor.addCommand( 'showborders', commandDefinition );
command.canUndo = false;
if ( editor.config.startupShowBorders !== false )
command.setState( CKEDITOR.TRISTATE_ON );
editor.addCss( cssStyleText );
// Refresh the command on setData.
editor.on( 'mode', function()
{
if ( command.state != CKEDITOR.TRISTATE_DISABLED )
command.refresh( editor );
}, null, null, 100 );
// Refresh the command on wysiwyg frame reloads.
editor.on( 'contentDom', function()
{
if ( command.state != CKEDITOR.TRISTATE_DISABLED )
command.refresh( editor );
});
editor.on( 'removeFormatCleanup', function( evt )
{
var element = evt.data;
if ( editor.getCommand( 'showborders' ).state == CKEDITOR.TRISTATE_ON &&
element.is( 'table' ) && ( !element.hasAttribute( 'border' ) || parseInt( element.getAttribute( 'border' ), 10 ) <= 0 ) )
element.addClass( showBorderClassName );
});
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
elements :
{
'table' : function( element )
{
var attributes = element.attributes,
cssClass = attributes[ 'class' ],
border = parseInt( attributes.border, 10 );
if ( ( !border || border <= 0 ) && ( !cssClass || cssClass.indexOf( showBorderClassName ) == -1 ) )
attributes[ 'class' ] = ( cssClass || '' ) + ' ' + showBorderClassName;
}
}
} );
}
if ( htmlFilter )
{
htmlFilter.addRules(
{
elements :
{
'table' : function( table )
{
var attributes = table.attributes,
cssClass = attributes[ 'class' ];
cssClass && ( attributes[ 'class' ] =
cssClass.replace( showBorderClassName, '' )
.replace( /\s{2}/, ' ' )
.replace( /^\s+|\s+$/, '' ) );
}
}
} );
}
}
});
// Table dialog must be aware of it.
CKEDITOR.on( 'dialogDefinition', function( ev )
{
var dialogName = ev.data.name;
if ( dialogName == 'table' || dialogName == 'tableProperties' )
{
var dialogDefinition = ev.data.definition,
infoTab = dialogDefinition.getContents( 'info' ),
borderField = infoTab.get( 'txtBorder' ),
originalCommit = borderField.commit;
borderField.commit = CKEDITOR.tools.override( originalCommit, function( org )
{
return function( data, selectedTable )
{
org.apply( this, arguments );
var value = parseInt( this.getValue(), 10 );
selectedTable[ ( !value || value <= 0 ) ? 'addClass' : 'removeClass' ]( showBorderClassName );
};
} );
var advTab = dialogDefinition.getContents( 'advanced' ),
classField = advTab && advTab.get( 'advCSSClasses' );
if ( classField )
{
classField.setup = CKEDITOR.tools.override( classField.setup, function( originalSetup )
{
return function()
{
originalSetup.apply( this, arguments );
this.setValue( this.getValue().replace( /cke_show_border/, '' ) );
};
});
classField.commit = CKEDITOR.tools.override( classField.commit, function( originalCommit )
{
return function( data, element )
{
originalCommit.apply( this, arguments );
if ( !parseInt( element.getAttribute( 'border' ), 10 ) )
element.addClass( 'cke_show_border' );
};
});
}
}
});
} )();
/**
* Whether to automatically enable the "show borders" command when the editor loads.
* (ShowBorders in FCKeditor)
* @name CKEDITOR.config.startupShowBorders
* @type Boolean
* @default true
* @example
* config.startupShowBorders = false;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/showborders/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Register a plugin named "sample".
CKEDITOR.plugins.add( 'keystrokes',
{
beforeInit : function( editor )
{
/**
* Controls keystrokes typing in this editor instance.
* @name CKEDITOR.editor.prototype.keystrokeHandler
* @type CKEDITOR.keystrokeHandler
* @example
*/
editor.keystrokeHandler = new CKEDITOR.keystrokeHandler( editor );
editor.specialKeys = {};
},
init : function( editor )
{
var keystrokesConfig = editor.config.keystrokes,
blockedConfig = editor.config.blockedKeystrokes;
var keystrokes = editor.keystrokeHandler.keystrokes,
blockedKeystrokes = editor.keystrokeHandler.blockedKeystrokes;
for ( var i = 0 ; i < keystrokesConfig.length ; i++ )
keystrokes[ keystrokesConfig[i][0] ] = keystrokesConfig[i][1];
for ( i = 0 ; i < blockedConfig.length ; i++ )
blockedKeystrokes[ blockedConfig[i] ] = 1;
}
});
/**
* Controls keystrokes typing in an editor instance.
* @constructor
* @param {CKEDITOR.editor} editor The editor instance.
* @example
*/
CKEDITOR.keystrokeHandler = function( editor )
{
if ( editor.keystrokeHandler )
return editor.keystrokeHandler;
/**
* List of keystrokes associated to commands. Each entry points to the
* command to be executed.
* @type Object
* @example
*/
this.keystrokes = {};
/**
* List of keystrokes that should be blocked if not defined at
* {@link keystrokes}. In this way it is possible to block the default
* browser behavior for those keystrokes.
* @type Object
* @example
*/
this.blockedKeystrokes = {};
this._ =
{
editor : editor
};
return this;
};
(function()
{
var cancel;
var onKeyDown = function( event )
{
// The DOM event object is passed by the "data" property.
event = event.data;
var keyCombination = event.getKeystroke();
var command = this.keystrokes[ keyCombination ];
var editor = this._.editor;
cancel = ( editor.fire( 'key', { keyCode : keyCombination } ) === true );
if ( !cancel )
{
if ( command )
{
var data = { from : 'keystrokeHandler' };
cancel = ( editor.execCommand( command, data ) !== false );
}
if ( !cancel )
{
var handler = editor.specialKeys[ keyCombination ];
cancel = ( handler && handler( editor ) === true );
if ( !cancel )
cancel = !!this.blockedKeystrokes[ keyCombination ];
}
}
if ( cancel )
event.preventDefault( true );
return !cancel;
};
var onKeyPress = function( event )
{
if ( cancel )
{
cancel = false;
event.data.preventDefault( true );
}
};
CKEDITOR.keystrokeHandler.prototype =
{
/**
* Attaches this keystroke handle to a DOM object. Keystrokes typed
** over this object will get handled by this keystrokeHandler.
* @param {CKEDITOR.dom.domObject} domObject The DOM object to attach
* to.
* @example
*/
attach : function( domObject )
{
// For most browsers, it is enough to listen to the keydown event
// only.
domObject.on( 'keydown', onKeyDown, this );
// Some browsers instead, don't cancel key events in the keydown, but in the
// keypress. So we must do a longer trip in those cases.
if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) )
domObject.on( 'keypress', onKeyPress, this );
}
};
})();
/**
* A list of keystrokes to be blocked if not defined in the {@link CKEDITOR.config.keystrokes}
* setting. In this way it is possible to block the default browser behavior
* for those keystrokes.
* @type Array
* @default (see example)
* @example
* // This is actually the default value.
* config.blockedKeystrokes =
* [
* CKEDITOR.CTRL + 66 /*B*/,
* CKEDITOR.CTRL + 73 /*I*/,
* CKEDITOR.CTRL + 85 /*U*/
* ];
*/
CKEDITOR.config.blockedKeystrokes =
[
CKEDITOR.CTRL + 66 /*B*/,
CKEDITOR.CTRL + 73 /*I*/,
CKEDITOR.CTRL + 85 /*U*/
];
/**
* A list associating keystrokes to editor commands. Each element in the list
* is an array where the first item is the keystroke, and the second is the
* name of the command to be executed.
* @type Array
* @default (see example)
* @example
* // This is actually the default value.
* config.keystrokes =
* [
* [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ],
* [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ],
*
* [ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ],
*
* [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ],
* [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ],
* [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ],
*
* [ CKEDITOR.CTRL + 76 /*L*/, 'link' ],
*
* [ CKEDITOR.CTRL + 66 /*B*/, 'bold' ],
* [ CKEDITOR.CTRL + 73 /*I*/, 'italic' ],
* [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ],
*
* [ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ]
* ];
*/
CKEDITOR.config.keystrokes =
[
[ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ],
[ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ],
[ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ],
[ CKEDITOR.CTRL + CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ],
[ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ],
[ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ],
[ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ],
[ CKEDITOR.CTRL + 76 /*L*/, 'link' ],
[ CKEDITOR.CTRL + 66 /*B*/, 'bold' ],
[ CKEDITOR.CTRL + 73 /*I*/, 'italic' ],
[ CKEDITOR.CTRL + 85 /*U*/, 'underline' ],
[ CKEDITOR.ALT + ( CKEDITOR.env.ie || CKEDITOR.env.webkit ? 189 : 109 ) /*-*/, 'toolbarCollapse' ],
[ CKEDITOR.ALT + 48 /*0*/, 'a11yHelp' ]
];
/**
* Fired when any keyboard key (or combination) is pressed into the editing area.
* @name CKEDITOR.editor#key
* @event
* @param {Number} data.keyCode A number representing the key code (or
* combination). It is the sum of the current key code and the
* {@link CKEDITOR.CTRL}, {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT}
* constants, if those are pressed.
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/keystrokes/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var meta =
{
editorFocus : false,
modes : { wysiwyg:1, source:1 }
};
var blurCommand =
{
exec : function( editor )
{
editor.container.focusNext( true, editor.tabIndex );
}
};
var blurBackCommand =
{
exec : function( editor )
{
editor.container.focusPrevious( true, editor.tabIndex );
}
};
function selectNextCellCommand( backward )
{
return {
editorFocus : false,
canUndo : false,
modes : { wysiwyg : 1 },
exec : function( editor )
{
if ( editor.focusManager.hasFocus )
{
var sel = editor.getSelection(),
ancestor = sel.getCommonAncestor(),
cell;
if ( ( cell = ( ancestor.getAscendant( 'td', true ) || ancestor.getAscendant( 'th', true ) ) ) )
{
var resultRange = new CKEDITOR.dom.range( editor.document ),
next = CKEDITOR.tools.tryThese( function()
{
var row = cell.getParent(),
next = row.$.cells[ cell.$.cellIndex + ( backward ? - 1 : 1 ) ];
// Invalid any empty value.
next.parentNode.parentNode;
return next;
},
function()
{
var row = cell.getParent(),
table = row.getAscendant( 'table' ),
nextRow = table.$.rows[ row.$.rowIndex + ( backward ? - 1 : 1 ) ];
return nextRow.cells[ backward? nextRow.cells.length -1 : 0 ];
});
// Clone one more row at the end of table and select the first newly established cell.
if ( ! ( next || backward ) )
{
var table = cell.getAscendant( 'table' ).$,
cells = cell.getParent().$.cells;
var newRow = new CKEDITOR.dom.element( table.insertRow( -1 ), editor.document );
for ( var i = 0, count = cells.length ; i < count; i++ )
{
var newCell = newRow.append( new CKEDITOR.dom.element(
cells[ i ], editor.document ).clone( false, false ) );
!CKEDITOR.env.ie && newCell.appendBogus();
}
resultRange.moveToElementEditStart( newRow );
}
else if ( next )
{
next = new CKEDITOR.dom.element( next );
resultRange.moveToElementEditStart( next );
// Avoid selecting empty block makes the cursor blind.
if ( !( resultRange.checkStartOfBlock() && resultRange.checkEndOfBlock() ) )
resultRange.selectNodeContents( next );
}
else
return true;
resultRange.select( true );
return true;
}
}
return false;
}
};
}
CKEDITOR.plugins.add( 'tab',
{
requires : [ 'keystrokes' ],
init : function( editor )
{
var tabTools = editor.config.enableTabKeyTools !== false,
tabSpaces = editor.config.tabSpaces || 0,
tabText = '';
while ( tabSpaces-- )
tabText += '\xa0';
if ( tabText )
{
editor.on( 'key', function( ev )
{
if ( ev.data.keyCode == 9 ) // TAB
{
editor.insertHtml( tabText );
ev.cancel();
}
});
}
if ( tabTools )
{
editor.on( 'key', function( ev )
{
if ( ev.data.keyCode == 9 && editor.execCommand( 'selectNextCell' ) || // TAB
ev.data.keyCode == ( CKEDITOR.SHIFT + 9 ) && editor.execCommand( 'selectPreviousCell' ) ) // SHIFT+TAB
ev.cancel();
});
}
if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko )
{
editor.on( 'key', function( ev )
{
var keyCode = ev.data.keyCode;
if ( keyCode == 9 && !tabText ) // TAB
{
ev.cancel();
editor.execCommand( 'blur' );
}
if ( keyCode == ( CKEDITOR.SHIFT + 9 ) ) // SHIFT+TAB
{
editor.execCommand( 'blurBack' );
ev.cancel();
}
});
}
editor.addCommand( 'blur', CKEDITOR.tools.extend( blurCommand, meta ) );
editor.addCommand( 'blurBack', CKEDITOR.tools.extend( blurBackCommand, meta ) );
editor.addCommand( 'selectNextCell', selectNextCellCommand() );
editor.addCommand( 'selectPreviousCell', selectNextCellCommand( true ) );
}
});
})();
/**
* Moves the UI focus to the element following this element in the tabindex
* order.
* @example
* var element = CKEDITOR.document.getById( 'example' );
* element.focusNext();
*/
CKEDITOR.dom.element.prototype.focusNext = function( ignoreChildren, indexToUse )
{
var $ = this.$,
curTabIndex = ( indexToUse === undefined ? this.getTabIndex() : indexToUse ),
passedCurrent, enteredCurrent,
elected, electedTabIndex,
element, elementTabIndex;
if ( curTabIndex <= 0 )
{
// If this element has tabindex <= 0 then we must simply look for any
// element following it containing tabindex=0.
element = this.getNextSourceNode( ignoreChildren, CKEDITOR.NODE_ELEMENT );
while ( element )
{
if ( element.isVisible() && element.getTabIndex() === 0 )
{
elected = element;
break;
}
element = element.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT );
}
}
else
{
// If this element has tabindex > 0 then we must look for:
// 1. An element following this element with the same tabindex.
// 2. The first element in source other with the lowest tabindex
// that is higher than this element tabindex.
// 3. The first element with tabindex=0.
element = this.getDocument().getBody().getFirst();
while ( ( element = element.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT ) ) )
{
if ( !passedCurrent )
{
if ( !enteredCurrent && element.equals( this ) )
{
enteredCurrent = true;
// Ignore this element, if required.
if ( ignoreChildren )
{
if ( !( element = element.getNextSourceNode( true, CKEDITOR.NODE_ELEMENT ) ) )
break;
passedCurrent = 1;
}
}
else if ( enteredCurrent && !this.contains( element ) )
passedCurrent = 1;
}
if ( !element.isVisible() || ( elementTabIndex = element.getTabIndex() ) < 0 )
continue;
if ( passedCurrent && elementTabIndex == curTabIndex )
{
elected = element;
break;
}
if ( elementTabIndex > curTabIndex && ( !elected || !electedTabIndex || elementTabIndex < electedTabIndex ) )
{
elected = element;
electedTabIndex = elementTabIndex;
}
else if ( !elected && elementTabIndex === 0 )
{
elected = element;
electedTabIndex = elementTabIndex;
}
}
}
if ( elected )
elected.focus();
};
/**
* Moves the UI focus to the element before this element in the tabindex order.
* @example
* var element = CKEDITOR.document.getById( 'example' );
* element.focusPrevious();
*/
CKEDITOR.dom.element.prototype.focusPrevious = function( ignoreChildren, indexToUse )
{
var $ = this.$,
curTabIndex = ( indexToUse === undefined ? this.getTabIndex() : indexToUse ),
passedCurrent, enteredCurrent,
elected,
electedTabIndex = 0,
elementTabIndex;
var element = this.getDocument().getBody().getLast();
while ( ( element = element.getPreviousSourceNode( false, CKEDITOR.NODE_ELEMENT ) ) )
{
if ( !passedCurrent )
{
if ( !enteredCurrent && element.equals( this ) )
{
enteredCurrent = true;
// Ignore this element, if required.
if ( ignoreChildren )
{
if ( !( element = element.getPreviousSourceNode( true, CKEDITOR.NODE_ELEMENT ) ) )
break;
passedCurrent = 1;
}
}
else if ( enteredCurrent && !this.contains( element ) )
passedCurrent = 1;
}
if ( !element.isVisible() || ( elementTabIndex = element.getTabIndex() ) < 0 )
continue;
if ( curTabIndex <= 0 )
{
// If this element has tabindex <= 0 then we must look for:
// 1. An element before this one containing tabindex=0.
// 2. The last element with the highest tabindex.
if ( passedCurrent && elementTabIndex === 0 )
{
elected = element;
break;
}
if ( elementTabIndex > electedTabIndex )
{
elected = element;
electedTabIndex = elementTabIndex;
}
}
else
{
// If this element has tabindex > 0 we must look for:
// 1. An element preceeding this one, with the same tabindex.
// 2. The last element in source other with the highest tabindex
// that is lower than this element tabindex.
if ( passedCurrent && elementTabIndex == curTabIndex )
{
elected = element;
break;
}
if ( elementTabIndex < curTabIndex && ( !elected || elementTabIndex > electedTabIndex ) )
{
elected = element;
electedTabIndex = elementTabIndex;
}
}
}
if ( elected )
elected.focus();
};
/**
* Intructs the editor to add a number of spaces (&nbsp;) to the text when
* hitting the TAB key. If set to zero, the TAB key will be used to move the
* cursor focus to the next element in the page, out of the editor focus.
* @name CKEDITOR.config.tabSpaces
* @type Number
* @default 0
* @example
* config.tabSpaces = 4;
*/
/**
* Allow context-sensitive tab key behaviors, including the following scenarios:
* <h5>When selection is anchored inside <b>table cells</b>:</h5>
* <ul>
* <li>If TAB is pressed, select the contents of the "next" cell. If in the last cell in the table, add a new row to it and focus its first cell.</li>
* <li>If SHIFT+TAB is pressed, select the contents of the "previous" cell. Do nothing when it's in the first cell.</li>
* </ul>
* @name CKEDITOR.config.enableTabKeyTools
* @type Boolean
* @default true
* @example
* config.enableTabKeyTools = false;
*/
// If the TAB key is not supposed to be enabled for navigation, the following
// settings could be used alternatively:
// config.keystrokes.push(
// [ CKEDITOR.ALT + 38 /*Arrow Up*/, 'selectPreviousCell' ],
// [ CKEDITOR.ALT + 40 /*Arrow Down*/, 'selectNextCell' ]
// ); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/tab/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.ajax} object, which holds ajax methods for
* data loading.
*/
(function()
{
CKEDITOR.plugins.add( 'ajax',
{
requires : [ 'xml' ]
});
/**
* Ajax methods for data loading.
* @namespace
* @example
*/
CKEDITOR.ajax = (function()
{
var createXMLHttpRequest = function()
{
// In IE, using the native XMLHttpRequest for local files may throw
// "Access is Denied" errors.
if ( !CKEDITOR.env.ie || location.protocol != 'file:' )
try { return new XMLHttpRequest(); } catch(e) {}
try { return new ActiveXObject( 'Msxml2.XMLHTTP' ); } catch (e) {}
try { return new ActiveXObject( 'Microsoft.XMLHTTP' ); } catch (e) {}
return null;
};
var checkStatus = function( xhr )
{
// HTTP Status Codes:
// 2xx : Success
// 304 : Not Modified
// 0 : Returned when running locally (file://)
// 1223 : IE may change 204 to 1223 (see http://dev.jquery.com/ticket/1450)
return ( xhr.readyState == 4 &&
( ( xhr.status >= 200 && xhr.status < 300 ) ||
xhr.status == 304 ||
xhr.status === 0 ||
xhr.status == 1223 ) );
};
var getResponseText = function( xhr )
{
if ( checkStatus( xhr ) )
return xhr.responseText;
return null;
};
var getResponseXml = function( xhr )
{
if ( checkStatus( xhr ) )
{
var xml = xhr.responseXML;
return new CKEDITOR.xml( xml && xml.firstChild ? xml : xhr.responseText );
}
return null;
};
var load = function( url, callback, getResponseFn )
{
var async = !!callback;
var xhr = createXMLHttpRequest();
if ( !xhr )
return null;
xhr.open( 'GET', url, async );
if ( async )
{
// TODO: perform leak checks on this closure.
/** @ignore */
xhr.onreadystatechange = function()
{
if ( xhr.readyState == 4 )
{
callback( getResponseFn( xhr ) );
xhr = null;
}
};
}
xhr.send(null);
return async ? '' : getResponseFn( xhr );
};
return /** @lends CKEDITOR.ajax */ {
/**
* Loads data from an URL as plain text.
* @param {String} url The URL from which load data.
* @param {Function} [callback] A callback function to be called on
* data load. If not provided, the data will be loaded
* synchronously.
* @returns {String} The loaded data. For asynchronous requests, an
* empty string. For invalid requests, null.
* @example
* // Load data synchronously.
* var data = CKEDITOR.ajax.load( 'somedata.txt' );
* alert( data );
* @example
* // Load data asynchronously.
* var data = CKEDITOR.ajax.load( 'somedata.txt', function( data )
* {
* alert( data );
* } );
*/
load : function( url, callback )
{
return load( url, callback, getResponseText );
},
/**
* Loads data from an URL as XML.
* @param {String} url The URL from which load data.
* @param {Function} [callback] A callback function to be called on
* data load. If not provided, the data will be loaded
* synchronously.
* @returns {CKEDITOR.xml} An XML object holding the loaded data. For asynchronous requests, an
* empty string. For invalid requests, null.
* @example
* // Load XML synchronously.
* var xml = CKEDITOR.ajax.loadXml( 'somedata.xml' );
* alert( xml.getInnerXml( '//' ) );
* @example
* // Load XML asynchronously.
* var data = CKEDITOR.ajax.loadXml( 'somedata.xml', function( xml )
* {
* alert( xml.getInnerXml( '//' ) );
* } );
*/
loadXml : function( url, callback )
{
return load( url, callback, getResponseXml );
}
};
})();
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/ajax/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'checkspell', function( editor )
{
var number = CKEDITOR.tools.getNextNumber(),
iframeId = 'cke_frame_' + number,
textareaId = 'cke_data_' + number,
errorBoxId = 'cke_error_' + number,
interval,
protocol = document.location.protocol || 'http:',
errorMsg = editor.lang.spellCheck.notAvailable;
var pasteArea = '<textarea'+
' style="display: none"' +
' id="' + textareaId + '"' +
' rows="10"' +
' cols="40">' +
' </textarea><div' +
' id="' + errorBoxId + '"' +
' style="display:none;color:red;font-size:16px;font-weight:bold;padding-top:160px;text-align:center;z-index:11;">' +
'</div><iframe' +
' src=""' +
' style="width:100%;background-color:#f1f1e3;"' +
' frameborder="0"' +
' name="' + iframeId + '"' +
' id="' + iframeId + '"' +
' allowtransparency="1">' +
'</iframe>';
var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol +
'//loader.webspellchecker.net/sproxy_fck/sproxy.php'
+ '?plugin=fck2'
+ '&customerid=' + editor.config.wsc_customerId
+ '&cmd=script&doc=wsc&schema=22'
);
if ( editor.config.wsc_customLoaderScript )
errorMsg += '<p style="color:#000;font-size:11px;font-weight: normal;text-align:center;padding-top:10px">' +
editor.lang.spellCheck.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '</p>';
function burnSpelling( dialog, errorMsg )
{
var i = 0;
return function ()
{
if ( typeof( window.doSpell ) == 'function' )
{
//Call from window.setInteval expected at once.
if ( typeof( interval ) != 'undefined' )
window.clearInterval( interval );
initAndSpell( dialog );
}
else if ( i++ == 180 ) // Timeout: 180 * 250ms = 45s.
window._cancelOnError( errorMsg );
};
}
window._cancelOnError = function( m )
{
if ( typeof( window.WSC_Error ) == 'undefined' )
{
CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'none' );
var errorBox = CKEDITOR.document.getById( errorBoxId );
errorBox.setStyle( 'display', 'block' );
errorBox.setHtml( m || editor.lang.spellCheck.notAvailable );
}
};
function initAndSpell( dialog )
{
var LangComparer = new window._SP_FCK_LangCompare(), // Language abbr standarts comparer.
pluginPath = CKEDITOR.getUrl( editor.plugins.wsc.path + 'dialogs/' ), // Service paths corecting/preparing.
framesetPath = pluginPath + 'tmpFrameset.html';
// global var is used in FCK specific core
// change on equal var used in fckplugin.js
window.gFCKPluginName = 'wsc';
LangComparer.setDefaulLangCode( editor.config.defaultLanguage );
window.doSpell({
ctrl : textareaId,
lang : editor.config.wsc_lang || LangComparer.getSPLangCode(editor.langCode ),
intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode(editor.langCode ),
winType : iframeId, // If not defined app will run on winpopup.
// Callback binding section.
onCancel : function()
{
dialog.hide();
},
onFinish : function( dT )
{
editor.focus();
dialog.getParentEditor().setData( dT.value );
dialog.hide();
},
// Some manipulations with client static pages.
staticFrame : framesetPath,
framesetPath : framesetPath,
iframePath : pluginPath + 'ciframe.html',
// Styles defining.
schemaURI : pluginPath + 'wsc.css',
userDictionaryName: editor.config.wsc_userDictionaryName,
customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split(","),
domainName: editor.config.wsc_domainName
});
// Hide user message console (if application was loaded more then after timeout).
CKEDITOR.document.getById( errorBoxId ).setStyle( 'display', 'none' );
CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'block' );
}
return {
title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
minWidth : 485,
minHeight : 380,
buttons : [ CKEDITOR.dialog.cancelButton ],
onShow : function()
{
var contentArea = this.getContentElement( 'general', 'content' ).getElement();
contentArea.setHtml( pasteArea );
contentArea.getChild( 2 ).setStyle( 'height', this._.contentSize.height + 'px' );
if ( typeof( window.doSpell ) != 'function' )
{
// Load script.
CKEDITOR.document.getHead().append(
CKEDITOR.document.createElement( 'script',
{
attributes :
{
type : 'text/javascript',
src : wscCoreUrl
}
})
);
}
var sData = editor.getData(); // Get the data to be checked.
CKEDITOR.document.getById( textareaId ).setValue( sData );
interval = window.setInterval( burnSpelling( this, errorMsg ), 250 );
},
onHide : function()
{
window.ooo = undefined;
window.int_framsetLoaded = undefined;
window.framesetLoaded = undefined;
window.is_window_opened = false;
},
contents : [
{
id : 'general',
label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
padding : 0,
elements : [
{
type : 'html',
id : 'content',
html : ''
}
]
}
]
};
});
// Expand the spell-check frame when dialog resized. (#6829)
CKEDITOR.dialog.on( 'resize', function( evt )
{
var data = evt.data,
dialog = data.dialog;
if ( dialog._.name == 'checkspell' )
{
var content = dialog.getContentElement( 'general', 'content' ).getElement(),
iframe = content && content.getChild( 2 );
iframe && iframe.setSize( 'height', data.height );
iframe && iframe.setSize( 'width', data.width );
}
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/wsc/dialogs/wsc.js | wsc.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
function forceHtmlMode( evt ) { evt.data.mode = 'html'; }
CKEDITOR.plugins.add( 'pastefromword',
{
init : function( editor )
{
// Flag indicate this command is actually been asked instead of a generic
// pasting.
var forceFromWord = 0;
var resetFromWord = function( evt )
{
evt && evt.removeListener();
editor.removeListener( 'beforePaste', forceHtmlMode );
forceFromWord && setTimeout( function() { forceFromWord = 0; }, 0 );
};
// Features bring by this command beside the normal process:
// 1. No more bothering of user about the clean-up.
// 2. Perform the clean-up even if content is not from MS-Word.
// (e.g. from a MS-Word similar application.)
editor.addCommand( 'pastefromword',
{
canUndo : false,
exec : function()
{
// Ensure the received data format is HTML and apply content filtering. (#6718)
forceFromWord = 1;
editor.on( 'beforePaste', forceHtmlMode );
if ( editor.execCommand( 'paste', 'html' ) === false )
{
editor.on( 'dialogShow', function ( evt )
{
evt.removeListener();
evt.data.on( 'cancel', resetFromWord );
});
editor.on( 'dialogHide', function( evt )
{
evt.data.removeListener( 'cancel', resetFromWord );
} );
}
editor.on( 'afterPaste', resetFromWord );
}
});
// Register the toolbar button.
editor.ui.addButton( 'PasteFromWord',
{
label : editor.lang.pastefromword.toolbar,
command : 'pastefromword'
});
editor.on( 'pasteState', function( evt )
{
editor.getCommand( 'pastefromword' ).setState( evt.data );
});
editor.on( 'paste', function( evt )
{
var data = evt.data,
mswordHtml;
// MS-WORD format sniffing.
if ( ( mswordHtml = data[ 'html' ] )
&& ( forceFromWord || ( /(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/ ).test( mswordHtml ) ) )
{
var isLazyLoad = this.loadFilterRules( function()
{
// Event continuation with the original data.
if ( isLazyLoad )
editor.fire( 'paste', data );
else if ( !editor.config.pasteFromWordPromptCleanup
|| ( forceFromWord || confirm( editor.lang.pastefromword.confirmCleanup ) ) )
{
data[ 'html' ] = CKEDITOR.cleanWord( mswordHtml, editor );
}
});
// The cleanup rules are to be loaded, we should just cancel
// this event.
isLazyLoad && evt.cancel();
}
}, this );
},
loadFilterRules : function( callback )
{
var isLoaded = CKEDITOR.cleanWord;
if ( isLoaded )
callback();
else
{
var filterFilePath = CKEDITOR.getUrl(
CKEDITOR.config.pasteFromWordCleanupFile
|| ( this.path + 'filter/default.js' ) );
// Load with busy indicator.
CKEDITOR.scriptLoader.load( filterFilePath, callback, null, true );
}
return !isLoaded;
},
requires : [ 'clipboard' ]
});
})();
/**
* Whether to prompt the user about the clean up of content being pasted from
* MS Word.
* @name CKEDITOR.config.pasteFromWordPromptCleanup
* @since 3.1
* @type Boolean
* @default undefined
* @example
* config.pasteFromWordPromptCleanup = true;
*/
/**
* The file that provides the MS Word cleanup function for pasting operations.
* Note: This is a global configuration shared by all editor instances present
* in the page.
* @name CKEDITOR.config.pasteFromWordCleanupFile
* @since 3.1
* @type String
* @default 'default'
* @example
* // Load from 'pastefromword' plugin 'filter' sub folder (custom.js file).
* CKEDITOR.config.pasteFromWordCleanupFile = 'custom';
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/pastefromword/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var fragmentPrototype = CKEDITOR.htmlParser.fragment.prototype,
elementPrototype = CKEDITOR.htmlParser.element.prototype;
fragmentPrototype.onlyChild = elementPrototype.onlyChild = function()
{
var children = this.children,
count = children.length,
firstChild = ( count == 1 ) && children[ 0 ];
return firstChild || null;
};
elementPrototype.removeAnyChildWithName = function( tagName )
{
var children = this.children,
childs = [],
child;
for ( var i = 0; i < children.length; i++ )
{
child = children[ i ];
if ( !child.name )
continue;
if ( child.name == tagName )
{
childs.push( child );
children.splice( i--, 1 );
}
childs = childs.concat( child.removeAnyChildWithName( tagName ) );
}
return childs;
};
elementPrototype.getAncestor = function( tagNameRegex )
{
var parent = this.parent;
while ( parent && !( parent.name && parent.name.match( tagNameRegex ) ) )
parent = parent.parent;
return parent;
};
fragmentPrototype.firstChild = elementPrototype.firstChild = function( evaluator )
{
var child;
for ( var i = 0 ; i < this.children.length ; i++ )
{
child = this.children[ i ];
if ( evaluator( child ) )
return child;
else if ( child.name )
{
child = child.firstChild( evaluator );
if ( child )
return child;
}
}
return null;
};
// Adding a (set) of styles to the element's 'style' attributes.
elementPrototype.addStyle = function( name, value, isPrepend )
{
var styleText, addingStyleText = '';
// name/value pair.
if ( typeof value == 'string' )
addingStyleText += name + ':' + value + ';';
else
{
// style literal.
if ( typeof name == 'object' )
{
for ( var style in name )
{
if ( name.hasOwnProperty( style ) )
addingStyleText += style + ':' + name[ style ] + ';';
}
}
// raw style text form.
else
addingStyleText += name;
isPrepend = value;
}
if ( !this.attributes )
this.attributes = {};
styleText = this.attributes.style || '';
styleText = ( isPrepend ?
[ addingStyleText, styleText ]
: [ styleText, addingStyleText ] ).join( ';' );
this.attributes.style = styleText.replace( /^;|;(?=;)/, '' );
};
/**
* Return the DTD-valid parent tag names of the specified one.
* @param tagName
*/
CKEDITOR.dtd.parentOf = function( tagName )
{
var result = {};
for ( var tag in this )
{
if ( tag.indexOf( '$' ) == -1 && this[ tag ][ tagName ] )
result[ tag ] = 1;
}
return result;
};
// 1. move consistent list item styles up to list root.
// 2. clear out unnecessary list item numbering.
function postProcessList( list )
{
var children = list.children,
child,
attrs,
count = list.children.length,
match,
mergeStyle,
styleTypeRegexp = /list-style-type:(.*?)(?:;|$)/,
stylesFilter = CKEDITOR.plugins.pastefromword.filters.stylesFilter;
attrs = list.attributes;
if ( styleTypeRegexp.exec( attrs.style ) )
return;
for ( var i = 0; i < count; i++ )
{
child = children[ i ];
if ( child.attributes.value && Number( child.attributes.value ) == i + 1 )
delete child.attributes.value;
match = styleTypeRegexp.exec( child.attributes.style );
if ( match )
{
if ( match[ 1 ] == mergeStyle || !mergeStyle )
mergeStyle = match[ 1 ];
else
{
mergeStyle = null;
break;
}
}
}
if ( mergeStyle )
{
for ( i = 0; i < count; i++ )
{
attrs = children[ i ].attributes;
attrs.style && ( attrs.style = stylesFilter( [ [ 'list-style-type'] ] )( attrs.style ) || '' );
}
list.addStyle( 'list-style-type', mergeStyle );
}
}
var cssLengthRelativeUnit = /^([.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz){1}?/i;
var emptyMarginRegex = /^(?:\b0[^\s]*\s*){1,4}$/; // e.g. 0px 0pt 0px
var romanLiternalPattern = '^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$',
lowerRomanLiteralRegex = new RegExp( romanLiternalPattern ),
upperRomanLiteralRegex = new RegExp( romanLiternalPattern.toUpperCase() );
var orderedPatterns = { 'decimal' : /\d+/, 'lower-roman': lowerRomanLiteralRegex, 'upper-roman': upperRomanLiteralRegex, 'lower-alpha' : /^[a-z]+$/, 'upper-alpha': /^[A-Z]+$/ },
unorderedPatterns = { 'disc' : /[l\u00B7\u2002]/, 'circle' : /[\u006F\u00D8]/,'square' : /[\u006E\u25C6]/},
listMarkerPatterns = { 'ol' : orderedPatterns, 'ul' : unorderedPatterns },
romans = [ [1000, 'M'], [900, 'CM'], [500, 'D'], [400, 'CD'], [100, 'C'], [90, 'XC'], [50, 'L'], [40, 'XL'], [10, 'X'], [9, 'IX'], [5, 'V'], [4, 'IV'], [1, 'I'] ],
alpahbets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
// Convert roman numbering back to decimal.
function fromRoman( str )
{
str = str.toUpperCase();
var l = romans.length, retVal = 0;
for ( var i = 0; i < l; ++i )
{
for ( var j = romans[i], k = j[1].length; str.substr( 0, k ) == j[1]; str = str.substr( k ) )
retVal += j[ 0 ];
}
return retVal;
}
// Convert alphabet numbering back to decimal.
function fromAlphabet( str )
{
str = str.toUpperCase();
var l = alpahbets.length, retVal = 1;
for ( var x = 1; str.length > 0; x *= l )
{
retVal += alpahbets.indexOf( str.charAt( str.length - 1 ) ) * x;
str = str.substr( 0, str.length - 1 );
}
return retVal;
}
var listBaseIndent = 0,
previousListItemMargin = null,
previousListId;
var plugin = ( CKEDITOR.plugins.pastefromword =
{
utils :
{
// Create a <cke:listbullet> which indicate an list item type.
createListBulletMarker : function ( bullet, bulletText )
{
var marker = new CKEDITOR.htmlParser.element( 'cke:listbullet' );
marker.attributes = { 'cke:listsymbol' : bullet[ 0 ] };
marker.add( new CKEDITOR.htmlParser.text( bulletText ) );
return marker;
},
isListBulletIndicator : function( element )
{
var styleText = element.attributes && element.attributes.style;
if ( /mso-list\s*:\s*Ignore/i.test( styleText ) )
return true;
},
isContainingOnlySpaces : function( element )
{
var text;
return ( ( text = element.onlyChild() )
&& ( /^(:?\s| )+$/ ).test( text.value ) );
},
resolveList : function( element )
{
// <cke:listbullet> indicate a list item.
var attrs = element.attributes,
listMarker;
if ( ( listMarker = element.removeAnyChildWithName( 'cke:listbullet' ) )
&& listMarker.length
&& ( listMarker = listMarker[ 0 ] ) )
{
element.name = 'cke:li';
if ( attrs.style )
{
attrs.style = plugin.filters.stylesFilter(
[
// Text-indent is not representing list item level any more.
[ 'text-indent' ],
[ 'line-height' ],
// First attempt is to resolve indent level from on a constant margin increment.
[ ( /^margin(:?-left)?$/ ), null, function( margin )
{
// Deal with component/short-hand form.
var values = margin.split( ' ' );
margin = CKEDITOR.tools.convertToPx( values[ 3 ] || values[ 1 ] || values [ 0 ] );
// Figure out the indent unit by checking the first time of incrementation.
if ( !listBaseIndent && previousListItemMargin !== null && margin > previousListItemMargin )
listBaseIndent = margin - previousListItemMargin;
previousListItemMargin = margin;
attrs[ 'cke:indent' ] = listBaseIndent && ( Math.ceil( margin / listBaseIndent ) + 1 ) || 1;
} ],
// The best situation: "mso-list:l0 level1 lfo2" tells the belonged list root, list item indentation, etc.
[ ( /^mso-list$/ ), null, function( val )
{
val = val.split( ' ' );
var listId = Number( val[ 0 ].match( /\d+/ ) ),
indent = Number( val[ 1 ].match( /\d+/ ) );
if ( indent == 1 )
{
listId !== previousListId && ( attrs[ 'cke:reset' ] = 1 );
previousListId = listId;
}
attrs[ 'cke:indent' ] = indent;
} ]
] )( attrs.style, element ) || '';
}
// First level list item might be presented without a margin.
// In case all above doesn't apply.
if ( !attrs[ 'cke:indent' ] )
{
previousListItemMargin = 0;
attrs[ 'cke:indent' ] = 1;
}
// Inherit attributes from bullet.
CKEDITOR.tools.extend( attrs, listMarker.attributes );
return true;
}
// Current list disconnected.
else
previousListId = previousListItemMargin = listBaseIndent = null;
return false;
},
// Providing a shorthand style then retrieve one or more style component values.
getStyleComponents : ( function()
{
var calculator = CKEDITOR.dom.element.createFromHtml(
'<div style="position:absolute;left:-9999px;top:-9999px;"></div>',
CKEDITOR.document );
CKEDITOR.document.getBody().append( calculator );
return function( name, styleValue, fetchList )
{
calculator.setStyle( name, styleValue );
var styles = {},
count = fetchList.length;
for ( var i = 0; i < count; i++ )
styles[ fetchList[ i ] ] = calculator.getStyle( fetchList[ i ] );
return styles;
};
} )(),
listDtdParents : CKEDITOR.dtd.parentOf( 'ol' )
},
filters :
{
// Transform a normal list into flat list items only presentation.
// E.g. <ul><li>level1<ol><li>level2</li></ol></li> =>
// <cke:li cke:listtype="ul" cke:indent="1">level1</cke:li>
// <cke:li cke:listtype="ol" cke:indent="2">level2</cke:li>
flattenList : function( element, level )
{
level = typeof level == 'number' ? level : 1;
var attrs = element.attributes,
listStyleType;
// All list items are of the same type.
switch ( attrs.type )
{
case 'a' :
listStyleType = 'lower-alpha';
break;
case '1' :
listStyleType = 'decimal';
break;
// TODO: Support more list style type from MS-Word.
}
var children = element.children,
child;
for ( var i = 0; i < children.length; i++ )
{
child = children[ i ];
if ( child.name in CKEDITOR.dtd.$listItem )
{
var attributes = child.attributes,
listItemChildren = child.children,
count = listItemChildren.length,
last = listItemChildren[ count - 1 ];
// Move out nested list.
if ( last.name in CKEDITOR.dtd.$list )
{
element.add( last, i + 1 );
// Remove the parent list item if it's just a holder.
if ( !--listItemChildren.length )
children.splice( i--, 1 );
}
child.name = 'cke:li';
// Inherit numbering from list root on the first list item.
attrs.start && !i && ( attributes.value = attrs.start );
plugin.filters.stylesFilter(
[
[ 'tab-stops', null, function( val )
{
var margin = val.split( ' ' )[ 1 ].match( cssLengthRelativeUnit );
margin && ( previousListItemMargin = CKEDITOR.tools.convertToPx( margin[ 0 ] ) );
} ],
( level == 1 ? [ 'mso-list', null, function( val )
{
val = val.split( ' ' );
var listId = Number( val[ 0 ].match( /\d+/ ) );
listId !== previousListId && ( attributes[ 'cke:reset' ] = 1 );
previousListId = listId;
} ] : null )
] )( attributes.style );
attributes[ 'cke:indent' ] = level;
attributes[ 'cke:listtype' ] = element.name;
attributes[ 'cke:list-style-type' ] = listStyleType;
}
// Flatten sub list.
else if ( child.name in CKEDITOR.dtd.$list )
{
// Absorb sub list children.
arguments.callee.apply( this, [ child, level + 1 ] );
children = children.slice( 0, i ).concat( child.children ).concat( children.slice( i + 1 ) );
element.children = [];
for ( var j = 0, num = children.length; j < num ; j++ )
element.add( children[ j ] );
}
}
delete element.name;
// We're loosing tag name here, signalize this element as a list.
attrs[ 'cke:list' ] = 1;
},
/**
* Try to collect all list items among the children and establish one
* or more HTML list structures for them.
* @param element
*/
assembleList : function( element )
{
var children = element.children, child,
listItem, // The current processing cke:li element.
listItemAttrs,
listItemIndent, // Indent level of current list item.
lastIndent,
lastListItem, // The previous one just been added to the list.
list, // Current staging list and it's parent list if any.
openedLists = [],
previousListStyleType,
previousListType;
// Properties of the list item are to be resolved from the list bullet.
var bullet,
listType,
listStyleType,
itemNumeric;
for ( var i = 0; i < children.length; i++ )
{
child = children[ i ];
if ( 'cke:li' == child.name )
{
child.name = 'li';
listItem = child;
listItemAttrs = listItem.attributes;
bullet = listItemAttrs[ 'cke:listsymbol' ];
bullet = bullet && bullet.match( /^(?:[(]?)([^\s]+?)([.)]?)$/ );
listType = listStyleType = itemNumeric = null;
if ( listItemAttrs[ 'cke:ignored' ] )
{
children.splice( i--, 1 );
continue;
}
// This's from a new list root.
listItemAttrs[ 'cke:reset' ] && ( list = lastIndent = lastListItem = null );
// List item indent level might come from a real list indentation or
// been resolved from a pseudo list item's margin value, even get
// no indentation at all.
listItemIndent = Number( listItemAttrs[ 'cke:indent' ] );
// We're moving out of the current list, cleaning up.
if ( listItemIndent != lastIndent )
previousListType = previousListStyleType = null;
// List type and item style are already resolved.
if ( !bullet )
{
listType = listItemAttrs[ 'cke:listtype' ] || 'ol';
listStyleType = listItemAttrs[ 'cke:list-style-type' ];
}
else
{
// Probably share the same list style type with previous list item,
// give it priority to avoid ambiguous between C(Alpha) and C.(Roman).
if ( previousListType && listMarkerPatterns[ previousListType ] [ previousListStyleType ].test( bullet[ 1 ] ) )
{
listType = previousListType;
listStyleType = previousListStyleType;
}
else
{
for ( var type in listMarkerPatterns )
{
for ( var style in listMarkerPatterns[ type ] )
{
if ( listMarkerPatterns[ type ][ style ].test( bullet[ 1 ] ) )
{
// Small numbering has higher priority, when dealing with ambiguous
// between C(Alpha) and C.(Roman).
if ( type == 'ol' && ( /alpha|roman/ ).test( style ) )
{
var num = /roman/.test( style ) ? fromRoman( bullet[ 1 ] ) : fromAlphabet( bullet[ 1 ] );
if ( !itemNumeric || num < itemNumeric )
{
itemNumeric = num;
listType = type;
listStyleType = style;
}
}
else
{
listType = type;
listStyleType = style;
break;
}
}
}
}
}
// Simply use decimal/disc for the rest forms of unrepresentable
// numerals, e.g. Chinese..., but as long as there a second part
// included, it has a bigger chance of being a order list ;)
!listType && ( listType = bullet[ 2 ] ? 'ol' : 'ul' );
}
previousListType = listType;
previousListStyleType = listStyleType || ( listType == 'ol' ? 'decimal' : 'disc' );
if ( listStyleType && listStyleType != ( listType == 'ol' ? 'decimal' : 'disc' ) )
listItem.addStyle( 'list-style-type', listStyleType );
// Figure out start numbering.
if ( listType == 'ol' && bullet )
{
switch ( listStyleType )
{
case 'decimal' :
itemNumeric = Number( bullet[ 1 ] );
break;
case 'lower-roman':
case 'upper-roman':
itemNumeric = fromRoman( bullet[ 1 ] );
break;
case 'lower-alpha':
case 'upper-alpha':
itemNumeric = fromAlphabet( bullet[ 1 ] );
break;
}
// Always create the numbering, swipe out unnecessary ones later.
listItem.attributes.value = itemNumeric;
}
// Start the list construction.
if ( !list )
{
openedLists.push( list = new CKEDITOR.htmlParser.element( listType ) );
list.add( listItem );
children[ i ] = list;
}
else
{
if ( listItemIndent > lastIndent )
{
openedLists.push( list = new CKEDITOR.htmlParser.element( listType ) );
list.add( listItem );
lastListItem.add( list );
}
else if ( listItemIndent < lastIndent )
{
// There might be a negative gap between two list levels. (#4944)
var diff = lastIndent - listItemIndent,
parent;
while ( diff-- && ( parent = list.parent ) )
list = parent.parent;
list.add( listItem );
}
else
list.add( listItem );
children.splice( i--, 1 );
}
lastListItem = listItem;
lastIndent = listItemIndent;
}
else if ( list )
list = lastIndent = lastListItem = null;
}
for ( i = 0; i < openedLists.length; i++ )
postProcessList( openedLists[ i ] );
list = lastIndent = lastListItem = previousListId = previousListItemMargin = listBaseIndent = null;
},
/**
* A simple filter which always rejecting.
*/
falsyFilter : function( value )
{
return false;
},
/**
* A filter dedicated on the 'style' attribute filtering, e.g. dropping/replacing style properties.
* @param styles {Array} in form of [ styleNameRegexp, styleValueRegexp,
* newStyleValue/newStyleGenerator, newStyleName ] where only the first
* parameter is mandatory.
* @param whitelist {Boolean} Whether the {@param styles} will be considered as a white-list.
*/
stylesFilter : function( styles, whitelist )
{
return function( styleText, element )
{
var rules = [];
// 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 = name.toLowerCase();
name == 'font-family' && ( value = value.replace( /["']/g, '' ) );
var namePattern,
valuePattern,
newValue,
newName;
for ( var i = 0 ; i < styles.length; i++ )
{
if ( styles[ i ] )
{
namePattern = styles[ i ][ 0 ];
valuePattern = styles[ i ][ 1 ];
newValue = styles[ i ][ 2 ];
newName = styles[ i ][ 3 ];
if ( name.match( namePattern )
&& ( !valuePattern || value.match( valuePattern ) ) )
{
name = newName || name;
whitelist && ( newValue = newValue || value );
if ( typeof newValue == 'function' )
newValue = newValue( value, element, name );
// Return an couple indicate both name and value
// changed.
if ( newValue && newValue.push )
name = newValue[ 0 ], newValue = newValue[ 1 ];
if ( typeof newValue == 'string' )
rules.push( [ name, newValue ] );
return;
}
}
}
!whitelist && rules.push( [ name, value ] );
});
for ( var i = 0 ; i < rules.length ; i++ )
rules[ i ] = rules[ i ].join( ':' );
return rules.length ?
( rules.join( ';' ) + ';' ) : false;
};
},
/**
* Migrate the element by decorate styles on it.
* @param styleDefiniton
* @param variables
*/
elementMigrateFilter : function ( styleDefiniton, variables )
{
return function( element )
{
var styleDef =
variables ?
new CKEDITOR.style( styleDefiniton, variables )._.definition
: styleDefiniton;
element.name = styleDef.element;
CKEDITOR.tools.extend( element.attributes, CKEDITOR.tools.clone( styleDef.attributes ) );
element.addStyle( CKEDITOR.style.getStyleText( styleDef ) );
};
},
/**
* Migrate styles by creating a new nested stylish element.
* @param styleDefinition
*/
styleMigrateFilter : function( styleDefinition, variableName )
{
var elementMigrateFilter = this.elementMigrateFilter;
return function( value, element )
{
// Build an stylish element first.
var styleElement = new CKEDITOR.htmlParser.element( null ),
variables = {};
variables[ variableName ] = value;
elementMigrateFilter( styleDefinition, variables )( styleElement );
// Place the new element inside the existing span.
styleElement.children = element.children;
element.children = [ styleElement ];
};
},
/**
* A filter which remove cke-namespaced-attribute on
* all none-cke-namespaced elements.
* @param value
* @param element
*/
bogusAttrFilter : function( value, element )
{
if ( element.name.indexOf( 'cke:' ) == -1 )
return false;
},
/**
* A filter which will be used to apply inline css style according the stylesheet
* definition rules, is generated lazily when filtering.
*/
applyStyleFilter : null
},
getRules : function( editor )
{
var dtd = CKEDITOR.dtd,
blockLike = CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent ),
config = editor.config,
filters = this.filters,
falsyFilter = filters.falsyFilter,
stylesFilter = filters.stylesFilter,
elementMigrateFilter = filters.elementMigrateFilter,
styleMigrateFilter = CKEDITOR.tools.bind( this.filters.styleMigrateFilter, this.filters ),
createListBulletMarker = this.utils.createListBulletMarker,
flattenList = filters.flattenList,
assembleList = filters.assembleList,
isListBulletIndicator = this.utils.isListBulletIndicator,
containsNothingButSpaces = this.utils.isContainingOnlySpaces,
resolveListItem = this.utils.resolveList,
convertToPx = function( value )
{
value = CKEDITOR.tools.convertToPx( value );
return isNaN( value ) ? value : value + 'px';
},
getStyleComponents = this.utils.getStyleComponents,
listDtdParents = this.utils.listDtdParents,
removeFontStyles = config.pasteFromWordRemoveFontStyles !== false,
removeStyles = config.pasteFromWordRemoveStyles !== false;
return {
elementNames :
[
// Remove script, meta and link elements.
[ ( /meta|link|script/ ), '' ]
],
root : function( element )
{
element.filterChildren();
assembleList( element );
},
elements :
{
'^' : function( element )
{
// Transform CSS style declaration to inline style.
var applyStyleFilter;
if ( CKEDITOR.env.gecko && ( applyStyleFilter = filters.applyStyleFilter ) )
applyStyleFilter( element );
},
$ : function( element )
{
var tagName = element.name || '',
attrs = element.attributes;
// Convert length unit of width/height on blocks to
// a more editor-friendly way (px).
if ( tagName in blockLike
&& attrs.style )
{
attrs.style = stylesFilter(
[ [ ( /^(:?width|height)$/ ), null, convertToPx ] ] )( attrs.style ) || '';
}
// Processing headings.
if ( tagName.match( /h\d/ ) )
{
element.filterChildren();
// Is the heading actually a list item?
if ( resolveListItem( element ) )
return;
// Adapt heading styles to editor's convention.
elementMigrateFilter( config[ 'format_' + tagName ] )( element );
}
// Remove inline elements which contain only empty spaces.
else if ( tagName in dtd.$inline )
{
element.filterChildren();
if ( containsNothingButSpaces( element ) )
delete element.name;
}
// Remove element with ms-office namespace,
// with it's content preserved, e.g. 'o:p'.
else if ( tagName.indexOf( ':' ) != -1
&& tagName.indexOf( 'cke' ) == -1 )
{
element.filterChildren();
// Restore image real link from vml.
if ( tagName == 'v:imagedata' )
{
var href = element.attributes[ 'o:href' ];
if ( href )
element.attributes.src = href;
element.name = 'img';
return;
}
delete element.name;
}
// Assembling list items into a whole list.
if ( tagName in listDtdParents )
{
element.filterChildren();
assembleList( element );
}
},
// We'll drop any style sheet, but Firefox conclude
// certain styles in a single style element, which are
// required to be changed into inline ones.
'style' : function( element )
{
if ( CKEDITOR.env.gecko )
{
// Grab only the style definition section.
var styleDefSection = element.onlyChild().value.match( /\/\* Style Definitions \*\/([\s\S]*?)\/\*/ ),
styleDefText = styleDefSection && styleDefSection[ 1 ],
rules = {}; // Storing the parsed result.
if ( styleDefText )
{
styleDefText
// Remove line-breaks.
.replace(/[\n\r]/g,'')
// Extract selectors and style properties.
.replace( /(.+?)\{(.+?)\}/g,
function( rule, selectors, styleBlock )
{
selectors = selectors.split( ',' );
var length = selectors.length, selector;
for ( var i = 0; i < length; i++ )
{
// Assume MS-Word mostly generate only simple
// selector( [Type selector][Class selector]).
CKEDITOR.tools.trim( selectors[ i ] )
.replace( /^(\w+)(\.[\w-]+)?$/g,
function( match, tagName, className )
{
tagName = tagName || '*';
className = className.substring( 1, className.length );
// Reject MS-Word Normal styles.
if ( className.match( /MsoNormal/ ) )
return;
if ( !rules[ tagName ] )
rules[ tagName ] = {};
if ( className )
rules[ tagName ][ className ] = styleBlock;
else
rules[ tagName ] = styleBlock;
} );
}
});
filters.applyStyleFilter = function( element )
{
var name = rules[ '*' ] ? '*' : element.name,
className = element.attributes && element.attributes[ 'class' ],
style;
if ( name in rules )
{
style = rules[ name ];
if ( typeof style == 'object' )
style = style[ className ];
// Maintain style rules priorities.
style && element.addStyle( style, true );
}
};
}
}
return false;
},
'p' : function( element )
{
// This's a fall-back approach to recognize list item in FF3.6,
// as it's not perfect as not all list style (e.g. "heading list") is shipped
// with this pattern. (#6662)
if ( /MsoListParagraph/.exec( element.attributes[ 'class' ] ) )
{
var bulletText = element.firstChild( function( node )
{
return node.type == CKEDITOR.NODE_TEXT && !containsNothingButSpaces( node.parent );
});
var bullet = bulletText && bulletText.parent,
bulletAttrs = bullet && bullet.attributes;
bulletAttrs && !bulletAttrs.style && ( bulletAttrs.style = 'mso-list: Ignore;' );
}
element.filterChildren();
// Is the paragraph actually a list item?
if ( resolveListItem( element ) )
return;
// Adapt paragraph formatting to editor's convention
// according to enter-mode.
if ( config.enterMode == CKEDITOR.ENTER_BR )
{
// We suffer from attribute/style lost in this situation.
delete element.name;
element.add( new CKEDITOR.htmlParser.element( 'br' ) );
}
else
elementMigrateFilter( config[ 'format_' + ( config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ] )( element );
},
'div' : function( element )
{
// Aligned table with no text surrounded is represented by a wrapper div, from which
// table cells inherit as text-align styles, which is wrong.
// Instead we use a clear-float div after the table to properly achieve the same layout.
var singleChild = element.onlyChild();
if ( singleChild && singleChild.name == 'table' )
{
var attrs = element.attributes;
singleChild.attributes = CKEDITOR.tools.extend( singleChild.attributes, attrs );
attrs.style && singleChild.addStyle( attrs.style );
var clearFloatDiv = new CKEDITOR.htmlParser.element( 'div' );
clearFloatDiv.addStyle( 'clear' ,'both' );
element.add( clearFloatDiv );
delete element.name;
}
},
'td' : function ( element )
{
// 'td' in 'thead' is actually <th>.
if ( element.getAncestor( 'thead') )
element.name = 'th';
},
// MS-Word sometimes present list as a mixing of normal list
// and pseudo-list, normalize the previous ones into pseudo form.
'ol' : flattenList,
'ul' : flattenList,
'dl' : flattenList,
'font' : function( element )
{
// Drop the font tag if it comes from list bullet text.
if ( isListBulletIndicator( element.parent ) )
{
delete element.name;
return;
}
element.filterChildren();
var attrs = element.attributes,
styleText = attrs.style,
parent = element.parent;
if ( 'font' == parent.name ) // Merge nested <font> tags.
{
CKEDITOR.tools.extend( parent.attributes,
element.attributes );
styleText && parent.addStyle( styleText );
delete element.name;
}
// Convert the merged into a span with all attributes preserved.
else
{
styleText = styleText || '';
// IE's having those deprecated attributes, normalize them.
if ( attrs.color )
{
attrs.color != '#000000' && ( styleText += 'color:' + attrs.color + ';' );
delete attrs.color;
}
if ( attrs.face )
{
styleText += 'font-family:' + attrs.face + ';';
delete attrs.face;
}
// TODO: Mapping size in ranges of xx-small,
// x-small, small, medium, large, x-large, xx-large.
if ( attrs.size )
{
styleText += 'font-size:' +
( attrs.size > 3 ? 'large'
: ( attrs.size < 3 ? 'small' : 'medium' ) ) + ';';
delete attrs.size;
}
element.name = 'span';
element.addStyle( styleText );
}
},
'span' : function( element )
{
// Remove the span if it comes from list bullet text.
if ( isListBulletIndicator( element.parent ) )
return false;
element.filterChildren();
if ( containsNothingButSpaces( element ) )
{
delete element.name;
return null;
}
// List item bullet type is supposed to be indicated by
// the text of a span with style 'mso-list : Ignore' or an image.
if ( isListBulletIndicator( element ) )
{
var listSymbolNode = element.firstChild( function( node )
{
return node.value || node.name == 'img';
});
var listSymbol = listSymbolNode && ( listSymbolNode.value || 'l.' ),
listType = listSymbol && listSymbol.match( /^(?:[(]?)([^\s]+?)([.)]?)$/ );
if ( listType )
{
var marker = createListBulletMarker( listType, listSymbol );
// Some non-existed list items might be carried by an inconsequential list, indicate by "mso-hide:all/display:none",
// those are to be removed later, now mark it with "cke:ignored".
var ancestor = element.getAncestor( 'span' );
if ( ancestor && (/ mso-hide:\s*all|display:\s*none /).test( ancestor.attributes.style ) )
marker.attributes[ 'cke:ignored' ] = 1;
return marker;
}
}
// Update the src attribute of image element with href.
var children = element.children,
attrs = element.attributes,
styleText = attrs && attrs.style,
firstChild = children && children[ 0 ];
// Assume MS-Word mostly carry font related styles on <span>,
// adapting them to editor's convention.
if ( styleText )
{
attrs.style = stylesFilter(
[
// Drop 'inline-height' style which make lines overlapping.
[ 'line-height' ],
[ ( /^font-family$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'font_style' ], 'family' ) : null ] ,
[ ( /^font-size$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'fontSize_style' ], 'size' ) : null ] ,
[ ( /^color$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'colorButton_foreStyle' ], 'color' ) : null ] ,
[ ( /^background-color$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'colorButton_backStyle' ], 'color' ) : null ]
] )( styleText, element ) || '';
}
return null;
},
// Migrate basic style formats to editor configured ones.
'b' : elementMigrateFilter( config[ 'coreStyles_bold' ] ),
'i' : elementMigrateFilter( config[ 'coreStyles_italic' ] ),
'u' : elementMigrateFilter( config[ 'coreStyles_underline' ] ),
's' : elementMigrateFilter( config[ 'coreStyles_strike' ] ),
'sup' : elementMigrateFilter( config[ 'coreStyles_superscript' ] ),
'sub' : elementMigrateFilter( config[ 'coreStyles_subscript' ] ),
// Editor doesn't support anchor with content currently (#3582),
// drop such anchors with content preserved.
'a' : function( element )
{
var attrs = element.attributes;
if ( attrs && !attrs.href && attrs.name )
delete element.name;
else if ( CKEDITOR.env.webkit && attrs.href && attrs.href.match( /file:\/\/\/[\S]+#/i ) )
attrs.href = attrs.href.replace( /file:\/\/\/[^#]+/i,'' );
},
'cke:listbullet' : function( element )
{
if ( element.getAncestor( /h\d/ ) && !config.pasteFromWordNumberedHeadingToList )
delete element.name;
}
},
attributeNames :
[
// Remove onmouseover and onmouseout events (from MS Word comments effect)
[ ( /^onmouse(:?out|over)/ ), '' ],
// Onload on image element.
[ ( /^onload$/ ), '' ],
// Remove office and vml attribute from elements.
[ ( /(?:v|o):\w+/ ), '' ],
// Remove lang/language attributes.
[ ( /^lang/ ), '' ]
],
attributes :
{
'style' : stylesFilter(
removeStyles ?
// Provide a white-list of styles that we preserve, those should
// be the ones that could later be altered with editor tools.
[
// Leave list-style-type
[ ( /^list-style-type$/ ), null ],
// Preserve margin-left/right which used as default indent style in the editor.
[ ( /^margin$|^margin-(?!bottom|top)/ ), null, function( value, element, name )
{
if ( element.name in { p : 1, div : 1 } )
{
var indentStyleName = config.contentsLangDirection == 'ltr' ?
'margin-left' : 'margin-right';
// Extract component value from 'margin' shorthand.
if ( name == 'margin' )
{
value = getStyleComponents( name, value,
[ indentStyleName ] )[ indentStyleName ];
}
else if ( name != indentStyleName )
return null;
if ( value && !emptyMarginRegex.test( value ) )
return [ indentStyleName, value ];
}
return null;
} ],
// Preserve clear float style.
[ ( /^clear$/ ) ],
[ ( /^border.*|margin.*|vertical-align|float$/ ), null,
function( value, element )
{
if ( element.name == 'img' )
return value;
} ],
[ (/^width|height$/ ), null,
function( value, element )
{
if ( element.name in { table : 1, td : 1, th : 1, img : 1 } )
return value;
} ]
] :
// Otherwise provide a black-list of styles that we remove.
[
[ ( /^mso-/ ) ],
// Fixing color values.
[ ( /-color$/ ), null, function( value )
{
if ( value == 'transparent' )
return false;
if ( CKEDITOR.env.gecko )
return value.replace( /-moz-use-text-color/g, 'transparent' );
} ],
// Remove empty margin values, e.g. 0.00001pt 0em 0pt
[ ( /^margin$/ ), emptyMarginRegex ],
[ 'text-indent', '0cm' ],
[ 'page-break-before' ],
[ 'tab-stops' ],
[ 'display', 'none' ],
removeFontStyles ? [ ( /font-?/ ) ] : null
], removeStyles ),
// Prefer width styles over 'width' attributes.
'width' : function( value, element )
{
if ( element.name in dtd.$tableContent )
return false;
},
// Prefer border styles over table 'border' attributes.
'border' : function( value, element )
{
if ( element.name in dtd.$tableContent )
return false;
},
// Only Firefox carry style sheet from MS-Word, which
// will be applied by us manually. For other browsers
// the css className is useless.
'class' : falsyFilter,
// MS-Word always generate 'background-color' along with 'bgcolor',
// simply drop the deprecated attributes.
'bgcolor' : falsyFilter,
// Deprecate 'valign' attribute in favor of 'vertical-align'.
'valign' : removeStyles ? falsyFilter : function( value, element )
{
element.addStyle( 'vertical-align', value );
return false;
}
},
// Fore none-IE, some useful data might be buried under these IE-conditional
// comments where RegExp were the right approach to dig them out where usual approach
// is transform it into a fake element node which hold the desired data.
comment :
!CKEDITOR.env.ie ?
function( value, node )
{
var imageInfo = value.match( /<img.*?>/ ),
listInfo = value.match( /^\[if !supportLists\]([\s\S]*?)\[endif\]$/ );
// Seek for list bullet indicator.
if ( listInfo )
{
// Bullet symbol could be either text or an image.
var listSymbol = listInfo[ 1 ] || ( imageInfo && 'l.' ),
listType = listSymbol && listSymbol.match( />(?:[(]?)([^\s]+?)([.)]?)</ );
return createListBulletMarker( listType, listSymbol );
}
// Reveal the <img> element in conditional comments for Firefox.
if ( CKEDITOR.env.gecko && imageInfo )
{
var img = CKEDITOR.htmlParser.fragment.fromHtml( imageInfo[ 0 ] ).children[ 0 ],
previousComment = node.previous,
// Try to dig the real image link from vml markup from previous comment text.
imgSrcInfo = previousComment && previousComment.value.match( /<v:imagedata[^>]*o:href=['"](.*?)['"]/ ),
imgSrc = imgSrcInfo && imgSrcInfo[ 1 ];
// Is there a real 'src' url to be used?
imgSrc && ( img.attributes.src = imgSrc );
return img;
}
return false;
}
: falsyFilter
};
}
});
// The paste processor here is just a reduced copy of html data processor.
var pasteProcessor = function()
{
this.dataFilter = new CKEDITOR.htmlParser.filter();
};
pasteProcessor.prototype =
{
toHtml : function( data )
{
var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data, false ),
writer = new CKEDITOR.htmlParser.basicWriter();
fragment.writeHtml( writer, this.dataFilter );
return writer.getHtml( true );
}
};
CKEDITOR.cleanWord = function( data, editor )
{
// Firefox will be confused by those downlevel-revealed IE conditional
// comments, fixing them first( convert it to upperlevel-revealed one ).
// e.g. <![if !vml]>...<![endif]>
if ( CKEDITOR.env.gecko )
data = data.replace( /(<!--\[if[^<]*?\])-->([\S\s]*?)<!--(\[endif\]-->)/gi, '$1$2$3' );
var dataProcessor = new pasteProcessor(),
dataFilter = dataProcessor.dataFilter;
// These rules will have higher priorities than default ones.
dataFilter.addRules( CKEDITOR.plugins.pastefromword.getRules( editor ) );
// Allow extending data filter rules.
editor.fire( 'beforeCleanWord', { filter : dataFilter } );
try
{
data = dataProcessor.toHtml( data, false );
}
catch ( e )
{
alert( editor.lang.pastefromword.error );
}
/* Below post processing those things that are unable to delivered by filter rules. */
// Remove 'cke' namespaced attribute used in filter rules as marker.
data = data.replace( /cke:.*?".*?"/g, '' );
// Remove empty style attribute.
data = data.replace( /style=""/g, '' );
// Remove the dummy spans ( having no inline style ).
data = data.replace( /<span>/g, '' );
return data;
};
})();
/**
* Whether to ignore all font related formatting styles, including:
* <ul> <li>font size;</li>
* <li>font family;</li>
* <li>font foreground/background color.</li></ul>
* @name CKEDITOR.config.pasteFromWordRemoveFontStyles
* @since 3.1
* @type Boolean
* @default true
* @example
* config.pasteFromWordRemoveFontStyles = false;
*/
/**
* Whether to transform MS Word outline numbered headings into lists.
* @name CKEDITOR.config.pasteFromWordNumberedHeadingToList
* @since 3.1
* @type Boolean
* @default false
* @example
* config.pasteFromWordNumberedHeadingToList = true;
*/
/**
* Whether to remove element styles that can't be managed with the editor. Note
* that this doesn't handle the font specific styles, which depends on the
* {@link CKEDITOR.config.pasteFromWordRemoveFontStyles} setting instead.
* @name CKEDITOR.config.pasteFromWordRemoveStyles
* @since 3.1
* @type Boolean
* @default true
* @example
* config.pasteFromWordRemoveStyles = false;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/pastefromword/filter/default.js | default.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.xml} class, which represents a
* loaded XML document.
*/
(function()
{
CKEDITOR.plugins.add( 'xml', {});
/**
* Represents a loaded XML document.
* @constructor
* @param {object|string} xmlObjectOrData A native XML (DOM document) object or
* a string containing the XML definition to be loaded.
* @example
* var xml = <b>new CKEDITOR.xml( '<books><book title="My Book" /></books>' )</b>;
*/
CKEDITOR.xml = function( xmlObjectOrData )
{
var baseXml = null;
if ( typeof xmlObjectOrData == 'object' )
baseXml = xmlObjectOrData;
else
{
var data = ( xmlObjectOrData || '' ).replace( / /g, '\xA0' );
if ( window.DOMParser )
baseXml = (new DOMParser()).parseFromString( data, 'text/xml' );
else if ( window.ActiveXObject )
{
try { baseXml = new ActiveXObject( 'MSXML2.DOMDocument' ); }
catch(e)
{
try { baseXml = new ActiveXObject( 'Microsoft.XmlDom' ); } catch(e) {}
}
if ( baseXml )
{
baseXml.async = false;
baseXml.resolveExternals = false;
baseXml.validateOnParse = false;
baseXml.loadXML( data );
}
}
}
/**
* The native XML (DOM document) used by the class instance.
* @type object
* @example
*/
this.baseXml = baseXml;
};
CKEDITOR.xml.prototype =
{
/**
* Get a single node from the XML document, based on a XPath query.
* @param {String} xpath The XPath query to execute.
* @param {Object} [contextNode] The XML DOM node to be used as the context
* for the XPath query. The document root is used by default.
* @returns {Object} A XML node element or null if the query has no results.
* @example
* // Create the XML instance.
* var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' );
* // Get the first <item> node.
* var itemNode = <b>xml.selectSingleNode( 'list/item' )</b>;
* // Alert "item".
* alert( itemNode.nodeName );
*/
selectSingleNode : function( xpath, contextNode )
{
var baseXml = this.baseXml;
if ( contextNode || ( contextNode = baseXml ) )
{
if ( CKEDITOR.env.ie || contextNode.selectSingleNode ) // IE
return contextNode.selectSingleNode( xpath );
else if ( baseXml.evaluate ) // Others
{
var result = baseXml.evaluate( xpath, contextNode, null, 9, null);
return ( result && result.singleNodeValue ) || null;
}
}
return null;
},
/**
* Gets a list node from the XML document, based on a XPath query.
* @param {String} xpath The XPath query to execute.
* @param {Object} [contextNode] The XML DOM node to be used as the context
* for the XPath query. The document root is used by default.
* @returns {ArrayLike} An array containing all matched nodes. The array will
* be empty if the query has no results.
* @example
* // Create the XML instance.
* var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' );
* // Get the first <item> node.
* var itemNodes = xml.selectSingleNode( 'list/item' );
* // Alert "item" twice, one for each <item>.
* for ( var i = 0 ; i < itemNodes.length ; i++ )
* alert( itemNodes[i].nodeName );
*/
selectNodes : function( xpath, contextNode )
{
var baseXml = this.baseXml,
nodes = [];
if ( contextNode || ( contextNode = baseXml ) )
{
if ( CKEDITOR.env.ie || contextNode.selectNodes ) // IE
return contextNode.selectNodes( xpath );
else if ( baseXml.evaluate ) // Others
{
var result = baseXml.evaluate( xpath, contextNode, null, 5, null);
if ( result )
{
var node;
while ( ( node = result.iterateNext() ) )
nodes.push( node );
}
}
}
return nodes;
},
/**
* Gets the string representation of hte inner contents of a XML node,
* based on a XPath query.
* @param {String} xpath The XPath query to execute.
* @param {Object} [contextNode] The XML DOM node to be used as the context
* for the XPath query. The document root is used by default.
* @returns {String} The textual representation of the inner contents of
* the node or null if the query has no results.
* @example
* // Create the XML instance.
* var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' );
* // Alert "<item id="test1" /><item id="test2" />".
* alert( xml.getInnerXml( 'list' ) );
*/
getInnerXml : function( xpath, contextNode )
{
var node = this.selectSingleNode( xpath, contextNode ),
xml = [];
if ( node )
{
node = node.firstChild;
while ( node )
{
if ( node.xml ) // IE
xml.push( node.xml );
else if ( window.XMLSerializer ) // Others
xml.push( ( new XMLSerializer() ).serializeToString( node ) );
node = node.nextSibling;
}
}
return xml.length ? xml.join( '' ) : null;
}
};
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/xml/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "elementspath" plugin. It shows all elements in the DOM
* parent tree relative to the current selection in the editing area.
*/
(function()
{
var commands =
{
toolbarFocus :
{
editorFocus : false,
readOnly : 1,
exec : function( editor )
{
var idBase = editor._.elementsPath.idBase;
var element = CKEDITOR.document.getById( idBase + '0' );
// Make the first button focus accessible for IE. (#3417)
// Adobe AIR instead need while of delay.
element && element.focus( CKEDITOR.env.ie || CKEDITOR.env.air );
}
}
};
var emptyHtml = '<span class="cke_empty"> </span>';
CKEDITOR.plugins.add( 'elementspath',
{
requires : [ 'selection' ],
init : function( editor )
{
var spaceId = 'cke_path_' + editor.name;
var spaceElement;
var getSpaceElement = function()
{
if ( !spaceElement )
spaceElement = CKEDITOR.document.getById( spaceId );
return spaceElement;
};
var idBase = 'cke_elementspath_' + CKEDITOR.tools.getNextNumber() + '_';
editor._.elementsPath = { idBase : idBase, filters : [] };
editor.on( 'themeSpace', function( event )
{
if ( event.data.space == 'bottom' )
{
event.data.html +=
'<span id="' + spaceId + '_label" class="cke_voice_label">' + editor.lang.elementsPath.eleLabel + '</span>' +
'<div id="' + spaceId + '" class="cke_path" role="group" aria-labelledby="' + spaceId + '_label">' + emptyHtml + '</div>';
}
});
function onClick( elementIndex )
{
editor.focus();
var element = editor._.elementsPath.list[ elementIndex ];
if ( element.is( 'body' ) )
{
var range = new CKEDITOR.dom.range( editor.document );
range.selectNodeContents( element );
range.select();
}
else
editor.getSelection().selectElement( element );
}
var onClickHanlder = CKEDITOR.tools.addFunction( onClick );
var onKeyDownHandler = CKEDITOR.tools.addFunction( function( elementIndex, ev )
{
var idBase = editor._.elementsPath.idBase,
element;
ev = new CKEDITOR.dom.event( ev );
var rtl = editor.lang.dir == 'rtl';
switch ( ev.getKeystroke() )
{
case rtl ? 39 : 37 : // LEFT-ARROW
case 9 : // TAB
element = CKEDITOR.document.getById( idBase + ( elementIndex + 1 ) );
if ( !element )
element = CKEDITOR.document.getById( idBase + '0' );
element.focus();
return false;
case rtl ? 37 : 39 : // RIGHT-ARROW
case CKEDITOR.SHIFT + 9 : // SHIFT + TAB
element = CKEDITOR.document.getById( idBase + ( elementIndex - 1 ) );
if ( !element )
element = CKEDITOR.document.getById( idBase + ( editor._.elementsPath.list.length - 1 ) );
element.focus();
return false;
case 27 : // ESC
editor.focus();
return false;
case 13 : // ENTER // Opera
case 32 : // SPACE
onClick( elementIndex );
return false;
}
return true;
});
editor.on( 'selectionChange', function( ev )
{
var env = CKEDITOR.env,
selection = ev.data.selection,
element = selection.getStartElement(),
html = [],
editor = ev.editor,
elementsList = editor._.elementsPath.list = [],
filters = editor._.elementsPath.filters;
while ( element )
{
var ignore = 0,
name;
if ( element.data( 'cke-display-name' ) )
name = element.data( 'cke-display-name' );
else if ( element.data( 'cke-real-element-type' ) )
name = element.data( 'cke-real-element-type' );
else
name = element.getName();
for ( var i = 0; i < filters.length; i++ )
{
var ret = filters[ i ]( element, name );
if ( ret === false )
{
ignore = 1;
break;
}
name = ret || name;
}
if ( !ignore )
{
var index = elementsList.push( element ) - 1;
// Use this variable to add conditional stuff to the
// HTML (because we are doing it in reverse order... unshift).
var extra = '';
// Some browsers don't cancel key events in the keydown but in the
// keypress.
// TODO: Check if really needed for Gecko+Mac.
if ( env.opera || ( env.gecko && env.mac ) )
extra += ' onkeypress="return false;"';
// With Firefox, we need to force the button to redraw, otherwise it
// will remain in the focus state.
if ( env.gecko )
extra += ' onblur="this.style.cssText = this.style.cssText;"';
var label = editor.lang.elementsPath.eleTitle.replace( /%1/, name );
html.unshift(
'<a' +
' id="', idBase, index, '"' +
' href="javascript:void(\'', name, '\')"' +
' tabindex="-1"' +
' title="', label, '"' +
( ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ?
' onfocus="event.preventBubble();"' : '' ) +
' hidefocus="true" ' +
' onkeydown="return CKEDITOR.tools.callFunction(', onKeyDownHandler, ',', index, ', event );"' +
extra ,
' onclick="CKEDITOR.tools.callFunction('+ onClickHanlder, ',', index, '); return false;"',
' role="button" aria-labelledby="' + idBase + index + '_label">',
name,
'<span id="', idBase, index, '_label" class="cke_label">' + label + '</span>',
'</a>' );
}
if ( name == 'body' )
break;
element = element.getParent();
}
var space = getSpaceElement();
space.setHtml( html.join('') + emptyHtml );
editor.fire( 'elementsPathUpdate', { space : space } );
});
function empty()
{
spaceElement && spaceElement.setHtml( emptyHtml );
delete editor._.elementsPath.list;
}
editor.on( 'readOnly', empty );
editor.on( 'contentDomUnload', empty );
editor.addCommand( 'elementsPathFocus', commands.toolbarFocus );
}
});
})();
/**
* Fired when the contents of the elementsPath are changed
* @name CKEDITOR.editor#elementsPathUpdate
* @event
* @param {Object} eventData.space The elementsPath container
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/elementspath/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'panelbutton',
{
requires : [ 'button' ],
onLoad : function()
{
function clickFn( editor )
{
var _ = this._;
if ( _.state == CKEDITOR.TRISTATE_DISABLED )
return;
this.createPanel( editor );
if ( _.on )
{
_.panel.hide();
return;
}
_.panel.showBlock( this._.id, this.document.getById( this._.id ), 4 );
}
CKEDITOR.ui.panelButton = CKEDITOR.tools.createClass(
{
base : CKEDITOR.ui.button,
$ : function( definition )
{
// We don't want the panel definition in this object.
var panelDefinition = definition.panel;
delete definition.panel;
this.base( definition );
this.document = ( panelDefinition
&& panelDefinition.parent
&& panelDefinition.parent.getDocument() )
|| CKEDITOR.document;
panelDefinition.block =
{
attributes : panelDefinition.attributes
};
this.hasArrow = true;
this.click = clickFn;
this._ =
{
panelDefinition : panelDefinition
};
},
statics :
{
handler :
{
create : function( definition )
{
return new CKEDITOR.ui.panelButton( definition );
}
}
},
proto :
{
createPanel : function( editor )
{
var _ = this._;
if ( _.panel )
return;
var panelDefinition = this._.panelDefinition || {},
panelBlockDefinition = this._.panelDefinition.block,
panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(),
panel = this._.panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ),
block = panel.addBlock( _.id, panelBlockDefinition ),
me = this;
panel.onShow = function()
{
if ( me.className )
this.element.getFirst().addClass( me.className + '_panel' );
me.setState( CKEDITOR.TRISTATE_ON );
_.on = 1;
if ( me.onOpen )
me.onOpen();
};
panel.onHide = function( preventOnClose )
{
if ( me.className )
this.element.getFirst().removeClass( me.className + '_panel' );
me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
_.on = 0;
if ( !preventOnClose && me.onClose )
me.onClose();
};
panel.onEscape = function()
{
panel.hide();
me.document.getById( _.id ).focus();
};
if ( this.onBlock )
this.onBlock( panel, block );
block.onHide = function()
{
_.on = 0;
me.setState( CKEDITOR.TRISTATE_OFF );
};
}
}
});
},
beforeInit : function( editor )
{
editor.ui.addHandler( CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton.handler );
}
});
/**
* Button UI element.
* @constant
* @example
*/
CKEDITOR.UI_PANELBUTTON = 'panelbutton'; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/panelbutton/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/** @fileoverview The "dialogui" plugin. */
CKEDITOR.plugins.add( 'dialogui' );
(function()
{
var initPrivateObject = function( elementDefinition )
{
this._ || ( this._ = {} );
this._['default'] = this._.initValue = elementDefinition['default'] || '';
this._.required = elementDefinition[ 'required' ] || false;
var args = [ this._ ];
for ( var i = 1 ; i < arguments.length ; i++ )
args.push( arguments[i] );
args.push( true );
CKEDITOR.tools.extend.apply( CKEDITOR.tools, args );
return this._;
},
textBuilder =
{
build : function( dialog, elementDefinition, output )
{
return new CKEDITOR.ui.dialog.textInput( dialog, elementDefinition, output );
}
},
commonBuilder =
{
build : function( dialog, elementDefinition, output )
{
return new CKEDITOR.ui.dialog[elementDefinition.type]( dialog, elementDefinition, output );
}
},
containerBuilder =
{
build : function( dialog, elementDefinition, output )
{
var children = elementDefinition.children,
child,
childHtmlList = [],
childObjList = [];
for ( var i = 0 ; ( i < children.length && ( child = children[i] ) ) ; i++ )
{
var childHtml = [];
childHtmlList.push( childHtml );
childObjList.push( CKEDITOR.dialog._.uiElementBuilders[ child.type ].build( dialog, child, childHtml ) );
}
return new CKEDITOR.ui.dialog[ elementDefinition.type ]( dialog, childObjList, childHtmlList, output, elementDefinition );
}
},
commonPrototype =
{
isChanged : function()
{
return this.getValue() != this.getInitValue();
},
reset : function( noChangeEvent )
{
this.setValue( this.getInitValue(), noChangeEvent );
},
setInitValue : function()
{
this._.initValue = this.getValue();
},
resetInitValue : function()
{
this._.initValue = this._['default'];
},
getInitValue : function()
{
return this._.initValue;
}
},
commonEventProcessors = CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,
{
onChange : function( dialog, func )
{
if ( !this._.domOnChangeRegistered )
{
dialog.on( 'load', function()
{
this.getInputElement().on( 'change', function()
{
// Make sure 'onchange' doesn't get fired after dialog closed. (#5719)
if ( !dialog.parts.dialog.isVisible() )
return;
this.fire( 'change', { value : this.getValue() } );
}, this );
}, this );
this._.domOnChangeRegistered = true;
}
this.on( 'change', func );
}
}, true ),
eventRegex = /^on([A-Z]\w+)/,
cleanInnerDefinition = function( def )
{
// An inner UI element should not have the parent's type, title or events.
for ( var i in def )
{
if ( eventRegex.test( i ) || i == 'title' || i == 'type' )
delete def[i];
}
return def;
};
CKEDITOR.tools.extend( CKEDITOR.ui.dialog,
/** @lends CKEDITOR.ui.dialog */
{
/**
* Base class for all dialog elements with a textual label on the left.
* @constructor
* @example
* @extends CKEDITOR.ui.dialog.uiElement
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>label</strong> (Required) The label string.</li>
* <li><strong>labelLayout</strong> (Optional) Put 'horizontal' here if the
* label element is to be layed out horizontally. Otherwise a vertical
* layout will be used.</li>
* <li><strong>widths</strong> (Optional) This applies only for horizontal
* layouts - an 2-element array of lengths to specify the widths of the
* label and the content element.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
* @param {Function} contentHtml
* A function returning the HTML code string to be added inside the content
* cell.
*/
labeledElement : function( dialog, elementDefinition, htmlList, contentHtml )
{
if ( arguments.length < 4 )
return;
var _ = initPrivateObject.call( this, elementDefinition );
_.labelId = CKEDITOR.tools.getNextId() + '_label';
var children = this._.children = [];
/** @ignore */
var innerHTML = function()
{
var html = [],
requiredClass = elementDefinition.required ? ' cke_required' : '' ;
if ( elementDefinition.labelLayout != 'horizontal' )
html.push( '<label class="cke_dialog_ui_labeled_label' + requiredClass + '" ',
' id="'+ _.labelId + '"',
' for="' + _.inputId + '"',
( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) +'>',
elementDefinition.label,
'</label>',
'<div class="cke_dialog_ui_labeled_content"' + ( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ) + ' role="presentation">',
contentHtml.call( this, dialog, elementDefinition ),
'</div>' );
else
{
var hboxDefinition = {
type : 'hbox',
widths : elementDefinition.widths,
padding : 0,
children :
[
{
type : 'html',
html : '<label class="cke_dialog_ui_labeled_label' + requiredClass + '"' +
' id="' + _.labelId + '"' +
' for="' + _.inputId + '"' +
( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) +'>' +
CKEDITOR.tools.htmlEncode( elementDefinition.label ) +
'</span>'
},
{
type : 'html',
html : '<span class="cke_dialog_ui_labeled_content"' + ( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ) + '>' +
contentHtml.call( this, dialog, elementDefinition ) +
'</span>'
}
]
};
CKEDITOR.dialog._.uiElementBuilders.hbox.build( dialog, hboxDefinition, html );
}
return html.join( '' );
};
CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'div', null, { role : 'presentation' }, innerHTML );
},
/**
* A text input with a label. This UI element class represents both the
* single-line text inputs and password inputs in dialog boxes.
* @constructor
* @example
* @extends CKEDITOR.ui.dialog.labeledElement
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>default</strong> (Optional) The default value.</li>
* <li><strong>validate</strong> (Optional) The validation function. </li>
* <li><strong>maxLength</strong> (Optional) The maximum length of text box
* contents.</li>
* <li><strong>size</strong> (Optional) The size of the text box. This is
* usually overridden by the size defined by the skin, however.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
textInput : function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
initPrivateObject.call( this, elementDefinition );
var domId = this._.inputId = CKEDITOR.tools.getNextId() + '_textInput',
attributes = { 'class' : 'cke_dialog_ui_input_' + elementDefinition.type, id : domId, type : 'text' },
i;
// Set the validator, if any.
if ( elementDefinition.validate )
this.validate = elementDefinition.validate;
// Set the max length and size.
if ( elementDefinition.maxLength )
attributes.maxlength = elementDefinition.maxLength;
if ( elementDefinition.size )
attributes.size = elementDefinition.size;
if ( elementDefinition.inputStyle )
attributes.style = elementDefinition.inputStyle;
// If user presses Enter in a text box, it implies clicking OK for the dialog.
var me = this, keyPressedOnMe = false;
dialog.on( 'load', function()
{
me.getInputElement().on( 'keydown', function( evt )
{
if ( evt.data.getKeystroke() == 13 )
keyPressedOnMe = true;
} );
// Lower the priority this 'keyup' since 'ok' will close the dialog.(#3749)
me.getInputElement().on( 'keyup', function( evt )
{
if ( evt.data.getKeystroke() == 13 && keyPressedOnMe )
{
dialog.getButton( 'ok' ) && setTimeout( function ()
{
dialog.getButton( 'ok' ).click();
}, 0 );
keyPressedOnMe = false;
}
}, null, null, 1000 );
} );
/** @ignore */
var innerHTML = function()
{
// IE BUG: Text input fields in IE at 100% would exceed a <td> or inline
// container's width, so need to wrap it inside a <div>.
var html = [ '<div class="cke_dialog_ui_input_', elementDefinition.type, '" role="presentation"' ];
if ( elementDefinition.width )
html.push( 'style="width:'+ elementDefinition.width +'" ' );
html.push( '><input ' );
attributes[ 'aria-labelledby' ] = this._.labelId;
this._.required && ( attributes[ 'aria-required' ] = this._.required );
for ( var i in attributes )
html.push( i + '="' + attributes[i] + '" ' );
html.push( ' /></div>' );
return html.join( '' );
};
CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML );
},
/**
* A text area with a label on the top or left.
* @constructor
* @extends CKEDITOR.ui.dialog.labeledElement
* @example
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>rows</strong> (Optional) The number of rows displayed.
* Defaults to 5 if not defined.</li>
* <li><strong>cols</strong> (Optional) The number of cols displayed.
* Defaults to 20 if not defined. Usually overridden by skins.</li>
* <li><strong>default</strong> (Optional) The default value.</li>
* <li><strong>validate</strong> (Optional) The validation function. </li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
textarea : function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
initPrivateObject.call( this, elementDefinition );
var me = this,
domId = this._.inputId = CKEDITOR.tools.getNextId() + '_textarea',
attributes = {};
if ( elementDefinition.validate )
this.validate = elementDefinition.validate;
// Generates the essential attributes for the textarea tag.
attributes.rows = elementDefinition.rows || 5;
attributes.cols = elementDefinition.cols || 20;
if ( typeof elementDefinition.inputStyle != 'undefined' )
attributes.style = elementDefinition.inputStyle;
/** @ignore */
var innerHTML = function()
{
attributes[ 'aria-labelledby' ] = this._.labelId;
this._.required && ( attributes[ 'aria-required' ] = this._.required );
var html = [ '<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea class="cke_dialog_ui_input_textarea" id="', domId, '" ' ];
for ( var i in attributes )
html.push( i + '="' + CKEDITOR.tools.htmlEncode( attributes[i] ) + '" ' );
html.push( '>', CKEDITOR.tools.htmlEncode( me._['default'] ), '</textarea></div>' );
return html.join( '' );
};
CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML );
},
/**
* A single checkbox with a label on the right.
* @constructor
* @extends CKEDITOR.ui.dialog.uiElement
* @example
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>checked</strong> (Optional) Whether the checkbox is checked
* on instantiation. Defaults to false.</li>
* <li><strong>validate</strong> (Optional) The validation function.</li>
* <li><strong>label</strong> (Optional) The checkbox label.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
checkbox : function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
var _ = initPrivateObject.call( this, elementDefinition, { 'default' : !!elementDefinition[ 'default' ] } );
if ( elementDefinition.validate )
this.validate = elementDefinition.validate;
/** @ignore */
var innerHTML = function()
{
var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition,
{
id : elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextId() + '_checkbox'
}, true ),
html = [];
var labelId = CKEDITOR.tools.getNextId() + '_label';
var attributes = { 'class' : 'cke_dialog_ui_checkbox_input', type : 'checkbox', 'aria-labelledby' : labelId };
cleanInnerDefinition( myDefinition );
if ( elementDefinition[ 'default' ] )
attributes.checked = 'checked';
if ( typeof myDefinition.inputStyle != 'undefined' )
myDefinition.style = myDefinition.inputStyle;
_.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes );
html.push( ' <label id="', labelId, '" for="', attributes.id, '"' + ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>',
CKEDITOR.tools.htmlEncode( elementDefinition.label ),
'</label>' );
return html.join( '' );
};
CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'span', null, null, innerHTML );
},
/**
* A group of radio buttons.
* @constructor
* @example
* @extends CKEDITOR.ui.dialog.labeledElement
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>default</strong> (Required) The default value.</li>
* <li><strong>validate</strong> (Optional) The validation function.</li>
* <li><strong>items</strong> (Required) An array of options. Each option
* is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value'
* is missing, then the value would be assumed to be the same as the
* description.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
radio : function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3)
return;
initPrivateObject.call( this, elementDefinition );
if ( !this._['default'] )
this._['default'] = this._.initValue = elementDefinition.items[0][1];
if ( elementDefinition.validate )
this.validate = elementDefinition.valdiate;
var children = [], me = this;
/** @ignore */
var innerHTML = function()
{
var inputHtmlList = [], html = [],
commonAttributes = { 'class' : 'cke_dialog_ui_radio_item', 'aria-labelledby' : this._.labelId },
commonName = elementDefinition.id ? elementDefinition.id + '_radio' : CKEDITOR.tools.getNextId() + '_radio';
for ( var i = 0 ; i < elementDefinition.items.length ; i++ )
{
var item = elementDefinition.items[i],
title = item[2] !== undefined ? item[2] : item[0],
value = item[1] !== undefined ? item[1] : item[0],
inputId = CKEDITOR.tools.getNextId() + '_radio_input',
labelId = inputId + '_label',
inputDefinition = CKEDITOR.tools.extend( {}, elementDefinition,
{
id : inputId,
title : null,
type : null
}, true ),
labelDefinition = CKEDITOR.tools.extend( {}, inputDefinition,
{
title : title
}, true ),
inputAttributes =
{
type : 'radio',
'class' : 'cke_dialog_ui_radio_input',
name : commonName,
value : value,
'aria-labelledby' : labelId
},
inputHtml = [];
if ( me._['default'] == value )
inputAttributes.checked = 'checked';
cleanInnerDefinition( inputDefinition );
cleanInnerDefinition( labelDefinition );
if ( typeof inputDefinition.inputStyle != 'undefined' )
inputDefinition.style = inputDefinition.inputStyle;
children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) );
inputHtml.push( ' ' );
new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtml, 'label', null, { id : labelId, 'for' : inputAttributes.id },
item[0] );
inputHtmlList.push( inputHtml.join( '' ) );
}
new CKEDITOR.ui.dialog.hbox( dialog, children, inputHtmlList, html );
return html.join( '' );
};
CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML );
this._.children = children;
},
/**
* A button with a label inside.
* @constructor
* @example
* @extends CKEDITOR.ui.dialog.uiElement
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>label</strong> (Required) The button label.</li>
* <li><strong>disabled</strong> (Optional) Set to true if you want the
* button to appear in disabled state.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
button : function( dialog, elementDefinition, htmlList )
{
if ( !arguments.length )
return;
if ( typeof elementDefinition == 'function' )
elementDefinition = elementDefinition( dialog.getParentEditor() );
initPrivateObject.call( this, elementDefinition, { disabled : elementDefinition.disabled || false } );
// Add OnClick event to this input.
CKEDITOR.event.implementOn( this );
var me = this;
// Register an event handler for processing button clicks.
dialog.on( 'load', function( eventInfo )
{
var element = this.getElement();
(function()
{
element.on( 'click', function( evt )
{
me.fire( 'click', { dialog : me.getDialog() } );
evt.data.preventDefault();
} );
element.on( 'keydown', function( evt )
{
if ( evt.data.getKeystroke() in { 32:1 } )
{
me.click();
evt.data.preventDefault();
}
} );
})();
element.unselectable();
}, this );
var outerDefinition = CKEDITOR.tools.extend( {}, elementDefinition );
delete outerDefinition.style;
var labelId = CKEDITOR.tools.getNextId() + '_label';
CKEDITOR.ui.dialog.uiElement.call(
this,
dialog,
outerDefinition,
htmlList,
'a',
null,
{
style : elementDefinition.style,
href : 'javascript:void(0)',
title : elementDefinition.label,
hidefocus : 'true',
'class' : elementDefinition['class'],
role : 'button',
'aria-labelledby' : labelId
},
'<span id="' + labelId + '" class="cke_dialog_ui_button">' +
CKEDITOR.tools.htmlEncode( elementDefinition.label ) +
'</span>' );
},
/**
* A select box.
* @extends CKEDITOR.ui.dialog.uiElement
* @example
* @constructor
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>default</strong> (Required) The default value.</li>
* <li><strong>validate</strong> (Optional) The validation function.</li>
* <li><strong>items</strong> (Required) An array of options. Each option
* is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value'
* is missing, then the value would be assumed to be the same as the
* description.</li>
* <li><strong>multiple</strong> (Optional) Set this to true if you'd like
* to have a multiple-choice select box.</li>
* <li><strong>size</strong> (Optional) The number of items to display in
* the select box.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
select : function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
var _ = initPrivateObject.call( this, elementDefinition );
if ( elementDefinition.validate )
this.validate = elementDefinition.validate;
_.inputId = CKEDITOR.tools.getNextId() + '_select';
/** @ignore */
var innerHTML = function()
{
var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition,
{
id : elementDefinition.id ? elementDefinition.id + '_select' : CKEDITOR.tools.getNextId() + '_select'
}, true ),
html = [],
innerHTML = [],
attributes = { 'id' : _.inputId, 'class' : 'cke_dialog_ui_input_select', 'aria-labelledby' : this._.labelId };
// Add multiple and size attributes from element definition.
if ( elementDefinition.size != undefined )
attributes.size = elementDefinition.size;
if ( elementDefinition.multiple != undefined )
attributes.multiple = elementDefinition.multiple;
cleanInnerDefinition( myDefinition );
for ( var i = 0, item ; i < elementDefinition.items.length && ( item = elementDefinition.items[i] ) ; i++ )
{
innerHTML.push( '<option value="',
CKEDITOR.tools.htmlEncode( item[1] !== undefined ? item[1] : item[0] ).replace( /"/g, '"' ), '" /> ',
CKEDITOR.tools.htmlEncode( item[0] ) );
}
if ( typeof myDefinition.inputStyle != 'undefined' )
myDefinition.style = myDefinition.inputStyle;
_.select = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'select', null, attributes, innerHTML.join( '' ) );
return html.join( '' );
};
CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML );
},
/**
* A file upload input.
* @extends CKEDITOR.ui.dialog.labeledElement
* @example
* @constructor
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>validate</strong> (Optional) The validation function.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
file : function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
if ( elementDefinition['default'] === undefined )
elementDefinition['default'] = '';
var _ = CKEDITOR.tools.extend( initPrivateObject.call( this, elementDefinition ), { definition : elementDefinition, buttons : [] } );
if ( elementDefinition.validate )
this.validate = elementDefinition.validate;
/** @ignore */
var innerHTML = function()
{
_.frameId = CKEDITOR.tools.getNextId() + '_fileInput';
// Support for custom document.domain in IE.
var isCustomDomain = CKEDITOR.env.isCustomDomain();
var html = [
'<iframe' +
' frameborder="0"' +
' allowtransparency="0"' +
' class="cke_dialog_ui_input_file"' +
' id="', _.frameId, '"' +
' title="', elementDefinition.label, '"' +
' src="javascript:void(' ];
html.push(
isCustomDomain ?
'(function(){' +
'document.open();' +
'document.domain=\'' + document.domain + '\';' +
'document.close();' +
'})()'
:
'0' );
html.push(
')">' +
'</iframe>' );
return html.join( '' );
};
// IE BUG: Parent container does not resize to contain the iframe automatically.
dialog.on( 'load', function()
{
var iframe = CKEDITOR.document.getById( _.frameId ),
contentDiv = iframe.getParent();
contentDiv.addClass( 'cke_dialog_ui_input_file' );
} );
CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML );
},
/**
* A button for submitting the file in a file upload input.
* @extends CKEDITOR.ui.dialog.button
* @example
* @constructor
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>for</strong> (Required) The file input's page and element Id
* to associate to, in a 2-item array format: [ 'page_id', 'element_id' ].
* </li>
* <li><strong>validate</strong> (Optional) The validation function.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
fileButton : function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
var _ = initPrivateObject.call( this, elementDefinition ),
me = this;
if ( elementDefinition.validate )
this.validate = elementDefinition.validate;
var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition );
var onClick = myDefinition.onClick;
myDefinition.className = ( myDefinition.className ? myDefinition.className + ' ' : '' ) + 'cke_dialog_ui_button';
myDefinition.onClick = function( evt )
{
var target = elementDefinition[ 'for' ]; // [ pageId, elementId ]
if ( !onClick || onClick.call( this, evt ) !== false )
{
dialog.getContentElement( target[0], target[1] ).submit();
this.disable();
}
};
dialog.on( 'load', function()
{
dialog.getContentElement( elementDefinition[ 'for' ][0], elementDefinition[ 'for' ][1] )._.buttons.push( me );
} );
CKEDITOR.ui.dialog.button.call( this, dialog, myDefinition, htmlList );
},
html : (function()
{
var myHtmlRe = /^\s*<[\w:]+\s+([^>]*)?>/,
theirHtmlRe = /^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,
emptyTagRe = /\/$/;
/**
* A dialog element made from raw HTML code.
* @extends CKEDITOR.ui.dialog.uiElement
* @name CKEDITOR.ui.dialog.html
* @param {CKEDITOR.dialog} dialog Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition Element definition.
* Accepted fields:
* <ul>
* <li><strong>html</strong> (Required) HTML code of this element.</li>
* </ul>
* @param {Array} htmlList List of HTML code to be added to the dialog's content area.
* @example
* @constructor
*/
return function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
var myHtmlList = [],
myHtml,
theirHtml = elementDefinition.html,
myMatch, theirMatch;
// If the HTML input doesn't contain any tags at the beginning, add a <span> tag around it.
if ( theirHtml.charAt( 0 ) != '<' )
theirHtml = '<span>' + theirHtml + '</span>';
// Look for focus function in definition.
var focus = elementDefinition.focus;
if ( focus )
{
var oldFocus = this.focus;
this.focus = function()
{
oldFocus.call( this );
typeof focus == 'function' && focus.call( this );
this.fire( 'focus' );
};
if ( elementDefinition.isFocusable )
{
var oldIsFocusable = this.isFocusable;
this.isFocusable = oldIsFocusable;
}
this.keyboardFocusable = true;
}
CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, myHtmlList, 'span', null, null, '' );
// Append the attributes created by the uiElement call to the real HTML.
myHtml = myHtmlList.join( '' );
myMatch = myHtml.match( myHtmlRe );
theirMatch = theirHtml.match( theirHtmlRe ) || [ '', '', '' ];
if ( emptyTagRe.test( theirMatch[1] ) )
{
theirMatch[1] = theirMatch[1].slice( 0, -1 );
theirMatch[2] = '/' + theirMatch[2];
}
htmlList.push( [ theirMatch[1], ' ', myMatch[1] || '', theirMatch[2] ].join( '' ) );
};
})(),
/**
* Form fieldset for grouping dialog UI elements.
* @constructor
* @extends CKEDITOR.ui.dialog.uiElement
* @param {CKEDITOR.dialog} dialog Parent dialog object.
* @param {Array} childObjList
* Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this
* container.
* @param {Array} childHtmlList
* Array of HTML code that correspond to the HTML output of all the
* objects in childObjList.
* @param {Array} htmlList
* Array of HTML code that this element will output to.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>label</strong> (Optional) The legend of the this fieldset.</li>
* <li><strong>children</strong> (Required) An array of dialog field definitions which will be grouped inside this fieldset. </li>
* </ul>
*/
fieldset : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition )
{
var legendLabel = elementDefinition.label;
/** @ignore */
var innerHTML = function()
{
var html = [];
legendLabel && html.push( '<legend>' + legendLabel + '</legend>' );
for ( var i = 0; i < childHtmlList.length; i++ )
html.push( childHtmlList[ i ] );
return html.join( '' );
};
this._ = { children : childObjList };
CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'fieldset', null, null, innerHTML );
}
}, true );
CKEDITOR.ui.dialog.html.prototype = new CKEDITOR.ui.dialog.uiElement;
CKEDITOR.ui.dialog.labeledElement.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement,
/** @lends CKEDITOR.ui.dialog.labeledElement.prototype */
{
/**
* Sets the label text of the element.
* @param {String} label The new label text.
* @returns {CKEDITOR.ui.dialog.labeledElement} The current labeled element.
* @example
*/
setLabel : function( label )
{
var node = CKEDITOR.document.getById( this._.labelId );
if ( node.getChildCount() < 1 )
( new CKEDITOR.dom.text( label, CKEDITOR.document ) ).appendTo( node );
else
node.getChild( 0 ).$.nodeValue = label;
return this;
},
/**
* Retrieves the current label text of the elment.
* @returns {String} The current label text.
* @example
*/
getLabel : function()
{
var node = CKEDITOR.document.getById( this._.labelId );
if ( !node || node.getChildCount() < 1 )
return '';
else
return node.getChild( 0 ).getText();
},
/**
* Defines the onChange event for UI element definitions.
* @field
* @type Object
* @example
*/
eventProcessors : commonEventProcessors
}, true );
CKEDITOR.ui.dialog.button.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement,
/** @lends CKEDITOR.ui.dialog.button.prototype */
{
/**
* Simulates a click to the button.
* @example
* @returns {Object} Return value of the 'click' event.
*/
click : function()
{
if ( !this._.disabled )
return this.fire( 'click', { dialog : this._.dialog } );
this.getElement().$.blur();
return false;
},
/**
* Enables the button.
* @example
*/
enable : function()
{
this._.disabled = false;
var element = this.getElement();
element && element.removeClass( 'cke_disabled' );
},
/**
* Disables the button.
* @example
*/
disable : function()
{
this._.disabled = true;
this.getElement().addClass( 'cke_disabled' );
},
isVisible : function()
{
return this.getElement().getFirst().isVisible();
},
isEnabled : function()
{
return !this._.disabled;
},
/**
* Defines the onChange event and onClick for button element definitions.
* @field
* @type Object
* @example
*/
eventProcessors : CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,
{
/** @ignore */
onClick : function( dialog, func )
{
this.on( 'click', func );
}
}, true ),
/**
* Handler for the element's access key up event. Simulates a click to
* the button.
* @example
*/
accessKeyUp : function()
{
this.click();
},
/**
* Handler for the element's access key down event. Simulates a mouse
* down to the button.
* @example
*/
accessKeyDown : function()
{
this.focus();
},
keyboardFocusable : true
}, true );
CKEDITOR.ui.dialog.textInput.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement,
/** @lends CKEDITOR.ui.dialog.textInput.prototype */
{
/**
* Gets the text input DOM element under this UI object.
* @example
* @returns {CKEDITOR.dom.element} The DOM element of the text input.
*/
getInputElement : function()
{
return CKEDITOR.document.getById( this._.inputId );
},
/**
* Puts focus into the text input.
* @example
*/
focus : function()
{
var me = this.selectParentTab();
// GECKO BUG: setTimeout() is needed to workaround invisible selections.
setTimeout( function()
{
var element = me.getInputElement();
element && element.$.focus();
}, 0 );
},
/**
* Selects all the text in the text input.
* @example
*/
select : function()
{
var me = this.selectParentTab();
// GECKO BUG: setTimeout() is needed to workaround invisible selections.
setTimeout( function()
{
var e = me.getInputElement();
if ( e )
{
e.$.focus();
e.$.select();
}
}, 0 );
},
/**
* Handler for the text input's access key up event. Makes a select()
* call to the text input.
* @example
*/
accessKeyUp : function()
{
this.select();
},
/**
* Sets the value of this text input object.
* @param {Object} value The new value.
* @returns {CKEDITOR.ui.dialog.textInput} The current UI element.
* @example
* uiElement.setValue( 'Blamo' );
*/
setValue : function( value )
{
!value && ( value = '' );
return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply( this, arguments );
},
keyboardFocusable : true
}, commonPrototype, true );
CKEDITOR.ui.dialog.textarea.prototype = new CKEDITOR.ui.dialog.textInput();
CKEDITOR.ui.dialog.select.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement,
/** @lends CKEDITOR.ui.dialog.select.prototype */
{
/**
* Gets the DOM element of the select box.
* @returns {CKEDITOR.dom.element} The <select> element of this UI
* element.
* @example
*/
getInputElement : function()
{
return this._.select.getElement();
},
/**
* Adds an option to the select box.
* @param {String} label Option label.
* @param {String} value (Optional) Option value, if not defined it'll be
* assumed to be the same as the label.
* @param {Number} index (Optional) Position of the option to be inserted
* to. If not defined the new option will be inserted to the end of list.
* @example
* @returns {CKEDITOR.ui.dialog.select} The current select UI element.
*/
add : function( label, value, index )
{
var option = new CKEDITOR.dom.element( 'option', this.getDialog().getParentEditor().document ),
selectElement = this.getInputElement().$;
option.$.text = label;
option.$.value = ( value === undefined || value === null ) ? label : value;
if ( index === undefined || index === null )
{
if ( CKEDITOR.env.ie )
selectElement.add( option.$ );
else
selectElement.add( option.$, null );
}
else
selectElement.add( option.$, index );
return this;
},
/**
* Removes an option from the selection list.
* @param {Number} index Index of the option to be removed.
* @example
* @returns {CKEDITOR.ui.dialog.select} The current select UI element.
*/
remove : function( index )
{
var selectElement = this.getInputElement().$;
selectElement.remove( index );
return this;
},
/**
* Clears all options out of the selection list.
* @returns {CKEDITOR.ui.dialog.select} The current select UI element.
*/
clear : function()
{
var selectElement = this.getInputElement().$;
while ( selectElement.length > 0 )
selectElement.remove( 0 );
return this;
},
keyboardFocusable : true
}, commonPrototype, true );
CKEDITOR.ui.dialog.checkbox.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement,
/** @lends CKEDITOR.ui.dialog.checkbox.prototype */
{
/**
* Gets the checkbox DOM element.
* @example
* @returns {CKEDITOR.dom.element} The DOM element of the checkbox.
*/
getInputElement : function()
{
return this._.checkbox.getElement();
},
/**
* Sets the state of the checkbox.
* @example
* @param {Boolean} true to tick the checkbox, false to untick it.
* @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element.
*/
setValue : function( checked, noChangeEvent )
{
this.getInputElement().$.checked = checked;
!noChangeEvent && this.fire( 'change', { value : checked } );
},
/**
* Gets the state of the checkbox.
* @example
* @returns {Boolean} true means the checkbox is ticked, false means it's not ticked.
*/
getValue : function()
{
return this.getInputElement().$.checked;
},
/**
* Handler for the access key up event. Toggles the checkbox.
* @example
*/
accessKeyUp : function()
{
this.setValue( !this.getValue() );
},
/**
* Defines the onChange event for UI element definitions.
* @field
* @type Object
* @example
*/
eventProcessors :
{
onChange : function( dialog, func )
{
if ( !CKEDITOR.env.ie )
return commonEventProcessors.onChange.apply( this, arguments );
else
{
dialog.on( 'load', function()
{
var element = this._.checkbox.getElement();
element.on( 'propertychange', function( evt )
{
evt = evt.data.$;
if ( evt.propertyName == 'checked' )
this.fire( 'change', { value : element.$.checked } );
}, this );
}, this );
this.on( 'change', func );
}
return null;
}
},
keyboardFocusable : true
}, commonPrototype, true );
CKEDITOR.ui.dialog.radio.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement,
/** @lends CKEDITOR.ui.dialog.radio.prototype */
{
/**
* Checks one of the radio buttons in this button group.
* @example
* @param {String} value The value of the button to be chcked.
* @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element.
*/
setValue : function( value, noChangeEvent )
{
var children = this._.children,
item;
for ( var i = 0 ; ( i < children.length ) && ( item = children[i] ) ; i++ )
item.getElement().$.checked = ( item.getValue() == value );
!noChangeEvent && this.fire( 'change', { value : value } );
},
/**
* Gets the value of the currently checked radio button.
* @example
* @returns {String} The currently checked button's value.
*/
getValue : function()
{
var children = this._.children;
for ( var i = 0 ; i < children.length ; i++ )
{
if ( children[i].getElement().$.checked )
return children[i].getValue();
}
return null;
},
/**
* Handler for the access key up event. Focuses the currently
* selected radio button, or the first radio button if none is
* selected.
* @example
*/
accessKeyUp : function()
{
var children = this._.children, i;
for ( i = 0 ; i < children.length ; i++ )
{
if ( children[i].getElement().$.checked )
{
children[i].getElement().focus();
return;
}
}
children[0].getElement().focus();
},
/**
* Defines the onChange event for UI element definitions.
* @field
* @type Object
* @example
*/
eventProcessors :
{
onChange : function( dialog, func )
{
if ( !CKEDITOR.env.ie )
return commonEventProcessors.onChange.apply( this, arguments );
else
{
dialog.on( 'load', function()
{
var children = this._.children, me = this;
for ( var i = 0 ; i < children.length ; i++ )
{
var element = children[i].getElement();
element.on( 'propertychange', function( evt )
{
evt = evt.data.$;
if ( evt.propertyName == 'checked' && this.$.checked )
me.fire( 'change', { value : this.getAttribute( 'value' ) } );
} );
}
}, this );
this.on( 'change', func );
}
return null;
}
},
keyboardFocusable : true
}, commonPrototype, true );
CKEDITOR.ui.dialog.file.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement,
commonPrototype,
/** @lends CKEDITOR.ui.dialog.file.prototype */
{
/**
* Gets the <input> element of this file input.
* @returns {CKEDITOR.dom.element} The file input element.
* @example
*/
getInputElement : function()
{
var frameDocument = CKEDITOR.document.getById( this._.frameId ).getFrameDocument();
return frameDocument.$.forms.length > 0 ?
new CKEDITOR.dom.element( frameDocument.$.forms[0].elements[0] ) :
this.getElement();
},
/**
* Uploads the file in the file input.
* @returns {CKEDITOR.ui.dialog.file} This object.
* @example
*/
submit : function()
{
this.getInputElement().getParent().$.submit();
return this;
},
/**
* Get the action assigned to the form.
* @returns {String} The value of the action.
* @example
*/
getAction : function()
{
return this.getInputElement().getParent().$.action;
},
/**
* The events must be applied on the inner input element, and
* that must be done when the iframe & form has been loaded
*/
registerEvents : function( definition )
{
var regex = /^on([A-Z]\w+)/,
match;
var registerDomEvent = function( uiElement, dialog, eventName, func )
{
uiElement.on( 'formLoaded', function()
{
uiElement.getInputElement().on( eventName, func, uiElement );
});
};
for ( var i in definition )
{
if ( !( match = i.match( regex ) ) )
continue;
if ( this.eventProcessors[i] )
this.eventProcessors[i].call( this, this._.dialog, definition[i] );
else
registerDomEvent( this, this._.dialog, match[1].toLowerCase(), definition[i] );
}
return this;
},
/**
* Redraws the file input and resets the file path in the file input.
* The redraw logic is necessary because non-IE browsers tend to clear
* the <iframe> containing the file input after closing the dialog.
* @example
*/
reset : function()
{
var _ = this._,
frameElement = CKEDITOR.document.getById( _.frameId ),
frameDocument = frameElement.getFrameDocument(),
elementDefinition = _.definition,
buttons = _.buttons,
callNumber = this.formLoadedNumber,
unloadNumber = this.formUnloadNumber,
langDir = _.dialog._.editor.lang.dir,
langCode = _.dialog._.editor.langCode;
// The callback function for the iframe, but we must call tools.addFunction only once
// so we store the function number in this.formLoadedNumber
if ( !callNumber )
{
callNumber = this.formLoadedNumber = CKEDITOR.tools.addFunction(
function()
{
// Now we can apply the events to the input type=file
this.fire( 'formLoaded' ) ;
}, this ) ;
// Remove listeners attached to the content of the iframe (the file input)
unloadNumber = this.formUnloadNumber = CKEDITOR.tools.addFunction(
function()
{
this.getInputElement().clearCustomData();
}, this ) ;
this.getDialog()._.editor.on( 'destroy', function()
{
CKEDITOR.tools.removeFunction( callNumber );
CKEDITOR.tools.removeFunction( unloadNumber );
} );
}
function generateFormField()
{
frameDocument.$.open();
// Support for custom document.domain in IE.
if ( CKEDITOR.env.isCustomDomain() )
frameDocument.$.domain = document.domain;
var size = '';
if ( elementDefinition.size )
size = elementDefinition.size - ( CKEDITOR.env.ie ? 7 : 0 ); // "Browse" button is bigger in IE.
frameDocument.$.write( [ '<html dir="' + langDir + '" lang="' + langCode + '"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">',
'<form enctype="multipart/form-data" method="POST" dir="' + langDir + '" lang="' + langCode + '" action="',
CKEDITOR.tools.htmlEncode( elementDefinition.action ),
'">',
'<input type="file" name="',
CKEDITOR.tools.htmlEncode( elementDefinition.id || 'cke_upload' ),
'" size="',
CKEDITOR.tools.htmlEncode( size > 0 ? size : "" ),
'" />',
'</form>',
'</body></html>',
'<script>window.parent.CKEDITOR.tools.callFunction(' + callNumber + ');',
'window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction(' + unloadNumber + ')}</script>' ].join( '' ) );
frameDocument.$.close();
for ( var i = 0 ; i < buttons.length ; i++ )
buttons[i].enable();
}
// #3465: Wait for the browser to finish rendering the dialog first.
if ( CKEDITOR.env.gecko )
setTimeout( generateFormField, 500 );
else
generateFormField();
},
getValue : function()
{
return this.getInputElement().$.value || '';
},
/***
* The default value of input type="file" is an empty string, but during initialization
* of this UI element, the iframe still isn't ready so it can't be read from that object
* Setting it manually prevents later issues about the current value ("") being different
* of the initial value (undefined as it asked for .value of a div)
*/
setInitValue : function()
{
this._.initValue = '';
},
/**
* Defines the onChange event for UI element definitions.
* @field
* @type Object
* @example
*/
eventProcessors :
{
onChange : function( dialog, func )
{
// If this method is called several times (I'm not sure about how this can happen but the default
// onChange processor includes this protection)
// In order to reapply to the new element, the property is deleted at the beggining of the registerEvents method
if ( !this._.domOnChangeRegistered )
{
// By listening for the formLoaded event, this handler will get reapplied when a new
// form is created
this.on( 'formLoaded', function()
{
this.getInputElement().on( 'change', function(){ this.fire( 'change', { value : this.getValue() } ); }, this );
}, this );
this._.domOnChangeRegistered = true;
}
this.on( 'change', func );
}
},
keyboardFocusable : true
}, true );
CKEDITOR.ui.dialog.fileButton.prototype = new CKEDITOR.ui.dialog.button;
CKEDITOR.ui.dialog.fieldset.prototype = CKEDITOR.tools.clone( CKEDITOR.ui.dialog.hbox.prototype );
CKEDITOR.dialog.addUIElement( 'text', textBuilder );
CKEDITOR.dialog.addUIElement( 'password', textBuilder );
CKEDITOR.dialog.addUIElement( 'textarea', commonBuilder );
CKEDITOR.dialog.addUIElement( 'checkbox', commonBuilder );
CKEDITOR.dialog.addUIElement( 'radio', commonBuilder );
CKEDITOR.dialog.addUIElement( 'button', commonBuilder );
CKEDITOR.dialog.addUIElement( 'select', commonBuilder );
CKEDITOR.dialog.addUIElement( 'file', commonBuilder );
CKEDITOR.dialog.addUIElement( 'fileButton', commonBuilder );
CKEDITOR.dialog.addUIElement( 'html', commonBuilder );
CKEDITOR.dialog.addUIElement( 'fieldset', containerBuilder );
})();
/**
* Fired when the value of the uiElement is changed
* @name CKEDITOR.ui.dialog.uiElement#change
* @event
*/
/**
* Fired when the inner frame created by the element is ready.
* Each time the button is used or the dialog is loaded a new
* form might be created.
* @name CKEDITOR.ui.dialog.fileButton#formLoaded
* @event
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/dialogui/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// Regex to scan for at the end of blocks, which are actually placeholders.
// Safari transforms the to \xa0. (#4172)
var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/;
var protectedSourceMarker = '{cke_protected}';
// Return the last non-space child node of the block (#4344).
function lastNoneSpaceChild( block )
{
var lastIndex = block.children.length,
last = block.children[ lastIndex - 1 ];
while ( last && last.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.trim( last.value ) )
last = block.children[ --lastIndex ];
return last;
}
function trimFillers( block, fromSource )
{
// If the current node is a block, and if we're converting from source or
// we're not in IE then search for and remove any tailing BR node.
//
// Also, any at the end of blocks are fillers, remove them as well.
// (#2886)
var children = block.children, lastChild = lastNoneSpaceChild( block );
if ( lastChild )
{
if ( ( fromSource || !CKEDITOR.env.ie ) && lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br' )
children.pop();
if ( lastChild.type == CKEDITOR.NODE_TEXT && tailNbspRegex.test( lastChild.value ) )
children.pop();
}
}
function blockNeedsExtension( block, fromSource, extendEmptyBlock )
{
if( !fromSource && ( !extendEmptyBlock ||
typeof extendEmptyBlock == 'function' && ( extendEmptyBlock( block ) === false ) ) )
return false;
// 1. For IE version >=8, empty blocks are displayed correctly themself in wysiwiyg;
// 2. For the rest, at least table cell and list item need no filler space.
// (#6248)
if ( fromSource && CKEDITOR.env.ie &&
( document.documentMode > 7
|| block.name in CKEDITOR.dtd.tr
|| block.name in CKEDITOR.dtd.$listItem ) )
return false;
var lastChild = lastNoneSpaceChild( block );
return !lastChild || lastChild &&
( lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br'
// Some of the controls in form needs extension too,
// to move cursor at the end of the form. (#4791)
|| block.name == 'form' && lastChild.name == 'input' );
}
function getBlockExtension( isOutput, emptyBlockFiller )
{
return function( node )
{
trimFillers( node, !isOutput );
if ( blockNeedsExtension( node, !isOutput, emptyBlockFiller ) )
{
if ( isOutput || CKEDITOR.env.ie )
node.add( new CKEDITOR.htmlParser.text( '\xa0' ) );
else
node.add( new CKEDITOR.htmlParser.element( 'br', {} ) );
}
};
}
var dtd = CKEDITOR.dtd;
// Define orders of table elements.
var tableOrder = [ 'caption', 'colgroup', 'col', 'thead', 'tfoot', 'tbody' ];
// Find out the list of block-like tags that can contain <br>.
var blockLikeTags = CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent );
for ( var i in blockLikeTags )
{
if ( ! ( 'br' in dtd[i] ) )
delete blockLikeTags[i];
}
// We just avoid filler in <pre> right now.
// TODO: Support filler for <pre>, line break is also occupy line height.
delete blockLikeTags.pre;
var defaultDataFilterRules =
{
elements : {},
attributeNames :
[
// Event attributes (onXYZ) must not be directly set. They can become
// active in the editing area (IE|WebKit).
[ ( /^on/ ), 'data-cke-pa-on' ]
]
};
var defaultDataBlockFilterRules = { elements : {} };
for ( i in blockLikeTags )
defaultDataBlockFilterRules.elements[ i ] = getBlockExtension();
var defaultHtmlFilterRules =
{
elementNames :
[
// Remove the "cke:" namespace prefix.
[ ( /^cke:/ ), '' ],
// Ignore <?xml:namespace> tags.
[ ( /^\?xml:namespace$/ ), '' ]
],
attributeNames :
[
// Attributes saved for changes and protected attributes.
[ ( /^data-cke-(saved|pa)-/ ), '' ],
// All "data-cke-" attributes are to be ignored.
[ ( /^data-cke-.*/ ), '' ],
[ 'hidefocus', '' ]
],
elements :
{
$ : function( element )
{
var attribs = element.attributes;
if ( attribs )
{
// Elements marked as temporary are to be ignored.
if ( attribs[ 'data-cke-temp' ] )
return false;
// Remove duplicated attributes - #3789.
var attributeNames = [ 'name', 'href', 'src' ],
savedAttributeName;
for ( var i = 0 ; i < attributeNames.length ; i++ )
{
savedAttributeName = 'data-cke-saved-' + attributeNames[ i ];
savedAttributeName in attribs && ( delete attribs[ attributeNames[ i ] ] );
}
}
return element;
},
// The contents of table should be in correct order (#4809).
table : function( element )
{
var children = element.children;
children.sort( function ( node1, node2 )
{
return node1.type == CKEDITOR.NODE_ELEMENT && node2.type == node1.type ?
CKEDITOR.tools.indexOf( tableOrder, node1.name ) > CKEDITOR.tools.indexOf( tableOrder, node2.name ) ? 1 : -1 : 0;
} );
},
embed : function( element )
{
var parent = element.parent;
// If the <embed> is child of a <object>, copy the width
// and height attributes from it.
if ( parent && parent.name == 'object' )
{
var parentWidth = parent.attributes.width,
parentHeight = parent.attributes.height;
parentWidth && ( element.attributes.width = parentWidth );
parentHeight && ( element.attributes.height = parentHeight );
}
},
// Restore param elements into self-closing.
param : function( param )
{
param.children = [];
param.isEmpty = true;
return param;
},
// Remove empty link but not empty anchor.(#3829)
a : function( element )
{
if ( !( element.children.length ||
element.attributes.name ||
element.attributes[ 'data-cke-saved-name' ] ) )
{
return false;
}
},
// Remove dummy span in webkit.
span: function( element )
{
if ( element.attributes[ 'class' ] == 'Apple-style-span' )
delete element.name;
},
// Empty <pre> in IE is reported with filler node ( ).
pre : function( element ) { CKEDITOR.env.ie && trimFillers( element ); },
html : function( element )
{
delete element.attributes.contenteditable;
delete element.attributes[ 'class' ];
},
body : function( element )
{
delete element.attributes.spellcheck;
delete element.attributes.contenteditable;
},
style : function( element )
{
var child = element.children[ 0 ];
child && child.value && ( child.value = CKEDITOR.tools.trim( child.value ));
if ( !element.attributes.type )
element.attributes.type = 'text/css';
},
title : function( element )
{
var titleText = element.children[ 0 ];
titleText && ( titleText.value = element.attributes[ 'data-cke-title' ] || '' );
}
},
attributes :
{
'class' : function( value, element )
{
// Remove all class names starting with "cke_".
return CKEDITOR.tools.ltrim( value.replace( /(?:^|\s+)cke_[^\s]*/g, '' ) ) || false;
}
}
};
if ( CKEDITOR.env.ie )
{
// IE outputs style attribute in capital letters. We should convert
// them back to lower case, while not hurting the values (#5930)
defaultHtmlFilterRules.attributes.style = function( value, element )
{
return value.replace( /(^|;)([^\:]+)/g, function( match )
{
return match.toLowerCase();
});
};
}
function protectReadOnly( element )
{
var attrs = element.attributes;
// We should flag that the element was locked by our code so
// it'll be editable by the editor functions (#6046).
if ( attrs.contenteditable != "false" )
attrs[ 'data-cke-editable' ] = attrs.contenteditable ? 'true' : 1;
attrs.contenteditable = "false";
}
function unprotectReadyOnly( element )
{
var attrs = element.attributes;
switch( attrs[ 'data-cke-editable' ] )
{
case 'true': attrs.contenteditable = 'true'; break;
case '1': delete attrs.contenteditable; break;
}
}
// Disable form elements editing mode provided by some browers. (#5746)
for ( i in { input : 1, textarea : 1 } )
{
defaultDataFilterRules.elements[ i ] = protectReadOnly;
defaultHtmlFilterRules.elements[ i ] = unprotectReadyOnly;
}
var protectElementRegex = /<(a|area|img|input)\b([^>]*)>/gi,
protectAttributeRegex = /\b(on\w+|href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi;
var protectElementsRegex = /(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,
encodedElementsRegex = /<cke:encoded>([^<]*)<\/cke:encoded>/gi;
var protectElementNamesRegex = /(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,
unprotectElementNamesRegex = /(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi;
var protectSelfClosingRegex = /<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;
function protectAttributes( html )
{
return html.replace( protectElementRegex, function( element, tag, attributes )
{
return '<' + tag + attributes.replace( protectAttributeRegex, function( fullAttr, attrName )
{
// Avoid corrupting the inline event attributes (#7243).
// We should not rewrite the existed protected attributes, e.g. clipboard content from editor. (#5218)
if ( !( /^on/ ).test( attrName ) && attributes.indexOf( 'data-cke-saved-' + attrName ) == -1 )
return ' data-cke-saved-' + fullAttr + ' ' + fullAttr;
return fullAttr;
}) + '>';
});
}
function protectElements( html )
{
return html.replace( protectElementsRegex, function( match )
{
return '<cke:encoded>' + encodeURIComponent( match ) + '</cke:encoded>';
});
}
function unprotectElements( html )
{
return html.replace( encodedElementsRegex, function( match, encoded )
{
return decodeURIComponent( encoded );
});
}
function protectElementsNames( html )
{
return html.replace( protectElementNamesRegex, '$1cke:$2');
}
function unprotectElementNames( html )
{
return html.replace( unprotectElementNamesRegex, '$1$2' );
}
function protectSelfClosingElements( html )
{
return html.replace( protectSelfClosingRegex, '<cke:$1$2></cke:$1>' );
}
function protectPreFormatted( html )
{
return html.replace( /(<pre\b[^>]*>)(\r\n|\n)/g, '$1$2$2' );
}
function protectRealComments( html )
{
return html.replace( /<!--(?!{cke_protected})[\s\S]+?-->/g, function( match )
{
return '<!--' + protectedSourceMarker +
'{C}' +
encodeURIComponent( match ).replace( /--/g, '%2D%2D' ) +
'-->';
});
}
function unprotectRealComments( html )
{
return html.replace( /<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g, function( match, data )
{
return decodeURIComponent( data );
});
}
function unprotectSource( html, editor )
{
var store = editor._.dataStore;
return html.replace( /<!--\{cke_protected\}([\s\S]+?)-->/g, function( match, data )
{
return decodeURIComponent( data );
}).replace( /\{cke_protected_(\d+)\}/g, function( match, id )
{
return store && store[ id ] || '';
});
}
function protectSource( data, editor )
{
var protectedHtml = [],
protectRegexes = editor.config.protectedSource,
store = editor._.dataStore || ( editor._.dataStore = { id : 1 } ),
tempRegex = /<\!--\{cke_temp(comment)?\}(\d*?)-->/g;
var regexes =
[
// Script tags will also be forced to be protected, otherwise
// IE will execute them.
( /<script[\s\S]*?<\/script>/gi ),
// <noscript> tags (get lost in IE and messed up in FF).
/<noscript[\s\S]*?<\/noscript>/gi
]
.concat( protectRegexes );
// First of any other protection, we must protect all comments
// to avoid loosing them (of course, IE related).
// Note that we use a different tag for comments, as we need to
// transform them when applying filters.
data = data.replace( (/<!--[\s\S]*?-->/g), function( match )
{
return '<!--{cke_tempcomment}' + ( protectedHtml.push( match ) - 1 ) + '-->';
});
for ( var i = 0 ; i < regexes.length ; i++ )
{
data = data.replace( regexes[i], function( match )
{
match = match.replace( tempRegex, // There could be protected source inside another one. (#3869).
function( $, isComment, id )
{
return protectedHtml[ id ];
}
);
// Avoid protecting over protected, e.g. /\{.*?\}/
return ( /cke_temp(comment)?/ ).test( match ) ? match
: '<!--{cke_temp}' + ( protectedHtml.push( match ) - 1 ) + '-->';
});
}
data = data.replace( tempRegex, function( $, isComment, id )
{
return '<!--' + protectedSourceMarker +
( isComment ? '{C}' : '' ) +
encodeURIComponent( protectedHtml[ id ] ).replace( /--/g, '%2D%2D' ) +
'-->';
}
);
// Different protection pattern is used for those that
// live in attributes to avoid from being HTML encoded.
return data.replace( /(['"]).*?\1/g, function ( match )
{
return match.replace( /<!--\{cke_protected\}([\s\S]+?)-->/g, function( match, data )
{
store[ store.id ] = decodeURIComponent( data );
return '{cke_protected_'+ ( store.id++ ) + '}';
});
});
}
CKEDITOR.plugins.add( 'htmldataprocessor',
{
requires : [ 'htmlwriter' ],
init : function( editor )
{
var dataProcessor = editor.dataProcessor = new CKEDITOR.htmlDataProcessor( editor );
dataProcessor.writer.forceSimpleAmpersand = editor.config.forceSimpleAmpersand;
dataProcessor.dataFilter.addRules( defaultDataFilterRules );
dataProcessor.dataFilter.addRules( defaultDataBlockFilterRules );
dataProcessor.htmlFilter.addRules( defaultHtmlFilterRules );
var defaultHtmlBlockFilterRules = { elements : {} };
for ( i in blockLikeTags )
defaultHtmlBlockFilterRules.elements[ i ] = getBlockExtension( true, editor.config.fillEmptyBlocks );
dataProcessor.htmlFilter.addRules( defaultHtmlBlockFilterRules );
},
onLoad : function()
{
! ( 'fillEmptyBlocks' in CKEDITOR.config ) && ( CKEDITOR.config.fillEmptyBlocks = 1 );
}
});
CKEDITOR.htmlDataProcessor = function( editor )
{
this.editor = editor;
this.writer = new CKEDITOR.htmlWriter();
this.dataFilter = new CKEDITOR.htmlParser.filter();
this.htmlFilter = new CKEDITOR.htmlParser.filter();
};
CKEDITOR.htmlDataProcessor.prototype =
{
toHtml : function( data, fixForBody )
{
// The source data is already HTML, but we need to clean
// it up and apply the filter.
data = protectSource( data, this.editor );
// Before anything, we must protect the URL attributes as the
// browser may changing them when setting the innerHTML later in
// the code.
data = protectAttributes( data );
// Protect elements than can't be set inside a DIV. E.g. IE removes
// style tags from innerHTML. (#3710)
data = protectElements( data );
// Certain elements has problem to go through DOM operation, protect
// them by prefixing 'cke' namespace. (#3591)
data = protectElementsNames( data );
// All none-IE browsers ignore self-closed custom elements,
// protecting them into open-close. (#3591)
data = protectSelfClosingElements( data );
// Compensate one leading line break after <pre> open as browsers
// eat it up. (#5789)
data = protectPreFormatted( data );
// Call the browser to help us fixing a possibly invalid HTML
// structure.
var div = new CKEDITOR.dom.element( 'div' );
// Add fake character to workaround IE comments bug. (#3801)
div.setHtml( 'a' + data );
data = div.getHtml().substr( 1 );
// Unprotect "some" of the protected elements at this point.
data = unprotectElementNames( data );
data = unprotectElements( data );
// Restore the comments that have been protected, in this way they
// can be properly filtered.
data = unprotectRealComments( data );
// Now use our parser to make further fixes to the structure, as
// well as apply the filter.
var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data, fixForBody ),
writer = new CKEDITOR.htmlParser.basicWriter();
fragment.writeHtml( writer, this.dataFilter );
data = writer.getHtml( true );
// Protect the real comments again.
data = protectRealComments( data );
return data;
},
toDataFormat : function( html, fixForBody )
{
var writer = this.writer,
fragment = CKEDITOR.htmlParser.fragment.fromHtml( html, fixForBody );
writer.reset();
fragment.writeHtml( writer, this.htmlFilter );
var data = writer.getHtml( true );
// Restore those non-HTML protected source. (#4475,#4880)
data = unprotectRealComments( data );
data = unprotectSource( data, this.editor );
return data;
}
};
})();
/**
* Whether to force using "&" instead of "&amp;" in elements attributes
* values, it's not recommended to change this setting for compliance with the
* W3C XHTML 1.0 standards (<a href="http://www.w3.org/TR/xhtml1/#C_12">C.12, XHTML 1.0</a>).
* @name CKEDITOR.config.forceSimpleAmpersand
* @name CKEDITOR.config.forceSimpleAmpersand
* @type Boolean
* @default false
* @example
* config.forceSimpleAmpersand = false;
*/
/**
* Whether a filler text (non-breaking space entity - ) will be inserted into empty block elements in HTML output,
* this is used to render block elements properly with line-height; When a function is instead specified,
* it'll be passed a {@link CKEDITOR.htmlParser.element} to decide whether adding the filler text
* by expecting a boolean return value.
* @name CKEDITOR.config.fillEmptyBlocks
* @since 3.5
* @type Boolean
* @default true
* @example
* config.fillEmptyBlocks = false; // Prevent filler nodes in all empty blocks.
*
* // Prevent filler node only in float cleaners.
* config.fillEmptyBlocks = function( element )
* {
* if ( element.attributes[ 'class' ].indexOf ( 'clear-both' ) != -1 )
* return false;
* }
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/htmldataprocessor/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'menu',
{
beforeInit : function( editor )
{
var groups = editor.config.menu_groups.split( ',' ),
groupsOrder = editor._.menuGroups = {},
menuItems = editor._.menuItems = {};
for ( var i = 0 ; i < groups.length ; i++ )
groupsOrder[ groups[ i ] ] = i + 1;
/**
* Registers an item group to the editor context menu in order to make it
* possible to associate it with menu items later.
* @name CKEDITOR.editor.prototype.addMenuGroup
* @param {String} name Specify a group name.
* @param {Number} [order=100] Define the display sequence of this group
* inside the menu. A smaller value gets displayed first.
*/
editor.addMenuGroup = function( name, order )
{
groupsOrder[ name ] = order || 100;
};
/**
* Adds an item from the specified definition to the editor context menu.
* @name CKEDITOR.editor.prototype.addMenuItem
* @param {String} name The menu item name.
* @param {CKEDITOR.menu.definition} definition The menu item definition.
*/
editor.addMenuItem = function( name, definition )
{
if ( groupsOrder[ definition.group ] )
menuItems[ name ] = new CKEDITOR.menuItem( this, name, definition );
};
/**
* Adds one or more items from the specified definition array to the editor context menu.
* @name CKEDITOR.editor.prototype.addMenuItems
* @param {Array} definitions List of definitions for each menu item as if {@link CKEDITOR.editor.addMenuItem} is called.
*/
editor.addMenuItems = function( definitions )
{
for ( var itemName in definitions )
{
this.addMenuItem( itemName, definitions[ itemName ] );
}
};
/**
* Retrieves a particular menu item definition from the editor context menu.
* @name CKEDITOR.editor.prototype.getMenuItem
* @param {String} name The name of the desired menu item.
* @return {CKEDITOR.menu.definition}
*/
editor.getMenuItem = function( name )
{
return menuItems[ name ];
};
/**
* Removes a particular menu item added before from the editor context menu.
* @name CKEDITOR.editor.prototype.removeMenuItem
* @param {String} name The name of the desired menu item.
* @since 3.6.1
*/
editor.removeMenuItem = function( name )
{
delete menuItems[ name ];
};
},
requires : [ 'floatpanel' ]
});
(function()
{
CKEDITOR.menu = CKEDITOR.tools.createClass(
{
$ : function( editor, definition )
{
definition = this._.definition = definition || {};
this.id = CKEDITOR.tools.getNextId();
this.editor = editor;
this.items = [];
this._.listeners = [];
this._.level = definition.level || 1;
var panelDefinition = CKEDITOR.tools.extend( {}, definition.panel,
{
css : editor.skin.editor.css,
level : this._.level - 1,
block : {}
} );
var attrs = panelDefinition.block.attributes = ( panelDefinition.attributes || {} );
// Provide default role of 'menu'.
!attrs.role && ( attrs.role = 'menu' );
this._.panelDefinition = panelDefinition;
},
_ :
{
onShow : function()
{
var selection = this.editor.getSelection();
// Selection will be unavailable after menu shows up
// in IE, lock it now.
if ( CKEDITOR.env.ie )
selection && selection.lock();
var element = selection && selection.getStartElement(),
listeners = this._.listeners,
includedItems = [];
this.removeAll();
// Call all listeners, filling the list of items to be displayed.
for ( var i = 0 ; i < listeners.length ; i++ )
{
var listenerItems = listeners[ i ]( element, selection );
if ( listenerItems )
{
for ( var itemName in listenerItems )
{
var item = this.editor.getMenuItem( itemName );
if ( item && ( !item.command || this.editor.getCommand( item.command ).state ) )
{
item.state = listenerItems[ itemName ];
this.add( item );
}
}
}
}
},
onClick : function( item )
{
this.hide( false );
if ( item.onClick )
item.onClick();
else if ( item.command )
this.editor.execCommand( item.command );
},
onEscape : function( keystroke )
{
var parent = this.parent;
// 1. If it's sub-menu, restore the last focused item
// of upper level menu.
// 2. In case of a top-menu, close it.
if ( parent )
{
parent._.panel.hideChild();
// Restore parent block item focus.
var parentBlock = parent._.panel._.panel._.currentBlock,
parentFocusIndex = parentBlock._.focusIndex;
parentBlock._.markItem( parentFocusIndex );
}
else if ( keystroke == 27 )
this.hide();
return false;
},
onHide : function()
{
if ( CKEDITOR.env.ie )
{
var selection = this.editor.getSelection();
selection && selection.unlock();
}
this.onHide && this.onHide();
},
showSubMenu : function( index )
{
var menu = this._.subMenu,
item = this.items[ index ],
subItemDefs = item.getItems && item.getItems();
// If this item has no subitems, we just hide the submenu, if
// available, and return back.
if ( !subItemDefs )
{
this._.panel.hideChild();
return;
}
// Record parent menu focused item first (#3389).
var block = this._.panel.getBlock( this.id );
block._.focusIndex = index;
// Create the submenu, if not available, or clean the existing
// one.
if ( menu )
menu.removeAll();
else
{
menu = this._.subMenu = new CKEDITOR.menu( this.editor,
CKEDITOR.tools.extend( {}, this._.definition, { level : this._.level + 1 }, true ) );
menu.parent = this;
menu._.onClick = CKEDITOR.tools.bind( this._.onClick, this );
}
// Add all submenu items to the menu.
for ( var subItemName in subItemDefs )
{
var subItem = this.editor.getMenuItem( subItemName );
if ( subItem )
{
subItem.state = subItemDefs[ subItemName ];
menu.add( subItem );
}
}
// Get the element representing the current item.
var element = this._.panel.getBlock( this.id ).element.getDocument().getById( this.id + String( index ) );
// Show the submenu.
menu.show( element, 2 );
}
},
proto :
{
add : function( item )
{
// Later we may sort the items, but Array#sort is not stable in
// some browsers, here we're forcing the original sequence with
// 'order' attribute if it hasn't been assigned. (#3868)
if ( !item.order )
item.order = this.items.length;
this.items.push( item );
},
removeAll : function()
{
this.items = [];
},
show : function( offsetParent, corner, offsetX, offsetY )
{
// Not for sub menu.
if ( !this.parent )
{
this._.onShow();
// Don't menu with zero items.
if ( ! this.items.length )
return;
}
corner = corner || ( this.editor.lang.dir == 'rtl' ? 2 : 1 );
var items = this.items,
editor = this.editor,
panel = this._.panel,
element = this._.element;
// Create the floating panel for this menu.
if ( !panel )
{
panel = this._.panel = new CKEDITOR.ui.floatPanel( this.editor,
CKEDITOR.document.getBody(),
this._.panelDefinition,
this._.level );
panel.onEscape = CKEDITOR.tools.bind( function( keystroke )
{
if ( this._.onEscape( keystroke ) === false )
return false;
},
this );
panel.onHide = CKEDITOR.tools.bind( function()
{
this._.onHide && this._.onHide();
},
this );
// Create an autosize block inside the panel.
var block = panel.addBlock( this.id, this._.panelDefinition.block );
block.autoSize = true;
var keys = block.keys;
keys[ 40 ] = 'next'; // ARROW-DOWN
keys[ 9 ] = 'next'; // TAB
keys[ 38 ] = 'prev'; // ARROW-UP
keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB
keys[ ( editor.lang.dir == 'rtl' ? 37 : 39 ) ]= CKEDITOR.env.ie ? 'mouseup' : 'click'; // ARROW-RIGHT/ARROW-LEFT(rtl)
keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE
CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (#8041).
element = this._.element = block.element;
element.addClass( editor.skinClass );
var elementDoc = element.getDocument();
elementDoc.getBody().setStyle( 'overflow', 'hidden' );
elementDoc.getElementsByTag( 'html' ).getItem( 0 ).setStyle( 'overflow', 'hidden' );
this._.itemOverFn = CKEDITOR.tools.addFunction( function( index )
{
clearTimeout( this._.showSubTimeout );
this._.showSubTimeout = CKEDITOR.tools.setTimeout( this._.showSubMenu, editor.config.menu_subMenuDelay || 400, this, [ index ] );
},
this );
this._.itemOutFn = CKEDITOR.tools.addFunction( function( index )
{
clearTimeout( this._.showSubTimeout );
},
this );
this._.itemClickFn = CKEDITOR.tools.addFunction( function( index )
{
var item = this.items[ index ];
if ( item.state == CKEDITOR.TRISTATE_DISABLED )
{
this.hide();
return;
}
if ( item.getItems )
this._.showSubMenu( index );
else
this._.onClick( item );
},
this );
}
// Put the items in the right order.
sortItems( items );
var chromeRoot = editor.container.getChild( 1 ),
mixedContentClass = chromeRoot.hasClass( 'cke_mixed_dir_content' ) ? ' cke_mixed_dir_content' : '';
// Build the HTML that composes the menu and its items.
var output = [ '<div class="cke_menu' + mixedContentClass + '" role="presentation">' ];
var length = items.length,
lastGroup = length && items[ 0 ].group;
for ( var i = 0 ; i < length ; i++ )
{
var item = items[ i ];
if ( lastGroup != item.group )
{
output.push( '<div class="cke_menuseparator" role="separator"></div>' );
lastGroup = item.group;
}
item.render( this, i, output );
}
output.push( '</div>' );
// Inject the HTML inside the panel.
element.setHtml( output.join( '' ) );
CKEDITOR.ui.fire( 'ready', this );
// Show the panel.
if ( this.parent )
this.parent._.panel.showAsChild( panel, this.id, offsetParent, corner, offsetX, offsetY );
else
panel.showBlock( this.id, offsetParent, corner, offsetX, offsetY );
editor.fire( 'menuShow', [ panel ] );
},
addListener : function( listenerFn )
{
this._.listeners.push( listenerFn );
},
hide : function( returnFocus )
{
this._.onHide && this._.onHide();
this._.panel && this._.panel.hide( returnFocus );
}
}
});
function sortItems( items )
{
items.sort( function( itemA, itemB )
{
if ( itemA.group < itemB.group )
return -1;
else if ( itemA.group > itemB.group )
return 1;
return itemA.order < itemB.order ? -1 :
itemA.order > itemB.order ? 1 :
0;
});
}
CKEDITOR.menuItem = CKEDITOR.tools.createClass(
{
$ : function( editor, name, definition )
{
CKEDITOR.tools.extend( this, definition,
// Defaults
{
order : 0,
className : 'cke_button_' + name
});
// Transform the group name into its order number.
this.group = editor._.menuGroups[ this.group ];
this.editor = editor;
this.name = name;
},
proto :
{
render : function( menu, index, output )
{
var id = menu.id + String( index ),
state = ( typeof this.state == 'undefined' ) ? CKEDITOR.TRISTATE_OFF : this.state;
var classes = ' cke_' + (
state == CKEDITOR.TRISTATE_ON ? 'on' :
state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' :
'off' );
var htmlLabel = this.label;
if ( this.className )
classes += ' ' + this.className;
var hasSubMenu = this.getItems;
output.push(
'<span class="cke_menuitem' + ( this.icon && this.icon.indexOf( '.png' ) == -1 ? ' cke_noalphafix' : '' ) + '">' +
'<a id="', id, '"' +
' class="', classes, '" href="javascript:void(\'', ( this.label || '' ).replace( "'", '' ), '\')"' +
' title="', this.label, '"' +
' tabindex="-1"' +
'_cke_focus=1' +
' hidefocus="true"' +
' role="menuitem"' +
( hasSubMenu ? 'aria-haspopup="true"' : '' ) +
( state == CKEDITOR.TRISTATE_DISABLED ? 'aria-disabled="true"' : '' ) +
( state == CKEDITOR.TRISTATE_ON ? 'aria-pressed="true"' : '' ) );
// Some browsers don't cancel key events in the keydown but in the
// keypress.
// TODO: Check if really needed for Gecko+Mac.
if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) )
{
output.push(
' onkeypress="return false;"' );
}
// With Firefox, we need to force the button to redraw, otherwise it
// will remain in the focus state.
if ( CKEDITOR.env.gecko )
{
output.push(
' onblur="this.style.cssText = this.style.cssText;"' );
}
var offset = ( this.iconOffset || 0 ) * -16;
output.push(
// ' onkeydown="return CKEDITOR.ui.button._.keydown(', index, ', event);"' +
' onmouseover="CKEDITOR.tools.callFunction(', menu._.itemOverFn, ',', index, ');"' +
' onmouseout="CKEDITOR.tools.callFunction(', menu._.itemOutFn, ',', index, ');" ' +
( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188
'="CKEDITOR.tools.callFunction(', menu._.itemClickFn, ',', index, '); return false;"' +
'>' +
'<span class="cke_icon_wrapper"><span class="cke_icon"' +
( this.icon ? ' style="background-image:url(' + CKEDITOR.getUrl( this.icon ) + ');background-position:0 ' + offset + 'px;"'
: '' ) +
'></span></span>' +
'<span class="cke_label">' );
if ( hasSubMenu )
{
output.push(
'<span class="cke_menuarrow">',
'<span>&#',
( this.editor.lang.dir == 'rtl' ?
'9668' : // BLACK LEFT-POINTING POINTER
'9658' ), // BLACK RIGHT-POINTING POINTER
';</span>',
'</span>' );
}
output.push(
htmlLabel,
'</span>' +
'</a>' +
'</span>' );
}
}
});
})();
/**
* The amount of time, in milliseconds, the editor waits before displaying submenu
* options when moving the mouse over options that contain submenus, like the
* "Cell Properties" entry for tables.
* @type Number
* @default 400
* @example
* // Remove the submenu delay.
* config.menu_subMenuDelay = 0;
*/
/**
* A comma separated list of items group names to be displayed in the context
* menu. The order of items will reflect the order specified in this list if
* no priority was defined in the groups.
* @type String
* @default 'clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea'
* @example
* config.menu_groups = 'clipboard,table,anchor,link,image';
*/
CKEDITOR.config.menu_groups =
'clipboard,' +
'form,' +
'tablecell,tablecellproperties,tablerow,tablecolumn,table,'+
'anchor,link,image,flash,' +
'checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div'; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/menu/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The floating dialog plugin.
*/
/**
* No resize for this dialog.
* @constant
*/
CKEDITOR.DIALOG_RESIZE_NONE = 0;
/**
* Only allow horizontal resizing for this dialog, disable vertical resizing.
* @constant
*/
CKEDITOR.DIALOG_RESIZE_WIDTH = 1;
/**
* Only allow vertical resizing for this dialog, disable horizontal resizing.
* @constant
*/
CKEDITOR.DIALOG_RESIZE_HEIGHT = 2;
/*
* Allow the dialog to be resized in both directions.
* @constant
*/
CKEDITOR.DIALOG_RESIZE_BOTH = 3;
(function()
{
var cssLength = CKEDITOR.tools.cssLength;
function isTabVisible( tabId )
{
return !!this._.tabs[ tabId ][ 0 ].$.offsetHeight;
}
function getPreviousVisibleTab()
{
var tabId = this._.currentTabId,
length = this._.tabIdList.length,
tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId ) + length;
for ( var i = tabIndex - 1 ; i > tabIndex - length ; i-- )
{
if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) )
return this._.tabIdList[ i % length ];
}
return null;
}
function getNextVisibleTab()
{
var tabId = this._.currentTabId,
length = this._.tabIdList.length,
tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId );
for ( var i = tabIndex + 1 ; i < tabIndex + length ; i++ )
{
if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) )
return this._.tabIdList[ i % length ];
}
return null;
}
function clearOrRecoverTextInputValue( container, isRecover )
{
var inputs = container.$.getElementsByTagName( 'input' );
for ( var i = 0, length = inputs.length; i < length ; i++ )
{
var item = new CKEDITOR.dom.element( inputs[ i ] );
if ( item.getAttribute( 'type' ).toLowerCase() == 'text' )
{
if ( isRecover )
{
item.setAttribute( 'value', item.getCustomData( 'fake_value' ) || '' );
item.removeCustomData( 'fake_value' );
}
else
{
item.setCustomData( 'fake_value', item.getAttribute( 'value' ) );
item.setAttribute( 'value', '' );
}
}
}
}
// Handle dialog element validation state UI changes.
function handleFieldValidated( isValid, msg )
{
var input = this.getInputElement();
if ( input )
{
isValid ? input.removeAttribute( 'aria-invalid' )
: input.setAttribute( 'aria-invalid', true );
}
if ( !isValid )
{
if ( this.select )
this.select();
else
this.focus();
}
msg && alert( msg );
this.fire( 'validated', { valid : isValid, msg : msg } );
}
function resetField()
{
var input = this.getInputElement();
input && input.removeAttribute( 'aria-invalid' );
}
/**
* This is the base class for runtime dialog objects. An instance of this
* class represents a single named dialog for a single editor instance.
* @param {Object} editor The editor which created the dialog.
* @param {String} dialogName The dialog's registered name.
* @constructor
* @example
* var dialogObj = new CKEDITOR.dialog( editor, 'smiley' );
*/
CKEDITOR.dialog = function( editor, dialogName )
{
// Load the dialog definition.
var definition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ],
defaultDefinition = CKEDITOR.tools.clone( defaultDialogDefinition ),
buttonsOrder = editor.config.dialog_buttonsOrder || 'OS',
dir = editor.lang.dir;
if ( ( buttonsOrder == 'OS' && CKEDITOR.env.mac ) || // The buttons in MacOS Apps are in reverse order (#4750)
( buttonsOrder == 'rtl' && dir == 'ltr' ) ||
( buttonsOrder == 'ltr' && dir == 'rtl' ) )
defaultDefinition.buttons.reverse();
// Completes the definition with the default values.
definition = CKEDITOR.tools.extend( definition( editor ), defaultDefinition );
// Clone a functionally independent copy for this dialog.
definition = CKEDITOR.tools.clone( definition );
// Create a complex definition object, extending it with the API
// functions.
definition = new definitionObject( this, definition );
var doc = CKEDITOR.document;
var themeBuilt = editor.theme.buildDialog( editor );
// Initialize some basic parameters.
this._ =
{
editor : editor,
element : themeBuilt.element,
name : dialogName,
contentSize : { width : 0, height : 0 },
size : { width : 0, height : 0 },
contents : {},
buttons : {},
accessKeyMap : {},
// Initialize the tab and page map.
tabs : {},
tabIdList : [],
currentTabId : null,
currentTabIndex : null,
pageCount : 0,
lastTab : null,
tabBarMode : false,
// Initialize the tab order array for input widgets.
focusList : [],
currentFocusIndex : 0,
hasFocus : false
};
this.parts = themeBuilt.parts;
CKEDITOR.tools.setTimeout( function()
{
editor.fire( 'ariaWidget', this.parts.contents );
},
0, this );
// Set the startup styles for the dialog, avoiding it enlarging the
// page size on the dialog creation.
var startStyles = {
position : CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed',
top : 0,
visibility : 'hidden'
};
startStyles[ dir == 'rtl' ? 'right' : 'left' ] = 0;
this.parts.dialog.setStyles( startStyles );
// Call the CKEDITOR.event constructor to initialize this instance.
CKEDITOR.event.call( this );
// Fire the "dialogDefinition" event, making it possible to customize
// the dialog definition.
this.definition = definition = CKEDITOR.fire( 'dialogDefinition',
{
name : dialogName,
definition : definition
}
, editor ).definition;
var tabsToRemove = {};
// Cache tabs that should be removed.
if ( !( 'removeDialogTabs' in editor._ ) && editor.config.removeDialogTabs )
{
var removeContents = editor.config.removeDialogTabs.split( ';' );
for ( i = 0; i < removeContents.length; i++ )
{
var parts = removeContents[ i ].split( ':' );
if ( parts.length == 2 )
{
var removeDialogName = parts[ 0 ];
if ( !tabsToRemove[ removeDialogName ] )
tabsToRemove[ removeDialogName ] = [];
tabsToRemove[ removeDialogName ].push( parts[ 1 ] );
}
}
editor._.removeDialogTabs = tabsToRemove;
}
// Remove tabs of this dialog.
if ( editor._.removeDialogTabs && ( tabsToRemove = editor._.removeDialogTabs[ dialogName ] ) )
{
for ( i = 0; i < tabsToRemove.length; i++ )
definition.removeContents( tabsToRemove[ i ] );
}
// Initialize load, show, hide, ok and cancel events.
if ( definition.onLoad )
this.on( 'load', definition.onLoad );
if ( definition.onShow )
this.on( 'show', definition.onShow );
if ( definition.onHide )
this.on( 'hide', definition.onHide );
if ( definition.onOk )
{
this.on( 'ok', function( evt )
{
// Dialog confirm might probably introduce content changes (#5415).
editor.fire( 'saveSnapshot' );
setTimeout( function () { editor.fire( 'saveSnapshot' ); }, 0 );
if ( definition.onOk.call( this, evt ) === false )
evt.data.hide = false;
});
}
if ( definition.onCancel )
{
this.on( 'cancel', function( evt )
{
if ( definition.onCancel.call( this, evt ) === false )
evt.data.hide = false;
});
}
var me = this;
// Iterates over all items inside all content in the dialog, calling a
// function for each of them.
var iterContents = function( func )
{
var contents = me._.contents,
stop = false;
for ( var i in contents )
{
for ( var j in contents[i] )
{
stop = func.call( this, contents[i][j] );
if ( stop )
return;
}
}
};
this.on( 'ok', function( evt )
{
iterContents( function( item )
{
if ( item.validate )
{
var retval = item.validate( this ),
invalid = typeof ( retval ) == 'string' || retval === false;
if ( invalid )
{
evt.data.hide = false;
evt.stop();
}
handleFieldValidated.call( item, !invalid, typeof retval == 'string' ? retval : undefined );
return invalid;
}
});
}, this, null, 0 );
this.on( 'cancel', function( evt )
{
iterContents( function( item )
{
if ( item.isChanged() )
{
if ( !confirm( editor.lang.common.confirmCancel ) )
evt.data.hide = false;
return true;
}
});
}, this, null, 0 );
this.parts.close.on( 'click', function( evt )
{
if ( this.fire( 'cancel', { hide : true } ).hide !== false )
this.hide();
evt.data.preventDefault();
}, this );
// Sort focus list according to tab order definitions.
function setupFocus()
{
var focusList = me._.focusList;
focusList.sort( function( a, b )
{
// Mimics browser tab order logics;
if ( a.tabIndex != b.tabIndex )
return b.tabIndex - a.tabIndex;
// Sort is not stable in some browsers,
// fall-back the comparator to 'focusIndex';
else
return a.focusIndex - b.focusIndex;
});
var size = focusList.length;
for ( var i = 0; i < size; i++ )
focusList[ i ].focusIndex = i;
}
function changeFocus( forward )
{
var focusList = me._.focusList,
offset = forward ? 1 : -1;
if ( focusList.length < 1 )
return;
var current = me._.currentFocusIndex;
// Trigger the 'blur' event of any input element before anything,
// since certain UI updates may depend on it.
try
{
focusList[ current ].getInputElement().$.blur();
}
catch( e ){}
var startIndex = ( current + offset + focusList.length ) % focusList.length,
currentIndex = startIndex;
while ( !focusList[ currentIndex ].isFocusable() )
{
currentIndex = ( currentIndex + offset + focusList.length ) % focusList.length;
if ( currentIndex == startIndex )
break;
}
focusList[ currentIndex ].focus();
// Select whole field content.
if ( focusList[ currentIndex ].type == 'text' )
focusList[ currentIndex ].select();
}
this.changeFocus = changeFocus;
var processed;
function focusKeydownHandler( evt )
{
// If I'm not the top dialog, ignore.
if ( me != CKEDITOR.dialog._.currentTop )
return;
var keystroke = evt.data.getKeystroke(),
rtl = editor.lang.dir == 'rtl';
processed = 0;
if ( keystroke == 9 || keystroke == CKEDITOR.SHIFT + 9 )
{
var shiftPressed = ( keystroke == CKEDITOR.SHIFT + 9 );
// Handling Tab and Shift-Tab.
if ( me._.tabBarMode )
{
// Change tabs.
var nextId = shiftPressed ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me );
me.selectPage( nextId );
me._.tabs[ nextId ][ 0 ].focus();
}
else
{
// Change the focus of inputs.
changeFocus( !shiftPressed );
}
processed = 1;
}
else if ( keystroke == CKEDITOR.ALT + 121 && !me._.tabBarMode && me.getPageCount() > 1 )
{
// Alt-F10 puts focus into the current tab item in the tab bar.
me._.tabBarMode = true;
me._.tabs[ me._.currentTabId ][ 0 ].focus();
processed = 1;
}
else if ( ( keystroke == 37 || keystroke == 39 ) && me._.tabBarMode )
{
// Arrow keys - used for changing tabs.
nextId = ( keystroke == ( rtl ? 39 : 37 ) ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ) );
me.selectPage( nextId );
me._.tabs[ nextId ][ 0 ].focus();
processed = 1;
}
else if ( ( keystroke == 13 || keystroke == 32 ) && me._.tabBarMode )
{
this.selectPage( this._.currentTabId );
this._.tabBarMode = false;
this._.currentFocusIndex = -1;
changeFocus( true );
processed = 1;
}
if ( processed )
{
evt.stop();
evt.data.preventDefault();
}
}
function focusKeyPressHandler( evt )
{
processed && evt.data.preventDefault();
}
var dialogElement = this._.element;
// Add the dialog keyboard handlers.
this.on( 'show', function()
{
dialogElement.on( 'keydown', focusKeydownHandler, this, null, 0 );
// Some browsers instead, don't cancel key events in the keydown, but in the
// keypress. So we must do a longer trip in those cases. (#4531)
if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) )
dialogElement.on( 'keypress', focusKeyPressHandler, this );
} );
this.on( 'hide', function()
{
dialogElement.removeListener( 'keydown', focusKeydownHandler );
if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) )
dialogElement.removeListener( 'keypress', focusKeyPressHandler );
// Reset fields state when closing dialog.
iterContents( function( item ) { resetField.apply( item ); } );
} );
this.on( 'iframeAdded', function( evt )
{
var doc = new CKEDITOR.dom.document( evt.data.iframe.$.contentWindow.document );
doc.on( 'keydown', focusKeydownHandler, this, null, 0 );
} );
// Auto-focus logic in dialog.
this.on( 'show', function()
{
// Setup tabIndex on showing the dialog instead of on loading
// to allow dynamic tab order happen in dialog definition.
setupFocus();
if ( editor.config.dialog_startupFocusTab
&& me._.pageCount > 1 )
{
me._.tabBarMode = true;
me._.tabs[ me._.currentTabId ][ 0 ].focus();
}
else if ( !this._.hasFocus )
{
this._.currentFocusIndex = -1;
// Decide where to put the initial focus.
if ( definition.onFocus )
{
var initialFocus = definition.onFocus.call( this );
// Focus the field that the user specified.
initialFocus && initialFocus.focus();
}
// Focus the first field in layout order.
else
changeFocus( true );
/*
* IE BUG: If the initial focus went into a non-text element (e.g. button),
* then IE would still leave the caret inside the editing area.
*/
if ( this._.editor.mode == 'wysiwyg' && CKEDITOR.env.ie )
{
var $selection = editor.document.$.selection,
$range = $selection.createRange();
if ( $range )
{
if ( $range.parentElement && $range.parentElement().ownerDocument == editor.document.$
|| $range.item && $range.item( 0 ).ownerDocument == editor.document.$ )
{
var $myRange = document.body.createTextRange();
$myRange.moveToElementText( this.getElement().getFirst().$ );
$myRange.collapse( true );
$myRange.select();
}
}
}
}
}, this, null, 0xffffffff );
// IE6 BUG: Text fields and text areas are only half-rendered the first time the dialog appears in IE6 (#2661).
// This is still needed after [2708] and [2709] because text fields in hidden TR tags are still broken.
if ( CKEDITOR.env.ie6Compat )
{
this.on( 'load', function( evt )
{
var outer = this.getElement(),
inner = outer.getFirst();
inner.remove();
inner.appendTo( outer );
}, this );
}
initDragAndDrop( this );
initResizeHandles( this );
// Insert the title.
( new CKEDITOR.dom.text( definition.title, CKEDITOR.document ) ).appendTo( this.parts.title );
// Insert the tabs and contents.
for ( var i = 0 ; i < definition.contents.length ; i++ )
{
var page = definition.contents[i];
page && this.addPage( page );
}
this.parts[ 'tabs' ].on( 'click', function( evt )
{
var target = evt.data.getTarget();
// If we aren't inside a tab, bail out.
if ( target.hasClass( 'cke_dialog_tab' ) )
{
// Get the ID of the tab, without the 'cke_' prefix and the unique number suffix.
var id = target.$.id;
this.selectPage( id.substring( 4, id.lastIndexOf( '_' ) ) );
if ( this._.tabBarMode )
{
this._.tabBarMode = false;
this._.currentFocusIndex = -1;
changeFocus( true );
}
evt.data.preventDefault();
}
}, this );
// Insert buttons.
var buttonsHtml = [],
buttons = CKEDITOR.dialog._.uiElementBuilders.hbox.build( this,
{
type : 'hbox',
className : 'cke_dialog_footer_buttons',
widths : [],
children : definition.buttons
}, buttonsHtml ).getChild();
this.parts.footer.setHtml( buttonsHtml.join( '' ) );
for ( i = 0 ; i < buttons.length ; i++ )
this._.buttons[ buttons[i].id ] = buttons[i];
};
// Focusable interface. Use it via dialog.addFocusable.
function Focusable( dialog, element, index )
{
this.element = element;
this.focusIndex = index;
// TODO: support tabIndex for focusables.
this.tabIndex = 0;
this.isFocusable = function()
{
return !element.getAttribute( 'disabled' ) && element.isVisible();
};
this.focus = function()
{
dialog._.currentFocusIndex = this.focusIndex;
this.element.focus();
};
// Bind events
element.on( 'keydown', function( e )
{
if ( e.data.getKeystroke() in { 32:1, 13:1 } )
this.fire( 'click' );
} );
element.on( 'focus', function()
{
this.fire( 'mouseover' );
} );
element.on( 'blur', function()
{
this.fire( 'mouseout' );
} );
}
CKEDITOR.dialog.prototype =
{
destroy : function()
{
this.hide();
this._.element.remove();
},
/**
* Resizes the dialog.
* @param {Number} width The width of the dialog in pixels.
* @param {Number} height The height of the dialog in pixels.
* @function
* @example
* dialogObj.resize( 800, 640 );
*/
resize : (function()
{
return function( width, height )
{
if ( this._.contentSize && this._.contentSize.width == width && this._.contentSize.height == height )
return;
CKEDITOR.dialog.fire( 'resize',
{
dialog : this,
skin : this._.editor.skinName,
width : width,
height : height
}, this._.editor );
this.fire( 'resize',
{
skin : this._.editor.skinName,
width : width,
height : height
}, this._.editor );
// Update dialog position when dimension get changed in RTL.
if ( this._.editor.lang.dir == 'rtl' && this._.position )
this._.position.x = CKEDITOR.document.getWindow().getViewPaneSize().width -
this._.contentSize.width - parseInt( this._.element.getFirst().getStyle( 'right' ), 10 );
this._.contentSize = { width : width, height : height };
};
})(),
/**
* Gets the current size of the dialog in pixels.
* @returns {Object} An object with "width" and "height" properties.
* @example
* var width = dialogObj.getSize().width;
*/
getSize : function()
{
var element = this._.element.getFirst();
return { width : element.$.offsetWidth || 0, height : element.$.offsetHeight || 0};
},
/**
* Moves the dialog to an (x, y) coordinate relative to the window.
* @function
* @param {Number} x The target x-coordinate.
* @param {Number} y The target y-coordinate.
* @param {Boolean} save Flag indicate whether the dialog position should be remembered on next open up.
* @example
* dialogObj.move( 10, 40 );
*/
move : (function()
{
var isFixed;
return function( x, y, save )
{
// The dialog may be fixed positioned or absolute positioned. Ask the
// browser what is the current situation first.
var element = this._.element.getFirst(),
rtl = this._.editor.lang.dir == 'rtl';
if ( isFixed === undefined )
isFixed = element.getComputedStyle( 'position' ) == 'fixed';
if ( isFixed && this._.position && this._.position.x == x && this._.position.y == y )
return;
// Save the current position.
this._.position = { x : x, y : y };
// If not fixed positioned, add scroll position to the coordinates.
if ( !isFixed )
{
var scrollPosition = CKEDITOR.document.getWindow().getScrollPosition();
x += scrollPosition.x;
y += scrollPosition.y;
}
// Translate coordinate for RTL.
if ( rtl )
{
var dialogSize = this.getSize(),
viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize();
x = viewPaneSize.width - dialogSize.width - x;
}
var styles = { 'top' : ( y > 0 ? y : 0 ) + 'px' };
styles[ rtl ? 'right' : 'left' ] = ( x > 0 ? x : 0 ) + 'px';
element.setStyles( styles );
save && ( this._.moved = 1 );
};
})(),
/**
* Gets the dialog's position in the window.
* @returns {Object} An object with "x" and "y" properties.
* @example
* var dialogX = dialogObj.getPosition().x;
*/
getPosition : function(){ return CKEDITOR.tools.extend( {}, this._.position ); },
/**
* Shows the dialog box.
* @example
* dialogObj.show();
*/
show : function()
{
// Insert the dialog's element to the root document.
var element = this._.element;
var definition = this.definition;
if ( !( element.getParent() && element.getParent().equals( CKEDITOR.document.getBody() ) ) )
element.appendTo( CKEDITOR.document.getBody() );
else
element.setStyle( 'display', 'block' );
// FIREFOX BUG: Fix vanishing caret for Firefox 2 or Gecko 1.8.
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 )
{
var dialogElement = this.parts.dialog;
dialogElement.setStyle( 'position', 'absolute' );
setTimeout( function()
{
dialogElement.setStyle( 'position', 'fixed' );
}, 0 );
}
// First, set the dialog to an appropriate size.
this.resize( this._.contentSize && this._.contentSize.width || definition.width || definition.minWidth,
this._.contentSize && this._.contentSize.height || definition.height || definition.minHeight );
// Reset all inputs back to their default value.
this.reset();
// Select the first tab by default.
this.selectPage( this.definition.contents[0].id );
// Set z-index.
if ( CKEDITOR.dialog._.currentZIndex === null )
CKEDITOR.dialog._.currentZIndex = this._.editor.config.baseFloatZIndex;
this._.element.getFirst().setStyle( 'z-index', CKEDITOR.dialog._.currentZIndex += 10 );
// Maintain the dialog ordering and dialog cover.
// Also register key handlers if first dialog.
if ( CKEDITOR.dialog._.currentTop === null )
{
CKEDITOR.dialog._.currentTop = this;
this._.parentDialog = null;
showCover( this._.editor );
element.on( 'keydown', accessKeyDownHandler );
element.on( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler );
// Prevent some keys from bubbling up. (#4269)
for ( var event in { keyup :1, keydown :1, keypress :1 } )
element.on( event, preventKeyBubbling );
}
else
{
this._.parentDialog = CKEDITOR.dialog._.currentTop;
var parentElement = this._.parentDialog.getElement().getFirst();
parentElement.$.style.zIndex -= Math.floor( this._.editor.config.baseFloatZIndex / 2 );
CKEDITOR.dialog._.currentTop = this;
}
// Register the Esc hotkeys.
registerAccessKey( this, this, '\x1b', null, function()
{
this.getButton( 'cancel' ) && this.getButton( 'cancel' ).click();
} );
// Reset the hasFocus state.
this._.hasFocus = false;
CKEDITOR.tools.setTimeout( function()
{
this.layout();
this.parts.dialog.setStyle( 'visibility', '' );
// Execute onLoad for the first show.
this.fireOnce( 'load', {} );
CKEDITOR.ui.fire( 'ready', this );
this.fire( 'show', {} );
this._.editor.fire( 'dialogShow', this );
// Save the initial values of the dialog.
this.foreach( function( contentObj ) { contentObj.setInitValue && contentObj.setInitValue(); } );
},
100, this );
},
/**
* Rearrange the dialog to its previous position or the middle of the window.
* @since 3.5
*/
layout : function()
{
var viewSize = CKEDITOR.document.getWindow().getViewPaneSize(),
dialogSize = this.getSize();
this.move( this._.moved ? this._.position.x : ( viewSize.width - dialogSize.width ) / 2,
this._.moved ? this._.position.y : ( viewSize.height - dialogSize.height ) / 2 );
},
/**
* Executes a function for each UI element.
* @param {Function} fn Function to execute for each UI element.
* @returns {CKEDITOR.dialog} The current dialog object.
*/
foreach : function( fn )
{
for ( var i in this._.contents )
{
for ( var j in this._.contents[i] )
fn.call( this, this._.contents[i][j] );
}
return this;
},
/**
* Resets all input values in the dialog.
* @example
* dialogObj.reset();
* @returns {CKEDITOR.dialog} The current dialog object.
*/
reset : (function()
{
var fn = function( widget ){ if ( widget.reset ) widget.reset( 1 ); };
return function(){ this.foreach( fn ); return this; };
})(),
/**
* Calls the {@link CKEDITOR.dialog.definition.uiElement#setup} method of each of the UI elements, with the arguments passed through it.
* It is usually being called when the dialog is opened, to put the initial value inside the field.
* @example
* dialogObj.setupContent();
* @example
* var timestamp = ( new Date() ).valueOf();
* dialogObj.setupContent( timestamp );
*/
setupContent : function()
{
var args = arguments;
this.foreach( function( widget )
{
if ( widget.setup )
widget.setup.apply( widget, args );
});
},
/**
* Calls the {@link CKEDITOR.dialog.definition.uiElement#commit} method of each of the UI elements, with the arguments passed through it.
* It is usually being called when the user confirms the dialog, to process the values.
* @example
* dialogObj.commitContent();
* @example
* var timestamp = ( new Date() ).valueOf();
* dialogObj.commitContent( timestamp );
*/
commitContent : function()
{
var args = arguments;
this.foreach( function( widget )
{
// Make sure IE triggers "change" event on last focused input before closing the dialog. (#7915)
if ( CKEDITOR.env.ie && this._.currentFocusIndex == widget.focusIndex )
widget.getInputElement().$.blur();
if ( widget.commit )
widget.commit.apply( widget, args );
});
},
/**
* Hides the dialog box.
* @example
* dialogObj.hide();
*/
hide : function()
{
if ( !this.parts.dialog.isVisible() )
return;
this.fire( 'hide', {} );
this._.editor.fire( 'dialogHide', this );
var element = this._.element;
element.setStyle( 'display', 'none' );
this.parts.dialog.setStyle( 'visibility', 'hidden' );
// Unregister all access keys associated with this dialog.
unregisterAccessKey( this );
// Close any child(top) dialogs first.
while( CKEDITOR.dialog._.currentTop != this )
CKEDITOR.dialog._.currentTop.hide();
// Maintain dialog ordering and remove cover if needed.
if ( !this._.parentDialog )
hideCover();
else
{
var parentElement = this._.parentDialog.getElement().getFirst();
parentElement.setStyle( 'z-index', parseInt( parentElement.$.style.zIndex, 10 ) + Math.floor( this._.editor.config.baseFloatZIndex / 2 ) );
}
CKEDITOR.dialog._.currentTop = this._.parentDialog;
// Deduct or clear the z-index.
if ( !this._.parentDialog )
{
CKEDITOR.dialog._.currentZIndex = null;
// Remove access key handlers.
element.removeListener( 'keydown', accessKeyDownHandler );
element.removeListener( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler );
// Remove bubbling-prevention handler. (#4269)
for ( var event in { keyup :1, keydown :1, keypress :1 } )
element.removeListener( event, preventKeyBubbling );
var editor = this._.editor;
editor.focus();
if ( editor.mode == 'wysiwyg' && CKEDITOR.env.ie )
{
var selection = editor.getSelection();
selection && selection.unlock( true );
}
}
else
CKEDITOR.dialog._.currentZIndex -= 10;
delete this._.parentDialog;
// Reset the initial values of the dialog.
this.foreach( function( contentObj ) { contentObj.resetInitValue && contentObj.resetInitValue(); } );
},
/**
* Adds a tabbed page into the dialog.
* @param {Object} contents Content definition.
* @example
*/
addPage : function( contents )
{
var pageHtml = [],
titleHtml = contents.label ? ' title="' + CKEDITOR.tools.htmlEncode( contents.label ) + '"' : '',
elements = contents.elements,
vbox = CKEDITOR.dialog._.uiElementBuilders.vbox.build( this,
{
type : 'vbox',
className : 'cke_dialog_page_contents',
children : contents.elements,
expand : !!contents.expand,
padding : contents.padding,
style : contents.style || 'width: 100%;height:100%'
}, pageHtml );
// Create the HTML for the tab and the content block.
var page = CKEDITOR.dom.element.createFromHtml( pageHtml.join( '' ) );
page.setAttribute( 'role', 'tabpanel' );
var env = CKEDITOR.env;
var tabId = 'cke_' + contents.id + '_' + CKEDITOR.tools.getNextNumber(),
tab = CKEDITOR.dom.element.createFromHtml( [
'<a class="cke_dialog_tab"',
( this._.pageCount > 0 ? ' cke_last' : 'cke_first' ),
titleHtml,
( !!contents.hidden ? ' style="display:none"' : '' ),
' id="', tabId, '"',
env.gecko && env.version >= 10900 && !env.hc ? '' : ' href="javascript:void(0)"',
' tabIndex="-1"',
' hidefocus="true"',
' role="tab">',
contents.label,
'</a>'
].join( '' ) );
page.setAttribute( 'aria-labelledby', tabId );
// Take records for the tabs and elements created.
this._.tabs[ contents.id ] = [ tab, page ];
this._.tabIdList.push( contents.id );
!contents.hidden && this._.pageCount++;
this._.lastTab = tab;
this.updateStyle();
var contentMap = this._.contents[ contents.id ] = {},
cursor,
children = vbox.getChild();
while ( ( cursor = children.shift() ) )
{
contentMap[ cursor.id ] = cursor;
if ( typeof( cursor.getChild ) == 'function' )
children.push.apply( children, cursor.getChild() );
}
// Attach the DOM nodes.
page.setAttribute( 'name', contents.id );
page.appendTo( this.parts.contents );
tab.unselectable();
this.parts.tabs.append( tab );
// Add access key handlers if access key is defined.
if ( contents.accessKey )
{
registerAccessKey( this, this, 'CTRL+' + contents.accessKey,
tabAccessKeyDown, tabAccessKeyUp );
this._.accessKeyMap[ 'CTRL+' + contents.accessKey ] = contents.id;
}
},
/**
* Activates a tab page in the dialog by its id.
* @param {String} id The id of the dialog tab to be activated.
* @example
* dialogObj.selectPage( 'tab_1' );
*/
selectPage : function( id )
{
if ( this._.currentTabId == id )
return;
// Returning true means that the event has been canceled
if ( this.fire( 'selectPage', { page : id, currentPage : this._.currentTabId } ) === true )
return;
// Hide the non-selected tabs and pages.
for ( var i in this._.tabs )
{
var tab = this._.tabs[i][0],
page = this._.tabs[i][1];
if ( i != id )
{
tab.removeClass( 'cke_dialog_tab_selected' );
page.hide();
}
page.setAttribute( 'aria-hidden', i != id );
}
var selected = this._.tabs[ id ];
selected[ 0 ].addClass( 'cke_dialog_tab_selected' );
// [IE] an invisible input[type='text'] will enlarge it's width
// if it's value is long when it shows, so we clear it's value
// before it shows and then recover it (#5649)
if ( CKEDITOR.env.ie6Compat || CKEDITOR.env.ie7Compat )
{
clearOrRecoverTextInputValue( selected[ 1 ] );
selected[ 1 ].show();
setTimeout( function()
{
clearOrRecoverTextInputValue( selected[ 1 ], 1 );
}, 0 );
}
else
selected[ 1 ].show();
this._.currentTabId = id;
this._.currentTabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, id );
},
// Dialog state-specific style updates.
updateStyle : function()
{
// If only a single page shown, a different style is used in the central pane.
this.parts.dialog[ ( this._.pageCount === 1 ? 'add' : 'remove' ) + 'Class' ]( 'cke_single_page' );
},
/**
* Hides a page's tab away from the dialog.
* @param {String} id The page's Id.
* @example
* dialog.hidePage( 'tab_3' );
*/
hidePage : function( id )
{
var tab = this._.tabs[id] && this._.tabs[id][0];
if ( !tab || this._.pageCount == 1 || !tab.isVisible() )
return;
// Switch to other tab first when we're hiding the active tab.
else if ( id == this._.currentTabId )
this.selectPage( getPreviousVisibleTab.call( this ) );
tab.hide();
this._.pageCount--;
this.updateStyle();
},
/**
* Unhides a page's tab.
* @param {String} id The page's Id.
* @example
* dialog.showPage( 'tab_2' );
*/
showPage : function( id )
{
var tab = this._.tabs[id] && this._.tabs[id][0];
if ( !tab )
return;
tab.show();
this._.pageCount++;
this.updateStyle();
},
/**
* Gets the root DOM element of the dialog.
* @returns {CKEDITOR.dom.element} The <span> element containing this dialog.
* @example
* var dialogElement = dialogObj.getElement().getFirst();
* dialogElement.setStyle( 'padding', '5px' );
*/
getElement : function()
{
return this._.element;
},
/**
* Gets the name of the dialog.
* @returns {String} The name of this dialog.
* @example
* var dialogName = dialogObj.getName();
*/
getName : function()
{
return this._.name;
},
/**
* Gets a dialog UI element object from a dialog page.
* @param {String} pageId id of dialog page.
* @param {String} elementId id of UI element.
* @example
* dialogObj.getContentElement( 'tabId', 'elementId' ).setValue( 'Example' );
* @returns {CKEDITOR.ui.dialog.uiElement} The dialog UI element.
*/
getContentElement : function( pageId, elementId )
{
var page = this._.contents[ pageId ];
return page && page[ elementId ];
},
/**
* Gets the value of a dialog UI element.
* @param {String} pageId id of dialog page.
* @param {String} elementId id of UI element.
* @example
* alert( dialogObj.getValueOf( 'tabId', 'elementId' ) );
* @returns {Object} The value of the UI element.
*/
getValueOf : function( pageId, elementId )
{
return this.getContentElement( pageId, elementId ).getValue();
},
/**
* Sets the value of a dialog UI element.
* @param {String} pageId id of the dialog page.
* @param {String} elementId id of the UI element.
* @param {Object} value The new value of the UI element.
* @example
* dialogObj.setValueOf( 'tabId', 'elementId', 'Example' );
*/
setValueOf : function( pageId, elementId, value )
{
return this.getContentElement( pageId, elementId ).setValue( value );
},
/**
* Gets the UI element of a button in the dialog's button row.
* @param {String} id The id of the button.
* @example
* @returns {CKEDITOR.ui.dialog.button} The button object.
*/
getButton : function( id )
{
return this._.buttons[ id ];
},
/**
* Simulates a click to a dialog button in the dialog's button row.
* @param {String} id The id of the button.
* @example
* @returns The return value of the dialog's "click" event.
*/
click : function( id )
{
return this._.buttons[ id ].click();
},
/**
* Disables a dialog button.
* @param {String} id The id of the button.
* @example
*/
disableButton : function( id )
{
return this._.buttons[ id ].disable();
},
/**
* Enables a dialog button.
* @param {String} id The id of the button.
* @example
*/
enableButton : function( id )
{
return this._.buttons[ id ].enable();
},
/**
* Gets the number of pages in the dialog.
* @returns {Number} Page count.
*/
getPageCount : function()
{
return this._.pageCount;
},
/**
* Gets the editor instance which opened this dialog.
* @returns {CKEDITOR.editor} Parent editor instances.
*/
getParentEditor : function()
{
return this._.editor;
},
/**
* Gets the element that was selected when opening the dialog, if any.
* @returns {CKEDITOR.dom.element} The element that was selected, or null.
*/
getSelectedElement : function()
{
return this.getParentEditor().getSelection().getSelectedElement();
},
/**
* Adds element to dialog's focusable list.
*
* @param {CKEDITOR.dom.element} element
* @param {Number} [index]
*/
addFocusable: function( element, index ) {
if ( typeof index == 'undefined' )
{
index = this._.focusList.length;
this._.focusList.push( new Focusable( this, element, index ) );
}
else
{
this._.focusList.splice( index, 0, new Focusable( this, element, index ) );
for ( var i = index + 1 ; i < this._.focusList.length ; i++ )
this._.focusList[ i ].focusIndex++;
}
}
};
CKEDITOR.tools.extend( CKEDITOR.dialog,
/**
* @lends CKEDITOR.dialog
*/
{
/**
* Registers a dialog.
* @param {String} name The dialog's name.
* @param {Function|String} dialogDefinition
* A function returning the dialog's definition, or the URL to the .js file holding the function.
* The function should accept an argument "editor" which is the current editor instance, and
* return an object conforming to {@link CKEDITOR.dialog.definition}.
* @see CKEDITOR.dialog.definition
* @example
* // Full sample plugin, which does not only register a dialog window but also adds an item to the context menu.
* // To open the dialog window, choose "Open dialog" in the context menu.
* CKEDITOR.plugins.add( 'myplugin',
* {
* init: function( editor )
* {
* editor.addCommand( 'mydialog',new CKEDITOR.dialogCommand( 'mydialog' ) );
*
* if ( editor.contextMenu )
* {
* editor.addMenuGroup( 'mygroup', 10 );
* editor.addMenuItem( 'My Dialog',
* {
* label : 'Open dialog',
* command : 'mydialog',
* group : 'mygroup'
* });
* editor.contextMenu.addListener( function( element )
* {
* return { 'My Dialog' : CKEDITOR.TRISTATE_OFF };
* });
* }
*
* <strong>CKEDITOR.dialog.add</strong>( 'mydialog', function( api )
* {
* // CKEDITOR.dialog.definition
* var <strong>dialogDefinition</strong> =
* {
* title : 'Sample dialog',
* minWidth : 390,
* minHeight : 130,
* contents : [
* {
* id : 'tab1',
* label : 'Label',
* title : 'Title',
* expand : true,
* padding : 0,
* elements :
* [
* {
* type : 'html',
* html : '<p>This is some sample HTML content.</p>'
* },
* {
* type : 'textarea',
* id : 'textareaId',
* rows : 4,
* cols : 40
* }
* ]
* }
* ],
* buttons : [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ],
* onOk : function() {
* // "this" is now a CKEDITOR.dialog object.
* // Accessing dialog elements:
* var textareaObj = this.<strong>getContentElement</strong>( 'tab1', 'textareaId' );
* alert( "You have entered: " + textareaObj.getValue() );
* }
* };
*
* return dialogDefinition;
* } );
* }
* } );
*
* CKEDITOR.replace( 'editor1', { extraPlugins : 'myplugin' } );
*/
add : function( name, dialogDefinition )
{
// Avoid path registration from multiple instances override definition.
if ( !this._.dialogDefinitions[name]
|| typeof dialogDefinition == 'function' )
this._.dialogDefinitions[name] = dialogDefinition;
},
exists : function( name )
{
return !!this._.dialogDefinitions[ name ];
},
getCurrent : function()
{
return CKEDITOR.dialog._.currentTop;
},
/**
* The default OK button for dialogs. Fires the "ok" event and closes the dialog if the event succeeds.
* @static
* @field
* @example
* @type Function
*/
okButton : (function()
{
var retval = function( editor, override )
{
override = override || {};
return CKEDITOR.tools.extend( {
id : 'ok',
type : 'button',
label : editor.lang.common.ok,
'class' : 'cke_dialog_ui_button_ok',
onClick : function( evt )
{
var dialog = evt.data.dialog;
if ( dialog.fire( 'ok', { hide : true } ).hide !== false )
dialog.hide();
}
}, override, true );
};
retval.type = 'button';
retval.override = function( override )
{
return CKEDITOR.tools.extend( function( editor ){ return retval( editor, override ); },
{ type : 'button' }, true );
};
return retval;
})(),
/**
* The default cancel button for dialogs. Fires the "cancel" event and closes the dialog if no UI element value changed.
* @static
* @field
* @example
* @type Function
*/
cancelButton : (function()
{
var retval = function( editor, override )
{
override = override || {};
return CKEDITOR.tools.extend( {
id : 'cancel',
type : 'button',
label : editor.lang.common.cancel,
'class' : 'cke_dialog_ui_button_cancel',
onClick : function( evt )
{
var dialog = evt.data.dialog;
if ( dialog.fire( 'cancel', { hide : true } ).hide !== false )
dialog.hide();
}
}, override, true );
};
retval.type = 'button';
retval.override = function( override )
{
return CKEDITOR.tools.extend( function( editor ){ return retval( editor, override ); },
{ type : 'button' }, true );
};
return retval;
})(),
/**
* Registers a dialog UI element.
* @param {String} typeName The name of the UI element.
* @param {Function} builder The function to build the UI element.
* @example
*/
addUIElement : function( typeName, builder )
{
this._.uiElementBuilders[ typeName ] = builder;
}
});
CKEDITOR.dialog._ =
{
uiElementBuilders : {},
dialogDefinitions : {},
currentTop : null,
currentZIndex : null
};
// "Inherit" (copy actually) from CKEDITOR.event.
CKEDITOR.event.implementOn( CKEDITOR.dialog );
CKEDITOR.event.implementOn( CKEDITOR.dialog.prototype, true );
var defaultDialogDefinition =
{
resizable : CKEDITOR.DIALOG_RESIZE_BOTH,
minWidth : 600,
minHeight : 400,
buttons : [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ]
};
// Tool function used to return an item from an array based on its id
// property.
var getById = function( array, id, recurse )
{
for ( var i = 0, item ; ( item = array[ i ] ) ; i++ )
{
if ( item.id == id )
return item;
if ( recurse && item[ recurse ] )
{
var retval = getById( item[ recurse ], id, recurse ) ;
if ( retval )
return retval;
}
}
return null;
};
// Tool function used to add an item into an array.
var addById = function( array, newItem, nextSiblingId, recurse, nullIfNotFound )
{
if ( nextSiblingId )
{
for ( var i = 0, item ; ( item = array[ i ] ) ; i++ )
{
if ( item.id == nextSiblingId )
{
array.splice( i, 0, newItem );
return newItem;
}
if ( recurse && item[ recurse ] )
{
var retval = addById( item[ recurse ], newItem, nextSiblingId, recurse, true );
if ( retval )
return retval;
}
}
if ( nullIfNotFound )
return null;
}
array.push( newItem );
return newItem;
};
// Tool function used to remove an item from an array based on its id.
var removeById = function( array, id, recurse )
{
for ( var i = 0, item ; ( item = array[ i ] ) ; i++ )
{
if ( item.id == id )
return array.splice( i, 1 );
if ( recurse && item[ recurse ] )
{
var retval = removeById( item[ recurse ], id, recurse );
if ( retval )
return retval;
}
}
return null;
};
/**
* This class is not really part of the API. It is the "definition" property value
* passed to "dialogDefinition" event handlers.
* @constructor
* @name CKEDITOR.dialog.definitionObject
* @extends CKEDITOR.dialog.definition
* @example
* CKEDITOR.on( 'dialogDefinition', function( evt )
* {
* var definition = evt.data.definition;
* var content = definition.getContents( 'page1' );
* ...
* } );
*/
var definitionObject = function( dialog, dialogDefinition )
{
// TODO : Check if needed.
this.dialog = dialog;
// Transform the contents entries in contentObjects.
var contents = dialogDefinition.contents;
for ( var i = 0, content ; ( content = contents[i] ) ; i++ )
contents[ i ] = content && new contentObject( dialog, content );
CKEDITOR.tools.extend( this, dialogDefinition );
};
definitionObject.prototype =
/** @lends CKEDITOR.dialog.definitionObject.prototype */
{
/**
* Gets a content definition.
* @param {String} id The id of the content definition.
* @returns {CKEDITOR.dialog.definition.content} The content definition
* matching id.
*/
getContents : function( id )
{
return getById( this.contents, id );
},
/**
* Gets a button definition.
* @param {String} id The id of the button definition.
* @returns {CKEDITOR.dialog.definition.button} The button definition
* matching id.
*/
getButton : function( id )
{
return getById( this.buttons, id );
},
/**
* Adds a content definition object under this dialog definition.
* @param {CKEDITOR.dialog.definition.content} contentDefinition The
* content definition.
* @param {String} [nextSiblingId] The id of an existing content
* definition which the new content definition will be inserted
* before. Omit if the new content definition is to be inserted as
* the last item.
* @returns {CKEDITOR.dialog.definition.content} The inserted content
* definition.
*/
addContents : function( contentDefinition, nextSiblingId )
{
return addById( this.contents, contentDefinition, nextSiblingId );
},
/**
* Adds a button definition object under this dialog definition.
* @param {CKEDITOR.dialog.definition.button} buttonDefinition The
* button definition.
* @param {String} [nextSiblingId] The id of an existing button
* definition which the new button definition will be inserted
* before. Omit if the new button definition is to be inserted as
* the last item.
* @returns {CKEDITOR.dialog.definition.button} The inserted button
* definition.
*/
addButton : function( buttonDefinition, nextSiblingId )
{
return addById( this.buttons, buttonDefinition, nextSiblingId );
},
/**
* Removes a content definition from this dialog definition.
* @param {String} id The id of the content definition to be removed.
* @returns {CKEDITOR.dialog.definition.content} The removed content
* definition.
*/
removeContents : function( id )
{
removeById( this.contents, id );
},
/**
* Removes a button definition from the dialog definition.
* @param {String} id The id of the button definition to be removed.
* @returns {CKEDITOR.dialog.definition.button} The removed button
* definition.
*/
removeButton : function( id )
{
removeById( this.buttons, id );
}
};
/**
* This class is not really part of the API. It is the template of the
* objects representing content pages inside the
* CKEDITOR.dialog.definitionObject.
* @constructor
* @name CKEDITOR.dialog.definition.contentObject
* @example
* CKEDITOR.on( 'dialogDefinition', function( evt )
* {
* var definition = evt.data.definition;
* var content = definition.getContents( 'page1' );
* content.remove( 'textInput1' );
* ...
* } );
*/
function contentObject( dialog, contentDefinition )
{
this._ =
{
dialog : dialog
};
CKEDITOR.tools.extend( this, contentDefinition );
}
contentObject.prototype =
/** @lends CKEDITOR.dialog.definition.contentObject.prototype */
{
/**
* Gets a UI element definition under the content definition.
* @param {String} id The id of the UI element definition.
* @returns {CKEDITOR.dialog.definition.uiElement}
*/
get : function( id )
{
return getById( this.elements, id, 'children' );
},
/**
* Adds a UI element definition to the content definition.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition The
* UI elemnet definition to be added.
* @param {String} nextSiblingId The id of an existing UI element
* definition which the new UI element definition will be inserted
* before. Omit if the new button definition is to be inserted as
* the last item.
* @returns {CKEDITOR.dialog.definition.uiElement} The element
* definition inserted.
*/
add : function( elementDefinition, nextSiblingId )
{
return addById( this.elements, elementDefinition, nextSiblingId, 'children' );
},
/**
* Removes a UI element definition from the content definition.
* @param {String} id The id of the UI element definition to be
* removed.
* @returns {CKEDITOR.dialog.definition.uiElement} The element
* definition removed.
* @example
*/
remove : function( id )
{
removeById( this.elements, id, 'children' );
}
};
function initDragAndDrop( dialog )
{
var lastCoords = null,
abstractDialogCoords = null,
element = dialog.getElement().getFirst(),
editor = dialog.getParentEditor(),
magnetDistance = editor.config.dialog_magnetDistance,
margins = editor.skin.margins || [ 0, 0, 0, 0 ];
if ( typeof magnetDistance == 'undefined' )
magnetDistance = 20;
function mouseMoveHandler( evt )
{
var dialogSize = dialog.getSize(),
viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(),
x = evt.data.$.screenX,
y = evt.data.$.screenY,
dx = x - lastCoords.x,
dy = y - lastCoords.y,
realX, realY;
lastCoords = { x : x, y : y };
abstractDialogCoords.x += dx;
abstractDialogCoords.y += dy;
if ( abstractDialogCoords.x + margins[3] < magnetDistance )
realX = - margins[3];
else if ( abstractDialogCoords.x - margins[1] > viewPaneSize.width - dialogSize.width - magnetDistance )
realX = viewPaneSize.width - dialogSize.width + ( editor.lang.dir == 'rtl' ? 0 : margins[1] );
else
realX = abstractDialogCoords.x;
if ( abstractDialogCoords.y + margins[0] < magnetDistance )
realY = - margins[0];
else if ( abstractDialogCoords.y - margins[2] > viewPaneSize.height - dialogSize.height - magnetDistance )
realY = viewPaneSize.height - dialogSize.height + margins[2];
else
realY = abstractDialogCoords.y;
dialog.move( realX, realY, 1 );
evt.data.preventDefault();
}
function mouseUpHandler( evt )
{
CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler );
CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler );
if ( CKEDITOR.env.ie6Compat )
{
var coverDoc = currentCover.getChild( 0 ).getFrameDocument();
coverDoc.removeListener( 'mousemove', mouseMoveHandler );
coverDoc.removeListener( 'mouseup', mouseUpHandler );
}
}
dialog.parts.title.on( 'mousedown', function( evt )
{
lastCoords = { x : evt.data.$.screenX, y : evt.data.$.screenY };
CKEDITOR.document.on( 'mousemove', mouseMoveHandler );
CKEDITOR.document.on( 'mouseup', mouseUpHandler );
abstractDialogCoords = dialog.getPosition();
if ( CKEDITOR.env.ie6Compat )
{
var coverDoc = currentCover.getChild( 0 ).getFrameDocument();
coverDoc.on( 'mousemove', mouseMoveHandler );
coverDoc.on( 'mouseup', mouseUpHandler );
}
evt.data.preventDefault();
}, dialog );
}
function initResizeHandles( dialog )
{
var def = dialog.definition,
resizable = def.resizable;
if ( resizable == CKEDITOR.DIALOG_RESIZE_NONE )
return;
var editor = dialog.getParentEditor();
var wrapperWidth, wrapperHeight,
viewSize, origin, startSize,
dialogCover;
var mouseDownFn = CKEDITOR.tools.addFunction( function( $event )
{
startSize = dialog.getSize();
var content = dialog.parts.contents,
iframeDialog = content.$.getElementsByTagName( 'iframe' ).length;
// Shim to help capturing "mousemove" over iframe.
if ( iframeDialog )
{
dialogCover = CKEDITOR.dom.element.createFromHtml( '<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>' );
content.append( dialogCover );
}
// Calculate the offset between content and chrome size.
wrapperHeight = startSize.height - dialog.parts.contents.getSize( 'height', ! ( CKEDITOR.env.gecko || CKEDITOR.env.opera || CKEDITOR.env.ie && CKEDITOR.env.quirks ) );
wrapperWidth = startSize.width - dialog.parts.contents.getSize( 'width', 1 );
origin = { x : $event.screenX, y : $event.screenY };
viewSize = CKEDITOR.document.getWindow().getViewPaneSize();
CKEDITOR.document.on( 'mousemove', mouseMoveHandler );
CKEDITOR.document.on( 'mouseup', mouseUpHandler );
if ( CKEDITOR.env.ie6Compat )
{
var coverDoc = currentCover.getChild( 0 ).getFrameDocument();
coverDoc.on( 'mousemove', mouseMoveHandler );
coverDoc.on( 'mouseup', mouseUpHandler );
}
$event.preventDefault && $event.preventDefault();
});
// Prepend the grip to the dialog.
dialog.on( 'load', function()
{
var direction = '';
if ( resizable == CKEDITOR.DIALOG_RESIZE_WIDTH )
direction = ' cke_resizer_horizontal';
else if ( resizable == CKEDITOR.DIALOG_RESIZE_HEIGHT )
direction = ' cke_resizer_vertical';
var resizer = CKEDITOR.dom.element.createFromHtml( '<div' +
' class="cke_resizer' + direction + ' cke_resizer_' + editor.lang.dir + '"' +
' title="' + CKEDITOR.tools.htmlEncode( editor.lang.resize ) + '"' +
' onmousedown="CKEDITOR.tools.callFunction(' + mouseDownFn + ', event )"></div>' );
dialog.parts.footer.append( resizer, 1 );
});
editor.on( 'destroy', function() { CKEDITOR.tools.removeFunction( mouseDownFn ); } );
function mouseMoveHandler( evt )
{
var rtl = editor.lang.dir == 'rtl',
dx = ( evt.data.$.screenX - origin.x ) * ( rtl ? -1 : 1 ),
dy = evt.data.$.screenY - origin.y,
width = startSize.width,
height = startSize.height,
internalWidth = width + dx * ( dialog._.moved ? 1 : 2 ),
internalHeight = height + dy * ( dialog._.moved ? 1 : 2 ),
element = dialog._.element.getFirst(),
right = rtl && element.getComputedStyle( 'right' ),
position = dialog.getPosition();
if ( position.y + internalHeight > viewSize.height )
internalHeight = viewSize.height - position.y;
if ( ( rtl ? right : position.x ) + internalWidth > viewSize.width )
internalWidth = viewSize.width - ( rtl ? right : position.x );
// Make sure the dialog will not be resized to the wrong side when it's in the leftmost position for RTL.
if ( ( resizable == CKEDITOR.DIALOG_RESIZE_WIDTH || resizable == CKEDITOR.DIALOG_RESIZE_BOTH ) )
width = Math.max( def.minWidth || 0, internalWidth - wrapperWidth );
if ( resizable == CKEDITOR.DIALOG_RESIZE_HEIGHT || resizable == CKEDITOR.DIALOG_RESIZE_BOTH )
height = Math.max( def.minHeight || 0, internalHeight - wrapperHeight );
dialog.resize( width, height );
if ( !dialog._.moved )
dialog.layout();
evt.data.preventDefault();
}
function mouseUpHandler()
{
CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler );
CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler );
if ( dialogCover )
{
dialogCover.remove();
dialogCover = null;
}
if ( CKEDITOR.env.ie6Compat )
{
var coverDoc = currentCover.getChild( 0 ).getFrameDocument();
coverDoc.removeListener( 'mouseup', mouseUpHandler );
coverDoc.removeListener( 'mousemove', mouseMoveHandler );
}
}
}
var resizeCover;
// Caching resuable covers and allowing only one cover
// on screen.
var covers = {},
currentCover;
function cancelEvent( ev )
{
ev.data.preventDefault(1);
}
function showCover( editor )
{
var win = CKEDITOR.document.getWindow();
var config = editor.config,
backgroundColorStyle = config.dialog_backgroundCoverColor || 'white',
backgroundCoverOpacity = config.dialog_backgroundCoverOpacity,
baseFloatZIndex = config.baseFloatZIndex,
coverKey = CKEDITOR.tools.genKey(
backgroundColorStyle,
backgroundCoverOpacity,
baseFloatZIndex ),
coverElement = covers[ coverKey ];
if ( !coverElement )
{
var html = [
'<div tabIndex="-1" style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ),
'; z-index: ', baseFloatZIndex,
'; top: 0px; left: 0px; ',
( !CKEDITOR.env.ie6Compat ? 'background-color: ' + backgroundColorStyle : '' ),
'" class="cke_dialog_background_cover">'
];
if ( CKEDITOR.env.ie6Compat )
{
// Support for custom document.domain in IE.
var isCustomDomain = CKEDITOR.env.isCustomDomain(),
iframeHtml = '<html><body style=\\\'background-color:' + backgroundColorStyle + ';\\\'></body></html>';
html.push(
'<iframe' +
' hidefocus="true"' +
' frameborder="0"' +
' id="cke_dialog_background_iframe"' +
' src="javascript:' );
html.push( 'void((function(){' +
'document.open();' +
( isCustomDomain ? 'document.domain=\'' + document.domain + '\';' : '' ) +
'document.write( \'' + iframeHtml + '\' );' +
'document.close();' +
'})())' );
html.push(
'"' +
' style="' +
'position:absolute;' +
'left:0;' +
'top:0;' +
'width:100%;' +
'height: 100%;' +
'progid:DXImageTransform.Microsoft.Alpha(opacity=0)">' +
'</iframe>' );
}
html.push( '</div>' );
coverElement = CKEDITOR.dom.element.createFromHtml( html.join( '' ) );
coverElement.setOpacity( backgroundCoverOpacity != undefined ? backgroundCoverOpacity : 0.5 );
coverElement.on( 'keydown', cancelEvent );
coverElement.on( 'keypress', cancelEvent );
coverElement.on( 'keyup', cancelEvent );
coverElement.appendTo( CKEDITOR.document.getBody() );
covers[ coverKey ] = coverElement;
}
else
coverElement. show();
currentCover = coverElement;
var resizeFunc = function()
{
var size = win.getViewPaneSize();
coverElement.setStyles(
{
width : size.width + 'px',
height : size.height + 'px'
} );
};
var scrollFunc = function()
{
var pos = win.getScrollPosition(),
cursor = CKEDITOR.dialog._.currentTop;
coverElement.setStyles(
{
left : pos.x + 'px',
top : pos.y + 'px'
});
if ( cursor )
{
do
{
var dialogPos = cursor.getPosition();
cursor.move( dialogPos.x, dialogPos.y );
} while ( ( cursor = cursor._.parentDialog ) );
}
};
resizeCover = resizeFunc;
win.on( 'resize', resizeFunc );
resizeFunc();
// Using Safari/Mac, focus must be kept where it is (#7027)
if ( !( CKEDITOR.env.mac && CKEDITOR.env.webkit ) )
coverElement.focus();
if ( CKEDITOR.env.ie6Compat )
{
// IE BUG: win.$.onscroll assignment doesn't work.. it must be window.onscroll.
// So we need to invent a really funny way to make it work.
var myScrollHandler = function()
{
scrollFunc();
arguments.callee.prevScrollHandler.apply( this, arguments );
};
win.$.setTimeout( function()
{
myScrollHandler.prevScrollHandler = window.onscroll || function(){};
window.onscroll = myScrollHandler;
}, 0 );
scrollFunc();
}
}
function hideCover()
{
if ( !currentCover )
return;
var win = CKEDITOR.document.getWindow();
currentCover.hide();
win.removeListener( 'resize', resizeCover );
if ( CKEDITOR.env.ie6Compat )
{
win.$.setTimeout( function()
{
var prevScrollHandler = window.onscroll && window.onscroll.prevScrollHandler;
window.onscroll = prevScrollHandler || null;
}, 0 );
}
resizeCover = null;
}
function removeCovers()
{
for ( var coverId in covers )
covers[ coverId ].remove();
covers = {};
}
var accessKeyProcessors = {};
var accessKeyDownHandler = function( evt )
{
var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey,
alt = evt.data.$.altKey,
shift = evt.data.$.shiftKey,
key = String.fromCharCode( evt.data.$.keyCode ),
keyProcessor = accessKeyProcessors[( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '') + ( shift ? 'SHIFT+' : '' ) + key];
if ( !keyProcessor || !keyProcessor.length )
return;
keyProcessor = keyProcessor[keyProcessor.length - 1];
keyProcessor.keydown && keyProcessor.keydown.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key );
evt.data.preventDefault();
};
var accessKeyUpHandler = function( evt )
{
var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey,
alt = evt.data.$.altKey,
shift = evt.data.$.shiftKey,
key = String.fromCharCode( evt.data.$.keyCode ),
keyProcessor = accessKeyProcessors[( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '') + ( shift ? 'SHIFT+' : '' ) + key];
if ( !keyProcessor || !keyProcessor.length )
return;
keyProcessor = keyProcessor[keyProcessor.length - 1];
if ( keyProcessor.keyup )
{
keyProcessor.keyup.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key );
evt.data.preventDefault();
}
};
var registerAccessKey = function( uiElement, dialog, key, downFunc, upFunc )
{
var procList = accessKeyProcessors[key] || ( accessKeyProcessors[key] = [] );
procList.push( {
uiElement : uiElement,
dialog : dialog,
key : key,
keyup : upFunc || uiElement.accessKeyUp,
keydown : downFunc || uiElement.accessKeyDown
} );
};
var unregisterAccessKey = function( obj )
{
for ( var i in accessKeyProcessors )
{
var list = accessKeyProcessors[i];
for ( var j = list.length - 1 ; j >= 0 ; j-- )
{
if ( list[j].dialog == obj || list[j].uiElement == obj )
list.splice( j, 1 );
}
if ( list.length === 0 )
delete accessKeyProcessors[i];
}
};
var tabAccessKeyUp = function( dialog, key )
{
if ( dialog._.accessKeyMap[key] )
dialog.selectPage( dialog._.accessKeyMap[key] );
};
var tabAccessKeyDown = function( dialog, key )
{
};
// ESC, ENTER
var preventKeyBubblingKeys = { 27 :1, 13 :1 };
var preventKeyBubbling = function( e )
{
if ( e.data.getKeystroke() in preventKeyBubblingKeys )
e.data.stopPropagation();
};
(function()
{
CKEDITOR.ui.dialog =
{
/**
* The base class of all dialog UI elements.
* @constructor
* @param {CKEDITOR.dialog} dialog Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition Element
* definition. Accepted fields:
* <ul>
* <li><strong>id</strong> (Required) The id of the UI element. See {@link
* CKEDITOR.dialog#getContentElement}</li>
* <li><strong>type</strong> (Required) The type of the UI element. The
* value to this field specifies which UI element class will be used to
* generate the final widget.</li>
* <li><strong>title</strong> (Optional) The popup tooltip for the UI
* element.</li>
* <li><strong>hidden</strong> (Optional) A flag that tells if the element
* should be initially visible.</li>
* <li><strong>className</strong> (Optional) Additional CSS class names
* to add to the UI element. Separated by space.</li>
* <li><strong>style</strong> (Optional) Additional CSS inline styles
* to add to the UI element. A semicolon (;) is required after the last
* style declaration.</li>
* <li><strong>accessKey</strong> (Optional) The alphanumeric access key
* for this element. Access keys are automatically prefixed by CTRL.</li>
* <li><strong>on*</strong> (Optional) Any UI element definition field that
* starts with <em>on</em> followed immediately by a capital letter and
* probably more letters is an event handler. Event handlers may be further
* divided into registered event handlers and DOM event handlers. Please
* refer to {@link CKEDITOR.ui.dialog.uiElement#registerEvents} and
* {@link CKEDITOR.ui.dialog.uiElement#eventProcessors} for more
* information.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to be added to the dialog's content area.
* @param {Function|String} nodeNameArg
* A function returning a string, or a simple string for the node name for
* the root DOM node. Default is 'div'.
* @param {Function|Object} stylesArg
* A function returning an object, or a simple object for CSS styles applied
* to the DOM node. Default is empty object.
* @param {Function|Object} attributesArg
* A fucntion returning an object, or a simple object for attributes applied
* to the DOM node. Default is empty object.
* @param {Function|String} contentsArg
* A function returning a string, or a simple string for the HTML code inside
* the root DOM node. Default is empty string.
* @example
*/
uiElement : function( dialog, elementDefinition, htmlList, nodeNameArg, stylesArg, attributesArg, contentsArg )
{
if ( arguments.length < 4 )
return;
var nodeName = ( nodeNameArg.call ? nodeNameArg( elementDefinition ) : nodeNameArg ) || 'div',
html = [ '<', nodeName, ' ' ],
styles = ( stylesArg && stylesArg.call ? stylesArg( elementDefinition ) : stylesArg ) || {},
attributes = ( attributesArg && attributesArg.call ? attributesArg( elementDefinition ) : attributesArg ) || {},
innerHTML = ( contentsArg && contentsArg.call ? contentsArg.call( this, dialog, elementDefinition ) : contentsArg ) || '',
domId = this.domId = attributes.id || CKEDITOR.tools.getNextId() + '_uiElement',
id = this.id = elementDefinition.id,
i;
// Set the id, a unique id is required for getElement() to work.
attributes.id = domId;
// Set the type and definition CSS class names.
var classes = {};
if ( elementDefinition.type )
classes[ 'cke_dialog_ui_' + elementDefinition.type ] = 1;
if ( elementDefinition.className )
classes[ elementDefinition.className ] = 1;
if ( elementDefinition.disabled )
classes[ 'cke_disabled' ] = 1;
var attributeClasses = ( attributes['class'] && attributes['class'].split ) ? attributes['class'].split( ' ' ) : [];
for ( i = 0 ; i < attributeClasses.length ; i++ )
{
if ( attributeClasses[i] )
classes[ attributeClasses[i] ] = 1;
}
var finalClasses = [];
for ( i in classes )
finalClasses.push( i );
attributes['class'] = finalClasses.join( ' ' );
// Set the popup tooltop.
if ( elementDefinition.title )
attributes.title = elementDefinition.title;
// Write the inline CSS styles.
var styleStr = ( elementDefinition.style || '' ).split( ';' );
// Element alignment support.
if ( elementDefinition.align )
{
var align = elementDefinition.align;
styles[ 'margin-left' ] = align == 'left' ? 0 : 'auto';
styles[ 'margin-right' ] = align == 'right' ? 0 : 'auto';
}
for ( i in styles )
styleStr.push( i + ':' + styles[i] );
if ( elementDefinition.hidden )
styleStr.push( 'display:none' );
for ( i = styleStr.length - 1 ; i >= 0 ; i-- )
{
if ( styleStr[i] === '' )
styleStr.splice( i, 1 );
}
if ( styleStr.length > 0 )
attributes.style = ( attributes.style ? ( attributes.style + '; ' ) : '' ) + styleStr.join( '; ' );
// Write the attributes.
for ( i in attributes )
html.push( i + '="' + CKEDITOR.tools.htmlEncode( attributes[i] ) + '" ');
// Write the content HTML.
html.push( '>', innerHTML, '</', nodeName, '>' );
// Add contents to the parent HTML array.
htmlList.push( html.join( '' ) );
( this._ || ( this._ = {} ) ).dialog = dialog;
// Override isChanged if it is defined in element definition.
if ( typeof( elementDefinition.isChanged ) == 'boolean' )
this.isChanged = function(){ return elementDefinition.isChanged; };
if ( typeof( elementDefinition.isChanged ) == 'function' )
this.isChanged = elementDefinition.isChanged;
// Overload 'get(set)Value' on definition.
if ( typeof( elementDefinition.setValue ) == 'function' )
{
this.setValue = CKEDITOR.tools.override( this.setValue, function( org )
{
return function( val ){ org.call( this, elementDefinition.setValue.call( this, val ) ); };
} );
}
if ( typeof( elementDefinition.getValue ) == 'function' )
{
this.getValue = CKEDITOR.tools.override( this.getValue, function( org )
{
return function(){ return elementDefinition.getValue.call( this, org.call( this ) ); };
} );
}
// Add events.
CKEDITOR.event.implementOn( this );
this.registerEvents( elementDefinition );
if ( this.accessKeyUp && this.accessKeyDown && elementDefinition.accessKey )
registerAccessKey( this, dialog, 'CTRL+' + elementDefinition.accessKey );
var me = this;
dialog.on( 'load', function()
{
var input = me.getInputElement();
if ( input )
{
var focusClass = me.type in { 'checkbox' : 1, 'ratio' : 1 } && CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? 'cke_dialog_ui_focused' : '';
input.on( 'focus', function()
{
dialog._.tabBarMode = false;
dialog._.hasFocus = true;
me.fire( 'focus' );
focusClass && this.addClass( focusClass );
});
input.on( 'blur', function()
{
me.fire( 'blur' );
focusClass && this.removeClass( focusClass );
});
}
} );
// Register the object as a tab focus if it can be included.
if ( this.keyboardFocusable )
{
this.tabIndex = elementDefinition.tabIndex || 0;
this.focusIndex = dialog._.focusList.push( this ) - 1;
this.on( 'focus', function()
{
dialog._.currentFocusIndex = me.focusIndex;
} );
}
// Completes this object with everything we have in the
// definition.
CKEDITOR.tools.extend( this, elementDefinition );
},
/**
* Horizontal layout box for dialog UI elements, auto-expends to available width of container.
* @constructor
* @extends CKEDITOR.ui.dialog.uiElement
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {Array} childObjList
* Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this
* container.
* @param {Array} childHtmlList
* Array of HTML code that correspond to the HTML output of all the
* objects in childObjList.
* @param {Array} htmlList
* Array of HTML code that this element will output to.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>widths</strong> (Optional) The widths of child cells.</li>
* <li><strong>height</strong> (Optional) The height of the layout.</li>
* <li><strong>padding</strong> (Optional) The padding width inside child
* cells.</li>
* <li><strong>align</strong> (Optional) The alignment of the whole layout
* </li>
* </ul>
* @example
*/
hbox : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition )
{
if ( arguments.length < 4 )
return;
this._ || ( this._ = {} );
var children = this._.children = childObjList,
widths = elementDefinition && elementDefinition.widths || null,
height = elementDefinition && elementDefinition.height || null,
styles = {},
i;
/** @ignore */
var innerHTML = function()
{
var html = [ '<tbody><tr class="cke_dialog_ui_hbox">' ];
for ( i = 0 ; i < childHtmlList.length ; i++ )
{
var className = 'cke_dialog_ui_hbox_child',
styles = [];
if ( i === 0 )
className = 'cke_dialog_ui_hbox_first';
if ( i == childHtmlList.length - 1 )
className = 'cke_dialog_ui_hbox_last';
html.push( '<td class="', className, '" role="presentation" ' );
if ( widths )
{
if ( widths[i] )
styles.push( 'width:' + cssLength( widths[i] ) );
}
else
styles.push( 'width:' + Math.floor( 100 / childHtmlList.length ) + '%' );
if ( height )
styles.push( 'height:' + cssLength( height ) );
if ( elementDefinition && elementDefinition.padding != undefined )
styles.push( 'padding:' + cssLength( elementDefinition.padding ) );
// In IE Quirks alignment has to be done on table cells. (#7324)
if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && children[ i ].align )
styles.push( 'text-align:' + children[ i ].align );
if ( styles.length > 0 )
html.push( 'style="' + styles.join('; ') + '" ' );
html.push( '>', childHtmlList[i], '</td>' );
}
html.push( '</tr></tbody>' );
return html.join( '' );
};
var attribs = { role : 'presentation' };
elementDefinition && elementDefinition.align && ( attribs.align = elementDefinition.align );
CKEDITOR.ui.dialog.uiElement.call(
this,
dialog,
elementDefinition || { type : 'hbox' },
htmlList,
'table',
styles,
attribs,
innerHTML );
},
/**
* Vertical layout box for dialog UI elements.
* @constructor
* @extends CKEDITOR.ui.dialog.hbox
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {Array} childObjList
* Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this
* container.
* @param {Array} childHtmlList
* Array of HTML code that correspond to the HTML output of all the
* objects in childObjList.
* @param {Array} htmlList
* Array of HTML code that this element will output to.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>width</strong> (Optional) The width of the layout.</li>
* <li><strong>heights</strong> (Optional) The heights of individual cells.
* </li>
* <li><strong>align</strong> (Optional) The alignment of the layout.</li>
* <li><strong>padding</strong> (Optional) The padding width inside child
* cells.</li>
* <li><strong>expand</strong> (Optional) Whether the layout should expand
* vertically to fill its container.</li>
* </ul>
* @example
*/
vbox : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition )
{
if ( arguments.length < 3 )
return;
this._ || ( this._ = {} );
var children = this._.children = childObjList,
width = elementDefinition && elementDefinition.width || null,
heights = elementDefinition && elementDefinition.heights || null;
/** @ignore */
var innerHTML = function()
{
var html = [ '<table role="presentation" cellspacing="0" border="0" ' ];
html.push( 'style="' );
if ( elementDefinition && elementDefinition.expand )
html.push( 'height:100%;' );
html.push( 'width:' + cssLength( width || '100%' ), ';' );
html.push( '"' );
html.push( 'align="', CKEDITOR.tools.htmlEncode(
( elementDefinition && elementDefinition.align ) || ( dialog.getParentEditor().lang.dir == 'ltr' ? 'left' : 'right' ) ), '" ' );
html.push( '><tbody>' );
for ( var i = 0 ; i < childHtmlList.length ; i++ )
{
var styles = [];
html.push( '<tr><td role="presentation" ' );
if ( width )
styles.push( 'width:' + cssLength( width || '100%' ) );
if ( heights )
styles.push( 'height:' + cssLength( heights[i] ) );
else if ( elementDefinition && elementDefinition.expand )
styles.push( 'height:' + Math.floor( 100 / childHtmlList.length ) + '%' );
if ( elementDefinition && elementDefinition.padding != undefined )
styles.push( 'padding:' + cssLength( elementDefinition.padding ) );
// In IE Quirks alignment has to be done on table cells. (#7324)
if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && children[ i ].align )
styles.push( 'text-align:' + children[ i ].align );
if ( styles.length > 0 )
html.push( 'style="', styles.join( '; ' ), '" ' );
html.push( ' class="cke_dialog_ui_vbox_child">', childHtmlList[i], '</td></tr>' );
}
html.push( '</tbody></table>' );
return html.join( '' );
};
CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition || { type : 'vbox' }, htmlList, 'div', null, { role : 'presentation' }, innerHTML );
}
};
})();
CKEDITOR.ui.dialog.uiElement.prototype =
{
/**
* Gets the root DOM element of this dialog UI object.
* @returns {CKEDITOR.dom.element} Root DOM element of UI object.
* @example
* uiElement.getElement().hide();
*/
getElement : function()
{
return CKEDITOR.document.getById( this.domId );
},
/**
* Gets the DOM element that the user inputs values.
* This function is used by setValue(), getValue() and focus(). It should
* be overrided in child classes where the input element isn't the root
* element.
* @returns {CKEDITOR.dom.element} The element where the user input values.
* @example
* var rawValue = textInput.getInputElement().$.value;
*/
getInputElement : function()
{
return this.getElement();
},
/**
* Gets the parent dialog object containing this UI element.
* @returns {CKEDITOR.dialog} Parent dialog object.
* @example
* var dialog = uiElement.getDialog();
*/
getDialog : function()
{
return this._.dialog;
},
/**
* Sets the value of this dialog UI object.
* @param {Object} value The new value.
* @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element.
* @returns {CKEDITOR.dialog.uiElement} The current UI element.
* @example
* uiElement.setValue( 'Dingo' );
*/
setValue : function( value, noChangeEvent )
{
this.getInputElement().setValue( value );
!noChangeEvent && this.fire( 'change', { value : value } );
return this;
},
/**
* Gets the current value of this dialog UI object.
* @returns {Object} The current value.
* @example
* var myValue = uiElement.getValue();
*/
getValue : function()
{
return this.getInputElement().getValue();
},
/**
* Tells whether the UI object's value has changed.
* @returns {Boolean} true if changed, false if not changed.
* @example
* if ( uiElement.isChanged() )
* confirm( 'Value changed! Continue?' );
*/
isChanged : function()
{
// Override in input classes.
return false;
},
/**
* Selects the parent tab of this element. Usually called by focus() or overridden focus() methods.
* @returns {CKEDITOR.dialog.uiElement} The current UI element.
* @example
* focus : function()
* {
* this.selectParentTab();
* // do something else.
* }
*/
selectParentTab : function()
{
var element = this.getInputElement(),
cursor = element,
tabId;
while ( ( cursor = cursor.getParent() ) && cursor.$.className.search( 'cke_dialog_page_contents' ) == -1 )
{ /*jsl:pass*/ }
// Some widgets don't have parent tabs (e.g. OK and Cancel buttons).
if ( !cursor )
return this;
tabId = cursor.getAttribute( 'name' );
// Avoid duplicate select.
if ( this._.dialog._.currentTabId != tabId )
this._.dialog.selectPage( tabId );
return this;
},
/**
* Puts the focus to the UI object. Switches tabs if the UI object isn't in the active tab page.
* @returns {CKEDITOR.dialog.uiElement} The current UI element.
* @example
* uiElement.focus();
*/
focus : function()
{
this.selectParentTab().getInputElement().focus();
return this;
},
/**
* Registers the on* event handlers defined in the element definition.
* The default behavior of this function is:
* <ol>
* <li>
* If the on* event is defined in the class's eventProcesors list,
* then the registration is delegated to the corresponding function
* in the eventProcessors list.
* </li>
* <li>
* If the on* event is not defined in the eventProcessors list, then
* register the event handler under the corresponding DOM event of
* the UI element's input DOM element (as defined by the return value
* of {@link CKEDITOR.ui.dialog.uiElement#getInputElement}).
* </li>
* </ol>
* This function is only called at UI element instantiation, but can
* be overridded in child classes if they require more flexibility.
* @param {CKEDITOR.dialog.definition.uiElement} definition The UI element
* definition.
* @returns {CKEDITOR.dialog.uiElement} The current UI element.
* @example
*/
registerEvents : function( definition )
{
var regex = /^on([A-Z]\w+)/,
match;
var registerDomEvent = function( uiElement, dialog, eventName, func )
{
dialog.on( 'load', function()
{
uiElement.getInputElement().on( eventName, func, uiElement );
});
};
for ( var i in definition )
{
if ( !( match = i.match( regex ) ) )
continue;
if ( this.eventProcessors[i] )
this.eventProcessors[i].call( this, this._.dialog, definition[i] );
else
registerDomEvent( this, this._.dialog, match[1].toLowerCase(), definition[i] );
}
return this;
},
/**
* The event processor list used by
* {@link CKEDITOR.ui.dialog.uiElement#getInputElement} at UI element
* instantiation. The default list defines three on* events:
* <ol>
* <li>onLoad - Called when the element's parent dialog opens for the
* first time</li>
* <li>onShow - Called whenever the element's parent dialog opens.</li>
* <li>onHide - Called whenever the element's parent dialog closes.</li>
* </ol>
* @field
* @type Object
* @example
* // This connects the 'click' event in CKEDITOR.ui.dialog.button to onClick
* // handlers in the UI element's definitions.
* CKEDITOR.ui.dialog.button.eventProcessors = CKEDITOR.tools.extend( {},
* CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,
* { onClick : function( dialog, func ) { this.on( 'click', func ); } },
* true );
*/
eventProcessors :
{
onLoad : function( dialog, func )
{
dialog.on( 'load', func, this );
},
onShow : function( dialog, func )
{
dialog.on( 'show', func, this );
},
onHide : function( dialog, func )
{
dialog.on( 'hide', func, this );
}
},
/**
* The default handler for a UI element's access key down event, which
* tries to put focus to the UI element.<br />
* Can be overridded in child classes for more sophisticaed behavior.
* @param {CKEDITOR.dialog} dialog The parent dialog object.
* @param {String} key The key combination pressed. Since access keys
* are defined to always include the CTRL key, its value should always
* include a 'CTRL+' prefix.
* @example
*/
accessKeyDown : function( dialog, key )
{
this.focus();
},
/**
* The default handler for a UI element's access key up event, which
* does nothing.<br />
* Can be overridded in child classes for more sophisticated behavior.
* @param {CKEDITOR.dialog} dialog The parent dialog object.
* @param {String} key The key combination pressed. Since access keys
* are defined to always include the CTRL key, its value should always
* include a 'CTRL+' prefix.
* @example
*/
accessKeyUp : function( dialog, key )
{
},
/**
* Disables a UI element.
* @example
*/
disable : function()
{
var element = this.getElement(),
input = this.getInputElement();
input.setAttribute( 'disabled', 'true' );
element.addClass( 'cke_disabled' );
},
/**
* Enables a UI element.
* @example
*/
enable : function()
{
var element = this.getElement(),
input = this.getInputElement();
input.removeAttribute( 'disabled' );
element.removeClass( 'cke_disabled' );
},
/**
* Determines whether an UI element is enabled or not.
* @returns {Boolean} Whether the UI element is enabled.
* @example
*/
isEnabled : function()
{
return !this.getElement().hasClass( 'cke_disabled' );
},
/**
* Determines whether an UI element is visible or not.
* @returns {Boolean} Whether the UI element is visible.
* @example
*/
isVisible : function()
{
return this.getInputElement().isVisible();
},
/**
* Determines whether an UI element is focus-able or not.
* Focus-able is defined as being both visible and enabled.
* @returns {Boolean} Whether the UI element can be focused.
* @example
*/
isFocusable : function()
{
if ( !this.isEnabled() || !this.isVisible() )
return false;
return true;
}
};
CKEDITOR.ui.dialog.hbox.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement,
/**
* @lends CKEDITOR.ui.dialog.hbox.prototype
*/
{
/**
* Gets a child UI element inside this container.
* @param {Array|Number} indices An array or a single number to indicate the child's
* position in the container's descendant tree. Omit to get all the children in an array.
* @returns {Array|CKEDITOR.ui.dialog.uiElement} Array of all UI elements in the container
* if no argument given, or the specified UI element if indices is given.
* @example
* var checkbox = hbox.getChild( [0,1] );
* checkbox.setValue( true );
*/
getChild : function( indices )
{
// If no arguments, return a clone of the children array.
if ( arguments.length < 1 )
return this._.children.concat();
// If indices isn't array, make it one.
if ( !indices.splice )
indices = [ indices ];
// Retrieve the child element according to tree position.
if ( indices.length < 2 )
return this._.children[ indices[0] ];
else
return ( this._.children[ indices[0] ] && this._.children[ indices[0] ].getChild ) ?
this._.children[ indices[0] ].getChild( indices.slice( 1, indices.length ) ) :
null;
}
}, true );
CKEDITOR.ui.dialog.vbox.prototype = new CKEDITOR.ui.dialog.hbox();
(function()
{
var commonBuilder = {
build : function( dialog, elementDefinition, output )
{
var children = elementDefinition.children,
child,
childHtmlList = [],
childObjList = [];
for ( var i = 0 ; ( i < children.length && ( child = children[i] ) ) ; i++ )
{
var childHtml = [];
childHtmlList.push( childHtml );
childObjList.push( CKEDITOR.dialog._.uiElementBuilders[ child.type ].build( dialog, child, childHtml ) );
}
return new CKEDITOR.ui.dialog[elementDefinition.type]( dialog, childObjList, childHtmlList, output, elementDefinition );
}
};
CKEDITOR.dialog.addUIElement( 'hbox', commonBuilder );
CKEDITOR.dialog.addUIElement( 'vbox', commonBuilder );
})();
/**
* Generic dialog command. It opens a specific dialog when executed.
* @constructor
* @augments CKEDITOR.commandDefinition
* @param {string} dialogName The name of the dialog to open when executing
* this command.
* @example
* // Register the "link" command, which opens the "link" dialog.
* editor.addCommand( 'link', <b>new CKEDITOR.dialogCommand( 'link' )</b> );
*/
CKEDITOR.dialogCommand = function( dialogName )
{
this.dialogName = dialogName;
};
CKEDITOR.dialogCommand.prototype =
{
/** @ignore */
exec : function( editor )
{
// Special treatment for Opera. (#8031)
CKEDITOR.env.opera ?
CKEDITOR.tools.setTimeout( function() { editor.openDialog( this.dialogName ) }, 0, this )
: editor.openDialog( this.dialogName );
},
// Dialog commands just open a dialog ui, thus require no undo logic,
// undo support should dedicate to specific dialog implementation.
canUndo: false,
editorFocus : CKEDITOR.env.ie || CKEDITOR.env.webkit
};
(function()
{
var notEmptyRegex = /^([a]|[^a])+$/,
integerRegex = /^\d*$/,
numberRegex = /^\d*(?:\.\d+)?$/,
htmlLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,
cssLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,
inlineStyleRegex = /^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;
CKEDITOR.VALIDATE_OR = 1;
CKEDITOR.VALIDATE_AND = 2;
CKEDITOR.dialog.validate =
{
functions : function()
{
var args = arguments;
return function()
{
/**
* It's important for validate functions to be able to accept the value
* as argument in addition to this.getValue(), so that it is possible to
* combine validate functions together to make more sophisticated
* validators.
*/
var value = this && this.getValue ? this.getValue() : args[ 0 ];
var msg = undefined,
relation = CKEDITOR.VALIDATE_AND,
functions = [], i;
for ( i = 0 ; i < args.length ; i++ )
{
if ( typeof( args[i] ) == 'function' )
functions.push( args[i] );
else
break;
}
if ( i < args.length && typeof( args[i] ) == 'string' )
{
msg = args[i];
i++;
}
if ( i < args.length && typeof( args[i]) == 'number' )
relation = args[i];
var passed = ( relation == CKEDITOR.VALIDATE_AND ? true : false );
for ( i = 0 ; i < functions.length ; i++ )
{
if ( relation == CKEDITOR.VALIDATE_AND )
passed = passed && functions[i]( value );
else
passed = passed || functions[i]( value );
}
return !passed ? msg : true;
};
},
regex : function( regex, msg )
{
/*
* Can be greatly shortened by deriving from functions validator if code size
* turns out to be more important than performance.
*/
return function()
{
var value = this && this.getValue ? this.getValue() : arguments[0];
return !regex.test( value ) ? msg : true;
};
},
notEmpty : function( msg )
{
return this.regex( notEmptyRegex, msg );
},
integer : function( msg )
{
return this.regex( integerRegex, msg );
},
'number' : function( msg )
{
return this.regex( numberRegex, msg );
},
'cssLength' : function( msg )
{
return this.functions( function( val ){ return cssLengthRegex.test( CKEDITOR.tools.trim( val ) ); }, msg );
},
'htmlLength' : function( msg )
{
return this.functions( function( val ){ return htmlLengthRegex.test( CKEDITOR.tools.trim( val ) ); }, msg );
},
'inlineStyle' : function( msg )
{
return this.functions( function( val ){ return inlineStyleRegex.test( CKEDITOR.tools.trim( val ) ); }, msg );
},
equals : function( value, msg )
{
return this.functions( function( val ){ return val == value; }, msg );
},
notEqual : function( value, msg )
{
return this.functions( function( val ){ return val != value; }, msg );
}
};
CKEDITOR.on( 'instanceDestroyed', function( evt )
{
// Remove dialog cover on last instance destroy.
if ( CKEDITOR.tools.isEmpty( CKEDITOR.instances ) )
{
var currentTopDialog;
while ( ( currentTopDialog = CKEDITOR.dialog._.currentTop ) )
currentTopDialog.hide();
removeCovers();
}
var dialogs = evt.editor._.storedDialogs;
for ( var name in dialogs )
dialogs[ name ].destroy();
});
})();
// Extend the CKEDITOR.editor class with dialog specific functions.
CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
/** @lends CKEDITOR.editor.prototype */
{
/**
* Loads and opens a registered dialog.
* @param {String} dialogName The registered name of the dialog.
* @param {Function} callback The function to be invoked after dialog instance created.
* @see CKEDITOR.dialog.add
* @example
* CKEDITOR.instances.editor1.openDialog( 'smiley' );
* @returns {CKEDITOR.dialog} The dialog object corresponding to the dialog displayed. null if the dialog name is not registered.
*/
openDialog : function( dialogName, callback )
{
if ( this.mode == 'wysiwyg' && CKEDITOR.env.ie )
{
var selection = this.getSelection();
selection && selection.lock();
}
var dialogDefinitions = CKEDITOR.dialog._.dialogDefinitions[ dialogName ],
dialogSkin = this.skin.dialog;
if ( CKEDITOR.dialog._.currentTop === null )
showCover( this );
// If the dialogDefinition is already loaded, open it immediately.
if ( typeof dialogDefinitions == 'function' && dialogSkin._isLoaded )
{
var storedDialogs = this._.storedDialogs ||
( this._.storedDialogs = {} );
var dialog = storedDialogs[ dialogName ] ||
( storedDialogs[ dialogName ] = new CKEDITOR.dialog( this, dialogName ) );
callback && callback.call( dialog, dialog );
dialog.show();
return dialog;
}
else if ( dialogDefinitions == 'failed' )
{
hideCover();
throw new Error( '[CKEDITOR.dialog.openDialog] Dialog "' + dialogName + '" failed when loading definition.' );
}
var me = this;
function onDialogFileLoaded( success )
{
var dialogDefinition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ],
skin = me.skin.dialog;
// Check if both skin part and definition is loaded.
if ( !skin._isLoaded || loadDefinition && typeof success == 'undefined' )
return;
// In case of plugin error, mark it as loading failed.
if ( typeof dialogDefinition != 'function' )
CKEDITOR.dialog._.dialogDefinitions[ dialogName ] = 'failed';
me.openDialog( dialogName, callback );
}
if ( typeof dialogDefinitions == 'string' )
{
var loadDefinition = 1;
CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( dialogDefinitions ), onDialogFileLoaded, null, 0, 1 );
}
CKEDITOR.skins.load( this, 'dialog', onDialogFileLoaded );
return null;
}
});
})();
CKEDITOR.plugins.add( 'dialog',
{
requires : [ 'dialogui' ]
});
// Dialog related configurations.
/**
* The color of the dialog background cover. It should be a valid CSS color
* string.
* @name CKEDITOR.config.dialog_backgroundCoverColor
* @type String
* @default 'white'
* @example
* config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)';
*/
/**
* The opacity of the dialog background cover. It should be a number within the
* range [0.0, 1.0].
* @name CKEDITOR.config.dialog_backgroundCoverOpacity
* @type Number
* @default 0.5
* @example
* config.dialog_backgroundCoverOpacity = 0.7;
*/
/**
* If the dialog has more than one tab, put focus into the first tab as soon as dialog is opened.
* @name CKEDITOR.config.dialog_startupFocusTab
* @type Boolean
* @default false
* @example
* config.dialog_startupFocusTab = true;
*/
/**
* The distance of magnetic borders used in moving and resizing dialogs,
* measured in pixels.
* @name CKEDITOR.config.dialog_magnetDistance
* @type Number
* @default 20
* @example
* config.dialog_magnetDistance = 30;
*/
/**
* The guideline to follow when generating the dialog buttons. There are 3 possible options:
* <ul>
* <li>'OS' - the buttons will be displayed in the default order of the user's OS;</li>
* <li>'ltr' - for Left-To-Right order;</li>
* <li>'rtl' - for Right-To-Left order.</li>
* </ul>
* @name CKEDITOR.config.dialog_buttonsOrder
* @type String
* @default 'OS'
* @since 3.5
* @example
* config.dialog_buttonsOrder = 'rtl';
*/
/**
* The dialog contents to removed. It's a string composed by dialog name and tab name with a colon between them.
* Separate each pair with semicolon (see example).
* <b>Note: All names are case-sensitive.</b>
* <b>Note: Be cautious when specifying dialog tabs that are mandatory, like "info", dialog functionality might be broken because of this!</b>
* @name CKEDITOR.config.removeDialogTabs
* @type String
* @since 3.5
* @default ''
* @example
* config.removeDialogTabs = 'flash:advanced;image:Link';
*/
/**
* Fired when a dialog definition is about to be used to create a dialog into
* an editor instance. This event makes it possible to customize the definition
* before creating it.
* <p>Note that this event is called only the first time a specific dialog is
* opened. Successive openings will use the cached dialog, and this event will
* not get fired.</p>
* @name CKEDITOR#dialogDefinition
* @event
* @param {CKEDITOR.dialog.definition} data The dialog defination that
* is being loaded.
* @param {CKEDITOR.editor} editor The editor instance that will use the
* dialog.
*/
/**
* Fired when a tab is going to be selected in a dialog
* @name CKEDITOR.dialog#selectPage
* @event
* @param {String} page The id of the page that it's gonna be selected.
* @param {String} currentPage The id of the current page.
*/
/**
* Fired when the user tries to dismiss a dialog
* @name CKEDITOR.dialog#cancel
* @event
* @param {Boolean} hide Whether the event should proceed or not.
*/
/**
* Fired when the user tries to confirm a dialog
* @name CKEDITOR.dialog#ok
* @event
* @param {Boolean} hide Whether the event should proceed or not.
*/
/**
* Fired when a dialog is shown
* @name CKEDITOR.dialog#show
* @event
*/
/**
* Fired when a dialog is shown
* @name CKEDITOR.editor#dialogShow
* @event
*/
/**
* Fired when a dialog is hidden
* @name CKEDITOR.dialog#hide
* @event
*/
/**
* Fired when a dialog is hidden
* @name CKEDITOR.editor#dialogHide
* @event
*/
/**
* Fired when a dialog is being resized. The event is fired on
* both the 'CKEDITOR.dialog' object and the dialog instance
* since 3.5.3, previously it's available only in the global object.
* @name CKEDITOR.dialog#resize
* @since 3.5
* @event
* @param {CKEDITOR.dialog} dialog The dialog being resized (if
* it's fired on the dialog itself, this parameter isn't sent).
* @param {String} skin The skin name.
* @param {Number} width The new width.
* @param {Number} height The new height.
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/dialog/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" dialog, dialog content and dialog button
* definition classes.
*/
/**
* The definition of a dialog window.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create dialogs.
* </div>
* @name CKEDITOR.dialog.definition
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* CKEDITOR.dialog.add( 'testOnly', function( editor )
* {
* return {
* title : 'Test Dialog',
* resizable : CKEDITOR.DIALOG_RESIZE_BOTH,
* minWidth : 500,
* minHeight : 400,
* contents : [
* {
* id : 'tab1',
* label : 'First Tab',
* title : 'First Tab Title',
* accessKey : 'Q',
* elements : [
* {
* type : 'text',
* label : 'Test Text 1',
* id : 'testText1',
* 'default' : 'hello world!'
* }
* ]
* }
* ]
* };
* });
*/
/**
* The dialog title, displayed in the dialog's header. Required.
* @name CKEDITOR.dialog.definition.prototype.title
* @field
* @type String
* @example
*/
/**
* How the dialog can be resized, must be one of the four contents defined below.
* <br /><br />
* <strong>CKEDITOR.DIALOG_RESIZE_NONE</strong><br />
* <strong>CKEDITOR.DIALOG_RESIZE_WIDTH</strong><br />
* <strong>CKEDITOR.DIALOG_RESIZE_HEIGHT</strong><br />
* <strong>CKEDITOR.DIALOG_RESIZE_BOTH</strong><br />
* @name CKEDITOR.dialog.definition.prototype.resizable
* @field
* @type Number
* @default CKEDITOR.DIALOG_RESIZE_NONE
* @example
*/
/**
* The minimum width of the dialog, in pixels.
* @name CKEDITOR.dialog.definition.prototype.minWidth
* @field
* @type Number
* @default 600
* @example
*/
/**
* The minimum height of the dialog, in pixels.
* @name CKEDITOR.dialog.definition.prototype.minHeight
* @field
* @type Number
* @default 400
* @example
*/
/**
* The initial width of the dialog, in pixels.
* @name CKEDITOR.dialog.definition.prototype.width
* @field
* @type Number
* @default @CKEDITOR.dialog.definition.prototype.minWidth
* @since 3.5.3
* @example
*/
/**
* The initial height of the dialog, in pixels.
* @name CKEDITOR.dialog.definition.prototype.height
* @field
* @type Number
* @default @CKEDITOR.dialog.definition.prototype.minHeight
* @since 3.5.3
* @example
*/
/**
* The buttons in the dialog, defined as an array of
* {@link CKEDITOR.dialog.definition.button} objects.
* @name CKEDITOR.dialog.definition.prototype.buttons
* @field
* @type Array
* @default [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ]
* @example
*/
/**
* The contents in the dialog, defined as an array of
* {@link CKEDITOR.dialog.definition.content} objects. Required.
* @name CKEDITOR.dialog.definition.prototype.contents
* @field
* @type Array
* @example
*/
/**
* The function to execute when OK is pressed.
* @name CKEDITOR.dialog.definition.prototype.onOk
* @field
* @type Function
* @example
*/
/**
* The function to execute when Cancel is pressed.
* @name CKEDITOR.dialog.definition.prototype.onCancel
* @field
* @type Function
* @example
*/
/**
* The function to execute when the dialog is displayed for the first time.
* @name CKEDITOR.dialog.definition.prototype.onLoad
* @field
* @type Function
* @example
*/
/**
* The function to execute when the dialog is loaded (executed every time the dialog is opened).
* @name CKEDITOR.dialog.definition.prototype.onShow
* @field
* @type Function
* @example
*/
/**
* <div class="notapi">This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create dialog content pages.</div>
* @name CKEDITOR.dialog.definition.content
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*/
/**
* The id of the content page.
* @name CKEDITOR.dialog.definition.content.prototype.id
* @field
* @type String
* @example
*/
/**
* The tab label of the content page.
* @name CKEDITOR.dialog.definition.content.prototype.label
* @field
* @type String
* @example
*/
/**
* The popup message of the tab label.
* @name CKEDITOR.dialog.definition.content.prototype.title
* @field
* @type String
* @example
*/
/**
* The CTRL hotkey for switching to the tab.
* @name CKEDITOR.dialog.definition.content.prototype.accessKey
* @field
* @type String
* @example
* contentDefinition.accessKey = 'Q'; // Switch to this page when CTRL-Q is pressed.
*/
/**
* The UI elements contained in this content page, defined as an array of
* {@link CKEDITOR.dialog.definition.uiElement} objects.
* @name CKEDITOR.dialog.definition.content.prototype.elements
* @field
* @type Array
* @example
*/
/**
* The definition of user interface element (textarea, radio etc).
* <div class="notapi">This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create dialog UI elements.</div>
* @name CKEDITOR.dialog.definition.uiElement
* @constructor
* @see CKEDITOR.ui.dialog.uiElement
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*/
/**
* The id of the UI element.
* @name CKEDITOR.dialog.definition.uiElement.prototype.id
* @field
* @type String
* @example
*/
/**
* The type of the UI element. Required.
* @name CKEDITOR.dialog.definition.uiElement.prototype.type
* @field
* @type String
* @example
*/
/**
* The popup label of the UI element.
* @name CKEDITOR.dialog.definition.uiElement.prototype.title
* @field
* @type String
* @example
*/
/**
* CSS class names to append to the UI element.
* @name CKEDITOR.dialog.definition.uiElement.prototype.className
* @field
* @type String
* @example
*/
/**
* Inline CSS classes to append to the UI element.
* @name CKEDITOR.dialog.definition.uiElement.prototype.style
* @field
* @type String
* @example
*/
/**
* Horizontal alignment (in container) of the UI element.
* @name CKEDITOR.dialog.definition.uiElement.prototype.align
* @field
* @type String
* @example
*/
/**
* Function to execute the first time the UI element is displayed.
* @name CKEDITOR.dialog.definition.uiElement.prototype.onLoad
* @field
* @type Function
* @example
*/
/**
* Function to execute whenever the UI element's parent dialog is displayed.
* @name CKEDITOR.dialog.definition.uiElement.prototype.onShow
* @field
* @type Function
* @example
*/
/**
* Function to execute whenever the UI element's parent dialog is closed.
* @name CKEDITOR.dialog.definition.uiElement.prototype.onHide
* @field
* @type Function
* @example
*/
/**
* Function to execute whenever the UI element's parent dialog's {@link CKEDITOR.dialog.definition.setupContent} method is executed.
* It usually takes care of the respective UI element as a standalone element.
* @name CKEDITOR.dialog.definition.uiElement.prototype.setup
* @field
* @type Function
* @example
*/
/**
* Function to execute whenever the UI element's parent dialog's {@link CKEDITOR.dialog.definition.commitContent} method is executed.
* It usually takes care of the respective UI element as a standalone element.
* @name CKEDITOR.dialog.definition.uiElement.prototype.commit
* @field
* @type Function
* @example
*/
// ----- hbox -----
/**
* Horizontal layout box for dialog UI elements, auto-expends to available width of container.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create horizontal layouts.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.hbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* @name CKEDITOR.dialog.definition.hbox
* @extends CKEDITOR.dialog.definition.uiElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'hbox',</b>
* widths : [ '25%', '25%', '50%' ],
* children :
* [
* {
* type : 'text',
* id : 'id1',
* width : '40px',
* },
* {
* type : 'text',
* id : 'id2',
* width : '40px',
* },
* {
* type : 'text',
* id : 'id3'
* }
* ]
* }
*/
/**
* Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container.
* @name CKEDITOR.dialog.definition.hbox.prototype.children
* @field
* @type Array
* @example
*/
/**
* (Optional) The widths of child cells.
* @name CKEDITOR.dialog.definition.hbox.prototype.widths
* @field
* @type Array
* @example
*/
/**
* (Optional) The height of the layout.
* @name CKEDITOR.dialog.definition.hbox.prototype.height
* @field
* @type Number
* @example
*/
/**
* The CSS styles to apply to this element.
* @name CKEDITOR.dialog.definition.hbox.prototype.styles
* @field
* @type String
* @example
*/
/**
* (Optional) The padding width inside child cells. Example: 0, 1.
* @name CKEDITOR.dialog.definition.hbox.prototype.padding
* @field
* @type Number
* @example
*/
/**
* (Optional) The alignment of the whole layout. Example: center, top.
* @name CKEDITOR.dialog.definition.hbox.prototype.align
* @field
* @type String
* @example
*/
// ----- vbox -----
/**
* Vertical layout box for dialog UI elements.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create vertical layouts.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.vbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* <style type="text/css">.details .detailList {display:none;} </style>
* @name CKEDITOR.dialog.definition.vbox
* @extends CKEDITOR.dialog.definition.uiElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'vbox',</b>
* align : 'right',
* width : '200px',
* children :
* [
* {
* type : 'text',
* id : 'age',
* label : 'Age'
* },
* {
* type : 'text',
* id : 'sex',
* label : 'Sex'
* },
* {
* type : 'text',
* id : 'nationality',
* label : 'Nationality'
* }
* ]
* }
*/
/**
* Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container.
* @name CKEDITOR.dialog.definition.vbox.prototype.children
* @field
* @type Array
* @example
*/
/**
* (Optional) The width of the layout.
* @name CKEDITOR.dialog.definition.vbox.prototype.width
* @field
* @type Array
* @example
*/
/**
* (Optional) The heights of individual cells.
* @name CKEDITOR.dialog.definition.vbox.prototype.heights
* @field
* @type Number
* @example
*/
/**
* The CSS styles to apply to this element.
* @name CKEDITOR.dialog.definition.vbox.prototype.styles
* @field
* @type String
* @example
*/
/**
* (Optional) The padding width inside child cells. Example: 0, 1.
* @name CKEDITOR.dialog.definition.vbox.prototype.padding
* @field
* @type Number
* @example
*/
/**
* (Optional) The alignment of the whole layout. Example: center, top.
* @name CKEDITOR.dialog.definition.vbox.prototype.align
* @field
* @type String
* @example
*/
/**
* (Optional) Whether the layout should expand vertically to fill its container.
* @name CKEDITOR.dialog.definition.vbox.prototype.expand
* @field
* @type Boolean
* @example
*/
// ----- labeled element ------
/**
* The definition of labeled user interface element (textarea, textInput etc).
* <div class="notapi">This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create dialog UI elements.</div>
* @name CKEDITOR.dialog.definition.labeledElement
* @extends CKEDITOR.dialog.definition.uiElement
* @constructor
* @see CKEDITOR.ui.dialog.labeledElement
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*/
/**
* The label of the UI element.
* @name CKEDITOR.dialog.definition.labeledElement.prototype.label
* @type String
* @field
* @example
* {
* type : 'text',
* label : 'My Label '
* }
*/
/**
* (Optional) Specify the layout of the label. Set to 'horizontal' for horizontal layout.
* The default layout is vertical.
* @name CKEDITOR.dialog.definition.labeledElement.prototype.labelLayout
* @type String
* @field
* @example
* {
* type : 'text',
* label : 'My Label ',
* <strong> labelLayout : 'horizontal',</strong>
* }
*/
/**
* (Optional) Applies only to horizontal layouts: a two elements array of lengths to specify the widths of the
* label and the content element. See also {@link CKEDITOR.dialog.definition.labeledElement#labelLayout}.
* @name CKEDITOR.dialog.definition.labeledElement.prototype.widths
* @type Array
* @field
* @example
* {
* type : 'text',
* label : 'My Label ',
* labelLayout : 'horizontal',
* <strong> widths : [100, 200],</strong>
* }
*/
/**
* Specify the inline style of the uiElement label.
* @name CKEDITOR.dialog.definition.labeledElement.prototype.labelStyle
* @type String
* @field
* @example
* {
* type : 'text',
* label : 'My Label ',
* <strong> labelStyle : 'color: red',</strong>
* }
*/
/**
* Specify the inline style of the input element.
* @name CKEDITOR.dialog.definition.labeledElement.prototype.inputStyle
* @type String
* @since 3.6.1
* @field
* @example
* {
* type : 'text',
* label : 'My Label ',
* <strong> inputStyle : 'text-align:center',</strong>
* }
*/
/**
* Specify the inline style of the input element container .
* @name CKEDITOR.dialog.definition.labeledElement.prototype.controlStyle
* @type String
* @since 3.6.1
* @field
* @example
* {
* type : 'text',
* label : 'My Label ',
* <strong> controlStyle : 'width:3em',</strong>
* }
*/
// ----- button ------
/**
* The definition of a button.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create buttons.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.button} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.button
* @extends CKEDITOR.dialog.definition.uiElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'button',</b>
* id : 'buttonId',
* label : 'Click me',
* title : 'My title',
* onClick : function() {
* // this = CKEDITOR.ui.dialog.button
* alert( 'Clicked: ' + this.id );
* }
* }
*/
/**
* Whether the button is disabled.
* @name CKEDITOR.dialog.definition.button.prototype.disabled
* @type Boolean
* @field
* @example
*/
/**
* The label of the UI element.
* @name CKEDITOR.dialog.definition.button.prototype.label
* @type String
* @field
* @example
*/
// ----- checkbox ------
/**
* The definition of a checkbox element.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create groups of checkbox buttons.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.checkbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.checkbox
* @extends CKEDITOR.dialog.definition.uiElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'checkbox',</b>
* id : 'agree',
* label : 'I agree',
* 'default' : 'checked',
* onClick : function() {
* // this = CKEDITOR.ui.dialog.checkbox
* alert( 'Checked: ' + this.getValue() );
* }
* }
*/
/**
* (Optional) The validation function.
* @name CKEDITOR.dialog.definition.checkbox.prototype.validate
* @field
* @type Function
* @example
*/
/**
* The label of the UI element.
* @name CKEDITOR.dialog.definition.checkbox.prototype.label
* @type String
* @field
* @example
*/
/**
* The default state.
* @name CKEDITOR.dialog.definition.checkbox.prototype.default
* @type String
* @field
* @default
* '' (unchecked)
* @example
*/
// ----- file -----
/**
* The definition of a file upload input.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create file upload elements.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.file} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.file
* @extends CKEDITOR.dialog.definition.labeledElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'file'</b>,
* id : 'upload',
* label : 'Select file from your computer',
* size : 38
* },
* {
* type : 'fileButton',
* id : 'fileId',
* label : 'Upload file',
* 'for' : [ 'tab1', 'upload' ]
* filebrowser : {
* onSelect : function( fileUrl, data ) {
* alert( 'Successfully uploaded: ' + fileUrl );
* }
* }
* }
*/
/**
* (Optional) The validation function.
* @name CKEDITOR.dialog.definition.file.prototype.validate
* @field
* @type Function
* @example
*/
/**
* (Optional) The action attribute of the form element associated with this file upload input.
* If empty, CKEditor will use path to server connector for currently opened folder.
* @name CKEDITOR.dialog.definition.file.prototype.action
* @type String
* @field
* @example
*/
/**
* The size of the UI element.
* @name CKEDITOR.dialog.definition.file.prototype.size
* @type Number
* @field
* @example
*/
// ----- fileButton -----
/**
* The definition of a button for submitting the file in a file upload input.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create a button for submitting the file in a file upload input.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.fileButton} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.fileButton
* @extends CKEDITOR.dialog.definition.uiElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* type : 'file',
* id : 'upload',
* label : 'Select file from your computer',
* size : 38
* },
* {
* <b>type : 'fileButton'</b>,
* id : 'fileId',
* label : 'Upload file',
* 'for' : [ 'tab1', 'upload' ]
* filebrowser : {
* onSelect : function( fileUrl, data ) {
* alert( 'Successfully uploaded: ' + fileUrl );
* }
* }
* }
*/
/**
* (Optional) The validation function.
* @name CKEDITOR.dialog.definition.fileButton.prototype.validate
* @field
* @type Function
* @example
*/
/**
* The label of the UI element.
* @name CKEDITOR.dialog.definition.fileButton.prototype.label
* @type String
* @field
* @example
*/
/**
* The instruction for CKEditor how to deal with file upload.
* By default, the file and fileButton elements will not work "as expected" if this attribute is not set.
* @name CKEDITOR.dialog.definition.fileButton.prototype.filebrowser
* @type String|Object
* @field
* @example
* // Update field with id 'txtUrl' in the 'tab1' tab when file is uploaded.
* filebrowser : 'tab1:txtUrl'
*
* // Call custom onSelect function when file is successfully uploaded.
* filebrowser : {
* onSelect : function( fileUrl, data ) {
* alert( 'Successfully uploaded: ' + fileUrl );
* }
* }
*/
/**
* An array that contains pageId and elementId of the file upload input element for which this button is created.
* @name CKEDITOR.dialog.definition.fileButton.prototype.for
* @type String
* @field
* @example
* [ pageId, elementId ]
*/
// ----- html -----
/**
* The definition of a raw HTML element.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create elements made from raw HTML code.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.html} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.<br />
* To access HTML elements use {@link CKEDITOR.dom.document#getById}
* @name CKEDITOR.dialog.definition.html
* @extends CKEDITOR.dialog.definition.uiElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example 1:
* {
* <b>type : 'html',</b>
* html : '<h3>This is some sample HTML content.</h3>'
* }
* @example
* // Example 2:
* // Complete sample with document.getById() call when the "Ok" button is clicked.
* var dialogDefinition =
* {
* title : 'Sample dialog',
* minWidth : 300,
* minHeight : 200,
* onOk : function() {
* // "this" is now a CKEDITOR.dialog object.
* var document = this.getElement().getDocument();
* // document = CKEDITOR.dom.document
* var element = <b>document.getById( 'myDiv' );</b>
* if ( element )
* alert( element.getHtml() );
* },
* contents : [
* {
* id : 'tab1',
* label : '',
* title : '',
* elements :
* [
* {
* <b>type : 'html',</b>
* html : '<b><div id="myDiv">Sample <b>text</b>.</div></b><div id="otherId">Another div.</div>'
* },
* ]
* }
* ],
* buttons : [ CKEDITOR.dialog.cancelButton, CKEDITOR.dialog.okButton ]
* };
*/
/**
* (Required) HTML code of this element.
* @name CKEDITOR.dialog.definition.html.prototype.html
* @type String
* @field
* @example
*/
// ----- radio ------
/**
* The definition of a radio group.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create groups of radio buttons.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.radio} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.radio
* @extends CKEDITOR.dialog.definition.labeledElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'radio',</b>
* id : 'country',
* label : 'Which country is bigger',
* items : [ [ 'France', 'FR' ], [ 'Germany', 'DE' ] ] ,
* style : 'color:green',
* 'default' : 'DE',
* onClick : function() {
* // this = CKEDITOR.ui.dialog.radio
* alert( 'Current value: ' + this.getValue() );
* }
* }
*/
/**
* The default value.
* @name CKEDITOR.dialog.definition.radio.prototype.default
* @type String
* @field
* @example
*/
/**
* (Optional) The validation function.
* @name CKEDITOR.dialog.definition.radio.prototype.validate
* @field
* @type Function
* @example
*/
/**
* An array of options. Each option is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' is missing, then the value would be assumed to be the same as the description.
* @name CKEDITOR.dialog.definition.radio.prototype.items
* @field
* @type Array
* @example
*/
// ----- selectElement ------
/**
* The definition of a select element.
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create select elements.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.select} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.select
* @extends CKEDITOR.dialog.definition.labeledElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'select',</b>
* id : 'sport',
* label : 'Select your favourite sport',
* items : [ [ 'Basketball' ], [ 'Baseball' ], [ 'Hockey' ], [ 'Football' ] ],
* 'default' : 'Football',
* onChange : function( api ) {
* // this = CKEDITOR.ui.dialog.select
* alert( 'Current value: ' + this.getValue() );
* }
* }
*/
/**
* The default value.
* @name CKEDITOR.dialog.definition.select.prototype.default
* @type String
* @field
* @example
*/
/**
* (Optional) The validation function.
* @name CKEDITOR.dialog.definition.select.prototype.validate
* @field
* @type Function
* @example
*/
/**
* An array of options. Each option is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' is missing, then the value would be assumed to be the same as the description.
* @name CKEDITOR.dialog.definition.select.prototype.items
* @field
* @type Array
* @example
*/
/**
* (Optional) Set this to true if you'd like to have a multiple-choice select box.
* @name CKEDITOR.dialog.definition.select.prototype.multiple
* @type Boolean
* @field
* @example
* @default false
*/
/**
* (Optional) The number of items to display in the select box.
* @name CKEDITOR.dialog.definition.select.prototype.size
* @type Number
* @field
* @example
*/
// ----- textInput -----
/**
* The definition of a text field (single line).
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create text fields.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textInput} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.textInput
* @extends CKEDITOR.dialog.definition.labeledElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* {
* <b>type : 'text',</b>
* id : 'name',
* label : 'Your name',
* 'default' : '',
* validate : function() {
* if ( !this.getValue() )
* {
* api.openMsgDialog( '', 'Name cannot be empty.' );
* return false;
* }
* }
* }
*/
/**
* The default value.
* @name CKEDITOR.dialog.definition.textInput.prototype.default
* @type String
* @field
* @example
*/
/**
* (Optional) The maximum length.
* @name CKEDITOR.dialog.definition.textInput.prototype.maxLength
* @type Number
* @field
* @example
*/
/**
* (Optional) The size of the input field.
* @name CKEDITOR.dialog.definition.textInput.prototype.size
* @type Number
* @field
* @example
*/
/**
* (Optional) The validation function.
* @name CKEDITOR.dialog.definition.textInput.prototype.validate
* @field
* @type Function
* @example
*/
// ----- textarea ------
/**
* The definition of a text field (multiple lines).
* <div class="notapi">
* This class is not really part of the API. It just illustrates the properties
* that developers can use to define and create textarea.
* <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textarea} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
* </div>
* For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
* @name CKEDITOR.dialog.definition.textarea
* @extends CKEDITOR.dialog.definition.labeledElement
* @constructor
* @example
* // There is no constructor for this class, the user just has to define an
* // object with the appropriate properties.
*
* // Example:
* {
* <b>type : 'textarea',</b>
* id : 'message',
* label : 'Your comment',
* 'default' : '',
* validate : function() {
* if ( this.getValue().length < 5 )
* {
* api.openMsgDialog( 'The comment is too short.' );
* return false;
* }
* }
* }
*/
/**
* The number of rows.
* @name CKEDITOR.dialog.definition.textarea.prototype.rows
* @type Number
* @field
* @example
*/
/**
* The number of columns.
* @name CKEDITOR.dialog.definition.textarea.prototype.cols
* @type Number
* @field
* @example
*/
/**
* (Optional) The validation function.
* @name CKEDITOR.dialog.definition.textarea.prototype.validate
* @field
* @type Function
* @example
*/
/**
* The default value.
* @name CKEDITOR.dialog.definition.textarea.prototype.default
* @type String
* @field
* @example
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/dialog/dialogDefinition.js | dialogDefinition.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.plugins.add( 'enterkey',
{
requires : [ 'keystrokes', 'indent' ],
init : function( editor )
{
editor.addCommand( 'enter', {
modes : { wysiwyg:1 },
editorFocus : false,
exec : function( editor ){ enter( editor ); }
});
editor.addCommand( 'shiftEnter', {
modes : { wysiwyg:1 },
editorFocus : false,
exec : function( editor ){ shiftEnter( editor ); }
});
var keystrokes = editor.keystrokeHandler.keystrokes;
keystrokes[ 13 ] = 'enter';
keystrokes[ CKEDITOR.SHIFT + 13 ] = 'shiftEnter';
}
});
CKEDITOR.plugins.enterkey =
{
enterBlock : function( editor, mode, range, forceMode )
{
// Get the range for the current selection.
range = range || getRange( editor );
// We may not have valid ranges to work on, like when inside a
// contenteditable=false element.
if ( !range )
return;
var doc = range.document;
var atBlockStart = range.checkStartOfBlock(),
atBlockEnd = range.checkEndOfBlock(),
path = new CKEDITOR.dom.elementPath( range.startContainer ),
block = path.block;
if ( atBlockStart && atBlockEnd )
{
// Exit the list when we're inside an empty list item block. (#5376)
if ( block && ( block.is( 'li' ) || block.getParent().is( 'li' ) ) )
{
editor.execCommand( 'outdent' );
return;
}
if ( block && block.getParent().is( 'blockquote' ) )
{
block.breakParent( block.getParent() );
// If we were at the start of <blockquote>, there will be an empty element before it now.
if ( !block.getPrevious().getFirst( CKEDITOR.dom.walker.invisible(1) ) )
block.getPrevious().remove();
// If we were at the end of <blockquote>, there will be an empty element after it now.
if ( !block.getNext().getFirst( CKEDITOR.dom.walker.invisible(1) ) )
block.getNext().remove();
range.moveToElementEditStart( block );
range.select();
return;
}
}
// Don't split <pre> if we're in the middle of it, act as shift enter key.
else if ( block && block.is( 'pre' ) )
{
if ( !atBlockEnd )
{
enterBr( editor, mode, range, forceMode );
return;
}
}
// Don't split caption blocks. (#7944)
else if ( block && CKEDITOR.dtd.$captionBlock[ block.getName() ] )
{
enterBr( editor, mode, range, forceMode );
return;
}
// Determine the block element to be used.
var blockTag = ( mode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
// Split the range.
var splitInfo = range.splitBlock( blockTag );
if ( !splitInfo )
return;
// Get the current blocks.
var previousBlock = splitInfo.previousBlock,
nextBlock = splitInfo.nextBlock;
var isStartOfBlock = splitInfo.wasStartOfBlock,
isEndOfBlock = splitInfo.wasEndOfBlock;
var node;
// If this is a block under a list item, split it as well. (#1647)
if ( nextBlock )
{
node = nextBlock.getParent();
if ( node.is( 'li' ) )
{
nextBlock.breakParent( node );
nextBlock.move( nextBlock.getNext(), 1 );
}
}
else if ( previousBlock && ( node = previousBlock.getParent() ) && node.is( 'li' ) )
{
previousBlock.breakParent( node );
node = previousBlock.getNext();
range.moveToElementEditStart( node );
previousBlock.move( previousBlock.getPrevious() );
}
// If we have both the previous and next blocks, it means that the
// boundaries were on separated blocks, or none of them where on the
// block limits (start/end).
if ( !isStartOfBlock && !isEndOfBlock )
{
// If the next block is an <li> with another list tree as the first
// child, we'll need to append a filler (<br>/NBSP) or the list item
// wouldn't be editable. (#1420)
if ( nextBlock.is( 'li' )
&& ( node = nextBlock.getFirst( CKEDITOR.dom.walker.invisible( true ) ) )
&& node.is && node.is( 'ul', 'ol' ) )
( CKEDITOR.env.ie ? doc.createText( '\xa0' ) : doc.createElement( 'br' ) ).insertBefore( node );
// Move the selection to the end block.
if ( nextBlock )
range.moveToElementEditStart( nextBlock );
}
else
{
var newBlock,
newBlockDir;
if ( previousBlock )
{
// Do not enter this block if it's a header tag, or we are in
// a Shift+Enter (#77). Create a new block element instead
// (later in the code).
if ( previousBlock.is( 'li' ) ||
! ( headerTagRegex.test( previousBlock.getName() ) || previousBlock.is( 'pre' ) ) )
{
// Otherwise, duplicate the previous block.
newBlock = previousBlock.clone();
}
}
else if ( nextBlock )
newBlock = nextBlock.clone();
if ( !newBlock )
{
// We have already created a new list item. (#6849)
if ( node && node.is( 'li' ) )
newBlock = node;
else
{
newBlock = doc.createElement( blockTag );
if ( previousBlock && ( newBlockDir = previousBlock.getDirection() ) )
newBlock.setAttribute( 'dir', newBlockDir );
}
}
// Force the enter block unless we're talking of a list item.
else if ( forceMode && !newBlock.is( 'li' ) )
newBlock.renameNode( blockTag );
// Recreate the inline elements tree, which was available
// before hitting enter, so the same styles will be available in
// the new block.
var elementPath = splitInfo.elementPath;
if ( elementPath )
{
for ( var i = 0, len = elementPath.elements.length ; i < len ; i++ )
{
var element = elementPath.elements[ i ];
if ( element.equals( elementPath.block ) || element.equals( elementPath.blockLimit ) )
break;
if ( CKEDITOR.dtd.$removeEmpty[ element.getName() ] )
{
element = element.clone();
newBlock.moveChildren( element );
newBlock.append( element );
}
}
}
if ( !CKEDITOR.env.ie )
newBlock.appendBogus();
if ( !newBlock.getParent() )
range.insertNode( newBlock );
// list item start number should not be duplicated (#7330), but we need
// to remove the attribute after it's onto the DOM tree because of old IEs (#7581).
newBlock.is( 'li' ) && newBlock.removeAttribute( 'value' );
// This is tricky, but to make the new block visible correctly
// we must select it.
// The previousBlock check has been included because it may be
// empty if we have fixed a block-less space (like ENTER into an
// empty table cell).
if ( CKEDITOR.env.ie && isStartOfBlock && ( !isEndOfBlock || !previousBlock.getChildCount() ) )
{
// Move the selection to the new block.
range.moveToElementEditStart( isEndOfBlock ? previousBlock : newBlock );
range.select();
}
// Move the selection to the new block.
range.moveToElementEditStart( isStartOfBlock && !isEndOfBlock ? nextBlock : newBlock );
}
if ( !CKEDITOR.env.ie )
{
if ( nextBlock )
{
// If we have split the block, adds a temporary span at the
// range position and scroll relatively to it.
var tmpNode = doc.createElement( 'span' );
// We need some content for Safari.
tmpNode.setHtml( ' ' );
range.insertNode( tmpNode );
tmpNode.scrollIntoView();
range.deleteContents();
}
else
{
// We may use the above scroll logic for the new block case
// too, but it gives some weird result with Opera.
newBlock.scrollIntoView();
}
}
range.select();
},
enterBr : function( editor, mode, range, forceMode )
{
// Get the range for the current selection.
range = range || getRange( editor );
// We may not have valid ranges to work on, like when inside a
// contenteditable=false element.
if ( !range )
return;
var doc = range.document;
// Determine the block element to be used.
var blockTag = ( mode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
var isEndOfBlock = range.checkEndOfBlock();
var elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() );
var startBlock = elementPath.block,
startBlockTag = startBlock && elementPath.block.getName();
var isPre = false;
if ( !forceMode && startBlockTag == 'li' )
{
enterBlock( editor, mode, range, forceMode );
return;
}
// If we are at the end of a header block.
if ( !forceMode && isEndOfBlock && headerTagRegex.test( startBlockTag ) )
{
var newBlock,
newBlockDir;
if ( ( newBlockDir = startBlock.getDirection() ) )
{
newBlock = doc.createElement( 'div' );
newBlock.setAttribute( 'dir', newBlockDir );
newBlock.insertAfter( startBlock );
range.setStart( newBlock, 0 );
}
else
{
// Insert a <br> after the current paragraph.
doc.createElement( 'br' ).insertAfter( startBlock );
// A text node is required by Gecko only to make the cursor blink.
if ( CKEDITOR.env.gecko )
doc.createText( '' ).insertAfter( startBlock );
// IE has different behaviors regarding position.
range.setStartAt( startBlock.getNext(), CKEDITOR.env.ie ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_START );
}
}
else
{
var lineBreak;
isPre = ( startBlockTag == 'pre' );
// Gecko prefers <br> as line-break inside <pre> (#4711).
if ( isPre && !CKEDITOR.env.gecko )
lineBreak = doc.createText( CKEDITOR.env.ie ? '\r' : '\n' );
else
lineBreak = doc.createElement( 'br' );
range.deleteContents();
range.insertNode( lineBreak );
// IE has different behavior regarding position.
if ( CKEDITOR.env.ie )
range.setStartAt( lineBreak, CKEDITOR.POSITION_AFTER_END );
else
{
// A text node is required by Gecko only to make the cursor blink.
// We need some text inside of it, so the bogus <br> is properly
// created.
doc.createText( '\ufeff' ).insertAfter( lineBreak );
// If we are at the end of a block, we must be sure the bogus node is available in that block.
if ( isEndOfBlock )
lineBreak.getParent().appendBogus();
// Now we can remove the text node contents, so the caret doesn't
// stop on it.
lineBreak.getNext().$.nodeValue = '';
range.setStartAt( lineBreak.getNext(), CKEDITOR.POSITION_AFTER_START );
// Scroll into view, for non IE.
var dummy = null;
// BR is not positioned in Opera and Webkit.
if ( !CKEDITOR.env.gecko )
{
dummy = doc.createElement( 'span' );
// We need have some contents for Webkit to position it
// under parent node. ( #3681)
dummy.setHtml(' ');
}
else
dummy = doc.createElement( 'br' );
dummy.insertBefore( lineBreak.getNext() );
dummy.scrollIntoView();
dummy.remove();
}
}
// This collapse guarantees the cursor will be blinking.
range.collapse( true );
range.select( isPre );
}
};
var plugin = CKEDITOR.plugins.enterkey,
enterBr = plugin.enterBr,
enterBlock = plugin.enterBlock,
headerTagRegex = /^h[1-6]$/;
function shiftEnter( editor )
{
// Only effective within document.
if ( editor.mode != 'wysiwyg' )
return false;
// On SHIFT+ENTER:
// 1. We want to enforce the mode to be respected, instead
// of cloning the current block. (#77)
return enter( editor, editor.config.shiftEnterMode, 1 );
}
function enter( editor, mode, forceMode )
{
forceMode = editor.config.forceEnterMode || forceMode;
// Only effective within document.
if ( editor.mode != 'wysiwyg' )
return false;
if ( !mode )
mode = editor.config.enterMode;
// Use setTimout so the keys get cancelled immediatelly.
setTimeout( function()
{
editor.fire( 'saveSnapshot' ); // Save undo step.
if ( mode == CKEDITOR.ENTER_BR )
enterBr( editor, mode, null, forceMode );
else
enterBlock( editor, mode, null, forceMode );
editor.fire( 'saveSnapshot' );
}, 0 );
return true;
}
function getRange( editor )
{
// Get the selection ranges.
var ranges = editor.getSelection().getRanges( true );
// Delete the contents of all ranges except the first one.
for ( var i = ranges.length - 1 ; i > 0 ; i-- )
{
ranges[ i ].deleteContents();
}
// Return the first range.
return ranges[ 0 ];
}
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/enterkey/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "wysiwygarea" plugin. It registers the "wysiwyg" editing
* mode, which handles the main editing area space.
*/
(function()
{
// Matching an empty paragraph at the end of document.
var emptyParagraphRegexp = /(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;
var notWhitespaceEval = CKEDITOR.dom.walker.whitespaces( true );
// Elements that could blink the cursor anchoring beside it, like hr, page-break. (#6554)
function nonEditable( element )
{
return element.isBlockBoundary() && CKEDITOR.dtd.$empty[ element.getName() ];
}
function onInsert( insertFunc )
{
return function( evt )
{
if ( this.mode == 'wysiwyg' )
{
this.focus();
this.fire( 'saveSnapshot' );
insertFunc.call( this, evt.data );
// Save snaps after the whole execution completed.
// This's a workaround for make DOM modification's happened after
// 'insertElement' to be included either, e.g. Form-based dialogs' 'commitContents'
// call.
CKEDITOR.tools.setTimeout( function()
{
this.fire( 'saveSnapshot' );
}, 0, this );
}
};
}
function doInsertHtml( data )
{
if ( this.dataProcessor )
data = this.dataProcessor.toHtml( data );
if ( !data )
return;
// HTML insertion only considers the first range.
var selection = this.getSelection(),
range = selection.getRanges()[ 0 ];
if ( range.checkReadOnly() )
return;
// Opera: force block splitting when pasted content contains block. (#7801)
if ( CKEDITOR.env.opera )
{
var path = new CKEDITOR.dom.elementPath( range.startContainer );
if ( path.block )
{
var nodes = CKEDITOR.htmlParser.fragment.fromHtml( data, false ).children;
for ( var i = 0, count = nodes.length; i < count; i++ )
{
if ( nodes[ i ]._.isBlockLike )
{
range.splitBlock( this.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
range.insertNode( range.document.createText( '' ) );
range.select();
break;
}
}
}
}
if ( CKEDITOR.env.ie )
{
var selIsLocked = selection.isLocked;
if ( selIsLocked )
selection.unlock();
var $sel = selection.getNative();
// Delete control selections to avoid IE bugs on pasteHTML.
if ( $sel.type == 'Control' )
$sel.clear();
else if ( selection.getType() == CKEDITOR.SELECTION_TEXT )
{
// Due to IE bugs on handling contenteditable=false blocks
// (#6005), we need to make some checks and eventually
// delete the selection first.
range = selection.getRanges()[ 0 ];
var endContainer = range && range.endContainer;
if ( endContainer &&
endContainer.type == CKEDITOR.NODE_ELEMENT &&
endContainer.getAttribute( 'contenteditable' ) == 'false' &&
range.checkBoundaryOfElement( endContainer, CKEDITOR.END ) )
{
range.setEndAfter( range.endContainer );
range.deleteContents();
}
}
$sel.createRange().pasteHTML( data );
if ( selIsLocked )
this.getSelection().lock();
}
else
this.document.$.execCommand( 'inserthtml', false, data );
// Webkit does not scroll to the cursor position after pasting (#5558)
if ( CKEDITOR.env.webkit )
{
selection = this.getSelection();
selection.scrollIntoView();
}
}
function doInsertText( text )
{
var selection = this.getSelection(),
mode = selection.getStartElement().hasAscendant( 'pre', true ) ?
CKEDITOR.ENTER_BR : this.config.enterMode,
isEnterBrMode = mode == CKEDITOR.ENTER_BR;
var html = CKEDITOR.tools.htmlEncode( text.replace( /\r\n|\r/g, '\n' ) );
// Convert leading and trailing whitespaces into
html = html.replace( /^[ \t]+|[ \t]+$/g, function( match, offset, s )
{
if ( match.length == 1 ) // one space, preserve it
return ' ';
else if ( !offset ) // beginning of block
return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' ';
else // end of block
return ' ' + CKEDITOR.tools.repeat( ' ', match.length - 1 );
} );
// Convert subsequent whitespaces into
html = html.replace( /[ \t]{2,}/g, function ( match )
{
return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' ';
} );
var paragraphTag = mode == CKEDITOR.ENTER_P ? 'p' : 'div';
// Two line-breaks create one paragraph.
if ( !isEnterBrMode )
{
html = html.replace( /(\n{2})([\s\S]*?)(?:$|\1)/g,
function( match, group1, text )
{
return '<'+paragraphTag + '>' + text + '</' + paragraphTag + '>';
});
}
// One <br> per line-break.
html = html.replace( /\n/g, '<br>' );
// Compensate padding <br> for non-IE.
if ( !( isEnterBrMode || CKEDITOR.env.ie ) )
{
html = html.replace( new RegExp( '<br>(?=</' + paragraphTag + '>)' ), function( match )
{
return CKEDITOR.tools.repeat( match, 2 );
} );
}
// Inline styles have to be inherited in Firefox.
if ( CKEDITOR.env.gecko || CKEDITOR.env.webkit )
{
var path = new CKEDITOR.dom.elementPath( selection.getStartElement() ),
context = [];
for ( var i = 0; i < path.elements.length; i++ )
{
var tag = path.elements[ i ].getName();
if ( tag in CKEDITOR.dtd.$inline )
context.unshift( path.elements[ i ].getOuterHtml().match( /^<.*?>/) );
else if ( tag in CKEDITOR.dtd.$block )
break;
}
// Reproduce the context by preceding the pasted HTML with opening inline tags.
html = context.join( '' ) + html;
}
doInsertHtml.call( this, html );
}
function doInsertElement( element )
{
var selection = this.getSelection(),
ranges = selection.getRanges(),
elementName = element.getName(),
isBlock = CKEDITOR.dtd.$block[ elementName ];
var selIsLocked = selection.isLocked;
if ( selIsLocked )
selection.unlock();
var range, clone, lastElement, bookmark;
for ( var i = ranges.length - 1 ; i >= 0 ; i-- )
{
range = ranges[ i ];
if ( !range.checkReadOnly() )
{
// Remove the original contents, merge splitted nodes.
range.deleteContents( 1 );
clone = !i && element || element.clone( 1 );
// If we're inserting a block at dtd-violated position, split
// the parent blocks until we reach blockLimit.
var current, dtd;
if ( isBlock )
{
while ( ( current = range.getCommonAncestor( 0, 1 ) )
&& ( dtd = CKEDITOR.dtd[ current.getName() ] )
&& !( dtd && dtd [ elementName ] ) )
{
// Split up inline elements.
if ( current.getName() in CKEDITOR.dtd.span )
range.splitElement( current );
// If we're in an empty block which indicate a new paragraph,
// simply replace it with the inserting block.(#3664)
else if ( range.checkStartOfBlock()
&& range.checkEndOfBlock() )
{
range.setStartBefore( current );
range.collapse( true );
current.remove();
}
else
range.splitBlock();
}
}
// Insert the new node.
range.insertNode( clone );
// Save the last element reference so we can make the
// selection later.
if ( !lastElement )
lastElement = clone;
}
}
if ( lastElement )
{
range.moveToPosition( lastElement, CKEDITOR.POSITION_AFTER_END );
// If we're inserting a block element immediatelly followed by
// another block element, the selection must move there. (#3100,#5436)
if ( isBlock )
{
var next = lastElement.getNext( notWhitespaceEval ),
nextName = next && next.type == CKEDITOR.NODE_ELEMENT && next.getName();
// Check if it's a block element that accepts text.
if ( nextName && CKEDITOR.dtd.$block[ nextName ] && CKEDITOR.dtd[ nextName ]['#'] )
range.moveToElementEditStart( next );
}
}
selection.selectRanges( [ range ] );
if ( selIsLocked )
this.getSelection().lock();
}
// DOM modification here should not bother dirty flag.(#4385)
function restoreDirty( editor )
{
if ( !editor.checkDirty() )
setTimeout( function(){ editor.resetDirty(); }, 0 );
}
var isNotWhitespace = CKEDITOR.dom.walker.whitespaces( true ),
isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true );
function isNotEmpty( node )
{
return isNotWhitespace( node ) && isNotBookmark( node );
}
function isNbsp( node )
{
return node.type == CKEDITOR.NODE_TEXT
&& CKEDITOR.tools.trim( node.getText() ).match( /^(?: |\xa0)$/ );
}
function restoreSelection( selection )
{
if ( selection.isLocked )
{
selection.unlock();
setTimeout( function() { selection.lock(); }, 0 );
}
}
function isBlankParagraph( block )
{
return block.getOuterHtml().match( emptyParagraphRegexp );
}
isNotWhitespace = CKEDITOR.dom.walker.whitespaces( true );
// Gecko need a key event to 'wake up' the editing
// ability when document is empty.(#3864, #5781)
function activateEditing( editor )
{
var win = editor.window,
doc = editor.document,
body = editor.document.getBody(),
bodyFirstChild = body.getFirst(),
bodyChildsNum = body.getChildren().count();
if ( !bodyChildsNum
|| bodyChildsNum == 1
&& bodyFirstChild.type == CKEDITOR.NODE_ELEMENT
&& bodyFirstChild.hasAttribute( '_moz_editor_bogus_node' ) )
{
restoreDirty( editor );
// Memorize scroll position to restore it later (#4472).
var hostDocument = editor.element.getDocument();
var hostDocumentElement = hostDocument.getDocumentElement();
var scrollTop = hostDocumentElement.$.scrollTop;
var scrollLeft = hostDocumentElement.$.scrollLeft;
// Simulating keyboard character input by dispatching a keydown of white-space text.
var keyEventSimulate = doc.$.createEvent( "KeyEvents" );
keyEventSimulate.initKeyEvent( 'keypress', true, true, win.$, false,
false, false, false, 0, 32 );
doc.$.dispatchEvent( keyEventSimulate );
if ( scrollTop != hostDocumentElement.$.scrollTop || scrollLeft != hostDocumentElement.$.scrollLeft )
hostDocument.getWindow().$.scrollTo( scrollLeft, scrollTop );
// Restore the original document status by placing the cursor before a bogus br created (#5021).
bodyChildsNum && body.getFirst().remove();
doc.getBody().appendBogus();
var nativeRange = new CKEDITOR.dom.range( doc );
nativeRange.setStartAt( body , CKEDITOR.POSITION_AFTER_START );
nativeRange.select();
}
}
/**
* Auto-fixing block-less content by wrapping paragraph (#3190), prevent
* non-exitable-block by padding extra br.(#3189)
*/
function onSelectionChangeFixBody( evt )
{
var editor = evt.editor,
path = evt.data.path,
blockLimit = path.blockLimit,
selection = evt.data.selection,
range = selection.getRanges()[0],
body = editor.document.getBody(),
enterMode = editor.config.enterMode;
if ( CKEDITOR.env.gecko )
{
activateEditing( editor );
// Ensure bogus br could help to move cursor (out of styles) to the end of block. (#7041)
var pathBlock = path.block || path.blockLimit,
lastNode = pathBlock && pathBlock.getLast( isNotEmpty );
// Check some specialities of the current path block:
// 1. It is really displayed as block; (#7221)
// 2. It doesn't end with one inner block; (#7467)
// 3. It doesn't have bogus br yet.
if ( pathBlock
&& pathBlock.isBlockBoundary()
&& !( lastNode && lastNode.type == CKEDITOR.NODE_ELEMENT && lastNode.isBlockBoundary() )
&& !pathBlock.is( 'pre' )
&& !pathBlock.getBogus() )
{
pathBlock.appendBogus();
}
}
// When we're in block enter mode, a new paragraph will be established
// to encapsulate inline contents right under body. (#3657)
if ( editor.config.autoParagraph !== false
&& enterMode != CKEDITOR.ENTER_BR
&& range.collapsed
&& blockLimit.getName() == 'body'
&& !path.block )
{
var fixedBlock = range.fixBlock( true,
editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
// For IE, we should remove any filler node which was introduced before.
if ( CKEDITOR.env.ie )
{
var first = fixedBlock.getFirst( isNotEmpty );
first && isNbsp( first ) && first.remove();
}
// If the fixed block is actually blank and is already followed by an exitable blank
// block, we should revert the fix and move into the existed one. (#3684)
if ( isBlankParagraph( fixedBlock ) )
{
var element = fixedBlock.getNext( isNotWhitespace );
if ( element &&
element.type == CKEDITOR.NODE_ELEMENT &&
!nonEditable( element ) )
{
range.moveToElementEditStart( element );
fixedBlock.remove();
}
else
{
element = fixedBlock.getPrevious( isNotWhitespace );
if ( element &&
element.type == CKEDITOR.NODE_ELEMENT &&
!nonEditable( element ) )
{
range.moveToElementEditEnd( element );
fixedBlock.remove();
}
}
}
range.select();
// Cancel this selection change in favor of the next (correct). (#6811)
evt.cancel();
}
// Browsers are incapable of moving cursor out of certain block elements (e.g. table, div, pre)
// at the end of document, makes it unable to continue adding content, we have to make this
// easier by opening an new empty paragraph.
var testRange = new CKEDITOR.dom.range( editor.document );
testRange.moveToElementEditEnd( editor.document.getBody() );
var testPath = new CKEDITOR.dom.elementPath( testRange.startContainer );
if ( !testPath.blockLimit.is( 'body') )
{
var paddingBlock;
if ( enterMode != CKEDITOR.ENTER_BR )
paddingBlock = body.append( editor.document.createElement( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) );
else
paddingBlock = body;
if ( !CKEDITOR.env.ie )
paddingBlock.appendBogus();
}
}
CKEDITOR.plugins.add( 'wysiwygarea',
{
requires : [ 'editingblock' ],
init : function( editor )
{
var fixForBody = ( editor.config.enterMode != CKEDITOR.ENTER_BR && editor.config.autoParagraph !== false )
? editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' : false;
var frameLabel = editor.lang.editorTitle.replace( '%1', editor.name );
var contentDomReadyHandler;
editor.on( 'editingBlockReady', function()
{
var mainElement,
iframe,
isLoadingData,
isPendingFocus,
frameLoaded,
fireMode;
// Support for custom document.domain in IE.
var isCustomDomain = CKEDITOR.env.isCustomDomain();
// Creates the iframe that holds the editable document.
var createIFrame = function( data )
{
if ( iframe )
iframe.remove();
var src =
'document.open();' +
// The document domain must be set any time we
// call document.open().
( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) +
'document.close();';
// With IE, the custom domain has to be taken care at first,
// for other browers, the 'src' attribute should be left empty to
// trigger iframe's 'load' event.
src =
CKEDITOR.env.air ?
'javascript:void(0)' :
CKEDITOR.env.ie ?
'javascript:void(function(){' + encodeURIComponent( src ) + '}())'
:
'';
iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' +
' style="width:100%;height:100%"' +
' frameBorder="0"' +
' title="' + frameLabel + '"' +
' src="' + src + '"' +
' tabIndex="' + ( CKEDITOR.env.webkit? -1 : editor.tabIndex ) + '"' +
' allowTransparency="true"' +
'></iframe>' );
// Running inside of Firefox chrome the load event doesn't bubble like in a normal page (#5689)
if ( document.location.protocol == 'chrome:' )
CKEDITOR.event.useCapture = true;
// With FF, it's better to load the data on iframe.load. (#3894,#4058)
iframe.on( 'load', function( ev )
{
frameLoaded = 1;
ev.removeListener();
var doc = iframe.getFrameDocument();
doc.write( data );
CKEDITOR.env.air && contentDomReady( doc.getWindow().$ );
});
// Reset adjustment back to default (#5689)
if ( document.location.protocol == 'chrome:' )
CKEDITOR.event.useCapture = false;
mainElement.append( iframe );
};
// The script that launches the bootstrap logic on 'domReady', so the document
// is fully editable even before the editing iframe is fully loaded (#4455).
contentDomReadyHandler = CKEDITOR.tools.addFunction( contentDomReady );
var activationScript =
'<script id="cke_actscrpt" type="text/javascript" data-cke-temp="1">' +
( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) +
'window.parent.CKEDITOR.tools.callFunction( ' + contentDomReadyHandler + ', window );' +
'</script>';
// Editing area bootstrap code.
function contentDomReady( domWindow )
{
if ( !frameLoaded )
return;
frameLoaded = 0;
editor.fire( 'ariaWidget', iframe );
var domDocument = domWindow.document,
body = domDocument.body;
// Remove this script from the DOM.
var script = domDocument.getElementById( "cke_actscrpt" );
script && script.parentNode.removeChild( script );
body.spellcheck = !editor.config.disableNativeSpellChecker;
var editable = !editor.readOnly;
if ( CKEDITOR.env.ie )
{
// Don't display the focus border.
body.hideFocus = true;
// Disable and re-enable the body to avoid IE from
// taking the editing focus at startup. (#141 / #523)
body.disabled = true;
body.contentEditable = editable;
body.removeAttribute( 'disabled' );
}
else
{
// Avoid opening design mode in a frame window thread,
// which will cause host page scrolling.(#4397)
setTimeout( function()
{
// Prefer 'contentEditable' instead of 'designMode'. (#3593)
if ( CKEDITOR.env.gecko && CKEDITOR.env.version >= 10900
|| CKEDITOR.env.opera )
domDocument.$.body.contentEditable = editable;
else if ( CKEDITOR.env.webkit )
domDocument.$.body.parentNode.contentEditable = editable;
else
domDocument.$.designMode = editable? 'off' : 'on';
}, 0 );
}
editable && CKEDITOR.env.gecko && CKEDITOR.tools.setTimeout( activateEditing, 0, null, editor );
domWindow = editor.window = new CKEDITOR.dom.window( domWindow );
domDocument = editor.document = new CKEDITOR.dom.document( domDocument );
editable && domDocument.on( 'dblclick', function( evt )
{
var element = evt.data.getTarget(),
data = { element : element, dialog : '' };
editor.fire( 'doubleclick', data );
data.dialog && editor.openDialog( data.dialog );
});
// Prevent automatic submission in IE #6336
CKEDITOR.env.ie && domDocument.on( 'click', function( evt )
{
var element = evt.data.getTarget();
if ( element.is( 'input' ) )
{
var type = element.getAttribute( 'type' );
if ( type == 'submit' || type == 'reset' )
evt.data.preventDefault();
}
});
// Gecko/Webkit need some help when selecting control type elements. (#3448)
if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera ) )
{
domDocument.on( 'mousedown', function( ev )
{
var control = ev.data.getTarget();
if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) )
editor.getSelection().selectElement( control );
} );
}
if ( CKEDITOR.env.gecko )
{
domDocument.on( 'mouseup', function( ev )
{
if ( ev.data.$.button == 2 )
{
var target = ev.data.getTarget();
// Prevent right click from selecting an empty block even
// when selection is anchored inside it. (#5845)
if ( !target.getOuterHtml().replace( emptyParagraphRegexp, '' ) )
{
var range = new CKEDITOR.dom.range( domDocument );
range.moveToElementEditStart( target );
range.select( true );
}
}
} );
}
// Prevent the browser opening links in read-only blocks. (#6032)
domDocument.on( 'click', function( ev )
{
ev = ev.data;
if ( ev.getTarget().is( 'a' ) && ev.$.button != 2 )
ev.preventDefault();
});
// Webkit: avoid from editing form control elements content.
if ( CKEDITOR.env.webkit )
{
// Mark that cursor will right blinking (#7113).
domDocument.on( 'mousedown', function() { wasFocused = 1; } );
// Prevent from tick checkbox/radiobox/select
domDocument.on( 'click', function( ev )
{
if ( ev.data.getTarget().is( 'input', 'select' ) )
ev.data.preventDefault();
} );
// Prevent from editig textfield/textarea value.
domDocument.on( 'mouseup', function( ev )
{
if ( ev.data.getTarget().is( 'input', 'textarea' ) )
ev.data.preventDefault();
} );
}
// IE standard compliant in editing frame doesn't focus the editor when
// clicking outside actual content, manually apply the focus. (#1659)
if ( editable &&
CKEDITOR.env.ie && domDocument.$.compatMode == 'CSS1Compat'
|| CKEDITOR.env.gecko
|| CKEDITOR.env.opera )
{
var htmlElement = domDocument.getDocumentElement();
htmlElement.on( 'mousedown', function( evt )
{
// Setting focus directly on editor doesn't work, we
// have to use here a temporary element to 'redirect'
// the focus.
if ( evt.data.getTarget().equals( htmlElement ) )
{
if ( CKEDITOR.env.gecko && CKEDITOR.env.version >= 10900 )
blinkCursor();
focusGrabber.focus();
}
} );
}
var focusTarget = CKEDITOR.env.ie ? iframe : domWindow;
focusTarget.on( 'blur', function()
{
editor.focusManager.blur();
});
var wasFocused;
focusTarget.on( 'focus', function()
{
var doc = editor.document;
if ( editable && CKEDITOR.env.gecko && CKEDITOR.env.version >= 10900 )
blinkCursor();
else if ( CKEDITOR.env.opera )
doc.getBody().focus();
// Webkit needs focus for the first time on the HTML element. (#6153)
else if ( CKEDITOR.env.webkit )
{
if ( !wasFocused )
{
editor.document.getDocumentElement().focus();
wasFocused = 1;
}
}
editor.focusManager.focus();
});
var keystrokeHandler = editor.keystrokeHandler;
// Prevent backspace from navigating off the page.
keystrokeHandler.blockedKeystrokes[ 8 ] = !editable;
keystrokeHandler.attach( domDocument );
domDocument.getDocumentElement().addClass( domDocument.$.compatMode );
// Override keystroke behaviors.
editable && domDocument.on( 'keydown', function( evt )
{
var keyCode = evt.data.getKeystroke();
// Backspace OR Delete.
if ( keyCode in { 8 : 1, 46 : 1 } )
{
var sel = editor.getSelection(),
selected = sel.getSelectedElement(),
range = sel.getRanges()[ 0 ];
// Override keystrokes which should have deletion behavior
// on fully selected element . (#4047) (#7645)
if ( selected )
{
// Make undo snapshot.
editor.fire( 'saveSnapshot' );
// Delete any element that 'hasLayout' (e.g. hr,table) in IE8 will
// break up the selection, safely manage it here. (#4795)
range.moveToPosition( selected, CKEDITOR.POSITION_BEFORE_START );
// Remove the control manually.
selected.remove();
range.select();
editor.fire( 'saveSnapshot' );
evt.data.preventDefault();
return;
}
}
} );
// PageUp/PageDown scrolling is broken in document
// with standard doctype, manually fix it. (#4736)
if ( CKEDITOR.env.ie && domDocument.$.compatMode == 'CSS1Compat' )
{
var pageUpDownKeys = { 33 : 1, 34 : 1 };
domDocument.on( 'keydown', function( evt )
{
if ( evt.data.getKeystroke() in pageUpDownKeys )
{
setTimeout( function ()
{
editor.getSelection().scrollIntoView();
}, 0 );
}
} );
}
// Prevent IE from leaving new paragraph after deleting all contents in body. (#6966)
if ( CKEDITOR.env.ie && editor.config.enterMode != CKEDITOR.ENTER_P )
{
domDocument.on( 'selectionchange', function()
{
var body = domDocument.getBody(),
range = editor.getSelection().getRanges()[ 0 ];
if ( body.getHtml().match( /^<p> <\/p>$/i )
&& range.startContainer.equals( body ) )
{
// Avoid the ambiguity from a real user cursor position.
setTimeout( function ()
{
range = editor.getSelection().getRanges()[ 0 ];
if ( !range.startContainer.equals ( 'body' ) )
{
body.getFirst().remove( 1 );
range.moveToElementEditEnd( body );
range.select( 1 );
}
}, 0 );
}
});
}
// Adds the document body as a context menu target.
if ( editor.contextMenu )
editor.contextMenu.addTarget( domDocument, editor.config.browserContextMenuOnCtrl !== false );
setTimeout( function()
{
editor.fire( 'contentDom' );
if ( fireMode )
{
editor.mode = 'wysiwyg';
editor.fire( 'mode', { previousMode : editor._.previousMode } );
fireMode = false;
}
isLoadingData = false;
if ( isPendingFocus )
{
editor.focus();
isPendingFocus = false;
}
setTimeout( function()
{
editor.fire( 'dataReady' );
}, 0 );
// IE, Opera and Safari may not support it and throw errors.
try { editor.document.$.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ); } catch(e) {}
if ( editor.config.disableObjectResizing )
{
try
{
editor.document.$.execCommand( 'enableObjectResizing', false, false );
}
catch(e)
{
// For browsers in which the above method failed, we can cancel the resizing on the fly (#4208)
editor.document.getBody().on( CKEDITOR.env.ie ? 'resizestart' : 'resize', function( evt )
{
evt.data.preventDefault();
});
}
}
/*
* IE BUG: IE might have rendered the iframe with invisible contents.
* (#3623). Push some inconsequential CSS style changes to force IE to
* refresh it.
*
* Also, for some unknown reasons, short timeouts (e.g. 100ms) do not
* fix the problem. :(
*/
if ( CKEDITOR.env.ie )
{
setTimeout( function()
{
if ( editor.document )
{
var $body = editor.document.$.body;
$body.runtimeStyle.marginBottom = '0px';
$body.runtimeStyle.marginBottom = '';
}
}, 1000 );
}
},
0 );
}
editor.addMode( 'wysiwyg',
{
load : function( holderElement, data, isSnapshot )
{
mainElement = holderElement;
if ( CKEDITOR.env.ie && CKEDITOR.env.quirks )
holderElement.setStyle( 'position', 'relative' );
// The editor data "may be dirty" after this
// point.
editor.mayBeDirty = true;
fireMode = true;
if ( isSnapshot )
this.loadSnapshotData( data );
else
this.loadData( data );
},
loadData : function( data )
{
isLoadingData = true;
editor._.dataStore = { id : 1 };
var config = editor.config,
fullPage = config.fullPage,
docType = config.docType;
// Build the additional stuff to be included into <head>.
var headExtra =
'<style type="text/css" data-cke-temp="1">' +
editor._.styles.join( '\n' ) +
'</style>';
!fullPage && ( headExtra =
CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) +
headExtra );
var baseTag = config.baseHref ? '<base href="' + config.baseHref + '" data-cke-temp="1" />' : '';
if ( fullPage )
{
// Search and sweep out the doctype declaration.
data = data.replace( /<!DOCTYPE[^>]*>/i, function( match )
{
editor.docType = docType = match;
return '';
}).replace( /<\?xml\s[^\?]*\?>/i, function( match )
{
editor.xmlDeclaration = match;
return '';
});
}
// Get the HTML version of the data.
if ( editor.dataProcessor )
data = editor.dataProcessor.toHtml( data, fixForBody );
if ( fullPage )
{
// Check if the <body> tag is available.
if ( !(/<body[\s|>]/).test( data ) )
data = '<body>' + data;
// Check if the <html> tag is available.
if ( !(/<html[\s|>]/).test( data ) )
data = '<html>' + data + '</html>';
// Check if the <head> tag is available.
if ( !(/<head[\s|>]/).test( data ) )
data = data.replace( /<html[^>]*>/, '$&<head><title></title></head>' ) ;
else if ( !(/<title[\s|>]/).test( data ) )
data = data.replace( /<head[^>]*>/, '$&<title></title>' ) ;
// The base must be the first tag in the HEAD, e.g. to get relative
// links on styles.
baseTag && ( data = data.replace( /<head>/, '$&' + baseTag ) );
// Inject the extra stuff into <head>.
// Attention: do not change it before testing it well. (V2)
// This is tricky... if the head ends with <meta ... content type>,
// Firefox will break. But, it works if we place our extra stuff as
// the last elements in the HEAD.
data = data.replace( /<\/head\s*>/, headExtra + '$&' );
// Add the DOCTYPE back to it.
data = docType + data;
}
else
{
data =
config.docType +
'<html dir="' + config.contentsLangDirection + '"' +
' lang="' + ( config.contentsLanguage || editor.langCode ) + '">' +
'<head>' +
'<title>' + frameLabel + '</title>' +
baseTag +
headExtra +
'</head>' +
'<body' + ( config.bodyId ? ' id="' + config.bodyId + '"' : '' ) +
( config.bodyClass ? ' class="' + config.bodyClass + '"' : '' ) +
'>' +
data +
'</html>';
}
// Distinguish bogus to normal BR at the end of document for Mozilla. (#5293).
if ( CKEDITOR.env.gecko )
data = data.replace( /<br \/>(?=\s*<\/(:?html|body)>)/, '$&<br type="_moz" />' );
data += activationScript;
// The iframe is recreated on each call of setData, so we need to clear DOM objects
this.onDispose();
createIFrame( data );
},
getData : function()
{
var config = editor.config,
fullPage = config.fullPage,
docType = fullPage && editor.docType,
xmlDeclaration = fullPage && editor.xmlDeclaration,
doc = iframe.getFrameDocument();
var data = fullPage
? doc.getDocumentElement().getOuterHtml()
: doc.getBody().getHtml();
// BR at the end of document is bogus node for Mozilla. (#5293).
if ( CKEDITOR.env.gecko )
data = data.replace( /<br>(?=\s*(:?$|<\/body>))/, '' );
if ( editor.dataProcessor )
data = editor.dataProcessor.toDataFormat( data, fixForBody );
// Reset empty if the document contains only one empty paragraph.
if ( config.ignoreEmptyParagraph )
data = data.replace( emptyParagraphRegexp, function( match, lookback ) { return lookback; } );
if ( xmlDeclaration )
data = xmlDeclaration + '\n' + data;
if ( docType )
data = docType + '\n' + data;
return data;
},
getSnapshotData : function()
{
return iframe.getFrameDocument().getBody().getHtml();
},
loadSnapshotData : function( data )
{
iframe.getFrameDocument().getBody().setHtml( data );
},
onDispose : function()
{
if ( !editor.document )
return;
editor.document.getDocumentElement().clearCustomData();
editor.document.getBody().clearCustomData();
editor.window.clearCustomData();
editor.document.clearCustomData();
iframe.clearCustomData();
/*
* IE BUG: When destroying editor DOM with the selection remains inside
* editing area would break IE7/8's selection system, we have to put the editing
* iframe offline first. (#3812 and #5441)
*/
iframe.remove();
},
unload : function( holderElement )
{
this.onDispose();
editor.window = editor.document = iframe = mainElement = isPendingFocus = null;
editor.fire( 'contentDomUnload' );
},
focus : function()
{
var win = editor.window;
if ( isLoadingData )
isPendingFocus = true;
else if ( win )
{
// AIR needs a while to focus when moving from a link.
CKEDITOR.env.air ? setTimeout( function () { win.focus(); }, 0 ) : win.focus();
editor.selectionChange();
}
}
});
editor.on( 'insertHtml', onInsert( doInsertHtml ) , null, null, 20 );
editor.on( 'insertElement', onInsert( doInsertElement ), null, null, 20 );
editor.on( 'insertText', onInsert( doInsertText ), null, null, 20 );
// Auto fixing on some document structure weakness to enhance usabilities. (#3190 and #3189)
editor.on( 'selectionChange', function( evt )
{
if ( editor.readOnly )
return;
var sel = editor.getSelection();
// Do it only when selection is not locked. (#8222)
if ( sel && !sel.isLocked )
{
var isDirty = editor.checkDirty();
editor.fire( 'saveSnapshot', { contentOnly : 1 } );
onSelectionChangeFixBody.call( this, evt );
editor.fire( 'updateSnapshot' );
!isDirty && editor.resetDirty();
}
}, null, null, 1 );
});
var titleBackup;
// Setting voice label as window title, backup the original one
// and restore it before running into use.
editor.on( 'contentDom', function()
{
var title = editor.document.getElementsByTag( 'title' ).getItem( 0 );
title.data( 'cke-title', editor.document.$.title );
editor.document.$.title = frameLabel;
});
editor.on( 'readOnly', function()
{
if ( editor.mode == 'wysiwyg' )
{
// Symply reload the wysiwyg area. It'll take care of read-only.
var wysiwyg = editor.getMode();
wysiwyg.loadData( wysiwyg.getData() );
}
});
// IE>=8 stricts mode doesn't have 'contentEditable' in effect
// on element unless it has layout. (#5562)
if ( CKEDITOR.document.$.documentMode >= 8 )
{
editor.addCss( 'html.CSS1Compat [contenteditable=false]{ min-height:0 !important;}' );
var selectors = [];
for ( var tag in CKEDITOR.dtd.$removeEmpty )
selectors.push( 'html.CSS1Compat ' + tag + '[contenteditable=false]' );
editor.addCss( selectors.join( ',' ) + '{ display:inline-block;}' );
}
// Set the HTML style to 100% to have the text cursor in affect (#6341)
else if ( CKEDITOR.env.gecko )
{
editor.addCss( 'html { height: 100% !important; }' );
editor.addCss( 'img:-moz-broken { -moz-force-broken-image-icon : 1; width : 24px; height : 24px; }' );
}
/* #3658: [IE6] Editor document has horizontal scrollbar on long lines
To prevent this misbehavior, we show the scrollbar always */
/* #6341: The text cursor must be set on the editor area. */
/* #6632: Avoid having "text" shape of cursor in IE7 scrollbars.*/
editor.addCss( 'html { _overflow-y: scroll; cursor: text; *cursor:auto;}' );
// Use correct cursor for these elements
editor.addCss( 'img, input, textarea { cursor: default;}' );
// Switch on design mode for a short while and close it after then.
function blinkCursor( retry )
{
if ( editor.readOnly )
return;
CKEDITOR.tools.tryThese(
function()
{
editor.document.$.designMode = 'on';
setTimeout( function()
{
editor.document.$.designMode = 'off';
if ( CKEDITOR.currentInstance == editor )
editor.document.getBody().focus();
}, 50 );
},
function()
{
// The above call is known to fail when parent DOM
// tree layout changes may break design mode. (#5782)
// Refresh the 'contentEditable' is a cue to this.
editor.document.$.designMode = 'off';
var body = editor.document.getBody();
body.setAttribute( 'contentEditable', false );
body.setAttribute( 'contentEditable', true );
// Try it again once..
!retry && blinkCursor( 1 );
});
}
// Create an invisible element to grab focus.
if ( CKEDITOR.env.gecko || CKEDITOR.env.ie || CKEDITOR.env.opera )
{
var focusGrabber;
editor.on( 'uiReady', function()
{
focusGrabber = editor.container.append( CKEDITOR.dom.element.createFromHtml(
// Use 'span' instead of anything else to fly under the screen-reader radar. (#5049)
'<span tabindex="-1" style="position:absolute;" role="presentation"></span>' ) );
focusGrabber.on( 'focus', function()
{
editor.focus();
} );
editor.focusGrabber = focusGrabber;
} );
editor.on( 'destroy', function()
{
CKEDITOR.tools.removeFunction( contentDomReadyHandler );
focusGrabber.clearCustomData();
delete editor.focusGrabber;
} );
}
// Disable form elements editing mode provided by some browers. (#5746)
editor.on( 'insertElement', function ( evt )
{
var element = evt.data;
if ( element.type == CKEDITOR.NODE_ELEMENT
&& ( element.is( 'input' ) || element.is( 'textarea' ) ) )
{
// We should flag that the element was locked by our code so
// it'll be editable by the editor functions (#6046).
var readonly = element.getAttribute( 'contenteditable' ) == 'false';
if ( !readonly )
{
element.data( 'cke-editable', element.hasAttribute( 'contenteditable' ) ? 'true' : '1' );
element.setAttribute( 'contenteditable', false );
}
}
});
}
});
// Fixing Firefox 'Back-Forward Cache' break design mode. (#4514)
if ( CKEDITOR.env.gecko )
{
(function()
{
var body = document.body;
if ( !body )
window.addEventListener( 'load', arguments.callee, false );
else
{
var currentHandler = body.getAttribute( 'onpageshow' );
body.setAttribute( 'onpageshow', ( currentHandler ? currentHandler + ';' : '') +
'event.persisted && (function(){' +
'var allInstances = CKEDITOR.instances, editor, doc;' +
'for ( var i in allInstances )' +
'{' +
' editor = allInstances[ i ];' +
' doc = editor.document;' +
' if ( doc )' +
' {' +
' doc.$.designMode = "off";' +
' doc.$.designMode = "on";' +
' }' +
'}' +
'})();' );
}
} )();
}
})();
/**
* Disables the ability of resize objects (image and tables) in the editing
* area.
* @type Boolean
* @default false
* @example
* config.disableObjectResizing = true;
*/
CKEDITOR.config.disableObjectResizing = false;
/**
* Disables the "table tools" offered natively by the browser (currently
* Firefox only) to make quick table editing operations, like adding or
* deleting rows and columns.
* @type Boolean
* @default true
* @example
* config.disableNativeTableHandles = false;
*/
CKEDITOR.config.disableNativeTableHandles = true;
/**
* Disables the built-in words spell checker if browser provides one.<br /><br />
*
* <strong>Note:</strong> Although word suggestions provided by browsers (natively) will not appear in CKEditor's default context menu,
* users can always reach the native context menu by holding the <em>Ctrl</em> key when right-clicking if {@link CKEDITOR.config.browserContextMenuOnCtrl}
* is enabled or you're simply not using the context menu plugin.
*
* @type Boolean
* @default true
* @example
* config.disableNativeSpellChecker = false;
*/
CKEDITOR.config.disableNativeSpellChecker = true;
/**
* Whether the editor must output an empty value ("") if it's contents is made
* by an empty paragraph only.
* @type Boolean
* @default true
* @example
* config.ignoreEmptyParagraph = false;
*/
CKEDITOR.config.ignoreEmptyParagraph = true;
/**
* Fired when data is loaded and ready for retrieval in an editor instance.
* @name CKEDITOR.editor#dataReady
* @event
*/
/**
* Whether automatically create wrapping blocks around inline contents inside document body,
* this helps to ensure the integrality of the block enter mode.
* <strong>Note:</strong> Changing the default value might introduce unpredictable usability issues.
* @name CKEDITOR.config.autoParagraph
* @since 3.6
* @type Boolean
* @default true
* @example
* config.autoParagraph = false;
*/
/**
* Fired when some elements are added to the document
* @name CKEDITOR.editor#ariaWidget
* @event
* @param {Object} element The element being added
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/wysiwygarea/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "div" plugin. It wraps the selected block level elements with a 'div' element with specified styles and attributes.
*
*/
(function()
{
CKEDITOR.plugins.add( 'div',
{
requires : [ 'editingblock', 'domiterator', 'styles' ],
init : function( editor )
{
var lang = editor.lang.div;
editor.addCommand( 'creatediv', new CKEDITOR.dialogCommand( 'creatediv' ) );
editor.addCommand( 'editdiv', new CKEDITOR.dialogCommand( 'editdiv' ) );
editor.addCommand( 'removediv',
{
exec : function( editor )
{
var selection = editor.getSelection(),
ranges = selection && selection.getRanges(),
range,
bookmarks = selection.createBookmarks(),
walker,
toRemove = [];
function findDiv( node )
{
var path = new CKEDITOR.dom.elementPath( node ),
blockLimit = path.blockLimit,
div = blockLimit.is( 'div' ) && blockLimit;
if ( div && !div.data( 'cke-div-added' ) )
{
toRemove.push( div );
div.data( 'cke-div-added' );
}
}
for ( var i = 0 ; i < ranges.length ; i++ )
{
range = ranges[ i ];
if ( range.collapsed )
findDiv( selection.getStartElement() );
else
{
walker = new CKEDITOR.dom.walker( range );
walker.evaluator = findDiv;
walker.lastForward();
}
}
for ( i = 0 ; i < toRemove.length ; i++ )
toRemove[ i ].remove( true );
selection.selectBookmarks( bookmarks );
}
} );
editor.ui.addButton( 'CreateDiv',
{
label : lang.toolbar,
command :'creatediv'
} );
if ( editor.addMenuItems )
{
editor.addMenuItems(
{
editdiv :
{
label : lang.edit,
command : 'editdiv',
group : 'div',
order : 1
},
removediv:
{
label : lang.remove,
command : 'removediv',
group : 'div',
order : 5
}
} );
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( !element || element.isReadOnly() )
return null;
var elementPath = new CKEDITOR.dom.elementPath( element ),
blockLimit = elementPath.blockLimit;
if ( blockLimit && blockLimit.getAscendant( 'div', true ) )
{
return {
editdiv : CKEDITOR.TRISTATE_OFF,
removediv : CKEDITOR.TRISTATE_OFF
};
}
return null;
} );
}
}
CKEDITOR.dialog.add( 'creatediv', this.path + 'dialogs/div.js' );
CKEDITOR.dialog.add( 'editdiv', this.path + 'dialogs/div.js' );
}
} );
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/div/plugin.js | plugin.js |
/*
* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
/**
* Add to collection with DUP examination.
* @param {Object} collection
* @param {Object} element
* @param {Object} database
*/
function addSafely( collection, element, database )
{
// 1. IE doesn't support customData on text nodes;
// 2. Text nodes never get chance to appear twice;
if ( !element.is || !element.getCustomData( 'block_processed' ) )
{
element.is && CKEDITOR.dom.element.setMarker( database, element, 'block_processed', true );
collection.push( element );
}
}
function getNonEmptyChildren( element )
{
var retval = [];
var children = element.getChildren();
for ( var i = 0 ; i < children.count() ; i++ )
{
var child = children.getItem( i );
if ( ! ( child.type === CKEDITOR.NODE_TEXT
&& ( /^[ \t\n\r]+$/ ).test( child.getText() ) ) )
retval.push( child );
}
return retval;
}
/**
* Dialog reused by both 'creatediv' and 'editdiv' commands.
* @param {Object} editor
* @param {String} command The command name which indicate what the current command is.
*/
function divDialog( editor, command )
{
// Definition of elements at which div operation should stopped.
var divLimitDefinition = ( function(){
// Customzie from specialize blockLimit elements
var definition = CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$blockLimit );
// Exclude 'div' itself.
delete definition.div;
// Exclude 'td' and 'th' when 'wrapping table'
if ( editor.config.div_wrapTable )
{
delete definition.td;
delete definition.th;
}
return definition;
})();
// DTD of 'div' element
var dtd = CKEDITOR.dtd.div;
/**
* Get the first div limit element on the element's path.
* @param {Object} element
*/
function getDivLimitElement( element )
{
var pathElements = new CKEDITOR.dom.elementPath( element ).elements;
var divLimit;
for ( var i = 0; i < pathElements.length ; i++ )
{
if ( pathElements[ i ].getName() in divLimitDefinition )
{
divLimit = pathElements[ i ];
break;
}
}
return divLimit;
}
/**
* Init all fields' setup/commit function.
* @memberof divDialog
*/
function setupFields()
{
this.foreach( function( field )
{
// Exclude layout container elements
if ( /^(?!vbox|hbox)/.test( field.type ) )
{
if ( !field.setup )
{
// Read the dialog fields values from the specified
// element attributes.
field.setup = function( element )
{
field.setValue( element.getAttribute( field.id ) || '' );
};
}
if ( !field.commit )
{
// Set element attributes assigned by the dialog
// fields.
field.commit = function( element )
{
var fieldValue = this.getValue();
// ignore default element attribute values
if ( 'dir' == field.id && element.getComputedStyle( 'direction' ) == fieldValue )
return;
if ( fieldValue )
element.setAttribute( field.id, fieldValue );
else
element.removeAttribute( field.id );
};
}
}
} );
}
/**
* Wrapping 'div' element around appropriate blocks among the selected ranges.
* @param {Object} editor
*/
function createDiv( editor )
{
// new adding containers OR detected pre-existed containers.
var containers = [];
// node markers store.
var database = {};
// All block level elements which contained by the ranges.
var containedBlocks = [], block;
// Get all ranges from the selection.
var selection = editor.document.getSelection(),
ranges = selection.getRanges();
var bookmarks = selection.createBookmarks();
var i, iterator;
// Calcualte a default block tag if we need to create blocks.
var blockTag = editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p';
// collect all included elements from dom-iterator
for ( i = 0 ; i < ranges.length ; i++ )
{
iterator = ranges[ i ].createIterator();
while ( ( block = iterator.getNextParagraph() ) )
{
// include contents of blockLimit elements.
if ( block.getName() in divLimitDefinition )
{
var j, childNodes = block.getChildren();
for ( j = 0 ; j < childNodes.count() ; j++ )
addSafely( containedBlocks, childNodes.getItem( j ) , database );
}
else
{
// Bypass dtd disallowed elements.
while ( !dtd[ block.getName() ] && block.getName() != 'body' )
block = block.getParent();
addSafely( containedBlocks, block, database );
}
}
}
CKEDITOR.dom.element.clearAllMarkers( database );
var blockGroups = groupByDivLimit( containedBlocks );
var ancestor, blockEl, divElement;
for ( i = 0 ; i < blockGroups.length ; i++ )
{
var currentNode = blockGroups[ i ][ 0 ];
// Calculate the common parent node of all contained elements.
ancestor = currentNode.getParent();
for ( j = 1 ; j < blockGroups[ i ].length; j++ )
ancestor = ancestor.getCommonAncestor( blockGroups[ i ][ j ] );
divElement = new CKEDITOR.dom.element( 'div', editor.document );
// Normalize the blocks in each group to a common parent.
for ( j = 0; j < blockGroups[ i ].length ; j++ )
{
currentNode = blockGroups[ i ][ j ];
while ( !currentNode.getParent().equals( ancestor ) )
currentNode = currentNode.getParent();
// This could introduce some duplicated elements in array.
blockGroups[ i ][ j ] = currentNode;
}
// Wrapped blocks counting
var fixedBlock = null;
for ( j = 0 ; j < blockGroups[ i ].length ; j++ )
{
currentNode = blockGroups[ i ][ j ];
// Avoid DUP elements introduced by grouping.
if ( !( currentNode.getCustomData && currentNode.getCustomData( 'block_processed' ) ) )
{
currentNode.is && CKEDITOR.dom.element.setMarker( database, currentNode, 'block_processed', true );
// Establish new container, wrapping all elements in this group.
if ( !j )
divElement.insertBefore( currentNode );
divElement.append( currentNode );
}
}
CKEDITOR.dom.element.clearAllMarkers( database );
containers.push( divElement );
}
selection.selectBookmarks( bookmarks );
return containers;
}
function getDiv( editor )
{
var path = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() ),
blockLimit = path.blockLimit,
div = blockLimit && blockLimit.getAscendant( 'div', true );
return div;
}
/**
* Divide a set of nodes to different groups by their path's blocklimit element.
* Note: the specified nodes should be in source order naturally, which mean they are supposed to producea by following class:
* * CKEDITOR.dom.range.Iterator
* * CKEDITOR.dom.domWalker
* @return {Array []} the grouped nodes
*/
function groupByDivLimit( nodes )
{
var groups = [],
lastDivLimit = null,
path, block;
for ( var i = 0 ; i < nodes.length ; i++ )
{
block = nodes[i];
var limit = getDivLimitElement( block );
if ( !limit.equals( lastDivLimit ) )
{
lastDivLimit = limit ;
groups.push( [] ) ;
}
groups[ groups.length - 1 ].push( block ) ;
}
return groups;
}
// Synchronous field values to other impacted fields is required, e.g. div styles
// change should also alter inline-style text.
function commitInternally( targetFields )
{
var dialog = this.getDialog(),
element = dialog._element && dialog._element.clone()
|| new CKEDITOR.dom.element( 'div', editor.document );
// Commit this field and broadcast to target fields.
this.commit( element, true );
targetFields = [].concat( targetFields );
var length = targetFields.length, field;
for ( var i = 0; i < length; i++ )
{
field = dialog.getContentElement.apply( dialog, targetFields[ i ].split( ':' ) );
field && field.setup && field.setup( element, true );
}
}
// Registered 'CKEDITOR.style' instances.
var styles = {} ;
/**
* Hold a collection of created block container elements.
*/
var containers = [];
/**
* @type divDialog
*/
return {
title : editor.lang.div.title,
minWidth : 400,
minHeight : 165,
contents :
[
{
id :'info',
label :editor.lang.common.generalTab,
title :editor.lang.common.generalTab,
elements :
[
{
type :'hbox',
widths : [ '50%', '50%' ],
children :
[
{
id :'elementStyle',
type :'select',
style :'width: 100%;',
label :editor.lang.div.styleSelectLabel,
'default' : '',
// Options are loaded dynamically.
items :
[
[ editor.lang.common.notSet , '' ]
],
onChange : function()
{
commitInternally.call( this, [ 'info:class', 'advanced:dir', 'advanced:style' ] );
},
setup : function( element )
{
for ( var name in styles )
styles[ name ].checkElementRemovable( element, true ) && this.setValue( name );
},
commit: function( element )
{
var styleName;
if ( ( styleName = this.getValue() ) )
{
var style = styles[ styleName ];
var customData = element.getCustomData( 'elementStyle' ) || '';
style.applyToObject( element );
element.setCustomData( 'elementStyle', customData + style._.definition.attributes.style );
}
}
},
{
id :'class',
type :'text',
label :editor.lang.common.cssClass,
'default' : ''
}
]
}
]
},
{
id :'advanced',
label :editor.lang.common.advancedTab,
title :editor.lang.common.advancedTab,
elements :
[
{
type :'vbox',
padding :1,
children :
[
{
type :'hbox',
widths : [ '50%', '50%' ],
children :
[
{
type :'text',
id :'id',
label :editor.lang.common.id,
'default' : ''
},
{
type :'text',
id :'lang',
label :editor.lang.link.langCode,
'default' : ''
}
]
},
{
type :'hbox',
children :
[
{
type :'text',
id :'style',
style :'width: 100%;',
label :editor.lang.common.cssStyle,
'default' : '',
commit : function( element )
{
// Merge with 'elementStyle', which is of higher priority.
var merged = this.getValue() + ( element.getCustomData( 'elementStyle' ) || '' );
element.setAttribute( 'style', merged );
}
}
]
},
{
type :'hbox',
children :
[
{
type :'text',
id :'title',
style :'width: 100%;',
label :editor.lang.common.advisoryTitle,
'default' : ''
}
]
},
{
type :'select',
id :'dir',
style :'width: 100%;',
label :editor.lang.common.langDir,
'default' : '',
items :
[
[ editor.lang.common.notSet , '' ],
[
editor.lang.common.langDirLtr,
'ltr'
],
[
editor.lang.common.langDirRtl,
'rtl'
]
]
}
]
}
]
}
],
onLoad : function()
{
setupFields.call( this );
// Preparing for the 'elementStyle' field.
var dialog = this,
stylesField = this.getContentElement( 'info', 'elementStyle' );
// Reuse the 'stylescombo' plugin's styles definition.
editor.getStylesSet( function( stylesDefinitions )
{
var styleName;
if ( stylesDefinitions )
{
// Digg only those styles that apply to 'div'.
for ( var i = 0 ; i < stylesDefinitions.length ; i++ )
{
var styleDefinition = stylesDefinitions[ i ];
if ( styleDefinition.element && styleDefinition.element == 'div' )
{
styleName = styleDefinition.name;
styles[ styleName ] = new CKEDITOR.style( styleDefinition );
// Populate the styles field options with style name.
stylesField.items.push( [ styleName, styleName ] );
stylesField.add( styleName, styleName );
}
}
}
// We should disable the content element
// it if no options are available at all.
stylesField[ stylesField.items.length > 1 ? 'enable' : 'disable' ]();
// Now setup the field value manually.
setTimeout( function() { stylesField.setup( dialog._element ); }, 0 );
} );
},
onShow : function()
{
// Whether always create new container regardless of existed
// ones.
if ( command == 'editdiv' )
{
// Try to discover the containers that already existed in
// ranges
var div = getDiv( editor );
// update dialog field values
div && this.setupContent( this._element = div );
}
},
onOk : function()
{
if ( command == 'editdiv' )
containers = [ this._element ];
else
containers = createDiv( editor, true );
// Update elements attributes
var size = containers.length;
for ( var i = 0; i < size; i++ )
{
this.commitContent( containers[ i ] );
// Remove empty 'style' attribute.
!containers[ i ].getAttribute( 'style' ) && containers[ i ].removeAttribute( 'style' );
}
this.hide();
},
onHide : function()
{
// Remove style only when editing existing DIV. (#6315)
if ( command == 'editdiv' )
this._element.removeCustomData( 'elementStyle' );
delete this._element;
}
};
}
CKEDITOR.dialog.add( 'creatediv', function( editor )
{
return divDialog( editor, 'creatediv' );
} );
CKEDITOR.dialog.add( 'editdiv', function( editor )
{
return divDialog( editor, 'editdiv' );
} );
} )();
/*
* @name CKEDITOR.config.div_wrapTable
* Whether to wrap the whole table instead of indivisual cells when created 'div' in table cell.
* @type Boolean
* @default false
* @example config.div_wrapTable = true;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/div/dialogs/div.js | div.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var cssStyle = CKEDITOR.htmlParser.cssStyle,
cssLength = CKEDITOR.tools.cssLength;
var cssLengthRegex = /^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i;
/*
* Replacing the former CSS length value with the later one, with
* adjustment to the length unit.
*/
function replaceCssLength( length1, length2 )
{
var parts1 = cssLengthRegex.exec( length1 ),
parts2 = cssLengthRegex.exec( length2 );
// Omit pixel length unit when necessary,
// e.g. replaceCssLength( 10, '20px' ) -> 20
if ( parts1 )
{
if ( !parts1[ 2 ] && parts2[ 2 ] == 'px' )
return parts2[ 1 ];
if ( parts1[ 2 ] == 'px' && !parts2[ 2 ] )
return parts2[ 1 ] + 'px';
}
return length2;
}
var htmlFilterRules =
{
elements :
{
$ : function( element )
{
var attributes = element.attributes,
realHtml = attributes && attributes[ 'data-cke-realelement' ],
realFragment = realHtml && new CKEDITOR.htmlParser.fragment.fromHtml( decodeURIComponent( realHtml ) ),
realElement = realFragment && realFragment.children[ 0 ];
// Width/height in the fake object are subjected to clone into the real element.
if ( realElement && element.attributes[ 'data-cke-resizable' ] )
{
var styles = new cssStyle( element ).rules,
realAttrs = realElement.attributes,
width = styles.width,
height = styles.height;
width && ( realAttrs.width = replaceCssLength( realAttrs.width, width ) );
height && ( realAttrs.height = replaceCssLength( realAttrs.height, height ) );
}
return realElement;
}
}
};
CKEDITOR.plugins.add( 'fakeobjects',
{
requires : [ 'htmlwriter' ],
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( htmlFilter )
htmlFilter.addRules( htmlFilterRules );
}
});
CKEDITOR.editor.prototype.createFakeElement = function( realElement, className, realElementType, isResizable )
{
var lang = this.lang.fakeobjects,
label = lang[ realElementType ] || lang.unknown;
var attributes =
{
'class' : className,
src : CKEDITOR.getUrl( 'images/spacer.gif' ),
'data-cke-realelement' : encodeURIComponent( realElement.getOuterHtml() ),
'data-cke-real-node-type' : realElement.type,
alt : label,
title : label,
align : realElement.getAttribute( 'align' ) || ''
};
if ( realElementType )
attributes[ 'data-cke-real-element-type' ] = realElementType;
if ( isResizable )
{
attributes[ 'data-cke-resizable' ] = isResizable;
var fakeStyle = new cssStyle();
var width = realElement.getAttribute( 'width' ),
height = realElement.getAttribute( 'height' );
width && ( fakeStyle.rules.width = cssLength( width ) );
height && ( fakeStyle.rules.height = cssLength( height ) );
fakeStyle.populate( attributes );
}
return this.document.createElement( 'img', { attributes : attributes } );
};
CKEDITOR.editor.prototype.createFakeParserElement = function( realElement, className, realElementType, isResizable )
{
var lang = this.lang.fakeobjects,
label = lang[ realElementType ] || lang.unknown,
html;
var writer = new CKEDITOR.htmlParser.basicWriter();
realElement.writeHtml( writer );
html = writer.getHtml();
var attributes =
{
'class' : className,
src : CKEDITOR.getUrl( 'images/spacer.gif' ),
'data-cke-realelement' : encodeURIComponent( html ),
'data-cke-real-node-type' : realElement.type,
alt : label,
title : label,
align : realElement.attributes.align || ''
};
if ( realElementType )
attributes[ 'data-cke-real-element-type' ] = realElementType;
if ( isResizable )
{
attributes[ 'data-cke-resizable' ] = isResizable;
var realAttrs = realElement.attributes,
fakeStyle = new cssStyle();
var width = realAttrs.width,
height = realAttrs.height;
width != undefined && ( fakeStyle.rules.width = cssLength( width ) );
height != undefined && ( fakeStyle.rules.height = cssLength ( height ) );
fakeStyle.populate( attributes );
}
return new CKEDITOR.htmlParser.element( 'img', attributes );
};
CKEDITOR.editor.prototype.restoreRealElement = function( fakeElement )
{
if ( fakeElement.data( 'cke-real-node-type' ) != CKEDITOR.NODE_ELEMENT )
return null;
var element = CKEDITOR.dom.element.createFromHtml(
decodeURIComponent( fakeElement.data( 'cke-realelement' ) ),
this.document );
if ( fakeElement.data( 'cke-resizable') )
{
var width = fakeElement.getStyle( 'width' ),
height = fakeElement.getStyle( 'height' );
width && element.setAttribute( 'width', replaceCssLength( element.getAttribute( 'width' ), width ) );
height && element.setAttribute( 'height', replaceCssLength( element.getAttribute( 'height' ), height ) );
}
return element;
};
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/fakeobjects/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "colorbutton" plugin that makes it possible to assign
* text and background colors to editor contents.
*
*/
CKEDITOR.plugins.add( 'colorbutton',
{
requires : [ 'panelbutton', 'floatpanel', 'styles' ],
init : function( editor )
{
var config = editor.config,
lang = editor.lang.colorButton;
var clickFn;
if ( !CKEDITOR.env.hc )
{
addButton( 'TextColor', 'fore', lang.textColorTitle );
addButton( 'BGColor', 'back', lang.bgColorTitle );
}
function addButton( name, type, title )
{
var colorBoxId = CKEDITOR.tools.getNextId() + '_colorBox';
editor.ui.add( name, CKEDITOR.UI_PANELBUTTON,
{
label : title,
title : title,
className : 'cke_button_' + name.toLowerCase(),
modes : { wysiwyg : 1 },
panel :
{
css : editor.skin.editor.css,
attributes : { role : 'listbox', 'aria-label' : lang.panelTitle }
},
onBlock : function( panel, block )
{
block.autoSize = true;
block.element.addClass( 'cke_colorblock' );
block.element.setHtml( renderColors( panel, type, colorBoxId ) );
// The block should not have scrollbars (#5933, #6056)
block.element.getDocument().getBody().setStyle( 'overflow', 'hidden' );
CKEDITOR.ui.fire( 'ready', this );
var keys = block.keys;
var rtl = editor.lang.dir == 'rtl';
keys[ rtl ? 37 : 39 ] = 'next'; // ARROW-RIGHT
keys[ 40 ] = 'next'; // ARROW-DOWN
keys[ 9 ] = 'next'; // TAB
keys[ rtl ? 39 : 37 ] = 'prev'; // ARROW-LEFT
keys[ 38 ] = 'prev'; // ARROW-UP
keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB
keys[ 32 ] = 'click'; // SPACE
},
// The automatic colorbox should represent the real color (#6010)
onOpen : function()
{
var selection = editor.getSelection(),
block = selection && selection.getStartElement(),
path = new CKEDITOR.dom.elementPath( block ),
color;
// Find the closest block element.
block = path.block || path.blockLimit || editor.document.getBody();
// The background color might be transparent. In that case, look up the color in the DOM tree.
do
{
color = block && block.getComputedStyle( type == 'back' ? 'background-color' : 'color' ) || 'transparent';
}
while ( type == 'back' && color == 'transparent' && block && ( block = block.getParent() ) );
// The box should never be transparent.
if ( !color || color == 'transparent' )
color = '#ffffff';
this._.panel._.iframe.getFrameDocument().getById( colorBoxId ).setStyle( 'background-color', color );
}
});
}
function renderColors( panel, type, colorBoxId )
{
var output = [],
colors = config.colorButton_colors.split( ',' ),
total = colors.length + ( config.colorButton_enableMore ? 2 : 1 );
var clickFn = CKEDITOR.tools.addFunction( function( color, type )
{
if ( color == '?' )
{
var applyColorStyle = arguments.callee;
function onColorDialogClose( evt )
{
this.removeListener( 'ok', onColorDialogClose );
this.removeListener( 'cancel', onColorDialogClose );
evt.name == 'ok' && applyColorStyle( this.getContentElement( 'picker', 'selectedColor' ).getValue(), type );
}
editor.openDialog( 'colordialog', function()
{
this.on( 'ok', onColorDialogClose );
this.on( 'cancel', onColorDialogClose );
} );
return;
}
editor.focus();
panel.hide( false );
editor.fire( 'saveSnapshot' );
// Clean up any conflicting style within the range.
new CKEDITOR.style( config['colorButton_' + type + 'Style'], { color : 'inherit' } ).remove( editor.document );
if ( color )
{
var colorStyle = config['colorButton_' + type + 'Style'];
colorStyle.childRule = type == 'back' ?
function( element )
{
// It's better to apply background color as the innermost style. (#3599)
// Except for "unstylable elements". (#6103)
return isUnstylable( element );
}
:
function( element )
{
// Fore color style must be applied inside links instead of around it. (#4772,#6908)
return !( element.is( 'a' ) || element.getElementsByTag( 'a' ).count() ) || isUnstylable( element );
};
new CKEDITOR.style( colorStyle, { color : color } ).apply( editor.document );
}
editor.fire( 'saveSnapshot' );
});
// Render the "Automatic" button.
output.push(
'<a class="cke_colorauto" _cke_focus=1 hidefocus=true' +
' title="', lang.auto, '"' +
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',null,\'', type, '\');return false;"' +
' href="javascript:void(\'', lang.auto, '\')"' +
' role="option" aria-posinset="1" aria-setsize="', total, '">' +
'<table role="presentation" cellspacing=0 cellpadding=0 width="100%">' +
'<tr>' +
'<td>' +
'<span class="cke_colorbox" id="', colorBoxId, '"></span>' +
'</td>' +
'<td colspan=7 align=center>',
lang.auto,
'</td>' +
'</tr>' +
'</table>' +
'</a>' +
'<table role="presentation" cellspacing=0 cellpadding=0 width="100%">' );
// Render the color boxes.
for ( var i = 0 ; i < colors.length ; i++ )
{
if ( ( i % 8 ) === 0 )
output.push( '</tr><tr>' );
var parts = colors[ i ].split( '/' ),
colorName = parts[ 0 ],
colorCode = parts[ 1 ] || colorName;
// The data can be only a color code (without #) or colorName + color code
// If only a color code is provided, then the colorName is the color with the hash
// Convert the color from RGB to RRGGBB for better compatibility with IE and <font>. See #5676
if (!parts[1])
colorName = '#' + colorName.replace( /^(.)(.)(.)$/, '$1$1$2$2$3$3' );
var colorLabel = editor.lang.colors[ colorCode ] || colorCode;
output.push(
'<td>' +
'<a class="cke_colorbox" _cke_focus=1 hidefocus=true' +
' title="', colorLabel, '"' +
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'', colorName, '\',\'', type, '\'); return false;"' +
' href="javascript:void(\'', colorLabel, '\')"' +
' role="option" aria-posinset="', ( i + 2 ), '" aria-setsize="', total, '">' +
'<span class="cke_colorbox" style="background-color:#', colorCode, '"></span>' +
'</a>' +
'</td>' );
}
// Render the "More Colors" button.
if ( config.colorButton_enableMore === undefined || config.colorButton_enableMore )
{
output.push(
'</tr>' +
'<tr>' +
'<td colspan=8 align=center>' +
'<a class="cke_colormore" _cke_focus=1 hidefocus=true' +
' title="', lang.more, '"' +
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'?\',\'', type, '\');return false;"' +
' href="javascript:void(\'', lang.more, '\')"',
' role="option" aria-posinset="', total, '" aria-setsize="', total, '">',
lang.more,
'</a>' +
'</td>' ); // tr is later in the code.
}
output.push( '</tr></table>' );
return output.join( '' );
}
function isUnstylable( ele )
{
return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' );
}
}
});
/**
* Whether to enable the <strong>More Colors</strong> button in the color selectors.
* @name CKEDITOR.config.colorButton_enableMore
* @default <code>true</code>
* @type Boolean
* @example
* config.colorButton_enableMore = false;
*/
/**
* Defines the colors to be displayed in the color selectors. This is a string
* containing hexadecimal notation for HTML colors, without the "#" prefix.
* <br /><br />
* Since 3.3: A color name may optionally be defined by prefixing the entries with
* a name and the slash character. For example, "FontColor1/FF9900" will be
* displayed as the color #FF9900 in the selector, but will be output as "FontColor1".
* @name CKEDITOR.config.colorButton_colors
* @type String
* @default <code>'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'</code>
* @example
* // Brazil colors only.
* config.colorButton_colors = '00923E,F8C100,28166F';
* @example
* config.colorButton_colors = 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00'
*/
CKEDITOR.config.colorButton_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';
/**
* Stores the style definition that applies the text foreground color.
* @name CKEDITOR.config.colorButton_foreStyle
* @type Object
* @default (see example)
* @example
* // This is actually the default value.
* config.colorButton_foreStyle =
* {
* element : 'span',
* styles : { 'color' : '#(color)' }
* };
*/
CKEDITOR.config.colorButton_foreStyle =
{
element : 'span',
styles : { 'color' : '#(color)' },
overrides : [ { element : 'font', attributes : { 'color' : null } } ]
};
/**
* Stores the style definition that applies the text background color.
* @name CKEDITOR.config.colorButton_backStyle
* @type Object
* @default (see example)
* @example
* // This is actually the default value.
* config.colorButton_backStyle =
* {
* element : 'span',
* styles : { 'background-color' : '#(color)' }
* };
*/
CKEDITOR.config.colorButton_backStyle =
{
element : 'span',
styles : { 'background-color' : '#(color)' }
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/colorbutton/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "showblocks" plugin. Enable it will make all block level
* elements being decorated with a border and the element name
* displayed on the left-right corner.
*/
(function()
{
var cssTemplate = '.%2 p,'+
'.%2 div,'+
'.%2 pre,'+
'.%2 address,'+
'.%2 blockquote,'+
'.%2 h1,'+
'.%2 h2,'+
'.%2 h3,'+
'.%2 h4,'+
'.%2 h5,'+
'.%2 h6'+
'{'+
'background-repeat: no-repeat;'+
'background-position: top %3;'+
'border: 1px dotted gray;'+
'padding-top: 8px;'+
'padding-%3: 8px;'+
'}'+
'.%2 p'+
'{'+
'%1p.png);'+
'}'+
'.%2 div'+
'{'+
'%1div.png);'+
'}'+
'.%2 pre'+
'{'+
'%1pre.png);'+
'}'+
'.%2 address'+
'{'+
'%1address.png);'+
'}'+
'.%2 blockquote'+
'{'+
'%1blockquote.png);'+
'}'+
'.%2 h1'+
'{'+
'%1h1.png);'+
'}'+
'.%2 h2'+
'{'+
'%1h2.png);'+
'}'+
'.%2 h3'+
'{'+
'%1h3.png);'+
'}'+
'.%2 h4'+
'{'+
'%1h4.png);'+
'}'+
'.%2 h5'+
'{'+
'%1h5.png);'+
'}'+
'.%2 h6'+
'{'+
'%1h6.png);'+
'}';
var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g, backgroundPositionRegex = /%3/g;
var commandDefinition =
{
readOnly : 1,
preserveState : true,
editorFocus : false,
exec : function ( editor )
{
this.toggleState();
this.refresh( editor );
},
refresh : function( editor )
{
if ( editor.document )
{
var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';
editor.document.getBody()[ funcName ]( 'cke_show_blocks' );
}
}
};
CKEDITOR.plugins.add( 'showblocks',
{
requires : [ 'wysiwygarea' ],
init : function( editor )
{
var command = editor.addCommand( 'showblocks', commandDefinition );
command.canUndo = false;
if ( editor.config.startupOutlineBlocks )
command.setState( CKEDITOR.TRISTATE_ON );
editor.addCss( cssTemplate
.replace( cssTemplateRegex, 'background-image: url(' + CKEDITOR.getUrl( this.path ) + 'images/block_' )
.replace( cssClassRegex, 'cke_show_blocks ' )
.replace( backgroundPositionRegex, editor.lang.dir == 'rtl' ? 'right' : 'left' ) );
editor.ui.addButton( 'ShowBlocks',
{
label : editor.lang.showBlocks,
command : 'showblocks'
});
// Refresh the command on setData.
editor.on( 'mode', function()
{
if ( command.state != CKEDITOR.TRISTATE_DISABLED )
command.refresh( editor );
});
// Refresh the command on setData.
editor.on( 'contentDom', function()
{
if ( command.state != CKEDITOR.TRISTATE_DISABLED )
command.refresh( editor );
});
}
});
} )();
/**
* Whether to automaticaly enable the "show block" command when the editor
* loads. (StartupShowBlocks in FCKeditor)
* @name CKEDITOR.config.startupOutlineBlocks
* @type Boolean
* @default false
* @example
* config.startupOutlineBlocks = true;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/showblocks/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Paste as plain text plugin
*/
(function()
{
// The pastetext command definition.
var pasteTextCmd =
{
exec : function( editor )
{
var clipboardText = CKEDITOR.tools.tryThese(
function()
{
var clipboardText = window.clipboardData.getData( 'Text' );
if ( !clipboardText )
throw 0;
return clipboardText;
}
// Any other approach that's working...
);
if ( !clipboardText ) // Clipboard access privilege is not granted.
{
editor.openDialog( 'pastetext' );
return false;
}
else
editor.fire( 'paste', { 'text' : clipboardText } );
return true;
}
};
// Register the plugin.
CKEDITOR.plugins.add( 'pastetext',
{
init : function( editor )
{
var commandName = 'pastetext',
command = editor.addCommand( commandName, pasteTextCmd );
editor.ui.addButton( 'PasteText',
{
label : editor.lang.pasteText.button,
command : commandName
});
CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/pastetext.js' ) );
if ( editor.config.forcePasteAsPlainText )
{
// Intercept the default pasting process.
editor.on( 'beforeCommandExec', function ( evt )
{
var mode = evt.data.commandData;
// Do NOT overwrite if HTML format is explicitly requested.
if ( evt.data.name == 'paste' && mode != 'html' )
{
editor.execCommand( 'pastetext' );
evt.cancel();
}
}, null, null, 0 );
editor.on( 'beforePaste', function( evt )
{
evt.data.mode = 'text';
});
}
editor.on( 'pasteState', function( evt )
{
editor.getCommand( 'pastetext' ).setState( evt.data );
});
},
requires : [ 'clipboard' ]
});
})();
/**
* Whether to force all pasting operations to insert on plain text into the
* editor, loosing any formatting information possibly available in the source
* text.
* <strong>Note:</strong> paste from word is not affected by this configuration.
* @name CKEDITOR.config.forcePasteAsPlainText
* @type Boolean
* @default false
* @example
* config.forcePasteAsPlainText = true;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/pastetext/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var eventNameList = [ 'click', 'keydown', 'mousedown', 'keypress', 'mouseover', 'mouseout' ];
// Inline event callbacks assigned via innerHTML/outerHTML, such as
// onclick/onmouseover, are ignored in AIR.
// Use DOM2 event listeners to substitue inline handlers instead.
function convertInlineHandlers( container )
{
// TODO: document.querySelectorAll is not supported in AIR.
var children = container.getElementsByTag( '*' ),
count = children.count(),
child;
for ( var i = 0; i < count; i++ )
{
child = children.getItem( i );
(function( node )
{
for ( var j = 0; j < eventNameList.length; j++ )
{
(function( eventName )
{
var inlineEventHandler = node.getAttribute( 'on' + eventName );
if ( node.hasAttribute( 'on' + eventName ) )
{
node.removeAttribute( 'on' + eventName );
node.on( eventName, function( evt )
{
var callFunc = /(return\s*)?CKEDITOR\.tools\.callFunction\(([^)]+)\)/.exec( inlineEventHandler ),
hasReturn = callFunc && callFunc[ 1 ],
callFuncArgs = callFunc && callFunc[ 2 ].split( ',' ),
preventDefault = /return false;/.test( inlineEventHandler );
if ( callFuncArgs )
{
var nums = callFuncArgs.length,
argName;
for ( var i = 0; i < nums; i++ )
{
// Trim spaces around param.
callFuncArgs[ i ] = argName = CKEDITOR.tools.trim( callFuncArgs[ i ] );
// String form param.
var strPattern = argName.match( /^(["'])([^"']*?)\1$/ );
if ( strPattern )
{
callFuncArgs[ i ] = strPattern[ 2 ];
continue;
}
// Integer form param.
if ( argName.match( /\d+/ ) )
{
callFuncArgs[ i ] = parseInt( argName, 10 );
continue;
}
// Speical variables.
switch( argName )
{
case 'this' :
callFuncArgs[ i ] = node.$;
break;
case 'event' :
callFuncArgs[ i ] = evt.data.$;
break;
case 'null' :
callFuncArgs [ i ] = null;
break;
}
}
var retval = CKEDITOR.tools.callFunction.apply( window, callFuncArgs );
if ( hasReturn && retval === false )
preventDefault = 1;
}
if ( preventDefault )
evt.data.preventDefault();
});
}
})( eventNameList[ j ] );
}
})( child );
}
}
CKEDITOR.plugins.add( 'adobeair',
{
init : function( editor )
{
if ( !CKEDITOR.env.air )
return;
// Body doesn't get default margin on AIR.
editor.addCss( 'body { padding: 8px }' );
editor.on( 'uiReady', function()
{
convertInlineHandlers( editor.container );
if ( editor.sharedSpaces )
{
for ( var space in editor.sharedSpaces )
convertInlineHandlers( editor.sharedSpaces[ space ] );
}
editor.on( 'elementsPathUpdate', function( evt ) { convertInlineHandlers( evt.data.space ); } );
});
editor.on( 'contentDom', function()
{
// Hyperlinks are enabled in editable documents in Adobe
// AIR. Prevent their click behavior.
editor.document.on( 'click', function( ev )
{
ev.data.preventDefault( true );
});
});
}
});
CKEDITOR.ui.on( 'ready', function( evt )
{
var ui = evt.data;
// richcombo, panelbutton and menu
if ( ui._.panel )
{
var panel = ui._.panel._.panel,
holder;
( function()
{
// Adding dom event listeners off-line are not supported in AIR,
// waiting for panel iframe loaded.
if ( !panel.isLoaded )
{
setTimeout( arguments.callee, 30 );
return;
}
holder = panel._.holder;
convertInlineHandlers( holder );
})();
}
else if ( ui instanceof CKEDITOR.dialog )
convertInlineHandlers( ui._.element );
});
})();
CKEDITOR.dom.document.prototype.write = CKEDITOR.tools.override( CKEDITOR.dom.document.prototype.write,
function( original_write )
{
function appendElement( parent, tagName, fullTag, text )
{
var node = parent.append( tagName ),
attrs = CKEDITOR.htmlParser.fragment.fromHtml( fullTag ).children[ 0 ].attributes;
attrs && node.setAttributes( attrs );
text && node.append( parent.getDocument().createText( text ) );
}
return function( html, mode )
{
// document.write() or document.writeln() fail silently after
// the page load event in Adobe AIR.
// DOM manipulation could be used instead.
if ( this.getBody() )
{
// We're taking the below extra work only because innerHTML
// on <html> element doesn't work as expected.
var doc = this,
head = this.getHead();
// Create style nodes for inline css. ( <style> content doesn't applied when setting via innerHTML )
html = html.replace( /(<style[^>]*>)([\s\S]*?)<\/style>/gi,
function ( match, startTag, styleText )
{
appendElement( head, 'style', startTag, styleText );
return '';
});
html = html.replace( /<base\b[^>]*\/>/i,
function( match )
{
appendElement( head, 'base', match );
return '';
});
html = html.replace( /<title>([\s\S]*)<\/title>/i,
function( match, title )
{
doc.$.title = title;
return '';
});
// Move the rest of head stuff.
html = html.replace( /<head>([\s\S]*)<\/head>/i,
function( headHtml )
{
// Inject the <head> HTML inside a <div>.
// Do that before getDocumentHead because WebKit moves
// <link css> elements to the <head> at this point.
var div = new CKEDITOR.dom.element( 'div', doc );
div.setHtml( headHtml );
// Move the <div> nodes to <head>.
div.moveChildren( head );
return '';
});
html.replace( /(<body[^>]*>)([\s\S]*)(?=$|<\/body>)/i,
function( match, startTag, innerHTML )
{
doc.getBody().setHtml( innerHTML );
var attrs = CKEDITOR.htmlParser.fragment.fromHtml( startTag ).children[ 0 ].attributes;
attrs && doc.getBody().setAttributes( attrs );
});
}
else
original_write.apply( this, arguments );
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/adobeair/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Plugin for making iframe based dialogs.
*/
CKEDITOR.plugins.add( 'iframedialog',
{
requires : [ 'dialog' ],
onLoad : function()
{
/**
* An iframe base dialog.
* @param {String} name Name of the dialog
* @param {String} title Title of the dialog
* @param {Number} minWidth Minimum width of the dialog
* @param {Number} minHeight Minimum height of the dialog
* @param {Function} [onContentLoad] Function called when the iframe has been loaded.
* If it isn't specified, the inner frame is notified of the dialog events ('load',
* 'resize', 'ok' and 'cancel') on a function called 'onDialogEvent'
* @param {Object} [userDefinition] Additional properties for the dialog definition
* @example
*/
CKEDITOR.dialog.addIframe = function( name, title, src, minWidth, minHeight, onContentLoad, userDefinition )
{
var element =
{
type : 'iframe',
src : src,
width : '100%',
height : '100%'
};
if ( typeof( onContentLoad ) == 'function' )
element.onContentLoad = onContentLoad;
else
element.onContentLoad = function()
{
var element = this.getElement(),
childWindow = element.$.contentWindow;
// If the inner frame has defined a "onDialogEvent" function, setup listeners
if ( childWindow.onDialogEvent )
{
var dialog = this.getDialog(),
notifyEvent = function(e)
{
return childWindow.onDialogEvent(e);
};
dialog.on( 'ok', notifyEvent );
dialog.on( 'cancel', notifyEvent );
dialog.on( 'resize', notifyEvent );
// Clear listeners
dialog.on( 'hide', function(e)
{
dialog.removeListener( 'ok', notifyEvent );
dialog.removeListener( 'cancel', notifyEvent );
dialog.removeListener( 'resize', notifyEvent );
e.removeListener();
} );
// Notify child iframe of load:
childWindow.onDialogEvent( {
name : 'load',
sender : this,
editor : dialog._.editor
} );
}
};
var definition =
{
title : title,
minWidth : minWidth,
minHeight : minHeight,
contents :
[
{
id : 'iframe',
label : title,
expand : true,
elements : [ element ]
}
]
};
for ( var i in userDefinition )
definition[i] = userDefinition[i];
this.add( name, function(){ return definition; } );
};
(function()
{
/**
* An iframe element.
* @extends CKEDITOR.ui.dialog.uiElement
* @example
* @constructor
* @param {CKEDITOR.dialog} dialog
* Parent dialog object.
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
* The element definition. Accepted fields:
* <ul>
* <li><strong>src</strong> (Required) The src field of the iframe. </li>
* <li><strong>width</strong> (Required) The iframe's width.</li>
* <li><strong>height</strong> (Required) The iframe's height.</li>
* <li><strong>onContentLoad</strong> (Optional) A function to be executed
* after the iframe's contents has finished loading.</li>
* </ul>
* @param {Array} htmlList
* List of HTML code to output to.
*/
var iframeElement = function( dialog, elementDefinition, htmlList )
{
if ( arguments.length < 3 )
return;
var _ = ( this._ || ( this._ = {} ) ),
contentLoad = elementDefinition.onContentLoad && CKEDITOR.tools.bind( elementDefinition.onContentLoad, this ),
cssWidth = CKEDITOR.tools.cssLength( elementDefinition.width ),
cssHeight = CKEDITOR.tools.cssLength( elementDefinition.height );
_.frameId = CKEDITOR.tools.getNextId() + '_iframe';
// IE BUG: Parent container does not resize to contain the iframe automatically.
dialog.on( 'load', function()
{
var iframe = CKEDITOR.document.getById( _.frameId ),
parentContainer = iframe.getParent();
parentContainer.setStyles(
{
width : cssWidth,
height : cssHeight
} );
} );
var attributes =
{
src : '%2',
id : _.frameId,
frameborder : 0,
allowtransparency : true
};
var myHtml = [];
if ( typeof( elementDefinition.onContentLoad ) == 'function' )
attributes.onload = 'CKEDITOR.tools.callFunction(%1);';
CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, myHtml, 'iframe',
{
width : cssWidth,
height : cssHeight
}, attributes, '' );
// Put a placeholder for the first time.
htmlList.push( '<div style="width:' + cssWidth + ';height:' + cssHeight + ';" id="' + this.domId + '"></div>' );
// Iframe elements should be refreshed whenever it is shown.
myHtml = myHtml.join( '' );
dialog.on( 'show', function()
{
var iframe = CKEDITOR.document.getById( _.frameId ),
parentContainer = iframe.getParent(),
callIndex = CKEDITOR.tools.addFunction( contentLoad ),
html = myHtml.replace( '%1', callIndex ).replace( '%2', CKEDITOR.tools.htmlEncode( elementDefinition.src ) );
parentContainer.setHtml( html );
} );
};
iframeElement.prototype = new CKEDITOR.ui.dialog.uiElement;
CKEDITOR.dialog.addUIElement( 'iframe',
{
build : function( dialog, elementDefinition, output )
{
return new iframeElement( dialog, elementDefinition, output );
}
} );
})();
}
} ); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/iframedialog/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Justify commands.
*/
(function()
{
function getState( editor, path )
{
var firstBlock = path.block || path.blockLimit;
if ( !firstBlock || firstBlock.getName() == 'body' )
return CKEDITOR.TRISTATE_OFF;
return ( getAlignment( firstBlock, editor.config.useComputedState ) == this.value ) ?
CKEDITOR.TRISTATE_ON :
CKEDITOR.TRISTATE_OFF;
}
function getAlignment( element, useComputedState )
{
useComputedState = useComputedState === undefined || useComputedState;
var align;
if ( useComputedState )
align = element.getComputedStyle( 'text-align' );
else
{
while ( !element.hasAttribute || !( element.hasAttribute( 'align' ) || element.getStyle( 'text-align' ) ) )
{
var parent = element.getParent();
if ( !parent )
break;
element = parent;
}
align = element.getStyle( 'text-align' ) || element.getAttribute( 'align' ) || '';
}
align && ( align = align.replace( /-moz-|-webkit-|start|auto/i, '' ) );
!align && useComputedState && ( align = element.getComputedStyle( 'direction' ) == 'rtl' ? 'right' : 'left' );
return align;
}
function onSelectionChange( evt )
{
if ( evt.editor.readOnly )
return;
var command = evt.editor.getCommand( this.name );
command.state = getState.call( this, evt.editor, evt.data.path );
command.fire( 'state' );
}
function justifyCommand( editor, name, value )
{
this.name = name;
this.value = value;
var classes = editor.config.justifyClasses;
if ( classes )
{
switch ( value )
{
case 'left' :
this.cssClassName = classes[0];
break;
case 'center' :
this.cssClassName = classes[1];
break;
case 'right' :
this.cssClassName = classes[2];
break;
case 'justify' :
this.cssClassName = classes[3];
break;
}
this.cssClassRegex = new RegExp( '(?:^|\\s+)(?:' + classes.join( '|' ) + ')(?=$|\\s)' );
}
}
function onDirChanged( e )
{
var editor = e.editor;
var range = new CKEDITOR.dom.range( editor.document );
range.setStartBefore( e.data.node );
range.setEndAfter( e.data.node );
var walker = new CKEDITOR.dom.walker( range ),
node;
while ( ( node = walker.next() ) )
{
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
// A child with the defined dir is to be ignored.
if ( !node.equals( e.data.node ) && node.getDirection() )
{
range.setStartAfter( node );
walker = new CKEDITOR.dom.walker( range );
continue;
}
// Switch the alignment.
var classes = editor.config.justifyClasses;
if ( classes )
{
// The left align class.
if ( node.hasClass( classes[ 0 ] ) )
{
node.removeClass( classes[ 0 ] );
node.addClass( classes[ 2 ] );
}
// The right align class.
else if ( node.hasClass( classes[ 2 ] ) )
{
node.removeClass( classes[ 2 ] );
node.addClass( classes[ 0 ] );
}
}
// Always switch CSS margins.
var style = 'text-align';
var align = node.getStyle( style );
if ( align == 'left' )
node.setStyle( style, 'right' );
else if ( align == 'right' )
node.setStyle( style, 'left' );
}
}
}
justifyCommand.prototype = {
exec : function( editor )
{
var selection = editor.getSelection(),
enterMode = editor.config.enterMode;
if ( !selection )
return;
var bookmarks = selection.createBookmarks(),
ranges = selection.getRanges( true );
var cssClassName = this.cssClassName,
iterator,
block;
var useComputedState = editor.config.useComputedState;
useComputedState = useComputedState === undefined || useComputedState;
for ( var i = ranges.length - 1 ; i >= 0 ; i-- )
{
iterator = ranges[ i ].createIterator();
iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR;
while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) )
{
block.removeAttribute( 'align' );
block.removeStyle( 'text-align' );
// Remove any of the alignment classes from the className.
var className = cssClassName && ( block.$.className =
CKEDITOR.tools.ltrim( block.$.className.replace( this.cssClassRegex, '' ) ) );
var apply =
( this.state == CKEDITOR.TRISTATE_OFF ) &&
( !useComputedState || ( getAlignment( block, true ) != this.value ) );
if ( cssClassName )
{
// Append the desired class name.
if ( apply )
block.addClass( cssClassName );
else if ( !className )
block.removeAttribute( 'class' );
}
else if ( apply )
block.setStyle( 'text-align', this.value );
}
}
editor.focus();
editor.forceNextSelectionCheck();
selection.selectBookmarks( bookmarks );
}
};
CKEDITOR.plugins.add( 'justify',
{
init : function( editor )
{
var left = new justifyCommand( editor, 'justifyleft', 'left' ),
center = new justifyCommand( editor, 'justifycenter', 'center' ),
right = new justifyCommand( editor, 'justifyright', 'right' ),
justify = new justifyCommand( editor, 'justifyblock', 'justify' );
editor.addCommand( 'justifyleft', left );
editor.addCommand( 'justifycenter', center );
editor.addCommand( 'justifyright', right );
editor.addCommand( 'justifyblock', justify );
editor.ui.addButton( 'JustifyLeft',
{
label : editor.lang.justify.left,
command : 'justifyleft'
} );
editor.ui.addButton( 'JustifyCenter',
{
label : editor.lang.justify.center,
command : 'justifycenter'
} );
editor.ui.addButton( 'JustifyRight',
{
label : editor.lang.justify.right,
command : 'justifyright'
} );
editor.ui.addButton( 'JustifyBlock',
{
label : editor.lang.justify.block,
command : 'justifyblock'
} );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, left ) );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, right ) );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, center ) );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, justify ) );
editor.on( 'dirChanged', onDirChanged );
},
requires : [ 'domiterator' ]
});
})();
/**
* List of classes to use for aligning the contents. If it's null, no classes will be used
* and instead the corresponding CSS values will be used. The array should contain 4 members, in the following order: left, center, right, justify.
* @name CKEDITOR.config.justifyClasses
* @type Array
* @default null
* @example
* // Use the classes 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify'
* config.justifyClasses = [ 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify' ];
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/justify/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.plugins.add( 'iframe',
{
requires : [ 'dialog', 'fakeobjects' ],
init : function( editor )
{
var pluginName = 'iframe',
lang = editor.lang.iframe;
CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/iframe.js' );
editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) );
editor.addCss(
'img.cke_iframe' +
'{' +
'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/placeholder.png' ) + ');' +
'background-position: center center;' +
'background-repeat: no-repeat;' +
'border: 1px solid #a9a9a9;' +
'width: 80px;' +
'height: 80px;' +
'}'
);
editor.ui.addButton( 'Iframe',
{
label : lang.toolbar,
command : pluginName
});
editor.on( 'doubleclick', function( evt )
{
var element = evt.data.element;
if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' )
evt.data.dialog = 'iframe';
});
if ( editor.addMenuItems )
{
editor.addMenuItems(
{
iframe :
{
label : lang.title,
command : 'iframe',
group : 'image'
}
});
}
// If the "contextmenu" plugin is loaded, register the listeners.
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( element && element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' )
return { iframe : CKEDITOR.TRISTATE_OFF };
});
}
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
elements :
{
iframe : function( element )
{
return editor.createFakeParserElement( element, 'cke_iframe', 'iframe', true );
}
}
});
}
}
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/iframe/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// Map 'true' and 'false' values to match W3C's specifications
// http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5
var checkboxValues =
{
scrolling : { 'true' : 'yes', 'false' : 'no' },
frameborder : { 'true' : '1', 'false' : '0' }
};
function loadValue( iframeNode )
{
var isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox;
if ( iframeNode.hasAttribute( this.id ) )
{
var value = iframeNode.getAttribute( this.id );
if ( isCheckbox )
this.setValue( checkboxValues[ this.id ][ 'true' ] == value.toLowerCase() );
else
this.setValue( value );
}
}
function commitValue( iframeNode )
{
var isRemove = this.getValue() === '',
isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox,
value = this.getValue();
if ( isRemove )
iframeNode.removeAttribute( this.att || this.id );
else if ( isCheckbox )
iframeNode.setAttribute( this.id, checkboxValues[ this.id ][ value ] );
else
iframeNode.setAttribute( this.att || this.id, value );
}
CKEDITOR.dialog.add( 'iframe', function( editor )
{
var iframeLang = editor.lang.iframe,
commonLang = editor.lang.common,
dialogadvtab = editor.plugins.dialogadvtab;
return {
title : iframeLang.title,
minWidth : 350,
minHeight : 260,
onShow : function()
{
// Clear previously saved elements.
this.fakeImage = this.iframeNode = null;
var fakeImage = this.getSelectedElement();
if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'iframe' )
{
this.fakeImage = fakeImage;
var iframeNode = editor.restoreRealElement( fakeImage );
this.iframeNode = iframeNode;
this.setupContent( iframeNode );
}
},
onOk : function()
{
var iframeNode;
if ( !this.fakeImage )
iframeNode = new CKEDITOR.dom.element( 'iframe' );
else
iframeNode = this.iframeNode;
// A subset of the specified attributes/styles
// should also be applied on the fake element to
// have better visual effect. (#5240)
var extraStyles = {}, extraAttributes = {};
this.commitContent( iframeNode, extraStyles, extraAttributes );
// Refresh the fake image.
var newFakeImage = editor.createFakeElement( iframeNode, 'cke_iframe', 'iframe', true );
newFakeImage.setAttributes( extraAttributes );
newFakeImage.setStyles( extraStyles );
if ( this.fakeImage )
{
newFakeImage.replace( this.fakeImage );
editor.getSelection().selectElement( newFakeImage );
}
else
editor.insertElement( newFakeImage );
},
contents : [
{
id : 'info',
label : commonLang.generalTab,
accessKey : 'I',
elements :
[
{
type : 'vbox',
padding : 0,
children :
[
{
id : 'src',
type : 'text',
label : commonLang.url,
required : true,
validate : CKEDITOR.dialog.validate.notEmpty( iframeLang.noUrl ),
setup : loadValue,
commit : commitValue
}
]
},
{
type : 'hbox',
children :
[
{
id : 'width',
type : 'text',
style : 'width:100%',
labelLayout : 'vertical',
label : commonLang.width,
validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.width ) ),
setup : loadValue,
commit : commitValue
},
{
id : 'height',
type : 'text',
style : 'width:100%',
labelLayout : 'vertical',
label : commonLang.height,
validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.height ) ),
setup : loadValue,
commit : commitValue
},
{
id : 'align',
type : 'select',
'default' : '',
items :
[
[ commonLang.notSet , '' ],
[ commonLang.alignLeft , 'left' ],
[ commonLang.alignRight , 'right' ],
[ commonLang.alignTop , 'top' ],
[ commonLang.alignMiddle , 'middle' ],
[ commonLang.alignBottom , 'bottom' ]
],
style : 'width:100%',
labelLayout : 'vertical',
label : commonLang.align,
setup : function( iframeNode, fakeImage )
{
loadValue.apply( this, arguments );
if ( fakeImage )
{
var fakeImageAlign = fakeImage.getAttribute( 'align' );
this.setValue( fakeImageAlign && fakeImageAlign.toLowerCase() || '' );
}
},
commit : function( iframeNode, extraStyles, extraAttributes )
{
commitValue.apply( this, arguments );
if ( this.getValue() )
extraAttributes.align = this.getValue();
}
}
]
},
{
type : 'hbox',
widths : [ '50%', '50%' ],
children :
[
{
id : 'scrolling',
type : 'checkbox',
label : iframeLang.scrolling,
setup : loadValue,
commit : commitValue
},
{
id : 'frameborder',
type : 'checkbox',
label : iframeLang.border,
setup : loadValue,
commit : commitValue
}
]
},
{
type : 'hbox',
widths : [ '50%', '50%' ],
children :
[
{
id : 'name',
type : 'text',
label : commonLang.name,
setup : loadValue,
commit : commitValue
},
{
id : 'title',
type : 'text',
label : commonLang.advisoryTitle,
setup : loadValue,
commit : commitValue
}
]
},
{
id : 'longdesc',
type : 'text',
label : commonLang.longDescr,
setup : loadValue,
commit : commitValue
}
]
},
dialogadvtab && dialogadvtab.createAdvancedTab( editor, { id:1, classes:1, styles:1 })
]
};
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/iframe/dialogs/iframe.js | iframe.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'richcombo',
{
requires : [ 'floatpanel', 'listblock', 'button' ],
beforeInit : function( editor )
{
editor.ui.addHandler( CKEDITOR.UI_RICHCOMBO, CKEDITOR.ui.richCombo.handler );
}
});
/**
* Button UI element.
* @constant
* @example
*/
CKEDITOR.UI_RICHCOMBO = 'richcombo';
CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass(
{
$ : function( definition )
{
// Copy all definition properties to this object.
CKEDITOR.tools.extend( this, definition,
// Set defaults.
{
title : definition.label,
modes : { wysiwyg : 1 }
});
// We don't want the panel definition in this object.
var panelDefinition = this.panel || {};
delete this.panel;
this.id = CKEDITOR.tools.getNextNumber();
this.document = ( panelDefinition
&& panelDefinition.parent
&& panelDefinition.parent.getDocument() )
|| CKEDITOR.document;
panelDefinition.className = ( panelDefinition.className || '' ) + ' cke_rcombopanel';
panelDefinition.block =
{
multiSelect : panelDefinition.multiSelect,
attributes : panelDefinition.attributes
};
this._ =
{
panelDefinition : panelDefinition,
items : {},
state : CKEDITOR.TRISTATE_OFF
};
},
statics :
{
handler :
{
create : function( definition )
{
return new CKEDITOR.ui.richCombo( definition );
}
}
},
proto :
{
renderHtml : function( editor )
{
var output = [];
this.render( editor, output );
return output.join( '' );
},
/**
* Renders the combo.
* @param {CKEDITOR.editor} editor The editor instance which this button is
* to be used by.
* @param {Array} output The output array to which append the HTML relative
* to this button.
* @example
*/
render : function( editor, output )
{
var env = CKEDITOR.env;
var id = 'cke_' + this.id;
var clickFn = CKEDITOR.tools.addFunction( function( $element )
{
var _ = this._;
if ( _.state == CKEDITOR.TRISTATE_DISABLED )
return;
this.createPanel( editor );
if ( _.on )
{
_.panel.hide();
return;
}
this.commit();
var value = this.getValue();
if ( value )
_.list.mark( value );
else
_.list.unmarkAll();
_.panel.showBlock( this.id, new CKEDITOR.dom.element( $element ), 4 );
},
this );
var instance = {
id : id,
combo : this,
focus : function()
{
var element = CKEDITOR.document.getById( id ).getChild( 1 );
element.focus();
},
clickFn : clickFn
};
function updateState()
{
var state = this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED;
this.setState( editor.readOnly && !this.readOnly ? CKEDITOR.TRISTATE_DISABLED : state );
this.setValue( '' );
}
editor.on( 'mode', updateState, this );
// If this combo is sensitive to readOnly state, update it accordingly.
!this.readOnly && editor.on( 'readOnly', updateState, this);
var keyDownFn = CKEDITOR.tools.addFunction( function( ev, element )
{
ev = new CKEDITOR.dom.event( ev );
var keystroke = ev.getKeystroke();
switch ( keystroke )
{
case 13 : // ENTER
case 32 : // SPACE
case 40 : // ARROW-DOWN
// Show panel
CKEDITOR.tools.callFunction( clickFn, element );
break;
default :
// Delegate the default behavior to toolbar button key handling.
instance.onkey( instance, keystroke );
}
// Avoid subsequent focus grab on editor document.
ev.preventDefault();
});
var focusFn = CKEDITOR.tools.addFunction( function() { instance.onfocus && instance.onfocus(); } );
// For clean up
instance.keyDownFn = keyDownFn;
output.push(
'<span class="cke_rcombo" role="presentation">',
'<span id=', id );
if ( this.className )
output.push( ' class="', this.className, ' cke_off"');
output.push(
' role="presentation">',
'<span id="' + id+ '_label" class=cke_label>', this.label, '</span>',
'<a hidefocus=true title="', this.title, '" tabindex="-1"',
env.gecko && env.version >= 10900 && !env.hc ? '' : ' href="javascript:void(\'' + this.label + '\')"',
' role="button" aria-labelledby="', id , '_label" aria-describedby="', id, '_text" aria-haspopup="true"' );
// Some browsers don't cancel key events in the keydown but in the
// keypress.
// TODO: Check if really needed for Gecko+Mac.
if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) )
{
output.push(
' onkeypress="return false;"' );
}
// With Firefox, we need to force it to redraw, otherwise it
// will remain in the focus state.
if ( CKEDITOR.env.gecko )
{
output.push(
' onblur="this.style.cssText = this.style.cssText;"' );
}
output.push(
' onkeydown="CKEDITOR.tools.callFunction( ', keyDownFn, ', event, this );"' +
' onfocus="return CKEDITOR.tools.callFunction(', focusFn, ', event);" ' +
( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188
'="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' +
'<span>' +
'<span id="' + id + '_text" class="cke_text cke_inline_label">' + this.label + '</span>' +
'</span>' +
'<span class=cke_openbutton><span class=cke_icon>' + ( CKEDITOR.env.hc ? '▼' : CKEDITOR.env.air ? ' ' : '' ) + '</span></span>' + // BLACK DOWN-POINTING TRIANGLE
'</a>' +
'</span>' +
'</span>' );
if ( this.onRender )
this.onRender();
return instance;
},
createPanel : function( editor )
{
if ( this._.panel )
return;
var panelDefinition = this._.panelDefinition,
panelBlockDefinition = this._.panelDefinition.block,
panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(),
panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ),
list = panel.addListBlock( this.id, panelBlockDefinition ),
me = this;
panel.onShow = function()
{
if ( me.className )
this.element.getFirst().addClass( me.className + '_panel' );
me.setState( CKEDITOR.TRISTATE_ON );
list.focus( !me.multiSelect && me.getValue() );
me._.on = 1;
if ( me.onOpen )
me.onOpen();
};
panel.onHide = function( preventOnClose )
{
if ( me.className )
this.element.getFirst().removeClass( me.className + '_panel' );
me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
me._.on = 0;
if ( !preventOnClose && me.onClose )
me.onClose();
};
panel.onEscape = function()
{
panel.hide();
};
list.onClick = function( value, marked )
{
// Move the focus to the main windows, otherwise it will stay
// into the floating panel, even if invisible, and Safari and
// Opera will go a bit crazy.
me.document.getWindow().focus();
if ( me.onClick )
me.onClick.call( me, value, marked );
if ( marked )
me.setValue( value, me._.items[ value ] );
else
me.setValue( '' );
panel.hide( false );
};
this._.panel = panel;
this._.list = list;
panel.getBlock( this.id ).onHide = function()
{
me._.on = 0;
me.setState( CKEDITOR.TRISTATE_OFF );
};
if ( this.init )
this.init();
},
setValue : function( value, text )
{
this._.value = value;
var textElement = this.document.getById( 'cke_' + this.id + '_text' );
if ( textElement )
{
if ( !( value || text ) )
{
text = this.label;
textElement.addClass( 'cke_inline_label' );
}
else
textElement.removeClass( 'cke_inline_label' );
textElement.setHtml( typeof text != 'undefined' ? text : value );
}
},
getValue : function()
{
return this._.value || '';
},
unmarkAll : function()
{
this._.list.unmarkAll();
},
mark : function( value )
{
this._.list.mark( value );
},
hideItem : function( value )
{
this._.list.hideItem( value );
},
hideGroup : function( groupTitle )
{
this._.list.hideGroup( groupTitle );
},
showAll : function()
{
this._.list.showAll();
},
add : function( value, html, text )
{
this._.items[ value ] = text || value;
this._.list.add( value, html, text );
},
startGroup : function( title )
{
this._.list.startGroup( title );
},
commit : function()
{
if ( !this._.committed )
{
this._.list.commit();
this._.committed = 1;
CKEDITOR.ui.fire( 'ready', this );
}
this._.committed = 1;
},
setState : function( state )
{
if ( this._.state == state )
return;
this.document.getById( 'cke_' + this.id ).setState( state );
this._.state = state;
}
}
});
CKEDITOR.ui.prototype.addRichCombo = function( name, definition )
{
this.add( name, CKEDITOR.UI_RICHCOMBO, definition );
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/richcombo/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Preview plugin.
*/
(function()
{
var previewCmd =
{
modes : { wysiwyg:1, source:1 },
canUndo : false,
readOnly : 1,
exec : function( editor )
{
var sHTML,
config = editor.config,
baseTag = config.baseHref ? '<base href="' + config.baseHref + '"/>' : '',
isCustomDomain = CKEDITOR.env.isCustomDomain();
if ( config.fullPage )
{
sHTML = editor.getData()
.replace( /<head>/, '$&' + baseTag )
.replace( /[^>]*(?=<\/title>)/, '$& — ' + editor.lang.preview );
}
else
{
var bodyHtml = '<body ',
body = editor.document && editor.document.getBody();
if ( body )
{
if ( body.getAttribute( 'id' ) )
bodyHtml += 'id="' + body.getAttribute( 'id' ) + '" ';
if ( body.getAttribute( 'class' ) )
bodyHtml += 'class="' + body.getAttribute( 'class' ) + '" ';
}
bodyHtml += '>';
sHTML =
editor.config.docType +
'<html dir="' + editor.config.contentsLangDirection + '">' +
'<head>' +
baseTag +
'<title>' + editor.lang.preview + '</title>' +
CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) +
'</head>' + bodyHtml +
editor.getData() +
'</body></html>';
}
var iWidth = 640, // 800 * 0.8,
iHeight = 420, // 600 * 0.7,
iLeft = 80; // (800 - 0.8 * 800) /2 = 800 * 0.1.
try
{
var screen = window.screen;
iWidth = Math.round( screen.width * 0.8 );
iHeight = Math.round( screen.height * 0.7 );
iLeft = Math.round( screen.width * 0.1 );
}
catch ( e ){}
var sOpenUrl = '';
if ( isCustomDomain )
{
window._cke_htmlToLoad = sHTML;
sOpenUrl = 'javascript:void( (function(){' +
'document.open();' +
'document.domain="' + document.domain + '";' +
'document.write( window.opener._cke_htmlToLoad );' +
'document.close();' +
'window.opener._cke_htmlToLoad = null;' +
'})() )';
}
var oWindow = window.open( sOpenUrl, null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' +
iWidth + ',height=' + iHeight + ',left=' + iLeft );
if ( !isCustomDomain )
{
var doc = oWindow.document;
doc.open();
doc.write( sHTML );
doc.close();
// Chrome will need this to show the embedded. (#8016)
CKEDITOR.env.webkit && setTimeout( function() { doc.body.innerHTML += ''; }, 0 );
}
}
};
var pluginName = 'preview';
// Register a plugin named "preview".
CKEDITOR.plugins.add( pluginName,
{
init : function( editor )
{
editor.addCommand( pluginName, previewCmd );
editor.ui.addButton( 'Preview',
{
label : editor.lang.preview,
command : pluginName
});
}
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/preview/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Increse and decrease indent commands.
*/
(function()
{
var listNodeNames = { ol : 1, ul : 1 },
isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ),
isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true );
function onSelectionChange( evt )
{
if ( evt.editor.readOnly )
return null;
var editor = evt.editor,
elementPath = evt.data.path,
list = elementPath && elementPath.contains( listNodeNames ),
firstBlock = elementPath.block || elementPath.blockLimit;
if ( list )
return this.setState( CKEDITOR.TRISTATE_OFF );
if ( !this.useIndentClasses && this.name == 'indent' )
return this.setState( CKEDITOR.TRISTATE_OFF );
if ( !firstBlock )
return this.setState( CKEDITOR.TRISTATE_DISABLED );
if ( this.useIndentClasses )
{
var indentClass = firstBlock.$.className.match( this.classNameRegex ),
indentStep = 0;
if ( indentClass )
{
indentClass = indentClass[1];
indentStep = this.indentClassMap[ indentClass ];
}
if ( ( this.name == 'outdent' && !indentStep ) ||
( this.name == 'indent' && indentStep == editor.config.indentClasses.length ) )
return this.setState( CKEDITOR.TRISTATE_DISABLED );
return this.setState( CKEDITOR.TRISTATE_OFF );
}
else
{
var indent = parseInt( firstBlock.getStyle( getIndentCssProperty( firstBlock ) ), 10 );
if ( isNaN( indent ) )
indent = 0;
if ( indent <= 0 )
return this.setState( CKEDITOR.TRISTATE_DISABLED );
return this.setState( CKEDITOR.TRISTATE_OFF );
}
}
function indentCommand( editor, name )
{
this.name = name;
this.useIndentClasses = editor.config.indentClasses && editor.config.indentClasses.length > 0;
if ( this.useIndentClasses )
{
this.classNameRegex = new RegExp( '(?:^|\\s+)(' + editor.config.indentClasses.join( '|' ) + ')(?=$|\\s)' );
this.indentClassMap = {};
for ( var i = 0 ; i < editor.config.indentClasses.length ; i++ )
this.indentClassMap[ editor.config.indentClasses[i] ] = i + 1;
}
this.startDisabled = name == 'outdent';
}
// Returns the CSS property to be used for identing a given element.
function getIndentCssProperty( element, dir )
{
return ( dir || element.getComputedStyle( 'direction' ) ) == 'ltr' ? 'margin-left' : 'margin-right';
}
function isListItem( node )
{
return node.type == CKEDITOR.NODE_ELEMENT && node.is( 'li' );
}
indentCommand.prototype = {
exec : function( editor )
{
var self = this, database = {};
function indentList( listNode )
{
// Our starting and ending points of the range might be inside some blocks under a list item...
// So before playing with the iterator, we need to expand the block to include the list items.
var startContainer = range.startContainer,
endContainer = range.endContainer;
while ( startContainer && !startContainer.getParent().equals( listNode ) )
startContainer = startContainer.getParent();
while ( endContainer && !endContainer.getParent().equals( listNode ) )
endContainer = endContainer.getParent();
if ( !startContainer || !endContainer )
return;
// Now we can iterate over the individual items on the same tree depth.
var block = startContainer,
itemsToMove = [],
stopFlag = false;
while ( !stopFlag )
{
if ( block.equals( endContainer ) )
stopFlag = true;
itemsToMove.push( block );
block = block.getNext();
}
if ( itemsToMove.length < 1 )
return;
// Do indent or outdent operations on the array model of the list, not the
// list's DOM tree itself. The array model demands that it knows as much as
// possible about the surrounding lists, we need to feed it the further
// ancestor node that is still a list.
var listParents = listNode.getParents( true );
for ( var i = 0 ; i < listParents.length ; i++ )
{
if ( listParents[i].getName && listNodeNames[ listParents[i].getName() ] )
{
listNode = listParents[i];
break;
}
}
var indentOffset = self.name == 'indent' ? 1 : -1,
startItem = itemsToMove[0],
lastItem = itemsToMove[ itemsToMove.length - 1 ];
// Convert the list DOM tree into a one dimensional array.
var listArray = CKEDITOR.plugins.list.listToArray( listNode, database );
// Apply indenting or outdenting on the array.
var baseIndent = listArray[ lastItem.getCustomData( 'listarray_index' ) ].indent;
for ( i = startItem.getCustomData( 'listarray_index' ); i <= lastItem.getCustomData( 'listarray_index' ); i++ )
{
listArray[ i ].indent += indentOffset;
// Make sure the newly created sublist get a brand-new element of the same type. (#5372)
var listRoot = listArray[ i ].parent;
listArray[ i ].parent = new CKEDITOR.dom.element( listRoot.getName(), listRoot.getDocument() );
}
for ( i = lastItem.getCustomData( 'listarray_index' ) + 1 ;
i < listArray.length && listArray[i].indent > baseIndent ; i++ )
listArray[i].indent += indentOffset;
// Convert the array back to a DOM forest (yes we might have a few subtrees now).
// And replace the old list with the new forest.
var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode, listNode.getDirection() );
// Avoid nested <li> after outdent even they're visually same,
// recording them for later refactoring.(#3982)
if ( self.name == 'outdent' )
{
var parentLiElement;
if ( ( parentLiElement = listNode.getParent() ) && parentLiElement.is( 'li' ) )
{
var children = newList.listNode.getChildren(),
pendingLis = [],
count = children.count(),
child;
for ( i = count - 1 ; i >= 0 ; i-- )
{
if ( ( child = children.getItem( i ) ) && child.is && child.is( 'li' ) )
pendingLis.push( child );
}
}
}
if ( newList )
newList.listNode.replace( listNode );
// Move the nested <li> to be appeared after the parent.
if ( pendingLis && pendingLis.length )
{
for ( i = 0; i < pendingLis.length ; i++ )
{
var li = pendingLis[ i ],
followingList = li;
// Nest preceding <ul>/<ol> inside current <li> if any.
while ( ( followingList = followingList.getNext() ) &&
followingList.is &&
followingList.getName() in listNodeNames )
{
// IE requires a filler NBSP for nested list inside empty list item,
// otherwise the list item will be inaccessiable. (#4476)
if ( CKEDITOR.env.ie && !li.getFirst( function( node ){ return isNotWhitespaces( node ) && isNotBookmark( node ); } ) )
li.append( range.document.createText( '\u00a0' ) );
li.append( followingList );
}
li.insertAfter( parentLiElement );
}
}
}
function indentBlock()
{
var iterator = range.createIterator(),
enterMode = editor.config.enterMode;
iterator.enforceRealBlocks = true;
iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR;
var block;
while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) )
indentElement( block );
}
function indentElement( element, dir )
{
if ( element.getCustomData( 'indent_processed' ) )
return false;
if ( self.useIndentClasses )
{
// Transform current class name to indent step index.
var indentClass = element.$.className.match( self.classNameRegex ),
indentStep = 0;
if ( indentClass )
{
indentClass = indentClass[1];
indentStep = self.indentClassMap[ indentClass ];
}
// Operate on indent step index, transform indent step index back to class
// name.
if ( self.name == 'outdent' )
indentStep--;
else
indentStep++;
if ( indentStep < 0 )
return false;
indentStep = Math.min( indentStep, editor.config.indentClasses.length );
indentStep = Math.max( indentStep, 0 );
element.$.className = CKEDITOR.tools.ltrim( element.$.className.replace( self.classNameRegex, '' ) );
if ( indentStep > 0 )
element.addClass( editor.config.indentClasses[ indentStep - 1 ] );
}
else
{
var indentCssProperty = getIndentCssProperty( element, dir ),
currentOffset = parseInt( element.getStyle( indentCssProperty ), 10 );
if ( isNaN( currentOffset ) )
currentOffset = 0;
var indentOffset = editor.config.indentOffset || 40;
currentOffset += ( self.name == 'indent' ? 1 : -1 ) * indentOffset;
if ( currentOffset < 0 )
return false;
currentOffset = Math.max( currentOffset, 0 );
currentOffset = Math.ceil( currentOffset / indentOffset ) * indentOffset;
element.setStyle( indentCssProperty, currentOffset ? currentOffset + ( editor.config.indentUnit || 'px' ) : '' );
if ( element.getAttribute( 'style' ) === '' )
element.removeAttribute( 'style' );
}
CKEDITOR.dom.element.setMarker( database, element, 'indent_processed', 1 );
return true;
}
var selection = editor.getSelection(),
bookmarks = selection.createBookmarks( 1 ),
ranges = selection && selection.getRanges( 1 ),
range;
var iterator = ranges.createIterator();
while ( ( range = iterator.getNextRange() ) )
{
var rangeRoot = range.getCommonAncestor(),
nearestListBlock = rangeRoot;
while ( nearestListBlock && !( nearestListBlock.type == CKEDITOR.NODE_ELEMENT &&
listNodeNames[ nearestListBlock.getName() ] ) )
nearestListBlock = nearestListBlock.getParent();
// Avoid having selection enclose the entire list. (#6138)
// [<ul><li>...</li></ul>] =><ul><li>[...]</li></ul>
if ( !nearestListBlock )
{
var selectedNode = range.getEnclosedNode();
if ( selectedNode
&& selectedNode.type == CKEDITOR.NODE_ELEMENT
&& selectedNode.getName() in listNodeNames)
{
range.setStartAt( selectedNode, CKEDITOR.POSITION_AFTER_START );
range.setEndAt( selectedNode, CKEDITOR.POSITION_BEFORE_END );
nearestListBlock = selectedNode;
}
}
// Avoid selection anchors under list root.
// <ul>[<li>...</li>]</ul> => <ul><li>[...]</li></ul>
if ( nearestListBlock && range.startContainer.type == CKEDITOR.NODE_ELEMENT
&& range.startContainer.getName() in listNodeNames )
{
var walker = new CKEDITOR.dom.walker( range );
walker.evaluator = isListItem;
range.startContainer = walker.next();
}
if ( nearestListBlock && range.endContainer.type == CKEDITOR.NODE_ELEMENT
&& range.endContainer.getName() in listNodeNames )
{
walker = new CKEDITOR.dom.walker( range );
walker.evaluator = isListItem;
range.endContainer = walker.previous();
}
if ( nearestListBlock )
{
var firstListItem = nearestListBlock.getFirst( isListItem ),
hasMultipleItems = !!firstListItem.getNext( isListItem ),
rangeStart = range.startContainer,
indentWholeList = firstListItem.equals( rangeStart ) || firstListItem.contains( rangeStart );
// Indent the entire list if cursor is inside the first list item. (#3893)
// Only do that for indenting or when using indent classes or when there is something to outdent. (#6141)
if ( !( indentWholeList &&
( self.name == 'indent' || self.useIndentClasses || parseInt( nearestListBlock.getStyle( getIndentCssProperty( nearestListBlock ) ), 10 ) ) &&
indentElement( nearestListBlock, !hasMultipleItems && firstListItem.getDirection() ) ) )
indentList( nearestListBlock );
}
else
indentBlock();
}
// Clean up the markers.
CKEDITOR.dom.element.clearAllMarkers( database );
editor.forceNextSelectionCheck();
selection.selectBookmarks( bookmarks );
}
};
CKEDITOR.plugins.add( 'indent',
{
init : function( editor )
{
// Register commands.
var indent = editor.addCommand( 'indent', new indentCommand( editor, 'indent' ) ),
outdent = editor.addCommand( 'outdent', new indentCommand( editor, 'outdent' ) );
// Register the toolbar buttons.
editor.ui.addButton( 'Indent',
{
label : editor.lang.indent,
command : 'indent'
});
editor.ui.addButton( 'Outdent',
{
label : editor.lang.outdent,
command : 'outdent'
});
// Register the state changing handlers.
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, indent ) );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, outdent ) );
// [IE6/7] Raw lists are using margin instead of padding for visual indentation in wysiwyg mode. (#3893)
if ( CKEDITOR.env.ie6Compat || CKEDITOR.env.ie7Compat )
{
editor.addCss(
"ul,ol" +
"{" +
" margin-left: 0px;" +
" padding-left: 40px;" +
"}" );
}
// Register dirChanged listener.
editor.on( 'dirChanged', function( e )
{
var range = new CKEDITOR.dom.range( editor.document );
range.setStartBefore( e.data.node );
range.setEndAfter( e.data.node );
var walker = new CKEDITOR.dom.walker( range ),
node;
while ( ( node = walker.next() ) )
{
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
// A child with the defined dir is to be ignored.
if ( !node.equals( e.data.node ) && node.getDirection() )
{
range.setStartAfter( node );
walker = new CKEDITOR.dom.walker( range );
continue;
}
// Switch alignment classes.
var classes = editor.config.indentClasses;
if ( classes )
{
var suffix = ( e.data.dir == 'ltr' ) ? [ '_rtl', '' ] : [ '', '_rtl' ];
for ( var i = 0; i < classes.length; i++ )
{
if ( node.hasClass( classes[ i ] + suffix[ 0 ] ) )
{
node.removeClass( classes[ i ] + suffix[ 0 ] );
node.addClass( classes[ i ] + suffix[ 1 ] );
}
}
}
// Switch the margins.
var marginLeft = node.getStyle( 'margin-right' ),
marginRight = node.getStyle( 'margin-left' );
marginLeft ? node.setStyle( 'margin-left', marginLeft ) : node.removeStyle( 'margin-left' );
marginRight ? node.setStyle( 'margin-right', marginRight ) : node.removeStyle( 'margin-right' );
}
}
});
},
requires : [ 'domiterator', 'list' ]
} );
})();
/**
* Size of each indentation step
* @name CKEDITOR.config.indentOffset
* @type Number
* @default 40
* @example
* config.indentOffset = 4;
*/
/**
* Unit for the indentation style
* @name CKEDITOR.config.indentUnit
* @type String
* @default 'px'
* @example
* config.indentUnit = 'em';
*/
/**
* List of classes to use for indenting the contents. If it's null, no classes will be used
* and instead the {@link #indentUnit} and {@link #indentOffset} properties will be used.
* @name CKEDITOR.config.indentClasses
* @type Array
* @default null
* @example
* // Use the classes 'Indent1', 'Indent2', 'Indent3'
* config.indentClasses = ['Indent1', 'Indent2', 'Indent3'];
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/indent/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'colordialog', function( editor )
{
// Define some shorthands.
var $el = CKEDITOR.dom.element,
$doc = CKEDITOR.document,
$tools = CKEDITOR.tools,
lang = editor.lang.colordialog;
// Reference the dialog.
var dialog;
var spacer =
{
type : 'html',
html : ' '
};
function clearSelected()
{
$doc.getById( selHiColorId ).removeStyle( 'background-color' );
dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' );
}
function updateSelected( evt )
{
if ( ! ( evt instanceof CKEDITOR.dom.event ) )
evt = new CKEDITOR.dom.event( evt );
var target = evt.getTarget(),
color;
if ( target.getName() == 'a' && ( color = target.getChild( 0 ).getHtml() ) )
dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color );
}
function updateHighlight( event )
{
if ( ! ( event instanceof CKEDITOR.dom.event ) )
event = event.data;
var target = event.getTarget(),
color;
if ( target.getName() == 'a' && ( color = target.getChild( 0 ).getHtml() ) )
{
$doc.getById( hicolorId ).setStyle( 'background-color', color );
$doc.getById( hicolorTextId ).setHtml( color );
}
}
function clearHighlight()
{
$doc.getById( hicolorId ).removeStyle( 'background-color' );
$doc.getById( hicolorTextId ).setHtml( ' ' );
}
var onMouseout = $tools.addFunction( clearHighlight ),
onClick = updateSelected,
onClickHandler = CKEDITOR.tools.addFunction( onClick ),
onFocus = updateHighlight,
onBlur = clearHighlight;
var onKeydownHandler = CKEDITOR.tools.addFunction( function( ev )
{
ev = new CKEDITOR.dom.event( ev );
var element = ev.getTarget();
var relative, nodeToMove;
var keystroke = ev.getKeystroke(),
rtl = editor.lang.dir == 'rtl';
switch ( keystroke )
{
// UP-ARROW
case 38 :
// relative is TR
if ( ( relative = element.getParent().getParent().getPrevious() ) )
{
nodeToMove = relative.getChild( [element.getParent().getIndex(), 0] );
nodeToMove.focus();
onBlur( ev, element );
onFocus( ev, nodeToMove );
}
ev.preventDefault();
break;
// DOWN-ARROW
case 40 :
// relative is TR
if ( ( relative = element.getParent().getParent().getNext() ) )
{
nodeToMove = relative.getChild( [ element.getParent().getIndex(), 0 ] );
if ( nodeToMove && nodeToMove.type == 1 )
{
nodeToMove.focus();
onBlur( ev, element );
onFocus( ev, nodeToMove );
}
}
ev.preventDefault();
break;
// SPACE
// ENTER is already handled as onClick
case 32 :
onClick( ev );
ev.preventDefault();
break;
// RIGHT-ARROW
case rtl ? 37 : 39 :
// relative is TD
if ( ( relative = element.getParent().getNext() ) )
{
nodeToMove = relative.getChild( 0 );
if ( nodeToMove.type == 1 )
{
nodeToMove.focus();
onBlur( ev, element );
onFocus( ev, nodeToMove );
ev.preventDefault( true );
}
else
onBlur( null, element );
}
// relative is TR
else if ( ( relative = element.getParent().getParent().getNext() ) )
{
nodeToMove = relative.getChild( [ 0, 0 ] );
if ( nodeToMove && nodeToMove.type == 1 )
{
nodeToMove.focus();
onBlur( ev, element );
onFocus( ev, nodeToMove );
ev.preventDefault( true );
}
else
onBlur( null, element );
}
break;
// LEFT-ARROW
case rtl ? 39 : 37 :
// relative is TD
if ( ( relative = element.getParent().getPrevious() ) )
{
nodeToMove = relative.getChild( 0 );
nodeToMove.focus();
onBlur( ev, element );
onFocus( ev, nodeToMove );
ev.preventDefault( true );
}
// relative is TR
else if ( ( relative = element.getParent().getParent().getPrevious() ) )
{
nodeToMove = relative.getLast().getChild( 0 );
nodeToMove.focus();
onBlur( ev, element );
onFocus( ev, nodeToMove );
ev.preventDefault( true );
}
else
onBlur( null, element );
break;
default :
// Do not stop not handled events.
return;
}
});
function createColorTable()
{
// Create the base colors array.
var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ];
// This function combines two ranges of three values from the color array into a row.
function appendColorRow( rangeA, rangeB )
{
for ( var i = rangeA ; i < rangeA + 3 ; i++ )
{
var row = table.$.insertRow( -1 );
for ( var j = rangeB ; j < rangeB + 3 ; j++ )
{
for ( var n = 0 ; n < 6 ; n++ )
{
appendColorCell( row, '#' + aColors[j] + aColors[n] + aColors[i] );
}
}
}
}
// This function create a single color cell in the color table.
function appendColorCell( targetRow, color )
{
var cell = new $el( targetRow.insertCell( -1 ) );
cell.setAttribute( 'class', 'ColorCell' );
cell.setStyle( 'background-color', color );
cell.setStyle( 'width', '15px' );
cell.setStyle( 'height', '15px' );
var index = cell.$.cellIndex + 1 + 18 * targetRow.rowIndex;
cell.append( CKEDITOR.dom.element.createFromHtml(
'<a href="javascript: void(0);" role="option"' +
' aria-posinset="' + index + '"' +
' aria-setsize="' + 13 * 18 + '"' +
' style="cursor: pointer;display:block;width:100%;height:100% " title="'+ CKEDITOR.tools.htmlEncode( color )+ '"' +
' onkeydown="CKEDITOR.tools.callFunction( ' + onKeydownHandler + ', event, this )"' +
' onclick="CKEDITOR.tools.callFunction(' + onClickHandler + ', event, this ); return false;"' +
' tabindex="-1"><span class="cke_voice_label">' + color + '</span> </a>', CKEDITOR.document ) );
}
appendColorRow( 0, 0 );
appendColorRow( 3, 0 );
appendColorRow( 0, 3 );
appendColorRow( 3, 3 );
// Create the last row.
var oRow = table.$.insertRow(-1) ;
// Create the gray scale colors cells.
for ( var n = 0 ; n < 6 ; n++ )
{
appendColorCell( oRow, '#' + aColors[n] + aColors[n] + aColors[n] ) ;
}
// Fill the row with black cells.
for ( var i = 0 ; i < 12 ; i++ )
{
appendColorCell( oRow, '#000000' ) ;
}
}
var table = new $el( 'table' );
createColorTable();
var html = table.getHtml();
var numbering = function( id )
{
return CKEDITOR.tools.getNextId() + '_' + id;
},
hicolorId = numbering( 'hicolor' ),
hicolorTextId = numbering( 'hicolortext' ),
selHiColorId = numbering( 'selhicolor' ),
tableLabelId = numbering( 'color_table_label' );
return {
title : lang.title,
minWidth : 360,
minHeight : 220,
onLoad : function()
{
// Update reference.
dialog = this;
},
contents : [
{
id : 'picker',
label : lang.title,
accessKey : 'I',
elements :
[
{
type : 'hbox',
padding : 0,
widths : [ '70%', '10%', '30%' ],
children :
[
{
type : 'html',
html : '<table role="listbox" aria-labelledby="' + tableLabelId + '" onmouseout="CKEDITOR.tools.callFunction( ' + onMouseout + ' );">' +
( !CKEDITOR.env.webkit ? html : '' ) +
'</table><span id="' + tableLabelId + '" class="cke_voice_label">' + lang.options +'</span>',
onLoad : function()
{
var table = CKEDITOR.document.getById( this.domId );
table.on( 'mouseover', updateHighlight );
// In WebKit, the table content must be inserted after this event call (#6150)
CKEDITOR.env.webkit && table.setHtml( html );
},
focus: function()
{
var firstColor = this.getElement().getElementsByTag( 'a' ).getItem( 0 );
firstColor.focus();
}
},
spacer,
{
type : 'vbox',
padding : 0,
widths : [ '70%', '5%', '25%' ],
children :
[
{
type : 'html',
html : '<span>' + lang.highlight +'</span>\
<div id="' + hicolorId + '" style="border: 1px solid; height: 74px; width: 74px;"></div>\
<div id="' + hicolorTextId + '"> </div><span>' + lang.selected + '</span>\
<div id="' + selHiColorId + '" style="border: 1px solid; height: 20px; width: 74px;"></div>'
},
{
type : 'text',
label : lang.selected,
labelStyle: 'display:none',
id : 'selectedColor',
style : 'width: 74px',
onChange : function()
{
// Try to update color preview with new value. If fails, then set it no none.
try
{
$doc.getById( selHiColorId ).setStyle( 'background-color', this.getValue() );
}
catch ( e )
{
clearSelected();
}
}
},
spacer,
{
type : 'button',
id : 'clear',
style : 'margin-top: 5px',
label : lang.clear,
onClick : clearSelected
}
]
}
]
}
]
}
]
};
}
); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js | colordialog.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Clipboard support
*/
(function()
{
// Tries to execute any of the paste, cut or copy commands in IE. Returns a
// boolean indicating that the operation succeeded.
var execIECommand = function( editor, command )
{
var doc = editor.document,
body = doc.getBody();
var enabled = 0;
var onExec = function()
{
enabled = 1;
};
// The following seems to be the only reliable way to detect that
// clipboard commands are enabled in IE. It will fire the
// onpaste/oncut/oncopy events only if the security settings allowed
// the command to execute.
body.on( command, onExec );
// IE6/7: document.execCommand has problem to paste into positioned element.
( CKEDITOR.env.version > 7 ? doc.$ : doc.$.selection.createRange() ) [ 'execCommand' ]( command );
body.removeListener( command, onExec );
return enabled;
};
// Attempts to execute the Cut and Copy operations.
var tryToCutCopy =
CKEDITOR.env.ie ?
function( editor, type )
{
return execIECommand( editor, type );
}
: // !IE.
function( editor, type )
{
try
{
// Other browsers throw an error if the command is disabled.
return editor.document.$.execCommand( type, false, null );
}
catch( e )
{
return false;
}
};
// A class that represents one of the cut or copy commands.
var cutCopyCmd = function( type )
{
this.type = type;
this.canUndo = this.type == 'cut'; // We can't undo copy to clipboard.
this.startDisabled = true;
};
cutCopyCmd.prototype =
{
exec : function( editor, data )
{
this.type == 'cut' && fixCut( editor );
var success = tryToCutCopy( editor, this.type );
if ( !success )
alert( editor.lang.clipboard[ this.type + 'Error' ] ); // Show cutError or copyError.
return success;
}
};
// Paste command.
var pasteCmd =
{
canUndo : false,
exec :
CKEDITOR.env.ie ?
function( editor )
{
// Prevent IE from pasting at the begining of the document.
editor.focus();
if ( !editor.document.getBody().fire( 'beforepaste' )
&& !execIECommand( editor, 'paste' ) )
{
editor.fire( 'pasteDialog' );
return false;
}
}
:
function( editor )
{
try
{
if ( !editor.document.getBody().fire( 'beforepaste' )
&& !editor.document.$.execCommand( 'Paste', false, null ) )
{
throw 0;
}
}
catch ( e )
{
setTimeout( function()
{
editor.fire( 'pasteDialog' );
}, 0 );
return false;
}
}
};
// Listens for some clipboard related keystrokes, so they get customized.
var onKey = function( event )
{
if ( this.mode != 'wysiwyg' )
return;
switch ( event.data.keyCode )
{
// Paste
case CKEDITOR.CTRL + 86 : // CTRL+V
case CKEDITOR.SHIFT + 45 : // SHIFT+INS
var body = this.document.getBody();
// Simulate 'beforepaste' event for all none-IEs.
if ( !CKEDITOR.env.ie && body.fire( 'beforepaste' ) )
event.cancel();
// Simulate 'paste' event for Opera/Firefox2.
else if ( CKEDITOR.env.opera
|| CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 )
body.fire( 'paste' );
return;
// Cut
case CKEDITOR.CTRL + 88 : // CTRL+X
case CKEDITOR.SHIFT + 46 : // SHIFT+DEL
// Save Undo snapshot.
var editor = this;
this.fire( 'saveSnapshot' ); // Save before paste
setTimeout( function()
{
editor.fire( 'saveSnapshot' ); // Save after paste
}, 0 );
}
};
function cancel( evt ) { evt.cancel(); }
// Allow to peek clipboard content by redirecting the
// pasting content into a temporary bin and grab the content of it.
function getClipboardData( evt, mode, callback )
{
var doc = this.document;
// Avoid recursions on 'paste' event or consequent paste too fast. (#5730)
if ( doc.getById( 'cke_pastebin' ) )
return;
// If the browser supports it, get the data directly
if ( mode == 'text' && evt.data && evt.data.$.clipboardData )
{
// evt.data.$.clipboardData.types contains all the flavours in Mac's Safari, but not on windows.
var plain = evt.data.$.clipboardData.getData( 'text/plain' );
if ( plain )
{
evt.data.preventDefault();
callback( plain );
return;
}
}
var sel = this.getSelection(),
range = new CKEDITOR.dom.range( doc );
// Create container to paste into
var pastebin = new CKEDITOR.dom.element( mode == 'text' ? 'textarea' : CKEDITOR.env.webkit ? 'body' : 'div', doc );
pastebin.setAttribute( 'id', 'cke_pastebin' );
// Safari requires a filler node inside the div to have the content pasted into it. (#4882)
CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) );
doc.getBody().append( pastebin );
pastebin.setStyles(
{
position : 'absolute',
// Position the bin exactly at the position of the selected element
// to avoid any subsequent document scroll.
top : sel.getStartElement().getDocumentPosition().y + 'px',
width : '1px',
height : '1px',
overflow : 'hidden'
});
// It's definitely a better user experience if we make the paste-bin pretty unnoticed
// by pulling it off the screen.
pastebin.setStyle( this.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-1000px' );
var bms = sel.createBookmarks();
this.on( 'selectionChange', cancel, null, null, 0 );
// Turn off design mode temporarily before give focus to the paste bin.
if ( mode == 'text' )
pastebin.$.focus();
else
{
range.setStartAt( pastebin, CKEDITOR.POSITION_AFTER_START );
range.setEndAt( pastebin, CKEDITOR.POSITION_BEFORE_END );
range.select( true );
}
var editor = this;
// Wait a while and grab the pasted contents
window.setTimeout( function()
{
mode == 'text' && CKEDITOR.env.gecko && editor.focusGrabber.focus();
pastebin.remove();
editor.removeListener( 'selectionChange', cancel );
// Grab the HTML contents.
// We need to look for a apple style wrapper on webkit it also adds
// a div wrapper if you copy/paste the body of the editor.
// Remove hidden div and restore selection.
var bogusSpan;
pastebin = ( CKEDITOR.env.webkit
&& ( bogusSpan = pastebin.getFirst() )
&& ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ?
bogusSpan : pastebin );
sel.selectBookmarks( bms );
callback( pastebin[ 'get' + ( mode == 'text' ? 'Value' : 'Html' ) ]() );
}, 0 );
}
// Cutting off control type element in IE standards breaks the selection entirely. (#4881)
function fixCut( editor )
{
if ( !CKEDITOR.env.ie || CKEDITOR.env.quirks )
return;
var sel = editor.getSelection();
var control;
if( ( sel.getType() == CKEDITOR.SELECTION_ELEMENT ) && ( control = sel.getSelectedElement() ) )
{
var range = sel.getRanges()[ 0 ];
var dummy = editor.document.createText( '' );
dummy.insertBefore( control );
range.setStartBefore( dummy );
range.setEndAfter( control );
sel.selectRanges( [ range ] );
// Clear up the fix if the paste wasn't succeeded.
setTimeout( function()
{
// Element still online?
if ( control.getParent() )
{
dummy.remove();
sel.selectElement( control );
}
}, 0 );
}
}
var depressBeforeEvent;
function stateFromNamedCommand( command, editor )
{
// IE Bug: queryCommandEnabled('paste') fires also 'beforepaste(copy/cut)',
// guard to distinguish from the ordinary sources( either
// keyboard paste or execCommand ) (#4874).
CKEDITOR.env.ie && ( depressBeforeEvent = 1 );
var retval = CKEDITOR.TRISTATE_OFF;
try { retval = editor.document.$.queryCommandEnabled( command ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; }catch( er ){}
depressBeforeEvent = 0;
return retval;
}
var inReadOnly;
function setToolbarStates()
{
if ( this.mode != 'wysiwyg' )
return;
this.getCommand( 'cut' ).setState( inReadOnly ? CKEDITOR.TRISTATE_DISABLED : stateFromNamedCommand( 'Cut', this ) );
this.getCommand( 'copy' ).setState( stateFromNamedCommand( 'Copy', this ) );
var pasteState = inReadOnly ? CKEDITOR.TRISTATE_DISABLED :
CKEDITOR.env.webkit ? CKEDITOR.TRISTATE_OFF : stateFromNamedCommand( 'Paste', this );
this.fire( 'pasteState', pasteState );
}
// Register the plugin.
CKEDITOR.plugins.add( 'clipboard',
{
requires : [ 'dialog', 'htmldataprocessor' ],
init : function( editor )
{
// Inserts processed data into the editor at the end of the
// events chain.
editor.on( 'paste', function( evt )
{
var data = evt.data;
if ( data[ 'html' ] )
editor.insertHtml( data[ 'html' ] );
else if ( data[ 'text' ] )
editor.insertText( data[ 'text' ] );
setTimeout( function () { editor.fire( 'afterPaste' ); }, 0 );
}, null, null, 1000 );
editor.on( 'pasteDialog', function( evt )
{
setTimeout( function()
{
// Open default paste dialog.
editor.openDialog( 'paste' );
}, 0 );
});
editor.on( 'pasteState', function( evt )
{
editor.getCommand( 'paste' ).setState( evt.data );
});
function addButtonCommand( buttonName, commandName, command, ctxMenuOrder )
{
var lang = editor.lang[ commandName ];
editor.addCommand( commandName, command );
editor.ui.addButton( buttonName,
{
label : lang,
command : commandName
});
// If the "menu" plugin is loaded, register the menu item.
if ( editor.addMenuItems )
{
editor.addMenuItem( commandName,
{
label : lang,
command : commandName,
group : 'clipboard',
order : ctxMenuOrder
});
}
}
addButtonCommand( 'Cut', 'cut', new cutCopyCmd( 'cut' ), 1 );
addButtonCommand( 'Copy', 'copy', new cutCopyCmd( 'copy' ), 4 );
addButtonCommand( 'Paste', 'paste', pasteCmd, 8 );
CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) );
editor.on( 'key', onKey, editor );
// We'll be catching all pasted content in one line, regardless of whether the
// it's introduced by a document command execution (e.g. toolbar buttons) or
// user paste behaviors. (e.g. Ctrl-V)
editor.on( 'contentDom', function()
{
var body = editor.document.getBody();
body.on( CKEDITOR.env.webkit ? 'paste' : 'beforepaste', function( evt )
{
if ( depressBeforeEvent )
return;
// Fire 'beforePaste' event so clipboard flavor get customized
// by other plugins.
var eventData = { mode : 'html' };
editor.fire( 'beforePaste', eventData );
getClipboardData.call( editor, evt, eventData.mode, function ( data )
{
// The very last guard to make sure the
// paste has successfully happened.
if ( !( data = CKEDITOR.tools.trim( data.replace( /<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,'' ) ) ) )
return;
var dataTransfer = {};
dataTransfer[ eventData.mode ] = data;
editor.fire( 'paste', dataTransfer );
} );
});
// Dismiss the (wrong) 'beforepaste' event fired on context menu open. (#7953)
body.on( 'contextmenu', function()
{
depressBeforeEvent = 1;
setTimeout( function() { depressBeforeEvent = 0; }, 10 );
});
body.on( 'beforecut', function() { !depressBeforeEvent && fixCut( editor ); } );
body.on( 'mouseup', function(){ setTimeout( function(){ setToolbarStates.call( editor ); }, 0 ); }, editor );
body.on( 'keyup', setToolbarStates, editor );
});
// For improved performance, we're checking the readOnly state on selectionChange instead of hooking a key event for that.
editor.on( 'selectionChange', function( evt )
{
inReadOnly = evt.data.selection.getRanges()[ 0 ].checkReadOnly();
setToolbarStates.call( editor );
});
// If the "contextmenu" plugin is loaded, register the listeners.
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
var readOnly = selection.getRanges()[ 0 ].checkReadOnly();
return {
cut : !readOnly && stateFromNamedCommand( 'Cut', editor ),
copy : stateFromNamedCommand( 'Copy', editor ),
paste : !readOnly && ( CKEDITOR.env.webkit ? CKEDITOR.TRISTATE_OFF : stateFromNamedCommand( 'Paste', editor ) )
};
});
}
}
});
})();
/**
* Fired when a clipboard operation is about to be taken into the editor.
* Listeners can manipulate the data to be pasted before having it effectively
* inserted into the document.
* @name CKEDITOR.editor#paste
* @since 3.1
* @event
* @param {String} [data.html] The HTML data to be pasted. If not available, e.data.text will be defined.
* @param {String} [data.text] The plain text data to be pasted, available when plain text operations are to used. If not available, e.data.html will be defined.
*/
/**
* Internal event to open the Paste dialog
* @name CKEDITOR.editor#pasteDialog
* @event
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/clipboard/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'paste', function( editor )
{
var lang = editor.lang.clipboard;
var isCustomDomain = CKEDITOR.env.isCustomDomain();
function onPasteFrameLoad( win )
{
var doc = new CKEDITOR.dom.document( win.document ),
docElement = doc.$;
var script = doc.getById( 'cke_actscrpt' );
script && script.remove();
CKEDITOR.env.ie ?
docElement.body.contentEditable = "true" :
docElement.designMode = "on";
// IE before version 8 will leave cursor blinking inside the document after
// editor blurred unless we clean up the selection. (#4716)
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
{
doc.getWindow().on( 'blur', function()
{
docElement.selection.empty();
} );
}
doc.on( "keydown", function( e )
{
var domEvent = e.data,
key = domEvent.getKeystroke(),
processed;
switch( key )
{
case 27 :
this.hide();
processed = 1;
break;
case 9 :
case CKEDITOR.SHIFT + 9 :
this.changeFocus( true );
processed = 1;
}
processed && domEvent.preventDefault();
}, this );
editor.fire( 'ariaWidget', new CKEDITOR.dom.element( win.frameElement ) );
}
return {
title : lang.title,
minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 370 : 350,
minHeight : CKEDITOR.env.quirks ? 250 : 245,
onShow : function()
{
// FIREFOX BUG: Force the browser to render the dialog to make the to-be-
// inserted iframe editable. (#3366)
this.parts.dialog.$.offsetHeight;
this.setupContent();
},
onHide : function()
{
if ( CKEDITOR.env.ie )
this.getParentEditor().document.getBody().$.contentEditable = 'true';
},
onLoad : function()
{
if ( ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) && editor.lang.dir == 'rtl' )
this.parts.contents.setStyle( 'overflow', 'hidden' );
},
onOk : function()
{
this.commitContent();
},
contents : [
{
id : 'general',
label : editor.lang.common.generalTab,
elements : [
{
type : 'html',
id : 'securityMsg',
html : '<div style="white-space:normal;width:340px;">' + lang.securityMsg + '</div>'
},
{
type : 'html',
id : 'pasteMsg',
html : '<div style="white-space:normal;width:340px;">'+lang.pasteMsg +'</div>'
},
{
type : 'html',
id : 'editing_area',
style : 'width: 100%; height: 100%;',
html : '',
focus : function()
{
var win = this.getInputElement().$.contentWindow;
// #3291 : JAWS needs the 500ms delay to detect that the editor iframe
// iframe is no longer editable. So that it will put the focus into the
// Paste from Word dialog's editable area instead.
setTimeout( function()
{
win.focus();
}, 500 );
},
setup : function()
{
var dialog = this.getDialog();
var htmlToLoad =
'<html dir="' + editor.config.contentsLangDirection + '"' +
' lang="' + ( editor.config.contentsLanguage || editor.langCode ) + '">' +
'<head><style>body { margin: 3px; height: 95%; } </style></head><body>' +
'<script id="cke_actscrpt" type="text/javascript">' +
'window.parent.CKEDITOR.tools.callFunction( ' + CKEDITOR.tools.addFunction( onPasteFrameLoad, dialog ) + ', this );' +
'</script></body>' +
'</html>';
var src =
CKEDITOR.env.air ?
'javascript:void(0)' :
isCustomDomain ?
'javascript:void((function(){' +
'document.open();' +
'document.domain=\'' + document.domain + '\';' +
'document.close();' +
'})())"'
:
'';
var iframe = CKEDITOR.dom.element.createFromHtml(
'<iframe' +
' class="cke_pasteframe"' +
' frameborder="0" ' +
' allowTransparency="true"' +
' src="' + src + '"' +
' role="region"' +
' aria-label="' + lang.pasteArea + '"' +
' aria-describedby="' + dialog.getContentElement( 'general', 'pasteMsg' ).domId + '"' +
' aria-multiple="true"' +
'></iframe>' );
iframe.on( 'load', function( e )
{
e.removeListener();
var doc = iframe.getFrameDocument();
doc.write( htmlToLoad );
if ( CKEDITOR.env.air )
onPasteFrameLoad.call( this, doc.getWindow().$ );
}, dialog );
iframe.setCustomData( 'dialog', dialog );
var container = this.getElement();
container.setHtml( '' );
container.append( iframe );
// IE need a redirect on focus to make
// the cursor blinking inside iframe. (#5461)
if ( CKEDITOR.env.ie )
{
var focusGrabber = CKEDITOR.dom.element.createFromHtml( '<span tabindex="-1" style="position:absolute;" role="presentation"></span>' );
focusGrabber.on( 'focus', function()
{
iframe.$.contentWindow.focus();
});
container.append( focusGrabber );
// Override focus handler on field.
this.focus = function()
{
focusGrabber.focus();
this.fire( 'focus' );
};
}
this.getInputElement = function(){ return iframe; };
// Force container to scale in IE.
if ( CKEDITOR.env.ie )
{
container.setStyle( 'display', 'block' );
container.setStyle( 'height', ( iframe.$.offsetHeight + 2 ) + 'px' );
}
},
commit : function( data )
{
var container = this.getElement(),
editor = this.getDialog().getParentEditor(),
body = this.getInputElement().getFrameDocument().getBody(),
bogus = body.getBogus(),
html;
bogus && bogus.remove();
// Saving the contents so changes until paste is complete will not take place (#7500)
html = body.getHtml();
setTimeout( function(){
editor.fire( 'paste', { 'html' : html } );
}, 0 );
}
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/clipboard/dialogs/paste.js | paste.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'link',
{
init : function( editor )
{
// Add the link and unlink buttons.
editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ) );
editor.addCommand( 'anchor', new CKEDITOR.dialogCommand( 'anchor' ) );
editor.addCommand( 'unlink', new CKEDITOR.unlinkCommand() );
editor.addCommand( 'removeAnchor', new CKEDITOR.removeAnchorCommand() );
editor.ui.addButton( 'Link',
{
label : editor.lang.link.toolbar,
command : 'link'
} );
editor.ui.addButton( 'Unlink',
{
label : editor.lang.unlink,
command : 'unlink'
} );
editor.ui.addButton( 'Anchor',
{
label : editor.lang.anchor.toolbar,
command : 'anchor'
} );
CKEDITOR.dialog.add( 'link', this.path + 'dialogs/link.js' );
CKEDITOR.dialog.add( 'anchor', this.path + 'dialogs/anchor.js' );
// Add the CSS styles for anchor placeholders.
var side = ( editor.lang.dir == 'rtl' ? 'right' : 'left' );
var basicCss =
'background:url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ') no-repeat ' + side + ' center;' +
'border:1px dotted #00f;';
editor.addCss(
'a.cke_anchor,a.cke_anchor_empty' +
// IE6 breaks with the following selectors.
( ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) ? '' :
',a[name],a[data-cke-saved-name]' ) +
'{' +
basicCss +
'padding-' + side + ':18px;' +
// Show the arrow cursor for the anchor image (FF at least).
'cursor:auto;' +
'}' +
( CKEDITOR.env.ie ? (
'a.cke_anchor_empty' +
'{' +
// Make empty anchor selectable on IE.
'display:inline-block;' +
'}'
) : '' ) +
'img.cke_anchor' +
'{' +
basicCss +
'width:16px;' +
'min-height:15px;' +
// The default line-height on IE.
'height:1.15em;' +
// Opera works better with "middle" (even if not perfect)
'vertical-align:' + ( CKEDITOR.env.opera ? 'middle' : 'text-bottom' ) + ';' +
'}');
// Register selection change handler for the unlink button.
editor.on( 'selectionChange', function( evt )
{
if ( editor.readOnly )
return;
/*
* Despite our initial hope, document.queryCommandEnabled() does not work
* for this in Firefox. So we must detect the state by element paths.
*/
var command = editor.getCommand( 'unlink' ),
element = evt.data.path.lastElement && evt.data.path.lastElement.getAscendant( 'a', true );
if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) && element.getChildCount() )
command.setState( CKEDITOR.TRISTATE_OFF );
else
command.setState( CKEDITOR.TRISTATE_DISABLED );
} );
editor.on( 'doubleclick', function( evt )
{
var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element;
if ( !element.isReadOnly() )
{
if ( element.is( 'a' ) )
{
evt.data.dialog = ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) ? 'anchor' : 'link';
editor.getSelection().selectElement( element );
}
else if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) )
evt.data.dialog = 'anchor';
}
});
// If the "menu" plugin is loaded, register the menu items.
if ( editor.addMenuItems )
{
editor.addMenuItems(
{
anchor :
{
label : editor.lang.anchor.menu,
command : 'anchor',
group : 'anchor',
order : 1
},
removeAnchor :
{
label : editor.lang.anchor.remove,
command : 'removeAnchor',
group : 'anchor',
order : 5
},
link :
{
label : editor.lang.link.menu,
command : 'link',
group : 'link',
order : 1
},
unlink :
{
label : editor.lang.unlink,
command : 'unlink',
group : 'link',
order : 5
}
});
}
// If the "contextmenu" plugin is loaded, register the listeners.
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( !element || element.isReadOnly() )
return null;
var anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element );
if ( !anchor && !( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) )
return null;
var menu = {};
if ( anchor.getAttribute( 'href' ) && anchor.getChildCount() )
menu = { link : CKEDITOR.TRISTATE_OFF, unlink : CKEDITOR.TRISTATE_OFF };
if ( anchor && anchor.hasAttribute( 'name' ) )
menu.anchor = menu.removeAnchor = CKEDITOR.TRISTATE_OFF;
return menu;
});
}
},
afterInit : function( editor )
{
// Register a filter to displaying placeholders after mode change.
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter,
htmlFilter = dataProcessor && dataProcessor.htmlFilter,
pathFilters = editor._.elementsPath && editor._.elementsPath.filters;
if ( dataFilter )
{
dataFilter.addRules(
{
elements :
{
a : function( element )
{
var attributes = element.attributes;
if ( !attributes.name )
return null;
var isEmpty = !element.children.length;
if ( CKEDITOR.plugins.link.synAnchorSelector )
{
// IE needs a specific class name to be applied
// to the anchors, for appropriate styling.
var ieClass = isEmpty ? 'cke_anchor_empty' : 'cke_anchor';
var cls = attributes[ 'class' ];
if ( attributes.name && ( !cls || cls.indexOf( ieClass ) < 0 ) )
attributes[ 'class' ] = ( cls || '' ) + ' ' + ieClass;
if ( isEmpty && CKEDITOR.plugins.link.emptyAnchorFix )
{
attributes.contenteditable = 'false';
attributes[ 'data-cke-editable' ] = 1;
}
}
else if ( CKEDITOR.plugins.link.fakeAnchor && isEmpty )
return editor.createFakeParserElement( element, 'cke_anchor', 'anchor' );
return null;
}
}
});
}
if ( CKEDITOR.plugins.link.emptyAnchorFix && htmlFilter )
{
htmlFilter.addRules(
{
elements :
{
a : function( element )
{
delete element.attributes.contenteditable;
}
}
});
}
if ( pathFilters )
{
pathFilters.push( function( element, name )
{
if ( name == 'a' )
{
if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) ||
( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) )
{
return 'anchor';
}
}
});
}
},
requires : [ 'fakeobjects' ]
} );
CKEDITOR.plugins.link =
{
/**
* Get the surrounding link element of current selection.
* @param editor
* @example CKEDITOR.plugins.link.getSelectedLink( editor );
* @since 3.2.1
* The following selection will all return the link element.
* <pre>
* <a href="#">li^nk</a>
* <a href="#">[link]</a>
* text[<a href="#">link]</a>
* <a href="#">li[nk</a>]
* [<b><a href="#">li]nk</a></b>]
* [<a href="#"><b>li]nk</b></a>
* </pre>
*/
getSelectedLink : function( editor )
{
try
{
var selection = editor.getSelection();
if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT )
{
var selectedElement = selection.getSelectedElement();
if ( selectedElement.is( 'a' ) )
return selectedElement;
}
var range = selection.getRanges( true )[ 0 ];
range.shrink( CKEDITOR.SHRINK_TEXT );
var root = range.getCommonAncestor();
return root.getAscendant( 'a', true );
}
catch( e ) { return null; }
},
// Opera and WebKit don't make it possible to select empty anchors. Fake
// elements must be used for them.
fakeAnchor : CKEDITOR.env.opera || CKEDITOR.env.webkit,
// For browsers that don't support CSS3 a[name]:empty(), note IE9 is included because of #7783.
synAnchorSelector : CKEDITOR.env.ie,
// For browsers that have editing issue with empty anchor.
emptyAnchorFix : CKEDITOR.env.ie && CKEDITOR.env.version < 8,
tryRestoreFakeAnchor : function( editor, element )
{
if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' ) == 'anchor' )
{
var link = editor.restoreRealElement( element );
if ( link.data( 'cke-saved-name' ) )
return link;
}
}
};
CKEDITOR.unlinkCommand = function(){};
CKEDITOR.unlinkCommand.prototype =
{
/** @ignore */
exec : function( editor )
{
/*
* execCommand( 'unlink', ... ) in Firefox leaves behind <span> tags at where
* the <a> was, so again we have to remove the link ourselves. (See #430)
*
* TODO: Use the style system when it's complete. Let's use execCommand()
* as a stopgap solution for now.
*/
var selection = editor.getSelection(),
bookmarks = selection.createBookmarks(),
ranges = selection.getRanges(),
rangeRoot,
element;
for ( var i = 0 ; i < ranges.length ; i++ )
{
rangeRoot = ranges[i].getCommonAncestor( true );
element = rangeRoot.getAscendant( 'a', true );
if ( !element )
continue;
ranges[i].selectNodeContents( element );
}
selection.selectRanges( ranges );
editor.document.$.execCommand( 'unlink', false, null );
selection.selectBookmarks( bookmarks );
},
startDisabled : true
};
CKEDITOR.removeAnchorCommand = function(){};
CKEDITOR.removeAnchorCommand.prototype =
{
/** @ignore */
exec : function( editor )
{
var sel = editor.getSelection(),
bms = sel.createBookmarks(),
anchor;
if ( sel && ( anchor = sel.getSelectedElement() ) && ( CKEDITOR.plugins.link.fakeAnchor && !anchor.getChildCount() ? CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, anchor ) : anchor.is( 'a' ) ) )
anchor.remove( 1 );
else
{
if ( ( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) )
{
if ( anchor.hasAttribute( 'href' ) )
{
anchor.removeAttributes( { name : 1, 'data-cke-saved-name' : 1 } );
anchor.removeClass( 'cke_anchor' );
}
else
anchor.remove( 1 );
}
}
sel.selectBookmarks( bms );
}
};
CKEDITOR.tools.extend( CKEDITOR.config,
{
linkShowAdvancedTab : true,
linkShowTargetTab : true
} ); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/link/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'link', function( editor )
{
var plugin = CKEDITOR.plugins.link;
// Handles the event when the "Target" selection box is changed.
var targetChanged = function()
{
var dialog = this.getDialog(),
popupFeatures = dialog.getContentElement( 'target', 'popupFeatures' ),
targetName = dialog.getContentElement( 'target', 'linkTargetName' ),
value = this.getValue();
if ( !popupFeatures || !targetName )
return;
popupFeatures = popupFeatures.getElement();
popupFeatures.hide();
targetName.setValue( '' );
switch ( value )
{
case 'frame' :
targetName.setLabel( editor.lang.link.targetFrameName );
targetName.getElement().show();
break;
case 'popup' :
popupFeatures.show();
targetName.setLabel( editor.lang.link.targetPopupName );
targetName.getElement().show();
break;
default :
targetName.setValue( value );
targetName.getElement().hide();
break;
}
};
// Handles the event when the "Type" selection box is changed.
var linkTypeChanged = function()
{
var dialog = this.getDialog(),
partIds = [ 'urlOptions', 'anchorOptions', 'emailOptions' ],
typeValue = this.getValue(),
uploadTab = dialog.definition.getContents( 'upload' ),
uploadInitiallyHidden = uploadTab && uploadTab.hidden;
if ( typeValue == 'url' )
{
if ( editor.config.linkShowTargetTab )
dialog.showPage( 'target' );
if ( !uploadInitiallyHidden )
dialog.showPage( 'upload' );
}
else
{
dialog.hidePage( 'target' );
if ( !uploadInitiallyHidden )
dialog.hidePage( 'upload' );
}
for ( var i = 0 ; i < partIds.length ; i++ )
{
var element = dialog.getContentElement( 'info', partIds[i] );
if ( !element )
continue;
element = element.getElement().getParent().getParent();
if ( partIds[i] == typeValue + 'Options' )
element.show();
else
element.hide();
}
dialog.layout();
};
// Loads the parameters in a selected link to the link dialog fields.
var javascriptProtocolRegex = /^javascript:/,
emailRegex = /^mailto:([^?]+)(?:\?(.+))?$/,
emailSubjectRegex = /subject=([^;?:@&=$,\/]*)/,
emailBodyRegex = /body=([^;?:@&=$,\/]*)/,
anchorRegex = /^#(.*)$/,
urlRegex = /^((?:http|https|ftp|news):\/\/)?(.*)$/,
selectableTargets = /^(_(?:self|top|parent|blank))$/,
encodedEmailLinkRegex = /^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,
functionCallProtectedEmailLinkRegex = /^javascript:([^(]+)\(([^)]+)\)$/;
var popupRegex =
/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/;
var popupFeaturesRegex = /(?:^|,)([^=]+)=(\d+|yes|no)/gi;
var parseLink = function( editor, element )
{
var href = ( element && ( element.data( 'cke-saved-href' ) || element.getAttribute( 'href' ) ) ) || '',
javascriptMatch,
emailMatch,
anchorMatch,
urlMatch,
retval = {};
if ( ( javascriptMatch = href.match( javascriptProtocolRegex ) ) )
{
if ( emailProtection == 'encode' )
{
href = href.replace( encodedEmailLinkRegex,
function ( match, protectedAddress, rest )
{
return 'mailto:' +
String.fromCharCode.apply( String, protectedAddress.split( ',' ) ) +
( rest && unescapeSingleQuote( rest ) );
});
}
// Protected email link as function call.
else if ( emailProtection )
{
href.replace( functionCallProtectedEmailLinkRegex, function( match, funcName, funcArgs )
{
if ( funcName == compiledProtectionFunction.name )
{
retval.type = 'email';
var email = retval.email = {};
var paramRegex = /[^,\s]+/g,
paramQuoteRegex = /(^')|('$)/g,
paramsMatch = funcArgs.match( paramRegex ),
paramsMatchLength = paramsMatch.length,
paramName,
paramVal;
for ( var i = 0; i < paramsMatchLength; i++ )
{
paramVal = decodeURIComponent( unescapeSingleQuote( paramsMatch[ i ].replace( paramQuoteRegex, '' ) ) );
paramName = compiledProtectionFunction.params[ i ].toLowerCase();
email[ paramName ] = paramVal;
}
email.address = [ email.name, email.domain ].join( '@' );
}
} );
}
}
if ( !retval.type )
{
if ( ( anchorMatch = href.match( anchorRegex ) ) )
{
retval.type = 'anchor';
retval.anchor = {};
retval.anchor.name = retval.anchor.id = anchorMatch[1];
}
// Protected email link as encoded string.
else if ( ( emailMatch = href.match( emailRegex ) ) )
{
var subjectMatch = href.match( emailSubjectRegex ),
bodyMatch = href.match( emailBodyRegex );
retval.type = 'email';
var email = ( retval.email = {} );
email.address = emailMatch[ 1 ];
subjectMatch && ( email.subject = decodeURIComponent( subjectMatch[ 1 ] ) );
bodyMatch && ( email.body = decodeURIComponent( bodyMatch[ 1 ] ) );
}
// urlRegex matches empty strings, so need to check for href as well.
else if ( href && ( urlMatch = href.match( urlRegex ) ) )
{
retval.type = 'url';
retval.url = {};
retval.url.protocol = urlMatch[1];
retval.url.url = urlMatch[2];
}
else
retval.type = 'url';
}
// Load target and popup settings.
if ( element )
{
var target = element.getAttribute( 'target' );
retval.target = {};
retval.adv = {};
// IE BUG: target attribute is an empty string instead of null in IE if it's not set.
if ( !target )
{
var onclick = element.data( 'cke-pa-onclick' ) || element.getAttribute( 'onclick' ),
onclickMatch = onclick && onclick.match( popupRegex );
if ( onclickMatch )
{
retval.target.type = 'popup';
retval.target.name = onclickMatch[1];
var featureMatch;
while ( ( featureMatch = popupFeaturesRegex.exec( onclickMatch[2] ) ) )
{
// Some values should remain numbers (#7300)
if ( ( featureMatch[2] == 'yes' || featureMatch[2] == '1' ) && !( featureMatch[1] in { height:1, width:1, top:1, left:1 } ) )
retval.target[ featureMatch[1] ] = true;
else if ( isFinite( featureMatch[2] ) )
retval.target[ featureMatch[1] ] = featureMatch[2];
}
}
}
else
{
var targetMatch = target.match( selectableTargets );
if ( targetMatch )
retval.target.type = retval.target.name = target;
else
{
retval.target.type = 'frame';
retval.target.name = target;
}
}
var me = this;
var advAttr = function( inputName, attrName )
{
var value = element.getAttribute( attrName );
if ( value !== null )
retval.adv[ inputName ] = value || '';
};
advAttr( 'advId', 'id' );
advAttr( 'advLangDir', 'dir' );
advAttr( 'advAccessKey', 'accessKey' );
retval.adv.advName =
element.data( 'cke-saved-name' )
|| element.getAttribute( 'name' )
|| '';
advAttr( 'advLangCode', 'lang' );
advAttr( 'advTabIndex', 'tabindex' );
advAttr( 'advTitle', 'title' );
advAttr( 'advContentType', 'type' );
CKEDITOR.plugins.link.synAnchorSelector ?
retval.adv.advCSSClasses = getLinkClass( element )
: advAttr( 'advCSSClasses', 'class' );
advAttr( 'advCharset', 'charset' );
advAttr( 'advStyles', 'style' );
advAttr( 'advRel', 'rel' );
}
// Find out whether we have any anchors in the editor.
var anchors = retval.anchors = [],
item;
// For some browsers we set contenteditable="false" on anchors, making document.anchors not to include them, so we must traverse the links manually (#7893).
if ( CKEDITOR.plugins.link.emptyAnchorFix )
{
var links = editor.document.getElementsByTag( 'a' );
for ( i = 0, count = links.count(); i < count; i++ )
{
item = links.getItem( i );
if ( item.data( 'cke-saved-name' ) || item.hasAttribute( 'name' ) )
anchors.push( { name : item.data( 'cke-saved-name' ) || item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) } );
}
}
else
{
var anchorList = new CKEDITOR.dom.nodeList( editor.document.$.anchors );
for ( var i = 0, count = anchorList.count(); i < count; i++ )
{
item = anchorList.getItem( i );
anchors[ i ] = { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) };
}
}
if ( CKEDITOR.plugins.link.fakeAnchor )
{
var imgs = editor.document.getElementsByTag( 'img' );
for ( i = 0, count = imgs.count(); i < count; i++ )
{
if ( ( item = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, imgs.getItem( i ) ) ) )
anchors.push( { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) } );
}
}
// Record down the selected element in the dialog.
this._.selectedElement = element;
return retval;
};
var setupParams = function( page, data )
{
if ( data[page] )
this.setValue( data[page][this.id] || '' );
};
var setupPopupParams = function( data )
{
return setupParams.call( this, 'target', data );
};
var setupAdvParams = function( data )
{
return setupParams.call( this, 'adv', data );
};
var commitParams = function( page, data )
{
if ( !data[page] )
data[page] = {};
data[page][this.id] = this.getValue() || '';
};
var commitPopupParams = function( data )
{
return commitParams.call( this, 'target', data );
};
var commitAdvParams = function( data )
{
return commitParams.call( this, 'adv', data );
};
function unescapeSingleQuote( str )
{
return str.replace( /\\'/g, '\'' );
}
function escapeSingleQuote( str )
{
return str.replace( /'/g, '\\$&' );
}
var emailProtection = editor.config.emailProtection || '';
// Compile the protection function pattern.
if ( emailProtection && emailProtection != 'encode' )
{
var compiledProtectionFunction = {};
emailProtection.replace( /^([^(]+)\(([^)]+)\)$/, function( match, funcName, params )
{
compiledProtectionFunction.name = funcName;
compiledProtectionFunction.params = [];
params.replace( /[^,\s]+/g, function( param )
{
compiledProtectionFunction.params.push( param );
} );
} );
}
function protectEmailLinkAsFunction( email )
{
var retval,
name = compiledProtectionFunction.name,
params = compiledProtectionFunction.params,
paramName,
paramValue;
retval = [ name, '(' ];
for ( var i = 0; i < params.length; i++ )
{
paramName = params[ i ].toLowerCase();
paramValue = email[ paramName ];
i > 0 && retval.push( ',' );
retval.push( '\'',
paramValue ?
escapeSingleQuote( encodeURIComponent( email[ paramName ] ) )
: '',
'\'');
}
retval.push( ')' );
return retval.join( '' );
}
function protectEmailAddressAsEncodedString( address )
{
var charCode,
length = address.length,
encodedChars = [];
for ( var i = 0; i < length; i++ )
{
charCode = address.charCodeAt( i );
encodedChars.push( charCode );
}
return 'String.fromCharCode(' + encodedChars.join( ',' ) + ')';
}
function getLinkClass( ele )
{
var className = ele.getAttribute( 'class' );
return className ? className.replace( /\s*(?:cke_anchor_empty|cke_anchor)(?:\s*$)?/g, '' ) : '';
}
var commonLang = editor.lang.common,
linkLang = editor.lang.link;
return {
title : linkLang.title,
minWidth : 350,
minHeight : 230,
contents : [
{
id : 'info',
label : linkLang.info,
title : linkLang.info,
elements :
[
{
id : 'linkType',
type : 'select',
label : linkLang.type,
'default' : 'url',
items :
[
[ linkLang.toUrl, 'url' ],
[ linkLang.toAnchor, 'anchor' ],
[ linkLang.toEmail, 'email' ]
],
onChange : linkTypeChanged,
setup : function( data )
{
if ( data.type )
this.setValue( data.type );
},
commit : function( data )
{
data.type = this.getValue();
}
},
{
type : 'vbox',
id : 'urlOptions',
children :
[
{
type : 'hbox',
widths : [ '25%', '75%' ],
children :
[
{
id : 'protocol',
type : 'select',
label : commonLang.protocol,
'default' : 'http://',
items :
[
// Force 'ltr' for protocol names in BIDI. (#5433)
[ 'http://\u200E', 'http://' ],
[ 'https://\u200E', 'https://' ],
[ 'ftp://\u200E', 'ftp://' ],
[ 'news://\u200E', 'news://' ],
[ linkLang.other , '' ]
],
setup : function( data )
{
if ( data.url )
this.setValue( data.url.protocol || '' );
},
commit : function( data )
{
if ( !data.url )
data.url = {};
data.url.protocol = this.getValue();
}
},
{
type : 'text',
id : 'url',
label : commonLang.url,
required: true,
onLoad : function ()
{
this.allowOnChange = true;
},
onKeyUp : function()
{
this.allowOnChange = false;
var protocolCmb = this.getDialog().getContentElement( 'info', 'protocol' ),
url = this.getValue(),
urlOnChangeProtocol = /^(http|https|ftp|news):\/\/(?=.)/i,
urlOnChangeTestOther = /^((javascript:)|[#\/\.\?])/i;
var protocol = urlOnChangeProtocol.exec( url );
if ( protocol )
{
this.setValue( url.substr( protocol[ 0 ].length ) );
protocolCmb.setValue( protocol[ 0 ].toLowerCase() );
}
else if ( urlOnChangeTestOther.test( url ) )
protocolCmb.setValue( '' );
this.allowOnChange = true;
},
onChange : function()
{
if ( this.allowOnChange ) // Dont't call on dialog load.
this.onKeyUp();
},
validate : function()
{
var dialog = this.getDialog();
if ( dialog.getContentElement( 'info', 'linkType' ) &&
dialog.getValueOf( 'info', 'linkType' ) != 'url' )
return true;
if ( this.getDialog().fakeObj ) // Edit Anchor.
return true;
var func = CKEDITOR.dialog.validate.notEmpty( linkLang.noUrl );
return func.apply( this );
},
setup : function( data )
{
this.allowOnChange = false;
if ( data.url )
this.setValue( data.url.url );
this.allowOnChange = true;
},
commit : function( data )
{
// IE will not trigger the onChange event if the mouse has been used
// to carry all the operations #4724
this.onChange();
if ( !data.url )
data.url = {};
data.url.url = this.getValue();
this.allowOnChange = false;
}
}
],
setup : function( data )
{
if ( !this.getDialog().getContentElement( 'info', 'linkType' ) )
this.getElement().show();
}
},
{
type : 'button',
id : 'browse',
hidden : 'true',
filebrowser : 'info:url',
label : commonLang.browseServer
}
]
},
{
type : 'vbox',
id : 'anchorOptions',
width : 260,
align : 'center',
padding : 0,
children :
[
{
type : 'fieldset',
id : 'selectAnchorText',
label : linkLang.selectAnchor,
setup : function( data )
{
if ( data.anchors.length > 0 )
this.getElement().show();
else
this.getElement().hide();
},
children :
[
{
type : 'hbox',
id : 'selectAnchor',
children :
[
{
type : 'select',
id : 'anchorName',
'default' : '',
label : linkLang.anchorName,
style : 'width: 100%;',
items :
[
[ '' ]
],
setup : function( data )
{
this.clear();
this.add( '' );
for ( var i = 0 ; i < data.anchors.length ; i++ )
{
if ( data.anchors[i].name )
this.add( data.anchors[i].name );
}
if ( data.anchor )
this.setValue( data.anchor.name );
var linkType = this.getDialog().getContentElement( 'info', 'linkType' );
if ( linkType && linkType.getValue() == 'email' )
this.focus();
},
commit : function( data )
{
if ( !data.anchor )
data.anchor = {};
data.anchor.name = this.getValue();
}
},
{
type : 'select',
id : 'anchorId',
'default' : '',
label : linkLang.anchorId,
style : 'width: 100%;',
items :
[
[ '' ]
],
setup : function( data )
{
this.clear();
this.add( '' );
for ( var i = 0 ; i < data.anchors.length ; i++ )
{
if ( data.anchors[i].id )
this.add( data.anchors[i].id );
}
if ( data.anchor )
this.setValue( data.anchor.id );
},
commit : function( data )
{
if ( !data.anchor )
data.anchor = {};
data.anchor.id = this.getValue();
}
}
],
setup : function( data )
{
if ( data.anchors.length > 0 )
this.getElement().show();
else
this.getElement().hide();
}
}
]
},
{
type : 'html',
id : 'noAnchors',
style : 'text-align: center;',
html : '<div role="label" tabIndex="-1">' + CKEDITOR.tools.htmlEncode( linkLang.noAnchors ) + '</div>',
// Focus the first element defined in above html.
focus : true,
setup : function( data )
{
if ( data.anchors.length < 1 )
this.getElement().show();
else
this.getElement().hide();
}
}
],
setup : function( data )
{
if ( !this.getDialog().getContentElement( 'info', 'linkType' ) )
this.getElement().hide();
}
},
{
type : 'vbox',
id : 'emailOptions',
padding : 1,
children :
[
{
type : 'text',
id : 'emailAddress',
label : linkLang.emailAddress,
required : true,
validate : function()
{
var dialog = this.getDialog();
if ( !dialog.getContentElement( 'info', 'linkType' ) ||
dialog.getValueOf( 'info', 'linkType' ) != 'email' )
return true;
var func = CKEDITOR.dialog.validate.notEmpty( linkLang.noEmail );
return func.apply( this );
},
setup : function( data )
{
if ( data.email )
this.setValue( data.email.address );
var linkType = this.getDialog().getContentElement( 'info', 'linkType' );
if ( linkType && linkType.getValue() == 'email' )
this.select();
},
commit : function( data )
{
if ( !data.email )
data.email = {};
data.email.address = this.getValue();
}
},
{
type : 'text',
id : 'emailSubject',
label : linkLang.emailSubject,
setup : function( data )
{
if ( data.email )
this.setValue( data.email.subject );
},
commit : function( data )
{
if ( !data.email )
data.email = {};
data.email.subject = this.getValue();
}
},
{
type : 'textarea',
id : 'emailBody',
label : linkLang.emailBody,
rows : 3,
'default' : '',
setup : function( data )
{
if ( data.email )
this.setValue( data.email.body );
},
commit : function( data )
{
if ( !data.email )
data.email = {};
data.email.body = this.getValue();
}
}
],
setup : function( data )
{
if ( !this.getDialog().getContentElement( 'info', 'linkType' ) )
this.getElement().hide();
}
}
]
},
{
id : 'target',
label : linkLang.target,
title : linkLang.target,
elements :
[
{
type : 'hbox',
widths : [ '50%', '50%' ],
children :
[
{
type : 'select',
id : 'linkTargetType',
label : commonLang.target,
'default' : 'notSet',
style : 'width : 100%;',
'items' :
[
[ commonLang.notSet, 'notSet' ],
[ linkLang.targetFrame, 'frame' ],
[ linkLang.targetPopup, 'popup' ],
[ commonLang.targetNew, '_blank' ],
[ commonLang.targetTop, '_top' ],
[ commonLang.targetSelf, '_self' ],
[ commonLang.targetParent, '_parent' ]
],
onChange : targetChanged,
setup : function( data )
{
if ( data.target )
this.setValue( data.target.type || 'notSet' );
targetChanged.call( this );
},
commit : function( data )
{
if ( !data.target )
data.target = {};
data.target.type = this.getValue();
}
},
{
type : 'text',
id : 'linkTargetName',
label : linkLang.targetFrameName,
'default' : '',
setup : function( data )
{
if ( data.target )
this.setValue( data.target.name );
},
commit : function( data )
{
if ( !data.target )
data.target = {};
data.target.name = this.getValue().replace(/\W/gi, '');
}
}
]
},
{
type : 'vbox',
width : '100%',
align : 'center',
padding : 2,
id : 'popupFeatures',
children :
[
{
type : 'fieldset',
label : linkLang.popupFeatures,
children :
[
{
type : 'hbox',
children :
[
{
type : 'checkbox',
id : 'resizable',
label : linkLang.popupResizable,
setup : setupPopupParams,
commit : commitPopupParams
},
{
type : 'checkbox',
id : 'status',
label : linkLang.popupStatusBar,
setup : setupPopupParams,
commit : commitPopupParams
}
]
},
{
type : 'hbox',
children :
[
{
type : 'checkbox',
id : 'location',
label : linkLang.popupLocationBar,
setup : setupPopupParams,
commit : commitPopupParams
},
{
type : 'checkbox',
id : 'toolbar',
label : linkLang.popupToolbar,
setup : setupPopupParams,
commit : commitPopupParams
}
]
},
{
type : 'hbox',
children :
[
{
type : 'checkbox',
id : 'menubar',
label : linkLang.popupMenuBar,
setup : setupPopupParams,
commit : commitPopupParams
},
{
type : 'checkbox',
id : 'fullscreen',
label : linkLang.popupFullScreen,
setup : setupPopupParams,
commit : commitPopupParams
}
]
},
{
type : 'hbox',
children :
[
{
type : 'checkbox',
id : 'scrollbars',
label : linkLang.popupScrollBars,
setup : setupPopupParams,
commit : commitPopupParams
},
{
type : 'checkbox',
id : 'dependent',
label : linkLang.popupDependent,
setup : setupPopupParams,
commit : commitPopupParams
}
]
},
{
type : 'hbox',
children :
[
{
type : 'text',
widths : [ '50%', '50%' ],
labelLayout : 'horizontal',
label : commonLang.width,
id : 'width',
setup : setupPopupParams,
commit : commitPopupParams
},
{
type : 'text',
labelLayout : 'horizontal',
widths : [ '50%', '50%' ],
label : linkLang.popupLeft,
id : 'left',
setup : setupPopupParams,
commit : commitPopupParams
}
]
},
{
type : 'hbox',
children :
[
{
type : 'text',
labelLayout : 'horizontal',
widths : [ '50%', '50%' ],
label : commonLang.height,
id : 'height',
setup : setupPopupParams,
commit : commitPopupParams
},
{
type : 'text',
labelLayout : 'horizontal',
label : linkLang.popupTop,
widths : [ '50%', '50%' ],
id : 'top',
setup : setupPopupParams,
commit : commitPopupParams
}
]
}
]
}
]
}
]
},
{
id : 'upload',
label : linkLang.upload,
title : linkLang.upload,
hidden : true,
filebrowser : 'uploadButton',
elements :
[
{
type : 'file',
id : 'upload',
label : commonLang.upload,
style: 'height:40px',
size : 29
},
{
type : 'fileButton',
id : 'uploadButton',
label : commonLang.uploadSubmit,
filebrowser : 'info:url',
'for' : [ 'upload', 'upload' ]
}
]
},
{
id : 'advanced',
label : linkLang.advanced,
title : linkLang.advanced,
elements :
[
{
type : 'vbox',
padding : 1,
children :
[
{
type : 'hbox',
widths : [ '45%', '35%', '20%' ],
children :
[
{
type : 'text',
id : 'advId',
label : linkLang.id,
setup : setupAdvParams,
commit : commitAdvParams
},
{
type : 'select',
id : 'advLangDir',
label : linkLang.langDir,
'default' : '',
style : 'width:110px',
items :
[
[ commonLang.notSet, '' ],
[ linkLang.langDirLTR, 'ltr' ],
[ linkLang.langDirRTL, 'rtl' ]
],
setup : setupAdvParams,
commit : commitAdvParams
},
{
type : 'text',
id : 'advAccessKey',
width : '80px',
label : linkLang.acccessKey,
maxLength : 1,
setup : setupAdvParams,
commit : commitAdvParams
}
]
},
{
type : 'hbox',
widths : [ '45%', '35%', '20%' ],
children :
[
{
type : 'text',
label : linkLang.name,
id : 'advName',
setup : setupAdvParams,
commit : commitAdvParams
},
{
type : 'text',
label : linkLang.langCode,
id : 'advLangCode',
width : '110px',
'default' : '',
setup : setupAdvParams,
commit : commitAdvParams
},
{
type : 'text',
label : linkLang.tabIndex,
id : 'advTabIndex',
width : '80px',
maxLength : 5,
setup : setupAdvParams,
commit : commitAdvParams
}
]
}
]
},
{
type : 'vbox',
padding : 1,
children :
[
{
type : 'hbox',
widths : [ '45%', '55%' ],
children :
[
{
type : 'text',
label : linkLang.advisoryTitle,
'default' : '',
id : 'advTitle',
setup : setupAdvParams,
commit : commitAdvParams
},
{
type : 'text',
label : linkLang.advisoryContentType,
'default' : '',
id : 'advContentType',
setup : setupAdvParams,
commit : commitAdvParams
}
]
},
{
type : 'hbox',
widths : [ '45%', '55%' ],
children :
[
{
type : 'text',
label : linkLang.cssClasses,
'default' : '',
id : 'advCSSClasses',
setup : setupAdvParams,
commit : commitAdvParams
},
{
type : 'text',
label : linkLang.charset,
'default' : '',
id : 'advCharset',
setup : setupAdvParams,
commit : commitAdvParams
}
]
},
{
type : 'hbox',
widths : [ '45%', '55%' ],
children :
[
{
type : 'text',
label : linkLang.rel,
'default' : '',
id : 'advRel',
setup : setupAdvParams,
commit : commitAdvParams
},
{
type : 'text',
label : linkLang.styles,
'default' : '',
id : 'advStyles',
validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ),
setup : setupAdvParams,
commit : commitAdvParams
}
]
}
]
}
]
}
],
onShow : function()
{
var editor = this.getParentEditor(),
selection = editor.getSelection(),
element = null;
// Fill in all the relevant fields if there's already one link selected.
if ( ( element = plugin.getSelectedLink( editor ) ) && element.hasAttribute( 'href' ) )
selection.selectElement( element );
else
element = null;
this.setupContent( parseLink.apply( this, [ editor, element ] ) );
},
onOk : function()
{
var attributes = {},
removeAttributes = [],
data = {},
me = this,
editor = this.getParentEditor();
this.commitContent( data );
// Compose the URL.
switch ( data.type || 'url' )
{
case 'url':
var protocol = ( data.url && data.url.protocol != undefined ) ? data.url.protocol : 'http://',
url = ( data.url && CKEDITOR.tools.trim( data.url.url ) ) || '';
attributes[ 'data-cke-saved-href' ] = ( url.indexOf( '/' ) === 0 ) ? url : protocol + url;
break;
case 'anchor':
var name = ( data.anchor && data.anchor.name ),
id = ( data.anchor && data.anchor.id );
attributes[ 'data-cke-saved-href' ] = '#' + ( name || id || '' );
break;
case 'email':
var linkHref,
email = data.email,
address = email.address;
switch( emailProtection )
{
case '' :
case 'encode' :
{
var subject = encodeURIComponent( email.subject || '' ),
body = encodeURIComponent( email.body || '' );
// Build the e-mail parameters first.
var argList = [];
subject && argList.push( 'subject=' + subject );
body && argList.push( 'body=' + body );
argList = argList.length ? '?' + argList.join( '&' ) : '';
if ( emailProtection == 'encode' )
{
linkHref = [ 'javascript:void(location.href=\'mailto:\'+',
protectEmailAddressAsEncodedString( address ) ];
// parameters are optional.
argList && linkHref.push( '+\'', escapeSingleQuote( argList ), '\'' );
linkHref.push( ')' );
}
else
linkHref = [ 'mailto:', address, argList ];
break;
}
default :
{
// Separating name and domain.
var nameAndDomain = address.split( '@', 2 );
email.name = nameAndDomain[ 0 ];
email.domain = nameAndDomain[ 1 ];
linkHref = [ 'javascript:', protectEmailLinkAsFunction( email ) ];
}
}
attributes[ 'data-cke-saved-href' ] = linkHref.join( '' );
break;
}
// Popups and target.
if ( data.target )
{
if ( data.target.type == 'popup' )
{
var onclickList = [ 'window.open(this.href, \'',
data.target.name || '', '\', \'' ];
var featureList = [ 'resizable', 'status', 'location', 'toolbar', 'menubar', 'fullscreen',
'scrollbars', 'dependent' ];
var featureLength = featureList.length;
var addFeature = function( featureName )
{
if ( data.target[ featureName ] )
featureList.push( featureName + '=' + data.target[ featureName ] );
};
for ( var i = 0 ; i < featureLength ; i++ )
featureList[i] = featureList[i] + ( data.target[ featureList[i] ] ? '=yes' : '=no' ) ;
addFeature( 'width' );
addFeature( 'left' );
addFeature( 'height' );
addFeature( 'top' );
onclickList.push( featureList.join( ',' ), '\'); return false;' );
attributes[ 'data-cke-pa-onclick' ] = onclickList.join( '' );
// Add the "target" attribute. (#5074)
removeAttributes.push( 'target' );
}
else
{
if ( data.target.type != 'notSet' && data.target.name )
attributes.target = data.target.name;
else
removeAttributes.push( 'target' );
removeAttributes.push( 'data-cke-pa-onclick', 'onclick' );
}
}
// Advanced attributes.
if ( data.adv )
{
var advAttr = function( inputName, attrName )
{
var value = data.adv[ inputName ];
if ( value )
attributes[attrName] = value;
else
removeAttributes.push( attrName );
};
advAttr( 'advId', 'id' );
advAttr( 'advLangDir', 'dir' );
advAttr( 'advAccessKey', 'accessKey' );
if ( data.adv[ 'advName' ] )
attributes[ 'name' ] = attributes[ 'data-cke-saved-name' ] = data.adv[ 'advName' ];
else
removeAttributes = removeAttributes.concat( [ 'data-cke-saved-name', 'name' ] );
advAttr( 'advLangCode', 'lang' );
advAttr( 'advTabIndex', 'tabindex' );
advAttr( 'advTitle', 'title' );
advAttr( 'advContentType', 'type' );
advAttr( 'advCSSClasses', 'class' );
advAttr( 'advCharset', 'charset' );
advAttr( 'advStyles', 'style' );
advAttr( 'advRel', 'rel' );
}
// Browser need the "href" fro copy/paste link to work. (#6641)
attributes.href = attributes[ 'data-cke-saved-href' ];
if ( !this._.selectedElement )
{
// Create element if current selection is collapsed.
var selection = editor.getSelection(),
ranges = selection.getRanges( true );
if ( ranges.length == 1 && ranges[0].collapsed )
{
// Short mailto link text view (#5736).
var text = new CKEDITOR.dom.text( data.type == 'email' ?
data.email.address : attributes[ 'data-cke-saved-href' ], editor.document );
ranges[0].insertNode( text );
ranges[0].selectNodeContents( text );
selection.selectRanges( ranges );
}
// Apply style.
var style = new CKEDITOR.style( { element : 'a', attributes : attributes } );
style.type = CKEDITOR.STYLE_INLINE; // need to override... dunno why.
style.apply( editor.document );
}
else
{
// We're only editing an existing link, so just overwrite the attributes.
var element = this._.selectedElement,
href = element.data( 'cke-saved-href' ),
textView = element.getHtml();
element.setAttributes( attributes );
element.removeAttributes( removeAttributes );
if ( data.adv && data.adv.advName && CKEDITOR.plugins.link.synAnchorSelector )
element.addClass( element.getChildCount() ? 'cke_anchor' : 'cke_anchor_empty' );
// Update text view when user changes protocol (#4612).
if ( href == textView || data.type == 'email' && textView.indexOf( '@' ) != -1 )
{
// Short mailto link text view (#5736).
element.setHtml( data.type == 'email' ?
data.email.address : attributes[ 'data-cke-saved-href' ] );
}
delete this._.selectedElement;
}
},
onLoad : function()
{
if ( !editor.config.linkShowAdvancedTab )
this.hidePage( 'advanced' ); //Hide Advanded tab.
if ( !editor.config.linkShowTargetTab )
this.hidePage( 'target' ); //Hide Target tab.
},
// Inital focus on 'url' field if link is of type URL.
onFocus : function()
{
var linkType = this.getContentElement( 'info', 'linkType' ),
urlField;
if ( linkType && linkType.getValue() == 'url' )
{
urlField = this.getContentElement( 'info', 'url' );
urlField.select();
}
}
};
});
/**
* The e-mail address anti-spam protection option. The protection will be
* applied when creating or modifying e-mail links through the editor interface.<br>
* Two methods of protection can be choosed:
* <ol> <li>The e-mail parts (name, domain and any other query string) are
* assembled into a function call pattern. Such function must be
* provided by the developer in the pages that will use the contents.
* <li>Only the e-mail address is obfuscated into a special string that
* has no meaning for humans or spam bots, but which is properly
* rendered and accepted by the browser.</li></ol>
* Both approaches require JavaScript to be enabled.
* @name CKEDITOR.config.emailProtection
* @since 3.1
* @type String
* @default '' (empty string = disabled)
* @example
* // href="mailto:[email protected]?subject=subject&body=body"
* config.emailProtection = '';
* @example
* // href="<a href=\"javascript:void(location.href=\'mailto:\'+String.fromCharCode(116,101,115,116,101,114,64,99,107,101,100,105,116,111,114,46,99,111,109)+\'?subject=subject&body=body\')\">e-mail</a>"
* config.emailProtection = 'encode';
* @example
* // href="javascript:mt('tester','ckeditor.com','subject','body')"
* config.emailProtection = 'mt(NAME,DOMAIN,SUBJECT,BODY)';
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/link/dialogs/link.js | link.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'anchor', function( editor )
{
// Function called in onShow to load selected element.
var loadElements = function( element )
{
this._.selectedElement = element;
var attributeValue = element.data( 'cke-saved-name' );
this.setValueOf( 'info','txtName', attributeValue || '' );
};
function createFakeAnchor( editor, anchor )
{
return editor.createFakeElement( anchor, 'cke_anchor', 'anchor' );
}
return {
title : editor.lang.anchor.title,
minWidth : 300,
minHeight : 60,
onOk : function()
{
var name = this.getValueOf( 'info', 'txtName' );
var attributes =
{
name : name,
'data-cke-saved-name' : name
};
if ( this._.selectedElement )
{
if ( this._.selectedElement.data( 'cke-realelement' ) )
{
var newFake = createFakeAnchor( editor, editor.document.createElement( 'a', { attributes: attributes } ) );
newFake.replace( this._.selectedElement );
}
else
this._.selectedElement.setAttributes( attributes );
}
else
{
var sel = editor.getSelection(),
range = sel && sel.getRanges()[ 0 ];
// Empty anchor
if ( range.collapsed )
{
if ( CKEDITOR.plugins.link.synAnchorSelector )
attributes[ 'class' ] = 'cke_anchor_empty';
if ( CKEDITOR.plugins.link.emptyAnchorFix )
{
attributes[ 'contenteditable' ] = 'false';
attributes[ 'data-cke-editable' ] = 1;
}
var anchor = editor.document.createElement( 'a', { attributes: attributes } );
// Transform the anchor into a fake element for browsers that need it.
if ( CKEDITOR.plugins.link.fakeAnchor )
anchor = createFakeAnchor( editor, anchor );
range.insertNode( anchor );
}
else
{
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
attributes['class'] = 'cke_anchor';
// Apply style.
var style = new CKEDITOR.style( { element : 'a', attributes : attributes } );
style.type = CKEDITOR.STYLE_INLINE;
style.apply( editor.document );
}
}
},
onHide : function()
{
delete this._.selectedElement;
},
onShow : function()
{
var selection = editor.getSelection(),
fullySelected = selection.getSelectedElement(),
partialSelected;
// Detect the anchor under selection.
if ( fullySelected )
{
if ( CKEDITOR.plugins.link.fakeAnchor )
{
var realElement = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, fullySelected );
realElement && loadElements.call( this, realElement );
this._.selectedElement = fullySelected;
}
else if ( fullySelected.is( 'a' ) && fullySelected.hasAttribute( 'name' ) )
loadElements.call( this, fullySelected );
}
else
{
partialSelected = CKEDITOR.plugins.link.getSelectedLink( editor );
if ( partialSelected )
{
loadElements.call( this, partialSelected );
selection.selectElement( partialSelected );
}
}
this.getContentElement( 'info', 'txtName' ).focus();
},
contents : [
{
id : 'info',
label : editor.lang.anchor.title,
accessKey : 'I',
elements :
[
{
type : 'text',
id : 'txtName',
label : editor.lang.anchor.name,
required: true,
validate : function()
{
if ( !this.getValue() )
{
alert( editor.lang.anchor.errorName );
return false;
}
return true;
}
}
]
}
]
};
} ); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/link/dialogs/anchor.js | anchor.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Forms Plugin
*/
CKEDITOR.plugins.add( 'forms',
{
init : function( editor )
{
var lang = editor.lang;
editor.addCss(
'form' +
'{' +
'border: 1px dotted #FF0000;' +
'padding: 2px;' +
'}\n' );
editor.addCss(
'img.cke_hidden' +
'{' +
'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/hiddenfield.gif' ) + ');' +
'background-position: center center;' +
'background-repeat: no-repeat;' +
'border: 1px solid #a9a9a9;' +
'width: 16px !important;' +
'height: 16px !important;' +
'}' );
// All buttons use the same code to register. So, to avoid
// duplications, let's use this tool function.
var addButtonCommand = function( buttonName, commandName, dialogFile )
{
editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
editor.ui.addButton( buttonName,
{
label : lang.common[ buttonName.charAt(0).toLowerCase() + buttonName.slice(1) ],
command : commandName
});
CKEDITOR.dialog.add( commandName, dialogFile );
};
var dialogPath = this.path + 'dialogs/';
addButtonCommand( 'Form', 'form', dialogPath + 'form.js' );
addButtonCommand( 'Checkbox', 'checkbox', dialogPath + 'checkbox.js' );
addButtonCommand( 'Radio', 'radio', dialogPath + 'radio.js' );
addButtonCommand( 'TextField', 'textfield', dialogPath + 'textfield.js' );
addButtonCommand( 'Textarea', 'textarea', dialogPath + 'textarea.js' );
addButtonCommand( 'Select', 'select', dialogPath + 'select.js' );
addButtonCommand( 'Button', 'button', dialogPath + 'button.js' );
addButtonCommand( 'ImageButton', 'imagebutton', CKEDITOR.plugins.getPath('image') + 'dialogs/image.js' );
addButtonCommand( 'HiddenField', 'hiddenfield', dialogPath + 'hiddenfield.js' );
// If the "menu" plugin is loaded, register the menu items.
if ( editor.addMenuItems )
{
editor.addMenuItems(
{
form :
{
label : lang.form.menu,
command : 'form',
group : 'form'
},
checkbox :
{
label : lang.checkboxAndRadio.checkboxTitle,
command : 'checkbox',
group : 'checkbox'
},
radio :
{
label : lang.checkboxAndRadio.radioTitle,
command : 'radio',
group : 'radio'
},
textfield :
{
label : lang.textfield.title,
command : 'textfield',
group : 'textfield'
},
hiddenfield :
{
label : lang.hidden.title,
command : 'hiddenfield',
group : 'hiddenfield'
},
imagebutton :
{
label : lang.image.titleButton,
command : 'imagebutton',
group : 'imagebutton'
},
button :
{
label : lang.button.title,
command : 'button',
group : 'button'
},
select :
{
label : lang.select.title,
command : 'select',
group : 'select'
},
textarea :
{
label : lang.textarea.title,
command : 'textarea',
group : 'textarea'
}
});
}
// If the "contextmenu" plugin is loaded, register the listeners.
if ( editor.contextMenu )
{
editor.contextMenu.addListener( function( element )
{
if ( element && element.hasAscendant( 'form', true ) && !element.isReadOnly() )
return { form : CKEDITOR.TRISTATE_OFF };
});
editor.contextMenu.addListener( function( element )
{
if ( element && !element.isReadOnly() )
{
var name = element.getName();
if ( name == 'select' )
return { select : CKEDITOR.TRISTATE_OFF };
if ( name == 'textarea' )
return { textarea : CKEDITOR.TRISTATE_OFF };
if ( name == 'input' )
{
switch( element.getAttribute( 'type' ) )
{
case 'button' :
case 'submit' :
case 'reset' :
return { button : CKEDITOR.TRISTATE_OFF };
case 'checkbox' :
return { checkbox : CKEDITOR.TRISTATE_OFF };
case 'radio' :
return { radio : CKEDITOR.TRISTATE_OFF };
case 'image' :
return { imagebutton : CKEDITOR.TRISTATE_OFF };
default :
return { textfield : CKEDITOR.TRISTATE_OFF };
}
}
if ( name == 'img' && element.data( 'cke-real-element-type' ) == 'hiddenfield' )
return { hiddenfield : CKEDITOR.TRISTATE_OFF };
}
});
}
editor.on( 'doubleclick', function( evt )
{
var element = evt.data.element;
if ( element.is( 'form' ) )
evt.data.dialog = 'form';
else if ( element.is( 'select' ) )
evt.data.dialog = 'select';
else if ( element.is( 'textarea' ) )
evt.data.dialog = 'textarea';
else if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'hiddenfield' )
evt.data.dialog = 'hiddenfield';
else if ( element.is( 'input' ) )
{
switch ( element.getAttribute( 'type' ) )
{
case 'button' :
case 'submit' :
case 'reset' :
evt.data.dialog = 'button';
break;
case 'checkbox' :
evt.data.dialog = 'checkbox';
break;
case 'radio' :
evt.data.dialog = 'radio';
break;
case 'image' :
evt.data.dialog = 'imagebutton';
break;
default :
evt.data.dialog = 'textfield';
break;
}
}
});
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
htmlFilter = dataProcessor && dataProcessor.htmlFilter,
dataFilter = dataProcessor && dataProcessor.dataFilter;
// Cleanup certain IE form elements default values.
if ( CKEDITOR.env.ie )
{
htmlFilter && htmlFilter.addRules(
{
elements :
{
input : function( input )
{
var attrs = input.attributes,
type = attrs.type;
// Old IEs don't provide type for Text inputs #5522
if ( !type )
attrs.type = 'text';
if ( type == 'checkbox' || type == 'radio' )
attrs.value == 'on' && delete attrs.value;
}
}
} );
}
if ( dataFilter )
{
dataFilter.addRules(
{
elements :
{
input : function( element )
{
if ( element.attributes.type == 'hidden' )
return editor.createFakeParserElement( element, 'cke_hidden', 'hiddenfield' );
}
}
} );
}
},
requires : [ 'image', 'fakeobjects' ]
} );
if ( CKEDITOR.env.ie )
{
CKEDITOR.dom.element.prototype.hasAttribute = CKEDITOR.tools.override( CKEDITOR.dom.element.prototype.hasAttribute,
function( original )
{
return function( name )
{
var $attr = this.$.attributes.getNamedItem( name );
if ( this.getName() == 'input' )
{
switch ( name )
{
case 'class' :
return this.$.className.length > 0;
case 'checked' :
return !!this.$.checked;
case 'value' :
var type = this.getAttribute( 'type' );
return type == 'checkbox' || type == 'radio' ? this.$.value != 'on' : this.$.value;
}
}
return original.apply( this, arguments );
};
});
} | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'textarea', function( editor )
{
return {
title : editor.lang.textarea.title,
minWidth : 350,
minHeight : 220,
onShow : function()
{
delete this.textarea;
var element = this.getParentEditor().getSelection().getSelectedElement();
if ( element && element.getName() == "textarea" )
{
this.textarea = element;
this.setupContent( element );
}
},
onOk : function()
{
var editor,
element = this.textarea,
isInsertMode = !element;
if ( isInsertMode )
{
editor = this.getParentEditor();
element = editor.document.createElement( 'textarea' );
}
this.commitContent( element );
if ( isInsertMode )
editor.insertElement( element );
},
contents : [
{
id : 'info',
label : editor.lang.textarea.title,
title : editor.lang.textarea.title,
elements : [
{
id : '_cke_saved_name',
type : 'text',
label : editor.lang.common.name,
'default' : '',
accessKey : 'N',
setup : function( element )
{
this.setValue(
element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
},
commit : function( element )
{
if ( this.getValue() )
element.data( 'cke-saved-name', this.getValue() );
else
{
element.data( 'cke-saved-name', false );
element.removeAttribute( 'name' );
}
}
},
{
type : 'hbox',
widths:['50%','50%'],
children:[
{
id : 'cols',
type : 'text',
label : editor.lang.textarea.cols,
'default' : '',
accessKey : 'C',
style : 'width:50px',
validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ),
setup : function( element )
{
var value = element.hasAttribute( 'cols' ) && element.getAttribute( 'cols' );
this.setValue( value || '' );
},
commit : function( element )
{
if ( this.getValue() )
element.setAttribute( 'cols', this.getValue() );
else
element.removeAttribute( 'cols' );
}
},
{
id : 'rows',
type : 'text',
label : editor.lang.textarea.rows,
'default' : '',
accessKey : 'R',
style : 'width:50px',
validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ),
setup : function( element )
{
var value = element.hasAttribute( 'rows' ) && element.getAttribute( 'rows' );
this.setValue( value || '' );
},
commit : function( element )
{
if ( this.getValue() )
element.setAttribute( 'rows', this.getValue() );
else
element.removeAttribute( 'rows' );
}
}
]
},
{
id : 'value',
type : 'textarea',
label : editor.lang.textfield.value,
'default' : '',
setup : function( element )
{
this.setValue( element.$.defaultValue );
},
commit : function( element )
{
element.$.value = element.$.defaultValue = this.getValue() ;
}
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/textarea.js | textarea.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'textfield', function( editor )
{
var autoAttributes =
{
value : 1,
size : 1,
maxLength : 1
};
var acceptedTypes =
{
text : 1,
password : 1
};
return {
title : editor.lang.textfield.title,
minWidth : 350,
minHeight : 150,
onShow : function()
{
delete this.textField;
var element = this.getParentEditor().getSelection().getSelectedElement();
if ( element && element.getName() == "input" &&
( acceptedTypes[ element.getAttribute( 'type' ) ] || !element.getAttribute( 'type' ) ) )
{
this.textField = element;
this.setupContent( element );
}
},
onOk : function()
{
var editor,
element = this.textField,
isInsertMode = !element;
if ( isInsertMode )
{
editor = this.getParentEditor();
element = editor.document.createElement( 'input' );
element.setAttribute( 'type', 'text' );
}
if ( isInsertMode )
editor.insertElement( element );
this.commitContent( { element : element } );
},
onLoad : function()
{
var autoSetup = function( element )
{
var value = element.hasAttribute( this.id ) && element.getAttribute( this.id );
this.setValue( value || '' );
};
var autoCommit = function( data )
{
var element = data.element;
var value = this.getValue();
if ( value )
element.setAttribute( this.id, value );
else
element.removeAttribute( this.id );
};
this.foreach( function( contentObj )
{
if ( autoAttributes[ contentObj.id ] )
{
contentObj.setup = autoSetup;
contentObj.commit = autoCommit;
}
} );
},
contents : [
{
id : 'info',
label : editor.lang.textfield.title,
title : editor.lang.textfield.title,
elements : [
{
type : 'hbox',
widths : [ '50%', '50%' ],
children :
[
{
id : '_cke_saved_name',
type : 'text',
label : editor.lang.textfield.name,
'default' : '',
accessKey : 'N',
setup : function( element )
{
this.setValue(
element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
},
commit : function( data )
{
var element = data.element;
if ( this.getValue() )
element.data( 'cke-saved-name', this.getValue() );
else
{
element.data( 'cke-saved-name', false );
element.removeAttribute( 'name' );
}
}
},
{
id : 'value',
type : 'text',
label : editor.lang.textfield.value,
'default' : '',
accessKey : 'V'
}
]
},
{
type : 'hbox',
widths : [ '50%', '50%' ],
children :
[
{
id : 'size',
type : 'text',
label : editor.lang.textfield.charWidth,
'default' : '',
accessKey : 'C',
style : 'width:50px',
validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed )
},
{
id : 'maxLength',
type : 'text',
label : editor.lang.textfield.maxChars,
'default' : '',
accessKey : 'M',
style : 'width:50px',
validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed )
}
],
onLoad : function()
{
// Repaint the style for IE7 (#6068)
if ( CKEDITOR.env.ie7Compat )
this.getElement().setStyle( 'zoom', '100%' );
}
},
{
id : 'type',
type : 'select',
label : editor.lang.textfield.type,
'default' : 'text',
accessKey : 'M',
items :
[
[ editor.lang.textfield.typeText, 'text' ],
[ editor.lang.textfield.typePass, 'password' ]
],
setup : function( element )
{
this.setValue( element.getAttribute( 'type' ) );
},
commit : function( data )
{
var element = data.element;
if ( CKEDITOR.env.ie )
{
var elementType = element.getAttribute( 'type' );
var myType = this.getValue();
if ( elementType != myType )
{
var replace = CKEDITOR.dom.element.createFromHtml( '<input type="' + myType + '"></input>', editor.document );
element.copyAttributes( replace, { type : 1 } );
replace.replace( element );
editor.getSelection().selectElement( replace );
data.element = replace;
}
}
else
element.setAttribute( 'type', this.getValue() );
}
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/textfield.js | textfield.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'hiddenfield', function( editor )
{
return {
title : editor.lang.hidden.title,
hiddenField : null,
minWidth : 350,
minHeight : 110,
onShow : function()
{
delete this.hiddenField;
var editor = this.getParentEditor(),
selection = editor.getSelection(),
element = selection.getSelectedElement();
if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' ) == 'hiddenfield' )
{
this.hiddenField = element;
element = editor.restoreRealElement( this.hiddenField );
this.setupContent( element );
selection.selectElement( this.hiddenField );
}
},
onOk : function()
{
var name = this.getValueOf( 'info', '_cke_saved_name' ),
value = this.getValueOf( 'info', 'value' ),
editor = this.getParentEditor(),
element = CKEDITOR.env.ie && !( CKEDITOR.document.$.documentMode >= 8 ) ?
editor.document.createElement( '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' )
: editor.document.createElement( 'input' );
element.setAttribute( 'type', 'hidden' );
this.commitContent( element );
var fakeElement = editor.createFakeElement( element, 'cke_hidden', 'hiddenfield' );
if ( !this.hiddenField )
editor.insertElement( fakeElement );
else
{
fakeElement.replace( this.hiddenField );
editor.getSelection().selectElement( fakeElement );
}
return true;
},
contents : [
{
id : 'info',
label : editor.lang.hidden.title,
title : editor.lang.hidden.title,
elements : [
{
id : '_cke_saved_name',
type : 'text',
label : editor.lang.hidden.name,
'default' : '',
accessKey : 'N',
setup : function( element )
{
this.setValue(
element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
},
commit : function( element )
{
if ( this.getValue() )
element.setAttribute( 'name', this.getValue() );
else
{
element.removeAttribute( 'name' );
}
}
},
{
id : 'value',
type : 'text',
label : editor.lang.hidden.value,
'default' : '',
accessKey : 'V',
setup : function( element )
{
this.setValue( element.getAttribute( 'value' ) || '' );
},
commit : function( element )
{
if ( this.getValue() )
element.setAttribute( 'value', this.getValue() );
else
element.removeAttribute( 'value' );
}
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js | hiddenfield.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'checkbox', function( editor )
{
return {
title : editor.lang.checkboxAndRadio.checkboxTitle,
minWidth : 350,
minHeight : 140,
onShow : function()
{
delete this.checkbox;
var element = this.getParentEditor().getSelection().getSelectedElement();
if ( element && element.getAttribute( 'type' ) == 'checkbox' )
{
this.checkbox = element;
this.setupContent( element );
}
},
onOk : function()
{
var editor,
element = this.checkbox,
isInsertMode = !element;
if ( isInsertMode )
{
editor = this.getParentEditor();
element = editor.document.createElement( 'input' );
element.setAttribute( 'type', 'checkbox' );
editor.insertElement( element );
}
this.commitContent( { element : element } );
},
contents : [
{
id : 'info',
label : editor.lang.checkboxAndRadio.checkboxTitle,
title : editor.lang.checkboxAndRadio.checkboxTitle,
startupFocus : 'txtName',
elements : [
{
id : 'txtName',
type : 'text',
label : editor.lang.common.name,
'default' : '',
accessKey : 'N',
setup : function( element )
{
this.setValue(
element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
},
commit : function( data )
{
var element = data.element;
// IE failed to update 'name' property on input elements, protect it now.
if ( this.getValue() )
element.data( 'cke-saved-name', this.getValue() );
else
{
element.data( 'cke-saved-name', false );
element.removeAttribute( 'name' );
}
}
},
{
id : 'txtValue',
type : 'text',
label : editor.lang.checkboxAndRadio.value,
'default' : '',
accessKey : 'V',
setup : function( element )
{
var value = element.getAttribute( 'value' );
// IE Return 'on' as default attr value.
this.setValue( CKEDITOR.env.ie && value == 'on' ? '' : value );
},
commit : function( data )
{
var element = data.element,
value = this.getValue();
if ( value && !( CKEDITOR.env.ie && value == 'on' ) )
element.setAttribute( 'value', value );
else
{
if ( CKEDITOR.env.ie )
{
// Remove attribute 'value' of checkbox (#4721).
var checkbox = new CKEDITOR.dom.element( 'input', element.getDocument() );
element.copyAttributes( checkbox, { value: 1 } );
checkbox.replace( element );
editor.getSelection().selectElement( checkbox );
data.element = checkbox;
}
else
element.removeAttribute( 'value' );
}
}
},
{
id : 'cmbSelected',
type : 'checkbox',
label : editor.lang.checkboxAndRadio.selected,
'default' : '',
accessKey : 'S',
value : "checked",
setup : function( element )
{
this.setValue( element.getAttribute( 'checked' ) );
},
commit : function( data )
{
var element = data.element;
if ( CKEDITOR.env.ie )
{
var isElementChecked = !!element.getAttribute( 'checked' ),
isChecked = !!this.getValue();
if ( isElementChecked != isChecked )
{
var replace = CKEDITOR.dom.element.createFromHtml( '<input type="checkbox"'
+ ( isChecked ? ' checked="checked"' : '' )
+ '/>', editor.document );
element.copyAttributes( replace, { type : 1, checked : 1 } );
replace.replace( element );
editor.getSelection().selectElement( replace );
data.element = replace;
}
}
else
{
var value = this.getValue();
if ( value )
element.setAttribute( 'checked', 'checked' );
else
element.removeAttribute( 'checked' );
}
}
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/checkbox.js | checkbox.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'form', function( editor )
{
var autoAttributes =
{
action : 1,
id : 1,
method : 1,
enctype : 1,
target : 1
};
return {
title : editor.lang.form.title,
minWidth : 350,
minHeight : 200,
onShow : function()
{
delete this.form;
var element = this.getParentEditor().getSelection().getStartElement();
var form = element && element.getAscendant( 'form', true );
if ( form )
{
this.form = form;
this.setupContent( form );
}
},
onOk : function()
{
var editor,
element = this.form,
isInsertMode = !element;
if ( isInsertMode )
{
editor = this.getParentEditor();
element = editor.document.createElement( 'form' );
!CKEDITOR.env.ie && element.append( editor.document.createElement( 'br' ) );
}
if ( isInsertMode )
editor.insertElement( element );
this.commitContent( element );
},
onLoad : function()
{
function autoSetup( element )
{
this.setValue( element.getAttribute( this.id ) || '' );
}
function autoCommit( element )
{
if ( this.getValue() )
element.setAttribute( this.id, this.getValue() );
else
element.removeAttribute( this.id );
}
this.foreach( function( contentObj )
{
if ( autoAttributes[ contentObj.id ] )
{
contentObj.setup = autoSetup;
contentObj.commit = autoCommit;
}
} );
},
contents : [
{
id : 'info',
label : editor.lang.form.title,
title : editor.lang.form.title,
elements : [
{
id : 'txtName',
type : 'text',
label : editor.lang.common.name,
'default' : '',
accessKey : 'N',
setup : function( element )
{
this.setValue( element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
},
commit : function( element )
{
if ( this.getValue() )
element.data( 'cke-saved-name', this.getValue() );
else
{
element.data( 'cke-saved-name', false );
element.removeAttribute( 'name' );
}
}
},
{
id : 'action',
type : 'text',
label : editor.lang.form.action,
'default' : '',
accessKey : 'T'
},
{
type : 'hbox',
widths : [ '45%', '55%' ],
children :
[
{
id : 'id',
type : 'text',
label : editor.lang.common.id,
'default' : '',
accessKey : 'I'
},
{
id : 'enctype',
type : 'select',
label : editor.lang.form.encoding,
style : 'width:100%',
accessKey : 'E',
'default' : '',
items :
[
[ '' ],
[ 'text/plain' ],
[ 'multipart/form-data' ],
[ 'application/x-www-form-urlencoded' ]
]
}
]
},
{
type : 'hbox',
widths : [ '45%', '55%' ],
children :
[
{
id : 'target',
type : 'select',
label : editor.lang.common.target,
style : 'width:100%',
accessKey : 'M',
'default' : '',
items :
[
[ editor.lang.common.notSet, '' ],
[ editor.lang.common.targetNew, '_blank' ],
[ editor.lang.common.targetTop, '_top' ],
[ editor.lang.common.targetSelf, '_self' ],
[ editor.lang.common.targetParent, '_parent' ]
]
},
{
id : 'method',
type : 'select',
label : editor.lang.form.method,
accessKey : 'M',
'default' : 'GET',
items :
[
[ 'GET', 'get' ],
[ 'POST', 'post' ]
]
}
]
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/form.js | form.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'button', function( editor )
{
function commitAttributes( element )
{
var val = this.getValue();
if ( val )
{
element.attributes[ this.id ] = val;
if ( this.id == 'name' )
element.attributes[ 'data-cke-saved-name' ] = val;
}
else
{
delete element.attributes[ this.id ];
if ( this.id == 'name' )
delete element.attributes[ 'data-cke-saved-name' ];
}
}
return {
title : editor.lang.button.title,
minWidth : 350,
minHeight : 150,
onShow : function()
{
delete this.button;
var element = this.getParentEditor().getSelection().getSelectedElement();
if ( element && element.is( 'input' ) )
{
var type = element.getAttribute( 'type' );
if ( type in { button:1, reset:1, submit:1 } )
{
this.button = element;
this.setupContent( element );
}
}
},
onOk : function()
{
var editor = this.getParentEditor(),
element = this.button,
isInsertMode = !element;
var fake = element ? CKEDITOR.htmlParser.fragment.fromHtml( element.getOuterHtml() ).children[ 0 ]
: new CKEDITOR.htmlParser.element( 'input' );
this.commitContent( fake );
var writer = new CKEDITOR.htmlParser.basicWriter();
fake.writeHtml( writer );
var newElement = CKEDITOR.dom.element.createFromHtml( writer.getHtml(), editor.document );
if ( isInsertMode )
editor.insertElement( newElement );
else
{
newElement.replace( element );
editor.getSelection().selectElement( newElement );
}
},
contents : [
{
id : 'info',
label : editor.lang.button.title,
title : editor.lang.button.title,
elements : [
{
id : 'name',
type : 'text',
label : editor.lang.common.name,
'default' : '',
setup : function( element )
{
this.setValue(
element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
},
commit : commitAttributes
},
{
id : 'value',
type : 'text',
label : editor.lang.button.text,
accessKey : 'V',
'default' : '',
setup : function( element )
{
this.setValue( element.getAttribute( 'value' ) || '' );
},
commit : commitAttributes
},
{
id : 'type',
type : 'select',
label : editor.lang.button.type,
'default' : 'button',
accessKey : 'T',
items :
[
[ editor.lang.button.typeBtn, 'button' ],
[ editor.lang.button.typeSbm, 'submit' ],
[ editor.lang.button.typeRst, 'reset' ]
],
setup : function( element )
{
this.setValue( element.getAttribute( 'type' ) || '' );
},
commit : commitAttributes
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/button.js | button.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'select', function( editor )
{
// Add a new option to a SELECT object (combo or list).
function addOption( combo, optionText, optionValue, documentObject, index )
{
combo = getSelect( combo );
var oOption;
if ( documentObject )
oOption = documentObject.createElement( "OPTION" );
else
oOption = document.createElement( "OPTION" );
if ( combo && oOption && oOption.getName() == 'option' )
{
if ( CKEDITOR.env.ie ) {
if ( !isNaN( parseInt( index, 10) ) )
combo.$.options.add( oOption.$, index );
else
combo.$.options.add( oOption.$ );
oOption.$.innerHTML = optionText.length > 0 ? optionText : '';
oOption.$.value = optionValue;
}
else
{
if ( index !== null && index < combo.getChildCount() )
combo.getChild( index < 0 ? 0 : index ).insertBeforeMe( oOption );
else
combo.append( oOption );
oOption.setText( optionText.length > 0 ? optionText : '' );
oOption.setValue( optionValue );
}
}
else
return false;
return oOption;
}
// Remove all selected options from a SELECT object.
function removeSelectedOptions( combo )
{
combo = getSelect( combo );
// Save the selected index
var iSelectedIndex = getSelectedIndex( combo );
// Remove all selected options.
for ( var i = combo.getChildren().count() - 1 ; i >= 0 ; i-- )
{
if ( combo.getChild( i ).$.selected )
combo.getChild( i ).remove();
}
// Reset the selection based on the original selected index.
setSelectedIndex( combo, iSelectedIndex );
}
//Modify option from a SELECT object.
function modifyOption( combo, index, title, value )
{
combo = getSelect( combo );
if ( index < 0 )
return false;
var child = combo.getChild( index );
child.setText( title );
child.setValue( value );
return child;
}
function removeAllOptions( combo )
{
combo = getSelect( combo );
while ( combo.getChild( 0 ) && combo.getChild( 0 ).remove() )
{ /*jsl:pass*/ }
}
// Moves the selected option by a number of steps (also negative).
function changeOptionPosition( combo, steps, documentObject )
{
combo = getSelect( combo );
var iActualIndex = getSelectedIndex( combo );
if ( iActualIndex < 0 )
return false;
var iFinalIndex = iActualIndex + steps;
iFinalIndex = ( iFinalIndex < 0 ) ? 0 : iFinalIndex;
iFinalIndex = ( iFinalIndex >= combo.getChildCount() ) ? combo.getChildCount() - 1 : iFinalIndex;
if ( iActualIndex == iFinalIndex )
return false;
var oOption = combo.getChild( iActualIndex ),
sText = oOption.getText(),
sValue = oOption.getValue();
oOption.remove();
oOption = addOption( combo, sText, sValue, ( !documentObject ) ? null : documentObject, iFinalIndex );
setSelectedIndex( combo, iFinalIndex );
return oOption;
}
function getSelectedIndex( combo )
{
combo = getSelect( combo );
return combo ? combo.$.selectedIndex : -1;
}
function setSelectedIndex( combo, index )
{
combo = getSelect( combo );
if ( index < 0 )
return null;
var count = combo.getChildren().count();
combo.$.selectedIndex = ( index >= count ) ? ( count - 1 ) : index;
return combo;
}
function getOptions( combo )
{
combo = getSelect( combo );
return combo ? combo.getChildren() : false;
}
function getSelect( obj )
{
if ( obj && obj.domId && obj.getInputElement().$ ) // Dialog element.
return obj.getInputElement();
else if ( obj && obj.$ )
return obj;
return false;
}
return {
title : editor.lang.select.title,
minWidth : CKEDITOR.env.ie ? 460 : 395,
minHeight : CKEDITOR.env.ie ? 320 : 300,
onShow : function()
{
delete this.selectBox;
this.setupContent( 'clear' );
var element = this.getParentEditor().getSelection().getSelectedElement();
if ( element && element.getName() == "select" )
{
this.selectBox = element;
this.setupContent( element.getName(), element );
// Load Options into dialog.
var objOptions = getOptions( element );
for ( var i = 0 ; i < objOptions.count() ; i++ )
this.setupContent( 'option', objOptions.getItem( i ) );
}
},
onOk : function()
{
var editor = this.getParentEditor(),
element = this.selectBox,
isInsertMode = !element;
if ( isInsertMode )
element = editor.document.createElement( 'select' );
this.commitContent( element );
if ( isInsertMode )
{
editor.insertElement( element );
if ( CKEDITOR.env.ie )
{
var sel = editor.getSelection(),
bms = sel.createBookmarks();
setTimeout(function()
{
sel.selectBookmarks( bms );
}, 0 );
}
}
},
contents : [
{
id : 'info',
label : editor.lang.select.selectInfo,
title : editor.lang.select.selectInfo,
accessKey : '',
elements : [
{
id : 'txtName',
type : 'text',
widths : [ '25%','75%' ],
labelLayout : 'horizontal',
label : editor.lang.common.name,
'default' : '',
accessKey : 'N',
style : 'width:350px',
setup : function( name, element )
{
if ( name == 'clear' )
this.setValue( this[ 'default' ] || '' );
else if ( name == 'select' )
{
this.setValue(
element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
}
},
commit : function( element )
{
if ( this.getValue() )
element.data( 'cke-saved-name', this.getValue() );
else
{
element.data( 'cke-saved-name', false );
element.removeAttribute( 'name' );
}
}
},
{
id : 'txtValue',
type : 'text',
widths : [ '25%','75%' ],
labelLayout : 'horizontal',
label : editor.lang.select.value,
style : 'width:350px',
'default' : '',
className : 'cke_disabled',
onLoad : function()
{
this.getInputElement().setAttribute( 'readOnly', true );
},
setup : function( name, element )
{
if ( name == 'clear' )
this.setValue( '' );
else if ( name == 'option' && element.getAttribute( 'selected' ) )
this.setValue( element.$.value );
}
},
{
type : 'hbox',
widths : [ '175px', '170px' ],
children :
[
{
id : 'txtSize',
type : 'text',
labelLayout : 'horizontal',
label : editor.lang.select.size,
'default' : '',
accessKey : 'S',
style : 'width:175px',
validate: function()
{
var func = CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed );
return ( ( this.getValue() === '' ) || func.apply( this ) );
},
setup : function( name, element )
{
if ( name == 'select' )
this.setValue( element.getAttribute( 'size' ) || '' );
if ( CKEDITOR.env.webkit )
this.getInputElement().setStyle( 'width', '86px' );
},
commit : function( element )
{
if ( this.getValue() )
element.setAttribute( 'size', this.getValue() );
else
element.removeAttribute( 'size' );
}
},
{
type : 'html',
html : '<span>' + CKEDITOR.tools.htmlEncode( editor.lang.select.lines ) + '</span>'
}
]
},
{
type : 'html',
html : '<span>' + CKEDITOR.tools.htmlEncode( editor.lang.select.opAvail ) + '</span>'
},
{
type : 'hbox',
widths : [ '115px', '115px' ,'100px' ],
children :
[
{
type : 'vbox',
children :
[
{
id : 'txtOptName',
type : 'text',
label : editor.lang.select.opText,
style : 'width:115px',
setup : function( name, element )
{
if ( name == 'clear' )
this.setValue( "" );
}
},
{
type : 'select',
id : 'cmbName',
label : '',
title : '',
size : 5,
style : 'width:115px;height:75px',
items : [],
onChange : function()
{
var dialog = this.getDialog(),
values = dialog.getContentElement( 'info', 'cmbValue' ),
optName = dialog.getContentElement( 'info', 'txtOptName' ),
optValue = dialog.getContentElement( 'info', 'txtOptValue' ),
iIndex = getSelectedIndex( this );
setSelectedIndex( values, iIndex );
optName.setValue( this.getValue() );
optValue.setValue( values.getValue() );
},
setup : function( name, element )
{
if ( name == 'clear' )
removeAllOptions( this );
else if ( name == 'option' )
addOption( this, element.getText(), element.getText(),
this.getDialog().getParentEditor().document );
},
commit : function( element )
{
var dialog = this.getDialog(),
optionsNames = getOptions( this ),
optionsValues = getOptions( dialog.getContentElement( 'info', 'cmbValue' ) ),
selectValue = dialog.getContentElement( 'info', 'txtValue' ).getValue();
removeAllOptions( element );
for ( var i = 0 ; i < optionsNames.count() ; i++ )
{
var oOption = addOption( element, optionsNames.getItem( i ).getValue(),
optionsValues.getItem( i ).getValue(), dialog.getParentEditor().document );
if ( optionsValues.getItem( i ).getValue() == selectValue )
{
oOption.setAttribute( 'selected', 'selected' );
oOption.selected = true;
}
}
}
}
]
},
{
type : 'vbox',
children :
[
{
id : 'txtOptValue',
type : 'text',
label : editor.lang.select.opValue,
style : 'width:115px',
setup : function( name, element )
{
if ( name == 'clear' )
this.setValue( "" );
}
},
{
type : 'select',
id : 'cmbValue',
label : '',
size : 5,
style : 'width:115px;height:75px',
items : [],
onChange : function()
{
var dialog = this.getDialog(),
names = dialog.getContentElement( 'info', 'cmbName' ),
optName = dialog.getContentElement( 'info', 'txtOptName' ),
optValue = dialog.getContentElement( 'info', 'txtOptValue' ),
iIndex = getSelectedIndex( this );
setSelectedIndex( names, iIndex );
optName.setValue( names.getValue() );
optValue.setValue( this.getValue() );
},
setup : function( name, element )
{
if ( name == 'clear' )
removeAllOptions( this );
else if ( name == 'option' )
{
var oValue = element.getValue();
addOption( this, oValue, oValue,
this.getDialog().getParentEditor().document );
if ( element.getAttribute( 'selected' ) == 'selected' )
this.getDialog().getContentElement( 'info', 'txtValue' ).setValue( oValue );
}
}
}
]
},
{
type : 'vbox',
padding : 5,
children :
[
{
type : 'button',
id : 'btnAdd',
style : '',
label : editor.lang.select.btnAdd,
title : editor.lang.select.btnAdd,
style : 'width:100%;',
onClick : function()
{
//Add new option.
var dialog = this.getDialog(),
parentEditor = dialog.getParentEditor(),
optName = dialog.getContentElement( 'info', 'txtOptName' ),
optValue = dialog.getContentElement( 'info', 'txtOptValue' ),
names = dialog.getContentElement( 'info', 'cmbName' ),
values = dialog.getContentElement( 'info', 'cmbValue' );
addOption(names, optName.getValue(), optName.getValue(), dialog.getParentEditor().document );
addOption(values, optValue.getValue(), optValue.getValue(), dialog.getParentEditor().document );
optName.setValue( "" );
optValue.setValue( "" );
}
},
{
type : 'button',
id : 'btnModify',
label : editor.lang.select.btnModify,
title : editor.lang.select.btnModify,
style : 'width:100%;',
onClick : function()
{
//Modify selected option.
var dialog = this.getDialog(),
optName = dialog.getContentElement( 'info', 'txtOptName' ),
optValue = dialog.getContentElement( 'info', 'txtOptValue' ),
names = dialog.getContentElement( 'info', 'cmbName' ),
values = dialog.getContentElement( 'info', 'cmbValue' ),
iIndex = getSelectedIndex( names );
if ( iIndex >= 0 )
{
modifyOption( names, iIndex, optName.getValue(), optName.getValue() );
modifyOption( values, iIndex, optValue.getValue(), optValue.getValue() );
}
}
},
{
type : 'button',
id : 'btnUp',
style : 'width:100%;',
label : editor.lang.select.btnUp,
title : editor.lang.select.btnUp,
onClick : function()
{
//Move up.
var dialog = this.getDialog(),
names = dialog.getContentElement( 'info', 'cmbName' ),
values = dialog.getContentElement( 'info', 'cmbValue' );
changeOptionPosition( names, -1, dialog.getParentEditor().document );
changeOptionPosition( values, -1, dialog.getParentEditor().document );
}
},
{
type : 'button',
id : 'btnDown',
style : 'width:100%;',
label : editor.lang.select.btnDown,
title : editor.lang.select.btnDown,
onClick : function()
{
//Move down.
var dialog = this.getDialog(),
names = dialog.getContentElement( 'info', 'cmbName' ),
values = dialog.getContentElement( 'info', 'cmbValue' );
changeOptionPosition( names, 1, dialog.getParentEditor().document );
changeOptionPosition( values, 1, dialog.getParentEditor().document );
}
}
]
}
]
},
{
type : 'hbox',
widths : [ '40%', '20%', '40%' ],
children :
[
{
type : 'button',
id : 'btnSetValue',
label : editor.lang.select.btnSetValue,
title : editor.lang.select.btnSetValue,
onClick : function()
{
//Set as default value.
var dialog = this.getDialog(),
values = dialog.getContentElement( 'info', 'cmbValue' ),
txtValue = dialog.getContentElement( 'info', 'txtValue' );
txtValue.setValue( values.getValue() );
}
},
{
type : 'button',
id : 'btnDelete',
label : editor.lang.select.btnDelete,
title : editor.lang.select.btnDelete,
onClick : function()
{
// Delete option.
var dialog = this.getDialog(),
names = dialog.getContentElement( 'info', 'cmbName' ),
values = dialog.getContentElement( 'info', 'cmbValue' ),
optName = dialog.getContentElement( 'info', 'txtOptName' ),
optValue = dialog.getContentElement( 'info', 'txtOptValue' );
removeSelectedOptions( names );
removeSelectedOptions( values );
optName.setValue( "" );
optValue.setValue( "" );
}
},
{
id : 'chkMulti',
type : 'checkbox',
label : editor.lang.select.chkMulti,
'default' : '',
accessKey : 'M',
value : "checked",
setup : function( name, element )
{
if ( name == 'select' )
this.setValue( element.getAttribute( 'multiple' ) );
if ( CKEDITOR.env.webkit )
this.getElement().getParent().setStyle( 'vertical-align', 'middle' );
},
commit : function( element )
{
if ( this.getValue() )
element.setAttribute( 'multiple', this.getValue() );
else
element.removeAttribute( 'multiple' );
}
}
]
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/select.js | select.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'radio', function( editor )
{
return {
title : editor.lang.checkboxAndRadio.radioTitle,
minWidth : 350,
minHeight : 140,
onShow : function()
{
delete this.radioButton;
var element = this.getParentEditor().getSelection().getSelectedElement();
if ( element && element.getName() == 'input' && element.getAttribute( 'type' ) == 'radio' )
{
this.radioButton = element;
this.setupContent( element );
}
},
onOk : function()
{
var editor,
element = this.radioButton,
isInsertMode = !element;
if ( isInsertMode )
{
editor = this.getParentEditor();
element = editor.document.createElement( 'input' );
element.setAttribute( 'type', 'radio' );
}
if ( isInsertMode )
editor.insertElement( element );
this.commitContent( { element : element } );
},
contents : [
{
id : 'info',
label : editor.lang.checkboxAndRadio.radioTitle,
title : editor.lang.checkboxAndRadio.radioTitle,
elements : [
{
id : 'name',
type : 'text',
label : editor.lang.common.name,
'default' : '',
accessKey : 'N',
setup : function( element )
{
this.setValue(
element.data( 'cke-saved-name' ) ||
element.getAttribute( 'name' ) ||
'' );
},
commit : function( data )
{
var element = data.element;
if ( this.getValue() )
element.data( 'cke-saved-name', this.getValue() );
else
{
element.data( 'cke-saved-name', false );
element.removeAttribute( 'name' );
}
}
},
{
id : 'value',
type : 'text',
label : editor.lang.checkboxAndRadio.value,
'default' : '',
accessKey : 'V',
setup : function( element )
{
this.setValue( element.getAttribute( 'value' ) || '' );
},
commit : function( data )
{
var element = data.element;
if ( this.getValue() )
element.setAttribute( 'value', this.getValue() );
else
element.removeAttribute( 'value' );
}
},
{
id : 'checked',
type : 'checkbox',
label : editor.lang.checkboxAndRadio.selected,
'default' : '',
accessKey : 'S',
value : "checked",
setup : function( element )
{
this.setValue( element.getAttribute( 'checked' ) );
},
commit : function( data )
{
var element = data.element;
if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera ) )
{
if ( this.getValue() )
element.setAttribute( 'checked', 'checked' );
else
element.removeAttribute( 'checked' );
}
else
{
var isElementChecked = element.getAttribute( 'checked' );
var isChecked = !!this.getValue();
if ( isElementChecked != isChecked )
{
var replace = CKEDITOR.dom.element.createFromHtml( '<input type="radio"'
+ ( isChecked ? ' checked="checked"' : '' )
+ '></input>', editor.document );
element.copyAttributes( replace, { type : 1, checked : 1 } );
replace.replace( element );
editor.getSelection().selectElement( replace );
data.element = replace;
}
}
}
}
]
}
]
};
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/forms/dialogs/radio.js | radio.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file DOM iterator, which iterates over list items, lines and paragraphs.
*/
CKEDITOR.plugins.add( 'domiterator' );
(function()
{
/**
* @name CKEDITOR.dom.iterator
*/
function iterator( range )
{
if ( arguments.length < 1 )
return;
this.range = range;
this.forceBrBreak = 0;
// Whether include <br>s into the enlarged range.(#3730).
this.enlargeBr = 1;
this.enforceRealBlocks = 0;
this._ || ( this._ = {} );
}
var beginWhitespaceRegex = /^[\r\n\t ]+$/,
// Ignore bookmark nodes.(#3783)
bookmarkGuard = CKEDITOR.dom.walker.bookmark( false, true ),
whitespacesGuard = CKEDITOR.dom.walker.whitespaces( true ),
skipGuard = function( node ) { return bookmarkGuard( node ) && whitespacesGuard( node ); };
// Get a reference for the next element, bookmark nodes are skipped.
function getNextSourceNode( node, startFromSibling, lastNode )
{
var next = node.getNextSourceNode( startFromSibling, null, lastNode );
while ( !bookmarkGuard( next ) )
next = next.getNextSourceNode( startFromSibling, null, lastNode );
return next;
}
iterator.prototype = {
getNextParagraph : function( blockTag )
{
// The block element to be returned.
var block;
// The range object used to identify the paragraph contents.
var range;
// Indicats that the current element in the loop is the last one.
var isLast;
// Indicate at least one of the range boundaries is inside a preformat block.
var touchPre;
// Instructs to cleanup remaining BRs.
var removePreviousBr, removeLastBr;
// This is the first iteration. Let's initialize it.
if ( !this._.lastNode )
{
range = this.range.clone();
// Shrink the range to exclude harmful "noises" (#4087, #4450, #5435).
range.shrink( CKEDITOR.NODE_ELEMENT, true );
touchPre = range.endContainer.hasAscendant( 'pre', true )
|| range.startContainer.hasAscendant( 'pre', true );
range.enlarge( this.forceBrBreak && !touchPre || !this.enlargeBr ?
CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS : CKEDITOR.ENLARGE_BLOCK_CONTENTS );
var walker = new CKEDITOR.dom.walker( range ),
ignoreBookmarkTextEvaluator = CKEDITOR.dom.walker.bookmark( true, true );
// Avoid anchor inside bookmark inner text.
walker.evaluator = ignoreBookmarkTextEvaluator;
this._.nextNode = walker.next();
// TODO: It's better to have walker.reset() used here.
walker = new CKEDITOR.dom.walker( range );
walker.evaluator = ignoreBookmarkTextEvaluator;
var lastNode = walker.previous();
this._.lastNode = lastNode.getNextSourceNode( true );
// We may have an empty text node at the end of block due to [3770].
// If that node is the lastNode, it would cause our logic to leak to the
// next block.(#3887)
if ( this._.lastNode &&
this._.lastNode.type == CKEDITOR.NODE_TEXT &&
!CKEDITOR.tools.trim( this._.lastNode.getText() ) &&
this._.lastNode.getParent().isBlockBoundary() )
{
var testRange = new CKEDITOR.dom.range( range.document );
testRange.moveToPosition( this._.lastNode, CKEDITOR.POSITION_AFTER_END );
if ( testRange.checkEndOfBlock() )
{
var path = new CKEDITOR.dom.elementPath( testRange.endContainer );
var lastBlock = path.block || path.blockLimit;
this._.lastNode = lastBlock.getNextSourceNode( true );
}
}
// Probably the document end is reached, we need a marker node.
if ( !this._.lastNode )
{
this._.lastNode = this._.docEndMarker = range.document.createText( '' );
this._.lastNode.insertAfter( lastNode );
}
// Let's reuse this variable.
range = null;
}
var currentNode = this._.nextNode;
lastNode = this._.lastNode;
this._.nextNode = null;
while ( currentNode )
{
// closeRange indicates that a paragraph boundary has been found,
// so the range can be closed.
var closeRange = 0,
parentPre = currentNode.hasAscendant( 'pre' );
// includeNode indicates that the current node is good to be part
// of the range. By default, any non-element node is ok for it.
var includeNode = ( currentNode.type != CKEDITOR.NODE_ELEMENT ),
continueFromSibling = 0;
// If it is an element node, let's check if it can be part of the
// range.
if ( !includeNode )
{
var nodeName = currentNode.getName();
if ( currentNode.isBlockBoundary( this.forceBrBreak &&
!parentPre && { br : 1 } ) )
{
// <br> boundaries must be part of the range. It will
// happen only if ForceBrBreak.
if ( nodeName == 'br' )
includeNode = 1;
else if ( !range && !currentNode.getChildCount() && nodeName != 'hr' )
{
// If we have found an empty block, and haven't started
// the range yet, it means we must return this block.
block = currentNode;
isLast = currentNode.equals( lastNode );
break;
}
// The range must finish right before the boundary,
// including possibly skipped empty spaces. (#1603)
if ( range )
{
range.setEndAt( currentNode, CKEDITOR.POSITION_BEFORE_START );
// The found boundary must be set as the next one at this
// point. (#1717)
if ( nodeName != 'br' )
this._.nextNode = currentNode;
}
closeRange = 1;
}
else
{
// If we have child nodes, let's check them.
if ( currentNode.getFirst() )
{
// If we don't have a range yet, let's start it.
if ( !range )
{
range = new CKEDITOR.dom.range( this.range.document );
range.setStartAt( currentNode, CKEDITOR.POSITION_BEFORE_START );
}
currentNode = currentNode.getFirst();
continue;
}
includeNode = 1;
}
}
else if ( currentNode.type == CKEDITOR.NODE_TEXT )
{
// Ignore normal whitespaces (i.e. not including or
// other unicode whitespaces) before/after a block node.
if ( beginWhitespaceRegex.test( currentNode.getText() ) )
includeNode = 0;
}
// The current node is good to be part of the range and we are
// starting a new range, initialize it first.
if ( includeNode && !range )
{
range = new CKEDITOR.dom.range( this.range.document );
range.setStartAt( currentNode, CKEDITOR.POSITION_BEFORE_START );
}
// The last node has been found.
isLast = ( ( !closeRange || includeNode ) && currentNode.equals( lastNode ) );
// If we are in an element boundary, let's check if it is time
// to close the range, otherwise we include the parent within it.
if ( range && !closeRange )
{
while ( !currentNode.getNext( skipGuard ) && !isLast )
{
var parentNode = currentNode.getParent();
if ( parentNode.isBlockBoundary( this.forceBrBreak
&& !parentPre && { br : 1 } ) )
{
closeRange = 1;
includeNode = 0;
isLast = isLast || ( parentNode.equals( lastNode) );
// Make sure range includes bookmarks at the end of the block. (#7359)
range.setEndAt( parentNode, CKEDITOR.POSITION_BEFORE_END );
break;
}
currentNode = parentNode;
includeNode = 1;
isLast = ( currentNode.equals( lastNode ) );
continueFromSibling = 1;
}
}
// Now finally include the node.
if ( includeNode )
range.setEndAt( currentNode, CKEDITOR.POSITION_AFTER_END );
currentNode = getNextSourceNode ( currentNode, continueFromSibling, lastNode );
isLast = !currentNode;
// We have found a block boundary. Let's close the range and move out of the
// loop.
if ( isLast || ( closeRange && range ) )
break;
}
// Now, based on the processed range, look for (or create) the block to be returned.
if ( !block )
{
// If no range has been found, this is the end.
if ( !range )
{
this._.docEndMarker && this._.docEndMarker.remove();
this._.nextNode = null;
return null;
}
var startPath = new CKEDITOR.dom.elementPath( range.startContainer );
var startBlockLimit = startPath.blockLimit,
checkLimits = { div : 1, th : 1, td : 1 };
block = startPath.block;
if ( !block
&& !this.enforceRealBlocks
&& checkLimits[ startBlockLimit.getName() ]
&& range.checkStartOfBlock()
&& range.checkEndOfBlock() )
block = startBlockLimit;
else if ( !block || ( this.enforceRealBlocks && block.getName() == 'li' ) )
{
// Create the fixed block.
block = this.range.document.createElement( blockTag || 'p' );
// Move the contents of the temporary range to the fixed block.
range.extractContents().appendTo( block );
block.trim();
// Insert the fixed block into the DOM.
range.insertNode( block );
removePreviousBr = removeLastBr = true;
}
else if ( block.getName() != 'li' )
{
// If the range doesn't includes the entire contents of the
// block, we must split it, isolating the range in a dedicated
// block.
if ( !range.checkStartOfBlock() || !range.checkEndOfBlock() )
{
// The resulting block will be a clone of the current one.
block = block.clone( false );
// Extract the range contents, moving it to the new block.
range.extractContents().appendTo( block );
block.trim();
// Split the block. At this point, the range will be in the
// right position for our intents.
var splitInfo = range.splitBlock();
removePreviousBr = !splitInfo.wasStartOfBlock;
removeLastBr = !splitInfo.wasEndOfBlock;
// Insert the new block into the DOM.
range.insertNode( block );
}
}
else if ( !isLast )
{
// LIs are returned as is, with all their children (due to the
// nested lists). But, the next node is the node right after
// the current range, which could be an <li> child (nested
// lists) or the next sibling <li>.
this._.nextNode = ( block.equals( lastNode ) ? null : getNextSourceNode( range.getBoundaryNodes().endNode, 1, lastNode ) );
}
}
if ( removePreviousBr )
{
var previousSibling = block.getPrevious();
if ( previousSibling && previousSibling.type == CKEDITOR.NODE_ELEMENT )
{
if ( previousSibling.getName() == 'br' )
previousSibling.remove();
else if ( previousSibling.getLast() && previousSibling.getLast().$.nodeName.toLowerCase() == 'br' )
previousSibling.getLast().remove();
}
}
if ( removeLastBr )
{
var lastChild = block.getLast();
if ( lastChild && lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.getName() == 'br' )
{
// Take care not to remove the block expanding <br> in non-IE browsers.
if ( CKEDITOR.env.ie
|| lastChild.getPrevious( bookmarkGuard )
|| lastChild.getNext( bookmarkGuard ) )
lastChild.remove();
}
}
// Get a reference for the next element. This is important because the
// above block can be removed or changed, so we can rely on it for the
// next interation.
if ( !this._.nextNode )
{
this._.nextNode = ( isLast || block.equals( lastNode ) ) ? null :
getNextSourceNode( block, 1, lastNode );
}
return block;
}
};
CKEDITOR.dom.range.prototype.createIterator = function()
{
return new iterator( this );
};
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/domiterator/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'format',
{
requires : [ 'richcombo', 'styles' ],
init : function( editor )
{
var config = editor.config,
lang = editor.lang.format;
// Gets the list of tags from the settings.
var tags = config.format_tags.split( ';' );
// Create style objects for all defined styles.
var styles = {};
for ( var i = 0 ; i < tags.length ; i++ )
{
var tag = tags[ i ];
styles[ tag ] = new CKEDITOR.style( config[ 'format_' + tag ] );
styles[ tag ]._.enterMode = editor.config.enterMode;
}
editor.ui.addRichCombo( 'Format',
{
label : lang.label,
title : lang.panelTitle,
className : 'cke_format',
panel :
{
css : editor.skin.editor.css.concat( config.contentsCss ),
multiSelect : false,
attributes : { 'aria-label' : lang.panelTitle }
},
init : function()
{
this.startGroup( lang.panelTitle );
for ( var tag in styles )
{
var label = lang[ 'tag_' + tag ];
// Add the tag entry to the panel list.
this.add( tag, styles[tag].buildPreview( label ), label );
}
},
onClick : function( value )
{
editor.focus();
editor.fire( 'saveSnapshot' );
var style = styles[ value ],
elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() );
style[ style.checkActive( elementPath ) ? 'remove' : 'apply' ]( editor.document );
// Save the undo snapshot after all changes are affected. (#4899)
setTimeout( function()
{
editor.fire( 'saveSnapshot' );
}, 0 );
},
onRender : function()
{
editor.on( 'selectionChange', function( ev )
{
var currentTag = this.getValue();
var elementPath = ev.data.path;
for ( var tag in styles )
{
if ( styles[ tag ].checkActive( elementPath ) )
{
if ( tag != currentTag )
this.setValue( tag, editor.lang.format[ 'tag_' + tag ] );
return;
}
}
// If no styles match, just empty it.
this.setValue( '' );
},
this);
}
});
}
});
/**
* A list of semi colon separated style names (by default tags) representing
* the style definition for each entry to be displayed in the Format combo in
* the toolbar. Each entry must have its relative definition configuration in a
* setting named "format_(tagName)". For example, the "p" entry has its
* definition taken from config.format_p.
* @type String
* @default 'p;h1;h2;h3;h4;h5;h6;pre;address;div'
* @example
* config.format_tags = 'p;h2;h3;pre'
*/
CKEDITOR.config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre;address;div';
/**
* The style definition to be used to apply the "Normal" format.
* @type Object
* @default { element : 'p' }
* @example
* config.format_p = { element : 'p', attributes : { 'class' : 'normalPara' } };
*/
CKEDITOR.config.format_p = { element : 'p' };
/**
* The style definition to be used to apply the "Normal (DIV)" format.
* @type Object
* @default { element : 'div' }
* @example
* config.format_div = { element : 'div', attributes : { 'class' : 'normalDiv' } };
*/
CKEDITOR.config.format_div = { element : 'div' };
/**
* The style definition to be used to apply the "Formatted" format.
* @type Object
* @default { element : 'pre' }
* @example
* config.format_pre = { element : 'pre', attributes : { 'class' : 'code' } };
*/
CKEDITOR.config.format_pre = { element : 'pre' };
/**
* The style definition to be used to apply the "Address" format.
* @type Object
* @default { element : 'address' }
* @example
* config.format_address = { element : 'address', attributes : { 'class' : 'styledAddress' } };
*/
CKEDITOR.config.format_address = { element : 'address' };
/**
* The style definition to be used to apply the "Heading 1" format.
* @type Object
* @default { element : 'h1' }
* @example
* config.format_h1 = { element : 'h1', attributes : { 'class' : 'contentTitle1' } };
*/
CKEDITOR.config.format_h1 = { element : 'h1' };
/**
* The style definition to be used to apply the "Heading 1" format.
* @type Object
* @default { element : 'h2' }
* @example
* config.format_h2 = { element : 'h2', attributes : { 'class' : 'contentTitle2' } };
*/
CKEDITOR.config.format_h2 = { element : 'h2' };
/**
* The style definition to be used to apply the "Heading 1" format.
* @type Object
* @default { element : 'h3' }
* @example
* config.format_h3 = { element : 'h3', attributes : { 'class' : 'contentTitle3' } };
*/
CKEDITOR.config.format_h3 = { element : 'h3' };
/**
* The style definition to be used to apply the "Heading 1" format.
* @type Object
* @default { element : 'h4' }
* @example
* config.format_h4 = { element : 'h4', attributes : { 'class' : 'contentTitle4' } };
*/
CKEDITOR.config.format_h4 = { element : 'h4' };
/**
* The style definition to be used to apply the "Heading 1" format.
* @type Object
* @default { element : 'h5' }
* @example
* config.format_h5 = { element : 'h5', attributes : { 'class' : 'contentTitle5' } };
*/
CKEDITOR.config.format_h5 = { element : 'h5' };
/**
* The style definition to be used to apply the "Heading 1" format.
* @type Object
* @default { element : 'h6' }
* @example
* config.format_h6 = { element : 'h6', attributes : { 'class' : 'contentTitle6' } };
*/
CKEDITOR.config.format_h6 = { element : 'h6' }; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/format/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "sourcearea" plugin. It registers the "source" editing
* mode, which displays the raw data being edited in the editor.
*/
CKEDITOR.plugins.add( 'sourcearea',
{
requires : [ 'editingblock' ],
init : function( editor )
{
var sourcearea = CKEDITOR.plugins.sourcearea,
win = CKEDITOR.document.getWindow();
editor.on( 'editingBlockReady', function()
{
var textarea,
onResize;
editor.addMode( 'source',
{
load : function( holderElement, data )
{
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
holderElement.setStyle( 'position', 'relative' );
// Create the source area <textarea>.
editor.textarea = textarea = new CKEDITOR.dom.element( 'textarea' );
textarea.setAttributes(
{
dir : 'ltr',
tabIndex : CKEDITOR.env.webkit ? -1 : editor.tabIndex,
'role' : 'textbox',
'aria-label' : editor.lang.editorTitle.replace( '%1', editor.name )
});
textarea.addClass( 'cke_source' );
textarea.addClass( 'cke_enable_context_menu' );
editor.readOnly && textarea.setAttribute( 'readOnly', 'readonly' );
var styles =
{
// IE7 has overflow the <textarea> from wrapping table cell.
width : CKEDITOR.env.ie7Compat ? '99%' : '100%',
height : '100%',
resize : 'none',
outline : 'none',
'text-align' : 'left'
};
// Having to make <textarea> fixed sized to conque the following bugs:
// 1. The textarea height/width='100%' doesn't constraint to the 'td' in IE6/7.
// 2. Unexpected vertical-scrolling behavior happens whenever focus is moving out of editor
// if text content within it has overflowed. (#4762)
if ( CKEDITOR.env.ie )
{
onResize = function()
{
// Holder rectange size is stretched by textarea,
// so hide it just for a moment.
textarea.hide();
textarea.setStyle( 'height', holderElement.$.clientHeight + 'px' );
textarea.setStyle( 'width', holderElement.$.clientWidth + 'px' );
// When we have proper holder size, show textarea again.
textarea.show();
};
editor.on( 'resize', onResize );
win.on( 'resize', onResize );
setTimeout( onResize, 0 );
}
// Reset the holder element and append the
// <textarea> to it.
holderElement.setHtml( '' );
holderElement.append( textarea );
textarea.setStyles( styles );
editor.fire( 'ariaWidget', textarea );
textarea.on( 'blur', function()
{
editor.focusManager.blur();
});
textarea.on( 'focus', function()
{
editor.focusManager.focus();
});
// The editor data "may be dirty" after this point.
editor.mayBeDirty = true;
// Set the <textarea> value.
this.loadData( data );
var keystrokeHandler = editor.keystrokeHandler;
if ( keystrokeHandler )
keystrokeHandler.attach( textarea );
setTimeout( function()
{
editor.mode = 'source';
editor.fire( 'mode', { previousMode : editor._.previousMode } );
},
( CKEDITOR.env.gecko || CKEDITOR.env.webkit ) ? 100 : 0 );
},
loadData : function( data )
{
textarea.setValue( data );
editor.fire( 'dataReady' );
},
getData : function()
{
return textarea.getValue();
},
getSnapshotData : function()
{
return textarea.getValue();
},
unload : function( holderElement )
{
textarea.clearCustomData();
editor.textarea = textarea = null;
if ( onResize )
{
editor.removeListener( 'resize', onResize );
win.removeListener( 'resize', onResize );
}
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
holderElement.removeStyle( 'position' );
},
focus : function()
{
textarea.focus();
}
});
});
editor.on( 'readOnly', function()
{
if ( editor.mode == 'source' )
{
if ( editor.readOnly )
editor.textarea.setAttribute( 'readOnly', 'readonly' );
else
editor.textarea.removeAttribute( 'readOnly' );
}
});
editor.addCommand( 'source', sourcearea.commands.source );
if ( editor.ui.addButton )
{
editor.ui.addButton( 'Source',
{
label : editor.lang.source,
command : 'source'
});
}
editor.on( 'mode', function()
{
editor.getCommand( 'source' ).setState(
editor.mode == 'source' ?
CKEDITOR.TRISTATE_ON :
CKEDITOR.TRISTATE_OFF );
});
}
});
/**
* Holds the definition of commands an UI elements included with the sourcearea
* plugin.
* @example
*/
CKEDITOR.plugins.sourcearea =
{
commands :
{
source :
{
modes : { wysiwyg:1, source:1 },
editorFocus : false,
readOnly : 1,
exec : function( editor )
{
if ( editor.mode == 'wysiwyg' )
editor.fire( 'saveSnapshot' );
editor.getCommand( 'source' ).setState( CKEDITOR.TRISTATE_DISABLED );
editor.setMode( editor.mode == 'source' ? 'wysiwyg' : 'source' );
},
canUndo : false
}
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/sourcearea/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Blockquote.
*/
(function()
{
function getState( editor, path )
{
var firstBlock = path.block || path.blockLimit;
if ( !firstBlock || firstBlock.getName() == 'body' )
return CKEDITOR.TRISTATE_OFF;
// See if the first block has a blockquote parent.
if ( firstBlock.getAscendant( 'blockquote', true ) )
return CKEDITOR.TRISTATE_ON;
return CKEDITOR.TRISTATE_OFF;
}
function onSelectionChange( evt )
{
var editor = evt.editor;
if ( editor.readOnly )
return;
var command = editor.getCommand( 'blockquote' );
command.state = getState( editor, evt.data.path );
command.fire( 'state' );
}
function noBlockLeft( bqBlock )
{
for ( var i = 0, length = bqBlock.getChildCount(), child ; i < length && ( child = bqBlock.getChild( i ) ) ; i++ )
{
if ( child.type == CKEDITOR.NODE_ELEMENT && child.isBlockBoundary() )
return false;
}
return true;
}
var commandObject =
{
exec : function( editor )
{
var state = editor.getCommand( 'blockquote' ).state,
selection = editor.getSelection(),
range = selection && selection.getRanges( true )[0];
if ( !range )
return;
var bookmarks = selection.createBookmarks();
// Kludge for #1592: if the bookmark nodes are in the beginning of
// blockquote, then move them to the nearest block element in the
// blockquote.
if ( CKEDITOR.env.ie )
{
var bookmarkStart = bookmarks[0].startNode,
bookmarkEnd = bookmarks[0].endNode,
cursor;
if ( bookmarkStart && bookmarkStart.getParent().getName() == 'blockquote' )
{
cursor = bookmarkStart;
while ( ( cursor = cursor.getNext() ) )
{
if ( cursor.type == CKEDITOR.NODE_ELEMENT &&
cursor.isBlockBoundary() )
{
bookmarkStart.move( cursor, true );
break;
}
}
}
if ( bookmarkEnd
&& bookmarkEnd.getParent().getName() == 'blockquote' )
{
cursor = bookmarkEnd;
while ( ( cursor = cursor.getPrevious() ) )
{
if ( cursor.type == CKEDITOR.NODE_ELEMENT &&
cursor.isBlockBoundary() )
{
bookmarkEnd.move( cursor );
break;
}
}
}
}
var iterator = range.createIterator(),
block;
iterator.enlargeBr = editor.config.enterMode != CKEDITOR.ENTER_BR;
if ( state == CKEDITOR.TRISTATE_OFF )
{
var paragraphs = [];
while ( ( block = iterator.getNextParagraph() ) )
paragraphs.push( block );
// If no paragraphs, create one from the current selection position.
if ( paragraphs.length < 1 )
{
var para = editor.document.createElement( editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ),
firstBookmark = bookmarks.shift();
range.insertNode( para );
para.append( new CKEDITOR.dom.text( '\ufeff', editor.document ) );
range.moveToBookmark( firstBookmark );
range.selectNodeContents( para );
range.collapse( true );
firstBookmark = range.createBookmark();
paragraphs.push( para );
bookmarks.unshift( firstBookmark );
}
// Make sure all paragraphs have the same parent.
var commonParent = paragraphs[0].getParent(),
tmp = [];
for ( var i = 0 ; i < paragraphs.length ; i++ )
{
block = paragraphs[i];
commonParent = commonParent.getCommonAncestor( block.getParent() );
}
// The common parent must not be the following tags: table, tbody, tr, ol, ul.
var denyTags = { table : 1, tbody : 1, tr : 1, ol : 1, ul : 1 };
while ( denyTags[ commonParent.getName() ] )
commonParent = commonParent.getParent();
// Reconstruct the block list to be processed such that all resulting blocks
// satisfy parentNode.equals( commonParent ).
var lastBlock = null;
while ( paragraphs.length > 0 )
{
block = paragraphs.shift();
while ( !block.getParent().equals( commonParent ) )
block = block.getParent();
if ( !block.equals( lastBlock ) )
tmp.push( block );
lastBlock = block;
}
// If any of the selected blocks is a blockquote, remove it to prevent
// nested blockquotes.
while ( tmp.length > 0 )
{
block = tmp.shift();
if ( block.getName() == 'blockquote' )
{
var docFrag = new CKEDITOR.dom.documentFragment( editor.document );
while ( block.getFirst() )
{
docFrag.append( block.getFirst().remove() );
paragraphs.push( docFrag.getLast() );
}
docFrag.replace( block );
}
else
paragraphs.push( block );
}
// Now we have all the blocks to be included in a new blockquote node.
var bqBlock = editor.document.createElement( 'blockquote' );
bqBlock.insertBefore( paragraphs[0] );
while ( paragraphs.length > 0 )
{
block = paragraphs.shift();
bqBlock.append( block );
}
}
else if ( state == CKEDITOR.TRISTATE_ON )
{
var moveOutNodes = [],
database = {};
while ( ( block = iterator.getNextParagraph() ) )
{
var bqParent = null,
bqChild = null;
while ( block.getParent() )
{
if ( block.getParent().getName() == 'blockquote' )
{
bqParent = block.getParent();
bqChild = block;
break;
}
block = block.getParent();
}
// Remember the blocks that were recorded down in the moveOutNodes array
// to prevent duplicates.
if ( bqParent && bqChild && !bqChild.getCustomData( 'blockquote_moveout' ) )
{
moveOutNodes.push( bqChild );
CKEDITOR.dom.element.setMarker( database, bqChild, 'blockquote_moveout', true );
}
}
CKEDITOR.dom.element.clearAllMarkers( database );
var movedNodes = [],
processedBlockquoteBlocks = [];
database = {};
while ( moveOutNodes.length > 0 )
{
var node = moveOutNodes.shift();
bqBlock = node.getParent();
// If the node is located at the beginning or the end, just take it out
// without splitting. Otherwise, split the blockquote node and move the
// paragraph in between the two blockquote nodes.
if ( !node.getPrevious() )
node.remove().insertBefore( bqBlock );
else if ( !node.getNext() )
node.remove().insertAfter( bqBlock );
else
{
node.breakParent( node.getParent() );
processedBlockquoteBlocks.push( node.getNext() );
}
// Remember the blockquote node so we can clear it later (if it becomes empty).
if ( !bqBlock.getCustomData( 'blockquote_processed' ) )
{
processedBlockquoteBlocks.push( bqBlock );
CKEDITOR.dom.element.setMarker( database, bqBlock, 'blockquote_processed', true );
}
movedNodes.push( node );
}
CKEDITOR.dom.element.clearAllMarkers( database );
// Clear blockquote nodes that have become empty.
for ( i = processedBlockquoteBlocks.length - 1 ; i >= 0 ; i-- )
{
bqBlock = processedBlockquoteBlocks[i];
if ( noBlockLeft( bqBlock ) )
bqBlock.remove();
}
if ( editor.config.enterMode == CKEDITOR.ENTER_BR )
{
var firstTime = true;
while ( movedNodes.length )
{
node = movedNodes.shift();
if ( node.getName() == 'div' )
{
docFrag = new CKEDITOR.dom.documentFragment( editor.document );
var needBeginBr = firstTime && node.getPrevious() &&
!( node.getPrevious().type == CKEDITOR.NODE_ELEMENT && node.getPrevious().isBlockBoundary() );
if ( needBeginBr )
docFrag.append( editor.document.createElement( 'br' ) );
var needEndBr = node.getNext() &&
!( node.getNext().type == CKEDITOR.NODE_ELEMENT && node.getNext().isBlockBoundary() );
while ( node.getFirst() )
node.getFirst().remove().appendTo( docFrag );
if ( needEndBr )
docFrag.append( editor.document.createElement( 'br' ) );
docFrag.replace( node );
firstTime = false;
}
}
}
}
selection.selectBookmarks( bookmarks );
editor.focus();
}
};
CKEDITOR.plugins.add( 'blockquote',
{
init : function( editor )
{
editor.addCommand( 'blockquote', commandObject );
editor.ui.addButton( 'Blockquote',
{
label : editor.lang.blockquote,
command : 'blockquote'
} );
editor.on( 'selectionChange', onSelectionChange );
},
requires : [ 'domiterator' ]
} );
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/blockquote/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file AutoGrow plugin
*/
(function(){
// Actual content height, figured out by appending check the last element's document position.
function contentHeight( scrollable )
{
var overflowY = scrollable.getStyle( 'overflow-y' );
var doc = scrollable.getDocument();
// Create a temporary marker element.
var marker = CKEDITOR.dom.element.createFromHtml( '<span style="margin:0;padding:0;border:0;clear:both;width:1px;height:1px;display:block;">' + ( CKEDITOR.env.webkit ? ' ' : '' ) + '</span>', doc );
doc[ CKEDITOR.env.ie? 'getBody' : 'getDocumentElement']().append( marker );
var height = marker.getDocumentPosition( doc ).y + marker.$.offsetHeight;
marker.remove();
scrollable.setStyle( 'overflow-y', overflowY );
return height;
}
var resizeEditor = function( editor )
{
if ( !editor.window )
return;
var doc = editor.document,
iframe = new CKEDITOR.dom.element( doc.getWindow().$.frameElement ),
body = doc.getBody(),
htmlElement = doc.getDocumentElement(),
currentHeight = editor.window.getViewPaneSize().height,
// Quirks mode overflows body, standards overflows document element
scrollable = doc.$.compatMode == 'BackCompat' ? body : htmlElement,
newHeight = contentHeight( scrollable );
// Additional space specified by user.
newHeight += ( editor.config.autoGrow_bottomSpace || 0 );
var min = editor.config.autoGrow_minHeight != undefined ? editor.config.autoGrow_minHeight : 200,
max = editor.config.autoGrow_maxHeight || Infinity;
newHeight = Math.max( newHeight, min );
newHeight = Math.min( newHeight, max );
if ( newHeight != currentHeight )
{
newHeight = editor.fire( 'autoGrow', { currentHeight : currentHeight, newHeight : newHeight } ).newHeight;
editor.resize( editor.container.getStyle( 'width' ), newHeight, true );
}
if ( scrollable.$.scrollHeight > scrollable.$.clientHeight && newHeight < max )
scrollable.setStyle( 'overflow-y', 'hidden' );
else
scrollable.removeStyle( 'overflow-y' );
};
CKEDITOR.plugins.add( 'autogrow',
{
init : function( editor )
{
editor.addCommand( 'autogrow', { exec : resizeEditor, modes : { wysiwyg:1 }, readOnly: 1, canUndo: false, editorFocus: false } );
var eventsList = { contentDom:1, key:1, selectionChange:1, insertElement:1 };
editor.config.autoGrow_onStartup && ( eventsList[ 'instanceReady' ] = 1 );
for ( var eventName in eventsList )
{
editor.on( eventName, function( evt )
{
var maximize = editor.getCommand( 'maximize' );
// Some time is required for insertHtml, and it gives other events better performance as well.
if ( evt.editor.mode == 'wysiwyg' &&
// Disable autogrow when the editor is maximized .(#6339)
( !maximize || maximize.state != CKEDITOR.TRISTATE_ON ) )
{
setTimeout( function()
{
resizeEditor( evt.editor );
// Second pass to make correction upon
// the first resize, e.g. scrollbar.
resizeEditor( evt.editor );
}, 100 );
}
});
}
}
});
})();
/**
* The minimum height that the editor can reach using the AutoGrow feature.
* @name CKEDITOR.config.autoGrow_minHeight
* @type Number
* @default <code>200</code>
* @since 3.4
* @example
* config.autoGrow_minHeight = 300;
*/
/**
* The maximum height that the editor can reach using the AutoGrow feature. Zero means unlimited.
* @name CKEDITOR.config.autoGrow_maxHeight
* @type Number
* @default <code>0</code>
* @since 3.4
* @example
* config.autoGrow_maxHeight = 400;
*/
/**
* Whether to have the auto grow happen on editor creation.
* @name CKEDITOR.config.autoGrow_onStartup
* @type Boolean
* @default false
* @since 3.6.2
* @example
* config.autoGrow_onStartup = true;
*/
/**
* Fired when the AutoGrow plugin is about to change the size of the editor.
* @name CKEDITOR.editor#autogrow
* @event
* @param {Number} data.currentHeight The current height of the editor (before resizing).
* @param {Number} data.newHeight The new height of the editor (after resizing). It can be changed
* to determine a different height value to be used instead.
*/
/**
* Extra height in pixel to leave between the bottom boundary of content with document size when auto resizing.
* @name CKEDITOR.config.autoGrow_bottomSpace
* @type Number
* @default 0
* @since 3.6.2
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/autogrow/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.plugins.add( 'templates',
{
requires : [ 'dialog' ],
init : function( editor )
{
CKEDITOR.dialog.add( 'templates', CKEDITOR.getUrl( this.path + 'dialogs/templates.js' ) );
editor.addCommand( 'templates', new CKEDITOR.dialogCommand( 'templates' ) );
editor.ui.addButton( 'Templates',
{
label : editor.lang.templates.button,
command : 'templates'
});
}
});
var templates = {},
loadedTemplatesFiles = {};
CKEDITOR.addTemplates = function( name, definition )
{
templates[ name ] = definition;
};
CKEDITOR.getTemplates = function( name )
{
return templates[ name ];
};
CKEDITOR.loadTemplates = function( templateFiles, callback )
{
// Holds the templates files to be loaded.
var toLoad = [];
// Look for pending template files to get loaded.
for ( var i = 0, count = templateFiles.length ; i < count ; i++ )
{
if ( !loadedTemplatesFiles[ templateFiles[ i ] ] )
{
toLoad.push( templateFiles[ i ] );
loadedTemplatesFiles[ templateFiles[ i ] ] = 1;
}
}
if ( toLoad.length )
CKEDITOR.scriptLoader.load( toLoad, callback );
else
setTimeout( callback, 0 );
};
})();
/**
* The templates definition set to use. It accepts a list of names separated by
* comma. It must match definitions loaded with the templates_files setting.
* @type String
* @default 'default'
* @example
* config.templates = 'my_templates';
*/
/**
* The list of templates definition files to load.
* @type (String) Array
* @default [ 'plugins/templates/templates/default.js' ]
* @example
* config.templates_files =
* [
* '/editor_templates/site_default.js',
* 'http://www.example.com/user_templates.js
* ];
*
*/
CKEDITOR.config.templates_files =
[
CKEDITOR.getUrl(
'_source/' + // @Packager.RemoveLine
'plugins/templates/templates/default.js' )
];
/**
* Whether the "Replace actual contents" checkbox is checked by default in the
* Templates dialog.
* @type Boolean
* @default true
* @example
* config.templates_replaceContent = false;
*/
CKEDITOR.config.templates_replaceContent = true; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/templates/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var doc = CKEDITOR.document;
CKEDITOR.dialog.add( 'templates', function( editor )
{
// Constructs the HTML view of the specified templates data.
function renderTemplatesList( container, templatesDefinitions )
{
// clear loading wait text.
container.setHtml( '' );
for ( var i = 0, totalDefs = templatesDefinitions.length ; i < totalDefs ; i++ )
{
var definition = CKEDITOR.getTemplates( templatesDefinitions[ i ] ),
imagesPath = definition.imagesPath,
templates = definition.templates,
count = templates.length;
for ( var j = 0 ; j < count ; j++ )
{
var template = templates[ j ],
item = createTemplateItem( template, imagesPath );
item.setAttribute( 'aria-posinset', j + 1 );
item.setAttribute( 'aria-setsize', count );
container.append( item );
}
}
}
function createTemplateItem( template, imagesPath )
{
var item = CKEDITOR.dom.element.createFromHtml(
'<a href="javascript:void(0)" tabIndex="-1" role="option" >' +
'<div class="cke_tpl_item"></div>' +
'</a>' );
// Build the inner HTML of our new item DIV.
var html = '<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';
if ( template.image && imagesPath )
html += '<td class="cke_tpl_preview_img"><img src="' + CKEDITOR.getUrl( imagesPath + template.image ) + '"' + ( CKEDITOR.env.ie6Compat ? ' onload="this.width=this.width"' : '' ) + ' alt="" title=""></td>';
html += '<td style="white-space:normal;"><span class="cke_tpl_title">' + template.title + '</span><br/>';
if ( template.description )
html += '<span>' + template.description + '</span>';
html += '</td></tr></table>';
item.getFirst().setHtml( html );
item.on( 'click', function() { insertTemplate( template.html ); } );
return item;
}
/**
* Insert the specified template content into editor.
* @param {Number} index
*/
function insertTemplate( html )
{
var dialog = CKEDITOR.dialog.getCurrent(),
isInsert = dialog.getValueOf( 'selectTpl', 'chkInsertOpt' );
if ( isInsert )
{
// Everything should happen after the document is loaded (#4073).
editor.on( 'contentDom', function( evt )
{
evt.removeListener();
dialog.hide();
// Place the cursor at the first editable place.
var range = new CKEDITOR.dom.range( editor.document );
range.moveToElementEditStart( editor.document.getBody() );
range.select( 1 );
setTimeout( function()
{
editor.fire( 'saveSnapshot' );
}, 0 );
});
editor.fire( 'saveSnapshot' );
editor.setData( html );
}
else
{
editor.insertHtml( html );
dialog.hide();
}
}
function keyNavigation( evt )
{
var target = evt.data.getTarget(),
onList = listContainer.equals( target );
// Keyboard navigation for template list.
if ( onList || listContainer.contains( target ) )
{
var keystroke = evt.data.getKeystroke(),
items = listContainer.getElementsByTag( 'a' ),
focusItem;
if ( items )
{
// Focus not yet onto list items?
if ( onList )
focusItem = items.getItem( 0 );
else
{
switch ( keystroke )
{
case 40 : // ARROW-DOWN
focusItem = target.getNext();
break;
case 38 : // ARROW-UP
focusItem = target.getPrevious();
break;
case 13 : // ENTER
case 32 : // SPACE
target.fire( 'click' );
}
}
if ( focusItem )
{
focusItem.focus();
evt.data.preventDefault();
}
}
}
}
// Load skin at first.
CKEDITOR.skins.load( editor, 'templates' );
var listContainer;
var templateListLabelId = 'cke_tpl_list_label_' + CKEDITOR.tools.getNextNumber(),
lang = editor.lang.templates,
config = editor.config;
return {
title :editor.lang.templates.title,
minWidth : CKEDITOR.env.ie ? 440 : 400,
minHeight : 340,
contents :
[
{
id :'selectTpl',
label : lang.title,
elements :
[
{
type : 'vbox',
padding : 5,
children :
[
{
id : 'selectTplText',
type : 'html',
html :
'<span>' +
lang.selectPromptMsg +
'</span>'
},
{
id : 'templatesList',
type : 'html',
focus: true,
html :
'<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="' + templateListLabelId+ '">' +
'<div class="cke_tpl_loading"><span></span></div>' +
'</div>' +
'<span class="cke_voice_label" id="' + templateListLabelId + '">' + lang.options+ '</span>'
},
{
id : 'chkInsertOpt',
type : 'checkbox',
label : lang.insertOption,
'default' : config.templates_replaceContent
}
]
}
]
}
],
buttons : [ CKEDITOR.dialog.cancelButton ],
onShow : function()
{
var templatesListField = this.getContentElement( 'selectTpl' , 'templatesList' );
listContainer = templatesListField.getElement();
CKEDITOR.loadTemplates( config.templates_files, function()
{
var templates = ( config.templates || 'default' ).split( ',' );
if ( templates.length )
{
renderTemplatesList( listContainer, templates );
templatesListField.focus();
}
else
{
listContainer.setHtml(
'<div class="cke_tpl_empty">' +
'<span>' + lang.emptyListMsg + '</span>' +
'</div>' );
}
});
this._.element.on( 'keydown', keyNavigation );
},
onHide : function()
{
this._.element.removeListener( 'keydown', keyNavigation );
}
};
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/templates/dialogs/templates.js | templates.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Register a templates definition set named "default".
CKEDITOR.addTemplates( 'default',
{
// The name of sub folder which hold the shortcut preview images of the
// templates.
imagesPath : CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
// The templates definitions.
templates :
[
{
title: 'Image and Title',
image: 'template1.gif',
description: 'One main image with a title and text that surround the image.',
html:
'<h3>' +
'<img style="margin-right: 10px" height="100" width="100" align="left"/>' +
'Type the title here'+
'</h3>' +
'<p>' +
'Type the text here' +
'</p>'
},
{
title: 'Strange Template',
image: 'template2.gif',
description: 'A template that defines two colums, each one with a title, and some text.',
html:
'<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +
'<tr>' +
'<td style="width:50%">' +
'<h3>Title 1</h3>' +
'</td>' +
'<td></td>' +
'<td style="width:50%">' +
'<h3>Title 2</h3>' +
'</td>' +
'</tr>' +
'<tr>' +
'<td>' +
'Text 1' +
'</td>' +
'<td></td>' +
'<td>' +
'Text 2' +
'</td>' +
'</tr>' +
'</table>' +
'<p>' +
'More text goes here.' +
'</p>'
},
{
title: 'Text and Table',
image: 'template3.gif',
description: 'A title with some text and a table.',
html:
'<div style="width: 80%">' +
'<h3>' +
'Title goes here' +
'</h3>' +
'<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +
'<caption style="border:solid 1px black">' +
'<strong>Table title</strong>' +
'</caption>' +
'</tr>' +
'<tr>' +
'<td> </td>' +
'<td> </td>' +
'<td> </td>' +
'</tr>' +
'<tr>' +
'<td> </td>' +
'<td> </td>' +
'<td> </td>' +
'</tr>' +
'<tr>' +
'<td> </td>' +
'<td> </td>' +
'<td> </td>' +
'</tr>' +
'</table>' +
'<p>' +
'Type the text here' +
'</p>' +
'</div>'
}
]
}); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/templates/templates/default.js | default.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.on( 'dialogDefinition', function( ev )
{
var tab, name = ev.data.name,
definition = ev.data.definition;
if ( name == 'link' )
{
definition.removeContents( 'target' );
definition.removeContents( 'upload' );
definition.removeContents( 'advanced' );
tab = definition.getContents( 'info' );
tab.remove( 'emailSubject' );
tab.remove( 'emailBody' );
}
else if ( name == 'image' )
{
definition.removeContents( 'advanced' );
tab = definition.getContents( 'Link' );
tab.remove( 'cmbTarget' );
tab = definition.getContents( 'info' );
tab.remove( 'txtAlt' );
tab.remove( 'basic' );
}
});
var bbcodeMap = { 'b' : 'strong', 'u': 'u', 'i' : 'em', 'color' : 'span', 'size' : 'span', 'quote' : 'blockquote', 'code' : 'code', 'url' : 'a', 'email' : 'span', 'img' : 'span', '*' : 'li', 'list' : 'ol' },
convertMap = { 'strong' : 'b' , 'b' : 'b', 'u': 'u', 'em' : 'i', 'i': 'i', 'code' : 'code', 'li' : '*' },
tagnameMap = { 'strong' : 'b', 'em' : 'i', 'u' : 'u', 'li' : '*', 'ul' : 'list', 'ol' : 'list', 'code' : 'code', 'a' : 'link', 'img' : 'img', 'blockquote' : 'quote' },
stylesMap = { 'color' : 'color', 'size' : 'font-size' },
attributesMap = { 'url' : 'href', 'email' : 'mailhref', 'quote': 'cite', 'list' : 'listType' };
// List of block-like tags.
var dtd = CKEDITOR.dtd,
blockLikeTags = CKEDITOR.tools.extend( { table:1 }, dtd.$block, dtd.$listItem, dtd.$tableContent, dtd.$list );
var semicolonFixRegex = /\s*(?:;\s*|$)/;
function serializeStyleText( stylesObject )
{
var styleText = '';
for ( var style in stylesObject )
{
var styleVal = stylesObject[ style ],
text = ( style + ':' + styleVal ).replace( semicolonFixRegex, ';' );
styleText += text;
}
return styleText;
}
function parseStyleText( styleText )
{
var retval = {};
( styleText || '' )
.replace( /"/g, '"' )
.replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, function( match, name, value )
{
retval[ name.toLowerCase() ] = value;
} );
return retval;
}
function RGBToHex( cssStyle )
{
return cssStyle.replace( /(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi, function( match, red, green, blue )
{
red = parseInt( red, 10 ).toString( 16 );
green = parseInt( green, 10 ).toString( 16 );
blue = parseInt( blue, 10 ).toString( 16 );
var color = [red, green, blue] ;
// Add padding zeros if the hex value is less than 0x10.
for ( var i = 0 ; i < color.length ; i++ )
color[i] = String( '0' + color[i] ).slice( -2 ) ;
return '#' + color.join( '' ) ;
});
}
// Maintain the map of smiley-to-description.
var smileyMap = {"smiley":":)","sad":":(","wink":";)","laugh":":D","cheeky":":P","blush":":*)","surprise":":-o","indecision":":|","angry":">:(","angel":"o:)","cool":"8-)","devil":">:-)","crying":";(","kiss":":-*" },
smileyReverseMap = {},
smileyRegExp = [];
// Build regexp for the list of smiley text.
for ( var i in smileyMap )
{
smileyReverseMap[ smileyMap[ i ] ] = i;
smileyRegExp.push( smileyMap[ i ].replace( /\(|\)|\:|\/|\*|\-|\|/g, function( match ) { return '\\' + match; } ) );
}
smileyRegExp = new RegExp( smileyRegExp.join( '|' ), 'g' );
var decodeHtml = ( function ()
{
var regex = [],
entities =
{
nbsp : '\u00A0', // IE | FF
shy : '\u00AD', // IE
gt : '\u003E', // IE | FF | -- | Opera
lt : '\u003C' // IE | FF | Safari | Opera
};
for ( var entity in entities )
regex.push( entity );
regex = new RegExp( '&(' + regex.join( '|' ) + ');', 'g' );
return function( html )
{
return html.replace( regex, function( match, entity )
{
return entities[ entity ];
});
};
})();
CKEDITOR.BBCodeParser = function()
{
this._ =
{
bbcPartsRegex : /(?:\[([^\/\]=]*?)(?:=([^\]]*?))?\])|(?:\[\/([a-z]{1,16})\])/ig
};
};
CKEDITOR.BBCodeParser.prototype =
{
parse : function( bbcode )
{
var parts,
part,
lastIndex = 0;
while ( ( parts = this._.bbcPartsRegex.exec( bbcode ) ) )
{
var tagIndex = parts.index;
if ( tagIndex > lastIndex )
{
var text = bbcode.substring( lastIndex, tagIndex );
this.onText( text, 1 );
}
lastIndex = this._.bbcPartsRegex.lastIndex;
/*
"parts" is an array with the following items:
0 : The entire match for opening/closing tags and line-break;
1 : line-break;
2 : open of tag excludes option;
3 : tag option;
4 : close of tag;
*/
part = ( parts[ 1 ] || parts[ 3 ] || '' ).toLowerCase();
// Unrecognized tags should be delivered as a simple text (#7860).
if ( part && !bbcodeMap[ part ] )
{
this.onText( parts[ 0 ] );
continue;
}
// Opening tag
if ( parts[ 1 ] )
{
var tagName = bbcodeMap[ part ],
attribs = {},
styles = {},
optionPart = parts[ 2 ];
if ( optionPart )
{
if ( part == 'list' )
{
if ( !isNaN( optionPart ) )
optionPart = 'decimal';
else if ( /^[a-z]+$/.test( optionPart ) )
optionPart = 'lower-alpha';
else if ( /^[A-Z]+$/.test( optionPart ) )
optionPart = 'upper-alpha';
}
if ( stylesMap[ part ] )
{
// Font size represents percentage.
if ( part == 'size' )
optionPart += '%';
styles[ stylesMap[ part ] ] = optionPart;
attribs.style = serializeStyleText( styles );
}
else if ( attributesMap[ part ] )
attribs[ attributesMap[ part ] ] = optionPart;
}
// Two special handling - image and email, protect them
// as "span" with an attribute marker.
if ( part == 'email' || part == 'img' )
attribs[ 'bbcode' ] = part;
this.onTagOpen( tagName, attribs, CKEDITOR.dtd.$empty[ tagName ] );
}
// Closing tag
else if ( parts[ 3 ] )
this.onTagClose( bbcodeMap[ part ] );
}
if ( bbcode.length > lastIndex )
this.onText( bbcode.substring( lastIndex, bbcode.length ), 1 );
}
};
/**
* Creates a {@link CKEDITOR.htmlParser.fragment} from an HTML string.
* @param {String} source The HTML to be parsed, filling the fragment.
* @param {Number} [fixForBody=false] Wrap body with specified element if needed.
* @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.fromBBCode = function( source )
{
var parser = new CKEDITOR.BBCodeParser(),
fragment = new CKEDITOR.htmlParser.fragment(),
pendingInline = [],
pendingBrs = 0,
currentNode = fragment,
returnPoint;
function checkPending( newTagName )
{
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 ] ) )
{
// 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--;
}
}
}
}
function checkPendingBrs( tagName, closing )
{
var len = currentNode.children.length,
previous = len > 0 && currentNode.children[ len - 1 ],
lineBreakParent = !previous && BBCodeWriter.getRule( tagnameMap[ currentNode.name ], 'breakAfterOpen' ),
lineBreakPrevious = previous && previous.type == CKEDITOR.NODE_ELEMENT && BBCodeWriter.getRule( tagnameMap[ previous.name ], 'breakAfterClose' ),
lineBreakCurrent = tagName && BBCodeWriter.getRule( tagnameMap[ tagName ], closing ? 'breakBeforeClose' : 'breakBeforeOpen' );
if ( pendingBrs && ( lineBreakParent || lineBreakPrevious || lineBreakCurrent ) )
pendingBrs--;
// 1. Either we're at the end of block, where it requires us to compensate the br filler
// removing logic (from htmldataprocessor).
// 2. Or we're at the end of pseudo block, where it requires us to compensate
// the bogus br effect.
if ( pendingBrs && tagName in blockLikeTags )
pendingBrs++;
while ( pendingBrs && pendingBrs-- )
currentNode.children.push( previous = new CKEDITOR.htmlParser.element( 'br' ) );
}
function addElement( node, target )
{
checkPendingBrs( node.name, 1 );
target = target || currentNode || fragment;
var len = target.children.length,
previous = len > 0 && target.children[ len - 1 ] || null;
node.previous = previous;
node.parent = target;
target.children.push( node );
if ( node.returnPoint )
{
currentNode = node.returnPoint;
delete node.returnPoint;
}
}
parser.onTagOpen = function( tagName, attributes, selfClosing )
{
var element = new CKEDITOR.htmlParser.element( tagName, attributes );
// This is a tag to be removed if empty, so do not add it immediately.
if ( CKEDITOR.dtd.$removeEmpty[ tagName ] )
{
pendingInline.push( element );
return;
}
var currentName = currentNode.name;
var currentDtd = currentName
&& ( CKEDITOR.dtd[ currentName ]
|| ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span ) );
// If the element cannot be child of the current element.
if ( currentDtd && !currentDtd[ tagName ] )
{
var reApply = false,
addPoint; // New position to start adding nodes.
// If the element name is the same as the current element name,
// then just close the current one and append the new one to the
// parent. This situation usually happens with <p>, <li>, <dt> and
// <dd>, specially in IE. Do not enter in this if block in this case.
if ( tagName == currentName )
addElement( currentNode, currentNode.parent );
else if ( tagName in CKEDITOR.dtd.$listItem )
{
parser.onTagOpen( 'ul', {} );
addPoint = currentNode;
reApply = true;
}
else
{
addElement( currentNode, currentNode.parent );
// The current element is an inline element, which
// cannot hold the new one. Put it in the pending list,
// and try adding the new one after it.
pendingInline.unshift( currentNode );
reApply = true;
}
if ( addPoint )
currentNode = addPoint;
// Try adding it to the return point, or the parent element.
else
currentNode = currentNode.returnPoint || currentNode.parent;
if ( reApply )
{
parser.onTagOpen.apply( this, arguments );
return;
}
}
checkPending( tagName );
checkPendingBrs( tagName );
element.parent = currentNode;
element.returnPoint = returnPoint;
returnPoint = 0;
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.type && 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 );
candidate = candidate.parent;
}
if ( candidate.type )
{
// 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;
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 );
}
};
parser.onText = function( text )
{
var currentDtd = CKEDITOR.dtd[ currentNode.name ];
if ( !currentDtd || currentDtd[ '#' ] )
{
checkPendingBrs();
checkPending();
text.replace(/([\r\n])|[^\r\n]*/g, function( piece, lineBreak )
{
if ( lineBreak !== undefined && lineBreak.length )
pendingBrs++;
else if ( piece.length )
{
var lastIndex = 0;
// Create smiley from text emotion.
piece.replace( smileyRegExp, function( match, index )
{
addElement( new CKEDITOR.htmlParser.text( piece.substring( lastIndex, index ) ), currentNode );
addElement( new CKEDITOR.htmlParser.element( 'smiley', { 'desc': smileyReverseMap[ match ] } ), currentNode );
lastIndex = index + match.length;
});
if ( lastIndex != piece.length )
addElement( new CKEDITOR.htmlParser.text( piece.substring( lastIndex, piece.length ) ), currentNode );
}
});
}
};
// Parse it.
parser.parse( CKEDITOR.tools.htmlEncode( source ) );
// Close all hanging nodes.
while ( currentNode.type )
{
var parent = currentNode.parent,
node = currentNode;
addElement( node, parent );
currentNode = parent;
}
return fragment;
};
CKEDITOR.htmlParser.BBCodeWriter = CKEDITOR.tools.createClass(
{
$ : function()
{
this._ =
{
output : [],
rules : []
};
// List and list item.
this.setRules( 'list',
{
breakBeforeOpen : 1,
breakAfterOpen : 1,
breakBeforeClose : 1,
breakAfterClose : 1
} );
this.setRules( '*',
{
breakBeforeOpen : 1,
breakAfterOpen : 0,
breakBeforeClose : 1,
breakAfterClose : 0
} );
this.setRules( 'quote',
{
breakBeforeOpen : 1,
breakAfterOpen : 0,
breakBeforeClose : 0,
breakAfterClose : 1
} );
},
proto :
{
/**
* Sets formatting rules for a given tag. The possible rules are:
* <ul>
* <li><b>breakBeforeOpen</b>: break line before the opener tag for this element.</li>
* <li><b>breakAfterOpen</b>: break line after the opener tag for this element.</li>
* <li><b>breakBeforeClose</b>: break line before the closer tag for this element.</li>
* <li><b>breakAfterClose</b>: break line after the closer tag for this element.</li>
* </ul>
*
* All rules default to "false". Each call to the function overrides
* already present rules, leaving the undefined untouched.
*
* @param {String} tagName The tag name to which set the rules.
* @param {Object} rules An object containing the element rules.
* @example
* // Break line before and after "img" tags.
* writer.setRules( 'list',
* {
* breakBeforeOpen : true
* breakAfterOpen : true
* });
*/
setRules : function( tagName, rules )
{
var currentRules = this._.rules[ tagName ];
if ( currentRules )
CKEDITOR.tools.extend( currentRules, rules, true );
else
this._.rules[ tagName ] = rules;
},
getRule : function( tagName, ruleName )
{
return this._.rules[ tagName ] && this._.rules[ tagName ][ ruleName ];
},
openTag : function( tag, attributes )
{
if ( tag in bbcodeMap )
{
if ( this.getRule( tag, 'breakBeforeOpen' ) )
this.lineBreak( 1 );
this.write( '[', tag );
var option = attributes.option;
option && this.write( '=', option );
this.write( ']' );
if ( this.getRule( tag, 'breakAfterOpen' ) )
this.lineBreak( 1 );
}
else if ( tag == 'br' )
this._.output.push( '\n' );
},
openTagClose : function() { },
attribute : function() { },
closeTag : function( tag )
{
if ( tag in bbcodeMap )
{
if ( this.getRule( tag, 'breakBeforeClose' ) )
this.lineBreak( 1 );
tag != '*' && this.write( '[/', tag, ']' );
if ( this.getRule( tag, 'breakAfterClose' ) )
this.lineBreak( 1 );
}
},
text : function( text )
{
this.write( text );
},
/**
* Writes a comment.
* @param {String} comment The comment text.
* @example
* // Writes "<!-- My comment -->".
* writer.comment( ' My comment ' );
*/
comment : function() {},
/*
* Output line-break for formatting.
*/
lineBreak : function()
{
// Avoid line break when:
// 1) Previous tag already put one.
// 2) We're at output start.
if ( !this._.hasLineBreak && this._.output.length )
{
this.write( '\n' );
this._.hasLineBreak = 1;
}
},
write : function()
{
this._.hasLineBreak = 0;
var data = Array.prototype.join.call( arguments, '' );
this._.output.push( data );
},
reset : function()
{
this._.output = [];
this._.hasLineBreak = 0;
},
getHtml : function( reset )
{
var bbcode = this._.output.join( '' );
if ( reset )
this.reset();
return decodeHtml ( bbcode );
}
}
});
var BBCodeWriter = new CKEDITOR.htmlParser.BBCodeWriter();
CKEDITOR.plugins.add( 'bbcode',
{
requires : [ 'htmldataprocessor', 'entities' ],
beforeInit : function( editor )
{
// Adapt some critical editor configuration for better support
// of BBCode environment.
var config = editor.config;
CKEDITOR.tools.extend( config,
{
enterMode : CKEDITOR.ENTER_BR,
basicEntities: false,
entities : false,
fillEmptyBlocks : false
}, true );
},
init : function( editor )
{
var config = editor.config;
function BBCodeToHtml( code )
{
var fragment = CKEDITOR.htmlParser.fragment.fromBBCode( code ),
writer = new CKEDITOR.htmlParser.basicWriter();
fragment.writeHtml( writer, dataFilter );
return writer.getHtml( true );
}
var dataFilter = new CKEDITOR.htmlParser.filter();
dataFilter.addRules(
{
elements :
{
'blockquote' : function( element )
{
var quoted = new CKEDITOR.htmlParser.element( 'div' );
quoted.children = element.children;
element.children = [ quoted ];
var citeText = element.attributes.cite;
if ( citeText )
{
var cite = new CKEDITOR.htmlParser.element( 'cite' );
cite.add( new CKEDITOR.htmlParser.text( citeText.replace( /^"|"$/g, '' ) ) );
delete element.attributes.cite;
element.children.unshift( cite );
}
},
'span' : function( element )
{
var bbcode;
if ( ( bbcode = element.attributes.bbcode ) )
{
if ( bbcode == 'img' )
{
element.name = 'img';
element.attributes.src = element.children[ 0 ].value;
element.children = [];
}
else if ( bbcode == 'email' )
{
element.name = 'a';
element.attributes.href = 'mailto:' + element.children[ 0 ].value;
}
delete element.attributes.bbcode;
}
},
'ol' : function ( element )
{
if ( element.attributes.listType )
{
if ( element.attributes.listType != 'decimal' )
element.attributes.style = 'list-style-type:' + element.attributes.listType;
}
else
element.name = 'ul';
delete element.attributes.listType;
},
a : function( element )
{
if ( !element.attributes.href )
element.attributes.href = element.children[ 0 ].value;
},
'smiley' : function( element )
{
element.name = 'img';
var description = element.attributes.desc,
image = config.smiley_images[ CKEDITOR.tools.indexOf( config.smiley_descriptions, description ) ],
src = CKEDITOR.tools.htmlEncode( config.smiley_path + image );
element.attributes =
{
src : src,
'data-cke-saved-src' : src,
title : description,
alt : description
};
}
}
} );
editor.dataProcessor.htmlFilter.addRules(
{
elements :
{
$ : function( element )
{
var attributes = element.attributes,
style = parseStyleText( attributes.style ),
value;
var tagName = element.name;
if ( tagName in convertMap )
tagName = convertMap[ tagName ];
else if ( tagName == 'span' )
{
if ( ( value = style.color ) )
{
tagName = 'color';
value = RGBToHex( value );
}
else if ( ( value = style[ 'font-size' ] ) )
{
var percentValue = value.match( /(\d+)%$/ );
if ( percentValue )
{
value = percentValue[ 1 ];
tagName = 'size';
}
}
}
else if ( tagName == 'ol' || tagName == 'ul' )
{
if ( ( value = style[ 'list-style-type'] ) )
{
switch ( value )
{
case 'lower-alpha':
value = 'a';
break;
case 'upper-alpha':
value = 'A';
break;
}
}
else if ( tagName == 'ol' )
value = 1;
tagName = 'list';
}
else if ( tagName == 'blockquote' )
{
try
{
var cite = element.children[ 0 ],
quoted = element.children[ 1 ],
citeText = cite.name == 'cite' && cite.children[ 0 ].value;
if ( citeText )
{
value = '"' + citeText + '"';
element.children = quoted.children;
}
}
catch( er )
{
}
tagName = 'quote';
}
else if ( tagName == 'a' )
{
if ( ( value = attributes.href ) )
{
if ( value.indexOf( 'mailto:' ) !== -1 )
{
tagName = 'email';
// [email] should have a single text child with email address.
element.children = [ new CKEDITOR.htmlParser.text( value.replace( 'mailto:', '' ) ) ];
value = '';
}
else
{
var singleton = element.children.length == 1 && element.children[ 0 ];
if ( singleton
&& singleton.type == CKEDITOR.NODE_TEXT
&& singleton.value == value )
value = '';
tagName = 'url';
}
}
}
else if ( tagName == 'img' )
{
element.isEmpty = 0;
// Translate smiley (image) to text emotion.
var src = attributes[ 'data-cke-saved-src' ];
if ( src && src.indexOf( editor.config.smiley_path ) != -1 )
return new CKEDITOR.htmlParser.text( smileyMap[ attributes.alt ] );
else
element.children = [ new CKEDITOR.htmlParser.text( src ) ];
}
element.name = tagName;
value && ( element.attributes.option = value );
return null;
},
// Remove any bogus br from the end of a pseudo block,
// e.g. <div>some text<br /><p>paragraph</p></div>
br : function( element )
{
var next = element.next;
if ( next && next.name in blockLikeTags )
return false;
}
}
}, 1 );
editor.dataProcessor.writer = BBCodeWriter;
editor.on( 'beforeSetMode', function( evt )
{
evt.removeListener();
var wysiwyg = editor._.modes[ 'wysiwyg' ];
wysiwyg.loadData = CKEDITOR.tools.override( wysiwyg.loadData, function( org )
{
return function( data )
{
return ( org.call( this, BBCodeToHtml( data ) ) );
};
} );
} );
},
afterInit : function( editor )
{
var filters;
if ( editor._.elementsPath )
{
// Eliminate irrelevant elements from displaying, e.g body and p.
if ( ( filters = editor._.elementsPath.filters ) )
filters.push( function( element )
{
var htmlName = element.getName(),
name = tagnameMap[ htmlName ] || false;
// Specialized anchor presents as email.
if ( name == 'link' && element.getAttribute( 'href' ).indexOf( 'mailto:' ) === 0 )
name = 'email';
// Styled span could be either size or color.
else if ( htmlName == 'span' )
{
if ( element.getStyle( 'font-size' ) )
name = 'size';
else if ( element.getStyle( 'color' ) )
name = 'color';
}
else if ( name == 'img' )
{
var src = element.data( 'cke-saved-src' );
if ( src && src.indexOf( editor.config.smiley_path ) === 0 )
name = 'smiley';
}
return name;
});
}
}
} );
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/bbcode/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'contextmenu',
{
requires : [ 'menu' ],
// Make sure the base class (CKEDITOR.menu) is loaded before it (#3318).
onLoad : function()
{
CKEDITOR.plugins.contextMenu = CKEDITOR.tools.createClass(
{
base : CKEDITOR.menu,
$ : function( editor )
{
this.base.call( this, editor,
{
panel:
{
className : editor.skinClass + ' cke_contextmenu',
attributes :
{
'aria-label' : editor.lang.contextmenu.options
}
}
});
},
proto :
{
addTarget : function( element, nativeContextMenuOnCtrl )
{
// Opera doesn't support 'contextmenu' event, we have duo approaches employed here:
// 1. Inherit the 'button override' hack we introduced in v2 (#4530), while this require the Opera browser
// option 'Allow script to detect context menu/right click events' to be always turned on.
// 2. Considering the fact that ctrl/meta key is not been occupied
// for multiple range selecting (like Gecko), we use this key
// combination as a fallback for triggering context-menu. (#4530)
if ( CKEDITOR.env.opera && !( 'oncontextmenu' in document.body ))
{
var contextMenuOverrideButton;
element.on( 'mousedown', function( evt )
{
evt = evt.data;
if ( evt.$.button != 2 )
{
if ( evt.getKeystroke() == CKEDITOR.CTRL + 1 )
element.fire( 'contextmenu', evt );
return;
}
if ( nativeContextMenuOnCtrl
&& ( CKEDITOR.env.mac ? evt.$.metaKey : evt.$.ctrlKey ) )
return;
var target = evt.getTarget();
if ( !contextMenuOverrideButton )
{
var ownerDoc = target.getDocument();
contextMenuOverrideButton = ownerDoc.createElement( 'input' ) ;
contextMenuOverrideButton.$.type = 'button' ;
ownerDoc.getBody().append( contextMenuOverrideButton ) ;
}
contextMenuOverrideButton.setAttribute( 'style', 'position:absolute;top:' + ( evt.$.clientY - 2 ) +
'px;left:' + ( evt.$.clientX - 2 ) +
'px;width:5px;height:5px;opacity:0.01' );
} );
element.on( 'mouseup', function ( evt )
{
if ( contextMenuOverrideButton )
{
contextMenuOverrideButton.remove();
contextMenuOverrideButton = undefined;
// Simulate 'contextmenu' event.
element.fire( 'contextmenu', evt.data );
}
} );
}
element.on( 'contextmenu', function( event )
{
var domEvent = event.data;
if ( nativeContextMenuOnCtrl &&
// Safari on Windows always show 'ctrlKey' as true in 'contextmenu' event,
// which make this property unreliable. (#4826)
( CKEDITOR.env.webkit ? holdCtrlKey : ( CKEDITOR.env.mac ? domEvent.$.metaKey : domEvent.$.ctrlKey ) ) )
return;
// Cancel the browser context menu.
domEvent.preventDefault();
var offsetParent = domEvent.getTarget().getDocument().getDocumentElement(),
offsetX = domEvent.$.clientX,
offsetY = domEvent.$.clientY;
CKEDITOR.tools.setTimeout( function()
{
this.open( offsetParent, null, offsetX, offsetY );
// IE needs a short while to allow selection change before opening menu. (#7908)
}, CKEDITOR.env.ie? 200 : 0, this );
},
this );
if ( CKEDITOR.env.opera )
{
// 'contextmenu' event triggered by Windows menu key is unpreventable,
// cancel the key event itself. (#6534)
element.on( 'keypress' , function ( evt )
{
var domEvent = evt.data;
if ( domEvent.$.keyCode === 0 )
domEvent.preventDefault();
});
}
if ( CKEDITOR.env.webkit )
{
var holdCtrlKey,
onKeyDown = function( event )
{
holdCtrlKey = CKEDITOR.env.mac ? event.data.$.metaKey : event.data.$.ctrlKey ;
},
resetOnKeyUp = function()
{
holdCtrlKey = 0;
};
element.on( 'keydown', onKeyDown );
element.on( 'keyup', resetOnKeyUp );
element.on( 'contextmenu', resetOnKeyUp );
}
},
open : function( offsetParent, corner, offsetX, offsetY )
{
this.editor.focus();
offsetParent = offsetParent || CKEDITOR.document.getDocumentElement();
this.show( offsetParent, corner, offsetX, offsetY );
}
}
});
},
beforeInit : function( editor )
{
editor.contextMenu = new CKEDITOR.plugins.contextMenu( editor );
editor.addCommand( 'contextMenu',
{
exec : function()
{
editor.contextMenu.open( editor.document.getBody() );
}
});
}
});
/**
* Whether to show the browser native context menu when the <em>Ctrl</em> or
* <em>Meta</em> (Mac) key is pressed on opening the context menu with the
* right mouse button click or the <em>Menu</em> key.
* @name CKEDITOR.config.browserContextMenuOnCtrl
* @since 3.0.2
* @type Boolean
* @default <code>true</code>
* @example
* config.browserContextMenuOnCtrl = false;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/contextmenu/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var pxUnit = CKEDITOR.tools.cssLength,
needsIEHacks = CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks || CKEDITOR.env.version < 7 );
function getWidth( el )
{
return CKEDITOR.env.ie ? el.$.clientWidth : parseInt( el.getComputedStyle( 'width' ), 10 );
}
function getBorderWidth( element, side )
{
var computed = element.getComputedStyle( 'border-' + side + '-width' ),
borderMap =
{
thin: '0px',
medium: '1px',
thick: '2px'
};
if ( computed.indexOf( 'px' ) < 0 )
{
// look up keywords
if ( computed in borderMap && element.getComputedStyle( 'border-style' ) != 'none' )
computed = borderMap[ computed ];
else
computed = 0;
}
return parseInt( computed, 10 );
}
// Gets the table row that contains the most columns.
function getMasterPillarRow( table )
{
var $rows = table.$.rows,
maxCells = 0, cellsCount,
$elected, $tr;
for ( var i = 0, len = $rows.length ; i < len; i++ )
{
$tr = $rows[ i ];
cellsCount = $tr.cells.length;
if ( cellsCount > maxCells )
{
maxCells = cellsCount;
$elected = $tr;
}
}
return $elected;
}
function buildTableColumnPillars( table )
{
var pillars = [],
pillarIndex = -1,
rtl = ( table.getComputedStyle( 'direction' ) == 'rtl' );
// Get the raw row element that cointains the most columns.
var $tr = getMasterPillarRow( table );
// Get the tbody element and position, which will be used to set the
// top and bottom boundaries.
var tbody = new CKEDITOR.dom.element( table.$.tBodies[ 0 ] ),
tbodyPosition = tbody.getDocumentPosition();
// Loop thorugh all cells, building pillars after each one of them.
for ( var i = 0, len = $tr.cells.length ; i < len ; i++ )
{
// Both the current cell and the successive one will be used in the
// pillar size calculation.
var td = new CKEDITOR.dom.element( $tr.cells[ i ] ),
nextTd = $tr.cells[ i + 1 ] && new CKEDITOR.dom.element( $tr.cells[ i + 1 ] );
pillarIndex += td.$.colSpan || 1;
// Calculate the pillar boundary positions.
var pillarLeft, pillarRight, pillarWidth;
var x = td.getDocumentPosition().x;
// Calculate positions based on the current cell.
rtl ?
pillarRight = x + getBorderWidth( td, 'left' ) :
pillarLeft = x + td.$.offsetWidth - getBorderWidth( td, 'right' );
// Calculate positions based on the next cell, if available.
if ( nextTd )
{
x = nextTd.getDocumentPosition().x;
rtl ?
pillarLeft = x + nextTd.$.offsetWidth - getBorderWidth( nextTd, 'right' ) :
pillarRight = x + getBorderWidth( nextTd, 'left' );
}
// Otherwise calculate positions based on the table (for last cell).
else
{
x = table.getDocumentPosition().x;
rtl ?
pillarLeft = x :
pillarRight = x + table.$.offsetWidth;
}
pillarWidth = Math.max( pillarRight - pillarLeft, 3 );
// The pillar should reflects exactly the shape of the hovered
// column border line.
pillars.push( {
table : table,
index : pillarIndex,
x : pillarLeft,
y : tbodyPosition.y,
width : pillarWidth,
height : tbody.$.offsetHeight,
rtl : rtl } );
}
return pillars;
}
function getPillarAtPosition( pillars, positionX )
{
for ( var i = 0, len = pillars.length ; i < len ; i++ )
{
var pillar = pillars[ i ];
if ( positionX >= pillar.x && positionX <= ( pillar.x + pillar.width ) )
return pillar;
}
return null;
}
function cancel( evt )
{
( evt.data || evt ).preventDefault();
}
function columnResizer( editor )
{
var pillar,
document,
resizer,
isResizing,
startOffset,
currentShift;
var leftSideCells, rightSideCells, leftShiftBoundary, rightShiftBoundary;
function detach()
{
pillar = null;
currentShift = 0;
isResizing = 0;
document.removeListener( 'mouseup', onMouseUp );
resizer.removeListener( 'mousedown', onMouseDown );
resizer.removeListener( 'mousemove', onMouseMove );
document.getBody().setStyle( 'cursor', 'auto' );
// Hide the resizer (remove it on IE7 - #5890).
needsIEHacks ? resizer.remove() : resizer.hide();
}
function resizeStart()
{
// Before starting to resize, figure out which cells to change
// and the boundaries of this resizing shift.
var columnIndex = pillar.index,
map = CKEDITOR.tools.buildTableMap( pillar.table ),
leftColumnCells = [],
rightColumnCells = [],
leftMinSize = Number.MAX_VALUE,
rightMinSize = leftMinSize,
rtl = pillar.rtl;
for ( var i = 0, len = map.length ; i < len ; i++ )
{
var row = map[ i ],
leftCell = row[ columnIndex + ( rtl ? 1 : 0 ) ],
rightCell = row[ columnIndex + ( rtl ? 0 : 1 ) ];
leftCell = leftCell && new CKEDITOR.dom.element( leftCell );
rightCell = rightCell && new CKEDITOR.dom.element( rightCell );
if ( !leftCell || !rightCell || !leftCell.equals( rightCell ) )
{
leftCell && ( leftMinSize = Math.min( leftMinSize, getWidth( leftCell ) ) );
rightCell && ( rightMinSize = Math.min( rightMinSize, getWidth( rightCell ) ) );
leftColumnCells.push( leftCell );
rightColumnCells.push( rightCell );
}
}
// Cache the list of cells to be resized.
leftSideCells = leftColumnCells;
rightSideCells = rightColumnCells;
// Cache the resize limit boundaries.
leftShiftBoundary = pillar.x - leftMinSize;
rightShiftBoundary = pillar.x + rightMinSize;
resizer.setOpacity( 0.5 );
startOffset = parseInt( resizer.getStyle( 'left' ), 10 );
currentShift = 0;
isResizing = 1;
resizer.on( 'mousemove', onMouseMove );
// Prevent the native drag behavior otherwise 'mousemove' won't fire.
document.on( 'dragstart', cancel );
}
function resizeEnd()
{
isResizing = 0;
resizer.setOpacity( 0 );
currentShift && resizeColumn();
var table = pillar.table;
setTimeout( function () { table.removeCustomData( '_cke_table_pillars' ); }, 0 );
document.removeListener( 'dragstart', cancel );
}
function resizeColumn()
{
var rtl = pillar.rtl,
cellsCount = rtl ? rightSideCells.length : leftSideCells.length;
// Perform the actual resize to table cells, only for those by side of the pillar.
for ( var i = 0 ; i < cellsCount ; i++ )
{
var leftCell = leftSideCells[ i ],
rightCell = rightSideCells[ i ],
table = pillar.table;
// Defer the resizing to avoid any interference among cells.
CKEDITOR.tools.setTimeout(
function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift )
{
leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 0 ) ) );
rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 0 ) ) );
// If we're in the last cell, we need to resize the table as well
if ( tableWidth )
table.setStyle( 'width', pxUnit( tableWidth + sizeShift * ( rtl ? -1 : 1 ) ) );
}
, 0,
this, [
leftCell, leftCell && getWidth( leftCell ),
rightCell, rightCell && getWidth( rightCell ),
( !leftCell || !rightCell ) && ( getWidth( table ) + getBorderWidth( table, 'left' ) + getBorderWidth( table, 'right' ) ),
currentShift ] );
}
}
function onMouseDown( evt )
{
cancel( evt );
resizeStart();
document.on( 'mouseup', onMouseUp, this );
}
function onMouseUp( evt )
{
evt.removeListener();
resizeEnd();
}
function onMouseMove( evt )
{
move( evt.data.$.clientX );
}
document = editor.document;
resizer = CKEDITOR.dom.element.createFromHtml(
'<div data-cke-temp=1 contenteditable=false unselectable=on '+
'style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;' +
'padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', document );
// Except on IE6/7 (#5890), place the resizer after body to prevent it
// from being editable.
if ( !needsIEHacks )
document.getDocumentElement().append( resizer );
this.attachTo = function( targetPillar )
{
// Accept only one pillar at a time.
if ( isResizing )
return;
// On IE6/7, we append the resizer everytime we need it. (#5890)
if ( needsIEHacks )
{
document.getBody().append( resizer );
currentShift = 0;
}
pillar = targetPillar;
resizer.setStyles(
{
width: pxUnit( targetPillar.width ),
height : pxUnit( targetPillar.height ),
left : pxUnit( targetPillar.x ),
top : pxUnit( targetPillar.y )
});
// In IE6/7, it's not possible to have custom cursors for floating
// elements in an editable document. Show the resizer in that case,
// to give the user a visual clue.
needsIEHacks && resizer.setOpacity( 0.25 );
resizer.on( 'mousedown', onMouseDown, this );
document.getBody().setStyle( 'cursor', 'col-resize' );
// Display the resizer to receive events but don't show it,
// only change the cursor to resizable shape.
resizer.show();
};
var move = this.move = function( posX )
{
if ( !pillar )
return 0;
if ( !isResizing && ( posX < pillar.x || posX > ( pillar.x + pillar.width ) ) )
{
detach();
return 0;
}
var resizerNewPosition = posX - Math.round( resizer.$.offsetWidth / 2 );
if ( isResizing )
{
if ( resizerNewPosition == leftShiftBoundary || resizerNewPosition == rightShiftBoundary )
return 1;
resizerNewPosition = Math.max( resizerNewPosition, leftShiftBoundary );
resizerNewPosition = Math.min( resizerNewPosition, rightShiftBoundary );
currentShift = resizerNewPosition - startOffset;
}
resizer.setStyle( 'left', pxUnit( resizerNewPosition ) );
return 1;
};
}
function clearPillarsCache( evt )
{
var target = evt.data.getTarget();
if ( evt.name == 'mouseout' )
{
// Bypass interal mouse move.
if ( !target.is ( 'table' ) )
return;
var dest = new CKEDITOR.dom.element( evt.data.$.relatedTarget || evt.data.$.toElement );
while( dest && dest.$ && !dest.equals( target ) && !dest.is( 'body' ) )
dest = dest.getParent();
if ( !dest || dest.equals( target ) )
return;
}
target.getAscendant( 'table', 1 ).removeCustomData( '_cke_table_pillars' );
evt.removeListener();
}
CKEDITOR.plugins.add( 'tableresize',
{
requires : [ 'tabletools' ],
init : function( editor )
{
editor.on( 'contentDom', function()
{
var resizer;
editor.document.getBody().on( 'mousemove', function( evt )
{
evt = evt.data;
// If we're already attached to a pillar, simply move the
// resizer.
if ( resizer && resizer.move( evt.$.clientX ) )
{
cancel( evt );
return;
}
// Considering table, tr, td, tbody but nothing else.
var target = evt.getTarget(),
table,
pillars;
if ( !target.is( 'table' ) && !target.getAscendant( 'tbody', 1 ) )
return;
table = target.getAscendant( 'table', 1 );
if ( !( pillars = table.getCustomData( '_cke_table_pillars' ) ) )
{
// Cache table pillars calculation result.
table.setCustomData( '_cke_table_pillars', ( pillars = buildTableColumnPillars( table ) ) );
table.on( 'mouseout', clearPillarsCache );
table.on( 'mousedown', clearPillarsCache );
}
var pillar = getPillarAtPosition( pillars, evt.$.clientX );
if ( pillar )
{
!resizer && ( resizer = new columnResizer( editor ) );
resizer.attachTo( pillar );
}
});
});
}
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/tableresize/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
function setupAdvParams( element )
{
var attrName = this.att;
var value = element && element.hasAttribute( attrName ) && element.getAttribute( attrName ) || '';
if ( value !== undefined )
this.setValue( value );
}
function commitAdvParams()
{
// Dialogs may use different parameters in the commit list, so, by
// definition, we take the first CKEDITOR.dom.element available.
var element;
for ( var i = 0 ; i < arguments.length ; i++ )
{
if ( arguments[ i ] instanceof CKEDITOR.dom.element )
{
element = arguments[ i ];
break;
}
}
if ( element )
{
var attrName = this.att,
value = this.getValue();
if ( value )
element.setAttribute( attrName, value );
else
element.removeAttribute( attrName, value );
}
}
CKEDITOR.plugins.add( 'dialogadvtab',
{
/**
*
* @param tabConfig
* id, dir, classes, styles
*/
createAdvancedTab : function( editor, tabConfig )
{
if ( !tabConfig )
tabConfig = { id:1, dir:1, classes:1, styles:1 };
var lang = editor.lang.common;
var result =
{
id : 'advanced',
label : lang.advancedTab,
title : lang.advancedTab,
elements :
[
{
type : 'vbox',
padding : 1,
children : []
}
]
};
var contents = [];
if ( tabConfig.id || tabConfig.dir )
{
if ( tabConfig.id )
{
contents.push(
{
id : 'advId',
att : 'id',
type : 'text',
label : lang.id,
setup : setupAdvParams,
commit : commitAdvParams
});
}
if ( tabConfig.dir )
{
contents.push(
{
id : 'advLangDir',
att : 'dir',
type : 'select',
label : lang.langDir,
'default' : '',
style : 'width:100%',
items :
[
[ lang.notSet, '' ],
[ lang.langDirLTR, 'ltr' ],
[ lang.langDirRTL, 'rtl' ]
],
setup : setupAdvParams,
commit : commitAdvParams
});
}
result.elements[ 0 ].children.push(
{
type : 'hbox',
widths : [ '50%', '50%' ],
children : [].concat( contents )
});
}
if ( tabConfig.styles || tabConfig.classes )
{
contents = [];
if ( tabConfig.styles )
{
contents.push(
{
id : 'advStyles',
att : 'style',
type : 'text',
label : lang.styles,
'default' : '',
validate : CKEDITOR.dialog.validate.inlineStyle( lang.invalidInlineStyle ),
onChange : function(){},
getStyle : function( name, defaultValue )
{
var match = this.getValue().match( new RegExp( name + '\\s*:\\s*([^;]*)', 'i') );
return match ? match[ 1 ] : defaultValue;
},
updateStyle : function( name, value )
{
var styles = this.getValue();
// Remove the current value.
if ( styles )
{
styles = styles
.replace( new RegExp( '\\s*' + name + '\s*:[^;]*(?:$|;\s*)', 'i' ), '' )
.replace( /^[;\s]+/, '' )
.replace( /\s+$/, '' );
}
if ( value )
{
styles && !(/;\s*$/).test( styles ) && ( styles += '; ' );
styles += name + ': ' + value;
}
this.setValue( styles, 1 );
},
setup : setupAdvParams,
commit : commitAdvParams
});
}
if ( tabConfig.classes )
{
contents.push(
{
type : 'hbox',
widths : [ '45%', '55%' ],
children :
[
{
id : 'advCSSClasses',
att : 'class',
type : 'text',
label : lang.cssClasses,
'default' : '',
setup : setupAdvParams,
commit : commitAdvParams
}
]
});
}
result.elements[ 0 ].children.push(
{
type : 'hbox',
widths : [ '50%', '50%' ],
children : [].concat( contents )
});
}
return result;
}
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/dialogadvtab/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @stylesheetParser plugin.
*/
(function()
{
// We want to extract only the elements with classes defined in the stylesheets:
function parseClasses( aRules, skipSelectors, validSelectors )
{
// aRules are just the different rules in the style sheets
// We want to merge them and them split them by commas, so we end up with only
// the selectors
var s = aRules.join(' ');
// Remove selectors splitting the elements, leave only the class selector (.)
s = s.replace( /(,|>|\+|~)/g, ' ' );
// Remove attribute selectors: table[border="0"]
s = s.replace( /\[[^\]]*/g, '' );
// Remove Ids: div#main
s = s.replace( /#[^\s]*/g, '' );
// Remove pseudo-selectors and pseudo-elements: :hover :nth-child(2n+1) ::before
s = s.replace( /\:{1,2}[^\s]*/g, '' );
s = s.replace( /\s+/g, ' ' );
var aSelectors = s.split( ' ' ),
aClasses = [];
for ( var i = 0; i < aSelectors.length ; i++ )
{
var selector = aSelectors[ i ];
if ( validSelectors.test( selector ) && !skipSelectors.test( selector ) )
{
// If we still don't know about this one, add it
if ( CKEDITOR.tools.indexOf( aClasses, selector ) == -1 )
aClasses.push( selector );
}
}
return aClasses;
}
function LoadStylesCSS( theDoc, skipSelectors, validSelectors )
{
var styles = [],
// It will hold all the rules of the applied stylesheets (except those internal to CKEditor)
aRules = [],
i;
for ( i = 0; i < theDoc.styleSheets.length; i++ )
{
var sheet = theDoc.styleSheets[ i ],
node = sheet.ownerNode || sheet.owningElement;
// Skip the internal stylesheets
if ( node.getAttribute( 'data-cke-temp' ) )
continue;
// Exclude stylesheets injected by extensions
if ( sheet.href && sheet.href.substr(0, 9) == 'chrome://' )
continue;
var sheetRules = sheet.cssRules || sheet.rules;
for ( var j = 0; j < sheetRules.length; j++ )
aRules.push( sheetRules[ j ].selectorText );
}
var aClasses = parseClasses( aRules, skipSelectors, validSelectors );
// Add each style to our "Styles" collection.
for ( i = 0; i < aClasses.length; i++ )
{
var oElement = aClasses[ i ].split( '.' ),
element = oElement[ 0 ].toLowerCase(),
sClassName = oElement[ 1 ];
styles.push( {
name : element + '.' + sClassName,
element : element,
attributes : {'class' : sClassName}
});
}
return styles;
}
// Register a plugin named "stylesheetparser".
CKEDITOR.plugins.add( 'stylesheetparser',
{
requires: [ 'styles' ],
onLoad : function()
{
var obj = CKEDITOR.editor.prototype;
obj.getStylesSet = CKEDITOR.tools.override( obj.getStylesSet, function( org )
{
return function( callback )
{
var self = this;
org.call( this, function( definitions )
{
// Rules that must be skipped
var skipSelectors = self.config.stylesheetParser_skipSelectors || ( /(^body\.|^\.)/i ),
// Rules that are valid
validSelectors = self.config.stylesheetParser_validSelectors || ( /\w+\.\w+/ );
callback( ( self._.stylesDefinitions = definitions.concat( LoadStylesCSS( self.document.$, skipSelectors, validSelectors ) ) ) );
});
};
});
}
});
})();
/**
* A regular expression that defines whether a CSS rule will be
* skipped by the Stylesheet Parser plugin. A CSS rule matching
* the regular expression will be ignored and will not be available
* in the Styles drop-down list.
* @name CKEDITOR.config.stylesheetParser_skipSelectors
* @type RegExp
* @default /(^body\.|^\.)/i
* @since 3.6
* @see CKEDITOR.config.stylesheetParser_validSelectors
* @example
* // Ignore rules for body and caption elements, classes starting with "high", and any class defined for no specific element.
* config.stylesheetParser_skipSelectors = /(^body\.|^caption\.|\.high|^\.)/i;
*/
/**
* A regular expression that defines which CSS rules will be used
* by the Stylesheet Parser plugin. A CSS rule matching the regular
* expression will be available in the Styles drop-down list.
* @name CKEDITOR.config.stylesheetParser_validSelectors
* @type RegExp
* @default /\w+\.\w+/
* @since 3.6
* @see CKEDITOR.config.stylesheetParser_skipSelectors
* @example
* // Only add rules for p and span elements.
* config.stylesheetParser_validSelectors = /\^(p|span)\.\w+/;
*/ | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/stylesheetparser/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// Base HTML entities.
var htmlbase = 'nbsp,gt,lt,amp';
var entities =
// Latin-1 Entities
'quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,' +
'not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,' +
'cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,' +
// Symbols
'fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,' +
'alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,' +
'forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,' +
'radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,' +
'equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,' +
'rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,' +
// Other Special Characters
'circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,' +
'rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,' +
'euro';
// Latin Letters Entities
var latin =
'Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,' +
'Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,' +
'Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,' +
'agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,' +
'ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,' +
'otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,' +
'OElig,oelig,Scaron,scaron,Yuml';
// Greek Letters Entities.
var greek =
'Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,' +
'Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,' +
'beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,' +
'omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,' +
'upsih,piv';
/**
* Create a mapping table between one character and its entity form from a list of entity names.
* @param reverse {Boolean} Whether to create a reverse map from the entity string form to an actual character.
*/
function buildTable( entities, reverse )
{
var table = {},
regex = [];
// Entities that the browsers DOM don't transform to the final char
// automatically.
var specialTable =
{
nbsp : '\u00A0', // IE | FF
shy : '\u00AD', // IE
gt : '\u003E', // IE | FF | -- | Opera
lt : '\u003C', // IE | FF | Safari | Opera
amp : '\u0026' // ALL
};
entities = entities.replace( /\b(nbsp|shy|gt|lt|amp)(?:,|$)/g, function( match, entity )
{
var org = reverse ? '&' + entity + ';' : specialTable[ entity ],
result = reverse ? specialTable[ entity ] : '&' + entity + ';';
table[ org ] = result;
regex.push( org );
return '';
});
if ( !reverse && entities )
{
// Transforms the entities string into an array.
entities = entities.split( ',' );
// Put all entities inside a DOM element, transforming them to their
// final chars.
var div = document.createElement( 'div' ),
chars;
div.innerHTML = '&' + entities.join( ';&' ) + ';';
chars = div.innerHTML;
div = null;
// Add all chars to the table.
for ( var i = 0 ; i < chars.length ; i++ )
{
var charAt = chars.charAt( i );
table[ charAt ] = '&' + entities[ i ] + ';';
regex.push( charAt );
}
}
table.regex = regex.join( reverse ? '|' : '' );
return table;
}
CKEDITOR.plugins.add( 'entities',
{
afterInit : function( editor )
{
var config = editor.config;
var dataProcessor = editor.dataProcessor,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( htmlFilter )
{
// Mandatory HTML base entities.
var selectedEntities = '';
if ( config.basicEntities !== false )
selectedEntities += htmlbase;
if ( config.entities )
{
selectedEntities += ',' + entities;
if ( config.entities_latin )
selectedEntities += ',' + latin;
if ( config.entities_greek )
selectedEntities += ',' + greek;
if ( config.entities_additional )
selectedEntities += ',' + config.entities_additional;
}
var entitiesTable = buildTable( selectedEntities );
// Create the Regex used to find entities in the text, leave it matches nothing if entities are empty.
var entitiesRegex = entitiesTable.regex ? '[' + entitiesTable.regex + ']' : 'a^';
delete entitiesTable.regex;
if ( config.entities && config.entities_processNumerical )
entitiesRegex = '[^ -~]|' + entitiesRegex ;
entitiesRegex = new RegExp( entitiesRegex, 'g' );
function getEntity( character )
{
return config.entities_processNumerical == 'force' || !entitiesTable[ character ] ?
'&#' + character.charCodeAt(0) + ';'
: entitiesTable[ character ];
}
// Decode entities that the browsers has transformed
// at first place.
var baseEntitiesTable = buildTable( [ htmlbase, 'shy' ].join( ',' ) , true ),
baseEntitiesRegex = new RegExp( baseEntitiesTable.regex, 'g' );
function getChar( character )
{
return baseEntitiesTable[ character ];
}
htmlFilter.addRules(
{
text : function( text )
{
return text.replace( baseEntitiesRegex, getChar )
.replace( entitiesRegex, getEntity );
}
});
}
}
});
})();
/**
* Whether to escape basic HTML entities in the document, including:
* <ul>
* <li><code>nbsp</code></li>
* <li><code>gt</code></li>
* <li><code>lt</code></li>
* <li><code>amp</code></li>
* </ul>
* <strong>Note:</strong> It should not be subject to change unless when outputting a non-HTML data format like BBCode.
* @type Boolean
* @default <code>true</code>
* @example
* config.basicEntities = false;
*/
CKEDITOR.config.basicEntities = true;
/**
* Whether to use HTML entities in the output.
* @name CKEDITOR.config.entities
* @type Boolean
* @default <code>true</code>
* @example
* config.entities = false;
*/
CKEDITOR.config.entities = true;
/**
* Whether to convert some Latin characters (Latin alphabet No. 1, ISO 8859-1)
* to HTML entities. The list of entities can be found in the
* <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.2.1">W3C HTML 4.01 Specification, section 24.2.1</a>.
* @name CKEDITOR.config.entities_latin
* @type Boolean
* @default <code>true</code>
* @example
* config.entities_latin = false;
*/
CKEDITOR.config.entities_latin = true;
/**
* Whether to convert some symbols, mathematical symbols, and Greek letters to
* HTML entities. This may be more relevant for users typing text written in Greek.
* The list of entities can be found in the
* <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.3.1">W3C HTML 4.01 Specification, section 24.3.1</a>.
* @name CKEDITOR.config.entities_greek
* @type Boolean
* @default <code>true</code>
* @example
* config.entities_greek = false;
*/
CKEDITOR.config.entities_greek = true;
/**
* Whether to convert all remaining characters not included in the ASCII
* character table to their relative decimal numeric representation of HTML entity.
* When set to <code>force</code>, it will convert all entities into this format.
* For example the phrase "This is Chinese: 汉语." is output
* as "This is Chinese: &#27721;&#35821;."
* @name CKEDITOR.config.entities_processNumerical
* @type Boolean|String
* @default <code>false</code>
* @example
* config.entities_processNumerical = true;
* config.entities_processNumerical = 'force'; //Converts from " " into " ";
*/
/**
* A comma separated list of additional entities to be used. Entity names
* or numbers must be used in a form that excludes the "&" prefix and the ";" ending.
* @name CKEDITOR.config.entities_additional
* @default <code>'#39'</code> (The single quote (') character.)
* @type String
* @example
* config.entities_additional = '#1049'; // Adds Cyrillic capital letter Short I (Й).
*/
CKEDITOR.config.entities_additional = '#39'; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/entities/plugin.js | plugin.js |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var isReplace;
function findEvaluator( node )
{
return node.type == CKEDITOR.NODE_TEXT && node.getLength() > 0 && ( !isReplace || !node.isReadOnly() );
}
/**
* Elements which break characters been considered as sequence.
*/
function nonCharactersBoundary( node )
{
return !( node.type == CKEDITOR.NODE_ELEMENT && node.isBlockBoundary(
CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$empty, CKEDITOR.dtd.$nonEditable ) ) );
}
/**
* Get the cursor object which represent both current character and it's dom
* position thing.
*/
var cursorStep = function()
{
return {
textNode : this.textNode,
offset : this.offset,
character : this.textNode ?
this.textNode.getText().charAt( this.offset ) : null,
hitMatchBoundary : this._.matchBoundary
};
};
var pages = [ 'find', 'replace' ],
fieldsMapping = [
[ 'txtFindFind', 'txtFindReplace' ],
[ 'txtFindCaseChk', 'txtReplaceCaseChk' ],
[ 'txtFindWordChk', 'txtReplaceWordChk' ],
[ 'txtFindCyclic', 'txtReplaceCyclic' ] ];
/**
* Synchronize corresponding filed values between 'replace' and 'find' pages.
* @param {String} currentPageId The page id which receive values.
*/
function syncFieldsBetweenTabs( currentPageId )
{
var sourceIndex, targetIndex,
sourceField, targetField;
sourceIndex = currentPageId === 'find' ? 1 : 0;
targetIndex = 1 - sourceIndex;
var i, l = fieldsMapping.length;
for ( i = 0 ; i < l ; i++ )
{
sourceField = this.getContentElement( pages[ sourceIndex ],
fieldsMapping[ i ][ sourceIndex ] );
targetField = this.getContentElement( pages[ targetIndex ],
fieldsMapping[ i ][ targetIndex ] );
targetField.setValue( sourceField.getValue() );
}
}
var findDialog = function( editor, startupPage )
{
// Style object for highlights: (#5018)
// 1. Defined as full match style to avoid compromising ordinary text color styles.
// 2. Must be apply onto inner-most text to avoid conflicting with ordinary text color styles visually.
var highlightStyle = new CKEDITOR.style(
CKEDITOR.tools.extend( { attributes : { 'data-cke-highlight': 1 }, fullMatch : 1, ignoreReadonly : 1, childRule : function(){ return 0; } },
editor.config.find_highlight, true ) );
/**
* Iterator which walk through the specified range char by char. By
* default the walking will not stop at the character boundaries, until
* the end of the range is encountered.
* @param { CKEDITOR.dom.range } range
* @param {Boolean} matchWord Whether the walking will stop at character boundary.
*/
var characterWalker = function( range , matchWord )
{
var self = this;
var walker =
new CKEDITOR.dom.walker( range );
walker.guard = matchWord ? nonCharactersBoundary : function( node )
{
!nonCharactersBoundary( node ) && ( self._.matchBoundary = true );
};
walker[ 'evaluator' ] = findEvaluator;
walker.breakOnFalse = 1;
if ( range.startContainer.type == CKEDITOR.NODE_TEXT )
{
this.textNode = range.startContainer;
this.offset = range.startOffset - 1;
}
this._ = {
matchWord : matchWord,
walker : walker,
matchBoundary : false
};
};
characterWalker.prototype = {
next : function()
{
return this.move();
},
back : function()
{
return this.move( true );
},
move : function( rtl )
{
var currentTextNode = this.textNode;
// Already at the end of document, no more character available.
if ( currentTextNode === null )
return cursorStep.call( this );
this._.matchBoundary = false;
// There are more characters in the text node, step forward.
if ( currentTextNode
&& rtl
&& this.offset > 0 )
{
this.offset--;
return cursorStep.call( this );
}
else if ( currentTextNode
&& this.offset < currentTextNode.getLength() - 1 )
{
this.offset++;
return cursorStep.call( this );
}
else
{
currentTextNode = null;
// At the end of the text node, walking foward for the next.
while ( !currentTextNode )
{
currentTextNode =
this._.walker[ rtl ? 'previous' : 'next' ].call( this._.walker );
// Stop searching if we're need full word match OR
// already reach document end.
if ( this._.matchWord && !currentTextNode
|| this._.walker._.end )
break;
}
// Found a fresh text node.
this.textNode = currentTextNode;
if ( currentTextNode )
this.offset = rtl ? currentTextNode.getLength() - 1 : 0;
else
this.offset = 0;
}
return cursorStep.call( this );
}
};
/**
* A range of cursors which represent a trunk of characters which try to
* match, it has the same length as the pattern string.
*/
var characterRange = function( characterWalker, rangeLength )
{
this._ = {
walker : characterWalker,
cursors : [],
rangeLength : rangeLength,
highlightRange : null,
isMatched : 0
};
};
characterRange.prototype = {
/**
* Translate this range to {@link CKEDITOR.dom.range}
*/
toDomRange : function()
{
var range = new CKEDITOR.dom.range( editor.document );
var cursors = this._.cursors;
if ( cursors.length < 1 )
{
var textNode = this._.walker.textNode;
if ( textNode )
range.setStartAfter( textNode );
else
return null;
}
else
{
var first = cursors[0],
last = cursors[ cursors.length - 1 ];
range.setStart( first.textNode, first.offset );
range.setEnd( last.textNode, last.offset + 1 );
}
return range;
},
/**
* Reflect the latest changes from dom range.
*/
updateFromDomRange : function( domRange )
{
var cursor,
walker = new characterWalker( domRange );
this._.cursors = [];
do
{
cursor = walker.next();
if ( cursor.character )
this._.cursors.push( cursor );
}
while ( cursor.character );
this._.rangeLength = this._.cursors.length;
},
setMatched : function()
{
this._.isMatched = true;
},
clearMatched : function()
{
this._.isMatched = false;
},
isMatched : function()
{
return this._.isMatched;
},
/**
* Hightlight the current matched chunk of text.
*/
highlight : function()
{
// Do not apply if nothing is found.
if ( this._.cursors.length < 1 )
return;
// Remove the previous highlight if there's one.
if ( this._.highlightRange )
this.removeHighlight();
// Apply the highlight.
var range = this.toDomRange(),
bookmark = range.createBookmark();
highlightStyle.applyToRange( range );
range.moveToBookmark( bookmark );
this._.highlightRange = range;
// Scroll the editor to the highlighted area.
var element = range.startContainer;
if ( element.type != CKEDITOR.NODE_ELEMENT )
element = element.getParent();
element.scrollIntoView();
// Update the character cursors.
this.updateFromDomRange( range );
},
/**
* Remove highlighted find result.
*/
removeHighlight : function()
{
if ( !this._.highlightRange )
return;
var bookmark = this._.highlightRange.createBookmark();
highlightStyle.removeFromRange( this._.highlightRange );
this._.highlightRange.moveToBookmark( bookmark );
this.updateFromDomRange( this._.highlightRange );
this._.highlightRange = null;
},
isReadOnly : function()
{
if ( !this._.highlightRange )
return 0;
return this._.highlightRange.startContainer.isReadOnly();
},
moveBack : function()
{
var retval = this._.walker.back(),
cursors = this._.cursors;
if ( retval.hitMatchBoundary )
this._.cursors = cursors = [];
cursors.unshift( retval );
if ( cursors.length > this._.rangeLength )
cursors.pop();
return retval;
},
moveNext : function()
{
var retval = this._.walker.next(),
cursors = this._.cursors;
// Clear the cursors queue if we've crossed a match boundary.
if ( retval.hitMatchBoundary )
this._.cursors = cursors = [];
cursors.push( retval );
if ( cursors.length > this._.rangeLength )
cursors.shift();
return retval;
},
getEndCharacter : function()
{
var cursors = this._.cursors;
if ( cursors.length < 1 )
return null;
return cursors[ cursors.length - 1 ].character;
},
getNextCharacterRange : function( maxLength )
{
var lastCursor,
nextRangeWalker,
cursors = this._.cursors;
if ( ( lastCursor = cursors[ cursors.length - 1 ] ) && lastCursor.textNode )
nextRangeWalker = new characterWalker( getRangeAfterCursor( lastCursor ) );
// In case it's an empty range (no cursors), figure out next range from walker (#4951).
else
nextRangeWalker = this._.walker;
return new characterRange( nextRangeWalker, maxLength );
},
getCursors : function()
{
return this._.cursors;
}
};
// The remaining document range after the character cursor.
function getRangeAfterCursor( cursor , inclusive )
{
var range = new CKEDITOR.dom.range();
range.setStart( cursor.textNode,
( inclusive ? cursor.offset : cursor.offset + 1 ) );
range.setEndAt( editor.document.getBody(),
CKEDITOR.POSITION_BEFORE_END );
return range;
}
// The document range before the character cursor.
function getRangeBeforeCursor( cursor )
{
var range = new CKEDITOR.dom.range();
range.setStartAt( editor.document.getBody(),
CKEDITOR.POSITION_AFTER_START );
range.setEnd( cursor.textNode, cursor.offset );
return range;
}
var KMP_NOMATCH = 0,
KMP_ADVANCED = 1,
KMP_MATCHED = 2;
/**
* Examination the occurrence of a word which implement KMP algorithm.
*/
var kmpMatcher = function( pattern, ignoreCase )
{
var overlap = [ -1 ];
if ( ignoreCase )
pattern = pattern.toLowerCase();
for ( var i = 0 ; i < pattern.length ; i++ )
{
overlap.push( overlap[i] + 1 );
while ( overlap[ i + 1 ] > 0
&& pattern.charAt( i ) != pattern
.charAt( overlap[ i + 1 ] - 1 ) )
overlap[ i + 1 ] = overlap[ overlap[ i + 1 ] - 1 ] + 1;
}
this._ = {
overlap : overlap,
state : 0,
ignoreCase : !!ignoreCase,
pattern : pattern
};
};
kmpMatcher.prototype =
{
feedCharacter : function( c )
{
if ( this._.ignoreCase )
c = c.toLowerCase();
while ( true )
{
if ( c == this._.pattern.charAt( this._.state ) )
{
this._.state++;
if ( this._.state == this._.pattern.length )
{
this._.state = 0;
return KMP_MATCHED;
}
return KMP_ADVANCED;
}
else if ( !this._.state )
return KMP_NOMATCH;
else
this._.state = this._.overlap[ this._.state ];
}
return null;
},
reset : function()
{
this._.state = 0;
}
};
var wordSeparatorRegex =
/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/;
var isWordSeparator = function( c )
{
if ( !c )
return true;
var code = c.charCodeAt( 0 );
return ( code >= 9 && code <= 0xd )
|| ( code >= 0x2000 && code <= 0x200a )
|| wordSeparatorRegex.test( c );
};
var finder = {
searchRange : null,
matchRange : null,
find : function( pattern, matchCase, matchWord, matchCyclic, highlightMatched, cyclicRerun )
{
if ( !this.matchRange )
this.matchRange =
new characterRange(
new characterWalker( this.searchRange ),
pattern.length );
else
{
this.matchRange.removeHighlight();
this.matchRange = this.matchRange.getNextCharacterRange( pattern.length );
}
var matcher = new kmpMatcher( pattern, !matchCase ),
matchState = KMP_NOMATCH,
character = '%';
while ( character !== null )
{
this.matchRange.moveNext();
while ( ( character = this.matchRange.getEndCharacter() ) )
{
matchState = matcher.feedCharacter( character );
if ( matchState == KMP_MATCHED )
break;
if ( this.matchRange.moveNext().hitMatchBoundary )
matcher.reset();
}
if ( matchState == KMP_MATCHED )
{
if ( matchWord )
{
var cursors = this.matchRange.getCursors(),
tail = cursors[ cursors.length - 1 ],
head = cursors[ 0 ];
var headWalker = new characterWalker( getRangeBeforeCursor( head ), true ),
tailWalker = new characterWalker( getRangeAfterCursor( tail ), true );
if ( ! ( isWordSeparator( headWalker.back().character )
&& isWordSeparator( tailWalker.next().character ) ) )
continue;
}
this.matchRange.setMatched();
if ( highlightMatched !== false )
this.matchRange.highlight();
return true;
}
}
this.matchRange.clearMatched();
this.matchRange.removeHighlight();
// Clear current session and restart with the default search
// range.
// Re-run the finding once for cyclic.(#3517)
if ( matchCyclic && !cyclicRerun )
{
this.searchRange = getSearchRange( 1 );
this.matchRange = null;
return arguments.callee.apply( this,
Array.prototype.slice.call( arguments ).concat( [ true ] ) );
}
return false;
},
/**
* Record how much replacement occurred toward one replacing.
*/
replaceCounter : 0,
replace : function( dialog, pattern, newString, matchCase, matchWord,
matchCyclic , isReplaceAll )
{
isReplace = 1;
// Successiveness of current replace/find.
var result = 0;
// 1. Perform the replace when there's already a match here.
// 2. Otherwise perform the find but don't replace it immediately.
if ( this.matchRange && this.matchRange.isMatched()
&& !this.matchRange._.isReplaced && !this.matchRange.isReadOnly() )
{
// Turn off highlight for a while when saving snapshots.
this.matchRange.removeHighlight();
var domRange = this.matchRange.toDomRange();
var text = editor.document.createText( newString );
if ( !isReplaceAll )
{
// Save undo snaps before and after the replacement.
var selection = editor.getSelection();
selection.selectRanges( [ domRange ] );
editor.fire( 'saveSnapshot' );
}
domRange.deleteContents();
domRange.insertNode( text );
if ( !isReplaceAll )
{
selection.selectRanges( [ domRange ] );
editor.fire( 'saveSnapshot' );
}
this.matchRange.updateFromDomRange( domRange );
if ( !isReplaceAll )
this.matchRange.highlight();
this.matchRange._.isReplaced = true;
this.replaceCounter++;
result = 1;
}
else
result = this.find( pattern, matchCase, matchWord, matchCyclic, !isReplaceAll );
isReplace = 0;
return result;
}
};
/**
* The range in which find/replace happened, receive from user
* selection prior.
*/
function getSearchRange( isDefault )
{
var searchRange,
sel = editor.getSelection(),
body = editor.document.getBody();
if ( sel && !isDefault )
{
searchRange = sel.getRanges()[ 0 ].clone();
searchRange.collapse( true );
}
else
{
searchRange = new CKEDITOR.dom.range();
searchRange.setStartAt( body, CKEDITOR.POSITION_AFTER_START );
}
searchRange.setEndAt( body, CKEDITOR.POSITION_BEFORE_END );
return searchRange;
}
var lang = editor.lang.findAndReplace;
return {
title : lang.title,
resizable : CKEDITOR.DIALOG_RESIZE_NONE,
minWidth : 350,
minHeight : 170,
buttons : [ CKEDITOR.dialog.cancelButton ], // Cancel button only.
contents : [
{
id : 'find',
label : lang.find,
title : lang.find,
accessKey : '',
elements : [
{
type : 'hbox',
widths : [ '230px', '90px' ],
children :
[
{
type : 'text',
id : 'txtFindFind',
label : lang.findWhat,
isChanged : false,
labelLayout : 'horizontal',
accessKey : 'F'
},
{
type : 'button',
id : 'btnFind',
align : 'left',
style : 'width:100%',
label : lang.find,
onClick : function()
{
var dialog = this.getDialog();
if ( !finder.find( dialog.getValueOf( 'find', 'txtFindFind' ),
dialog.getValueOf( 'find', 'txtFindCaseChk' ),
dialog.getValueOf( 'find', 'txtFindWordChk' ),
dialog.getValueOf( 'find', 'txtFindCyclic' ) ) )
alert( lang
.notFoundMsg );
}
}
]
},
{
type : 'fieldset',
label : CKEDITOR.tools.htmlEncode( lang.findOptions ),
style : 'margin-top:29px',
children :
[
{
type : 'vbox',
padding : 0,
children :
[
{
type : 'checkbox',
id : 'txtFindCaseChk',
isChanged : false,
label : lang.matchCase
},
{
type : 'checkbox',
id : 'txtFindWordChk',
isChanged : false,
label : lang.matchWord
},
{
type : 'checkbox',
id : 'txtFindCyclic',
isChanged : false,
'default' : true,
label : lang.matchCyclic
}
]
}
]
}
]
},
{
id : 'replace',
label : lang.replace,
accessKey : 'M',
elements : [
{
type : 'hbox',
widths : [ '230px', '90px' ],
children :
[
{
type : 'text',
id : 'txtFindReplace',
label : lang.findWhat,
isChanged : false,
labelLayout : 'horizontal',
accessKey : 'F'
},
{
type : 'button',
id : 'btnFindReplace',
align : 'left',
style : 'width:100%',
label : lang.replace,
onClick : function()
{
var dialog = this.getDialog();
if ( !finder.replace( dialog,
dialog.getValueOf( 'replace', 'txtFindReplace' ),
dialog.getValueOf( 'replace', 'txtReplace' ),
dialog.getValueOf( 'replace', 'txtReplaceCaseChk' ),
dialog.getValueOf( 'replace', 'txtReplaceWordChk' ),
dialog.getValueOf( 'replace', 'txtReplaceCyclic' ) ) )
alert( lang
.notFoundMsg );
}
}
]
},
{
type : 'hbox',
widths : [ '230px', '90px' ],
children :
[
{
type : 'text',
id : 'txtReplace',
label : lang.replaceWith,
isChanged : false,
labelLayout : 'horizontal',
accessKey : 'R'
},
{
type : 'button',
id : 'btnReplaceAll',
align : 'left',
style : 'width:100%',
label : lang.replaceAll,
isChanged : false,
onClick : function()
{
var dialog = this.getDialog();
var replaceNums;
finder.replaceCounter = 0;
// Scope to full document.
finder.searchRange = getSearchRange( 1 );
if ( finder.matchRange )
{
finder.matchRange.removeHighlight();
finder.matchRange = null;
}
editor.fire( 'saveSnapshot' );
while ( finder.replace( dialog,
dialog.getValueOf( 'replace', 'txtFindReplace' ),
dialog.getValueOf( 'replace', 'txtReplace' ),
dialog.getValueOf( 'replace', 'txtReplaceCaseChk' ),
dialog.getValueOf( 'replace', 'txtReplaceWordChk' ),
false, true ) )
{ /*jsl:pass*/ }
if ( finder.replaceCounter )
{
alert( lang.replaceSuccessMsg.replace( /%1/, finder.replaceCounter ) );
editor.fire( 'saveSnapshot' );
}
else
alert( lang.notFoundMsg );
}
}
]
},
{
type : 'fieldset',
label : CKEDITOR.tools.htmlEncode( lang.findOptions ),
children :
[
{
type : 'vbox',
padding : 0,
children :
[
{
type : 'checkbox',
id : 'txtReplaceCaseChk',
isChanged : false,
label : lang.matchCase
},
{
type : 'checkbox',
id : 'txtReplaceWordChk',
isChanged : false,
label : lang.matchWord
},
{
type : 'checkbox',
id : 'txtReplaceCyclic',
isChanged : false,
'default' : true,
label : lang.matchCyclic
}
]
}
]
}
]
}
],
onLoad : function()
{
var dialog = this;
// Keep track of the current pattern field in use.
var patternField, wholeWordChkField;
// Ignore initial page select on dialog show
var isUserSelect = 0;
this.on( 'hide', function()
{
isUserSelect = 0;
});
this.on( 'show', function()
{
isUserSelect = 1;
});
this.selectPage = CKEDITOR.tools.override( this.selectPage, function( originalFunc )
{
return function( pageId )
{
originalFunc.call( dialog, pageId );
var currPage = dialog._.tabs[ pageId ];
var patternFieldInput, patternFieldId, wholeWordChkFieldId;
patternFieldId = pageId === 'find' ? 'txtFindFind' : 'txtFindReplace';
wholeWordChkFieldId = pageId === 'find' ? 'txtFindWordChk' : 'txtReplaceWordChk';
patternField = dialog.getContentElement( pageId,
patternFieldId );
wholeWordChkField = dialog.getContentElement( pageId,
wholeWordChkFieldId );
// Prepare for check pattern text filed 'keyup' event
if ( !currPage.initialized )
{
patternFieldInput = CKEDITOR.document
.getById( patternField._.inputId );
currPage.initialized = true;
}
// Synchronize fields on tab switch.
if ( isUserSelect )
syncFieldsBetweenTabs.call( this, pageId );
};
} );
},
onShow : function()
{
// Establish initial searching start position.
finder.searchRange = getSearchRange();
// Fill in the find field with selected text.
var selectedText = this.getParentEditor().getSelection().getSelectedText(),
patternFieldId = ( startupPage == 'find' ? 'txtFindFind' : 'txtFindReplace' );
var field = this.getContentElement( startupPage, patternFieldId );
field.setValue( selectedText );
field.select();
this.selectPage( startupPage );
this[ ( startupPage == 'find' && this._.editor.readOnly? 'hide' : 'show' ) + 'Page' ]( 'replace');
},
onHide : function()
{
var range;
if ( finder.matchRange && finder.matchRange.isMatched() )
{
finder.matchRange.removeHighlight();
editor.focus();
range = finder.matchRange.toDomRange();
if ( range )
editor.getSelection().selectRanges( [ range ] );
}
// Clear current session before dialog close
delete finder.matchRange;
},
onFocus : function()
{
if ( startupPage == 'replace' )
return this.getContentElement( 'replace', 'txtFindReplace' );
else
return this.getContentElement( 'find', 'txtFindFind' );
}
};
};
CKEDITOR.dialog.add( 'find', function( editor )
{
return findDialog( editor, 'find' );
});
CKEDITOR.dialog.add( 'replace', function( editor )
{
return findDialog( editor, 'replace' );
});
})(); | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/plugins/find/dialogs/find.js | find.js |
/*
Copyright (c) 2003-2011, 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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/es.js | es.js |
/*
Copyright (c) 2003-2011, 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
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/bs.js | bs.js |
/*
Copyright (c) 2003-2011, 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
* Mongolian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['mn'] =
{
/**
* 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 : 'Id',
name : 'Нэр',
langDir : 'Хэлний чиглэл',
langDirLtr : 'Зүүнээс баруун (LTR)',
langDirRtl : 'Баруунаас зүүн (RTL)',
langCode : 'Хэлний код',
longDescr : 'URL-ын тайлбар',
cssClass : 'Stylesheet классууд',
advisoryTitle : 'Зөвлөлдөх гарчиг',
cssStyle : 'Загвар',
ok : '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 : 'E-Mail',
targetFrame : '<Агуулах хүрээ>',
targetPopup : '<popup цонх>',
targetFrameName : 'Очих фремын нэр',
targetPopupName : 'Popup цонхны нэр',
popupFeatures : 'Popup цонхны онцлог',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Статус хэсэг',
popupLocationBar: 'Location хэсэг',
popupToolbar : 'Багажны хэсэг',
popupMenuBar : 'Meню хэсэг',
popupFullScreen : 'Цонх дүүргэх (IE)',
popupScrollBars : 'Скрол хэсэгүүд',
popupDependent : 'Хамаатай (Netscape)',
popupLeft : 'Зүүн байрлал',
popupTop : 'Дээд байрлал',
id : 'Id', // MISSING
langDir : 'Хэлний чиглэл',
langDirLTR : 'Зүүнээс баруун (LTR)',
langDirRTL : 'Баруунаас зүүн (RTL)',
acccessKey : 'Холбох түлхүүр',
name : 'Нэр',
langCode : 'Хэлний чиглэл',
tabIndex : 'Tab индекс',
advisoryTitle : 'Зөвлөлдөх гарчиг',
advisoryContentType : 'Зөвлөлдөх төрлийн агуулга',
cssClasses : 'Stylesheet классууд',
charset : 'Тэмдэгт оноох нөөцөд холбогдсон',
styles : 'Загвар',
rel : 'Relationship', // MISSING
selectAnchor : 'Холбоос сонгох',
anchorName : 'Холбоосын нэрээр',
anchorId : 'Элемэнт Id-гаар',
emailAddress : 'E-Mail Хаяг',
emailSubject : 'Message гарчиг',
emailBody : 'Message-ийн агуулга',
noAnchors : '(Баримт бичиг холбоосгүй байна)',
noUrl : 'Линк URL-ээ төрөлжүүлнэ үү',
noEmail : 'Е-mail хаягаа төрөлжүүлнэ үү'
},
// 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 : 'Нүх хоорондын зай (spacing)',
cellPad : 'Нүх доторлох(padding)',
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 : 'Submit',
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 : 'Baseline',
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 : 'Дүрэм шалгаад дууссан: 1 үг өөрчлөгдсөн',
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 : 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хайчлах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+X) товчны хослолыг ашиглана уу.',
copyError : 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хуулах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+C) товчны хослолыг ашиглана уу.',
pasteMsg : '(<strong>Ctrl/Cmd+V</strong>) товчийг ашиглан paste хийнэ үү. Мөн <strong>OK</strong> дар.',
securityMsg : 'Таны үзүүлэгч/browser/-н хамгаалалтын тохиргооноос болоод editor clipboard өгөгдөлрүү шууд хандах боломжгүй. Энэ цонход дахин paste хийхийг оролд.',
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 : 'Word-оос буулгах',
title : 'Word-оос буулгах',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Plain Text-ээс буулгах',
title : 'Plain Text-ээс буулгах'
},
templates :
{
button : 'Загварууд',
title : 'Загварын агуулга',
options : 'Template Options', // MISSING
insertOption : 'Одоогийн агууллагыг дарж бичих',
selectPromptMsg : 'Загварыг нээж editor-рүү сонгож оруулна уу<br />(Одоогийн агууллагыг устаж магадгүй):',
emptyListMsg : '(Загвар тодорхойлогдоогүй байна)'
},
showBlocks : 'Block-уудыг үзүүлэх',
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 : 'Formatted',
tag_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 : 'Paragraph (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 : 'Meta өгөгдөл',
chooseColor : 'Choose', // MISSING
other : '<other>',
docTitle : 'Хуудасны гарчиг',
charset : 'Encoding тэмдэгт',
charsetOther : 'Encoding-д өөр тэмдэгт оноох',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Төв европ',
charsetCT : 'Хятадын уламжлалт (Big5)',
charsetCR : 'Крил',
charsetGR : 'Гред',
charsetJP : 'Япон',
charsetKR : 'Солонгос',
charsetTR : 'Tурк',
charsetUN : 'Юникод (UTF-8)',
charsetWE : 'Баруун европ',
docType : 'Баримт бичгийн төрөл Heading',
docTypeOther : 'Бусад баримт бичгийн төрөл Heading',
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
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/mn.js | mn.js |
/*
Copyright (c) 2003-2011, 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 pdodział 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łowek',
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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/pl.js | pl.js |
/*
Copyright (c) 2003-2011, 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
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/af.js | af.js |
/*
Copyright (c) 2003-2011, 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
* Lithuanian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['lt'] =
{
/**
* 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 : 'Pilnas redaktorius, %1, spauskite ALT 0 dėl pagalbos.',
// ARIA descriptions.
toolbars : 'Redaktoriaus įrankiai',
editor : 'Pilnas redaktorius',
// Toolbar buttons without dialogs.
source : 'Šaltinis',
newPage : 'Naujas puslapis',
save : 'Išsaugoti',
preview : 'Peržiūra',
cut : 'Iškirpti',
copy : 'Kopijuoti',
paste : 'Įdėti',
print : 'Spausdinti',
underline : 'Pabrauktas',
bold : 'Pusjuodis',
italic : 'Kursyvas',
selectAll : 'Pažymėti viską',
removeFormat : 'Panaikinti formatą',
strike : 'Perbrauktas',
subscript : 'Apatinis indeksas',
superscript : 'Viršutinis indeksas',
horizontalrule : 'Įterpti horizontalią liniją',
pagebreak : 'Įterpti puslapių skirtuką',
pagebreakAlt : 'Puslapio skirtukas',
unlink : 'Panaikinti nuorodą',
undo : 'Atšaukti',
redo : 'Atstatyti',
// Common messages and labels.
common :
{
browseServer : 'Naršyti po serverį',
url : 'URL',
protocol : 'Protokolas',
upload : 'Siųsti',
uploadSubmit : 'Siųsti į serverį',
image : 'Vaizdas',
flash : 'Flash',
form : 'Forma',
checkbox : 'Žymimasis langelis',
radio : 'Žymimoji akutė',
textField : 'Teksto laukas',
textarea : 'Teksto sritis',
hiddenField : 'Nerodomas laukas',
button : 'Mygtukas',
select : 'Atrankos laukas',
imageButton : 'Vaizdinis mygtukas',
notSet : '<nėra nustatyta>',
id : 'Id',
name : 'Vardas',
langDir : 'Teksto kryptis',
langDirLtr : 'Iš kairės į dešinę (LTR)',
langDirRtl : 'Iš dešinės į kairę (RTL)',
langCode : 'Kalbos kodas',
longDescr : 'Ilgas aprašymas URL',
cssClass : 'Stilių lentelės klasės',
advisoryTitle : 'Konsultacinė antraštė',
cssStyle : 'Stilius',
ok : 'OK',
cancel : 'Nutraukti',
close : 'Uždaryti',
preview : 'Peržiūrėti',
generalTab : 'Bendros savybės',
advancedTab : 'Papildomas',
validateNumberFailed : 'Ši reikšmė nėra skaičius.',
confirmNewPage : 'Visas neišsaugotas turinys bus prarastas. Ar tikrai norite įkrauti naują puslapį?',
confirmCancel : 'Kai kurie parametrai pasikeitė. Ar tikrai norite užverti langą?',
options : 'Parametrai',
target : 'Tikslinė nuoroda',
targetNew : 'Naujas langas (_blank)',
targetTop : 'Viršutinis langas (_top)',
targetSelf : 'Esamas langas (_self)',
targetParent : 'Paskutinis langas (_parent)',
langDirLTR : 'Iš kairės į dešinę (LTR)',
langDirRTL : 'Iš dešinės į kairę (RTL)',
styles : 'Stilius',
cssClasses : 'Stilių klasės',
width : 'Plotis',
height : 'Aukštis',
align : 'Lygiuoti',
alignLeft : 'Kairę',
alignRight : 'Dešinę',
alignCenter : 'Centrą',
alignTop : 'Viršūnę',
alignMiddle : 'Vidurį',
alignBottom : 'Apačią',
invalidHeight : 'Aukštis turi būti nurodytas skaičiais.',
invalidWidth : 'Plotis turi būti nurodytas skaičiais.',
invalidCssLength : 'Reikšmė nurodyta "%1" laukui, turi būti teigiamas skaičius su arba be tinkamo CSS matavimo vieneto (px, %, in, cm, mm, em, ex, pt arba pc).',
invalidHtmlLength : 'Reikšmė nurodyta "%1" laukui, turi būti teigiamas skaičius su arba be tinkamo HTML matavimo vieneto (px arba %).',
invalidInlineStyle : 'Reikšmė nurodyta vidiniame stiliuje turi būti sudaryta iš vieno šių reikšmių "vardas : reikšmė", atskirta kabliataškiais.',
cssLengthTooltip : 'Įveskite reikšmę pikseliais arba skaičiais su tinkamu CSS vienetu (px, %, in, cm, mm, em, ex, pt arba pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, netinkamas</span>'
},
contextmenu :
{
options : 'Kontekstinio meniu parametrai'
},
// Special char dialog.
specialChar :
{
toolbar : 'Įterpti specialų simbolį',
title : 'Pasirinkite specialų simbolį',
options : 'Specialaus simbolio nustatymai'
},
// Link dialog.
link :
{
toolbar : 'Įterpti/taisyti nuorodą',
other : '<kitas>',
menu : 'Taisyti nuorodą',
title : 'Nuoroda',
info : 'Nuorodos informacija',
target : 'Paskirties vieta',
upload : 'Siųsti',
advanced : 'Papildomas',
type : 'Nuorodos tipas',
toUrl : 'Nuoroda',
toAnchor : 'Žymė šiame puslapyje',
toEmail : 'El.paštas',
targetFrame : '<kadras>',
targetPopup : '<išskleidžiamas langas>',
targetFrameName : 'Paskirties kadro vardas',
targetPopupName : 'Paskirties lango vardas',
popupFeatures : 'Išskleidžiamo lango savybės',
popupResizable : 'Kintamas dydis',
popupStatusBar : 'Būsenos juosta',
popupLocationBar: 'Adreso juosta',
popupToolbar : 'Mygtukų juosta',
popupMenuBar : 'Meniu juosta',
popupFullScreen : 'Visas ekranas (IE)',
popupScrollBars : 'Slinkties juostos',
popupDependent : 'Priklausomas (Netscape)',
popupLeft : 'Kairė pozicija',
popupTop : 'Viršutinė pozicija',
id : 'Id',
langDir : 'Teksto kryptis',
langDirLTR : 'Iš kairės į dešinę (LTR)',
langDirRTL : 'Iš dešinės į kairę (RTL)',
acccessKey : 'Prieigos raktas',
name : 'Vardas',
langCode : 'Teksto kryptis',
tabIndex : 'Tabuliavimo indeksas',
advisoryTitle : 'Konsultacinė antraštė',
advisoryContentType : 'Konsultacinio turinio tipas',
cssClasses : 'Stilių lentelės klasės',
charset : 'Susietų išteklių simbolių lentelė',
styles : 'Stilius',
rel : 'Sąsajos',
selectAnchor : 'Pasirinkite žymę',
anchorName : 'Pagal žymės vardą',
anchorId : 'Pagal žymės Id',
emailAddress : 'El.pašto adresas',
emailSubject : 'Žinutės tema',
emailBody : 'Žinutės turinys',
noAnchors : '(Šiame dokumente žymių nėra)',
noUrl : 'Prašome įvesti nuorodos URL',
noEmail : 'Prašome įvesti el.pašto adresą'
},
// Anchor dialog
anchor :
{
toolbar : 'Įterpti/modifikuoti žymę',
menu : 'Žymės savybės',
title : 'Žymės savybės',
name : 'Žymės vardas',
errorName : 'Prašome įvesti žymės vardą',
remove : 'Pašalinti žymę'
},
// List style dialog
list:
{
numberedTitle : 'Skaitmeninio sąrašo nustatymai',
bulletedTitle : 'Ženklelinio sąrašo nustatymai',
type : 'Rūšis',
start : 'Pradžia',
validateStartNumber :'Sąrašo pradžios skaitmuo turi būti sveikas skaičius.',
circle : 'Apskritimas',
disc : 'Diskas',
square : 'Kvadratas',
none : 'Niekas',
notset : '<nenurodytas>',
armenian : 'Armėniški skaitmenys',
georgian : 'Gruziniški skaitmenys (an, ban, gan, t.t)',
lowerRoman : 'Mažosios Romėnų (i, ii, iii, iv, v, t.t)',
upperRoman : 'Didžiosios Romėnų (I, II, III, IV, V, t.t)',
lowerAlpha : 'Mažosios Alpha (a, b, c, d, e, t.t)',
upperAlpha : 'Didžiosios Alpha (A, B, C, D, E, t.t)',
lowerGreek : 'Mažosios Graikų (alpha, beta, gamma, t.t)',
decimal : 'Dešimtainis (1, 2, 3, t.t)',
decimalLeadingZero : 'Dešimtainis su nuliu priekyje (01, 02, 03, t.t)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Surasti ir pakeisti',
find : 'Rasti',
replace : 'Pakeisti',
findWhat : 'Surasti tekstą:',
replaceWith : 'Pakeisti tekstu:',
notFoundMsg : 'Nurodytas tekstas nerastas.',
findOptions : 'Paieškos nustatymai',
matchCase : 'Skirti didžiąsias ir mažąsias raides',
matchWord : 'Atitikti pilną žodį',
matchCyclic : 'Sutampantis cikliškumas',
replaceAll : 'Pakeisti viską',
replaceSuccessMsg : '%1 sutapimas(ų) buvo pakeisti.'
},
// Table Dialog
table :
{
toolbar : 'Lentelė',
title : 'Lentelės savybės',
menu : 'Lentelės savybės',
deleteTable : 'Šalinti lentelę',
rows : 'Eilutės',
columns : 'Stulpeliai',
border : 'Rėmelio dydis',
widthPx : 'taškais',
widthPc : 'procentais',
widthUnit : 'pločio vienetas',
cellSpace : 'Tarpas tarp langelių',
cellPad : 'Trapas nuo langelio rėmo iki teksto',
caption : 'Antraštė',
summary : 'Santrauka',
headers : 'Antraštės',
headersNone : 'Nėra',
headersColumn : 'Pirmas stulpelis',
headersRow : 'Pirma eilutė',
headersBoth : 'Abu',
invalidRows : 'Skaičius turi būti didesnis nei 0.',
invalidCols : 'Skaičius turi būti didesnis nei 0.',
invalidBorder : 'Reikšmė turi būti nurodyta skaičiumi.',
invalidWidth : 'Reikšmė turi būti nurodyta skaičiumi.',
invalidHeight : 'Reikšmė turi būti nurodyta skaičiumi.',
invalidCellSpacing : 'Reikšmė turi būti nurodyta skaičiumi.',
invalidCellPadding : 'Reikšmė turi būti nurodyta skaičiumi.',
cell :
{
menu : 'Langelis',
insertBefore : 'Įterpti langelį prieš',
insertAfter : 'Įterpti langelį po',
deleteCell : 'Šalinti langelius',
merge : 'Sujungti langelius',
mergeRight : 'Sujungti su dešine',
mergeDown : 'Sujungti su apačia',
splitHorizontal : 'Skaidyti langelį horizontaliai',
splitVertical : 'Skaidyti langelį vertikaliai',
title : 'Cell nustatymai',
cellType : 'Cell rūšis',
rowSpan : 'Eilučių Span',
colSpan : 'Stulpelių Span',
wordWrap : 'Sutraukti raides',
hAlign : 'Horizontalus lygiavimas',
vAlign : 'Vertikalus lygiavimas',
alignBaseline : 'Apatinė linija',
bgColor : 'Fono spalva',
borderColor : 'Rėmelio spalva',
data : 'Data',
header : 'Antraštė',
yes : 'Taip',
no : 'Ne',
invalidWidth : 'Reikšmė turi būti skaičius.',
invalidHeight : 'Reikšmė turi būti skaičius.',
invalidRowSpan : 'Reikšmė turi būti skaičius.',
invalidColSpan : 'Reikšmė turi būti skaičius.',
chooseColor : 'Pasirinkite'
},
row :
{
menu : 'Eilutė',
insertBefore : 'Įterpti eilutę prieš',
insertAfter : 'Įterpti eilutę po',
deleteRow : 'Šalinti eilutes'
},
column :
{
menu : 'Stulpelis',
insertBefore : 'Įterpti stulpelį prieš',
insertAfter : 'Įterpti stulpelį po',
deleteColumn : 'Šalinti stulpelius'
}
},
// Button Dialog.
button :
{
title : 'Mygtuko savybės',
text : 'Tekstas (Reikšmė)',
type : 'Tipas',
typeBtn : 'Mygtukas',
typeSbm : 'Siųsti',
typeRst : 'Išvalyti'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Žymimojo langelio savybės',
radioTitle : 'Žymimosios akutės savybės',
value : 'Reikšmė',
selected : 'Pažymėtas'
},
// Form Dialog.
form :
{
title : 'Formos savybės',
menu : 'Formos savybės',
action : 'Veiksmas',
method : 'Metodas',
encoding : 'Kodavimas'
},
// Select Field Dialog.
select :
{
title : 'Atrankos lauko savybės',
selectInfo : 'Informacija',
opAvail : 'Galimos parinktys',
value : 'Reikšmė',
size : 'Dydis',
lines : 'eilučių',
chkMulti : 'Leisti daugeriopą atranką',
opText : 'Tekstas',
opValue : 'Reikšmė',
btnAdd : 'Įtraukti',
btnModify : 'Modifikuoti',
btnUp : 'Aukštyn',
btnDown : 'Žemyn',
btnSetValue : 'Laikyti pažymėta reikšme',
btnDelete : 'Trinti'
},
// Textarea Dialog.
textarea :
{
title : 'Teksto srities savybės',
cols : 'Ilgis',
rows : 'Plotis'
},
// Text Field Dialog.
textfield :
{
title : 'Teksto lauko savybės',
name : 'Vardas',
value : 'Reikšmė',
charWidth : 'Ilgis simboliais',
maxChars : 'Maksimalus simbolių skaičius',
type : 'Tipas',
typeText : 'Tekstas',
typePass : 'Slaptažodis'
},
// Hidden Field Dialog.
hidden :
{
title : 'Nerodomo lauko savybės',
name : 'Vardas',
value : 'Reikšmė'
},
// Image Dialog.
image :
{
title : 'Vaizdo savybės',
titleButton : 'Vaizdinio mygtuko savybės',
menu : 'Vaizdo savybės',
infoTab : 'Vaizdo informacija',
btnUpload : 'Siųsti į serverį',
upload : 'Nusiųsti',
alt : 'Alternatyvus Tekstas',
lockRatio : 'Išlaikyti proporciją',
resetSize : 'Atstatyti dydį',
border : 'Rėmelis',
hSpace : 'Hor.Erdvė',
vSpace : 'Vert.Erdvė',
alertUrl : 'Prašome įvesti vaizdo URL',
linkTab : 'Nuoroda',
button2Img : 'Ar norite mygtuką paversti paprastu paveiksliuku?',
img2Button : 'Ar norite paveiksliuką paversti mygtuku?',
urlMissing : 'Paveiksliuko nuorodos nėra.',
validateBorder : 'Reikšmė turi būti sveikas skaičius.',
validateHSpace : 'Reikšmė turi būti sveikas skaičius.',
validateVSpace : 'Reikšmė turi būti sveikas skaičius.'
},
// Flash Dialog
flash :
{
properties : 'Flash savybės',
propertiesTab : 'Nustatymai',
title : 'Flash savybės',
chkPlay : 'Automatinis paleidimas',
chkLoop : 'Ciklas',
chkMenu : 'Leisti Flash meniu',
chkFull : 'Leisti per visą ekraną',
scale : 'Mastelis',
scaleAll : 'Rodyti visą',
scaleNoBorder : 'Be rėmelio',
scaleFit : 'Tikslus atitikimas',
access : 'Skripto priėjimas',
accessAlways : 'Visada',
accessSameDomain: 'Tas pats domenas',
accessNever : 'Niekada',
alignAbsBottom : 'Absoliučią apačią',
alignAbsMiddle : 'Absoliutų vidurį',
alignBaseline : 'Apatinę liniją',
alignTextTop : 'Teksto viršūnę',
quality : 'Kokybė',
qualityBest : 'Geriausia',
qualityHigh : 'Gera',
qualityAutoHigh : 'Automatiškai Gera',
qualityMedium : 'Vidutinė',
qualityAutoLow : 'Automatiškai Žema',
qualityLow : 'Žema',
windowModeWindow: 'Langas',
windowModeOpaque: 'Nepermatomas',
windowModeTransparent : 'Permatomas',
windowMode : 'Lango režimas',
flashvars : 'Flash kintamieji',
bgcolor : 'Fono spalva',
hSpace : 'Hor.Erdvė',
vSpace : 'Vert.Erdvė',
validateSrc : 'Prašome įvesti nuorodos URL',
validateHSpace : 'HSpace turi būti skaičius.',
validateVSpace : 'VSpace turi būti skaičius.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Rašybos tikrinimas',
title : 'Tikrinti klaidas',
notAvailable : 'Atleiskite, šiuo metu servisas neprieinamas.',
errorLoading : 'Klaida įkraunant servisą: %s.',
notInDic : 'Žodyne nerastas',
changeTo : 'Pakeisti į',
btnIgnore : 'Ignoruoti',
btnIgnoreAll : 'Ignoruoti visus',
btnReplace : 'Pakeisti',
btnReplaceAll : 'Pakeisti visus',
btnUndo : 'Atšaukti',
noSuggestions : '- Nėra pasiūlymų -',
progress : 'Vyksta rašybos tikrinimas...',
noMispell : 'Rašybos tikrinimas baigtas: Nerasta rašybos klaidų',
noChanges : 'Rašybos tikrinimas baigtas: Nėra pakeistų žodžių',
oneChange : 'Rašybos tikrinimas baigtas: Vienas žodis pakeistas',
manyChanges : 'Rašybos tikrinimas baigtas: Pakeista %1 žodžių',
ieSpellDownload : 'Rašybos tikrinimas neinstaliuotas. Ar Jūs norite jį dabar atsisiųsti?'
},
smiley :
{
toolbar : 'Veideliai',
title : 'Įterpti veidelį',
options : 'Šypsenėlių nustatymai'
},
elementsPath :
{
eleLabel : 'Elemento kelias',
eleTitle : '%1 elementas'
},
numberedlist : 'Numeruotas sąrašas',
bulletedlist : 'Suženklintas sąrašas',
indent : 'Padidinti įtrauką',
outdent : 'Sumažinti įtrauką',
justify :
{
left : 'Lygiuoti kairę',
center : 'Centruoti',
right : 'Lygiuoti dešinę',
block : 'Lygiuoti abi puses'
},
blockquote : 'Citata',
clipboard :
{
title : 'Įdėti',
cutError : 'Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti iškirpimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl/Cmd+X).',
copyError : 'Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti kopijavimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl/Cmd+C).',
pasteMsg : 'Žemiau esančiame įvedimo lauke įdėkite tekstą, naudodami klaviatūrą (<STRONG>Ctrl/Cmd+V</STRONG>) ir paspauskite mygtuką <STRONG>OK</STRONG>.',
securityMsg : 'Dėl jūsų naršyklės saugumo nustatymų, redaktorius negali tiesiogiai pasiekti laikinosios atminties. Jums reikia nukopijuoti dar kartą į šį langą.',
pasteArea : 'Įkelti dalį'
},
pastefromword :
{
confirmCleanup : 'Tekstas, kurį įkeliate yra kopijuojamas iš Word. Ar norite jį išvalyti prieš įkeliant?',
toolbar : 'Įdėti iš Word',
title : 'Įdėti iš Word',
error : 'Dėl vidinių sutrikimų, nepavyko išvalyti įkeliamo teksto'
},
pasteText :
{
button : 'Įdėti kaip gryną tekstą',
title : 'Įdėti kaip gryną tekstą'
},
templates :
{
button : 'Šablonai',
title : 'Turinio šablonai',
options : 'Template Options',
insertOption : 'Pakeisti dabartinį turinį pasirinktu šablonu',
selectPromptMsg : 'Pasirinkite norimą šabloną<br>(<b>Dėmesio!</b> esamas turinys bus prarastas):',
emptyListMsg : '(Šablonų sąrašas tuščias)'
},
showBlocks : 'Rodyti blokus',
stylesCombo :
{
label : 'Stilius',
panelTitle : 'Stilių formatavimas',
panelTitle1 : 'Blokų stiliai',
panelTitle2 : 'Vidiniai stiliai',
panelTitle3 : 'Objektų stiliai'
},
format :
{
label : 'Šrifto formatas',
panelTitle : 'Šrifto formatas',
tag_p : 'Normalus',
tag_pre : 'Formuotas',
tag_address : 'Kreipinio',
tag_h1 : 'Antraštinis 1',
tag_h2 : 'Antraštinis 2',
tag_h3 : 'Antraštinis 3',
tag_h4 : 'Antraštinis 4',
tag_h5 : 'Antraštinis 5',
tag_h6 : 'Antraštinis 6',
tag_div : 'Normalus (DIV)'
},
div :
{
title : 'Sukurti Div elementą',
toolbar : 'Sukurti Div elementą',
cssClassInputLabel : 'Stilių klasės',
styleSelectLabel : 'Stilius',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Kalbos kodas',
inlineStyleInputLabel : 'Vidiniai stiliai',
advisoryTitleInputLabel : 'Patariamas pavadinimas',
langDirLabel : 'Kalbos nurodymai',
langDirLTRLabel : 'Iš kairės į dešinę (LTR)',
langDirRTLLabel : 'Iš dešinės į kairę (RTL)',
edit : 'Redaguoti Div',
remove : 'Pašalinti Div'
},
iframe :
{
title : 'IFrame nustatymai',
toolbar : 'IFrame',
noUrl : 'Nurodykite iframe nuorodą',
scrolling : 'Įjungti slankiklius',
border : 'Rodyti rėmelį'
},
font :
{
label : 'Šriftas',
voiceLabel : 'Šriftas',
panelTitle : 'Šriftas'
},
fontSize :
{
label : 'Šrifto dydis',
voiceLabel : 'Šrifto dydis',
panelTitle : 'Šrifto dydis'
},
colorButton :
{
textColorTitle : 'Teksto spalva',
bgColorTitle : 'Fono spalva',
panelTitle : 'Spalva',
auto : 'Automatinis',
more : 'Daugiau spalvų...'
},
colors :
{
'000' : 'Juoda',
'800000' : 'Kaštoninė',
'8B4513' : 'Tamsiai ruda',
'2F4F4F' : 'Pilka tamsaus šiferio',
'008080' : 'Teal',
'000080' : 'Karinis',
'4B0082' : 'Indigo',
'696969' : 'Tamsiai pilka',
'B22222' : 'Ugnies',
'A52A2A' : 'Ruda',
'DAA520' : 'Aukso',
'006400' : 'Tamsiai žalia',
'40E0D0' : 'Turquoise',
'0000CD' : 'Vidutinė mėlyna',
'800080' : 'Violetinė',
'808080' : 'Pilka',
'F00' : 'Raudona',
'FF8C00' : 'Tamsiai oranžinė',
'FFD700' : 'Auksinė',
'008000' : 'Žalia',
'0FF' : 'Žydra',
'00F' : 'Mėlyna',
'EE82EE' : 'Violetinė',
'A9A9A9' : 'Dim Gray',
'FFA07A' : 'Light Salmon',
'FFA500' : 'Oranžinė',
'FFFF00' : 'Geltona',
'00FF00' : 'Citrinų',
'AFEEEE' : 'Pale Turquoise',
'ADD8E6' : 'Šviesiai mėlyna',
'DDA0DD' : 'Plum',
'D3D3D3' : 'Šviesiai pilka',
'FFF0F5' : 'Lavender Blush',
'FAEBD7' : 'Antique White',
'FFFFE0' : 'Šviesiai geltona',
'F0FFF0' : 'Honeydew',
'F0FFFF' : 'Azure',
'F0F8FF' : 'Alice Blue',
'E6E6FA' : 'Lavender',
'FFF' : 'Balta'
},
scayt :
{
title : 'Tikrinti klaidas kai rašoma',
opera_title : 'Nepalaikoma naršyklėje Opera',
enable : 'Įjungti SCAYT',
disable : 'Išjungti SCAYT',
about : 'Apie SCAYT',
toggle : 'Perjungti SCAYT',
options : 'Parametrai',
langs : 'Kalbos',
moreSuggestions : 'Daugiau patarimų',
ignore : 'Ignoruoti',
ignoreAll : 'Ignoruoti viską',
addWord : 'Pridėti žodį',
emptyDic : 'Žodyno vardas neturėtų būti tuščias.',
optionsTab : 'Parametrai',
allCaps : 'Ignoruoti visas didžiąsias raides',
ignoreDomainNames : 'Ignoruoti domenų vardus',
mixedCase : 'Ignoruoti maišyto dydžio raides',
mixedWithDigits : 'Ignoruoti raides su skaičiais',
languagesTab : 'Kalbos',
dictionariesTab : 'Žodynai',
dic_field_name : 'Žodyno pavadinimas',
dic_create : 'Sukurti',
dic_restore : 'Atstatyti',
dic_delete : 'Ištrinti',
dic_rename : 'Pervadinti',
dic_info : 'Paprastai žodynas yra saugojamas sausainėliuose (cookies), kurių dydis, bet kokiu atveju, yra apribotas. Esant sausainėlių apimties pervišiui, viskas bus saugoma serveryje. Jei norite iš kart viską saugoti serveryje, turite sugalvoti žodynui pavadinimą. Jei jau turite žodyną, įrašykite pavadinimą ir nuspauskite Atstatyti mygtuką.',
aboutTab : 'Apie'
},
about :
{
title : 'Apie CKEditor',
dlgTitle : 'Apie CKEditor',
help : 'Patikrinkite $1 dėl pagalbos.',
userGuide : 'CKEditor Vartotojo Gidas',
moreInfo : 'Dėl licencijavimo apsilankykite mūsų svetainėje:',
copy : 'Copyright © $1. Visos teiss saugomos.'
},
maximize : 'Išdidinti',
minimize : 'Sumažinti',
fakeobjects :
{
anchor : 'Žymė',
flash : 'Flash animacija',
iframe : 'IFrame',
hiddenfield : 'Paslėptas laukas',
unknown : 'Nežinomas objektas'
},
resize : 'Pavilkite, kad pakeistumėte dydį',
colordialog :
{
title : 'Pasirinkite spalvą',
options : 'Spalvos nustatymai',
highlight : 'Paryškinti',
selected : 'Pasirinkta spalva',
clear : 'Išvalyti'
},
toolbarCollapse : 'Apjungti įrankių juostą',
toolbarExpand : 'Išplėsti įrankių juostą',
toolbarGroups :
{
document : 'Dokumentas',
clipboard : 'Atmintinė/Atgal',
editing : 'Redagavimas',
forms : 'Formos',
basicstyles : 'Pagrindiniai stiliai',
paragraph : 'Paragrafas',
links : 'Nuorodos',
insert : 'Įterpti',
styles : 'Stiliai',
colors : 'Spalvos',
tools : 'Įrankiai'
},
bidi :
{
ltr : 'Tekstas iš kairės į dešinę',
rtl : 'Tekstas iš dešinės į kairę'
},
docprops :
{
label : 'Dokumento savybės',
title : 'Dokumento savybės',
design : 'Išdėstymas',
meta : 'Meta duomenys',
chooseColor : 'Pasirinkite',
other : '<kitas>',
docTitle : 'Puslapio antraštė',
charset : 'Simbolių kodavimo lentelė',
charsetOther : 'Kita simbolių kodavimo lentelė',
charsetASCII : 'ASCII',
charsetCE : 'Centrinės Europos',
charsetCT : 'Tradicinės kinų (Big5)',
charsetCR : 'Kirilica',
charsetGR : 'Graikų',
charsetJP : 'Japonų',
charsetKR : 'Korėjiečių',
charsetTR : 'Turkų',
charsetUN : 'Unikodas (UTF-8)',
charsetWE : 'Vakarų Europos',
docType : 'Dokumento tipo antraštė',
docTypeOther : 'Kita dokumento tipo antraštė',
xhtmlDec : 'Įtraukti XHTML deklaracijas',
bgColor : 'Fono spalva',
bgImage : 'Fono paveikslėlio nuoroda (URL)',
bgFixed : 'Neslenkantis fonas',
txtColor : 'Teksto spalva',
margin : 'Puslapio kraštinės',
marginTop : 'Viršuje',
marginLeft : 'Kairėje',
marginRight : 'Dešinėje',
marginBottom : 'Apačioje',
metaKeywords : 'Dokumento indeksavimo raktiniai žodžiai (atskirti kableliais)',
metaDescription : 'Dokumento apibūdinimas',
metaAuthor : 'Autorius',
metaCopyright : 'Autorinės teisės',
previewHtml : '<p>Tai yra <strong>pavyzdinis tekstas</strong>. Jūs naudojate <a href="javascript:void(0)">CKEditor</a>.</p>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/lt.js | lt.js |
/*
Copyright (c) 2003-2011, 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
* Slovenian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['sl'] =
{
/**
* 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 : 'Izvorna koda',
newPage : 'Nova stran',
save : 'Shrani',
preview : 'Predogled',
cut : 'Izreži',
copy : 'Kopiraj',
paste : 'Prilepi',
print : 'Natisni',
underline : 'Podčrtano',
bold : 'Krepko',
italic : 'Ležeče',
selectAll : 'Izberi vse',
removeFormat : 'Odstrani oblikovanje',
strike : 'Prečrtano',
subscript : 'Podpisano',
superscript : 'Nadpisano',
horizontalrule : 'Vstavi vodoravno črto',
pagebreak : 'Vstavi prelom strani',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Odstrani povezavo',
undo : 'Razveljavi',
redo : 'Ponovi',
// Common messages and labels.
common :
{
browseServer : 'Prebrskaj na strežniku',
url : 'URL',
protocol : 'Protokol',
upload : 'Prenesi',
uploadSubmit : 'Pošlji na strežnik',
image : 'Slika',
flash : 'Flash',
form : 'Obrazec',
checkbox : 'Potrditveno polje',
radio : 'Izbirno polje',
textField : 'Vnosno polje',
textarea : 'Vnosno območje',
hiddenField : 'Skrito polje',
button : 'Gumb',
select : 'Spustni seznam',
imageButton : 'Gumb s sliko',
notSet : '<ni postavljen>',
id : 'Id',
name : 'Ime',
langDir : 'Smer jezika',
langDirLtr : 'Od leve proti desni (LTR)',
langDirRtl : 'Od desne proti levi (RTL)',
langCode : 'Oznaka jezika',
longDescr : 'Dolg opis URL-ja',
cssClass : 'Razred stilne predloge',
advisoryTitle : 'Predlagani naslov',
cssStyle : 'Slog',
ok : 'V redu',
cancel : 'Prekliči',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'Splošno',
advancedTab : 'Napredno',
validateNumberFailed : 'Ta vrednost ni število.',
confirmNewPage : 'Vse neshranjene spremembe te vsebine bodo izgubljene. Ali gotovo želiš naložiti novo stran?',
confirmCancel : 'Nekaj možnosti je bilo spremenjenih. Ali gotovo želiš zapreti okno?',
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 : 'Višina',
align : 'Poravnava',
alignLeft : 'Levo',
alignRight : 'Desno',
alignCenter : 'Sredinsko',
alignTop : 'Na vrh',
alignMiddle : 'V sredino',
alignBottom : 'Na dno',
invalidHeight : 'Višina mora biti število.',
invalidWidth : 'Širina mora biti število.',
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">, nedosegljiv</span>'
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Vstavi posebni znak',
title : 'Izberi posebni znak',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Vstavi/uredi povezavo',
other : '<drug>',
menu : 'Uredi povezavo',
title : 'Povezava',
info : 'Podatki o povezavi',
target : 'Cilj',
upload : 'Prenesi',
advanced : 'Napredno',
type : 'Vrsta povezave',
toUrl : 'URL', // MISSING
toAnchor : 'Zaznamek na tej strani',
toEmail : 'Elektronski naslov',
targetFrame : '<okvir>',
targetPopup : '<pojavno okno>',
targetFrameName : 'Ime ciljnega okvirja',
targetPopupName : 'Ime pojavnega okna',
popupFeatures : 'Značilnosti pojavnega okna',
popupResizable : 'Spremenljive velikosti',
popupStatusBar : 'Vrstica stanja',
popupLocationBar: 'Naslovna vrstica',
popupToolbar : 'Orodna vrstica',
popupMenuBar : 'Menijska vrstica',
popupFullScreen : 'Celozaslonska slika (IE)',
popupScrollBars : 'Drsniki',
popupDependent : 'Podokno (Netscape)',
popupLeft : 'Lega levo',
popupTop : 'Lega na vrhu',
id : 'Id',
langDir : 'Smer jezika',
langDirLTR : 'Od leve proti desni (LTR)',
langDirRTL : 'Od desne proti levi (RTL)',
acccessKey : 'Vstopno geslo',
name : 'Ime',
langCode : 'Smer jezika',
tabIndex : 'Številka tabulatorja',
advisoryTitle : 'Predlagani naslov',
advisoryContentType : 'Predlagani tip vsebine (content-type)',
cssClasses : 'Razred stilne predloge',
charset : 'Kodna tabela povezanega vira',
styles : 'Slog',
rel : 'Relationship', // MISSING
selectAnchor : 'Izberi zaznamek',
anchorName : 'Po imenu zaznamka',
anchorId : 'Po ID-ju elementa',
emailAddress : 'Elektronski naslov',
emailSubject : 'Predmet sporočila',
emailBody : 'Vsebina sporočila',
noAnchors : '(V tem dokumentu ni zaznamkov)',
noUrl : 'Vnesite URL povezave',
noEmail : 'Vnesite elektronski naslov'
},
// Anchor dialog
anchor :
{
toolbar : 'Vstavi/uredi zaznamek',
menu : 'Lastnosti zaznamka',
title : 'Lastnosti zaznamka',
name : 'Ime zaznamka',
errorName : 'Prosim vnesite ime zaznamka',
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 : 'Najdi in zamenjaj',
find : 'Najdi',
replace : 'Zamenjaj',
findWhat : 'Najdi:',
replaceWith : 'Zamenjaj z:',
notFoundMsg : 'Navedeno besedilo ni bilo najdeno.',
findOptions : 'Find Options', // MISSING
matchCase : 'Razlikuj velike in male črke',
matchWord : 'Samo cele besede',
matchCyclic : 'Primerjaj znake v cirilici',
replaceAll : 'Zamenjaj vse',
replaceSuccessMsg : '%1 pojavitev je bilo zamenjano.'
},
// Table Dialog
table :
{
toolbar : 'Tabela',
title : 'Lastnosti tabele',
menu : 'Lastnosti tabele',
deleteTable : 'Izbriši tabelo',
rows : 'Vrstice',
columns : 'Stolpci',
border : 'Velikost obrobe',
widthPx : 'pik',
widthPc : 'procentov',
widthUnit : 'width unit', // MISSING
cellSpace : 'Razmik med celicami',
cellPad : 'Polnilo med celicami',
caption : 'Naslov',
summary : 'Povzetek',
headers : 'Glave',
headersNone : 'Brez',
headersColumn : 'Prvi stolpec',
headersRow : 'Prva vrstica',
headersBoth : 'Oboje',
invalidRows : 'Število vrstic mora biti večje od 0.',
invalidCols : 'Število stolpcev mora biti večje od 0.',
invalidBorder : 'Širina obrobe mora biti število.',
invalidWidth : 'Širina tabele mora biti število.',
invalidHeight : 'Višina tabele mora biti število.',
invalidCellSpacing : 'Razmik med celicami mora biti število.',
invalidCellPadding : 'Zamik celic mora biti število',
cell :
{
menu : 'Celica',
insertBefore : 'Vstavi celico pred',
insertAfter : 'Vstavi celico za',
deleteCell : 'Izbriši celice',
merge : 'Združi celice',
mergeRight : 'Združi desno',
mergeDown : 'Druži navzdol',
splitHorizontal : 'Razdeli celico vodoravno',
splitVertical : 'Razdeli celico navpično',
title : 'Lastnosti celice',
cellType : 'Vrsta celice',
rowSpan : 'Razpon vrstic',
colSpan : 'Razpon stolpcev',
wordWrap : 'Prelom besedila',
hAlign : 'Vodoravna poravnava',
vAlign : 'Navpična poravnava',
alignBaseline : 'Osnovnica',
bgColor : 'Barva ozadja',
borderColor : 'Barva obrobe',
data : 'Podatki',
header : 'Glava',
yes : 'Da',
no : 'Ne',
invalidWidth : 'Širina celice mora biti število.',
invalidHeight : 'Višina celice mora biti število.',
invalidRowSpan : 'Razpon vrstic mora biti celo število.',
invalidColSpan : 'Razpon stolpcev mora biti celo število.',
chooseColor : 'Izberi'
},
row :
{
menu : 'Vrstica',
insertBefore : 'Vstavi vrstico pred',
insertAfter : 'Vstavi vrstico za',
deleteRow : 'Izbriši vrstice'
},
column :
{
menu : 'Stolpec',
insertBefore : 'Vstavi stolpec pred',
insertAfter : 'Vstavi stolpec za',
deleteColumn : 'Izbriši stolpce'
}
},
// Button Dialog.
button :
{
title : 'Lastnosti gumba',
text : 'Besedilo (Vrednost)',
type : 'Tip',
typeBtn : 'Gumb',
typeSbm : 'Potrdi',
typeRst : 'Ponastavi'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Lastnosti potrditvenega polja',
radioTitle : 'Lastnosti izbirnega polja',
value : 'Vrednost',
selected : 'Izbrano'
},
// Form Dialog.
form :
{
title : 'Lastnosti obrazca',
menu : 'Lastnosti obrazca',
action : 'Akcija',
method : 'Metoda',
encoding : 'Kodiranje znakov'
},
// Select Field Dialog.
select :
{
title : 'Lastnosti spustnega seznama',
selectInfo : 'Podatki',
opAvail : 'Razpoložljive izbire',
value : 'Vrednost',
size : 'Velikost',
lines : 'vrstic',
chkMulti : 'Dovoli izbor večih vrstic',
opText : 'Besedilo',
opValue : 'Vrednost',
btnAdd : 'Dodaj',
btnModify : 'Spremeni',
btnUp : 'Gor',
btnDown : 'Dol',
btnSetValue : 'Postavi kot privzeto izbiro',
btnDelete : 'Izbriši'
},
// Textarea Dialog.
textarea :
{
title : 'Lastnosti vnosnega območja',
cols : 'Stolpcev',
rows : 'Vrstic'
},
// Text Field Dialog.
textfield :
{
title : 'Lastnosti vnosnega polja',
name : 'Ime',
value : 'Vrednost',
charWidth : 'Dolžina',
maxChars : 'Največje število znakov',
type : 'Tip',
typeText : 'Besedilo',
typePass : 'Geslo'
},
// Hidden Field Dialog.
hidden :
{
title : 'Lastnosti skritega polja',
name : 'Ime',
value : 'Vrednost'
},
// Image Dialog.
image :
{
title : 'Lastnosti slike',
titleButton : 'Lastnosti gumba s sliko',
menu : 'Lastnosti slike',
infoTab : 'Podatki o sliki',
btnUpload : 'Pošlji na strežnik',
upload : 'Pošlji',
alt : 'Nadomestno besedilo',
lockRatio : 'Zakleni razmerje',
resetSize : 'Ponastavi velikost',
border : 'Obroba',
hSpace : 'Vodoravni razmik',
vSpace : 'Navpični razmik',
alertUrl : 'Vnesite URL slike',
linkTab : 'Povezava',
button2Img : 'Želiš pretvoriti izbrani gumb s sliko v preprosto sliko?',
img2Button : 'Želiš pretvoriti izbrano sliko v gumb s sliko?',
urlMissing : 'Manjka vir (URL) slike.',
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 : 'Lastnosti Flash',
propertiesTab : 'Lastnosti',
title : 'Lastnosti Flash',
chkPlay : 'Samodejno predvajaj',
chkLoop : 'Ponavljanje',
chkMenu : 'Omogoči Flash Meni',
chkFull : 'Dovoli celozaslonski način',
scale : 'Povečava',
scaleAll : 'Pokaži vse',
scaleNoBorder : 'Brez obrobe',
scaleFit : 'Natančno prileganje',
access : 'Dostop skript',
accessAlways : 'Vedno',
accessSameDomain: 'Samo ista domena',
accessNever : 'Nikoli',
alignAbsBottom : 'Popolnoma na dno',
alignAbsMiddle : 'Popolnoma v sredino',
alignBaseline : 'Na osnovno črto',
alignTextTop : 'Besedilo na vrh',
quality : 'Kakovost',
qualityBest : 'Najvišja',
qualityHigh : 'Visoka',
qualityAutoHigh : 'Samodejno visoka',
qualityMedium : 'Srednja',
qualityAutoLow : 'Samodejno nizka',
qualityLow : 'Nizka',
windowModeWindow: 'Okno',
windowModeOpaque: 'Motno',
windowModeTransparent : 'Prosojno',
windowMode : 'Vrsta okna',
flashvars : 'Spremenljivke za Flash',
bgcolor : 'Barva ozadja',
hSpace : 'Vodoravni razmik',
vSpace : 'Navpični razmik',
validateSrc : 'Vnesite URL povezave',
validateHSpace : 'Vodoravni razmik mora biti število.',
validateVSpace : 'Navpični razmik mora biti število.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Preveri črkovanje',
title : 'Črkovalnik',
notAvailable : 'Oprostite, storitev trenutno ni dosegljiva.',
errorLoading : 'Napaka pri nalaganju storitve programa na naslovu %s.',
notInDic : 'Ni v slovarju',
changeTo : 'Spremeni v',
btnIgnore : 'Prezri',
btnIgnoreAll : 'Prezri vse',
btnReplace : 'Zamenjaj',
btnReplaceAll : 'Zamenjaj vse',
btnUndo : 'Razveljavi',
noSuggestions : '- Ni predlogov -',
progress : 'Preverjanje črkovanja se izvaja...',
noMispell : 'Črkovanje je končano: Brez napak',
noChanges : 'Črkovanje je končano: Nobena beseda ni bila spremenjena',
oneChange : 'Črkovanje je končano: Spremenjena je bila ena beseda',
manyChanges : 'Črkovanje je končano: Spremenjenih je bilo %1 besed',
ieSpellDownload : 'Črkovalnik ni nameščen. Ali ga želite prenesti sedaj?'
},
smiley :
{
toolbar : 'Smeško',
title : 'Vstavi smeška',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element'
},
numberedlist : 'Oštevilčen seznam',
bulletedlist : 'Označen seznam',
indent : 'Povečaj zamik',
outdent : 'Zmanjšaj zamik',
justify :
{
left : 'Leva poravnava',
center : 'Sredinska poravnava',
right : 'Desna poravnava',
block : 'Obojestranska poravnava'
},
blockquote : 'Citat',
clipboard :
{
title : 'Prilepi',
cutError : 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega izrezovanja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+X).',
copyError : 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega kopiranja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+C).',
pasteMsg : 'Prosim prilepite v sleči okvir s pomočjo tipkovnice (<STRONG>Ctrl/Cmd+V</STRONG>) in pritisnite <STRONG>V redu</STRONG>.',
securityMsg : 'Zaradi varnostnih nastavitev vašega brskalnika urejevalnik ne more neposredno dostopati do odložišča. Vsebino odložišča ponovno prilepite v to okno.',
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 : 'Prilepi iz Worda',
title : 'Prilepi iz Worda',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Prilepi kot golo besedilo',
title : 'Prilepi kot golo besedilo'
},
templates :
{
button : 'Predloge',
title : 'Vsebinske predloge',
options : 'Template Options', // MISSING
insertOption : 'Zamenjaj trenutno vsebino',
selectPromptMsg : 'Izberite predlogo, ki jo želite odpreti v urejevalniku<br>(trenutna vsebina bo izgubljena):',
emptyListMsg : '(Ni pripravljenih predlog)'
},
showBlocks : 'Prikaži ograde',
stylesCombo :
{
label : 'Slog',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Slogi odstavkov',
panelTitle2 : 'Slogi besedila',
panelTitle3 : 'Slogi objektov'
},
format :
{
label : 'Oblika',
panelTitle : 'Oblika',
tag_p : 'Navaden',
tag_pre : 'Oblikovan',
tag_address : 'Napis',
tag_h1 : 'Naslov 1',
tag_h2 : 'Naslov 2',
tag_h3 : 'Naslov 3',
tag_h4 : 'Naslov 4',
tag_h5 : 'Naslov 5',
tag_h6 : 'Naslov 6',
tag_div : 'Navaden (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 : 'Pisava',
voiceLabel : 'Pisava',
panelTitle : 'Pisava'
},
fontSize :
{
label : 'Velikost',
voiceLabel : 'Velikost',
panelTitle : 'Velikost'
},
colorButton :
{
textColorTitle : 'Barva besedila',
bgColorTitle : 'Barva ozadja',
panelTitle : 'Colors', // MISSING
auto : 'Samodejno',
more : 'Več barv...'
},
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 : 'Črkovanje med tipkanjem',
opera_title : 'Not supported by Opera', // MISSING
enable : 'Omogoči SCAYT',
disable : 'Onemogoči SCAYT',
about : 'O storitvi SCAYT',
toggle : 'Preklopi SCAYT',
options : 'Možnosti',
langs : 'Jeziki',
moreSuggestions : 'Več predlogov',
ignore : 'Prezri',
ignoreAll : 'Prezri vse',
addWord : 'Dodaj besedo',
emptyDic : 'Ime slovarja ne more biti prazno.',
optionsTab : 'Možnosti',
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 : 'Jeziki',
dictionariesTab : 'Slovarji',
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 : 'O storitvi'
},
about :
{
title : 'O programu CKEditor',
dlgTitle : 'O programu CKEditor',
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'Za informacijo o licenci prostim obiščite našo spletno stran:',
copy : 'Copyright © $1. Vse pravice pridržane.'
},
maximize : 'Maksimiraj',
minimize : 'Minimiraj',
fakeobjects :
{
anchor : 'Sidro',
flash : 'Flash animacija',
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Neznan objekt'
},
resize : 'Potegni za spremembo velikosti',
colordialog :
{
title : 'Izberi barvo',
options : 'Color Options', // MISSING
highlight : 'Poudarjeno',
selected : 'Izbrano',
clear : 'Počisti'
},
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 : 'Lastnosti dokumenta',
title : 'Lastnosti dokumenta',
design : 'Design', // MISSING
meta : 'Meta podatki',
chooseColor : 'Izberi',
other : '<drug>',
docTitle : 'Naslov strani',
charset : 'Kodna tabela',
charsetOther : 'Druga kodna tabela',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Srednjeevropsko',
charsetCT : 'Tradicionalno Kitajsko (Big5)',
charsetCR : 'Cirilica',
charsetGR : 'Grško',
charsetJP : 'Japonsko',
charsetKR : 'Korejsko',
charsetTR : 'Turško',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Zahodnoevropsko',
docType : 'Glava tipa dokumenta',
docTypeOther : 'Druga glava tipa dokumenta',
xhtmlDec : 'Vstavi XHTML deklaracije',
bgColor : 'Barva ozadja',
bgImage : 'URL slike za ozadje',
bgFixed : 'Nepremično ozadje',
txtColor : 'Barva besedila',
margin : 'Zamiki strani',
marginTop : 'Na vrhu',
marginLeft : 'Levo',
marginRight : 'Desno',
marginBottom : 'Spodaj',
metaKeywords : 'Ključne besede (ločene z vejicami)',
metaDescription : 'Opis strani',
metaAuthor : 'Avtor',
metaCopyright : 'Avtorske pravice',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/sl.js | sl.js |
/*
Copyright (c) 2003-2011, 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
* Portuguese language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['pt'] =
{
/**
* 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 : 'Fonte',
newPage : 'Nova Página',
save : 'Guardar',
preview : 'Pré-visualizar',
cut : 'Cortar',
copy : 'Copiar',
paste : 'Colar',
print : 'Imprimir',
underline : 'Sublinhado',
bold : 'Negrito',
italic : 'Itálico',
selectAll : 'Seleccionar Tudo',
removeFormat : 'Eliminar Formato',
strike : 'Rasurado',
subscript : 'Superior à Linha',
superscript : 'Inferior à Linha',
horizontalrule : 'Inserir Linha Horizontal',
pagebreak : 'Inserir Quebra de Página',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Eliminar Hiperligação',
undo : 'Anular',
redo : 'Repetir',
// Common messages and labels.
common :
{
browseServer : 'Navegar no Servidor',
url : 'URL',
protocol : 'Protocolo',
upload : 'Carregar',
uploadSubmit : 'Enviar para o Servidor',
image : 'Imagem',
flash : 'Flash',
form : 'Formulário',
checkbox : 'Caixa de Verificação',
radio : 'Botão de Opção',
textField : 'Campo de Texto',
textarea : 'Área de Texto',
hiddenField : 'Campo Escondido',
button : 'Botão',
select : 'Caixa de Combinação',
imageButton : 'Botão de Imagem',
notSet : '<Não definido>',
id : 'Id',
name : 'Nome',
langDir : 'Orientação de idioma',
langDirLtr : 'Esquerda à Direita (LTR)',
langDirRtl : 'Direita a Esquerda (RTL)',
langCode : 'Código de Idioma',
longDescr : 'Descrição Completa do URL',
cssClass : 'Classes de Estilo de Folhas Classes',
advisoryTitle : 'Título',
cssStyle : 'Estilo',
ok : 'OK',
cancel : 'Cancelar',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General', // MISSING
advancedTab : 'Avançado',
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 : 'Largura',
height : 'Altura',
align : 'Alinhamento',
alignLeft : 'Esquerda',
alignRight : 'Direita',
alignCenter : 'Centrado',
alignTop : 'Topo',
alignMiddle : 'Centro',
alignBottom : 'Fundo',
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 : 'Inserir Caracter Especial',
title : 'Seleccione um caracter especial',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Inserir/Editar Hiperligação',
other : '<outro>',
menu : 'Editar Hiperligação',
title : 'Hiperligação',
info : 'Informação de Hiperligação',
target : 'Destino',
upload : 'Carregar',
advanced : 'Avançado',
type : 'Tipo de Hiperligação',
toUrl : 'URL', // MISSING
toAnchor : 'Referência a esta página',
toEmail : 'E-Mail',
targetFrame : '<Frame>',
targetPopup : '<Janela de popup>',
targetFrameName : 'Nome do Frame Destino',
targetPopupName : 'Nome da Janela de Popup',
popupFeatures : 'Características de Janela de Popup',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Barra de Estado',
popupLocationBar: 'Barra de localização',
popupToolbar : 'Barra de Ferramentas',
popupMenuBar : 'Barra de Menu',
popupFullScreen : 'Janela Completa (IE)',
popupScrollBars : 'Barras de deslocamento',
popupDependent : 'Dependente (Netscape)',
popupLeft : 'Posição Esquerda',
popupTop : 'Posição Direita',
id : 'Id', // MISSING
langDir : 'Orientação de idioma',
langDirLTR : 'Esquerda à Direita (LTR)',
langDirRTL : 'Direita a Esquerda (RTL)',
acccessKey : 'Chave de Acesso',
name : 'Nome',
langCode : 'Orientação de idioma',
tabIndex : 'Índice de Tubulação',
advisoryTitle : 'Título',
advisoryContentType : 'Tipo de Conteúdo',
cssClasses : 'Classes de Estilo de Folhas Classes',
charset : 'Fonte de caracteres vinculado',
styles : 'Estilo',
rel : 'Relationship', // MISSING
selectAnchor : 'Seleccionar una referência',
anchorName : 'Por Nome de Referência',
anchorId : 'Por ID de elemento',
emailAddress : 'Endereço de E-Mail',
emailSubject : 'Título de Mensagem',
emailBody : 'Corpo da Mensagem',
noAnchors : '(Não há referências disponíveis no documento)',
noUrl : 'Por favor introduza a hiperligação URL',
noEmail : 'Por favor introduza o endereço de e-mail'
},
// Anchor dialog
anchor :
{
toolbar : ' Inserir/Editar Âncora',
menu : 'Propriedades da Âncora',
title : 'Propriedades da Âncora',
name : 'Nome da Âncora',
errorName : 'Por favor, introduza o nome da âncora',
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 : 'Procurar',
replace : 'Substituir',
findWhat : 'Texto a Procurar:',
replaceWith : 'Substituir por:',
notFoundMsg : 'O texto especificado não foi encontrado.',
findOptions : 'Find Options', // MISSING
matchCase : 'Maiúsculas/Minúsculas',
matchWord : 'Coincidir com toda a palavra',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Substituir Tudo',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Tabela',
title : 'Propriedades da Tabela',
menu : 'Propriedades da Tabela',
deleteTable : 'Eliminar Tabela',
rows : 'Linhas',
columns : 'Colunas',
border : 'Tamanho do Limite',
widthPx : 'pixeis',
widthPc : 'percentagem',
widthUnit : 'width unit', // MISSING
cellSpace : 'Esp. e/células',
cellPad : 'Esp. interior',
caption : 'Título',
summary : 'Sumário',
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 : 'Célula',
insertBefore : 'Insert Cell Before', // MISSING
insertAfter : 'Insert Cell After', // MISSING
deleteCell : 'Eliminar Célula',
merge : 'Unir Células',
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 : 'Linha',
insertBefore : 'Insert Row Before', // MISSING
insertAfter : 'Insert Row After', // MISSING
deleteRow : 'Eliminar Linhas'
},
column :
{
menu : 'Coluna',
insertBefore : 'Insert Column Before', // MISSING
insertAfter : 'Insert Column After', // MISSING
deleteColumn : 'Eliminar Coluna'
}
},
// Button Dialog.
button :
{
title : 'Propriedades do Botão',
text : 'Texto (Valor)',
type : 'Tipo',
typeBtn : 'Button', // MISSING
typeSbm : 'Submit', // MISSING
typeRst : 'Reset' // MISSING
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Propriedades da Caixa de Verificação',
radioTitle : 'Propriedades do Botão de Opção',
value : 'Valor',
selected : 'Seleccionado'
},
// Form Dialog.
form :
{
title : 'Propriedades do Formulário',
menu : 'Propriedades do Formulário',
action : 'Acção',
method : 'Método',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'Propriedades da Caixa de Combinação',
selectInfo : 'Informação',
opAvail : 'Opções Possíveis',
value : 'Valor',
size : 'Tamanho',
lines : 'linhas',
chkMulti : 'Permitir selecções múltiplas',
opText : 'Texto',
opValue : 'Valor',
btnAdd : 'Adicionar',
btnModify : 'Modificar',
btnUp : 'Para cima',
btnDown : 'Para baixo',
btnSetValue : 'Definir um valor por defeito',
btnDelete : 'Apagar'
},
// Textarea Dialog.
textarea :
{
title : 'Propriedades da Área de Texto',
cols : 'Colunas',
rows : 'Linhas'
},
// Text Field Dialog.
textfield :
{
title : 'Propriedades do Campo de Texto',
name : 'Nome',
value : 'Valor',
charWidth : 'Tamanho do caracter',
maxChars : 'Nr. Máximo de Caracteres',
type : 'Tipo',
typeText : 'Texto',
typePass : 'Palavra-chave'
},
// Hidden Field Dialog.
hidden :
{
title : 'Propriedades do Campo Escondido',
name : 'Nome',
value : 'Valor'
},
// Image Dialog.
image :
{
title : 'Propriedades da Imagem',
titleButton : 'Propriedades do Botão de imagens',
menu : 'Propriedades da Imagem',
infoTab : 'Informação da Imagem',
btnUpload : 'Enviar para o Servidor',
upload : 'Carregar',
alt : 'Texto Alternativo',
lockRatio : 'Proporcional',
resetSize : 'Tamanho Original',
border : 'Limite',
hSpace : 'Esp.Horiz',
vSpace : 'Esp.Vert',
alertUrl : 'Por favor introduza o URL da imagem',
linkTab : 'Hiperligação',
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 : 'Propriedades do Flash',
propertiesTab : 'Properties', // MISSING
title : 'Propriedades do Flash',
chkPlay : 'Reproduzir automaticamente',
chkLoop : 'Loop',
chkMenu : 'Permitir Menu do Flash',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Escala',
scaleAll : 'Mostrar tudo',
scaleNoBorder : 'Sem Limites',
scaleFit : 'Tamanho Exacto',
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Abs inferior',
alignAbsMiddle : 'Abs centro',
alignBaseline : 'Linha de base',
alignTextTop : 'Topo do texto',
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 : 'Cor de Fundo',
hSpace : 'Esp.Horiz',
vSpace : 'Esp.Vert',
validateSrc : 'Por favor introduza a hiperligação URL',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Verificação Ortográfica',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Não está num directório',
changeTo : 'Mudar para',
btnIgnore : 'Ignorar',
btnIgnoreAll : 'Ignorar Tudo',
btnReplace : 'Substituir',
btnReplaceAll : 'Substituir Tudo',
btnUndo : 'Anular',
noSuggestions : '- Sem sugestões -',
progress : 'Verificação ortográfica em progresso…',
noMispell : 'Verificação ortográfica completa: não foram encontrados erros',
noChanges : 'Verificação ortográfica completa: não houve alteração de palavras',
oneChange : 'Verificação ortográfica completa: uma palavra alterada',
manyChanges : 'Verificação ortográfica completa: %1 palavras alteradas',
ieSpellDownload : ' Verificação ortográfica não instalada. Quer descarregar agora?'
},
smiley :
{
toolbar : 'Emoticons',
title : 'Inserir um Emoticon',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Numeração',
bulletedlist : 'Marcas',
indent : 'Aumentar Avanço',
outdent : 'Diminuir Avanço',
justify :
{
left : 'Alinhar à Esquerda',
center : 'Alinhar ao Centro',
right : 'Alinhar à Direita',
block : 'Justificado'
},
blockquote : 'Block Quote', // MISSING
clipboard :
{
title : 'Colar',
cutError : 'A configuração de segurança do navegador não permite a execução automática de operações de cortar. Por favor use o teclado (Ctrl/Cmd+X).',
copyError : 'A configuração de segurança do navegador não permite a execução automática de operações de copiar. Por favor use o teclado (Ctrl/Cmd+C).',
pasteMsg : 'Por favor, cole dentro da seguinte caixa usando o teclado (<STRONG>Ctrl/Cmd+V</STRONG>) e prima <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 : 'Colar do Word',
title : 'Colar do Word',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Colar como Texto Simples',
title : 'Colar como Texto Simples'
},
templates :
{
button : 'Modelos',
title : 'Modelo de Conteúdo',
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents', // MISSING
selectPromptMsg : 'Por favor, seleccione o modelo a abrir no editor<br>(o conteúdo actual será perdido):',
emptyListMsg : '(Sem modelos definidos)'
},
showBlocks : 'Show Blocks', // MISSING
stylesCombo :
{
label : 'Estilo',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'Formato',
panelTitle : 'Formato',
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)' // 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 : 'Tipo de Letra',
voiceLabel : 'Font', // MISSING
panelTitle : 'Tipo de Letra'
},
fontSize :
{
label : 'Tamanho',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Tamanho'
},
colorButton :
{
textColorTitle : 'Cor do Texto',
bgColorTitle : 'Cor de Fundo',
panelTitle : 'Colors', // MISSING
auto : 'Automático',
more : 'Mais Cores...'
},
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 : 'Propriedades do Documento',
title : 'Propriedades do Documento',
design : 'Design', // MISSING
meta : 'Meta Data',
chooseColor : 'Choose', // MISSING
other : '<outro>',
docTitle : 'Título da Página',
charset : 'Codificação de Caracteres',
charsetOther : 'Outra Codificação de Caracteres',
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 : 'Tipo de Cabeçalho do Documento',
docTypeOther : 'Outro Tipo de Cabeçalho do Documento',
xhtmlDec : 'Incluir Declarações XHTML',
bgColor : 'Cor de Fundo',
bgImage : 'Caminho para a Imagem de Fundo',
bgFixed : 'Fundo Fixo',
txtColor : 'Cor do Texto',
margin : 'Margem das Páginas',
marginTop : 'Topo',
marginLeft : 'Esquerda',
marginRight : 'Direita',
marginBottom : 'Fundo',
metaKeywords : 'Palavras de Indexação do Documento (separadas por virgula)',
metaDescription : 'Descrição do Documento',
metaAuthor : 'Autor',
metaCopyright : 'Direitos de Autor',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/pt.js | pt.js |
/*
Copyright (c) 2003-2011, 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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/fi.js | fi.js |
/*
Copyright (c) 2003-2011, 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
* Italian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['it'] =
{
/**
* 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, premere ALT 0 per l\'help in linea.',
// ARIA descriptions.
toolbars : 'Editor toolbar',
editor : 'Rich Text Editor',
// Toolbar buttons without dialogs.
source : 'Codice Sorgente',
newPage : 'Nuova pagina vuota',
save : 'Salva',
preview : 'Anteprima',
cut : 'Taglia',
copy : 'Copia',
paste : 'Incolla',
print : 'Stampa',
underline : 'Sottolineato',
bold : 'Grassetto',
italic : 'Corsivo',
selectAll : 'Seleziona tutto',
removeFormat : 'Elimina formattazione',
strike : 'Barrato',
subscript : 'Pedice',
superscript : 'Apice',
horizontalrule : 'Inserisci riga orizzontale',
pagebreak : 'Inserisci interruzione di pagina',
pagebreakAlt : 'Interruzione di pagina',
unlink : 'Elimina collegamento',
undo : 'Annulla',
redo : 'Ripristina',
// Common messages and labels.
common :
{
browseServer : 'Cerca sul server',
url : 'URL',
protocol : 'Protocollo',
upload : 'Carica',
uploadSubmit : 'Invia al server',
image : 'Immagine',
flash : 'Oggetto Flash',
form : 'Modulo',
checkbox : 'Checkbox',
radio : 'Radio Button',
textField : 'Campo di testo',
textarea : 'Area di testo',
hiddenField : 'Campo nascosto',
button : 'Bottone',
select : 'Menu di selezione',
imageButton : 'Bottone immagine',
notSet : '<non impostato>',
id : 'Id',
name : 'Nome',
langDir : 'Direzione scrittura',
langDirLtr : 'Da Sinistra a Destra (LTR)',
langDirRtl : 'Da Destra a Sinistra (RTL)',
langCode : 'Codice Lingua',
longDescr : 'URL descrizione estesa',
cssClass : 'Nome classe CSS',
advisoryTitle : 'Titolo',
cssStyle : 'Stile',
ok : 'OK',
cancel : 'Annulla',
close : 'Chiudi',
preview : 'Anteprima',
generalTab : 'Generale',
advancedTab : 'Avanzate',
validateNumberFailed : 'Il valore inserito non è un numero.',
confirmNewPage : 'Ogni modifica non salvata sarà persa. Sei sicuro di voler caricare una nuova pagina?',
confirmCancel : 'Alcune delle opzioni sono state cambiate. Sei sicuro di voler chiudere la finestra di dialogo?',
options : 'Opzioni',
target : 'Destinazione',
targetNew : 'Nuova finestra (_blank)',
targetTop : 'Finestra in primo piano (_top)',
targetSelf : 'Stessa finestra (_self)',
targetParent : 'Finestra Padre (_parent)',
langDirLTR : 'Da sinistra a destra (LTR)',
langDirRTL : 'Da destra a sinistra (RTL)',
styles : 'Stile',
cssClasses : 'Classi di stile',
width : 'Larghezza',
height : 'Altezza',
align : 'Allineamento',
alignLeft : 'Sinistra',
alignRight : 'Destra',
alignCenter : 'Centrato',
alignTop : 'In Alto',
alignMiddle : 'Centrato',
alignBottom : 'In Basso',
invalidHeight : 'L\'altezza dev\'essere un numero',
invalidWidth : 'La Larghezza dev\'essere un numero',
invalidCssLength : 'Il valore indicato per il campo "%1" deve essere un numero positivo con o senza indicazione di una valida unità di misura per le classi CSS (px, %, in, cm, mm, em, ex, pt, o pc).',
invalidHtmlLength : 'Il valore indicato per il campo "%1" deve essere un numero positivo con o senza indicazione di una valida unità di misura per le pagine HTML (px o %).',
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">, non disponibile</span>'
},
contextmenu :
{
options : 'Opzioni del menù contestuale'
},
// Special char dialog.
specialChar :
{
toolbar : 'Inserisci carattere speciale',
title : 'Seleziona carattere speciale',
options : 'Opzioni carattere speciale'
},
// Link dialog.
link :
{
toolbar : 'Inserisci/Modifica collegamento',
other : '<altro>',
menu : 'Modifica collegamento',
title : 'Collegamento',
info : 'Informazioni collegamento',
target : 'Destinazione',
upload : 'Carica',
advanced : 'Avanzate',
type : 'Tipo di Collegamento',
toUrl : 'URL',
toAnchor : 'Ancora nella pagina',
toEmail : 'E-Mail',
targetFrame : '<riquadro>',
targetPopup : '<finestra popup>',
targetFrameName : 'Nome del riquadro di destinazione',
targetPopupName : 'Nome finestra popup',
popupFeatures : 'Caratteristiche finestra popup',
popupResizable : 'Ridimensionabile',
popupStatusBar : 'Barra di stato',
popupLocationBar: 'Barra degli indirizzi',
popupToolbar : 'Barra degli strumenti',
popupMenuBar : 'Barra del menu',
popupFullScreen : 'A tutto schermo (IE)',
popupScrollBars : 'Barre di scorrimento',
popupDependent : 'Dipendente (Netscape)',
popupLeft : 'Posizione da sinistra',
popupTop : 'Posizione dall\'alto',
id : 'Id',
langDir : 'Direzione scrittura',
langDirLTR : 'Da Sinistra a Destra (LTR)',
langDirRTL : 'Da Destra a Sinistra (RTL)',
acccessKey : 'Scorciatoia<br />da tastiera',
name : 'Nome',
langCode : 'Direzione scrittura',
tabIndex : 'Ordine di tabulazione',
advisoryTitle : 'Titolo',
advisoryContentType : 'Tipo della risorsa collegata',
cssClasses : 'Nome classe CSS',
charset : 'Set di caretteri della risorsa collegata',
styles : 'Stile',
rel : 'Relazioni',
selectAnchor : 'Scegli Ancora',
anchorName : 'Per Nome',
anchorId : 'Per id elemento',
emailAddress : 'Indirizzo E-Mail',
emailSubject : 'Oggetto del messaggio',
emailBody : 'Corpo del messaggio',
noAnchors : '(Nessuna ancora disponibile nel documento)',
noUrl : 'Devi inserire l\'URL del collegamento',
noEmail : 'Devi inserire un\'indirizzo e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Inserisci/Modifica Ancora',
menu : 'Proprietà ancora',
title : 'Proprietà ancora',
name : 'Nome ancora',
errorName : 'Inserici il nome dell\'ancora',
remove : 'Rimuovi l\'ancora'
},
// List style dialog
list:
{
numberedTitle : 'Proprietà liste numerate',
bulletedTitle : 'Proprietà liste puntate',
type : 'Tipo',
start : 'Inizio',
validateStartNumber :'Il numero di inizio di una lista numerata deve essere un numero intero.',
circle : 'Cerchio',
disc : 'Disco',
square : 'Quadrato',
none : 'Nessuno',
notset : '<non impostato>',
armenian : 'Numerazione Armena',
georgian : 'Numerazione Georgiana (an, ban, gan, ecc.)',
lowerRoman : 'Numerazione Romana minuscola (i, ii, iii, iv, v, ecc.)',
upperRoman : 'Numerazione Romana maiuscola (I, II, III, IV, V, ecc.)',
lowerAlpha : 'Alfabetico minuscolo (a, b, c, d, e, ecc.)',
upperAlpha : 'Alfabetico maiuscolo (A, B, C, D, E, ecc.)',
lowerGreek : 'Greco minuscolo (alpha, beta, gamma, ecc.)',
decimal : 'Decimale (1, 2, 3, ecc.)',
decimalLeadingZero : 'Decimale preceduto da 0 (01, 02, 03, ecc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Cerca e Sostituisci',
find : 'Trova',
replace : 'Sostituisci',
findWhat : 'Trova:',
replaceWith : 'Sostituisci con:',
notFoundMsg : 'L\'elemento cercato non è stato trovato.',
findOptions : 'Find Options', // MISSING
matchCase : 'Maiuscole/minuscole',
matchWord : 'Solo parole intere',
matchCyclic : 'Ricerca ciclica',
replaceAll : 'Sostituisci tutto',
replaceSuccessMsg : '%1 occorrenza(e) sostituite.'
},
// Table Dialog
table :
{
toolbar : 'Tabella',
title : 'Proprietà tabella',
menu : 'Proprietà tabella',
deleteTable : 'Cancella Tabella',
rows : 'Righe',
columns : 'Colonne',
border : 'Dimensione bordo',
widthPx : 'pixel',
widthPc : 'percento',
widthUnit : 'unità larghezza',
cellSpace : 'Spaziatura celle',
cellPad : 'Padding celle',
caption : 'Intestazione',
summary : 'Indice',
headers : 'Intestazione',
headersNone : 'Nessuna',
headersColumn : 'Prima Colonna',
headersRow : 'Prima Riga',
headersBoth : 'Entrambe',
invalidRows : 'Il numero di righe dev\'essere un numero maggiore di 0.',
invalidCols : 'Il numero di colonne dev\'essere un numero maggiore di 0.',
invalidBorder : 'La dimensione del bordo dev\'essere un numero.',
invalidWidth : 'La larghezza della tabella dev\'essere un numero.',
invalidHeight : 'L\'altezza della tabella dev\'essere un numero.',
invalidCellSpacing : 'La spaziatura tra le celle dev\'essere un numero.',
invalidCellPadding : 'Il paging delle celle dev\'essere un numero',
cell :
{
menu : 'Cella',
insertBefore : 'Inserisci Cella Prima',
insertAfter : 'Inserisci Cella Dopo',
deleteCell : 'Elimina celle',
merge : 'Unisce celle',
mergeRight : 'Unisci a Destra',
mergeDown : 'Unisci in Basso',
splitHorizontal : 'Dividi Cella Orizzontalmente',
splitVertical : 'Dividi Cella Verticalmente',
title : 'Proprietà della cella',
cellType : 'Tipo di cella',
rowSpan : 'Su più righe',
colSpan : 'Su più colonne',
wordWrap : 'Ritorno a capo',
hAlign : 'Allineamento orizzontale',
vAlign : 'Allineamento verticale',
alignBaseline : 'Linea Base',
bgColor : 'Colore di Sfondo',
borderColor : 'Colore del Bordo',
data : 'Dati',
header : 'Intestazione',
yes : 'Si',
no : 'No',
invalidWidth : 'La larghezza della cella dev\'essere un numero.',
invalidHeight : 'L\'altezza della cella dev\'essere un numero.',
invalidRowSpan : 'Il numero di righe dev\'essere un numero intero.',
invalidColSpan : 'Il numero di colonne dev\'essere un numero intero.',
chooseColor : 'Scegli'
},
row :
{
menu : 'Riga',
insertBefore : 'Inserisci Riga Prima',
insertAfter : 'Inserisci Riga Dopo',
deleteRow : 'Elimina righe'
},
column :
{
menu : 'Colonna',
insertBefore : 'Inserisci Colonna Prima',
insertAfter : 'Inserisci Colonna Dopo',
deleteColumn : 'Elimina colonne'
}
},
// Button Dialog.
button :
{
title : 'Proprietà bottone',
text : 'Testo (Valore)',
type : 'Tipo',
typeBtn : 'Bottone',
typeSbm : 'Invio',
typeRst : 'Annulla'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Proprietà checkbox',
radioTitle : 'Proprietà radio button',
value : 'Valore',
selected : 'Selezionato'
},
// Form Dialog.
form :
{
title : 'Proprietà modulo',
menu : 'Proprietà modulo',
action : 'Azione',
method : 'Metodo',
encoding : 'Codifica'
},
// Select Field Dialog.
select :
{
title : 'Proprietà menu di selezione',
selectInfo : 'Info',
opAvail : 'Opzioni disponibili',
value : 'Valore',
size : 'Dimensione',
lines : 'righe',
chkMulti : 'Permetti selezione multipla',
opText : 'Testo',
opValue : 'Valore',
btnAdd : 'Aggiungi',
btnModify : 'Modifica',
btnUp : 'Su',
btnDown : 'Gi',
btnSetValue : 'Imposta come predefinito',
btnDelete : 'Rimuovi'
},
// Textarea Dialog.
textarea :
{
title : 'Proprietà area di testo',
cols : 'Colonne',
rows : 'Righe'
},
// Text Field Dialog.
textfield :
{
title : 'Proprietà campo di testo',
name : 'Nome',
value : 'Valore',
charWidth : 'Larghezza',
maxChars : 'Numero massimo di caratteri',
type : 'Tipo',
typeText : 'Testo',
typePass : 'Password'
},
// Hidden Field Dialog.
hidden :
{
title : 'Proprietà campo nascosto',
name : 'Nome',
value : 'Valore'
},
// Image Dialog.
image :
{
title : 'Proprietà immagine',
titleButton : 'Proprietà bottone immagine',
menu : 'Proprietà immagine',
infoTab : 'Informazioni immagine',
btnUpload : 'Invia al server',
upload : 'Carica',
alt : 'Testo alternativo',
lockRatio : 'Blocca rapporto',
resetSize : 'Reimposta dimensione',
border : 'Bordo',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Devi inserire l\'URL per l\'immagine',
linkTab : 'Collegamento',
button2Img : 'Vuoi trasformare il bottone immagine selezionato in un\'immagine semplice?',
img2Button : 'Vuoi trasferomare l\'immagine selezionata in un bottone immagine?',
urlMissing : 'Manca l\'URL dell\'immagine.',
validateBorder : 'Il campo Bordo deve essere un numero intero.',
validateHSpace : 'Il campo HSpace deve essere un numero intero.',
validateVSpace : 'Il campo VSpace deve essere un numero intero.'
},
// Flash Dialog
flash :
{
properties : 'Proprietà Oggetto Flash',
propertiesTab : 'Proprietà',
title : 'Proprietà Oggetto Flash',
chkPlay : 'Avvio Automatico',
chkLoop : 'Riavvio automatico',
chkMenu : 'Abilita Menu di Flash',
chkFull : 'Permetti la modalità tutto schermo',
scale : 'Ridimensiona',
scaleAll : 'Mostra Tutto',
scaleNoBorder : 'Senza Bordo',
scaleFit : 'Dimensione Esatta',
access : 'Accesso Script',
accessAlways : 'Sempre',
accessSameDomain: 'Solo stesso dominio',
accessNever : 'Mai',
alignAbsBottom : 'In basso assoluto',
alignAbsMiddle : 'Centrato assoluto',
alignBaseline : 'Linea base',
alignTextTop : 'In alto al testo',
quality : 'Qualità',
qualityBest : 'Massima',
qualityHigh : 'Alta',
qualityAutoHigh : 'Alta Automatica',
qualityMedium : 'Intermedia',
qualityAutoLow : 'Bassa Automatica',
qualityLow : 'Bassa',
windowModeWindow: 'Finestra',
windowModeOpaque: 'Opaca',
windowModeTransparent : 'Trasparente',
windowMode : 'Modalità finestra',
flashvars : 'Variabili per Flash',
bgcolor : 'Colore sfondo',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Devi inserire l\'URL del collegamento',
validateHSpace : 'L\'HSpace dev\'essere un numero.',
validateVSpace : 'Il VSpace dev\'essere un numero.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Correttore ortografico',
title : 'Controllo ortografico',
notAvailable : 'Il servizio non è momentaneamente disponibile.',
errorLoading : 'Errore nel caricamento dell\'host col servizio applicativo: %s.',
notInDic : 'Non nel dizionario',
changeTo : 'Cambia in',
btnIgnore : 'Ignora',
btnIgnoreAll : 'Ignora tutto',
btnReplace : 'Cambia',
btnReplaceAll : 'Cambia tutto',
btnUndo : 'Annulla',
noSuggestions : '- Nessun suggerimento -',
progress : 'Controllo ortografico in corso',
noMispell : 'Controllo ortografico completato: nessun errore trovato',
noChanges : 'Controllo ortografico completato: nessuna parola cambiata',
oneChange : 'Controllo ortografico completato: 1 parola cambiata',
manyChanges : 'Controllo ortografico completato: %1 parole cambiate',
ieSpellDownload : 'Contollo ortografico non installato. Lo vuoi scaricare ora?'
},
smiley :
{
toolbar : 'Emoticon',
title : 'Inserisci emoticon',
options : 'Opzioni Smiley'
},
elementsPath :
{
eleLabel : 'Percorso degli elementi',
eleTitle : '%1 elemento'
},
numberedlist : 'Elenco numerato',
bulletedlist : 'Elenco puntato',
indent : 'Aumenta rientro',
outdent : 'Riduci rientro',
justify :
{
left : 'Allinea a sinistra',
center : 'Centra',
right : 'Allinea a destra',
block : 'Giustifica'
},
blockquote : 'Citazione',
clipboard :
{
title : 'Incolla',
cutError : 'Le impostazioni di sicurezza del browser non permettono di tagliare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+X).',
copyError : 'Le impostazioni di sicurezza del browser non permettono di copiare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+C).',
pasteMsg : 'Incolla il testo all\'interno dell\'area sottostante usando la scorciatoia di tastiere (<STRONG>Ctrl/Cmd+V</STRONG>) e premi <STRONG>OK</STRONG>.',
securityMsg : 'A causa delle impostazioni di sicurezza del browser,l\'editor non è in grado di accedere direttamente agli appunti. E\' pertanto necessario incollarli di nuovo in questa finestra.',
pasteArea : 'Incolla'
},
pastefromword :
{
confirmCleanup : 'Il testo da incollare sembra provenire da Word. Desideri pulirlo prima di incollare?',
toolbar : 'Incolla da Word',
title : 'Incolla da Word',
error : 'Non è stato possibile eliminarre il testo incollato a causa di un errore interno.'
},
pasteText :
{
button : 'Incolla come testo semplice',
title : 'Incolla come testo semplice'
},
templates :
{
button : 'Modelli',
title : 'Contenuto dei modelli',
options : 'Opzioni del Modello',
insertOption : 'Cancella il contenuto corrente',
selectPromptMsg : 'Seleziona il modello da aprire nell\'editor<br />(il contenuto attuale verrà eliminato):',
emptyListMsg : '(Nessun modello definito)'
},
showBlocks : 'Visualizza Blocchi',
stylesCombo :
{
label : 'Stile',
panelTitle : 'Stili di formattazione',
panelTitle1 : 'Stili per blocchi',
panelTitle2 : 'Stili in linea',
panelTitle3 : 'Stili per oggetti'
},
format :
{
label : 'Formato',
panelTitle : 'Formato',
tag_p : 'Normale',
tag_pre : 'Formattato',
tag_address : 'Indirizzo',
tag_h1 : 'Titolo 1',
tag_h2 : 'Titolo 2',
tag_h3 : 'Titolo 3',
tag_h4 : 'Titolo 4',
tag_h5 : 'Titolo 5',
tag_h6 : 'Titolo 6',
tag_div : 'Paragrafo (DIV)'
},
div :
{
title : 'Crea DIV contenitore',
toolbar : 'Crea DIV contenitore',
cssClassInputLabel : 'Classi di stile',
styleSelectLabel : 'Stile',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Codice lingua',
inlineStyleInputLabel : 'Stile Inline',
advisoryTitleInputLabel : 'Titolo Avviso',
langDirLabel : 'Direzione di scrittura',
langDirLTRLabel : 'Da sinistra a destra (LTR)',
langDirRTLLabel : 'Da destra a sinistra (RTL)',
edit : 'Modifica DIV',
remove : 'Rimuovi DIV'
},
iframe :
{
title : 'Proprietà IFrame',
toolbar : 'IFrame',
noUrl : 'Inserire l\'URL del campo IFrame',
scrolling : 'Abilita scrollbar',
border : 'Mostra il bordo'
},
font :
{
label : 'Carattere',
voiceLabel : 'Carattere',
panelTitle : 'Carattere'
},
fontSize :
{
label : 'Dimensione',
voiceLabel : 'Dimensione Carattere',
panelTitle : 'Dimensione'
},
colorButton :
{
textColorTitle : 'Colore testo',
bgColorTitle : 'Colore sfondo',
panelTitle : 'Colori',
auto : 'Automatico',
more : 'Altri colori...'
},
colors :
{
'000' : 'Nero',
'800000' : 'Marrone Castagna',
'8B4513' : 'Marrone Cuoio',
'2F4F4F' : 'Grigio Fumo di Londra',
'008080' : 'Acquamarina',
'000080' : 'Blu Oceano',
'4B0082' : 'Indigo',
'696969' : 'Grigio Scuro',
'B22222' : 'Giallo Fiamma',
'A52A2A' : 'Marrone',
'DAA520' : 'Giallo Mimosa',
'006400' : 'Verde Scuro',
'40E0D0' : 'Turchese',
'0000CD' : 'Blue Scuro',
'800080' : 'Viola',
'808080' : 'Grigio',
'F00' : 'Rosso',
'FF8C00' : 'Arancio Scuro',
'FFD700' : 'Oro',
'008000' : 'Verde',
'0FF' : 'Ciano',
'00F' : 'Blu',
'EE82EE' : 'Violetto',
'A9A9A9' : 'Grigio Scuro',
'FFA07A' : 'Salmone',
'FFA500' : 'Arancio',
'FFFF00' : 'Giallo',
'00FF00' : 'Lime',
'AFEEEE' : 'Turchese Chiaro',
'ADD8E6' : 'Blu Chiaro',
'DDA0DD' : 'Rosso Ciliegia',
'D3D3D3' : 'Grigio Chiaro',
'FFF0F5' : 'Lavanda Chiara',
'FAEBD7' : 'Bianco Antico',
'FFFFE0' : 'Giallo Chiaro',
'F0FFF0' : 'Verde Mela',
'F0FFFF' : 'Azzurro',
'F0F8FF' : 'Celeste',
'E6E6FA' : 'Lavanda',
'FFF' : 'Bianco'
},
scayt :
{
title : 'Controllo Ortografico Mentre Scrivi',
opera_title : 'Non supportato da Opera',
enable : 'Abilita COMS',
disable : 'Disabilita COMS',
about : 'About COMS',
toggle : 'Inverti abilitazione SCOMS',
options : 'Opzioni',
langs : 'Lingue',
moreSuggestions : 'Altri suggerimenti',
ignore : 'Ignora',
ignoreAll : 'Ignora tutti',
addWord : 'Aggiungi Parola',
emptyDic : 'Il nome del dizionario non può essere vuoto.',
optionsTab : 'Opzioni',
allCaps : 'Ignora Parole in maiuscolo',
ignoreDomainNames : 'Ignora nomi di dominio',
mixedCase : 'Ignora parole con maiuscole e minuscole',
mixedWithDigits : 'Ignora parole con numeri',
languagesTab : 'Lingue',
dictionariesTab : 'Dizionari',
dic_field_name : 'Nome del dizionario',
dic_create : 'Crea',
dic_restore : 'Ripristina',
dic_delete : 'Cancella',
dic_rename : 'Rinomina',
dic_info : 'Inizialmente il dizionario utente è memorizzato in un Cookie. I Cookie però hanno una dimensioni massima limitata. Quando il dizionario utente creasce a tal punto da non poter più essere memorizzato in un Cookie, allora il dizionario può essere memorizzato sul nostro server. Per memorizzare il proprio dizionario personale sul nostro server, è necessario specificare un nome per il proprio dizionario. Se avete già memorizzato un dizionario, inserite il nome che gli avete dato e premete il pulsante Ripristina.',
aboutTab : 'Info'
},
about :
{
title : 'Riguardo CKEditor',
dlgTitle : 'Riguardo CKEditor',
help : 'Vedi $1 per l\'aiuto.',
userGuide : 'Guida Utente CKEditor',
moreInfo : 'Per le informazioni sulla licenza si prega di visitare il nostro sito:',
copy : 'Copyright © $1. Tutti i diritti riservati.'
},
maximize : 'Massimizza',
minimize : 'Minimizza',
fakeobjects :
{
anchor : 'Ancora',
flash : 'Animazione Flash',
iframe : 'IFrame',
hiddenfield : 'Campo Nascosto',
unknown : 'Oggetto sconosciuto'
},
resize : 'Trascina per ridimensionare',
colordialog :
{
title : 'Selezionare il colore',
options : 'Opzioni colore',
highlight : 'Evidenzia',
selected : 'Seleziona il colore',
clear : 'cancella'
},
toolbarCollapse : 'Minimizza Toolbar',
toolbarExpand : 'Espandi Toolbar',
toolbarGroups :
{
document : 'Documento',
clipboard : 'Copia negli appunti/Indietro',
editing : 'Modifica',
forms : 'Form',
basicstyles : 'Stili di base',
paragraph : 'Paragrafo',
links : 'Link',
insert : 'Inserisci',
styles : 'Stili',
colors : 'Colori',
tools : 'Strumenti'
},
bidi :
{
ltr : 'Direzione del testo da sinistra verso destra',
rtl : 'Direzione del testo da destra verso sinistra'
},
docprops :
{
label : 'Proprietà del Documento',
title : 'Proprietà del Documento',
design : 'Disegna',
meta : 'Meta Data',
chooseColor : 'Scegli',
other : '<altro>',
docTitle : 'Titolo pagina',
charset : 'Set di caretteri',
charsetOther : 'Altro set di caretteri',
charsetASCII : 'ASCII',
charsetCE : 'Europa Centrale',
charsetCT : 'Cinese Tradizionale (Big5)',
charsetCR : 'Cirillico',
charsetGR : 'Greco',
charsetJP : 'Giapponese',
charsetKR : 'Coreano',
charsetTR : 'Turco',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Europa Occidentale',
docType : 'Intestazione DocType',
docTypeOther : 'Altra intestazione DocType',
xhtmlDec : 'Includi dichiarazione XHTML',
bgColor : 'Colore di sfondo',
bgImage : 'Immagine di sfondo',
bgFixed : 'Sfondo fissato',
txtColor : 'Colore testo',
margin : 'Margini',
marginTop : 'In Alto',
marginLeft : 'A Sinistra',
marginRight : 'A Destra',
marginBottom : 'In Basso',
metaKeywords : 'Chiavi di indicizzazione documento (separate da virgola)',
metaDescription : 'Descrizione documento',
metaAuthor : 'Autore',
metaCopyright : 'Copyright',
previewHtml : '<p>Questo è un <strong>testo di esempio</strong>. State usando <a href="javascript:void(0)">CKEditor</a>.</p>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/it.js | it.js |
/*
Copyright (c) 2003-2011, 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
* Norwegian Bokmål language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['nb'] =
{
/**
* 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 : 'Rikteksteditor, %1, trykk ALT 0 for hjelp.',
// ARIA descriptions.
toolbars : 'Verktøylinjer for editor',
editor : 'Rikteksteditor',
// Toolbar buttons without dialogs.
source : 'Kilde',
newPage : 'Ny side',
save : 'Lagre',
preview : 'Forhåndsvis',
cut : 'Klipp ut',
copy : 'Kopier',
paste : 'Lim inn',
print : 'Skriv ut',
underline : 'Understreking',
bold : 'Fet',
italic : 'Kursiv',
selectAll : 'Merk alt',
removeFormat : 'Fjern formatering',
strike : 'Gjennomstreking',
subscript : 'Senket skrift',
superscript : 'Hevet skrift',
horizontalrule : 'Sett inn horisontal linje',
pagebreak : 'Sett inn sideskift for utskrift',
pagebreakAlt : 'Sideskift',
unlink : 'Fjern lenke',
undo : 'Angre',
redo : 'Gjør om',
// Common messages and labels.
common :
{
browseServer : 'Bla igjennom server',
url : 'URL',
protocol : 'Protokoll',
upload : 'Last opp',
uploadSubmit : 'Send det til serveren',
image : 'Bilde',
flash : 'Flash',
form : 'Skjema',
checkbox : 'Avmerkingsboks',
radio : 'Alternativknapp',
textField : 'Tekstboks',
textarea : 'Tekstområde',
hiddenField : 'Skjult felt',
button : 'Knapp',
select : 'Rullegardinliste',
imageButton : 'Bildeknapp',
notSet : '<ikke satt>',
id : 'Id',
name : 'Navn',
langDir : 'Språkretning',
langDirLtr : 'Venstre til høyre (VTH)',
langDirRtl : 'Høyre til venstre (HTV)',
langCode : 'Språkkode',
longDescr : 'Utvidet beskrivelse',
cssClass : 'Stilarkklasser',
advisoryTitle : 'Tittel',
cssStyle : 'Stil',
ok : 'OK',
cancel : 'Avbryt',
close : 'Lukk',
preview : 'Forhåndsvis',
generalTab : 'Generelt',
advancedTab : 'Avansert',
validateNumberFailed : 'Denne verdien er ikke et tall.',
confirmNewPage : 'Alle ulagrede endringer som er gjort i dette innholdet vil bli tapt. Er du sikker på at du vil laste en ny side?',
confirmCancel : 'Noen av valgene har blitt endret. Er du sikker på at du vil lukke dialogen?',
options : 'Valg',
target : 'Mål',
targetNew : 'Nytt vindu (_blank)',
targetTop : 'Hele vindu (_top)',
targetSelf : 'Samme vindu (_self)',
targetParent : 'Foreldrevindu (_parent)',
langDirLTR : 'Venstre til høyre (VTH)',
langDirRTL : 'Høyre til venstre (HTV)',
styles : 'Stil',
cssClasses : 'Stilarkklasser',
width : 'Bredde',
height : 'Høyde',
align : 'Juster',
alignLeft : 'Venstre',
alignRight : 'Høyre',
alignCenter : 'Midtjuster',
alignTop : 'Topp',
alignMiddle : 'Midten',
alignBottom : 'Bunn',
invalidHeight : 'Høyde må være et tall.',
invalidWidth : 'Bredde må være et tall.',
invalidCssLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig CSS-målingsenhet (px, %, in, cm, mm, em, ex, pt, eller pc).',
invalidHtmlLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig HTML-målingsenhet (px eller %).',
invalidInlineStyle : 'Verdi angitt for inline stil må bestå av en eller flere sett med formatet "navn : verdi", separert med semikolon',
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">, utilgjenglig</span>'
},
contextmenu :
{
options : 'Alternativer for høyreklikkmeny'
},
// Special char dialog.
specialChar :
{
toolbar : 'Sett inn spesialtegn',
title : 'Velg spesialtegn',
options : 'Alternativer for spesialtegn'
},
// Link dialog.
link :
{
toolbar : 'Sett inn/Rediger lenke',
other : '<annen>',
menu : 'Rediger lenke',
title : 'Lenke',
info : 'Lenkeinfo',
target : 'Mål',
upload : 'Last opp',
advanced : 'Avansert',
type : 'Lenketype',
toUrl : 'URL',
toAnchor : 'Lenke til anker i teksten',
toEmail : 'E-post',
targetFrame : '<ramme>',
targetPopup : '<popup-vindu>',
targetFrameName : 'Målramme',
targetPopupName : 'Navn på popup-vindu',
popupFeatures : 'Egenskaper for popup-vindu',
popupResizable : 'Skalerbar',
popupStatusBar : 'Statuslinje',
popupLocationBar: 'Adresselinje',
popupToolbar : 'Verktøylinje',
popupMenuBar : 'Menylinje',
popupFullScreen : 'Fullskjerm (IE)',
popupScrollBars : 'Scrollbar',
popupDependent : 'Avhenging (Netscape)',
popupLeft : 'Venstre posisjon',
popupTop : 'Topp-posisjon',
id : 'Id',
langDir : 'Språkretning',
langDirLTR : 'Venstre til høyre (VTH)',
langDirRTL : 'Høyre til venstre (HTV)',
acccessKey : 'Aksessknapp',
name : 'Navn',
langCode : 'Språkkode',
tabIndex : 'Tabindeks',
advisoryTitle : 'Tittel',
advisoryContentType : 'Type',
cssClasses : 'Stilarkklasser',
charset : 'Lenket tegnsett',
styles : 'Stil',
rel : 'Relasjon (rel)',
selectAnchor : 'Velg et anker',
anchorName : 'Anker etter navn',
anchorId : 'Element etter ID',
emailAddress : 'E-postadresse',
emailSubject : 'Meldingsemne',
emailBody : 'Melding',
noAnchors : '(Ingen anker i dokumentet)',
noUrl : 'Vennligst skriv inn lenkens URL',
noEmail : 'Vennligst skriv inn e-postadressen'
},
// Anchor dialog
anchor :
{
toolbar : 'Sett inn/Rediger anker',
menu : 'Egenskaper for anker',
title : 'Egenskaper for anker',
name : 'Ankernavn',
errorName : 'Vennligst skriv inn ankernavnet',
remove : 'Fjern anker'
},
// List style dialog
list:
{
numberedTitle : 'Egenskaper for nummerert liste',
bulletedTitle : 'Egenskaper for punktmerket liste',
type : 'Type',
start : 'Start',
validateStartNumber :'Starten på listen må være et heltall.',
circle : 'Sirkel',
disc : 'Disk',
square : 'Firkant',
none : 'Ingen',
notset : '<ikke satt>',
armenian : 'Armensk nummerering',
georgian : 'Georgisk nummerering (an, ban, gan, osv.)',
lowerRoman : 'Romertall, små (i, ii, iii, iv, v, osv.)',
upperRoman : 'Romertall, store (I, II, III, IV, V, osv.)',
lowerAlpha : 'Alfabetisk, små (a, b, c, d, e, osv.)',
upperAlpha : 'Alfabetisk, store (A, B, C, D, E, osv.)',
lowerGreek : 'Gresk, små (alpha, beta, gamma, osv.)',
decimal : 'Tall (1, 2, 3, osv.)',
decimalLeadingZero : 'Tall, med førstesiffer null (01, 02, 03, osv.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Søk og erstatt',
find : 'Søk',
replace : 'Erstatt',
findWhat : 'Søk etter:',
replaceWith : 'Erstatt med:',
notFoundMsg : 'Fant ikke søketeksten.',
findOptions : 'Søkealternativer',
matchCase : 'Skill mellom store og små bokstaver',
matchWord : 'Bare hele ord',
matchCyclic : 'Søk i hele dokumentet',
replaceAll : 'Erstatt alle',
replaceSuccessMsg : '%1 tilfelle(r) erstattet.'
},
// Table Dialog
table :
{
toolbar : 'Tabell',
title : 'Egenskaper for tabell',
menu : 'Egenskaper for tabell',
deleteTable : 'Slett tabell',
rows : 'Rader',
columns : 'Kolonner',
border : 'Rammestørrelse',
widthPx : 'piksler',
widthPc : 'prosent',
widthUnit : 'Bredde-enhet',
cellSpace : 'Cellemarg',
cellPad : 'Cellepolstring',
caption : 'Tittel',
summary : 'Sammendrag',
headers : 'Overskrifter',
headersNone : 'Ingen',
headersColumn : 'Første kolonne',
headersRow : 'Første rad',
headersBoth : 'Begge',
invalidRows : 'Antall rader må være et tall større enn 0.',
invalidCols : 'Antall kolonner må være et tall større enn 0.',
invalidBorder : 'Rammestørrelse må være et tall.',
invalidWidth : 'Tabellbredde må være et tall.',
invalidHeight : 'Tabellhøyde må være et tall.',
invalidCellSpacing : 'Cellemarg må være et positivt tall.',
invalidCellPadding : 'Cellepolstring må være et positivt tall.',
cell :
{
menu : 'Celle',
insertBefore : 'Sett inn celle før',
insertAfter : 'Sett inn celle etter',
deleteCell : 'Slett celler',
merge : 'Slå sammen celler',
mergeRight : 'Slå sammen høyre',
mergeDown : 'Slå sammen ned',
splitHorizontal : 'Del celle horisontalt',
splitVertical : 'Del celle vertikalt',
title : 'Celleegenskaper',
cellType : 'Celletype',
rowSpan : 'Radspenn',
colSpan : 'Kolonnespenn',
wordWrap : 'Tekstbrytning',
hAlign : 'Horisontal justering',
vAlign : 'Vertikal justering',
alignBaseline : 'Grunnlinje',
bgColor : 'Bakgrunnsfarge',
borderColor : 'Rammefarge',
data : 'Data',
header : 'Overskrift',
yes : 'Ja',
no : 'Nei',
invalidWidth : 'Cellebredde må være et tall.',
invalidHeight : 'Cellehøyde må være et tall.',
invalidRowSpan : 'Radspenn må være et heltall.',
invalidColSpan : 'Kolonnespenn må være et heltall.',
chooseColor : 'Velg'
},
row :
{
menu : 'Rader',
insertBefore : 'Sett inn rad før',
insertAfter : 'Sett inn rad etter',
deleteRow : 'Slett rader'
},
column :
{
menu : 'Kolonne',
insertBefore : 'Sett inn kolonne før',
insertAfter : 'Sett inn kolonne etter',
deleteColumn : 'Slett kolonner'
}
},
// Button Dialog.
button :
{
title : 'Egenskaper for knapp',
text : 'Tekst (verdi)',
type : 'Type',
typeBtn : 'Knapp',
typeSbm : 'Send',
typeRst : 'Nullstill'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Egenskaper for avmerkingsboks',
radioTitle : 'Egenskaper for alternativknapp',
value : 'Verdi',
selected : 'Valgt'
},
// Form Dialog.
form :
{
title : 'Egenskaper for skjema',
menu : 'Egenskaper for skjema',
action : 'Handling',
method : 'Metode',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Egenskaper for rullegardinliste',
selectInfo : 'Info',
opAvail : 'Tilgjenglige alternativer',
value : 'Verdi',
size : 'Størrelse',
lines : 'Linjer',
chkMulti : 'Tillat flervalg',
opText : 'Tekst',
opValue : 'Verdi',
btnAdd : 'Legg til',
btnModify : 'Endre',
btnUp : 'Opp',
btnDown : 'Ned',
btnSetValue : 'Sett som valgt',
btnDelete : 'Slett'
},
// Textarea Dialog.
textarea :
{
title : 'Egenskaper for tekstområde',
cols : 'Kolonner',
rows : 'Rader'
},
// Text Field Dialog.
textfield :
{
title : 'Egenskaper for tekstfelt',
name : 'Navn',
value : 'Verdi',
charWidth : 'Tegnbredde',
maxChars : 'Maks antall tegn',
type : 'Type',
typeText : 'Tekst',
typePass : 'Passord'
},
// Hidden Field Dialog.
hidden :
{
title : 'Egenskaper for skjult felt',
name : 'Navn',
value : 'Verdi'
},
// Image Dialog.
image :
{
title : 'Bildeegenskaper',
titleButton : 'Egenskaper for bildeknapp',
menu : 'Bildeegenskaper',
infoTab : 'Bildeinformasjon',
btnUpload : 'Send det til serveren',
upload : 'Last opp',
alt : 'Alternativ tekst',
lockRatio : 'Lås forhold',
resetSize : 'Tilbakestill størrelse',
border : 'Ramme',
hSpace : 'HMarg',
vSpace : 'VMarg',
alertUrl : 'Vennligst skriv bilde-urlen',
linkTab : 'Lenke',
button2Img : 'Vil du endre den valgte bildeknappen til et vanlig bilde?',
img2Button : 'Vil du endre det valgte bildet til en bildeknapp?',
urlMissing : 'Bildets adresse mangler.',
validateBorder : 'Ramme må være et heltall.',
validateHSpace : 'HMarg må være et heltall.',
validateVSpace : 'VMarg må være et heltall.'
},
// Flash Dialog
flash :
{
properties : 'Egenskaper for Flash-objekt',
propertiesTab : 'Egenskaper',
title : 'Flash-egenskaper',
chkPlay : 'Autospill',
chkLoop : 'Loop',
chkMenu : 'Slå på Flash-meny',
chkFull : 'Tillat fullskjerm',
scale : 'Skaler',
scaleAll : 'Vis alt',
scaleNoBorder : 'Ingen ramme',
scaleFit : 'Skaler til å passe',
access : 'Scripttilgang',
accessAlways : 'Alltid',
accessSameDomain: 'Samme domene',
accessNever : 'Aldri',
alignAbsBottom : 'Abs bunn',
alignAbsMiddle : 'Abs midten',
alignBaseline : 'Bunnlinje',
alignTextTop : 'Tekst topp',
quality : 'Kvalitet',
qualityBest : 'Best',
qualityHigh : 'Høy',
qualityAutoHigh : 'Auto høy',
qualityMedium : 'Medium',
qualityAutoLow : 'Auto lav',
qualityLow : 'Lav',
windowModeWindow: 'Vindu',
windowModeOpaque: 'Opaque',
windowModeTransparent : 'Gjennomsiktig',
windowMode : 'Vindumodus',
flashvars : 'Variabler for flash',
bgcolor : 'Bakgrunnsfarge',
hSpace : 'HMarg',
vSpace : 'VMarg',
validateSrc : 'Vennligst skriv inn lenkens url.',
validateHSpace : 'HMarg må være et tall.',
validateVSpace : 'VMarg må være et tall.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Stavekontroll',
title : 'Stavekontroll',
notAvailable : 'Beklager, tjenesten er utilgjenglig nå.',
errorLoading : 'Feil under lasting av applikasjonstjenestetjener: %s.',
notInDic : 'Ikke i ordboken',
changeTo : 'Endre til',
btnIgnore : 'Ignorer',
btnIgnoreAll : 'Ignorer alle',
btnReplace : 'Erstatt',
btnReplaceAll : 'Erstatt alle',
btnUndo : 'Angre',
noSuggestions : '- Ingen forslag -',
progress : 'Stavekontroll pågår...',
noMispell : 'Stavekontroll fullført: ingen feilstavinger funnet',
noChanges : 'Stavekontroll fullført: ingen ord endret',
oneChange : 'Stavekontroll fullført: Ett ord endret',
manyChanges : 'Stavekontroll fullført: %1 ord endret',
ieSpellDownload : 'Stavekontroll er ikke installert. Vil du laste den ned nå?'
},
smiley :
{
toolbar : 'Smil',
title : 'Sett inn smil',
options : 'Alternativer for smil'
},
elementsPath :
{
eleLabel : 'Element-sti',
eleTitle : '%1 element'
},
numberedlist : 'Legg til/Fjern nummerert liste',
bulletedlist : 'Legg til/Fjern punktmerket liste',
indent : 'Øk innrykk',
outdent : 'Reduser innrykk',
justify :
{
left : 'Venstrejuster',
center : 'Midtstill',
right : 'Høyrejuster',
block : 'Blokkjuster'
},
blockquote : 'Sitatblokk',
clipboard :
{
title : 'Lim inn',
cutError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk klipping av tekst. Vennligst bruk snareveien (Ctrl/Cmd+X).',
copyError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snareveien (Ctrl/Cmd+C).',
pasteMsg : 'Vennligst lim inn i følgende boks med tastaturet (<STRONG>Ctrl/Cmd+V</STRONG>) og trykk <STRONG>OK</STRONG>.',
securityMsg : 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du må derfor lime det inn på nytt i dette vinduet.',
pasteArea : 'Innlimingsområde'
},
pastefromword :
{
confirmCleanup : 'Teksten du limer inn ser ut til å være kopiert fra Word. Vil du renske den før du limer den inn?',
toolbar : 'Lim inn fra Word',
title : 'Lim inn fra Word',
error : 'Det var ikke mulig å renske den innlimte teksten på grunn av en intern feil'
},
pasteText :
{
button : 'Lim inn som ren tekst',
title : 'Lim inn som ren tekst'
},
templates :
{
button : 'Maler',
title : 'Innholdsmaler',
options : 'Alternativer for mal',
insertOption : 'Erstatt gjeldende innhold',
selectPromptMsg : 'Velg malen du vil åpne i redigeringsverktøyet:',
emptyListMsg : '(Ingen maler definert)'
},
showBlocks : 'Vis blokker',
stylesCombo :
{
label : 'Stil',
panelTitle : 'Stilformater',
panelTitle1 : 'Blokkstiler',
panelTitle2 : 'Inlinestiler',
panelTitle3 : 'Objektstiler'
},
format :
{
label : 'Format',
panelTitle : 'Avsnittsformat',
tag_p : 'Normal',
tag_pre : 'Formatert',
tag_address : 'Adresse',
tag_h1 : 'Overskrift 1',
tag_h2 : 'Overskrift 2',
tag_h3 : 'Overskrift 3',
tag_h4 : 'Overskrift 4',
tag_h5 : 'Overskrift 5',
tag_h6 : 'Overskrift 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Sett inn Div Container',
toolbar : 'Sett inn Div Container',
cssClassInputLabel : 'Stilark-klasser',
styleSelectLabel : 'Stil',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Språkkode',
inlineStyleInputLabel : 'Inlinestiler',
advisoryTitleInputLabel : 'Tittel',
langDirLabel : 'Språkretning',
langDirLTRLabel : 'Venstre til høyre (VTH)',
langDirRTLLabel : 'Høyre til venstre (HTV)',
edit : 'Rediger Div',
remove : 'Fjern Div'
},
iframe :
{
title : 'Egenskaper for IFrame',
toolbar : 'IFrame',
noUrl : 'Vennligst skriv inn URL for iframe',
scrolling : 'Aktiver scrollefelt',
border : 'Viss ramme rundt iframe'
},
font :
{
label : 'Skrift',
voiceLabel : 'Font',
panelTitle : 'Skrift'
},
fontSize :
{
label : 'Størrelse',
voiceLabel : 'Font Størrelse',
panelTitle : 'Størrelse'
},
colorButton :
{
textColorTitle : 'Tekstfarge',
bgColorTitle : 'Bakgrunnsfarge',
panelTitle : 'Farger',
auto : 'Automatisk',
more : 'Flere farger...'
},
colors :
{
'000' : 'Svart',
'800000' : 'Rødbrun',
'8B4513' : 'Salbrun',
'2F4F4F' : 'Grønnsvart',
'008080' : 'Blågrønn',
'000080' : 'Marineblått',
'4B0082' : 'Indigo',
'696969' : 'Mørk grå',
'B22222' : 'Mørkerød',
'A52A2A' : 'Brun',
'DAA520' : 'Lys brun',
'006400' : 'Mørk grønn',
'40E0D0' : 'Turkis',
'0000CD' : 'Medium blå',
'800080' : 'Purpur',
'808080' : 'Grå',
'F00' : 'Rød',
'FF8C00' : 'Mørk oransje',
'FFD700' : 'Gull',
'008000' : 'Grønn',
'0FF' : 'Cyan',
'00F' : 'Blå',
'EE82EE' : 'Fiolett',
'A9A9A9' : 'Svak grå',
'FFA07A' : 'Rosa-oransje',
'FFA500' : 'Oransje',
'FFFF00' : 'Gul',
'00FF00' : 'Lime',
'AFEEEE' : 'Svak turkis',
'ADD8E6' : 'Lys Blå',
'DDA0DD' : 'Plomme',
'D3D3D3' : 'Lys grå',
'FFF0F5' : 'Svak lavendelrosa',
'FAEBD7' : 'Antikk-hvit',
'FFFFE0' : 'Lys gul',
'F0FFF0' : 'Honningmelon',
'F0FFFF' : 'Svakt asurblått',
'F0F8FF' : 'Svak cyan',
'E6E6FA' : 'Lavendel',
'FFF' : 'Hvit'
},
scayt :
{
title : 'Stavekontroll mens du skriver',
opera_title : 'Ikke støttet av Opera',
enable : 'Slå på SCAYT',
disable : 'Slå av SCAYT',
about : 'Om SCAYT',
toggle : 'Veksle SCAYT',
options : 'Valg',
langs : 'Språk',
moreSuggestions : 'Flere forslag',
ignore : 'Ignorer',
ignoreAll : 'Ignorer Alle',
addWord : 'Legg til ord',
emptyDic : 'Ordboknavn bør ikke være tom.',
optionsTab : 'Valg',
allCaps : 'Ikke kontroller ord med kun store bokstaver',
ignoreDomainNames : 'Ikke kontroller domenenavn',
mixedCase : 'Ikke kontroller ord med blandet små og store bokstaver',
mixedWithDigits : 'Ikke kontroller ord som inneholder tall',
languagesTab : 'Språk',
dictionariesTab : 'Ordbøker',
dic_field_name : 'Ordboknavn',
dic_create : 'Opprett',
dic_restore : 'Gjenopprett',
dic_delete : 'Slett',
dic_rename : 'Gi nytt navn',
dic_info : 'Brukerordboken lagres først i en informasjonskapsel på din maskin, men det er en begrensning på hvor mye som kan lagres her. Når ordboken blir for stor til å lagres i en informasjonskapsel, vil vi i stedet lagre ordboken på vår server. For å lagre din personlige ordbok på vår server, burde du velge et navn for ordboken din. Hvis du allerede har lagret en ordbok, vennligst skriv inn ordbokens navn og klikk på Gjenopprett-knappen.',
aboutTab : 'Om'
},
about :
{
title : 'Om CKEditor',
dlgTitle : 'Om CKEditor',
help : 'Se $1 for hjelp.',
userGuide : 'CKEditors brukerveiledning',
moreInfo : 'For lisensieringsinformasjon, vennligst besøk vårt nettsted:',
copy : 'Copyright © $1. Alle rettigheter reservert.'
},
maximize : 'Maksimer',
minimize : 'Minimer',
fakeobjects :
{
anchor : 'Anker',
flash : 'Flash-animasjon',
iframe : 'IFrame',
hiddenfield : 'Skjult felt',
unknown : 'Ukjent objekt'
},
resize : 'Dra for å skalere',
colordialog :
{
title : 'Velg farge',
options : 'Alternativer for farge',
highlight : 'Merk',
selected : 'Valgt',
clear : 'Tøm'
},
toolbarCollapse : 'Skjul verktøylinje',
toolbarExpand : 'Vis verktøylinje',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Utklippstavle/Angre',
editing : 'Redigering',
forms : 'Skjema',
basicstyles : 'Basisstiler',
paragraph : 'Avsnitt',
links : 'Lenker',
insert : 'Innsetting',
styles : 'Stiler',
colors : 'Farger',
tools : 'Verktøy'
},
bidi :
{
ltr : 'Tekstretning fra venstre til høyre',
rtl : 'Tekstretning fra høyre til venstre'
},
docprops :
{
label : 'Dokumentegenskaper',
title : 'Dokumentegenskaper',
design : 'Design',
meta : 'Meta-data',
chooseColor : 'Velg',
other : '<annen>',
docTitle : 'Sidetittel',
charset : 'Tegnsett',
charsetOther : 'Annet tegnsett',
charsetASCII : 'ASCII',
charsetCE : 'Sentraleuropeisk',
charsetCT : 'Tradisonell kinesisk(Big5)',
charsetCR : 'Kyrillisk',
charsetGR : 'Gresk',
charsetJP : 'Japansk',
charsetKR : 'Koreansk',
charsetTR : 'Tyrkisk',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Vesteuropeisk',
docType : 'Dokumenttype header',
docTypeOther : 'Annet dokumenttype header',
xhtmlDec : 'Inkluder XHTML-deklarasjon',
bgColor : 'Bakgrunnsfarge',
bgImage : 'URL for bakgrunnsbilde',
bgFixed : 'Lås bakgrunnsbilde',
txtColor : 'Tekstfarge',
margin : 'Sidemargin',
marginTop : 'Topp',
marginLeft : 'Venstre',
marginRight : 'Høyre',
marginBottom : 'Bunn',
metaKeywords : 'Dokument nøkkelord (kommaseparert)',
metaDescription : 'Dokumentbeskrivelse',
metaAuthor : 'Forfatter',
metaCopyright : 'Kopirett',
previewHtml : '<p>Dette er en <strong>eksempeltekst</strong>. Du bruker <a href="javascript:void(0)">CKEditor</a>.</p>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/nb.js | nb.js |
/*
Copyright (c) 2003-2011, 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 : '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ô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 : 'Page Break', // MISSING
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 : 'Close', // MISSING
preview : 'Preview', // MISSING
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 : '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 : '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 : '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">, nedostupno</span>'
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Ubaci posebne znakove',
title : 'Odaberite posebni karakter',
options : 'Special Character Options' // MISSING
},
// 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', // MISSING
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 : 'Relationship', // MISSING
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 : '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 : 'Pronađi i zamijeni',
find : 'Pronađi',
replace : 'Zamijeni',
findWhat : 'Pronađi:',
replaceWith : 'Zamijeni s:',
notFoundMsg : 'Traženi tekst nije pronađen.',
findOptions : 'Find Options', // MISSING
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 : 'width unit', // MISSING
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 : 'Choose' // MISSING
},
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 : '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 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 : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
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 : 'Paste Area' // MISSING
},
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 : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Zalijepi kao čisti tekst',
title : 'Zalijepi kao čisti tekst'
},
templates :
{
button : 'Predlošci',
title : 'Predlošci sadržaja',
options : 'Template Options', // MISSING
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 : 'Formatting Styles', // MISSING
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 : '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',
panelTitle : 'Font'
},
fontSize :
{
label : 'Veličina',
voiceLabel : 'Veličina slova',
panelTitle : 'Veličina'
},
colorButton :
{
textColorTitle : 'Boja teksta',
bgColorTitle : 'Boja pozadine',
panelTitle : 'Colors', // MISSING
auto : 'Automatski',
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 : 'Provjeri pravopis tijekom tipkanja (SCAYT)',
opera_title : 'Not supported by Opera', // MISSING
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 : 'Ignore All-Caps Words', // MISSING
ignoreDomainNames : 'Ignore Domain Names', // MISSING
mixedCase : 'Ignore Words with Mixed Case', // MISSING
mixedWithDigits : 'Ignore Words with Numbers', // MISSING
languagesTab : 'Jezici',
dictionariesTab : 'Rječnici',
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 : 'O SCAYT'
},
about :
{
title : 'O CKEditoru',
dlgTitle : 'O CKEditoru',
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'Za informacije o licencama posjetite našu web stranicu:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Povećaj',
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Sidro',
flash : 'Flash animacija',
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Nepoznati objekt'
},
resize : 'Povuci za promjenu veličine',
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 : 'Svojstva dokumenta',
title : 'Svojstva dokumenta',
design : 'Design', // MISSING
meta : 'Meta Data',
chooseColor : 'Choose', // MISSING
other : '<drugi>',
docTitle : 'Naslov stranice',
charset : 'Enkodiranje znakova',
charsetOther : 'Ostalo enkodiranje znakova',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Središnja Europa',
charsetCT : 'Tradicionalna kineska (Big5)',
charsetCR : 'Ćirilica',
charsetGR : 'Grčka',
charsetJP : 'Japanska',
charsetKR : 'Koreanska',
charsetTR : 'Turska',
charsetUN : 'Unicode (UTF-8)', // MISSING
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>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/hr.js | hr.js |
/*
Copyright (c) 2003-2011, 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
* Persian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['fa'] =
{
/**
* 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 : '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 : 'کلاسهای شیوهنامه(Stylesheet)',
advisoryTitle : 'عنوان کمکی',
cssStyle : 'شیوه(style)',
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 معتبر باشد (px, %, in, cm, mm, em, ex, pt, or pc).',
invalidHtmlLength : 'عدد تعیین شده برای فیلد "%1" باید یک عدد مثبت با یا بدون یک واحد اندازه گیری HTML معتبر باشد (px or %).',
invalidInlineStyle : 'عدد تعیین شده برای سبک درونخطی(Inline Style) باید دارای یک یا چند چندتایی با شکلی شبیه "name : value" که باید با یک ","(semi-colons) از هم جدا شوند.',
cssLengthTooltip : 'یک عدد برای یک مقدار بر حسب پیکسل و یا یک عدد با یک واحد 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">، غیر قابل دسترس</span>'
},
contextmenu :
{
options : 'گزینههای منوی زمینه'
},
// Special char dialog.
specialChar :
{
toolbar : 'گنجاندن نویسهٴ ویژه',
title : 'گزینش نویسهٴ ویژه',
options : 'گزینههای نویسههای ویژه'
},
// Link dialog.
link :
{
toolbar : 'گنجاندن/ویرایش پیوند',
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 : 'شناسه',
langDir : 'جهتنمای زبان',
langDirLTR : 'چپ به راست (LTR)',
langDirRTL : 'راست به چپ (RTL)',
acccessKey : 'کلید دستیابی',
name : 'نام',
langCode : 'جهتنمای زبان',
tabIndex : 'نمایهٴ دسترسی با برگه',
advisoryTitle : 'عنوان کمکی',
advisoryContentType : 'نوع محتوای کمکی',
cssClasses : 'کلاسهای شیوهنامه(Stylesheet)',
charset : 'نویسهگان منبع پیوند شده',
styles : 'شیوه(style)',
rel : 'وابستگی',
selectAnchor : 'یک لنگر برگزینید',
anchorName : 'با نام لنگر',
anchorId : 'با شناسهٴ المان',
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 : 'بازنشانی (Reset)'
},
// 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 : 'مقدار فاصلهگذاری افقی باید یک عدد باشد.',
validateVSpace : 'مقدار فاصلهگذاری عمودی باید یک عدد باشد.'
},
// Flash Dialog
flash :
{
properties : 'ویژگیهای فلش',
propertiesTab : 'ویژگیها',
title : 'ویژگیهای فلش',
chkPlay : 'آغاز خودکار',
chkLoop : 'اجرای پیاپی',
chkMenu : 'در دسترس بودن منوی فلش',
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 : 'مقادیر برای فلش',
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 : 'بررسی املا انجام شد. یک واژه تغییر یافت',
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 : 'به خاطر تنظیمات امنیتی مرورگر شما، ویرایشگر نمیتواند دسترسی مستقیم به دادههای clipboard داشته باشد. شما باید دوباره آنرا در این پنجره بچسبانید.',
pasteArea : 'محل چسباندن'
},
pastefromword :
{
confirmCleanup : 'متنی که میخواهید بچسبانید به نظر میرسد که از Word کپی شده است. آیا میخواهید قبل از چسباندن آن را پاکسازی کنید؟',
toolbar : 'چسباندن از Word',
title : 'چسباندن از Word',
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 :
{
title : 'ایجاد یک محل DIV',
toolbar : 'ایجاد یک محل DIV',
cssClassInputLabel : 'کلاسهای شیوهنامه',
styleSelectLabel : 'سبک',
IdInputLabel : 'شناسه',
languageCodeInputLabel : ' کد زبان',
inlineStyleInputLabel : 'سبک درونخطی(Inline Style)',
advisoryTitleInputLabel : 'عنوان مشاوره',
langDirLabel : 'جهت نوشتاری زبان',
langDirLTRLabel : 'چپ به راست (LTR)',
langDirRTLLabel : 'راست به چپ (RTL)',
edit : 'ویرایش Div',
remove : 'حذف Div'
},
iframe :
{
title : 'ویژگیهای IFrame',
toolbar : 'IFrame',
noUrl : 'لطفا مسیر URL iframe را درج کنید',
scrolling : 'نمایش خطکشها',
border : 'نمایش خطوط frame'
},
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 : 'افزودن Word',
emptyDic : 'نام دیکشنری نباید خالی باشد.',
optionsTab : 'گزینهها',
allCaps : 'نادیده گرفتن همه کلاه-واژهها',
ignoreDomainNames : 'عبور از نامهای دامنه',
mixedCase : 'عبور از کلماتی مرکب از حروف بزرگ و کوچک',
mixedWithDigits : 'عبور از کلمات به همراه عدد',
languagesTab : 'زبانها',
dictionariesTab : 'دیکشنریها',
dic_field_name : 'نام دیکشنری',
dic_create : 'ایجاد',
dic_restore : 'بازیافت',
dic_delete : 'حذف',
dic_rename : 'تغییر نام',
dic_info : 'در ابتدا دیکشنری کاربر در کوکی ذخیره میشود. با این حال، کوکیها در اندازه محدود شدهاند. وقتی که دیکشنری کاربری بزرگ میشود و به نقطهای که نمیتواند در کوکی ذخیره شود، پس از آن دیکشنری ممکن است بر روی سرور ما ذخیره شود. برای ذخیره دیکشنری شخصی شما بر روی سرور ما، باید یک نام برای دیکشنری خود مشخص نمایید. اگر شما قبلا یک دیکشنری روی سرور ما ذخیره کردهاید، لطفا نام آنرا درج و روی دکمه بازیافت کلیک نمایید.',
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 : '<سایر>',
docTitle : 'عنوان صفحه',
charset : 'رمزگذاری نویسهگان',
charsetOther : 'رمزگذاری نویسهگان دیگر',
charsetASCII : 'ASCII',
charsetCE : 'اروپای مرکزی',
charsetCT : 'چینی رسمی (Big5)',
charsetCR : 'سیریلیک',
charsetGR : 'یونانی',
charsetJP : 'ژاپنی',
charsetKR : 'کرهای',
charsetTR : 'ترکی',
charsetUN : 'یونیکُد (UTF-8)',
charsetWE : 'اروپای غربی',
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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/fa.js | fa.js |
/*
Copyright (c) 2003-2011, 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
* Norwegian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['no'] =
{
/**
* 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 : 'Rikteksteditor, %1, trykk ALT 0 for hjelp.',
// ARIA descriptions.
toolbars : 'Verktøylinjer for editor',
editor : 'Rikteksteditor',
// Toolbar buttons without dialogs.
source : 'Kilde',
newPage : 'Ny side',
save : 'Lagre',
preview : 'Forhåndsvis',
cut : 'Klipp ut',
copy : 'Kopier',
paste : 'Lim inn',
print : 'Skriv ut',
underline : 'Understreking',
bold : 'Fet',
italic : 'Kursiv',
selectAll : 'Merk alt',
removeFormat : 'Fjern formatering',
strike : 'Gjennomstreking',
subscript : 'Senket skrift',
superscript : 'Hevet skrift',
horizontalrule : 'Sett inn horisontal linje',
pagebreak : 'Sett inn sideskift for utskrift',
pagebreakAlt : 'Sideskift',
unlink : 'Fjern lenke',
undo : 'Angre',
redo : 'Gjør om',
// Common messages and labels.
common :
{
browseServer : 'Bla igjennom server',
url : 'URL',
protocol : 'Protokoll',
upload : 'Last opp',
uploadSubmit : 'Send det til serveren',
image : 'Bilde',
flash : 'Flash',
form : 'Skjema',
checkbox : 'Avmerkingsboks',
radio : 'Alternativknapp',
textField : 'Tekstboks',
textarea : 'Tekstområde',
hiddenField : 'Skjult felt',
button : 'Knapp',
select : 'Rullegardinliste',
imageButton : 'Bildeknapp',
notSet : '<ikke satt>',
id : 'Id',
name : 'Navn',
langDir : 'Språkretning',
langDirLtr : 'Venstre til høyre (VTH)',
langDirRtl : 'Høyre til venstre (HTV)',
langCode : 'Språkkode',
longDescr : 'Utvidet beskrivelse',
cssClass : 'Stilarkklasser',
advisoryTitle : 'Tittel',
cssStyle : 'Stil',
ok : 'OK',
cancel : 'Avbryt',
close : 'Lukk',
preview : 'Forhåndsvis',
generalTab : 'Generelt',
advancedTab : 'Avansert',
validateNumberFailed : 'Denne verdien er ikke et tall.',
confirmNewPage : 'Alle ulagrede endringer som er gjort i dette innholdet vil bli tapt. Er du sikker på at du vil laste en ny side?',
confirmCancel : 'Noen av valgene har blitt endret. Er du sikker på at du vil lukke dialogen?',
options : 'Valg',
target : 'Mål',
targetNew : 'Nytt vindu (_blank)',
targetTop : 'Hele vindu (_top)',
targetSelf : 'Samme vindu (_self)',
targetParent : 'Foreldrevindu (_parent)',
langDirLTR : 'Venstre til høyre (VTH)',
langDirRTL : 'Høyre til venstre (HTV)',
styles : 'Stil',
cssClasses : 'Stilarkklasser',
width : 'Bredde',
height : 'Høyde',
align : 'Juster',
alignLeft : 'Venstre',
alignRight : 'Høyre',
alignCenter : 'Midtjuster',
alignTop : 'Topp',
alignMiddle : 'Midten',
alignBottom : 'Bunn',
invalidHeight : 'Høyde må være et tall.',
invalidWidth : 'Bredde må være et tall.',
invalidCssLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig CSS-målingsenhet (px, %, in, cm, mm, em, ex, pt, eller pc).',
invalidHtmlLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig HTML-målingsenhet (px eller %).',
invalidInlineStyle : 'Verdi angitt for inline stil må bestå av en eller flere sett med formatet "navn : verdi", separert med semikolon',
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">, utilgjenglig</span>'
},
contextmenu :
{
options : 'Alternativer for høyreklikkmeny'
},
// Special char dialog.
specialChar :
{
toolbar : 'Sett inn spesialtegn',
title : 'Velg spesialtegn',
options : 'Alternativer for spesialtegn'
},
// Link dialog.
link :
{
toolbar : 'Sett inn/Rediger lenke',
other : '<annen>',
menu : 'Rediger lenke',
title : 'Lenke',
info : 'Lenkeinfo',
target : 'Mål',
upload : 'Last opp',
advanced : 'Avansert',
type : 'Lenketype',
toUrl : 'URL',
toAnchor : 'Lenke til anker i teksten',
toEmail : 'E-post',
targetFrame : '<ramme>',
targetPopup : '<popup-vindu>',
targetFrameName : 'Målramme',
targetPopupName : 'Navn på popup-vindu',
popupFeatures : 'Egenskaper for popup-vindu',
popupResizable : 'Skalerbar',
popupStatusBar : 'Statuslinje',
popupLocationBar: 'Adresselinje',
popupToolbar : 'Verktøylinje',
popupMenuBar : 'Menylinje',
popupFullScreen : 'Fullskjerm (IE)',
popupScrollBars : 'Scrollbar',
popupDependent : 'Avhenging (Netscape)',
popupLeft : 'Venstre posisjon',
popupTop : 'Topp-posisjon',
id : 'Id',
langDir : 'Språkretning',
langDirLTR : 'Venstre til høyre (VTH)',
langDirRTL : 'Høyre til venstre (HTV)',
acccessKey : 'Aksessknapp',
name : 'Navn',
langCode : 'Språkkode',
tabIndex : 'Tabindeks',
advisoryTitle : 'Tittel',
advisoryContentType : 'Type',
cssClasses : 'Stilarkklasser',
charset : 'Lenket tegnsett',
styles : 'Stil',
rel : 'Relasjon (rel)',
selectAnchor : 'Velg et anker',
anchorName : 'Anker etter navn',
anchorId : 'Element etter ID',
emailAddress : 'E-postadresse',
emailSubject : 'Meldingsemne',
emailBody : 'Melding',
noAnchors : '(Ingen anker i dokumentet)',
noUrl : 'Vennligst skriv inn lenkens URL',
noEmail : 'Vennligst skriv inn e-postadressen'
},
// Anchor dialog
anchor :
{
toolbar : 'Sett inn/Rediger anker',
menu : 'Egenskaper for anker',
title : 'Egenskaper for anker',
name : 'Ankernavn',
errorName : 'Vennligst skriv inn ankernavnet',
remove : 'Fjern anker'
},
// List style dialog
list:
{
numberedTitle : 'Egenskaper for nummerert liste',
bulletedTitle : 'Egenskaper for punktmerket liste',
type : 'Type',
start : 'Start',
validateStartNumber :'Starten på listen må være et heltall.',
circle : 'Sirkel',
disc : 'Disk',
square : 'Firkant',
none : 'Ingen',
notset : '<ikke satt>',
armenian : 'Armensk nummerering',
georgian : 'Georgisk nummerering (an, ban, gan, osv.)',
lowerRoman : 'Romertall, små (i, ii, iii, iv, v, osv.)',
upperRoman : 'Romertall, store (I, II, III, IV, V, osv.)',
lowerAlpha : 'Alfabetisk, små (a, b, c, d, e, osv.)',
upperAlpha : 'Alfabetisk, store (A, B, C, D, E, osv.)',
lowerGreek : 'Gresk, små (alpha, beta, gamma, osv.)',
decimal : 'Tall (1, 2, 3, osv.)',
decimalLeadingZero : 'Tall, med førstesiffer null (01, 02, 03, osv.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Søk og erstatt',
find : 'Søk',
replace : 'Erstatt',
findWhat : 'Søk etter:',
replaceWith : 'Erstatt med:',
notFoundMsg : 'Fant ikke søketeksten.',
findOptions : 'Søkealternativer',
matchCase : 'Skill mellom store og små bokstaver',
matchWord : 'Bare hele ord',
matchCyclic : 'Søk i hele dokumentet',
replaceAll : 'Erstatt alle',
replaceSuccessMsg : '%1 tilfelle(r) erstattet.'
},
// Table Dialog
table :
{
toolbar : 'Tabell',
title : 'Egenskaper for tabell',
menu : 'Egenskaper for tabell',
deleteTable : 'Slett tabell',
rows : 'Rader',
columns : 'Kolonner',
border : 'Rammestørrelse',
widthPx : 'piksler',
widthPc : 'prosent',
widthUnit : 'Bredde-enhet',
cellSpace : 'Cellemarg',
cellPad : 'Cellepolstring',
caption : 'Tittel',
summary : 'Sammendrag',
headers : 'Overskrifter',
headersNone : 'Ingen',
headersColumn : 'Første kolonne',
headersRow : 'Første rad',
headersBoth : 'Begge',
invalidRows : 'Antall rader må være et tall større enn 0.',
invalidCols : 'Antall kolonner må være et tall større enn 0.',
invalidBorder : 'Rammestørrelse må være et tall.',
invalidWidth : 'Tabellbredde må være et tall.',
invalidHeight : 'Tabellhøyde må være et tall.',
invalidCellSpacing : 'Cellemarg må være et positivt tall.',
invalidCellPadding : 'Cellepolstring må være et positivt tall.',
cell :
{
menu : 'Celle',
insertBefore : 'Sett inn celle før',
insertAfter : 'Sett inn celle etter',
deleteCell : 'Slett celler',
merge : 'Slå sammen celler',
mergeRight : 'Slå sammen høyre',
mergeDown : 'Slå sammen ned',
splitHorizontal : 'Del celle horisontalt',
splitVertical : 'Del celle vertikalt',
title : 'Celleegenskaper',
cellType : 'Celletype',
rowSpan : 'Radspenn',
colSpan : 'Kolonnespenn',
wordWrap : 'Tekstbrytning',
hAlign : 'Horisontal justering',
vAlign : 'Vertikal justering',
alignBaseline : 'Grunnlinje',
bgColor : 'Bakgrunnsfarge',
borderColor : 'Rammefarge',
data : 'Data',
header : 'Overskrift',
yes : 'Ja',
no : 'Nei',
invalidWidth : 'Cellebredde må være et tall.',
invalidHeight : 'Cellehøyde må være et tall.',
invalidRowSpan : 'Radspenn må være et heltall.',
invalidColSpan : 'Kolonnespenn må være et heltall.',
chooseColor : 'Velg'
},
row :
{
menu : 'Rader',
insertBefore : 'Sett inn rad før',
insertAfter : 'Sett inn rad etter',
deleteRow : 'Slett rader'
},
column :
{
menu : 'Kolonne',
insertBefore : 'Sett inn kolonne før',
insertAfter : 'Sett inn kolonne etter',
deleteColumn : 'Slett kolonner'
}
},
// Button Dialog.
button :
{
title : 'Egenskaper for knapp',
text : 'Tekst (verdi)',
type : 'Type',
typeBtn : 'Knapp',
typeSbm : 'Send',
typeRst : 'Nullstill'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Egenskaper for avmerkingsboks',
radioTitle : 'Egenskaper for alternativknapp',
value : 'Verdi',
selected : 'Valgt'
},
// Form Dialog.
form :
{
title : 'Egenskaper for skjema',
menu : 'Egenskaper for skjema',
action : 'Handling',
method : 'Metode',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Egenskaper for rullegardinliste',
selectInfo : 'Info',
opAvail : 'Tilgjenglige alternativer',
value : 'Verdi',
size : 'Størrelse',
lines : 'Linjer',
chkMulti : 'Tillat flervalg',
opText : 'Tekst',
opValue : 'Verdi',
btnAdd : 'Legg til',
btnModify : 'Endre',
btnUp : 'Opp',
btnDown : 'Ned',
btnSetValue : 'Sett som valgt',
btnDelete : 'Slett'
},
// Textarea Dialog.
textarea :
{
title : 'Egenskaper for tekstområde',
cols : 'Kolonner',
rows : 'Rader'
},
// Text Field Dialog.
textfield :
{
title : 'Egenskaper for tekstfelt',
name : 'Navn',
value : 'Verdi',
charWidth : 'Tegnbredde',
maxChars : 'Maks antall tegn',
type : 'Type',
typeText : 'Tekst',
typePass : 'Passord'
},
// Hidden Field Dialog.
hidden :
{
title : 'Egenskaper for skjult felt',
name : 'Navn',
value : 'Verdi'
},
// Image Dialog.
image :
{
title : 'Bildeegenskaper',
titleButton : 'Egenskaper for bildeknapp',
menu : 'Bildeegenskaper',
infoTab : 'Bildeinformasjon',
btnUpload : 'Send det til serveren',
upload : 'Last opp',
alt : 'Alternativ tekst',
lockRatio : 'Lås forhold',
resetSize : 'Tilbakestill størrelse',
border : 'Ramme',
hSpace : 'HMarg',
vSpace : 'VMarg',
alertUrl : 'Vennligst skriv bilde-urlen',
linkTab : 'Lenke',
button2Img : 'Vil du endre den valgte bildeknappen til et vanlig bilde?',
img2Button : 'Vil du endre det valgte bildet til en bildeknapp?',
urlMissing : 'Bildets adresse mangler.',
validateBorder : 'Ramme må være et heltall.',
validateHSpace : 'HMarg må være et heltall.',
validateVSpace : 'VMarg må være et heltall.'
},
// Flash Dialog
flash :
{
properties : 'Egenskaper for Flash-objekt',
propertiesTab : 'Egenskaper',
title : 'Flash-egenskaper',
chkPlay : 'Autospill',
chkLoop : 'Loop',
chkMenu : 'Slå på Flash-meny',
chkFull : 'Tillat fullskjerm',
scale : 'Skaler',
scaleAll : 'Vis alt',
scaleNoBorder : 'Ingen ramme',
scaleFit : 'Skaler til å passe',
access : 'Scripttilgang',
accessAlways : 'Alltid',
accessSameDomain: 'Samme domene',
accessNever : 'Aldri',
alignAbsBottom : 'Abs bunn',
alignAbsMiddle : 'Abs midten',
alignBaseline : 'Bunnlinje',
alignTextTop : 'Tekst topp',
quality : 'Kvalitet',
qualityBest : 'Best',
qualityHigh : 'Høy',
qualityAutoHigh : 'Auto høy',
qualityMedium : 'Medium',
qualityAutoLow : 'Auto lav',
qualityLow : 'Lav',
windowModeWindow: 'Vindu',
windowModeOpaque: 'Opaque',
windowModeTransparent : 'Gjennomsiktig',
windowMode : 'Vindumodus',
flashvars : 'Variabler for flash',
bgcolor : 'Bakgrunnsfarge',
hSpace : 'HMarg',
vSpace : 'VMarg',
validateSrc : 'Vennligst skriv inn lenkens url.',
validateHSpace : 'HMarg må være et tall.',
validateVSpace : 'VMarg må være et tall.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Stavekontroll',
title : 'Stavekontroll',
notAvailable : 'Beklager, tjenesten er utilgjenglig nå.',
errorLoading : 'Feil under lasting av applikasjonstjenestetjener: %s.',
notInDic : 'Ikke i ordboken',
changeTo : 'Endre til',
btnIgnore : 'Ignorer',
btnIgnoreAll : 'Ignorer alle',
btnReplace : 'Erstatt',
btnReplaceAll : 'Erstatt alle',
btnUndo : 'Angre',
noSuggestions : '- Ingen forslag -',
progress : 'Stavekontroll pågår...',
noMispell : 'Stavekontroll fullført: ingen feilstavinger funnet',
noChanges : 'Stavekontroll fullført: ingen ord endret',
oneChange : 'Stavekontroll fullført: Ett ord endret',
manyChanges : 'Stavekontroll fullført: %1 ord endret',
ieSpellDownload : 'Stavekontroll er ikke installert. Vil du laste den ned nå?'
},
smiley :
{
toolbar : 'Smil',
title : 'Sett inn smil',
options : 'Alternativer for smil'
},
elementsPath :
{
eleLabel : 'Element-sti',
eleTitle : '%1 element'
},
numberedlist : 'Legg til/Fjern nummerert liste',
bulletedlist : 'Legg til/Fjern punktmerket liste',
indent : 'Øk innrykk',
outdent : 'Reduser innrykk',
justify :
{
left : 'Venstrejuster',
center : 'Midtstill',
right : 'Høyrejuster',
block : 'Blokkjuster'
},
blockquote : 'Sitatblokk',
clipboard :
{
title : 'Lim inn',
cutError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk klipping av tekst. Vennligst bruk snareveien (Ctrl/Cmd+X).',
copyError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snareveien (Ctrl/Cmd+C).',
pasteMsg : 'Vennligst lim inn i følgende boks med tastaturet (<STRONG>Ctrl/Cmd+V</STRONG>) og trykk <STRONG>OK</STRONG>.',
securityMsg : 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du må derfor lime det inn på nytt i dette vinduet.',
pasteArea : 'Innlimingsområde'
},
pastefromword :
{
confirmCleanup : 'Teksten du limer inn ser ut til å være kopiert fra Word. Vil du renske den før du limer den inn?',
toolbar : 'Lim inn fra Word',
title : 'Lim inn fra Word',
error : 'Det var ikke mulig å renske den innlimte teksten på grunn av en intern feil'
},
pasteText :
{
button : 'Lim inn som ren tekst',
title : 'Lim inn som ren tekst'
},
templates :
{
button : 'Maler',
title : 'Innholdsmaler',
options : 'Alternativer for mal',
insertOption : 'Erstatt gjeldende innhold',
selectPromptMsg : 'Velg malen du vil åpne i redigeringsverktøyet:',
emptyListMsg : '(Ingen maler definert)'
},
showBlocks : 'Vis blokker',
stylesCombo :
{
label : 'Stil',
panelTitle : 'Stilformater',
panelTitle1 : 'Blokkstiler',
panelTitle2 : 'Inlinestiler',
panelTitle3 : 'Objektstiler'
},
format :
{
label : 'Format',
panelTitle : 'Avsnittsformat',
tag_p : 'Normal',
tag_pre : 'Formatert',
tag_address : 'Adresse',
tag_h1 : 'Overskrift 1',
tag_h2 : 'Overskrift 2',
tag_h3 : 'Overskrift 3',
tag_h4 : 'Overskrift 4',
tag_h5 : 'Overskrift 5',
tag_h6 : 'Overskrift 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Sett inn Div Container',
toolbar : 'Sett inn Div Container',
cssClassInputLabel : 'Stilark-klasser',
styleSelectLabel : 'Stil',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Språkkode',
inlineStyleInputLabel : 'Inlinestiler',
advisoryTitleInputLabel : 'Tittel',
langDirLabel : 'Språkretning',
langDirLTRLabel : 'Venstre til høyre (VTH)',
langDirRTLLabel : 'Høyre til venstre (HTV)',
edit : 'Rediger Div',
remove : 'Fjern Div'
},
iframe :
{
title : 'Egenskaper for IFrame',
toolbar : 'IFrame',
noUrl : 'Vennligst skriv inn URL for iframe',
scrolling : 'Aktiver scrollefelt',
border : 'Viss ramme rundt iframe'
},
font :
{
label : 'Skrift',
voiceLabel : 'Font',
panelTitle : 'Skrift'
},
fontSize :
{
label : 'Størrelse',
voiceLabel : 'Font Størrelse',
panelTitle : 'Størrelse'
},
colorButton :
{
textColorTitle : 'Tekstfarge',
bgColorTitle : 'Bakgrunnsfarge',
panelTitle : 'Farger',
auto : 'Automatisk',
more : 'Flere farger...'
},
colors :
{
'000' : 'Svart',
'800000' : 'Rødbrun',
'8B4513' : 'Salbrun',
'2F4F4F' : 'Grønnsvart',
'008080' : 'Blågrønn',
'000080' : 'Marineblått',
'4B0082' : 'Indigo',
'696969' : 'Mørk grå',
'B22222' : 'Mørkerød',
'A52A2A' : 'Brun',
'DAA520' : 'Lys brun',
'006400' : 'Mørk grønn',
'40E0D0' : 'Turkis',
'0000CD' : 'Medium blå',
'800080' : 'Purpur',
'808080' : 'Grå',
'F00' : 'Rød',
'FF8C00' : 'Mørk oransje',
'FFD700' : 'Gull',
'008000' : 'Grønn',
'0FF' : 'Cyan',
'00F' : 'Blå',
'EE82EE' : 'Fiolett',
'A9A9A9' : 'Svak grå',
'FFA07A' : 'Rosa-oransje',
'FFA500' : 'Oransje',
'FFFF00' : 'Gul',
'00FF00' : 'Lime',
'AFEEEE' : 'Svak turkis',
'ADD8E6' : 'Lys Blå',
'DDA0DD' : 'Plomme',
'D3D3D3' : 'Lys grå',
'FFF0F5' : 'Svak lavendelrosa',
'FAEBD7' : 'Antikk-hvit',
'FFFFE0' : 'Lys gul',
'F0FFF0' : 'Honningmelon',
'F0FFFF' : 'Svakt asurblått',
'F0F8FF' : 'Svak cyan',
'E6E6FA' : 'Lavendel',
'FFF' : 'Hvit'
},
scayt :
{
title : 'Stavekontroll mens du skriver',
opera_title : 'Ikke støttet av Opera',
enable : 'Slå på SCAYT',
disable : 'Slå av SCAYT',
about : 'Om SCAYT',
toggle : 'Veksle SCAYT',
options : 'Valg',
langs : 'Språk',
moreSuggestions : 'Flere forslag',
ignore : 'Ignorer',
ignoreAll : 'Ignorer Alle',
addWord : 'Legg til ord',
emptyDic : 'Ordboknavn bør ikke være tom.',
optionsTab : 'Valg',
allCaps : 'Ikke kontroller ord med kun store bokstaver',
ignoreDomainNames : 'Ikke kontroller domenenavn',
mixedCase : 'Ikke kontroller ord med blandet små og store bokstaver',
mixedWithDigits : 'Ikke kontroller ord som inneholder tall',
languagesTab : 'Språk',
dictionariesTab : 'Ordbøker',
dic_field_name : 'Ordboknavn',
dic_create : 'Opprett',
dic_restore : 'Gjenopprett',
dic_delete : 'Slett',
dic_rename : 'Gi nytt navn',
dic_info : 'Brukerordboken lagres først i en informasjonskapsel på din maskin, men det er en begrensning på hvor mye som kan lagres her. Når ordboken blir for stor til å lagres i en informasjonskapsel, vil vi i stedet lagre ordboken på vår server. For å lagre din personlige ordbok på vår server, burde du velge et navn for ordboken din. Hvis du allerede har lagret en ordbok, vennligst skriv inn ordbokens navn og klikk på Gjenopprett-knappen.',
aboutTab : 'Om'
},
about :
{
title : 'Om CKEditor',
dlgTitle : 'Om CKEditor',
help : 'Se $1 for hjelp.',
userGuide : 'CKEditors brukerveiledning',
moreInfo : 'For lisensieringsinformasjon, vennligst besøk vårt nettsted:',
copy : 'Copyright © $1. Alle rettigheter reservert.'
},
maximize : 'Maksimer',
minimize : 'Minimer',
fakeobjects :
{
anchor : 'Anker',
flash : 'Flash-animasjon',
iframe : 'IFrame',
hiddenfield : 'Skjult felt',
unknown : 'Ukjent objekt'
},
resize : 'Dra for å skalere',
colordialog :
{
title : 'Velg farge',
options : 'Alternativer for farge',
highlight : 'Merk',
selected : 'Valgt',
clear : 'Tøm'
},
toolbarCollapse : 'Skjul verktøylinje',
toolbarExpand : 'Vis verktøylinje',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Utklippstavle/Angre',
editing : 'Redigering',
forms : 'Skjema',
basicstyles : 'Basisstiler',
paragraph : 'Avsnitt',
links : 'Lenker',
insert : 'Innsetting',
styles : 'Stiler',
colors : 'Farger',
tools : 'Verktøy'
},
bidi :
{
ltr : 'Tekstretning fra venstre til høyre',
rtl : 'Tekstretning fra høyre til venstre'
},
docprops :
{
label : 'Dokumentegenskaper',
title : 'Dokumentegenskaper',
design : 'Design',
meta : 'Meta-data',
chooseColor : 'Velg',
other : '<annen>',
docTitle : 'Sidetittel',
charset : 'Tegnsett',
charsetOther : 'Annet tegnsett',
charsetASCII : 'ASCII',
charsetCE : 'Sentraleuropeisk',
charsetCT : 'Tradisonell kinesisk(Big5)',
charsetCR : 'Kyrillisk',
charsetGR : 'Gresk',
charsetJP : 'Japansk',
charsetKR : 'Koreansk',
charsetTR : 'Tyrkisk',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Vesteuropeisk',
docType : 'Dokumenttype header',
docTypeOther : 'Annet dokumenttype header',
xhtmlDec : 'Inkluder XHTML-deklarasjon',
bgColor : 'Bakgrunnsfarge',
bgImage : 'URL for bakgrunnsbilde',
bgFixed : 'Lås bakgrunnsbilde',
txtColor : 'Tekstfarge',
margin : 'Sidemargin',
marginTop : 'Topp',
marginLeft : 'Venstre',
marginRight : 'Høyre',
marginBottom : 'Bunn',
metaKeywords : 'Dokument nøkkelord (kommaseparert)',
metaDescription : 'Dokumentbeskrivelse',
metaAuthor : 'Forfatter',
metaCopyright : 'Kopirett',
previewHtml : '<p>Dette er en <strong>eksempeltekst</strong>. Du bruker <a href="javascript:void(0)">CKEditor</a>.</p>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/no.js | no.js |
/*
Copyright (c) 2003-2011, 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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/hu.js | hu.js |
/*
Copyright (c) 2003-2011, 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
* Danish language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['da'] =
{
/**
* 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 : 'Kilde',
newPage : 'Ny side',
save : 'Gem',
preview : 'Vis eksempel',
cut : 'Klip',
copy : 'Kopiér',
paste : 'Indsæt',
print : 'Udskriv',
underline : 'Understreget',
bold : 'Fed',
italic : 'Kursiv',
selectAll : 'Vælg alt',
removeFormat : 'Fjern formatering',
strike : 'Gennemstreget',
subscript : 'Sænket skrift',
superscript : 'Hævet skrift',
horizontalrule : 'Indsæt vandret streg',
pagebreak : 'Indsæt sideskift',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Fjern hyperlink',
undo : 'Fortryd',
redo : 'Annullér fortryd',
// Common messages and labels.
common :
{
browseServer : 'Gennemse...',
url : 'URL',
protocol : 'Protokol',
upload : 'Upload',
uploadSubmit : 'Upload',
image : 'Indsæt billede',
flash : 'Indsæt Flash',
form : 'Indsæt formular',
checkbox : 'Indsæt afkrydsningsfelt',
radio : 'Indsæt alternativknap',
textField : 'Indsæt tekstfelt',
textarea : 'Indsæt tekstboks',
hiddenField : 'Indsæt skjult felt',
button : 'Indsæt knap',
select : 'Indsæt liste',
imageButton : 'Indsæt billedknap',
notSet : '<intet valgt>',
id : 'Id',
name : 'Navn',
langDir : 'Tekstretning',
langDirLtr : 'Fra venstre mod højre (LTR)',
langDirRtl : 'Fra højre mod venstre (RTL)',
langCode : 'Sprogkode',
longDescr : 'Udvidet beskrivelse',
cssClass : 'Typografiark (CSS)',
advisoryTitle : 'Titel',
cssStyle : 'Typografi (CSS)',
ok : 'OK',
cancel : 'Annullér',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'Generelt',
advancedTab : 'Avanceret',
validateNumberFailed : 'Værdien er ikke et tal.',
confirmNewPage : 'Alt indhold, der ikke er blevet gemt, vil gå tabt. Er du sikker på, at du vil indlæse en ny side?',
confirmCancel : 'Nogle af indstillingerne er blevet ændret. Er du sikker på, at du vil lukke vinduet?',
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 : 'Bredde',
height : 'Højde',
align : 'Justering',
alignLeft : 'Venstre',
alignRight : 'Højre',
alignCenter : 'Centreret',
alignTop : 'Øverst',
alignMiddle : 'Centreret',
alignBottom : 'Nederst',
invalidHeight : 'Højde skal være et tal.',
invalidWidth : 'Bredde skal være et tal.',
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">, ikke tilgængelig</span>'
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Indsæt symbol',
title : 'Vælg symbol',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Indsæt/redigér hyperlink',
other : '<anden>',
menu : 'Redigér hyperlink',
title : 'Egenskaber for hyperlink',
info : 'Generelt',
target : 'Mål',
upload : 'Upload',
advanced : 'Avanceret',
type : 'Type',
toUrl : 'URL', // MISSING
toAnchor : 'Bogmærke på denne side',
toEmail : 'E-mail',
targetFrame : '<ramme>',
targetPopup : '<popup vindue>',
targetFrameName : 'Destinationsvinduets navn',
targetPopupName : 'Popup vinduets navn',
popupFeatures : 'Egenskaber for popup',
popupResizable : 'Justérbar',
popupStatusBar : 'Statuslinje',
popupLocationBar: 'Adresselinje',
popupToolbar : 'Værktøjslinje',
popupMenuBar : 'Menulinje',
popupFullScreen : 'Fuld skærm (IE)',
popupScrollBars : 'Scrollbar',
popupDependent : 'Koblet/dependent (Netscape)',
popupLeft : 'Position fra venstre',
popupTop : 'Position fra toppen',
id : 'Id',
langDir : 'Tekstretning',
langDirLTR : 'Fra venstre mod højre (LTR)',
langDirRTL : 'Fra højre mod venstre (RTL)',
acccessKey : 'Genvejstast',
name : 'Navn',
langCode : 'Tekstretning',
tabIndex : 'Tabulator indeks',
advisoryTitle : 'Titel',
advisoryContentType : 'Indholdstype',
cssClasses : 'Typografiark',
charset : 'Tegnsæt',
styles : 'Typografi',
rel : 'Relationship', // MISSING
selectAnchor : 'Vælg et anker',
anchorName : 'Efter anker navn',
anchorId : 'Efter element Id',
emailAddress : 'E-mail adresse',
emailSubject : 'Emne',
emailBody : 'Besked',
noAnchors : '(Ingen bogmærker i dokumentet)',
noUrl : 'Indtast hyperlink URL!',
noEmail : 'Indtast e-mail adresse!'
},
// Anchor dialog
anchor :
{
toolbar : 'Indsæt/redigér bogmærke',
menu : 'Egenskaber for bogmærke',
title : 'Egenskaber for bogmærke',
name : 'Bogmærke navn',
errorName : 'Indtast bogmærke navn',
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 : 'Søg og erstat',
find : 'Søg',
replace : 'Erstat',
findWhat : 'Søg efter:',
replaceWith : 'Erstat med:',
notFoundMsg : 'Søgeteksten blev ikke fundet',
findOptions : 'Find Options', // MISSING
matchCase : 'Forskel på store og små bogstaver',
matchWord : 'Kun hele ord',
matchCyclic : 'Match cyklisk',
replaceAll : 'Erstat alle',
replaceSuccessMsg : '%1 forekomst(er) erstattet.'
},
// Table Dialog
table :
{
toolbar : 'Tabel',
title : 'Egenskaber for tabel',
menu : 'Egenskaber for tabel',
deleteTable : 'Slet tabel',
rows : 'Rækker',
columns : 'Kolonner',
border : 'Rammebredde',
widthPx : 'pixels',
widthPc : 'procent',
widthUnit : 'width unit', // MISSING
cellSpace : 'Celleafstand',
cellPad : 'Cellemargen',
caption : 'Titel',
summary : 'Resumé',
headers : 'Header',
headersNone : 'Ingen',
headersColumn : 'Første kolonne',
headersRow : 'Første række',
headersBoth : 'Begge',
invalidRows : 'Antallet af rækker skal være større end 0.',
invalidCols : 'Antallet af kolonner skal være større end 0.',
invalidBorder : 'Rammetykkelse skal være et tal.',
invalidWidth : 'Tabelbredde skal være et tal.',
invalidHeight : 'Tabelhøjde skal være et tal.',
invalidCellSpacing : 'Celleafstand skal være et tal.',
invalidCellPadding : 'Cellemargen skal være et tal.',
cell :
{
menu : 'Celle',
insertBefore : 'Indsæt celle før',
insertAfter : 'Indsæt celle efter',
deleteCell : 'Slet celle',
merge : 'Flet celler',
mergeRight : 'Flet til højre',
mergeDown : 'Flet nedad',
splitHorizontal : 'Del celle vandret',
splitVertical : 'Del celle lodret',
title : 'Celleegenskaber',
cellType : 'Celletype',
rowSpan : 'Række span (rows span)',
colSpan : 'Kolonne span (columns span)',
wordWrap : 'Tekstombrydning',
hAlign : 'Vandret justering',
vAlign : 'Lodret justering',
alignBaseline : 'Grundlinje',
bgColor : 'Baggrundsfarve',
borderColor : 'Rammefarve',
data : 'Data',
header : 'Header',
yes : 'Ja',
no : 'Nej',
invalidWidth : 'Cellebredde skal være et tal.',
invalidHeight : 'Cellehøjde skal være et tal.',
invalidRowSpan : 'Række span skal være et heltal.',
invalidColSpan : 'Kolonne span skal være et heltal.',
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'Række',
insertBefore : 'Indsæt række før',
insertAfter : 'Indsæt række efter',
deleteRow : 'Slet række'
},
column :
{
menu : 'Kolonne',
insertBefore : 'Indsæt kolonne før',
insertAfter : 'Indsæt kolonne efter',
deleteColumn : 'Slet kolonne'
}
},
// Button Dialog.
button :
{
title : 'Egenskaber for knap',
text : 'Tekst',
type : 'Type',
typeBtn : 'Knap',
typeSbm : 'Send',
typeRst : 'Nulstil'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Egenskaber for afkrydsningsfelt',
radioTitle : 'Egenskaber for alternativknap',
value : 'Værdi',
selected : 'Valgt'
},
// Form Dialog.
form :
{
title : 'Egenskaber for formular',
menu : 'Egenskaber for formular',
action : 'Handling',
method : 'Metode',
encoding : 'Kodning (encoding)'
},
// Select Field Dialog.
select :
{
title : 'Egenskaber for liste',
selectInfo : 'Generelt',
opAvail : 'Valgmuligheder',
value : 'Værdi',
size : 'Størrelse',
lines : 'Linjer',
chkMulti : 'Tillad flere valg',
opText : 'Tekst',
opValue : 'Værdi',
btnAdd : 'Tilføj',
btnModify : 'Redigér',
btnUp : 'Op',
btnDown : 'Ned',
btnSetValue : 'Sæt som valgt',
btnDelete : 'Slet'
},
// Textarea Dialog.
textarea :
{
title : 'Egenskaber for tekstboks',
cols : 'Kolonner',
rows : 'Rækker'
},
// Text Field Dialog.
textfield :
{
title : 'Egenskaber for tekstfelt',
name : 'Navn',
value : 'Værdi',
charWidth : 'Bredde (tegn)',
maxChars : 'Max. antal tegn',
type : 'Type',
typeText : 'Tekst',
typePass : 'Adgangskode'
},
// Hidden Field Dialog.
hidden :
{
title : 'Egenskaber for skjult felt',
name : 'Navn',
value : 'Værdi'
},
// Image Dialog.
image :
{
title : 'Egenskaber for billede',
titleButton : 'Egenskaber for billedknap',
menu : 'Egenskaber for billede',
infoTab : 'Generelt',
btnUpload : 'Upload',
upload : 'Upload',
alt : 'Alternativ tekst',
lockRatio : 'Lås størrelsesforhold',
resetSize : 'Nulstil størrelse',
border : 'Ramme',
hSpace : 'Vandret margen',
vSpace : 'Lodret margen',
alertUrl : 'Indtast stien til billedet',
linkTab : 'Hyperlink',
button2Img : 'Vil du lave billedknappen om til et almindeligt billede?',
img2Button : 'Vil du lave billedet om til en billedknap?',
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 : 'Egenskaber for Flash',
propertiesTab : 'Egenskaber',
title : 'Egenskaber for Flash',
chkPlay : 'Automatisk afspilning',
chkLoop : 'Gentagelse',
chkMenu : 'Vis Flash menu',
chkFull : 'Tillad fuldskærm',
scale : 'Skalér',
scaleAll : 'Vis alt',
scaleNoBorder : 'Ingen ramme',
scaleFit : 'Tilpas størrelse',
access : 'Script adgang',
accessAlways : 'Altid',
accessSameDomain: 'Samme domæne',
accessNever : 'Aldrig',
alignAbsBottom : 'Absolut nederst',
alignAbsMiddle : 'Absolut centreret',
alignBaseline : 'Grundlinje',
alignTextTop : 'Toppen af teksten',
quality : 'Kvalitet',
qualityBest : 'Bedste',
qualityHigh : 'Høj',
qualityAutoHigh : 'Auto høj',
qualityMedium : 'Medium',
qualityAutoLow : 'Auto lav',
qualityLow : 'Lav',
windowModeWindow: 'Vindue',
windowModeOpaque: 'Gennemsigtig (opaque)',
windowModeTransparent : 'Transparent',
windowMode : 'Vinduestilstand',
flashvars : 'Variabler for Flash',
bgcolor : 'Baggrundsfarve',
hSpace : 'Vandret margen',
vSpace : 'Lodret margen',
validateSrc : 'Indtast hyperlink URL!',
validateHSpace : 'Vandret margen skal være et tal.',
validateVSpace : 'Lodret margen skal være et tal.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Stavekontrol',
title : 'Stavekontrol',
notAvailable : 'Stavekontrol er desværre ikke tilgængelig.',
errorLoading : 'Fejl ved indlæsning af host: %s.',
notInDic : 'Ikke i ordbogen',
changeTo : 'Forslag',
btnIgnore : 'Ignorér',
btnIgnoreAll : 'Ignorér alle',
btnReplace : 'Erstat',
btnReplaceAll : 'Erstat alle',
btnUndo : 'Tilbage',
noSuggestions : '(ingen forslag)',
progress : 'Stavekontrollen arbejder...',
noMispell : 'Stavekontrol færdig: Ingen fejl fundet',
noChanges : 'Stavekontrol færdig: Ingen ord ændret',
oneChange : 'Stavekontrol færdig: Et ord ændret',
manyChanges : 'Stavekontrol færdig: %1 ord ændret',
ieSpellDownload : 'Stavekontrol ikke installeret. Vil du installere den nu?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Vælg smiley',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element'
},
numberedlist : 'Talopstilling',
bulletedlist : 'Punktopstilling',
indent : 'Forøg indrykning',
outdent : 'Formindsk indrykning',
justify :
{
left : 'Venstrestillet',
center : 'Centreret',
right : 'Højrestillet',
block : 'Lige margener'
},
blockquote : 'Blokcitat',
clipboard :
{
title : 'Indsæt',
cutError : 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.<br><br>Brug i stedet tastaturet til at klippe teksten (Ctrl/Cmd+X).',
copyError : 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.<br><br>Brug i stedet tastaturet til at kopiere teksten (Ctrl/Cmd+C).',
pasteMsg : 'Indsæt i feltet herunder (<STRONG>Ctrl/Cmd+V</STRONG>) og klik på <STRONG>OK</STRONG>.',
securityMsg : 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.<br><br>Du skal indsætte udklipsholderens indhold i dette vindue igen.',
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'Den tekst du forsøger at indsætte ser ud til at komme fra Word. Vil du rense teksten før den indsættes?',
toolbar : 'Indsæt fra Word',
title : 'Indsæt fra Word',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Indsæt som ikke-formateret tekst',
title : 'Indsæt som ikke-formateret tekst'
},
templates :
{
button : 'Skabeloner',
title : 'Indholdsskabeloner',
options : 'Template Options', // MISSING
insertOption : 'Erstat det faktiske indhold',
selectPromptMsg : 'Vælg den skabelon, som skal åbnes i editoren (nuværende indhold vil blive overskrevet):',
emptyListMsg : '(Der er ikke defineret nogen skabelon)'
},
showBlocks : 'Vis afsnitsmærker',
stylesCombo :
{
label : 'Typografi',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block typografi',
panelTitle2 : 'Inline typografi',
panelTitle3 : 'Object typografi'
},
format :
{
label : 'Formatering',
panelTitle : 'Formatering',
tag_p : 'Normal',
tag_pre : 'Formateret',
tag_address : 'Adresse',
tag_h1 : 'Overskrift 1',
tag_h2 : 'Overskrift 2',
tag_h3 : 'Overskrift 3',
tag_h4 : 'Overskrift 4',
tag_h5 : 'Overskrift 5',
tag_h6 : 'Overskrift 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 : 'Skrifttype',
voiceLabel : 'Skrifttype',
panelTitle : 'Skrifttype'
},
fontSize :
{
label : 'Skriftstørrelse',
voiceLabel : 'Skriftstørrelse',
panelTitle : 'Skriftstørrelse'
},
colorButton :
{
textColorTitle : 'Tekstfarve',
bgColorTitle : 'Baggrundsfarve',
panelTitle : 'Colors', // MISSING
auto : 'Automatisk',
more : 'Flere farver...'
},
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 : 'Stavekontrol mens du skriver',
opera_title : 'Not supported by Opera', // MISSING
enable : 'Aktivér SCAYT',
disable : 'Deaktivér SCAYT',
about : 'Om SCAYT',
toggle : 'Skift/toggle SCAYT',
options : 'Indstillinger',
langs : 'Sprog',
moreSuggestions : 'Flere forslag',
ignore : 'Ignorér',
ignoreAll : 'Ignorér alle',
addWord : 'Tilføj ord',
emptyDic : 'Ordbogsnavn må ikke være tom.',
optionsTab : 'Indstillinger',
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 : 'Sprog',
dictionariesTab : 'Ordbøger',
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 : 'Om'
},
about :
{
title : 'Om CKEditor',
dlgTitle : 'Om CKEditor',
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'For informationer omkring licens, se venligst vores hjemmeside (på engelsk):',
copy : 'Copyright © $1. Alle rettigheder forbeholdes.'
},
maximize : 'Maximér',
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Anker',
flash : 'Flashanimation',
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Ukendt objekt'
},
resize : 'Træk for at skalere',
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 : 'Egenskaber for dokument',
title : 'Egenskaber for dokument',
design : 'Design', // MISSING
meta : 'Meta Tags', // MISSING
chooseColor : 'Choose', // MISSING
other : '<anden>',
docTitle : 'Sidetitel',
charset : 'Tegnsæt kode',
charsetOther : 'Anden tegnsæt kode',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Centraleuropæisk',
charsetCT : 'Traditionel kinesisk (Big5)',
charsetCR : 'Kyrillisk',
charsetGR : 'Græsk',
charsetJP : 'Japansk',
charsetKR : 'Koreansk',
charsetTR : 'Tyrkisk',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Vesteuropæisk',
docType : 'Dokumenttype kategori',
docTypeOther : 'Anden dokumenttype kategori',
xhtmlDec : 'Inkludere XHTML deklartion',
bgColor : 'Baggrundsfarve',
bgImage : 'Baggrundsbillede URL',
bgFixed : 'Fastlåst baggrund',
txtColor : 'Tekstfarve',
margin : 'Sidemargen',
marginTop : 'Øverst',
marginLeft : 'Venstre',
marginRight : 'Højre',
marginBottom : 'Nederst',
metaKeywords : 'Dokument index nøgleord (kommasepareret)',
metaDescription : 'Dokument beskrivelse',
metaAuthor : 'Forfatter',
metaCopyright : 'Copyright', // MISSING
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/da.js | da.js |
/*
Copyright (c) 2003-2011, 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', // MISSING
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 : '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">, 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 : 'Relationship', // MISSING
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 : 'Remove Anchor' // MISSING
},
// 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 : 'Find Options', // MISSING
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ættstavarain liðugur: Eingin feilur funnin',
noChanges : 'Rættstavarain liðugur: Einki orð varð broytt',
oneChange : 'Rættstavarain liðugur: Eitt orð er broytt',
manyChanges : 'Rættstavarain 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 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 : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
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 : '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 : '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', // MISSING
meta : 'META-upplýsingar',
chooseColor : 'Vel',
other : '<annað>',
docTitle : 'Síðuheiti',
charset : 'Teknsett koda',
charsetOther : 'Onnur teknsett koda',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Miðeuropa',
charsetCT : 'Kinesiskt traditionelt (Big5)',
charsetCR : 'Cyrilliskt',
charsetGR : 'Grikst',
charsetJP : 'Japanskt',
charsetKR : 'Koreanskt',
charsetTR : 'Turkiskt',
charsetUN : 'Unicode (UTF-8)', // MISSING
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>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/fo.js | fo.js |
/*
Copyright (c) 2003-2011, 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
* Russian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['ru'] =
{
/**
* 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 : 'Идентификатор',
name : 'Имя',
langDir : 'Направление текста',
langDirLtr : 'Слева направо (LTR)',
langDirRtl : 'Справа налево (RTL)',
langCode : 'Код языка',
longDescr : 'Длинное описание ссылки',
cssClass : 'Класс CSS',
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 : 'Классы CSS',
width : 'Ширина',
height : 'Высота',
align : 'Выравнивание',
alignLeft : 'По левому краю',
alignRight : 'По правому краю',
alignCenter : 'По центру',
alignTop : 'По верху',
alignMiddle : 'По середине',
alignBottom : 'По низу',
invalidHeight : 'Высота задается числом.',
invalidWidth : 'Ширина задается числом.',
invalidCssLength : 'Значение, указанное в поле "%1", должно быть положительным целым числом. Допускается указание единиц меры CSS (px, %, in, cm, mm, em, ex, pt или pc).',
invalidHtmlLength : 'Значение, указанное в поле "%1", должно быть положительным целым числом. Допускается указание единиц меры 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 : 'Email',
targetFrame : '<фрейм>',
targetPopup : '<всплывающее окно>',
targetFrameName : 'Имя целевого фрейма',
targetPopupName : 'Имя всплывающего окна',
popupFeatures : 'Параметры всплывающего окна',
popupResizable : 'Изменяемый размер',
popupStatusBar : 'Строка состояния',
popupLocationBar: 'Панель адреса',
popupToolbar : 'Панель инструментов',
popupMenuBar : 'Панель меню',
popupFullScreen : 'Полноэкранное (IE)',
popupScrollBars : 'Полосы прокрутки',
popupDependent : 'Зависимое (Netscape)',
popupLeft : 'Отступ слева',
popupTop : 'Отступ сверху',
id : 'Идентификатор',
langDir : 'Направление текста',
langDirLTR : 'Слева направо (LTR)',
langDirRTL : 'Справа налево (RTL)',
acccessKey : 'Клавиша доступа',
name : 'Имя',
langCode : 'Код языка',
tabIndex : 'Последовательность перехода',
advisoryTitle : 'Заголовок',
advisoryContentType : 'Тип содержимого',
cssClasses : 'Классы CSS',
charset : 'Кодировка ресурса',
styles : 'Стиль',
rel : 'Отношение',
selectAnchor : 'Выберите якорь',
anchorName : 'По имени',
anchorId : 'По идентификатору',
emailAddress : 'Email адрес',
emailSubject : 'Тема сообщения',
emailBody : 'Текст сообщения',
noAnchors : '(В документе нет ни одного якоря)',
noUrl : 'Пожалуйста, введите ссылку',
noEmail : 'Пожалуйста, введите email адрес'
},
// 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 : 'Грузинская нумерация (ани, бани, гани, и т.д.)',
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 : 'Строчные греческие (альфа, бета, гамма, и т.д.)',
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 : 'Количество строк должно быть больше 0.',
invalidCols : 'Количество столбцов должно быть больше 0.',
invalidBorder : 'Размер границ должен быть числом.',
invalidWidth : 'Ширина таблицы должна быть числом.',
invalidHeight : 'Высота таблицы должна быть числом.',
invalidCellSpacing : 'Внешний отступ ячеек (cellspacing) должен быть числом.',
invalidCellPadding : 'Внутренний отступ ячеек (cellpadding) должен быть числом.',
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 : 'Свойства Flash',
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>) и нажмите кнопку "OK".',
securityMsg : 'Настройки безопасности вашего браузера не разрешают редактору напрямую обращаться к буферу обмена. Вы должны вставить текст снова в это окно.',
pasteArea : 'Зона для вставки'
},
pastefromword :
{
confirmCleanup : 'Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?',
toolbar : 'Вставить из Word',
title : 'Вставить из 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 : 'Классы CSS',
styleSelectLabel : 'Стиль',
IdInputLabel : 'Идентификатор',
languageCodeInputLabel : 'Код языка',
inlineStyleInputLabel : 'Стиль элемента',
advisoryTitleInputLabel : 'Заголовок',
langDirLabel : 'Направление текста',
langDirLTRLabel : 'Слева направо (LTR)',
langDirRTLLabel : 'Справа налево (RTL)',
edit : 'Редактировать контейнер',
remove : 'Удалить контейнер'
},
iframe :
{
title : 'Свойства iFrame',
toolbar : 'iFrame',
noUrl : 'Пожалуйста, введите ссылку фрейма',
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 : 'Проверка орфографии по мере ввода (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, он переносится на хранение на наш сервер. Чтобы сохранить ваш словарь на нашем сервере, вам следует указать название вашего словаря. Если у вас уже был словарь, который вы сохраняли на нашем сервере, то укажите здесь его название и нажмите кнопку Восстановить.',
aboutTab : 'О SCAYT'
},
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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/ru.js | ru.js |
/*
Copyright (c) 2003-2011, 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
* Serbian (Latin) language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['sr-latn'] =
{
/**
* 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ôd',
newPage : 'Nova stranica',
save : 'Sačuvaj',
preview : 'Izgled stranice',
cut : 'Iseci',
copy : 'Kopiraj',
paste : 'Zalepi',
print : 'Štampa',
underline : 'Podvučeno',
bold : 'Podebljano',
italic : 'Kurziv',
selectAll : 'Označi sve',
removeFormat : 'Ukloni formatiranje',
strike : 'Precrtano',
subscript : 'Indeks',
superscript : 'Stepen',
horizontalrule : 'Unesi horizontalnu liniju',
pagebreak : 'Insert Page Break for Printing', // MISSING
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Ukloni link',
undo : 'Poni�ti akciju',
redo : 'Ponovi akciju',
// Common messages and labels.
common :
{
browseServer : 'Pretraži server',
url : 'URL',
protocol : 'Protokol',
upload : 'Pošalji',
uploadSubmit : 'Pošalji na server',
image : 'Slika',
flash : 'Fleš',
form : 'Forma',
checkbox : 'Polje za potvrdu',
radio : 'Radio-dugme',
textField : 'Tekstualno polje',
textarea : 'Zona teksta',
hiddenField : 'Skriveno polje',
button : 'Dugme',
select : 'Izborno polje',
imageButton : 'Dugme sa slikom',
notSet : '<nije postavljeno>',
id : 'Id',
name : 'Naziv',
langDir : 'Smer jezika',
langDirLtr : 'S leva na desno (LTR)',
langDirRtl : 'S desna na levo (RTL)',
langCode : 'Kôd jezika',
longDescr : 'Pun opis URL',
cssClass : 'Stylesheet klase',
advisoryTitle : 'Advisory naslov',
cssStyle : 'Stil',
ok : 'OK',
cancel : 'Otkaži',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General', // MISSING
advancedTab : 'Napredni tagovi',
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 : 'Ravnanje',
alignLeft : 'Levo',
alignRight : 'Desno',
alignCenter : 'Sredina',
alignTop : 'Vrh',
alignMiddle : 'Sredina',
alignBottom : 'Dole',
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 : 'Unesi specijalni karakter',
title : 'Odaberite specijalni karakter',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Unesi/izmeni link',
other : '<остало>',
menu : 'Izmeni link',
title : 'Link',
info : 'Link Info',
target : 'Meta',
upload : 'Pošalji',
advanced : 'Napredni tagovi',
type : 'Vrsta linka',
toUrl : 'URL', // MISSING
toAnchor : 'Sidro na ovoj stranici',
toEmail : 'E-Mail',
targetFrame : '<okvir>',
targetPopup : '<popup prozor>',
targetFrameName : 'Naziv odredišnog frejma',
targetPopupName : 'Naziv popup prozora',
popupFeatures : 'Mogućnosti popup prozora',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Statusna linija',
popupLocationBar: 'Lokacija',
popupToolbar : 'Toolbar',
popupMenuBar : 'Kontekstni meni',
popupFullScreen : 'Prikaz preko celog ekrana (IE)',
popupScrollBars : 'Scroll bar',
popupDependent : 'Zavisno (Netscape)',
popupLeft : 'Od leve ivice ekrana (px)',
popupTop : 'Od vrha ekrana (px)',
id : 'Id', // MISSING
langDir : 'Smer jezika',
langDirLTR : 'S leva na desno (LTR)',
langDirRTL : 'S desna na levo (RTL)',
acccessKey : 'Pristupni taster',
name : 'Naziv',
langCode : 'Smer jezika',
tabIndex : 'Tab indeks',
advisoryTitle : 'Advisory naslov',
advisoryContentType : 'Advisory vrsta sadržaja',
cssClasses : 'Stylesheet klase',
charset : 'Linked Resource Charset',
styles : 'Stil',
rel : 'Relationship', // MISSING
selectAnchor : 'Odaberi sidro',
anchorName : 'Po nazivu sidra',
anchorId : 'Po Id-ju elementa',
emailAddress : 'E-Mail adresa',
emailSubject : 'Naslov',
emailBody : 'Sadržaj poruke',
noAnchors : '(Nema dostupnih sidra)',
noUrl : 'Unesite URL linka',
noEmail : 'Otkucajte adresu elektronske pote'
},
// Anchor dialog
anchor :
{
toolbar : 'Unesi/izmeni sidro',
menu : 'Osobine sidra',
title : 'Osobine sidra',
name : 'Ime sidra',
errorName : 'Unesite ime sidra',
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 : 'Pretraga',
replace : 'Zamena',
findWhat : 'Pronadi:',
replaceWith : 'Zameni sa:',
notFoundMsg : 'Traženi tekst nije pronađen.',
findOptions : 'Find Options', // MISSING
matchCase : 'Razlikuj mala i velika slova',
matchWord : 'Uporedi cele reci',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Zameni sve',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Tabela',
title : 'Osobine tabele',
menu : 'Osobine tabele',
deleteTable : 'Delete Table', // MISSING
rows : 'Redova',
columns : 'Kolona',
border : 'Veličina okvira',
widthPx : 'piksela',
widthPc : 'procenata',
widthUnit : 'width unit', // MISSING
cellSpace : 'Ćelijski prostor',
cellPad : 'Razmak ćelija',
caption : 'Naslov tabele',
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 : 'Obriši ćelije',
merge : 'Spoj celije',
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 : 'Obriši redove'
},
column :
{
menu : 'Column', // MISSING
insertBefore : 'Insert Column Before', // MISSING
insertAfter : 'Insert Column After', // MISSING
deleteColumn : 'Obriši kolone'
}
},
// Button Dialog.
button :
{
title : 'Osobine dugmeta',
text : 'Tekst (vrednost)',
type : 'Tip',
typeBtn : 'Button', // MISSING
typeSbm : 'Submit', // MISSING
typeRst : 'Reset' // MISSING
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Osobine polja za potvrdu',
radioTitle : 'Osobine radio-dugmeta',
value : 'Vrednost',
selected : 'Označeno'
},
// Form Dialog.
form :
{
title : 'Osobine forme',
menu : 'Osobine forme',
action : 'Akcija',
method : 'Metoda',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'Osobine izbornog polja',
selectInfo : 'Info',
opAvail : 'Dostupne opcije',
value : 'Vrednost',
size : 'Veličina',
lines : 'linija',
chkMulti : 'Dozvoli višestruku selekciju',
opText : 'Tekst',
opValue : 'Vrednost',
btnAdd : 'Dodaj',
btnModify : 'Izmeni',
btnUp : 'Gore',
btnDown : 'Dole',
btnSetValue : 'Podesi kao označenu vrednost',
btnDelete : 'Obriši'
},
// Textarea Dialog.
textarea :
{
title : 'Osobine zone teksta',
cols : 'Broj kolona',
rows : 'Broj redova'
},
// Text Field Dialog.
textfield :
{
title : 'Osobine tekstualnog polja',
name : 'Naziv',
value : 'Vrednost',
charWidth : 'Širina (karaktera)',
maxChars : 'Maksimalno karaktera',
type : 'Tip',
typeText : 'Tekst',
typePass : 'Lozinka'
},
// Hidden Field Dialog.
hidden :
{
title : 'Osobine skrivenog polja',
name : 'Naziv',
value : 'Vrednost'
},
// Image Dialog.
image :
{
title : 'Osobine slika',
titleButton : 'Osobine dugmeta sa slikom',
menu : 'Osobine slika',
infoTab : 'Info slike',
btnUpload : 'Pošalji na server',
upload : 'Pošalji',
alt : 'Alternativni tekst',
lockRatio : 'Zaključaj odnos',
resetSize : 'Resetuj veličinu',
border : 'Okvir',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Unesite URL slike',
linkTab : 'Link',
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 : 'Osobine fleša',
propertiesTab : 'Properties', // MISSING
title : 'Osobine fleša',
chkPlay : 'Automatski start',
chkLoop : 'Ponavljaj',
chkMenu : 'Uključi fleš meni',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Skaliraj',
scaleAll : 'Prikaži sve',
scaleNoBorder : 'Bez ivice',
scaleFit : 'Popuni površinu',
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 : 'Unesite URL linka',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Proveri spelovanje',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Nije u rečniku',
changeTo : 'Izmeni',
btnIgnore : 'Ignoriši',
btnIgnoreAll : 'Ignoriši sve',
btnReplace : 'Zameni',
btnReplaceAll : 'Zameni sve',
btnUndo : 'Vrati akciju',
noSuggestions : '- Bez sugestija -',
progress : 'Provera spelovanja u toku...',
noMispell : 'Provera spelovanja završena: greške nisu pronadene',
noChanges : 'Provera spelovanja završena: Nije izmenjena nijedna rec',
oneChange : 'Provera spelovanja završena: Izmenjena je jedna reč',
manyChanges : 'Provera spelovanja završena: %1 reč(i) je izmenjeno',
ieSpellDownload : 'Provera spelovanja nije instalirana. Da li želite da je skinete sa Interneta?'
},
smiley :
{
toolbar : 'Smajli',
title : 'Unesi smajlija',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Nabrojiva lista',
bulletedlist : 'Nenabrojiva lista',
indent : 'Uvećaj levu marginu',
outdent : 'Smanji levu marginu',
justify :
{
left : 'Levo ravnanje',
center : 'Centriran tekst',
right : 'Desno ravnanje',
block : 'Obostrano ravnanje'
},
blockquote : 'Block Quote', // MISSING
clipboard :
{
title : 'Zalepi',
cutError : 'Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog isecanja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+X).',
copyError : 'Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+C).',
pasteMsg : 'Molimo Vas da zalepite unutar donje povrine koristeći tastaturnu prečicu (<STRONG>Ctrl/Cmd+V</STRONG>) i da pritisnete <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 : 'Zalepi iz Worda',
title : 'Zalepi iz Worda',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Zalepi kao čist tekst',
title : 'Zalepi kao čist tekst'
},
templates :
{
button : 'Obrasci',
title : 'Obrasci za sadržaj',
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents', // MISSING
selectPromptMsg : 'Molimo Vas da odaberete obrazac koji ce biti primenjen na stranicu (trenutni sadržaj ce biti obrisan):',
emptyListMsg : '(Nema definisanih obrazaca)'
},
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 : 'Formatirano',
tag_address : 'Adresa',
tag_h1 : 'Naslov 1',
tag_h2 : 'Naslov 2',
tag_h3 : 'Naslov 3',
tag_h4 : 'Naslov 4',
tag_h5 : 'Naslov 5',
tag_h6 : 'Naslov 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 fonta',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Veličina fonta'
},
colorButton :
{
textColorTitle : 'Boja teksta',
bgColorTitle : 'Boja pozadine',
panelTitle : 'Colors', // MISSING
auto : 'Automatski',
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 : 'Osobine dokumenta',
title : 'Osobine dokumenta',
design : 'Design', // MISSING
meta : 'Metapodaci',
chooseColor : 'Choose', // MISSING
other : '<остало>',
docTitle : 'Naslov stranice',
charset : 'Kodiranje skupa karaktera',
charsetOther : 'Ostala kodiranja skupa karaktera',
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 : 'Zaglavlje tipa dokumenta',
docTypeOther : 'Ostala zaglavlja tipa dokumenta',
xhtmlDec : 'Ukljuci XHTML deklaracije',
bgColor : 'Boja pozadine',
bgImage : 'URL pozadinske slike',
bgFixed : 'Fiksirana pozadina',
txtColor : 'Boja teksta',
margin : 'Margine stranice',
marginTop : 'Gornja',
marginLeft : 'Leva',
marginRight : 'Desna',
marginBottom : 'Donja',
metaKeywords : 'Ključne reci za indeksiranje dokumenta (razdvojene zarezima)',
metaDescription : 'Opis dokumenta',
metaAuthor : 'Autor',
metaCopyright : 'Autorska prava',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/sr-latn.js | sr-latn.js |
/*
Copyright (c) 2003-2011, 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>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/zh-cn.js | zh-cn.js |
/*
Copyright (c) 2003-2011, 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
* Vietnamese language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['vi'] =
{
/**
* 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 : 'Bộ soạn thảo, %1, nhấn ALT + 0 để xem hướng dẫn.',
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'Bộ soạn thảo',
// Toolbar buttons without dialogs.
source : 'Mã HTML',
newPage : 'Trang mới',
save : 'Lưu',
preview : 'Xem trước',
cut : 'Cắt',
copy : 'Sao chép',
paste : 'Dán',
print : 'In',
underline : 'Gạch chân',
bold : 'Đậm',
italic : 'Nghiêng',
selectAll : 'Chọn tất cả',
removeFormat : 'Xoá định dạng',
strike : 'Gạch xuyên ngang',
subscript : 'Chỉ số dưới',
superscript : 'Chỉ số trên',
horizontalrule : 'Chèn đường phân cách ngang',
pagebreak : 'Chèn ngắt trang',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Xoá liên kết',
undo : 'Khôi phục thao tác',
redo : 'Làm lại thao tác',
// Common messages and labels.
common :
{
browseServer : 'Duyệt trên máy chủ',
url : 'URL',
protocol : 'Giao thức',
upload : 'Tải lên',
uploadSubmit : 'Tải lên máy chủ',
image : 'Hình ảnh',
flash : 'Flash',
form : 'Biểu mẫu',
checkbox : 'Nút kiểm',
radio : 'Nút chọn',
textField : 'Trường văn bản',
textarea : 'Vùng văn bản',
hiddenField : 'Trường ẩn',
button : 'Nút',
select : 'Ô chọn',
imageButton : 'Nút hình ảnh',
notSet : '<không thiết lập>',
id : 'Định danh',
name : 'Tên',
langDir : 'Hướng ngôn ngữ',
langDirLtr : 'Trái sang phải (LTR)',
langDirRtl : 'Phải sang trái (RTL)',
langCode : 'Mã ngôn ngữ',
longDescr : 'Mô tả URL',
cssClass : 'Lớp Stylesheet',
advisoryTitle : 'Nhan đề hướng dẫn',
cssStyle : 'Kiểu (style)',
ok : 'Đồng ý',
cancel : 'Bỏ qua',
close : 'Đóng',
preview : 'Xem trước',
generalTab : 'Tab chung',
advancedTab : 'Tab mở rộng',
validateNumberFailed : 'Giá trị này không phải là số.',
confirmNewPage : 'Mọi thay đổi không được lưu lại, nội dung này sẽ bị mất. Bạn có chắc chắn muốn tải một trang mới?',
confirmCancel : 'Một vài tùy chọn đã bị thay đổi. Bạn có chắc chắn muốn đóng hộp thoại?',
options : 'Tùy chọn',
target : 'Đích đến',
targetNew : 'Cửa sổ mới (_blank)',
targetTop : 'Cửa sổ trên cùng (_top)',
targetSelf : 'Tại trang (_self)',
targetParent : 'Cửa sổ cha (_parent)',
langDirLTR : 'Left to Right (LTR)', // MISSING
langDirRTL : 'Right to Left (RTL)', // MISSING
styles : 'Style', // MISSING
cssClasses : 'Stylesheet Classes', // MISSING
width : 'Chiều rộng',
height : 'chiều cao',
align : 'Vị trí',
alignLeft : 'Trái',
alignRight : 'Phải',
alignCenter : 'Giữa',
alignTop : 'Trên',
alignMiddle : 'Giữa',
alignBottom : 'Dưới',
invalidHeight : 'Chiều cao phải là số nguyên.',
invalidWidth : 'Chiều rộng phải là số nguyên.',
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">, không có</span>'
},
contextmenu :
{
options : 'Tùy chọn menu bổ xung'
},
// Special char dialog.
specialChar :
{
toolbar : 'Chèn ký tự đặc biệt',
title : 'Hãy chọn ký tự đặc biệt',
options : 'Tùy chọn các ký tự đặc biệt'
},
// Link dialog.
link :
{
toolbar : 'Chèn/Sửa liên kết',
other : '<khác>',
menu : 'Sửa liên kết',
title : 'Liên kết',
info : 'Thông tin liên kết',
target : 'Đích',
upload : 'Tải lên',
advanced : 'Mở rộng',
type : 'Kiểu liên kết',
toUrl : 'URL',
toAnchor : 'Neo trong trang này',
toEmail : 'Thư điện tử',
targetFrame : '<khung>',
targetPopup : '<cửa sổ popup>',
targetFrameName : 'Tên khung đích',
targetPopupName : 'Tên cửa sổ Popup',
popupFeatures : 'Đặc điểm của cửa sổ Popup',
popupResizable : 'Có thể thay đổi kích cỡ',
popupStatusBar : 'Thanh trạng thái',
popupLocationBar: 'Thanh vị trí',
popupToolbar : 'Thanh công cụ',
popupMenuBar : 'Thanh Menu',
popupFullScreen : 'Toàn màn hình (IE)',
popupScrollBars : 'Thanh cuộn',
popupDependent : 'Phụ thuộc (Netscape)',
popupLeft : 'Vị trí bên trái',
popupTop : 'Vị trí phía trên',
id : 'Định danh',
langDir : 'Hướng ngôn ngữ',
langDirLTR : 'Trái sang phải (LTR)',
langDirRTL : 'Phải sang trái (RTL)',
acccessKey : 'Phím hỗ trợ truy cập',
name : 'Tên',
langCode : 'Mã ngôn ngữ',
tabIndex : 'Chỉ số của Tab',
advisoryTitle : 'Nhan đề hướng dẫn',
advisoryContentType : 'Nội dung hướng dẫn',
cssClasses : 'Lớp Stylesheet',
charset : 'Bảng mã của tài nguyên được liên kết đến',
styles : 'Kiểu (style)',
rel : 'Relationship', // MISSING
selectAnchor : 'Chọn một điểm neo',
anchorName : 'Theo tên điểm neo',
anchorId : 'Theo định danh thành phần',
emailAddress : 'Thư điện tử',
emailSubject : 'Tiêu đề thông điệp',
emailBody : 'Nội dung thông điệp',
noAnchors : '(Không có điểm neo nào trong tài liệu)',
noUrl : 'Hãy đưa vào đường dẫn liên kết (URL)',
noEmail : 'Hãy đưa vào địa chỉ thư điện tử'
},
// Anchor dialog
anchor :
{
toolbar : 'Chèn/Sửa điểm neo',
menu : 'Thuộc tính điểm neo',
title : 'Thuộc tính điểm neo',
name : 'Tên của điểm neo',
errorName : 'Hãy nhập vào tên của điểm neo',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Thuộc tính danh sách có thứ tự',
bulletedTitle : 'Thuộc tính danh sách không thứ tự',
type : 'Kiểu loại',
start : 'Bắt đầu',
validateStartNumber :'List start number must be a whole number.', // MISSING
circle : 'Khuyên tròn',
disc : 'Hình đĩa',
square : 'Hình vuông',
none : 'Không gì cả',
notset : '<không thiết lập>',
armenian : 'Số theo kiểu Armenian',
georgian : 'Số theo kiểu Georgian (an, ban, gan...)',
lowerRoman : 'Số La Mã kiểu thường (i, ii, iii, iv, v...)',
upperRoman : 'Số La Mã kiểu HOA (I, II, III, IV, V...)',
lowerAlpha : 'Kiểu abc thường (a, b, c, d, e...)',
upperAlpha : 'Kiểu ABC HOA (A, B, C, D, E...)',
lowerGreek : 'Kiểu Hy Lạp (alpha, beta, gamma...)',
decimal : 'Kiểu số (1, 2, 3 ...)',
decimalLeadingZero : 'Kiểu số (01, 02, 03...)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Tìm kiếm và thay thế',
find : 'Tìm kiếm',
replace : 'Thay thế',
findWhat : 'Tìm chuỗi:',
replaceWith : 'Thay bằng:',
notFoundMsg : 'Không tìm thấy chuỗi cần tìm.',
findOptions : 'Find Options', // MISSING
matchCase : 'Phân biệt chữ hoa/thường',
matchWord : 'Giống toàn bộ từ',
matchCyclic : 'Giống một phần',
replaceAll : 'Thay thế tất cả',
replaceSuccessMsg : '%1 vị trí đã được thay thế.'
},
// Table Dialog
table :
{
toolbar : 'Bảng',
title : 'Thuộc tính bảng',
menu : 'Thuộc tính bảng',
deleteTable : 'Xóa bảng',
rows : 'Số hàng',
columns : 'Số cột',
border : 'Kích thước đường viền',
widthPx : 'Điểm ảnh (px)',
widthPc : 'Phần trăm (%)',
widthUnit : 'Đơn vị',
cellSpace : 'Khoảng cách giữa các ô',
cellPad : 'Khoảng đệm giữ ô và nội dung',
caption : 'Đầu đề',
summary : 'Tóm lược',
headers : 'Đầu đề',
headersNone : 'Không có',
headersColumn : 'Cột đầu tiên',
headersRow : 'Hàng đầu tiên',
headersBoth : 'Cả hai',
invalidRows : 'Số lượng hàng phải là một số lớn hơn 0.',
invalidCols : 'Số lượng cột phải là một số lớn hơn 0.',
invalidBorder : 'Kích cỡ của đường biên phải là một số nguyên.',
invalidWidth : 'Chiều rộng của bảng phải là một số nguyên.',
invalidHeight : 'Chiều cao của bảng phải là một số nguyên.',
invalidCellSpacing : 'Khoảng cách giữa các ô phải là một số nguyên.',
invalidCellPadding : 'Khoảng đệm giữa ô và nội dung phải là một số nguyên.',
cell :
{
menu : 'Ô',
insertBefore : 'Chèn ô Phía trước',
insertAfter : 'Chèn ô Phía sau',
deleteCell : 'Xoá ô',
merge : 'Kết hợp ô',
mergeRight : 'Kết hợp sang phải',
mergeDown : 'Kết hợp xuống dưới',
splitHorizontal : 'Phân tách ô theo chiều ngang',
splitVertical : 'Phân tách ô theo chiều dọc',
title : 'Thuộc tính của ô',
cellType : 'Kiểu của ô',
rowSpan : 'Kết hợp hàng',
colSpan : 'Kết hợp cột',
wordWrap : 'Chữ liền hàng',
hAlign : 'Canh lề ngang',
vAlign : 'Canh lề dọc',
alignBaseline : 'Đường cơ sở',
bgColor : 'Màu nền',
borderColor : 'Màu viền',
data : 'Dữ liệu',
header : 'Đầu đề',
yes : 'Có',
no : 'Không',
invalidWidth : 'Chiều rộng của ô phải là một số nguyên.',
invalidHeight : 'Chiều cao của ô phải là một số nguyên.',
invalidRowSpan : 'Số hàng kết hợp phải là một số nguyên.',
invalidColSpan : 'Số cột kết hợp phải là một số nguyên.',
chooseColor : 'Chọn màu'
},
row :
{
menu : 'Hàng',
insertBefore : 'Chèn hàng phía trước',
insertAfter : 'Chèn hàng phía sau',
deleteRow : 'Xoá hàng'
},
column :
{
menu : 'Cột',
insertBefore : 'Chèn cột phía trước',
insertAfter : 'Chèn cột phía sau',
deleteColumn : 'Xoá cột'
}
},
// Button Dialog.
button :
{
title : 'Thuộc tính của nút',
text : 'Chuỗi hiển thị (giá trị)',
type : 'Kiểu',
typeBtn : 'Nút bấm',
typeSbm : 'Nút gửi',
typeRst : 'Nút nhập lại'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Thuộc tính nút kiểm',
radioTitle : 'Thuộc tính nút chọn',
value : 'Giá trị',
selected : 'Được chọn'
},
// Form Dialog.
form :
{
title : 'Thuộc tính biểu mẫu',
menu : 'Thuộc tính biểu mẫu',
action : 'Hành động',
method : 'Phương thức',
encoding : 'Bảng mã'
},
// Select Field Dialog.
select :
{
title : 'Thuộc tính ô chọn',
selectInfo : 'Thông tin',
opAvail : 'Các tùy chọn có thể sử dụng',
value : 'Giá trị',
size : 'Kích cỡ',
lines : 'dòng',
chkMulti : 'Cho phép chọn nhiều',
opText : 'Văn bản',
opValue : 'Giá trị',
btnAdd : 'Thêm',
btnModify : 'Thay đổi',
btnUp : 'Lên',
btnDown : 'Xuống',
btnSetValue : 'Giá trị được chọn',
btnDelete : 'Nút xoá'
},
// Textarea Dialog.
textarea :
{
title : 'Thuộc tính vùng văn bản',
cols : 'Số cột',
rows : 'Số hàng'
},
// Text Field Dialog.
textfield :
{
title : 'Thuộc tính trường văn bản',
name : 'Tên',
value : 'Giá trị',
charWidth : 'Độ rộng của ký tự',
maxChars : 'Số ký tự tối đa',
type : 'Kiểu',
typeText : 'Ký tự',
typePass : 'Mật khẩu'
},
// Hidden Field Dialog.
hidden :
{
title : 'Thuộc tính trường ẩn',
name : 'Tên',
value : 'Giá trị'
},
// Image Dialog.
image :
{
title : 'Thuộc tính của ảnh',
titleButton : 'Thuộc tính nút của ảnh',
menu : 'Thuộc tính của ảnh',
infoTab : 'Thông tin của ảnh',
btnUpload : 'Tải lên máy chủ',
upload : 'Tải lên',
alt : 'Chú thích ảnh',
lockRatio : 'Giữ nguyên tỷ lệ',
resetSize : 'Kích thước gốc',
border : 'Đường viền',
hSpace : 'Khoảng đệm ngang',
vSpace : 'Khoảng đệm dọc',
alertUrl : 'Hãy đưa vào đường dẫn của ảnh',
linkTab : 'Tab liên kết',
button2Img : 'Bạn có muốn chuyển nút bấm bằng ảnh được chọn thành ảnh?',
img2Button : 'Bạn có muốn chuyển đổi ảnh được chọn thành nút bấm bằng ảnh?',
urlMissing : 'Thiếu đường dẫn hình ảnh',
validateBorder : 'Chiều rộng của đường viền phải là một số nguyên dương',
validateHSpace : 'Khoảng đệm ngang phải là một số nguyên dương',
validateVSpace : 'Khoảng đệm dọc phải là một số nguyên dương'
},
// Flash Dialog
flash :
{
properties : 'Thuộc tính Flash',
propertiesTab : 'Thuộc tính',
title : 'Thuộc tính Flash',
chkPlay : 'Tự động chạy',
chkLoop : 'Lặp',
chkMenu : 'Cho phép bật menu của Flash',
chkFull : 'Cho phép toàn màn hình',
scale : 'Tỷ lệ',
scaleAll : 'Hiển thị tất cả',
scaleNoBorder : 'Không đường viền',
scaleFit : 'Vừa vặn',
access : 'Truy cập mã',
accessAlways : 'Luôn luôn',
accessSameDomain: 'Cùng tên miền',
accessNever : 'Không bao giờ',
alignAbsBottom : 'Dưới tuyệt đối',
alignAbsMiddle : 'Giữa tuyệt đối',
alignBaseline : 'Đường cơ sở',
alignTextTop : 'Phía trên chữ',
quality : 'Chất lượng',
qualityBest : 'Tốt nhất',
qualityHigh : 'Cao',
qualityAutoHigh : 'Cao tự động',
qualityMedium : 'Trung bình',
qualityAutoLow : 'Thấp tự động',
qualityLow : 'Thấp',
windowModeWindow: 'Cửa sổ',
windowModeOpaque: 'Mờ đục',
windowModeTransparent : 'Trong suốt',
windowMode : 'Chế độ cửa sổ',
flashvars : 'Các biến số dành cho Flash',
bgcolor : 'Màu nền',
hSpace : 'Khoảng đệm ngang',
vSpace : 'Khoảng đệm dọc',
validateSrc : 'Hãy đưa vào đường dẫn liên kết',
validateHSpace : 'Khoảng đệm ngang phải là số nguyên.',
validateVSpace : 'Khoảng đệm dọc phải là số nguyên.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Kiểm tra chính tả',
title : 'Kiểm tra chính tả',
notAvailable : 'Xin lỗi, dịch vụ này hiện tại không có.',
errorLoading : 'Lỗi khi đang nạp dịch vụ ứng dụng: %s.',
notInDic : 'Không có trong từ điển',
changeTo : 'Chuyển thành',
btnIgnore : 'Bỏ qua',
btnIgnoreAll : 'Bỏ qua tất cả',
btnReplace : 'Thay thế',
btnReplaceAll : 'Thay thế tất cả',
btnUndo : 'Phục hồi lại',
noSuggestions : '- Không đưa ra gợi ý về từ -',
progress : 'Đang tiến hành kiểm tra chính tả...',
noMispell : 'Hoàn tất kiểm tra chính tả: Không có lỗi chính tả',
noChanges : 'Hoàn tất kiểm tra chính tả: Không có từ nào được thay đổi',
oneChange : 'Hoàn tất kiểm tra chính tả: Một từ đã được thay đổi',
manyChanges : 'Hoàn tất kiểm tra chính tả: %1 từ đã được thay đổi',
ieSpellDownload : 'Chức năng kiểm tra chính tả chưa được cài đặt. Bạn có muốn tải về ngay bây giờ?'
},
smiley :
{
toolbar : 'Hình biểu lộ cảm xúc (mặt cười)',
title : 'Chèn hình biểu lộ cảm xúc (mặt cười)',
options : 'Tùy chọn hình biểu lộ cảm xúc'
},
elementsPath :
{
eleLabel : 'Nhãn thành phần',
eleTitle : '%1 thành phần'
},
numberedlist : 'Danh sách có thứ tự',
bulletedlist : 'Danh sách không thứ tự',
indent : 'Dịch vào trong',
outdent : 'Dịch ra ngoài',
justify :
{
left : 'Canh trái',
center : 'Canh giữa',
right : 'Canh phải',
block : 'Canh đều'
},
blockquote : 'Khối trích dẫn',
clipboard :
{
title : 'Dán',
cutError : 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh cắt. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+X).',
copyError : 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh sao chép. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+C).',
pasteMsg : 'Hãy dán nội dung vào trong khung bên dưới, sử dụng tổ hợp phím (<STRONG>Ctrl/Cmd+V</STRONG>) và nhấn vào nút <STRONG>Đồng ý</STRONG>.',
securityMsg : 'Do thiết lập bảo mật của trình duyệt nên trình biên tập không thể truy cập trực tiếp vào nội dung đã sao chép. Bạn cần phải dán lại nội dung vào cửa sổ này.',
pasteArea : 'Khu vực dán'
},
pastefromword :
{
confirmCleanup : 'Văn bản bạn muốn dán có kèm định dạng của Word. Bạn có muốn loại bỏ định dạng Word trước khi dán?',
toolbar : 'Dán với định dạng Word',
title : 'Dán với định dạng Word',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Dán theo định dạng văn bản thuần',
title : 'Dán theo định dạng văn bản thuần'
},
templates :
{
button : 'Mẫu dựng sẵn',
title : 'Nội dung Mẫu dựng sẵn',
options : 'Tùy chọn mẫu dựng sẵn',
insertOption : 'Thay thế nội dung hiện tại',
selectPromptMsg : 'Hãy chọn mẫu dựng sẵn để mở trong trình biên tập<br>(nội dung hiện tại sẽ bị mất):',
emptyListMsg : '(Không có mẫu dựng sẵn nào được định nghĩa)'
},
showBlocks : 'Hiển thị các khối',
stylesCombo :
{
label : 'Kiểu',
panelTitle : 'Phong cách định dạng',
panelTitle1 : 'Kiểu khối',
panelTitle2 : 'Kiểu trực tiếp',
panelTitle3 : 'Kiểu đối tượng'
},
format :
{
label : 'Định dạng',
panelTitle : 'Định dạng',
tag_p : 'Bình thường (P)',
tag_pre : 'Đã thiết lập',
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 : 'Bình thường (DIV)'
},
div :
{
title : 'Tạo khối các thành phần',
toolbar : 'Tạo khối các thành phần',
cssClassInputLabel : 'Các lớp CSS',
styleSelectLabel : 'Kiểu (style)',
IdInputLabel : 'Định danh (id)',
languageCodeInputLabel : 'Mã ngôn ngữ',
inlineStyleInputLabel : 'Kiểu nội dòng',
advisoryTitleInputLabel : 'Nhan đề hướng dẫn',
langDirLabel : 'Hướng ngôn ngữ',
langDirLTRLabel : 'Trái sang phải (LTR)',
langDirRTLLabel : 'Phải qua trái (RTL)',
edit : 'Chỉnh sửa',
remove : 'Xóa bỏ'
},
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 : 'Phông',
voiceLabel : 'Phông',
panelTitle : 'Phông'
},
fontSize :
{
label : 'Cỡ chữ',
voiceLabel : 'Kích cỡ phông',
panelTitle : 'Cỡ chữ'
},
colorButton :
{
textColorTitle : 'Màu chữ',
bgColorTitle : 'Màu nền',
panelTitle : 'Màu sắc',
auto : 'Tự động',
more : 'Màu khác...'
},
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 : 'Kiểm tra chính tả ngay khi gõ chữ (SCAYT)',
opera_title : 'Không hỗ trợ trên trình duyệt Opera',
enable : 'Bật SCAYT',
disable : 'Tắt SCAYT',
about : 'Thông tin về SCAYT',
toggle : 'Bật tắt SCAYT',
options : 'Tùy chọn',
langs : 'Ngôn ngữ',
moreSuggestions : 'Đề xuất thêm',
ignore : 'Bỏ qua',
ignoreAll : 'Bỏ qua tất cả',
addWord : 'Thêm từ',
emptyDic : 'Tên của từ điển không được để trống.',
optionsTab : 'Tùy chọn',
allCaps : 'Không phân biệt chữ HOA chữ thường',
ignoreDomainNames : 'Bỏ qua tên miền',
mixedCase : 'Không phân biệt loại chữ',
mixedWithDigits : 'Không phân biệt chữ và số',
languagesTab : 'Tab ngôn ngữ',
dictionariesTab : 'Từ điển',
dic_field_name : 'Tên từ điển',
dic_create : 'Tạo',
dic_restore : 'Phục hồi',
dic_delete : 'Xóa',
dic_rename : 'Thay tên',
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 : 'Thông tin'
},
about :
{
title : 'Thông tin về CKEditor',
dlgTitle : 'Thông tin về CKEditor',
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'Vui lòng ghé thăm trang web của chúng tôi để có thông tin về giấy phép:',
copy : 'Bản quyền © $1. Giữ toàn quyền.'
},
maximize : 'Phóng to tối đa',
minimize : 'Thu nhỏ',
fakeobjects :
{
anchor : 'Điểm neo',
flash : 'Flash',
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Đối tượng không rõ ràng'
},
resize : 'Kéo rê để thay đổi kích cỡ',
colordialog :
{
title : 'Chọn màu',
options : 'Color Options', // MISSING
highlight : 'Màu chọn',
selected : 'Màu đã chọn',
clear : 'Xóa bỏ'
},
toolbarCollapse : 'Thu gọn thanh công cụ',
toolbarExpand : 'Mở rộng thnah công cụ',
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 : 'Thuộc tính Tài liệu',
title : 'Thuộc tính Tài liệu',
design : 'Design', // MISSING
meta : 'Siêu dữ liệu',
chooseColor : 'Chọn màu',
other : '<khác>',
docTitle : 'Tiêu đề Trang',
charset : 'Bảng mã ký tự',
charsetOther : 'Bảng mã ký tự khác',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Trung Âu',
charsetCT : 'Tiếng Trung Quốc (Big5)',
charsetCR : 'Tiếng Kirin',
charsetGR : 'Tiếng Hy Lạp',
charsetJP : 'Tiếng Nhật',
charsetKR : 'Tiếng Hàn',
charsetTR : 'Tiếng Thổ Nhĩ Kỳ',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Tây Âu',
docType : 'Kiểu Đề mục Tài liệu',
docTypeOther : 'Kiểu Đề mục Tài liệu khác',
xhtmlDec : 'Bao gồm cả định nghĩa XHTML',
bgColor : 'Màu nền',
bgImage : 'URL của Hình ảnh nền',
bgFixed : 'Không cuộn nền',
txtColor : 'Màu chữ',
margin : 'Đường biên của Trang',
marginTop : 'Trên',
marginLeft : 'Trái',
marginRight : 'Phải',
marginBottom : 'Dưới',
metaKeywords : 'Các từ khóa chỉ mục tài liệu (phân cách bởi dấu phẩy)',
metaDescription : 'Mô tả tài liệu',
metaAuthor : 'Tác giả',
metaCopyright : 'Bản quyền',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/vi.js | vi.js |
/*
Copyright (c) 2003-2011, 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
* Malay language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['ms'] =
{
/**
* 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 : 'Sumber',
newPage : 'Helaian Baru',
save : 'Simpan',
preview : 'Prebiu',
cut : 'Potong',
copy : 'Salin',
paste : 'Tampal',
print : 'Cetak',
underline : 'Underline',
bold : 'Bold',
italic : 'Italic',
selectAll : 'Pilih Semua',
removeFormat : 'Buang Format',
strike : 'Strike Through',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Masukkan Garisan Membujur',
pagebreak : 'Insert Page Break for Printing', // MISSING
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Buang Sambungan',
undo : 'Batalkan',
redo : 'Ulangkan',
// Common messages and labels.
common :
{
browseServer : 'Browse Server',
url : 'URL',
protocol : 'Protokol',
upload : 'Muat Naik',
uploadSubmit : 'Hantar ke Server',
image : 'Gambar',
flash : 'Flash', // MISSING
form : 'Borang',
checkbox : 'Checkbox',
radio : 'Butang Radio',
textField : 'Text Field',
textarea : 'Textarea',
hiddenField : 'Field Tersembunyi',
button : 'Butang',
select : 'Field Pilihan',
imageButton : 'Butang Bergambar',
notSet : '<tidak di set>',
id : 'Id',
name : 'Nama',
langDir : 'Arah Tulisan',
langDirLtr : 'Kiri ke Kanan (LTR)',
langDirRtl : 'Kanan ke Kiri (RTL)',
langCode : 'Kod Bahasa',
longDescr : 'Butiran Panjang URL',
cssClass : 'Kelas-kelas Stylesheet',
advisoryTitle : 'Tajuk Makluman',
cssStyle : 'Stail',
ok : 'OK',
cancel : 'Batal',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General', // MISSING
advancedTab : 'Advanced',
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 : 'Lebar',
height : 'Tinggi',
align : 'Jajaran',
alignLeft : 'Kiri',
alignRight : 'Kanan',
alignCenter : 'Tengah',
alignTop : 'Atas',
alignMiddle : 'Pertengahan',
alignBottom : 'Bawah',
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 : 'Masukkan Huruf Istimewa',
title : 'Sila pilih huruf istimewa',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Masukkan/Sunting Sambungan',
other : '<lain>',
menu : 'Sunting Sambungan',
title : 'Sambungan',
info : 'Butiran Sambungan',
target : 'Sasaran',
upload : 'Muat Naik',
advanced : 'Advanced',
type : 'Jenis Sambungan',
toUrl : 'URL', // MISSING
toAnchor : 'Pautan dalam muka surat ini',
toEmail : 'E-Mail',
targetFrame : '<bingkai>',
targetPopup : '<tetingkap popup>',
targetFrameName : 'Nama Bingkai Sasaran',
targetPopupName : 'Nama Tetingkap Popup',
popupFeatures : 'Ciri Tetingkap Popup',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Bar Status',
popupLocationBar: 'Bar Lokasi',
popupToolbar : 'Toolbar',
popupMenuBar : 'Bar Menu',
popupFullScreen : 'Skrin Penuh (IE)',
popupScrollBars : 'Bar-bar skrol',
popupDependent : 'Bergantungan (Netscape)',
popupLeft : 'Posisi Kiri',
popupTop : 'Posisi Atas',
id : 'Id', // MISSING
langDir : 'Arah Tulisan',
langDirLTR : 'Kiri ke Kanan (LTR)',
langDirRTL : 'Kanan ke Kiri (RTL)',
acccessKey : 'Kunci Akses',
name : 'Nama',
langCode : 'Arah Tulisan',
tabIndex : 'Indeks Tab ',
advisoryTitle : 'Tajuk Makluman',
advisoryContentType : 'Jenis Kandungan Makluman',
cssClasses : 'Kelas-kelas Stylesheet',
charset : 'Linked Resource Charset',
styles : 'Stail',
rel : 'Relationship', // MISSING
selectAnchor : 'Sila pilih pautan',
anchorName : 'dengan menggunakan nama pautan',
anchorId : 'dengan menggunakan ID elemen',
emailAddress : 'Alamat E-Mail',
emailSubject : 'Subjek Mesej',
emailBody : 'Isi Kandungan Mesej',
noAnchors : '(Tiada pautan terdapat dalam dokumen ini)',
noUrl : 'Sila taip sambungan URL',
noEmail : 'Sila taip alamat e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Masukkan/Sunting Pautan',
menu : 'Ciri-ciri Pautan',
title : 'Ciri-ciri Pautan',
name : 'Nama Pautan',
errorName : 'Sila taip nama pautan',
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 : 'Cari',
replace : 'Ganti',
findWhat : 'Perkataan yang dicari:',
replaceWith : 'Diganti dengan:',
notFoundMsg : 'Text yang dicari tidak dijumpai.',
findOptions : 'Find Options', // MISSING
matchCase : 'Padanan case huruf',
matchWord : 'Padana Keseluruhan perkataan',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Ganti semua',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Jadual',
title : 'Ciri-ciri Jadual',
menu : 'Ciri-ciri Jadual',
deleteTable : 'Delete Table', // MISSING
rows : 'Barisan',
columns : 'Jaluran',
border : 'Saiz Border',
widthPx : 'piksel-piksel',
widthPc : 'peratus',
widthUnit : 'width unit', // MISSING
cellSpace : 'Ruangan Antara Sel',
cellPad : 'Tambahan Ruang Sel',
caption : 'Keterangan',
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 : 'Buangkan Sel-sel',
merge : 'Cantumkan Sel-sel',
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 : 'Buangkan Baris'
},
column :
{
menu : 'Column', // MISSING
insertBefore : 'Insert Column Before', // MISSING
insertAfter : 'Insert Column After', // MISSING
deleteColumn : 'Buangkan Lajur'
}
},
// Button Dialog.
button :
{
title : 'Ciri-ciri Butang',
text : 'Teks (Nilai)',
type : 'Jenis',
typeBtn : 'Button', // MISSING
typeSbm : 'Submit', // MISSING
typeRst : 'Reset' // MISSING
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Ciri-ciri Checkbox',
radioTitle : 'Ciri-ciri Butang Radio',
value : 'Nilai',
selected : 'Dipilih'
},
// Form Dialog.
form :
{
title : 'Ciri-ciri Borang',
menu : 'Ciri-ciri Borang',
action : 'Tindakan borang',
method : 'Cara borang dihantar',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'Ciri-ciri Selection Field',
selectInfo : 'Select Info', // MISSING
opAvail : 'Pilihan sediada',
value : 'Nilai',
size : 'Saiz',
lines : 'garisan',
chkMulti : 'Benarkan pilihan pelbagai',
opText : 'Teks',
opValue : 'Nilai',
btnAdd : 'Tambah Pilihan',
btnModify : 'Ubah Pilihan',
btnUp : 'Naik ke atas',
btnDown : 'Turun ke bawah',
btnSetValue : 'Set sebagai nilai terpilih',
btnDelete : 'Padam'
},
// Textarea Dialog.
textarea :
{
title : 'Ciri-ciri Textarea',
cols : 'Lajur',
rows : 'Baris'
},
// Text Field Dialog.
textfield :
{
title : 'Ciri-ciri Text Field',
name : 'Nama',
value : 'Nilai',
charWidth : 'Lebar isian',
maxChars : 'Isian Maksimum',
type : 'Jenis',
typeText : 'Teks',
typePass : 'Kata Laluan'
},
// Hidden Field Dialog.
hidden :
{
title : 'Ciri-ciri Field Tersembunyi',
name : 'Nama',
value : 'Nilai'
},
// Image Dialog.
image :
{
title : 'Ciri-ciri Imej',
titleButton : 'Ciri-ciri Butang Bergambar',
menu : 'Ciri-ciri Imej',
infoTab : 'Info Imej',
btnUpload : 'Hantar ke Server',
upload : 'Muat Naik',
alt : 'Text Alternatif',
lockRatio : 'Tetapkan Nisbah',
resetSize : 'Saiz Set Semula',
border : 'Border',
hSpace : 'Ruang Melintang',
vSpace : 'Ruang Menegak',
alertUrl : 'Sila taip URL untuk fail gambar',
linkTab : 'Sambungan',
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 : 'Bawah Mutlak',
alignAbsMiddle : 'Pertengahan Mutlak',
alignBaseline : 'Garis Dasar',
alignTextTop : 'Atas Text',
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 : 'Warna Latarbelakang',
hSpace : 'Ruang Melintang',
vSpace : 'Ruang Menegak',
validateSrc : 'Sila taip sambungan URL',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Semak Ejaan',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Tidak terdapat didalam kamus',
changeTo : 'Tukarkan kepada',
btnIgnore : 'Biar',
btnIgnoreAll : 'Biarkan semua',
btnReplace : 'Ganti',
btnReplaceAll : 'Gantikan Semua',
btnUndo : 'Batalkan',
noSuggestions : '- Tiada cadangan -',
progress : 'Pemeriksaan ejaan sedang diproses...',
noMispell : 'Pemeriksaan ejaan siap: Tiada salah ejaan',
noChanges : 'Pemeriksaan ejaan siap: Tiada perkataan diubah',
oneChange : 'Pemeriksaan ejaan siap: Satu perkataan telah diubah',
manyChanges : 'Pemeriksaan ejaan siap: %1 perkataan diubah',
ieSpellDownload : 'Pemeriksa ejaan tidak dipasang. Adakah anda mahu muat turun sekarang?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Masukkan Smiley',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Senarai bernombor',
bulletedlist : 'Senarai tidak bernombor',
indent : 'Tambahkan Inden',
outdent : 'Kurangkan Inden',
justify :
{
left : 'Jajaran Kiri',
center : 'Jajaran Tengah',
right : 'Jajaran Kanan',
block : 'Jajaran Blok'
},
blockquote : 'Block Quote', // MISSING
clipboard :
{
title : 'Tampal',
cutError : 'Keselamatan perisian browser anda tidak membenarkan operasi suntingan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+X).',
copyError : 'Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kekunci (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 : 'Tampal dari Word',
title : 'Tampal dari Word',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Tampal sebagai text biasa',
title : 'Tampal sebagai text biasa'
},
templates :
{
button : 'Templat',
title : 'Templat Kandungan',
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents', // MISSING
selectPromptMsg : 'Sila pilih templat untuk dibuka oleh editor<br>(kandungan sebenar akan hilang):',
emptyListMsg : '(Tiada Templat Disimpan)'
},
showBlocks : 'Show Blocks', // MISSING
stylesCombo :
{
label : 'Stail',
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 : 'Telah Diformat',
tag_address : 'Alamat',
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 : 'Perenggan (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'
},
fontSize :
{
label : 'Saiz',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Saiz'
},
colorButton :
{
textColorTitle : 'Warna Text',
bgColorTitle : 'Warna Latarbelakang',
panelTitle : 'Colors', // MISSING
auto : 'Otomatik',
more : 'Warna lain-lain...'
},
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 : 'Ciri-ciri dokumen',
title : 'Ciri-ciri dokumen',
design : 'Design', // MISSING
meta : 'Data Meta',
chooseColor : 'Choose', // MISSING
other : '<lain>',
docTitle : 'Tajuk Muka Surat',
charset : 'Enkod Set Huruf',
charsetOther : 'Enkod Set Huruf yang Lain',
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 : 'Jenis Kepala Dokumen',
docTypeOther : 'Jenis Kepala Dokumen yang Lain',
xhtmlDec : 'Masukkan pemula kod XHTML',
bgColor : 'Warna Latarbelakang',
bgImage : 'URL Gambar Latarbelakang',
bgFixed : 'Imej Latarbelakang tanpa Skrol',
txtColor : 'Warna Text',
margin : 'Margin Muka Surat',
marginTop : 'Atas',
marginLeft : 'Kiri',
marginRight : 'Kanan',
marginBottom : 'Bawah',
metaKeywords : 'Kata Kunci Indeks Dokumen (dipisahkan oleh koma)',
metaDescription : 'Keterangan Dokumen',
metaAuthor : 'Penulis',
metaCopyright : 'Hakcipta',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/ms.js | ms.js |
/*
Copyright (c) 2003-2011, 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
* Basque language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['eu'] =
{
/**
* 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 Iturburua',
newPage : 'Orrialde Berria',
save : 'Gorde',
preview : 'Aurrebista',
cut : 'Ebaki',
copy : 'Kopiatu',
paste : 'Itsatsi',
print : 'Inprimatu',
underline : 'Azpimarratu',
bold : 'Lodia',
italic : 'Etzana',
selectAll : 'Hautatu dena',
removeFormat : 'Kendu Formatua',
strike : 'Marratua',
subscript : 'Azpi-indize',
superscript : 'Goi-indize',
horizontalrule : 'Txertatu Marra Horizontala',
pagebreak : 'Txertatu Orrialde-jauzia',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Kendu Esteka',
undo : 'Desegin',
redo : 'Berregin',
// Common messages and labels.
common :
{
browseServer : 'Zerbitzaria arakatu',
url : 'URL',
protocol : 'Protokoloa',
upload : 'Gora kargatu',
uploadSubmit : 'Zerbitzarira bidalia',
image : 'Irudia',
flash : 'Flasha',
form : 'Formularioa',
checkbox : 'Kontrol-laukia',
radio : 'Aukera-botoia',
textField : 'Testu Eremua',
textarea : 'Testu-area',
hiddenField : 'Ezkutuko Eremua',
button : 'Botoia',
select : 'Hautespen Eremua',
imageButton : 'Irudi Botoia',
notSet : '<Ezarri gabe>',
id : 'Id',
name : 'Izena',
langDir : 'Hizkuntzaren Norabidea',
langDirLtr : 'Ezkerretik Eskumara(LTR)',
langDirRtl : 'Eskumatik Ezkerrera (RTL)',
langCode : 'Hizkuntza Kodea',
longDescr : 'URL Deskribapen Luzea',
cssClass : 'Estilo-orriko Klaseak',
advisoryTitle : 'Izenburua',
cssStyle : 'Estiloa',
ok : 'Ados',
cancel : 'Utzi',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'Orokorra',
advancedTab : 'Aurreratua',
validateNumberFailed : 'Balio hau ez da zenbaki bat.',
confirmNewPage : 'Eduki honetan gorde gabe dauden aldaketak galduko dira. Ziur zaude orri berri bat kargatu nahi duzula?',
confirmCancel : 'Aukera batzuk aldatu egin dira. Ziur zaude elkarrizketa-koadroa itxi nahi duzula?',
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 : 'Zabalera',
height : 'Altuera',
align : 'Lerrokatu',
alignLeft : 'Ezkerrera',
alignRight : 'Eskuman',
alignCenter : 'Erdian',
alignTop : 'Goian',
alignMiddle : 'Erdian',
alignBottom : 'Behean',
invalidHeight : 'Altuera zenbaki bat izan behar da.',
invalidWidth : 'Zabalera zenbaki bat izan behar da.',
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">, erabilezina</span>'
},
contextmenu :
{
options : 'Context Menu Options' // MISSING
},
// Special char dialog.
specialChar :
{
toolbar : 'Txertatu Karaktere Berezia',
title : 'Karaktere Berezia Aukeratu',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Txertatu/Editatu Esteka',
other : '<other>', // MISSING
menu : 'Aldatu Esteka',
title : 'Esteka',
info : 'Estekaren Informazioa',
target : 'Target (Helburua)',
upload : 'Gora kargatu',
advanced : 'Aurreratua',
type : 'Esteka Mota',
toUrl : 'URL', // MISSING
toAnchor : 'Aingura orrialde honetan',
toEmail : 'ePosta',
targetFrame : '<marko>',
targetPopup : '<popup leihoa>',
targetFrameName : 'Marko Helburuaren Izena',
targetPopupName : 'Popup Leihoaren Izena',
popupFeatures : 'Popup Leihoaren Ezaugarriak',
popupResizable : 'Tamaina Aldakorra',
popupStatusBar : 'Egoera Barra',
popupLocationBar: 'Kokaleku Barra',
popupToolbar : 'Tresna Barra',
popupMenuBar : 'Menu Barra',
popupFullScreen : 'Pantaila Osoa (IE)',
popupScrollBars : 'Korritze Barrak',
popupDependent : 'Menpekoa (Netscape)',
popupLeft : 'Ezkerreko Posizioa',
popupTop : 'Goiko Posizioa',
id : 'Id',
langDir : 'Hizkuntzaren Norabidea',
langDirLTR : 'Ezkerretik Eskumara(LTR)',
langDirRTL : 'Eskumatik Ezkerrera (RTL)',
acccessKey : 'Sarbide-gakoa',
name : 'Izena',
langCode : 'Hizkuntzaren Norabidea',
tabIndex : 'Tabulazio Indizea',
advisoryTitle : 'Izenburua',
advisoryContentType : 'Eduki Mota (Content Type)',
cssClasses : 'Estilo-orriko Klaseak',
charset : 'Estekatutako Karaktere Multzoa',
styles : 'Estiloa',
rel : 'Relationship', // MISSING
selectAnchor : 'Aingura bat hautatu',
anchorName : 'Aingura izenagatik',
anchorId : 'Elementuaren ID-gatik',
emailAddress : 'ePosta Helbidea',
emailSubject : 'Mezuaren Gaia',
emailBody : 'Mezuaren Gorputza',
noAnchors : '(Ez daude aingurak eskuragarri dokumentuan)',
noUrl : 'Mesedez URL esteka idatzi',
noEmail : 'Mesedez ePosta helbidea idatzi'
},
// Anchor dialog
anchor :
{
toolbar : 'Aingura',
menu : 'Ainguraren Ezaugarriak',
title : 'Ainguraren Ezaugarriak',
name : 'Ainguraren Izena',
errorName : 'Idatzi ainguraren izena',
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 : 'Bilatu eta Ordeztu',
find : 'Bilatu',
replace : 'Ordezkatu',
findWhat : 'Zer bilatu:',
replaceWith : 'Zerekin ordeztu:',
notFoundMsg : 'Idatzitako testua ez da topatu.',
findOptions : 'Find Options', // MISSING
matchCase : 'Maiuskula/minuskula',
matchWord : 'Esaldi osoa bilatu',
matchCyclic : 'Bilaketa ziklikoa',
replaceAll : 'Ordeztu Guztiak',
replaceSuccessMsg : 'Zenbat aldiz ordeztua: %1'
},
// Table Dialog
table :
{
toolbar : 'Taula',
title : 'Taularen Ezaugarriak',
menu : 'Taularen Ezaugarriak',
deleteTable : 'Ezabatu Taula',
rows : 'Lerroak',
columns : 'Zutabeak',
border : 'Ertzaren Zabalera',
widthPx : 'pixel',
widthPc : 'ehuneko',
widthUnit : 'width unit', // MISSING
cellSpace : 'Gelaxka arteko tartea',
cellPad : 'Gelaxken betegarria',
caption : 'Epigrafea',
summary : 'Laburpena',
headers : 'Goiburuak',
headersNone : 'Bat ere ez',
headersColumn : 'Lehen zutabea',
headersRow : 'Lehen lerroa',
headersBoth : 'Biak',
invalidRows : 'Lerro kopurua 0 baino handiagoa den zenbakia izan behar da.',
invalidCols : 'Zutabe kopurua 0 baino handiagoa den zenbakia izan behar da.',
invalidBorder : 'Ertzaren tamaina zenbaki bat izan behar da.',
invalidWidth : 'Taularen zabalera zenbaki bat izan behar da.',
invalidHeight : 'Taularen altuera zenbaki bat izan behar da.',
invalidCellSpacing : 'Gelaxka arteko tartea zenbaki bat izan behar da.',
invalidCellPadding : 'Gelaxken betegarria zenbaki bat izan behar da.',
cell :
{
menu : 'Gelaxka',
insertBefore : 'Txertatu Gelaxka Aurretik',
insertAfter : 'Txertatu Gelaxka Ostean',
deleteCell : 'Kendu Gelaxkak',
merge : 'Batu Gelaxkak',
mergeRight : 'Elkartu Eskumara',
mergeDown : 'Elkartu Behera',
splitHorizontal : 'Banatu Gelaxkak Horizontalki',
splitVertical : 'Banatu Gelaxkak Bertikalki',
title : 'Gelaxken Ezaugarriak',
cellType : 'Gelaxka Mota',
rowSpan : 'Hedatutako Lerroak',
colSpan : 'Hedatutako Zutabeak',
wordWrap : 'Itzulbira',
hAlign : 'Lerrokatze Horizontala',
vAlign : 'Lerrokatze Bertikala',
alignBaseline : 'Oinarri-lerroan',
bgColor : 'Fondoaren Kolorea',
borderColor : 'Ertzaren Kolorea',
data : 'Data',
header : 'Goiburua',
yes : 'Bai',
no : 'Ez',
invalidWidth : 'Gelaxkaren zabalera zenbaki bat izan behar da.',
invalidHeight : 'Gelaxkaren altuera zenbaki bat izan behar da.',
invalidRowSpan : 'Lerroen hedapena zenbaki osoa izan behar da.',
invalidColSpan : 'Zutabeen hedapena zenbaki osoa izan behar da.',
chooseColor : 'Choose' // MISSING
},
row :
{
menu : 'Lerroa',
insertBefore : 'Txertatu Lerroa Aurretik',
insertAfter : 'Txertatu Lerroa Ostean',
deleteRow : 'Ezabatu Lerroak'
},
column :
{
menu : 'Zutabea',
insertBefore : 'Txertatu Zutabea Aurretik',
insertAfter : 'Txertatu Zutabea Ostean',
deleteColumn : 'Ezabatu Zutabeak'
}
},
// Button Dialog.
button :
{
title : 'Botoiaren Ezaugarriak',
text : 'Testua (Balorea)',
type : 'Mota',
typeBtn : 'Botoia',
typeSbm : 'Bidali',
typeRst : 'Garbitu'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Kontrol-laukiko Ezaugarriak',
radioTitle : 'Aukera-botoiaren Ezaugarriak',
value : 'Balorea',
selected : 'Hautatuta'
},
// Form Dialog.
form :
{
title : 'Formularioaren Ezaugarriak',
menu : 'Formularioaren Ezaugarriak',
action : 'Ekintza',
method : 'Metodoa',
encoding : 'Kodeketa'
},
// Select Field Dialog.
select :
{
title : 'Hautespen Eremuaren Ezaugarriak',
selectInfo : 'Informazioa',
opAvail : 'Aukera Eskuragarriak',
value : 'Balorea',
size : 'Tamaina',
lines : 'lerro kopurura',
chkMulti : 'Hautaketa anitzak baimendu',
opText : 'Testua',
opValue : 'Balorea',
btnAdd : 'Gehitu',
btnModify : 'Aldatu',
btnUp : 'Gora',
btnDown : 'Behera',
btnSetValue : 'Aukeratutako balorea ezarri',
btnDelete : 'Ezabatu'
},
// Textarea Dialog.
textarea :
{
title : 'Testu-arearen Ezaugarriak',
cols : 'Zutabeak',
rows : 'Lerroak'
},
// Text Field Dialog.
textfield :
{
title : 'Testu Eremuaren Ezaugarriak',
name : 'Izena',
value : 'Balorea',
charWidth : 'Zabalera',
maxChars : 'Zenbat karaktere gehienez',
type : 'Mota',
typeText : 'Testua',
typePass : 'Pasahitza'
},
// Hidden Field Dialog.
hidden :
{
title : 'Ezkutuko Eremuaren Ezaugarriak',
name : 'Izena',
value : 'Balorea'
},
// Image Dialog.
image :
{
title : 'Irudi Ezaugarriak',
titleButton : 'Irudi Botoiaren Ezaugarriak',
menu : 'Irudi Ezaugarriak',
infoTab : 'Irudi informazioa',
btnUpload : 'Zerbitzarira bidalia',
upload : 'Gora Kargatu',
alt : 'Ordezko Testua',
lockRatio : 'Erlazioa Blokeatu',
resetSize : 'Tamaina Berrezarri',
border : 'Ertza',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Mesedez Irudiaren URLa idatzi',
linkTab : 'Esteka',
button2Img : 'Aukeratutako irudi botoia, irudi normal batean eraldatu nahi duzu?',
img2Button : 'Aukeratutako irudia, irudi botoi batean eraldatu nahi duzu?',
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 : 'Flasharen Ezaugarriak',
propertiesTab : 'Ezaugarriak',
title : 'Flasharen Ezaugarriak',
chkPlay : 'Automatikoki Erreproduzitu',
chkLoop : 'Begizta',
chkMenu : 'Flasharen Menua Gaitu',
chkFull : 'Onartu Pantaila osoa',
scale : 'Eskalatu',
scaleAll : 'Dena erakutsi',
scaleNoBorder : 'Ertzik gabe',
scaleFit : 'Doitu',
access : 'Scriptak baimendu',
accessAlways : 'Beti',
accessSameDomain: 'Domeinu berdinekoak',
accessNever : 'Inoiz ere ez',
alignAbsBottom : 'Abs Behean',
alignAbsMiddle : 'Abs Erdian',
alignBaseline : 'Oinan',
alignTextTop : 'Testua Goian',
quality : 'Kalitatea',
qualityBest : 'Hoberena',
qualityHigh : 'Altua',
qualityAutoHigh : 'Auto Altua',
qualityMedium : 'Ertaina',
qualityAutoLow : 'Auto Baxua',
qualityLow : 'Baxua',
windowModeWindow: 'Leihoa',
windowModeOpaque: 'Opakoa',
windowModeTransparent : 'Gardena',
windowMode : 'Leihoaren modua',
flashvars : 'Flash Aldagaiak',
bgcolor : 'Atzeko kolorea',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Mesedez URL esteka idatzi',
validateHSpace : 'HSpace zenbaki bat izan behar da.',
validateVSpace : 'VSpace zenbaki bat izan behar da.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Ortografia',
title : 'Ortografia zuzenketa',
notAvailable : 'Barkatu baina momentu honetan zerbitzua ez dago erabilgarri.',
errorLoading : 'Errorea gertatu da aplikazioa zerbitzaritik kargatzean: %s.',
notInDic : 'Ez dago hiztegian',
changeTo : 'Honekin ordezkatu',
btnIgnore : 'Ezikusi',
btnIgnoreAll : 'Denak Ezikusi',
btnReplace : 'Ordezkatu',
btnReplaceAll : 'Denak Ordezkatu',
btnUndo : 'Desegin',
noSuggestions : '- Iradokizunik ez -',
progress : 'Zuzenketa ortografikoa martxan...',
noMispell : 'Zuzenketa ortografikoa bukatuta: Akatsik ez',
noChanges : 'Zuzenketa ortografikoa bukatuta: Ez da ezer aldatu',
oneChange : 'Zuzenketa ortografikoa bukatuta: Hitz bat aldatu da',
manyChanges : 'Zuzenketa ortografikoa bukatuta: %1 hitz aldatu dira',
ieSpellDownload : 'Zuzentzaile ortografikoa ez dago instalatuta. Deskargatu nahi duzu?'
},
smiley :
{
toolbar : 'Aurpegierak',
title : 'Aurpegiera Sartu',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 elementua'
},
numberedlist : 'Zenbakidun Zerrenda',
bulletedlist : 'Buletdun Zerrenda',
indent : 'Handitu Koska',
outdent : 'Txikitu Koska',
justify :
{
left : 'Lerrokatu Ezkerrean',
center : 'Lerrokatu Erdian',
right : 'Lerrokatu Eskuman',
block : 'Justifikatu'
},
blockquote : 'Aipamen blokea',
clipboard :
{
title : 'Itsatsi',
cutError : 'Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki moztea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+X).',
copyError : 'Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki kopiatzea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+C).',
pasteMsg : 'Mesedez teklatua erabilita (<STRONG>Ctrl/Cmd+V</STRONG>) ondorego eremuan testua itsatsi eta <STRONG>OK</STRONG> sakatu.',
securityMsg : 'Nabigatzailearen segurtasun ezarpenak direla eta, editoreak ezin du arbela zuzenean erabili. Leiho honetan berriro itsatsi behar duzu.',
pasteArea : 'Paste Area' // MISSING
},
pastefromword :
{
confirmCleanup : 'Itsatsi nahi duzun testua Wordetik hartua dela dirudi. Itsatsi baino lehen garbitu nahi duzu?',
toolbar : 'Itsatsi Word-etik',
title : 'Itsatsi Word-etik',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Testu Arrunta bezala Itsatsi',
title : 'Testu Arrunta bezala Itsatsi'
},
templates :
{
button : 'Txantiloiak',
title : 'Eduki Txantiloiak',
options : 'Template Options', // MISSING
insertOption : 'Ordeztu oraingo edukiak',
selectPromptMsg : 'Mesedez txantiloia aukeratu editorean kargatzeko<br>(orain dauden edukiak galduko dira):',
emptyListMsg : '(Ez dago definitutako txantiloirik)'
},
showBlocks : 'Blokeak erakutsi',
stylesCombo :
{
label : 'Estiloa',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Bloke Estiloak',
panelTitle2 : 'Inline Estiloak',
panelTitle3 : 'Objektu Estiloak'
},
format :
{
label : 'Formatua',
panelTitle : 'Formatua',
tag_p : 'Arrunta',
tag_pre : 'Formateatua',
tag_address : 'Helbidea',
tag_h1 : 'Izenburua 1',
tag_h2 : 'Izenburua 2',
tag_h3 : 'Izenburua 3',
tag_h4 : 'Izenburua 4',
tag_h5 : 'Izenburua 5',
tag_h6 : 'Izenburua 6',
tag_div : 'Paragrafoa (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 : 'Letra-tipoa',
voiceLabel : 'Letra-tipoa',
panelTitle : 'Letra-tipoa'
},
fontSize :
{
label : 'Tamaina',
voiceLabel : 'Tamaina',
panelTitle : 'Tamaina'
},
colorButton :
{
textColorTitle : 'Testu Kolorea',
bgColorTitle : 'Atzeko kolorea',
panelTitle : 'Colors', // MISSING
auto : 'Automatikoa',
more : 'Kolore gehiago...'
},
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 : 'Ortografia Zuzenketa Idatzi Ahala (SCAYT)',
opera_title : 'Not supported by Opera', // MISSING
enable : 'Gaitu SCAYT',
disable : 'Desgaitu SCAYT',
about : 'SCAYTi buruz',
toggle : 'SCAYT aldatu',
options : 'Aukerak',
langs : 'Hizkuntzak',
moreSuggestions : 'Iradokizun gehiago',
ignore : 'Baztertu',
ignoreAll : 'Denak baztertu',
addWord : 'Hitza Gehitu',
emptyDic : 'Hiztegiaren izena ezin da hutsik egon.',
optionsTab : 'Aukerak',
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 : 'Hizkuntzak',
dictionariesTab : 'Hiztegiak',
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 : 'Honi buruz'
},
about :
{
title : 'CKEditor(r)i buruz',
dlgTitle : 'CKEditor(r)i buruz',
help : 'Check $1 for help.', // MISSING
userGuide : 'CKEditor User\'s Guide', // MISSING
moreInfo : 'Lizentziari buruzko informazioa gure webgunean:',
copy : 'Copyright © $1. Eskubide guztiak erreserbaturik.'
},
maximize : 'Maximizatu',
minimize : 'Minimize', // MISSING
fakeobjects :
{
anchor : 'Aingura',
flash : 'Flash Animazioa',
iframe : 'IFrame', // MISSING
hiddenfield : 'Hidden Field', // MISSING
unknown : 'Objektu ezezaguna'
},
resize : 'Arrastatu tamaina aldatzeko',
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 : 'Dokumentuaren Ezarpenak',
title : 'Dokumentuaren Ezarpenak',
design : 'Design', // MISSING
meta : 'Meta Informazioa',
chooseColor : 'Choose', // MISSING
other : '<other>',
docTitle : 'Orriaren Izenburua',
charset : 'Karaktere Multzoaren Kodeketa',
charsetOther : 'Beste Karaktere Multzoko Kodeketa',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Erdialdeko Europakoa',
charsetCT : 'Txinatar Tradizionala (Big5)',
charsetCR : 'Zirilikoa',
charsetGR : 'Grekoa',
charsetJP : 'Japoniarra',
charsetKR : 'Korearra',
charsetTR : 'Turkiarra',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Mendebaldeko Europakoa',
docType : 'Document Type Goiburua',
docTypeOther : 'Beste Document Type Goiburua',
xhtmlDec : 'XHTML Ezarpenak',
bgColor : 'Atzeko Kolorea',
bgImage : 'Atzeko Irudiaren URL-a',
bgFixed : 'Korritze gabeko Atzealdea',
txtColor : 'Testu Kolorea',
margin : 'Orrialdearen marjinak',
marginTop : 'Goian',
marginLeft : 'Ezkerrean',
marginRight : 'Eskuman',
marginBottom : 'Behean',
metaKeywords : 'Dokumentuaren Gako-hitzak (komarekin bananduta)',
metaDescription : 'Dokumentuaren Deskribapena',
metaAuthor : 'Egilea',
metaCopyright : 'Copyright', // MISSING
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/eu.js | eu.js |
/*
Copyright (c) 2003-2011, 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
* Latvian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['lv'] =
{
/**
* 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 kods',
newPage : 'Jauna lapa',
save : 'Saglabāt',
preview : 'Pārskatīt',
cut : 'Izgriezt',
copy : 'Kopēt',
paste : 'Ievietot',
print : 'Drukāt',
underline : 'Apakšsvītra',
bold : 'Treknu šriftu',
italic : 'Slīprakstā',
selectAll : 'Iezīmēt visu',
removeFormat : 'Noņemt stilus',
strike : 'Pārsvītrots',
subscript : 'Zemrakstā',
superscript : 'Augšrakstā',
horizontalrule : 'Ievietot horizontālu Atdalītājsvītru',
pagebreak : 'Ievietot lapas pārtraukumu',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Noņemt hipersaiti',
undo : 'Atcelt',
redo : 'Atkārtot',
// Common messages and labels.
common :
{
browseServer : 'Skatīt servera saturu',
url : 'URL',
protocol : 'Protokols',
upload : 'Augšupielādēt',
uploadSubmit : 'Nosūtīt serverim',
image : 'Attēls',
flash : 'Flash',
form : 'Forma',
checkbox : 'Atzīmēšanas kastīte',
radio : 'Izvēles poga',
textField : 'Teksta rinda',
textarea : 'Teksta laukums',
hiddenField : 'Paslēpta teksta rinda',
button : 'Poga',
select : 'Iezīmēšanas lauks',
imageButton : 'Attēlpoga',
notSet : '<nav iestatīts>',
id : 'Id',
name : 'Nosaukums',
langDir : 'Valodas lasīšanas virziens',
langDirLtr : 'No kreisās uz labo (LTR)',
langDirRtl : 'No labās uz kreiso (RTL)',
langCode : 'Valodas kods',
longDescr : 'Gara apraksta Hipersaite',
cssClass : 'Stilu saraksta klases',
advisoryTitle : 'Konsultatīvs virsraksts',
cssStyle : 'Stils',
ok : 'Darīts!',
cancel : 'Atcelt',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'General', // MISSING
advancedTab : 'Izvērstais',
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 : 'Platums',
height : 'Augstums',
align : 'Nolīdzināt',
alignLeft : 'Pa kreisi',
alignRight : 'Pa labi',
alignCenter : 'Centrēti',
alignTop : 'Augšā',
alignMiddle : 'Vertikāli centrēts',
alignBottom : 'Apakšā',
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 : 'Ievietot speciālo simbolu',
title : 'Ievietot īpašu simbolu',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Ievietot/Labot hipersaiti',
other : '<cits>',
menu : 'Labot hipersaiti',
title : 'Hipersaite',
info : 'Hipersaites informācija',
target : 'Mērķis',
upload : 'Augšupielādēt',
advanced : 'Izvērstais',
type : 'Hipersaites tips',
toUrl : 'URL', // MISSING
toAnchor : 'Iezīme šajā lapā',
toEmail : 'E-pasts',
targetFrame : '<ietvars>',
targetPopup : '<uznirstošā logā>',
targetFrameName : 'Mērķa ietvara nosaukums',
targetPopupName : 'Uznirstošā loga nosaukums',
popupFeatures : 'Uznirstošā loga nosaukums īpašības',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Statusa josla',
popupLocationBar: 'Atrašanās vietas josla',
popupToolbar : 'Rīku josla',
popupMenuBar : 'Izvēlnes josla',
popupFullScreen : 'Pilnā ekrānā (IE)',
popupScrollBars : 'Ritjoslas',
popupDependent : 'Atkarīgs (Netscape)',
popupLeft : 'Kreisā koordināte',
popupTop : 'Augšējā koordināte',
id : 'Id', // MISSING
langDir : 'Valodas lasīšanas virziens',
langDirLTR : 'No kreisās uz labo (LTR)',
langDirRTL : 'No labās uz kreiso (RTL)',
acccessKey : 'Pieejas kods',
name : 'Nosaukums',
langCode : 'Valodas lasīšanas virziens',
tabIndex : 'Ciļņu indekss',
advisoryTitle : 'Konsultatīvs virsraksts',
advisoryContentType : 'Konsultatīvs satura tips',
cssClasses : 'Stilu saraksta klases',
charset : 'Pievienotā resursa kodu tabula',
styles : 'Stils',
rel : 'Relationship', // MISSING
selectAnchor : 'Izvēlēties iezīmi',
anchorName : 'Pēc iezīmes nosaukuma',
anchorId : 'Pēc elementa ID',
emailAddress : 'E-pasta adrese',
emailSubject : 'Ziņas tēma',
emailBody : 'Ziņas saturs',
noAnchors : '(Šajā dokumentā nav iezīmju)',
noUrl : 'Lūdzu norādi hipersaiti',
noEmail : 'Lūdzu norādi e-pasta adresi'
},
// Anchor dialog
anchor :
{
toolbar : 'Ievietot/Labot iezīmi',
menu : 'Iezīmes īpašības',
title : 'Iezīmes īpašības',
name : 'Iezīmes nosaukums',
errorName : 'Lūdzu norādiet iezīmes nosaukumu',
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 : 'Meklēt',
replace : 'Nomainīt',
findWhat : 'Meklēt:',
replaceWith : 'Nomainīt uz:',
notFoundMsg : 'Norādītā frāze netika atrasta.',
findOptions : 'Find Options', // MISSING
matchCase : 'Reģistrjūtīgs',
matchWord : 'Jāsakrīt pilnībā',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Aizvietot visu',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Tabula',
title : 'Tabulas īpašības',
menu : 'Tabulas īpašības',
deleteTable : 'Dzēst tabulu',
rows : 'Rindas',
columns : 'Kolonnas',
border : 'Rāmja izmērs',
widthPx : 'pikseļos',
widthPc : 'procentuāli',
widthUnit : 'width unit', // MISSING
cellSpace : 'Rūtiņu atstatums',
cellPad : 'Rūtiņu nobīde',
caption : 'Leģenda',
summary : 'Anotācija',
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 : 'Šūna',
insertBefore : 'Insert Cell Before', // MISSING
insertAfter : 'Insert Cell After', // MISSING
deleteCell : 'Dzēst rūtiņas',
merge : 'Apvienot rūtiņas',
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 : 'Rinda',
insertBefore : 'Insert Row Before', // MISSING
insertAfter : 'Insert Row After', // MISSING
deleteRow : 'Dzēst rindas'
},
column :
{
menu : 'Kolonna',
insertBefore : 'Insert Column Before', // MISSING
insertAfter : 'Insert Column After', // MISSING
deleteColumn : 'Dzēst kolonnas'
}
},
// Button Dialog.
button :
{
title : 'Pogas īpašības',
text : 'Teksts (vērtība)',
type : 'Tips',
typeBtn : 'Button', // MISSING
typeSbm : 'Submit', // MISSING
typeRst : 'Reset' // MISSING
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Atzīmēšanas kastītes īpašības',
radioTitle : 'Izvēles poga īpašības',
value : 'Vērtība',
selected : 'Iezīmēts'
},
// Form Dialog.
form :
{
title : 'Formas īpašības',
menu : 'Formas īpašības',
action : 'Darbība',
method : 'Metode',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'Iezīmēšanas lauka īpašības',
selectInfo : 'Informācija',
opAvail : 'Pieejamās iespējas',
value : 'Vērtība',
size : 'Izmērs',
lines : 'rindas',
chkMulti : 'Atļaut vairākus iezīmējumus',
opText : 'Teksts',
opValue : 'Vērtība',
btnAdd : 'Pievienot',
btnModify : 'Veikt izmaiņas',
btnUp : 'Augšup',
btnDown : 'Lejup',
btnSetValue : 'Noteikt kā iezīmēto vērtību',
btnDelete : 'Dzēst'
},
// Textarea Dialog.
textarea :
{
title : 'Teksta laukuma īpašības',
cols : 'Kolonnas',
rows : 'Rindas'
},
// Text Field Dialog.
textfield :
{
title : 'Teksta rindas īpašības',
name : 'Nosaukums',
value : 'Vērtība',
charWidth : 'Simbolu platums',
maxChars : 'Simbolu maksimālais daudzums',
type : 'Tips',
typeText : 'Teksts',
typePass : 'Parole'
},
// Hidden Field Dialog.
hidden :
{
title : 'Paslēptās teksta rindas īpašības',
name : 'Nosaukums',
value : 'Vērtība'
},
// Image Dialog.
image :
{
title : 'Attēla īpašības',
titleButton : 'Attēlpogas īpašības',
menu : 'Attēla īpašības',
infoTab : 'Informācija par attēlu',
btnUpload : 'Nosūtīt serverim',
upload : 'Augšupielādēt',
alt : 'Alternatīvais teksts',
lockRatio : 'Nemainīga Augstuma/Platuma attiecība',
resetSize : 'Atjaunot sākotnējo izmēru',
border : 'Rāmis',
hSpace : 'Horizontālā telpa',
vSpace : 'Vertikālā telpa',
alertUrl : 'Lūdzu norādīt attēla hipersaiti',
linkTab : 'Hipersaite',
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 īpašības',
propertiesTab : 'Properties', // MISSING
title : 'Flash īpašības',
chkPlay : 'Automātiska atskaņošana',
chkLoop : 'Nepārtraukti',
chkMenu : 'Atļaut Flash izvēlni',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Mainīt izmēru',
scaleAll : 'Rādīt visu',
scaleNoBorder : 'Bez rāmja',
scaleFit : 'Precīzs izmērs',
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Absolūti apakšā',
alignAbsMiddle : 'Absolūti vertikāli centrēts',
alignBaseline : 'Pamatrindā',
alignTextTop : 'Teksta augšā',
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 : 'Fona krāsa',
hSpace : 'Horizontālā telpa',
vSpace : 'Vertikālā telpa',
validateSrc : 'Lūdzu norādi hipersaiti',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Pareizrakstības pārbaude',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Netika atrasts vārdnīcā',
changeTo : 'Nomainīt uz',
btnIgnore : 'Ignorēt',
btnIgnoreAll : 'Ignorēt visu',
btnReplace : 'Aizvietot',
btnReplaceAll : 'Aizvietot visu',
btnUndo : 'Atcelt',
noSuggestions : '- Nav ieteikumu -',
progress : 'Notiek pareizrakstības pārbaude...',
noMispell : 'Pareizrakstības pārbaude pabeigta: kļūdas netika atrastas',
noChanges : 'Pareizrakstības pārbaude pabeigta: nekas netika labots',
oneChange : 'Pareizrakstības pārbaude pabeigta: 1 vārds izmainīts',
manyChanges : 'Pareizrakstības pārbaude pabeigta: %1 vārdi tika mainīti',
ieSpellDownload : 'Pareizrakstības pārbaudītājs nav pievienots. Vai vēlaties to lejupielādēt tagad?'
},
smiley :
{
toolbar : 'Smaidiņi',
title : 'Ievietot smaidiņu',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Numurēts saraksts',
bulletedlist : 'Izcelts saraksts',
indent : 'Palielināt atkāpi',
outdent : 'Samazināt atkāpi',
justify :
{
left : 'Izlīdzināt pa kreisi',
center : 'Izlīdzināt pret centru',
right : 'Izlīdzināt pa labi',
block : 'Izlīdzināt malas'
},
blockquote : 'Block Quote', // MISSING
clipboard :
{
title : 'Ievietot',
cutError : 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj editoram automātiski veikt izgriešanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+X, lai veiktu šo darbību.',
copyError : 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj editoram automātiski veikt kopēšanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+C), lai veiktu šo darbību.',
pasteMsg : 'Lūdzu, ievietojiet tekstu šajā laukumā, izmantojot klaviatūru (<STRONG>Ctrl/Cmd+V</STRONG>) un apstipriniet ar <STRONG>Darīts!</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 : 'Ievietot no Worda',
title : 'Ievietot no Worda',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Ievietot kā vienkāršu tekstu',
title : 'Ievietot kā vienkāršu tekstu'
},
templates :
{
button : 'Sagataves',
title : 'Satura sagataves',
options : 'Template Options', // MISSING
insertOption : 'Replace actual contents', // MISSING
selectPromptMsg : 'Lūdzu, norādiet sagatavi, ko atvērt editorā<br>(patreizējie dati tiks zaudēti):',
emptyListMsg : '(Nav norādītas sagataves)'
},
showBlocks : 'Show Blocks', // MISSING
stylesCombo :
{
label : 'Stils',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'Formāts',
panelTitle : 'Formāts',
tag_p : 'Normāls teksts',
tag_pre : 'Formatēts teksts',
tag_address : 'Adrese',
tag_h1 : 'Virsraksts 1',
tag_h2 : 'Virsraksts 2',
tag_h3 : 'Virsraksts 3',
tag_h4 : 'Virsraksts 4',
tag_h5 : 'Virsraksts 5',
tag_h6 : 'Virsraksts 6',
tag_div : 'Rindkopa (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 : 'Šrifts',
voiceLabel : 'Font', // MISSING
panelTitle : 'Šrifts'
},
fontSize :
{
label : 'Izmērs',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Izmērs'
},
colorButton :
{
textColorTitle : 'Teksta krāsa',
bgColorTitle : 'Fona krāsa',
panelTitle : 'Colors', // MISSING
auto : 'Automātiska',
more : 'Plašāka palete...'
},
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 : 'Dokumenta īpašības',
title : 'Dokumenta īpašības',
design : 'Design', // MISSING
meta : 'META dati',
chooseColor : 'Choose', // MISSING
other : '<cits>',
docTitle : 'Dokumenta virsraksts <Title>',
charset : 'Simbolu kodējums',
charsetOther : 'Cits simbolu kodējums',
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 : 'Dokumenta tips',
docTypeOther : 'Cits dokumenta tips',
xhtmlDec : 'Ietvert XHTML deklarācijas',
bgColor : 'Fona krāsa',
bgImage : 'Fona attēla hipersaite',
bgFixed : 'Fona attēls ir fiksēts',
txtColor : 'Teksta krāsa',
margin : 'Lapas robežas',
marginTop : 'Augšā',
marginLeft : 'Pa kreisi',
marginRight : 'Pa labi',
marginBottom : 'Apakšā',
metaKeywords : 'Dokumentu aprakstoši atslēgvārdi (atdalīti ar komatu)',
metaDescription : 'Dokumenta apraksts',
metaAuthor : 'Autors',
metaCopyright : 'Autortiesības',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/lv.js | lv.js |
/*
Copyright (c) 2003-2011, 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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/en.js | en.js |
/*
Copyright (c) 2003-2011, 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
* Slovak language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['sk'] =
{
/**
* 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, stlačte ALT 0 pre nápovedu.',
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
editor : 'Rich Text Editor', // MISSING
// Toolbar buttons without dialogs.
source : 'Zdroj',
newPage : 'Nová stránka',
save : 'Uložiť',
preview : 'Náhľad',
cut : 'Vystrihnúť',
copy : 'Kopírovať',
paste : 'Vložiť',
print : 'Tlač',
underline : 'Podčiarknuté',
bold : 'Tučné',
italic : 'Kurzíva',
selectAll : 'Vybrať všetko',
removeFormat : 'Odstrániť formátovanie',
strike : 'Prečiarknuté',
subscript : 'Dolný index',
superscript : 'Horný index',
horizontalrule : 'Vložiť vodorovnú čiaru',
pagebreak : 'Vložiť oddeľovač stránky',
pagebreakAlt : 'Zalomenie strany',
unlink : 'Odstrániť odkaz',
undo : 'Späť',
redo : 'Znovu',
// Common messages and labels.
common :
{
browseServer : 'Prechádzať server',
url : 'URL',
protocol : 'Protokol',
upload : 'Odoslať',
uploadSubmit : 'Odoslať na server',
image : 'Obrázok',
flash : 'Flash',
form : 'Formulár',
checkbox : 'Zaškrtávacie políčko',
radio : 'Prepínač',
textField : 'Textové pole',
textarea : 'Textová oblasť',
hiddenField : 'Skryté pole',
button : 'Tlačidlo',
select : 'Rozbaľovací zoznam',
imageButton : 'Obrázkové tlačidlo',
notSet : '<nenastavené>',
id : 'Id',
name : 'Meno',
langDir : 'Orientácia jazyka',
langDirLtr : 'Zľava doprava (LTR)',
langDirRtl : 'Sprava doľava (RTL)',
langCode : 'Kód jazyka',
longDescr : 'Dlhý popis URL',
cssClass : 'Trieda štýlu',
advisoryTitle : 'Pomocný titulok',
cssStyle : 'Štýl',
ok : 'OK',
cancel : 'Zrušiť',
close : 'Zatvorit',
preview : 'Náhľad',
generalTab : 'Hlavné',
advancedTab : 'Rozšírené',
validateNumberFailed : 'Hodnota nieje číslo.',
confirmNewPage : 'Prajete si načítat novú stránku? Všetky neuložené zmeny budú stratené. ',
confirmCancel : 'Niektore možnosti boli zmenené. Naozaj chcete zavrieť okno?',
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 : 'Šírka',
height : 'Výška',
align : 'Zarovnanie',
alignLeft : 'Vľavo',
alignRight : 'Vpravo',
alignCenter : 'Na stred',
alignTop : 'Nahor',
alignMiddle : 'Na stred',
alignBottom : 'Dole',
invalidHeight : 'Výška musí byť číslo.',
invalidWidth : 'Šírka musí byť číslo.',
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 : 'Vložiť špeciálne znaky',
title : 'Výber špeciálneho znaku',
options : 'Možnosti špecíalneho znaku'
},
// Link dialog.
link :
{
toolbar : 'Vložiť/zmeniť odkaz',
other : '<iný>',
menu : 'Zmeniť odkaz',
title : 'Odkaz',
info : 'Informácie o odkaze',
target : 'Cieľ',
upload : 'Odoslať',
advanced : 'Rozšírené',
type : 'Typ odkazu',
toUrl : 'URL', // MISSING
toAnchor : 'Kotva v tejto stránke',
toEmail : 'E-Mail',
targetFrame : '<rámec>',
targetPopup : '<vyskakovacie okno>',
targetFrameName : 'Meno rámu cieľa',
targetPopupName : 'Názov vyskakovacieho okna',
popupFeatures : 'Vlastnosti vyskakovacieho okna',
popupResizable : 'Meniteľná veľkosť',
popupStatusBar : 'Stavový riadok',
popupLocationBar: 'Panel umiestnenia',
popupToolbar : 'Panel nástrojov',
popupMenuBar : 'Panel ponuky',
popupFullScreen : 'Celá obrazovka (IE)',
popupScrollBars : 'Posuvníky',
popupDependent : 'Závislosť (Netscape)',
popupLeft : 'Ľavý okraj',
popupTop : 'Horný okraj',
id : 'Id', // MISSING
langDir : 'Orientácia jazyka',
langDirLTR : 'Zľava doprava (LTR)',
langDirRTL : 'Sprava doľava (RTL)',
acccessKey : 'Prístupový kľúč',
name : 'Meno',
langCode : 'Orientácia jazyka',
tabIndex : 'Poradie prvku',
advisoryTitle : 'Pomocný titulok',
advisoryContentType : 'Pomocný typ obsahu',
cssClasses : 'Trieda štýlu',
charset : 'Priradená znaková sada',
styles : 'Štýl',
rel : 'Relationship', // MISSING
selectAnchor : 'Vybrať kotvu',
anchorName : 'Podľa mena kotvy',
anchorId : 'Podľa Id objektu',
emailAddress : 'E-Mailová adresa',
emailSubject : 'Predmet správy',
emailBody : 'Telo správy',
noAnchors : '(V stránke nie je definovaná žiadna kotva)',
noUrl : 'Zadajte prosím URL odkazu',
noEmail : 'Zadajte prosím e-mailovú adresu'
},
// Anchor dialog
anchor :
{
toolbar : 'Vložiť/zmeniť kotvu',
menu : 'Vlastnosti kotvy',
title : 'Vlastnosti kotvy',
name : 'Meno kotvy',
errorName : 'Zadajte prosím meno kotvy',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'Vlastnosti číselného zoznamu',
bulletedTitle : 'Bulleted List Properties', // MISSING
type : 'Druh',
start : 'Začiatok',
validateStartNumber :'Začiatočné číslo číselného zoznamu musí byť celé číslo.',
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 : 'Nájsť a nahradiť',
find : 'Hľadať',
replace : 'Nahradiť',
findWhat : 'Čo hľadať:',
replaceWith : 'Čím nahradiť:',
notFoundMsg : 'Hľadaný text nebol nájdený.',
findOptions : 'Find Options', // MISSING
matchCase : 'Rozlišovať malé/veľké písmená',
matchWord : 'Len celé slová',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Nahradiť všetko',
replaceSuccessMsg : '%1 výskyt(ov) nahradených.'
},
// Table Dialog
table :
{
toolbar : 'Tabuľka',
title : 'Vlastnosti tabuľky',
menu : 'Vlastnosti tabuľky',
deleteTable : 'Vymazať tabuľku',
rows : 'Riadky',
columns : 'Stĺpce',
border : 'Ohraničenie',
widthPx : 'pixelov',
widthPc : 'percent',
widthUnit : 'width unit', // MISSING
cellSpace : 'Vzdialenosť buniek',
cellPad : 'Odsadenie obsahu',
caption : 'Popis',
summary : 'Prehľad',
headers : 'Hlavička',
headersNone : 'Žiadne',
headersColumn : 'Prvý stĺpec',
headersRow : 'Prvý riadok',
headersBoth : 'Obe',
invalidRows : 'Počet riadkov musí byť číslo väčšie ako 0.',
invalidCols : 'Počet stĺpcov musí byť číslo väčšie ako 0.',
invalidBorder : 'Širka rámu musí byť celé číslo.',
invalidWidth : 'Širka tabuľky musí byť číslo.',
invalidHeight : 'Výška tabuľky musí byť číslo.',
invalidCellSpacing : 'Medzera mädzi bunkami (spacing) musí byť číslo.',
invalidCellPadding : 'Odsadenie v bunkách (padding) musí byť číslo.',
cell :
{
menu : 'Bunka',
insertBefore : 'Vložiť bunku pred',
insertAfter : 'Vložiť bunku za',
deleteCell : 'Vymazať bunky',
merge : 'Zlúčiť bunky',
mergeRight : 'Zlúčiť doprava',
mergeDown : 'Zlúčiť dole',
splitHorizontal : 'Rozdeliť bunky horizontálne',
splitVertical : 'Rozdeliť bunky vertikálne',
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 : 'Riadok',
insertBefore : 'Vložiť riadok za',
insertAfter : 'Vložiť riadok pred',
deleteRow : 'Vymazať riadok'
},
column :
{
menu : 'Stĺpec',
insertBefore : 'Vložiť stĺpec za',
insertAfter : 'Vložiť stĺpec pred',
deleteColumn : 'Zmazať stĺpec'
}
},
// Button Dialog.
button :
{
title : 'Vlastnosti tlačidla',
text : 'Text',
type : 'Typ',
typeBtn : 'Tlačidlo',
typeSbm : 'Odoslať',
typeRst : 'Vymazať'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Vlastnosti zaškrtávacieho políčka',
radioTitle : 'Vlastnosti prepínača',
value : 'Hodnota',
selected : 'Vybrané'
},
// Form Dialog.
form :
{
title : 'Vlastnosti formulára',
menu : 'Vlastnosti formulára',
action : 'Akcie',
method : 'Metóda',
encoding : 'Kódovanie'
},
// Select Field Dialog.
select :
{
title : 'Vlastnosti rozbaľovacieho zoznamu',
selectInfo : 'Info',
opAvail : 'Dostupné možnosti',
value : 'Hodnota',
size : 'Veľkosť',
lines : 'riadkov',
chkMulti : 'Povoliť viacnásobný výber',
opText : 'Text',
opValue : 'Hodnota',
btnAdd : 'Pridať',
btnModify : 'Zmeniť',
btnUp : 'Hore',
btnDown : 'Dole',
btnSetValue : 'Nastaviť ako vybranú hodnotu',
btnDelete : 'Zmazať'
},
// Textarea Dialog.
textarea :
{
title : 'Vlastnosti textovej oblasti',
cols : 'Stĺpce',
rows : 'Riadky'
},
// Text Field Dialog.
textfield :
{
title : 'Vlastnosti textového poľa',
name : 'Názov',
value : 'Hodnota',
charWidth : 'Šírka pola (znakov)',
maxChars : 'Maximálny počet znakov',
type : 'Typ',
typeText : 'Text',
typePass : 'Heslo'
},
// Hidden Field Dialog.
hidden :
{
title : 'Vlastnosti skrytého poľa',
name : 'Názov',
value : 'Hodnota'
},
// Image Dialog.
image :
{
title : 'Vlastnosti obrázku',
titleButton : 'Vlastnosti obrázkového tlačidla',
menu : 'Vlastnosti obrázku',
infoTab : 'Informácie o obrázku',
btnUpload : 'Odoslať na server',
upload : 'Odoslať',
alt : 'Alternatívny text',
lockRatio : 'Zámok',
resetSize : 'Pôvodná veľkosť',
border : 'Okraje',
hSpace : 'H-medzera',
vSpace : 'V-medzera',
alertUrl : 'Zadajte prosím URL obrázku',
linkTab : 'Odkaz',
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 : 'Vlastnosti Flashu',
propertiesTab : 'Properties', // MISSING
title : 'Vlastnosti Flashu',
chkPlay : 'Automatické prehrávanie',
chkLoop : 'Opakovanie',
chkMenu : 'Povoliť Flash Menu',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Mierka',
scaleAll : 'Zobraziť mierku',
scaleNoBorder : 'Bez okrajov',
scaleFit : 'Roztiahnuť na celé',
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Úplne dole',
alignAbsMiddle : 'Do stredu',
alignBaseline : 'Na základňu',
alignTextTop : 'Na horný okraj textu',
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 : 'Farba pozadia',
hSpace : 'H-medzera',
vSpace : 'V-medzera',
validateSrc : 'Zadajte prosím URL odkazu',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Kontrola pravopisu',
title : 'Spell Check', // MISSING
notAvailable : 'Služba práve nieje dostupná.',
errorLoading : 'Chyba pri načítaní slovníka z adresy: %s.',
notInDic : 'Nie je v slovníku',
changeTo : 'Zmeniť na',
btnIgnore : 'Ignorovať',
btnIgnoreAll : 'Ignorovať všetko',
btnReplace : 'Prepísat',
btnReplaceAll : 'Prepísat všetko',
btnUndo : 'Späť',
noSuggestions : '- Žiadny návrh -',
progress : 'Prebieha kontrola pravopisu...',
noMispell : 'Kontrola pravopisu dokončená: bez chýb',
noChanges : 'Kontrola pravopisu dokončená: žiadne slová nezmenené',
oneChange : 'Kontrola pravopisu dokončená: zmenené jedno slovo',
manyChanges : 'Kontrola pravopisu dokončená: zmenených %1 slov',
ieSpellDownload : 'Kontrola pravopisu nie je naištalovaná. Chcete ju hneď stiahnuť?'
},
smiley :
{
toolbar : 'Smajlíky',
title : 'Vkladanie smajlíkov',
options : 'Možnosti smajlíkov'
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Číslovanie',
bulletedlist : 'Odrážky',
indent : 'Zväčšiť odsadenie',
outdent : 'Zmenšiť odsadenie',
justify :
{
left : 'Zarovnať vľavo',
center : 'Zarovnať na stred',
right : 'Zarovnať vpravo',
block : 'Zarovnať do bloku'
},
blockquote : 'Citácia',
clipboard :
{
title : 'Vložiť',
cutError : 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru spustiť funkciu pre vystrihnutie zvoleného textu do schránky. Prosím vystrihnite zvolený text do schránky pomocou klávesnice (Ctrl/Cmd+X).',
copyError : 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru spustiť funkciu pre kopírovanie zvoleného textu do schránky. Prosím skopírujte zvolený text do schránky pomocou klávesnice (Ctrl/Cmd+C).',
pasteMsg : 'Prosím vložte nasledovný rámček použitím klávesnice (<STRONG>Ctrl/Cmd+V</STRONG>) a stlačte <STRONG>OK</STRONG>.',
securityMsg : 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru pristupovať priamo k datám v schránke. Musíte ich vložiť znovu do tohto okna.',
pasteArea : 'Vložiť pole'
},
pastefromword :
{
confirmCleanup : 'Vkladaný text vyzerá byť skopírovaný z Wordu. Chcete ho automaticky vyčistiť pred vkladaním?',
toolbar : 'Vložiť z Wordu',
title : 'Vložiť z Wordu',
error : 'Nastala chyba pri čistení údajov. Nie je možné vyčistiť vložené údaje.'
},
pasteText :
{
button : 'Vložiť ako čistý text',
title : 'Vložiť ako čistý text'
},
templates :
{
button : 'Šablóny',
title : 'Šablóny obsahu',
options : 'Vlastnosti šablóny',
insertOption : 'Nahradiť aktuálny obsah',
selectPromptMsg : 'Prosím vyberte šablóny na otvorenie v editore<br>(súšasný obsah bude stratený):',
emptyListMsg : '(žiadne šablóny nenájdené)'
},
showBlocks : 'Ukázať bloky',
stylesCombo :
{
label : 'Štýl',
panelTitle : 'Formatting Styles', // MISSING
panelTitle1 : 'Block Styles', // MISSING
panelTitle2 : 'Inline Styles', // MISSING
panelTitle3 : 'Object Styles' // MISSING
},
format :
{
label : 'Formát',
panelTitle : 'Formát',
tag_p : 'Normálny',
tag_pre : 'Formátovaný',
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 : 'Odsek (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 - vlastnosti',
toolbar : 'IFrame', // MISSING
noUrl : 'Vložte URL pre iframe',
scrolling : 'Povoliť skrolovanie',
border : 'Zobraziť orámovanie'
},
font :
{
label : 'Písmo',
voiceLabel : 'Font', // MISSING
panelTitle : 'Písmo'
},
fontSize :
{
label : 'Veľkosť',
voiceLabel : 'Veľkosť písma',
panelTitle : 'Veľkosť'
},
colorButton :
{
textColorTitle : 'Farba textu',
bgColorTitle : 'Farba pozadia',
panelTitle : 'Farby',
auto : 'Automaticky',
more : 'Viac farieb...'
},
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 : 'Maximalizovať',
minimize : 'Minimalizovať',
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 : 'Vlastnosti dokumentu',
title : 'Vlastnosti dokumentu',
design : 'Design', // MISSING
meta : 'Meta Data',
chooseColor : 'Choose', // MISSING
other : '<iný>',
docTitle : 'Titulok',
charset : 'Kódová stránka',
charsetOther : 'Iná kódová stránka',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Stredoeurópske',
charsetCT : 'Čínština tradičná (Big5)',
charsetCR : 'Cyrillika',
charsetGR : 'Gréčtina',
charsetJP : 'Japončina',
charsetKR : 'Korejčina',
charsetTR : 'Turečtina',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Západná európa',
docType : 'Typ záhlavia dokumentu',
docTypeOther : 'Iný typ záhlavia dokumentu',
xhtmlDec : 'Obsahuje deklarácie XHTML',
bgColor : 'Farba pozadia',
bgImage : 'URL adresa obrázku na pozadí',
bgFixed : 'Fixné pozadie',
txtColor : 'Farba textu',
margin : 'Okraje stránky',
marginTop : 'Horný',
marginLeft : 'Ľavý',
marginRight : 'Pravý',
marginBottom : 'Dolný',
metaKeywords : 'Kľúčové slová pre indexovanie (oddelené čiarkou)',
metaDescription : 'Popis stránky',
metaAuthor : 'Autor',
metaCopyright : 'Autorské práva',
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/sk.js | sk.js |
/*
Copyright (c) 2003-2011, 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
* Welsh language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['cy'] =
{
/**
* 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 : 'Golygydd testun cyfoethog, %1, gwasgwch ALT 0 am gymorth.',
// ARIA descriptions.
toolbars : 'Bariau offer golygydd',
editor : 'Golygydd Testun Cyfoethog',
// Toolbar buttons without dialogs.
source : 'Tarddle',
newPage : 'Tudalen newydd',
save : 'Cadw',
preview : 'Rhagolwg',
cut : 'Torri',
copy : 'Copïo',
paste : 'Gludo',
print : 'Argraffu',
underline : 'Tanlinellu',
bold : 'Bras',
italic : 'Italig',
selectAll : 'Dewis Popeth',
removeFormat : 'Tynnu Fformat',
strike : 'Llinell Trwyddo',
subscript : 'Is-sgript',
superscript : 'Uwchsgript',
horizontalrule : 'Mewnosod Llinell Lorweddol',
pagebreak : 'Mewnosod Toriad Tudalen i Argraffu',
pagebreakAlt : 'Toriad Tudalen',
unlink : 'Datgysylltu',
undo : 'Dadwneud',
redo : 'Ailadrodd',
// Common messages and labels.
common :
{
browseServer : 'Pori\'r Gweinydd',
url : 'URL',
protocol : 'Protocol',
upload : 'Lanlwytho',
uploadSubmit : 'Anfon i\'r Gweinydd',
image : 'Delwedd',
flash : 'Flash',
form : 'Ffurflen',
checkbox : 'Blwch ticio',
radio : 'Botwm Radio',
textField : 'Maes Testun',
textarea : 'Ardal Testun',
hiddenField : 'Maes Cudd',
button : 'Botwm',
select : 'Maes Dewis',
imageButton : 'Botwm Delwedd',
notSet : '<heb osod>',
id : 'Id',
name : 'Name',
langDir : 'Cyfeiriad Iaith',
langDirLtr : 'Chwith i\'r Dde (LTR)',
langDirRtl : 'Dde i\'r Chwith (RTL)',
langCode : 'Cod Iaith',
longDescr : 'URL Disgrifiad Hir',
cssClass : 'Dosbarth Dalen Arddull',
advisoryTitle : 'Teitl Cynghorol',
cssStyle : 'Arddull',
ok : 'Iawn',
cancel : 'Diddymu',
close : 'Cau',
preview : 'Rhagolwg',
generalTab : 'Cyffredinol',
advancedTab : 'Uwch',
validateNumberFailed : 'Nid yw\'r gwerth hwn yn rhif.',
confirmNewPage : 'Byddwch yn colli unrhyw newidiadau i\'r cynnwys sydd heb eu cadw. A ydych am barhau i lwytho tudalen newydd?',
confirmCancel : 'Mae rhai o\'r opsiynau wedi\'u newid. A ydych wir am gau\'r deialog?',
options : 'Opsiynau',
target : 'Targed',
targetNew : 'Ffenest Newydd (_blank)',
targetTop : 'Ffenest ar y Brig (_top)',
targetSelf : 'Yr un Ffenest (_self)',
targetParent : 'Ffenest y Rhiant (_parent)',
langDirLTR : 'Chwith i\'r Dde (LTR)',
langDirRTL : 'Dde i\'r Chwith (RTL)',
styles : 'Arddull',
cssClasses : 'Dosbarthiadau Ffeil Ddiwyg',
width : 'Lled',
height : 'Uchder',
align : 'Alinio',
alignLeft : 'Chwith',
alignRight : 'Dde',
alignCenter : 'Canol',
alignTop : 'Brig',
alignMiddle : 'Canol',
alignBottom : 'Gwaelod',
invalidHeight : 'Rhaid i\'r Uchder fod yn rhif.',
invalidWidth : 'Rhaid i\'r Lled fod yn rhif.',
invalidCssLength : 'Mae\'n rhaid i\'r gwerth ar gyfer maes "%1" fod yn rhif positif gyda neu heb uned fesuriad CSS dilys (px, %, in, cm, mm, em, ex, pt, neu pc).',
invalidHtmlLength : 'Mae\'n rhaid i\'r gwerth ar gyfer maes "%1" fod yn rhif positif gyda neu heb uned fesuriad HTML dilys (px neu %).',
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">, ddim ar gael</span>'
},
contextmenu :
{
options : 'Opsiynau Dewislen Cyd-destun'
},
// Special char dialog.
specialChar :
{
toolbar : 'Mewnosod Nodau Arbennig',
title : 'Dewis Nod Arbennig',
options : 'Opsiynau Nodau Arbennig'
},
// Link dialog.
link :
{
toolbar : 'Dolen',
other : '<eraill>',
menu : 'Golygu Dolen',
title : 'Dolen',
info : 'Gwyb ar y Ddolen',
target : 'Targed',
upload : 'Lanlwytho',
advanced : 'Uwch',
type : 'Math y Ddolen',
toUrl : 'URL',
toAnchor : 'Dolen at angor yn y testun',
toEmail : 'E-bost',
targetFrame : '<ffrâm>',
targetPopup : '<ffenestr bop>',
targetFrameName : 'Enw Ffrâm y Targed',
targetPopupName : 'Enw Ffenestr Bop',
popupFeatures : 'Nodweddion Ffenestr Bop',
popupResizable : 'Ailfeintiol',
popupStatusBar : 'Bar Statws',
popupLocationBar: 'Bar Safle',
popupToolbar : 'Bar Offer',
popupMenuBar : 'Dewislen',
popupFullScreen : 'Sgrin Llawn (IE)',
popupScrollBars : 'Barrau Sgrolio',
popupDependent : 'Dibynnol (Netscape)',
popupLeft : 'Safle Chwith',
popupTop : 'Safle Top',
id : 'Id',
langDir : 'Cyfeiriad Iaith',
langDirLTR : 'Chwith i\'r Dde (LTR)',
langDirRTL : 'Dde i\'r Chwith (RTL)',
acccessKey : 'Allwedd Mynediad',
name : 'Enw',
langCode : 'Cod Iaith',
tabIndex : 'Indecs Tab',
advisoryTitle : 'Teitl Cynghorol',
advisoryContentType : 'Math y Cynnwys Cynghorol',
cssClasses : 'Dosbarthiadau Dalen Arddull',
charset : 'Set nodau\'r Adnodd Cysylltiedig',
styles : 'Arddull',
rel : 'Perthynas',
selectAnchor : 'Dewiswch Angor',
anchorName : 'Gan Enw\'r Angor',
anchorId : 'Gan Id yr Elfen',
emailAddress : 'Cyfeiriad E-Bost',
emailSubject : 'Testun y Message Subject',
emailBody : 'Pwnc y Neges',
noAnchors : '(Dim angorau ar gael yn y ddogfen)',
noUrl : 'Teipiwch URL y ddolen',
noEmail : 'Teipiwch gyfeiriad yr e-bost'
},
// Anchor dialog
anchor :
{
toolbar : 'Angor',
menu : 'Golygwch yr Angor',
title : 'Priodweddau\'r Angor',
name : 'Enw\'r Angor',
errorName : 'Teipiwch enw\'r angor',
remove : 'Tynnwch yr Angor'
},
// List style dialog
list:
{
numberedTitle : 'Priodweddau Rhestr Rifol',
bulletedTitle : 'Priodweddau Rhestr Fwled',
type : 'Math',
start : 'Dechrau',
validateStartNumber :'Rhaid bod y rhif cychwynnol yn gyfanrif.',
circle : 'Cylch',
disc : 'Disg',
square : 'Sgwâr',
none : 'Dim',
notset : '<heb osod>',
armenian : 'Rhifau Armeneg',
georgian : 'Rhifau Sioraidd (an, ban, gan, ayyb.)',
lowerRoman : 'Rhufeinig Is (i, ii, iii, iv, v, ayyb.)',
upperRoman : 'Rhufeinig Uwch (I, II, III, IV, V, ayyb.)',
lowerAlpha : 'Alffa Is (a, b, c, d, e, ayyb.)',
upperAlpha : 'Alffa Uwch (A, B, C, D, E, ayyb.)',
lowerGreek : 'Groeg Is (alpha, beta, gamma, ayyb.)',
decimal : 'Degol (1, 2, 3, ayyb.)',
decimalLeadingZero : 'Degol â sero arweiniol (01, 02, 03, ayyb.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Chwilio ac Amnewid',
find : 'Chwilio',
replace : 'Amnewid',
findWhat : 'Chwilio\'r term:',
replaceWith : 'Amnewid gyda:',
notFoundMsg : 'Nid oedd y testun wedi\'i ddarganfod.',
findOptions : 'Find Options', // MISSING
matchCase : 'Cyfateb i\'r cas',
matchWord : 'Cyfateb gair cyfan',
matchCyclic : 'Cyfateb cylchol',
replaceAll : 'Amnewid pob un',
replaceSuccessMsg : 'Amnewidiwyd %1 achlysur.'
},
// Table Dialog
table :
{
toolbar : 'Tabl',
title : 'Nodweddion Tabl',
menu : 'Nodweddion Tabl',
deleteTable : 'Dileu Tabl',
rows : 'Rhesi',
columns : 'Colofnau',
border : 'Maint yr Ymyl',
widthPx : 'picsel',
widthPc : 'y cant',
widthUnit : 'uned lled',
cellSpace : 'Bylchu\'r gell',
cellPad : 'Padio\'r gell',
caption : 'Pennawd',
summary : 'Crynodeb',
headers : 'Penynnau',
headersNone : 'Dim',
headersColumn : 'Colofn gyntaf',
headersRow : 'Rhes gyntaf',
headersBoth : 'Y Ddau',
invalidRows : 'Mae\'n rhaid cael o leiaf un rhes.',
invalidCols : 'Mae\'n rhaid cael o leiaf un golofn.',
invalidBorder : 'Mae\'n rhaid i faint yr ymyl fod yn rhif.',
invalidWidth : 'Mae\'n rhaid i led y tabl fod yn rhif.',
invalidHeight : 'Mae\'n rhaid i uchder y tabl fod yn rhif.',
invalidCellSpacing : 'Mae\'n rhaid i fylchiad y gell fod yn rhif positif.',
invalidCellPadding : 'Mae\'n rhaid i badiad y gell fod yn rhif positif.',
cell :
{
menu : 'Cell',
insertBefore : 'Mewnosod Cell Cyn',
insertAfter : 'Mewnosod Cell Ar Ôl',
deleteCell : 'Dileu Celloedd',
merge : 'Cyfuno Celloedd',
mergeRight : 'Cyfuno i\'r Dde',
mergeDown : 'Cyfuno i Lawr',
splitHorizontal : 'Hollti\'r Gell yn Lorweddol',
splitVertical : 'Hollti\'r Gell yn Fertigol',
title : 'Priodweddau\'r Gell',
cellType : 'Math y Gell',
rowSpan : 'Rhychwant Rhesi',
colSpan : 'Rhychwant Colofnau',
wordWrap : 'Lapio Geiriau',
hAlign : 'Aliniad Llorweddol',
vAlign : 'Aliniad Fertigol',
alignBaseline : 'Baslinell',
bgColor : 'Lliw Cefndir',
borderColor : 'Lliw Ymyl',
data : 'Data',
header : 'Pennyn',
yes : 'Ie',
no : 'Na',
invalidWidth : 'Mae\'n rhaid i led y gell fod yn rhif.',
invalidHeight : 'Mae\'n rhaid i uchder y gell fod yn rhif.',
invalidRowSpan : 'Mae\'n rhaid i rychwant y rhesi fod yn gyfanrif.',
invalidColSpan : 'Mae\'n rhaid i rychwant y colofnau fod yn gyfanrif.',
chooseColor : 'Choose'
},
row :
{
menu : 'Rhes',
insertBefore : 'Mewnosod Rhes Cyn',
insertAfter : 'Mewnosod Rhes Ar Ôl',
deleteRow : 'Dileu Rhesi'
},
column :
{
menu : 'Colofn',
insertBefore : 'Mewnosod Colofn Cyn',
insertAfter : 'Mewnosod Colofn Ar Ôl',
deleteColumn : 'Dileu Colofnau'
}
},
// Button Dialog.
button :
{
title : 'Priodweddau Botymau',
text : 'Testun (Gwerth)',
type : 'Math',
typeBtn : 'Botwm',
typeSbm : 'Gyrru',
typeRst : 'Ailosod'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Priodweddau Blwch Ticio',
radioTitle : 'Priodweddau Botwm Radio',
value : 'Gwerth',
selected : 'Dewiswyd'
},
// Form Dialog.
form :
{
title : 'Priodweddau Ffurflen',
menu : 'Priodweddau Ffurflen',
action : 'Gweithred',
method : 'Dull',
encoding : 'Amgodio'
},
// Select Field Dialog.
select :
{
title : 'Priodweddau Maes Dewis',
selectInfo : 'Gwyb Dewis',
opAvail : 'Opsiynau ar Gael',
value : 'Gwerth',
size : 'Maint',
lines : 'llinellau',
chkMulti : 'Caniatàu aml-ddewisiadau',
opText : 'Testun',
opValue : 'Gwerth',
btnAdd : 'Ychwanegu',
btnModify : 'Newid',
btnUp : 'Lan',
btnDown : 'Lawr',
btnSetValue : 'Gosod fel gwerth a ddewiswyd',
btnDelete : 'Dileu'
},
// Textarea Dialog.
textarea :
{
title : 'Priodweddau Ardal Testun',
cols : 'Colofnau',
rows : 'Rhesi'
},
// Text Field Dialog.
textfield :
{
title : 'Priodweddau Maes Testun',
name : 'Enw',
value : 'Gwerth',
charWidth : 'Lled Nod',
maxChars : 'Uchafswm y Nodau',
type : 'Math',
typeText : 'Testun',
typePass : 'Cyfrinair'
},
// Hidden Field Dialog.
hidden :
{
title : 'Priodweddau Maes Cudd',
name : 'Enw',
value : 'Gwerth'
},
// Image Dialog.
image :
{
title : 'Priodweddau Delwedd',
titleButton : 'Priodweddau Botwm Delwedd',
menu : 'Priodweddau Delwedd',
infoTab : 'Gwyb Delwedd',
btnUpload : 'Anfon i\'r Gweinydd',
upload : 'lanlwytho',
alt : 'Testun Amgen',
lockRatio : 'Cloi Cymhareb',
resetSize : 'Ailosod Maint',
border : 'Ymyl',
hSpace : 'BwlchLl',
vSpace : 'BwlchF',
alertUrl : 'Rhowch URL y ddelwedd',
linkTab : 'Dolen',
button2Img : 'Ydych am drawsffurfio\'r botwm ddelwedd hwn ar ddelwedd syml?',
img2Button : 'Ydych am drawsffurfio\'r ddelwedd hon ar fotwm delwedd?',
urlMissing : 'URL tarddle\'r ddelwedd ar goll.',
validateBorder : 'Rhaid i\'r ymyl fod yn gyfanrif.',
validateHSpace : 'Rhaid i\'r HSpace fod yn gyfanrif.',
validateVSpace : 'Rhaid i\'r VSpace fod yn gyfanrif.'
},
// Flash Dialog
flash :
{
properties : 'Priodweddau Flash',
propertiesTab : 'Priodweddau',
title : 'Priodweddau Flash',
chkPlay : 'AwtoChwarae',
chkLoop : 'Lwpio',
chkMenu : 'Galluogi Dewislen Flash',
chkFull : 'Caniatàu Sgrin Llawn',
scale : 'Graddfa',
scaleAll : 'Dangos pob',
scaleNoBorder : 'Dim Ymyl',
scaleFit : 'Ffit Union',
access : 'Mynediad Sgript',
accessAlways : 'Pob amser',
accessSameDomain: 'R\'un parth',
accessNever : 'Byth',
alignAbsBottom : 'Gwaelod Abs',
alignAbsMiddle : 'Canol Abs',
alignBaseline : 'Baslinell',
alignTextTop : 'Testun Top',
quality : 'Ansawdd',
qualityBest : 'Gorau',
qualityHigh : 'Uchel',
qualityAutoHigh : 'Uchel Awto',
qualityMedium : 'Canolig',
qualityAutoLow : 'Isel Awto',
qualityLow : 'Isel',
windowModeWindow: 'Ffenestr',
windowModeOpaque: 'Afloyw',
windowModeTransparent : 'Tryloyw',
windowMode : 'Modd ffenestr',
flashvars : 'Newidynnau ar gyfer Flash',
bgcolor : 'Lliw cefndir',
hSpace : 'BwlchLl',
vSpace : 'BwlchF',
validateSrc : 'Ni all yr URL fod yn wag.',
validateHSpace : 'Rhaid i\'r BwlchLl fod yn rhif.',
validateVSpace : 'Rhaid i\'r BwlchF fod yn rhif.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Gwirio Sillafu',
title : 'Gwirio Sillafu',
notAvailable : 'Nid yw\'r gwasanaeth hwn ar gael yn bresennol.',
errorLoading : 'Error loading application service host: %s.',
notInDic : 'Nid i\'w gael yn y geiriadur',
changeTo : 'Newid i',
btnIgnore : 'Anwybyddu Un',
btnIgnoreAll : 'Anwybyddu Pob',
btnReplace : 'Amnewid Un',
btnReplaceAll : 'Amnewid Pob',
btnUndo : 'Dadwneud',
noSuggestions : '- Dim awgrymiadau -',
progress : 'Gwirio sillafu yn ar y gweill...',
noMispell : 'Gwirio sillafu wedi gorffen: Dim camsillaf.',
noChanges : 'Gwirio sillafu wedi gorffen: Dim newidiadau',
oneChange : 'Gwirio sillafu wedi gorffen: Newidiwyd 1 gair',
manyChanges : 'Gwirio sillafu wedi gorffen: Newidiwyd %1 gair',
ieSpellDownload : 'Gwirydd sillafu heb ei arsefydlu. A ydych am ei lawrlwytho nawr?'
},
smiley :
{
toolbar : 'Gwenoglun',
title : 'Mewnosod Gwenoglun',
options : 'Opsiynau Gwenogluniau'
},
elementsPath :
{
eleLabel : 'Llwybr elfennau',
eleTitle : 'Elfen %1'
},
numberedlist : 'Mewnosod/Tynnu Rhestr Rhifol',
bulletedlist : 'Mewnosod/Tynnu Rhestr Bwled',
indent : 'Cynyddu\'r Mewnoliad',
outdent : 'Lleihau\'r Mewnoliad',
justify :
{
left : 'Alinio i\'r Chwith',
center : 'Alinio i\'r Canol',
right : 'Alinio i\'r Dde',
block : 'Aliniad Bloc'
},
blockquote : 'Dyfyniad bloc',
clipboard :
{
title : 'Gludo',
cutError : 'Nid yw gosodiadau diogelwch eich porwr yn caniatàu\'r golygydd i gynnal \'gweithredoedd torri\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+X).',
copyError : 'Nid yw gosodiadau diogelwch eich porwr yn caniatàu\'r golygydd i gynnal \'gweithredoedd copïo\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+C).',
pasteMsg : 'Gludwch i mewn i\'r blwch canlynol gan ddefnyddio\'r bysellfwrdd (<strong>Ctrl/Cmd+V</strong>) a phwyso <strong>Iawn</strong>.',
securityMsg : 'Oherwydd gosodiadau diogelwch eich porwr, nid yw\'r porwr yn gallu ennill mynediad i\'r data ar y clipfwrdd yn uniongyrchol. Mae angen i chi ei ludo eto i\'r ffenestr hon.',
pasteArea : 'Ardal Gludo'
},
pastefromword :
{
confirmCleanup : 'Mae\'r testun rydych chi am ludo wedi\'i gopïo o Word. Ydych chi am ei lanhau cyn ei ludo?',
toolbar : 'Gludo o Word',
title : 'Gludo o Word',
error : 'Doedd dim modd glanhau y data a ludwyd oherwydd gwall mewnol'
},
pasteText :
{
button : 'Gludo fel testun plaen',
title : 'Gludo fel Testun Plaen'
},
templates :
{
button : 'Templedi',
title : 'Templedi Cynnwys',
options : 'Opsiynau Templedi',
insertOption : 'Amnewid y cynnwys go iawn',
selectPromptMsg : 'Dewiswch dempled i\'w agor yn y golygydd',
emptyListMsg : '(Dim templedi wedi\'u diffinio)'
},
showBlocks : 'Dangos Blociau',
stylesCombo :
{
label : 'Arddulliau',
panelTitle : 'Arddulliau Fformatio',
panelTitle1 : 'Arddulliau Bloc',
panelTitle2 : 'Arddulliau Mewnol',
panelTitle3 : 'Arddulliau Gwrthrych'
},
format :
{
label : 'Fformat',
panelTitle : 'Fformat Paragraff',
tag_p : 'Normal',
tag_pre : 'Wedi\'i Fformatio',
tag_address : 'Cyfeiriad',
tag_h1 : 'Pennawd 1',
tag_h2 : 'Pennawd 2',
tag_h3 : 'Pennawd 3',
tag_h4 : 'Pennawd 4',
tag_h5 : 'Pennawd 5',
tag_h6 : 'Pennawd 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Creu Cynhwysydd Div',
toolbar : 'Creu Cynhwysydd Div',
cssClassInputLabel : 'Dosbarthiadau Ffeil Ddiwyg',
styleSelectLabel : 'Arddull',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Cod Iaith',
inlineStyleInputLabel : 'Arddull Mewn Llinell',
advisoryTitleInputLabel : 'Teitl Cynghorol',
langDirLabel : 'Cyfeiriad yr Iaith',
langDirLTRLabel : 'Chwith i\'r Dde (LTR)',
langDirRTLLabel : 'Dde i\'r Chwith (RTL)',
edit : 'Golygu Div',
remove : 'Tynnu Div'
},
iframe :
{
title : 'Priodweddau IFrame',
toolbar : 'IFrame',
noUrl : 'Rhowch fath URL yr iframe',
scrolling : 'Galluogi bariau sgrolio',
border : 'Dangos ymyl y ffrâm'
},
font :
{
label : 'Ffont',
voiceLabel : 'Ffont',
panelTitle : 'Enw\'r Ffont'
},
fontSize :
{
label : 'Maint',
voiceLabel : 'Maint y Ffont',
panelTitle : 'Maint y Ffont'
},
colorButton :
{
textColorTitle : 'Lliw Testun',
bgColorTitle : 'Lliw Cefndir',
panelTitle : 'Lliwiau',
auto : 'Awtomatig',
more : 'Mwy o Liwiau...'
},
colors :
{
'000' : 'Du',
'800000' : 'Marwn',
'8B4513' : 'Brown Cyfrwy',
'2F4F4F' : 'Llechen Tywyll',
'008080' : 'Corhwyad',
'000080' : 'Nefi',
'4B0082' : 'Indigo',
'696969' : 'Llwyd Pwl',
'B22222' : 'Bric Tân',
'A52A2A' : 'Brown',
'DAA520' : 'Rhoden Aur',
'006400' : 'Gwyrdd Tywyll',
'40E0D0' : 'Gwyrddlas',
'0000CD' : 'Glas Canolig',
'800080' : 'Porffor',
'808080' : 'Llwyd',
'F00' : 'Coch',
'FF8C00' : 'Oren Tywyll',
'FFD700' : 'Aur',
'008000' : 'Gwyrdd',
'0FF' : 'Cyan',
'00F' : 'Glas',
'EE82EE' : 'Fioled',
'A9A9A9' : 'Llwyd Tywyll',
'FFA07A' : 'Samwn Golau',
'FFA500' : 'Oren',
'FFFF00' : 'Melyn',
'00FF00' : 'Leim',
'AFEEEE' : 'Gwyrddlas Golau',
'ADD8E6' : 'Glas Golau',
'DDA0DD' : 'Eirinen',
'D3D3D3' : 'Llwyd Golau',
'FFF0F5' : 'Gwrid Lafant',
'FAEBD7' : 'Gwyn Hynafol',
'FFFFE0' : 'Melyn Golau',
'F0FFF0' : 'Melwn Gwyrdd Golau',
'F0FFFF' : 'Aswr',
'F0F8FF' : 'Glas Alys',
'E6E6FA' : 'Lafant',
'FFF' : 'Gwyn'
},
scayt :
{
title : 'Gwirio\'r Sillafu Wrth Deipio',
opera_title : 'Heb ei gynnal gan Opera',
enable : 'Galluogi SCAYT',
disable : 'Analluogi SCAYT',
about : 'Ynghylch SCAYT',
toggle : 'Togl SCAYT',
options : 'Opsiynau',
langs : 'Ieithoedd',
moreSuggestions : 'Awgrymiadau pellach',
ignore : 'Anwybyddu',
ignoreAll : 'Anwybyddu pob',
addWord : 'Ychwanegu Gair',
emptyDic : 'Ni ddylai enw\'r geiriadur fod yn wag.',
optionsTab : 'Opsiynau',
allCaps : 'Anwybyddu Geiriau Nodau Uwch i Gyd',
ignoreDomainNames : 'Anwybyddu Enwau Parth',
mixedCase : 'Anwybyddu Geiriau â Chymysgedd Nodau Uwch ac Is',
mixedWithDigits : 'Anwybyddu Geiriau â Rhifau',
languagesTab : 'Ieithoedd',
dictionariesTab : 'Geiriaduron',
dic_field_name : 'Enw\'r geiriadur',
dic_create : 'Creu',
dic_restore : 'Adfer',
dic_delete : 'Dileu',
dic_rename : 'Ailenwi',
dic_info : 'Ar y cychwyn, caiff y Geiriadur ei storio mewn Cwci. Er, mae terfyn ar faint cwcis. Pan fydd Gweiriadur Defnyddiwr yn tyfu tu hwnt i gyfyngiadau maint Cwci, caiff y geiriadur ei storio ar ein gweinydd ni. er mwyn storio eich geiriadur poersonol chi ar ein gweinydd, bydd angen i chi osod enw ar gyfer y geiriadur. Os oes geiriadur \'da chi ar ein gweinydd yn barod, teipiwch ei enw a chliciwch y botwm Adfer.',
aboutTab : 'Ynghylch'
},
about :
{
title : 'Ynghylch CKEditor',
dlgTitle : 'Ynghylch CKEditor',
help : 'Gwirio $1 am gymorth.',
userGuide : 'Canllawiau Defnyddiwr CKEditor',
moreInfo : 'Am wybodaeth ynghylch trwyddedau, ewch i\'n gwefan:',
copy : 'Hawlfraint © $1. Cedwir pob hawl.'
},
maximize : 'Mwyhau',
minimize : 'Lleihau',
fakeobjects :
{
anchor : 'Angor',
flash : 'Animeiddiant Flash',
iframe : 'IFrame',
hiddenfield : 'Maes Cudd',
unknown : 'Gwrthrych Anhysbys'
},
resize : 'Llusgo i ailfeintio',
colordialog :
{
title : 'Dewis lliw',
options : 'Opsiynau Lliw',
highlight : 'Uwcholeuo',
selected : 'Dewiswyd',
clear : 'Clirio'
},
toolbarCollapse : 'Cyfangu\'r Bar Offer',
toolbarExpand : 'Ehangu\'r Bar Offer',
toolbarGroups :
{
document : 'Dogfen',
clipboard : 'Clipfwrdd/Dadwneud',
editing : 'Golygu',
forms : 'Ffurflenni',
basicstyles : 'Arddulliau Sylfaenol',
paragraph : 'Paragraff',
links : 'Dolenni',
insert : 'Mewnosod',
styles : 'Arddulliau',
colors : 'Lliwiau',
tools : 'Offer'
},
bidi :
{
ltr : 'Cyfeiriad testun o\'r chwith i\'r dde',
rtl : 'Cyfeiriad testun o\'r dde i\'r chwith'
},
docprops :
{
label : 'Priodweddau Dogfen',
title : 'Priodweddau Dogfen',
design : 'Cynllunio',
meta : 'Tagiau Meta',
chooseColor : 'Dewis',
other : 'Arall...',
docTitle : 'Teitl y Dudalen',
charset : 'Amgodio Set Nodau',
charsetOther : 'Amgodio Set Nodau Arall',
charsetASCII : 'ASCII',
charsetCE : 'Ewropeaidd Canol',
charsetCT : 'Tsieinëeg Traddodiadol (Big5)',
charsetCR : 'Syrilig',
charsetGR : 'Groeg',
charsetJP : 'Siapanëeg',
charsetKR : 'Corëeg',
charsetTR : 'Tyrceg',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Ewropeaidd Gorllewinol',
docType : 'Pennawd Math y Ddogfen',
docTypeOther : 'Pennawd Math y Ddogfen Arall',
xhtmlDec : 'Cynnwys Datganiadau XHTML',
bgColor : 'Lliw Cefndir',
bgImage : 'URL Delwedd Cefndir',
bgFixed : 'Cefndir Sefydlog (Ddim yn Sgrolio)',
txtColor : 'Lliw y Testun',
margin : 'Ffin y Dudalen',
marginTop : 'Brig',
marginLeft : 'Chwith',
marginRight : 'Dde',
marginBottom : 'Gwaelod',
metaKeywords : 'Allweddeiriau Indecsio Dogfen (gwahanu gyda choma)',
metaDescription : 'Disgrifiad y Ddogfen',
metaAuthor : 'Awdur',
metaCopyright : 'Hawlfraint',
previewHtml : '<p>Dyma ychydig o <strong>destun sampl</strong>. Rydych chi\'n defnyddio <a href="javascript:void(0)">CKEditor</a>.</p>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/cy.js | cy.js |
/*
Copyright (c) 2003-2011, 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
* Canadian French language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['fr-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 : 'Nouvelle page',
save : 'Sauvegarder',
preview : 'Previsualiser',
cut : 'Couper',
copy : 'Copier',
paste : 'Coller',
print : 'Imprimer',
underline : 'Souligné',
bold : 'Gras',
italic : 'Italique',
selectAll : 'Tout sélectionner',
removeFormat : 'Supprimer le formatage',
strike : 'Barrer',
subscript : 'Indice',
superscript : 'Exposant',
horizontalrule : 'Insérer un séparateur',
pagebreak : 'Insérer un saut de page',
pagebreakAlt : 'Page Break', // MISSING
unlink : 'Supprimer le lien',
undo : 'Annuler',
redo : 'Refaire',
// Common messages and labels.
common :
{
browseServer : 'Parcourir le serveur',
url : 'URL',
protocol : 'Protocole',
upload : 'Télécharger',
uploadSubmit : 'Envoyer sur le serveur',
image : 'Image',
flash : 'Animation Flash',
form : 'Formulaire',
checkbox : 'Case à cocher',
radio : 'Bouton radio',
textField : 'Champ texte',
textarea : 'Zone de texte',
hiddenField : 'Champ caché',
button : 'Bouton',
select : 'Champ de sélection',
imageButton : 'Bouton image',
notSet : '<Par défaut>',
id : 'Id',
name : 'Nom',
langDir : 'Sens d\'écriture',
langDirLtr : 'De gauche à droite (LTR)',
langDirRtl : 'De droite à gauche (RTL)',
langCode : 'Code langue',
longDescr : 'URL de description longue',
cssClass : 'Classes de feuilles de style',
advisoryTitle : 'Titre',
cssStyle : 'Style',
ok : 'OK',
cancel : 'Annuler',
close : 'Close', // MISSING
preview : 'Preview', // MISSING
generalTab : 'Général',
advancedTab : 'Avancée',
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 : 'Largeur',
height : 'Hauteur',
align : 'Alignement',
alignLeft : 'Gauche',
alignRight : 'Droite',
alignCenter : 'Centré',
alignTop : 'Haut',
alignMiddle : 'Milieu',
alignBottom : 'Bas',
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 : 'Insérer un caractère spécial',
title : 'Insérer un caractère spécial',
options : 'Special Character Options' // MISSING
},
// Link dialog.
link :
{
toolbar : 'Insérer/modifier le lien',
other : '<other>', // MISSING
menu : 'Modifier le lien',
title : 'Propriétés du lien',
info : 'Informations sur le lien',
target : 'Destination',
upload : 'Télécharger',
advanced : 'Avancée',
type : 'Type de lien',
toUrl : 'URL', // MISSING
toAnchor : 'Ancre dans cette page',
toEmail : 'E-Mail',
targetFrame : '<Cadre>',
targetPopup : '<fenêtre popup>',
targetFrameName : 'Nom du cadre de destination',
targetPopupName : 'Nom de la fenêtre popup',
popupFeatures : 'Caractéristiques de la fenêtre popup',
popupResizable : 'Resizable', // MISSING
popupStatusBar : 'Barre d\'état',
popupLocationBar: 'Barre d\'adresses',
popupToolbar : 'Barre d\'outils',
popupMenuBar : 'Barre de menu',
popupFullScreen : 'Plein écran (IE)',
popupScrollBars : 'Barres de défilement',
popupDependent : 'Dépendante (Netscape)',
popupLeft : 'Position à partir de la gauche',
popupTop : 'Position à partir du haut',
id : 'Id', // MISSING
langDir : 'Sens d\'écriture',
langDirLTR : 'De gauche à droite (LTR)',
langDirRTL : 'De droite à gauche (RTL)',
acccessKey : 'Équivalent clavier',
name : 'Nom',
langCode : 'Sens d\'écriture',
tabIndex : 'Ordre de tabulation',
advisoryTitle : 'Titre',
advisoryContentType : 'Type de contenu',
cssClasses : 'Classes de feuilles de style',
charset : 'Encodage de caractère',
styles : 'Style',
rel : 'Relationship', // MISSING
selectAnchor : 'Sélectionner une ancre',
anchorName : 'Par nom',
anchorId : 'Par id',
emailAddress : 'Adresse E-Mail',
emailSubject : 'Sujet du message',
emailBody : 'Corps du message',
noAnchors : '(Pas d\'ancre disponible dans le document)',
noUrl : 'Veuillez saisir l\'URL',
noEmail : 'Veuillez saisir l\'adresse e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Insérer/modifier l\'ancre',
menu : 'Propriétés de l\'ancre',
title : 'Propriétés de l\'ancre',
name : 'Nom de l\'ancre',
errorName : 'Veuillez saisir le nom de l\'ancre',
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 : 'Chercher et Remplacer',
find : 'Chercher',
replace : 'Remplacer',
findWhat : 'Rechercher:',
replaceWith : 'Remplacer par:',
notFoundMsg : 'Le texte indiqué est introuvable.',
findOptions : 'Find Options', // MISSING
matchCase : 'Respecter la casse',
matchWord : 'Mot entier',
matchCyclic : 'Match cyclic', // MISSING
replaceAll : 'Tout remplacer',
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
},
// Table Dialog
table :
{
toolbar : 'Tableau',
title : 'Propriétés du tableau',
menu : 'Propriétés du tableau',
deleteTable : 'Supprimer le tableau',
rows : 'Lignes',
columns : 'Colonnes',
border : 'Taille de la bordure',
widthPx : 'pixels',
widthPc : 'pourcentage',
widthUnit : 'width unit', // MISSING
cellSpace : 'Espacement',
cellPad : 'Contour',
caption : 'Titre',
summary : 'Résumé',
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 : 'Cellule',
insertBefore : 'Insérer une cellule avant',
insertAfter : 'Insérer une cellule après',
deleteCell : 'Supprimer des cellules',
merge : 'Fusionner les cellules',
mergeRight : 'Fusionner à droite',
mergeDown : 'Fusionner en bas',
splitHorizontal : 'Scinder la cellule horizontalement',
splitVertical : 'Scinder la cellule verticalement',
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 : 'Ligne',
insertBefore : 'Insérer une ligne avant',
insertAfter : 'Insérer une ligne après',
deleteRow : 'Supprimer des lignes'
},
column :
{
menu : 'Colonne',
insertBefore : 'Insérer une colonne avant',
insertAfter : 'Insérer une colonne après',
deleteColumn : 'Supprimer des colonnes'
}
},
// Button Dialog.
button :
{
title : 'Propriétés du bouton',
text : 'Texte (Valeur)',
type : 'Type',
typeBtn : 'Bouton',
typeSbm : 'Soumettre',
typeRst : 'Réinitialiser'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Propriétés de la case à cocher',
radioTitle : 'Propriétés du bouton radio',
value : 'Valeur',
selected : 'Sélectionné'
},
// Form Dialog.
form :
{
title : 'Propriétés du formulaire',
menu : 'Propriétés du formulaire',
action : 'Action',
method : 'Méthode',
encoding : 'Encoding' // MISSING
},
// Select Field Dialog.
select :
{
title : 'Propriétés de la liste/du menu',
selectInfo : 'Info',
opAvail : 'Options disponibles',
value : 'Valeur',
size : 'Taille',
lines : 'lignes',
chkMulti : 'Sélection multiple',
opText : 'Texte',
opValue : 'Valeur',
btnAdd : 'Ajouter',
btnModify : 'Modifier',
btnUp : 'Monter',
btnDown : 'Descendre',
btnSetValue : 'Valeur sélectionnée',
btnDelete : 'Supprimer'
},
// Textarea Dialog.
textarea :
{
title : 'Propriétés de la zone de texte',
cols : 'Colonnes',
rows : 'Lignes'
},
// Text Field Dialog.
textfield :
{
title : 'Propriétés du champ texte',
name : 'Nom',
value : 'Valeur',
charWidth : 'Largeur en caractères',
maxChars : 'Nombre maximum de caractères',
type : 'Type',
typeText : 'Texte',
typePass : 'Mot de passe'
},
// Hidden Field Dialog.
hidden :
{
title : 'Propriétés du champ caché',
name : 'Nom',
value : 'Valeur'
},
// Image Dialog.
image :
{
title : 'Propriétés de l\'image',
titleButton : 'Propriétés du bouton image',
menu : 'Propriétés de l\'image',
infoTab : 'Informations sur l\'image',
btnUpload : 'Envoyer sur le serveur',
upload : 'Télécharger',
alt : 'Texte de remplacement',
lockRatio : 'Garder les proportions',
resetSize : 'Taille originale',
border : 'Bordure',
hSpace : 'Espacement horizontal',
vSpace : 'Espacement vertical',
alertUrl : 'Veuillez saisir l\'URL de l\'image',
linkTab : 'Lien',
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 : 'Propriétés de l\'animation Flash',
propertiesTab : 'Properties', // MISSING
title : 'Propriétés de l\'animation Flash',
chkPlay : 'Lecture automatique',
chkLoop : 'Boucle',
chkMenu : 'Activer le menu Flash',
chkFull : 'Allow Fullscreen', // MISSING
scale : 'Affichage',
scaleAll : 'Par défaut (tout montrer)',
scaleNoBorder : 'Sans bordure',
scaleFit : 'Ajuster aux dimensions',
access : 'Script Access', // MISSING
accessAlways : 'Always', // MISSING
accessSameDomain: 'Same domain', // MISSING
accessNever : 'Never', // MISSING
alignAbsBottom : 'Abs Bas',
alignAbsMiddle : 'Abs Milieu',
alignBaseline : 'Bas du texte',
alignTextTop : 'Haut du texte',
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 : 'Couleur de fond',
hSpace : 'Espacement horizontal',
vSpace : 'Espacement vertical',
validateSrc : 'Veuillez saisir l\'URL',
validateHSpace : 'HSpace must be a number.', // MISSING
validateVSpace : 'VSpace must be a number.' // MISSING
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Orthographe',
title : 'Spell Check', // MISSING
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
errorLoading : 'Error loading application service host: %s.', // MISSING
notInDic : 'Pas dans le dictionnaire',
changeTo : 'Changer en',
btnIgnore : 'Ignorer',
btnIgnoreAll : 'Ignorer tout',
btnReplace : 'Remplacer',
btnReplaceAll : 'Remplacer tout',
btnUndo : 'Annuler',
noSuggestions : '- Pas de suggestion -',
progress : 'Vérification d\'orthographe en cours...',
noMispell : 'Vérification d\'orthographe terminée: pas d\'erreur trouvée',
noChanges : 'Vérification d\'orthographe terminée: Pas de modifications',
oneChange : 'Vérification d\'orthographe terminée: Un mot modifié',
manyChanges : 'Vérification d\'orthographe terminée: %1 mots modifiés',
ieSpellDownload : 'Le Correcteur d\'orthographe n\'est pas installé. Souhaitez-vous le télécharger maintenant?'
},
smiley :
{
toolbar : 'Emoticon',
title : 'Insérer un Emoticon',
options : 'Smiley Options' // MISSING
},
elementsPath :
{
eleLabel : 'Elements path', // MISSING
eleTitle : '%1 element' // MISSING
},
numberedlist : 'Liste numérotée',
bulletedlist : 'Liste à puces',
indent : 'Augmenter le retrait',
outdent : 'Diminuer le retrait',
justify :
{
left : 'Aligner à gauche',
center : 'Centrer',
right : 'Aligner à Droite',
block : 'Texte justifié'
},
blockquote : 'Citation',
clipboard :
{
title : 'Coller',
cutError : 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de couper automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+X).',
copyError : 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de copier automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+C).',
pasteMsg : 'Veuillez coller dans la zone ci-dessous en utilisant le clavier (<STRONG>Ctrl/Cmd+V</STRONG>) et appuyer sur <STRONG>OK</STRONG>.',
securityMsg : 'A cause des paramètres de sécurité de votre navigateur, l\'éditeur ne peut accéder au presse-papier directement. Vous devez coller à nouveau le contenu dans cette fenêtre.',
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 : 'Coller en tant que Word (formaté)',
title : 'Coller en tant que Word (formaté)',
error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING
},
pasteText :
{
button : 'Coller comme texte',
title : 'Coller comme texte'
},
templates :
{
button : 'Modèles',
title : 'Modèles de contenu',
options : 'Template Options', // MISSING
insertOption : 'Remplacer tout le contenu actuel',
selectPromptMsg : 'Sélectionner le modèle à ouvrir dans l\'éditeur<br>(le contenu actuel sera remplacé):',
emptyListMsg : '(Aucun modèle disponible)'
},
showBlocks : 'Afficher les blocs',
stylesCombo :
{
label : 'Style',
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 : 'Formaté',
tag_address : 'Adresse',
tag_h1 : 'En-tête 1',
tag_h2 : 'En-tête 2',
tag_h3 : 'En-tête 3',
tag_h4 : 'En-tête 4',
tag_h5 : 'En-tête 5',
tag_h6 : 'En-tête 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 : 'Police',
voiceLabel : 'Font', // MISSING
panelTitle : 'Police'
},
fontSize :
{
label : 'Taille',
voiceLabel : 'Font Size', // MISSING
panelTitle : 'Taille'
},
colorButton :
{
textColorTitle : 'Couleur de caractère',
bgColorTitle : 'Couleur de fond',
panelTitle : 'Colors', // MISSING
auto : 'Automatique',
more : 'Plus de couleurs...'
},
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 : 'Propriétés du document',
title : 'Propriétés du document',
design : 'Design', // MISSING
meta : 'Méta-Données',
chooseColor : 'Choose', // MISSING
other : '<other>',
docTitle : 'Titre de la page',
charset : 'Encodage de caractère',
charsetOther : 'Autre encodage de caractère',
charsetASCII : 'ASCII', // MISSING
charsetCE : 'Europe Centrale',
charsetCT : 'Chinois Traditionnel (Big5)',
charsetCR : 'Cyrillique',
charsetGR : 'Grecque',
charsetJP : 'Japonais',
charsetKR : 'Coréen',
charsetTR : 'Turcque',
charsetUN : 'Unicode (UTF-8)', // MISSING
charsetWE : 'Occidental',
docType : 'Type de document',
docTypeOther : 'Autre type de document',
xhtmlDec : 'Inclure les déclarations XHTML',
bgColor : 'Couleur de fond',
bgImage : 'Image de fond',
bgFixed : 'Image fixe sans défilement',
txtColor : 'Couleur de caractère',
margin : 'Marges',
marginTop : 'Haut',
marginLeft : 'Gauche',
marginRight : 'Droite',
marginBottom : 'Bas',
metaKeywords : 'Mots-clés (séparés par des virgules)',
metaDescription : 'Description',
metaAuthor : 'Auteur',
metaCopyright : 'Copyright', // MISSING
previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/fr-ca.js | fr-ca.js |
/*
Copyright (c) 2003-2011, 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 : '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 : '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 : '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 : '<अन्य>',
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
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/hi.js | hi.js |
/*
Copyright (c) 2003-2011, 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>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/pt-br.js | pt-br.js |
/*
Copyright (c) 2003-2011, 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
* Dutch language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['nl'] =
{
/**
* 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 : 'Tekstverwerker, %1, druk op ALT 0 voor hulp.',
// ARIA descriptions.
toolbars : 'Werkbalken',
editor : 'Tekstverwerker',
// Toolbar buttons without dialogs.
source : 'Code',
newPage : 'Nieuwe pagina',
save : 'Opslaan',
preview : 'Voorbeeld',
cut : 'Knippen',
copy : 'Kopiëren',
paste : 'Plakken',
print : 'Printen',
underline : 'Onderstreept',
bold : 'Vet',
italic : 'Schuingedrukt',
selectAll : 'Alles selecteren',
removeFormat : 'Opmaak verwijderen',
strike : 'Doorhalen',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Horizontale lijn invoegen',
pagebreak : 'Pagina-einde invoegen',
pagebreakAlt : 'Pagina-einde',
unlink : 'Link verwijderen',
undo : 'Ongedaan maken',
redo : 'Opnieuw uitvoeren',
// Common messages and labels.
common :
{
browseServer : 'Bladeren op server',
url : 'URL',
protocol : 'Protocol',
upload : 'Upload',
uploadSubmit : 'Naar server verzenden',
image : 'Afbeelding',
flash : 'Flash',
form : 'Formulier',
checkbox : 'Aanvinkvakje',
radio : 'Selectievakje',
textField : 'Tekstveld',
textarea : 'Tekstvak',
hiddenField : 'Verborgen veld',
button : 'Knop',
select : 'Selectieveld',
imageButton : 'Afbeeldingsknop',
notSet : '<niet ingevuld>',
id : 'Kenmerk',
name : 'Naam',
langDir : 'Schrijfrichting',
langDirLtr : 'Links naar rechts (LTR)',
langDirRtl : 'Rechts naar links (RTL)',
langCode : 'Taalcode',
longDescr : 'Lange URL-omschrijving',
cssClass : 'Stylesheet-klassen',
advisoryTitle : 'Aanbevolen titel',
cssStyle : 'Stijl',
ok : 'OK',
cancel : 'Annuleren',
close : 'Sluiten',
preview : 'Voorbeeld',
generalTab : 'Algemeen',
advancedTab : 'Geavanceerd',
validateNumberFailed : 'Deze waarde is geen geldig getal.',
confirmNewPage : 'Alle aangebrachte wijzigingen gaan verloren. Weet u zeker dat u een nieuwe pagina wilt openen?',
confirmCancel : 'Enkele opties zijn gewijzigd. Weet u zeker dat u dit dialoogvenster wilt sluiten?',
options : 'Opties',
target : 'Doel',
targetNew : 'Nieuw venster (_blank)',
targetTop : 'Hele venster (_top)',
targetSelf : 'Zelfde venster (_self)',
targetParent : 'Origineel venster (_parent)',
langDirLTR : 'Links naar rechts (LTR)',
langDirRTL : 'Rechts naar links (RTL)',
styles : 'Stijlen',
cssClasses : 'Stylesheet klassen',
width : 'Breedte',
height : 'Hoogte',
align : 'Uitlijning',
alignLeft : 'Links',
alignRight : 'Rechts',
alignCenter : 'Centreren',
alignTop : 'Boven',
alignMiddle : 'Midden',
alignBottom : 'Beneden',
invalidHeight : 'De hoogte moet een getal zijn.',
invalidWidth : 'De breedte moet een getal zijn.',
invalidCssLength : 'Waarde in veld "%1" moet een positief nummer zijn, met of zonder een geldige CSS meeteenheid (px, %, in, cm, mm, em, ex, pt of pc).',
invalidHtmlLength : 'Waarde in veld "%1" moet een positief nummer zijn, met of zonder een geldige HTML meeteenheid (px of %).',
invalidInlineStyle : 'Waarde voor de online stijl moet bestaan uit een of meerdere tupels met het formaat "naam : waarde", gescheiden door puntkomma\'s.',
cssLengthTooltip : 'Geef een nummer in voor een waarde in pixels of geef een nummer in met een geldige CSS eenheid (px, %, in, cm, mm, em, ex, pt, of pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, niet beschikbaar</span>'
},
contextmenu :
{
options : 'Context menu opties'
},
// Special char dialog.
specialChar :
{
toolbar : 'Speciaal teken invoegen',
title : 'Selecteer speciaal teken',
options : 'Speciale tekens opties'
},
// Link dialog.
link :
{
toolbar : 'Link invoegen/wijzigen',
other : '<ander>',
menu : 'Link wijzigen',
title : 'Link',
info : 'Linkomschrijving',
target : 'Doel',
upload : 'Upload',
advanced : 'Geavanceerd',
type : 'Linktype',
toUrl : 'URL',
toAnchor : 'Interne link in pagina',
toEmail : 'E-mail',
targetFrame : '<frame>',
targetPopup : '<popup window>',
targetFrameName : 'Naam doelframe',
targetPopupName : 'Naam popupvenster',
popupFeatures : 'Instellingen popupvenster',
popupResizable : 'Herschaalbaar',
popupStatusBar : 'Statusbalk',
popupLocationBar: 'Locatiemenu',
popupToolbar : 'Menubalk',
popupMenuBar : 'Menubalk',
popupFullScreen : 'Volledig scherm (IE)',
popupScrollBars : 'Schuifbalken',
popupDependent : 'Afhankelijk (Netscape)',
popupLeft : 'Positie links',
popupTop : 'Positie boven',
id : 'Id',
langDir : 'Schrijfrichting',
langDirLTR : 'Links naar rechts (LTR)',
langDirRTL : 'Rechts naar links (RTL)',
acccessKey : 'Toegangstoets',
name : 'Naam',
langCode : 'Schrijfrichting',
tabIndex : 'Tabvolgorde',
advisoryTitle : 'Aanbevolen titel',
advisoryContentType : 'Aanbevolen content-type',
cssClasses : 'Stylesheet-klassen',
charset : 'Karakterset van gelinkte bron',
styles : 'Stijl',
rel : 'Relatie',
selectAnchor : 'Kies een interne link',
anchorName : 'Op naam interne link',
anchorId : 'Op kenmerk interne link',
emailAddress : 'E-mailadres',
emailSubject : 'Onderwerp bericht',
emailBody : 'Inhoud bericht',
noAnchors : '(Geen interne links in document gevonden)',
noUrl : 'Geef de link van de URL',
noEmail : 'Geef een e-mailadres'
},
// Anchor dialog
anchor :
{
toolbar : 'Interne link',
menu : 'Eigenschappen interne link',
title : 'Eigenschappen interne link',
name : 'Naam interne link',
errorName : 'Geef de naam van de interne link op',
remove : 'Interne link verwijderen'
},
// List style dialog
list:
{
numberedTitle : 'Eigenschappen genummerde lijst',
bulletedTitle : 'Eigenschappen lijst met opsommingstekens',
type : 'Type',
start : 'Start',
validateStartNumber :'Starnummer van de lijst moet een heel nummer zijn.',
circle : 'Cirkel',
disc : 'Schijf',
square : 'Vierkant',
none : 'Geen',
notset : '<niet gezet>',
armenian : 'Armeense numering',
georgian : 'Greorgische numering (an, ban, gan, etc.)',
lowerRoman : 'Romeins kleine letters (i, ii, iii, iv, v, etc.)',
upperRoman : 'Romeins hoofdletters (I, II, III, IV, V, etc.)',
lowerAlpha : 'Kleine letters (a, b, c, d, e, etc.)',
upperAlpha : 'Hoofdletters (A, B, C, D, E, etc.)',
lowerGreek : 'Grieks kleine letters (alpha, beta, gamma, etc.)',
decimal : 'Cijfers (1, 2, 3, etc.)',
decimalLeadingZero : 'Cijfers beginnen met nul (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Zoeken en vervangen',
find : 'Zoeken',
replace : 'Vervangen',
findWhat : 'Zoeken naar:',
replaceWith : 'Vervangen met:',
notFoundMsg : 'De opgegeven tekst is niet gevonden.',
findOptions : 'Zoekopties',
matchCase : 'Hoofdlettergevoelig',
matchWord : 'Hele woord moet voorkomen',
matchCyclic : 'Doorlopend zoeken',
replaceAll : 'Alles vervangen',
replaceSuccessMsg : '%1 resulaten vervangen.'
},
// Table Dialog
table :
{
toolbar : 'Tabel',
title : 'Eigenschappen tabel',
menu : 'Eigenschappen tabel',
deleteTable : 'Tabel verwijderen',
rows : 'Rijen',
columns : 'Kolommen',
border : 'Breedte rand',
widthPx : 'pixels',
widthPc : 'procent',
widthUnit : 'eenheid breedte',
cellSpace : 'Afstand tussen cellen',
cellPad : 'Ruimte in de cel',
caption : 'Naam',
summary : 'Samenvatting',
headers : 'Koppen',
headersNone : 'Geen',
headersColumn : 'Eerste kolom',
headersRow : 'Eerste rij',
headersBoth : 'Beide',
invalidRows : 'Het aantal rijen moet een getal zijn groter dan 0.',
invalidCols : 'Het aantal kolommen moet een getal zijn groter dan 0.',
invalidBorder : 'De rand breedte moet een getal zijn.',
invalidWidth : 'De tabel breedte moet een getal zijn.',
invalidHeight : 'De tabel hoogte moet een getal zijn.',
invalidCellSpacing : 'Afstand tussen cellen moet een getal zijn.',
invalidCellPadding : 'Ruimte in de cel moet een getal zijn.',
cell :
{
menu : 'Cel',
insertBefore : 'Voeg cel in voor',
insertAfter : 'Voeg cel in achter',
deleteCell : 'Cellen verwijderen',
merge : 'Cellen samenvoegen',
mergeRight : 'Voeg samen naar rechts',
mergeDown : 'Voeg samen naar beneden',
splitHorizontal : 'Splits cellen horizontaal',
splitVertical : 'Splits cellen verticaal',
title : 'Cel eigenschappen',
cellType : 'Cel type',
rowSpan : 'Rijen samenvoegen',
colSpan : 'Kolommen samenvoegen',
wordWrap : 'Automatische terugloop',
hAlign : 'Horizontale uitlijning',
vAlign : 'Verticale uitlijning',
alignBaseline : 'Basislijn',
bgColor : 'Achtergrondkleur',
borderColor : 'Kleur rand',
data : 'Inhoud',
header : 'Kop',
yes : 'Ja',
no : 'Nee',
invalidWidth : 'De celbreedte moet een getal zijn.',
invalidHeight : 'De celhoogte moet een getal zijn.',
invalidRowSpan : 'Rijen samenvoegen moet een heel getal zijn.',
invalidColSpan : 'Kolommen samenvoegen moet een heel getal zijn.',
chooseColor : 'Kies'
},
row :
{
menu : 'Rij',
insertBefore : 'Voeg rij in voor',
insertAfter : 'Voeg rij in achter',
deleteRow : 'Rijen verwijderen'
},
column :
{
menu : 'Kolom',
insertBefore : 'Voeg kolom in voor',
insertAfter : 'Voeg kolom in achter',
deleteColumn : 'Kolommen verwijderen'
}
},
// Button Dialog.
button :
{
title : 'Eigenschappen knop',
text : 'Tekst (waarde)',
type : 'Soort',
typeBtn : 'Knop',
typeSbm : 'Versturen',
typeRst : 'Leegmaken'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Eigenschappen aanvinkvakje',
radioTitle : 'Eigenschappen selectievakje',
value : 'Waarde',
selected : 'Geselecteerd'
},
// Form Dialog.
form :
{
title : 'Eigenschappen formulier',
menu : 'Eigenschappen formulier',
action : 'Actie',
method : 'Methode',
encoding : 'Codering'
},
// Select Field Dialog.
select :
{
title : 'Eigenschappen selectieveld',
selectInfo : 'Informatie',
opAvail : 'Beschikbare opties',
value : 'Waarde',
size : 'Grootte',
lines : 'Regels',
chkMulti : 'Gecombineerde selecties toestaan',
opText : 'Tekst',
opValue : 'Waarde',
btnAdd : 'Toevoegen',
btnModify : 'Wijzigen',
btnUp : 'Omhoog',
btnDown : 'Omlaag',
btnSetValue : 'Als geselecteerde waarde instellen',
btnDelete : 'Verwijderen'
},
// Textarea Dialog.
textarea :
{
title : 'Eigenschappen tekstvak',
cols : 'Kolommen',
rows : 'Rijen'
},
// Text Field Dialog.
textfield :
{
title : 'Eigenschappen tekstveld',
name : 'Naam',
value : 'Waarde',
charWidth : 'Breedte (tekens)',
maxChars : 'Maximum aantal tekens',
type : 'Soort',
typeText : 'Tekst',
typePass : 'Wachtwoord'
},
// Hidden Field Dialog.
hidden :
{
title : 'Eigenschappen verborgen veld',
name : 'Naam',
value : 'Waarde'
},
// Image Dialog.
image :
{
title : 'Eigenschappen afbeelding',
titleButton : 'Eigenschappen afbeeldingsknop',
menu : 'Eigenschappen afbeelding',
infoTab : 'Informatie afbeelding',
btnUpload : 'Naar server verzenden',
upload : 'Upload',
alt : 'Alternatieve tekst',
lockRatio : 'Afmetingen vergrendelen',
resetSize : 'Afmetingen resetten',
border : 'Rand',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Geef de URL van de afbeelding',
linkTab : 'Link',
button2Img : 'Wilt u de geselecteerde afbeeldingsknop vervangen door een eenvoudige afbeelding?',
img2Button : 'Wilt u de geselecteerde afbeelding vervangen door een afbeeldingsknop?',
urlMissing : 'De URL naar de afbeelding ontbreekt.',
validateBorder : 'Rand moet een heel nummer zijn.',
validateHSpace : 'HSpace moet een heel nummer zijn.',
validateVSpace : 'VSpace moet een heel nummer zijn.'
},
// Flash Dialog
flash :
{
properties : 'Eigenschappen Flash',
propertiesTab : 'Eigenschappen',
title : 'Eigenschappen Flash',
chkPlay : 'Automatisch afspelen',
chkLoop : 'Herhalen',
chkMenu : 'Flashmenu\'s inschakelen',
chkFull : 'Schermvullend toestaan',
scale : 'Schaal',
scaleAll : 'Alles tonen',
scaleNoBorder : 'Geen rand',
scaleFit : 'Precies passend',
access : 'Script toegang',
accessAlways : 'Altijd',
accessSameDomain: 'Zelfde domeinnaam',
accessNever : 'Nooit',
alignAbsBottom : 'Absoluut-onder',
alignAbsMiddle : 'Absoluut-midden',
alignBaseline : 'Basislijn',
alignTextTop : 'Boven tekst',
quality : 'Kwaliteit',
qualityBest : 'Beste',
qualityHigh : 'Hoog',
qualityAutoHigh : 'Automatisch hoog',
qualityMedium : 'Gemiddeld',
qualityAutoLow : 'Automatisch laag',
qualityLow : 'Laag',
windowModeWindow: 'Venster',
windowModeOpaque: 'Ondoorzichtig',
windowModeTransparent : 'Doorzichtig',
windowMode : 'Venster modus',
flashvars : 'Variabelen voor Flash',
bgcolor : 'Achtergrondkleur',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Geef de link van de URL',
validateHSpace : 'De HSpace moet een getal zijn.',
validateVSpace : 'De VSpace moet een getal zijn.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Spellingscontrole',
title : 'Spellingscontrole',
notAvailable : 'Excuses, deze dienst is momenteel niet beschikbaar.',
errorLoading : 'Er is een fout opgetreden bij het laden van de diesnt: %s.',
notInDic : 'Niet in het woordenboek',
changeTo : 'Wijzig in',
btnIgnore : 'Negeren',
btnIgnoreAll : 'Alles negeren',
btnReplace : 'Vervangen',
btnReplaceAll : 'Alles vervangen',
btnUndo : 'Ongedaan maken',
noSuggestions : '-Geen suggesties-',
progress : 'Bezig met spellingscontrole...',
noMispell : 'Klaar met spellingscontrole: geen fouten gevonden',
noChanges : 'Klaar met spellingscontrole: geen woorden aangepast',
oneChange : 'Klaar met spellingscontrole: één woord aangepast',
manyChanges : 'Klaar met spellingscontrole: %1 woorden aangepast',
ieSpellDownload : 'De spellingscontrole niet geïnstalleerd. Wilt u deze nu downloaden?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Smiley invoegen',
options : 'Smiley opties'
},
elementsPath :
{
eleLabel : 'Elementenpad',
eleTitle : '%1 element'
},
numberedlist : 'Genummerde lijst',
bulletedlist : 'Opsomming',
indent : 'Inspringen vergroten',
outdent : 'Inspringen verkleinen',
justify :
{
left : 'Links uitlijnen',
center : 'Centreren',
right : 'Rechts uitlijnen',
block : 'Uitvullen'
},
blockquote : 'Citaatblok',
clipboard :
{
title : 'Plakken',
cutError : 'De beveiligingsinstelling van de browser verhinderen het automatisch knippen. Gebruik de sneltoets Ctrl/Cmd+X van het toetsenbord.',
copyError : 'De beveiligingsinstelling van de browser verhinderen het automatisch kopiëren. Gebruik de sneltoets Ctrl/Cmd+C van het toetsenbord.',
pasteMsg : 'Plak de tekst in het volgende vak gebruik makend van uw toetsenbord (<strong>Ctrl/Cmd+V</strong>) en klik op <strong>OK</strong>.',
securityMsg : 'Door de beveiligingsinstellingen van uw browser is het niet mogelijk om direct vanuit het klembord in de editor te plakken. Middels opnieuw plakken in dit venster kunt u de tekst alsnog plakken in de editor.',
pasteArea : 'Plakgebied'
},
pastefromword :
{
confirmCleanup : 'De tekst die u plakte lijkt gekopieerd te zijn vanuit Word. Wilt u de tekst opschonen voordat deze geplakt wordt?',
toolbar : 'Plakken als Word-gegevens',
title : 'Plakken als Word-gegevens',
error : 'Het was niet mogelijk om de geplakte tekst op te schonen door een interne fout'
},
pasteText :
{
button : 'Plakken als platte tekst',
title : 'Plakken als platte tekst'
},
templates :
{
button : 'Sjablonen',
title : 'Inhoud sjabonen',
options : 'Template opties',
insertOption : 'Vervang de huidige inhoud',
selectPromptMsg : 'Selecteer het sjabloon dat in de editor geopend moet worden (de actuele inhoud gaat verloren):',
emptyListMsg : '(Geen sjablonen gedefinieerd)'
},
showBlocks : 'Toon blokken',
stylesCombo :
{
label : 'Stijl',
panelTitle : 'Opmaakstijlen',
panelTitle1 : 'Blok stijlen',
panelTitle2 : 'In-line stijlen',
panelTitle3 : 'Object stijlen'
},
format :
{
label : 'Opmaak',
panelTitle : 'Opmaak',
tag_p : 'Normaal',
tag_pre : 'Met opmaak',
tag_address : 'Adres',
tag_h1 : 'Kop 1',
tag_h2 : 'Kop 2',
tag_h3 : 'Kop 3',
tag_h4 : 'Kop 4',
tag_h5 : 'Kop 5',
tag_h6 : 'Kop 6',
tag_div : 'Normaal (DIV)'
},
div :
{
title : 'Div aanmaken',
toolbar : 'Div aanmaken',
cssClassInputLabel : 'Stylesheet klassen',
styleSelectLabel : 'Stijl',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Taalcode',
inlineStyleInputLabel : 'Inline stijl',
advisoryTitleInputLabel : 'informatieve titel',
langDirLabel : 'Schrijfrichting',
langDirLTRLabel : 'Links naar rechts (LTR)',
langDirRTLLabel : 'Rechts naar links (RTL)',
edit : 'Div wijzigen',
remove : 'Div verwijderen'
},
iframe :
{
title : 'IFrame eigenschappen',
toolbar : 'IFrame',
noUrl : 'Geef de IFrame URL in',
scrolling : 'Scrollbalken inschakelen',
border : 'Framerand tonen'
},
font :
{
label : 'Lettertype',
voiceLabel : 'Lettertype',
panelTitle : 'Lettertype'
},
fontSize :
{
label : 'Lettergrootte',
voiceLabel : 'Lettergrootte',
panelTitle : 'Lettergrootte'
},
colorButton :
{
textColorTitle : 'Tekstkleur',
bgColorTitle : 'Achtergrondkleur',
panelTitle : 'Kleuren',
auto : 'Automatisch',
more : 'Meer kleuren...'
},
colors :
{
'000' : 'Zwart',
'800000' : 'Kastanjebruin',
'8B4513' : 'Chocoladebruin',
'2F4F4F' : 'Donkerleigrijs',
'008080' : 'Blauwgroen',
'000080' : 'Marine',
'4B0082' : 'Indigo',
'696969' : 'Donkergrijs',
'B22222' : 'Baksteen',
'A52A2A' : 'Bruin',
'DAA520' : 'Donkergeel',
'006400' : 'Donkergroen',
'40E0D0' : 'Turquoise',
'0000CD' : 'Middenblauw',
'800080' : 'Paars',
'808080' : 'Grijs',
'F00' : 'Rood',
'FF8C00' : 'Donkeroranje',
'FFD700' : 'Goud',
'008000' : 'Groen',
'0FF' : 'Cyaan',
'00F' : 'Blauw',
'EE82EE' : 'Violet',
'A9A9A9' : 'Donkergrijs',
'FFA07A' : 'Lichtzalm',
'FFA500' : 'Oranje',
'FFFF00' : 'Geel',
'00FF00' : 'Felgroen',
'AFEEEE' : 'Lichtturquoise',
'ADD8E6' : 'Lichtblauw',
'DDA0DD' : 'Pruim',
'D3D3D3' : 'Lichtgrijs',
'FFF0F5' : 'Linnen',
'FAEBD7' : 'Ivoor',
'FFFFE0' : 'Lichtgeel',
'F0FFF0' : 'Honingdauw',
'F0FFFF' : 'Azuur',
'F0F8FF' : 'Licht hemelsblauw',
'E6E6FA' : 'Lavendel',
'FFF' : 'Wit'
},
scayt :
{
title : 'Controleer de spelling tijdens het typen',
opera_title : 'Niet ondersteund door Opera',
enable : 'SCAYT inschakelen',
disable : 'SCAYT uitschakelen',
about : 'Over SCAYT',
toggle : 'SCAYT in/uitschakelen',
options : 'Opties',
langs : 'Talen',
moreSuggestions : 'Meer suggesties',
ignore : 'Negeren',
ignoreAll : 'Alles negeren',
addWord : 'Woord toevoegen',
emptyDic : 'De naam van het woordenboek mag niet leeg zijn.',
optionsTab : 'Opties',
allCaps : 'Negeer woorden helemaal in hoofdletters',
ignoreDomainNames : 'Negeer domeinnamen',
mixedCase : 'Negeer woorden met hoofd- en kleine letters',
mixedWithDigits : 'Negeer woorden met cijfers',
languagesTab : 'Talen',
dictionariesTab : 'Woordenboeken',
dic_field_name : 'Naam woordenboek',
dic_create : 'Aanmaken',
dic_restore : 'Terugzetten',
dic_delete : 'Verwijderen',
dic_rename : 'Hernoemen',
dic_info : 'Initieel wordt het gebruikerswoordenboek opgeslagen in een cookie. Cookies zijn echter beperkt in grootte. Zodra het gebruikerswoordenboek het punt bereikt waarop het niet meer in een cookie opgeslagen kan worden, dan wordt het woordenboek op de server opgeslagen. Om je persoonlijke woordenboek op je eigen server op te slaan, moet je een mapnaam opgeven. Indien je al een woordenboek hebt opgeslagen, typ dan de naam en klik op de Terugzetten knop.',
aboutTab : 'Over'
},
about :
{
title : 'Over CKEditor',
dlgTitle : 'Over CKEditor',
help : 'Bekijk $1 voor hulp.',
userGuide : 'CKEditor gebruiksaanwijzing',
moreInfo : 'Voor licentie informatie, bezoek onze website:',
copy : 'Copyright © $1. Alle rechten voorbehouden.'
},
maximize : 'Maximaliseren',
minimize : 'Minimaliseren',
fakeobjects :
{
anchor : 'Anker',
flash : 'Flash animatie',
iframe : 'IFrame',
hiddenfield : 'Verborgen veld',
unknown : 'Onbekend object'
},
resize : 'Sleep om te herschalen',
colordialog :
{
title : 'Selecteer kleur',
options : 'Kleuropties',
highlight : 'Actief',
selected : 'Geselecteerd',
clear : 'Wissen'
},
toolbarCollapse : 'Werkbalk inklappen',
toolbarExpand : 'Werkbalk uitklappen',
toolbarGroups :
{
document : 'Document',
clipboard : 'Klembord/Ongedaan maken',
editing : 'Bewerken',
forms : 'Formulieren',
basicstyles : 'Basisstijlen',
paragraph : 'Paragraaf',
links : 'Links',
insert : 'Invoegen',
styles : 'Stijlen',
colors : 'Kleuren',
tools : 'Toepassingen'
},
bidi :
{
ltr : 'Schrijfrichting van links naar rechts',
rtl : 'Schrijfrichting van rechts naar links'
},
docprops :
{
label : 'Documenteigenschappen',
title : 'Documenteigenschappen',
design : 'Ontwerp',
meta : 'Meta tags',
chooseColor : 'Kiezen',
other : 'Anders...',
docTitle : 'Paginatitel',
charset : 'Tekencodering',
charsetOther : 'Andere tekencodering',
charsetASCII : 'ASCII',
charsetCE : 'Centraal Europees',
charsetCT : 'Tranditioneel Chinees (Big5)',
charsetCR : 'Cyrillisch',
charsetGR : 'Grieks',
charsetJP : 'Japans',
charsetKR : 'Koreaans',
charsetTR : 'Turks',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'West Europees',
docType : 'Documenttype-definitie',
docTypeOther : 'Andere documenttype-definitie',
xhtmlDec : 'XHTML declaratie invoegen',
bgColor : 'Achtergrondkleur',
bgImage : 'Achtergrondafbeelding URL',
bgFixed : 'Niet-scrollend (gefixeerde) achtergrond',
txtColor : 'Tekstkleur',
margin : 'Pagina marges',
marginTop : 'Boven',
marginLeft : 'Links',
marginRight : 'Rechts',
marginBottom : 'Onder',
metaKeywords : 'Trefwoorden voor indexering (komma-gescheiden)',
metaDescription : 'Documentbeschrijving',
metaAuthor : 'Auteur',
metaCopyright : 'Auteursrechten',
previewHtml : '<p>Dit is <strong>voorbeeld tekst</strong>. Je gebruikt <a href="javascript:void(0)">CKEditor</a>.</p>'
}
}; | zope.html | /zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/_source/lang/nl.js | nl.js |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.