code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'pl', { uicolor : { title : 'Wybór koloru interfejsu', preview : 'Podgląd na żywo', config : 'Wklej poniższy łańcuch znaków do pliku config.js:', predefined : 'Predefiniowane zestawy kolorów' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'cs', { uicolor : { title : 'Výběr barvy rozhraní', preview : 'Živý náhled', config : 'Vložte tento řetězec do Vašeho souboru config.js', predefined : 'Přednastavené sady barev' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'hr', { uicolor : { title : 'UI odabir boja', preview : 'Pregled uživo', config : 'Zalijepite ovaj tekst u Vašu config.js datoteku.', predefined : 'Već postavljeni setovi boja' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'fi', { uicolor : { title : 'Käyttöliittymän värivalitsin', preview : 'Esikatsele', config : 'Liitä tämä merkkijono config.js tiedostoosi', predefined : 'Esimääritellyt värijoukot' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'ug', { uicolor : { title : 'ئىشلەتكۈچى ئارايۈزى رەڭ تاللىغۇچ', preview : 'شۇئان ئالدىن كۆزىتىش', config : 'بۇ ھەرپ تىزىقىنى config.js ھۆججەتكە چاپلايدۇ', predefined : 'ئالدىن بەلگىلەنگەن رەڭلەر' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'zh-cn', { uicolor : { title : '用户界面颜色选择器', preview : '即时预览', config : '粘贴此字符串到您的 config.js 文件', predefined : '预定义颜色集' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'bg', { uicolor : { title : 'ПИ избор на цвят', preview : 'Преглед', config : 'Вмъкнете този низ във Вашия config.js fajl', predefined : 'Предефинирани цветови палитри' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'en', { uicolor : { title : 'UI Color Picker', preview : 'Live preview', config : 'Paste this string into your config.js file', predefined : 'Predefined color sets' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'uicolor', function( editor ) { var dialog, picker, pickerContents, // Actual UI color value. uiColor = editor.getUiColor(), pickerId = 'cke_uicolor_picker' + CKEDITOR.tools.getNextNumber(); function setNewPickerColor( color ) { // Convert HEX representation to RGB, stripping # char. if ( /^#/.test( color ) ) color = window.YAHOO.util.Color.hex2rgb( color.substr( 1 ) ); picker.setValue( color, true ); // Refresh picker UI. picker.refresh( pickerId ); } function setNewUiColor( color, force ) { if ( force || dialog._.contents.tab1.livePeview.getValue() ) editor.setUiColor( color ); // Write new config string into textbox. dialog._.contents.tab1.configBox.setValue( 'config.uiColor = "#' + picker.get( "hex" ) + '"' ); } pickerContents = { id : 'yuiColorPicker', type : 'html', html : "<div id='" + pickerId + "' class='cke_uicolor_picker' style='width: 360px; height: 200px; position: relative;'></div>", onLoad : function( event ) { var url = CKEDITOR.getUrl( '_source/' + // @Packager.RemoveLine 'plugins/uicolor/yui/' ); // Create new color picker widget. picker = new window.YAHOO.widget.ColorPicker( pickerId, { showhsvcontrols : true, showhexcontrols : true, images : { PICKER_THUMB : url + "assets/picker_thumb.png", HUE_THUMB : url + "assets/hue_thumb.png" } }); // Set actual UI color to the picker. if ( uiColor ) setNewPickerColor( uiColor ); // Subscribe to the rgbChange event. picker.on( "rgbChange", function() { // Reset predefined box. dialog._.contents.tab1.predefined.setValue( '' ); setNewUiColor( '#' + picker.get( 'hex' ) ); }); // Fix input class names. var inputs = new CKEDITOR.dom.nodeList( picker.getElementsByTagName( 'input' ) ); for ( var i = 0; i < inputs.count() ; i++ ) inputs.getItem( i ).addClass( 'cke_dialog_ui_input_text' ); } }; var skipPreviewChange = true; return { title : editor.lang.uicolor.title, minWidth : 360, minHeight : 320, onLoad : function() { dialog = this; this.setupContent(); // #3808 if ( CKEDITOR.env.ie7Compat ) dialog.parts.contents.setStyle( 'overflow', 'hidden' ); }, contents : [ { id : 'tab1', label : '', title : '', expand : true, padding : 0, elements : [ pickerContents, { id : 'tab1', type : 'vbox', children : [ { id : 'livePeview', type : 'checkbox', label : editor.lang.uicolor.preview, 'default' : 1, onLoad : function() { skipPreviewChange = true; }, onChange : function() { if ( skipPreviewChange ) return; var on = this.getValue(), color = on ? '#' + picker.get( 'hex' ) : uiColor; setNewUiColor( color, true ); } }, { type : 'hbox', children : [ { id : 'predefined', type : 'select', 'default' : '', label : editor.lang.uicolor.predefined, items : [ [ '' ], [ 'Light blue', '#9AB8F3' ], [ 'Sand', '#D2B48C' ], [ 'Metallic', '#949AAA' ], [ 'Purple', '#C2A3C7' ], [ 'Olive', '#A2C980' ], [ 'Happy green', '#9BD446' ], [ 'Jezebel Blue', '#14B8C4' ], [ 'Burn', '#FF893A' ], [ 'Easy red', '#FF6969' ], [ 'Pisces 3', '#48B4F2' ], [ 'Aquarius 5', '#487ED4' ], [ 'Absinthe', '#A8CF76' ], [ 'Scrambled Egg', '#C7A622' ], [ 'Hello monday', '#8E8D80' ], [ 'Lovely sunshine', '#F1E8B1' ], [ 'Recycled air', '#B3C593' ], [ 'Down', '#BCBCA4' ], [ 'Mark Twain', '#CFE91D' ], [ 'Specks of dust', '#D1B596' ], [ 'Lollipop', '#F6CE23' ] ], onChange : function() { var color = this.getValue(); if ( color ) { setNewPickerColor( color ); setNewUiColor( color ); // Refresh predefined preview box. CKEDITOR.document.getById( 'predefinedPreview' ).setStyle( 'background', color ); } else CKEDITOR.document.getById( 'predefinedPreview' ).setStyle( 'background', '' ); }, onShow : function() { var color = editor.getUiColor(); if ( color ) this.setValue( color ); } }, { id : 'predefinedPreview', type : 'html', html : '<div id="cke_uicolor_preview" style="border: 1px solid black; padding: 3px; width: 30px;">' + '<div id="predefinedPreview" style="width: 30px; height: 30px;">&nbsp;</div>' + '</div>' } ] }, { id : 'configBox', type : 'text', label : editor.lang.uicolor.config, onShow : function() { var color = editor.getUiColor(); if ( color ) this.setValue( 'config.uiColor = "' + color + '"' ); } } ] } ] } ], buttons : [ CKEDITOR.dialog.okButton ] }; } );
JavaScript
/* Copyright (c) 2003-2012, 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 ); } } ); })(); } } );
JavaScript
/* Copyright (c) 2003-2012, 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';
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { function addCombo( editor, comboName, styleType, lang, entries, defaultLabel, styleDefinition ) { var config = editor.config; // Gets the list of fonts from the settings. var names = entries.split( ';' ), values = []; // Create style objects for all fonts. var styles = {}; for ( var i = 0 ; i < names.length ; i++ ) { var parts = names[ i ]; if ( parts ) { parts = parts.split( '/' ); var vars = {}, name = names[ i ] = parts[ 0 ]; vars[ styleType ] = values[ i ] = parts[ 1 ] || name; styles[ name ] = new CKEDITOR.style( styleDefinition, vars ); styles[ name ]._.definition.name = name; } else names.splice( i--, 1 ); } editor.ui.addRichCombo( comboName, { label : lang.label, title : lang.panelTitle, className : 'cke_' + ( styleType == 'size' ? 'fontSize' : 'font' ), panel : { css : editor.skin.editor.css.concat( config.contentsCss ), multiSelect : false, attributes : { 'aria-label' : lang.panelTitle } }, init : function() { this.startGroup( lang.panelTitle ); for ( var i = 0 ; i < names.length ; i++ ) { var name = names[ i ]; // Add the tag entry to the panel list. this.add( name, styles[ name ].buildPreview(), name ); } }, onClick : function( value ) { editor.focus(); editor.fire( 'saveSnapshot' ); var style = styles[ value ]; if ( this.getValue() == value ) style.remove( editor.document ); else style.apply( editor.document ); editor.fire( 'saveSnapshot' ); }, onRender : function() { editor.on( 'selectionChange', function( ev ) { var currentValue = this.getValue(); var elementPath = ev.data.path, elements = elementPath.elements; // For each element into the elements path. for ( var i = 0, element ; i < elements.length ; i++ ) { element = elements[i]; // Check if the element is removable by any of // the styles. for ( var value in styles ) { if ( styles[ value ].checkElementMatch( element, true ) ) { if ( value != currentValue ) this.setValue( value ); return; } } } // If no styles match, just empty it. this.setValue( '', defaultLabel ); }, this); } }); } CKEDITOR.plugins.add( 'font', { requires : [ 'richcombo', 'styles' ], init : function( editor ) { var config = editor.config; addCombo( editor, 'Font', 'family', editor.lang.font, config.font_names, config.font_defaultLabel, config.font_style ); addCombo( editor, 'FontSize', 'size', editor.lang.fontSize, config.fontSize_sizes, config.fontSize_defaultLabel, config.fontSize_style ); } }); })(); /** * The list of fonts names to be displayed in the Font combo in the toolbar. * Entries are separated by semi-colons (;), while it's possible to have more * than one font for each entry, in the HTML way (separated by comma). * * A display name may be optionally defined by prefixing the entries with the * name and the slash character. For example, "Arial/Arial, Helvetica, sans-serif" * will be displayed as "Arial" in the list, but will be outputted as * "Arial, Helvetica, sans-serif". * @type String * @example * config.font_names = * 'Arial/Arial, Helvetica, sans-serif;' + * 'Times New Roman/Times New Roman, Times, serif;' + * 'Verdana'; * @example * config.font_names = 'Arial;Times New Roman;Verdana'; */ CKEDITOR.config.font_names = 'Arial/Arial, Helvetica, sans-serif;' + 'Comic Sans MS/Comic Sans MS, cursive;' + 'Courier New/Courier New, Courier, monospace;' + 'Georgia/Georgia, serif;' + 'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' + 'Tahoma/Tahoma, Geneva, sans-serif;' + 'Times New Roman/Times New Roman, Times, serif;' + 'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' + 'Verdana/Verdana, Geneva, sans-serif'; /** * The text to be displayed in the Font combo is none of the available values * matches the current cursor position or text selection. * @type String * @example * // If the default site font is Arial, we may making it more explicit to the end user. * config.font_defaultLabel = 'Arial'; */ CKEDITOR.config.font_defaultLabel = ''; /** * The style definition to be used to apply the font in the text. * @type Object * @example * // This is actually the default value for it. * config.font_style = * { * element : 'span', * styles : { 'font-family' : '#(family)' }, * overrides : [ { element : 'font', attributes : { 'face' : null } } ] * }; */ CKEDITOR.config.font_style = { element : 'span', styles : { 'font-family' : '#(family)' }, overrides : [ { element : 'font', attributes : { 'face' : null } } ] }; /** * The list of fonts size to be displayed in the Font Size combo in the * toolbar. Entries are separated by semi-colons (;). * * Any kind of "CSS like" size can be used, like "12px", "2.3em", "130%", * "larger" or "x-small". * * A display name may be optionally defined by prefixing the entries with the * name and the slash character. For example, "Bigger Font/14px" will be * displayed as "Bigger Font" in the list, but will be outputted as "14px". * @type String * @default '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px' * @example * config.fontSize_sizes = '16/16px;24/24px;48/48px;'; * @example * config.fontSize_sizes = '12px;2.3em;130%;larger;x-small'; * @example * config.fontSize_sizes = '12 Pixels/12px;Big/2.3em;30 Percent More/130%;Bigger/larger;Very Small/x-small'; */ CKEDITOR.config.fontSize_sizes = '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px'; /** * The text to be displayed in the Font Size combo is none of the available * values matches the current cursor position or text selection. * @type String * @example * // If the default site font size is 12px, we may making it more explicit to the end user. * config.fontSize_defaultLabel = '12px'; */ CKEDITOR.config.fontSize_defaultLabel = ''; /** * The style definition to be used to apply the font size in the text. * @type Object * @example * // This is actually the default value for it. * config.fontSize_style = * { * element : 'span', * styles : { 'font-size' : '#(size)' }, * overrides : [ { element : 'font', attributes : { 'size' : null } } ] * }; */ CKEDITOR.config.fontSize_style = { element : 'span', styles : { 'font-size' : '#(size)' }, overrides : [ { element : 'font', attributes : { 'size' : null } } ] };
JavaScript
/* Copyright (c) 2003-2012, 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 : '&lt;h3>This is some sample HTML content.&lt;/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>&lt;div id="myDiv">Sample &lt;b>text&lt;/b>.&lt;/div></b>&lt;div id="otherId">Another div.&lt;/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 */
JavaScript
/* Copyright (c) 2003-2012, 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, tabsToRemove = {}, i, processed, stopPropagation; 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; // 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( offset ) { var focusList = me._.focusList; offset = offset || 0; 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 ( offset && !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; function keydownHandler( 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', button; processed = stopPropagation = 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 ? -1 : 1 ); } 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( 1 ); processed = 1; } // If user presses enter key in a text box, it implies clicking OK for the dialog. else if ( keystroke == 13 /*ENTER*/ ) { // Don't do that for a target that handles ENTER. var target = evt.data.getTarget(); if ( !target.is( 'a', 'button', 'select', 'textarea' ) && ( !target.is( 'input' ) || target.$.type != 'button' ) ) { button = this.getButton( 'ok' ); button && CKEDITOR.tools.setTimeout( button.click, 0, button ); processed = 1; } stopPropagation = 1; // Always block the propagation (#4269) } else if ( keystroke == 27 /*ESC*/ ) { button = this.getButton( 'cancel' ); // If there's a Cancel button, click it, else just fire the cancel event and hide the dialog. if ( button ) CKEDITOR.tools.setTimeout( button.click, 0, button ); else { if ( this.fire( 'cancel', { hide : true } ).hide !== false ) this.hide(); } stopPropagation = 1; // Always block the propagation (#4269) } else return; keypressHandler( evt ); } function keypressHandler( evt ) { if ( processed ) evt.data.preventDefault(1); else if ( stopPropagation ) evt.data.stopPropagation(); } var dialogElement = this._.element; // Add the dialog keyboard handlers. this.on( 'show', function() { dialogElement.on( 'keydown', keydownHandler, 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. (#4531,#8985) if ( CKEDITOR.env.opera || CKEDITOR.env.gecko ) dialogElement.on( 'keypress', keypressHandler, this ); } ); this.on( 'hide', function() { dialogElement.removeListener( 'keydown', keydownHandler ); if ( CKEDITOR.env.opera || CKEDITOR.env.gecko ) dialogElement.removeListener( 'keypress', keypressHandler ); // 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', keydownHandler, 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( 1 ); /* * 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 ( 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( 1 ); } 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' ); } ); } // Re-layout the dialog on window resize. function resizeWithWindow( dialog ) { var win = CKEDITOR.document.getWindow(); function resizeHandler() { dialog.layout(); } win.on( 'resize', resizeHandler ); dialog.on( 'hide', function() { win.removeListener( 'resize', resizeHandler ); } ); } 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( 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'; var 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. if ( CKEDITOR.dialog._.currentTop === null ) { CKEDITOR.dialog._.currentTop = this; this._.parentDialog = null; showCover( this._.editor ); } 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; } element.on( 'keydown', accessKeyDownHandler ); element.on( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler ); // Reset the hasFocus state. this._.hasFocus = false; CKEDITOR.tools.setTimeout( function() { this.layout(); resizeWithWindow( this ); 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 el = this.parts.dialog; var dialogSize = this.getSize(); var win = CKEDITOR.document.getWindow(), viewSize = win.getViewPaneSize(); var posX = ( viewSize.width - dialogSize.width ) / 2, posY = ( viewSize.height - dialogSize.height ) / 2; // Switch to absolute position when viewport is smaller than dialog size. if ( !CKEDITOR.env.ie6Compat ) { if ( dialogSize.height + ( posY > 0 ? posY : 0 ) > viewSize.height || dialogSize.width + ( posX > 0 ? posX : 0 ) > viewSize.width ) el.setStyle( 'position', 'absolute' ); else el.setStyle( 'position', 'fixed' ); } this.move( this._.moved ? this._.position.x : posX, this._.moved ? this._.position.y : posY ); }, /** * 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 ); // Reset the tab page. this.selectPage( this._.tabIdList[ 0 ] ); 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 ); 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 &lt;span&gt; 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 : '&lt;p&gt;This is some sample HTML content.&lt;/p&gt;' * }, * { * 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 ) { }; (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() ) * &nbsp;&nbsp;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( {}, * &nbsp;&nbsp;CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, * &nbsp;&nbsp;{ onClick : function( dialog, func ) { this.on( 'click', func ); } }, * &nbsp;&nbsp;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. */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'styles', { requires : [ 'selection' ], init : function( editor ) { // This doesn't look like correct, but it's the safest way to proper // pass the disableReadonlyStyling configuration to the style system // without having to change any method signature in the API. (#6103) editor.on( 'contentDom', function() { editor.document.setCustomData( 'cke_includeReadonly', !editor.config.disableReadonlyStyling ); }); } }); /** * Registers a function to be called whenever the selection position changes in the * editing area. The current state is passed to the function. The possible * states are {@link CKEDITOR.TRISTATE_ON} and {@link CKEDITOR.TRISTATE_OFF}. * @param {CKEDITOR.style} style The style to be watched. * @param {Function} callback The function to be called. * @example * // Create a style object for the &lt;b&gt; element. * var style = new CKEDITOR.style( { element : 'b' } ); * var editor = CKEDITOR.instances.editor1; * editor.attachStyleStateChange( style, function( state ) * { * if ( state == CKEDITOR.TRISTATE_ON ) * alert( 'The current state for the B element is ON' ); * else * alert( 'The current state for the B element is OFF' ); * }); */ CKEDITOR.editor.prototype.attachStyleStateChange = function( style, callback ) { // Try to get the list of attached callbacks. var styleStateChangeCallbacks = this._.styleStateChangeCallbacks; // If it doesn't exist, it means this is the first call. So, let's create // all the structure to manage the style checks and the callback calls. if ( !styleStateChangeCallbacks ) { // Create the callbacks array. styleStateChangeCallbacks = this._.styleStateChangeCallbacks = []; // Attach to the selectionChange event, so we can check the styles at // that point. this.on( 'selectionChange', function( ev ) { // Loop throw all registered callbacks. for ( var i = 0 ; i < styleStateChangeCallbacks.length ; i++ ) { var callback = styleStateChangeCallbacks[ i ]; // Check the current state for the style defined for that // callback. var currentState = callback.style.checkActive( ev.data.path ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF; // Call the callback function, passing the current // state to it. callback.fn.call( this, currentState ); } }); } // Save the callback info, so it can be checked on the next occurrence of // selectionChange. styleStateChangeCallbacks.push( { style : style, fn : callback } ); }; CKEDITOR.STYLE_BLOCK = 1; CKEDITOR.STYLE_INLINE = 2; CKEDITOR.STYLE_OBJECT = 3; (function() { var blockElements = { address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1 }, objectElements = { a:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1 }; var semicolonFixRegex = /\s*(?:;\s*|$)/, varRegex = /#\((.+?)\)/g; var notBookmark = CKEDITOR.dom.walker.bookmark( 0, 1 ), nonWhitespaces = CKEDITOR.dom.walker.whitespaces( 1 ); CKEDITOR.style = function( styleDefinition, variablesValues ) { // Inline style text as attribute should be converted // to styles object. var attrs = styleDefinition.attributes; if ( attrs && attrs.style ) { styleDefinition.styles = CKEDITOR.tools.extend( {}, styleDefinition.styles, parseStyleText( attrs.style ) ); delete attrs.style; } if ( variablesValues ) { styleDefinition = CKEDITOR.tools.clone( styleDefinition ); replaceVariables( styleDefinition.attributes, variablesValues ); replaceVariables( styleDefinition.styles, variablesValues ); } var element = this.element = styleDefinition.element ? ( typeof styleDefinition.element == 'string' ? styleDefinition.element.toLowerCase() : styleDefinition.element ) : '*'; this.type = blockElements[ element ] ? CKEDITOR.STYLE_BLOCK : objectElements[ element ] ? CKEDITOR.STYLE_OBJECT : CKEDITOR.STYLE_INLINE; // If the 'element' property is an object with a set of possible element, it will be applied like an object style: only to existing elements if ( typeof this.element == 'object' ) this.type = CKEDITOR.STYLE_OBJECT; this._ = { definition : styleDefinition }; }; CKEDITOR.style.prototype = { apply : function( document ) { applyStyle.call( this, document, false ); }, remove : function( document ) { applyStyle.call( this, document, true ); }, applyToRange : function( range ) { return ( this.applyToRange = this.type == CKEDITOR.STYLE_INLINE ? applyInlineStyle : this.type == CKEDITOR.STYLE_BLOCK ? applyBlockStyle : this.type == CKEDITOR.STYLE_OBJECT ? applyObjectStyle : null ).call( this, range ); }, removeFromRange : function( range ) { return ( this.removeFromRange = this.type == CKEDITOR.STYLE_INLINE ? removeInlineStyle : this.type == CKEDITOR.STYLE_BLOCK ? removeBlockStyle : this.type == CKEDITOR.STYLE_OBJECT ? removeObjectStyle : null ).call( this, range ); }, applyToObject : function( element ) { setupElement( element, this ); }, /** * Get the style state inside an element path. Returns "true" if the * element is active in the path. */ checkActive : function( elementPath ) { switch ( this.type ) { case CKEDITOR.STYLE_BLOCK : return this.checkElementRemovable( elementPath.block || elementPath.blockLimit, true ); case CKEDITOR.STYLE_OBJECT : case CKEDITOR.STYLE_INLINE : var elements = elementPath.elements; for ( var i = 0, element ; i < elements.length ; i++ ) { element = elements[ i ]; if ( this.type == CKEDITOR.STYLE_INLINE && ( element == elementPath.block || element == elementPath.blockLimit ) ) continue; if( this.type == CKEDITOR.STYLE_OBJECT ) { var name = element.getName(); if ( !( typeof this.element == 'string' ? name == this.element : name in this.element ) ) continue; } if ( this.checkElementRemovable( element, true ) ) return true; } } return false; }, /** * Whether this style can be applied at the element path. * @param elementPath */ checkApplicable : function( elementPath ) { switch ( this.type ) { case CKEDITOR.STYLE_INLINE : case CKEDITOR.STYLE_BLOCK : break; case CKEDITOR.STYLE_OBJECT : return elementPath.lastElement.getAscendant( this.element, true ); } return true; }, // Check if the element matches the current style definition. checkElementMatch : function( element, fullMatch ) { var def = this._.definition; if ( !element || !def.ignoreReadonly && element.isReadOnly() ) return false; var attribs, name = element.getName(); // If the element name is the same as the style name. if ( typeof this.element == 'string' ? name == this.element : name in this.element ) { // If no attributes are defined in the element. if ( !fullMatch && !element.hasAttributes() ) return true; attribs = getAttributesForComparison( def ); if ( attribs._length ) { for ( var attName in attribs ) { if ( attName == '_length' ) continue; var elementAttr = element.getAttribute( attName ) || ''; // Special treatment for 'style' attribute is required. if ( attName == 'style' ? compareCssText( attribs[ attName ], normalizeCssText( elementAttr, false ) ) : attribs[ attName ] == elementAttr ) { if ( !fullMatch ) return true; } else if ( fullMatch ) return false; } if ( fullMatch ) return true; } else return true; } return false; }, // Checks if an element, or any of its attributes, is removable by the // current style definition. checkElementRemovable : function( element, fullMatch ) { // Check element matches the style itself. if ( this.checkElementMatch( element, fullMatch ) ) return true; // Check if the element matches the style overrides. var override = getOverrides( this )[ element.getName() ] ; if ( override ) { var attribs, attName; // If no attributes have been defined, remove the element. if ( !( attribs = override.attributes ) ) return true; for ( var i = 0 ; i < attribs.length ; i++ ) { attName = attribs[i][0]; var actualAttrValue = element.getAttribute( attName ); if ( actualAttrValue ) { var attValue = attribs[i][1]; // Remove the attribute if: // - The override definition value is null; // - The override definition value is a string that // matches the attribute value exactly. // - The override definition value is a regex that // has matches in the attribute value. if ( attValue === null || ( typeof attValue == 'string' && actualAttrValue == attValue ) || attValue.test( actualAttrValue ) ) return true; } } } return false; }, // Builds the preview HTML based on the styles definition. buildPreview : function( label ) { var styleDefinition = this._.definition, html = [], elementName = styleDefinition.element; // Avoid <bdo> in the preview. if ( elementName == 'bdo' ) elementName = 'span'; html = [ '<', elementName ]; // Assign all defined attributes. var attribs = styleDefinition.attributes; if ( attribs ) { for ( var att in attribs ) { html.push( ' ', att, '="', attribs[ att ], '"' ); } } // Assign the style attribute. var cssStyle = CKEDITOR.style.getStyleText( styleDefinition ); if ( cssStyle ) html.push( ' style="', cssStyle, '"' ); html.push( '>', ( label || styleDefinition.name ), '</', elementName, '>' ); return html.join( '' ); } }; // Build the cssText based on the styles definition. CKEDITOR.style.getStyleText = function( styleDefinition ) { // If we have already computed it, just return it. var stylesDef = styleDefinition._ST; if ( stylesDef ) return stylesDef; stylesDef = styleDefinition.styles; // Builds the StyleText. var stylesText = ( styleDefinition.attributes && styleDefinition.attributes[ 'style' ] ) || '', specialStylesText = ''; if ( stylesText.length ) stylesText = stylesText.replace( semicolonFixRegex, ';' ); for ( var style in stylesDef ) { var styleVal = stylesDef[ style ], text = ( style + ':' + styleVal ).replace( semicolonFixRegex, ';' ); // Some browsers don't support 'inherit' property value, leave them intact. (#5242) if ( styleVal == 'inherit' ) specialStylesText += text; else stylesText += text; } // Browsers make some changes to the style when applying them. So, here // we normalize it to the browser format. if ( stylesText.length ) stylesText = normalizeCssText( stylesText ); stylesText += specialStylesText; // Return it, saving it to the next request. return ( styleDefinition._ST = stylesText ); }; // Gets the parent element which blocks the styling for an element. This // can be done through read-only elements (contenteditable=false) or // elements with the "data-nostyle" attribute. function getUnstylableParent( element ) { var unstylable, editable; while ( ( element = element.getParent() ) ) { if ( element.getName() == 'body' ) break; if ( element.getAttribute( 'data-nostyle' ) ) unstylable = element; else if ( !editable ) { var contentEditable = element.getAttribute( 'contentEditable' ); if ( contentEditable == 'false' ) unstylable = element; else if ( contentEditable == 'true' ) editable = 1; } } return unstylable; } function applyInlineStyle( range ) { var document = range.document; if ( range.collapsed ) { // Create the element to be inserted in the DOM. var collapsedElement = getElement( this, document ); // Insert the empty element into the DOM at the range position. range.insertNode( collapsedElement ); // Place the selection right inside the empty element. range.moveToPosition( collapsedElement, CKEDITOR.POSITION_BEFORE_END ); return; } var elementName = this.element; var def = this._.definition; var isUnknownElement; // Indicates that fully selected read-only elements are to be included in the styling range. var ignoreReadonly = def.ignoreReadonly, includeReadonly = ignoreReadonly || def.includeReadonly; // If the read-only inclusion is not available in the definition, try // to get it from the document data. if ( includeReadonly == undefined ) includeReadonly = document.getCustomData( 'cke_includeReadonly' ); // Get the DTD definition for the element. Defaults to "span". var dtd = CKEDITOR.dtd[ elementName ] || ( isUnknownElement = true, CKEDITOR.dtd.span ); // Expand the range. range.enlarge( CKEDITOR.ENLARGE_ELEMENT, 1 ); range.trim(); // Get the first node to be processed and the last, which concludes the // processing. var boundaryNodes = range.createBookmark(), firstNode = boundaryNodes.startNode, lastNode = boundaryNodes.endNode; var currentNode = firstNode; var styleRange; if ( !ignoreReadonly ) { // Check if the boundaries are inside non stylable elements. var firstUnstylable = getUnstylableParent( firstNode ), lastUnstylable = getUnstylableParent( lastNode ); // If the first element can't be styled, we'll start processing right // after its unstylable root. if ( firstUnstylable ) currentNode = firstUnstylable.getNextSourceNode( true ); // If the last element can't be styled, we'll stop processing on its // unstylable root. if ( lastUnstylable ) lastNode = lastUnstylable; } // Do nothing if the current node now follows the last node to be processed. if ( currentNode.getPosition( lastNode ) == CKEDITOR.POSITION_FOLLOWING ) currentNode = 0; while ( currentNode ) { var applyStyle = false; if ( currentNode.equals( lastNode ) ) { currentNode = null; applyStyle = true; } else { var nodeType = currentNode.type; var nodeName = nodeType == CKEDITOR.NODE_ELEMENT ? currentNode.getName() : null; var nodeIsReadonly = nodeName && ( currentNode.getAttribute( 'contentEditable' ) == 'false' ); var nodeIsNoStyle = nodeName && currentNode.getAttribute( 'data-nostyle' ); if ( nodeName && currentNode.data( 'cke-bookmark' ) ) { currentNode = currentNode.getNextSourceNode( true ); continue; } // Check if the current node can be a child of the style element. if ( !nodeName || ( dtd[ nodeName ] && !nodeIsNoStyle && ( !nodeIsReadonly || includeReadonly ) && ( currentNode.getPosition( lastNode ) | CKEDITOR.POSITION_PRECEDING | CKEDITOR.POSITION_IDENTICAL | CKEDITOR.POSITION_IS_CONTAINED ) == ( CKEDITOR.POSITION_PRECEDING + CKEDITOR.POSITION_IDENTICAL + CKEDITOR.POSITION_IS_CONTAINED ) && ( !def.childRule || def.childRule( currentNode ) ) ) ) { var currentParent = currentNode.getParent(); // Check if the style element can be a child of the current // node parent or if the element is not defined in the DTD. if ( currentParent && ( ( currentParent.getDtd() || CKEDITOR.dtd.span )[ elementName ] || isUnknownElement ) && ( !def.parentRule || def.parentRule( currentParent ) ) ) { // This node will be part of our range, so if it has not // been started, place its start right before the node. // In the case of an element node, it will be included // only if it is entirely inside the range. if ( !styleRange && ( !nodeName || !CKEDITOR.dtd.$removeEmpty[ nodeName ] || ( currentNode.getPosition( lastNode ) | CKEDITOR.POSITION_PRECEDING | CKEDITOR.POSITION_IDENTICAL | CKEDITOR.POSITION_IS_CONTAINED ) == ( CKEDITOR.POSITION_PRECEDING + CKEDITOR.POSITION_IDENTICAL + CKEDITOR.POSITION_IS_CONTAINED ) ) ) { styleRange = new CKEDITOR.dom.range( document ); styleRange.setStartBefore( currentNode ); } // Non element nodes, readonly elements, or empty // elements can be added completely to the range. if ( nodeType == CKEDITOR.NODE_TEXT || nodeIsReadonly || ( nodeType == CKEDITOR.NODE_ELEMENT && !currentNode.getChildCount() ) ) { var includedNode = currentNode; var parentNode; // This node is about to be included completelly, but, // if this is the last node in its parent, we must also // check if the parent itself can be added completelly // to the range, otherwise apply the style immediately. while ( ( applyStyle = !includedNode.getNext( notBookmark ) ) && ( parentNode = includedNode.getParent(), dtd[ parentNode.getName() ] ) && ( parentNode.getPosition( firstNode ) | CKEDITOR.POSITION_FOLLOWING | CKEDITOR.POSITION_IDENTICAL | CKEDITOR.POSITION_IS_CONTAINED ) == ( CKEDITOR.POSITION_FOLLOWING + CKEDITOR.POSITION_IDENTICAL + CKEDITOR.POSITION_IS_CONTAINED ) && ( !def.childRule || def.childRule( parentNode ) ) ) { includedNode = parentNode; } styleRange.setEndAfter( includedNode ); } } else applyStyle = true; } else applyStyle = true; // Get the next node to be processed. currentNode = currentNode.getNextSourceNode( nodeIsNoStyle || nodeIsReadonly ); } // Apply the style if we have something to which apply it. if ( applyStyle && styleRange && !styleRange.collapsed ) { // Build the style element, based on the style object definition. var styleNode = getElement( this, document ), styleHasAttrs = styleNode.hasAttributes(); // Get the element that holds the entire range. var parent = styleRange.getCommonAncestor(); var removeList = { styles : {}, attrs : {}, // Styles cannot be removed. blockedStyles : {}, // Attrs cannot be removed. blockedAttrs : {} }; var attName, styleName, value; // Loop through the parents, removing the redundant attributes // from the element to be applied. while ( styleNode && parent ) { if ( parent.getName() == elementName ) { for ( attName in def.attributes ) { if ( removeList.blockedAttrs[ attName ] || !( value = parent.getAttribute( styleName ) ) ) continue; if ( styleNode.getAttribute( attName ) == value ) removeList.attrs[ attName ] = 1; else removeList.blockedAttrs[ attName ] = 1; } for ( styleName in def.styles ) { if ( removeList.blockedStyles[ styleName ] || !( value = parent.getStyle( styleName ) ) ) continue; if ( styleNode.getStyle( styleName ) == value ) removeList.styles[ styleName ] = 1; else removeList.blockedStyles[ styleName ] = 1; } } parent = parent.getParent(); } for ( attName in removeList.attrs ) styleNode.removeAttribute( attName ); for ( styleName in removeList.styles ) styleNode.removeStyle( styleName ); if ( styleHasAttrs && !styleNode.hasAttributes() ) styleNode = null; if ( styleNode ) { // Move the contents of the range to the style element. styleRange.extractContents().appendTo( styleNode ); // Here we do some cleanup, removing all duplicated // elements from the style element. removeFromInsideElement( this, styleNode ); // Insert it into the range position (it is collapsed after // extractContents. styleRange.insertNode( styleNode ); // Let's merge our new style with its neighbors, if possible. styleNode.mergeSiblings(); // As the style system breaks text nodes constantly, let's normalize // things for performance. // With IE, some paragraphs get broken when calling normalize() // repeatedly. Also, for IE, we must normalize body, not documentElement. // IE is also known for having a "crash effect" with normalize(). // We should try to normalize with IE too in some way, somewhere. if ( !CKEDITOR.env.ie ) styleNode.$.normalize(); } // Style already inherit from parents, left just to clear up any internal overrides. (#5931) else { styleNode = new CKEDITOR.dom.element( 'span' ); styleRange.extractContents().appendTo( styleNode ); styleRange.insertNode( styleNode ); removeFromInsideElement( this, styleNode ); styleNode.remove( true ); } // Style applied, let's release the range, so it gets // re-initialization in the next loop. styleRange = null; } } // Remove the bookmark nodes. range.moveToBookmark( boundaryNodes ); // Minimize the result range to exclude empty text nodes. (#5374) range.shrink( CKEDITOR.SHRINK_TEXT ); } function removeInlineStyle( range ) { /* * Make sure our range has included all "collpased" parent inline nodes so * that our operation logic can be simpler. */ range.enlarge( CKEDITOR.ENLARGE_ELEMENT, 1 ); var bookmark = range.createBookmark(), startNode = bookmark.startNode; if ( range.collapsed ) { var startPath = new CKEDITOR.dom.elementPath( startNode.getParent() ), // The topmost element in elementspatch which we should jump out of. boundaryElement; for ( var i = 0, element ; i < startPath.elements.length && ( element = startPath.elements[i] ) ; i++ ) { /* * 1. If it's collaped inside text nodes, try to remove the style from the whole element. * * 2. Otherwise if it's collapsed on element boundaries, moving the selection * outside the styles instead of removing the whole tag, * also make sure other inner styles were well preserverd.(#3309) */ if ( element == startPath.block || element == startPath.blockLimit ) break; if ( this.checkElementRemovable( element ) ) { var isStart; if ( range.collapsed && ( range.checkBoundaryOfElement( element, CKEDITOR.END ) || ( isStart = range.checkBoundaryOfElement( element, CKEDITOR.START ) ) ) ) { boundaryElement = element; boundaryElement.match = isStart ? 'start' : 'end'; } else { /* * Before removing the style node, there may be a sibling to the style node * that's exactly the same to the one to be removed. To the user, it makes * no difference that they're separate entities in the DOM tree. So, merge * them before removal. */ element.mergeSiblings(); if ( element.getName() == this.element ) removeFromElement( this, element ); else removeOverrides( element, getOverrides( this )[ element.getName() ] ); } } } // Re-create the style tree after/before the boundary element, // the replication start from bookmark start node to define the // new range. if ( boundaryElement ) { var clonedElement = startNode; for ( i = 0 ;; i++ ) { var newElement = startPath.elements[ i ]; if ( newElement.equals( boundaryElement ) ) break; // Avoid copying any matched element. else if ( newElement.match ) continue; else newElement = newElement.clone(); newElement.append( clonedElement ); clonedElement = newElement; } clonedElement[ boundaryElement.match == 'start' ? 'insertBefore' : 'insertAfter' ]( boundaryElement ); } } else { /* * Now our range isn't collapsed. Lets walk from the start node to the end * node via DFS and remove the styles one-by-one. */ var endNode = bookmark.endNode, me = this; /* * Find out the style ancestor that needs to be broken down at startNode * and endNode. */ function breakNodes() { var startPath = new CKEDITOR.dom.elementPath( startNode.getParent() ), endPath = new CKEDITOR.dom.elementPath( endNode.getParent() ), breakStart = null, breakEnd = null; for ( var i = 0 ; i < startPath.elements.length ; i++ ) { var element = startPath.elements[ i ]; if ( element == startPath.block || element == startPath.blockLimit ) break; if ( me.checkElementRemovable( element ) ) breakStart = element; } for ( i = 0 ; i < endPath.elements.length ; i++ ) { element = endPath.elements[ i ]; if ( element == endPath.block || element == endPath.blockLimit ) break; if ( me.checkElementRemovable( element ) ) breakEnd = element; } if ( breakEnd ) endNode.breakParent( breakEnd ); if ( breakStart ) startNode.breakParent( breakStart ); } breakNodes(); // Now, do the DFS walk. var currentNode = startNode; while ( !currentNode.equals( endNode ) ) { /* * Need to get the next node first because removeFromElement() can remove * the current node from DOM tree. */ var nextNode = currentNode.getNextSourceNode(); if ( currentNode.type == CKEDITOR.NODE_ELEMENT && this.checkElementRemovable( currentNode ) ) { // Remove style from element or overriding element. if ( currentNode.getName() == this.element ) removeFromElement( this, currentNode ); else removeOverrides( currentNode, getOverrides( this )[ currentNode.getName() ] ); /* * removeFromElement() may have merged the next node with something before * the startNode via mergeSiblings(). In that case, the nextNode would * contain startNode and we'll have to call breakNodes() again and also * reassign the nextNode to something after startNode. */ if ( nextNode.type == CKEDITOR.NODE_ELEMENT && nextNode.contains( startNode ) ) { breakNodes(); nextNode = startNode.getNext(); } } currentNode = nextNode; } } range.moveToBookmark( bookmark ); } function applyObjectStyle( range ) { var root = range.getCommonAncestor( true, true ), element = root.getAscendant( this.element, true ); element && !element.isReadOnly() && setupElement( element, this ); } function removeObjectStyle( range ) { var root = range.getCommonAncestor( true, true ), element = root.getAscendant( this.element, true ); if ( !element ) return; var style = this, def = style._.definition, attributes = def.attributes; // Remove all defined attributes. if ( attributes ) { for ( var att in attributes ) { element.removeAttribute( att, attributes[ att ] ); } } // Assign all defined styles. if ( def.styles ) { for ( var i in def.styles ) { if ( !def.styles.hasOwnProperty( i ) ) continue; element.removeStyle( i ); } } } function applyBlockStyle( range ) { // Serializible bookmarks is needed here since // elements may be merged. var bookmark = range.createBookmark( true ); var iterator = range.createIterator(); iterator.enforceRealBlocks = true; // make recognize <br /> tag as a separator in ENTER_BR mode (#5121) if ( this._.enterMode ) iterator.enlargeBr = ( this._.enterMode != CKEDITOR.ENTER_BR ); var block; var doc = range.document; var previousPreBlock; while ( ( block = iterator.getNextParagraph() ) ) // Only one = { if ( !block.isReadOnly() ) { var newBlock = getElement( this, doc, block ); replaceBlock( block, newBlock ); } } range.moveToBookmark( bookmark ); } function removeBlockStyle( range ) { // Serializible bookmarks is needed here since // elements may be merged. var bookmark = range.createBookmark( 1 ); var iterator = range.createIterator(); iterator.enforceRealBlocks = true; iterator.enlargeBr = this._.enterMode != CKEDITOR.ENTER_BR; var block; while ( ( block = iterator.getNextParagraph() ) ) { if ( this.checkElementRemovable( block ) ) { // <pre> get special treatment. if ( block.is( 'pre' ) ) { var newBlock = this._.enterMode == CKEDITOR.ENTER_BR ? null : range.document.createElement( this._.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); newBlock && block.copyAttributes( newBlock ); replaceBlock( block, newBlock ); } else removeFromElement( this, block, 1 ); } } range.moveToBookmark( bookmark ); } // Replace the original block with new one, with special treatment // for <pre> blocks to make sure content format is well preserved, and merging/splitting adjacent // when necessary.(#3188) function replaceBlock( block, newBlock ) { // Block is to be removed, create a temp element to // save contents. var removeBlock = !newBlock; if ( removeBlock ) { newBlock = block.getDocument().createElement( 'div' ); block.copyAttributes( newBlock ); } var newBlockIsPre = newBlock && newBlock.is( 'pre' ); var blockIsPre = block.is( 'pre' ); var isToPre = newBlockIsPre && !blockIsPre; var isFromPre = !newBlockIsPre && blockIsPre; if ( isToPre ) newBlock = toPre( block, newBlock ); else if ( isFromPre ) // Split big <pre> into pieces before start to convert. newBlock = fromPres( removeBlock ? [ block.getHtml() ] : splitIntoPres( block ), newBlock ); else block.moveChildren( newBlock ); newBlock.replace( block ); if ( newBlockIsPre ) { // Merge previous <pre> blocks. mergePre( newBlock ); } else if ( removeBlock ) removeNoAttribsElement( newBlock ); } /** * Merge a <pre> block with a previous sibling if available. */ function mergePre( preBlock ) { var previousBlock; if ( !( ( previousBlock = preBlock.getPrevious( nonWhitespaces ) ) && previousBlock.is && previousBlock.is( 'pre') ) ) return; // Merge the previous <pre> block contents into the current <pre> // block. // // Another thing to be careful here is that currentBlock might contain // a '\n' at the beginning, and previousBlock might contain a '\n' // towards the end. These new lines are not normally displayed but they // become visible after merging. var mergedHtml = replace( previousBlock.getHtml(), /\n$/, '' ) + '\n\n' + replace( preBlock.getHtml(), /^\n/, '' ) ; // Krugle: IE normalizes innerHTML from <pre>, breaking whitespaces. if ( CKEDITOR.env.ie ) preBlock.$.outerHTML = '<pre>' + mergedHtml + '</pre>'; else preBlock.setHtml( mergedHtml ); previousBlock.remove(); } /** * Split into multiple <pre> blocks separated by double line-break. * @param preBlock */ function splitIntoPres( preBlock ) { // Exclude the ones at header OR at tail, // and ignore bookmark content between them. var duoBrRegex = /(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi, blockName = preBlock.getName(), splitedHtml = replace( preBlock.getOuterHtml(), duoBrRegex, function( match, charBefore, bookmark ) { return charBefore + '</pre>' + bookmark + '<pre>'; } ); var pres = []; splitedHtml.replace( /<pre\b.*?>([\s\S]*?)<\/pre>/gi, function( match, preContent ){ pres.push( preContent ); } ); return pres; } // Wrapper function of String::replace without considering of head/tail bookmarks nodes. function replace( str, regexp, replacement ) { var headBookmark = '', tailBookmark = ''; str = str.replace( /(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi, function( str, m1, m2 ){ m1 && ( headBookmark = m1 ); m2 && ( tailBookmark = m2 ); return ''; } ); return headBookmark + str.replace( regexp, replacement ) + tailBookmark; } /** * Converting a list of <pre> into blocks with format well preserved. */ function fromPres( preHtmls, newBlock ) { var docFrag; if ( preHtmls.length > 1 ) docFrag = new CKEDITOR.dom.documentFragment( newBlock.getDocument() ); for ( var i = 0 ; i < preHtmls.length ; i++ ) { var blockHtml = preHtmls[ i ]; // 1. Trim the first and last line-breaks immediately after and before <pre>, // they're not visible. blockHtml = blockHtml.replace( /(\r\n|\r)/g, '\n' ) ; blockHtml = replace( blockHtml, /^[ \t]*\n/, '' ) ; blockHtml = replace( blockHtml, /\n$/, '' ) ; // 2. Convert spaces or tabs at the beginning or at the end to &nbsp; blockHtml = replace( blockHtml, /^[ \t]+|[ \t]+$/g, function( match, offset, s ) { if ( match.length == 1 ) // one space, preserve it return '&nbsp;' ; else if ( !offset ) // beginning of block return CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ) + ' '; else // end of block return ' ' + CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ); } ) ; // 3. Convert \n to <BR>. // 4. Convert contiguous (i.e. non-singular) spaces or tabs to &nbsp; blockHtml = blockHtml.replace( /\n/g, '<br>' ) ; blockHtml = blockHtml.replace( /[ \t]{2,}/g, function ( match ) { return CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ) + ' ' ; } ) ; if ( docFrag ) { var newBlockClone = newBlock.clone(); newBlockClone.setHtml( blockHtml ); docFrag.append( newBlockClone ); } else newBlock.setHtml( blockHtml ); } return docFrag || newBlock; } /** * Converting from a non-PRE block to a PRE block in formatting operations. */ function toPre( block, newBlock ) { var bogus = block.getBogus(); bogus && bogus.remove(); // First trim the block content. var preHtml = block.getHtml(); // 1. Trim head/tail spaces, they're not visible. preHtml = replace( preHtml, /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g, '' ); // 2. Delete ANSI whitespaces immediately before and after <BR> because // they are not visible. preHtml = preHtml.replace( /[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi, '$1' ); // 3. Compress other ANSI whitespaces since they're only visible as one // single space previously. // 4. Convert &nbsp; to spaces since &nbsp; is no longer needed in <PRE>. preHtml = preHtml.replace( /([ \t\n\r]+|&nbsp;)/g, ' ' ); // 5. Convert any <BR /> to \n. This must not be done earlier because // the \n would then get compressed. preHtml = preHtml.replace( /<br\b[^>]*>/gi, '\n' ); // Krugle: IE normalizes innerHTML to <pre>, breaking whitespaces. if ( CKEDITOR.env.ie ) { var temp = block.getDocument().createElement( 'div' ); temp.append( newBlock ); newBlock.$.outerHTML = '<pre>' + preHtml + '</pre>'; newBlock.copyAttributes( temp.getFirst() ); newBlock = temp.getFirst().remove(); } else newBlock.setHtml( preHtml ); return newBlock; } // Removes a style from an element itself, don't care about its subtree. function removeFromElement( style, element ) { var def = style._.definition, attributes = def.attributes, styles = def.styles, overrides = getOverrides( style )[ element.getName() ], // If the style is only about the element itself, we have to remove the element. removeEmpty = CKEDITOR.tools.isEmpty( attributes ) && CKEDITOR.tools.isEmpty( styles ); // Remove definition attributes/style from the elemnt. for ( var attName in attributes ) { // The 'class' element value must match (#1318). if ( ( attName == 'class' || style._.definition.fullMatch ) && element.getAttribute( attName ) != normalizeProperty( attName, attributes[ attName ] ) ) continue; removeEmpty = element.hasAttribute( attName ); element.removeAttribute( attName ); } for ( var styleName in styles ) { // Full match style insist on having fully equivalence. (#5018) if ( style._.definition.fullMatch && element.getStyle( styleName ) != normalizeProperty( styleName, styles[ styleName ], true ) ) continue; removeEmpty = removeEmpty || !!element.getStyle( styleName ); element.removeStyle( styleName ); } // Remove overrides, but don't remove the element if it's a block element removeOverrides( element, overrides, blockElements[ element.getName() ] ) ; if ( removeEmpty ) { !CKEDITOR.dtd.$block[ element.getName() ] || style._.enterMode == CKEDITOR.ENTER_BR && !element.hasAttributes() ? removeNoAttribsElement( element ) : element.renameNode( style._.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); } } // Removes a style from inside an element. function removeFromInsideElement( style, element ) { var def = style._.definition, attribs = def.attributes, styles = def.styles, overrides = getOverrides( style ), innerElements = element.getElementsByTag( style.element ); for ( var i = innerElements.count(); --i >= 0 ; ) removeFromElement( style, innerElements.getItem( i ) ); // Now remove any other element with different name that is // defined to be overriden. for ( var overrideElement in overrides ) { if ( overrideElement != style.element ) { innerElements = element.getElementsByTag( overrideElement ) ; for ( i = innerElements.count() - 1 ; i >= 0 ; i-- ) { var innerElement = innerElements.getItem( i ); removeOverrides( innerElement, overrides[ overrideElement ] ) ; } } } } /** * Remove overriding styles/attributes from the specific element. * Note: Remove the element if no attributes remain. * @param {Object} element * @param {Object} overrides * @param {Boolean} Don't remove the element */ function removeOverrides( element, overrides, dontRemove ) { var attributes = overrides && overrides.attributes ; if ( attributes ) { for ( var i = 0 ; i < attributes.length ; i++ ) { var attName = attributes[i][0], actualAttrValue ; if ( ( actualAttrValue = element.getAttribute( attName ) ) ) { var attValue = attributes[i][1] ; // Remove the attribute if: // - The override definition value is null ; // - The override definition valie is a string that // matches the attribute value exactly. // - The override definition value is a regex that // has matches in the attribute value. if ( attValue === null || ( attValue.test && attValue.test( actualAttrValue ) ) || ( typeof attValue == 'string' && actualAttrValue == attValue ) ) element.removeAttribute( attName ) ; } } } if ( !dontRemove ) removeNoAttribsElement( element ); } // If the element has no more attributes, remove it. function removeNoAttribsElement( element ) { // If no more attributes remained in the element, remove it, // leaving its children. if ( !element.hasAttributes() ) { if ( CKEDITOR.dtd.$block[ element.getName() ] ) { var previous = element.getPrevious( nonWhitespaces ), next = element.getNext( nonWhitespaces ); if ( previous && ( previous.type == CKEDITOR.NODE_TEXT || !previous.isBlockBoundary( { br : 1 } ) ) ) element.append( 'br', 1 ); if ( next && ( next.type == CKEDITOR.NODE_TEXT || !next.isBlockBoundary( { br : 1 } ) ) ) element.append( 'br' ); element.remove( true ); } else { // Removing elements may open points where merging is possible, // so let's cache the first and last nodes for later checking. var firstChild = element.getFirst(); var lastChild = element.getLast(); element.remove( true ); if ( firstChild ) { // Check the cached nodes for merging. firstChild.type == CKEDITOR.NODE_ELEMENT && firstChild.mergeSiblings(); if ( lastChild && !firstChild.equals( lastChild ) && lastChild.type == CKEDITOR.NODE_ELEMENT ) lastChild.mergeSiblings(); } } } } function getElement( style, targetDocument, element ) { var el, def = style._.definition, elementName = style.element; // The "*" element name will always be a span for this function. if ( elementName == '*' ) elementName = 'span'; // Create the element. el = new CKEDITOR.dom.element( elementName, targetDocument ); // #6226: attributes should be copied before the new ones are applied if ( element ) element.copyAttributes( el ); el = setupElement( el, style ); // Avoid ID duplication. if ( targetDocument.getCustomData( 'doc_processing_style' ) && el.hasAttribute( 'id' ) ) el.removeAttribute( 'id' ); else targetDocument.setCustomData( 'doc_processing_style', 1 ); return el; } function setupElement( el, style ) { var def = style._.definition, attributes = def.attributes, styles = CKEDITOR.style.getStyleText( def ); // Assign all defined attributes. if ( attributes ) { for ( var att in attributes ) { el.setAttribute( att, attributes[ att ] ); } } // Assign all defined styles. if( styles ) el.setAttribute( 'style', styles ); return el; } function replaceVariables( list, variablesValues ) { for ( var item in list ) { list[ item ] = list[ item ].replace( varRegex, function( match, varName ) { return variablesValues[ varName ]; }); } } // Returns an object that can be used for style matching comparison. // Attributes names and values are all lowercased, and the styles get // merged with the style attribute. function getAttributesForComparison( styleDefinition ) { // If we have already computed it, just return it. var attribs = styleDefinition._AC; if ( attribs ) return attribs; attribs = {}; var length = 0; // Loop through all defined attributes. var styleAttribs = styleDefinition.attributes; if ( styleAttribs ) { for ( var styleAtt in styleAttribs ) { length++; attribs[ styleAtt ] = styleAttribs[ styleAtt ]; } } // Includes the style definitions. var styleText = CKEDITOR.style.getStyleText( styleDefinition ); if ( styleText ) { if ( !attribs[ 'style' ] ) length++; attribs[ 'style' ] = styleText; } // Appends the "length" information to the object. attribs._length = length; // Return it, saving it to the next request. return ( styleDefinition._AC = attribs ); } /** * Get the the collection used to compare the elements and attributes, * defined in this style overrides, with other element. All information in * it is lowercased. * @param {CKEDITOR.style} style */ function getOverrides( style ) { if ( style._.overrides ) return style._.overrides; var overrides = ( style._.overrides = {} ), definition = style._.definition.overrides; if ( definition ) { // The override description can be a string, object or array. // Internally, well handle arrays only, so transform it if needed. if ( !CKEDITOR.tools.isArray( definition ) ) definition = [ definition ]; // Loop through all override definitions. for ( var i = 0 ; i < definition.length ; i++ ) { var override = definition[i]; var elementName; var overrideEl; var attrs; // If can be a string with the element name. if ( typeof override == 'string' ) elementName = override.toLowerCase(); // Or an object. else { elementName = override.element ? override.element.toLowerCase() : style.element; attrs = override.attributes; } // We can have more than one override definition for the same // element name, so we attempt to simply append information to // it if it already exists. overrideEl = overrides[ elementName ] || ( overrides[ elementName ] = {} ); if ( attrs ) { // The returning attributes list is an array, because we // could have different override definitions for the same // attribute name. var overrideAttrs = ( overrideEl.attributes = overrideEl.attributes || new Array() ); for ( var attName in attrs ) { // Each item in the attributes array is also an array, // where [0] is the attribute name and [1] is the // override value. overrideAttrs.push( [ attName.toLowerCase(), attrs[ attName ] ] ); } } } } return overrides; } // Make the comparison of attribute value easier by standardizing it. function normalizeProperty( name, value, isStyle ) { var temp = new CKEDITOR.dom.element( 'span' ); temp [ isStyle ? 'setStyle' : 'setAttribute' ]( name, value ); return temp[ isStyle ? 'getStyle' : 'getAttribute' ]( name ); } // Make the comparison of style text easier by standardizing it. function normalizeCssText( unparsedCssText, nativeNormalize ) { var styleText; if ( nativeNormalize !== false ) { // Injects the style in a temporary span object, so the browser parses it, // retrieving its final format. var temp = new CKEDITOR.dom.element( 'span' ); temp.setAttribute( 'style', unparsedCssText ); styleText = temp.getAttribute( 'style' ) || ''; } else styleText = unparsedCssText; // Normalize font-family property, ignore quotes and being case insensitive. (#7322) // http://www.w3.org/TR/css3-fonts/#font-family-the-font-family-property styleText = styleText.replace( /(font-family:)(.*?)(?=;|$)/, function ( match, prop, val ) { var names = val.split( ',' ); for ( var i = 0; i < names.length; i++ ) names[ i ] = CKEDITOR.tools.trim( names[ i ].replace( /["']/g, '' ) ); return prop + names.join( ',' ); }); // Shrinking white-spaces around colon and semi-colon (#4147). // Compensate tail semi-colon. return styleText.replace( /\s*([;:])\s*/, '$1' ) .replace( /([^\s;])$/, '$1;') // Trimming spaces after comma(#4107), // remove quotations(#6403), // mostly for differences on "font-family". .replace( /,\s+/g, ',' ) .replace( /\"/g,'' ) .toLowerCase(); } // Turn inline style text properties into one hash. function parseStyleText( styleText ) { var retval = {}; styleText .replace( /&quot;/g, '"' ) .replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, function( match, name, value ) { retval[ name ] = value; } ); return retval; } /** * Compare two bunch of styles, with the speciality that value 'inherit' * is treated as a wildcard which will match any value. * @param {Object|String} source * @param {Object|String} target */ function compareCssText( source, target ) { typeof source == 'string' && ( source = parseStyleText( source ) ); typeof target == 'string' && ( target = parseStyleText( target ) ); for( var name in source ) { if ( !( name in target && ( target[ name ] == source[ name ] || source[ name ] == 'inherit' || target[ name ] == 'inherit' ) ) ) { return false; } } return true; } function applyStyle( document, remove ) { var selection = document.getSelection(), // Bookmark the range so we can re-select it after processing. bookmarks = selection.createBookmarks( 1 ), ranges = selection.getRanges(), func = remove ? this.removeFromRange : this.applyToRange, range; var iterator = ranges.createIterator(); while ( ( range = iterator.getNextRange() ) ) func.call( this, range ); if ( bookmarks.length == 1 && bookmarks[ 0 ].collapsed ) { selection.selectRanges( ranges ); document.getById( bookmarks[ 0 ].startNode ).remove(); } else selection.selectBookmarks( bookmarks ); document.removeCustomData( 'doc_processing_style' ); } })(); CKEDITOR.styleCommand = function( style ) { this.style = style; }; CKEDITOR.styleCommand.prototype.exec = function( editor ) { editor.focus(); var doc = editor.document; if ( doc ) { if ( this.state == CKEDITOR.TRISTATE_OFF ) this.style.apply( doc ); else if ( this.state == CKEDITOR.TRISTATE_ON ) this.style.remove( doc ); } return !!doc; }; /** * Manages styles registration and loading. See also {@link CKEDITOR.config.stylesSet}. * @namespace * @augments CKEDITOR.resourceManager * @constructor * @since 3.2 * @example * // The set of styles for the <b>Styles</b> combo * CKEDITOR.stylesSet.add( 'default', * [ * // Block Styles * { name : 'Blue Title' , element : 'h3', styles : { 'color' : 'Blue' } }, * { name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } }, * * // Inline Styles * { name : 'Marker: Yellow' , element : 'span', styles : { 'background-color' : 'Yellow' } }, * { name : 'Marker: Green' , element : 'span', styles : { 'background-color' : 'Lime' } }, * * // Object Styles * { * name : 'Image on Left', * element : 'img', * attributes : * { * 'style' : 'padding: 5px; margin-right: 5px', * 'border' : '2', * 'align' : 'left' * } * } * ]); */ CKEDITOR.stylesSet = new CKEDITOR.resourceManager( '', 'stylesSet' ); // Backward compatibility (#5025). CKEDITOR.addStylesSet = CKEDITOR.tools.bind( CKEDITOR.stylesSet.add, CKEDITOR.stylesSet ); CKEDITOR.loadStylesSet = function( name, url, callback ) { CKEDITOR.stylesSet.addExternal( name, url, '' ); CKEDITOR.stylesSet.load( name, callback ); }; /** * Gets the current styleSet for this instance * @param {Function} callback The function to be called with the styles data. * @example * editor.getStylesSet( function( stylesDefinitions ) {} ); */ CKEDITOR.editor.prototype.getStylesSet = function( callback ) { if ( !this._.stylesDefinitions ) { var editor = this, // Respect the backwards compatible definition entry configStyleSet = editor.config.stylesCombo_stylesSet || editor.config.stylesSet || 'default'; // #5352 Allow to define the styles directly in the config object if ( configStyleSet instanceof Array ) { editor._.stylesDefinitions = configStyleSet; callback( configStyleSet ); return; } var partsStylesSet = configStyleSet.split( ':' ), styleSetName = partsStylesSet[ 0 ], externalPath = partsStylesSet[ 1 ], pluginPath = CKEDITOR.plugins.registered.styles.path; CKEDITOR.stylesSet.addExternal( styleSetName, externalPath ? partsStylesSet.slice( 1 ).join( ':' ) : pluginPath + 'styles/' + styleSetName + '.js', '' ); CKEDITOR.stylesSet.load( styleSetName, function( stylesSet ) { editor._.stylesDefinitions = stylesSet[ styleSetName ]; callback( editor._.stylesDefinitions ); } ) ; } else callback( this._.stylesDefinitions ); }; /** * Indicates that fully selected read-only elements will be included when * applying the style (for inline styles only). * @name CKEDITOR.style.includeReadonly * @type Boolean * @default false * @since 3.5 */ /** * Disables inline styling on read-only elements. * @name CKEDITOR.config.disableReadonlyStyling * @type Boolean * @default false * @since 3.5 */ /** * The "styles definition set" to use in the editor. They will be used in the * styles combo and the Style selector of the div container. <br> * The styles may be defined in the page containing the editor, or can be * loaded on demand from an external file. In the second case, if this setting * contains only a name, the styles definition file will be loaded from the * "styles" folder inside the styles plugin folder. * Otherwise, this setting has the "name:url" syntax, making it * possible to set the URL from which loading the styles file.<br> * Previously this setting was available as config.stylesCombo_stylesSet<br> * @name CKEDITOR.config.stylesSet * @type String|Array * @default 'default' * @since 3.3 * @example * // Load from the styles' styles folder (mystyles.js file). * config.stylesSet = 'mystyles'; * @example * // Load from a relative URL. * config.stylesSet = 'mystyles:/editorstyles/styles.js'; * @example * // Load from a full URL. * config.stylesSet = 'mystyles:http://www.example.com/editorstyles/styles.js'; * @example * // Load from a list of definitions. * config.stylesSet = [ * { name : 'Strong Emphasis', element : 'strong' }, * { name : 'Emphasis', element : 'em' }, ... ]; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.stylesSet.add( 'default', [ /* Block Styles */ // These styles are already available in the "Format" combo, so they are // not needed here by default. You may enable them to avoid placing the // "Format" combo in the toolbar, maintaining the same features. /* { name : 'Paragraph' , element : 'p' }, { name : 'Heading 1' , element : 'h1' }, { name : 'Heading 2' , element : 'h2' }, { name : 'Heading 3' , element : 'h3' }, { name : 'Heading 4' , element : 'h4' }, { name : 'Heading 5' , element : 'h5' }, { name : 'Heading 6' , element : 'h6' }, { name : 'Preformatted Text', element : 'pre' }, { name : 'Address' , element : 'address' }, */ { name : 'Blue Title' , element : 'h3', styles : { 'color' : 'Blue' } }, { name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } }, /* Inline Styles */ // These are core styles available as toolbar buttons. You may opt enabling // some of them in the Styles combo, removing them from the toolbar. /* { name : 'Strong' , element : 'strong', overrides : 'b' }, { name : 'Emphasis' , element : 'em' , overrides : 'i' }, { name : 'Underline' , element : 'u' }, { name : 'Strikethrough' , element : 'strike' }, { name : 'Subscript' , element : 'sub' }, { name : 'Superscript' , element : 'sup' }, */ { name : 'Marker: Yellow' , element : 'span', styles : { 'background-color' : 'Yellow' } }, { name : 'Marker: Green' , element : 'span', styles : { 'background-color' : 'Lime' } }, { name : 'Big' , element : 'big' }, { name : 'Small' , element : 'small' }, { name : 'Typewriter' , element : 'tt' }, { name : 'Computer Code' , element : 'code' }, { name : 'Keyboard Phrase' , element : 'kbd' }, { name : 'Sample Text' , element : 'samp' }, { name : 'Variable' , element : 'var' }, { name : 'Deleted Text' , element : 'del' }, { name : 'Inserted Text' , element : 'ins' }, { name : 'Cited Work' , element : 'cite' }, { name : 'Inline Quotation' , element : 'q' }, { name : 'Language: RTL' , element : 'span', attributes : { 'dir' : 'rtl' } }, { name : 'Language: LTR' , element : 'span', attributes : { 'dir' : 'ltr' } }, /* Object Styles */ { name : 'Image on Left', element : 'img', attributes : { 'style' : 'padding: 5px; margin-right: 5px', 'border' : '2', 'align' : 'left' } }, { name : 'Image on Right', element : 'img', attributes : { 'style' : 'padding: 5px; margin-left: 5px', 'border' : '2', 'align' : 'right' } }, { name : 'Borderless Table', element : 'table', styles: { 'border-style': 'hidden', 'background-color' : '#E6E6FA' } }, { name : 'Square Bulleted List', element : 'ul', styles : { 'list-style-type' : 'square' } } ]);
JavaScript
/* Copyright (c) 2003-2012, 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' };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Undo/Redo system for saving shapshot for document modification * and other recordable changes. */ (function() { CKEDITOR.plugins.add( 'undo', { requires : [ 'selection', 'wysiwygarea' ], init : function( editor ) { var undoManager = new UndoManager( editor ); var undoCommand = editor.addCommand( 'undo', { exec : function() { if ( undoManager.undo() ) { editor.selectionChange(); this.fire( 'afterUndo' ); } }, state : CKEDITOR.TRISTATE_DISABLED, canUndo : false }); var redoCommand = editor.addCommand( 'redo', { exec : function() { if ( undoManager.redo() ) { editor.selectionChange(); this.fire( 'afterRedo' ); } }, state : CKEDITOR.TRISTATE_DISABLED, canUndo : false }); undoManager.onChange = function() { undoCommand.setState( undoManager.undoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); redoCommand.setState( undoManager.redoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); }; function recordCommand( event ) { // If the command hasn't been marked to not support undo. if ( undoManager.enabled && event.data.command.canUndo !== false ) undoManager.save(); } // We'll save snapshots before and after executing a command. editor.on( 'beforeCommandExec', recordCommand ); editor.on( 'afterCommandExec', recordCommand ); // Save snapshots before doing custom changes. editor.on( 'saveSnapshot', function( evt ) { undoManager.save( evt.data && evt.data.contentOnly ); }); // Registering keydown on every document recreation.(#3844) editor.on( 'contentDom', function() { editor.document.on( 'keydown', function( event ) { // Do not capture CTRL hotkeys. if ( !event.data.$.ctrlKey && !event.data.$.metaKey ) undoManager.type( event ); }); }); // Always save an undo snapshot - the previous mode might have // changed editor contents. editor.on( 'beforeModeUnload', function() { editor.mode == 'wysiwyg' && undoManager.save( true ); }); // Make the undo manager available only in wysiwyg mode. editor.on( 'mode', function() { undoManager.enabled = editor.readOnly ? false : editor.mode == 'wysiwyg'; undoManager.onChange(); }); editor.ui.addButton( 'Undo', { label : editor.lang.undo, command : 'undo' }); editor.ui.addButton( 'Redo', { label : editor.lang.redo, command : 'redo' }); editor.resetUndo = function() { // Reset the undo stack. undoManager.reset(); // Create the first image. editor.fire( 'saveSnapshot' ); }; /** * Amend the top of undo stack (last undo image) with the current DOM changes. * @name CKEDITOR.editor#updateUndo * @example * function() * { * editor.fire( 'saveSnapshot' ); * editor.document.body.append(...); * // Make new changes following the last undo snapshot part of it. * editor.fire( 'updateSnapshot' ); * ... * } */ editor.on( 'updateSnapshot', function() { if ( undoManager.currentImage ) undoManager.update(); }); } }); CKEDITOR.plugins.undo = {}; /** * Undo snapshot which represents the current document status. * @name CKEDITOR.plugins.undo.Image * @param editor The editor instance on which the image is created. */ var Image = CKEDITOR.plugins.undo.Image = function( editor ) { this.editor = editor; editor.fire( 'beforeUndoImage' ); var contents = editor.getSnapshot(), selection = contents && editor.getSelection(); // In IE, we need to remove the expando attributes. CKEDITOR.env.ie && contents && ( contents = contents.replace( /\s+data-cke-expando=".*?"/g, '' ) ); this.contents = contents; this.bookmarks = selection && selection.createBookmarks2( true ); editor.fire( 'afterUndoImage' ); }; // Attributes that browser may changing them when setting via innerHTML. var protectedAttrs = /\b(?:href|src|name)="[^"]*?"/gi; Image.prototype = { equals : function( otherImage, contentOnly ) { var thisContents = this.contents, otherContents = otherImage.contents; // For IE6/7 : Comparing only the protected attribute values but not the original ones.(#4522) if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) { thisContents = thisContents.replace( protectedAttrs, '' ); otherContents = otherContents.replace( protectedAttrs, '' ); } if ( thisContents != otherContents ) return false; if ( contentOnly ) return true; var bookmarksA = this.bookmarks, bookmarksB = otherImage.bookmarks; if ( bookmarksA || bookmarksB ) { if ( !bookmarksA || !bookmarksB || bookmarksA.length != bookmarksB.length ) return false; for ( var i = 0 ; i < bookmarksA.length ; i++ ) { var bookmarkA = bookmarksA[ i ], bookmarkB = bookmarksB[ i ]; if ( bookmarkA.startOffset != bookmarkB.startOffset || bookmarkA.endOffset != bookmarkB.endOffset || !CKEDITOR.tools.arrayCompare( bookmarkA.start, bookmarkB.start ) || !CKEDITOR.tools.arrayCompare( bookmarkA.end, bookmarkB.end ) ) { return false; } } } return true; } }; /** * @constructor Main logic for Redo/Undo feature. */ function UndoManager( editor ) { this.editor = editor; // Reset the undo stack. this.reset(); } var editingKeyCodes = { /*Backspace*/ 8:1, /*Delete*/ 46:1 }, modifierKeyCodes = { /*Shift*/ 16:1, /*Ctrl*/ 17:1, /*Alt*/ 18:1 }, navigationKeyCodes = { 37:1, 38:1, 39:1, 40:1 }; // Arrows: L, T, R, B UndoManager.prototype = { /** * Process undo system regard keystrikes. * @param {CKEDITOR.dom.event} event */ type : function( event ) { var keystroke = event && event.data.getKey(), isModifierKey = keystroke in modifierKeyCodes, isEditingKey = keystroke in editingKeyCodes, wasEditingKey = this.lastKeystroke in editingKeyCodes, sameAsLastEditingKey = isEditingKey && keystroke == this.lastKeystroke, // Keystrokes which navigation through contents. isReset = keystroke in navigationKeyCodes, wasReset = this.lastKeystroke in navigationKeyCodes, // Keystrokes which just introduce new contents. isContent = ( !isEditingKey && !isReset ), // Create undo snap for every different modifier key. modifierSnapshot = ( isEditingKey && !sameAsLastEditingKey ), // Create undo snap on the following cases: // 1. Just start to type . // 2. Typing some content after a modifier. // 3. Typing some content after make a visible selection. startedTyping = !( isModifierKey || this.typing ) || ( isContent && ( wasEditingKey || wasReset ) ); if ( startedTyping || modifierSnapshot ) { var beforeTypeImage = new Image( this.editor ), beforeTypeCount = this.snapshots.length; // Use setTimeout, so we give the necessary time to the // browser to insert the character into the DOM. CKEDITOR.tools.setTimeout( function() { var currentSnapshot = this.editor.getSnapshot(); // In IE, we need to remove the expando attributes. if ( CKEDITOR.env.ie ) currentSnapshot = currentSnapshot.replace( /\s+data-cke-expando=".*?"/g, '' ); // If changes have taken place, while not been captured yet (#8459), // compensate the snapshot. if ( beforeTypeImage.contents != currentSnapshot && beforeTypeCount == this.snapshots.length ) { // It's safe to now indicate typing state. this.typing = true; // This's a special save, with specified snapshot // and without auto 'fireChange'. if ( !this.save( false, beforeTypeImage, false ) ) // Drop future snapshots. this.snapshots.splice( this.index + 1, this.snapshots.length - this.index - 1 ); this.hasUndo = true; this.hasRedo = false; this.typesCount = 1; this.modifiersCount = 1; this.onChange(); } }, 0, this ); } this.lastKeystroke = keystroke; // Create undo snap after typed too much (over 25 times). if ( isEditingKey ) { this.typesCount = 0; this.modifiersCount++; if ( this.modifiersCount > 25 ) { this.save( false, null, false ); this.modifiersCount = 1; } } else if ( !isReset ) { this.modifiersCount = 0; this.typesCount++; if ( this.typesCount > 25 ) { this.save( false, null, false ); this.typesCount = 1; } } }, reset : function() // Reset the undo stack. { /** * Remember last pressed key. */ this.lastKeystroke = 0; /** * Stack for all the undo and redo snapshots, they're always created/removed * in consistency. */ this.snapshots = []; /** * Current snapshot history index. */ this.index = -1; this.limit = this.editor.config.undoStackSize || 20; this.currentImage = null; this.hasUndo = false; this.hasRedo = false; this.resetType(); }, /** * Reset all states about typing. * @see UndoManager.type */ resetType : function() { this.typing = false; delete this.lastKeystroke; this.typesCount = 0; this.modifiersCount = 0; }, fireChange : function() { this.hasUndo = !!this.getNextImage( true ); this.hasRedo = !!this.getNextImage( false ); // Reset typing this.resetType(); this.onChange(); }, /** * Save a snapshot of document image for later retrieve. */ save : function( onContentOnly, image, autoFireChange ) { var snapshots = this.snapshots; // Get a content image. if ( !image ) image = new Image( this.editor ); // Do nothing if it was not possible to retrieve an image. if ( image.contents === false ) return false; // Check if this is a duplicate. In such case, do nothing. if ( this.currentImage && image.equals( this.currentImage, onContentOnly ) ) return false; // Drop future snapshots. snapshots.splice( this.index + 1, snapshots.length - this.index - 1 ); // If we have reached the limit, remove the oldest one. if ( snapshots.length == this.limit ) snapshots.shift(); // Add the new image, updating the current index. this.index = snapshots.push( image ) - 1; this.currentImage = image; if ( autoFireChange !== false ) this.fireChange(); return true; }, restoreImage : function( image ) { // Bring editor focused to restore selection. var editor = this.editor, sel; if ( image.bookmarks ) { editor.focus(); // Retrieve the selection beforehand. (#8324) sel = editor.getSelection(); } this.editor.loadSnapshot( image.contents ); if ( image.bookmarks ) sel.selectBookmarks( image.bookmarks ); else if ( CKEDITOR.env.ie ) { // IE BUG: If I don't set the selection to *somewhere* after setting // document contents, then IE would create an empty paragraph at the bottom // the next time the document is modified. var $range = this.editor.document.getBody().$.createTextRange(); $range.collapse( true ); $range.select(); } this.index = image.index; // Update current image with the actual editor // content, since actualy content may differ from // the original snapshot due to dom change. (#4622) this.update(); this.fireChange(); }, // Get the closest available image. getNextImage : function( isUndo ) { var snapshots = this.snapshots, currentImage = this.currentImage, image, i; if ( currentImage ) { if ( isUndo ) { for ( i = this.index - 1 ; i >= 0 ; i-- ) { image = snapshots[ i ]; if ( !currentImage.equals( image, true ) ) { image.index = i; return image; } } } else { for ( i = this.index + 1 ; i < snapshots.length ; i++ ) { image = snapshots[ i ]; if ( !currentImage.equals( image, true ) ) { image.index = i; return image; } } } } return null; }, /** * Check the current redo state. * @return {Boolean} Whether the document has previous state to * retrieve. */ redoable : function() { return this.enabled && this.hasRedo; }, /** * Check the current undo state. * @return {Boolean} Whether the document has future state to restore. */ undoable : function() { return this.enabled && this.hasUndo; }, /** * Perform undo on current index. */ undo : function() { if ( this.undoable() ) { this.save( true ); var image = this.getNextImage( true ); if ( image ) return this.restoreImage( image ), true; } return false; }, /** * Perform redo on current index. */ redo : function() { if ( this.redoable() ) { // Try to save. If no changes have been made, the redo stack // will not change, so it will still be redoable. this.save( true ); // If instead we had changes, we can't redo anymore. if ( this.redoable() ) { var image = this.getNextImage( false ); if ( image ) return this.restoreImage( image ), true; } } return false; }, /** * Update the last snapshot of the undo stack with the current editor content. */ update : function() { this.snapshots.splice( this.index, 1, ( this.currentImage = new Image( this.editor ) ) ); } }; })(); /** * The number of undo steps to be saved. The higher this setting value the more * memory is used for it. * @name CKEDITOR.config.undoStackSize * @type Number * @default 20 * @example * config.undoStackSize = 50; */ /** * Fired when the editor is about to save an undo snapshot. This event can be * fired by plugins and customizations to make the editor saving undo snapshots. * @name CKEDITOR.editor#saveSnapshot * @event */ /** * Fired before an undo image is to be taken. An undo image represents the * editor state at some point. It's saved into an undo store, so the editor is * able to recover the editor state on undo and redo operations. * @name CKEDITOR.editor#beforeUndoImage * @since 3.5.3 * @see CKEDITOR.editor#afterUndoImage * @event */ /** * Fired after an undo image is taken. An undo image represents the * editor state at some point. It's saved into an undo store, so the editor is * able to recover the editor state on undo and redo operations. * @name CKEDITOR.editor#afterUndoImage * @since 3.5.3 * @see CKEDITOR.editor#beforeUndoImage * @event */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Justify commands. */ (function() { 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' ) || ''; } // Sometimes computed values doesn't tell. 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; evt.editor.getCommand( this.name ).refresh( evt.data.path ); } function justifyCommand( editor, name, value ) { this.editor = editor; 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 ); }, refresh : function( path ) { var firstBlock = path.block || path.blockLimit; this.setState( firstBlock.getName() != 'body' && getAlignment( firstBlock, this.editor.config.useComputedState ) == this.value ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); } }; 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' ]; */
JavaScript
/* Copyright (c) 2003-2012, 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; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Spell Check As You Type (SCAYT). * Button name : Scayt. */ (function() { var commandName = 'scaytcheck', openPage = ''; // Checks if a value exists in an array function in_array( needle, haystack ) { var found = 0, key; for ( key in haystack ) { if ( haystack[ key ] == needle ) { found = 1; break; } } return found; } var onEngineLoad = function() { var editor = this; var createInstance = function() // Create new instance every time Document is created. { var config = editor.config; // Initialise Scayt instance. var oParams = {}; // Get the iframe. oParams.srcNodeRef = editor.document.getWindow().$.frameElement; // syntax : AppName.AppVersion@AppRevision oParams.assocApp = 'CKEDITOR.' + CKEDITOR.version + '@' + CKEDITOR.revision; oParams.customerid = config.scayt_customerid || '1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2'; oParams.customDictionaryIds = config.scayt_customDictionaryIds || ''; oParams.userDictionaryName = config.scayt_userDictionaryName || ''; oParams.sLang = config.scayt_sLang || 'en_US'; // Introduce SCAYT onLoad callback. (#5632) oParams.onLoad = function() { // Draw down word marker to avoid being covered by background-color style.(#5466) if ( !( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) ) this.addStyle( this.selectorCss(), 'padding-bottom: 2px !important;' ); // Call scayt_control.focus when SCAYT loaded // and only if editor has focus and scayt control creates at first time (#5720) if ( editor.focusManager.hasFocus && !plugin.isControlRestored( editor ) ) this.focus(); }; oParams.onBeforeChange = function() { if ( plugin.getScayt( editor ) && !editor.checkDirty() ) setTimeout( function(){ editor.resetDirty(); }, 0 ); }; var scayt_custom_params = window.scayt_custom_params; if ( typeof scayt_custom_params == 'object' ) { for ( var k in scayt_custom_params ) oParams[ k ] = scayt_custom_params[ k ]; } // needs for restoring a specific scayt control settings if ( plugin.getControlId( editor ) ) oParams.id = plugin.getControlId( editor ); var scayt_control = new window.scayt( oParams ); scayt_control.afterMarkupRemove.push( function( node ) { ( new CKEDITOR.dom.element( node, scayt_control.document ) ).mergeSiblings(); } ); // Copy config. var lastInstance = plugin.instances[ editor.name ]; if ( lastInstance ) { scayt_control.sLang = lastInstance.sLang; scayt_control.option( lastInstance.option() ); scayt_control.paused = lastInstance.paused; } plugin.instances[ editor.name ] = scayt_control; try { scayt_control.setDisabled( plugin.isPaused( editor ) === false ); } catch (e) {} editor.fire( 'showScaytState' ); }; editor.on( 'contentDom', createInstance ); editor.on( 'contentDomUnload', function() { // Remove scripts. var scripts = CKEDITOR.document.getElementsByTag( 'script' ), scaytIdRegex = /^dojoIoScript(\d+)$/i, scaytSrcRegex = /^https?:\/\/svc\.webspellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i; for ( var i=0; i < scripts.count(); i++ ) { var script = scripts.getItem( i ), id = script.getId(), src = script.getAttribute( 'src' ); if ( id && src && id.match( scaytIdRegex ) && src.match( scaytSrcRegex )) script.remove(); } }); editor.on( 'beforeCommandExec', function( ev ) // Disable SCAYT before Source command execution. { if ( ( ev.data.name == 'source' || ev.data.name == 'newpage' ) && editor.mode == 'wysiwyg' ) { var scayt_instance = plugin.getScayt( editor ); if ( scayt_instance ) { plugin.setPaused( editor, !scayt_instance.disabled ); // store a control id for restore a specific scayt control settings plugin.setControlId( editor, scayt_instance.id ); scayt_instance.destroy( true ); delete plugin.instances[ editor.name ]; } } // Catch on source mode switch off (#5720) else if ( ev.data.name == 'source' && editor.mode == 'source' ) plugin.markControlRestore( editor ); }); editor.on( 'afterCommandExec', function( ev ) { if ( !plugin.isScaytEnabled( editor ) ) return; if ( editor.mode == 'wysiwyg' && ( ev.data.name == 'undo' || ev.data.name == 'redo' ) ) window.setTimeout( function() { plugin.getScayt( editor ).refresh(); }, 10 ); }); editor.on( 'destroy', function( ev ) { var editor = ev.editor, scayt_instance = plugin.getScayt( editor ); // SCAYT instance might already get destroyed by mode switch (#5744). if ( !scayt_instance ) return; delete plugin.instances[ editor.name ]; // store a control id for restore a specific scayt control settings plugin.setControlId( editor, scayt_instance.id ); scayt_instance.destroy( true ); }); // Listen to data manipulation to reflect scayt markup. editor.on( 'afterSetData', function() { if ( plugin.isScaytEnabled( editor ) ) { window.setTimeout( function() { var instance = plugin.getScayt( editor ); instance && instance.refresh(); }, 10 ); } }); // Reload spell-checking for current word after insertion completed. editor.on( 'insertElement', function() { var scayt_instance = plugin.getScayt( editor ); if ( plugin.isScaytEnabled( editor ) ) { // Unlock the selection before reload, SCAYT will take // care selection update. if ( CKEDITOR.env.ie ) editor.getSelection().unlock( true ); // Return focus to the editor and refresh SCAYT markup (#5573). window.setTimeout( function() { scayt_instance.focus(); scayt_instance.refresh(); }, 10 ); } }, this, null, 50 ); editor.on( 'insertHtml', function() { var scayt_instance = plugin.getScayt( editor ); if ( plugin.isScaytEnabled( editor ) ) { // Unlock the selection before reload, SCAYT will take // care selection update. if ( CKEDITOR.env.ie ) editor.getSelection().unlock( true ); // Return focus to the editor (#5573) // Refresh SCAYT markup window.setTimeout( function() { scayt_instance.focus(); scayt_instance.refresh(); }, 10 ); } }, this, null, 50 ); editor.on( 'scaytDialog', function( ev ) // Communication with dialog. { ev.data.djConfig = window.djConfig; ev.data.scayt_control = plugin.getScayt( editor ); ev.data.tab = openPage; ev.data.scayt = window.scayt; }); var dataProcessor = editor.dataProcessor, htmlFilter = dataProcessor && dataProcessor.htmlFilter; if ( htmlFilter ) { htmlFilter.addRules( { elements : { span : function( element ) { if ( element.attributes[ 'data-scayt_word' ] && element.attributes[ 'data-scaytid' ] ) { delete element.name; // Write children, but don't write this node. return element; } } } } ); } // Override Image.equals method avoid CK snapshot module to add SCAYT markup to snapshots. (#5546) var undoImagePrototype = CKEDITOR.plugins.undo.Image.prototype; undoImagePrototype.equals = CKEDITOR.tools.override( undoImagePrototype.equals, function( org ) { return function( otherImage ) { var thisContents = this.contents, otherContents = otherImage.contents; var scayt_instance = plugin.getScayt( this.editor ); // Making the comparison based on content without SCAYT word markers. if ( scayt_instance && plugin.isScaytReady( this.editor ) ) { // scayt::reset might return value undefined. (#5742) this.contents = scayt_instance.reset( thisContents ) || ''; otherImage.contents = scayt_instance.reset( otherContents ) || ''; } var retval = org.apply( this, arguments ); this.contents = thisContents; otherImage.contents = otherContents; return retval; }; }); if ( editor.document ) createInstance(); }; CKEDITOR.plugins.scayt = { engineLoaded : false, instances : {}, // Data storage for SCAYT control, based on editor instances controlInfo : {}, setControlInfo : function( editor, o ) { if ( editor && editor.name && typeof ( this.controlInfo[ editor.name ] ) != 'object' ) this.controlInfo[ editor.name ] = {}; for ( var infoOpt in o ) this.controlInfo[ editor.name ][ infoOpt ] = o[ infoOpt ]; }, isControlRestored : function( editor ) { if ( editor && editor.name && this.controlInfo[ editor.name ] ) { return this.controlInfo[ editor.name ].restored ; } return false; }, markControlRestore : function( editor ) { this.setControlInfo( editor, { restored:true } ); }, setControlId: function( editor, id ) { this.setControlInfo( editor, { id:id } ); }, getControlId: function( editor ) { if ( editor && editor.name && this.controlInfo[ editor.name ] && this.controlInfo[ editor.name ].id ) { return this.controlInfo[ editor.name ].id; } return null; }, setPaused: function( editor , bool ) { this.setControlInfo( editor, { paused:bool } ); }, isPaused: function( editor ) { if ( editor && editor.name && this.controlInfo[editor.name] ) { return this.controlInfo[editor.name].paused; } return undefined; }, getScayt : function( editor ) { return this.instances[ editor.name ]; }, isScaytReady : function( editor ) { return this.engineLoaded === true && 'undefined' !== typeof window.scayt && this.getScayt( editor ); }, isScaytEnabled : function( editor ) { var scayt_instance = this.getScayt( editor ); return ( scayt_instance ) ? scayt_instance.disabled === false : false; }, getUiTabs : function( editor ) { var uiTabs = []; // read UI tabs value from config var configUiTabs = editor.config.scayt_uiTabs || "1,1,1"; // convert string to array configUiTabs = configUiTabs.split( ',' ); // "About us" should be always shown for standard config configUiTabs[3] = "1"; for ( var i = 0; i < 4; i++ ) { uiTabs[i] = (typeof window.scayt != "undefined" && typeof window.scayt.uiTags != "undefined") ? (parseInt(configUiTabs[i],10) && window.scayt.uiTags[i]) : parseInt(configUiTabs[i],10); } return uiTabs; }, loadEngine : function( editor ) { // SCAYT doesn't work with Firefox2, Opera and AIR. if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 || CKEDITOR.env.opera || CKEDITOR.env.air ) return editor.fire( 'showScaytState' ); if ( this.engineLoaded === true ) return onEngineLoad.apply( editor ); // Add new instance. else if ( this.engineLoaded == -1 ) // We are waiting. return CKEDITOR.on( 'scaytReady', function(){ onEngineLoad.apply( editor ); } ); // Use function(){} to avoid rejection as duplicate. CKEDITOR.on( 'scaytReady', onEngineLoad, editor ); CKEDITOR.on( 'scaytReady', function() { this.engineLoaded = true; }, this, null, 0 ); // First to run. this.engineLoaded = -1; // Loading in progress. // compose scayt url var protocol = document.location.protocol; // Default to 'http' for unknown. protocol = protocol.search( /https?:/) != -1? protocol : 'http:'; var baseUrl = 'svc.webspellchecker.net/scayt26/loader__base.js'; var scaytUrl = editor.config.scayt_srcUrl || ( protocol + '//' + baseUrl ); var scaytConfigBaseUrl = plugin.parseUrl( scaytUrl ).path + '/'; if( window.scayt == undefined ) { CKEDITOR._djScaytConfig = { baseUrl: scaytConfigBaseUrl, addOnLoad: [ function() { CKEDITOR.fireOnce( 'scaytReady' ); } ], isDebug: false }; // Append javascript code. CKEDITOR.document.getHead().append( CKEDITOR.document.createElement( 'script', { attributes : { type : 'text/javascript', async : 'true', src : scaytUrl } }) ); } else CKEDITOR.fireOnce( 'scaytReady' ); return null; }, parseUrl : function ( data ) { var match; if ( data.match && ( match = data.match(/(.*)[\/\\](.*?\.\w+)$/) ) ) return { path: match[1], file: match[2] }; else return data; } }; var plugin = CKEDITOR.plugins.scayt; // Context menu constructing. var addButtonCommand = function( editor, buttonName, buttonLabel, commandName, command, menugroup, menuOrder ) { editor.addCommand( commandName, command ); // If the "menu" plugin is loaded, register the menu item. editor.addMenuItem( commandName, { label : buttonLabel, command : commandName, group : menugroup, order : menuOrder }); }; var commandDefinition = { preserveState : true, editorFocus : false, canUndo : false, exec: function( editor ) { if ( plugin.isScaytReady( editor ) ) { var isEnabled = plugin.isScaytEnabled( editor ); this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON ); var scayt_control = plugin.getScayt( editor ); // the place where the status of editor focus should be restored // after there will be ability to store its state before SCAYT button click // if (storedFocusState is focused ) // scayt_control.focus(); // // now focus is set certainly scayt_control.focus(); scayt_control.setDisabled( isEnabled ); } else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time { this.setState( CKEDITOR.TRISTATE_DISABLED ); plugin.loadEngine( editor ); } } }; // Add scayt plugin. CKEDITOR.plugins.add( 'scayt', { requires : [ 'menubutton' ], beforeInit : function( editor ) { var items_order = editor.config.scayt_contextMenuItemsOrder || 'suggest|moresuggest|control', items_order_str = ""; items_order = items_order.split( '|' ); if ( items_order && items_order.length ) { for ( var pos = 0 ; pos < items_order.length ; pos++ ) items_order_str += 'scayt_' + items_order[ pos ] + ( items_order.length != parseInt( pos, 10 ) + 1 ? ',' : '' ); } // Put it on top of all context menu items (#5717) editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups; }, init : function( editor ) { // Delete span[data-scaytid] when text pasting in editor (#6921) var dataFilter = editor.dataProcessor && editor.dataProcessor.dataFilter; var dataFilterRules = { elements : { span : function( element ) { var attrs = element.attributes; if ( attrs && attrs[ 'data-scaytid' ] ) delete element.name; } } }; dataFilter && dataFilter.addRules( dataFilterRules ); var moreSuggestions = {}, mainSuggestions = {}; // Scayt command. var command = editor.addCommand( commandName, commandDefinition ); // Add Options dialog. CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/options.js' ) ); var uiTabs = plugin.getUiTabs( editor ); var menuGroup = 'scaytButton'; editor.addMenuGroup( menuGroup ); // combine menu items to render var uiMenuItems = {}; var lang = editor.lang.scayt; // always added uiMenuItems.scaytToggle = { label : lang.enable, command : commandName, group : menuGroup }; if ( uiTabs[0] == 1 ) uiMenuItems.scaytOptions = { label : lang.options, group : menuGroup, onClick : function() { openPage = 'options'; editor.openDialog( commandName ); } }; if ( uiTabs[1] == 1 ) uiMenuItems.scaytLangs = { label : lang.langs, group : menuGroup, onClick : function() { openPage = 'langs'; editor.openDialog( commandName ); } }; if ( uiTabs[2] == 1 ) uiMenuItems.scaytDict = { label : lang.dictionariesTab, group : menuGroup, onClick : function() { openPage = 'dictionaries'; editor.openDialog( commandName ); } }; // always added uiMenuItems.scaytAbout = { label : editor.lang.scayt.about, group : menuGroup, onClick : function() { openPage = 'about'; editor.openDialog( commandName ); } }; editor.addMenuItems( uiMenuItems ); editor.ui.add( 'Scayt', CKEDITOR.UI_MENUBUTTON, { label : lang.title, title : CKEDITOR.env.opera ? lang.opera_title : lang.title, className : 'cke_button_scayt', modes : { wysiwyg : 1 }, onRender: function() { command.on( 'state', function() { this.setState( command.state ); }, this); }, onMenu : function() { var isEnabled = plugin.isScaytEnabled( editor ); editor.getMenuItem( 'scaytToggle' ).label = lang[ isEnabled ? 'disable' : 'enable' ]; var uiTabs = plugin.getUiTabs( editor ); return { scaytToggle : CKEDITOR.TRISTATE_OFF, scaytOptions : isEnabled && uiTabs[0] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, scaytLangs : isEnabled && uiTabs[1] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, scaytDict : isEnabled && uiTabs[2] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, scaytAbout : isEnabled && uiTabs[3] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED }; } }); // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu && editor.addMenuItems ) { editor.contextMenu.addListener( function( element, selection ) { if ( !plugin.isScaytEnabled( editor ) || selection.getRanges()[ 0 ].checkReadOnly() ) return null; var scayt_control = plugin.getScayt( editor ), node = scayt_control.getScaytNode(); if ( !node ) return null; var word = scayt_control.getWord( node ); if ( !word ) return null; var sLang = scayt_control.getLang(), _r = {}, items_suggestion = window.scayt.getSuggestion( word, sLang ); if ( !items_suggestion || !items_suggestion.length ) return null; // Remove unused commands and menuitems for ( var m in moreSuggestions ) { delete editor._.menuItems[ m ]; delete editor._.commands[ m ]; } for ( m in mainSuggestions ) { delete editor._.menuItems[ m ]; delete editor._.commands[ m ]; } moreSuggestions = {}; // Reset items. mainSuggestions = {}; var moreSuggestionsUnable = editor.config.scayt_moreSuggestions || 'on'; var moreSuggestionsUnableAdded = false; var maxSuggestions = editor.config.scayt_maxSuggestions; ( typeof maxSuggestions != 'number' ) && ( maxSuggestions = 5 ); !maxSuggestions && ( maxSuggestions = items_suggestion.length ); var contextCommands = editor.config.scayt_contextCommands || 'all'; contextCommands = contextCommands.split( '|' ); for ( var i = 0, l = items_suggestion.length; i < l; i += 1 ) { var commandName = 'scayt_suggestion_' + items_suggestion[i].replace( ' ', '_' ); var exec = ( function( el, s ) { return { exec: function() { scayt_control.replace( el, s ); } }; })( node, items_suggestion[i] ); if ( i < maxSuggestions ) { addButtonCommand( editor, 'button_' + commandName, items_suggestion[i], commandName, exec, 'scayt_suggest', i + 1 ); _r[ commandName ] = CKEDITOR.TRISTATE_OFF; mainSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF; } else if ( moreSuggestionsUnable == 'on' ) { addButtonCommand( editor, 'button_' + commandName, items_suggestion[i], commandName, exec, 'scayt_moresuggest', i + 1 ); moreSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF; moreSuggestionsUnableAdded = true; } } if ( moreSuggestionsUnableAdded ) { // Register the More suggestions group; editor.addMenuItem( 'scayt_moresuggest', { label : lang.moreSuggestions, group : 'scayt_moresuggest', order : 10, getItems : function() { return moreSuggestions; } }); mainSuggestions[ 'scayt_moresuggest' ] = CKEDITOR.TRISTATE_OFF; } if ( in_array( 'all', contextCommands ) || in_array( 'ignore', contextCommands) ) { var ignore_command = { exec: function(){ scayt_control.ignore( node ); } }; addButtonCommand( editor, 'ignore', lang.ignore, 'scayt_ignore', ignore_command, 'scayt_control', 1 ); mainSuggestions[ 'scayt_ignore' ] = CKEDITOR.TRISTATE_OFF; } if ( in_array( 'all', contextCommands ) || in_array( 'ignoreall', contextCommands ) ) { var ignore_all_command = { exec: function(){ scayt_control.ignoreAll( node ); } }; addButtonCommand(editor, 'ignore_all', lang.ignoreAll, 'scayt_ignore_all', ignore_all_command, 'scayt_control', 2); mainSuggestions['scayt_ignore_all'] = CKEDITOR.TRISTATE_OFF; } if ( in_array( 'all', contextCommands ) || in_array( 'add', contextCommands ) ) { var addword_command = { exec: function(){ window.scayt.addWordToUserDictionary( node ); } }; addButtonCommand(editor, 'add_word', lang.addWord, 'scayt_add_word', addword_command, 'scayt_control', 3); mainSuggestions['scayt_add_word'] = CKEDITOR.TRISTATE_OFF; } if ( scayt_control.fireOnContextMenu ) scayt_control.fireOnContextMenu( editor ); return mainSuggestions; }); } var showInitialState = function() { editor.removeListener( 'showScaytState', showInitialState ); if ( !CKEDITOR.env.opera && !CKEDITOR.env.air ) command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); else command.setState( CKEDITOR.TRISTATE_DISABLED ); }; editor.on( 'showScaytState', showInitialState ); if ( CKEDITOR.env.opera || CKEDITOR.env.air ) { editor.on( 'instanceReady', function() { showInitialState(); }); } // Start plugin if ( editor.config.scayt_autoStartup ) { editor.on( 'instanceReady', function() { plugin.loadEngine( editor ); }); } }, afterInit : function( editor ) { // Prevent word marker line from displaying in elements path and been removed when cleaning format. (#3570) (#4125) var elementsPathFilters, scaytFilter = function( element ) { if ( element.hasAttribute( 'data-scaytid' ) ) return false; }; if ( editor._.elementsPath && ( elementsPathFilters = editor._.elementsPath.filters ) ) elementsPathFilters.push( scaytFilter ); editor.addRemoveFormatFilter && editor.addRemoveFormatFilter( scaytFilter ); } }); })(); /** * If enabled (set to <code>true</code>), turns on SCAYT automatically * after loading the editor. * @name CKEDITOR.config.scayt_autoStartup * @type Boolean * @default <code>false</code> * @example * config.scayt_autoStartup = true; */ /** * Defines the number of SCAYT suggestions to show in the main context menu. * Possible values are: * <ul> * <li><code>0</code> (zero) &ndash; All suggestions are displayed in the main context menu.</li> * <li>Positive number &ndash; The maximum number of suggestions to show in the context * menu. Other entries will be shown in the "More Suggestions" sub-menu.</li> * <li>Negative number &ndash; No suggestions are shown in the main context menu. All * entries will be listed in the the "Suggestions" sub-menu.</li> * </ul> * @name CKEDITOR.config.scayt_maxSuggestions * @type Number * @default <code>5</code> * @example * // Display only three suggestions in the main context menu. * config.scayt_maxSuggestions = 3; * @example * // Do not show the suggestions directly. * config.scayt_maxSuggestions = -1; */ /** * Sets the customer ID for SCAYT. Required for migration from free, * ad-supported version to paid, ad-free version. * @name CKEDITOR.config.scayt_customerid * @type String * @default <code>''</code> * @example * // Load SCAYT using my customer ID. * config.scayt_customerid = 'your-encrypted-customer-id'; */ /** * Enables/disables the "More Suggestions" sub-menu in the context menu. * Possible values are <code>on</code> and <code>off</code>. * @name CKEDITOR.config.scayt_moreSuggestions * @type String * @default <code>'on'</code> * @example * // Disables the "More Suggestions" sub-menu. * config.scayt_moreSuggestions = 'off'; */ /** * Customizes the display of SCAYT context menu commands ("Add Word", "Ignore" * and "Ignore All"). This must be a string with one or more of the following * words separated by a pipe character ("|"): * <ul> * <li><code>off</code> &ndash; disables all options.</li> * <li><code>all</code> &ndash; enables all options.</li> * <li><code>ignore</code> &ndash; enables the "Ignore" option.</li> * <li><code>ignoreall</code> &ndash; enables the "Ignore All" option.</li> * <li><code>add</code> &ndash; enables the "Add Word" option.</li> * </ul> * @name CKEDITOR.config.scayt_contextCommands * @type String * @default <code>'all'</code> * @example * // Show only "Add Word" and "Ignore All" in the context menu. * config.scayt_contextCommands = 'add|ignoreall'; */ /** * Sets the default spell checking language for SCAYT. Possible values are: * <code>en_US</code>, <code>en_GB</code>, <code>pt_BR</code>, <code>da_DK</code>, * <code>nl_NL</code>, <code>en_CA</code>, <code>fi_FI</code>, <code>fr_FR</code>, * <code>fr_CA</code>, <code>de_DE</code>, <code>el_GR</code>, <code>it_IT</code>, * <code>nb_NO</code>, <code>pt_PT</code>, <code>es_ES</code>, <code>sv_SE</code>. * @name CKEDITOR.config.scayt_sLang * @type String * @default <code>'en_US'</code> * @example * // Sets SCAYT to German. * config.scayt_sLang = 'de_DE'; */ /** * Sets the visibility of particular tabs in the SCAYT dialog window and toolbar * button. This setting must contain a <code>1</code> (enabled) or <code>0</code> * (disabled) value for each of the following entries, in this precise order, * separated by a comma (","): "Options", "Languages", and "Dictionary". * @name CKEDITOR.config.scayt_uiTabs * @type String * @default <code>'1,1,1'</code> * @example * // Hides the "Languages" tab. * config.scayt_uiTabs = '1,0,1'; */ /** * Sets the URL to SCAYT core. Required to switch to the licensed version of SCAYT application. * Further details available at * <a href="http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck"> * http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck</a>. * @name CKEDITOR.config.scayt_srcUrl * @type String * @default <code>''</code> * @example * config.scayt_srcUrl = "http://my-host/spellcheck/lf/scayt/scayt.js"; */ /** * Links SCAYT to custom dictionaries. This is a string containing dictionary IDs * separared by commas (","). Available only for the licensed version. * Further details at * <a href="http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed"> * http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed</a>. * @name CKEDITOR.config.scayt_customDictionaryIds * @type String * @default <code>''</code> * @example * config.scayt_customDictionaryIds = '3021,3456,3478"'; */ /** * Makes it possible to activate a custom dictionary in SCAYT. The user * dictionary name must be used. Available only for the licensed version. * @name CKEDITOR.config.scayt_userDictionaryName * @type String * @default <code>''</code> * @example * config.scayt_userDictionaryName = 'MyDictionary'; */ /** * Defines the order SCAYT context menu items by groups. * This must be a string with one or more of the following * words separated by a pipe character ("|"): * <ul> * <li><code>suggest</code> &ndash; main suggestion word list,</li> * <li><code>moresuggest</code> &ndash; more suggestions word list,</li> * <li><code>control</code> &ndash; SCAYT commands, such as "Ignore" and "Add Word".</li> * </ul> * * @name CKEDITOR.config.scayt_contextMenuItemsOrder * @type String * @default <code>'suggest|moresuggest|control'</code> * @example * config.scayt_contextMenuItemsOrder = 'moresuggest|control|suggest'; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'scaytcheck', function( editor ) { var firstLoad = true, captions, doc = CKEDITOR.document, editorName = editor.name, tags = CKEDITOR.plugins.scayt.getUiTabs( editor ), i, contents = [], userDicActive = 0, dic_buttons = [ // [0] contains buttons for creating "dic_create_" + editorName + ",dic_restore_" + editorName, // [1] contains buton for manipulation "dic_rename_" + editorName + ",dic_delete_" + editorName ], optionsIds = [ 'mixedCase', 'mixedWithDigits', 'allCaps', 'ignoreDomainNames' ]; // common operations function getBOMAllOptions() { if (typeof document.forms["optionsbar_" + editorName] != "undefined") return document.forms["optionsbar_" + editorName]["options"]; return []; } function getBOMAllLangs() { if (typeof document.forms["languagesbar_" + editorName] != "undefined") return document.forms["languagesbar_" + editorName]["scayt_lang"]; return []; } function setCheckedValue( radioObj, newValue ) { if ( !radioObj ) return; var radioLength = radioObj.length; if ( radioLength == undefined ) { radioObj.checked = radioObj.value == newValue.toString(); return; } for ( var i = 0; i < radioLength; i++ ) { radioObj[i].checked = false; if ( radioObj[i].value == newValue.toString() ) radioObj[i].checked = true; } } var lang = editor.lang.scayt; var tags_contents = [ { id : 'options', label : lang.optionsTab, elements : [ { type : 'html', id : 'options', html : '<form name="optionsbar_' + editorName + '"><div class="inner_options">' + ' <div class="messagebox"></div>' + ' <div style="display:none;">' + ' <input type="checkbox" name="options" id="allCaps_' + editorName + '" />' + ' <label for="allCaps" id="label_allCaps_' + editorName + '"></label>' + ' </div>' + ' <div style="display:none;">' + ' <input name="options" type="checkbox" id="ignoreDomainNames_' + editorName + '" />' + ' <label for="ignoreDomainNames" id="label_ignoreDomainNames_' + editorName + '"></label>' + ' </div>' + ' <div style="display:none;">' + ' <input name="options" type="checkbox" id="mixedCase_' + editorName + '" />' + ' <label for="mixedCase" id="label_mixedCase_' + editorName + '"></label>' + ' </div>' + ' <div style="display:none;">' + ' <input name="options" type="checkbox" id="mixedWithDigits_' + editorName + '" />' + ' <label for="mixedWithDigits" id="label_mixedWithDigits_' + editorName + '"></label>' + ' </div>' + '</div></form>' } ] }, { id : 'langs', label : lang.languagesTab, elements : [ { type : 'html', id : 'langs', html : '<form name="languagesbar_' + editorName + '"><div class="inner_langs">' + ' <div class="messagebox"></div> ' + ' <div style="float:left;width:45%;margin-left:5px;" id="scayt_lcol_' + editorName + '" ></div>' + ' <div style="float:left;width:45%;margin-left:15px;" id="scayt_rcol_' + editorName + '"></div>' + '</div></form>' } ] }, { id : 'dictionaries', label : lang.dictionariesTab, elements : [ { type : 'html', style: '', id : 'dictionaries', html : '<form name="dictionarybar_' + editorName + '"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">' + ' <div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message_' + editorName + '"> </div>' + ' <div style="margin:5px auto; width:80%;white-space:normal;"> ' + ' <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>'+ ' <span class="cke_dialog_ui_labeled_content" >'+ ' <div class="cke_dialog_ui_input_text">'+ ' <input id="dic_name_' + editorName + '" type="text" class="cke_dialog_ui_input_text"/>'+ ' </div></span></div>'+ ' <div style="margin:5px auto; width:80%;white-space:normal;">'+ ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_create_' + editorName + '">'+ ' </a>' + ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_delete_' + editorName + '">'+ ' </a>' + ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_rename_' + editorName + '">'+ ' </a>' + ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_restore_' + editorName + '">'+ ' </a>' + ' </div>' + ' <div style="margin:5px auto; width:95%;white-space:normal;" id="dic_info_' + editorName + '"></div>' + '</div></form>' } ] }, { id : 'about', label : lang.aboutTab, elements : [ { type : 'html', id : 'about', style : 'margin: 5px 5px;', html : '<div id="scayt_about_' + editorName + '"></div>' } ] } ]; var dialogDefiniton = { title : lang.title, minWidth : 360, minHeight : 220, onShow : function() { var dialog = this; dialog.data = editor.fire( 'scaytDialog', {} ); dialog.options = dialog.data.scayt_control.option(); dialog.chosed_lang = dialog.sLang = dialog.data.scayt_control.sLang; if ( !dialog.data || !dialog.data.scayt || !dialog.data.scayt_control ) { alert( 'Error loading application service' ); dialog.hide(); return; } var stop = 0; if ( firstLoad ) { dialog.data.scayt.getCaption( editor.langCode || 'en', function( caps ) { if ( stop++ > 0 ) // Once only return; captions = caps; init_with_captions.apply( dialog ); reload.apply( dialog ); firstLoad = false; }); } else reload.apply( dialog ); dialog.selectPage( dialog.data.tab ); }, onOk : function() { var scayt_control = this.data.scayt_control; scayt_control.option( this.options ); // Setup language if it was changed. var csLang = this.chosed_lang; scayt_control.setLang( csLang ); scayt_control.refresh(); }, onCancel: function() { var o = getBOMAllOptions(); for ( var i in o ) o[i].checked = false; setCheckedValue( getBOMAllLangs(), "" ); }, contents : contents }; var scayt_control = CKEDITOR.plugins.scayt.getScayt( editor ); for ( i = 0; i < tags.length; i++ ) { if ( tags[ i ] == 1 ) contents[ contents.length ] = tags_contents[ i ]; } if ( tags[2] == 1 ) userDicActive = 1; var init_with_captions = function() { var dialog = this, lang_list = dialog.data.scayt.getLangList(), buttonCaptions = [ 'dic_create', 'dic_delete', 'dic_rename', 'dic_restore' ], buttonIds = [], langList = [], labels = optionsIds, i; // Add buttons titles if ( userDicActive ) { for ( i = 0; i < buttonCaptions.length; i++ ) { buttonIds[ i ] = buttonCaptions[ i ] + "_" + editorName; doc.getById( buttonIds[ i ] ).setHtml( '<span class="cke_dialog_ui_button">' + captions[ 'button_' + buttonCaptions[ i ]] +'</span>' ); } doc.getById( 'dic_info_' + editorName ).setHtml( captions[ 'dic_info' ] ); } // Fill options and dictionary labels. if ( tags[0] == 1 ) { for ( i in labels ) { var labelCaption = 'label_' + labels[ i ], labelId = labelCaption + '_' + editorName, labelElement = doc.getById( labelId ); if ( 'undefined' != typeof labelElement && 'undefined' != typeof captions[ labelCaption ] && 'undefined' != typeof dialog.options[labels[ i ]] ) { labelElement.setHtml( captions[ labelCaption ] ); var labelParent = labelElement.getParent(); labelParent.$.style.display = "block"; } } } var about = '<p><img src="' + window.scayt.getAboutInfo().logoURL + '" /></p>' + '<p>' + captions[ 'version' ] + window.scayt.getAboutInfo().version.toString() + '</p>' + '<p>' + captions[ 'about_throwt_copy' ] + '</p>'; doc.getById( 'scayt_about_' + editorName ).setHtml( about ); // Create languages tab. var createOption = function( option, list ) { var label = doc.createElement( 'label' ); label.setAttribute( 'for', 'cke_option' + option ); label.setHtml( list[ option ] ); if ( dialog.sLang == option ) // Current. dialog.chosed_lang = option; var div = doc.createElement( 'div' ); var radio = CKEDITOR.dom.element.createFromHtml( '<input id="cke_option' + option + '" type="radio" ' + ( dialog.sLang == option ? 'checked="checked"' : '' ) + ' value="' + option + '" name="scayt_lang" />' ); radio.on( 'click', function() { this.$.checked = true; dialog.chosed_lang = option; }); div.append( radio ); div.append( label ); return { lang : list[ option ], code : option, radio : div }; }; if ( tags[1] ==1 ) { for ( i in lang_list.rtl ) langList[ langList.length ] = createOption( i, lang_list.ltr ); for ( i in lang_list.ltr ) langList[ langList.length ] = createOption( i, lang_list.ltr ); langList.sort( function( lang1, lang2 ) { return ( lang2.lang > lang1.lang ) ? -1 : 1 ; }); var fieldL = doc.getById( 'scayt_lcol_' + editorName ), fieldR = doc.getById( 'scayt_rcol_' + editorName ); for ( i=0; i < langList.length; i++ ) { var field = ( i < langList.length / 2 ) ? fieldL : fieldR; field.append( langList[ i ].radio ); } } // user dictionary handlers var dic = {}; dic.dic_create = function( el, dic_name , dic_buttons ) { // comma separated button's ids include repeats if exists var all_buttons = dic_buttons[0] + ',' + dic_buttons[1]; var err_massage = captions["err_dic_create"]; var suc_massage = captions["succ_dic_create"]; window.scayt.createUserDictionary( dic_name, function( arg ) { hide_dic_buttons ( all_buttons ); display_dic_buttons ( dic_buttons[1] ); suc_massage = suc_massage.replace("%s" , arg.dname ); dic_success_message (suc_massage); }, function( arg ) { err_massage = err_massage.replace("%s" ,arg.dname ); dic_error_message ( err_massage + "( "+ (arg.message || "") +")"); }); }; dic.dic_rename = function( el, dic_name ) { // // try to rename dictionary var err_massage = captions["err_dic_rename"] || ""; var suc_massage = captions["succ_dic_rename"] || ""; window.scayt.renameUserDictionary( dic_name, function( arg ) { suc_massage = suc_massage.replace("%s" , arg.dname ); set_dic_name( dic_name ); dic_success_message ( suc_massage ); }, function( arg ) { err_massage = err_massage.replace("%s" , arg.dname ); set_dic_name( dic_name ); dic_error_message( err_massage + "( " + ( arg.message || "" ) + " )" ); }); }; dic.dic_delete = function( el, dic_name , dic_buttons ) { var all_buttons = dic_buttons[0] + ',' + dic_buttons[1]; var err_massage = captions["err_dic_delete"]; var suc_massage = captions["succ_dic_delete"]; // try to delete dictionary window.scayt.deleteUserDictionary( function( arg ) { suc_massage = suc_massage.replace("%s" , arg.dname ); hide_dic_buttons ( all_buttons ); display_dic_buttons ( dic_buttons[0] ); set_dic_name( "" ); // empty input field dic_success_message( suc_massage ); }, function( arg ) { err_massage = err_massage.replace("%s" , arg.dname ); dic_error_message(err_massage); }); }; dic.dic_restore = dialog.dic_restore || function( el, dic_name , dic_buttons ) { // try to restore existing dictionary var all_buttons = dic_buttons[0] + ',' + dic_buttons[1]; var err_massage = captions["err_dic_restore"]; var suc_massage = captions["succ_dic_restore"]; window.scayt.restoreUserDictionary(dic_name, function( arg ) { suc_massage = suc_massage.replace("%s" , arg.dname ); hide_dic_buttons ( all_buttons ); display_dic_buttons(dic_buttons[1]); dic_success_message( suc_massage ); }, function( arg ) { err_massage = err_massage.replace("%s" , arg.dname ); dic_error_message( err_massage ); }); }; function onDicButtonClick( ev ) { var dic_name = doc.getById('dic_name_' + editorName).getValue(); if ( !dic_name ) { dic_error_message(" Dictionary name should not be empty. "); return false; } try{ var el = ev.data.getTarget().getParent(); var id = /(dic_\w+)_[\w\d]+/.exec(el.getId())[1]; dic[ id ].apply( null, [ el, dic_name, dic_buttons ] ); } catch(err) { dic_error_message(" Dictionary error. "); } return true; } // ** bind event listeners var arr_buttons = ( dic_buttons[0] + ',' + dic_buttons[1] ).split( ',' ), l; for ( i = 0, l = arr_buttons.length ; i < l ; i += 1 ) { var dic_button = doc.getById(arr_buttons[i]); if ( dic_button ) dic_button.on( 'click', onDicButtonClick, this ); } }; var reload = function() { var dialog = this; // for enabled options tab if ( tags[0] == 1 ){ var opto = getBOMAllOptions(); // Animate options. for ( var k=0,l = opto.length; k<l;k++ ) { var i = opto[k].id; var checkbox = doc.getById( i ); if ( checkbox ) { opto[k].checked = false; //alert (opto[k].removeAttribute) if ( dialog.options[ i.split("_")[0] ] == 1 ) { opto[k].checked = true; } // Bind events. Do it only once. if ( firstLoad ) { checkbox.on( 'click', function() { dialog.options[ this.getId().split("_")[0] ] = this.$.checked ? 1 : 0 ; }); } } } } //for enabled languages tab if ( tags[1] == 1 ) { var domLang = doc.getById("cke_option" + dialog.sLang); setCheckedValue( domLang.$,dialog.sLang ); } // * user dictionary if ( userDicActive ) { window.scayt.getNameUserDictionary( function( o ) { var dic_name = o.dname; hide_dic_buttons( dic_buttons[0] + ',' + dic_buttons[1] ); if ( dic_name ) { doc.getById( 'dic_name_' + editorName ).setValue(dic_name); display_dic_buttons( dic_buttons[1] ); } else display_dic_buttons( dic_buttons[0] ); }, function() { doc.getById( 'dic_name_' + editorName ).setValue(""); }); dic_success_message(""); } }; function dic_error_message( m ) { doc.getById('dic_message_' + editorName).setHtml('<span style="color:red;">' + m + '</span>' ); } function dic_success_message( m ) { doc.getById('dic_message_' + editorName).setHtml('<span style="color:blue;">' + m + '</span>') ; } function display_dic_buttons( sIds ) { sIds = String( sIds ); var aIds = sIds.split(','); for ( var i=0, l = aIds.length; i < l ; i+=1) doc.getById( aIds[i] ).$.style.display = "inline"; } function hide_dic_buttons( sIds ) { sIds = String( sIds ); var aIds = sIds.split(','); for ( var i = 0, l = aIds.length; i < l ; i += 1 ) doc.getById( aIds[i] ).$.style.display = "none"; } function set_dic_name( dic_name ) { doc.getById('dic_name_' + editorName).$.value= dic_name; } return dialogDefiniton; });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'devtools', { lang : [ 'en', 'bg', 'cs', 'cy', 'da', 'de', 'el', 'eo', 'et', 'fa', 'fi', 'fr', 'gu', 'he', 'hr', 'it', 'ku', 'nb', 'nl', 'no', 'pl', 'pt-br', 'sk', 'tr', 'ug', 'uk', 'vi', 'zh-cn' ], init : function( editor ) { editor._.showDialogDefinitionTooltips = 1; }, onLoad : function() { CKEDITOR.document.appendStyleText( CKEDITOR.config.devtools_styles || '#cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff }' + '#cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; }' + '#cke_tooltip ul { padding: 0pt; list-style-type: none; }' ); } }); (function() { function defaultCallback( editor, dialog, element, tabName ) { var lang = editor.lang.devTools, link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' + ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) + '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>', str = '<h2>' + lang.title + '</h2>' + '<ul>' + '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' + '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>'; if ( element ) str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>'; str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>'; return str + '</ul>'; } function showTooltip( callback, el, editor, dialog, obj, tabName ) { var pos = el.getDocumentPosition(), styles = { 'z-index' : CKEDITOR.dialog._.currentZIndex + 10, top : ( pos.y + el.getSize( 'height' ) ) + 'px' }; tooltip.setHtml( callback( editor, dialog, obj, tabName ) ); tooltip.show(); // Translate coordinate for RTL. if ( editor.lang.dir == 'rtl' ) { var viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(); styles.right = ( viewPaneSize.width - pos.x - el.getSize( 'width' ) ) + 'px'; } else styles.left = pos.x + 'px'; tooltip.setStyles( styles ); } var tooltip; CKEDITOR.on( 'reset', function() { tooltip && tooltip.remove(); tooltip = null; }); CKEDITOR.on( 'dialogDefinition', function( evt ) { var editor = evt.editor; if ( editor._.showDialogDefinitionTooltips ) { if ( !tooltip ) { tooltip = CKEDITOR.dom.element.createFromHtml( '<div id="cke_tooltip" tabindex="-1" style="position: absolute"></div>', CKEDITOR.document ); tooltip.hide(); tooltip.on( 'mouseover', function(){ this.show(); } ); tooltip.on( 'mouseout', function(){ this.hide(); } ); tooltip.appendTo( CKEDITOR.document.getBody() ); } var dialog = evt.data.definition.dialog, callback = editor.config.devtools_textCallback || defaultCallback; dialog.on( 'load', function() { var tabs = dialog.parts.tabs.getChildren(), tab; for ( var i = 0, len = tabs.count(); i < len; i++ ) { tab = tabs.getItem( i ); tab.on( 'mouseover', function() { var id = this.$.id; showTooltip( callback, this, editor, dialog, null, id.substring( 4, id.lastIndexOf( '_' ) ) ); }); tab.on( 'mouseout', function() { tooltip.hide(); }); } dialog.foreach( function( obj ) { if ( obj.type in { hbox : 1, vbox : 1 } ) return; var el = obj.getElement(); if ( el ) { el.on( 'mouseover', function() { showTooltip( callback, this, editor, dialog, obj, dialog._.currentTabId ); }); el.on( 'mouseout', function() { tooltip.hide(); }); } }); }); } }); })(); /** * A function that returns the text to be displayed inside the Developer Tools tooltip when hovering over a dialog UI element. * There are 4 parameters that are being passed into the function: editor, dialog window, element, tab name. * @name editor.config.devtools_textCallback * @since 3.6 * @type Function * @default (see example) * @example * // This is actually the default value. * // Show dialog window name, tab ID, and element ID. * config.devtools_textCallback = function( editor, dialog, element, tabName ) * { * var lang = editor.lang.devTools, * link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' + * ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) + * '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>', * str = * '<h2>' + lang.title + '</h2>' + * '<ul>' + * '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' + * '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>'; * * if ( element ) * str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>'; * * str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>'; * * return str + '</ul>'; * } */ /** * A setting that stores CSS rules to be injected into the page with styles to be applied to the tooltip element. * @name CKEDITOR.config.devtools_styles * @since 3.6 * @type String * @default (see example) * @example * // This is actually the default value. * CKEDITOR.config.devtools_styles = &quot; * #cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff } * #cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; } * #cke_tooltip ul { padding: 0pt; list-style-type: none; } * &quot;; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'cy', { devTools : { title : 'Gwybodaeth am yr Elfen', dialogName : 'Enw ffenestr y deialog', tabName : 'Enw\'r tab', elementId : 'ID yr Elfen', elementType : 'Math yr elfen' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'tr', { devTools : { title : 'Eleman Bilgisi', dialogName : 'İletişim pencere ismi', tabName : 'Sekme adı', elementId : 'Eleman ID', elementType : 'Eleman türü' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'nb', { devTools : { title : 'Elementinformasjon', dialogName : 'Navn på dialogvindu', tabName : 'Navn på fane', elementId : 'Element-ID', elementType : 'Elementtype' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'fr', { devTools : { title : 'Information sur l\'élément', dialogName : 'Nom de la fenêtre de dialogue', tabName : 'Nom de l\'onglet', elementId : 'ID de l\'élément', elementType : 'Type de l\'élément' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'fa', { devTools : { title : 'اطلاعات عنصر', dialogName : 'نام پنجره محاوره‌ای', tabName : 'نام برگه', elementId : 'ID عنصر', elementType : 'نوع عنصر' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'eo', { devTools : { title : 'Informo pri la elemento', dialogName : 'Nomo de la dialogfenestro', tabName : 'Langetnomo', elementId : 'ID de la elemento', elementType : 'Tipo de la elemento' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'uk', { devTools : { title : 'Відомості про Елемент', dialogName : 'Заголовок діалогового вікна', tabName : 'Назва вкладки', elementId : 'Ідентифікатор Елемента', elementType : 'Тип Елемента' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'he', { devTools : { title : 'מידע על האלמנט', dialogName : 'שם הדיאלוג', tabName : 'שם הטאב', elementId : 'ID של האלמנט', elementType : 'סוג האלמנט' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'de', { devTools : { title : 'Elementinformation', dialogName : 'Dialogfenstername', tabName : 'Reitername', elementId : 'Element ID', elementType : 'Elementtyp' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'ku', { devTools : { title : 'زانیاری توخم', dialogName : 'ناوی په‌نجه‌ره‌ی دیالۆگ', tabName : 'ناوی بازده‌ر تاب', elementId : 'ناسنامه‌ی توخم', elementType : 'جۆری توخم' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'no', { devTools : { title : 'Elementinformasjon', dialogName : 'Navn på dialogvindu', tabName : 'Navn på fane', elementId : 'Element-ID', elementType : 'Elementtype' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'el', { devTools : { title : 'Πληροφορίες Στοιχείου', dialogName : 'Όνομα παραθύρου διαλόγου', tabName : 'Όνομα καρτέλας', elementId : 'ID Στοιχείου', elementType : 'Τύπος στοιχείου' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'vi', { devTools : { title : 'Thông tin thành ph', dialogName : 'Tên hộp tho', tabName : 'Tên th', elementId : 'Mã thành ph', elementType : 'Loại thành ph' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'it', { devTools : { title : 'Informazioni elemento', dialogName : 'Nome finestra di dialogo', tabName : 'Nome Tab', elementId : 'ID Elemento', elementType : 'Tipo elemento' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'sk', { devTools : { title : 'Informácie o prvku', dialogName : 'Názov okna dialógu', tabName : 'Názov záložky', elementId : 'ID prvku', elementType : 'Typ prvku' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'nl', { devTools : { title : 'Elementinformatie', dialogName : 'Naam dialoogvenster', tabName : 'Tabnaam', elementId : 'Element ID', elementType : 'Elementtype' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'da', { devTools : { title : 'Information på elementet', dialogName : 'Dialogboks', tabName : 'Tab beskrivelse', elementId : 'ID på element', elementType : 'Type af element' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'et', { devTools : { title : 'Elemendi andmed', dialogName : 'Dialoogiakna nimi', tabName : 'Saki nimi', elementId : 'Elemendi ID', elementType : 'Elemendi liik' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'pt-br', { devTools : { title : 'Informação do Elemento', dialogName : 'Nome da janela de diálogo', tabName : 'Nome da aba', elementId : 'ID do elemento', elementType : 'Tipo do elemento' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'gu', { devTools : { title : 'પ્રાથમિક માહિતી', dialogName : 'વિન્ડોનું નામ', tabName : 'ટેબનું નામ', elementId : 'પ્રાથમિક આઈડી', elementType : 'પ્રાથમિક પ્રકાર' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'pl', { devTools : { title : 'Informacja o elemencie', dialogName : 'Nazwa okna dialogowego', tabName : 'Nazwa zakładki', elementId : 'ID elementu', elementType : 'Typ elementu' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'cs', { devTools : { title : 'Informace o prvku', dialogName : 'Název dialogového okna', tabName : 'Název karty', elementId : 'ID prvku', elementType : 'Typ prvku' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'hr', { devTools : { title : 'Informacije elementa', dialogName : 'Naziv prozora za dijalog', tabName : 'Naziva jahača', elementId : 'ID elementa', elementType : 'Vrsta elementa' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'fi', { devTools : { title : 'Elementin tiedot', dialogName : 'Dialogi-ikkunan nimi', tabName : 'Välilehden nimi', elementId : 'Elementin ID', elementType : 'Elementin tyyppi' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'ug', { devTools : { title : 'ئېلېمېنت ئۇچۇرى', dialogName : 'سۆزلەشكۈ كۆزنەك ئاتى', tabName : 'Tab ئاتى', elementId : 'ئېلېمېنت كىملىكى', elementType : 'ئېلېمېنت تىپى' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'zh-cn', { devTools : { title : '元素信息', dialogName : '对话框窗口名称', tabName : 'Tab 名称', elementId : '元素 ID', elementType : '元素类型' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'bg', { devTools : { title : 'Информация за елемента', dialogName : 'Име на диалоговия прозорец', tabName : 'Име на таб', elementId : 'ID на елемента', elementType : 'Тип на елемента' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'en', { devTools : { title : 'Element Information', dialogName : 'Dialog window name', tabName : 'Tab name', elementId : 'Element ID', elementType : 'Element type' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'resize', { init : function( editor ) { var config = editor.config; // Resize in the same direction of chrome, // which is identical to dir of editor element. (#6614) var resizeDir = editor.element.getDirection( 1 ); !config.resize_dir && ( config.resize_dir = 'both' ); ( config.resize_maxWidth == undefined ) && ( config.resize_maxWidth = 3000 ); ( config.resize_maxHeight == undefined ) && ( config.resize_maxHeight = 3000 ); ( config.resize_minWidth == undefined ) && ( config.resize_minWidth = 750 ); ( config.resize_minHeight == undefined ) && ( config.resize_minHeight = 250 ); if ( config.resize_enabled !== false ) { var container = null, origin, startSize, resizeHorizontal = ( config.resize_dir == 'both' || config.resize_dir == 'horizontal' ) && ( config.resize_minWidth != config.resize_maxWidth ), resizeVertical = ( config.resize_dir == 'both' || config.resize_dir == 'vertical' ) && ( config.resize_minHeight != config.resize_maxHeight ); function dragHandler( evt ) { var dx = evt.data.$.screenX - origin.x, dy = evt.data.$.screenY - origin.y, width = startSize.width, height = startSize.height, internalWidth = width + dx * ( resizeDir == 'rtl' ? -1 : 1 ), internalHeight = height + dy; if ( resizeHorizontal ) width = Math.max( config.resize_minWidth, Math.min( internalWidth, config.resize_maxWidth ) ); if ( resizeVertical ) height = Math.max( config.resize_minHeight, Math.min( internalHeight, config.resize_maxHeight ) ); // DO NOT impose fixed size with single direction resize. (#6308) editor.resize( resizeHorizontal ? width : null, height ); } function dragEndHandler ( evt ) { CKEDITOR.document.removeListener( 'mousemove', dragHandler ); CKEDITOR.document.removeListener( 'mouseup', dragEndHandler ); if ( editor.document ) { editor.document.removeListener( 'mousemove', dragHandler ); editor.document.removeListener( 'mouseup', dragEndHandler ); } } var mouseDownFn = CKEDITOR.tools.addFunction( function( $event ) { if ( !container ) container = editor.getResizable(); startSize = { width : container.$.offsetWidth || 0, height : container.$.offsetHeight || 0 }; origin = { x : $event.screenX, y : $event.screenY }; config.resize_minWidth > startSize.width && ( config.resize_minWidth = startSize.width ); config.resize_minHeight > startSize.height && ( config.resize_minHeight = startSize.height ); CKEDITOR.document.on( 'mousemove', dragHandler ); CKEDITOR.document.on( 'mouseup', dragEndHandler ); if ( editor.document ) { editor.document.on( 'mousemove', dragHandler ); editor.document.on( 'mouseup', dragEndHandler ); } }); editor.on( 'destroy', function() { CKEDITOR.tools.removeFunction( mouseDownFn ); } ); editor.on( 'themeSpace', function( event ) { if ( event.data.space == 'bottom' ) { var direction = ''; if ( resizeHorizontal && !resizeVertical ) direction = ' cke_resizer_horizontal'; if ( !resizeHorizontal && resizeVertical ) direction = ' cke_resizer_vertical'; var resizerHtml = '<div' + ' class="cke_resizer' + direction + ' cke_resizer_' + resizeDir + '"' + ' title="' + CKEDITOR.tools.htmlEncode( editor.lang.resize ) + '"' + ' onmousedown="CKEDITOR.tools.callFunction(' + mouseDownFn + ', event)"' + '></div>'; // Always sticks the corner of botttom space. resizeDir == 'ltr' && direction == 'ltr' ? event.data.html += resizerHtml : event.data.html = resizerHtml + event.data.html; } }, editor, null, 100 ); } } } ); /** * The minimum editor width, in pixels, when resizing the editor interface by using the resize handle. * Note: It falls back to editor's actual width if it is smaller than the default value. * @name CKEDITOR.config.resize_minWidth * @type Number * @default 750 * @example * config.resize_minWidth = 500; */ /** * The minimum editor height, in pixels, when resizing the editor interface by using the resize handle. * Note: It falls back to editor's actual height if it is smaller than the default value. * @name CKEDITOR.config.resize_minHeight * @type Number * @default 250 * @example * config.resize_minHeight = 600; */ /** * The maximum editor width, in pixels, when resizing the editor interface by using the resize handle. * @name CKEDITOR.config.resize_maxWidth * @type Number * @default 3000 * @example * config.resize_maxWidth = 750; */ /** * The maximum editor height, in pixels, when resizing the editor interface by using the resize handle. * @name CKEDITOR.config.resize_maxHeight * @type Number * @default 3000 * @example * config.resize_maxHeight = 600; */ /** * Whether to enable the resizing feature. If this feature is disabled, the resize handle will not be visible. * @name CKEDITOR.config.resize_enabled * @type Boolean * @default true * @example * config.resize_enabled = false; */ /** * The dimensions for which the editor resizing is enabled. Possible values * are <code>both</code>, <code>vertical</code>, and <code>horizontal</code>. * @name CKEDITOR.config.resize_dir * @type String * @default 'both' * @since 3.3 * @example * config.resize_dir = 'vertical'; */
JavaScript
/* Copyright (c) 2003-2012, 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+/; */
JavaScript
/* Copyright (c) 2003-2012, 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|&nbsp;)+$/ ).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: &quot;Lucida, Console&quot;' ( styleText || '' ) .replace( /&quot;/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; */
JavaScript
/* Copyright (c) 2003-2012, 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'; */
JavaScript
/* Copyright (c) 2003-2012, 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; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'menubutton', { requires : [ 'button', 'menu' ], beforeInit : function( editor ) { editor.ui.addHandler( CKEDITOR.UI_MENUBUTTON, CKEDITOR.ui.menuButton.handler ); } }); /** * Button UI element. * @constant * @example */ CKEDITOR.UI_MENUBUTTON = 'menubutton'; (function() { var clickFn = function( editor ) { var _ = this._; // Do nothing if this button is disabled. if ( _.state === CKEDITOR.TRISTATE_DISABLED ) return; _.previousState = _.state; // Check if we already have a menu for it, otherwise just create it. var menu = _.menu; if ( !menu ) { menu = _.menu = new CKEDITOR.menu( editor, { panel: { className : editor.skinClass + ' cke_contextmenu', attributes : { 'aria-label' : editor.lang.common.options } } }); menu.onHide = CKEDITOR.tools.bind( function() { this.setState( this.modes && this.modes[ editor.mode ] ? _.previousState : CKEDITOR.TRISTATE_DISABLED ); }, this ); // Initialize the menu items at this point. if ( this.onMenu ) menu.addListener( this.onMenu ); } if ( _.on ) { menu.hide(); return; } this.setState( CKEDITOR.TRISTATE_ON ); menu.show( CKEDITOR.document.getById( this._.id ), 4 ); }; CKEDITOR.ui.menuButton = 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.hasArrow = true; this.click = clickFn; }, statics : { handler : { create : function( definition ) { return new CKEDITOR.ui.menuButton( definition ); } } } }); })();
JavaScript
/* Copyright (c) 2003-2012, 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 = false; var onExec = function() { enabled = true; }; // 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(); // 1. Opera just misses the "paste" event. // 2. Firefox's "paste" event comes too late to have the plain // text paste bin to work. if ( CKEDITOR.env.opera || CKEDITOR.env.gecko ) 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() { // Restore properly the document focus. (#5684, #8849) editor.document.getBody().focus(); editor.removeListener( 'selectionChange', cancel ); // IE7: selection must go before removing paste bin. (#8691) if ( CKEDITOR.env.ie7Compat ) { sel.selectBookmarks( bms ); pastebin.remove(); } // Webkit: selection must go after removing paste bin. (#8921) else { pastebin.remove(); sel.selectBookmarks( bms ); } // 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 ); 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, inReadOnly; function stateFromNamedCommand( command, editor ) { var retval; if ( inReadOnly && command in { Paste : 1, Cut : 1 } ) return CKEDITOR.TRISTATE_DISABLED; if ( command == 'Paste' ) { // 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 ); try { // Always return true for Webkit (which always returns false). retval = editor.document.$.queryCommandEnabled( command ) || CKEDITOR.env.webkit; } catch( er ) {} depressBeforeEvent = 0; } // Cut, Copy - check if the selection is not empty else { var sel = editor.getSelection(), ranges = sel && sel.getRanges(); retval = sel && !( ranges.length == 1 && ranges[ 0 ].collapsed ); } return retval ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; } function setToolbarStates() { if ( this.mode != 'wysiwyg' ) return; var pasteState = stateFromNamedCommand( 'Paste', this ); this.getCommand( 'cut' ).setState( stateFromNamedCommand( 'Cut', this ) ); this.getCommand( 'copy' ).setState( stateFromNamedCommand( 'Copy', this ) ); this.getCommand( 'paste' ).setState( pasteState ); 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(); // Intercept the paste before it actually takes place. body.on( !CKEDITOR.env.ie ? 'paste' : 'beforepaste', function( evt ) { if ( depressBeforeEvent ) return; // Dismiss the (wrong) 'beforepaste' event fired on toolbar menu open. var domEvent = evt.data && evt.data.$; if ( CKEDITOR.env.ie && domEvent && !domEvent.ctrlKey ) 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 ); } ); }); if ( CKEDITOR.env.ie ) { // Dismiss the (wrong) 'beforepaste' event fired on context menu open. (#7953) body.on( 'contextmenu', function() { depressBeforeEvent = 1; // Important: The following timeout will be called only after menu closed. setTimeout( function() { depressBeforeEvent = 0; }, 0 ); } ); // Handle IE's late coming "paste" event when pasting from // browser toolbar/context menu. body.on( 'paste', function( evt ) { if ( !editor.document.getById( 'cke_pastebin' ) ) { // Prevent native paste. evt.data.preventDefault(); depressBeforeEvent = 0; // Resort to the paste command. pasteCmd.exec( editor ); } } ); } 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 : stateFromNamedCommand( 'Cut', editor ), copy : stateFromNamedCommand( 'Copy', editor ), paste : 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 */
JavaScript
/* Copyright (c) 2003-2012, 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( 1 ); 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 ); } } ] } ] }; });
JavaScript
/* Copyright (c) 2003-2012, 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.getPageOffset().x ); } 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; var pageX = evt.getPageOffset().x; // If we're already attached to a pillar, simply move the // resizer. if ( resizer && resizer.move( pageX ) ) { 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, pageX ); if ( pillar ) { !resizer && ( resizer = new columnResizer( editor ) ); resizer.attachTo( pillar ); } }); }); } }); })();
JavaScript
/* Copyright (c) 2003-2012, 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 ? '&#9660;' : CKEDITOR.env.air ? '&nbsp;' : '' ) + '</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 ); };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Image plugin */ (function() { CKEDITOR.plugins.add( 'image', { requires: [ 'dialog' ], init : function( editor ) { var pluginName = 'image'; // Register the dialog. CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/image.js' ); // Register the command. editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) ); // Register the toolbar button. editor.ui.addButton( 'Image', { label : editor.lang.common.image, command : pluginName }); editor.on( 'doubleclick', function( evt ) { var element = evt.data.element; if ( element.is( 'img' ) && !element.data( 'cke-realelement' ) && !element.isReadOnly() ) evt.data.dialog = 'image'; }); // If the "menu" plugin is loaded, register the menu items. if ( editor.addMenuItems ) { editor.addMenuItems( { image : { label : editor.lang.image.menu, command : 'image', group : 'image' } }); } // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu ) { editor.contextMenu.addListener( function( element, selection ) { if ( getSelectedImage( editor, element ) ) return { image : CKEDITOR.TRISTATE_OFF }; }); } }, afterInit : function( editor ) { // Customize the behavior of the alignment commands. (#7430) setupAlignCommand( 'left' ); setupAlignCommand( 'right' ); setupAlignCommand( 'center' ); setupAlignCommand( 'block' ); function setupAlignCommand( value ) { var command = editor.getCommand( 'justify' + value ); if ( command ) { if ( value == 'left' || value == 'right' ) { command.on( 'exec', function( evt ) { var img = getSelectedImage( editor ), align; if ( img ) { align = getImageAlignment( img ); if ( align == value ) { img.removeStyle( 'float' ); // Remove "align" attribute when necessary. if ( value == getImageAlignment( img ) ) img.removeAttribute( 'align' ); } else img.setStyle( 'float', value ); evt.cancel(); } }); } command.on( 'refresh', function( evt ) { var img = getSelectedImage( editor ), align; if ( img ) { align = getImageAlignment( img ); this.setState( ( align == value ) ? CKEDITOR.TRISTATE_ON : ( value == 'right' || value == 'left' ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); evt.cancel(); } }); } } } }); function getSelectedImage( editor, element ) { if ( !element ) { var sel = editor.getSelection(); element = ( sel.getType() == CKEDITOR.SELECTION_ELEMENT ) && sel.getSelectedElement(); } if ( element && element.is( 'img' ) && !element.data( 'cke-realelement' ) && !element.isReadOnly() ) return element; } function getImageAlignment( element ) { var align = element.getStyle( 'float' ); if ( align == 'inherit' || align == 'none' ) align = 0; if ( !align ) align = element.getAttribute( 'align' ); return align; } })(); /** * Whether to remove links when emptying the link URL field in the image dialog. * @type Boolean * @default true * @example * config.image_removeLinkByEmptyURL = false; */ CKEDITOR.config.image_removeLinkByEmptyURL = true; /** * Padding text to set off the image in preview area. * @name CKEDITOR.config.image_previewText * @type String * @default "Lorem ipsum dolor..." placehoder text. * @example * config.image_previewText = CKEDITOR.tools.repeat( '___ ', 100 ); */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var imageDialog = function( editor, dialogType ) { // Load image preview. var IMAGE = 1, LINK = 2, PREVIEW = 4, CLEANUP = 8, regexGetSize = /^\s*(\d+)((px)|\%)?\s*$/i, regexGetSizeOrEmpty = /(^\s*(\d+)((px)|\%)?\s*$)|^$/i, pxLengthRegex = /^\d+px$/; var onSizeChange = function() { var value = this.getValue(), // This = input element. dialog = this.getDialog(), aMatch = value.match( regexGetSize ); // Check value if ( aMatch ) { if ( aMatch[2] == '%' ) // % is allowed - > unlock ratio. switchLockRatio( dialog, false ); // Unlock. value = aMatch[1]; } // Only if ratio is locked if ( dialog.lockRatio ) { var oImageOriginal = dialog.originalElement; if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) { if ( this.id == 'txtHeight' ) { if ( value && value != '0' ) value = Math.round( oImageOriginal.$.width * ( value / oImageOriginal.$.height ) ); if ( !isNaN( value ) ) dialog.setValueOf( 'info', 'txtWidth', value ); } else //this.id = txtWidth. { if ( value && value != '0' ) value = Math.round( oImageOriginal.$.height * ( value / oImageOriginal.$.width ) ); if ( !isNaN( value ) ) dialog.setValueOf( 'info', 'txtHeight', value ); } } } updatePreview( dialog ); }; var updatePreview = function( dialog ) { //Don't load before onShow. if ( !dialog.originalElement || !dialog.preview ) return 1; // Read attributes and update imagePreview; dialog.commitContent( PREVIEW, dialog.preview ); return 0; }; // Custom commit dialog logic, where we're intended to give inline style // field (txtdlgGenStyle) higher priority to avoid overwriting styles contribute // by other fields. function commitContent() { var args = arguments; var inlineStyleField = this.getContentElement( 'advanced', 'txtdlgGenStyle' ); inlineStyleField && inlineStyleField.commit.apply( inlineStyleField, args ); this.foreach( function( widget ) { if ( widget.commit && widget.id != 'txtdlgGenStyle' ) widget.commit.apply( widget, args ); }); } // Avoid recursions. var incommit; // Synchronous field values to other impacted fields is required, e.g. border // size change should alter inline-style text as well. function commitInternally( targetFields ) { if ( incommit ) return; incommit = 1; var dialog = this.getDialog(), element = dialog.imageElement; if ( element ) { // Commit this field and broadcast to target fields. this.commit( IMAGE, element ); targetFields = [].concat( targetFields ); var length = targetFields.length, field; for ( var i = 0; i < length; i++ ) { field = dialog.getContentElement.apply( dialog, targetFields[ i ].split( ':' ) ); // May cause recursion. field && field.setup( IMAGE, element ); } } incommit = 0; } var switchLockRatio = function( dialog, value ) { if ( !dialog.getContentElement( 'info', 'ratioLock' ) ) return null; var oImageOriginal = dialog.originalElement; // Dialog may already closed. (#5505) if( !oImageOriginal ) return null; // Check image ratio and original image ratio, but respecting user's preference. if ( value == 'check' ) { if ( !dialog.userlockRatio && oImageOriginal.getCustomData( 'isReady' ) == 'true' ) { var width = dialog.getValueOf( 'info', 'txtWidth' ), height = dialog.getValueOf( 'info', 'txtHeight' ), originalRatio = oImageOriginal.$.width * 1000 / oImageOriginal.$.height, thisRatio = width * 1000 / height; dialog.lockRatio = false; // Default: unlock ratio if ( !width && !height ) dialog.lockRatio = true; else if ( !isNaN( originalRatio ) && !isNaN( thisRatio ) ) { if ( Math.round( originalRatio ) == Math.round( thisRatio ) ) dialog.lockRatio = true; } } } else if ( value != undefined ) dialog.lockRatio = value; else { dialog.userlockRatio = 1; dialog.lockRatio = !dialog.lockRatio; } var ratioButton = CKEDITOR.document.getById( btnLockSizesId ); if ( dialog.lockRatio ) ratioButton.removeClass( 'cke_btn_unlocked' ); else ratioButton.addClass( 'cke_btn_unlocked' ); ratioButton.setAttribute( 'aria-checked', dialog.lockRatio ); // Ratio button hc presentation - WHITE SQUARE / BLACK SQUARE if ( CKEDITOR.env.hc ) { var icon = ratioButton.getChild( 0 ); icon.setHtml( dialog.lockRatio ? CKEDITOR.env.ie ? '\u25A0': '\u25A3' : CKEDITOR.env.ie ? '\u25A1' : '\u25A2' ); } return dialog.lockRatio; }; var resetSize = function( dialog ) { var oImageOriginal = dialog.originalElement; if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) { var widthField = dialog.getContentElement( 'info', 'txtWidth' ), heightField = dialog.getContentElement( 'info', 'txtHeight' ); widthField && widthField.setValue( oImageOriginal.$.width ); heightField && heightField.setValue( oImageOriginal.$.height ); } updatePreview( dialog ); }; var setupDimension = function( type, element ) { if ( type != IMAGE ) return; function checkDimension( size, defaultValue ) { var aMatch = size.match( regexGetSize ); if ( aMatch ) { if ( aMatch[2] == '%' ) // % is allowed. { aMatch[1] += '%'; switchLockRatio( dialog, false ); // Unlock ratio } return aMatch[1]; } return defaultValue; } var dialog = this.getDialog(), value = '', dimension = this.id == 'txtWidth' ? 'width' : 'height', size = element.getAttribute( dimension ); if ( size ) value = checkDimension( size, value ); value = checkDimension( element.getStyle( dimension ), value ); this.setValue( value ); }; var previewPreloader; var onImgLoadEvent = function() { // Image is ready. var original = this.originalElement; original.setCustomData( 'isReady', 'true' ); original.removeListener( 'load', onImgLoadEvent ); original.removeListener( 'error', onImgLoadErrorEvent ); original.removeListener( 'abort', onImgLoadErrorEvent ); // Hide loader CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' ); // New image -> new domensions if ( !this.dontResetSize ) resetSize( this ); if ( this.firstLoad ) CKEDITOR.tools.setTimeout( function(){ switchLockRatio( this, 'check' ); }, 0, this ); this.firstLoad = false; this.dontResetSize = false; }; var onImgLoadErrorEvent = function() { // Error. Image is not loaded. var original = this.originalElement; original.removeListener( 'load', onImgLoadEvent ); original.removeListener( 'error', onImgLoadErrorEvent ); original.removeListener( 'abort', onImgLoadErrorEvent ); // Set Error image. var noimage = CKEDITOR.getUrl( editor.skinPath + 'images/noimage.png' ); if ( this.preview ) this.preview.setAttribute( 'src', noimage ); // Hide loader CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' ); switchLockRatio( this, false ); // Unlock. }; var numbering = function( id ) { return CKEDITOR.tools.getNextId() + '_' + id; }, btnLockSizesId = numbering( 'btnLockSizes' ), btnResetSizeId = numbering( 'btnResetSize' ), imagePreviewLoaderId = numbering( 'ImagePreviewLoader' ), previewLinkId = numbering( 'previewLink' ), previewImageId = numbering( 'previewImage' ); return { title : editor.lang.image[ dialogType == 'image' ? 'title' : 'titleButton' ], minWidth : 420, minHeight : 360, onShow : function() { this.imageElement = false; this.linkElement = false; // Default: create a new element. this.imageEditMode = false; this.linkEditMode = false; this.lockRatio = true; this.userlockRatio = 0; this.dontResetSize = false; this.firstLoad = true; this.addLink = false; var editor = this.getParentEditor(), sel = editor.getSelection(), element = sel && sel.getSelectedElement(), link = element && element.getAscendant( 'a' ); //Hide loader. CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' ); // Create the preview before setup the dialog contents. previewPreloader = new CKEDITOR.dom.element( 'img', editor.document ); this.preview = CKEDITOR.document.getById( previewImageId ); // Copy of the image this.originalElement = editor.document.createElement( 'img' ); this.originalElement.setAttribute( 'alt', '' ); this.originalElement.setCustomData( 'isReady', 'false' ); if ( link ) { this.linkElement = link; this.linkEditMode = true; // Look for Image element. var linkChildren = link.getChildren(); if ( linkChildren.count() == 1 ) // 1 child. { var childTagName = linkChildren.getItem( 0 ).getName(); if ( childTagName == 'img' || childTagName == 'input' ) { this.imageElement = linkChildren.getItem( 0 ); if ( this.imageElement.getName() == 'img' ) this.imageEditMode = 'img'; else if ( this.imageElement.getName() == 'input' ) this.imageEditMode = 'input'; } } // Fill out all fields. if ( dialogType == 'image' ) this.setupContent( LINK, link ); } if ( element && element.getName() == 'img' && !element.data( 'cke-realelement' ) || element && element.getName() == 'input' && element.getAttribute( 'type' ) == 'image' ) { this.imageEditMode = element.getName(); this.imageElement = element; } if ( this.imageEditMode ) { // Use the original element as a buffer from since we don't want // temporary changes to be committed, e.g. if the dialog is canceled. this.cleanImageElement = this.imageElement; this.imageElement = this.cleanImageElement.clone( true, true ); // Fill out all fields. this.setupContent( IMAGE, this.imageElement ); } else this.imageElement = editor.document.createElement( 'img' ); // Refresh LockRatio button switchLockRatio ( this, true ); // Dont show preview if no URL given. if ( !CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtUrl' ) ) ) { this.preview.removeAttribute( 'src' ); this.preview.setStyle( 'display', 'none' ); } }, onOk : function() { // Edit existing Image. if ( this.imageEditMode ) { var imgTagName = this.imageEditMode; // Image dialog and Input element. if ( dialogType == 'image' && imgTagName == 'input' && confirm( editor.lang.image.button2Img ) ) { // Replace INPUT-> IMG imgTagName = 'img'; this.imageElement = editor.document.createElement( 'img' ); this.imageElement.setAttribute( 'alt', '' ); editor.insertElement( this.imageElement ); } // ImageButton dialog and Image element. else if ( dialogType != 'image' && imgTagName == 'img' && confirm( editor.lang.image.img2Button )) { // Replace IMG -> INPUT imgTagName = 'input'; this.imageElement = editor.document.createElement( 'input' ); this.imageElement.setAttributes( { type : 'image', alt : '' } ); editor.insertElement( this.imageElement ); } else { // Restore the original element before all commits. this.imageElement = this.cleanImageElement; delete this.cleanImageElement; } } else // Create a new image. { // Image dialog -> create IMG element. if ( dialogType == 'image' ) this.imageElement = editor.document.createElement( 'img' ); else { this.imageElement = editor.document.createElement( 'input' ); this.imageElement.setAttribute ( 'type' ,'image' ); } this.imageElement.setAttribute( 'alt', '' ); } // Create a new link. if ( !this.linkEditMode ) this.linkElement = editor.document.createElement( 'a' ); // Set attributes. this.commitContent( IMAGE, this.imageElement ); this.commitContent( LINK, this.linkElement ); // Remove empty style attribute. if ( !this.imageElement.getAttribute( 'style' ) ) this.imageElement.removeAttribute( 'style' ); // Insert a new Image. if ( !this.imageEditMode ) { if ( this.addLink ) { //Insert a new Link. if ( !this.linkEditMode ) { editor.insertElement( this.linkElement ); this.linkElement.append( this.imageElement, false ); } else //Link already exists, image not. editor.insertElement( this.imageElement ); } else editor.insertElement( this.imageElement ); } else // Image already exists. { //Add a new link element. if ( !this.linkEditMode && this.addLink ) { editor.insertElement( this.linkElement ); this.imageElement.appendTo( this.linkElement ); } //Remove Link, Image exists. else if ( this.linkEditMode && !this.addLink ) { editor.getSelection().selectElement( this.linkElement ); editor.insertElement( this.imageElement ); } } }, onLoad : function() { if ( dialogType != 'image' ) this.hidePage( 'Link' ); //Hide Link tab. var doc = this._.element.getDocument(); if ( this.getContentElement( 'info', 'ratioLock' ) ) { this.addFocusable( doc.getById( btnResetSizeId ), 5 ); this.addFocusable( doc.getById( btnLockSizesId ), 5 ); } this.commitContent = commitContent; }, onHide : function() { if ( this.preview ) this.commitContent( CLEANUP, this.preview ); if ( this.originalElement ) { this.originalElement.removeListener( 'load', onImgLoadEvent ); this.originalElement.removeListener( 'error', onImgLoadErrorEvent ); this.originalElement.removeListener( 'abort', onImgLoadErrorEvent ); this.originalElement.remove(); this.originalElement = false; // Dialog is closed. } delete this.imageElement; }, contents : [ { id : 'info', label : editor.lang.image.infoTab, accessKey : 'I', elements : [ { type : 'vbox', padding : 0, children : [ { type : 'hbox', widths : [ '280px', '110px' ], align : 'right', children : [ { id : 'txtUrl', type : 'text', label : editor.lang.common.url, required: true, onChange : function() { var dialog = this.getDialog(), newUrl = this.getValue(); //Update original image if ( newUrl.length > 0 ) //Prevent from load before onShow { dialog = this.getDialog(); var original = dialog.originalElement; dialog.preview.removeStyle( 'display' ); original.setCustomData( 'isReady', 'false' ); // Show loader var loader = CKEDITOR.document.getById( imagePreviewLoaderId ); if ( loader ) loader.setStyle( 'display', '' ); original.on( 'load', onImgLoadEvent, dialog ); original.on( 'error', onImgLoadErrorEvent, dialog ); original.on( 'abort', onImgLoadErrorEvent, dialog ); original.setAttribute( 'src', newUrl ); // Query the preloader to figure out the url impacted by based href. previewPreloader.setAttribute( 'src', newUrl ); dialog.preview.setAttribute( 'src', previewPreloader.$.src ); updatePreview( dialog ); } // Dont show preview if no URL given. else if ( dialog.preview ) { dialog.preview.removeAttribute( 'src' ); dialog.preview.setStyle( 'display', 'none' ); } }, setup : function( type, element ) { if ( type == IMAGE ) { var url = element.data( 'cke-saved-src' ) || element.getAttribute( 'src' ); var field = this; this.getDialog().dontResetSize = true; field.setValue( url ); // And call this.onChange() // Manually set the initial value.(#4191) field.setInitValue(); } }, commit : function( type, element ) { if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) { element.data( 'cke-saved-src', this.getValue() ); element.setAttribute( 'src', this.getValue() ); } else if ( type == CLEANUP ) { element.setAttribute( 'src', '' ); // If removeAttribute doesn't work. element.removeAttribute( 'src' ); } }, validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.image.urlMissing ) }, { type : 'button', id : 'browse', // v-align with the 'txtUrl' field. // TODO: We need something better than a fixed size here. style : 'display:inline-block;margin-top:10px;', align : 'center', label : editor.lang.common.browseServer, hidden : true, filebrowser : 'info:txtUrl' } ] } ] }, { id : 'txtAlt', type : 'text', label : editor.lang.image.alt, accessKey : 'T', 'default' : '', onChange : function() { updatePreview( this.getDialog() ); }, setup : function( type, element ) { if ( type == IMAGE ) this.setValue( element.getAttribute( 'alt' ) ); }, commit : function( type, element ) { if ( type == IMAGE ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'alt', this.getValue() ); } else if ( type == PREVIEW ) { element.setAttribute( 'alt', this.getValue() ); } else if ( type == CLEANUP ) { element.removeAttribute( 'alt' ); } } }, { type : 'hbox', children : [ { id : 'basic', type : 'vbox', children : [ { type : 'hbox', widths : [ '50%', '50%' ], children : [ { type : 'vbox', padding : 1, children : [ { type : 'text', width: '40px', id : 'txtWidth', label : editor.lang.common.width, onKeyUp : onSizeChange, onChange : function() { commitInternally.call( this, 'advanced:txtdlgGenStyle' ); }, validate : function() { var aMatch = this.getValue().match( regexGetSizeOrEmpty ), isValid = !!( aMatch && parseInt( aMatch[1], 10 ) !== 0 ); if ( !isValid ) alert( editor.lang.common.invalidWidth ); return isValid; }, setup : setupDimension, commit : function( type, element, internalCommit ) { var value = this.getValue(); if ( type == IMAGE ) { if ( value ) element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) ); else element.removeStyle( 'width' ); !internalCommit && element.removeAttribute( 'width' ); } else if ( type == PREVIEW ) { var aMatch = value.match( regexGetSize ); if ( !aMatch ) { var oImageOriginal = this.getDialog().originalElement; if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) element.setStyle( 'width', oImageOriginal.$.width + 'px'); } else element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) ); } else if ( type == CLEANUP ) { element.removeAttribute( 'width' ); element.removeStyle( 'width' ); } } }, { type : 'text', id : 'txtHeight', width: '40px', label : editor.lang.common.height, onKeyUp : onSizeChange, onChange : function() { commitInternally.call( this, 'advanced:txtdlgGenStyle' ); }, validate : function() { var aMatch = this.getValue().match( regexGetSizeOrEmpty ), isValid = !!( aMatch && parseInt( aMatch[1], 10 ) !== 0 ); if ( !isValid ) alert( editor.lang.common.invalidHeight ); return isValid; }, setup : setupDimension, commit : function( type, element, internalCommit ) { var value = this.getValue(); if ( type == IMAGE ) { if ( value ) element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) ); else element.removeStyle( 'height' ); !internalCommit && element.removeAttribute( 'height' ); } else if ( type == PREVIEW ) { var aMatch = value.match( regexGetSize ); if ( !aMatch ) { var oImageOriginal = this.getDialog().originalElement; if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) element.setStyle( 'height', oImageOriginal.$.height + 'px' ); } else element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) ); } else if ( type == CLEANUP ) { element.removeAttribute( 'height' ); element.removeStyle( 'height' ); } } } ] }, { id : 'ratioLock', type : 'html', style : 'margin-top:30px;width:40px;height:40px;', onLoad : function() { // Activate Reset button var resetButton = CKEDITOR.document.getById( btnResetSizeId ), ratioButton = CKEDITOR.document.getById( btnLockSizesId ); if ( resetButton ) { resetButton.on( 'click', function( evt ) { resetSize( this ); evt.data && evt.data.preventDefault(); }, this.getDialog() ); resetButton.on( 'mouseover', function() { this.addClass( 'cke_btn_over' ); }, resetButton ); resetButton.on( 'mouseout', function() { this.removeClass( 'cke_btn_over' ); }, resetButton ); } // Activate (Un)LockRatio button if ( ratioButton ) { ratioButton.on( 'click', function(evt) { var locked = switchLockRatio( this ), oImageOriginal = this.originalElement, width = this.getValueOf( 'info', 'txtWidth' ); if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' && width ) { var height = oImageOriginal.$.height / oImageOriginal.$.width * width; if ( !isNaN( height ) ) { this.setValueOf( 'info', 'txtHeight', Math.round( height ) ); updatePreview( this ); } } evt.data && evt.data.preventDefault(); }, this.getDialog() ); ratioButton.on( 'mouseover', function() { this.addClass( 'cke_btn_over' ); }, ratioButton ); ratioButton.on( 'mouseout', function() { this.removeClass( 'cke_btn_over' ); }, ratioButton ); } }, html : '<div>'+ '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.lockRatio + '" class="cke_btn_locked" id="' + btnLockSizesId + '" role="checkbox"><span class="cke_icon"></span><span class="cke_label">' + editor.lang.image.lockRatio + '</span></a>' + '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.resetSize + '" class="cke_btn_reset" id="' + btnResetSizeId + '" role="button"><span class="cke_label">' + editor.lang.image.resetSize + '</span></a>'+ '</div>' } ] }, { type : 'vbox', padding : 1, children : [ { type : 'text', id : 'txtBorder', width: '60px', label : editor.lang.image.border, 'default' : '', onKeyUp : function() { updatePreview( this.getDialog() ); }, onChange : function() { commitInternally.call( this, 'advanced:txtdlgGenStyle' ); }, validate : CKEDITOR.dialog.validate.integer( editor.lang.image.validateBorder ), setup : function( type, element ) { if ( type == IMAGE ) { var value, borderStyle = element.getStyle( 'border-width' ); borderStyle = borderStyle && borderStyle.match( /^(\d+px)(?: \1 \1 \1)?$/ ); value = borderStyle && parseInt( borderStyle[ 1 ], 10 ); isNaN ( parseInt( value, 10 ) ) && ( value = element.getAttribute( 'border' ) ); this.setValue( value ); } }, commit : function( type, element, internalCommit ) { var value = parseInt( this.getValue(), 10 ); if ( type == IMAGE || type == PREVIEW ) { if ( !isNaN( value ) ) { element.setStyle( 'border-width', CKEDITOR.tools.cssLength( value ) ); element.setStyle( 'border-style', 'solid' ); } else if ( !value && this.isChanged() ) element.removeStyle( 'border' ); if ( !internalCommit && type == IMAGE ) element.removeAttribute( 'border' ); } else if ( type == CLEANUP ) { element.removeAttribute( 'border' ); element.removeStyle( 'border-width' ); element.removeStyle( 'border-style' ); element.removeStyle( 'border-color' ); } } }, { type : 'text', id : 'txtHSpace', width: '60px', label : editor.lang.image.hSpace, 'default' : '', onKeyUp : function() { updatePreview( this.getDialog() ); }, onChange : function() { commitInternally.call( this, 'advanced:txtdlgGenStyle' ); }, validate : CKEDITOR.dialog.validate.integer( editor.lang.image.validateHSpace ), setup : function( type, element ) { if ( type == IMAGE ) { var value, marginLeftPx, marginRightPx, marginLeftStyle = element.getStyle( 'margin-left' ), marginRightStyle = element.getStyle( 'margin-right' ); marginLeftStyle = marginLeftStyle && marginLeftStyle.match( pxLengthRegex ); marginRightStyle = marginRightStyle && marginRightStyle.match( pxLengthRegex ); marginLeftPx = parseInt( marginLeftStyle, 10 ); marginRightPx = parseInt( marginRightStyle, 10 ); value = ( marginLeftPx == marginRightPx ) && marginLeftPx; isNaN( parseInt( value, 10 ) ) && ( value = element.getAttribute( 'hspace' ) ); this.setValue( value ); } }, commit : function( type, element, internalCommit ) { var value = parseInt( this.getValue(), 10 ); if ( type == IMAGE || type == PREVIEW ) { if ( !isNaN( value ) ) { element.setStyle( 'margin-left', CKEDITOR.tools.cssLength( value ) ); element.setStyle( 'margin-right', CKEDITOR.tools.cssLength( value ) ); } else if ( !value && this.isChanged( ) ) { element.removeStyle( 'margin-left' ); element.removeStyle( 'margin-right' ); } if ( !internalCommit && type == IMAGE ) element.removeAttribute( 'hspace' ); } else if ( type == CLEANUP ) { element.removeAttribute( 'hspace' ); element.removeStyle( 'margin-left' ); element.removeStyle( 'margin-right' ); } } }, { type : 'text', id : 'txtVSpace', width : '60px', label : editor.lang.image.vSpace, 'default' : '', onKeyUp : function() { updatePreview( this.getDialog() ); }, onChange : function() { commitInternally.call( this, 'advanced:txtdlgGenStyle' ); }, validate : CKEDITOR.dialog.validate.integer( editor.lang.image.validateVSpace ), setup : function( type, element ) { if ( type == IMAGE ) { var value, marginTopPx, marginBottomPx, marginTopStyle = element.getStyle( 'margin-top' ), marginBottomStyle = element.getStyle( 'margin-bottom' ); marginTopStyle = marginTopStyle && marginTopStyle.match( pxLengthRegex ); marginBottomStyle = marginBottomStyle && marginBottomStyle.match( pxLengthRegex ); marginTopPx = parseInt( marginTopStyle, 10 ); marginBottomPx = parseInt( marginBottomStyle, 10 ); value = ( marginTopPx == marginBottomPx ) && marginTopPx; isNaN ( parseInt( value, 10 ) ) && ( value = element.getAttribute( 'vspace' ) ); this.setValue( value ); } }, commit : function( type, element, internalCommit ) { var value = parseInt( this.getValue(), 10 ); if ( type == IMAGE || type == PREVIEW ) { if ( !isNaN( value ) ) { element.setStyle( 'margin-top', CKEDITOR.tools.cssLength( value ) ); element.setStyle( 'margin-bottom', CKEDITOR.tools.cssLength( value ) ); } else if ( !value && this.isChanged( ) ) { element.removeStyle( 'margin-top' ); element.removeStyle( 'margin-bottom' ); } if ( !internalCommit && type == IMAGE ) element.removeAttribute( 'vspace' ); } else if ( type == CLEANUP ) { element.removeAttribute( 'vspace' ); element.removeStyle( 'margin-top' ); element.removeStyle( 'margin-bottom' ); } } }, { id : 'cmbAlign', type : 'select', widths : [ '35%','65%' ], style : 'width:90px', label : editor.lang.common.align, 'default' : '', items : [ [ editor.lang.common.notSet , ''], [ editor.lang.common.alignLeft , 'left'], [ editor.lang.common.alignRight , 'right'] // Backward compatible with v2 on setup when specified as attribute value, // while these values are no more available as select options. // [ editor.lang.image.alignAbsBottom , 'absBottom'], // [ editor.lang.image.alignAbsMiddle , 'absMiddle'], // [ editor.lang.image.alignBaseline , 'baseline'], // [ editor.lang.image.alignTextTop , 'text-top'], // [ editor.lang.image.alignBottom , 'bottom'], // [ editor.lang.image.alignMiddle , 'middle'], // [ editor.lang.image.alignTop , 'top'] ], onChange : function() { updatePreview( this.getDialog() ); commitInternally.call( this, 'advanced:txtdlgGenStyle' ); }, setup : function( type, element ) { if ( type == IMAGE ) { var value = element.getStyle( 'float' ); switch( value ) { // Ignore those unrelated values. case 'inherit': case 'none': value = ''; } !value && ( value = ( element.getAttribute( 'align' ) || '' ).toLowerCase() ); this.setValue( value ); } }, commit : function( type, element, internalCommit ) { var value = this.getValue(); if ( type == IMAGE || type == PREVIEW ) { if ( value ) element.setStyle( 'float', value ); else element.removeStyle( 'float' ); if ( !internalCommit && type == IMAGE ) { value = ( element.getAttribute( 'align' ) || '' ).toLowerCase(); switch( value ) { // we should remove it only if it matches "left" or "right", // otherwise leave it intact. case 'left': case 'right': element.removeAttribute( 'align' ); } } } else if ( type == CLEANUP ) element.removeStyle( 'float' ); } } ] } ] }, { type : 'vbox', height : '250px', children : [ { type : 'html', id : 'htmlPreview', style : 'width:95%;', html : '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>'+ '<div id="' + imagePreviewLoaderId + '" class="ImagePreviewLoader" style="display:none"><div class="loading">&nbsp;</div></div>'+ '<div class="ImagePreviewBox"><table><tr><td>'+ '<a href="javascript:void(0)" target="_blank" onclick="return false;" id="' + previewLinkId + '">'+ '<img id="' + previewImageId + '" alt="" /></a>' + ( editor.config.image_previewText || 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. '+ 'Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, '+ 'nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.' ) + '</td></tr></table></div></div>' } ] } ] } ] }, { id : 'Link', label : editor.lang.link.title, padding : 0, elements : [ { id : 'txtUrl', type : 'text', label : editor.lang.common.url, style : 'width: 100%', 'default' : '', setup : function( type, element ) { if ( type == LINK ) { var href = element.data( 'cke-saved-href' ); if ( !href ) href = element.getAttribute( 'href' ); this.setValue( href ); } }, commit : function( type, element ) { if ( type == LINK ) { if ( this.getValue() || this.isChanged() ) { var url = decodeURI( this.getValue() ); element.data( 'cke-saved-href', url ); element.setAttribute( 'href', url ); if ( this.getValue() || !editor.config.image_removeLinkByEmptyURL ) this.getDialog().addLink = true; } } } }, { type : 'button', id : 'browse', filebrowser : { action : 'Browse', target: 'Link:txtUrl', url: editor.config.filebrowserImageBrowseLinkUrl }, style : 'float:right', hidden : true, label : editor.lang.common.browseServer }, { id : 'cmbTarget', type : 'select', label : editor.lang.common.target, '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'] ], setup : function( type, element ) { if ( type == LINK ) this.setValue( element.getAttribute( 'target' ) || '' ); }, commit : function( type, element ) { if ( type == LINK ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'target', this.getValue() ); } } } ] }, { id : 'Upload', hidden : true, filebrowser : 'uploadButton', label : editor.lang.image.upload, elements : [ { type : 'file', id : 'upload', label : editor.lang.image.btnUpload, style: 'height:40px', size : 38 }, { type : 'fileButton', id : 'uploadButton', filebrowser : 'info:txtUrl', label : editor.lang.image.btnUpload, 'for' : [ 'Upload', 'upload' ] } ] }, { id : 'advanced', label : editor.lang.common.advancedTab, elements : [ { type : 'hbox', widths : [ '50%', '25%', '25%' ], children : [ { type : 'text', id : 'linkId', label : editor.lang.common.id, setup : function( type, element ) { if ( type == IMAGE ) this.setValue( element.getAttribute( 'id' ) ); }, commit : function( type, element ) { if ( type == IMAGE ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'id', this.getValue() ); } } }, { id : 'cmbLangDir', type : 'select', style : 'width : 100px;', label : editor.lang.common.langDir, 'default' : '', items : [ [ editor.lang.common.notSet, '' ], [ editor.lang.common.langDirLtr, 'ltr' ], [ editor.lang.common.langDirRtl, 'rtl' ] ], setup : function( type, element ) { if ( type == IMAGE ) this.setValue( element.getAttribute( 'dir' ) ); }, commit : function( type, element ) { if ( type == IMAGE ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'dir', this.getValue() ); } } }, { type : 'text', id : 'txtLangCode', label : editor.lang.common.langCode, 'default' : '', setup : function( type, element ) { if ( type == IMAGE ) this.setValue( element.getAttribute( 'lang' ) ); }, commit : function( type, element ) { if ( type == IMAGE ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'lang', this.getValue() ); } } } ] }, { type : 'text', id : 'txtGenLongDescr', label : editor.lang.common.longDescr, setup : function( type, element ) { if ( type == IMAGE ) this.setValue( element.getAttribute( 'longDesc' ) ); }, commit : function( type, element ) { if ( type == IMAGE ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'longDesc', this.getValue() ); } } }, { type : 'hbox', widths : [ '50%', '50%' ], children : [ { type : 'text', id : 'txtGenClass', label : editor.lang.common.cssClass, 'default' : '', setup : function( type, element ) { if ( type == IMAGE ) this.setValue( element.getAttribute( 'class' ) ); }, commit : function( type, element ) { if ( type == IMAGE ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'class', this.getValue() ); } } }, { type : 'text', id : 'txtGenTitle', label : editor.lang.common.advisoryTitle, 'default' : '', onChange : function() { updatePreview( this.getDialog() ); }, setup : function( type, element ) { if ( type == IMAGE ) this.setValue( element.getAttribute( 'title' ) ); }, commit : function( type, element ) { if ( type == IMAGE ) { if ( this.getValue() || this.isChanged() ) element.setAttribute( 'title', this.getValue() ); } else if ( type == PREVIEW ) { element.setAttribute( 'title', this.getValue() ); } else if ( type == CLEANUP ) { element.removeAttribute( 'title' ); } } } ] }, { type : 'text', id : 'txtdlgGenStyle', label : editor.lang.common.cssStyle, validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), 'default' : '', setup : function( type, element ) { if ( type == IMAGE ) { var genStyle = element.getAttribute( 'style' ); if ( !genStyle && element.$.style.cssText ) genStyle = element.$.style.cssText; this.setValue( genStyle ); var height = element.$.style.height, width = element.$.style.width, aMatchH = ( height ? height : '' ).match( regexGetSize ), aMatchW = ( width ? width : '').match( regexGetSize ); this.attributesInStyle = { height : !!aMatchH, width : !!aMatchW }; } }, onChange : function () { commitInternally.call( this, [ 'info:cmbFloat', 'info:cmbAlign', 'info:txtVSpace', 'info:txtHSpace', 'info:txtBorder', 'info:txtWidth', 'info:txtHeight' ] ); updatePreview( this ); }, commit : function( type, element ) { if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) { element.setAttribute( 'style', this.getValue() ); } } } ] } ] }; }; CKEDITOR.dialog.add( 'image', function( editor ) { return imageDialog( editor, 'image' ); }); CKEDITOR.dialog.add( 'imagebutton', function( editor ) { return imageDialog( editor, 'imagebutton' ); }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileSave plugin. */ (function() { var saveCmd = { modes : { wysiwyg:1, source:1 }, readOnly : 1, exec : function( editor ) { var $form = editor.element.$.form; if ( $form ) { try { $form.submit(); } catch( e ) { // If there's a button named "submit" then the form.submit // function is masked and can't be called in IE/FF, so we // call the click() method of that button. if ( $form.submit.click ) $form.submit.click(); } } } }; var pluginName = 'save'; // Register a plugin named "save". CKEDITOR.plugins.add( pluginName, { init : function( editor ) { var command = editor.addCommand( pluginName, saveCmd ); command.modes = { wysiwyg : !!( editor.element.$.form ) }; editor.ui.addButton( 'Save', { label : editor.lang.save, command : pluginName }); } }); })();
JavaScript
/* Copyright (c) 2003-2012, 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( ',' ); 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">' + '<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">' + '<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">', 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)' } };
JavaScript
/* Copyright (c) 2003-2012, 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( /&quot;/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 ); } }, openTagClose : function( tag ) { if ( tag == 'br' ) this._.output.push( '\n' ); else if ( tag in bbcodeMap ) { this.write( ']' ); if ( this.getRule( tag, 'breakAfterOpen' ) ) this.lineBreak( 1 ); } }, attribute : function( name, val ) { if ( name == 'option' ) { // Force simply ampersand in attributes. if ( typeof val == 'string' ) val = val.replace( /&amp;/g, '&' ); this.write( '=', val ); } }, 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 "&lt;!-- My comment --&gt;". * 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; }); } } } ); })();
JavaScript
/* Copyright (c) 2003-2012, 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[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi; var notWhitespaceEval = CKEDITOR.dom.walker.whitespaces( true ), notBogus = CKEDITOR.dom.walker.bogus( true ), notEmpty = function( node ) { return notWhitespaceEval( node ) && notBogus( node ); }; // 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(); // Since the insertion might happen from within dialog or menu // where the editor selection might be locked at the moment, // update the locked selection. var selection = this.getSelection(), selIsLocked = selection.isLocked; selIsLocked && selection.unlock(); this.fire( 'saveSnapshot' ); insertFunc.call( this, evt.data ); selIsLocked && this.getSelection().lock(); var that = this; // 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. setTimeout( function() { try { that.fire( 'saveSnapshot' ); } // IEs < 9 may requires a further delay to save snapshot, after pasting. (#9132) catch ( e ) { setTimeout( function(){ that.fire( 'saveSnapshot' ); }, 200 ); } }, 0 ); } }; } 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 $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 ); } 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 &nbsp; html = html.replace( /^[ \t]+|[ \t]+$/g, function( match, offset, s ) { if ( match.length == 1 ) // one space, preserve it return '&nbsp;'; else if ( !offset ) // beginning of block return CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ) + ' '; else // end of block return ' ' + CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ); } ); // Convert subsequent whitespaces into &nbsp; html = html.replace( /[ \t]{2,}/g, function ( match ) { return CKEDITOR.tools.repeat( '&nbsp;', 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 immediately followed by // another block element, the selection must be optimized. (#3100,#5436,#8950) if ( isBlock ) { var next = lastElement.getNext( notEmpty ), nextName = next && next.type == CKEDITOR.NODE_ELEMENT && next.getName(); // If the next one is a text block, move cursor to the start of it's content. if ( nextName && CKEDITOR.dtd.$block[ nextName ] ) { if ( CKEDITOR.dtd[ nextName ][ '#' ] ) range.moveToElementEditStart( next ); // Otherwise move cursor to the before end of the last element. else range.moveToElementEditEnd( lastElement ); } // Open a new line if the block is inserted at the end of parent. else if ( !next ) { next = range.fixBlock( true, this.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); 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( /^(?:&nbsp;|\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) 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 ) { // 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 ), frameDesc = editor.lang.editorHelp; if ( CKEDITOR.env.ie ) frameLabel += ', ' + frameDesc; var win = CKEDITOR.document.getWindow(); var contentDomReadyHandler; editor.on( 'editingBlockReady', function() { var mainElement, iframe, isLoadingData, isPendingFocus, frameLoaded, fireMode, onResize; // 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 ) + '}())' : ''; var labelId = CKEDITOR.tools.getNextId(); iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' + ' style="width:100%;height:100%"' + ' frameBorder="0"' + ' aria-describedby="' + labelId + '"' + ' 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( CKEDITOR.dom.element.createFromHtml( '<span id="' + labelId + '" class="cke_voice_label">' + frameDesc + '</span>')); mainElement.append( iframe ); // Webkit: iframe size doesn't auto fit well. (#7360) if ( CKEDITOR.env.webkit ) { onResize = function() { // Hide the iframe to get real size of the holder. (#8941) mainElement.setStyle( 'width', '100%' ); iframe.hide(); iframe.setSize( 'width', mainElement.getSize( 'width' ) ); mainElement.removeStyle( 'width' ); iframe.show(); }; win.on( 'resize', onResize ); } }; // 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(); } ); } 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 ( CKEDITOR.env.gecko || 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. editor.on( 'key', function( evt ) { if ( editor.mode != 'wysiwyg' ) return; var keyCode = evt.data.keyCode; // Backspace OR Delete. if ( keyCode in { 8 : 1, 46 : 1 } ) { var sel = editor.getSelection(), selected = sel.getSelectedElement(), range = sel.getRanges()[ 0 ], path = new CKEDITOR.dom.elementPath( range.startContainer ), block, parent, next, rtl = keyCode == 8; // 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.cancel(); } else if ( range.collapsed ) { // Handle the following special cases: (#6217) // 1. Del/Backspace key before/after table; // 2. Backspace Key after start of table. if ( ( block = path.block ) && range[ rtl ? 'checkStartOfBlock' : 'checkEndOfBlock' ]() && ( next = block[ rtl ? 'getPrevious' : 'getNext' ]( notWhitespaceEval ) ) && next.is( 'table' ) ) { editor.fire( 'saveSnapshot' ); // Remove the current empty block. if ( range[ rtl ? 'checkEndOfBlock' : 'checkStartOfBlock' ]() ) block.remove(); // Move cursor to the beginning/end of table cell. range[ 'moveToElementEdit' + ( rtl ? 'End' : 'Start' ) ]( next ); range.select(); editor.fire( 'saveSnapshot' ); evt.cancel(); } else if ( path.blockLimit.is( 'td' ) && ( parent = path.blockLimit.getAscendant( 'table' ) ) && range.checkBoundaryOfElement( parent, rtl ? CKEDITOR.START : CKEDITOR.END ) && ( next = parent[ rtl ? 'getPrevious' : 'getNext' ]( notWhitespaceEval ) ) ) { editor.fire( 'saveSnapshot' ); // Move cursor to the end of previous block. range[ 'moveToElementEdit' + ( rtl ? 'End' : 'Start' ) ]( next ); // Remove any previous empty block. if ( range.checkStartOfBlock() && range.checkEndOfBlock() ) next.remove(); else range.select(); editor.fire( 'saveSnapshot' ); evt.cancel(); } } } // PageUp OR PageDown if ( keyCode == 33 || keyCode == 34 ) { if ( CKEDITOR.env.gecko ) { var body = domDocument.getBody(); // Page up/down cause editor selection to leak // outside of editable thus we try to intercept // the behavior, while it affects only happen // when editor contents are not overflowed. (#7955) if ( domWindow.$.innerHeight > body.$.offsetHeight ) { range = new CKEDITOR.dom.range( domDocument ); range[ keyCode == 33 ? 'moveToElementEditStart' : 'moveToElementEditEnd']( body ); range.select(); evt.cancel(); } } } } ); // 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(), sel = editor.getSelection(), range = sel && sel.getRanges()[ 0 ]; if ( range && body.getHtml().match( /^<p>&nbsp;<\/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 ); // Enable dragging of position:absolute elements in IE. try { editor.document.$.execCommand ( '2D-position', false, true); } catch(e) {} // 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(); if ( onResize ) win.removeListener( 'resize', onResize ); editor.window = editor.document = iframe = mainElement = isPendingFocus = null; editor.fire( 'contentDomUnload' ); }, focus : function() { var win = editor.window; if ( isLoadingData ) isPendingFocus = true; else if ( win ) { var sel = editor.getSelection(), ieSel = sel && sel.getNative(); // IE considers control-type element as separate // focus host when selected, avoid destroying the // selection in such case. (#5812) (#8949) if ( ieSel && ieSel.type == 'Control' ) return; // 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 ); }); editor.on( 'contentDom', function() { var title = editor.document.getElementsByTag( 'title' ).getItem( 0 ); title.data( 'cke-title', editor.document.$.title ); // [IE] JAWS will not recognize the aria label we used on the iframe // unless the frame window title string is used as the voice label, // backup the original one and restore it on output. CKEDITOR.env.ie && ( 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; min-width : 24px; min-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;}' ); // 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 */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.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 ); } }; })(); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var flashFilenameRegex = /\.swf(?:$|\?)/i; function isFlashEmbed( element ) { var attributes = element.attributes; return ( attributes.type == 'application/x-shockwave-flash' || flashFilenameRegex.test( attributes.src || '' ) ); } function createFakeElement( editor, realElement ) { return editor.createFakeParserElement( realElement, 'cke_flash', 'flash', true ); } CKEDITOR.plugins.add( 'flash', { init : function( editor ) { editor.addCommand( 'flash', new CKEDITOR.dialogCommand( 'flash' ) ); editor.ui.addButton( 'Flash', { label : editor.lang.common.flash, command : 'flash' }); CKEDITOR.dialog.add( 'flash', this.path + 'dialogs/flash.js' ); editor.addCss( 'img.cke_flash' + '{' + '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;' + '}' ); // If the "menu" plugin is loaded, register the menu items. if ( editor.addMenuItems ) { editor.addMenuItems( { flash : { label : editor.lang.flash.properties, command : 'flash', group : 'flash' } }); } editor.on( 'doubleclick', function( evt ) { var element = evt.data.element; if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'flash' ) evt.data.dialog = 'flash'; }); // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu ) { editor.contextMenu.addListener( function( element, selection ) { if ( element && element.is( 'img' ) && !element.isReadOnly() && element.data( 'cke-real-element-type' ) == 'flash' ) return { flash : CKEDITOR.TRISTATE_OFF }; }); } }, afterInit : function( editor ) { var dataProcessor = editor.dataProcessor, dataFilter = dataProcessor && dataProcessor.dataFilter; if ( dataFilter ) { dataFilter.addRules( { elements : { 'cke:object' : function( element ) { var attributes = element.attributes, classId = attributes.classid && String( attributes.classid ).toLowerCase(); if ( !classId && !isFlashEmbed( element ) ) { // Look for the inner <embed> for ( var i = 0 ; i < element.children.length ; i++ ) { if ( element.children[ i ].name == 'cke:embed' ) { if ( !isFlashEmbed( element.children[ i ] ) ) return null; return createFakeElement( editor, element ); } } return null; } return createFakeElement( editor, element ); }, 'cke:embed' : function( element ) { if ( !isFlashEmbed( element ) ) return null; return createFakeElement( editor, element ); } } }, 5); } }, requires : [ 'fakeobjects' ] }); })(); CKEDITOR.tools.extend( CKEDITOR.config, { /** * Save as EMBED tag only. This tag is unrecommended. * @type Boolean * @default false */ flashEmbedTagOnly : false, /** * Add EMBED tag as alternative: &lt;object&gt&lt;embed&gt&lt;/embed&gt&lt;/object&gt * @type Boolean * @default false */ flashAddEmbedTag : true, /** * Use embedTagOnly and addEmbedTag values on edit. * @type Boolean * @default false */ flashConvertOnEdit : false } );
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { /* * It is possible to set things in three different places. * 1. As attributes in the object tag. * 2. As param tags under the object tag. * 3. As attributes in the embed tag. * It is possible for a single attribute to be present in more than one place. * So let's define a mapping between a sementic attribute and its syntactic * equivalents. * Then we'll set and retrieve attribute values according to the mapping, * instead of having to check and set each syntactic attribute every time. * * Reference: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701 */ var ATTRTYPE_OBJECT = 1, ATTRTYPE_PARAM = 2, ATTRTYPE_EMBED = 4; var attributesMap = { id : [ { type : ATTRTYPE_OBJECT, name : 'id' } ], classid : [ { type : ATTRTYPE_OBJECT, name : 'classid' } ], codebase : [ { type : ATTRTYPE_OBJECT, name : 'codebase'} ], pluginspage : [ { type : ATTRTYPE_EMBED, name : 'pluginspage' } ], src : [ { type : ATTRTYPE_PARAM, name : 'movie' }, { type : ATTRTYPE_EMBED, name : 'src' }, { type : ATTRTYPE_OBJECT, name : 'data' } ], name : [ { type : ATTRTYPE_EMBED, name : 'name' } ], align : [ { type : ATTRTYPE_OBJECT, name : 'align' } ], 'class' : [ { type : ATTRTYPE_OBJECT, name : 'class' }, { type : ATTRTYPE_EMBED, name : 'class'} ], width : [ { type : ATTRTYPE_OBJECT, name : 'width' }, { type : ATTRTYPE_EMBED, name : 'width' } ], height : [ { type : ATTRTYPE_OBJECT, name : 'height' }, { type : ATTRTYPE_EMBED, name : 'height' } ], hSpace : [ { type : ATTRTYPE_OBJECT, name : 'hSpace' }, { type : ATTRTYPE_EMBED, name : 'hSpace' } ], vSpace : [ { type : ATTRTYPE_OBJECT, name : 'vSpace' }, { type : ATTRTYPE_EMBED, name : 'vSpace' } ], style : [ { type : ATTRTYPE_OBJECT, name : 'style' }, { type : ATTRTYPE_EMBED, name : 'style' } ], type : [ { type : ATTRTYPE_EMBED, name : 'type' } ] }; var names = [ 'play', 'loop', 'menu', 'quality', 'scale', 'salign', 'wmode', 'bgcolor', 'base', 'flashvars', 'allowScriptAccess', 'allowFullScreen' ]; for ( var i = 0 ; i < names.length ; i++ ) attributesMap[ names[i] ] = [ { type : ATTRTYPE_EMBED, name : names[i] }, { type : ATTRTYPE_PARAM, name : names[i] } ]; names = [ 'allowFullScreen', 'play', 'loop', 'menu' ]; for ( i = 0 ; i < names.length ; i++ ) attributesMap[ names[i] ][0]['default'] = attributesMap[ names[i] ][1]['default'] = true; var defaultToPixel = CKEDITOR.tools.cssLength; function loadValue( objectNode, embedNode, paramMap ) { var attributes = attributesMap[ this.id ]; if ( !attributes ) return; var isCheckbox = ( this instanceof CKEDITOR.ui.dialog.checkbox ); for ( var i = 0 ; i < attributes.length ; i++ ) { var attrDef = attributes[ i ]; switch ( attrDef.type ) { case ATTRTYPE_OBJECT: if ( !objectNode ) continue; if ( objectNode.getAttribute( attrDef.name ) !== null ) { var value = objectNode.getAttribute( attrDef.name ); if ( isCheckbox ) this.setValue( value.toLowerCase() == 'true' ); else this.setValue( value ); return; } else if ( isCheckbox ) this.setValue( !!attrDef[ 'default' ] ); break; case ATTRTYPE_PARAM: if ( !objectNode ) continue; if ( attrDef.name in paramMap ) { value = paramMap[ attrDef.name ]; if ( isCheckbox ) this.setValue( value.toLowerCase() == 'true' ); else this.setValue( value ); return; } else if ( isCheckbox ) this.setValue( !!attrDef[ 'default' ] ); break; case ATTRTYPE_EMBED: if ( !embedNode ) continue; if ( embedNode.getAttribute( attrDef.name ) ) { value = embedNode.getAttribute( attrDef.name ); if ( isCheckbox ) this.setValue( value.toLowerCase() == 'true' ); else this.setValue( value ); return; } else if ( isCheckbox ) this.setValue( !!attrDef[ 'default' ] ); } } } function commitValue( objectNode, embedNode, paramMap ) { var attributes = attributesMap[ this.id ]; if ( !attributes ) return; var isRemove = ( this.getValue() === '' ), isCheckbox = ( this instanceof CKEDITOR.ui.dialog.checkbox ); for ( var i = 0 ; i < attributes.length ; i++ ) { var attrDef = attributes[i]; switch ( attrDef.type ) { case ATTRTYPE_OBJECT: // Avoid applying the data attribute when not needed (#7733) if ( !objectNode || ( attrDef.name == 'data' && embedNode && !objectNode.hasAttribute( 'data' ) ) ) continue; var value = this.getValue(); if ( isRemove || isCheckbox && value === attrDef[ 'default' ] ) objectNode.removeAttribute( attrDef.name ); else objectNode.setAttribute( attrDef.name, value ); break; case ATTRTYPE_PARAM: if ( !objectNode ) continue; value = this.getValue(); if ( isRemove || isCheckbox && value === attrDef[ 'default' ] ) { if ( attrDef.name in paramMap ) paramMap[ attrDef.name ].remove(); } else { if ( attrDef.name in paramMap ) paramMap[ attrDef.name ].setAttribute( 'value', value ); else { var param = CKEDITOR.dom.element.createFromHtml( '<cke:param></cke:param>', objectNode.getDocument() ); param.setAttributes( { name : attrDef.name, value : value } ); if ( objectNode.getChildCount() < 1 ) param.appendTo( objectNode ); else param.insertBefore( objectNode.getFirst() ); } } break; case ATTRTYPE_EMBED: if ( !embedNode ) continue; value = this.getValue(); if ( isRemove || isCheckbox && value === attrDef[ 'default' ]) embedNode.removeAttribute( attrDef.name ); else embedNode.setAttribute( attrDef.name, value ); } } } CKEDITOR.dialog.add( 'flash', function( editor ) { var makeObjectTag = !editor.config.flashEmbedTagOnly, makeEmbedTag = editor.config.flashAddEmbedTag || editor.config.flashEmbedTagOnly; var previewPreloader, previewAreaHtml = '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>' + '<div id="cke_FlashPreviewLoader' + CKEDITOR.tools.getNextNumber() + '" style="display:none"><div class="loading">&nbsp;</div></div>' + '<div id="cke_FlashPreviewBox' + CKEDITOR.tools.getNextNumber() + '" class="FlashPreviewBox"></div></div>'; return { title : editor.lang.flash.title, minWidth : 420, minHeight : 310, onShow : function() { // Clear previously saved elements. this.fakeImage = this.objectNode = this.embedNode = null; previewPreloader = new CKEDITOR.dom.element( 'embed', editor.document ); // Try to detect any embed or object tag that has Flash parameters. var fakeImage = this.getSelectedElement(); if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'flash' ) { this.fakeImage = fakeImage; var realElement = editor.restoreRealElement( fakeImage ), objectNode = null, embedNode = null, paramMap = {}; if ( realElement.getName() == 'cke:object' ) { objectNode = realElement; var embedList = objectNode.getElementsByTag( 'embed', 'cke' ); if ( embedList.count() > 0 ) embedNode = embedList.getItem( 0 ); var paramList = objectNode.getElementsByTag( 'param', 'cke' ); for ( var i = 0, length = paramList.count() ; i < length ; i++ ) { var item = paramList.getItem( i ), name = item.getAttribute( 'name' ), value = item.getAttribute( 'value' ); paramMap[ name ] = value; } } else if ( realElement.getName() == 'cke:embed' ) embedNode = realElement; this.objectNode = objectNode; this.embedNode = embedNode; this.setupContent( objectNode, embedNode, paramMap, fakeImage ); } }, onOk : function() { // If there's no selected object or embed, create one. Otherwise, reuse the // selected object and embed nodes. var objectNode = null, embedNode = null, paramMap = null; if ( !this.fakeImage ) { if ( makeObjectTag ) { objectNode = CKEDITOR.dom.element.createFromHtml( '<cke:object></cke:object>', editor.document ); var attributes = { classid : 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000', codebase : 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' }; objectNode.setAttributes( attributes ); } if ( makeEmbedTag ) { embedNode = CKEDITOR.dom.element.createFromHtml( '<cke:embed></cke:embed>', editor.document ); embedNode.setAttributes( { type : 'application/x-shockwave-flash', pluginspage : 'http://www.macromedia.com/go/getflashplayer' } ); if ( objectNode ) embedNode.appendTo( objectNode ); } } else { objectNode = this.objectNode; embedNode = this.embedNode; } // Produce the paramMap if there's an object tag. if ( objectNode ) { paramMap = {}; var paramList = objectNode.getElementsByTag( 'param', 'cke' ); for ( var i = 0, length = paramList.count() ; i < length ; i++ ) paramMap[ paramList.getItem( i ).getAttribute( 'name' ) ] = paramList.getItem( i ); } // 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( objectNode, embedNode, paramMap, extraStyles, extraAttributes ); // Refresh the fake image. var newFakeImage = editor.createFakeElement( objectNode || embedNode, 'cke_flash', 'flash', true ); newFakeImage.setAttributes( extraAttributes ); newFakeImage.setStyles( extraStyles ); if ( this.fakeImage ) { newFakeImage.replace( this.fakeImage ); editor.getSelection().selectElement( newFakeImage ); } else editor.insertElement( newFakeImage ); }, onHide : function() { if ( this.preview ) this.preview.setHtml(''); }, contents : [ { id : 'info', label : editor.lang.common.generalTab, accessKey : 'I', elements : [ { type : 'vbox', padding : 0, children : [ { type : 'hbox', widths : [ '280px', '110px' ], align : 'right', children : [ { id : 'src', type : 'text', label : editor.lang.common.url, required : true, validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.flash.validateSrc ), setup : loadValue, commit : commitValue, onLoad : function() { var dialog = this.getDialog(), updatePreview = function( src ){ // Query the preloader to figure out the url impacted by based href. previewPreloader.setAttribute( 'src', src ); dialog.preview.setHtml( '<embed height="100%" width="100%" src="' + CKEDITOR.tools.htmlEncode( previewPreloader.getAttribute( 'src' ) ) + '" type="application/x-shockwave-flash"></embed>' ); }; // Preview element dialog.preview = dialog.getContentElement( 'info', 'preview' ).getElement().getChild( 3 ); // Sync on inital value loaded. this.on( 'change', function( evt ){ if ( evt.data && evt.data.value ) updatePreview( evt.data.value ); } ); // Sync when input value changed. this.getInputElement().on( 'change', function( evt ){ updatePreview( this.getValue() ); }, this ); } }, { type : 'button', id : 'browse', filebrowser : 'info:src', hidden : true, // v-align with the 'src' field. // TODO: We need something better than a fixed size here. style : 'display:inline-block;margin-top:10px;', label : editor.lang.common.browseServer } ] } ] }, { type : 'hbox', widths : [ '25%', '25%', '25%', '25%', '25%' ], children : [ { type : 'text', id : 'width', style : 'width:95px', label : editor.lang.common.width, validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength.replace( '%1', editor.lang.common.width ) ), setup : loadValue, commit : commitValue }, { type : 'text', id : 'height', style : 'width:95px', label : editor.lang.common.height, validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength.replace( '%1', editor.lang.common.height ) ), setup : loadValue, commit : commitValue }, { type : 'text', id : 'hSpace', style : 'width:95px', label : editor.lang.flash.hSpace, validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateHSpace ), setup : loadValue, commit : commitValue }, { type : 'text', id : 'vSpace', style : 'width:95px', label : editor.lang.flash.vSpace, validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateVSpace ), setup : loadValue, commit : commitValue } ] }, { type : 'vbox', children : [ { type : 'html', id : 'preview', style : 'width:95%;', html : previewAreaHtml } ] } ] }, { id : 'Upload', hidden : true, filebrowser : 'uploadButton', label : editor.lang.common.upload, elements : [ { type : 'file', id : 'upload', label : editor.lang.common.upload, size : 38 }, { type : 'fileButton', id : 'uploadButton', label : editor.lang.common.uploadSubmit, filebrowser : 'info:src', 'for' : [ 'Upload', 'upload' ] } ] }, { id : 'properties', label : editor.lang.flash.propertiesTab, elements : [ { type : 'hbox', widths : [ '50%', '50%' ], children : [ { id : 'scale', type : 'select', label : editor.lang.flash.scale, 'default' : '', style : 'width : 100%;', items : [ [ editor.lang.common.notSet , ''], [ editor.lang.flash.scaleAll, 'showall' ], [ editor.lang.flash.scaleNoBorder, 'noborder' ], [ editor.lang.flash.scaleFit, 'exactfit' ] ], setup : loadValue, commit : commitValue }, { id : 'allowScriptAccess', type : 'select', label : editor.lang.flash.access, 'default' : '', style : 'width : 100%;', items : [ [ editor.lang.common.notSet , ''], [ editor.lang.flash.accessAlways, 'always' ], [ editor.lang.flash.accessSameDomain, 'samedomain' ], [ editor.lang.flash.accessNever, 'never' ] ], setup : loadValue, commit : commitValue } ] }, { type : 'hbox', widths : [ '50%', '50%' ], children : [ { id : 'wmode', type : 'select', label : editor.lang.flash.windowMode, 'default' : '', style : 'width : 100%;', items : [ [ editor.lang.common.notSet , '' ], [ editor.lang.flash.windowModeWindow, 'window' ], [ editor.lang.flash.windowModeOpaque, 'opaque' ], [ editor.lang.flash.windowModeTransparent, 'transparent' ] ], setup : loadValue, commit : commitValue }, { id : 'quality', type : 'select', label : editor.lang.flash.quality, 'default' : 'high', style : 'width : 100%;', items : [ [ editor.lang.common.notSet , '' ], [ editor.lang.flash.qualityBest, 'best' ], [ editor.lang.flash.qualityHigh, 'high' ], [ editor.lang.flash.qualityAutoHigh, 'autohigh' ], [ editor.lang.flash.qualityMedium, 'medium' ], [ editor.lang.flash.qualityAutoLow, 'autolow' ], [ editor.lang.flash.qualityLow, 'low' ] ], setup : loadValue, commit : commitValue } ] }, { type : 'hbox', widths : [ '50%', '50%' ], children : [ { id : 'align', type : 'select', label : editor.lang.common.align, 'default' : '', style : 'width : 100%;', items : [ [ editor.lang.common.notSet , ''], [ editor.lang.common.alignLeft , 'left'], [ editor.lang.flash.alignAbsBottom , 'absBottom'], [ editor.lang.flash.alignAbsMiddle , 'absMiddle'], [ editor.lang.flash.alignBaseline , 'baseline'], [ editor.lang.common.alignBottom , 'bottom'], [ editor.lang.common.alignMiddle , 'middle'], [ editor.lang.common.alignRight , 'right'], [ editor.lang.flash.alignTextTop , 'textTop'], [ editor.lang.common.alignTop , 'top'] ], setup : loadValue, commit : function( objectNode, embedNode, paramMap, extraStyles, extraAttributes ) { var value = this.getValue(); commitValue.apply( this, arguments ); value && ( extraAttributes.align = value ); } }, { type : 'html', html : '<div></div>' } ] }, { type : 'fieldset', label : CKEDITOR.tools.htmlEncode( editor.lang.flash.flashvars ), children : [ { type : 'vbox', padding : 0, children : [ { type : 'checkbox', id : 'menu', label : editor.lang.flash.chkMenu, 'default' : true, setup : loadValue, commit : commitValue }, { type : 'checkbox', id : 'play', label : editor.lang.flash.chkPlay, 'default' : true, setup : loadValue, commit : commitValue }, { type : 'checkbox', id : 'loop', label : editor.lang.flash.chkLoop, 'default' : true, setup : loadValue, commit : commitValue }, { type : 'checkbox', id : 'allowFullScreen', label : editor.lang.flash.chkFull, 'default' : true, setup : loadValue, commit : commitValue } ] } ] } ] }, { id : 'advanced', label : editor.lang.common.advancedTab, elements : [ { type : 'hbox', children : [ { type : 'text', id : 'id', label : editor.lang.common.id, setup : loadValue, commit : commitValue } ] }, { type : 'hbox', widths : [ '45%', '55%' ], children : [ { type : 'text', id : 'bgcolor', label : editor.lang.flash.bgcolor, setup : loadValue, commit : commitValue }, { type : 'text', id : 'class', label : editor.lang.common.cssClass, setup : loadValue, commit : commitValue } ] }, { type : 'text', id : 'style', validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), label : editor.lang.common.cssStyle, setup : loadValue, commit : commitValue } ] } ] }; } ); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'table', { requires : [ 'dialog' ], init : function( editor ) { var table = CKEDITOR.plugins.table, lang = editor.lang.table; editor.addCommand( 'table', new CKEDITOR.dialogCommand( 'table' ) ); editor.addCommand( 'tableProperties', new CKEDITOR.dialogCommand( 'tableProperties' ) ); editor.ui.addButton( 'Table', { label : lang.toolbar, command : 'table' }); CKEDITOR.dialog.add( 'table', this.path + 'dialogs/table.js' ); CKEDITOR.dialog.add( 'tableProperties', this.path + 'dialogs/table.js' ); // If the "menu" plugin is loaded, register the menu items. if ( editor.addMenuItems ) { editor.addMenuItems( { table : { label : lang.menu, command : 'tableProperties', group : 'table', order : 5 }, tabledelete : { label : lang.deleteTable, command : 'tableDelete', group : 'table', order : 1 } } ); } editor.on( 'doubleclick', function( evt ) { var element = evt.data.element; if ( element.is( 'table' ) ) evt.data.dialog = 'tableProperties'; }); // 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 isTable = element.hasAscendant( 'table', 1 ); if ( isTable ) { return { tabledelete : CKEDITOR.TRISTATE_OFF, table : CKEDITOR.TRISTATE_OFF }; } return null; } ); } } } );
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var defaultToPixel = CKEDITOR.tools.cssLength; var commitValue = function( data ) { var id = this.id; if ( !data.info ) data.info = {}; data.info[id] = this.getValue(); }; function tableColumns( table ) { var cols = 0, maxCols = 0; for ( var i = 0, row, rows = table.$.rows.length; i < rows; i++ ) { row = table.$.rows[ i ], cols = 0; for ( var j = 0, cell, cells = row.cells.length; j < cells; j++ ) { cell = row.cells[ j ]; cols += cell.colSpan; } cols > maxCols && ( maxCols = cols ); } return maxCols; } // Whole-positive-integer validator. function validatorNum( msg ) { return function() { var value = this.getValue(), pass = !!( CKEDITOR.dialog.validate.integer()( value ) && value > 0 ); if ( !pass ) { alert( msg ); this.select(); } return pass; }; } function tableDialog( editor, command ) { var makeElement = function( name ) { return new CKEDITOR.dom.element( name, editor.document ); }; var dialogadvtab = editor.plugins.dialogadvtab; return { title : editor.lang.table.title, minWidth : 310, minHeight : CKEDITOR.env.ie ? 310 : 280, onLoad : function() { var dialog = this; var styles = dialog.getContentElement( 'advanced', 'advStyles' ); if ( styles ) { styles.on( 'change', function( evt ) { // Synchronize width value. var width = this.getStyle( 'width', '' ), txtWidth = dialog.getContentElement( 'info', 'txtWidth' ); txtWidth && txtWidth.setValue( width, true ); // Synchronize height value. var height = this.getStyle( 'height', '' ), txtHeight = dialog.getContentElement( 'info', 'txtHeight' ); txtHeight && txtHeight.setValue( height, true ); }); } }, onShow : function() { // Detect if there's a selected table. var selection = editor.getSelection(), ranges = selection.getRanges(), selectedTable = null; var rowsInput = this.getContentElement( 'info', 'txtRows' ), colsInput = this.getContentElement( 'info', 'txtCols' ), widthInput = this.getContentElement( 'info', 'txtWidth' ), heightInput = this.getContentElement( 'info', 'txtHeight' ); if ( command == 'tableProperties' ) { if ( ( selectedTable = selection.getSelectedElement() ) ) selectedTable = selectedTable.getAscendant( 'table', true ); else if ( ranges.length > 0 ) { // Webkit could report the following range on cell selection (#4948): // <table><tr><td>[&nbsp;</td></tr></table>] if ( CKEDITOR.env.webkit ) ranges[ 0 ].shrink( CKEDITOR.NODE_ELEMENT ); var rangeRoot = ranges[0].getCommonAncestor( true ); selectedTable = rangeRoot.getAscendant( 'table', true ); } // Save a reference to the selected table, and push a new set of default values. this._.selectedElement = selectedTable; } // Enable or disable the row, cols, width fields. if ( selectedTable ) { this.setupContent( selectedTable ); rowsInput && rowsInput.disable(); colsInput && colsInput.disable(); } else { rowsInput && rowsInput.enable(); colsInput && colsInput.enable(); } // Call the onChange method for the widht and height fields so // they get reflected into the Advanced tab. widthInput && widthInput.onChange(); heightInput && heightInput.onChange(); }, onOk : function() { var selection = editor.getSelection(), bms = this._.selectedElement && selection.createBookmarks(); var table = this._.selectedElement || makeElement( 'table' ), me = this, data = {}; this.commitContent( data, table ); if ( data.info ) { var info = data.info; // Generate the rows and cols. if ( !this._.selectedElement ) { var tbody = table.append( makeElement( 'tbody' ) ), rows = parseInt( info.txtRows, 10 ) || 0, cols = parseInt( info.txtCols, 10 ) || 0; for ( var i = 0 ; i < rows ; i++ ) { var row = tbody.append( makeElement( 'tr' ) ); for ( var j = 0 ; j < cols ; j++ ) { var cell = row.append( makeElement( 'td' ) ); if ( !CKEDITOR.env.ie ) cell.append( makeElement( 'br' ) ); } } } // Modify the table headers. Depends on having rows and cols generated // correctly so it can't be done in commit functions. // Should we make a <thead>? var headers = info.selHeaders; if ( !table.$.tHead && ( headers == 'row' || headers == 'both' ) ) { var thead = new CKEDITOR.dom.element( table.$.createTHead() ); tbody = table.getElementsByTag( 'tbody' ).getItem( 0 ); var theRow = tbody.getElementsByTag( 'tr' ).getItem( 0 ); // Change TD to TH: for ( i = 0 ; i < theRow.getChildCount() ; i++ ) { var th = theRow.getChild( i ); // Skip bookmark nodes. (#6155) if ( th.type == CKEDITOR.NODE_ELEMENT && !th.data( 'cke-bookmark' ) ) { th.renameNode( 'th' ); th.setAttribute( 'scope', 'col' ); } } thead.append( theRow.remove() ); } if ( table.$.tHead !== null && !( headers == 'row' || headers == 'both' ) ) { // Move the row out of the THead and put it in the TBody: thead = new CKEDITOR.dom.element( table.$.tHead ); tbody = table.getElementsByTag( 'tbody' ).getItem( 0 ); var previousFirstRow = tbody.getFirst(); while ( thead.getChildCount() > 0 ) { theRow = thead.getFirst(); for ( i = 0; i < theRow.getChildCount() ; i++ ) { var newCell = theRow.getChild( i ); if ( newCell.type == CKEDITOR.NODE_ELEMENT ) { newCell.renameNode( 'td' ); newCell.removeAttribute( 'scope' ); } } theRow.insertBefore( previousFirstRow ); } thead.remove(); } // Should we make all first cells in a row TH? if ( !this.hasColumnHeaders && ( headers == 'col' || headers == 'both' ) ) { for ( row = 0 ; row < table.$.rows.length ; row++ ) { newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] ); newCell.renameNode( 'th' ); newCell.setAttribute( 'scope', 'row' ); } } // Should we make all first TH-cells in a row make TD? If 'yes' we do it the other way round :-) if ( ( this.hasColumnHeaders ) && !( headers == 'col' || headers == 'both' ) ) { for ( i = 0 ; i < table.$.rows.length ; i++ ) { row = new CKEDITOR.dom.element( table.$.rows[i] ); if ( row.getParent().getName() == 'tbody' ) { newCell = new CKEDITOR.dom.element( row.$.cells[0] ); newCell.renameNode( 'td' ); newCell.removeAttribute( 'scope' ); } } } // Set the width and height. info.txtHeight ? table.setStyle( 'height', info.txtHeight ) : table.removeStyle( 'height' ); info.txtWidth ? table.setStyle( 'width', info.txtWidth ) : table.removeStyle( 'width' ); if ( !table.getAttribute( 'style' ) ) table.removeAttribute( 'style' ); } // Insert the table element if we're creating one. if ( !this._.selectedElement ) { editor.insertElement( table ); // Override the default cursor position after insertElement to place // cursor inside the first cell (#7959), IE needs a while. setTimeout( function() { var firstCell = new CKEDITOR.dom.element( table.$.rows[ 0 ].cells[ 0 ] ); var range = new CKEDITOR.dom.range( editor.document ); range.moveToPosition( firstCell, CKEDITOR.POSITION_AFTER_START ); range.select( 1 ); }, 0 ); } // Properly restore the selection, (#4822) but don't break // because of this, e.g. updated table caption. else try { selection.selectBookmarks( bms ); } catch( er ){} }, contents : [ { id : 'info', label : editor.lang.table.title, elements : [ { type : 'hbox', widths : [ null, null ], styles : [ 'vertical-align:top' ], children : [ { type : 'vbox', padding : 0, children : [ { type : 'text', id : 'txtRows', 'default' : 3, label : editor.lang.table.rows, required : true, controlStyle : 'width:5em', validate : validatorNum( editor.lang.table.invalidRows ), setup : function( selectedElement ) { this.setValue( selectedElement.$.rows.length ); }, commit : commitValue }, { type : 'text', id : 'txtCols', 'default' : 2, label : editor.lang.table.columns, required : true, controlStyle : 'width:5em', validate : validatorNum( editor.lang.table.invalidCols ), setup : function( selectedTable ) { this.setValue( tableColumns( selectedTable ) ); }, commit : commitValue }, { type : 'html', html : '&nbsp;' }, { type : 'select', id : 'selHeaders', 'default' : '', label : editor.lang.table.headers, items : [ [ editor.lang.table.headersNone, '' ], [ editor.lang.table.headersRow, 'row' ], [ editor.lang.table.headersColumn, 'col' ], [ editor.lang.table.headersBoth, 'both' ] ], setup : function( selectedTable ) { // Fill in the headers field. var dialog = this.getDialog(); dialog.hasColumnHeaders = true; // Check if all the first cells in every row are TH for ( var row = 0 ; row < selectedTable.$.rows.length ; row++ ) { // If just one cell isn't a TH then it isn't a header column var headCell = selectedTable.$.rows[row].cells[0]; if ( headCell && headCell.nodeName.toLowerCase() != 'th' ) { dialog.hasColumnHeaders = false; break; } } // Check if the table contains <thead>. if ( ( selectedTable.$.tHead !== null) ) this.setValue( dialog.hasColumnHeaders ? 'both' : 'row' ); else this.setValue( dialog.hasColumnHeaders ? 'col' : '' ); }, commit : commitValue }, { type : 'text', id : 'txtBorder', 'default' : 1, label : editor.lang.table.border, controlStyle : 'width:3em', validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidBorder ), setup : function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'border' ) || '' ); }, commit : function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'border', this.getValue() ); else selectedTable.removeAttribute( 'border' ); } }, { id : 'cmbAlign', type : 'select', 'default' : '', label : editor.lang.common.align, items : [ [ editor.lang.common.notSet , ''], [ editor.lang.common.alignLeft , 'left'], [ editor.lang.common.alignCenter , 'center'], [ editor.lang.common.alignRight , 'right'] ], setup : function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'align' ) || '' ); }, commit : function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'align', this.getValue() ); else selectedTable.removeAttribute( 'align' ); } } ] }, { type : 'vbox', padding : 0, children : [ { type : 'hbox', widths : [ '5em' ], children : [ { type : 'text', id : 'txtWidth', controlStyle : 'width:5em', label : editor.lang.common.width, title : editor.lang.common.cssLengthTooltip, 'default' : 500, getValue : defaultToPixel, validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.width ) ), onChange : function() { var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' ); styles && styles.updateStyle( 'width', this.getValue() ); }, setup : function( selectedTable ) { var val = selectedTable.getStyle( 'width' ); val && this.setValue( val ); }, commit : commitValue } ] }, { type : 'hbox', widths : [ '5em' ], children : [ { type : 'text', id : 'txtHeight', controlStyle : 'width:5em', label : editor.lang.common.height, title : editor.lang.common.cssLengthTooltip, 'default' : '', getValue : defaultToPixel, validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.height ) ), onChange : function() { var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' ); styles && styles.updateStyle( 'height', this.getValue() ); }, setup : function( selectedTable ) { var val = selectedTable.getStyle( 'height' ); val && this.setValue( val ); }, commit : commitValue } ] }, { type : 'html', html : '&nbsp;' }, { type : 'text', id : 'txtCellSpace', controlStyle : 'width:3em', label : editor.lang.table.cellSpace, 'default' : 1, validate : CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellSpacing ), setup : function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'cellSpacing' ) || '' ); }, commit : function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'cellSpacing', this.getValue() ); else selectedTable.removeAttribute( 'cellSpacing' ); } }, { type : 'text', id : 'txtCellPad', controlStyle : 'width:3em', label : editor.lang.table.cellPad, 'default' : 1, validate : CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellPadding ), setup : function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'cellPadding' ) || '' ); }, commit : function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'cellPadding', this.getValue() ); else selectedTable.removeAttribute( 'cellPadding' ); } } ] } ] }, { type : 'html', align : 'right', html : '' }, { type : 'vbox', padding : 0, children : [ { type : 'text', id : 'txtCaption', label : editor.lang.table.caption, setup : function( selectedTable ) { this.enable(); var nodeList = selectedTable.getElementsByTag( 'caption' ); if ( nodeList.count() > 0 ) { var caption = nodeList.getItem( 0 ); var firstElementChild = caption.getFirst( CKEDITOR.dom.walker.nodeType( CKEDITOR.NODE_ELEMENT ) ); if ( firstElementChild && !firstElementChild.equals( caption.getBogus() ) ) { this.disable(); this.setValue( caption.getText() ); return; } caption = CKEDITOR.tools.trim( caption.getText() ); this.setValue( caption ); } }, commit : function( data, table ) { if ( !this.isEnabled() ) return; var caption = this.getValue(), captionElement = table.getElementsByTag( 'caption' ); if ( caption ) { if ( captionElement.count() > 0 ) { captionElement = captionElement.getItem( 0 ); captionElement.setHtml( '' ); } else { captionElement = new CKEDITOR.dom.element( 'caption', editor.document ); if ( table.getChildCount() ) captionElement.insertBefore( table.getFirst() ); else captionElement.appendTo( table ); } captionElement.append( new CKEDITOR.dom.text( caption, editor.document ) ); } else if ( captionElement.count() > 0 ) { for ( var i = captionElement.count() - 1 ; i >= 0 ; i-- ) captionElement.getItem( i ).remove(); } } }, { type : 'text', id : 'txtSummary', label : editor.lang.table.summary, setup : function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'summary' ) || '' ); }, commit : function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'summary', this.getValue() ); else selectedTable.removeAttribute( 'summary' ); } } ] } ] }, dialogadvtab && dialogadvtab.createAdvancedTab( editor ) ] }; } CKEDITOR.dialog.add( 'table', function( editor ) { return tableDialog( editor, 'table' ); } ); CKEDITOR.dialog.add( 'tableProperties', function( editor ) { return tableDialog( editor, 'tableProperties' ); } ); })();
JavaScript
/* Copyright (c) 2003-2012, 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; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { CKEDITOR.dialog.add( 'pastetext', function( editor ) { return { title : editor.lang.pasteText.title, minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350, minHeight : 240, onShow : function(){ this.setupContent(); }, onOk : function(){ this.commitContent(); }, contents : [ { label : editor.lang.common.generalTab, id : 'general', elements : [ { type : 'html', id : 'pasteMsg', html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>' }, { type : 'textarea', id : 'content', className : 'cke_pastetext', onLoad : function() { var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(), input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 ); input.setAttribute( 'aria-labelledby', label.$.id ); input.setStyle( 'direction', editor.config.contentsLangDirection ); }, focus : function() { this.getElement().focus(); }, setup : function() { this.setValue( '' ); }, commit : function() { var value = this.getValue(); setTimeout( function() { editor.fire( 'paste', { 'text' : value } ); }, 0 ); } } ] } ] }; }); })();
JavaScript
/* Copyright (c) 2003-2012, 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(); var tmp = editor.document.createElement( 'span' ); tmp.setAttribute( 'style', styles ); tmp.setStyle( name, value ); styles = CKEDITOR.tools.normalizeCssText( tmp.getAttribute( 'style' ) ); 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; } }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.colordialog = { requires : [ 'dialog' ], init : function( editor ) { editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) ); CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); } }; CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog );
JavaScript
/* Copyright (c) 2003-2012, 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, lang = editor.lang.colordialog; // Reference the dialog. var dialog; var spacer = { type : 'html', html : '&nbsp;' }; var selected; function clearSelected() { $doc.getById( selHiColorId ).removeStyle( 'background-color' ); dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' ); selected && selected.removeAttribute( 'aria-selected' ); selected = null; } function updateSelected( evt ) { var target = evt.data.getTarget(), color; if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { selected = target; selected.setAttribute( 'aria-selected', true ); dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color ); } } // Basing black-white decision off of luma scheme using the Rec. 709 version function whiteOrBlack( color ) { color = color.replace( /^#/, '' ); for ( var i = 0, rgb = []; i <= 2; i++ ) rgb[i] = parseInt( color.substr( i * 2, 2 ), 16 ); var luma = (0.2126 * rgb[0]) + (0.7152 * rgb[1]) + (0.0722 * rgb[2]); return '#' + ( luma >= 165 ? '000' : 'fff' ); } // Distinguish focused and hover states. var focused, hovered; // Apply highlight style. function updateHighlight( event ) { // Convert to event. !event.name && ( event = new CKEDITOR.event( event ) ); var isFocus = !(/mouse/).test( event.name ), target = event.data.getTarget(), color; if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { removeHighlight( event ); isFocus ? focused = target : hovered = target; // Apply outline style to show focus. if ( isFocus ) { target.setStyle( 'border-color', whiteOrBlack( color ) ); target.setStyle( 'border-style', 'dotted' ); } $doc.getById( hicolorId ).setStyle( 'background-color', color ); $doc.getById( hicolorTextId ).setHtml( color ); } } function clearHighlight() { var color = focused.getChild( 0 ).getHtml(); focused.setStyle( 'border-color', color ); focused.setStyle( 'border-style', 'solid' ); $doc.getById( hicolorId ).removeStyle( 'background-color' ); $doc.getById( hicolorTextId ).setHtml( '&nbsp;' ); focused = null; } // Remove previously focused style. function removeHighlight( event ) { var isFocus = !(/mouse/).test( event.name ), target = isFocus && focused; if ( target ) { var color = target.getChild( 0 ).getHtml(); target.setStyle( 'border-color', color ); target.setStyle( 'border-style', 'solid' ); } if ( ! ( focused || hovered ) ) { $doc.getById( hicolorId ).removeStyle( 'background-color' ); $doc.getById( hicolorTextId ).setHtml( '&nbsp;' ); } } function onKeyStrokes( evt ) { var domEvt = evt.data; var element = domEvt.getTarget(); var relative, nodeToMove; var keystroke = domEvt.getKeystroke(), rtl = editor.lang.dir == 'rtl'; switch ( keystroke ) { // UP-ARROW case 38 : // relative is TR if ( ( relative = element.getParent().getPrevious() ) ) { nodeToMove = relative.getChild( [ element.getIndex() ] ); nodeToMove.focus(); } domEvt.preventDefault(); break; // DOWN-ARROW case 40 : // relative is TR if ( ( relative = element.getParent().getNext() ) ) { nodeToMove = relative.getChild( [ element.getIndex() ] ); if ( nodeToMove && nodeToMove.type == 1 ) { nodeToMove.focus(); } } domEvt.preventDefault(); break; // SPACE // ENTER case 32 : case 13 : updateSelected( evt ); domEvt.preventDefault(); break; // RIGHT-ARROW case rtl ? 37 : 39 : // relative is TD if ( ( nodeToMove = element.getNext() ) ) { if ( nodeToMove.type == 1 ) { nodeToMove.focus(); domEvt.preventDefault( true ); } } // relative is TR else if ( ( relative = element.getParent().getNext() ) ) { nodeToMove = relative.getChild( [ 0 ] ); if ( nodeToMove && nodeToMove.type == 1 ) { nodeToMove.focus(); domEvt.preventDefault( true ); } } break; // LEFT-ARROW case rtl ? 39 : 37 : // relative is TD if ( ( nodeToMove = element.getPrevious() ) ) { nodeToMove.focus(); domEvt.preventDefault( true ); } // relative is TR else if ( ( relative = element.getParent().getPrevious() ) ) { nodeToMove = relative.getLast(); nodeToMove.focus(); domEvt.preventDefault( true ); } break; default : // Do not stop not handled events. return; } } function createColorTable() { table = CKEDITOR.dom.element.createFromHtml ( '<table tabIndex="-1" aria-label="' + lang.options + '"' + ' role="grid" style="border-collapse:separate;" cellspacing="0">' + '<caption class="cke_voice_label">' + lang.options + '</caption>' + '<tbody role="presentation"></tbody></table>' ); table.on( 'mouseover', updateHighlight ); table.on( 'mouseout', removeHighlight ); // 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 = new $el( table.$.insertRow( -1 ) ); row.setAttribute( 'role', 'row' ); 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.setAttribute( 'tabIndex', -1 ); cell.setAttribute( 'role', 'gridcell' ); cell.on( 'keydown', onKeyStrokes ); cell.on( 'click', updateSelected ); cell.on( 'focus', updateHighlight ); cell.on( 'blur', removeHighlight ); cell.setStyle( 'background-color', color ); cell.setStyle( 'border', '1px solid ' + color ); cell.setStyle( 'width', '14px' ); cell.setStyle( 'height', '14px' ); var colorLabel = numbering( 'color_table_cell' ); cell.setAttribute( 'aria-labelledby',colorLabel ); cell.append( CKEDITOR.dom.element.createFromHtml( '<span id="' + colorLabel + '" class="cke_voice_label">' + color + '</span>', CKEDITOR.document ) ); } appendColorRow( 0, 0 ); appendColorRow( 3, 0 ); appendColorRow( 0, 3 ); appendColorRow( 3, 3 ); // Create the last row. var oRow = new $el( table.$.insertRow( -1 ) ) ; oRow.setAttribute( 'role', 'row' ); // 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 numbering = function( id ) { return CKEDITOR.tools.getNextId() + '_' + id; }, hicolorId = numbering( 'hicolor' ), hicolorTextId = numbering( 'hicolortext' ), selHiColorId = numbering( 'selhicolor' ), table; createColorTable(); return { title : lang.title, minWidth : 360, minHeight : 220, onLoad : function() { // Update reference. dialog = this; }, onHide : function() { clearSelected(); clearHighlight(); }, contents : [ { id : 'picker', label : lang.title, accessKey : 'I', elements : [ { type : 'hbox', padding : 0, widths : [ '70%', '10%', '30%' ], children : [ { type : 'html', html : '<div></div>', onLoad : function() { CKEDITOR.document.getById( this.domId ).append( table ); }, focus : function() { // Restore the previously focused cell, // otherwise put the initial focus on the first table cell. ( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).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 + '">&nbsp;</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 } ] } ] } ] } ] }; } );
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.skins.add( 'v2', (function() { return { editor : { css : [ 'editor.css' ] }, dialog : { css : [ 'dialog.css' ] }, separator : { canGroup: false }, templates : { css : [ 'templates.css' ] }, margins : [ 0, 14, 18, 14 ] }; })() ); (function() { CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup ); function dialogSetup() { CKEDITOR.dialog.on( 'resize', function( evt ) { var data = evt.data, width = data.width, height = data.height, dialog = data.dialog, contents = dialog.parts.contents; if ( data.skin != 'v2' ) return; contents.setStyles( { width : width + 'px', height : height + 'px' }); if ( !CKEDITOR.env.ie || CKEDITOR.env.ie9Compat ) return; // Fix the size of the elements which have flexible lengths. setTimeout( function() { var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), body = innerDialog.getChild( 0 ), bodyWidth = body.getSize( 'width' ); height += body.getChild( 0 ).getSize( 'height' ) + 1; // tc var el = innerDialog.getChild( 2 ); el.setSize( 'width', bodyWidth ); // bc el = innerDialog.getChild( 7 ); el.setSize( 'width', bodyWidth - 28 ); // ml el = innerDialog.getChild( 4 ); el.setSize( 'height', height ); // mr el = innerDialog.getChild( 5 ); el.setSize( 'height', height ); }, 100 ); }); } })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.skins.add( 'office2003', (function() { return { editor : { css : [ 'editor.css' ] }, dialog : { css : [ 'dialog.css' ] }, separator : { canGroup: false }, templates : { css : [ 'templates.css' ] }, margins : [ 0, 14, 18, 14 ] }; })() ); (function() { CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup ); function dialogSetup() { CKEDITOR.dialog.on( 'resize', function( evt ) { var data = evt.data, width = data.width, height = data.height, dialog = data.dialog, contents = dialog.parts.contents; if ( data.skin != 'office2003' ) return; contents.setStyles( { width : width + 'px', height : height + 'px' }); if ( !CKEDITOR.env.ie || CKEDITOR.env.ie9Compat ) return; // Fix the size of the elements which have flexible lengths. var fixSize = function() { var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), body = innerDialog.getChild( 0 ), bodyWidth = body.getSize( 'width' ); height += body.getChild( 0 ).getSize( 'height' ) + 1; // tc var el = innerDialog.getChild( 2 ); el.setSize( 'width', bodyWidth ); // bc el = innerDialog.getChild( 7 ); el.setSize( 'width', bodyWidth - 28 ); // ml el = innerDialog.getChild( 4 ); el.setSize( 'height', height ); // mr el = innerDialog.getChild( 5 ); el.setSize( 'height', height ); }; setTimeout( fixSize, 100 ); // Ensure size is correct for RTL mode. (#4003) if ( evt.editor.lang.dir == 'rtl' ) setTimeout( fixSize, 1000 ); }); } })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.skins.add( 'kama', (function() { var uiColorStylesheetId = 'cke_ui_color'; return { editor : { css : [ 'editor.css' ] }, dialog : { css : [ 'dialog.css' ] }, richcombo : { canGroup: false }, templates : { css : [ 'templates.css' ] }, margins : [ 0, 0, 0, 0 ], init : function( editor ) { if ( editor.config.width && !isNaN( editor.config.width ) ) editor.config.width -= 12; var uiColorMenus = []; var uiColorRegex = /\$color/g; var uiColorMenuCss = "/* UI Color Support */\ .cke_skin_kama .cke_menuitem .cke_icon_wrapper\ {\ background-color: $color !important;\ border-color: $color !important;\ }\ \ .cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,\ .cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,\ .cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper\ {\ background-color: $color !important;\ border-color: $color !important;\ }\ \ .cke_skin_kama .cke_menuitem a:hover .cke_label,\ .cke_skin_kama .cke_menuitem a:focus .cke_label,\ .cke_skin_kama .cke_menuitem a:active .cke_label\ {\ background-color: $color !important;\ }\ \ .cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,\ .cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,\ .cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label\ {\ background-color: transparent !important;\ }\ \ .cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,\ .cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,\ .cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper\ {\ background-color: $color !important;\ border-color: $color !important;\ }\ \ .cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper\ {\ background-color: $color !important;\ border-color: $color !important;\ }\ \ .cke_skin_kama .cke_menuseparator\ {\ background-color: $color !important;\ }\ \ .cke_skin_kama .cke_menuitem a:hover,\ .cke_skin_kama .cke_menuitem a:focus,\ .cke_skin_kama .cke_menuitem a:active\ {\ background-color: $color !important;\ }"; // We have to split CSS declarations for webkit. if ( CKEDITOR.env.webkit ) { uiColorMenuCss = uiColorMenuCss.split( '}' ).slice( 0, -1 ); for ( var i = 0 ; i < uiColorMenuCss.length ; i++ ) uiColorMenuCss[ i ] = uiColorMenuCss[ i ].split( '{' ); } function getStylesheet( document ) { var node = document.getById( uiColorStylesheetId ); if ( !node ) { node = document.getHead().append( 'style' ); node.setAttribute( "id", uiColorStylesheetId ); node.setAttribute( "type", "text/css" ); } return node; } function updateStylesheets( styleNodes, styleContent, replace ) { var r, i, content; for ( var id = 0 ; id < styleNodes.length ; id++ ) { if ( CKEDITOR.env.webkit ) { for ( i = 0 ; i < styleContent.length ; i++ ) { content = styleContent[ i ][ 1 ]; for ( r = 0 ; r < replace.length ; r++ ) content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] ); styleNodes[ id ].$.sheet.addRule( styleContent[ i ][ 0 ], content ); } } else { content = styleContent; for ( r = 0 ; r < replace.length ; r++ ) content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] ); if ( CKEDITOR.env.ie ) styleNodes[ id ].$.styleSheet.cssText += content; else styleNodes[ id ].$.innerHTML += content; } } } var uiColorRegexp = /\$color/g; CKEDITOR.tools.extend( editor, { uiColor: null, getUiColor : function() { return this.uiColor; }, setUiColor : function( color ) { var cssContent, uiStyle = getStylesheet( CKEDITOR.document ), cssId = '.' + editor.id; var cssSelectors = [ cssId + " .cke_wrapper", cssId + "_dialog .cke_dialog_contents", cssId + "_dialog a.cke_dialog_tab", cssId + "_dialog .cke_dialog_footer" ].join( ',' ); var cssProperties = "background-color: $color !important;"; if ( CKEDITOR.env.webkit ) cssContent = [ [ cssSelectors, cssProperties ] ]; else cssContent = cssSelectors + '{' + cssProperties + '}'; return ( this.setUiColor = function( color ) { var replace = [ [ uiColorRegexp, color ] ]; editor.uiColor = color; // Update general style. updateStylesheets( [ uiStyle ], cssContent, replace ); // Update menu styles. updateStylesheets( uiColorMenus, uiColorMenuCss, replace ); })( color ); } }); editor.on( 'menuShow', function( event ) { var panel = event.data[ 0 ]; var iframe = panel.element.getElementsByTag( 'iframe' ).getItem( 0 ).getFrameDocument(); // Add stylesheet if missing. if ( !iframe.getById( 'cke_ui_color' ) ) { var node = getStylesheet( iframe ); uiColorMenus.push( node ); var color = editor.getUiColor(); // Set uiColor for new menu. if ( color ) updateStylesheets( [ node ], uiColorMenuCss, [ [ uiColorRegexp, color ] ] ); } }); // Apply UI color if specified in config. if ( editor.config.uiColor ) editor.setUiColor( editor.config.uiColor ); } }; })() ); (function() { CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup ); function dialogSetup() { CKEDITOR.dialog.on( 'resize', function( evt ) { var data = evt.data, width = data.width, height = data.height, dialog = data.dialog, contents = dialog.parts.contents; if ( data.skin != 'kama' ) return; contents.setStyles( { width : width + 'px', height : height + 'px' }); }); } })(); /** * The base user interface color to be used by the editor. Not all skins are * compatible with this setting. * @name CKEDITOR.config.uiColor * @type String * @default '' (empty) * @example * // Using a color code. * config.uiColor = '#AADC6E'; * @example * // Using an HTML color name. * config.uiColor = 'Gold'; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Chinese Traditional language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['zh'] = { /** * 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', editorHelp : '按 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 : 'Flash', form : '表單', checkbox : '核取方塊', radio : '選項按鈕', textField : '文字方塊', textarea : '文字區域', hiddenField : '隱藏欄位', button : '按鈕', select : '清單/選單', imageButton : '影像按鈕', notSet : '<尚未設定>', id : 'ID', name : '名稱', langDir : '語言方向', langDirLtr : '由左而右 (LTR)', langDirRtl : '由右而左 (RTL)', langCode : '語言代碼', longDescr : '詳細 URL', cssClass : '樣式表類別', advisoryTitle : '標題', cssStyle : '樣式', ok : '確定', cancel : '取消', close : '关闭', preview : '预览', generalTab : '一般', advancedTab : '進階', validateNumberFailed : '需要輸入數字格式', confirmNewPage : '現存的修改尚未儲存,要開新檔案?', confirmCancel : '部份選項尚未儲存,要關閉對話盒?', options : '选项', target : '目标', targetNew : '新窗口(_blank)', targetTop : '整页(_top)', targetSelf : '本窗口(_self)', targetParent : '父窗口(_parent)', langDirLTR : '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 : '靠下對齊', invalidValue : 'Invalid value.', // MISSING invalidHeight : '高度必須為數字格式', invalidWidth : '寬度必須為數字格式', invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, 已關閉</span>' }, contextmenu : { options : '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 : '可縮放', popupStatusBar : '狀態列', popupLocationBar: '網址列', popupToolbar : '工具列', popupMenuBar : '選單列', popupFullScreen : '全螢幕 (IE)', popupScrollBars : '捲軸', popupDependent : '從屬 (NS)', popupLeft : '左', popupTop : '右', id : 'ID', 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 : '循環搜索', replaceAll : '全部取代', replaceSuccessMsg : '共完成 %1 次取代' }, // Table Dialog table : { toolbar : '表格', title : '表格屬性', menu : '表格屬性', deleteTable : '刪除表格', rows : '列數', columns : '欄數', border : '邊框', widthPx : '像素', widthPc : '百分比', widthUnit : 'width unit', // MISSING 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 : 'Choose' // MISSING }, row : { menu : '列', insertBefore : '向上插入列', insertAfter : '向下插入列', deleteRow : '刪除列' }, column : { menu : '欄', insertBefore : '向左插入欄', insertAfter : '向右插入欄', deleteColumn : '刪除欄' } }, // Button Dialog. button : { title : '按鈕屬性', text : '顯示文字 (值)', type : '類型', typeBtn : '按鈕 (Button)', typeSbm : '送出 (Submit)', 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 : '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 屬性', propertiesTab : '屬性', title : 'Flash 屬性', 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 : 'Flash 變數', bgcolor : '背景顏色', hSpace : '水平距離', vSpace : '垂直距離', validateSrc : '請輸入欲連結的 URL', validateHSpace : '水平間距必須為數字格式', validateVSpace : '垂直間距必須為數字格式' }, // Speller Pages Dialog spellCheck : { toolbar : '拼字檢查', title : '拼字檢查', notAvailable : '抱歉,服務目前暫不可用', errorLoading : '無法聯系侍服器: %s.', notInDic : '不在字典中', changeTo : '更改為', btnIgnore : '忽略', btnIgnoreAll : '全部忽略', btnReplace : '取代', btnReplaceAll : '全部取代', btnUndo : '復原', noSuggestions : '- 無建議值 -', progress : '進行拼字檢查中…', noMispell : '拼字檢查完成:未發現拼字錯誤', noChanges : '拼字檢查完成:未更改任何單字', oneChange : '拼字檢查完成:更改了 1 個單字', manyChanges : '拼字檢查完成:更改了 %1 個單字', ieSpellDownload : '尚未安裝拼字檢查元件。您是否想要現在下載?' }, smiley : { toolbar : '表情符號', title : '插入表情符號', options : 'Smiley Options' // MISSING }, elementsPath : { eleLabel : 'Elements path', // MISSING 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 : 'Paste Area' // MISSING }, pastefromword : { confirmCleanup : '您想貼上的文字似乎是自 Word 複製而來,請問您是否要先清除 Word 的格式後再行貼上?', toolbar : '自 Word 貼上', title : '自 Word 貼上', 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 : '請選擇欲開啟的樣版<br> (原有的內容將會被清除):', emptyListMsg : '(無樣版)' }, showBlocks : '顯示區塊', stylesCombo : { label : '樣式', panelTitle : 'Formatting Styles', // MISSING 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 : '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 : '字體', panelTitle : '字體' }, fontSize : { label : '大小', voiceLabel : '文字大小', 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 : '即時拼寫檢查', opera_title : 'Not supported by Opera', // MISSING enable : '啟用即時拼寫檢查', disable : '關閉即時拼寫檢查', about : '關於即時拼寫檢查', toggle : '啟用/關閉即時拼寫檢查', options : '選項', langs : '語言', moreSuggestions : '更多拼寫建議', ignore : '忽略', ignoreAll : '全部忽略', addWord : '添加單詞', emptyDic : '字典名不應為空.', optionsTab : '選項', 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 : '語言', dictionariesTab : '字典', 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 : { title : '關於 CKEditor', dlgTitle : '關於 CKEditor', help : 'Check $1 for help.', // MISSING userGuide : 'CKEditor User\'s Guide', // MISSING moreInfo : '訪問我們的網站以獲取更多關於協議的信息', copy : 'Copyright &copy; $1. All rights reserved.' }, maximize : '最大化', minimize : '最小化', fakeobjects : { anchor : '錨點', flash : 'Flash 動畫', iframe : 'IFrame', // MISSING hiddenfield : 'Hidden Field', // MISSING unknown : '不明物件' }, resize : '拖拽改變大小', colordialog : { title : 'Select color', // MISSING options : 'Color Options', // MISSING highlight : 'Highlight', // MISSING selected : 'Selected Color', // MISSING clear : 'Clear' // MISSING }, toolbarCollapse : '折叠工具栏', toolbarExpand : '展开工具栏', toolbarGroups : { document : 'Document', // MISSING clipboard : 'Clipboard/Undo', // MISSING editing : 'Editing', // MISSING forms : 'Forms', // MISSING basicstyles : 'Basic Styles', // MISSING paragraph : 'Paragraph', // MISSING links : 'Links', // MISSING insert : 'Insert', // MISSING styles : 'Styles', // MISSING colors : 'Colors', // MISSING tools : 'Tools' // MISSING }, bidi : { ltr : '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 : '<其他>', docTitle : '頁面標題', charset : '字元編碼', charsetOther : '其他字元編碼', charsetASCII : 'ASCII', // MISSING charsetCE : '中歐語系', charsetCT : '正體中文 (Big5)', charsetCR : '斯拉夫文', charsetGR : '希臘文', charsetJP : '日文', charsetKR : '韓文', charsetTR : '土耳其文', charsetUN : 'Unicode (UTF-8)', // MISSING 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>' // MISSING } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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', // MISSING editorHelp : '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', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Height must be a number.', // MISSING invalidWidth : 'Width must be a number.', // MISSING invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING }, contextmenu : { options : 'Context Menu Options' // MISSING }, // Special char dialog. specialChar : { toolbar : '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 &copy; $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 } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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', editorHelp : 'Gwasgwch ALT 0 am gymorth', // ARIA descriptions. toolbars : 'Bariau offer golygydd', editor : 'Golygydd Testun Cyfoethog', // Toolbar buttons without dialogs. source : 'HTML', 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', invalidValue : 'Gwerth annilys.', 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 : 'Mae\'n rhaid i\'r gwerth ar gyfer arddull mewn-llinell gynnwys un set neu fwy ar y fformat "enw:gwerth", wedi\'u gwahanu gyda hanner colon.', cssLengthTooltip : 'Rhowch rif ar gyfer gwerth mewn picsel neu rhif gydag uned CSS dilys (px, %, in, cm, mm, em, pt neu pc).', // 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 : 'Chwilio Opsiynau', 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 gwreiddiol y 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 &copy; $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>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Khmer language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['km'] = { /** * 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', // MISSING editorHelp : '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 : 'Flash', form : 'បែបបទ', checkbox : 'ប្រអប់ជ្រើសរើស', radio : 'ប៉ូតុនរង្វង់មូល', textField : 'ជួរសរសេរអត្ថបទ', textarea : 'តំបន់សរសេរអត្ថបទ', hiddenField : 'ជួរលាក់', button : 'ប៉ូតុន', select : 'ជួរជ្រើសរើស', imageButton : 'ប៉ូតុនរូបភាព', notSet : '<មិនមែន>', id : 'Id', name : 'ឈ្មោះ', langDir : 'ទិសដៅភាសា', langDirLtr : 'ពីឆ្វេងទៅស្តាំ(LTR)', langDirRtl : 'ពីស្តាំទៅឆ្វេង(RTL)', langCode : 'លេខកូតភាសា', longDescr : 'អធិប្បាយ URL វែង', cssClass : 'Stylesheet Classes', advisoryTitle : 'ចំណងជើង ប្រឹក្សា', cssStyle : 'ម៉ូត', ok : 'យល់ព្រម', cancel : 'មិនយល់ព្រម', close : 'Close', // MISSING preview : 'Preview', // MISSING generalTab : 'General', // MISSING advancedTab : 'កំរិតខ្ពស់', validateNumberFailed : 'This value is not a number.', // MISSING confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING options : 'Options', // MISSING target : 'Target', // MISSING targetNew : 'New Window (_blank)', // MISSING targetTop : 'Topmost Window (_top)', // MISSING targetSelf : 'Same Window (_self)', // MISSING targetParent : 'Parent Window (_parent)', // MISSING langDirLTR : 'Left to Right (LTR)', // MISSING langDirRTL : 'Right to Left (RTL)', // MISSING styles : 'Style', // MISSING cssClasses : 'Stylesheet Classes', // MISSING width : 'ទទឹង', height : 'កំពស់', align : 'កំណត់ទីតាំង', alignLeft : 'ខាងឆ្វង', alignRight : 'ខាងស្តាំ', alignCenter : 'កណ្តាល', alignTop : 'ខាងលើ', alignMiddle : 'កណ្តាល', alignBottom : 'ខាងក្រោម', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Height must be a number.', // MISSING invalidWidth : 'Width must be a number.', // MISSING invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING }, contextmenu : { options : 'Context Menu Options' // MISSING }, // Special char dialog. specialChar : { toolbar : 'បន្ថែមអក្សរពិសេស', title : 'តូអក្សរពិសេស', options : 'Special Character Options' // MISSING }, // Link dialog. link : { toolbar : 'បន្ថែម/កែប្រែ ឈ្នាប់', other : '<other>', // MISSING menu : 'កែប្រែឈ្នាប់', title : 'ឈ្នាប់', info : 'ពត៌មានអំពីឈ្នាប់', target : 'គោលដៅ', upload : 'ទាញយក', advanced : 'កំរិតខ្ពស់', type : 'ប្រភេទឈ្នាប់', toUrl : 'URL', // MISSING toAnchor : 'យុថ្កានៅក្នុងទំព័រនេះ', toEmail : 'អ៊ីមែល', targetFrame : '<ហ្វ្រេម>', targetPopup : '<វីនដូវ លោត>', targetFrameName : 'ឈ្មោះហ្រ្វេមដែលជាគោលដៅ', targetPopupName : 'ឈ្មោះវីនដូវលោត', popupFeatures : 'លក្ខណះរបស់វីនដូលលោត', popupResizable : 'Resizable', // MISSING popupStatusBar : 'របា ពត៌មាន', popupLocationBar: 'របា ទីតាំង', popupToolbar : 'របា ឩបករណ៍', popupMenuBar : 'របា មឺនុយ', popupFullScreen : 'អេក្រុងពេញ(IE)', popupScrollBars : 'របា ទាញ', popupDependent : 'អាស្រ័យលើ (Netscape)', popupLeft : 'ទីតាំងខាងឆ្វេង', popupTop : 'ទីតាំងខាងលើ', id : 'Id', // MISSING langDir : 'ទិសដៅភាសា', langDirLTR : 'ពីឆ្វេងទៅស្តាំ(LTR)', langDirRTL : 'ពីស្តាំទៅឆ្វេង(RTL)', acccessKey : 'ឃី សំរាប់ចូល', name : 'ឈ្មោះ', langCode : 'ទិសដៅភាសា', tabIndex : 'លេខ Tab', advisoryTitle : 'ចំណងជើង ប្រឹក្សា', advisoryContentType : 'ប្រភេទអត្ថបទ ប្រឹក្សា', cssClasses : 'Stylesheet Classes', charset : 'លេខកូតអក្សររបស់ឈ្នាប់', styles : 'ម៉ូត', rel : 'Relationship', // MISSING selectAnchor : 'ជ្រើសរើសយុថ្កា', anchorName : 'តាមឈ្មោះរបស់យុថ្កា', anchorId : 'តាម Id', emailAddress : 'អ៊ីមែល', emailSubject : 'ចំណងជើងអត្ថបទ', emailBody : 'អត្ថបទ', noAnchors : '(No anchors available in the document)', // MISSING noUrl : 'សូមសរសេរ អាស័យដ្ឋាន URL', noEmail : 'សូមសរសេរ អាស័យដ្ឋាន អ៊ីមែល' }, // Anchor dialog anchor : { toolbar : 'បន្ថែម/កែប្រែ យុថ្កា', menu : 'ការកំណត់យុថ្កា', title : 'ការកំណត់យុថ្កា', name : 'ឈ្មោះយុទ្ធថ្កា', errorName : 'សូមសរសេរ ឈ្មោះយុទ្ធថ្កា', remove : 'Remove Anchor' // MISSING }, // List style dialog list: { numberedTitle : 'Numbered List Properties', // MISSING bulletedTitle : 'Bulleted List Properties', // MISSING type : 'Type', // MISSING start : 'Start', // MISSING validateStartNumber :'List start number must be a whole number.', // MISSING circle : 'Circle', // MISSING disc : 'Disc', // MISSING square : 'Square', // MISSING none : 'None', // MISSING notset : '<not set>', // MISSING armenian : 'Armenian numbering', // MISSING georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING decimal : 'Decimal (1, 2, 3, etc.)', // MISSING decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING }, // Find And Replace Dialog findAndReplace : { title : 'Find and Replace', // MISSING find : 'ស្វែងរក', replace : 'ជំនួស', findWhat : 'ស្វែងរកអ្វី:', replaceWith : 'ជំនួសជាមួយ:', notFoundMsg : 'ពាក្យនេះ រកមិនឃើញទេ ។', findOptions : 'Find Options', // MISSING matchCase : 'ករណ៉ត្រូវរក', matchWord : 'ត្រូវពាក្យទាំងអស់', matchCyclic : 'Match cyclic', // MISSING replaceAll : 'ជំនួសទាំងអស់', replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING }, // Table Dialog table : { toolbar : 'តារាង', title : 'ការកំណត់ តារាង', menu : 'ការកំណត់ តារាង', deleteTable : 'លប់តារាង', rows : 'ជួរផ្តេក', columns : 'ជួរឈរ', border : 'ទំហំស៊ុម', widthPx : 'ភីកសែល', widthPc : 'ភាគរយ', widthUnit : 'width unit', // MISSING cellSpace : 'គំលាតសែល', cellPad : 'គែមសែល', caption : 'ចំណងជើង', summary : 'សេចក្តីសង្ខេប', headers : 'Headers', // MISSING headersNone : 'None', // MISSING headersColumn : 'First column', // MISSING headersRow : 'First Row', // MISSING headersBoth : 'Both', // MISSING invalidRows : 'Number of rows must be a number greater than 0.', // MISSING invalidCols : 'Number of columns must be a number greater than 0.', // MISSING invalidBorder : 'Border size must be a number.', // MISSING invalidWidth : 'Table width must be a number.', // MISSING invalidHeight : 'Table height must be a number.', // MISSING invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING invalidCellPadding : 'Cell padding must be a positive number.', // MISSING cell : { menu : 'Cell', // MISSING insertBefore : 'Insert Cell Before', // MISSING insertAfter : 'Insert Cell After', // MISSING deleteCell : 'លប់សែល', merge : 'បញ្ជូលសែល', mergeRight : 'Merge Right', // MISSING mergeDown : 'Merge Down', // MISSING splitHorizontal : 'Split Cell Horizontally', // MISSING splitVertical : 'Split Cell Vertically', // MISSING title : 'Cell Properties', // MISSING cellType : 'Cell Type', // MISSING rowSpan : 'Rows Span', // MISSING colSpan : 'Columns Span', // MISSING wordWrap : 'Word Wrap', // MISSING hAlign : 'Horizontal Alignment', // MISSING vAlign : 'Vertical Alignment', // MISSING alignBaseline : 'Baseline', // MISSING bgColor : 'Background Color', // MISSING borderColor : 'Border Color', // MISSING data : 'Data', // MISSING header : 'Header', // MISSING yes : 'Yes', // MISSING no : 'No', // MISSING invalidWidth : 'Cell width must be a number.', // MISSING invalidHeight : 'Cell height must be a number.', // MISSING invalidRowSpan : 'Rows span must be a whole number.', // MISSING invalidColSpan : 'Columns span must be a whole number.', // MISSING chooseColor : 'Choose' // MISSING }, row : { menu : 'Row', // MISSING insertBefore : 'Insert Row Before', // MISSING insertAfter : 'Insert Row After', // MISSING deleteRow : 'លប់ជួរផ្តេក' }, column : { menu : 'Column', // MISSING insertBefore : 'Insert Column Before', // MISSING insertAfter : 'Insert Column After', // MISSING deleteColumn : 'លប់ជួរឈរ' } }, // Button Dialog. button : { title : 'ការកំណត់ ប៉ូតុន', text : 'អត្ថបទ(តំលៃ)', type : 'ប្រភេទ', typeBtn : 'Button', // MISSING typeSbm : 'Submit', // MISSING typeRst : 'Reset' // MISSING }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : 'ការកំណត់ប្រអប់ជ្រើសរើស', radioTitle : 'ការកំណត់ប៉ូតុនរង្វង់', value : 'តំលៃ', selected : 'បានជ្រើសរើស' }, // Form Dialog. form : { title : 'ការកំណត់បែបបទ', menu : 'ការកំណត់បែបបទ', action : 'សកម្មភាព', method : 'វិធី', encoding : 'Encoding' // MISSING }, // Select Field Dialog. select : { title : 'ការកំណត់ជួរជ្រើសរើស', selectInfo : 'ពត៌មាន', opAvail : 'ការកំណត់ជ្រើសរើស ដែលអាចកំណត់បាន', value : 'តំលៃ', size : 'ទំហំ', lines : 'បន្ទាត់', chkMulti : 'អនុញ្ញាតអោយជ្រើសរើសច្រើន', opText : 'ពាក្យ', opValue : 'តំលៃ', btnAdd : 'បន្ថែម', btnModify : 'ផ្លាស់ប្តូរ', btnUp : 'លើ', btnDown : 'ក្រោម', btnSetValue : 'Set as selected value', // MISSING btnDelete : 'លប់' }, // Textarea Dialog. textarea : { title : 'ការកំណត់កន្លែងសរសេរអត្ថបទ', cols : 'ជូរឈរ', rows : 'ជូរផ្តេក' }, // Text Field Dialog. textfield : { title : 'ការកំណត់ជួរអត្ថបទ', name : 'ឈ្មោះ', value : 'តំលៃ', charWidth : 'ទទឹង អក្សរ', maxChars : 'អក្សរអតិបរិមា', type : 'ប្រភេទ', typeText : 'ពាក្យ', typePass : 'ពាក្យសំងាត់' }, // Hidden Field Dialog. hidden : { title : 'ការកំណត់ជួរលាក់', name : 'ឈ្មោះ', value : 'តំលៃ' }, // Image Dialog. image : { title : 'ការកំណត់រូបភាព', titleButton : 'ការកំណត់ប៉ូតុនរូបភាព', menu : 'ការកំណត់រូបភាព', infoTab : 'ពត៌មានអំពីរូបភាព', btnUpload : 'បញ្ជូនទៅកាន់ម៉ាស៊ីនផ្តល់សេវា', upload : 'ទាញយក', alt : 'អត្ថបទជំនួស', lockRatio : 'អត្រាឡុក', resetSize : 'កំណត់ទំហំឡើងវិញ', border : 'ស៊ុម', hSpace : 'គំលាតទទឹង', vSpace : 'គំលាតបណ្តោយ', alertUrl : 'សូមសរសេរងាស័យដ្ឋានរបស់រូបភាព', 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 : 'ការកំណត់ Flash', propertiesTab : 'Properties', // MISSING title : 'ការកំណត់ Flash', chkPlay : 'លេងដោយស្វ័យប្រវត្ត', chkLoop : 'ចំនួនដង', chkMenu : 'បង្ហាញ មឺនុយរបស់ Flash', chkFull : 'Allow Fullscreen', // MISSING scale : 'ទំហំ', scaleAll : 'បង្ហាញទាំងអស់', scaleNoBorder : 'មិនបង្ហាញស៊ុម', scaleFit : 'ត្រូវល្មម', access : 'Script Access', // MISSING accessAlways : 'Always', // MISSING accessSameDomain: 'Same domain', // MISSING accessNever : 'Never', // MISSING alignAbsBottom : 'Abs Bottom', // MISSING alignAbsMiddle : 'Abs Middle', // MISSING alignBaseline : 'បន្ទាត់ជាមូលដ្ឋាន', alignTextTop : 'លើអត្ថបទ', quality : 'Quality', // MISSING qualityBest : 'Best', // MISSING qualityHigh : 'High', // MISSING qualityAutoHigh : 'Auto High', // MISSING qualityMedium : 'Medium', // MISSING qualityAutoLow : 'Auto Low', // MISSING qualityLow : 'Low', // MISSING windowModeWindow: 'Window', // MISSING windowModeOpaque: 'Opaque', // MISSING windowModeTransparent : 'Transparent', // MISSING windowMode : 'Window mode', // MISSING flashvars : 'Variables for Flash', // MISSING bgcolor : 'ពណ៌ផ្ទៃខាងក្រោយ', hSpace : 'គំលាតទទឹង', vSpace : 'គំលាតបណ្តោយ', validateSrc : 'សូមសរសេរ អាស័យដ្ឋាន URL', validateHSpace : 'HSpace must be a number.', // MISSING validateVSpace : 'VSpace must be a number.' // MISSING }, // Speller Pages Dialog spellCheck : { toolbar : 'ពិនិត្យអក្ខរាវិរុទ្ធ', title : 'Spell Check', // MISSING notAvailable : 'Sorry, but service is unavailable now.', // MISSING errorLoading : 'Error loading application service host: %s.', // MISSING notInDic : 'គ្មានក្នុងវចនានុក្រម', changeTo : 'ផ្លាស់ប្តូរទៅ', btnIgnore : 'មិនផ្លាស់ប្តូរ', btnIgnoreAll : 'មិនផ្លាស់ប្តូរ ទាំងអស់', btnReplace : 'ជំនួស', btnReplaceAll : 'ជំនួសទាំងអស់', btnUndo : 'សារឡើងវិញ', noSuggestions : '- គ្មានសំណើរ -', progress : 'កំពុងពិនិត្យអក្ខរាវិរុទ្ធ...', noMispell : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: គ្មានកំហុស', noChanges : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពុំមានផ្លាស់ប្តូរ', oneChange : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពាក្យមួយត្រូចបានផ្លាស់ប្តូរ', manyChanges : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: %1 ពាក្យបានផ្លាស់ប្តូរ', ieSpellDownload : 'ពុំមានកម្មវិធីពិនិត្យអក្ខរាវិរុទ្ធ ។ តើចង់ទាញយកពីណា?' }, smiley : { toolbar : 'រូបភាព', title : 'បញ្ជូលរូបភាព', options : 'Smiley Options' // MISSING }, elementsPath : { eleLabel : 'Elements path', // MISSING eleTitle : '%1 element' // MISSING }, numberedlist : 'បញ្ជីជាអក្សរ', bulletedlist : 'បញ្ជីជារង្វង់មូល', indent : 'បន្ថែមការចូលបន្ទាត់', outdent : 'បន្ថយការចូលបន្ទាត់', justify : { left : 'តំរឹមឆ្វេង', center : 'តំរឹមកណ្តាល', right : 'តំរឹមស្តាំ', block : 'តំរឹមសងខាង' }, blockquote : 'Block Quote', // MISSING clipboard : { title : 'ចំលងដាក់', cutError : 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ\u200bមិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ កាត់អត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+X) ។', copyError : 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ\u200bមិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ ចំលងអត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+C)។', pasteMsg : 'សូមចំលងអត្ថបទទៅដាក់ក្នុងប្រអប់ដូចខាងក្រោមដោយប្រើប្រាស់ ឃី \u200b(<STRONG>Ctrl/Cmd+V</STRONG>) ហើយចុច <STRONG>OK</STRONG> ។', securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING pasteArea : 'Paste Area' // MISSING }, pastefromword : { confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING toolbar : 'ចំលងដាក់ពី Word', title : 'ចំលងដាក់ពី Word', error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING }, pasteText : { button : 'ចំលងដាក់អត្ថបទធម្មតា', title : 'ចំលងដាក់អត្ថបទធម្មតា' }, templates : { button : 'ឯកសារគំរូ', title : 'ឯកសារគំរូ របស់អត្ថន័យ', options : 'Template Options', // MISSING insertOption : 'Replace actual contents', // MISSING selectPromptMsg : 'សូមជ្រើសរើសឯកសារគំរូ ដើម្បីបើកនៅក្នុងកម្មវិធីតាក់តែងអត្ថបទ<br>(អត្ថបទនឹងបាត់បង់):', emptyListMsg : '(ពុំមានឯកសារគំរូត្រូវបានកំណត់)' }, showBlocks : 'Show Blocks', // MISSING stylesCombo : { label : 'ម៉ូត', panelTitle : 'Formatting Styles', // MISSING panelTitle1 : 'Block Styles', // MISSING panelTitle2 : 'Inline Styles', // MISSING panelTitle3 : 'Object Styles' // MISSING }, format : { label : 'រចនា', panelTitle : 'រចនា', tag_p : 'Normal', tag_pre : 'Formatted', tag_address : 'Address', tag_h1 : 'Heading 1', tag_h2 : 'Heading 2', tag_h3 : 'Heading 3', tag_h4 : 'Heading 4', tag_h5 : 'Heading 5', tag_h6 : 'Heading 6', tag_div : 'Normal (DIV)' }, div : { title : 'Create Div Container', // MISSING toolbar : 'Create Div Container', // MISSING cssClassInputLabel : 'Stylesheet Classes', // MISSING styleSelectLabel : 'Style', // MISSING IdInputLabel : 'Id', // MISSING languageCodeInputLabel : ' Language Code', // MISSING inlineStyleInputLabel : 'Inline Style', // MISSING advisoryTitleInputLabel : 'Advisory Title', // MISSING langDirLabel : 'Language Direction', // MISSING langDirLTRLabel : 'Left to Right (LTR)', // MISSING langDirRTLLabel : 'Right to Left (RTL)', // MISSING edit : 'Edit Div', // MISSING remove : 'Remove Div' // MISSING }, iframe : { title : 'IFrame Properties', // MISSING toolbar : 'IFrame', // MISSING noUrl : 'Please type the iframe URL', // MISSING scrolling : 'Enable scrollbars', // MISSING border : 'Show frame border' // MISSING }, font : { label : 'ហ្វុង', 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 &copy; $1. All rights reserved.' // MISSING }, maximize : 'Maximize', // MISSING minimize : 'Minimize', // MISSING fakeobjects : { anchor : 'Anchor', // MISSING flash : 'Flash Animation', // MISSING iframe : 'IFrame', // MISSING hiddenfield : 'Hidden Field', // MISSING unknown : 'Unknown Object' // MISSING }, resize : 'Drag to resize', // MISSING colordialog : { title : 'Select color', // MISSING options : 'Color Options', // MISSING highlight : 'Highlight', // MISSING selected : 'Selected Color', // MISSING clear : 'Clear' // MISSING }, toolbarCollapse : 'Collapse Toolbar', // MISSING toolbarExpand : 'Expand Toolbar', // MISSING toolbarGroups : { document : 'Document', // MISSING clipboard : 'Clipboard/Undo', // MISSING editing : 'Editing', // MISSING forms : 'Forms', // MISSING basicstyles : 'Basic Styles', // MISSING paragraph : 'Paragraph', // MISSING links : 'Links', // MISSING insert : 'Insert', // MISSING styles : 'Styles', // MISSING colors : 'Colors', // MISSING tools : 'Tools' // MISSING }, bidi : { ltr : 'Text direction from left to right', // MISSING rtl : 'Text direction from right to left' // MISSING }, docprops : { label : 'ការកំណត់ ឯកសារ', title : 'ការកំណត់ ឯកសារ', design : 'Design', // MISSING meta : 'ទិន្នន័យមេ', chooseColor : 'Choose', // MISSING other : '<other>', docTitle : 'ចំណងជើងទំព័រ', charset : 'កំណត់លេខកូតភាសា', charsetOther : 'កំណត់លេខកូតភាសាផ្សេងទៀត', charsetASCII : 'ASCII', // MISSING charsetCE : 'Central European', // MISSING charsetCT : 'Chinese Traditional (Big5)', // MISSING charsetCR : 'Cyrillic', // MISSING charsetGR : 'Greek', // MISSING charsetJP : 'Japanese', // MISSING charsetKR : 'Korean', // MISSING charsetTR : 'Turkish', // MISSING charsetUN : 'Unicode (UTF-8)', // MISSING charsetWE : 'Western European', // MISSING docType : 'ប្រភេទក្បាលទំព័រ', docTypeOther : 'ប្រភេទក្បាលទំព័រផ្សេងទៀត', xhtmlDec : 'បញ្ជូល XHTML', bgColor : 'ពណ៌ខាងក្រោម', bgImage : 'URL របស់រូបភាពខាងក្រោម', bgFixed : 'ទំព័រក្រោមមិនប្តូរ', txtColor : 'ពណ៌អក្សរ', margin : 'ស៊ុមទំព័រ', marginTop : 'លើ', marginLeft : 'ឆ្វេង', marginRight : 'ស្ដាំ', marginBottom : 'ក្រោម', metaKeywords : 'ពាក្យនៅក្នុងឯកសារ (ផ្តាច់ពីគ្នាដោយក្បៀស)', metaDescription : 'សេចក្តីអត្ថាធិប្បាយអំពីឯកសារ', metaAuthor : 'អ្នកនិពន្ធ', metaCopyright : 'រក្សាសិទ្ធិ៏', previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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', // MISSING editorHelp : '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 : 'Доод талд', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Height must be a number.', // MISSING invalidWidth : 'Width must be a number.', // MISSING invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING }, contextmenu : { options : 'Context Menu Options' // MISSING }, // Special char dialog. specialChar : { toolbar : 'Онцгой тэмдэгт оруулах', 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 &copy; $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 } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Romanian language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['ro'] = { /** * 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', // MISSING editorHelp : 'Apasă ALT 0 pentru ajutor', // ARIA descriptions. toolbars : 'Editează bara de unelte', editor : 'Rich Text Editor', // Toolbar buttons without dialogs. source : 'Sursa', newPage : 'Pagină nouă', save : 'Salvează', preview : 'Previzualizare', cut : 'Taie', copy : 'Copiază', paste : 'Adaugă', print : 'Printează', underline : 'Subliniat (underline)', bold : 'Îngroşat (bold)', italic : 'Înclinat (italic)', selectAll : 'Selectează tot', removeFormat : 'Înlătură formatarea', strike : 'Tăiat (strike through)', subscript : 'Indice (subscript)', superscript : 'Putere (superscript)', horizontalrule : 'Inserează linie orizontală', pagebreak : 'Inserează separator de pagină (Page Break)', pagebreakAlt : 'Page Break', unlink : 'Înlătură link (legătură web)', undo : 'Starea anterioară (undo)', redo : 'Starea ulterioară (redo)', // Common messages and labels. common : { browseServer : 'Răsfoieşte server', url : 'URL', protocol : 'Protocol', upload : 'Încarcă', uploadSubmit : 'Trimite la server', image : 'Imagine', flash : 'Flash', form : 'Formular (Form)', checkbox : 'Bifă (Checkbox)', radio : 'Buton radio (RadioButton)', textField : 'Câmp text (TextField)', textarea : 'Suprafaţă text (Textarea)', hiddenField : 'Câmp ascuns (HiddenField)', button : 'Buton', select : 'Câmp selecţie (SelectionField)', imageButton : 'Buton imagine (ImageButton)', notSet : '<nesetat>', id : 'Id', name : 'Nume', langDir : 'Direcţia cuvintelor', langDirLtr : 'stânga-dreapta (LTR)', langDirRtl : 'dreapta-stânga (RTL)', langCode : 'Codul limbii', longDescr : 'Descrierea lungă URL', cssClass : 'Clasele cu stilul paginii (CSS)', advisoryTitle : 'Titlul consultativ', cssStyle : 'Stil', ok : 'OK', cancel : 'Anulare', close : 'Închide', preview : 'Previzualizare', generalTab : 'General', advancedTab : 'Avansat', validateNumberFailed : 'Această valoare nu este un număr.', confirmNewPage : 'Orice modificări nesalvate ale acestui conținut, vor fi pierdute. Sigur doriți încărcarea unei noi pagini?', confirmCancel : 'Câteva opțiuni au fost schimbate. Sigur doriți să închideți dialogul?', options : 'Opțiuni', target : 'Țintă', targetNew : 'Fereastră nouă (_blank)', targetTop : 'Topmost Window (_top)', targetSelf : 'În aceeași fereastră (_self)', targetParent : 'Parent Window (_parent)', langDirLTR : 'Stânga spre Dreapta (LTR)', langDirRTL : 'Dreapta spre Stânga (RTL)', styles : 'Stil', cssClasses : 'Stylesheet Classes', width : 'Lăţime', height : 'Înălţime', align : 'Aliniere', alignLeft : 'Mărește Bara', alignRight : 'Dreapta', alignCenter : 'Centru', alignTop : 'Sus', alignMiddle : 'Mijloc', alignBottom : 'Jos', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Înălțimea trebuie să fie un număr.', invalidWidth : 'Lățimea trebuie să fie un număr.', 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 : 'Opțiuni Meniu Contextual' }, // Special char dialog. specialChar : { toolbar : 'Inserează caracter special', title : 'Selectează caracter special', options : 'Opțiuni caractere speciale' }, // Link dialog. link : { toolbar : 'Inserează/Editează link (legătură web)', other : '<alt>', menu : 'Editează Link', title : 'Link (Legătură web)', info : 'Informaţii despre link (Legătură web)', target : 'Ţintă (Target)', upload : 'Încarcă', advanced : 'Avansat', type : 'Tipul link-ului (al legăturii web)', toUrl : 'URL', toAnchor : 'Ancoră în această pagină', toEmail : 'E-Mail', targetFrame : '<frame>', targetPopup : '<fereastra popup>', targetFrameName : 'Numele frameului ţintă', targetPopupName : 'Numele ferestrei popup', popupFeatures : 'Proprietăţile ferestrei popup', popupResizable : 'Redimensionabil', popupStatusBar : 'Bara de status', popupLocationBar: 'Bara de locaţie', popupToolbar : 'Bara de opţiuni', popupMenuBar : 'Bara de meniu', popupFullScreen : 'Tot ecranul (Full Screen)(IE)', popupScrollBars : 'Bare de derulare', popupDependent : 'Dependent (Netscape)', popupLeft : 'Poziţia la stânga', popupTop : 'Poziţia la dreapta', id : 'Id', langDir : 'Direcţia cuvintelor', langDirLTR : 'stânga-dreapta (LTR)', langDirRTL : 'dreapta-stânga (RTL)', acccessKey : 'Tasta de acces', name : 'Nume', langCode : 'Direcţia cuvintelor', tabIndex : 'Indexul tabului', advisoryTitle : 'Titlul consultativ', advisoryContentType : 'Tipul consultativ al titlului', cssClasses : 'Clasele cu stilul paginii (CSS)', charset : 'Setul de caractere al resursei legate', styles : 'Stil', rel : 'Relație', selectAnchor : 'Selectaţi o ancoră', anchorName : 'după numele ancorei', anchorId : 'după Id-ul elementului', emailAddress : 'Adresă de e-mail', emailSubject : 'Subiectul mesajului', emailBody : 'Opțiuni Meniu Contextual', noAnchors : '(Nicio ancoră disponibilă în document)', noUrl : 'Vă rugăm să scrieţi URL-ul', noEmail : 'Vă rugăm să scrieţi adresa de e-mail' }, // Anchor dialog anchor : { toolbar : 'Inserează/Editează ancoră', menu : 'Proprietăţi ancoră', title : 'Proprietăţi ancoră', name : 'Numele ancorei', errorName : 'Vă rugăm scrieţi numele ancorei', remove : 'Elimină ancora' }, // List style dialog list: { numberedTitle : 'Proprietățile listei numerotate', bulletedTitle : 'Proprietățile listei cu simboluri', type : 'Tip', start : 'Start', validateStartNumber :'Începutul listei trebuie să fie un număr întreg.', circle : 'Cerc', disc : 'Disc', square : 'Pătrat', none : 'Nimic', notset : '<nesetat>', armenian : 'Numerotare armeniană', georgian : 'Numerotare georgiană (an, ban, gan, etc.)', lowerRoman : 'Cifre romane mici (i, ii, iii, iv, v, etc.)', upperRoman : 'Cifre romane mari (I, II, III, IV, V, etc.)', lowerAlpha : 'Litere mici (a, b, c, d, e, etc.)', upperAlpha : 'Litere mari (A, B, C, D, E, etc.)', lowerGreek : 'Litere grecești mici (alpha, beta, gamma, etc.)', decimal : 'Decimale (1, 2, 3, etc.)', decimalLeadingZero : 'Decimale cu zero în față (01, 02, 03, etc.)' }, // Find And Replace Dialog findAndReplace : { title : 'Găseşte şi înlocuieşte', find : 'Găseşte', replace : 'Înlocuieşte', findWhat : 'Găseşte:', replaceWith : 'Înlocuieşte cu:', notFoundMsg : 'Textul specificat nu a fost găsit.', findOptions : 'Find Options', // MISSING matchCase : 'Deosebeşte majuscule de minuscule (Match case)', matchWord : 'Doar cuvintele întregi', matchCyclic : 'Potrivește ciclic', replaceAll : 'Înlocuieşte tot', replaceSuccessMsg : '%1 căutări înlocuite.' }, // Table Dialog table : { toolbar : 'Tabel', title : 'Proprietăţile tabelului', menu : 'Proprietăţile tabelului', deleteTable : 'Şterge tabel', rows : 'Rânduri', columns : 'Coloane', border : 'Mărimea marginii', widthPx : 'pixeli', widthPc : 'procente', widthUnit : 'unitate lățime', cellSpace : 'Spaţiu între celule', cellPad : 'Spaţiu în cadrul celulei', caption : 'Titlu (Caption)', summary : 'Rezumat', headers : 'Antente', headersNone : 'Nimic', headersColumn : 'Prima coloană', headersRow : 'Primul rând', headersBoth : 'Ambele', invalidRows : 'Numărul rândurilor trebuie să fie mai mare decât 0.', invalidCols : 'Numărul coloanelor trebuie să fie mai mare decât 0.', invalidBorder : 'Dimensiunea bordurii trebuie să aibe un număr.', invalidWidth : 'Lățimea tabelului trebuie să fie un număr.', invalidHeight : 'Table height must be a number.', // MISSING invalidCellSpacing : 'Spațierea celului trebuie să fie un număr pozitiv.', invalidCellPadding : 'Cell padding must be a positive number.', // MISSING cell : { menu : 'Celulă', insertBefore : 'Inserează celulă înainte', insertAfter : 'Inserează celulă după', deleteCell : 'Şterge celule', merge : 'Uneşte celule', mergeRight : 'Uneşte la dreapta', mergeDown : 'Uneşte jos', splitHorizontal : 'Împarte celula pe orizontală', splitVertical : 'Împarte celula pe verticală', title : 'Proprietăți celulă', cellType : 'Tipul celulei', rowSpan : 'Rows Span', // MISSING colSpan : 'Columns Span', // MISSING wordWrap : 'Word Wrap', // MISSING hAlign : 'Aliniament orizontal', vAlign : 'Aliniament vertical', alignBaseline : 'Baseline', // MISSING bgColor : 'Culoare fundal', borderColor : 'Culoare bordură', data : 'Data', header : 'Antet', yes : 'Da', no : 'Nu', invalidWidth : 'Lățimea celulei trebuie să fie un număr.', invalidHeight : 'Înălțimea celulei trebuie să fie un număr.', invalidRowSpan : 'Rows span must be a whole number.', // MISSING invalidColSpan : 'Columns span must be a whole number.', // MISSING chooseColor : 'Alege' }, row : { menu : 'Rând', insertBefore : 'Inserează rând înainte', insertAfter : 'Inserează rând după', deleteRow : 'Şterge rânduri' }, column : { menu : 'Coloană', insertBefore : 'Inserează coloană înainte', insertAfter : 'Inserează coloană după', deleteColumn : 'Şterge celule' } }, // Button Dialog. button : { title : 'Proprietăţi buton', text : 'Text (Valoare)', type : 'Tip', typeBtn : 'Buton', typeSbm : 'Trimite', typeRst : 'Reset' }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : 'Proprietăţi bifă (Checkbox)', radioTitle : 'Proprietăţi buton radio (Radio Button)', value : 'Valoare', selected : 'Selectat' }, // Form Dialog. form : { title : 'Proprietăţi formular (Form)', menu : 'Proprietăţi formular (Form)', action : 'Acţiune', method : 'Metodă', encoding : 'Encodare' }, // Select Field Dialog. select : { title : 'Proprietăţi câmp selecţie (Selection Field)', selectInfo : 'Informaţii', opAvail : 'Opţiuni disponibile', value : 'Valoare', size : 'Mărime', lines : 'linii', chkMulti : 'Permite selecţii multiple', opText : 'Text', opValue : 'Valoare', btnAdd : 'Adaugă', btnModify : 'Modifică', btnUp : 'Sus', btnDown : 'Jos', btnSetValue : 'Setează ca valoare selectată', btnDelete : 'Şterge' }, // Textarea Dialog. textarea : { title : 'Proprietăţi suprafaţă text (Textarea)', cols : 'Coloane', rows : 'Linii' }, // Text Field Dialog. textfield : { title : 'Proprietăţi câmp text (Text Field)', name : 'Nume', value : 'Valoare', charWidth : 'Lărgimea caracterului', maxChars : 'Caractere maxime', type : 'Tip', typeText : 'Text', typePass : 'Parolă' }, // Hidden Field Dialog. hidden : { title : 'Proprietăţi câmp ascuns (Hidden Field)', name : 'Nume', value : 'Valoare' }, // Image Dialog. image : { title : 'Proprietăţile imaginii', titleButton : 'Proprietăţi buton imagine (Image Button)', menu : 'Proprietăţile imaginii', infoTab : 'Informaţii despre imagine', btnUpload : 'Trimite la server', upload : 'Încarcă', alt : 'Text alternativ', lockRatio : 'Păstrează proporţiile', resetSize : 'Resetează mărimea', border : 'Margine', hSpace : 'HSpace', vSpace : 'VSpace', alertUrl : 'Vă rugăm să scrieţi URL-ul imaginii', linkTab : 'Link (Legătură web)', 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 : 'Sursa URL a imaginii lipsește.', validateBorder : 'Bordura trebuie să fie un număr întreg.', validateHSpace : 'Hspace trebuie să fie un număr întreg.', validateVSpace : 'Vspace trebuie să fie un număr întreg.' }, // Flash Dialog flash : { properties : 'Proprietăţile flashului', propertiesTab : 'Proprietăți', title : 'Proprietăţile flashului', chkPlay : 'Rulează automat', chkLoop : 'Repetă (Loop)', chkMenu : 'Activează meniul flash', chkFull : 'Permite pe tot ecranul', scale : 'Scală', scaleAll : 'Arată tot', scaleNoBorder : 'Fără bordură (No border)', scaleFit : 'Potriveşte', access : 'Acces script', accessAlways : 'Întotdeauna', accessSameDomain: 'Același domeniu', accessNever : 'Niciodată', alignAbsBottom : 'Jos absolut (Abs Bottom)', alignAbsMiddle : 'Mijloc absolut (Abs Middle)', alignBaseline : 'Linia de jos (Baseline)', alignTextTop : 'Text sus', quality : 'Calitate', qualityBest : 'Cea mai bună', qualityHigh : 'Înaltă', qualityAutoHigh : 'Auto înaltă', qualityMedium : 'Medie', qualityAutoLow : 'Auto Joasă', qualityLow : 'Joasă', windowModeWindow: 'Fereastră', windowModeOpaque: 'Opacă', windowModeTransparent : 'Transparentă', windowMode : 'Mod fereastră', flashvars : 'Variabile pentru flash', bgcolor : 'Coloarea fundalului', hSpace : 'HSpace', vSpace : 'VSpace', validateSrc : 'Vă rugăm să scrieţi URL-ul', validateHSpace : 'Hspace trebuie să fie un număr.', validateVSpace : 'VSpace trebuie să fie un număr' }, // Speller Pages Dialog spellCheck : { toolbar : 'Verifică scrierea textului', title : 'Spell Check', // MISSING notAvailable : 'Scuzați, dar serviciul nu este disponibil momentan.', errorLoading : 'Eroare în lansarea aplicației service host %s.', notInDic : 'Nu e în dicţionar', changeTo : 'Schimbă în', btnIgnore : 'Ignoră', btnIgnoreAll : 'Ignoră toate', btnReplace : 'Înlocuieşte', btnReplaceAll : 'Înlocuieşte tot', btnUndo : 'Starea anterioară (undo)', noSuggestions : '- Fără sugestii -', progress : 'Verificarea textului în desfăşurare...', noMispell : 'Verificarea textului terminată: Nicio greşeală găsită', noChanges : 'Verificarea textului terminată: Niciun cuvânt modificat', oneChange : 'Verificarea textului terminată: Un cuvânt modificat', manyChanges : 'Verificarea textului terminată: 1% cuvinte modificate', ieSpellDownload : 'Unealta pentru verificat textul (Spell checker) neinstalată. Doriţi să o descărcaţi acum?' }, smiley : { toolbar : 'Figură expresivă (Emoticon)', title : 'Inserează o figură expresivă (Emoticon)', options : 'Opțiuni figuri expresive' }, elementsPath : { eleLabel : 'Calea elementelor', eleTitle : '%1 element' // MISSING }, numberedlist : 'Inserează / Elimină Listă numerotată', bulletedlist : 'Inserează / Elimină Listă cu puncte', indent : 'Creşte indentarea', outdent : 'Scade indentarea', justify : { left : 'Aliniere la stânga', center : 'Aliniere centrală', right : 'Aliniere la dreapta', block : 'Aliniere în bloc (Block Justify)' }, blockquote : 'Citat', clipboard : { title : 'Adaugă', cutError : 'Setările de securitate ale navigatorului (browser) pe care îl folosiţi nu permit editorului să execute automat operaţiunea de tăiere. Vă rugăm folosiţi tastatura (Ctrl/Cmd+X).', copyError : 'Setările de securitate ale navigatorului (browser) pe care îl folosiţi nu permit editorului să execute automat operaţiunea de copiere. Vă rugăm folosiţi tastatura (Ctrl/Cmd+C).', pasteMsg : 'Vă rugăm adăugaţi în căsuţa următoare folosind tastatura (<strong>Ctrl/Cmd+V</strong>) şi apăsaţi OK', securityMsg : 'Din cauza setărilor de securitate ale programului dvs. cu care navigaţi pe internet (browser), editorul nu poate accesa direct datele din clipboard. Va trebui să adăugaţi din nou datele în această fereastră.', pasteArea : 'Suprafața de adăugare' }, pastefromword : { confirmCleanup : 'Textul pe care doriți să-l lipiți este din Word. Doriți curățarea textului înante de a-l adăuga?', toolbar : 'Adaugă din Word', title : 'Adaugă din Word', error : 'Nu a fost posibilă curățarea datelor adăugate datorită unei erori interne' }, pasteText : { button : 'Adaugă ca text simplu (Plain Text)', title : 'Adaugă ca text simplu (Plain Text)' }, templates : { button : 'Template-uri (şabloane)', title : 'Template-uri (şabloane) de conţinut', options : 'Opțiuni șabloane', insertOption : 'Înlocuieşte cuprinsul actual', selectPromptMsg : 'Vă rugăm selectaţi template-ul (şablonul) ce se va deschide în editor<br>(conţinutul actual va fi pierdut):', emptyListMsg : '(Niciun template (şablon) definit)' }, showBlocks : 'Arată blocurile', stylesCombo : { label : 'Stil', panelTitle : 'Formatarea stilurilor', panelTitle1 : 'Block Styles', // MISSING panelTitle2 : 'Inline Styles', // MISSING panelTitle3 : 'Object Styles' // MISSING }, format : { label : 'Formatare', panelTitle : 'Formatare', tag_p : 'Normal', tag_pre : 'Formatat', tag_address : 'Adresă', 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 : 'Stil', IdInputLabel : 'Id', languageCodeInputLabel : 'Codul limbii', 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 : 'Mărime', voiceLabel : 'Font Size', // MISSING panelTitle : 'Mărime' }, colorButton : { textColorTitle : 'Culoarea textului', bgColorTitle : 'Coloarea fundalului', panelTitle : 'Colors', // MISSING auto : 'Automatic', more : 'Mai multe culori...' }, 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 &copy; $1. All rights reserved.' // MISSING }, maximize : 'Mărește', minimize : 'Micșorează', fakeobjects : { anchor : 'Anchor', // MISSING flash : 'Flash Animation', // MISSING iframe : 'IFrame', // MISSING hiddenfield : 'Hidden Field', // MISSING unknown : 'Unknown Object' // MISSING }, resize : 'Trage pentru a redimensiona', colordialog : { title : 'Select color', // MISSING options : 'Color Options', // MISSING highlight : 'Highlight', // MISSING selected : 'Selected Color', // MISSING clear : 'Clear' // MISSING }, toolbarCollapse : 'Micșorează Bara', toolbarExpand : 'Mărește Bara', 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 : 'Proprietăţile documentului', title : 'Proprietăţile documentului', design : 'Design', // MISSING meta : 'Meta Tags', // MISSING chooseColor : 'Choose', // MISSING other : '<alt>', docTitle : 'Titlul paginii', charset : 'Encoding setului de caractere', charsetOther : 'Alt encoding al setului de caractere', charsetASCII : 'ASCII', // MISSING charsetCE : 'Central European', // MISSING charsetCT : 'Chinezesc tradiţional (Big5)', charsetCR : 'Chirilic', charsetGR : 'Grecesc', charsetJP : 'Japonez', charsetKR : 'Corean', charsetTR : 'Turcesc', charsetUN : 'Unicode (UTF-8)', // MISSING charsetWE : 'Vest european', docType : 'Document Type Heading', // MISSING docTypeOther : 'Alt Document Type Heading', xhtmlDec : 'Include declaraţii XHTML', bgColor : 'Culoarea fundalului (Background Color)', bgImage : 'URL-ul imaginii din fundal (Background Image URL)', bgFixed : 'Fundal neflotant, fix (Non-scrolling Background)', txtColor : 'Culoarea textului', margin : 'Marginile paginii', marginTop : 'Sus', marginLeft : 'Stânga', marginRight : 'Dreapta', marginBottom : 'Jos', metaKeywords : 'Cuvinte cheie după care se va indexa documentul (separate prin virgulă)', metaDescription : 'Descrierea documentului', metaAuthor : 'Autor', metaCopyright : 'Drepturi de autor', previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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', // MISSING editorHelp : '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', invalidValue : 'Invalid value.', // MISSING 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 &copy; $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 } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['tr'] = { /** * 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 : 'Zengin metin editörü, %1', editorHelp : 'Yardım için ALT 0 tuşuna basın', // ARIA descriptions. toolbars : 'Araç çubukları Editörü', editor : 'Zengin Metin Editörü', // Toolbar buttons without dialogs. source : 'Kaynak', newPage : 'Yeni Sayfa', save : 'Kaydet', preview : 'Ön İzleme', cut : 'Kes', copy : 'Kopyala', paste : 'Yapıştır', print : 'Yazdır', underline : 'Altı Çizgili', bold : 'Kalın', italic : 'İtalik', selectAll : 'Tümünü Seç', removeFormat : 'Biçimi Kaldır', strike : 'Üstü Çizgili', subscript : 'Alt Simge', superscript : 'Üst Simge', horizontalrule : 'Yatay Satır Ekle', pagebreak : 'Sayfa Sonu Ekle', pagebreakAlt : 'Sayfa Sonu', unlink : 'Köprü Kaldır', undo : 'Geri Al', redo : 'Tekrarla', // Common messages and labels. common : { browseServer : 'Sunucuyu Gez', url : 'URL', protocol : 'Protokol', upload : 'Karşıya Yükle', uploadSubmit : 'Sunucuya Yolla', image : 'Resim', flash : 'Flash', form : 'Form', checkbox : 'Onay Kutusu', radio : 'Seçenek Düğmesi', textField : 'Metin Girişi', textarea : 'Çok Satırlı Metin', hiddenField : 'Gizli Veri', button : 'Düğme', select : 'Seçim Menüsü', imageButton : 'Resimli Düğme', notSet : '<tanımlanmamış>', id : 'Kimlik', name : 'Ad', langDir : 'Dil Yönü', langDirLtr : 'Soldan Sağa (LTR)', langDirRtl : 'Sağdan Sola (RTL)', langCode : 'Dil Kodlaması', longDescr : 'Uzun Tanımlı URL', cssClass : 'Biçem Sayfası Sınıfları', advisoryTitle : 'Danışma Başlığı', cssStyle : 'Biçem', ok : 'Tamam', cancel : 'İptal', close : 'Kapat', preview : 'Ön gösterim', generalTab : 'Genel', advancedTab : 'Gelişmiş', validateNumberFailed : 'Bu değer sayı değildir.', confirmNewPage : 'İceriğiniz kayıt edilmediğinden dolayı kaybolacaktır. Yeni bir sayfa yüklemek istediğinize eminsiniz?', confirmCancel : 'Bazı seçenekler değişmiştir. Dialog penceresini kapatmak istediğinize eminmisiniz?', options : 'Seçenekler', target : 'Hedef', targetNew : 'Yeni Pencere (_blank)', targetTop : 'Enüst Pencere (_top)', targetSelf : 'Aynı Pencere (_self)', targetParent : 'Ana Pencere (_parent)', langDirLTR : 'Soldan Sağa (LTR)', langDirRTL : 'Sağdan Sola (RTL)', styles : 'Stil', cssClasses : 'Stil sayfası Sınıfı', width : 'Genişlik', height : 'Yükseklik', align : 'Hizalama', alignLeft : 'Sol', alignRight : 'Sağ', alignCenter : 'Merkez', alignTop : 'Tepe', alignMiddle : 'Orta', alignBottom : 'Alt', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Yükseklik sayı olmalıdır.', invalidWidth : 'Genişlik bir sayı olmalıdır.', invalidCssLength : 'Belirttiğiniz sayı "%1" alanı için pozitif bir sayı CSS birim değeri olmalıdır (px, %, in, cm, mm, em, ex, pt, veya pc).', invalidHtmlLength : 'Belirttiğiniz sayı "%1" alanı için pozitif bir sayı HTML birim değeri olmalıdır (px veya %).', invalidInlineStyle : 'Noktalı virgülle ayrılmış: "değer adı," inline stil için belirtilen değer biçiminde bir veya daha fazla dizilerden oluşmalıdır.', cssLengthTooltip : 'Pikseller için bir numara girin veya geçerli bir CSS numarası (px, %, in, cm, mm, em, ex, pt, veya pc).', // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, hazır değildir</span>' }, contextmenu : { options : 'İçerik Menüsü Seçenekleri' }, // Special char dialog. specialChar : { toolbar : 'Özel Karakter Ekle', title : 'Özel Karakter Seç', options : 'Özel Karakter Seçenekleri' }, // Link dialog. link : { toolbar : 'Link Ekle/Düzenle', other : '<diğer>', menu : 'Link Düzenle', title : 'Link', info : 'Link Bilgisi', target : 'Hedef', upload : 'Karşıya Yükle', advanced : 'Gelişmiş', type : 'Link Türü', toUrl : 'URL', toAnchor : 'Bu sayfada çapa', toEmail : 'E-Posta', targetFrame : '<çerçeve>', targetPopup : '<yeni açılan pencere>', targetFrameName : 'Hedef Çerçeve Adı', targetPopupName : 'Yeni Açılan Pencere Adı', popupFeatures : 'Yeni Açılan Pencere Özellikleri', popupResizable : 'Resizable', popupStatusBar : 'Durum Çubuğu', popupLocationBar: 'Yer Çubuğu', popupToolbar : 'Araç Çubuğu', popupMenuBar : 'Menü Çubuğu', popupFullScreen : 'Tam Ekran (IE)', popupScrollBars : 'Kaydırma Çubukları', popupDependent : 'Bağımlı (Netscape)', popupLeft : 'Sola Göre Konum', popupTop : 'Yukarıya Göre Konum', id : 'Id', langDir : 'Dil Yönü', langDirLTR : 'Soldan Sağa (LTR)', langDirRTL : 'Sağdan Sola (RTL)', acccessKey : 'Erişim Tuşu', name : 'Ad', langCode : 'Dil Yönü', tabIndex : 'Sekme İndeksi', advisoryTitle : 'Danışma Başlığı', advisoryContentType : 'Danışma İçerik Türü', cssClasses : 'Biçem Sayfası Sınıfları', charset : 'Bağlı Kaynak Karakter Gurubu', styles : 'Biçem', rel : 'İlişki', selectAnchor : 'Bağlantı Seç', anchorName : 'Bağlantı Adı ile', anchorId : 'Eleman Kimlik Numarası ile', emailAddress : 'E-Posta Adresi', emailSubject : 'İleti Konusu', emailBody : 'İleti Gövdesi', noAnchors : '(Bu belgede hiç çapa yok)', noUrl : 'Lütfen Link URL\'sini yazın', noEmail : 'Lütfen E-posta adresini yazın' }, // Anchor dialog anchor : { toolbar : 'Bağlantı Ekle/Düzenle', menu : 'Bağlantı Özellikleri', title : 'Bağlantı Özellikleri', name : 'Bağlantı Adı', errorName : 'Lütfen bağlantı için ad giriniz', remove : 'Bağlantıyı Kaldır' }, // List style dialog list: { numberedTitle : 'Sayılandırılmış Liste Özellikleri', bulletedTitle : 'Simgeli Liste Özellikleri', type : 'Tipi', start : 'Başla', validateStartNumber :'Liste başlangıcı tam sayı olmalıdır.', circle : 'Daire', disc : 'Disk', square : 'Kare', none : 'Yok', notset : '<ayarlanmamış>', armenian : 'Ermenice sayılandırma', georgian : 'Gürcüce numaralandırma (an, ban, gan, vs.)', lowerRoman : 'Küçük Roman (i, ii, iii, iv, v, vs.)', upperRoman : 'Büyük Roman (I, II, III, IV, V, vs.)', lowerAlpha : 'Küçük Alpha (a, b, c, d, e, vs.)', upperAlpha : 'Büyük Alpha (A, B, C, D, E, vs.)', lowerGreek : 'Küçük Greek (alpha, beta, gamma, vs.)', decimal : 'Ondalık (1, 2, 3, vs.)', decimalLeadingZero : 'Başı sıfırlı ondalık (01, 02, 03, vs.)' }, // Find And Replace Dialog findAndReplace : { title : 'Bul ve Değiştir', find : 'Bul', replace : 'Değiştir', findWhat : 'Aranan:', replaceWith : 'Bununla değiştir:', notFoundMsg : 'Belirtilen yazı bulunamadı.', findOptions : 'Seçenekleri Bul', matchCase : 'Büyük/küçük harf duyarlı', matchWord : 'Kelimenin tamamı uysun', matchCyclic : 'Eşleşen döngü', replaceAll : 'Tümünü Değiştir', replaceSuccessMsg : '%1 bulunanlardan değiştirildi.' }, // Table Dialog table : { toolbar : 'Tablo', title : 'Tablo Özellikleri', menu : 'Tablo Özellikleri', deleteTable : 'Tabloyu Sil', rows : 'Satırlar', columns : 'Sütunlar', border : 'Kenar Kalınlığı', widthPx : 'piksel', widthPc : 'yüzde', widthUnit : 'genişlik birimi', cellSpace : 'Izgara kalınlığı', cellPad : 'Izgara yazı arası', caption : 'Başlık', summary : 'Özet', headers : 'Başlıklar', headersNone : 'Yok', headersColumn : 'İlk Sütun', headersRow : 'İlk Satır', headersBoth : 'Her İkisi', invalidRows : 'Satır sayısı 0 sayısından büyük olmalıdır.', invalidCols : 'Sütün sayısı 0 sayısından büyük olmalıdır.', invalidBorder : 'Çerceve büyüklüklüğü sayı olmalıdır.', invalidWidth : 'Tablo genişliği sayı olmalıdır.', invalidHeight : 'Tablo yüksekliği sayı olmalıdır.', invalidCellSpacing : 'Hücre boşluğu (spacing) sayı olmalıdır.', invalidCellPadding : 'Hücre aralığı (padding) sayı olmalıdır.', cell : { menu : 'Hücre', insertBefore : 'Hücre Ekle - Önce', insertAfter : 'Hücre Ekle - Sonra', deleteCell : 'Hücre Sil', merge : 'Hücreleri Birleştir', mergeRight : 'Birleştir - Sağdaki İle ', mergeDown : 'Birleştir - Aşağıdaki İle ', splitHorizontal : 'Hücreyi Yatay Böl', splitVertical : 'Hücreyi Dikey Böl', title : 'Hücre Özellikleri', cellType : 'Hücre Tipi', rowSpan : 'Satırlar Mesafesi (Span)', colSpan : 'Sütünlar Mesafesi (Span)', wordWrap : 'Kelime Kaydırma', hAlign : 'Düşey Hizalama', vAlign : 'Yataş Hizalama', alignBaseline : 'Tabana', bgColor : 'Arkaplan Rengi', borderColor : 'Çerçeve Rengi', data : 'Veri', header : 'Başlık', yes : 'Evet', no : 'Hayır', invalidWidth : 'Hücre genişliği sayı olmalıdır.', invalidHeight : 'Hücre yüksekliği sayı olmalıdır.', invalidRowSpan : 'Satırların mesafesi tam sayı olmalıdır.', invalidColSpan : 'Sütünların mesafesi tam sayı olmalıdır.', chooseColor : 'Seçiniz' }, row : { menu : 'Satır', insertBefore : 'Satır Ekle - Önce', insertAfter : 'Satır Ekle - Sonra', deleteRow : 'Satır Sil' }, column : { menu : 'Sütun', insertBefore : 'Kolon Ekle - Önce', insertAfter : 'Kolon Ekle - Sonra', deleteColumn : 'Sütun Sil' } }, // Button Dialog. button : { title : 'Düğme Özellikleri', text : 'Metin (Değer)', type : 'Tip', typeBtn : 'Düğme', typeSbm : 'Gönder', typeRst : 'Sıfırla' }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : 'Onay Kutusu Özellikleri', radioTitle : 'Seçenek Düğmesi Özellikleri', value : 'Değer', selected : 'Seçili' }, // Form Dialog. form : { title : 'Form Özellikleri', menu : 'Form Özellikleri', action : 'İşlem', method : 'Yöntem', encoding : 'Kodlama' }, // Select Field Dialog. select : { title : 'Seçim Menüsü Özellikleri', selectInfo : 'Bilgi', opAvail : 'Mevcut Seçenekler', value : 'Değer', size : 'Boyut', lines : 'satır', chkMulti : 'Çoklu seçime izin ver', opText : 'Metin', opValue : 'Değer', btnAdd : 'Ekle', btnModify : 'Düzenle', btnUp : 'Yukarı', btnDown : 'Aşağı', btnSetValue : 'Seçili değer olarak ata', btnDelete : 'Sil' }, // Textarea Dialog. textarea : { title : 'Çok Satırlı Metin Özellikleri', cols : 'Sütunlar', rows : 'Satırlar' }, // Text Field Dialog. textfield : { title : 'Metin Girişi Özellikleri', name : 'Ad', value : 'Değer', charWidth : 'Karakter Genişliği', maxChars : 'En Fazla Karakter', type : 'Tür', typeText : 'Metin', typePass : 'Şifre' }, // Hidden Field Dialog. hidden : { title : 'Gizli Veri Özellikleri', name : 'Ad', value : 'Değer' }, // Image Dialog. image : { title : 'Resim Özellikleri', titleButton : 'Resimli Düğme Özellikleri', menu : 'Resim Özellikleri', infoTab : 'Resim Bilgisi', btnUpload : 'Sunucuya Yolla', upload : 'Karşıya Yükle', alt : 'Alternatif Yazı', lockRatio : 'Oranı Kilitle', resetSize : 'Boyutu Başa Döndür', border : 'Kenar', hSpace : 'Yatay Boşluk', vSpace : 'Dikey Boşluk', alertUrl : 'Lütfen resmin URL\'sini yazınız', linkTab : 'Köprü', button2Img : 'Seçili resim butonunu basit resime çevirmek istermisiniz?', img2Button : 'Seçili olan resimi, resimli butona çevirmek istermisiniz?', urlMissing : 'Resmin URL kaynağı eksiktir.', validateBorder : 'Çerçeve tam sayı olmalıdır.', validateHSpace : 'HSpace tam sayı olmalıdır.', validateVSpace : 'VSpace tam sayı olmalıdır.' }, // Flash Dialog flash : { properties : 'Flash Özellikleri', propertiesTab : 'Özellikler', title : 'Flash Özellikleri', chkPlay : 'Otomatik Oynat', chkLoop : 'Döngü', chkMenu : 'Flash Menüsünü Kullan', chkFull : 'Tam ekrana İzinver', scale : 'Boyutlandır', scaleAll : 'Hepsini Göster', scaleNoBorder : 'Kenar Yok', scaleFit : 'Tam Sığdır', access : 'Kod İzni', accessAlways : 'Herzaman', accessSameDomain: 'Aynı domain', accessNever : 'Asla', alignAbsBottom : 'Tam Altı', alignAbsMiddle : 'Tam Ortası', alignBaseline : 'Taban Çizgisi', alignTextTop : 'Yazı Tepeye', quality : 'Kalite', qualityBest : 'En iyi', qualityHigh : 'Yüksek', qualityAutoHigh : 'Otomatik Yükseklik', qualityMedium : 'Orta', qualityAutoLow : 'Otomatik Düşüklük', qualityLow : 'Düşük', windowModeWindow: 'Pencere', windowModeOpaque: 'Opak', windowModeTransparent : 'Şeffaf', windowMode : 'Pencere modu', flashvars : 'Flash Değerleri', bgcolor : 'Arka Renk', hSpace : 'Yatay Boşluk', vSpace : 'Dikey Boşluk', validateSrc : 'Lütfen köprü URL\'sini yazın', validateHSpace : 'HSpace sayı olmalıdır.', validateVSpace : 'VSpace sayı olmalıdır.' }, // Speller Pages Dialog spellCheck : { toolbar : 'Yazım Denetimi', title : 'Yazımı Denetle', notAvailable : 'Üzügünüz, bu servis şuanda hizmet dışıdır.', errorLoading : 'Uygulamada yüklerken hata oluştu: %s.', notInDic : 'Sözlükte Yok', changeTo : 'Şuna değiştir:', btnIgnore : 'Yoksay', btnIgnoreAll : 'Tümünü Yoksay', btnReplace : 'Değiştir', btnReplaceAll : 'Tümünü Değiştir', btnUndo : 'Geri Al', noSuggestions : '- Öneri Yok -', progress : 'Yazım denetimi işlemde...', noMispell : 'Yazım denetimi tamamlandı: Yanlış yazıma rastlanmadı', noChanges : 'Yazım denetimi tamamlandı: Hiçbir kelime değiştirilmedi', oneChange : 'Yazım denetimi tamamlandı: Bir kelime değiştirildi', manyChanges : 'Yazım denetimi tamamlandı: %1 kelime değiştirildi', ieSpellDownload : 'Yazım denetimi yüklenmemiş. Şimdi yüklemek ister misiniz?' }, smiley : { toolbar : 'İfade', title : 'İfade Ekle', options : 'İfade Seçenekleri' }, elementsPath : { eleLabel : 'Elementlerin yolu', eleTitle : '%1 elementi' }, numberedlist : 'Numaralı Liste', bulletedlist : 'Simgeli Liste', indent : 'Sekme Arttır', outdent : 'Sekme Azalt', justify : { left : 'Sola Dayalı', center : 'Ortalanmış', right : 'Sağa Dayalı', block : 'İki Kenara Yaslanmış' }, blockquote : 'Blok Oluştur', clipboard : { title : 'Yapıştır', cutError : 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kesme işlemine izin vermiyor. İşlem için (Ctrl/Cmd+X) tuşlarını kullanın.', copyError : 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kopyalama işlemine izin vermiyor. İşlem için (Ctrl/Cmd+C) tuşlarını kullanın.', pasteMsg : 'Lütfen aşağıdaki kutunun içine yapıştırın. (<STRONG>Ctrl/Cmd+V</STRONG>) ve <STRONG>Tamam</STRONG> butonunu tıklayın.', securityMsg : 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin direkt olarak panoya erişimine izin vermiyor. Bu pencere içine tekrar yapıştırmalısınız..', pasteArea : 'Yapıştırma Alanı' }, pastefromword : { confirmCleanup : 'Yapıştırmaya çalıştığınız metin Word\'den kopyalanmıştır. Yapıştırmadan önce silmek istermisiniz?', toolbar : 'Word\'den Yapıştır', title : 'Word\'den Yapıştır', error : 'Yapıştırmadaki veri bilgisi hata düzelene kadar silinmeyecektir' }, pasteText : { button : 'Düz Metin Olarak Yapıştır', title : 'Düz Metin Olarak Yapıştır' }, templates : { button : 'Şablonlar', title : 'İçerik Şablonları', options : 'Şablon Seçenekleri', insertOption : 'Mevcut içerik ile değiştir', selectPromptMsg : 'Düzenleyicide açmak için lütfen bir şablon seçin.<br>(hali hazırdaki içerik kaybolacaktır.):', emptyListMsg : '(Belirli bir şablon seçilmedi)' }, showBlocks : 'Blokları Göster', stylesCombo : { label : 'Biçem', panelTitle : 'Stilleri Düzenliyor', panelTitle1 : 'Blok Stilleri', panelTitle2 : 'Inline Stilleri', panelTitle3 : 'Nesne Stilleri' }, format : { label : 'Biçim', panelTitle : 'Biçim', tag_p : 'Normal', tag_pre : 'Biçimli', tag_address : 'Adres', tag_h1 : 'Başlık 1', tag_h2 : 'Başlık 2', tag_h3 : 'Başlık 3', tag_h4 : 'Başlık 4', tag_h5 : 'Başlık 5', tag_h6 : 'Başlık 6', tag_div : 'Paragraf (DIV)' }, div : { title : 'Div İçeriği Oluştur', toolbar : 'Div İçeriği Oluştur', cssClassInputLabel : 'Stilltipi Sınıfı', styleSelectLabel : 'Stil', IdInputLabel : 'Id', languageCodeInputLabel : ' Dil Kodu', inlineStyleInputLabel : 'Inline Stili', advisoryTitleInputLabel : 'Tavsiye Başlığı', langDirLabel : 'Dil Yönü', langDirLTRLabel : 'Soldan sağa (LTR)', langDirRTLLabel : 'Sağdan sola (RTL)', edit : 'Div Düzenle', remove : 'Div Kaldır' }, iframe : { title : 'IFrame Özellikleri', toolbar : 'IFrame', noUrl : 'Lütfen IFrame köprü (URL) bağlantısını yazın', scrolling : 'Kaydırma çubuklarını aktif et', border : 'Çerceve sınırlarını göster' }, font : { label : 'Yazı Türü', voiceLabel : 'Font', panelTitle : 'Yazı Türü' }, fontSize : { label : 'Boyut', voiceLabel : 'Font Size', panelTitle : 'Boyut' }, colorButton : { textColorTitle : 'Yazı Rengi', bgColorTitle : 'Arka Renk', panelTitle : 'Renkler', auto : 'Otomatik', more : 'Diğer renkler...' }, colors : { '000' : 'Siyah', '800000' : 'Kestane', '8B4513' : 'Koyu Kahverengi', '2F4F4F' : 'Koyu Kurşuni Gri', '008080' : 'Teal', '000080' : 'Mavi', '4B0082' : 'Çivit Mavisi', '696969' : 'Silik Gri', 'B22222' : 'Ateş Tuğlası', 'A52A2A' : 'Kahverengi', 'DAA520' : 'Altun Sırık', '006400' : 'Koyu Yeşil', '40E0D0' : 'Turkuaz', '0000CD' : 'Orta Mavi', '800080' : 'Pembe', '808080' : 'Gri', 'F00' : 'Kırmızı', 'FF8C00' : 'Koyu Portakal', 'FFD700' : 'Altın', '008000' : 'Yeşil', '0FF' : 'Ciyan', '00F' : 'Mavi', 'EE82EE' : 'Menekşe', 'A9A9A9' : 'Koyu Gri', 'FFA07A' : 'Açık Sarımsı', 'FFA500' : 'Portakal', 'FFFF00' : 'Sarı', '00FF00' : 'Açık Yeşil', 'AFEEEE' : 'Sönük Turkuaz', 'ADD8E6' : 'Açık Mavi', 'DDA0DD' : 'Mor', 'D3D3D3' : 'Açık Gri', 'FFF0F5' : 'Eflatun Pembe', 'FAEBD7' : 'Antik Beyaz', 'FFFFE0' : 'Açık Sarı', 'F0FFF0' : 'Balsarısı', 'F0FFFF' : 'Gök Mavisi', 'F0F8FF' : 'Reha Mavi', 'E6E6FA' : 'Eflatun', 'FFF' : 'Beyaz' }, scayt : { title : 'Girmiş olduğunuz kelime denetimi', opera_title : 'Opera tarafından desteklenmemektedir', enable : 'SCAYT\'ı etkinleştir', disable : 'SCAYT\'ı pasifleştir', about : 'SCAYT\'ı hakkında', toggle : 'SCAYT\'ı değiştir', options : 'Seçenekler', langs : 'Diller', moreSuggestions : 'Daha fazla öneri', ignore : 'Yoksay', ignoreAll : 'Tümünü Yoksay', addWord : 'Kelime Ekle', emptyDic : 'Sözlük adı boş olamaz.', optionsTab : 'Seçenekler', allCaps : 'Tüm büyük küçük kelimeleri yoksay', ignoreDomainNames : 'Domain adlarını yoksay', mixedCase : 'Karışık büyüklük ile Sözcükler yoksay', mixedWithDigits : 'Sayılarla Kelimeler yoksay', languagesTab : 'Diller', dictionariesTab : 'Sözlükler', dic_field_name : 'Sözlük adı', dic_create : 'Oluştur', dic_restore : 'Geri al', dic_delete : 'Sil', dic_rename : 'Yeniden adlandır', dic_info : 'Başlangıçta Kullanıcı Sözlüğü bir çerezde saklanır. Ancak, Çerezler boyutu sınırlıdır. Kullanıcı Sözlüğü, çerezin içinde saklanamayacağı bir noktada, bizim sunucularımızın içindeki sözlükte saklanabilir. Bizim sunucu üzerinde kişisel Sözlük saklamanız için, Sözlüğe bir ad belirtmelisiniz. Eğer zaten bir saklı Sözlük varsa, lütfen adını yazın ve Geri Yükle düğmesini tıklayın.', aboutTab : 'Hakkında' }, about : { title : 'CKEditor Hakkında', dlgTitle : 'CKEditor Hakkında', help : 'Yardım için $1 kontrol edin.', userGuide : 'CKEditor Kullanıcı Kılavuzu', moreInfo : 'Lisanslama hakkında daha fazla bilgi almak için lütfen sitemizi ziyaret edin:', copy : 'Copyright &copy; $1. Tüm hakları saklıdır.' }, maximize : 'Büyült', minimize : 'Küçült', fakeobjects : { anchor : 'Bağlantı', flash : 'Flash Animasyonu', iframe : 'IFrame', hiddenfield : 'Gizli Alan', unknown : 'Bilinmeyen Nesne' }, resize : 'Boyutlandırmak için sürükle', colordialog : { title : 'Renk seç', options : 'Renk Seçenekleri', highlight : 'İşaretle', selected : 'Seçilmiş', clear : 'Temizle' }, toolbarCollapse : 'Araç çubuklarını topla', toolbarExpand : 'Araç çubuklarını aç', toolbarGroups : { document : 'Belge', clipboard : 'Pano/Geri al', editing : 'Düzenleme', forms : 'Formlar', basicstyles : 'Temel Stiller', paragraph : 'Paragraf', links : 'Bağlantılar', insert : 'Ekle', styles : 'Stiller', colors : 'Renkler', tools : 'Araçlar' }, bidi : { ltr : 'Metin yönü soldan sağa', rtl : 'Metin yönü sağdan sola' }, docprops : { label : 'Belge Özellikleri', title : 'Belge Özellikleri', design : 'Dizayn', meta : 'Tanım Bilgisi (Meta)', chooseColor : 'Seçiniz', other : '<diğer>', docTitle : 'Sayfa Başlığı', charset : 'Karakter Kümesi Kodlaması', charsetOther : 'Diğer Karakter Kümesi Kodlaması', charsetASCII : 'ASCII', charsetCE : 'Orta Avrupa', charsetCT : 'Geleneksel Çince (Big5)', charsetCR : 'Kiril', charsetGR : 'Yunanca', charsetJP : 'Japonca', charsetKR : 'Korece', charsetTR : 'Türkçe', charsetUN : 'Evrensel Kod (UTF-8)', charsetWE : 'Batı Avrupa', docType : 'Belge Türü Başlığı', docTypeOther : 'Diğer Belge Türü Başlığı', xhtmlDec : 'XHTML Bildirimlerini Dahil Et', bgColor : 'Arka Plan Rengi', bgImage : 'Arka Plan Resim URLsi', bgFixed : 'Sabit Arka Plan', txtColor : 'Yazı Rengi', margin : 'Kenar Boşlukları', marginTop : 'Tepe', marginLeft : 'Sol', marginRight : 'Sağ', marginBottom : 'Alt', metaKeywords : 'Belge Dizinleme Anahtar Kelimeleri (virgülle ayrılmış)', metaDescription : 'Belge Tanımı', metaAuthor : 'Yazar', metaCopyright : 'Telif', previewHtml : '<p>Bu bir <strong>örnek metindir</strong>. <a href="javascript:void(0)">CKEditor</a> kullanıyorsunuz.</p>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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', editorHelp : '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', invalidValue : 'Ugyldig verdi.', 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 : 'Skriv inn et tall for en piksel-verdi eller et tall med en gyldig CSS-enhet (px, %, in, cm, mm, em, ex, pt, eller pc).', // 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 utklipping av tekst. Vennligst bruk snarveien (Ctrl/Cmd+X).', copyError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snarveien (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 &copy; $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>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object for the * 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', editorHelp : 'нажмите 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 : 'По низу', invalidValue : 'Invalid value.', // MISSING 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 &copy; $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>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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', // MISSING editorHelp : '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', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Height must be a number.', // MISSING invalidWidth : 'Width must be a number.', // MISSING invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING }, contextmenu : { options : 'Context Menu Options' // MISSING }, // Special char dialog. specialChar : { toolbar : '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 &copy; $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 } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Korean language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['ko'] = { /** * 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', // MISSING editorHelp : '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 : 'Insert Page Break for Printing', // MISSING 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 : 'Name', langDir : '쓰기 방향', langDirLtr : '왼쪽에서 오른쪽 (LTR)', langDirRtl : '오른쪽에서 왼쪽 (RTL)', langCode : '언어 코드', longDescr : 'URL 설명', cssClass : 'Stylesheet Classes', advisoryTitle : 'Advisory Title', cssStyle : 'Style', 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 : '아래', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Height must be a number.', // MISSING invalidWidth : 'Width must be a number.', // MISSING invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING }, contextmenu : { options : 'Context Menu Options' // MISSING }, // Special char dialog. specialChar : { toolbar : '특수문자 삽입', 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 : 'Dependent (Netscape)', popupLeft : '왼쪽 위치', popupTop : '윗쪽 위치', id : 'Id', // MISSING langDir : '쓰기 방향', langDirLTR : '왼쪽에서 오른쪽 (LTR)', langDirRTL : '오른쪽에서 왼쪽 (RTL)', acccessKey : '엑세스 키', name : 'Name', langCode : '쓰기 방향', tabIndex : '탭 순서', advisoryTitle : 'Advisory Title', advisoryContentType : 'Advisory Content Type', cssClasses : 'Stylesheet Classes', charset : 'Linked Resource Charset', styles : 'Style', 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 : '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)', 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 : '행(Row)', insertBefore : '앞에 행 삽입', insertAfter : '뒤에 행 삽입', deleteRow : '가로줄 삭제' }, column : { menu : '열(Column)', insertBefore : '앞에 열 삽입', insertAfter : '뒤에 열 삽입', deleteColumn : '세로줄 삭제' } }, // Button Dialog. button : { title : '버튼 속성', text : '버튼글자(값)', type : '버튼종류', typeBtn : 'Button', // MISSING typeSbm : 'Submit', // MISSING typeRst : 'Reset' // MISSING }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : '체크박스 속성', radioTitle : '라디오버튼 속성', value : '값', selected : '선택됨' }, // Form Dialog. form : { title : '폼 속성', menu : '폼 속성', action : '실행경로(Action)', method : '방법(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 Bottom)', alignAbsMiddle : '줄중간(Abs Middle)', alignBaseline : '기준선', alignTextTop : '글자상단', quality : 'Quality', // MISSING qualityBest : 'Best', // MISSING qualityHigh : 'High', // MISSING qualityAutoHigh : 'Auto High', // MISSING qualityMedium : 'Medium', // MISSING qualityAutoLow : 'Auto Low', // MISSING qualityLow : 'Low', // MISSING windowModeWindow: 'Window', // MISSING windowModeOpaque: 'Opaque', // MISSING windowModeTransparent : 'Transparent', // MISSING windowMode : 'Window mode', // MISSING flashvars : 'Variables for Flash', // MISSING bgcolor : '배경 색상', hSpace : '수평여백', vSpace : '수직여백', validateSrc : '링크 URL을 입력하십시요.', validateHSpace : 'HSpace must be a number.', // MISSING validateVSpace : 'VSpace must be a number.' // MISSING }, // Speller Pages Dialog spellCheck : { toolbar : '철자검사', title : 'Spell Check', // MISSING notAvailable : 'Sorry, but service is unavailable now.', // MISSING errorLoading : 'Error loading application service host: %s.', // MISSING notInDic : '사전에 없는 단어', changeTo : '변경할 단어', btnIgnore : '건너뜀', btnIgnoreAll : '모두 건너뜀', btnReplace : '변경', btnReplaceAll : '모두 변경', btnUndo : '취소', noSuggestions : '- 추천단어 없음 -', progress : '철자검사를 진행중입니다...', noMispell : '철자검사 완료: 잘못된 철자가 없습니다.', noChanges : '철자검사 완료: 변경된 단어가 없습니다.', oneChange : '철자검사 완료: 단어가 변경되었습니다.', manyChanges : '철자검사 완료: %1 단어가 변경되었습니다.', ieSpellDownload : '철자 검사기가 철치되지 않았습니다. 지금 다운로드하시겠습니까?' }, smiley : { toolbar : '아이콘', title : '아이콘 삽입', options : 'Smiley Options' // MISSING }, elementsPath : { eleLabel : 'Elements path', // MISSING eleTitle : '%1 element' // MISSING }, numberedlist : '순서있는 목록', bulletedlist : '순서없는 목록', indent : '들여쓰기', outdent : '내어쓰기', justify : { left : '왼쪽 정렬', center : '가운데 정렬', right : '오른쪽 정렬', block : '양쪽 맞춤' }, blockquote : 'Block Quote', // MISSING clipboard : { title : '붙여넣기', cutError : '브라우저의 보안설정때문에 잘라내기 기능을 실행할 수 없습니다. 키보드 명령을 사용하십시요. (Ctrl/Cmd+X).', copyError : '브라우저의 보안설정때문에 복사하기 기능을 실행할 수 없습니다. 키보드 명령을 사용하십시요. (Ctrl/Cmd+C).', pasteMsg : '키보드의 (<STRONG>Ctrl/Cmd+V</STRONG>) 를 이용해서 상자안에 붙여넣고 <STRONG>OK</STRONG> 를 누르세요.', securityMsg : '브러우저 보안 설정으로 인해, 클립보드의 자료를 직접 접근할 수 없습니다. 이 창에 다시 붙여넣기 하십시오.', 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 : 'MS Word 형식에서 붙여넣기', title : 'MS Word 형식에서 붙여넣기', 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 : '에디터에서 사용할 템플릿을 선택하십시요.<br>(지금까지 작성된 내용은 사라집니다.):', emptyListMsg : '(템플릿이 없습니다.)' }, showBlocks : 'Show Blocks', // MISSING stylesCombo : { label : '스타일', panelTitle : 'Formatting Styles', // MISSING panelTitle1 : 'Block Styles', // MISSING panelTitle2 : 'Inline Styles', // MISSING panelTitle3 : 'Object Styles' // MISSING }, format : { label : '포맷', panelTitle : '포맷', tag_p : '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 : '폰트', 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 &copy; $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', // MISSING charsetCT : 'Chinese Traditional (Big5)', // MISSING charsetCR : 'Cyrillic', // MISSING charsetGR : 'Greek', // MISSING charsetJP : 'Japanese', // MISSING charsetKR : 'Korean', // MISSING charsetTR : 'Turkish', // MISSING charsetUN : 'Unicode (UTF-8)', // MISSING charsetWE : 'Western European', // MISSING docType : '문서 헤드', docTypeOther : '다른 문서헤드', xhtmlDec : 'XHTML 문서정의 포함', bgColor : '배경색상', bgImage : '배경이미지 URL', bgFixed : '스크롤되지않는 배경', txtColor : '글자 색상', margin : '페이지 여백', marginTop : '위', marginLeft : '왼쪽', marginRight : '오른쪽', marginBottom : '아래', metaKeywords : '문서 키워드 (콤마로 구분)', metaDescription : '문서 설명', metaAuthor : '작성자', metaCopyright : '저작권', previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Serbian (Cyrillic) language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['sr'] = { /** * 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', // MISSING editorHelp : 'Press ALT 0 for help', // MISSING // ARIA descriptions. toolbars : 'Editor toolbars', // MISSING editor : 'Rich Text Editor', // MISSING // Toolbar buttons without dialogs. source : 'Kôд', newPage : 'Нова страница', save : 'Сачувај', preview : 'Изглед странице', cut : 'Исеци', copy : 'Копирај', paste : 'Залепи', print : 'Штампа', underline : 'Подвучено', bold : 'Подебљано', italic : 'Курзив', selectAll : 'Означи све', removeFormat : 'Уклони форматирање', strike : 'Прецртано', subscript : 'Индекс', superscript : 'Степен', horizontalrule : 'Унеси хоризонталну линију', pagebreak : 'Insert Page Break for Printing', // MISSING pagebreakAlt : 'Page Break', // MISSING unlink : 'Уклони линк', undo : 'Поништи акцију', redo : 'Понови акцију', // Common messages and labels. common : { browseServer : 'Претражи сервер', url : 'УРЛ', protocol : 'Протокол', upload : 'Пошаљи', uploadSubmit : 'Пошаљи на сервер', image : 'Слика', flash : 'Флеш елемент', form : 'Форма', checkbox : 'Поље за потврду', radio : 'Радио-дугме', textField : 'Текстуално поље', textarea : 'Зона текста', hiddenField : 'Скривено поље', button : 'Дугме', select : 'Изборно поље', imageButton : 'Дугме са сликом', notSet : '<није постављено>', id : 'Ид', name : 'Назив', langDir : 'Смер језика', langDirLtr : 'С лева на десно (LTR)', langDirRtl : 'С десна на лево (RTL)', langCode : 'Kôд језика', longDescr : 'Пун опис УРЛ', cssClass : 'Stylesheet класе', advisoryTitle : 'Advisory наслов', cssStyle : 'Стил', ok : 'OK', cancel : 'Oткажи', 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 : 'Доле', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Height must be a number.', // MISSING invalidWidth : 'Width must be a number.', // MISSING invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING }, contextmenu : { options : 'Context Menu Options' // MISSING }, // Special char dialog. specialChar : { toolbar : 'Унеси специјални карактер', title : 'Одаберите специјални карактер', options : 'Special Character Options' // MISSING }, // Link dialog. link : { toolbar : 'Унеси/измени линк', other : '<other>', // MISSING menu : 'Промени линк', title : 'Линк', info : 'Линк инфо', target : 'Meтa', upload : 'Пошаљи', advanced : 'Напредни тагови', type : 'Врста линка', toUrl : 'URL', // MISSING toAnchor : 'Сидро на овој страници', toEmail : 'Eлектронска пошта', targetFrame : '<оквир>', targetPopup : '<искачући прозор>', targetFrameName : 'Назив одредишног фрејма', targetPopupName : 'Назив искачућег прозора', popupFeatures : 'Могућности искачућег прозора', popupResizable : 'Resizable', // MISSING popupStatusBar : 'Статусна линија', popupLocationBar: 'Локација', popupToolbar : 'Toolbar', popupMenuBar : 'Контекстни мени', popupFullScreen : 'Приказ преко целог екрана (ИE)', popupScrollBars : 'Скрол бар', popupDependent : 'Зависно (Netscape)', popupLeft : 'Од леве ивице екрана (пиксела)', popupTop : 'Од врха екрана (пиксела)', id : 'Id', // MISSING langDir : 'Смер језика', langDirLTR : 'С лева на десно (LTR)', langDirRTL : 'С десна на лево (RTL)', acccessKey : 'Приступни тастер', name : 'Назив', langCode : 'Смер језика', tabIndex : 'Таб индекс', advisoryTitle : 'Advisory наслов', advisoryContentType : 'Advisory врста садржаја', cssClasses : 'Stylesheet класе', charset : 'Linked Resource Charset', styles : 'Стил', rel : 'Relationship', // MISSING selectAnchor : 'Одабери сидро', anchorName : 'По називу сидра', anchorId : 'Пo Ид-jу елемента', emailAddress : 'Адреса електронске поште', emailSubject : 'Наслов', emailBody : 'Садржај поруке', noAnchors : '(Нема доступних сидра)', noUrl : 'Унесите УРЛ линка', noEmail : 'Откуцајте адресу електронске поште' }, // Anchor dialog anchor : { toolbar : 'Унеси/измени сидро', menu : 'Особине сидра', title : 'Особине сидра', name : 'Име сидра', errorName : 'Молимо Вас да унесете име сидра', remove : 'Remove Anchor' // MISSING }, // List style dialog list: { numberedTitle : 'Numbered List Properties', // MISSING bulletedTitle : 'Bulleted List Properties', // MISSING type : 'Type', // MISSING start : 'Start', // MISSING validateStartNumber :'List start number must be a whole number.', // MISSING circle : 'Circle', // MISSING disc : 'Disc', // MISSING square : 'Square', // MISSING none : 'None', // MISSING notset : '<not set>', // MISSING armenian : 'Armenian numbering', // MISSING georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING decimal : 'Decimal (1, 2, 3, etc.)', // MISSING decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING }, // Find And Replace Dialog findAndReplace : { title : 'Find and Replace', // MISSING find : 'Претрага', replace : 'Замена', findWhat : 'Пронађи:', replaceWith : 'Замени са:', notFoundMsg : 'Тражени текст није пронађен.', findOptions : 'Find Options', // MISSING matchCase : 'Разликуј велика и мала слова', matchWord : 'Упореди целе речи', matchCyclic : 'Match cyclic', // MISSING replaceAll : 'Замени све', replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING }, // Table Dialog table : { toolbar : 'Табела', title : 'Особине табеле', menu : 'Особине табеле', deleteTable : 'Delete Table', // MISSING rows : 'Редова', columns : 'Kолона', border : 'Величина оквира', widthPx : 'пиксела', widthPc : 'процената', widthUnit : 'width unit', // MISSING cellSpace : 'Ћелијски простор', cellPad : 'Размак ћелија', caption : 'Наслов табеле', 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 : 'Обриши ћелије', merge : 'Спој ћелије', mergeRight : 'Merge Right', // MISSING mergeDown : 'Merge Down', // MISSING splitHorizontal : 'Split Cell Horizontally', // MISSING splitVertical : 'Split Cell Vertically', // MISSING title : 'Cell Properties', // MISSING cellType : 'Cell Type', // MISSING rowSpan : 'Rows Span', // MISSING colSpan : 'Columns Span', // MISSING wordWrap : 'Word Wrap', // MISSING hAlign : 'Horizontal Alignment', // MISSING vAlign : 'Vertical Alignment', // MISSING alignBaseline : 'Baseline', // MISSING bgColor : 'Background Color', // MISSING borderColor : 'Border Color', // MISSING data : 'Data', // MISSING header : 'Header', // MISSING yes : 'Yes', // MISSING no : 'No', // MISSING invalidWidth : 'Cell width must be a number.', // MISSING invalidHeight : 'Cell height must be a number.', // MISSING invalidRowSpan : 'Rows span must be a whole number.', // MISSING invalidColSpan : 'Columns span must be a whole number.', // MISSING chooseColor : 'Choose' // MISSING }, row : { menu : 'Row', // MISSING insertBefore : 'Insert Row Before', // MISSING insertAfter : 'Insert Row After', // MISSING deleteRow : 'Обриши редове' }, column : { menu : 'Column', // MISSING insertBefore : 'Insert Column Before', // MISSING insertAfter : 'Insert Column After', // MISSING deleteColumn : 'Обриши колоне' } }, // Button Dialog. button : { title : 'Особине дугмета', text : 'Текст (вредност)', type : 'Tип', typeBtn : 'Button', // MISSING typeSbm : 'Submit', // MISSING typeRst : 'Reset' // MISSING }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : 'Особине поља за потврду', radioTitle : 'Особине радио-дугмета', value : 'Вредност', selected : 'Означено' }, // Form Dialog. form : { title : 'Особине форме', menu : 'Особине форме', action : 'Aкција', method : 'Mетода', 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 : 'HSpace', vSpace : 'VSpace', alertUrl : 'Унесите УРЛ слике', 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 : 'HSpace', vSpace : 'VSpace', validateSrc : 'Унесите УРЛ линка', validateHSpace : 'HSpace must be a number.', // MISSING validateVSpace : 'VSpace must be a number.' // MISSING }, // Speller Pages Dialog spellCheck : { toolbar : 'Провери спеловање', title : 'Spell Check', // MISSING notAvailable : 'Sorry, but service is unavailable now.', // MISSING errorLoading : 'Error loading application service host: %s.', // MISSING notInDic : 'Није у речнику', changeTo : 'Измени', btnIgnore : 'Игнориши', btnIgnoreAll : 'Игнориши све', btnReplace : 'Замени', btnReplaceAll : 'Замени све', btnUndo : 'Врати акцију', noSuggestions : '- Без сугестија -', progress : 'Провера спеловања у току...', noMispell : 'Провера спеловања завршена: грешке нису пронађене', noChanges : 'Провера спеловања завршена: Није измењена ниједна реч', oneChange : 'Провера спеловања завршена: Измењена је једна реч', manyChanges : 'Провера спеловања завршена: %1 реч(и) је измењено', ieSpellDownload : 'Провера спеловања није инсталирана. Да ли желите да је скинете са Интернета?' }, smiley : { toolbar : 'Смајли', title : 'Унеси смајлија', options : 'Smiley Options' // MISSING }, elementsPath : { eleLabel : 'Elements path', // MISSING eleTitle : '%1 element' // MISSING }, numberedlist : 'Набројиву листу', bulletedlist : 'Ненабројива листа', indent : 'Увећај леву маргину', outdent : 'Смањи леву маргину', justify : { left : 'Лево равнање', center : 'Центриран текст', right : 'Десно равнање', block : 'Обострано равнање' }, blockquote : 'Block Quote', // MISSING clipboard : { title : 'Залепи', cutError : 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+X).', copyError : 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+C).', pasteMsg : 'Молимо Вас да залепите унутар доње површине користећи тастатурну пречицу (<STRONG>Ctrl/Cmd+V</STRONG>) и да притиснете <STRONG>OK</STRONG>.', securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING pasteArea : 'Paste Area' // MISSING }, pastefromword : { confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING toolbar : 'Залепи из Worda', title : 'Залепи из Worda', error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING }, pasteText : { button : 'Залепи као чист текст', title : 'Залепи као чист текст' }, templates : { button : 'Обрасци', title : 'Обрасци за садржај', options : 'Template Options', // MISSING insertOption : 'Replace actual contents', // MISSING selectPromptMsg : 'Молимо Вас да одаберете образац који ће бити примењен на страницу (тренутни садржај ће бити обрисан):', emptyListMsg : '(Нема дефинисаних образаца)' }, showBlocks : 'Show Blocks', // MISSING stylesCombo : { label : 'Стил', panelTitle : 'Formatting Styles', // MISSING panelTitle1 : 'Block Styles', // MISSING panelTitle2 : 'Inline Styles', // MISSING panelTitle3 : 'Object Styles' // MISSING }, format : { label : 'Формат', panelTitle : 'Формат', tag_p : 'Normal', tag_pre : 'Formatirano', tag_address : 'Adresa', 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 : 'Фонт', 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 &copy; $1. All rights reserved.' // MISSING }, maximize : 'Maximize', // MISSING minimize : 'Minimize', // MISSING fakeobjects : { anchor : 'Anchor', // MISSING flash : 'Flash Animation', // MISSING iframe : 'IFrame', // MISSING hiddenfield : 'Hidden Field', // MISSING unknown : 'Unknown Object' // MISSING }, resize : 'Drag to resize', // MISSING colordialog : { title : 'Select color', // MISSING options : 'Color Options', // MISSING highlight : 'Highlight', // MISSING selected : 'Selected Color', // MISSING clear : 'Clear' // MISSING }, toolbarCollapse : 'Collapse Toolbar', // MISSING toolbarExpand : 'Expand Toolbar', // MISSING toolbarGroups : { document : 'Document', // MISSING clipboard : 'Clipboard/Undo', // MISSING editing : 'Editing', // MISSING forms : 'Forms', // MISSING basicstyles : 'Basic Styles', // MISSING paragraph : 'Paragraph', // MISSING links : 'Links', // MISSING insert : 'Insert', // MISSING styles : 'Styles', // MISSING colors : 'Colors', // MISSING tools : 'Tools' // MISSING }, bidi : { ltr : 'Text direction from left to right', // MISSING rtl : 'Text direction from right to left' // MISSING }, docprops : { label : 'Особине документа', title : 'Особине документа', design : 'Design', // MISSING meta : 'Метаподаци', chooseColor : 'Choose', // MISSING other : '<other>', docTitle : 'Наслов странице', charset : 'Кодирање скупа карактера', charsetOther : 'Остала кодирања скупа карактера', charsetASCII : 'ASCII', // MISSING charsetCE : 'Central European', // MISSING charsetCT : 'Chinese Traditional (Big5)', // MISSING charsetCR : 'Cyrillic', // MISSING charsetGR : 'Greek', // MISSING charsetJP : 'Japanese', // MISSING charsetKR : 'Korean', // MISSING charsetTR : 'Turkish', // MISSING charsetUN : 'Unicode (UTF-8)', // MISSING charsetWE : 'Western European', // MISSING docType : 'Заглавље типа документа', docTypeOther : 'Остала заглавља типа документа', xhtmlDec : 'Улључи XHTML декларације', bgColor : 'Боја позадине', bgImage : 'УРЛ позадинске слике', 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 } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Arabic language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['ar'] = { /** * 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 : 'Rich text editor, %1', // MISSING editorHelp : '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 : 'الرابط', protocol : 'البروتوكول', upload : 'رفع', uploadSubmit : 'أرسل', image : 'صورة', flash : 'فلاش', form : 'نموذج', checkbox : 'خانة إختيار', radio : 'زر اختيار', textField : 'مربع نص', textarea : 'مساحة نصية', hiddenField : 'إدراج حقل خفي', button : 'زر ضغط', select : 'اختار', imageButton : 'زر صورة', notSet : '<بدون تحديد>', id : 'الرقم', name : 'الاسم', langDir : 'إتجاه النص', langDirLtr : 'اليسار لليمين (LTR)', langDirRtl : 'اليمين لليسار (RTL)', langCode : 'رمز اللغة', longDescr : 'الوصف التفصيلى', cssClass : 'فئات التنسيق', advisoryTitle : 'عنوان التقرير', cssStyle : 'نمط', ok : 'موافق', cancel : 'إلغاء الأمر', close : 'أغلق', preview : 'استعراض', generalTab : 'عام', advancedTab : 'متقدم', validateNumberFailed : 'لايوجد نتيجة', confirmNewPage : 'ستفقد أي متغييرات اذا لم تقم بحفظها اولا. هل أنت متأكد أنك تريد صفحة جديدة؟', confirmCancel : 'بعض الخيارات قد تغيرت. هل أنت متأكد من إغلاق مربع النص؟', options : 'خيارات', 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 : 'أسفل', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'الارتفاع يجب أن يكون عدداً.', invalidWidth : 'العرض يجب أن يكون عدداً.', invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, غير متاح</span>' }, contextmenu : { options : '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 : 'قابلة التشكيل', popupStatusBar : 'شريط الحالة', popupLocationBar: 'شريط العنوان', popupToolbar : 'شريط الأدوات', popupMenuBar : 'القوائم الرئيسية', popupFullScreen : 'ملئ الشاشة (IE)', popupScrollBars : 'أشرطة التمرير', popupDependent : 'تابع (Netscape)', popupLeft : 'التمركز لليسار', popupTop : 'التمركز للأعلى', id : 'هوية', langDir : 'إتجاه النص', langDirLTR : 'اليسار لليمين (LTR)', langDirRTL : 'اليمين لليسار (RTL)', acccessKey : 'مفاتيح الإختصار', name : 'الاسم', langCode : 'كود النص', tabIndex : 'الترتيب', advisoryTitle : 'عنوان التقرير', advisoryContentType : 'نوع التقرير', cssClasses : 'فئات التنسيق', charset : 'ترميز المادة المطلوبة', styles : 'نمط', rel : 'Relationship', // MISSING selectAnchor : 'اختر علامة مرجعية', anchorName : 'حسب الاسم', anchorId : 'حسب رقم العنصر', emailAddress : 'عنوان البريد إلكتروني', emailSubject : 'موضوع الرسالة', emailBody : 'محتوى الرسالة', noAnchors : '(لا توجد علامات مرجعية في هذا المستند)', noUrl : 'من فضلك أدخل عنوان الموقع الذي يشير إليه الرابط', 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 : 'مطابقة دورية', replaceAll : 'إستبدال الكل', replaceSuccessMsg : 'تم استبدال 1% من الحالات ' }, // Table Dialog table : { toolbar : 'جدول', title : 'خصائص الجدول', menu : 'خصائص الجدول', deleteTable : 'حذف الجدول', rows : 'صفوف', columns : 'أعمدة', border : 'الحدود', widthPx : 'بكسل', widthPc : 'بالمئة', widthUnit : 'width unit', // MISSING 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 : 'Border must be a whole number.', // MISSING validateHSpace : 'HSpace must be a whole number.', // MISSING validateVSpace : 'VSpace must be a whole number.' // MISSING }, // Flash Dialog flash : { properties : 'خصائص الفلاش', propertiesTab : 'الخصائص', title : 'خصائص فيلم الفلاش', chkPlay : 'تشغيل تلقائي', chkLoop : 'تكرار', chkMenu : 'تمكين قائمة فيلم الفلاش', 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 : 'فضلاً أدخل عنوان الموقع الذي يشير إليه الرابط', validateHSpace : 'HSpace يجب أن يكون عدداً.', validateVSpace : 'VSpace يجب أن يكون عدداً.' }, // Speller Pages Dialog spellCheck : { toolbar : 'تدقيق إملائي', title : 'التدقيق الإملائي', notAvailable : 'عفواً، ولكن هذه الخدمة غير متاحة الان', errorLoading : 'خطأ في تحميل تطبيق خدمة الاستضافة: %s.', notInDic : 'ليست في القاموس', changeTo : 'التغيير إلى', btnIgnore : 'تجاهل', btnIgnoreAll : 'تجاهل الكل', btnReplace : 'تغيير', btnReplaceAll : 'تغيير الكل', btnUndo : 'تراجع', noSuggestions : '- لا توجد إقتراحات -', progress : 'جاري التدقيق الاملائى', noMispell : 'تم التدقيق الإملائي: لم يتم العثور على أي أخطاء إملائية', noChanges : 'تم التدقيق الإملائي: لم يتم تغيير أي كلمة', oneChange : 'تم التدقيق الإملائي: تم تغيير كلمة واحدة فقط', manyChanges : 'تم إكمال التدقيق الإملائي: تم تغيير %1 من كلمات', ieSpellDownload : 'المدقق الإملائي (الإنجليزي) غير مثبّت. هل تود تحميله الآن؟' }, smiley : { toolbar : 'ابتسامات', title : 'إدراج ابتسامات', options : 'Smiley Options' // MISSING }, elementsPath : { eleLabel : 'Elements path', // MISSING 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 : 'Paste Area' // MISSING }, pastefromword : { confirmCleanup : 'يبدو أن النص المراد لصقه منسوخ من برنامج وورد. هل تود تنظيفه قبل الشروع في عملية اللصق؟', 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 : 'أنماط الفقرة', 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 : '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 : 'حجم الخط', panelTitle : 'حجم الخط' }, fontSize : { label : 'حجم الخط', voiceLabel : 'حجم الخط', panelTitle : 'حجم الخط' }, colorButton : { textColorTitle : 'لون النص', bgColorTitle : 'لون الخلفية', panelTitle : 'Colors', // MISSING 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 : 'Not supported by Opera', // MISSING enable : 'تفعيل SCAYT', disable : 'تعطيل SCAYT', about : 'عن SCAYT', toggle : 'تثبيت SCAYT', options : 'خيارات', langs : 'لغات', moreSuggestions : 'المزيد من المقترحات', ignore : 'تجاهل', ignoreAll : 'تجاهل الكل', addWord : 'إضافة كلمة', emptyDic : 'اسم القاموس يجب ألا يكون فارغاً.', optionsTab : 'خيارات', 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 : 'لغات', dictionariesTab : 'قواميس', 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 : { title : 'عن CKEditor', dlgTitle : 'عن CKEditor', help : 'Check $1 for help.', // MISSING userGuide : 'CKEditor User\'s Guide', // MISSING moreInfo : 'للحصول على معلومات الترخيص ، يرجى زيارة موقعنا على شبكة الانترنت:', copy : 'حقوق النشر &copy; $1. جميع الحقوق محفوظة.' }, maximize : 'تكبير', minimize : 'تصغير', fakeobjects : { anchor : 'إرساء', flash : 'رسم متحرك بالفلاش', iframe : 'IFrame', // MISSING hiddenfield : 'Hidden Field', // MISSING unknown : 'كائن غير معروف' }, resize : 'اسحب لتغيير الحجم', colordialog : { title : 'اختر لون', options : 'Color Options', // MISSING highlight : 'إلقاء الضوء', selected : 'مُختار', clear : 'مسح' }, 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 : 'اختر', other : '<أخرى>', docTitle : 'عنوان الصفحة', charset : 'ترميز الحروف', charsetOther : 'ترميز آخر', charsetASCII : 'ASCII', // MISSING charsetCE : 'أوروبا الوسطى', charsetCT : 'الصينية التقليدية (Big5)', charsetCR : 'السيريلية', charsetGR : 'اليونانية', charsetJP : 'اليابانية', charsetKR : 'الكورية', charsetTR : 'التركية', charsetUN : 'Unicode (UTF-8)', // MISSING 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>' // MISSING } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ var CKEDITOR_LANGS = (function() { var langs = { af : 'Afrikaans', ar : 'Arabic', bg : 'Bulgarian', bn : 'Bengali/Bangla', bs : 'Bosnian', ca : 'Catalan', cs : 'Czech', cy : 'Welsh', da : 'Danish', de : 'German', el : 'Greek', en : 'English', 'en-au' : 'English (Australia)', 'en-ca' : 'English (Canadian)', 'en-gb' : 'English (United Kingdom)', eo : 'Esperanto', es : 'Spanish', et : 'Estonian', eu : 'Basque', fa : 'Persian', fi : 'Finnish', fo : 'Faroese', fr : 'French', 'fr-ca' : 'French (Canada)', gl : 'Galician', gu : 'Gujarati', he : 'Hebrew', hi : 'Hindi', hr : 'Croatian', hu : 'Hungarian', is : 'Icelandic', it : 'Italian', ja : 'Japanese', ka : 'Georgian', km : 'Khmer', ko : 'Korean', ku : 'Kurdish', lt : 'Lithuanian', lv : 'Latvian', mn : 'Mongolian', ms : 'Malay', nb : 'Norwegian Bokmal', nl : 'Dutch', no : 'Norwegian', pl : 'Polish', pt : 'Portuguese (Portugal)', 'pt-br' : 'Portuguese (Brazil)', ro : 'Romanian', ru : 'Russian', sk : 'Slovak', sl : 'Slovenian', sr : 'Serbian (Cyrillic)', 'sr-latn' : 'Serbian (Latin)', sv : 'Swedish', th : 'Thai', tr : 'Turkish', ug : 'Uighur', uk : 'Ukrainian', vi : 'Vietnamese', zh : 'Chinese Traditional', 'zh-cn' : 'Chinese Simplified' }; var langsArray = []; for ( var code in langs ) { langsArray.push( { code : code, name : langs[ code ] } ); } langsArray.sort( function( a, b ) { return ( a.name < b.name ) ? -1 : 1; }); return langsArray; })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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', // MISSING editorHelp : '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', invalidValue : 'Invalid value.', // MISSING 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 &copy; $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 } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * French language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['fr'] = { /** * 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 : 'Éditeur de Texte Enrichi, %1', editorHelp : 'Appuyez sur ALT-0 pour l\'aide', // ARIA descriptions. toolbars : 'Barre d\'outils de l\'éditeur', editor : 'Éditeur de Texte Enrichi', // Toolbar buttons without dialogs. source : 'Source', newPage : 'Nouvelle page', save : 'Enregistrer', preview : 'Aperçu', cut : 'Couper', copy : 'Copier', paste : 'Coller', print : 'Imprimer', underline : 'Souligné', bold : 'Gras', italic : 'Italique', selectAll : 'Tout sélectionner', removeFormat : 'Supprimer la mise en forme', strike : 'Barré', subscript : 'Indice', superscript : 'Exposant', horizontalrule : 'Ligne horizontale', pagebreak : 'Saut de page', pagebreakAlt : 'Saut de page', unlink : 'Supprimer le lien', undo : 'Annuler', redo : 'Rétablir', // Common messages and labels. common : { browseServer : 'Explorer le serveur', url : 'URL', protocol : 'Protocole', upload : 'Envoyer', uploadSubmit : 'Envoyer sur le serveur', image : 'Image', flash : 'Flash', form : 'Formulaire', checkbox : 'Case à cocher', radio : 'Bouton Radio', textField : 'Champ texte', textarea : 'Zone de texte', hiddenField : 'Champ caché', button : 'Bouton', select : 'Liste déroulante', imageButton : 'Bouton image', notSet : '<non défini>', id : 'Id', name : 'Nom', langDir : 'Sens d\'écriture', langDirLtr : 'Gauche à droite (LTR)', langDirRtl : 'Droite à gauche (RTL)', langCode : 'Code de langue', longDescr : 'URL de description longue (longdesc => malvoyant)', cssClass : 'Classe CSS', advisoryTitle : 'Description (title)', cssStyle : 'Style', ok : 'OK', cancel : 'Annuler', close : 'Fermer', preview : 'Aperçu', generalTab : 'Général', advancedTab : 'Avancé', validateNumberFailed : 'Cette valeur n\'est pas un nombre.', confirmNewPage : 'Les changements non sauvegardés seront perdus. Êtes-vous sûr de vouloir charger une nouvelle page?', confirmCancel : 'Certaines options ont été modifiées. Êtes-vous sûr de vouloir fermer?', options : 'Options', target : 'Cible (Target)', targetNew : 'Nouvelle fenêtre (_blank)', targetTop : 'Fenêtre supérieure (_top)', targetSelf : 'Même fenêtre (_self)', targetParent : 'Fenêtre parent (_parent)', langDirLTR : 'Gauche à Droite (LTR)', langDirRTL : 'Droite à Gauche (RTL)', styles : 'Style', cssClasses : 'Classes de style', width : 'Largeur', height : 'Hauteur', align : 'Alignement', alignLeft : 'Gauche', alignRight : 'Droite', alignCenter : 'Centré', alignTop : 'Haut', alignMiddle : 'Milieu', alignBottom : 'Bas', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'La hauteur doit être un nombre.', invalidWidth : 'La largeur doit être un nombre.', invalidCssLength : 'La valeur spécifiée pour le champ "%1" doit être un nombre positif avec ou sans unité de mesure CSS valide (px, %, in, cm, mm, em, ex, pt, or pc).', invalidHtmlLength : 'La valeur spécifiée pour le champ "%1" doit être un nombre positif avec ou sans unité de mesure HTML valide (px or %).', invalidInlineStyle : 'La valeur spécifiée pour le style inline doit être composée d\'un ou plusieurs couples de valeur au format "nom : valeur", separés par des points-virgules.', cssLengthTooltip : 'Entrer un nombre pour une valeur en pixels ou un nombre avec une unité de mesure CSS valide (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">, Indisponible</span>' }, contextmenu : { options : 'Options du menu contextuel' }, // Special char dialog. specialChar : { toolbar : 'Insérer un caractère spécial', title : 'Sélectionnez un caractère', options : 'Options des caractères spéciaux' }, // Link dialog. link : { toolbar : 'Lien', other : '<autre>', menu : 'Editer le lien', title : 'Lien', info : 'Infos sur le lien', target : 'Cible', upload : 'Envoyer', advanced : 'Avancé', type : 'Type de lien', toUrl : 'URL', toAnchor : 'Transformer le lien en ancre dans le texte', toEmail : 'E-mail', targetFrame : '<cadre>', targetPopup : '<fenêtre popup>', targetFrameName : 'Nom du Cadre destination', targetPopupName : 'Nom de la fenêtre popup', popupFeatures : 'Options de la fenêtre popup', popupResizable : 'Redimensionnable', popupStatusBar : 'Barre de status', popupLocationBar: 'Barre d\'adresse', popupToolbar : 'Barre d\'outils', popupMenuBar : 'Barre de menu', popupFullScreen : 'Plein écran (IE)', popupScrollBars : 'Barres de défilement', popupDependent : 'Dépendante (Netscape)', popupLeft : 'Position gauche', popupTop : 'Position haute', id : 'Id', langDir : 'Sens d\'écriture', langDirLTR : 'Gauche à droite', langDirRTL : 'Droite à gauche', acccessKey : 'Touche d\'accessibilité', name : 'Nom', langCode : 'Code de langue', tabIndex : 'Index de tabulation', advisoryTitle : 'Description (title)', advisoryContentType : 'Type de contenu (ex: text/html)', cssClasses : 'Classe CSS', charset : 'Charset de la cible', styles : 'Style', rel : 'Relation', selectAnchor : 'Sélectionner l\'ancre', anchorName : 'Par nom d\'ancre', anchorId : 'Par ID d\'élément', emailAddress : 'Adresse E-Mail', emailSubject : 'Sujet du message', emailBody : 'Corps du message', noAnchors : '(Aucune ancre disponible dans ce document)', noUrl : 'Veuillez entrer l\'adresse du lien', noEmail : 'Veuillez entrer l\'adresse e-mail' }, // Anchor dialog anchor : { toolbar : 'Ancre', menu : 'Editer l\'ancre', title : 'Propriétés de l\'ancre', name : 'Nom de l\'ancre', errorName : 'Veuillez entrer le nom de l\'ancre.', remove : 'Supprimer l\'ancre' }, // List style dialog list: { numberedTitle : 'Propriétés de la liste numérotée', bulletedTitle : 'Propriétés de la liste à puces', type : 'Type', start : 'Début', validateStartNumber :'Le premier élément de la liste doit être un nombre entier.', circle : 'Cercle', disc : 'Disque', square : 'Carré', none : 'Aucun', notset : '<Non défini>', armenian : 'Numération arménienne', georgian : 'Numération géorgienne (an, ban, gan, etc.)', lowerRoman : 'Nombres romains minuscules (i, ii, iii, iv, v, etc.)', upperRoman : 'Nombres romains majuscules (I, II, III, IV, V, etc.)', lowerAlpha : 'Alphabétique minuscules (a, b, c, d, e, etc.)', upperAlpha : 'Alphabétique majuscules (A, B, C, D, E, etc.)', lowerGreek : 'Grec minuscule (alpha, beta, gamma, etc.)', decimal : 'Décimal (1, 2, 3, etc.)', decimalLeadingZero : 'Décimal précédé par un 0 (01, 02, 03, etc.)' }, // Find And Replace Dialog findAndReplace : { title : 'Trouver et remplacer', find : 'Trouver', replace : 'Remplacer', findWhat : 'Expression à trouver: ', replaceWith : 'Remplacer par: ', notFoundMsg : 'Le texte spécifié ne peut être trouvé.', findOptions : 'Options de recherche', matchCase : 'Respecter la casse', matchWord : 'Mot entier uniquement', matchCyclic : 'Boucler', replaceAll : 'Remplacer tout', replaceSuccessMsg : '%1 occurrence(s) replacée(s).' }, // 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 : '% pourcents', widthUnit : 'unité de largeur', cellSpace : 'Espacement des cellules', cellPad : 'Marge interne des cellules', caption : 'Titre du tableau', summary : 'Résumé (description)', headers : 'En-Têtes', headersNone : 'Aucunes', headersColumn : 'Première colonne', headersRow : 'Première ligne', headersBoth : 'Les deux', invalidRows : 'Le nombre de lignes doit être supérieur à 0.', invalidCols : 'Le nombre de colonnes doit être supérieur à 0.', invalidBorder : 'La taille de la bordure doit être un nombre.', invalidWidth : 'La largeur du tableau doit être un nombre.', invalidHeight : 'La hauteur du tableau doit être un nombre.', invalidCellSpacing : 'L\'espacement des cellules doit être un nombre positif.', invalidCellPadding : 'La marge intérieure des cellules doit être un nombre positif.', cell : { menu : 'Cellule', insertBefore : 'Insérer une cellule avant', insertAfter : 'Insérer une cellule après', deleteCell : 'Supprimer les cellules', merge : 'Fusionner les cellules', mergeRight : 'Fusionner à droite', mergeDown : 'Fusionner en bas', splitHorizontal : 'Fractionner horizontalement', splitVertical : 'Fractionner verticalement', title : 'Propriétés de la cellule', cellType : 'Type de cellule', rowSpan : 'Fusion de lignes', colSpan : 'Fusion de colonnes', wordWrap : 'Césure', hAlign : 'Alignement Horizontal', vAlign : 'Alignement Vertical', alignBaseline : 'Bas du texte', bgColor : 'Couleur d\'arrière-plan', borderColor : 'Couleur de Bordure', data : 'Données', header : 'Entête', yes : 'Oui', no : 'Non', invalidWidth : 'La Largeur de Cellule doit être un nombre.', invalidHeight : 'La Hauteur de Cellule doit être un nombre.', invalidRowSpan : 'La fusion de lignes doit être un nombre entier.', invalidColSpan : 'La fusion de colonnes doit être un nombre entier.', chooseColor : 'Choisissez' }, row : { menu : 'Ligne', insertBefore : 'Insérer une ligne avant', insertAfter : 'Insérer une ligne après', deleteRow : 'Supprimer les lignes' }, column : { menu : 'Colonnes', insertBefore : 'Insérer une colonne avant', insertAfter : 'Insérer une colonne après', deleteColumn : 'Supprimer les colonnes' } }, // Button Dialog. button : { title : 'Propriétés du bouton', text : 'Texte (Value)', type : 'Type', typeBtn : 'Bouton', typeSbm : 'Validation (submit)', typeRst : 'Remise à zéro' }, // 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 : 'Encodage' }, // Select Field Dialog. select : { title : 'Propriétés du menu déroulant', selectInfo : 'Informations sur le menu déroulant', opAvail : 'Options disponibles', value : 'Valeur', size : 'Taille', lines : 'Lignes', chkMulti : 'Permettre les sélections multiples', opText : 'Texte', opValue : 'Valeur', btnAdd : 'Ajouter', btnModify : 'Modifier', btnUp : 'Haut', btnDown : 'Bas', btnSetValue : 'Définir comme 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 : 'Taille des 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 : 'Envoyer', alt : 'Texte de remplacement', lockRatio : 'Conserver les proportions', resetSize : 'Taille d\'origine', border : 'Bordure', hSpace : 'Espacement horizontal', vSpace : 'Espacement vertical', alertUrl : 'Veuillez entrer l\'adresse de l\'image', linkTab : 'Lien', button2Img : 'Voulez-vous transformer le bouton image sélectionné en simple image?', img2Button : 'Voulez-vous transformer l\'image en bouton image?', urlMissing : 'L\'adresse source de l\'image est manquante.', validateBorder : 'Bordure doit être un entier.', validateHSpace : 'HSpace doit être un entier.', validateVSpace : 'VSpace doit être un entier.' }, // Flash Dialog flash : { properties : 'Propriétés du Flash', propertiesTab : 'Propriétés', title : 'Propriétés du Flash', chkPlay : 'Jouer automatiquement', chkLoop : 'Boucle', chkMenu : 'Activer le menu Flash', chkFull : 'Permettre le plein écran', scale : 'Echelle', scaleAll : 'Afficher tout', scaleNoBorder : 'Pas de bordure', scaleFit : 'Taille d\'origine', access : 'Accès aux scripts', accessAlways : 'Toujours', accessSameDomain: 'Même domaine', accessNever : 'Jamais', alignAbsBottom : 'Bas absolu', alignAbsMiddle : 'Milieu absolu', alignBaseline : 'Bas du texte', alignTextTop : 'Haut du texte', quality : 'Qualité', qualityBest : 'Meilleure', qualityHigh : 'Haute', qualityAutoHigh : 'Haute Auto', qualityMedium : 'Moyenne', qualityAutoLow : 'Basse Auto', qualityLow : 'Basse', windowModeWindow: 'Fenêtre', windowModeOpaque: 'Opaque', windowModeTransparent : 'Transparent', windowMode : 'Mode fenêtre', flashvars : 'Variables du Flash', bgcolor : 'Couleur d\'arrière-plan', hSpace : 'Espacement horizontal', vSpace : 'Espacement vertical', validateSrc : 'L\'adresse ne doit pas être vide.', validateHSpace : 'L\'espacement horizontal doit être un nombre.', validateVSpace : 'L\'espacement vertical doit être un nombre.' }, // Speller Pages Dialog spellCheck : { toolbar : 'Vérifier l\'orthographe', title : 'Vérifier l\'orthographe', notAvailable : 'Désolé, le service est indisponible actuellement.', errorLoading : 'Erreur du chargement du service depuis l\'hôte : %s.', notInDic : 'N\'existe pas dans le dictionnaire.', changeTo : 'Modifier pour', btnIgnore : 'Ignorer', btnIgnoreAll : 'Ignorer tout', btnReplace : 'Remplacer', btnReplaceAll : 'Remplacer tout', btnUndo : 'Annuler', noSuggestions : '- Aucune suggestion -', progress : 'Vérification de l\'orthographe en cours...', noMispell : 'Vérification de l\'orthographe terminée : aucune erreur trouvée.', noChanges : 'Vérification de l\'orthographe terminée : Aucun mot corrigé.', oneChange : 'Vérification de l\'orthographe terminée : Un seul mot corrigé.', manyChanges : 'Vérification de l\'orthographe terminée : %1 mots corrigés.', ieSpellDownload : 'La vérification d\'orthographe n\'est pas installée. Voulez-vous la télécharger maintenant?' }, smiley : { toolbar : 'Émoticones', title : 'Insérer un émoticone', options : 'Options des émoticones' }, elementsPath : { eleLabel : 'Elements path', eleTitle : '%1 éléments' }, numberedlist : 'Insérer/Supprimer la liste numérotée', bulletedlist : 'Insérer/Supprimer la liste à puces', indent : 'Augmenter le retrait (tabulation)', outdent : 'Diminuer le retrait (tabulation)', justify : { left : 'Aligner à gauche', center : 'Centrer', right : 'Aligner à droite', block : 'Justifier' }, blockquote : 'Citation', clipboard : { title : 'Coller', cutError : 'Les paramètres de sécurité de votre navigateur ne permettent pas à l\'éditeur d\'exécuter automatiquement l\'opération "couper". Veuillez utiliser le raccourci clavier (Ctrl/Cmd+X).', copyError : 'Les paramètres de sécurité de votre navigateur ne permettent pas à l\'éditeur d\'exécuter automatiquement des opérations de copie. Veuillez utiliser le raccourci clavier (Ctrl/Cmd+C).', pasteMsg : 'Veuillez coller le texte dans la zone suivante en utilisant le raccourci clavier (<strong>Ctrl/Cmd+V</strong>) et cliquez sur OK.', securityMsg : 'A cause des paramètres de sécurité de votre navigateur, l\'éditeur n\'est pas en mesure d\'accéder directement à vos données contenues dans le presse-papier. Vous devriez réessayer de coller les données dans la fenêtre.', pasteArea : 'Coller la zone' }, pastefromword : { confirmCleanup : 'Le texte à coller semble provenir de Word. Désirez-vous le nettoyer avant de coller?', toolbar : 'Coller depuis Word', title : 'Coller depuis Word', error : 'Il n\'a pas été possible de nettoyer les données collées à la suite d\'une erreur interne.' }, pasteText : { button : 'Coller comme texte sans mise en forme', title : 'Coller comme texte sans mise en forme' }, templates : { button : 'Modèles', title : 'Contenu des modèles', options : 'Options des modèles', insertOption : 'Remplacer le contenu actuel', selectPromptMsg : 'Veuillez sélectionner le modèle pour l\'ouvrir dans l\'éditeur', emptyListMsg : '(Aucun modèle disponible)' }, showBlocks : 'Afficher les blocs', stylesCombo : { label : 'Styles', panelTitle : 'Styles de mise en page', panelTitle1 : 'Styles de blocs', panelTitle2 : 'Styles en ligne', panelTitle3 : 'Styles d\'objet' }, format : { label : 'Format', panelTitle : 'Format de paragraphe', tag_p : 'Normal', tag_pre : 'Formaté', tag_address : 'Adresse', tag_h1 : 'Titre 1', tag_h2 : 'Titre 2', tag_h3 : 'Titre 3', tag_h4 : 'Titre 4', tag_h5 : 'Titre 5', tag_h6 : 'Titre 6', tag_div : 'Normal (DIV)' }, div : { title : 'Créer un container DIV', toolbar : 'Créer un container DIV', cssClassInputLabel : 'Classe CSS', styleSelectLabel : 'Style', IdInputLabel : 'Id', languageCodeInputLabel : 'Code de langue', inlineStyleInputLabel : 'Style en ligne', advisoryTitleInputLabel : 'Advisory Title', langDirLabel : 'Sens d\'écriture', langDirLTRLabel : 'Gauche à droite (LTR)', langDirRTLLabel : 'Droite à gauche (RTL)', edit : 'Éditer la DIV', remove : 'Enlever la DIV' }, iframe : { title : 'Propriétés de la IFrame', toolbar : 'IFrame', noUrl : 'Veuillez entrer l\'adresse du lien de la IFrame', scrolling : 'Permettre à la barre de défilement', border : 'Afficher une bordure de la IFrame' }, font : { label : 'Police', voiceLabel : 'Police', panelTitle : 'Style de police' }, fontSize : { label : 'Taille', voiceLabel : 'Taille de police', panelTitle : 'Taille de police' }, colorButton : { textColorTitle : 'Couleur de texte', bgColorTitle : 'Couleur d\'arrière plan', panelTitle : 'Couleurs', auto : 'Automatique', more : 'Plus de couleurs...' }, colors : { '000' : 'Noir', '800000' : 'Marron', '8B4513' : 'Brun moyen', '2F4F4F' : 'Vert sombre', '008080' : 'Canard', '000080' : 'Bleu marine', '4B0082' : 'Indigo', '696969' : 'Gris foncé', 'B22222' : 'Rouge brique', 'A52A2A' : 'Brun', 'DAA520' : 'Or terni', '006400' : 'Vert foncé', '40E0D0' : 'Turquoise', '0000CD' : 'Bleu royal', '800080' : 'Pourpre', '808080' : 'Gris', 'F00' : 'Rouge', 'FF8C00' : 'Orange foncé', 'FFD700' : 'Or', '008000' : 'Vert', '0FF' : 'Cyan', '00F' : 'Bleu', 'EE82EE' : 'Violet', 'A9A9A9' : 'Gris moyen', 'FFA07A' : 'Saumon', 'FFA500' : 'Orange', 'FFFF00' : 'Jaune', '00FF00' : 'Lime', 'AFEEEE' : 'Turquoise clair', 'ADD8E6' : 'Bleu clair', 'DDA0DD' : 'Prune', 'D3D3D3' : 'Gris clair', 'FFF0F5' : 'Fard Lavande', 'FAEBD7' : 'Blanc antique', 'FFFFE0' : 'Jaune clair', 'F0FFF0' : 'Honeydew', 'F0FFFF' : 'Azur', 'F0F8FF' : 'Bleu Alice', 'E6E6FA' : 'Lavande', 'FFF' : 'Blanc' }, scayt : { title : 'Vérification de l\'Orthographe en Cours de Frappe (SCAYT)', opera_title : 'Non supporté par Opera', enable : 'Activer SCAYT', disable : 'Désactiver SCAYT', about : 'A propos de SCAYT', toggle : 'Activer/Désactiver SCAYT', options : 'Options', langs : 'Langues', moreSuggestions : 'Plus de suggestions', ignore : 'Ignorer', ignoreAll : 'Ignorer Tout', addWord : 'Ajouter le mot', emptyDic : 'Le nom du dictionnaire ne devrait pas être vide.', optionsTab : 'Options', allCaps : 'Ignorer les mots entièrement en majuscules', ignoreDomainNames : 'Ignorer les noms de domaines', mixedCase : 'Ignorer les mots à casse multiple', mixedWithDigits : 'Ignorer les mots contenant des chiffres', languagesTab : 'Langues', dictionariesTab : 'Dictionnaires', dic_field_name : 'Nom du dictionnaire', dic_create : 'Créer', dic_restore : 'Restaurer', dic_delete : 'Effacer', dic_rename : 'Renommer', dic_info : 'Initialement, le dictionnaire de l\'utilisateur est stocké dans un cookie. Cependant, les cookies sont limités en taille. Quand le dictionnaire atteint une taille qu\'il n\'est plus possible de stocker dans un cookie, il peut alors être stocké sur nos serveurs. Afin de stocker votre dictionnaire personnel sur nos serveurs, vous devez spécifier un nom pour ce dictionnaire. Si vous avez déjà un dictionnaire stocké, merci de taper son nom puis cliquer sur Restaurer pour le récupérer.', aboutTab : 'À propos de' }, about : { title : 'À propos de CKEditor', dlgTitle : 'À propos de CKEditor', help : 'Consulter $1 pour l\'aide.', userGuide : 'Guide de l\'utilisateur CKEditor en anglais', moreInfo : 'Pour les informations de licence, veuillez visiter notre site web:', copy : 'Copyright &copy; $1. Tous droits réservés.' }, maximize : 'Agrandir', minimize : 'Minimiser', fakeobjects : { anchor : 'Ancre', flash : 'Animation Flash', iframe : 'IFrame', hiddenfield : 'Champ caché', unknown : 'Objet inconnu' }, resize : 'Déplacer pour modifier la taille', colordialog : { title : 'Choisir une couleur', options : 'Option des couleurs', highlight : 'Détails', selected : 'Couleur choisie', clear : 'Effacer' }, toolbarCollapse : 'Enrouler la barre d\'outils', toolbarExpand : 'Dérouler la barre d\'outils', toolbarGroups : { document : 'Document', clipboard : 'Presse-papier/Défaire', editing : 'Editer', forms : 'Formulaires', basicstyles : 'Styles de base', paragraph : 'Paragraphe', links : 'Liens', insert : 'Insérer', styles : 'Styles', colors : 'Couleurs', tools : 'Outils' }, bidi : { ltr : 'Direction du texte de la gauche vers la droite', rtl : 'Direction du texte de la droite vers la gauche' }, docprops : { label : 'Propriétés du document', title : 'Propriétés du document', design : 'Design', meta : 'Métadonnées', chooseColor : 'Choisissez', other : '<autre>', docTitle : 'Titre de la page', charset : 'Encodage de caractère', charsetOther : 'Autre encodage de caractère', charsetASCII : 'ASCII', charsetCE : 'Europe Centrale', charsetCT : 'Chinois Traditionnel (Big5)', charsetCR : 'Cyrillique', charsetGR : 'Grec', charsetJP : 'Japonais', charsetKR : 'Coréen', charsetTR : 'Turc', charsetUN : 'Unicode (UTF-8)', 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 texte', 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', previewHtml : '<p>Ceci est un <strong>texte d\'exemple</strong>. Vous utilisez <a href="javascript:void(0)">CKEditor</a>.</p>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object for the * 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', editorHelp : 'کلید 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 : 'پائین', invalidValue : 'Invalid value.', // MISSING 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 : 'حق نشر &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>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Esperanto language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['eo'] = { /** * 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 : 'riĉteksta redaktilo, %1', editorHelp : 'Premu ALT 0 por helpilo', // ARIA descriptions. toolbars : 'Ilobretoj de la redaktilo', editor : 'Redaktilo por Riĉiga Teksto', // Toolbar buttons without dialogs. source : 'Fonto', newPage : 'Nova Paĝo', save : 'Konservi', preview : 'Vidigi Aspekton', cut : 'Eltondi', copy : 'Kopii', paste : 'Interglui', print : 'Presi', underline : 'Substreko', bold : 'Grasa', italic : 'Kursiva', selectAll : 'Elekti ĉion', removeFormat : 'Forigi Formaton', strike : 'Trastreko', subscript : 'Suba indico', superscript : 'Supra indico', horizontalrule : 'Enmeti Horizontalan Linion', pagebreak : 'Enmeti Paĝavancon por Presado', pagebreakAlt : 'Paĝavanco', unlink : 'Forigi Ligilon', undo : 'Malfari', redo : 'Refari', // Common messages and labels. common : { browseServer : 'Foliumi en la Servilo', url : 'URL', protocol : 'Protokolo', upload : 'Alŝuti', uploadSubmit : 'Sendu al Servilo', image : 'Bildo', flash : 'Flaŝo', form : 'Formularo', checkbox : 'Markobutono', radio : 'Radiobutono', textField : 'Teksta kampo', textarea : 'Teksta Areo', hiddenField : 'Kaŝita Kampo', button : 'Butono', select : 'Elekta Kampo', imageButton : 'Bildbutono', notSet : '<Defaŭlta>', id : 'Id', name : 'Nomo', langDir : 'Skribdirekto', langDirLtr : 'De maldekstro dekstren (LTR)', langDirRtl : 'De dekstro maldekstren (RTL)', langCode : 'Lingva Kodo', longDescr : 'URL de Longa Priskribo', cssClass : 'Klasoj de Stilfolioj', advisoryTitle : 'Priskriba Titolo', cssStyle : 'Stilo', ok : 'Akcepti', cancel : 'Rezigni', close : 'Fermi', preview : 'Vidigi Aspekton', generalTab : 'Ĝenerala', advancedTab : 'Speciala', validateNumberFailed : 'Tiu valoro ne estas nombro.', confirmNewPage : 'La neregistritaj ŝanĝoj estas perdotaj. Ĉu vi certas, ke vi volas ŝargi novan paĝon?', confirmCancel : 'Iuj opcioj esta ŝanĝitaj. Ĉu vi certas, ke vi volas fermi la dialogon?', options : 'Opcioj', target : 'Celo', targetNew : 'Nova Fenestro (_blank)', targetTop : 'Supra Fenestro (_top)', targetSelf : 'Sama Fenestro (_self)', targetParent : 'Patra Fenestro (_parent)', langDirLTR : 'De maldekstro dekstren (LTR)', langDirRTL : 'De dekstro maldekstren (RTL)', styles : 'Stilo', cssClasses : 'Stilfoliaj Klasoj', width : 'Larĝo', height : 'Alto', align : 'Ĝisrandigo', alignLeft : 'Maldekstre', alignRight : 'Dekstre', alignCenter : 'Centre', alignTop : 'Supre', alignMiddle : 'Centre', alignBottom : 'Malsupre', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Alto devas esti nombro.', invalidWidth : 'Larĝo devas esti nombro.', invalidCssLength : 'La valoro indikita por la "%1" kampo devas esti pozitiva nombro kun aŭ sen valida CSSmezurunuo (px, %, in, cm, mm, em, ex, pt, or pc).', invalidHtmlLength : 'La valoro indikita por la "%1" kampo devas esti pozitiva nombro kun aŭ sen valida HTMLmezurunuo (px or %).', invalidInlineStyle : 'La valoro indikita por la enlinia stilo devas konsisti el unu aŭ pluraj elementoj kun la formato de "nomo : valoro", apartigitaj per punktokomoj.', cssLengthTooltip : 'Entajpu nombron por rastrumera valoro aŭ nombron kun valida CSSunuo (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">, nehavebla</span>' }, contextmenu : { options : 'Opcioj de Kunteksta Menuo' }, // Special char dialog. specialChar : { toolbar : 'Enmeti Specialan Signon', title : 'Selekti Specialan Signon', options : 'Opcioj pri Specialaj Signoj' }, // Link dialog. link : { toolbar : 'Enmeti/Ŝanĝi Ligilon', other : '<alia>', menu : 'Ŝanĝi Ligilon', title : 'Ligilo', info : 'Informoj pri la Ligilo', target : 'Celo', upload : 'Alŝuti', advanced : 'Speciala', type : 'Tipo de Ligilo', toUrl : 'URL', toAnchor : 'Ankri en tiu ĉi paĝo', toEmail : 'Retpoŝto', targetFrame : '<kadro>', targetPopup : '<ŝprucfenestro>', targetFrameName : 'Nomo de CelKadro', targetPopupName : 'Nomo de Ŝprucfenestro', popupFeatures : 'Atributoj de la Ŝprucfenestro', popupResizable : 'Dimensiŝanĝebla', popupStatusBar : 'Statobreto', popupLocationBar: 'Adresobreto', popupToolbar : 'Ilobreto', popupMenuBar : 'Menubreto', popupFullScreen : 'Tutekrane (IE)', popupScrollBars : 'Rulumskaloj', popupDependent : 'Dependa (Netscape)', popupLeft : 'Maldekstra Pozicio', popupTop : 'Supra Pozicio', id : 'Id', langDir : 'Skribdirekto', langDirLTR : 'De maldekstro dekstren (LTR)', langDirRTL : 'De dekstro maldekstren (RTL)', acccessKey : 'Fulmoklavo', name : 'Nomo', langCode : 'Lingva Kodo', tabIndex : 'Taba Indekso', advisoryTitle : 'Priskriba Titolo', advisoryContentType : 'Enhavotipo', cssClasses : 'Klasoj de Stilfolioj', charset : 'Signaro de la Ligita Rimedo', styles : 'Stilo', rel : 'Rilato', selectAnchor : 'Elekti Ankron', anchorName : 'Per Ankronomo', anchorId : 'Per Elementidentigilo', emailAddress : 'Retpoŝto', emailSubject : 'Mesaĝa Temo', emailBody : 'Mesaĝa korpo', noAnchors : '<Ne disponeblas ankroj en la dokumento>', noUrl : 'Bonvolu entajpi la URL-on', noEmail : 'Bonvolu entajpi la retpoŝtadreson' }, // Anchor dialog anchor : { toolbar : 'Ankro', menu : 'Enmeti/Ŝanĝi Ankron', title : 'Ankraj Atributoj', name : 'Ankra Nomo', errorName : 'Bv entajpi la ankran nomon', remove : 'Forigi Ankron' }, // List style dialog list: { numberedTitle : 'Atributoj de Numera Listo', bulletedTitle : 'Atributoj de Bula Listo', type : 'Tipo', start : 'Komenco', validateStartNumber :'La unua listero devas esti entjera nombro.', circle : 'Cirklo', disc : 'Disko', square : 'kvadrato', none : 'Neniu', notset : '<Defaŭlta>', armenian : 'Armena nombrado', georgian : 'Gruza nombrado (an, ban, gan, ktp.)', lowerRoman : 'Minusklaj Romanaj Nombroj (i, ii, iii, iv, v, ktp.)', upperRoman : 'Majusklaj Romanaj Nombroj (I, II, III, IV, V, ktp.)', lowerAlpha : 'Minusklaj Literoj (a, b, c, d, e, ktp.)', upperAlpha : 'Majusklaj Literoj (A, B, C, D, E, ktp.)', lowerGreek : 'Grekaj Minusklaj Literoj (alpha, beta, gamma, ktp.)', decimal : 'Dekumaj Nombroj (1, 2, 3, ktp.)', decimalLeadingZero : 'Dekumaj Nombroj malantaŭ nulo (01, 02, 03, ktp.)' }, // Find And Replace Dialog findAndReplace : { title : 'Serĉi kaj Anstataŭigi', find : 'Serĉi', replace : 'Anstataŭigi', findWhat : 'Serĉi:', replaceWith : 'Anstataŭigi per:', notFoundMsg : 'La celteksto ne estas trovita.', findOptions : 'Opcioj pri Serĉado', matchCase : 'Kongruigi Usklecon', matchWord : 'Tuta Vorto', matchCyclic : 'Cikla Serĉado', replaceAll : 'Anstataŭigi Ĉion', replaceSuccessMsg : '%1 anstataŭigita(j) apero(j).' }, // Table Dialog table : { toolbar : 'Tabelo', title : 'Atributoj de Tabelo', menu : 'Atributoj de Tabelo', deleteTable : 'Forigi Tabelon', rows : 'Linioj', columns : 'Kolumnoj', border : 'Bordero', widthPx : 'Rastrumeroj', widthPc : 'elcentoj', widthUnit : 'unuo de larĝo', cellSpace : 'Spaco inter la Ĉeloj', cellPad : 'Interna Marĝeno de la ĉeloj', caption : 'Tabeltitolo', summary : 'Resumo', headers : 'Supraj Paĝotitoloj', headersNone : 'Neniu', headersColumn : 'Unua kolumno', headersRow : 'Unua linio', headersBoth : 'Ambaŭ', invalidRows : 'La nombro de la linioj devas superi 0.', invalidCols : 'La nombro de la kolumnoj devas superi 0.', invalidBorder : 'La bordergrando devas esti nombro.', invalidWidth : 'La tabellarĝo devas esti nombro.', invalidHeight : 'La tabelalto devas esti nombro.', invalidCellSpacing : 'La spaco inter la ĉeloj devas esti pozitiva nombro.', invalidCellPadding : 'La interna marĝeno en la ĉeloj devas esti pozitiva nombro.', cell : { menu : 'Ĉelo', insertBefore : 'Enmeti Ĉelon Antaŭ', insertAfter : 'Enmeti Ĉelon Post', deleteCell : 'Forigi la Ĉelojn', merge : 'Kunfandi la Ĉelojn', mergeRight : 'Kunfandi dekstren', mergeDown : 'Kunfandi malsupren ', splitHorizontal : 'Horizontale dividi', splitVertical : 'Vertikale dividi', title : 'Ĉelatributoj', cellType : 'Ĉeltipo', rowSpan : 'Kunfando de linioj', colSpan : 'Kunfando de kolumnoj', wordWrap : 'Cezuro', hAlign : 'Horizontala ĝisrandigo', vAlign : 'Vertikala ĝisrandigo', alignBaseline : 'Malsupro de la teksto', bgColor : 'Fonkoloro', borderColor : 'Borderkoloro', data : 'Datenoj', header : 'Supra paĝotitolo', yes : 'Jes', no : 'No', invalidWidth : 'Ĉellarĝo devas esti nombro.', invalidHeight : 'Ĉelalto devas esti nombro.', invalidRowSpan : 'Kunfando de linioj devas esti entjera nombro.', invalidColSpan : 'Kunfando de kolumnoj devas esti entjera nombro.', chooseColor : 'Elektu' }, row : { menu : 'Linio', insertBefore : 'Enmeti linion antaŭ', insertAfter : 'Enmeti linion post', deleteRow : 'Forigi Liniojn' }, column : { menu : 'Kolumno', insertBefore : 'Enmeti kolumnon antaŭ', insertAfter : 'Enmeti kolumnon post', deleteColumn : 'Forigi Kolumnojn' } }, // Button Dialog. button : { title : 'Butonaj atributoj', text : 'Teksto (Valoro)', type : 'Tipo', typeBtn : 'Butono', typeSbm : 'Validigi (submit)', typeRst : 'Remeti en la originstaton (Reset)' }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : 'Markobutonaj Atributoj', radioTitle : 'Radiobutonaj Atributoj', value : 'Valoro', selected : 'Selektita' }, // Form Dialog. form : { title : 'Formularaj Atributoj', menu : 'Formularaj Atributoj', action : 'Ago', method : 'Metodo', encoding : 'Kodoprezento' }, // Select Field Dialog. select : { title : 'Atributoj de Elekta Kampo', selectInfo : 'Informoj pri la rulummenuo', opAvail : 'Elektoj Disponeblaj', value : 'Valoro', size : 'Grando', lines : 'Linioj', chkMulti : 'Permesi Plurajn Elektojn', opText : 'Teksto', opValue : 'Valoro', btnAdd : 'Aldoni', btnModify : 'Modifi', btnUp : 'Supren', btnDown : 'Malsupren', btnSetValue : 'Agordi kiel Elektitan Valoron', btnDelete : 'Forigi' }, // Textarea Dialog. textarea : { title : 'Atributoj de Teksta Areo', cols : 'Kolumnoj', rows : 'Linioj' }, // Text Field Dialog. textfield : { title : 'Atributoj de Teksta Kampo', name : 'Nomo', value : 'Valoro', charWidth : 'Signolarĝo', maxChars : 'Maksimuma Nombro da Signoj', type : 'Tipo', typeText : 'Teksto', typePass : 'Pasvorto' }, // Hidden Field Dialog. hidden : { title : 'Atributoj de Kaŝita Kampo', name : 'Nomo', value : 'Valoro' }, // Image Dialog. image : { title : 'Atributoj de Bildo', titleButton : 'Bildbutonaj Atributoj', menu : 'Atributoj de Bildo', infoTab : 'Informoj pri Bildo', btnUpload : 'Sendu al Servilo', upload : 'Alŝuti', alt : 'Anstataŭiga Teksto', lockRatio : 'Konservi Proporcion', resetSize : 'Origina Grando', border : 'Bordero', hSpace : 'Horizontala Spaco', vSpace : 'Vertikala Spaco', alertUrl : 'Bonvolu tajpi la retadreson de la bildo', linkTab : 'Ligilo', button2Img : 'Ĉu vi volas transformi la selektitan bildbutonon en simplan bildon?', img2Button : 'Ĉu vi volas transformi la selektitan bildon en bildbutonon?', urlMissing : 'La fontretadreso de la bildo mankas.', validateBorder : 'La bordero devas esti entjera nombro.', validateHSpace : 'La horizontala spaco devas esti entjera nombro.', validateVSpace : 'La vertikala spaco devas esti entjera nombro.' }, // Flash Dialog flash : { properties : 'Flaŝatributoj', propertiesTab : 'Atributoj', title : 'Flaŝatributoj', chkPlay : 'Aŭtomata legado', chkLoop : 'Iteracio', chkMenu : 'Ebligi flaŝmenuon', chkFull : 'Permesi tutekranon', scale : 'Skalo', scaleAll : 'Montri ĉion', scaleNoBorder : 'Neniu bordero', scaleFit : 'Origina grando', access : 'Atingi skriptojn', accessAlways : 'Ĉiam', accessSameDomain: 'Sama domajno', accessNever : 'Neniam', alignAbsBottom : 'Absoluta Malsupro', alignAbsMiddle : 'Absoluta Centro', alignBaseline : 'TekstoMalsupro', alignTextTop : 'TekstoSupro', quality : 'Kvalito', qualityBest : 'Plej bona', qualityHigh : 'Alta', qualityAutoHigh : 'Aŭtomate alta', qualityMedium : 'Meza', qualityAutoLow : 'Aŭtomate malalta', qualityLow : 'Malalta', windowModeWindow: 'Fenestro', windowModeOpaque: 'Opaka', windowModeTransparent : 'Travidebla', windowMode : 'Fenestra reĝimo', flashvars : 'Variabloj por Flaŝo', bgcolor : 'Fona Koloro', hSpace : 'Horizontala Spaco', vSpace : 'Vertikala Spaco', validateSrc : 'Bonvolu entajpi la retadreson (URL)', validateHSpace : 'Horizontala Spaco devas esti nombro.', validateVSpace : 'Vertikala Spaco devas esti nombro.' }, // Speller Pages Dialog spellCheck : { toolbar : 'Kontroli la ortografion', title : 'Kontroli la ortografion', notAvailable : 'Bedaŭrinde la servo ne funkcias nuntempe.', errorLoading : 'Eraro en la servoelŝuto el la gastiga komputiko: %s.', notInDic : 'Ne trovita en la vortaro', changeTo : 'Ŝanĝi al', btnIgnore : 'Ignori', btnIgnoreAll : 'Ignori Ĉion', btnReplace : 'Anstataŭigi', btnReplaceAll : 'Anstataŭigi Ĉion', btnUndo : 'Malfari', noSuggestions : '- Neniu propono -', progress : 'La ortografio estas kontrolata...', noMispell : 'Ortografikontrolado finita: neniu eraro trovita', noChanges : 'Ortografikontrolado finita: neniu vorto korektita', oneChange : 'Ortografikontrolado finita: unu vorto korektita', manyChanges : 'Ortografikontrolado finita: %1 vortoj korektitaj', ieSpellDownload : 'Ortografikontrolilo ne instalita. Ĉu vi volas elŝuti ĝin nun?' }, smiley : { toolbar : 'Mienvinjeto', title : 'Enmeti Mienvinjeton', options : 'Opcioj pri mienvinjetoj' }, elementsPath : { eleLabel : 'Vojo al Elementoj', eleTitle : '%1 elementoj' }, numberedlist : 'Numera Listo', bulletedlist : 'Bula Listo', indent : 'Pligrandigi Krommarĝenon', outdent : 'Malpligrandigi Krommarĝenon', justify : { left : 'Ĝisrandigi maldekstren', center : 'Centrigi', right : 'Ĝisrandigi dekstren', block : 'Ĝisrandigi Ambaŭflanke' }, blockquote : 'Citaĵo', clipboard : { title : 'Interglui', cutError : 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras eltondajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-X).', copyError : 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras kopiajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-C).', pasteMsg : 'Bonvolu glui la tekston en la jenan areon per uzado de la klavaro (<strong>Ctrl/Cmd+V</strong>) kaj premu OK', securityMsg : 'Pro la sekurecagordo de via TTT-legilo, la redaktilo ne povas rekte atingi viajn datenojn en la poŝo. Bonvolu denove interglui la datenojn en tiun fenestron.', pasteArea : 'Intergluoareo' }, pastefromword : { confirmCleanup : 'La teksto, kiun vi volas interglui, ŝajnas esti kopiita el Word. Ĉu vi deziras purigi ĝin antaŭ intergluo?', toolbar : 'Interglui el Word', title : 'Interglui el Word', error : 'Ne eblis purigi la intergluitajn datenojn pro interna eraro' }, pasteText : { button : 'Interglui kiel platan tekston', title : 'Interglui kiel platan tekston' }, templates : { button : 'Ŝablonoj', title : 'Enhavo de ŝablonoj', options : 'Opcioj pri ŝablonoj', insertOption : 'Anstataŭigi la nunan enhavon', selectPromptMsg : 'Bonvolu selekti la ŝablonon por malfermi ĝin en la redaktilo', emptyListMsg : '(Neniu ŝablono difinita)' }, showBlocks : 'Montri la blokojn', stylesCombo : { label : 'Stiloj', panelTitle : 'Stiloj pri enpaĝigo', panelTitle1 : 'Stiloj de blokoj', panelTitle2 : 'Enliniaj Stiloj', panelTitle3 : 'Stiloj de objektoj' }, format : { label : 'Formato', panelTitle : 'ParagrafFormato', tag_p : 'Normala', tag_pre : 'Formatita', tag_address : 'Adreso', 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 : 'Normala (DIV)' }, div : { title : 'Krei DIV ujon', toolbar : 'Krei DIV ujon', cssClassInputLabel : 'Stilfolioklasoj', styleSelectLabel : 'Stilo', IdInputLabel : 'Id', languageCodeInputLabel : ' Lingvokodo', inlineStyleInputLabel : 'Enlinia stilo', advisoryTitleInputLabel : 'Priskriba Titolo', langDirLabel : 'Skribdirekto', langDirLTRLabel : 'Maldekstre dekstren (angle LTR)', langDirRTLLabel : 'Dekstre maldekstren (angle RTL)', edit : 'Redakti Div', remove : 'Forigi Div' }, iframe : { title : 'Atributoj de la enlinia kadro (IFrame)', toolbar : 'Enlinia kadro (IFrame)', noUrl : 'Bonvolu entajpi la retadreson de la ligilo al la enlinia kadro (IFrame)', scrolling : 'Ebligi rulumskalon', border : 'Montri borderon de kadro (frame)' }, font : { label : 'Tiparo', voiceLabel : 'Tiparo', panelTitle : 'Tipara nomo' }, fontSize : { label : 'Grado', voiceLabel : 'Tipara grado', panelTitle : 'Tipara grado' }, colorButton : { textColorTitle : 'Teksta Koloro', bgColorTitle : 'Fona Koloro', panelTitle : 'Koloroj', auto : 'Aŭtomata', more : 'Pli da Koloroj...' }, colors : { '000' : 'Nigra', '800000' : 'Kaŝtankolora', '8B4513' : 'Mezbruna', '2F4F4F' : 'Ardezgriza', '008080' : 'Marĉanaskolora', '000080' : 'Maristblua', '4B0082' : 'Indigokolora', '696969' : 'Malhelgriza', 'B22222' : 'Brikruĝa', 'A52A2A' : 'Bruna', 'DAA520' : 'Senbrilorkolora', '006400' : 'Malhelverda', '40E0D0' : 'Turkisblua', '0000CD' : 'Reĝblua', '800080' : 'Purpura', '808080' : 'Griza', 'F00' : 'Ruĝa', 'FF8C00' : 'Malheloranĝkolora', 'FFD700' : 'Orkolora', '008000' : 'Verda', '0FF' : 'Verdblua', '00F' : 'Blua', 'EE82EE' : 'Viola', 'A9A9A9' : 'Mezgriza', 'FFA07A' : 'Salmokolora', 'FFA500' : 'Oranĝkolora', 'FFFF00' : 'Flava', '00FF00' : 'Limetkolora', 'AFEEEE' : 'Helturkiskolora', 'ADD8E6' : 'Helblua', 'DDA0DD' : 'Prunkolora', 'D3D3D3' : 'Helgriza', 'FFF0F5' : 'Lavendkolora vangoŝminko', 'FAEBD7' : 'Antikvablanka', 'FFFFE0' : 'Helflava', 'F0FFF0' : 'Vintromelonkolora', 'F0FFFF' : 'Lazura', 'F0F8FF' : 'Aliceblua', 'E6E6FA' : 'Lavendkolora', 'FFF' : 'Blanka' }, scayt : { title : 'OrtografiKontrolado Dum Vi Tajpas (OKDVT)', opera_title : 'Ne subportata de Opera', enable : 'Ebligi OKDVT', disable : 'Malebligi OKDVT', about : 'Pri OKDVT', toggle : 'Baskuligi OKDVT', options : 'Opcioj', langs : 'Lingvoj', moreSuggestions : 'Pli da sugestoj', ignore : 'Ignori', ignoreAll : 'Ignori ĉion', addWord : 'Almeti la vorton', emptyDic : 'La vortaronomo ne devus esti malplena.', optionsTab : 'Opcioj', allCaps : 'Ignori la vortojn skribitajn nur per ĉefliteroj', ignoreDomainNames : 'Ignori domajnajn nomojn', mixedCase : 'Ignori vortojn kun miksa uskleco', mixedWithDigits : 'Ignori vortojn kun nombroj', languagesTab : 'Lingvoj', dictionariesTab : 'Vortaroj', dic_field_name : 'Vortaronomo', dic_create : 'Krei', dic_restore : 'Restaŭri', dic_delete : 'Forigi', dic_rename : 'Renomi', dic_info : 'Komence la vortaro de la uzanto estas konservita en kuketo. Tamen la kuketgrando estas limigita. Kiam la vortaro de la uzanto atingas grandon, kiu ne plu ebligas konservi ĝin en kuketo, tiam la vortaro povas esti konservata en niaj serviloj. Por konservi vian personan vortaron en nian servilon, vi devas indiki nomon por tiu vortaro. Se vi jam havas konservitan vortaron, bonvolu entajpi ties nomon kaj alklaki la restaŭrbutonon.', aboutTab : 'Pri' }, about : { title : 'Pri CKEditor', dlgTitle : 'Pri CKEditor', help : 'Kontroli $1 por helpo.', userGuide : 'CKEditor Uzindikoj', moreInfo : 'Por informoj pri licenco, bonvolu viziti nian retpaĝaron:', copy : 'Copyright &copy; $1. Ĉiuj rajtoj rezervitaj.' }, maximize : 'Pligrandigi', minimize : 'Malgrandigi', fakeobjects : { anchor : 'Ankro', flash : 'FlaŝAnimacio', iframe : 'Enlinia Kadro (IFrame)', hiddenfield : 'Kaŝita kampo', unknown : 'Nekonata objekto' }, resize : 'Movigi por ŝanĝi la grandon', colordialog : { title : 'Selekti koloron', options : 'Opcioj pri koloroj', highlight : 'Detaloj', selected : 'Selektita koloro', clear : 'Forigi' }, toolbarCollapse : 'Faldi la ilbreton', toolbarExpand : 'Malfaldi la ilbreton', toolbarGroups : { document : 'Dokumento', clipboard : 'Poŝo/Malfari', editing : 'Redaktado', forms : 'Formularoj', basicstyles : 'Bazaj stiloj', paragraph : 'Paragrafo', links : 'Ligiloj', insert : 'Enmeti', styles : 'Stiloj', colors : 'Koloroj', tools : 'Iloj' }, bidi : { ltr : 'Tekstdirekto de maldekstre dekstren', rtl : 'Tekstdirekto de dekstre maldekstren' }, docprops : { label : 'Dokumentaj Atributoj', title : 'Dokumentaj Atributoj', design : 'Dizajno', meta : 'Metadatenoj', chooseColor : 'Elektu', other : '<alia>', docTitle : 'Paĝotitolo', charset : 'Signara Kodo', charsetOther : 'Alia Signara Kodo', charsetASCII : 'ASCII', charsetCE : 'Centra Eŭropa', charsetCT : 'Tradicia Ĉina (Big5)', charsetCR : 'Cirila', charsetGR : 'Greka', charsetJP : 'Japana', charsetKR : 'Korea', charsetTR : 'Turka', charsetUN : 'Unikodo (UTF-8)', charsetWE : 'Okcidenta Eŭropa', docType : 'Dokumenta Tipo', docTypeOther : 'Alia Dokumenta Tipo', xhtmlDec : 'Inkluzivi XHTML Deklarojn', bgColor : 'Fona Koloro', bgImage : 'URL de Fona Bildo', bgFixed : 'Neruluma Fono', txtColor : 'Teksta Koloro', margin : 'Paĝaj Marĝenoj', marginTop : 'Supra', marginLeft : 'Maldekstra', marginRight : 'Dekstra', marginBottom : 'Malsupra', metaKeywords : 'Ŝlosilvortoj de la Dokumento (apartigitaj de komoj)', metaDescription : 'Dokumenta Priskribo', metaAuthor : 'Verkinto', metaCopyright : 'Kopirajto', previewHtml : '<p>Tio estas <strong>sampla teksto</strong>. Vi estas uzanta <a href="javascript:void(0)">CKEditor</a>.</p>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * 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 : 'Editor de text enriquit, %1', editorHelp : 'Prem ALT 0 per obtenir ajuda', // 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', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'Height must be a number.', // MISSING invalidWidth : 'Width must be a number.', // MISSING invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING }, contextmenu : { options : 'Context Menu Options' // MISSING }, // Special char dialog. specialChar : { toolbar : '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 &copy; $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 } };
JavaScript