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.add( 'floatpanel', { requires : [ 'panel' ] }); (function() { var panels = {}; var isShowing = false; function getPanel( editor, doc, parentElement, definition, level ) { // Generates the panel key: docId-eleId-skinName-langDir[-uiColor][-CSSs][-level] var key = CKEDITOR.tools.genKey( doc.getUniqueId(), parentElement.getUniqueId(), editor.skinName, editor.lang.dir, editor.uiColor || '', definition.css || '', level || '' ); var panel = panels[ key ]; if ( !panel ) { panel = panels[ key ] = new CKEDITOR.ui.panel( doc, definition ); panel.element = parentElement.append( CKEDITOR.dom.element.createFromHtml( panel.renderHtml( editor ), doc ) ); panel.element.setStyles( { display : 'none', position : 'absolute' }); } return panel; } CKEDITOR.ui.floatPanel = CKEDITOR.tools.createClass( { $ : function( editor, parentElement, definition, level ) { definition.forceIFrame = 1; var doc = parentElement.getDocument(), panel = getPanel( editor, doc, parentElement, definition, level || 0 ), element = panel.element, iframe = element.getFirst().getFirst(); // Disable native browser menu. (#4825) element.disableContextMenu(); this.element = element; this._ = { editor : editor, // The panel that will be floating. panel : panel, parentElement : parentElement, definition : definition, document : doc, iframe : iframe, children : [], dir : editor.lang.dir }; editor.on( 'mode', function(){ this.hide(); }, this ); }, proto : { addBlock : function( name, block ) { return this._.panel.addBlock( name, block ); }, addListBlock : function( name, multiSelect ) { return this._.panel.addListBlock( name, multiSelect ); }, getBlock : function( name ) { return this._.panel.getBlock( name ); }, /* corner (LTR): 1 = top-left 2 = top-right 3 = bottom-right 4 = bottom-left corner (RTL): 1 = top-right 2 = top-left 3 = bottom-left 4 = bottom-right */ showBlock : function( name, offsetParent, corner, offsetX, offsetY ) { var panel = this._.panel, block = panel.showBlock( name ); this.allowBlur( false ); isShowing = 1; // Record from where the focus is when open panel. this._.returnFocus = this._.editor.focusManager.hasFocus ? this._.editor : new CKEDITOR.dom.element( CKEDITOR.document.$.activeElement ); var element = this.element, iframe = this._.iframe, definition = this._.definition, position = offsetParent.getDocumentPosition( element.getDocument() ), rtl = this._.dir == 'rtl'; var left = position.x + ( offsetX || 0 ), top = position.y + ( offsetY || 0 ); // Floating panels are off by (-1px, 0px) in RTL mode. (#3438) if ( rtl && ( corner == 1 || corner == 4 ) ) left += offsetParent.$.offsetWidth; else if ( !rtl && ( corner == 2 || corner == 3 ) ) left += offsetParent.$.offsetWidth - 1; if ( corner == 3 || corner == 4 ) top += offsetParent.$.offsetHeight - 1; // Memorize offsetParent by it's ID. this._.panel._.offsetParentId = offsetParent.getId(); element.setStyles( { top : top + 'px', left: 0, display : '' }); // Don't use display or visibility style because we need to // calculate the rendering layout later and focus the element. element.setOpacity( 0 ); // To allow the context menu to decrease back their width element.getFirst().removeStyle( 'width' ); // Configure the IFrame blur event. Do that only once. if ( !this._.blurSet ) { // Non IE prefer the event into a window object. var focused = CKEDITOR.env.ie ? iframe : new CKEDITOR.dom.window( iframe.$.contentWindow ); // With addEventListener compatible browsers, we must // useCapture when registering the focus/blur events to // guarantee they will be firing in all situations. (#3068, #3222 ) CKEDITOR.event.useCapture = true; focused.on( 'blur', function( ev ) { if ( !this.allowBlur() ) return; // As we are using capture to register the listener, // the blur event may get fired even when focusing // inside the window itself, so we must ensure the // target is out of it. var target = ev.data.getTarget() ; if ( target.getName && target.getName() != 'iframe' ) return; if ( this.visible && !this._.activeChild && !isShowing ) { // Panel close is caused by user's navigating away the focus, e.g. click outside the panel. // DO NOT restore focus in this case. delete this._.returnFocus; this.hide(); } }, this ); focused.on( 'focus', function() { this._.focused = true; this.hideChild(); this.allowBlur( true ); }, this ); CKEDITOR.event.useCapture = false; this._.blurSet = 1; } panel.onEscape = CKEDITOR.tools.bind( function( keystroke ) { if ( this.onEscape && this.onEscape( keystroke ) === false ) return false; }, this ); CKEDITOR.tools.setTimeout( function() { var panelLoad = CKEDITOR.tools.bind( function () { var target = element.getFirst(); if ( block.autoSize ) { // We must adjust first the width or IE6 could include extra lines in the height computation var widthNode = block.element.$; if ( CKEDITOR.env.gecko || CKEDITOR.env.opera ) widthNode = widthNode.parentNode; if ( CKEDITOR.env.ie ) widthNode = widthNode.document.body; var width = widthNode.scrollWidth; // Account for extra height needed due to IE quirks box model bug: // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug // (#3426) if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && width > 0 ) width += ( target.$.offsetWidth || 0 ) - ( target.$.clientWidth || 0 ) + 3; // A little extra at the end. // If not present, IE6 might break into the next line, but also it looks better this way width += 4 ; target.setStyle( 'width', width + 'px' ); // IE doesn't compute the scrollWidth if a filter is applied previously block.element.addClass( 'cke_frameLoaded' ); var height = block.element.$.scrollHeight; // Account for extra height needed due to IE quirks box model bug: // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug // (#3426) if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && height > 0 ) height += ( target.$.offsetHeight || 0 ) - ( target.$.clientHeight || 0 ) + 3; target.setStyle( 'height', height + 'px' ); // Fix IE < 8 visibility. panel._.currentBlock.element.setStyle( 'display', 'none' ).removeStyle( 'display' ); } else target.removeStyle( 'height' ); // Flip panel layout horizontally in RTL with known width. if ( rtl ) left -= element.$.offsetWidth; // Pop the style now for measurement. element.setStyle( 'left', left + 'px' ); /* panel layout smartly fit the viewport size. */ var panelElement = panel.element, panelWindow = panelElement.getWindow(), rect = element.$.getBoundingClientRect(), viewportSize = panelWindow.getViewPaneSize(); // Compensation for browsers that dont support "width" and "height". var rectWidth = rect.width || rect.right - rect.left, rectHeight = rect.height || rect.bottom - rect.top; // Check if default horizontal layout is impossible. var spaceAfter = rtl ? rect.right : viewportSize.width - rect.left, spaceBefore = rtl ? viewportSize.width - rect.right : rect.left; if ( rtl ) { if ( spaceAfter < rectWidth ) { // Flip to show on right. if ( spaceBefore > rectWidth ) left += rectWidth; // Align to window left. else if ( viewportSize.width > rectWidth ) left = left - rect.left; // Align to window right, never cutting the panel at right. else left = left - rect.right + viewportSize.width; } } else if ( spaceAfter < rectWidth ) { // Flip to show on left. if ( spaceBefore > rectWidth ) left -= rectWidth; // Align to window right. else if ( viewportSize.width > rectWidth ) left = left - rect.right + viewportSize.width; // Align to window left, never cutting the panel at left. else left = left - rect.left; } // Check if the default vertical layout is possible. var spaceBelow = viewportSize.height - rect.top, spaceAbove = rect.top; if ( spaceBelow < rectHeight ) { // Flip to show above. if ( spaceAbove > rectHeight ) top -= rectHeight; // Align to window bottom. else if ( viewportSize.height > rectHeight ) top = top - rect.bottom + viewportSize.height; // Align to top, never cutting the panel at top. else top = top - rect.top; } // If IE is in RTL, we have troubles with absolute // position and horizontal scrolls. Here we have a // series of hacks to workaround it. (#6146) if ( CKEDITOR.env.ie ) { var offsetParent = new CKEDITOR.dom.element( element.$.offsetParent ), scrollParent = offsetParent; // Quirks returns <body>, but standards returns <html>. if ( scrollParent.getName() == 'html' ) scrollParent = scrollParent.getDocument().getBody(); if ( scrollParent.getComputedStyle( 'direction' ) == 'rtl' ) { // For IE8, there is not much logic on this, but it works. if ( CKEDITOR.env.ie8Compat ) left -= element.getDocument().getDocumentElement().$.scrollLeft * 2; else left -= ( offsetParent.$.scrollWidth - offsetParent.$.clientWidth ); } } // Trigger the onHide event of the previously active panel to prevent // incorrect styles from being applied (#6170) var innerElement = element.getFirst(), activePanel; if ( ( activePanel = innerElement.getCustomData( 'activePanel' ) ) ) activePanel.onHide && activePanel.onHide.call( this, 1 ); innerElement.setCustomData( 'activePanel', this ); element.setStyles( { top : top + 'px', left : left + 'px' } ); element.setOpacity( 1 ); } , this ); panel.isLoaded ? panelLoad() : panel.onLoad = panelLoad; // Set the panel frame focus, so the blur event gets fired. CKEDITOR.tools.setTimeout( function() { iframe.$.contentWindow.focus(); // We need this get fired manually because of unfired focus() function. this.allowBlur( true ); }, 0, this); }, CKEDITOR.env.air ? 200 : 0, this); this.visible = 1; if ( this.onShow ) this.onShow.call( this ); isShowing = 0; }, hide : function( returnFocus ) { if ( this.visible && ( !this.onHide || this.onHide.call( this ) !== true ) ) { this.hideChild(); // Blur previously focused element. (#6671) CKEDITOR.env.gecko && this._.iframe.getFrameDocument().$.activeElement.blur(); this.element.setStyle( 'display', 'none' ); this.visible = 0; this.element.getFirst().removeCustomData( 'activePanel' ); // Return focus properly. (#6247) var focusReturn = returnFocus !== false && this._.returnFocus; if ( focusReturn ) { // Webkit requires focus moved out panel iframe first. if ( CKEDITOR.env.webkit && focusReturn.type ) focusReturn.getWindow().$.focus(); focusReturn.focus(); } } }, allowBlur : function( allow ) // Prevent editor from hiding the panel. #3222. { var panel = this._.panel; if ( allow != undefined ) panel.allowBlur = allow; return panel.allowBlur; }, showAsChild : function( panel, blockName, offsetParent, corner, offsetX, offsetY ) { // Skip reshowing of child which is already visible. if ( this._.activeChild == panel && panel._.panel._.offsetParentId == offsetParent.getId() ) return; this.hideChild(); panel.onHide = CKEDITOR.tools.bind( function() { // Use a timeout, so we give time for this menu to get // potentially focused. CKEDITOR.tools.setTimeout( function() { if ( !this._.focused ) this.hide(); }, 0, this ); }, this ); this._.activeChild = panel; this._.focused = false; panel.showBlock( blockName, offsetParent, corner, offsetX, offsetY ); /* #3767 IE: Second level menu may not have borders */ if ( CKEDITOR.env.ie7Compat || ( CKEDITOR.env.ie8 && CKEDITOR.env.ie6Compat ) ) { setTimeout(function() { panel.element.getChild( 0 ).$.style.cssText += ''; }, 100); } }, hideChild : function() { var activeChild = this._.activeChild; if ( activeChild ) { delete activeChild.onHide; // Sub panels don't manage focus. (#7881) delete activeChild._.returnFocus; delete this._.activeChild; activeChild.hide(); } } } }); CKEDITOR.on( 'instanceDestroyed', function() { var isLastInstance = CKEDITOR.tools.isEmpty( CKEDITOR.instances ); for ( var i in panels ) { var panel = panels[ i ]; // Safe to destroy it since there're no more instances.(#4241) if ( isLastInstance ) panel.destroy(); // Panel might be used by other instances, just hide them.(#4552) else panel.element.hide(); } // Remove the registration. isLastInstance && ( panels = {} ); } ); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'panel', { beforeInit : function( editor ) { editor.ui.addHandler( CKEDITOR.UI_PANEL, CKEDITOR.ui.panel.handler ); } }); /** * Panel UI element. * @constant * @example */ CKEDITOR.UI_PANEL = 'panel'; CKEDITOR.ui.panel = function( document, definition ) { // Copy all definition properties to this object. if ( definition ) CKEDITOR.tools.extend( this, definition ); // Set defaults. CKEDITOR.tools.extend( this, { className : '', css : [] }); this.id = CKEDITOR.tools.getNextId(); this.document = document; this._ = { blocks : {} }; }; /** * Transforms a rich combo definition in a {@link CKEDITOR.ui.richCombo} * instance. * @type Object * @example */ CKEDITOR.ui.panel.handler = { create : function( definition ) { return new CKEDITOR.ui.panel( definition ); } }; CKEDITOR.ui.panel.prototype = { renderHtml : function( editor ) { var output = []; this.render( editor, output ); return output.join( '' ); }, /** * Renders the combo. * @param {CKEDITOR.editor} editor The editor instance which this button is * to be used by. * @param {Array} output The output array to which append the HTML relative * to this button. * @example */ render : function( editor, output ) { var id = this.id; output.push( '<div class="', editor.skinClass ,'"' + ' lang="', editor.langCode, '"' + ' role="presentation"' + // iframe loading need sometime, keep the panel hidden(#4186). ' style="display:none;z-index:' + ( editor.config.baseFloatZIndex + 1 ) + '">' + '<div' + ' id=', id, ' dir=', editor.lang.dir, ' role="presentation"' + ' class="cke_panel cke_', editor.lang.dir ); if ( this.className ) output.push( ' ', this.className ); output.push( '">' ); if ( this.forceIFrame || this.css.length ) { output.push( '<iframe id="', id, '_frame"' + ' frameborder="0"' + ' role="application" src="javascript:void(' ); output.push( // Support for custom document.domain in IE. CKEDITOR.env.isCustomDomain() ? '(function(){' + 'document.open();' + 'document.domain=\'' + document.domain + '\';' + 'document.close();' + '})()' : '0' ); output.push( ')"></iframe>' ); } output.push( '</div>' + '</div>' ); return id; }, getHolderElement : function() { var holder = this._.holder; if ( !holder ) { if ( this.forceIFrame || this.css.length ) { var iframe = this.document.getById( this.id + '_frame' ), parentDiv = iframe.getParent(), dir = parentDiv.getAttribute( 'dir' ), className = parentDiv.getParent().getAttribute( 'class' ), langCode = parentDiv.getParent().getAttribute( 'lang' ), doc = iframe.getFrameDocument(); // Make it scrollable on iOS. (#8308) CKEDITOR.env.iOS && parentDiv.setStyles( { 'overflow' : 'scroll', '-webkit-overflow-scrolling' : 'touch' }); var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev ) { this.isLoaded = true; if ( this.onLoad ) this.onLoad(); }, this ) ); var data = '<!DOCTYPE html>' + '<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' + '<head>' + '<style>.' + className + '_container{visibility:hidden}</style>' + CKEDITOR.tools.buildStyleHtml( this.css ) + '</head>' + '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' + ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"></body>' + '<\/html>'; doc.write( data ); var win = doc.getWindow(); // Register the CKEDITOR global. win.$.CKEDITOR = CKEDITOR; // Arrow keys for scrolling is only preventable with 'keypress' event in Opera (#4534). doc.on( 'key' + ( CKEDITOR.env.opera? 'press':'down' ), function( evt ) { var keystroke = evt.data.getKeystroke(), dir = this.document.getById( this.id ).getAttribute( 'dir' ); // Delegate key processing to block. if ( this._.onKeyDown && this._.onKeyDown( keystroke ) === false ) { evt.data.preventDefault(); return; } // ESC/ARROW-LEFT(ltr) OR ARROW-RIGHT(rtl) if ( keystroke == 27 || keystroke == ( dir == 'rtl' ? 39 : 37 ) ) { if ( this.onEscape && this.onEscape( keystroke ) === false ) evt.data.preventDefault(); } }, this ); holder = doc.getBody(); holder.unselectable(); CKEDITOR.env.air && CKEDITOR.tools.callFunction( onLoad ); } else holder = this.document.getById( this.id ); this._.holder = holder; } return holder; }, addBlock : function( name, block ) { block = this._.blocks[ name ] = block instanceof CKEDITOR.ui.panel.block ? block : new CKEDITOR.ui.panel.block( this.getHolderElement(), block ); if ( !this._.currentBlock ) this.showBlock( name ); return block; }, getBlock : function( name ) { return this._.blocks[ name ]; }, showBlock : function( name ) { var blocks = this._.blocks, block = blocks[ name ], current = this._.currentBlock; // ARIA role works better in IE on the body element, while on the iframe // for FF. (#8864) var holder = !this.forceIFrame || CKEDITOR.env.ie ? this._.holder : this.document.getById( this.id + '_frame' ); if ( current ) { // Clean up the current block's effects on holder. holder.removeAttributes( current.attributes ); current.hide(); } this._.currentBlock = block; holder.setAttributes( block.attributes ); CKEDITOR.fire( 'ariaWidget', holder ); // Reset the focus index, so it will always go into the first one. block._.focusIndex = -1; this._.onKeyDown = block.onKeyDown && CKEDITOR.tools.bind( block.onKeyDown, block ); block.show(); return block; }, destroy : function() { this.element && this.element.remove(); } }; CKEDITOR.ui.panel.block = CKEDITOR.tools.createClass( { $ : function( blockHolder, blockDefinition ) { this.element = blockHolder.append( blockHolder.getDocument().createElement( 'div', { attributes : { 'tabIndex' : -1, 'class' : 'cke_panel_block', 'role' : 'presentation' }, styles : { display : 'none' } }) ); // Copy all definition properties to this object. if ( blockDefinition ) CKEDITOR.tools.extend( this, blockDefinition ); if ( !this.attributes.title ) this.attributes.title = this.attributes[ 'aria-label' ]; this.keys = {}; this._.focusIndex = -1; // Disable context menu for panels. this.element.disableContextMenu(); }, _ : { /** * Mark the item specified by the index as current activated. */ markItem: function( index ) { if ( index == -1 ) return; var links = this.element.getElementsByTag( 'a' ); var item = links.getItem( this._.focusIndex = index ); // Safari need focus on the iframe window first(#3389), but we need // lock the blur to avoid hiding the panel. if ( CKEDITOR.env.webkit || CKEDITOR.env.opera ) item.getDocument().getWindow().focus(); item.focus(); this.onMark && this.onMark( item ); } }, proto : { show : function() { this.element.setStyle( 'display', '' ); }, hide : function() { if ( !this.onHide || this.onHide.call( this ) !== true ) this.element.setStyle( 'display', 'none' ); }, onKeyDown : function( keystroke ) { var keyAction = this.keys[ keystroke ]; switch ( keyAction ) { // Move forward. case 'next' : var index = this._.focusIndex, links = this.element.getElementsByTag( 'a' ), link; while ( ( link = links.getItem( ++index ) ) ) { // Move the focus only if the element is marked with // the _cke_focus and it it's visible (check if it has // width). if ( link.getAttribute( '_cke_focus' ) && link.$.offsetWidth ) { this._.focusIndex = index; link.focus(); break; } } return false; // Move backward. case 'prev' : index = this._.focusIndex; links = this.element.getElementsByTag( 'a' ); while ( index > 0 && ( link = links.getItem( --index ) ) ) { // Move the focus only if the element is marked with // the _cke_focus and it it's visible (check if it has // width). if ( link.getAttribute( '_cke_focus' ) && link.$.offsetWidth ) { this._.focusIndex = index; link.focus(); break; } } return false; case 'click' : case 'mouseup' : index = this._.focusIndex; link = index >= 0 && this.element.getElementsByTag( 'a' ).getItem( index ); if ( link ) link.$[ keyAction ] ? link.$[ keyAction ]() : link.$[ 'on' + keyAction ](); return false; } return true; } } }); /** * Fired when a panel is added to the document * @name CKEDITOR#ariaWidget * @event * @param {Object} holder The element wrapping the panel */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { // Base HTML entities. var htmlbase = 'nbsp,gt,lt,amp'; var entities = // Latin-1 Entities 'quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,' + 'not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,' + 'cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,' + // Symbols 'fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,' + 'alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,' + 'forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,' + 'radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,' + 'equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,' + 'rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,' + // Other Special Characters 'circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,' + 'rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,' + 'euro'; // Latin Letters Entities var latin = 'Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,' + 'Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,' + 'Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,' + 'agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,' + 'ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,' + 'otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,' + 'OElig,oelig,Scaron,scaron,Yuml'; // Greek Letters Entities. var greek = 'Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,' + 'Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,' + 'beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,' + 'omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,' + 'upsih,piv'; /** * Create a mapping table between one character and its entity form from a list of entity names. * @param reverse {Boolean} Whether to create a reverse map from the entity string form to an actual character. */ function buildTable( entities, reverse ) { var table = {}, regex = []; // Entities that the browsers DOM don't transform to the final char // automatically. var specialTable = { nbsp : '\u00A0', // IE | FF shy : '\u00AD', // IE gt : '\u003E', // IE | FF | -- | Opera lt : '\u003C', // IE | FF | Safari | Opera amp : '\u0026', // ALL apos : '\u0027', // IE quot : '\u0022' // IE }; entities = entities.replace( /\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g, function( match, entity ) { var org = reverse ? '&' + entity + ';' : specialTable[ entity ], result = reverse ? specialTable[ entity ] : '&' + entity + ';'; table[ org ] = result; regex.push( org ); return ''; }); if ( !reverse && entities ) { // Transforms the entities string into an array. entities = entities.split( ',' ); // Put all entities inside a DOM element, transforming them to their // final chars. var div = document.createElement( 'div' ), chars; div.innerHTML = '&' + entities.join( ';&' ) + ';'; chars = div.innerHTML; div = null; // Add all chars to the table. for ( var i = 0 ; i < chars.length ; i++ ) { var charAt = chars.charAt( i ); table[ charAt ] = '&' + entities[ i ] + ';'; regex.push( charAt ); } } table.regex = regex.join( reverse ? '|' : '' ); return table; } CKEDITOR.plugins.add( 'entities', { afterInit : function( editor ) { var config = editor.config; var dataProcessor = editor.dataProcessor, htmlFilter = dataProcessor && dataProcessor.htmlFilter; if ( htmlFilter ) { // Mandatory HTML base entities. var selectedEntities = []; if ( config.basicEntities !== false ) selectedEntities.push( htmlbase ); if ( config.entities ) { if ( selectedEntities.length ) selectedEntities.push( entities ); if ( config.entities_latin ) selectedEntities.push( latin ); if ( config.entities_greek ) selectedEntities.push( greek ); if ( config.entities_additional ) selectedEntities.push( config.entities_additional ); } var entitiesTable = buildTable( selectedEntities.join( ',' ) ); // Create the Regex used to find entities in the text, leave it matches nothing if entities are empty. var entitiesRegex = entitiesTable.regex ? '[' + entitiesTable.regex + ']' : 'a^'; delete entitiesTable.regex; if ( config.entities && config.entities_processNumerical ) entitiesRegex = '[^ -~]|' + entitiesRegex ; entitiesRegex = new RegExp( entitiesRegex, 'g' ); function getEntity( character ) { return config.entities_processNumerical == 'force' || !entitiesTable[ character ] ? '&#' + character.charCodeAt(0) + ';' : entitiesTable[ character ]; } // Decode entities that the browsers has transformed // at first place. var baseEntitiesTable = buildTable( [ htmlbase, 'shy' ].join( ',' ) , true ), baseEntitiesRegex = new RegExp( baseEntitiesTable.regex, 'g' ); function getChar( character ) { return baseEntitiesTable[ character ]; } htmlFilter.addRules( { text : function( text ) { return text.replace( baseEntitiesRegex, getChar ) .replace( entitiesRegex, getEntity ); } }); } } }); })(); /** * Whether to escape basic HTML entities in the document, including: * <ul> * <li><code>nbsp</code></li> * <li><code>gt</code></li> * <li><code>lt</code></li> * <li><code>amp</code></li> * </ul> * <strong>Note:</strong> It should not be subject to change unless when outputting a non-HTML data format like BBCode. * @type Boolean * @default <code>true</code> * @example * config.basicEntities = false; */ CKEDITOR.config.basicEntities = true; /** * Whether to use HTML entities in the output. * @name CKEDITOR.config.entities * @type Boolean * @default <code>true</code> * @example * config.entities = false; */ CKEDITOR.config.entities = true; /** * Whether to convert some Latin characters (Latin alphabet No&#46; 1, ISO 8859-1) * to HTML entities. The list of entities can be found in the * <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.2.1">W3C HTML 4.01 Specification, section 24.2.1</a>. * @name CKEDITOR.config.entities_latin * @type Boolean * @default <code>true</code> * @example * config.entities_latin = false; */ CKEDITOR.config.entities_latin = true; /** * Whether to convert some symbols, mathematical symbols, and Greek letters to * HTML entities. This may be more relevant for users typing text written in Greek. * The list of entities can be found in the * <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.3.1">W3C HTML 4.01 Specification, section 24.3.1</a>. * @name CKEDITOR.config.entities_greek * @type Boolean * @default <code>true</code> * @example * config.entities_greek = false; */ CKEDITOR.config.entities_greek = true; /** * Whether to convert all remaining characters not included in the ASCII * character table to their relative decimal numeric representation of HTML entity. * When set to <code>force</code>, it will convert all entities into this format. * For example the phrase "This is Chinese: &#27721;&#35821;." is output * as "This is Chinese: &amp;#27721;&amp;#35821;." * @name CKEDITOR.config.entities_processNumerical * @type Boolean|String * @default <code>false</code> * @example * config.entities_processNumerical = true; * config.entities_processNumerical = 'force'; //Converts from "&nbsp;" into "&#160;"; */ /** * A comma separated list of additional entities to be used. Entity names * or numbers must be used in a form that excludes the "&amp;" prefix and the ";" ending. * @name CKEDITOR.config.entities_additional * @default <code>'#39'</code> (The single quote (') character.) * @type String * @example * config.entities_additional = '#1049'; // Adds Cyrillic capital letter Short I (&#1049;). */ CKEDITOR.config.entities_additional = '#39';
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { CKEDITOR.plugins.add( 'iframe', { requires : [ 'dialog', 'fakeobjects' ], init : function( editor ) { var pluginName = 'iframe', lang = editor.lang.iframe; CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/iframe.js' ); editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) ); editor.addCss( 'img.cke_iframe' + '{' + 'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/placeholder.png' ) + ');' + 'background-position: center center;' + 'background-repeat: no-repeat;' + 'border: 1px solid #a9a9a9;' + 'width: 80px;' + 'height: 80px;' + '}' ); editor.ui.addButton( 'Iframe', { label : lang.toolbar, command : pluginName }); editor.on( 'doubleclick', function( evt ) { var element = evt.data.element; if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' ) evt.data.dialog = 'iframe'; }); if ( editor.addMenuItems ) { editor.addMenuItems( { iframe : { label : lang.title, command : 'iframe', group : 'image' } }); } // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu ) { editor.contextMenu.addListener( function( element, selection ) { if ( element && element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'iframe' ) return { iframe : CKEDITOR.TRISTATE_OFF }; }); } }, afterInit : function( editor ) { var dataProcessor = editor.dataProcessor, dataFilter = dataProcessor && dataProcessor.dataFilter; if ( dataFilter ) { dataFilter.addRules( { elements : { iframe : function( element ) { return editor.createFakeParserElement( element, 'cke_iframe', 'iframe', true ); } } }); } } }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { // Map 'true' and 'false' values to match W3C's specifications // http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5 var checkboxValues = { scrolling : { 'true' : 'yes', 'false' : 'no' }, frameborder : { 'true' : '1', 'false' : '0' } }; function loadValue( iframeNode ) { var isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox; if ( iframeNode.hasAttribute( this.id ) ) { var value = iframeNode.getAttribute( this.id ); if ( isCheckbox ) this.setValue( checkboxValues[ this.id ][ 'true' ] == value.toLowerCase() ); else this.setValue( value ); } } function commitValue( iframeNode ) { var isRemove = this.getValue() === '', isCheckbox = this instanceof CKEDITOR.ui.dialog.checkbox, value = this.getValue(); if ( isRemove ) iframeNode.removeAttribute( this.att || this.id ); else if ( isCheckbox ) iframeNode.setAttribute( this.id, checkboxValues[ this.id ][ value ] ); else iframeNode.setAttribute( this.att || this.id, value ); } CKEDITOR.dialog.add( 'iframe', function( editor ) { var iframeLang = editor.lang.iframe, commonLang = editor.lang.common, dialogadvtab = editor.plugins.dialogadvtab; return { title : iframeLang.title, minWidth : 350, minHeight : 260, onShow : function() { // Clear previously saved elements. this.fakeImage = this.iframeNode = null; var fakeImage = this.getSelectedElement(); if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'iframe' ) { this.fakeImage = fakeImage; var iframeNode = editor.restoreRealElement( fakeImage ); this.iframeNode = iframeNode; this.setupContent( iframeNode ); } }, onOk : function() { var iframeNode; if ( !this.fakeImage ) iframeNode = new CKEDITOR.dom.element( 'iframe' ); else iframeNode = this.iframeNode; // A subset of the specified attributes/styles // should also be applied on the fake element to // have better visual effect. (#5240) var extraStyles = {}, extraAttributes = {}; this.commitContent( iframeNode, extraStyles, extraAttributes ); // Refresh the fake image. var newFakeImage = editor.createFakeElement( iframeNode, 'cke_iframe', 'iframe', true ); newFakeImage.setAttributes( extraAttributes ); newFakeImage.setStyles( extraStyles ); if ( this.fakeImage ) { newFakeImage.replace( this.fakeImage ); editor.getSelection().selectElement( newFakeImage ); } else editor.insertElement( newFakeImage ); }, contents : [ { id : 'info', label : commonLang.generalTab, accessKey : 'I', elements : [ { type : 'vbox', padding : 0, children : [ { id : 'src', type : 'text', label : commonLang.url, required : true, validate : CKEDITOR.dialog.validate.notEmpty( iframeLang.noUrl ), setup : loadValue, commit : commitValue } ] }, { type : 'hbox', children : [ { id : 'width', type : 'text', style : 'width:100%', labelLayout : 'vertical', label : commonLang.width, validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.width ) ), setup : loadValue, commit : commitValue }, { id : 'height', type : 'text', style : 'width:100%', labelLayout : 'vertical', label : commonLang.height, validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.height ) ), setup : loadValue, commit : commitValue }, { id : 'align', type : 'select', 'default' : '', items : [ [ commonLang.notSet , '' ], [ commonLang.alignLeft , 'left' ], [ commonLang.alignRight , 'right' ], [ commonLang.alignTop , 'top' ], [ commonLang.alignMiddle , 'middle' ], [ commonLang.alignBottom , 'bottom' ] ], style : 'width:100%', labelLayout : 'vertical', label : commonLang.align, setup : function( iframeNode, fakeImage ) { loadValue.apply( this, arguments ); if ( fakeImage ) { var fakeImageAlign = fakeImage.getAttribute( 'align' ); this.setValue( fakeImageAlign && fakeImageAlign.toLowerCase() || '' ); } }, commit : function( iframeNode, extraStyles, extraAttributes ) { commitValue.apply( this, arguments ); if ( this.getValue() ) extraAttributes.align = this.getValue(); } } ] }, { type : 'hbox', widths : [ '50%', '50%' ], children : [ { id : 'scrolling', type : 'checkbox', label : iframeLang.scrolling, setup : loadValue, commit : commitValue }, { id : 'frameborder', type : 'checkbox', label : iframeLang.border, setup : loadValue, commit : commitValue } ] }, { type : 'hbox', widths : [ '50%', '50%' ], children : [ { id : 'name', type : 'text', label : commonLang.name, setup : loadValue, commit : commitValue }, { id : 'title', type : 'text', label : commonLang.advisoryTitle, setup : loadValue, commit : commitValue } ] }, { id : 'longdesc', type : 'text', label : commonLang.longDescr, setup : loadValue, commit : commitValue } ] }, dialogadvtab && dialogadvtab.createAdvancedTab( editor, { id:1, classes:1, styles:1 }) ] }; }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Special Character plugin */ CKEDITOR.plugins.add( 'specialchar', { requires : [ 'dialog' ], // List of available localizations. availableLangs : { cs:1, cy:1, de:1, el:1, en:1, eo:1, et:1, fa:1, fi:1, fr:1, he:1, hr:1, it:1, nb:1, nl:1, no:1, 'pt-br':1, tr:1, ug:1, 'zh-cn':1 }, init : function( editor ) { var pluginName = 'specialchar', plugin = this; // Register the dialog. CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/specialchar.js' ); editor.addCommand( pluginName, { exec : function() { var langCode = editor.langCode; langCode = plugin.availableLangs[ langCode ] ? langCode : 'en'; CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ), function() { CKEDITOR.tools.extend( editor.lang.specialChar, plugin.langEntries[ langCode ] ); editor.openDialog( pluginName ); }); }, modes : { wysiwyg:1 }, canUndo : false }); // Register the toolbar button. editor.ui.addButton( 'SpecialChar', { label : editor.lang.specialChar.toolbar, command : pluginName }); } } ); /** * The list of special characters visible in the Special Character dialog window. * @type Array * @example * config.specialChars = [ '&quot;', '&rsquo;', [ '&custom;', 'Custom label' ] ]; * config.specialChars = config.specialChars.concat( [ '&quot;', [ '&rsquo;', 'Custom label' ] ] ); */ CKEDITOR.config.specialChars = [ '!','&quot;','#','$','%','&amp;',"'",'(',')','*','+','-','.','/', '0','1','2','3','4','5','6','7','8','9',':',';', '&lt;','=','&gt;','?','@', 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O', 'P','Q','R','S','T','U','V','W','X','Y','Z', '[',']','^','_','`', 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p', 'q','r','s','t','u','v','w','x','y','z', '{','|','}','~', "&euro;", "&lsquo;", "&rsquo;", "&ldquo;", "&rdquo;", "&ndash;", "&mdash;", "&iexcl;", "&cent;", "&pound;", "&curren;", "&yen;", "&brvbar;", "&sect;", "&uml;", "&copy;", "&ordf;", "&laquo;", "&not;", "&reg;", "&macr;", "&deg;", "&sup2;", "&sup3;", "&acute;", "&micro;", "&para;", "&middot;", "&cedil;", "&sup1;", "&ordm;", "&raquo;", "&frac14;", "&frac12;", "&frac34;", "&iquest;", "&Agrave;", "&Aacute;", "&Acirc;", "&Atilde;", "&Auml;", "&Aring;", "&AElig;", "&Ccedil;", "&Egrave;", "&Eacute;", "&Ecirc;", "&Euml;", "&Igrave;", "&Iacute;", "&Icirc;", "&Iuml;", "&ETH;", "&Ntilde;", "&Ograve;", "&Oacute;", "&Ocirc;", "&Otilde;", "&Ouml;", "&times;", "&Oslash;", "&Ugrave;", "&Uacute;", "&Ucirc;", "&Uuml;", "&Yacute;", "&THORN;", "&szlig;", "&agrave;", "&aacute;", "&acirc;", "&atilde;", "&auml;", "&aring;", "&aelig;", "&ccedil;", "&egrave;", "&eacute;", "&ecirc;", "&euml;", "&igrave;", "&iacute;", "&icirc;", "&iuml;", "&eth;", "&ntilde;", "&ograve;", "&oacute;", "&ocirc;", "&otilde;", "&ouml;", "&divide;", "&oslash;", "&ugrave;", "&uacute;", "&ucirc;", "&uuml;", "&yacute;", "&thorn;", "&yuml;", "&OElig;", "&oelig;", "&#372;", "&#374", "&#373", "&#375;", "&sbquo;", "&#8219;", "&bdquo;", "&hellip;", "&trade;", "&#9658;", "&bull;", "&rarr;", "&rArr;", "&hArr;", "&diams;", "&asymp;" ];
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'cy', { euro: 'Arwydd yr Ewro', lsquo: 'Dyfynnod chwith unigol', rsquo: 'Dyfynnod dde unigol', ldquo: 'Dyfynnod chwith dwbl', rdquo: 'Dyfynnod dde dwbl', ndash: 'Cysylltnod en', mdash: 'Cysylltnod em', iexcl: 'Ebychnod gwrthdro', cent: 'Arwydd sent', pound: 'Arwydd punt', curren: 'Arwydd arian cyfred', yen: 'Arwydd yen', brvbar: 'Bar toriedig', sect: 'Arwydd adran', uml: 'Didolnod', copy: 'Arwydd hawlfraint', ordf: 'Dangosydd benywaidd', laquo: 'Dyfynnod dwbl ar ongl i\'r chwith', not: 'Arwydd Nid', reg: 'Arwydd cofrestredig', macr: 'Macron', deg: 'Arwydd gradd', sup2: 'Dau uwchsgript', sup3: 'Tri uwchsgript', acute: 'Acen ddyrchafedig', micro: 'Arwydd micro', para: 'Arwydd pilcrow', middot: 'Dot canol', cedil: 'Sedila', sup1: 'Un uwchsgript', ordm: 'Dangosydd gwrywaidd', raquo: 'Dyfynnod dwbl ar ongl i\'r dde', frac14: 'Ffracsiwn cyffredin un cwarter', frac12: 'Ffracsiwn cyffredin un hanner', frac34: 'Ffracsiwn cyffredin tri chwarter', iquest: 'Marc cwestiwn gwrthdroëdig', Agrave: 'Priflythyren A Lladinaidd gydag acen ddisgynedig', Aacute: 'Priflythyren A Lladinaidd gydag acen ddyrchafedig', Acirc: 'Priflythyren A Lladinaidd gydag acen grom', Atilde: 'Priflythyren A Lladinaidd gyda thild', Auml: 'Priflythyren A Lladinaidd gyda didolnod', Aring: 'Priflythyren A Lladinaidd gyda chylch uwchben', AElig: 'Priflythyren Æ Lladinaidd', Ccedil: 'Priflythyren C Lladinaidd gyda sedila', Egrave: 'Priflythyren E Lladinaidd gydag acen ddisgynedig', Eacute: 'Priflythyren E Lladinaidd gydag acen ddyrchafedig', Ecirc: 'Priflythyren E Lladinaidd gydag acen grom', Euml: 'Priflythyren E Lladinaidd gyda didolnod', Igrave: 'Priflythyren I Lladinaidd gydag acen ddisgynedig', Iacute: 'Priflythyren I Lladinaidd gydag acen ddyrchafedig', Icirc: 'Priflythyren I Lladinaidd gydag acen grom', Iuml: 'Priflythyren I Lladinaidd gyda didolnod', ETH: 'Priflythyren Eth', Ntilde: 'Priflythyren N Lladinaidd gyda thild', Ograve: 'Priflythyren O Lladinaidd gydag acen ddisgynedig', Oacute: 'Priflythyren O Lladinaidd gydag acen ddyrchafedig', Ocirc: 'Priflythyren O Lladinaidd gydag acen grom', Otilde: 'Priflythyren O Lladinaidd gyda thild', Ouml: 'Priflythyren O Lladinaidd gyda didolnod', times: 'Arwydd lluosi', Oslash: 'Priflythyren O Lladinaidd gyda strôc', Ugrave: 'Priflythyren U Lladinaidd gydag acen ddisgynedig', Uacute: 'Priflythyren U Lladinaidd gydag acen ddyrchafedig', Ucirc: 'Priflythyren U Lladinaidd gydag acen grom', Uuml: 'Priflythyren U Lladinaidd gyda didolnod', Yacute: 'Priflythyren Y Lladinaidd gydag acen ddyrchafedig', THORN: 'Priflythyren Thorn', szlig: 'Llythyren s fach Lladinaidd siarp ', agrave: 'Llythyren a fach Lladinaidd gydag acen ddisgynedig', aacute: 'Llythyren a fach Lladinaidd gydag acen ddyrchafedig', acirc: 'Llythyren a fach Lladinaidd gydag acen grom', atilde: 'Llythyren a fach Lladinaidd gyda thild', auml: 'Llythyren a fach Lladinaidd gyda didolnod', aring: 'Llythyren a fach Lladinaidd gyda chylch uwchben', aelig: 'Llythyren æ fach Lladinaidd', ccedil: 'Llythyren c fach Lladinaidd gyda sedila', egrave: 'Llythyren e fach Lladinaidd gydag acen ddisgynedig', eacute: 'Llythyren e fach Lladinaidd gydag acen ddyrchafedig', ecirc: 'Llythyren e fach Lladinaidd gydag acen grom', euml: 'Llythyren e fach Lladinaidd gyda didolnod', igrave: 'Llythyren i fach Lladinaidd gydag acen ddisgynedig', iacute: 'Llythyren i fach Lladinaidd gydag acen ddyrchafedig', icirc: 'Llythyren i fach Lladinaidd gydag acen grom', iuml: 'Llythyren i fach Lladinaidd gyda didolnod', eth: 'Llythyren eth fach', ntilde: 'Llythyren n fach Lladinaidd gyda thild', ograve: 'Llythyren o fach Lladinaidd gydag acen ddisgynedig', oacute: 'Llythyren o fach Lladinaidd gydag acen ddyrchafedig', ocirc: 'Llythyren o fach Lladinaidd gydag acen grom', otilde: 'Llythyren o fach Lladinaidd gyda thild', ouml: 'Llythyren o fach Lladinaidd gyda didolnod', divide: 'Arwydd rhannu', oslash: 'Llyth', ugrave: 'Llythyren u fach Lladinaidd gydag acen ddisgynedig', uacute: 'Llythyren u fach Lladinaidd gydag acen ddyrchafedig', ucirc: 'Llythyren u fach Lladinaidd gydag acen grom', uuml: 'Llythyren u fach Lladinaidd gyda didolnod', yacute: 'Llythyren y fach Lladinaidd gydag acen ddisgynedig', thorn: 'Llythyren o fach Lladinaidd gyda strôc', yuml: 'Llythyren y fach Lladinaidd gyda didolnod', OElig: 'Priflythyren cwlwm OE Lladinaidd ', oelig: 'Priflythyren cwlwm oe Lladinaidd ', '372': 'Priflythyren W gydag acen grom', '374': 'Priflythyren Y gydag acen grom', '373': 'Llythyren w fach gydag acen grom', '375': 'Llythyren y fach gydag acen grom', sbquo: 'Dyfynnod sengl 9-isel', '8219': 'Dyfynnod sengl 9-uchel cildro', bdquo: 'Dyfynnod dwbl 9-isel', hellip: 'Coll geiriau llorweddol', trade: 'Arwydd marc masnachol', '9658': 'Pwyntydd du i\'r dde', bull: 'Bwled', rarr: 'Saeth i\'r dde', rArr: 'Saeth ddwbl i\'r dde', hArr: 'Saeth ddwbl i\'r chwith', diams: 'Siwt diemwnt du', asymp: 'Bron yn hafal iddo' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'tr', { euro: 'Euro işareti', lsquo: 'Sol tek tırnak işareti', rsquo: 'Sağ tek tırnak işareti', ldquo: 'Sol çift tırnak işareti', rdquo: 'Sağ çift tırnak işareti', ndash: 'En tire', mdash: 'Em tire', iexcl: 'Ters ünlem işareti', cent: 'Cent işareti', pound: 'Pound işareti', curren: 'Para birimi işareti', yen: 'Yen işareti', brvbar: 'Kırık bar', sect: 'Bölüm işareti', uml: 'İki sesli harfin ayrılması', copy: 'Telif hakkı işareti', ordf: 'Dişil sıralı gösterge', laquo: 'Sol-işaret çift açı tırnak işareti', not: 'Not işareti', reg: 'Kayıtlı işareti', macr: 'Makron', deg: 'Derece işareti', sup2: 'İkili üstsimge', sup3: 'Üçlü üstsimge', acute: 'Aksan işareti', micro: 'Mikro işareti', para: 'Pilcrow işareti', middot: 'Orta nokta', cedil: 'Kedilla', sup1: 'Üstsimge', ordm: 'Eril sıralı gösterge', raquo: 'Sağ işaret çift açı tırnak işareti', frac14: 'Bayağı kesrin dörtte biri', frac12: 'Bayağı kesrin bir yarım', frac34: 'Bayağı kesrin dörtte üç', iquest: 'Ters soru işareti', Agrave: 'Aksanlı latin harfi', Aacute: 'Aşırı aksanıyla Latin harfi', Acirc: 'Çarpık Latin harfi', Atilde: 'Tilde latin harfi', Auml: 'Sesli harf ayrılımlıı latin harfi', Aring: 'Halkalı latin büyük A harfi', AElig: 'Latin büyük Æ harfi', Ccedil: 'Latin büyük C harfi ile kedilla', Egrave: 'Aksanlı latin büyük E harfi', Eacute: 'Aşırı vurgulu latin büyük E harfi', Ecirc: 'Çarpık latin büyük E harfi', Euml: 'Sesli harf ayrılımlıı latin büyük E harfi', Igrave: 'Aksanlı latin büyük I harfi', Iacute: 'Aşırı aksanlı latin büyük I harfi', Icirc: 'Çarpık latin büyük I harfi', Iuml: 'Sesli harf ayrılımlıı latin büyük I harfi', ETH: 'Latin büyük Eth harfi', Ntilde: 'Tildeli latin büyük N harfi', Ograve: 'Aksanlı latin büyük O harfi', Oacute: 'Aşırı aksanlı latin büyük O harfi', Ocirc: 'Çarpık latin büyük O harfi', Otilde: 'Tildeli latin büyük O harfi', Ouml: 'Sesli harf ayrılımlı latin büyük O harfi', times: 'Çarpma işareti', Oslash: 'Vurgulu latin büyük O harfi', Ugrave: 'Aksanlı latin büyük U harfi', Uacute: 'Aşırı aksanlı latin büyük U harfi', Ucirc: 'Çarpık latin büyük U harfi', Uuml: 'Sesli harf ayrılımlı latin büyük U harfi', Yacute: 'Aşırı aksanlı latin büyük Y harfi', THORN: 'Latin büyük Thorn harfi', szlig: 'Latin küçük keskin s harfi', agrave: 'Aksanlı latin küçük a harfi', aacute: 'Aşırı aksanlı latin küçük a harfi', acirc: 'Çarpık latin küçük a harfi', atilde: 'Tildeli latin küçük a harfi', auml: 'Sesli harf ayrılımlı latin küçük a harfi', aring: 'Halkalı latin küçük a harfi', aelig: 'Latin büyük æ harfi', ccedil: 'Kedillalı latin küçük c harfi', egrave: 'Aksanlı latin küçük e harfi', eacute: 'Aşırı aksanlı latin küçük e harfi', ecirc: 'Çarpık latin küçük e harfi', euml: 'Sesli harf ayrılımlı latin küçük e harfi', igrave: 'Aksanlı latin küçük i harfi', iacute: 'Aşırı aksanlı latin küçük i harfi', icirc: 'Çarpık latin küçük i harfi', iuml: 'Sesli harf ayrılımlı latin küçük i harfi', eth: 'Latin küçük eth harfi', ntilde: 'Tildeli latin küçük n harfi', ograve: 'Aksanlı latin küçük o harfi', oacute: 'Aşırı aksanlı latin küçük o harfi', ocirc: 'Çarpık latin küçük o harfi', otilde: 'Tildeli latin küçük o harfi', ouml: 'Sesli harf ayrılımlı latin küçük o harfi', divide: 'Bölme işareti', oslash: 'Vurgulu latin küçük o harfi', ugrave: 'Aksanlı latin küçük u harfi', uacute: 'Aşırı aksanlı latin küçük u harfi', ucirc: 'Çarpık latin küçük u harfi', uuml: 'Sesli harf ayrılımlı latin küçük u harfi', yacute: 'Aşırı aksanlı latin küçük y harfi', thorn: 'Latin küçük thorn harfi', yuml: 'Sesli harf ayrılımlı latin küçük y harfi', OElig: 'Latin büyük bağlı OE harfi', oelig: 'Latin küçük bağlı oe harfi', '372': 'Çarpık latin büyük W harfi', '374': 'Çarpık latin büyük Y harfi', '373': 'Çarpık latin küçük w harfi', '375': 'Çarpık latin küçük y harfi', sbquo: 'Tek düşük-9 tırnak işareti', '8219': 'Tek yüksek-ters-9 tırnak işareti', bdquo: 'Çift düşük-9 tırnak işareti', hellip: 'Yatay elips', trade: 'Marka tescili işareti', '9658': 'Siyah sağ işaret işaretçisi', bull: 'Koyu nokta', rarr: 'Sağa doğru ok', rArr: 'Sağa doğru çift ok', hArr: 'Sol, sağ çift ok', diams: 'Siyah elmas takımı', asymp: 'Hemen hemen eşit' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'nb', { euro: 'Eurosymbol', lsquo: 'Venstre enkelt anførselstegn', rsquo: 'Høyre enkelt anførselstegn', ldquo: 'Venstre dobbelt anførselstegn', rdquo: 'Høyre anførsesltegn', ndash: 'Kort tankestrek', mdash: 'Lang tankestrek', iexcl: 'Omvendt utropstegn', cent: 'Centsymbol', pound: 'Pundsymbol', curren: 'Valutategn', yen: 'Yensymbol', brvbar: 'Brutt loddrett strek', sect: 'Paragraftegn', uml: 'Tøddel', copy: 'Copyrighttegn', ordf: 'Feminin ordensindikator', laquo: 'Venstre anførselstegn', not: 'Negasjonstegn', reg: 'Registrert varemerke-tegn', macr: 'Makron', deg: 'Gradsymbol', sup2: 'Hevet totall', sup3: 'Hevet tretall', acute: 'Akutt aksent', micro: 'Mikrosymbol', para: 'Avsnittstegn', middot: 'Midtstilt prikk', cedil: 'Cedille', sup1: 'Hevet ettall', ordm: 'Maskulin ordensindikator', raquo: 'Høyre anførselstegn', frac14: 'Fjerdedelsbrøk', frac12: 'Halvbrøk', frac34: 'Tre fjerdedelers brøk', iquest: 'Omvendt spørsmålstegn', Agrave: 'Stor A med grav aksent', Aacute: 'Stor A med akutt aksent', Acirc: 'Stor A med cirkumfleks', Atilde: 'Stor A med tilde', Auml: 'Stor A med tøddel', Aring: 'Stor Å', AElig: 'Stor Æ', Ccedil: 'Stor C med cedille', Egrave: 'Stor E med grav aksent', Eacute: 'Stor E med akutt aksent', Ecirc: 'Stor E med cirkumfleks', Euml: 'Stor E med tøddel', Igrave: 'Stor I med grav aksent', Iacute: 'Stor I med akutt aksent', Icirc: 'Stor I med cirkumfleks', Iuml: 'Stor I med tøddel', ETH: 'Stor Edd/stungen D', Ntilde: 'Stor N med tilde', Ograve: 'Stor O med grav aksent', Oacute: 'Stor O med akutt aksent', Ocirc: 'Stor O med cirkumfleks', Otilde: 'Stor O med tilde', Ouml: 'Stor O med tøddel', times: 'Multiplikasjonstegn', Oslash: 'Stor Ø', Ugrave: 'Stor U med grav aksent', Uacute: 'Stor U med akutt aksent', Ucirc: 'Stor U med cirkumfleks', Uuml: 'Stor U med tøddel', Yacute: 'Stor Y med akutt aksent', THORN: 'Stor Thorn', szlig: 'Liten dobbelt-s/Eszett', agrave: 'Liten a med grav aksent', aacute: 'Liten a med akutt aksent', acirc: 'Liten a med cirkumfleks', atilde: 'Liten a med tilde', auml: 'Liten a med tøddel', aring: 'Liten å', aelig: 'Liten æ', ccedil: 'Liten c med cedille', egrave: 'Liten e med grav aksent', eacute: 'Liten e med akutt aksent', ecirc: 'Liten e med cirkumfleks', euml: 'Liten e med tøddel', igrave: 'Liten i med grav aksent', iacute: 'Liten i med akutt aksent', icirc: 'Liten i med cirkumfleks', iuml: 'Liten i med tøddel', eth: 'Liten edd/stungen d', ntilde: 'Liten n med tilde', ograve: 'Liten o med grav aksent', oacute: 'Liten o med akutt aksent', ocirc: 'Liten o med cirkumfleks', otilde: 'Liten o med tilde', ouml: 'Liten o med tøddel', divide: 'Divisjonstegn', oslash: 'Liten ø', ugrave: 'Liten u med grav aksent', uacute: 'Liten u med akutt aksent', ucirc: 'Liten u med cirkumfleks', uuml: 'Liten u med tøddel', yacute: 'Liten y med akutt aksent', thorn: 'Liten thorn', yuml: 'Liten y med tøddel', OElig: 'Stor ligatur av O og E', oelig: 'Liten ligatur av o og e', '372': 'Stor W med cirkumfleks', '374': 'Stor Y med cirkumfleks', '373': 'Liten w med cirkumfleks', '375': 'Liten y med cirkumfleks', sbquo: 'Enkelt lavt 9-anførselstegn', '8219': 'Enkelt høyt reversert 9-anførselstegn', bdquo: 'Dobbelt lavt 9-anførselstegn', hellip: 'Ellipse', trade: 'Varemerkesymbol', '9658': 'Svart høyrevendt peker', bull: 'Tykk interpunkt', rarr: 'Høyrevendt pil', rArr: 'Dobbel høyrevendt pil', hArr: 'Dobbel venstrevendt pil', diams: 'Svart ruter', asymp: 'Omtrent likhetstegn' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'fr', { euro: 'Symbole Euro', lsquo: 'Guillemet simple ouvrant', rsquo: 'Guillemet simple fermant', ldquo: 'Guillemet double ouvrant', rdquo: 'Guillemet double fermant', ndash: 'Tiret haut', mdash: 'Tiret bas underscore', iexcl: 'Point d\'exclamation inversé', cent: 'Symbole Cent', pound: 'Symbole Livre Sterling', curren: 'Symbole monétaire', yen: 'Symbole Yen', brvbar: 'Barre verticale scindée', sect: 'Section', uml: 'Tréma', copy: 'Symbole Copyright', ordf: 'Indicateur ordinal féminin', laquo: 'Guillemet français ouvrant', not: 'Crochet de négation', reg: 'Marque déposée', macr: 'Macron', deg: 'Degré', sup2: 'Exposant 2', sup3: '\\tExposant 3', acute: 'Accent aigu', micro: 'Omicron', para: 'Paragraphe', middot: 'Point médian', cedil: 'Cédille', sup1: '\\tExposant 1', ordm: 'Indicateur ordinal masculin', raquo: 'Guillemet français fermant', frac14: 'Un quart', frac12: 'Un demi', frac34: 'Trois quarts', iquest: 'Point d\'interrogation inversé', Agrave: 'A majuscule accent grave', Aacute: 'A majuscule accent aigu', Acirc: 'A majuscule accent circonflexe', Atilde: 'A majuscule avec caron', Auml: 'A majuscule tréma', Aring: 'A majuscule avec un rond au-dessus', AElig: 'Æ majuscule ligaturés', Ccedil: 'C majuscule cédille', Egrave: 'E majuscule accent grave', Eacute: 'E majuscule accent aigu', Ecirc: 'E majuscule accent circonflexe', Euml: 'E majuscule tréma', Igrave: 'I majuscule accent grave', Iacute: 'I majuscule accent aigu', Icirc: 'I majuscule accent circonflexe', Iuml: 'I majuscule tréma', ETH: 'Lettre majuscule islandaise ED', Ntilde: 'N majuscule avec caron', Ograve: 'O majuscule accent grave', Oacute: 'O majuscule accent aigu', Ocirc: 'O majuscule accent circonflexe', Otilde: 'O majuscule avec caron', Ouml: 'O majuscule tréma', times: 'Multiplication', Oslash: 'O majuscule barré', Ugrave: 'U majuscule accent grave', Uacute: 'U majuscule accent aigu', Ucirc: 'U majuscule accent circonflexe', Uuml: 'U majuscule tréma', Yacute: 'Y majuscule accent aigu', THORN: 'Lettre islandaise Thorn majuscule', szlig: 'Lettre minuscule allemande s dur', agrave: 'a minuscule accent grave', aacute: 'a minuscule accent aigu', acirc: 'a minuscule accent circonflexe', atilde: 'a minuscule avec caron', auml: 'a minuscule tréma', aring: 'a minuscule avec un rond au-dessus', aelig: 'æ minuscule ligaturés', ccedil: 'c minuscule cédille', egrave: 'e minuscule accent grave', eacute: 'e minuscule accent aigu', ecirc: 'e minuscule accent circonflexe', euml: 'e minuscule tréma', igrave: 'i minuscule accent grave', iacute: 'i minuscule accent aigu', icirc: 'i minuscule accent circonflexe', iuml: 'i minuscule tréma', eth: 'Lettre minuscule islandaise ED', ntilde: 'n minuscule avec caron', ograve: 'o minuscule accent grave', oacute: 'o minuscule accent aigu', ocirc: 'o minuscule accent circonflexe', otilde: 'o minuscule avec caron', ouml: 'o minuscule tréma', divide: 'Division', oslash: 'o minuscule barré', ugrave: 'u minuscule accent grave', uacute: 'u minuscule accent aigu', ucirc: 'u minuscule accent circonflexe', uuml: 'u minuscule tréma', yacute: 'y minuscule accent aigu', thorn: 'Lettre islandaise thorn minuscule', yuml: 'y minuscule tréma', OElig: 'ligature majuscule latine Œ', oelig: 'ligature minuscule latine œ', '372': 'W majuscule accent circonflexe', '374': 'Y majuscule accent circonflexe', '373': 'w minuscule accent circonflexe', '375': 'y minuscule accent circonflexe', sbquo: 'Guillemet simple fermant (anglais)', '8219': 'Guillemet-virgule supérieur culbuté', bdquo: 'Guillemet-virgule double inférieur', hellip: 'Points de suspension', trade: 'Marque commerciale (trade mark)', '9658': 'Flèche noire pointant vers la droite', bull: 'Gros point médian', rarr: 'Flèche vers la droite', rArr: 'Double flèche vers la droite', hArr: 'Double flèche vers la gauche', diams: 'Carreau noir', asymp: 'Presque égal' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'fa', { euro: 'نشان یورو', lsquo: 'علامت نقل قول تکی چپ', rsquo: 'علامت نقل قول تکی راست', ldquo: 'علامت دوتایی نقل قول چپ', rdquo: 'علامت دوتایی نقل قول راست', ndash: 'En dash', // MISSING mdash: 'Em dash', // MISSING iexcl: 'علامت گذاری به عنوان علامت تعجب وارونه', cent: 'نشان سنت', pound: 'نشان پوند', curren: 'نشان ارز', yen: 'نشان ین', brvbar: 'نوار شکسته', sect: 'نشان بخش', uml: 'Diaeresis', // MISSING copy: 'نشان کپی رایت', ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Left-pointing double angle quotation mark', // MISSING not: 'علامت ثبت نشده', reg: 'علامت ثبت شده', macr: 'Macron', // MISSING deg: 'نشان درجه', sup2: 'بالانویس دو', sup3: 'بالانویس سه', acute: 'لهجه غلیظ', micro: 'نشان مایکرو', para: 'Pilcrow sign', // MISSING middot: 'نقطه میانی', cedil: 'Cedilla', // MISSING sup1: 'Superscript one', // MISSING ordm: 'Masculine ordinal indicator', // MISSING raquo: 'نشان زاویه‌دار دوتایی نقل قول راست چین', frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Inverted question mark', // MISSING Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Rightwards arrow', // MISSING rArr: 'Rightwards double arrow', // MISSING hArr: 'جهت‌نمای دوتایی چپ به راست', diams: 'Black diamond suit', // MISSING asymp: 'تقریبا برابر با' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'eo', { euro: 'Eŭrosigno', lsquo: 'Supra 6-citilo', rsquo: 'Supra 9-citilo', ldquo: 'Supra 66-citilo', rdquo: 'Supra 99-citilo', ndash: 'Streketo', mdash: 'Substreko', iexcl: 'Renversita krisigno', cent: 'Cendosigno', pound: 'Pundosigno', curren: 'Monersigno', yen: 'Enosigno', brvbar: 'Rompita vertikala streko', sect: 'Kurba paragrafo', uml: 'Tremao', copy: 'Kopirajtosigno', ordf: 'Adjektiva numerfinaĵo', laquo: 'Duobla malplio-citilo', not: 'Negohoko', reg: 'Registrita marko', macr: 'Superstreko', deg: 'Gradosigno', sup2: 'Supra indico 2', sup3: 'Supra indico 3', acute: 'Dekstra korno', micro: 'Mikrosigno', para: 'Rekta paragrafo', middot: 'Meza punkto', cedil: 'Zoeto', sup1: 'Supra indico 1', ordm: 'Substantiva numerfinaĵo', raquo: 'Duobla plio-citilo', frac14: 'Kvaronosigno', frac12: 'Duonosigno', frac34: 'Trikvaronosigno', iquest: 'renversita demandosigno', Agrave: 'Latina ĉeflitero A kun liva korno', Aacute: 'Latina ĉeflitero A kun dekstra korno', Acirc: 'Latina ĉeflitero A kun ĉapelo', Atilde: 'Latina ĉeflitero A kun tildo', Auml: 'Latina ĉeflitero A kun tremao', Aring: 'Latina ĉeflitero A kun superringo', AElig: 'Latina ĉeflitera ligaturo Æ', Ccedil: 'Latina ĉeflitero C kun zoeto', Egrave: 'Latina ĉeflitero E kun liva korno', Eacute: 'Latina ĉeflitero E kun dekstra korno', Ecirc: 'Latina ĉeflitero E kun ĉapelo', Euml: 'Latina ĉeflitero E kun tremao', Igrave: 'Latina ĉeflitero I kun liva korno', Iacute: 'Latina ĉeflitero I kun dekstra korno', Icirc: 'Latina ĉeflitero I kun ĉapelo', Iuml: 'Latina ĉeflitero I kun tremao', ETH: 'Latina ĉeflitero islanda edo', Ntilde: 'Latina ĉeflitero N kun tildo', Ograve: 'Latina ĉeflitero O kun liva korno', Oacute: 'Latina ĉeflitero O kun dekstra korno', Ocirc: 'Latina ĉeflitero O kun ĉapelo', Otilde: 'Latina ĉeflitero O kun tildo', Ouml: 'Latina ĉeflitero O kun tremao', times: 'Multipliko', Oslash: 'Latina ĉeflitero O trastrekita', Ugrave: 'Latina ĉeflitero U kun liva korno', Uacute: 'Latina ĉeflitero U kun dekstra korno', Ucirc: 'Latina ĉeflitero U kun ĉapelo', Uuml: 'Latina ĉeflitero U kun tremao', Yacute: 'Latina ĉeflitero Y kun dekstra korno', THORN: 'Latina ĉeflitero islanda dorno', szlig: 'Latina etlitero germana sozo (akra s)', agrave: 'Latina etlitero a kun liva korno', aacute: 'Latina etlitero a kun dekstra korno', acirc: 'Latina etlitero a kun ĉapelo', atilde: 'Latina etlitero a kun tildo', auml: 'Latina etlitero a kun tremao', aring: 'Latina etlitero a kun superringo', aelig: 'Latina etlitera ligaturo æ', ccedil: 'Latina etlitero c kun zoeto', egrave: 'Latina etlitero e kun liva korno', eacute: 'Latina etlitero e kun dekstra korno', ecirc: 'Latina etlitero e kun ĉapelo', euml: 'Latina etlitero e kun tremao', igrave: 'Latina etlitero i kun liva korno', iacute: 'Latina etlitero i kun dekstra korno', icirc: 'Latina etlitero i kun ĉapelo', iuml: 'Latina etlitero i kun tremao', eth: 'Latina etlitero islanda edo', ntilde: 'Latina etlitero n kun tildo', ograve: 'Latina etlitero o kun liva korno', oacute: 'Latina etlitero o kun dekstra korno', ocirc: 'Latina etlitero o kun ĉapelo', otilde: 'Latina etlitero o kun tildo', ouml: 'Latina etlitero o kun tremao', divide: 'Dividosigno', oslash: 'Latina etlitero o trastrekita', ugrave: 'Latina etlitero u kun liva korno', uacute: 'Latina etlitero u kun dekstra korno', ucirc: 'Latina etlitero u kun ĉapelo', uuml: 'Latina etlitero u kun tremao', yacute: 'Latina etlitero y kun dekstra korno', thorn: 'Latina etlitero islanda dorno', yuml: 'Latina etlitero y kun tremao', OElig: 'Latina ĉeflitera ligaturo Œ', oelig: 'Latina etlitera ligaturo œ', '372': 'Latina ĉeflitero W kun ĉapelo', '374': 'Latina ĉeflitero Y kun ĉapelo', '373': 'Latina etlitero w kun ĉapelo', '375': 'Latina etlitero y kun ĉapelo', sbquo: 'Suba 9-citilo', '8219': 'Supra renversita 9-citilo', bdquo: 'Suba 99-citilo', hellip: 'Tripunkto', trade: 'Varmarka signo', '9658': 'Nigra sago dekstren', bull: 'Bulmarko', rarr: 'Sago dekstren', rArr: 'Duobla sago dekstren', hArr: 'Duobla sago maldekstren', diams: 'Nigra kvadrato', asymp: 'Preskaŭ egala' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'he', { euro: 'יורו', lsquo: 'Left single quotation mark', // MISSING rsquo: 'Right single quotation mark', // MISSING ldquo: 'Left double quotation mark', // MISSING rdquo: 'Right double quotation mark', // MISSING ndash: 'En dash', // MISSING mdash: 'Em dash', // MISSING iexcl: 'Inverted exclamation mark', // MISSING cent: 'Cent sign', // MISSING pound: 'Pound sign', // MISSING curren: 'Currency sign', // MISSING yen: 'Yen sign', // MISSING brvbar: 'Broken bar', // MISSING sect: 'Section sign', // MISSING uml: 'Diaeresis', // MISSING copy: 'Copyright sign', // MISSING ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Left-pointing double angle quotation mark', // MISSING not: 'Not sign', // MISSING reg: 'Registered sign', // MISSING macr: 'Macron', // MISSING deg: 'Degree sign', // MISSING sup2: 'Superscript two', // MISSING sup3: 'Superscript three', // MISSING acute: 'Acute accent', // MISSING micro: 'Micro sign', // MISSING para: 'Pilcrow sign', // MISSING middot: 'Middle dot', // MISSING cedil: 'Cedilla', // MISSING sup1: 'Superscript one', // MISSING ordm: 'Masculine ordinal indicator', // MISSING raquo: 'Right-pointing double angle quotation mark', // MISSING frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Inverted question mark', // MISSING Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Rightwards arrow', // MISSING rArr: 'Rightwards double arrow', // MISSING hArr: 'Left right double arrow', // MISSING diams: 'Black diamond suit', // MISSING asymp: 'Almost equal to' // MISSING });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'de', { euro: 'Euro Zeichen', lsquo: 'Hochkomma links', rsquo: 'Hochkomma rechts', ldquo: 'Anführungszeichen links', rdquo: 'Anführungszeichen rechts', ndash: 'kleiner Strich', mdash: 'mittlerer Strich', iexcl: 'invertiertes Ausrufezeichen', cent: 'Cent', pound: 'Pfund', curren: 'Währung', yen: 'Yen', brvbar: 'gestrichelte Linie', sect: '§ Zeichen', uml: 'Diäresis', copy: 'Copyright', ordf: 'Feminine ordinal Anzeige', laquo: 'Nach links zeigenden Doppel-Winkel Anführungszeichen', not: 'Not-Zeichen', reg: 'Registriert', macr: 'Längezeichen', deg: 'Grad', sup2: 'Hoch 2', sup3: 'Hoch 3', acute: 'Akzentzeichen ', micro: 'Micro', para: 'Pilcrow-Zeichen', middot: 'Mittelpunkt', cedil: 'Cedilla', sup1: 'Hoch 1', ordm: 'Männliche Ordnungszahl Anzeige', raquo: 'Nach rechts zeigenden Doppel-Winkel Anführungszeichen', frac14: 'ein Viertel', frac12: 'Hälfte', frac34: 'Dreiviertel', iquest: 'Umgekehrtes Fragezeichen', Agrave: 'Lateinischer Buchstabe A mit AkzentGrave', Aacute: 'Lateinischer Buchstabe A mit Akutakzent', Acirc: 'Lateinischer Buchstabe A mit Zirkumflex', Atilde: 'Lateinischer Buchstabe A mit Tilde', Auml: 'Lateinischer Buchstabe A mit Trema', Aring: 'Lateinischer Buchstabe A mit Ring oben', AElig: 'Lateinischer Buchstabe Æ', Ccedil: 'Lateinischer Buchstabe C mit Cedille', Egrave: 'Lateinischer Buchstabe E mit AkzentGrave', Eacute: 'Lateinischer Buchstabe E mit Akutakzent', Ecirc: 'Lateinischer Buchstabe E mit Zirkumflex', Euml: 'Lateinischer Buchstabe E Trema', Igrave: 'Lateinischer Buchstabe I mit AkzentGrave', Iacute: 'Lateinischer Buchstabe I mit Akutakzent', Icirc: 'Lateinischer Buchstabe I mit Zirkumflex', Iuml: 'Lateinischer Buchstabe I mit Trema', ETH: 'Lateinischer Buchstabe Eth', Ntilde: 'Lateinischer Buchstabe N mit Tilde', Ograve: 'Lateinischer Buchstabe O mit AkzentGrave', Oacute: 'Lateinischer Buchstabe O mit Akutakzent', Ocirc: 'Lateinischer Buchstabe O mit Zirkumflex', Otilde: 'Lateinischer Buchstabe O mit Tilde', Ouml: 'Lateinischer Buchstabe O mit Trema', times: 'Multiplikation', Oslash: 'Lateinischer Buchstabe O durchgestrichen', Ugrave: 'Lateinischer Buchstabe U mit Akzentgrave', Uacute: 'Lateinischer Buchstabe U mit Akutakzent', Ucirc: 'Lateinischer Buchstabe U mit Zirkumflex', Uuml: 'Lateinischer Buchstabe a mit Trema', Yacute: 'Lateinischer Buchstabe a mit Akzent', THORN: 'Lateinischer Buchstabe mit Dorn', szlig: 'Kleiner lateinischer Buchstabe scharfe s', agrave: 'Kleiner lateinischer Buchstabe a mit Accent grave', aacute: 'Kleiner lateinischer Buchstabe a mit Akut', acirc: 'Lateinischer Buchstabe a mit Zirkumflex', atilde: 'Lateinischer Buchstabe a mit Tilde', auml: 'Kleiner lateinischer Buchstabe a mit Trema', aring: 'Kleiner lateinischer Buchstabe a mit Ring oben', aelig: 'Lateinischer Buchstabe æ', ccedil: 'Kleiner lateinischer Buchstabe c mit Cedille', egrave: 'Kleiner lateinischer Buchstabe e mit Accent grave', eacute: 'Kleiner lateinischer Buchstabe e mit Akut', ecirc: 'Kleiner lateinischer Buchstabe e mit Zirkumflex', euml: 'Kleiner lateinischer Buchstabe e mit Trema', igrave: 'Kleiner lateinischer Buchstabe i mit AkzentGrave', iacute: 'Kleiner lateinischer Buchstabe i mit Akzent', icirc: 'Kleiner lateinischer Buchstabe i mit Zirkumflex', iuml: 'Kleiner lateinischer Buchstabe i mit Trema', eth: 'Kleiner lateinischer Buchstabe eth', ntilde: 'Kleiner lateinischer Buchstabe n mit Tilde', ograve: 'Kleiner lateinischer Buchstabe o mit Accent grave', oacute: 'Kleiner lateinischer Buchstabe o mit Akzent', ocirc: 'Kleiner lateinischer Buchstabe o mit Zirkumflex', otilde: 'Lateinischer Buchstabe i mit Tilde', ouml: 'Kleiner lateinischer Buchstabe o mit Trema', divide: 'Divisionszeichen', oslash: 'Kleiner lateinischer Buchstabe o durchgestrichen', ugrave: 'Kleiner lateinischer Buchstabe u mit Accent grave', uacute: 'Kleiner lateinischer Buchstabe u mit Akut', ucirc: 'Kleiner lateinischer Buchstabe u mit Zirkumflex', uuml: 'Kleiner lateinischer Buchstabe u mit Trema', yacute: 'Kleiner lateinischer Buchstabe y mit Akut', thorn: 'Kleiner lateinischer Buchstabe Dorn', yuml: 'Kleiner lateinischer Buchstabe y mit Trema', OElig: 'Lateinischer Buchstabe Ligatur OE', oelig: 'Kleiner lateinischer Buchstabe Ligatur OE', '372': 'Lateinischer Buchstabe W mit Zirkumflex', '374': 'Lateinischer Buchstabe Y mit Zirkumflex', '373': 'Kleiner lateinischer Buchstabe w mit Zirkumflex', '375': 'Kleiner lateinischer Buchstabe y mit Zirkumflex', sbquo: 'Tiefergestelltes Komma', '8219': 'Rumgedrehtes Komma', bdquo: 'Doppeltes Anführungszeichen unten', hellip: 'horizontale Auslassungspunkte', trade: 'Handelszeichen', '9658': 'Dreickspfeil rechts', bull: 'Bullet', rarr: 'Pfeil rechts', rArr: 'Doppelpfeil rechts', hArr: 'Doppelpfeil links', diams: 'Karo', asymp: 'Ungefähr' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'ku', { euro: 'نیشانه‌ی یۆرۆ', lsquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری تاکی چه‌پ', rsquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری تاکی ڕاست', ldquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری دووهێنده‌ی چه‌پ', rdquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری دووهێنده‌ی ڕاست', ndash: 'ته‌قه‌ڵی کورت', mdash: 'ته‌قه‌ڵی درێژ', iexcl: 'نیشانه‌ی هه‌ڵه‌وگێڕی سه‌رسوڕمێنه‌ر', cent: 'نیشانه‌ی سه‌نت', pound: 'نیشانه‌ی پاوه‌ند', curren: 'نیشانه‌ی دراو', yen: 'نیشانه‌ی یه‌نی ژاپۆنی', brvbar: 'شریتی ئه‌ستوونی پچڕاو', sect: 'نیشانه‌ی دوو s له‌سه‌ریه‌ك', uml: 'خاڵ', copy: 'نیشانه‌ی مافی چاپ', ordf: 'هێڵ له‌سه‌ر پیتی a', laquo: 'دوو تیری به‌دووایه‌کی چه‌پ', not: 'نیشانه‌ی نه‌خێر', reg: 'نیشانه‌ی R له‌ناو بازنه‌دا', macr: 'ماکڕوون', deg: 'نیشانه‌ی پله', sup2: 'سه‌رنووسی دوو', sup3: 'سه‌رنووسی سێ', acute: 'لاری تیژ', micro: 'نیشانه‌ی u لق درێژی چه‌پی خواروو', para: 'نیشانه‌یپه‌ڕه‌گراف', middot: 'ناوه‌ڕاستی خاڵ', cedil: 'نیشانه‌ی c ژێر چووکره‌', sup1: 'سه‌رنووسی یه‌ك', ordm: 'هێڵ له‌ژێر پیتی o', raquo: 'دوو تیری به‌دووایه‌کی ڕاست', frac14: 'یه‌ك له‌سه‌ر چووار', frac12: 'یه‌ك له‌سه‌ر دوو', frac34: 'سێ له‌سه‌ر چووار', iquest: 'هێمای هه‌ڵه‌وگێری پرسیار', Agrave: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Aacute: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Acirc: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Atilde: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Auml: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Aring: 'پیتی لاتینی گه‌وره‌ی Å', AElig: 'پیتی لاتینی گه‌وره‌ی Æ', Ccedil: 'پیتی لاتینی C-ی گه‌وره‌ له‌گه‌ڵ ژێر چووکره‌', Egrave: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Eacute: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ecirc: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Euml: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Igrave: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Iacute: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Icirc: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Iuml: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', ETH: 'پیتی لاتینی E-ی گه‌وره‌ی', Ntilde: 'پیتی لاتینی N-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Ograve: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Oacute: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ocirc: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Otilde: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Ouml: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', times: 'نیشانه‌ی لێکدان', Oslash: 'پیتی لاتینی گه‌وره‌ی Ø له‌گه‌ڵ هێمای دڵ وه‌ستان', Ugrave: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Uacute: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ucirc: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Uuml: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Yacute: 'پیتی لاتینی Y-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', THORN: 'پیتی لاتینی دڕکی گه‌وره', szlig: 'پیتی لاتنی نووك تیژی s', agrave: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', aacute: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', acirc: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', atilde: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ زه‌ڕه‌', auml: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', aring: 'پیتی لاتینی å-ی بچووك', aelig: 'پیتی لاتینی æ-ی بچووك', ccedil: 'پیتی لاتینی c-ی بچووك له‌گه‌ڵ ژێر چووکره‌', egrave: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', eacute: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ecirc: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', euml: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', igrave: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', iacute: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', icirc: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', iuml: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', eth: 'پیتی لاتینی e-ی بچووك', ntilde: 'پیتی لاتینی n-ی بچووك له‌گه‌ڵ زه‌ڕه‌', ograve: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', oacute: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ocirc: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', otilde: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ زه‌ڕه‌', ouml: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', divide: 'نیشانه‌ی دابه‌ش', oslash: 'پیتی لاتینی گه‌وره‌ی ø له‌گه‌ڵ هێمای دڵ وه‌ستان', ugrave: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', uacute: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ucirc: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', uuml: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', yacute: 'پیتی لاتینی y-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', thorn: 'پیتی لاتینی دڕکی بچووك', yuml: 'پیتی لاتینی y-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', OElig: 'پیتی لاتینی گه‌وره‌ی پێکه‌وه‌نووسراوی OE', oelig: 'پیتی لاتینی بچووکی پێکه‌وه‌نووسراوی oe', '372': 'پیتی لاتینی W-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '374': 'پیتی لاتینی Y-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '373': 'پیتی لاتینی w-ی بچووکی له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '375': 'پیتی لاتینی y-ی بچووکی له‌گه‌ڵ نیشانه‌ له‌سه‌ری', sbquo: 'نیشانه‌ی فاریزه‌ی نزم', '8219': 'نیشانه‌ی فاریزه‌ی به‌رزی پێچه‌وانه', bdquo: 'دوو فاریزه‌ی ته‌نیش یه‌ك', hellip: 'ئاسۆیی بازنه', trade: 'نیشانه‌ی بازرگانی', '9658': 'ئاراسته‌ی ڕه‌شی ده‌ستی ڕاست', bull: 'فیشه‌ك', rarr: 'تیری ده‌ستی ڕاست', rArr: 'دووتیری ده‌ستی ڕاست', hArr: 'دوو تیری ڕاست و چه‌پ', diams: 'ڕه‌شی پاقڵاوه‌یی', asymp: 'نیشانه‌ی یه‌کسانه' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'no', { euro: 'Eurosymbol', lsquo: 'Venstre enkelt anførselstegn', rsquo: 'Høyre enkelt anførselstegn', ldquo: 'Venstre dobbelt anførselstegn', rdquo: 'Høyre anførsesltegn', ndash: 'Kort tankestrek', mdash: 'Lang tankestrek', iexcl: 'Omvendt utropstegn', cent: 'Centsymbol', pound: 'Pundsymbol', curren: 'Valutategn', yen: 'Yensymbol', brvbar: 'Brutt loddrett strek', sect: 'Paragraftegn', uml: 'Tøddel', copy: 'Copyrighttegn', ordf: 'Feminin ordensindikator', laquo: 'Venstre anførselstegn', not: 'Negasjonstegn', reg: 'Registrert varemerke-tegn', macr: 'Makron', deg: 'Gradsymbol', sup2: 'Hevet totall', sup3: 'Hevet tretall', acute: 'Akutt aksent', micro: 'Mikrosymbol', para: 'Avsnittstegn', middot: 'Midtstilt prikk', cedil: 'Cedille', sup1: 'Hevet ettall', ordm: 'Maskulin ordensindikator', raquo: 'Høyre anførselstegn', frac14: 'Fjerdedelsbrøk', frac12: 'Halvbrøk', frac34: 'Tre fjerdedelers brøk', iquest: 'Omvendt spørsmålstegn', Agrave: 'Stor A med grav aksent', Aacute: 'Stor A med akutt aksent', Acirc: 'Stor A med cirkumfleks', Atilde: 'Stor A med tilde', Auml: 'Stor A med tøddel', Aring: 'Stor Å', AElig: 'Stor Æ', Ccedil: 'Stor C med cedille', Egrave: 'Stor E med grav aksent', Eacute: 'Stor E med akutt aksent', Ecirc: 'Stor E med cirkumfleks', Euml: 'Stor E med tøddel', Igrave: 'Stor I med grav aksent', Iacute: 'Stor I med akutt aksent', Icirc: 'Stor I med cirkumfleks', Iuml: 'Stor I med tøddel', ETH: 'Stor Edd/stungen D', Ntilde: 'Stor N med tilde', Ograve: 'Stor O med grav aksent', Oacute: 'Stor O med akutt aksent', Ocirc: 'Stor O med cirkumfleks', Otilde: 'Stor O med tilde', Ouml: 'Stor O med tøddel', times: 'Multiplikasjonstegn', Oslash: 'Stor Ø', Ugrave: 'Stor U med grav aksent', Uacute: 'Stor U med akutt aksent', Ucirc: 'Stor U med cirkumfleks', Uuml: 'Stor U med tøddel', Yacute: 'Stor Y med akutt aksent', THORN: 'Stor Thorn', szlig: 'Liten dobbelt-s/Eszett', agrave: 'Liten a med grav aksent', aacute: 'Liten a med akutt aksent', acirc: 'Liten a med cirkumfleks', atilde: 'Liten a med tilde', auml: 'Liten a med tøddel', aring: 'Liten å', aelig: 'Liten æ', ccedil: 'Liten c med cedille', egrave: 'Liten e med grav aksent', eacute: 'Liten e med akutt aksent', ecirc: 'Liten e med cirkumfleks', euml: 'Liten e med tøddel', igrave: 'Liten i med grav aksent', iacute: 'Liten i med akutt aksent', icirc: 'Liten i med cirkumfleks', iuml: 'Liten i med tøddel', eth: 'Liten edd/stungen d', ntilde: 'Liten n med tilde', ograve: 'Liten o med grav aksent', oacute: 'Liten o med akutt aksent', ocirc: 'Liten o med cirkumfleks', otilde: 'Liten o med tilde', ouml: 'Liten o med tøddel', divide: 'Divisjonstegn', oslash: 'Liten ø', ugrave: 'Liten u med grav aksent', uacute: 'Liten u med akutt aksent', ucirc: 'Liten u med cirkumfleks', uuml: 'Liten u med tøddel', yacute: 'Liten y med akutt aksent', thorn: 'Liten thorn', yuml: 'Liten y med tøddel', OElig: 'Stor ligatur av O og E', oelig: 'Liten ligatur av o og e', '372': 'Stor W med cirkumfleks', '374': 'Stor Y med cirkumfleks', '373': 'Liten w med cirkumfleks', '375': 'Liten y med cirkumfleks', sbquo: 'Enkelt lavt 9-anførselstegn', '8219': 'Enkelt høyt reversert 9-anførselstegn', bdquo: 'Dobbelt lavt 9-anførselstegn', hellip: 'Ellipse', trade: 'Varemerkesymbol', '9658': 'Svart høyrevendt peker', bull: 'Tykk interpunkt', rarr: 'Høyrevendt pil', rArr: 'Dobbel høyrevendt pil', hArr: 'Dobbel venstrevendt pil', diams: 'Svart ruter', asymp: 'Omtrent likhetstegn' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'el', { euro: 'Σύμβολο Ευρώ', lsquo: 'Αριστερός χαρακτήρας μονού εισαγωγικού', rsquo: 'Δεξιός χαρακτήρας μονού εισαγωγικού', ldquo: 'Αριστερός χαρακτήρας διπλού εισαγωγικού', rdquo: 'Δεξιός χαρακτήρας διπλού εισαγωγικού', ndash: 'Παύλα en', mdash: 'Παύλα em', iexcl: 'Ανάποδο θαυμαστικό', cent: 'Σύμβολο Σεντ', pound: 'Σύμβολο λίρας', curren: 'Σύμβολο συναλλαγματικής μονάδας', yen: 'Σύμβολο Γιέν', brvbar: 'Σπασμένη μπάρα', sect: 'Σύμβολο τμήματος', uml: 'Διαίρεση', copy: 'Σύμβολο πνευματικών δικαιωμάτων', ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Left-pointing double angle quotation mark', // MISSING not: 'Not sign', // MISSING reg: 'Registered sign', // MISSING macr: 'Macron', // MISSING deg: 'Degree sign', // MISSING sup2: 'Superscript two', // MISSING sup3: 'Superscript three', // MISSING acute: 'Acute accent', // MISSING micro: 'Micro sign', // MISSING para: 'Pilcrow sign', // MISSING middot: 'Middle dot', // MISSING cedil: 'Cedilla', // MISSING sup1: 'Superscript one', // MISSING ordm: 'Masculine ordinal indicator', // MISSING raquo: 'Right-pointing double angle quotation mark', // MISSING frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Inverted question mark', // MISSING Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Rightwards arrow', // MISSING rArr: 'Rightwards double arrow', // MISSING hArr: 'Left right double arrow', // MISSING diams: 'Black diamond suit', // MISSING asymp: 'Almost equal to' // MISSING });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'it', { euro: 'Simbolo Euro', lsquo: 'Virgoletta singola sinistra', rsquo: 'Virgoletta singola destra', ldquo: 'Virgolette aperte', rdquo: 'Virgolette chiuse', ndash: 'Trattino', mdash: 'Trattino lungo', iexcl: 'Punto esclavamativo invertito', cent: 'Simbolo Cent', pound: 'Simbolo Sterlina', curren: 'Simbolo Moneta', yen: 'Simbolo Yen', brvbar: 'Barra interrotta', sect: 'Simbolo di sezione', uml: 'Dieresi', copy: 'Simbolo Copyright', ordf: 'Indicatore ordinale femminile', laquo: 'Virgolette basse aperte', not: 'Nessun segno', reg: 'Simbolo Registrato', macr: 'Macron', deg: 'Simbolo Grado', sup2: 'Apice Due', sup3: 'Apice Tre', acute: 'Accento acuto', micro: 'Simbolo Micro', para: 'Simbolo Paragrafo', middot: 'Punto centrale', cedil: 'Cediglia', sup1: 'Apice Uno', ordm: 'Indicatore ordinale maschile', raquo: 'Virgolette basse chiuse', frac14: 'Frazione volgare un quarto', frac12: 'Frazione volgare un mezzo', frac34: 'Frazione volgare tre quarti', iquest: 'Punto interrogativo invertito', Agrave: 'Lettera maiuscola latina A con accento grave', Aacute: 'Lettera maiuscola latina A con accento acuto', Acirc: 'Lettera maiuscola latina A con accento circonflesso', Atilde: 'Lettera maiuscola latina A con tilde', Auml: 'Lettera maiuscola latina A con dieresi', Aring: 'Lettera maiuscola latina A con anello sopra', AElig: 'Lettera maiuscola latina AE', Ccedil: 'Lettera maiuscola latina C con cediglia', Egrave: 'Lettera maiuscola latina E con accento grave', Eacute: 'Lettera maiuscola latina E con accento acuto', Ecirc: 'Lettera maiuscola latina E con accento circonflesso', Euml: 'Lettera maiuscola latina E con dieresi', Igrave: 'Lettera maiuscola latina I con accento grave', Iacute: 'Lettera maiuscola latina I con accento acuto', Icirc: 'Lettera maiuscola latina I con accento circonflesso', Iuml: 'Lettera maiuscola latina I con dieresi', ETH: 'Lettera maiuscola latina Eth', Ntilde: 'Lettera maiuscola latina N con tilde', Ograve: 'Lettera maiuscola latina O con accento grave', Oacute: 'Lettera maiuscola latina O con accento acuto', Ocirc: 'Lettera maiuscola latina O con accento circonflesso', Otilde: 'Lettera maiuscola latina O con tilde', Ouml: 'Lettera maiuscola latina O con dieresi', times: 'Simbolo di moltiplicazione', Oslash: 'Lettera maiuscola latina O barrata', Ugrave: 'Lettera maiuscola latina U con accento grave', Uacute: 'Lettera maiuscola latina U con accento acuto', Ucirc: 'Lettera maiuscola latina U con accento circonflesso', Uuml: 'Lettera maiuscola latina U con accento circonflesso', Yacute: 'Lettera maiuscola latina Y con accento acuto', THORN: 'Lettera maiuscola latina Thorn', szlig: 'Lettera latina minuscola doppia S', agrave: 'Lettera minuscola latina a con accento grave', aacute: 'Lettera minuscola latina a con accento acuto', acirc: 'Lettera minuscola latina a con accento circonflesso', atilde: 'Lettera minuscola latina a con tilde', auml: 'Lettera minuscola latina a con dieresi', aring: 'Lettera minuscola latina a con anello superiore', aelig: 'Lettera minuscola latina ae', ccedil: 'Lettera minuscola latina c con cediglia', egrave: 'Lettera minuscola latina e con accento grave', eacute: 'Lettera minuscola latina e con accento acuto', ecirc: 'Lettera minuscola latina e con accento circonflesso', euml: 'Lettera minuscola latina e con dieresi', igrave: 'Lettera minuscola latina i con accento grave', iacute: 'Lettera minuscola latina i con accento acuto', icirc: 'Lettera minuscola latina i con accento circonflesso', iuml: 'Lettera minuscola latina i con dieresi', eth: 'Lettera minuscola latina eth', ntilde: 'Lettera minuscola latina n con tilde', ograve: 'Lettera minuscola latina o con accento grave', oacute: 'Lettera minuscola latina o con accento acuto', ocirc: 'Lettera minuscola latina o con accento circonflesso', otilde: 'Lettera minuscola latina o con tilde', ouml: 'Lettera minuscola latina o con dieresi', divide: 'Simbolo di divisione', oslash: 'Lettera minuscola latina o barrata', ugrave: 'Lettera minuscola latina u con accento grave', uacute: 'Lettera minuscola latina u con accento acuto', ucirc: 'Lettera minuscola latina u con accento circonflesso', uuml: 'Lettera minuscola latina u con dieresi', yacute: 'Lettera minuscola latina y con accento acuto', thorn: 'Lettera minuscola latina thorn', yuml: 'Lettera minuscola latina y con dieresi', OElig: 'Legatura maiuscola latina OE', oelig: 'Legatura minuscola latina oe', '372': 'Lettera maiuscola latina W con accento circonflesso', '374': 'Lettera maiuscola latina Y con accento circonflesso', '373': 'Lettera minuscola latina w con accento circonflesso', '375': 'Lettera minuscola latina y con accento circonflesso', sbquo: 'Singola virgoletta bassa low-9', '8219': 'Singola virgoletta bassa low-9 inversa', bdquo: 'Doppia virgoletta bassa low-9', hellip: 'Ellissi orizzontale', trade: 'Simbolo TM', '9658': 'Puntatore nero rivolto verso destra', bull: 'Punto', rarr: 'Freccia verso destra', rArr: 'Doppia freccia verso destra', hArr: 'Doppia freccia sinistra destra', diams: 'Simbolo nero diamante', asymp: 'Quasi uguale a' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'nl', { euro: 'Euro-teken', lsquo: 'Linker enkel aanhalingsteken', rsquo: 'Rechter enkel aanhalingsteken', ldquo: 'Linker dubbel aanhalingsteken', rdquo: 'Rechter dubbel aanhalingsteken', ndash: 'En dash', mdash: 'Em dash', iexcl: 'Omgekeerd uitroepteken', cent: 'Cent-teken', pound: 'Pond-teken', curren: 'Valuta-teken', yen: 'Yen-teken', brvbar: 'Gebroken streep', sect: 'Paragraaf-teken', uml: 'Trema', copy: 'Copyright-teken', ordf: 'Vrouwelijk ordinaal', laquo: 'Linker guillemet', not: 'Ongelijk-teken', reg: 'Geregistreerd handelsmerk-teken', macr: 'Macron', deg: 'Graden-teken', sup2: 'Superscript twee', sup3: 'Superscript drie', acute: 'Accent aigu', micro: 'Mico-teken', para: 'Alinea-teken', middot: 'Halfhoge punt', cedil: 'Cedille', sup1: 'Superscript een', ordm: 'Mannelijk ordinaal', raquo: 'Rechter guillemet', frac14: 'Breuk kwart', frac12: 'Breuk half', frac34: 'Breuk driekwart', iquest: 'Omgekeerd vraagteken', Agrave: 'Latijnse hoofdletter A met een accent grave', Aacute: 'Latijnse hoofdletter A met een accent aigu', Acirc: 'Latijnse hoofdletter A met een circonflexe', Atilde: 'Latijnse hoofdletter A met een tilde', Auml: 'Latijnse hoofdletter A met een trema', Aring: 'Latijnse hoofdletter A met een corona', AElig: 'Latijnse hoofdletter Æ', Ccedil: 'Latijnse hoofdletter C met een cedille', Egrave: 'Latijnse hoofdletter E met een accent grave', Eacute: 'Latijnse hoofdletter E met een accent aigu', Ecirc: 'Latijnse hoofdletter E met een circonflexe', Euml: 'Latijnse hoofdletter E met een trema', Igrave: 'Latijnse hoofdletter I met een accent grave', Iacute: 'Latijnse hoofdletter I met een accent aigu', Icirc: 'Latijnse hoofdletter I met een circonflexe', Iuml: 'Latijnse hoofdletter I met een trema', ETH: 'Latijnse hoofdletter Eth', Ntilde: 'Latijnse hoofdletter N met een tilde', Ograve: 'Latijnse hoofdletter O met een accent grave', Oacute: 'Latijnse hoofdletter O met een accent aigu', Ocirc: 'Latijnse hoofdletter O met een circonflexe', Otilde: 'Latijnse hoofdletter O met een tilde', Ouml: 'Latijnse hoofdletter O met een trema', times: 'Maal-teken', Oslash: 'Latijnse hoofdletter O met een schuine streep', Ugrave: 'Latijnse hoofdletter U met een accent grave', Uacute: 'Latijnse hoofdletter U met een accent aigu', Ucirc: 'Latijnse hoofdletter U met een circonflexe', Uuml: 'Latijnse hoofdletter U met een trema', Yacute: 'Latijnse hoofdletter Y met een accent aigu', THORN: 'Latijnse hoofdletter Thorn', szlig: 'Latijnse kleine ringel-s', agrave: 'Latijnse kleine letter a met een accent grave', aacute: 'Latijnse kleine letter a met een accent aigu', acirc: 'Latijnse kleine letter a met een circonflexe', atilde: 'Latijnse kleine letter a met een tilde', auml: 'Latijnse kleine letter a met een trema', aring: 'Latijnse kleine letter a met een corona', aelig: 'Latijnse kleine letter æ', ccedil: 'Latijnse kleine letter c met een cedille', egrave: 'Latijnse kleine letter e met een accent grave', eacute: 'Latijnse kleine letter e met een accent aigu', ecirc: 'Latijnse kleine letter e met een circonflexe', euml: 'Latijnse kleine letter e met een trema', igrave: 'Latijnse kleine letter i met een accent grave', iacute: 'Latijnse kleine letter i met een accent aigu', icirc: 'Latijnse kleine letter i met een circonflexe', iuml: 'Latijnse kleine letter i met een trema', eth: 'Latijnse kleine letter eth', ntilde: 'Latijnse kleine letter n met een tilde', ograve: 'Latijnse kleine letter o met een accent grave', oacute: 'Latijnse kleine letter o met een accent aigu', ocirc: 'Latijnse kleine letter o met een circonflexe', otilde: 'Latijnse kleine letter o met een tilde', ouml: 'Latijnse kleine letter o met een trema', divide: 'Deel-teken', oslash: 'Latijnse kleine letter o met een schuine streep', ugrave: 'Latijnse kleine letter u met een accent grave', uacute: 'Latijnse kleine letter u met een accent aigu', ucirc: 'Latijnse kleine letter u met een circonflexe', uuml: 'Latijnse kleine letter u met een trema', yacute: 'Latijnse kleine letter y met een accent aigu', thorn: 'Latijnse kleine letter thorn', yuml: 'Latijnse kleine letter y met een trema', OElig: 'Latijnse hoofdletter Œ', oelig: 'Latijnse kleine letter œ', '372': 'Latijnse hoofdletter W met een circonflexe', '374': 'Latijnse hoofdletter Y met een circonflexe', '373': 'Latijnse kleine letter w met een circonflexe', '375': 'Latijnse kleine letter y met een circonflexe', sbquo: 'Lage enkele aanhalingsteken', '8219': 'Hoge omgekeerde enkele aanhalingsteken', bdquo: 'Lage dubbele aanhalingsteken', hellip: 'Beletselteken', trade: 'Trademark-teken', '9658': 'Zwarte driehoek naar rechts', bull: 'Bullet', rarr: 'Pijl naar rechts', rArr: 'Dubbele pijl naar rechts', hArr: 'Dubbele pijl naar links', diams: 'Zwart ruitje', asymp: 'Benaderingsteken' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'et', { euro: 'Euromärk', lsquo: 'Alustav ühekordne jutumärk', rsquo: 'Lõpetav ühekordne jutumärk', ldquo: 'Alustav kahekordne jutumärk', rdquo: 'Lõpetav kahekordne jutumärk', ndash: 'Enn-kriips', mdash: 'Emm-kriips', iexcl: 'Pööratud hüüumärk', cent: 'Sendimärk', pound: 'Naela märk', curren: 'Valuutamärk', yen: 'Jeeni märk', brvbar: 'Katkestatud kriips', sect: 'Lõigu märk', uml: 'Täpid', copy: 'Autoriõiguse märk', ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Left-pointing double angle quotation mark', // MISSING not: 'Ei-märk', reg: 'Registered sign', // MISSING macr: 'Macron', // MISSING deg: 'Kraadimärk', sup2: 'Ülaindeks kaks', sup3: 'Ülaindeks kolm', acute: 'Acute accent', // MISSING micro: 'Mikro-märk', para: 'Pilcrow sign', // MISSING middot: 'Keskpunkt', cedil: 'Cedilla', // MISSING sup1: 'Ülaindeks üks', ordm: 'Masculine ordinal indicator', // MISSING raquo: 'Right-pointing double angle quotation mark', // MISSING frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Inverted question mark', // MISSING Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Ladina suur A tildega', Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Täppidega ladina suur O', times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Kandilise katusega suur ladina U', Uuml: 'Täppidega ladina suur U', Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Ladina väike terav s', agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Kandilise katusega ladina väike a', atilde: 'Tildega ladina väike a', auml: 'Täppidega ladina väike a', aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Rightwards arrow', // MISSING rArr: 'Rightwards double arrow', // MISSING hArr: 'Left right double arrow', // MISSING diams: 'Black diamond suit', // MISSING asymp: 'Almost equal to' // MISSING });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'pt-br', { euro: 'Euro', lsquo: 'Aspas simples esquerda', rsquo: 'Aspas simples direita', ldquo: 'Aspas duplas esquerda', rdquo: 'Aspas duplas direita', ndash: 'Traço', mdash: 'Travessão', iexcl: 'Ponto de exclamação invertido', cent: 'Cent', pound: 'Cerquilha', curren: 'Dinheiro', yen: 'Yen', brvbar: 'Bara interrompida', sect: 'Símbolo de Parágrafo', uml: 'Trema', copy: 'Direito de Cópia', ordf: 'Indicador ordinal feminino', laquo: 'Aspas duplas angulares esquerda', not: 'Negação', reg: 'Marca Registrada', macr: 'Mácron', deg: 'Grau', sup2: '2 Superscrito', sup3: '3 Superscrito', acute: 'Acento agudo', micro: 'Micro', para: 'Pé de mosca', middot: 'Ponto mediano', cedil: 'Cedilha', sup1: '1 Superscrito', ordm: 'Indicador ordinal masculino', raquo: 'Aspas duplas angulares direita', frac14: 'Um quarto', frac12: 'Um meio', frac34: 'Três quartos', iquest: 'Interrogação invertida', Agrave: 'A maiúsculo com acento grave', Aacute: 'A maiúsculo com acento agudo', Acirc: 'A maiúsculo com acento circunflexo', Atilde: 'A maiúsculo com til', Auml: 'A maiúsculo com trema', Aring: 'A maiúsculo com anel acima', AElig: 'Æ maiúsculo', Ccedil: 'Ç maiúlculo', Egrave: 'E maiúsculo com acento grave', Eacute: 'E maiúsculo com acento agudo', Ecirc: 'E maiúsculo com acento circumflexo', Euml: 'E maiúsculo com trema', Igrave: 'I maiúsculo com acento grave', Iacute: 'I maiúsculo com acento agudo', Icirc: 'I maiúsculo com acento circunflexo', Iuml: 'I maiúsculo com crase', ETH: 'Eth maiúsculo', Ntilde: 'N maiúsculo com til', Ograve: 'O maiúsculo com acento grave', Oacute: 'O maiúsculo com acento agudo', Ocirc: 'O maiúsculo com acento circunflexo', Otilde: 'O maiúsculo com til', Ouml: 'O maiúsculo com trema', times: 'Multiplicação', Oslash: 'Diâmetro', Ugrave: 'U maiúsculo com acento grave', Uacute: 'U maiúsculo com acento agudo', Ucirc: 'U maiúsculo com acento circunflexo', Uuml: 'U maiúsculo com trema', Yacute: 'Y maiúsculo com acento agudo', THORN: 'Thorn maiúsculo', szlig: 'Eszett minúsculo', agrave: 'a minúsculo com acento grave', aacute: 'a minúsculo com acento agudo', acirc: 'a minúsculo com acento circunflexo', atilde: 'a minúsculo com til', auml: 'a minúsculo com trema', aring: 'a minúsculo com anel acima', aelig: 'æ minúsculo', ccedil: 'ç minúsculo', egrave: 'e minúsculo com acento grave', eacute: 'e minúsculo com acento agudo', ecirc: 'e minúsculo com acento circunflexo', euml: 'e minúsculo com trema', igrave: 'i minúsculo com acento grave', iacute: 'i minúsculo com acento agudo', icirc: 'i minúsculo com acento circunflexo', iuml: 'i minúsculo com trema', eth: 'eth minúsculo', ntilde: 'n minúsculo com til', ograve: 'o minúsculo com acento grave', oacute: 'o minúsculo com acento agudo', ocirc: 'o minúsculo com acento circunflexo', otilde: 'o minúsculo com til', ouml: 'o minúsculo com trema', divide: 'Divisão', oslash: 'o minúsculo com cortado ou diâmetro', ugrave: 'u minúsculo com acento grave', uacute: 'u minúsculo com acento agudo', ucirc: 'u minúsculo com acento circunflexo', uuml: 'u minúsculo com trema', yacute: 'y minúsculo com acento agudo', thorn: 'thorn minúsculo', yuml: 'y minúsculo com trema', OElig: 'Ligação tipográfica OE maiúscula', oelig: 'Ligação tipográfica oe minúscula', '372': 'W maiúsculo com acento circunflexo', '374': 'Y maiúsculo com acento circunflexo', '373': 'w minúsculo com acento circunflexo', '375': 'y minúsculo com acento circunflexo', sbquo: 'Aspas simples inferior direita', '8219': 'Aspas simples superior esquerda', bdquo: 'Aspas duplas inferior direita', hellip: 'Reticências', trade: 'Trade mark', '9658': 'Ponta de seta preta para direita', bull: 'Ponto lista', rarr: 'Seta para direita', rArr: 'Seta dupla para direita', hArr: 'Seta dupla direita e esquerda', diams: 'Ouros', asymp: 'Aproximadamente' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'cs', { euro: 'Znak eura', lsquo: 'Počáteční uvozovka jednoduchá', rsquo: 'Koncová uvozovka jednoduchá', ldquo: 'Počáteční uvozovka dvojitá', rdquo: 'Koncová uvozovka dvojitá', ndash: 'En pomlčka', mdash: 'Em pomlčka', iexcl: 'Obrácený vykřičník', cent: 'Znak centu', pound: 'Znak libry', curren: 'Znak měny', yen: 'Znak jenu', brvbar: 'Přerušená svislá čára', sect: 'Znak oddílu', uml: 'Přehláska', copy: 'Znak copyrightu', ordf: 'Ženský indikátor rodu', laquo: 'Znak dvojitých lomených uvozovek vlevo', not: 'Logistický zápor', reg: 'Znak registrace', macr: 'Pomlčka nad', deg: 'Znak stupně', sup2: 'Dvojka jako horní index', sup3: 'Trojka jako horní index', acute: 'Čárka nad vpravo', micro: 'Znak mikro', para: 'Znak odstavce', middot: 'Tečka uprostřed', cedil: 'Ocásek vlevo', sup1: 'Jednička jako horní index', ordm: 'Mužský indikátor rodu', raquo: 'Znak dvojitých lomených uvozovek vpravo', frac14: 'Obyčejný zlomek jedna čtvrtina', frac12: 'Obyčejný zlomek jedna polovina', frac34: 'Obyčejný zlomek tři čtvrtiny', iquest: 'Znak obráceného otazníku', Agrave: 'Velké písmeno latinky A s čárkou nad vlevo', Aacute: 'Velké písmeno latinky A s čárkou nad vpravo', Acirc: 'Velké písmeno latinky A s vokáněm', Atilde: 'Velké písmeno latinky A s tildou', Auml: 'Velké písmeno latinky A s dvěma tečkami', Aring: 'Velké písmeno latinky A s kroužkem nad', AElig: 'Velké písmeno latinky Ae', Ccedil: 'Velké písmeno latinky C s ocáskem vlevo', Egrave: 'Velké písmeno latinky E s čárkou nad vlevo', Eacute: 'Velké písmeno latinky E s čárkou nad vpravo', Ecirc: 'Velké písmeno latinky E s vokáněm', Euml: 'Velké písmeno latinky E s dvěma tečkami', Igrave: 'Velké písmeno latinky I s čárkou nad vlevo', Iacute: 'Velké písmeno latinky I s čárkou nad vpravo', Icirc: 'Velké písmeno latinky I s vokáněm', Iuml: 'Velké písmeno latinky I s dvěma tečkami', ETH: 'Velké písmeno latinky Eth', Ntilde: 'Velké písmeno latinky N s tildou', Ograve: 'Velké písmeno latinky O s čárkou nad vlevo', Oacute: 'Velké písmeno latinky O s čárkou nad vpravo', Ocirc: 'Velké písmeno latinky O s vokáněm', Otilde: 'Velké písmeno latinky O s tildou', Ouml: 'Velké písmeno latinky O s dvěma tečkami', times: 'Znak násobení', Oslash: 'Velké písmeno latinky O přeškrtnuté', Ugrave: 'Velké písmeno latinky U s čárkou nad vlevo', Uacute: 'Velké písmeno latinky U s čárkou nad vpravo', Ucirc: 'Velké písmeno latinky U s vokáněm', Uuml: 'Velké písmeno latinky U s dvěma tečkami', Yacute: 'Velké písmeno latinky Y s čárkou nad vpravo', THORN: 'Velké písmeno latinky Thorn', szlig: 'Malé písmeno latinky ostré s', agrave: 'Malé písmeno latinky a s čárkou nad vlevo', aacute: 'Malé písmeno latinky a s čárkou nad vpravo', acirc: 'Malé písmeno latinky a s vokáněm', atilde: 'Malé písmeno latinky a s tildou', auml: 'Malé písmeno latinky a s dvěma tečkami', aring: 'Malé písmeno latinky a s kroužkem nad', aelig: 'Malé písmeno latinky ae', ccedil: 'Malé písmeno latinky c s ocáskem vlevo', egrave: 'Malé písmeno latinky e s čárkou nad vlevo', eacute: 'Malé písmeno latinky e s čárkou nad vpravo', ecirc: 'Malé písmeno latinky e s vokáněm', euml: 'Malé písmeno latinky e s dvěma tečkami', igrave: 'Malé písmeno latinky i s čárkou nad vlevo', iacute: 'Malé písmeno latinky i s čárkou nad vpravo', icirc: 'Malé písmeno latinky i s vokáněm', iuml: 'Malé písmeno latinky i s dvěma tečkami', eth: 'Malé písmeno latinky eth', ntilde: 'Malé písmeno latinky n s tildou', ograve: 'Malé písmeno latinky o s čárkou nad vlevo', oacute: 'Malé písmeno latinky o s čárkou nad vpravo', ocirc: 'Malé písmeno latinky o s vokáněm', otilde: 'Malé písmeno latinky o s tildou', ouml: 'Malé písmeno latinky o s dvěma tečkami', divide: 'Znak dělení', oslash: 'Malé písmeno latinky o přeškrtnuté', ugrave: 'Malé písmeno latinky u s čárkou nad vlevo', uacute: 'Malé písmeno latinky u s čárkou nad vpravo', ucirc: 'Malé písmeno latinky u s vokáněm', uuml: 'Malé písmeno latinky u s dvěma tečkami', yacute: 'Malé písmeno latinky y s čárkou nad vpravo', thorn: 'Malé písmeno latinky thorn', yuml: 'Malé písmeno latinky y s dvěma tečkami', OElig: 'Velká ligatura latinky OE', oelig: 'Malá ligatura latinky OE', '372': 'Velké písmeno latinky W s vokáněm', '374': 'Velké písmeno latinky Y s vokáněm', '373': 'Malé písmeno latinky w s vokáněm', '375': 'Malé písmeno latinky y s vokáněm', sbquo: 'Dolní 9 uvozovka jednoduchá', '8219': 'Horní obrácená 9 uvozovka jednoduchá', bdquo: 'Dolní 9 uvozovka dvojitá', hellip: 'Trojtečkový úvod', trade: 'Obchodní značka', '9658': 'Černý ukazatel směřující vpravo', bull: 'Kolečko', rarr: 'Šipka vpravo', rArr: 'Dvojitá šipka vpravo', hArr: 'Dvojitá šipka vlevo a vpravo', diams: 'Černé piky', asymp: 'Téměř se rovná' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'hr', { euro: 'Euro znak', lsquo: 'Lijevi jednostruki navodnik', rsquo: 'Desni jednostruki navodnik', ldquo: 'Lijevi dvostruki navodnik', rdquo: 'Desni dvostruki navodnik', ndash: 'En crtica', mdash: 'Em crtica', iexcl: 'Naopaki uskličnik', cent: 'Cent znak', pound: 'Funta znak', curren: 'Znak valute', yen: 'Yen znak', brvbar: 'Potrgana prečka', sect: 'Znak odjeljka', uml: 'Diaeresis', // MISSING copy: 'Copyright znak', ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Lijevi dvostruki uglati navodnik', not: 'Not znak', reg: 'Registered znak', macr: 'Macron', // MISSING deg: 'Stupanj znak', sup2: 'Superscript two', // MISSING sup3: 'Superscript three', // MISSING acute: 'Acute accent', // MISSING micro: 'Micro sign', // MISSING para: 'Pilcrow sign', // MISSING middot: 'Srednja točka', cedil: 'Cedilla', // MISSING sup1: 'Superscript one', // MISSING ordm: 'Masculine ordinal indicator', // MISSING raquo: 'Desni dvostruku uglati navodnik', frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Naopaki upitnik', Agrave: 'Veliko latinsko slovo A s akcentom', Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Rightwards arrow', // MISSING rArr: 'Rightwards double arrow', // MISSING hArr: 'Left right double arrow', // MISSING diams: 'Black diamond suit', // MISSING asymp: 'Almost equal to' // MISSING });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'fi', { euro: 'Euron merkki', lsquo: 'Vasen yksittäinen lainausmerkki', rsquo: 'Oikea yksittäinen lainausmerkki', ldquo: 'Vasen kaksoislainausmerkki', rdquo: 'Oikea kaksoislainausmerkki', ndash: 'En dash', // MISSING mdash: 'Em dash', // MISSING iexcl: 'Inverted exclamation mark', // MISSING cent: 'Sentin merkki', pound: 'Punnan merkki', curren: 'Valuuttamerkki', yen: 'Yenin merkki', brvbar: 'Broken bar', // MISSING sect: 'Section sign', // MISSING uml: 'Diaeresis', // MISSING copy: 'Copyright sign', // MISSING ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Left-pointing double angle quotation mark', // MISSING not: 'Not sign', // MISSING reg: 'Rekisteröity merkki', macr: 'Macron', // MISSING deg: 'Asteen merkki', sup2: 'Yläindeksi kaksi', sup3: 'Yläindeksi kolme', acute: 'Acute accent', // MISSING micro: 'Mikron merkki', para: 'Pilcrow sign', // MISSING middot: 'Middle dot', // MISSING cedil: 'Cedilla', // MISSING sup1: 'Yläindeksi yksi', ordm: 'Masculine ordinal indicator', // MISSING raquo: 'Right-pointing double angle quotation mark', // MISSING frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Ylösalaisin oleva kysymysmerkki', Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Kertomerkki', Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Jakomerkki', oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Tavaramerkki merkki', '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Nuoli oikealle', rArr: 'Kaksoisnuoli oikealle', hArr: 'Kaksoisnuoli oikealle ja vasemmalle', diams: 'Black diamond suit', // MISSING asymp: 'Noin' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'ug', { euro: 'ياۋرو بەلگىسى', lsquo: 'يالاڭ پەش سول', rsquo: 'يالاڭ پەش ئوڭ', ldquo: 'قوش پەش سول', rdquo: 'قوش پەش ئوڭ', ndash: 'سىزىقچە', mdash: 'سىزىق', iexcl: 'ئۈندەش', cent: 'تىيىن بەلگىسى', pound: 'فوند ستېرلىڭ', curren: 'پۇل بەلگىسى', yen: 'ياپونىيە يىنى', brvbar: 'ئۈزۈك بالداق', sect: 'پاراگراف بەلگىسى', uml: 'تاۋۇش ئايرىش بەلگىسى', copy: 'نەشر ھوقۇقى بەلگىسى', ordf: 'Feminine ordinal indicator', // MISSING laquo: 'قوش تىرناق سول', not: 'غەيرى بەلگە', reg: 'خەتلەتكەن تاۋار ماركىسى', macr: 'سوزۇش بەلگىسى', deg: 'گىرادۇس بەلگىسى', sup2: 'يۇقىرى ئىندېكىس 2', sup3: 'يۇقىرى ئىندېكىس 3', acute: 'ئۇرغۇ بەلگىسى', micro: 'Micro sign', // MISSING para: 'ئابزاس بەلگىسى', middot: 'ئوتتۇرا چېكىت', cedil: 'ئاستىغا قوشۇلىدىغان بەلگە', sup1: 'يۇقىرى ئىندېكىس 1', ordm: 'Masculine ordinal indicator', // MISSING raquo: 'قوش تىرناق ئوڭ', frac14: 'ئاددىي كەسىر تۆتتىن بىر', frac12: 'ئاددىي كەسىر ئىككىدىن بىر', frac34: 'ئاددىي كەسىر ئۈچتىن تۆرت', iquest: 'Inverted question mark', // MISSING Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'قوش پەش ئوڭ', Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'تىك موللاق سوئال بەلگىسى', ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'ئوڭ يا ئوق', rArr: 'ئوڭ قوش سىزىق يا ئوق', hArr: 'ئوڭ سول قوش سىزىق يا ئوق', diams: 'ئۇيۇل غىچ', asymp: 'تەخمىنەن تەڭ' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'zh-cn', { euro: '欧元符号', lsquo: '左单引号', rsquo: '右单引号', ldquo: '左双引号', rdquo: '右双引号', ndash: '短划线', mdash: '破折号', iexcl: '竖翻叹号', cent: '分币标记', pound: '英镑标记', curren: '货币标记', yen: '日元标记', brvbar: '间断条', sect: '节标记', uml: '分音符', copy: '版权所有标记', ordf: '阴性顺序指示符', laquo: '左指双尖引号', not: '非标记', reg: '注册标记', macr: '长音符', deg: '度标记', sup2: '上标二', sup3: '上标三', acute: '锐音符', micro: '微符', para: '段落标记', middot: '中间点', cedil: '下加符', sup1: '上标一', ordm: '阳性顺序指示符', raquo: '右指双尖引号', frac14: '普通分数四分之一', frac12: '普通分数二分之一', frac34: '普通分数四分之三', iquest: '竖翻问号', Agrave: '带抑音符的拉丁文大写字母 A', Aacute: '带锐音符的拉丁文大写字母 A', Acirc: '带扬抑符的拉丁文大写字母 A', Atilde: '带颚化符的拉丁文大写字母 A', Auml: '带分音符的拉丁文大写字母 A', Aring: '带上圆圈的拉丁文大写字母 A', AElig: '拉丁文大写字母 Ae', Ccedil: '带下加符的拉丁文大写字母 C', Egrave: '带抑音符的拉丁文大写字母 E', Eacute: '带锐音符的拉丁文大写字母 E', Ecirc: '带扬抑符的拉丁文大写字母 E', Euml: '带分音符的拉丁文大写字母 E', Igrave: '带抑音符的拉丁文大写字母 I', Iacute: '带锐音符的拉丁文大写字母 I', Icirc: '带扬抑符的拉丁文大写字母 I', Iuml: '带分音符的拉丁文大写字母 I', ETH: '拉丁文大写字母 Eth', Ntilde: '带颚化符的拉丁文大写字母 N', Ograve: '带抑音符的拉丁文大写字母 O', Oacute: '带锐音符的拉丁文大写字母 O', Ocirc: '带扬抑符的拉丁文大写字母 O', Otilde: '带颚化符的拉丁文大写字母 O', Ouml: '带分音符的拉丁文大写字母 O', times: '乘号', Oslash: '带粗线的拉丁文大写字母 O', Ugrave: '带抑音符的拉丁文大写字母 U', Uacute: '带锐音符的拉丁文大写字母 U', Ucirc: '带扬抑符的拉丁文大写字母 U', Uuml: '带分音符的拉丁文大写字母 U', Yacute: '带抑音符的拉丁文大写字母 Y', THORN: '拉丁文大写字母 Thorn', szlig: '拉丁文小写字母清音 S', agrave: '带抑音符的拉丁文小写字母 A', aacute: '带锐音符的拉丁文小写字母 A', acirc: '带扬抑符的拉丁文小写字母 A', atilde: '带颚化符的拉丁文小写字母 A', auml: '带分音符的拉丁文小写字母 A', aring: '带上圆圈的拉丁文小写字母 A', aelig: '拉丁文小写字母 Ae', ccedil: '带下加符的拉丁文小写字母 C', egrave: '带抑音符的拉丁文小写字母 E', eacute: '带锐音符的拉丁文小写字母 E', ecirc: '带扬抑符的拉丁文小写字母 E', euml: '带分音符的拉丁文小写字母 E', igrave: '带抑音符的拉丁文小写字母 I', iacute: '带锐音符的拉丁文小写字母 I', icirc: '带扬抑符的拉丁文小写字母 I', iuml: '带分音符的拉丁文小写字母 I', eth: '拉丁文小写字母 Eth', ntilde: '带颚化符的拉丁文小写字母 N', ograve: '带抑音符的拉丁文小写字母 O', oacute: '带锐音符的拉丁文小写字母 O', ocirc: '带扬抑符的拉丁文小写字母 O', otilde: '带颚化符的拉丁文小写字母 O', ouml: '带分音符的拉丁文小写字母 O', divide: '除号', oslash: '带粗线的拉丁文小写字母 O', ugrave: '带抑音符的拉丁文小写字母 U', uacute: '带锐音符的拉丁文小写字母 U', ucirc: '带扬抑符的拉丁文小写字母 U', uuml: '带分音符的拉丁文小写字母 U', yacute: '带抑音符的拉丁文小写字母 Y', thorn: '拉丁文小写字母 Thorn', yuml: '带分音符的拉丁文小写字母 Y', OElig: '拉丁文大写连字 Oe', oelig: '拉丁文小写连字 Oe', '372': '带扬抑符的拉丁文大写字母 W', '374': '带扬抑符的拉丁文大写字母 Y', '373': '带扬抑符的拉丁文小写字母 W', '375': '带扬抑符的拉丁文小写字母 Y', sbquo: '单下 9 形引号', '8219': '单高横翻 9 形引号', bdquo: '双下 9 形引号', hellip: '水平省略号', trade: '商标标志', '9658': '实心右指指针', bull: '加重号', rarr: '向右箭头', rArr: '向右双线箭头', hArr: '左右双线箭头', diams: '实心方块纸牌', asymp: '约等于' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'en', { euro: 'Euro sign', lsquo: 'Left single quotation mark', rsquo: 'Right single quotation mark', ldquo: 'Left double quotation mark', rdquo: 'Right double quotation mark', ndash: 'En dash', mdash: 'Em dash', iexcl: 'Inverted exclamation mark', cent: 'Cent sign', pound: 'Pound sign', curren: 'Currency sign', yen: 'Yen sign', brvbar: 'Broken bar', sect: 'Section sign', uml: 'Diaeresis', copy: 'Copyright sign', ordf: 'Feminine ordinal indicator', laquo: 'Left-pointing double angle quotation mark', not: 'Not sign', reg: 'Registered sign', macr: 'Macron', deg: 'Degree sign', sup2: 'Superscript two', sup3: 'Superscript three', acute: 'Acute accent', micro: 'Micro sign', para: 'Pilcrow sign', middot: 'Middle dot', cedil: 'Cedilla', sup1: 'Superscript one', ordm: 'Masculine ordinal indicator', raquo: 'Right-pointing double angle quotation mark', frac14: 'Vulgar fraction one quarter', frac12: 'Vulgar fraction one half', frac34: 'Vulgar fraction three quarters', iquest: 'Inverted question mark', Agrave: 'Latin capital letter A with grave accent', Aacute: 'Latin capital letter A with acute accent', Acirc: 'Latin capital letter A with circumflex', Atilde: 'Latin capital letter A with tilde', Auml: 'Latin capital letter A with diaeresis', Aring: 'Latin capital letter A with ring above', AElig: 'Latin Capital letter Æ', Ccedil: 'Latin capital letter C with cedilla', Egrave: 'Latin capital letter E with grave accent', Eacute: 'Latin capital letter E with acute accent', Ecirc: 'Latin capital letter E with circumflex', Euml: 'Latin capital letter E with diaeresis', Igrave: 'Latin capital letter I with grave accent', Iacute: 'Latin capital letter I with acute accent', Icirc: 'Latin capital letter I with circumflex', Iuml: 'Latin capital letter I with diaeresis', ETH: 'Latin capital letter Eth', Ntilde: 'Latin capital letter N with tilde', Ograve: 'Latin capital letter O with grave accent', Oacute: 'Latin capital letter O with acute accent', Ocirc: 'Latin capital letter O with circumflex', Otilde: 'Latin capital letter O with tilde', Ouml: 'Latin capital letter O with diaeresis', times: 'Multiplication sign', Oslash: 'Latin capital letter O with stroke', Ugrave: 'Latin capital letter U with grave accent', Uacute: 'Latin capital letter U with acute accent', Ucirc: 'Latin capital letter U with circumflex', Uuml: 'Latin capital letter U with diaeresis', Yacute: 'Latin capital letter Y with acute accent', THORN: 'Latin capital letter Thorn', szlig: 'Latin small letter sharp s', agrave: 'Latin small letter a with grave accent', aacute: 'Latin small letter a with acute accent', acirc: 'Latin small letter a with circumflex', atilde: 'Latin small letter a with tilde', auml: 'Latin small letter a with diaeresis', aring: 'Latin small letter a with ring above', aelig: 'Latin small letter æ', ccedil: 'Latin small letter c with cedilla', egrave: 'Latin small letter e with grave accent', eacute: 'Latin small letter e with acute accent', ecirc: 'Latin small letter e with circumflex', euml: 'Latin small letter e with diaeresis', igrave: 'Latin small letter i with grave accent', iacute: 'Latin small letter i with acute accent', icirc: 'Latin small letter i with circumflex', iuml: 'Latin small letter i with diaeresis', eth: 'Latin small letter eth', ntilde: 'Latin small letter n with tilde', ograve: 'Latin small letter o with grave accent', oacute: 'Latin small letter o with acute accent', ocirc: 'Latin small letter o with circumflex', otilde: 'Latin small letter o with tilde', ouml: 'Latin small letter o with diaeresis', divide: 'Division sign', oslash: 'Latin small letter o with stroke', ugrave: 'Latin small letter u with grave accent', uacute: 'Latin small letter u with acute accent', ucirc: 'Latin small letter u with circumflex', uuml: 'Latin small letter u with diaeresis', yacute: 'Latin small letter y with acute accent', thorn: 'Latin small letter thorn', yuml: 'Latin small letter y with diaeresis', OElig: 'Latin capital ligature OE', oelig: 'Latin small ligature oe', '372': 'Latin capital letter W with circumflex', '374': 'Latin capital letter Y with circumflex', '373': 'Latin small letter w with circumflex', '375': 'Latin small letter y with circumflex', sbquo: 'Single low-9 quotation mark', '8219': 'Single high-reversed-9 quotation mark', bdquo: 'Double low-9 quotation mark', hellip: 'Horizontal ellipsis', trade: 'Trade mark sign', '9658': 'Black right-pointing pointer', bull: 'Bullet', rarr: 'Rightwards arrow', rArr: 'Rightwards double arrow', hArr: 'Left right double arrow', diams: 'Black diamond suit', asymp: 'Almost equal to' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'specialchar', function( editor ) { /** * Simulate "this" of a dialog for non-dialog events. * @type {CKEDITOR.dialog} */ var dialog, lang = editor.lang.specialChar; var onChoice = function( evt ) { var target, value; if ( evt.data ) target = evt.data.getTarget(); else target = new CKEDITOR.dom.element( evt ); if ( target.getName() == 'a' && ( value = target.getChild( 0 ).getHtml() ) ) { target.removeClass( "cke_light_background" ); dialog.hide(); // We must use "insertText" here to keep text styled. var span = editor.document.createElement( 'span' ); span.setHtml( value ); editor.insertText( span.getText() ); } }; var onClick = CKEDITOR.tools.addFunction( onChoice ); var focusedNode; var onFocus = function( evt, target ) { var value; target = target || evt.data.getTarget(); if ( target.getName() == 'span' ) target = target.getParent(); if ( target.getName() == 'a' && ( value = target.getChild( 0 ).getHtml() ) ) { // Trigger blur manually if there is focused node. if ( focusedNode ) onBlur( null, focusedNode ); var htmlPreview = dialog.getContentElement( 'info', 'htmlPreview' ).getElement(); dialog.getContentElement( 'info', 'charPreview' ).getElement().setHtml( value ); htmlPreview.setHtml( CKEDITOR.tools.htmlEncode( value ) ); target.getParent().addClass( "cke_light_background" ); // Memorize focused node. focusedNode = target; } }; var onBlur = function( evt, target ) { target = target || evt.data.getTarget(); if ( target.getName() == 'span' ) target = target.getParent(); if ( target.getName() == 'a' ) { dialog.getContentElement( 'info', 'charPreview' ).getElement().setHtml( '&nbsp;' ); dialog.getContentElement( 'info', 'htmlPreview' ).getElement().setHtml( '&nbsp;' ); target.getParent().removeClass( "cke_light_background" ); focusedNode = undefined; } }; var onKeydown = CKEDITOR.tools.addFunction( function( ev ) { ev = new CKEDITOR.dom.event( ev ); // Get an Anchor element. var element = ev.getTarget(); var relative, nodeToMove; var keystroke = ev.getKeystroke(), rtl = editor.lang.dir == 'rtl'; switch ( keystroke ) { // UP-ARROW case 38 : // relative is TR if ( ( relative = element.getParent().getParent().getPrevious() ) ) { nodeToMove = relative.getChild( [element.getParent().getIndex(), 0] ); nodeToMove.focus(); onBlur( null, element ); onFocus( null, nodeToMove ); } ev.preventDefault(); break; // DOWN-ARROW case 40 : // relative is TR if ( ( relative = element.getParent().getParent().getNext() ) ) { nodeToMove = relative.getChild( [ element.getParent().getIndex(), 0 ] ); if ( nodeToMove && nodeToMove.type == 1 ) { nodeToMove.focus(); onBlur( null, element ); onFocus( null, nodeToMove ); } } ev.preventDefault(); break; // SPACE // ENTER is already handled as onClick case 32 : onChoice( { data: ev } ); ev.preventDefault(); break; // RIGHT-ARROW case rtl ? 37 : 39 : // relative is TD if ( ( relative = element.getParent().getNext() ) ) { nodeToMove = relative.getChild( 0 ); if ( nodeToMove.type == 1 ) { nodeToMove.focus(); onBlur( null, element ); onFocus( null, nodeToMove ); ev.preventDefault( true ); } else onBlur( null, element ); } // relative is TR else if ( ( relative = element.getParent().getParent().getNext() ) ) { nodeToMove = relative.getChild( [ 0, 0 ] ); if ( nodeToMove && nodeToMove.type == 1 ) { nodeToMove.focus(); onBlur( null, element ); onFocus( null, nodeToMove ); ev.preventDefault( true ); } else onBlur( null, element ); } break; // LEFT-ARROW case rtl ? 39 : 37 : // relative is TD if ( ( relative = element.getParent().getPrevious() ) ) { nodeToMove = relative.getChild( 0 ); nodeToMove.focus(); onBlur( null, element ); onFocus( null, nodeToMove ); ev.preventDefault( true ); } // relative is TR else if ( ( relative = element.getParent().getParent().getPrevious() ) ) { nodeToMove = relative.getLast().getChild( 0 ); nodeToMove.focus(); onBlur( null, element ); onFocus( null, nodeToMove ); ev.preventDefault( true ); } else onBlur( null, element ); break; default : // Do not stop not handled events. return; } }); return { title : lang.title, minWidth : 430, minHeight : 280, buttons : [ CKEDITOR.dialog.cancelButton ], charColumns : 17, onLoad : function() { var columns = this.definition.charColumns, extraChars = editor.config.extraSpecialChars, chars = editor.config.specialChars; var charsTableLabel = CKEDITOR.tools.getNextId() + '_specialchar_table_label'; var html = [ '<table role="listbox" aria-labelledby="' + charsTableLabel + '"' + ' style="width: 320px; height: 100%; border-collapse: separate;"' + ' align="center" cellspacing="2" cellpadding="2" border="0">' ]; var i = 0, size = chars.length, character, charDesc; while ( i < size ) { html.push( '<tr role="presentation">' ) ; for ( var j = 0 ; j < columns ; j++, i++ ) { if ( ( character = chars[ i ] ) ) { charDesc = ''; if ( character instanceof Array ) { charDesc = character[ 1 ]; character = character[ 0 ]; } else { var _tmpName = character.replace( '&', '' ).replace( ';', '' ).replace( '#', '' ); // Use character in case description unavailable. charDesc = lang[ _tmpName ] || character; } var charLabelId = 'cke_specialchar_label_' + i + '_' + CKEDITOR.tools.getNextNumber(); html.push( '<td class="cke_dark_background" style="cursor: default" role="presentation">' + '<a href="javascript: void(0);" role="option"' + ' aria-posinset="' + ( i +1 ) + '"', ' aria-setsize="' + size + '"', ' aria-labelledby="' + charLabelId + '"', ' style="cursor: inherit; display: block; height: 1.25em; margin-top: 0.25em; text-align: center;" title="', CKEDITOR.tools.htmlEncode( charDesc ), '"' + ' onkeydown="CKEDITOR.tools.callFunction( ' + onKeydown + ', event, this )"' + ' onclick="CKEDITOR.tools.callFunction(' + onClick + ', this); return false;"' + ' tabindex="-1">' + '<span style="margin: 0 auto;cursor: inherit">' + character + '</span>' + '<span class="cke_voice_label" id="' + charLabelId + '">' + charDesc + '</span></a>'); } else html.push( '<td class="cke_dark_background">&nbsp;' ); html.push( '</td>' ); } html.push( '</tr>' ); } html.push( '</tbody></table>', '<span id="' + charsTableLabel + '" class="cke_voice_label">' + lang.options +'</span>' ); this.getContentElement( 'info', 'charContainer' ).getElement().setHtml( html.join( '' ) ); }, contents : [ { id : 'info', label : editor.lang.common.generalTab, title : editor.lang.common.generalTab, padding : 0, align : 'top', elements : [ { type : 'hbox', align : 'top', widths : [ '320px', '90px' ], children : [ { type : 'html', id : 'charContainer', html : '', onMouseover : onFocus, onMouseout : onBlur, focus : function() { var firstChar = this.getElement().getElementsByTag( 'a' ).getItem( 0 ); setTimeout( function() { firstChar.focus(); onFocus( null, firstChar ); }, 0 ); }, onShow : function() { var firstChar = this.getElement().getChild( [ 0, 0, 0, 0, 0 ] ); setTimeout( function() { firstChar.focus(); onFocus( null, firstChar ); }, 0 ); }, onLoad : function( event ) { dialog = event.sender; } }, { type : 'hbox', align : 'top', widths : [ '100%' ], children : [ { type : 'vbox', align : 'top', children : [ { type : 'html', html : '<div></div>' }, { type : 'html', id : 'charPreview', className : 'cke_dark_background', style : 'border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:\'Microsoft Sans Serif\',Arial,Helvetica,Verdana;text-align:center;', html : '<div>&nbsp;</div>' }, { type : 'html', id : 'htmlPreview', className : 'cke_dark_background', style : 'border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:\'Microsoft Sans Serif\',Arial,Helvetica,Verdana;text-align:center;', html : '<div>&nbsp;</div>' } ] } ] } ] } ] } ] }; } );
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { CKEDITOR.plugins.liststyle = { requires : [ 'dialog' ], init : function( editor ) { editor.addCommand( 'numberedListStyle', new CKEDITOR.dialogCommand( 'numberedListStyle' ) ); CKEDITOR.dialog.add( 'numberedListStyle', this.path + 'dialogs/liststyle.js' ); editor.addCommand( 'bulletedListStyle', new CKEDITOR.dialogCommand( 'bulletedListStyle' ) ); CKEDITOR.dialog.add( 'bulletedListStyle', this.path + 'dialogs/liststyle.js' ); // If the "menu" plugin is loaded, register the menu items. if ( editor.addMenuItems ) { //Register map group; editor.addMenuGroup("list", 108); editor.addMenuItems( { numberedlist : { label : editor.lang.list.numberedTitle, group : 'list', command: 'numberedListStyle' }, bulletedlist : { label : editor.lang.list.bulletedTitle, group : 'list', command: 'bulletedListStyle' } }); } // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu ) { editor.contextMenu.addListener( function( element, selection ) { if ( !element || element.isReadOnly() ) return null; while ( element ) { var name = element.getName(); if ( name == 'ol' ) return { numberedlist: CKEDITOR.TRISTATE_OFF }; else if ( name == 'ul' ) return { bulletedlist: CKEDITOR.TRISTATE_OFF }; element = element.getParent(); } return null; }); } } }; CKEDITOR.plugins.add( 'liststyle', CKEDITOR.plugins.liststyle ); })();
JavaScript
/* * Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { function getListElement( editor, listTag ) { var range; try { range = editor.getSelection().getRanges()[ 0 ]; } catch( e ) { return null; } range.shrink( CKEDITOR.SHRINK_TEXT ); return range.getCommonAncestor().getAscendant( listTag, 1 ); } var listItem = function( node ) { return node.type == CKEDITOR.NODE_ELEMENT && node.is( 'li' ); }; var mapListStyle = { 'a' : 'lower-alpha', 'A' : 'upper-alpha', 'i' : 'lower-roman', 'I' : 'upper-roman', '1' : 'decimal', 'disc' : 'disc', 'circle': 'circle', 'square' : 'square' }; function listStyle( editor, startupPage ) { var lang = editor.lang.list; if ( startupPage == 'bulletedListStyle' ) { return { title : lang.bulletedTitle, minWidth : 300, minHeight : 50, contents : [ { id : 'info', accessKey : 'I', elements : [ { type : 'select', label : lang.type, id : 'type', align : 'center', style : 'width:150px', items : [ [ lang.notset, '' ], [ lang.circle, 'circle' ], [ lang.disc, 'disc' ], [ lang.square, 'square' ] ], setup : function( element ) { var value = element.getStyle( 'list-style-type' ) || mapListStyle[ element.getAttribute( 'type' ) ] || element.getAttribute( 'type' ) || ''; this.setValue( value ); }, commit : function( element ) { var value = this.getValue(); if ( value ) element.setStyle( 'list-style-type', value ); else element.removeStyle( 'list-style-type' ); } } ] } ], onShow: function() { var editor = this.getParentEditor(), element = getListElement( editor, 'ul' ); element && this.setupContent( element ); }, onOk: function() { var editor = this.getParentEditor(), element = getListElement( editor, 'ul' ); element && this.commitContent( element ); } }; } else if ( startupPage == 'numberedListStyle' ) { var listStyleOptions = [ [ lang.notset, '' ], [ lang.lowerRoman, 'lower-roman' ], [ lang.upperRoman, 'upper-roman' ], [ lang.lowerAlpha, 'lower-alpha' ], [ lang.upperAlpha, 'upper-alpha' ], [ lang.decimal, 'decimal' ] ]; if ( !CKEDITOR.env.ie || CKEDITOR.env.version > 7 ) { listStyleOptions.concat( [ [ lang.armenian, 'armenian' ], [ lang.decimalLeadingZero, 'decimal-leading-zero' ], [ lang.georgian, 'georgian' ], [ lang.lowerGreek, 'lower-greek' ] ]); } return { title : lang.numberedTitle, minWidth : 300, minHeight : 50, contents : [ { id : 'info', accessKey : 'I', elements : [ { type : 'hbox', widths : [ '25%', '75%' ], children : [ { label : lang.start, type : 'text', id : 'start', validate : CKEDITOR.dialog.validate.integer( lang.validateStartNumber ), setup : function( element ) { // List item start number dominates. var value = element.getFirst( listItem ).getAttribute( 'value' ) || element.getAttribute( 'start' ) || 1; value && this.setValue( value ); }, commit : function( element ) { var firstItem = element.getFirst( listItem ); var oldStart = firstItem.getAttribute( 'value' ) || element.getAttribute( 'start' ) || 1; // Force start number on list root. element.getFirst( listItem ).removeAttribute( 'value' ); var val = parseInt( this.getValue(), 10 ); if ( isNaN( val ) ) element.removeAttribute( 'start' ); else element.setAttribute( 'start', val ); // Update consequent list item numbering. var nextItem = firstItem, conseq = oldStart, startNumber = isNaN( val ) ? 1 : val; while ( ( nextItem = nextItem.getNext( listItem ) ) && conseq++ ) { if ( nextItem.getAttribute( 'value' ) == conseq ) nextItem.setAttribute( 'value', startNumber + conseq - oldStart ); } } }, { type : 'select', label : lang.type, id : 'type', style : 'width: 100%;', items : listStyleOptions, setup : function( element ) { var value = element.getStyle( 'list-style-type' ) || mapListStyle[ element.getAttribute( 'type' ) ] || element.getAttribute( 'type' ) || ''; this.setValue( value ); }, commit : function( element ) { var value = this.getValue(); if ( value ) element.setStyle( 'list-style-type', value ); else element.removeStyle( 'list-style-type' ); } } ] } ] } ], onShow: function() { var editor = this.getParentEditor(), element = getListElement( editor, 'ol' ); element && this.setupContent( element ); }, onOk: function() { var editor = this.getParentEditor(), element = getListElement( editor, 'ol' ); element && this.commitContent( element ); } }; } } CKEDITOR.dialog.add( 'numberedListStyle', function( editor ) { return listStyle( editor, 'numberedListStyle' ); }); CKEDITOR.dialog.add( 'bulletedListStyle', function( editor ) { return listStyle( editor, 'bulletedListStyle' ); }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'docprops', { init : function( editor ) { var cmd = new CKEDITOR.dialogCommand( 'docProps' ); // Only applicable on full page mode. cmd.modes = { wysiwyg : editor.config.fullPage }; editor.addCommand( 'docProps', cmd ); CKEDITOR.dialog.add( 'docProps', this.path + 'dialogs/docprops.js' ); editor.ui.addButton( 'DocProps', { label : editor.lang.docprops.label, command : 'docProps' }); } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'docProps', function( editor ) { var lang = editor.lang.docprops, langCommon = editor.lang.common, metaHash = {}; function getDialogValue( dialogName, callback ) { var onOk = function() { releaseHandlers( this ); callback( this, this._.parentDialog ); }; var releaseHandlers = function( dialog ) { dialog.removeListener( 'ok', onOk ); dialog.removeListener( 'cancel', releaseHandlers ); }; var bindToDialog = function( dialog ) { dialog.on( 'ok', onOk ); dialog.on( 'cancel', releaseHandlers ); }; editor.execCommand( dialogName ); if ( editor._.storedDialogs.colordialog ) bindToDialog( editor._.storedDialogs.colordialog ); else { CKEDITOR.on( 'dialogDefinition', function( e ) { if ( e.data.name != dialogName ) return; var definition = e.data.definition; e.removeListener(); definition.onLoad = CKEDITOR.tools.override( definition.onLoad, function( orginal ) { return function() { bindToDialog( this ); definition.onLoad = orginal; if ( typeof orginal == 'function' ) orginal.call( this ); }; }); }); } } function handleOther() { var dialog = this.getDialog(), other = dialog.getContentElement( 'general', this.id + 'Other' ); if ( !other ) return; if ( this.getValue() == 'other' ) { other.getInputElement().removeAttribute( 'readOnly' ); other.focus(); other.getElement().removeClass( 'cke_disabled' ); } else { other.getInputElement().setAttribute( 'readOnly', true ); other.getElement().addClass( 'cke_disabled' ); } } function commitMeta( name, isHttp, value ) { return function( doc, html, head ) { var hash = metaHash, val = typeof value != 'undefined' ? value : this.getValue(); if ( !val && ( name in hash ) ) hash[ name ].remove(); else if ( val && ( name in hash ) ) hash[ name ].setAttribute( 'content', val ); else if ( val ) { var meta = new CKEDITOR.dom.element( 'meta', editor.document ); meta.setAttribute( isHttp ? 'http-equiv' : 'name', name ); meta.setAttribute( 'content', val ); head.append( meta ); } }; } function setupMeta( name, ret ) { return function() { var hash = metaHash, result = ( name in hash ) ? hash[ name ].getAttribute( 'content' ) || '' : ''; if ( ret ) return result; this.setValue( result ); return null; }; } function commitMargin( name ) { return function( doc, html, head, body ) { body.removeAttribute( 'margin' + name ); var val = this.getValue(); if ( val !== '' ) body.setStyle( 'margin-' + name, CKEDITOR.tools.cssLength( val ) ); else body.removeStyle( 'margin-' + name ); }; } function createMetaHash( doc ) { var hash = {}, metas = doc.getElementsByTag( 'meta' ), count = metas.count(); for ( var i = 0; i < count; i++ ) { var meta = metas.getItem( i ); hash[ meta.getAttribute( meta.hasAttribute( 'http-equiv' ) ? 'http-equiv' : 'name' ).toLowerCase() ] = meta; } return hash; } // We cannot just remove the style from the element, as it might be affected from non-inline stylesheets. // To get the proper result, we should manually set the inline style to its default value. function resetStyle( element, prop, resetVal ) { element.removeStyle( prop ); if ( element.getComputedStyle( prop ) != resetVal ) element.setStyle( prop, resetVal ); } // Utilty to shorten the creation of color fields in the dialog. var colorField = function( id, label, fieldProps ) { return { type : 'hbox', padding : 0, widths : [ '60%', '40%' ], children : [ CKEDITOR.tools.extend( { type : 'text', id : id, label : lang[ label ] }, fieldProps || {}, 1 ), { type : 'button', id : id + 'Choose', label : lang.chooseColor, className : 'colorChooser', onClick : function() { var self = this; getDialogValue( 'colordialog', function( colorDialog ) { var dialog = self.getDialog(); dialog.getContentElement( dialog._.currentTabId, id ).setValue( colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue() ); }); } } ] }; }; var previewSrc = 'javascript:' + 'void((function(){' + encodeURIComponent( 'document.open();' + ( CKEDITOR.env.isCustomDomain() ? 'document.domain=\'' + document.domain + '\';' : '' ) + 'document.write( \'<html style="background-color: #ffffff; height: 100%"><head></head><body style="width: 100%; height: 100%; margin: 0px">' + lang.previewHtml + '</body></html>\' );' + 'document.close();' ) + '})())'; return { title : lang.title, minHeight: 330, minWidth: 500, onShow : function() { var doc = editor.document, html = doc.getElementsByTag( 'html' ).getItem( 0 ), head = doc.getHead(), body = doc.getBody(); metaHash = createMetaHash( doc ); this.setupContent( doc, html, head, body ); }, onHide : function() { metaHash = {}; }, onOk : function() { var doc = editor.document, html = doc.getElementsByTag( 'html' ).getItem( 0 ), head = doc.getHead(), body = doc.getBody(); this.commitContent( doc, html, head, body ); }, contents : [ { id : 'general', label : langCommon.generalTab, elements : [ { type : 'text', id : 'title', label : lang.docTitle, setup : function( doc ) { this.setValue( doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title' ) ); }, commit : function( doc, html, head, body, isPreview ) { if ( isPreview ) return; doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title', this.getValue() ); } }, { type : 'hbox', children : [ { type : 'select', id : 'dir', label : langCommon.langDir, style : 'width: 100%', items : [ [ langCommon.notSet , '' ], [ langCommon.langDirLtr, 'ltr' ], [ langCommon.langDirRtl, 'rtl' ] ], setup : function( doc, html, head, body ) { this.setValue( body.getDirection() || '' ); }, commit : function( doc, html, head, body ) { var val = this.getValue(); if ( val ) body.setAttribute( 'dir', val ); else body.removeAttribute( 'dir' ); body.removeStyle( 'direction' ); } }, { type : 'text', id : 'langCode', label : langCommon.langCode, setup : function( doc, html ) { this.setValue( html.getAttribute( 'xml:lang' ) || html.getAttribute( 'lang' ) || '' ); }, commit : function( doc, html, head, body, isPreview ) { if ( isPreview ) return; var val = this.getValue(); if ( val ) html.setAttributes( { 'xml:lang' : val, lang : val } ); else html.removeAttributes( { 'xml:lang' : 1, lang : 1 } ); } } ] }, { type : 'hbox', children : [ { type : 'select', id : 'charset', label : lang.charset, style : 'width: 100%', items : [ [ langCommon.notSet, '' ], [ lang.charsetASCII, 'us-ascii' ], [ lang.charsetCE, 'iso-8859-2' ], [ lang.charsetCT, 'big5' ], [ lang.charsetCR, 'iso-8859-5' ], [ lang.charsetGR, 'iso-8859-7' ], [ lang.charsetJP, 'iso-2022-jp' ], [ lang.charsetKR, 'iso-2022-kr' ], [ lang.charsetTR, 'iso-8859-9' ], [ lang.charsetUN, 'utf-8' ], [ lang.charsetWE, 'iso-8859-1' ], [ lang.other, 'other' ] ], 'default' : '', onChange : function() { this.getDialog().selectedCharset = this.getValue() != 'other' ? this.getValue() : ''; handleOther.call( this ); }, setup : function() { this.metaCharset = ( 'charset' in metaHash ); var func = setupMeta( this.metaCharset ? 'charset' : 'content-type', 1, 1 ), val = func.call( this ); !this.metaCharset && val.match( /charset=[^=]+$/ ) && ( val = val.substring( val.indexOf( '=' ) + 1 ) ); if ( val ) { this.setValue( val.toLowerCase() ); if ( !this.getValue() ) { this.setValue( 'other' ); var other = this.getDialog().getContentElement( 'general', 'charsetOther' ); other && other.setValue( val ); } this.getDialog().selectedCharset = val; } handleOther.call( this ); }, commit : function( doc, html, head, body, isPreview ) { if ( isPreview ) return; var value = this.getValue(), other = this.getDialog().getContentElement( 'general', 'charsetOther' ); value == 'other' && ( value = other ? other.getValue() : '' ); value && !this.metaCharset && ( value = ( metaHash[ 'content-type' ] ? metaHash[ 'content-type' ].getAttribute( 'content' ).split( ';' )[0] : 'text/html' ) + '; charset=' + value ); var func = commitMeta( this.metaCharset ? 'charset' : 'content-type', 1, value ); func.call( this, doc, html, head ); } }, { type : 'text', id : 'charsetOther', label : lang.charsetOther, onChange : function(){ this.getDialog().selectedCharset = this.getValue(); } } ] }, { type : 'hbox', children : [ { type : 'select', id : 'docType', label : lang.docType, style : 'width: 100%', items : [ [ langCommon.notSet , '' ], [ 'XHTML 1.1', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">' ], [ 'XHTML 1.0 Transitional', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ], [ 'XHTML 1.0 Strict', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' ], [ 'XHTML 1.0 Frameset', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">' ], [ 'HTML 5', '<!DOCTYPE html>' ], [ 'HTML 4.01 Transitional', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' ], [ 'HTML 4.01 Strict', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">' ], [ 'HTML 4.01 Frameset', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' ], [ 'HTML 3.2', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">' ], [ 'HTML 2.0', '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">' ], [ lang.other, 'other' ] ], onChange : handleOther, setup : function() { if ( editor.docType ) { this.setValue( editor.docType ); if ( !this.getValue() ) { this.setValue( 'other' ); var other = this.getDialog().getContentElement( 'general', 'docTypeOther' ); other && other.setValue( editor.docType ); } } handleOther.call( this ); }, commit : function( doc, html, head, body, isPreview ) { if ( isPreview ) return; var value = this.getValue(), other = this.getDialog().getContentElement( 'general', 'docTypeOther' ); editor.docType = value == 'other' ? ( other ? other.getValue() : '' ) : value; } }, { type : 'text', id : 'docTypeOther', label : lang.docTypeOther } ] }, { type : 'checkbox', id : 'xhtmlDec', label : lang.xhtmlDec, setup : function() { this.setValue( !!editor.xmlDeclaration ); }, commit : function( doc, html, head, body, isPreview ) { if ( isPreview ) return; if ( this.getValue() ) { editor.xmlDeclaration = '<?xml version="1.0" encoding="' + ( this.getDialog().selectedCharset || 'utf-8' )+ '"?>' ; html.setAttribute( 'xmlns', 'http://www.w3.org/1999/xhtml' ); } else { editor.xmlDeclaration = ''; html.removeAttribute( 'xmlns' ); } } } ] }, { id : 'design', label : lang.design, elements : [ { type : 'hbox', widths : [ '60%', '40%' ], children : [ { type : 'vbox', children : [ colorField( 'txtColor', 'txtColor', { setup : function( doc, html, head, body ) { this.setValue( body.getComputedStyle( 'color' ) ); }, commit : function( doc, html, head, body, isPreview ) { if ( this.isChanged() || isPreview ) { body.removeAttribute( 'text' ); var val = this.getValue(); if ( val ) body.setStyle( 'color', val ); else body.removeStyle( 'color' ); } } }), colorField( 'bgColor', 'bgColor', { setup : function( doc, html, head, body ) { var val = body.getComputedStyle( 'background-color' ) || ''; this.setValue( val == 'transparent' ? '' : val ); }, commit : function( doc, html, head, body, isPreview ) { if ( this.isChanged() || isPreview ) { body.removeAttribute( 'bgcolor' ); var val = this.getValue(); if ( val ) body.setStyle( 'background-color', val ); else resetStyle( body, 'background-color', 'transparent' ); } } }), { type : 'hbox', widths : [ '60%', '40%' ], padding : 1, children : [ { type : 'text', id : 'bgImage', label : lang.bgImage, setup : function( doc, html, head, body ) { var val = body.getComputedStyle( 'background-image' ) || ''; if ( val == 'none' ) val = ''; else { val = val.replace( /url\(\s*(["']?)\s*([^\)]*)\s*\1\s*\)/i, function( match, quote, url ) { return url; }); } this.setValue( val ); }, commit : function( doc, html, head, body ) { body.removeAttribute( 'background' ); var val = this.getValue(); if ( val ) body.setStyle( 'background-image', 'url(' + val + ')' ); else resetStyle( body, 'background-image', 'none' ); } }, { type : 'button', id : 'bgImageChoose', label : langCommon.browseServer, style : 'display:inline-block;margin-top:10px;', hidden : true, filebrowser : 'design:bgImage' } ] }, { type : 'checkbox', id : 'bgFixed', label : lang.bgFixed, setup : function( doc, html, head, body ) { this.setValue( body.getComputedStyle( 'background-attachment' ) == 'fixed' ); }, commit : function( doc, html, head, body ) { if ( this.getValue() ) body.setStyle( 'background-attachment', 'fixed' ); else resetStyle( body, 'background-attachment', 'scroll' ); } } ] }, { type : 'vbox', children : [ { type : 'html', id : 'marginTitle', html : '<div style="text-align: center; margin: 0px auto; font-weight: bold">' + lang.margin + '</div>' }, { type : 'text', id : 'marginTop', label : lang.marginTop, style : 'width: 80px; text-align: center', align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' ); }, commit : commitMargin( 'top' ) }, { type : 'hbox', children : [ { type : 'text', id : 'marginLeft', label : lang.marginLeft, style : 'width: 80px; text-align: center', align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' ); }, commit : commitMargin( 'left' ) }, { type : 'text', id : 'marginRight', label : lang.marginRight, style : 'width: 80px; text-align: center', align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' ); }, commit : commitMargin( 'right' ) } ] }, { type : 'text', id : 'marginBottom', label : lang.marginBottom, style : 'width: 80px; text-align: center', align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' ); }, commit : commitMargin( 'bottom' ) } ] } ] } ] }, { id : 'meta', label : lang.meta, elements : [ { type : 'textarea', id : 'metaKeywords', label : lang.metaKeywords, setup : setupMeta( 'keywords' ), commit : commitMeta( 'keywords' ) }, { type : 'textarea', id : 'metaDescription', label : lang.metaDescription, setup : setupMeta( 'description' ), commit : commitMeta( 'description' ) }, { type : 'text', id : 'metaAuthor', label : lang.metaAuthor, setup : setupMeta( 'author' ), commit : commitMeta( 'author' ) }, { type : 'text', id : 'metaCopyright', label : lang.metaCopyright, setup : setupMeta( 'copyright' ), commit : commitMeta( 'copyright' ) } ] }, { id : 'preview', label : langCommon.preview, elements : [ { type : 'html', id : 'previewHtml', html : '<iframe src="' + previewSrc + '" style="width: 100%; height: 310px" hidefocus="true" frameborder="0" ' + 'id="cke_docProps_preview_iframe"></iframe>', onLoad : function() { this.getDialog().on( 'selectPage', function( ev ) { if ( ev.data.page == 'preview' ) { var self = this; setTimeout( function() { var doc = CKEDITOR.document.getById( 'cke_docProps_preview_iframe' ).getFrameDocument(), html = doc.getElementsByTag( 'html' ).getItem( 0 ), head = doc.getHead(), body = doc.getBody(); self.commitContent( doc, html, head, body, 1 ); }, 50 ); } }); CKEDITOR.document.getById( 'cke_docProps_preview_iframe' ).getAscendant( 'table' ).setStyle( 'height', '100%' ); } } ] } ] }; });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var cssStyle = CKEDITOR.htmlParser.cssStyle, cssLength = CKEDITOR.tools.cssLength; var cssLengthRegex = /^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i; /* * Replacing the former CSS length value with the later one, with * adjustment to the length unit. */ function replaceCssLength( length1, length2 ) { var parts1 = cssLengthRegex.exec( length1 ), parts2 = cssLengthRegex.exec( length2 ); // Omit pixel length unit when necessary, // e.g. replaceCssLength( 10, '20px' ) -> 20 if ( parts1 ) { if ( !parts1[ 2 ] && parts2[ 2 ] == 'px' ) return parts2[ 1 ]; if ( parts1[ 2 ] == 'px' && !parts2[ 2 ] ) return parts2[ 1 ] + 'px'; } return length2; } var htmlFilterRules = { elements : { $ : function( element ) { var attributes = element.attributes, realHtml = attributes && attributes[ 'data-cke-realelement' ], realFragment = realHtml && new CKEDITOR.htmlParser.fragment.fromHtml( decodeURIComponent( realHtml ) ), realElement = realFragment && realFragment.children[ 0 ]; // Width/height in the fake object are subjected to clone into the real element. if ( realElement && element.attributes[ 'data-cke-resizable' ] ) { var styles = new cssStyle( element ).rules, realAttrs = realElement.attributes, width = styles.width, height = styles.height; width && ( realAttrs.width = replaceCssLength( realAttrs.width, width ) ); height && ( realAttrs.height = replaceCssLength( realAttrs.height, height ) ); } return realElement; } } }; CKEDITOR.plugins.add( 'fakeobjects', { requires : [ 'htmlwriter' ], afterInit : function( editor ) { var dataProcessor = editor.dataProcessor, htmlFilter = dataProcessor && dataProcessor.htmlFilter; if ( htmlFilter ) htmlFilter.addRules( htmlFilterRules ); } }); CKEDITOR.editor.prototype.createFakeElement = function( realElement, className, realElementType, isResizable ) { var lang = this.lang.fakeobjects, label = lang[ realElementType ] || lang.unknown; var attributes = { 'class' : className, 'data-cke-realelement' : encodeURIComponent( realElement.getOuterHtml() ), 'data-cke-real-node-type' : realElement.type, alt : label, title : label, align : realElement.getAttribute( 'align' ) || '' }; // Do not set "src" on high-contrast so the alt text is displayed. (#8945) if ( !CKEDITOR.env.hc ) attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' ); if ( realElementType ) attributes[ 'data-cke-real-element-type' ] = realElementType; if ( isResizable ) { attributes[ 'data-cke-resizable' ] = isResizable; var fakeStyle = new cssStyle(); var width = realElement.getAttribute( 'width' ), height = realElement.getAttribute( 'height' ); width && ( fakeStyle.rules.width = cssLength( width ) ); height && ( fakeStyle.rules.height = cssLength( height ) ); fakeStyle.populate( attributes ); } return this.document.createElement( 'img', { attributes : attributes } ); }; CKEDITOR.editor.prototype.createFakeParserElement = function( realElement, className, realElementType, isResizable ) { var lang = this.lang.fakeobjects, label = lang[ realElementType ] || lang.unknown, html; var writer = new CKEDITOR.htmlParser.basicWriter(); realElement.writeHtml( writer ); html = writer.getHtml(); var attributes = { 'class' : className, 'data-cke-realelement' : encodeURIComponent( html ), 'data-cke-real-node-type' : realElement.type, alt : label, title : label, align : realElement.attributes.align || '' }; // Do not set "src" on high-contrast so the alt text is displayed. (#8945) if ( !CKEDITOR.env.hc ) attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' ); if ( realElementType ) attributes[ 'data-cke-real-element-type' ] = realElementType; if ( isResizable ) { attributes[ 'data-cke-resizable' ] = isResizable; var realAttrs = realElement.attributes, fakeStyle = new cssStyle(); var width = realAttrs.width, height = realAttrs.height; width != undefined && ( fakeStyle.rules.width = cssLength( width ) ); height != undefined && ( fakeStyle.rules.height = cssLength ( height ) ); fakeStyle.populate( attributes ); } return new CKEDITOR.htmlParser.element( 'img', attributes ); }; CKEDITOR.editor.prototype.restoreRealElement = function( fakeElement ) { if ( fakeElement.data( 'cke-real-node-type' ) != CKEDITOR.NODE_ELEMENT ) return null; var element = CKEDITOR.dom.element.createFromHtml( decodeURIComponent( fakeElement.data( 'cke-realelement' ) ), this.document ); if ( fakeElement.data( 'cke-resizable') ) { var width = fakeElement.getStyle( 'width' ), height = fakeElement.getStyle( 'height' ); width && element.setAttribute( 'width', replaceCssLength( element.getAttribute( 'width' ), width ) ); height && element.setAttribute( 'height', replaceCssLength( element.getAttribute( 'height' ), height ) ); } return element; }; })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Horizontal Page Break */ // Register a plugin named "pagebreak". CKEDITOR.plugins.add( 'pagebreak', { init : function( editor ) { // Register the command. editor.addCommand( 'pagebreak', CKEDITOR.plugins.pagebreakCmd ); // Register the toolbar button. editor.ui.addButton( 'PageBreak', { label : editor.lang.pagebreak, command : 'pagebreak' }); var cssStyles = [ '{' , 'background: url(' + CKEDITOR.getUrl( this.path + 'images/pagebreak.gif' ) + ') no-repeat center center;' , 'clear: both;' , 'width:100%; _width:99.9%;' , 'border-top: #999999 1px dotted;' , 'border-bottom: #999999 1px dotted;' , 'padding:0;' , 'height: 5px;' , 'cursor: default;' , '}' ].join( '' ).replace(/;/g, ' !important;' ); // Increase specificity to override other styles, e.g. block outline. // Add the style that renders our placeholder. editor.addCss( 'div.cke_pagebreak' + cssStyles ); // Opera needs help to select the page-break. CKEDITOR.env.opera && editor.on( 'contentDom', function() { editor.document.on( 'click', function( evt ) { var target = evt.data.getTarget(); if ( target.is( 'div' ) && target.hasClass( 'cke_pagebreak') ) editor.getSelection().selectElement( target ); }); }); }, afterInit : function( editor ) { var label = editor.lang.pagebreakAlt; // Register a filter to displaying placeholders after mode change. var dataProcessor = editor.dataProcessor, dataFilter = dataProcessor && dataProcessor.dataFilter, htmlFilter = dataProcessor && dataProcessor.htmlFilter; if ( htmlFilter ) { htmlFilter.addRules( { attributes : { 'class' : function( value, element ) { var className = value.replace( 'cke_pagebreak', '' ); if ( className != value ) { var span = CKEDITOR.htmlParser.fragment.fromHtml( '<span style="display: none;">&nbsp;</span>' ); element.children.length = 0; element.add( span ); var attrs = element.attributes; delete attrs[ 'aria-label' ]; delete attrs.contenteditable; delete attrs.title; } return className; } } }, 5 ); } if ( dataFilter ) { dataFilter.addRules( { elements : { div : function( element ) { var attributes = element.attributes, style = attributes && attributes.style, child = style && element.children.length == 1 && element.children[ 0 ], childStyle = child && ( child.name == 'span' ) && child.attributes.style; if ( childStyle && ( /page-break-after\s*:\s*always/i ).test( style ) && ( /display\s*:\s*none/i ).test( childStyle ) ) { attributes.contenteditable = "false"; attributes[ 'class' ] = "cke_pagebreak"; attributes[ 'data-cke-display-name' ] = "pagebreak"; attributes[ 'aria-label' ] = label; attributes[ 'title' ] = label; element.children.length = 0; } } } }); } }, requires : [ 'fakeobjects' ] }); CKEDITOR.plugins.pagebreakCmd = { exec : function( editor ) { var label = editor.lang.pagebreakAlt; // Create read-only element that represents a print break. var pagebreak = CKEDITOR.dom.element.createFromHtml( '<div style="' + 'page-break-after: always;"' + 'contenteditable="false" ' + 'title="'+ label + '" ' + 'aria-label="'+ label + '" ' + 'data-cke-display-name="pagebreak" ' + 'class="cke_pagebreak">' + '</div>', editor.document ); var ranges = editor.getSelection().getRanges( true ); editor.fire( 'saveSnapshot' ); for ( var range, i = ranges.length - 1 ; i >= 0; i-- ) { range = ranges[ i ]; if ( i < ranges.length -1 ) pagebreak = pagebreak.clone( true ); range.splitBlock( 'p' ); range.insertNode( pagebreak ); if ( i == ranges.length - 1 ) { var next = pagebreak.getNext(); range.moveToPosition( pagebreak, CKEDITOR.POSITION_AFTER_END ); // If there's nothing or a non-editable block followed by, establish a new paragraph // to make sure cursor is not trapped. if ( !next || next.type == CKEDITOR.NODE_ELEMENT && !next.isEditable() ) range.fixBlock( true, editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); range.select(); } } editor.fire( 'saveSnapshot' ); } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { // #### checkSelectionChange : START // The selection change check basically saves the element parent tree of // the current node and check it on successive requests. If there is any // change on the tree, then the selectionChange event gets fired. function checkSelectionChange() { try { // In IE, the "selectionchange" event may still get thrown when // releasing the WYSIWYG mode, so we need to check it first. var sel = this.getSelection(); if ( !sel || !sel.document.getWindow().$ ) return; var firstElement = sel.getStartElement(); var currentPath = new CKEDITOR.dom.elementPath( firstElement ); if ( !currentPath.compare( this._.selectionPreviousPath ) ) { this._.selectionPreviousPath = currentPath; this.fire( 'selectionChange', { selection : sel, path : currentPath, element : firstElement } ); } } catch (e) {} } var checkSelectionChangeTimer, checkSelectionChangeTimeoutPending; function checkSelectionChangeTimeout() { // Firing the "OnSelectionChange" event on every key press started to // be too slow. This function guarantees that there will be at least // 200ms delay between selection checks. checkSelectionChangeTimeoutPending = true; if ( checkSelectionChangeTimer ) return; checkSelectionChangeTimeoutExec.call( this ); checkSelectionChangeTimer = CKEDITOR.tools.setTimeout( checkSelectionChangeTimeoutExec, 200, this ); } function checkSelectionChangeTimeoutExec() { checkSelectionChangeTimer = null; if ( checkSelectionChangeTimeoutPending ) { // Call this with a timeout so the browser properly moves the // selection after the mouseup. It happened that the selection was // being moved after the mouseup when clicking inside selected text // with Firefox. CKEDITOR.tools.setTimeout( checkSelectionChange, 0, this ); checkSelectionChangeTimeoutPending = false; } } // #### checkSelectionChange : END function rangeRequiresFix( range ) { function isTextCt( node, isAtEnd ) { if ( !node || node.type == CKEDITOR.NODE_TEXT ) return false; var testRng = range.clone(); return testRng[ 'moveToElementEdit' + ( isAtEnd ? 'End' : 'Start' ) ]( node ); } var ct = range.startContainer; var previous = range.getPreviousNode( isVisible, null, ct ), next = range.getNextNode( isVisible, null, ct ); // Any adjacent text container may absorb the cursor, e.g. // <p><strong>text</strong>^foo</p> // <p>foo^<strong>text</strong></p> // <div>^<p>foo</p></div> if ( isTextCt( previous ) || isTextCt( next, 1 ) ) return true; // Empty block/inline element is also affected. <span>^</span>, <p>^</p> (#7222) if ( !( previous || next ) && !( ct.type == CKEDITOR.NODE_ELEMENT && ct.isBlockBoundary() && ct.getBogus() ) ) return true; return false; } var selectAllCmd = { modes : { wysiwyg : 1, source : 1 }, readOnly : CKEDITOR.env.ie || CKEDITOR.env.webkit, exec : function( editor ) { switch ( editor.mode ) { case 'wysiwyg' : editor.document.$.execCommand( 'SelectAll', false, null ); // Force triggering selectionChange (#7008) editor.forceNextSelectionCheck(); editor.selectionChange(); break; case 'source' : // Select the contents of the textarea var textarea = editor.textarea.$; if ( CKEDITOR.env.ie ) textarea.createTextRange().execCommand( 'SelectAll' ); else { textarea.selectionStart = 0; textarea.selectionEnd = textarea.value.length; } textarea.focus(); } }, canUndo : false }; function createFillingChar( doc ) { removeFillingChar( doc ); var fillingChar = doc.createText( '\u200B' ); doc.setCustomData( 'cke-fillingChar', fillingChar ); return fillingChar; } function getFillingChar( doc ) { return doc && doc.getCustomData( 'cke-fillingChar' ); } // Checks if a filling char has been used, eventualy removing it (#1272). function checkFillingChar( doc ) { var fillingChar = doc && getFillingChar( doc ); if ( fillingChar ) { // Use this flag to avoid removing the filling char right after // creating it. if ( fillingChar.getCustomData( 'ready' ) ) removeFillingChar( doc ); else fillingChar.setCustomData( 'ready', 1 ); } } function removeFillingChar( doc ) { var fillingChar = doc && doc.removeCustomData( 'cke-fillingChar' ); if ( fillingChar ) { var bm, sel = doc.getSelection().getNative(), // Be error proof. range = sel && sel.type != 'None' && sel.getRangeAt( 0 ); // Text selection position might get mangled by // subsequent dom modification, save it now for restoring. (#8617) if ( fillingChar.getLength() > 1 && range && range.intersectsNode( fillingChar.$ ) ) { bm = [ sel.anchorOffset, sel.focusOffset ]; // Anticipate the offset change brought by the removed char. var startAffected = sel.anchorNode == fillingChar.$ && sel.anchorOffset > 0, endAffected = sel.focusNode == fillingChar.$ && sel.focusOffset > 0; startAffected && bm[ 0 ]--; endAffected && bm[ 1 ]--; // Revert the bookmark order on reverse selection. isReversedSelection( sel ) && bm.unshift( bm.pop() ); } // We can't simply remove the filling node because the user // will actually enlarge it when typing, so we just remove the // invisible char from it. fillingChar.setText( fillingChar.getText().replace( /\u200B/g, '' ) ); // Restore the bookmark. if ( bm ) { var rng = sel.getRangeAt( 0 ); rng.setStart( rng.startContainer, bm[ 0 ] ); rng.setEnd( rng.startContainer, bm[ 1 ] ); sel.removeAllRanges(); sel.addRange( rng ); } } } function isReversedSelection( sel ) { if ( !sel.isCollapsed ) { var range = sel.getRangeAt( 0 ); // Potentially alter an reversed selection range. range.setStart( sel.anchorNode, sel.anchorOffset ); range.setEnd( sel.focusNode, sel.focusOffset ); return range.collapsed; } } CKEDITOR.plugins.add( 'selection', { init : function( editor ) { // On WebKit only, we need a special "filling" char on some situations // (#1272). Here we set the events that should invalidate that char. if ( CKEDITOR.env.webkit ) { editor.on( 'selectionChange', function() { checkFillingChar( editor.document ); } ); editor.on( 'beforeSetMode', function() { removeFillingChar( editor.document ); } ); var fillingCharBefore, resetSelection; function beforeData() { var doc = editor.document, fillingChar = getFillingChar( doc ); if ( fillingChar ) { // If cursor is right blinking by side of the filler node, save it for restoring, // as the following text substitution will blind it. (#7437) var sel = doc.$.defaultView.getSelection(); if ( sel.type == 'Caret' && sel.anchorNode == fillingChar.$ ) resetSelection = 1; fillingCharBefore = fillingChar.getText(); fillingChar.setText( fillingCharBefore.replace( /\u200B/g, '' ) ); } } function afterData() { var doc = editor.document, fillingChar = getFillingChar( doc ); if ( fillingChar ) { fillingChar.setText( fillingCharBefore ); if ( resetSelection ) { doc.$.defaultView.getSelection().setPosition( fillingChar.$,fillingChar.getLength() ); resetSelection = 0; } } } editor.on( 'beforeUndoImage', beforeData ); editor.on( 'afterUndoImage', afterData ); editor.on( 'beforeGetData', beforeData, null, null, 0 ); editor.on( 'getData', afterData ); } editor.on( 'contentDom', function() { var doc = editor.document, outerDoc = CKEDITOR.document, body = doc.getBody(), html = doc.getDocumentElement(); if ( CKEDITOR.env.ie ) { // Other browsers don't loose the selection if the // editor document loose the focus. In IE, we don't // have support for it, so we reproduce it here, other // than firing the selection change event. var savedRange, saveEnabled, restoreEnabled = 1; // "onfocusin" is fired before "onfocus". It makes it // possible to restore the selection before click // events get executed. body.on( 'focusin', function( evt ) { // If there are elements with layout they fire this event but // it must be ignored to allow edit its contents #4682 if ( evt.data.$.srcElement.nodeName != 'BODY' ) return; // Give the priority to locked selection since it probably // reflects the actual situation, besides locked selection // could be interfered because of text nodes normalizing. // (#6083, #6987) var lockedSelection = doc.getCustomData( 'cke_locked_selection' ); if ( lockedSelection ) { lockedSelection.unlock( 1 ); lockedSelection.lock(); } // Then check ff we have saved a range, restore it at this // point. else if ( savedRange && restoreEnabled ) { // Well not break because of this. try { savedRange.select(); } catch (e) {} savedRange = null; } }); body.on( 'focus', function() { // Enable selections to be saved. saveEnabled = 1; saveSelection(); }); body.on( 'beforedeactivate', function( evt ) { // Ignore this event if it's caused by focus switch between // internal editable control type elements, e.g. layouted paragraph. (#4682) if ( evt.data.$.toElement ) return; // Disable selections from being saved. saveEnabled = 0; restoreEnabled = 1; }); // [IE] Iframe will still keep the selection when blurred, if // focus is moved onto a non-editing host, e.g. link or button, but // it becomes a problem for the object type selection, since the resizer // handler attached on it will mark other part of the UI, especially // for the dialog. (#8157) // [IE<8] Even worse For old IEs, the cursor will not vanish even if // the selection has been moved to another text input in some cases. (#4716) // // Now the range restore is disabled, so we simply force IE to clean // up the selection before blur. CKEDITOR.env.ie && editor.on( 'blur', function() { // Error proof when the editor is not visible. (#6375) try{ doc.$.selection.empty(); } catch ( er){} }); // Listening on document element ensures that // scrollbar is included. (#5280) html.on( 'mousedown', function() { // Lock restore selection now, as we have // a followed 'click' event which introduce // new selection. (#5735) restoreEnabled = 0; }); html.on( 'mouseup', function() { restoreEnabled = 1; }); var scroll; // IE fires the "selectionchange" event when clicking // inside a selection. We don't want to capture that. body.on( 'mousedown', function( evt ) { // IE scrolls document to top on right mousedown // when editor has no focus, remember this scroll // position and revert it before context menu opens. (#5778) if ( evt.data.$.button == 2 ) { var sel = editor.document.$.selection; if ( sel.type == 'None' ) scroll = editor.window.getScrollPosition(); } disableSave(); }); body.on( 'mouseup', function( evt ) { // Restore recorded scroll position when needed on right mouseup. if ( evt.data.$.button == 2 && scroll ) { editor.document.$.documentElement.scrollLeft = scroll.x; editor.document.$.documentElement.scrollTop = scroll.y; } scroll = null; saveEnabled = 1; setTimeout( function() { saveSelection( true ); }, 0 ); }); body.on( 'keydown', disableSave ); body.on( 'keyup', function() { saveEnabled = 1; saveSelection(); }); // When content doc is in standards mode, IE doesn't produce text selection // when click on the region outside of body, we emulate // the correct behavior here. (#1659, #7932, # 9097) if ( doc.$.compatMode != 'BackCompat' ) { if ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) { function moveRangeToPoint( range, x, y ) { // Error prune in IE7. (#9034, #9110) try { range.moveToPoint( x, y ); } catch ( e ) {} } html.on( 'mousedown', function( evt ) { // Expand the text range along with mouse move. function onHover( evt ) { evt = evt.data.$; if ( textRng ) { // Read the current cursor. var rngEnd = body.$.createTextRange(); moveRangeToPoint( rngEnd, evt.x, evt.y ); // Handle drag directions. textRng.setEndPoint( startRng.compareEndPoints( 'StartToStart', rngEnd ) < 0 ? 'EndToEnd' : 'StartToStart', rngEnd ); // Update selection with new range. textRng.select(); } } function removeListeners() { outerDoc.removeListener( 'mouseup', onSelectEnd ); html.removeListener( 'mouseup', onSelectEnd ); } function onSelectEnd() { html.removeListener( 'mousemove', onHover ); removeListeners(); // Make it in effect on mouse up. (#9022) textRng.select(); } evt = evt.data; // We're sure that the click happens at the region // outside body, but not on scrollbar. if ( evt.getTarget().is( 'html' ) && evt.$.x < html.$.clientWidth && evt.$.y < html.$.clientHeight ) { // Start to build the text range. var textRng = body.$.createTextRange(); moveRangeToPoint( textRng, evt.$.x, evt.$.y ); // Records the dragging start of the above text range. var startRng = textRng.duplicate(); html.on( 'mousemove', onHover ); outerDoc.on( 'mouseup', onSelectEnd ); html.on( 'mouseup', onSelectEnd ); } }); } // It's much simpler for IE > 8, we just need to reselect the reported range. if ( CKEDITOR.env.ie8 ) { html.on( 'mousedown', function( evt ) { if ( evt.data.getTarget().is( 'html' ) ) { // Limit the text selection mouse move inside of editable. (#9715) outerDoc.on( 'mouseup', onSelectEnd ); html.on( 'mouseup', onSelectEnd ); } }); function removeListeners() { outerDoc.removeListener( 'mouseup', onSelectEnd ); html.removeListener( 'mouseup', onSelectEnd ); } function onSelectEnd() { removeListeners(); // The event is not fired when clicking on the scrollbars, // so we can safely check the following to understand // whether the empty space following <body> has been clicked. var sel = CKEDITOR.document.$.selection, range = sel.createRange(); // The selection range is reported on host, but actually it should applies to the content doc. if ( sel.type != 'None' && range.parentElement().ownerDocument == doc.$ ) range.select(); } } } // IE is the only to provide the "selectionchange" // event. doc.on( 'selectionchange', saveSelection ); function disableSave() { saveEnabled = 0; } function saveSelection( testIt ) { if ( saveEnabled ) { var doc = editor.document, sel = editor.getSelection(), nativeSel = sel && sel.getNative(); // There is a very specific case, when clicking // inside a text selection. In that case, the // selection collapses at the clicking point, // but the selection object remains in an // unknown state, making createRange return a // range at the very start of the document. In // such situation we have to test the range, to // be sure it's valid. if ( testIt && nativeSel && nativeSel.type == 'None' ) { // The "InsertImage" command can be used to // test whether the selection is good or not. // If not, it's enough to give some time to // IE to put things in order for us. if ( !doc.$.queryCommandEnabled( 'InsertImage' ) ) { CKEDITOR.tools.setTimeout( saveSelection, 50, this, true ); return; } } // Avoid saving selection from within text input. (#5747) var parentTag; if ( nativeSel && nativeSel.type && nativeSel.type != 'Control' && ( parentTag = nativeSel.createRange() ) && ( parentTag = parentTag.parentElement() ) && ( parentTag = parentTag.nodeName ) && parentTag.toLowerCase() in { input: 1, textarea : 1 } ) { return; } // Not break because of this. (#9132) try{ savedRange = nativeSel && sel.getRanges()[ 0 ]; } catch( er ) {} checkSelectionChangeTimeout.call( editor ); } } } else { // In other browsers, we make the selection change // check based on other events, like clicks or keys // press. doc.on( 'mouseup', checkSelectionChangeTimeout, editor ); doc.on( 'keyup', checkSelectionChangeTimeout, editor ); doc.on( 'selectionchange', checkSelectionChangeTimeout, editor ); } if ( CKEDITOR.env.webkit ) { // Before keystroke is handled by editor, check to remove the filling char. doc.on( 'keydown', function( evt ) { var key = evt.data.getKey(); // Remove the filling char before some keys get // executed, so they'll not get blocked by it. switch ( key ) { case 13 : // ENTER case 33 : // PAGEUP case 34 : // PAGEDOWN case 35 : // HOME case 36 : // END case 37 : // LEFT-ARROW case 39 : // RIGHT-ARROW case 8 : // BACKSPACE case 45 : // INS case 46 : // DEl removeFillingChar( editor.document ); } }, null, null, -1 ); } }); // Clear the cached range path before unload. (#7174) editor.on( 'contentDomUnload', editor.forceNextSelectionCheck, editor ); editor.addCommand( 'selectAll', selectAllCmd ); editor.ui.addButton( 'SelectAll', { label : editor.lang.selectAll, command : 'selectAll' }); /** * Check if to fire the {@link CKEDITOR.editor#selectionChange} event * for the current editor instance. * * @param {Boolean} checkNow Check immediately without any delay. */ editor.selectionChange = function( checkNow ) { ( checkNow ? checkSelectionChange : checkSelectionChangeTimeout ).call( this ); }; // IE9 might cease to work if there's an object selection inside the iframe (#7639). CKEDITOR.env.ie9Compat && editor.on( 'destroy', function() { var sel = editor.getSelection(); sel && sel.getNative().clear(); }, null, null, 9 ); } }); /** * Gets the current selection from the editing area when in WYSIWYG mode. * @returns {CKEDITOR.dom.selection} A selection object or null if not in * WYSIWYG mode or no selection is available. * @example * var selection = CKEDITOR.instances.editor1.<strong>getSelection()</strong>; * alert( selection.getType() ); */ CKEDITOR.editor.prototype.getSelection = function() { return this.document && this.document.getSelection(); }; CKEDITOR.editor.prototype.forceNextSelectionCheck = function() { delete this._.selectionPreviousPath; }; /** * Gets the current selection from the document. * @returns {CKEDITOR.dom.selection} A selection object. * @example * var selection = CKEDITOR.instances.editor1.document.<strong>getSelection()</strong>; * alert( selection.getType() ); */ CKEDITOR.dom.document.prototype.getSelection = function() { var sel = new CKEDITOR.dom.selection( this ); return ( !sel || sel.isInvalid ) ? null : sel; }; /** * No selection. * @constant * @example * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_NONE ) * alert( 'Nothing is selected' ); */ CKEDITOR.SELECTION_NONE = 1; /** * A text or a collapsed selection. * @constant * @example * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_TEXT ) * alert( 'A text is selected' ); */ CKEDITOR.SELECTION_TEXT = 2; /** * Element selection. * @constant * @example * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_ELEMENT ) * alert( 'An element is selected' ); */ CKEDITOR.SELECTION_ELEMENT = 3; /** * Manipulates the selection in a DOM document. * @constructor * @param {CKEDITOR.dom.document} document The DOM document that contains the selection. * @example * var sel = new <strong>CKEDITOR.dom.selection( CKEDITOR.document )</strong>; */ CKEDITOR.dom.selection = function( document ) { var lockedSelection = document.getCustomData( 'cke_locked_selection' ); if ( lockedSelection ) return lockedSelection; this.document = document; this.isLocked = 0; this._ = { cache : {} }; /** * IE BUG: The selection's document may be a different document than the * editor document. Return null if that is the case. */ if ( CKEDITOR.env.ie ) { // Avoid breaking because of it. (#8836) try { var range = this.getNative().createRange(); if ( !range || ( range.item && range.item( 0 ).ownerDocument != this.document.$ ) || ( range.parentElement && range.parentElement().ownerDocument != this.document.$ ) ) { throw 0; } } catch ( e ) { this.isInvalid = true; } } return this; }; var styleObjectElements = { img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1, a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1 }; CKEDITOR.dom.selection.prototype = { /** * Gets the native selection object from the browser. * @function * @returns {Object} The native browser selection object. * @example * var selection = editor.getSelection().<strong>getNative()</strong>; */ getNative : CKEDITOR.env.ie ? function() { return this._.cache.nativeSel || ( this._.cache.nativeSel = this.document.$.selection ); } : function() { return this._.cache.nativeSel || ( this._.cache.nativeSel = this.document.getWindow().$.getSelection() ); }, /** * Gets the type of the current selection. The following values are * available: * <ul> * <li><code>{@link CKEDITOR.SELECTION_NONE}</code> (1): No selection.</li> * <li><code>{@link CKEDITOR.SELECTION_TEXT}</code> (2): A text or a collapsed * selection is selected.</li> * <li><code>{@link CKEDITOR.SELECTION_ELEMENT}</code> (3): An element is * selected.</li> * </ul> * @function * @returns {Number} One of the following constant values: * <code>{@link CKEDITOR.SELECTION_NONE}</code>, <code>{@link CKEDITOR.SELECTION_TEXT}</code>, or * <code>{@link CKEDITOR.SELECTION_ELEMENT}</code>. * @example * if ( editor.getSelection().<strong>getType()</strong> == CKEDITOR.SELECTION_TEXT ) * alert( 'A text is selected' ); */ getType : CKEDITOR.env.ie ? function() { var cache = this._.cache; if ( cache.type ) return cache.type; var type = CKEDITOR.SELECTION_NONE; try { var sel = this.getNative(), ieType = sel.type; if ( ieType == 'Text' ) type = CKEDITOR.SELECTION_TEXT; if ( ieType == 'Control' ) type = CKEDITOR.SELECTION_ELEMENT; // It is possible that we can still get a text range // object even when type == 'None' is returned by IE. // So we'd better check the object returned by // createRange() rather than by looking at the type. if ( sel.createRange().parentElement ) type = CKEDITOR.SELECTION_TEXT; } catch(e) {} return ( cache.type = type ); } : function() { var cache = this._.cache; if ( cache.type ) return cache.type; var type = CKEDITOR.SELECTION_TEXT; var sel = this.getNative(); if ( !sel ) type = CKEDITOR.SELECTION_NONE; else if ( sel.rangeCount == 1 ) { // Check if the actual selection is a control (IMG, // TABLE, HR, etc...). var range = sel.getRangeAt(0), startContainer = range.startContainer; if ( startContainer == range.endContainer && startContainer.nodeType == 1 && ( range.endOffset - range.startOffset ) == 1 && styleObjectElements[ startContainer.childNodes[ range.startOffset ].nodeName.toLowerCase() ] ) { type = CKEDITOR.SELECTION_ELEMENT; } } return ( cache.type = type ); }, /** * Retrieves the <code>{@link CKEDITOR.dom.range}</code> instances that represent the current selection. * Note: Some browsers return multiple ranges even for a continuous selection. Firefox, for example, returns * one range for each table cell when one or more table rows are selected. * @function * @param {Boolean} [onlyEditables] If set to <code>true</code>, this function retrives editable ranges only. * @return {Array} Range instances that represent the current selection. * @example * var ranges = selection.<strong>getRanges()</strong>; * alert( ranges.length ); */ getRanges : (function() { var func = CKEDITOR.env.ie ? ( function() { function getNodeIndex( node ) { return new CKEDITOR.dom.node( node ).getIndex(); } // Finds the container and offset for a specific boundary // of an IE range. var getBoundaryInformation = function( range, start ) { // Creates a collapsed range at the requested boundary. range = range.duplicate(); range.collapse( start ); // Gets the element that encloses the range entirely. var parent = range.parentElement(), doc = parent.ownerDocument; // Empty parent element, e.g. <i>^</i> if ( !parent.hasChildNodes() ) return { container : parent, offset : 0 }; var siblings = parent.children, child, sibling, testRange = range.duplicate(), startIndex = 0, endIndex = siblings.length - 1, index = -1, position, distance, container; // Binary search over all element childs to test the range to see whether // range is right on the boundary of one element. while ( startIndex <= endIndex ) { index = Math.floor( ( startIndex + endIndex ) / 2 ); child = siblings[ index ]; testRange.moveToElementText( child ); position = testRange.compareEndPoints( 'StartToStart', range ); if ( position > 0 ) endIndex = index - 1; else if ( position < 0 ) startIndex = index + 1; else { // IE9 report wrong measurement with compareEndPoints when range anchors between two BRs. // e.g. <p>text<br />^<br /></p> (#7433) if ( CKEDITOR.env.ie9Compat && child.tagName == 'BR' ) { // "Fall back" to w3c selection. var sel = doc.defaultView.getSelection(); return { container : sel[ start ? 'anchorNode' : 'focusNode' ], offset : sel[ start ? 'anchorOffset' : 'focusOffset' ] }; } else return { container : parent, offset : getNodeIndex( child ) }; } } // All childs are text nodes, // or to the right hand of test range are all text nodes. (#6992) if ( index == -1 || index == siblings.length - 1 && position < 0 ) { // Adapt test range to embrace the entire parent contents. testRange.moveToElementText( parent ); testRange.setEndPoint( 'StartToStart', range ); // IE report line break as CRLF with range.text but // only LF with textnode.nodeValue, normalize them to avoid // breaking character counting logic below. (#3949) distance = testRange.text.replace( /(\r\n|\r)/g, '\n' ).length; siblings = parent.childNodes; // Actual range anchor right beside test range at the boundary of text node. if ( !distance ) { child = siblings[ siblings.length - 1 ]; if ( child.nodeType != CKEDITOR.NODE_TEXT ) return { container : parent, offset : siblings.length }; else return { container : child, offset : child.nodeValue.length }; } // Start the measuring until distance overflows, meanwhile count the text nodes. var i = siblings.length; while ( distance > 0 && i > 0 ) { sibling = siblings[ --i ]; if ( sibling.nodeType == CKEDITOR.NODE_TEXT ) { container = sibling; distance -= sibling.nodeValue.length; } } return { container : container, offset : -distance }; } // Test range was one offset beyond OR behind the anchored text node. else { // Adapt one side of test range to the actual range // for measuring the offset between them. testRange.collapse( position > 0 ? true : false ); testRange.setEndPoint( position > 0 ? 'StartToStart' : 'EndToStart', range ); // IE report line break as CRLF with range.text but // only LF with textnode.nodeValue, normalize them to avoid // breaking character counting logic below. (#3949) distance = testRange.text.replace( /(\r\n|\r)/g, '\n' ).length; // Actual range anchor right beside test range at the inner boundary of text node. if ( !distance ) return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? 0 : 1 ) }; // Start the measuring until distance overflows, meanwhile count the text nodes. while ( distance > 0 ) { try { sibling = child[ position > 0 ? 'previousSibling' : 'nextSibling' ]; if ( sibling.nodeType == CKEDITOR.NODE_TEXT ) { distance -= sibling.nodeValue.length; container = sibling; } child = sibling; } // Measurement in IE could be somtimes wrong because of <select> element. (#4611) catch( e ) { return { container : parent, offset : getNodeIndex( child ) }; } } return { container : container, offset : position > 0 ? -distance : container.nodeValue.length + distance }; } }; return function() { // IE doesn't have range support (in the W3C way), so we // need to do some magic to transform selections into // CKEDITOR.dom.range instances. var sel = this.getNative(), nativeRange = sel && sel.createRange(), type = this.getType(), range; if ( !sel ) return []; if ( type == CKEDITOR.SELECTION_TEXT ) { range = new CKEDITOR.dom.range( this.document ); var boundaryInfo = getBoundaryInformation( nativeRange, true ); range.setStart( new CKEDITOR.dom.node( boundaryInfo.container ), boundaryInfo.offset ); boundaryInfo = getBoundaryInformation( nativeRange ); range.setEnd( new CKEDITOR.dom.node( boundaryInfo.container ), boundaryInfo.offset ); // Correct an invalid IE range case on empty list item. (#5850) if ( range.endContainer.getPosition( range.startContainer ) & CKEDITOR.POSITION_PRECEDING && range.endOffset <= range.startContainer.getIndex() ) { range.collapse(); } return [ range ]; } else if ( type == CKEDITOR.SELECTION_ELEMENT ) { var retval = []; for ( var i = 0 ; i < nativeRange.length ; i++ ) { var element = nativeRange.item( i ), parentElement = element.parentNode, j = 0; range = new CKEDITOR.dom.range( this.document ); for (; j < parentElement.childNodes.length && parentElement.childNodes[j] != element ; j++ ) { /*jsl:pass*/ } range.setStart( new CKEDITOR.dom.node( parentElement ), j ); range.setEnd( new CKEDITOR.dom.node( parentElement ), j + 1 ); retval.push( range ); } return retval; } return []; }; })() : function() { // On browsers implementing the W3C range, we simply // tranform the native ranges in CKEDITOR.dom.range // instances. var ranges = [], range, doc = this.document, sel = this.getNative(); if ( !sel ) return ranges; // On WebKit, it may happen that we'll have no selection // available. We normalize it here by replicating the // behavior of other browsers. if ( !sel.rangeCount ) { range = new CKEDITOR.dom.range( doc ); range.moveToElementEditStart( doc.getBody() ); ranges.push( range ); } for ( var i = 0 ; i < sel.rangeCount ; i++ ) { var nativeRange = sel.getRangeAt( i ); range = new CKEDITOR.dom.range( doc ); range.setStart( new CKEDITOR.dom.node( nativeRange.startContainer ), nativeRange.startOffset ); range.setEnd( new CKEDITOR.dom.node( nativeRange.endContainer ), nativeRange.endOffset ); ranges.push( range ); } return ranges; }; return function( onlyEditables ) { var cache = this._.cache; if ( cache.ranges && !onlyEditables ) return cache.ranges; else if ( !cache.ranges ) cache.ranges = new CKEDITOR.dom.rangeList( func.call( this ) ); // Split range into multiple by read-only nodes. if ( onlyEditables ) { var ranges = cache.ranges; for ( var i = 0; i < ranges.length; i++ ) { var range = ranges[ i ]; // Drop range spans inside one ready-only node. var parent = range.getCommonAncestor(); if ( parent.isReadOnly() ) ranges.splice( i, 1 ); if ( range.collapsed ) continue; // Range may start inside a non-editable element, // replace the range start after it. if ( range.startContainer.isReadOnly() ) { var current = range.startContainer; while( current ) { if ( current.is( 'body' ) || !current.isReadOnly() ) break; if ( current.type == CKEDITOR.NODE_ELEMENT && current.getAttribute( 'contentEditable' ) == 'false' ) range.setStartAfter( current ); current = current.getParent(); } } var startContainer = range.startContainer, endContainer = range.endContainer, startOffset = range.startOffset, endOffset = range.endOffset, walkerRange = range.clone(); // Enlarge range start/end with text node to avoid walker // being DOM destructive, it doesn't interfere our checking // of elements below as well. if ( startContainer && startContainer.type == CKEDITOR.NODE_TEXT ) { if ( startOffset >= startContainer.getLength() ) walkerRange.setStartAfter( startContainer ); else walkerRange.setStartBefore( startContainer ); } if ( endContainer && endContainer.type == CKEDITOR.NODE_TEXT ) { if ( !endOffset ) walkerRange.setEndBefore( endContainer ); else walkerRange.setEndAfter( endContainer ); } // Looking for non-editable element inside the range. var walker = new CKEDITOR.dom.walker( walkerRange ); walker.evaluator = function( node ) { if ( node.type == CKEDITOR.NODE_ELEMENT && node.isReadOnly() ) { var newRange = range.clone(); range.setEndBefore( node ); // Drop collapsed range around read-only elements, // it make sure the range list empty when selecting // only non-editable elements. if ( range.collapsed ) ranges.splice( i--, 1 ); // Avoid creating invalid range. if ( !( node.getPosition( walkerRange.endContainer ) & CKEDITOR.POSITION_CONTAINS ) ) { newRange.setStartAfter( node ); if ( !newRange.collapsed ) ranges.splice( i + 1, 0, newRange ); } return true; } return false; }; walker.next(); } } return cache.ranges; }; })(), /** * Gets the DOM element in which the selection starts. * @returns {CKEDITOR.dom.element} The element at the beginning of the * selection. * @example * var element = editor.getSelection().<strong>getStartElement()</strong>; * alert( element.getName() ); */ getStartElement : function() { var cache = this._.cache; if ( cache.startElement !== undefined ) return cache.startElement; var node, sel = this.getNative(); switch ( this.getType() ) { case CKEDITOR.SELECTION_ELEMENT : return this.getSelectedElement(); case CKEDITOR.SELECTION_TEXT : var range = this.getRanges()[0]; if ( range ) { if ( !range.collapsed ) { range.optimize(); // Decrease the range content to exclude particial // selected node on the start which doesn't have // visual impact. ( #3231 ) while ( 1 ) { var startContainer = range.startContainer, startOffset = range.startOffset; // Limit the fix only to non-block elements.(#3950) if ( startOffset == ( startContainer.getChildCount ? startContainer.getChildCount() : startContainer.getLength() ) && !startContainer.isBlockBoundary() ) range.setStartAfter( startContainer ); else break; } node = range.startContainer; if ( node.type != CKEDITOR.NODE_ELEMENT ) return node.getParent(); node = node.getChild( range.startOffset ); if ( !node || node.type != CKEDITOR.NODE_ELEMENT ) node = range.startContainer; else { var child = node.getFirst(); while ( child && child.type == CKEDITOR.NODE_ELEMENT ) { node = child; child = child.getFirst(); } } } else { node = range.startContainer; if ( node.type != CKEDITOR.NODE_ELEMENT ) node = node.getParent(); } node = node.$; } } return cache.startElement = ( node ? new CKEDITOR.dom.element( node ) : null ); }, /** * Gets the currently selected element. * @returns {CKEDITOR.dom.element} The selected element. Null if no * selection is available or the selection type is not * <code>{@link CKEDITOR.SELECTION_ELEMENT}</code>. * @example * var element = editor.getSelection().<strong>getSelectedElement()</strong>; * alert( element.getName() ); */ getSelectedElement : function() { var cache = this._.cache; if ( cache.selectedElement !== undefined ) return cache.selectedElement; var self = this; var node = CKEDITOR.tools.tryThese( // Is it native IE control type selection? function() { return self.getNative().createRange().item( 0 ); }, // If a table or list is fully selected. function() { var root, retval, range = self.getRanges()[ 0 ], ancestor = range.getCommonAncestor( 1, 1 ), tags = { table:1,ul:1,ol:1,dl:1 }; for ( var t in tags ) { if ( ( root = ancestor.getAscendant( t, 1 ) ) ) break; } if ( root ) { // Enlarging the start boundary. var testRange = new CKEDITOR.dom.range( this.document ); testRange.setStartAt( root, CKEDITOR.POSITION_AFTER_START ); testRange.setEnd( range.startContainer, range.startOffset ); var enlargeables = CKEDITOR.tools.extend( tags, CKEDITOR.dtd.$listItem, CKEDITOR.dtd.$tableContent ), walker = new CKEDITOR.dom.walker( testRange ), // Check the range is at the inner boundary of the structural element. guard = function( walker, isEnd ) { return function( node, isWalkOut ) { if ( node.type == CKEDITOR.NODE_TEXT && ( !CKEDITOR.tools.trim( node.getText() ) || node.getParent().data( 'cke-bookmark' ) ) ) return true; var tag; if ( node.type == CKEDITOR.NODE_ELEMENT ) { tag = node.getName(); // Bypass bogus br at the end of block. if ( tag == 'br' && isEnd && node.equals( node.getParent().getBogus() ) ) return true; if ( isWalkOut && tag in enlargeables || tag in CKEDITOR.dtd.$removeEmpty ) return true; } walker.halted = 1; return false; }; }; walker.guard = guard( walker ); if ( walker.checkBackward() && !walker.halted ) { walker = new CKEDITOR.dom.walker( testRange ); testRange.setStart( range.endContainer, range.endOffset ); testRange.setEndAt( root, CKEDITOR.POSITION_BEFORE_END ); walker.guard = guard( walker, 1 ); if ( walker.checkForward() && !walker.halted ) retval = root.$; } } if ( !retval ) throw 0; return retval; }, // Figure it out by checking if there's a single enclosed // node of the range. function() { var range = self.getRanges()[ 0 ], enclosed, selected; // Check first any enclosed element, e.g. <ul>[<li><a href="#">item</a></li>]</ul> for ( var i = 2; i && !( ( enclosed = range.getEnclosedNode() ) && ( enclosed.type == CKEDITOR.NODE_ELEMENT ) && styleObjectElements[ enclosed.getName() ] && ( selected = enclosed ) ); i-- ) { // Then check any deep wrapped element, e.g. [<b><i><img /></i></b>] range.shrink( CKEDITOR.SHRINK_ELEMENT ); } return selected.$; }); return cache.selectedElement = ( node ? new CKEDITOR.dom.element( node ) : null ); }, /** * Retrieves the text contained within the range. An empty string is returned for non-text selection. * @returns {String} A string of text within the current selection. * @since 3.6.1 * @example * var text = editor.getSelection().<strong>getSelectedText()</strong>; * alert( text ); */ getSelectedText : function() { var cache = this._.cache; if ( cache.selectedText !== undefined ) return cache.selectedText; var text = '', nativeSel = this.getNative(); if ( this.getType() == CKEDITOR.SELECTION_TEXT ) text = CKEDITOR.env.ie ? nativeSel.createRange().text : nativeSel.toString(); return ( cache.selectedText = text ); }, /** * Locks the selection made in the editor in order to make it possible to * manipulate it without browser interference. A locked selection is * cached and remains unchanged until it is released with the <code>#unlock</code> * method. * @example * editor.getSelection().<strong>lock()</strong>; */ lock : function() { // Call all cacheable function. this.getRanges(); this.getStartElement(); this.getSelectedElement(); this.getSelectedText(); // The native selection is not available when locked. this._.cache.nativeSel = {}; this.isLocked = 1; // Save this selection inside the DOM document. this.document.setCustomData( 'cke_locked_selection', this ); }, /** * Unlocks the selection made in the editor and locked with the <code>#lock</code> method. * An unlocked selection is no longer cached and can be changed. * @param {Boolean} [restore] If set to <code>true</code>, the selection is restored back to the selection saved earlier by using the <code>#lock</code> method. * @example * editor.getSelection().<strong>unlock()</strong>; */ unlock : function( restore ) { var doc = this.document, lockedSelection = doc.getCustomData( 'cke_locked_selection' ); if ( lockedSelection ) { doc.setCustomData( 'cke_locked_selection', null ); if ( restore ) { var selectedElement = lockedSelection.getSelectedElement(), ranges = !selectedElement && lockedSelection.getRanges(); this.isLocked = 0; this.reset(); if ( selectedElement ) this.selectElement( selectedElement ); else this.selectRanges( ranges ); } } if ( !lockedSelection || !restore ) { this.isLocked = 0; this.reset(); } }, /** * Clears the selection cache. * @example * editor.getSelection().<strong>reset()</strong>; */ reset : function() { this._.cache = {}; }, /** * Makes the current selection of type <code>{@link CKEDITOR.SELECTION_ELEMENT}</code> by enclosing the specified element. * @param {CKEDITOR.dom.element} element The element to enclose in the selection. * @example * var element = editor.document.getById( 'sampleElement' ); * editor.getSelection.<strong>selectElement( element )</strong>; */ selectElement : function( element ) { if ( this.isLocked ) { var range = new CKEDITOR.dom.range( this.document ); range.setStartBefore( element ); range.setEndAfter( element ); this._.cache.selectedElement = element; this._.cache.startElement = element; this._.cache.ranges = new CKEDITOR.dom.rangeList( range ); this._.cache.type = CKEDITOR.SELECTION_ELEMENT; return; } range = new CKEDITOR.dom.range( element.getDocument() ); range.setStartBefore( element ); range.setEndAfter( element ); range.select(); this.document.fire( 'selectionchange' ); this.reset(); }, /** * Clears the original selection and adds the specified ranges * to the document selection. * @param {Array} ranges An array of <code>{@link CKEDITOR.dom.range}</code> instances representing ranges to be added to the document. * @example * var ranges = new CKEDITOR.dom.range( editor.document ); * editor.getSelection().<strong>selectRanges( [ ranges ] )</strong>; */ selectRanges : function( ranges ) { if ( this.isLocked ) { this._.cache.selectedElement = null; this._.cache.startElement = ranges[ 0 ] && ranges[ 0 ].getTouchedStartNode(); this._.cache.ranges = new CKEDITOR.dom.rangeList( ranges ); this._.cache.type = CKEDITOR.SELECTION_TEXT; return; } if ( CKEDITOR.env.ie ) { if ( ranges.length > 1 ) { // IE doesn't accept multiple ranges selection, so we join all into one. var last = ranges[ ranges.length -1 ] ; ranges[ 0 ].setEnd( last.endContainer, last.endOffset ); ranges.length = 1; } if ( ranges[ 0 ] ) ranges[ 0 ].select(); this.reset(); } else { var sel = this.getNative(); // getNative() returns null if iframe is "display:none" in FF. (#6577) if ( !sel ) return; if ( ranges.length ) { sel.removeAllRanges(); // Remove any existing filling char first. CKEDITOR.env.webkit && removeFillingChar( this.document ); } for ( var i = 0 ; i < ranges.length ; i++ ) { // Joining sequential ranges introduced by // readonly elements protection. if ( i < ranges.length -1 ) { var left = ranges[ i ], right = ranges[ i +1 ], between = left.clone(); between.setStart( left.endContainer, left.endOffset ); between.setEnd( right.startContainer, right.startOffset ); // Don't confused by Firefox adjancent multi-ranges // introduced by table cells selection. if ( !between.collapsed ) { between.shrink( CKEDITOR.NODE_ELEMENT, true ); var ancestor = between.getCommonAncestor(), enclosed = between.getEnclosedNode(); // The following cases has to be considered: // 1. <span contenteditable="false">[placeholder]</span> // 2. <input contenteditable="false" type="radio"/> (#6621) if ( ancestor.isReadOnly() || enclosed && enclosed.isReadOnly() ) { right.setStart( left.startContainer, left.startOffset ); ranges.splice( i--, 1 ); continue; } } } var range = ranges[ i ]; var nativeRange = this.document.$.createRange(); var startContainer = range.startContainer; // In FF2, if we have a collapsed range, inside an empty // element, we must add something to it otherwise the caret // will not be visible. // In Opera instead, the selection will be moved out of the // element. (#4657) if ( range.collapsed && ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ) && startContainer.type == CKEDITOR.NODE_ELEMENT && !startContainer.getChildCount() ) { startContainer.appendText( '' ); } if ( range.collapsed && CKEDITOR.env.webkit && rangeRequiresFix( range ) ) { // Append a zero-width space so WebKit will not try to // move the selection by itself (#1272). var fillingChar = createFillingChar( this.document ); range.insertNode( fillingChar ) ; var next = fillingChar.getNext(); // If the filling char is followed by a <br>, whithout // having something before it, it'll not blink. // Let's remove it in this case. if ( next && !fillingChar.getPrevious() && next.type == CKEDITOR.NODE_ELEMENT && next.getName() == 'br' ) { removeFillingChar( this.document ); range.moveToPosition( next, CKEDITOR.POSITION_BEFORE_START ); } else range.moveToPosition( fillingChar, CKEDITOR.POSITION_AFTER_END ); } nativeRange.setStart( range.startContainer.$, range.startOffset ); try { nativeRange.setEnd( range.endContainer.$, range.endOffset ); } catch ( e ) { // There is a bug in Firefox implementation (it would be too easy // otherwise). The new start can't be after the end (W3C says it can). // So, let's create a new range and collapse it to the desired point. if ( e.toString().indexOf( 'NS_ERROR_ILLEGAL_VALUE' ) >= 0 ) { range.collapse( 1 ); nativeRange.setEnd( range.endContainer.$, range.endOffset ); } else throw e; } // Select the range. sel.addRange( nativeRange ); } // Don't miss selection change event for non-IEs. this.document.fire( 'selectionchange' ); this.reset(); } }, /** * Creates a bookmark for each range of this selection (from <code>#getRanges</code>) * by calling the <code>{@link CKEDITOR.dom.range.prototype.createBookmark}</code> method, * with extra care taken to avoid interference among those ranges. The arguments * received are the same as with the underlying range method. * @returns {Array} Array of bookmarks for each range. * @example * var bookmarks = editor.getSelection().<strong>createBookmarks()</strong>; */ createBookmarks : function( serializable ) { return this.getRanges().createBookmarks( serializable ); }, /** * Creates a bookmark for each range of this selection (from <code>#getRanges</code>) * by calling the <code>{@link CKEDITOR.dom.range.prototype.createBookmark2}</code> method, * with extra care taken to avoid interference among those ranges. The arguments * received are the same as with the underlying range method. * @returns {Array} Array of bookmarks for each range. * @example * var bookmarks = editor.getSelection().<strong>createBookmarks2()</strong>; */ createBookmarks2 : function( normalized ) { return this.getRanges().createBookmarks2( normalized ); }, /** * Selects the virtual ranges denoted by the bookmarks by calling <code>#selectRanges</code>. * @param {Array} bookmarks The bookmarks representing ranges to be selected. * @returns {CKEDITOR.dom.selection} This selection object, after the ranges were selected. * @example * var bookmarks = editor.getSelection().createBookmarks(); * editor.getSelection().<strong>selectBookmarks( bookmarks )</strong>; */ selectBookmarks : function( bookmarks ) { var ranges = []; for ( var i = 0 ; i < bookmarks.length ; i++ ) { var range = new CKEDITOR.dom.range( this.document ); range.moveToBookmark( bookmarks[i] ); ranges.push( range ); } this.selectRanges( ranges ); return this; }, /** * Retrieves the common ancestor node of the first range and the last range. * @returns {CKEDITOR.dom.element} The common ancestor of the selection. * @example * var ancestor = editor.getSelection().<strong>getCommonAncestor()</strong>; */ getCommonAncestor : function() { var ranges = this.getRanges(), startNode = ranges[ 0 ].startContainer, endNode = ranges[ ranges.length - 1 ].endContainer; return startNode.getCommonAncestor( endNode ); }, /** * Moves the scrollbar to the starting position of the current selection. * @example * editor.getSelection().<strong>scrollIntoView()</strong>; */ scrollIntoView : function() { // If we have split the block, adds a temporary span at the // range position and scroll relatively to it. var start = this.getStartElement(); start.scrollIntoView(); } }; var notWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), isVisible = CKEDITOR.dom.walker.invisible( 1 ), fillerTextRegex = /\ufeff|\u00a0/, nonCells = { table:1,tbody:1,tr:1 }; CKEDITOR.dom.range.prototype.select = CKEDITOR.env.ie ? // V2 function( forceExpand ) { var collapsed = this.collapsed, isStartMarkerAlone, dummySpan, ieRange; // Try to make a object selection. var selected = this.getEnclosedNode(); if ( selected ) { try { ieRange = this.document.$.body.createControlRange(); ieRange.addElement( selected.$ ); ieRange.select(); return; } catch( er ) {} } // IE doesn't support selecting the entire table row/cell, move the selection into cells, e.g. // <table><tbody><tr>[<td>cell</b></td>... => <table><tbody><tr><td>[cell</td>... if ( this.startContainer.type == CKEDITOR.NODE_ELEMENT && this.startContainer.getName() in nonCells || this.endContainer.type == CKEDITOR.NODE_ELEMENT && this.endContainer.getName() in nonCells ) { this.shrink( CKEDITOR.NODE_ELEMENT, true ); } var bookmark = this.createBookmark(); // Create marker tags for the start and end boundaries. var startNode = bookmark.startNode; var endNode; if ( !collapsed ) endNode = bookmark.endNode; // Create the main range which will be used for the selection. ieRange = this.document.$.body.createTextRange(); // Position the range at the start boundary. ieRange.moveToElementText( startNode.$ ); ieRange.moveStart( 'character', 1 ); if ( endNode ) { // Create a tool range for the end. var ieRangeEnd = this.document.$.body.createTextRange(); // Position the tool range at the end. ieRangeEnd.moveToElementText( endNode.$ ); // Move the end boundary of the main range to match the tool range. ieRange.setEndPoint( 'EndToEnd', ieRangeEnd ); ieRange.moveEnd( 'character', -1 ); } else { // The isStartMarkerAlone logic comes from V2. It guarantees that the lines // will expand and that the cursor will be blinking on the right place. // Actually, we are using this flag just to avoid using this hack in all // situations, but just on those needed. var next = startNode.getNext( notWhitespaces ); isStartMarkerAlone = ( !( next && next.getText && next.getText().match( fillerTextRegex ) ) // already a filler there? && ( forceExpand || !startNode.hasPrevious() || ( startNode.getPrevious().is && startNode.getPrevious().is( 'br' ) ) ) ); // Append a temporary <span>&#65279;</span> before the selection. // This is needed to avoid IE destroying selections inside empty // inline elements, like <b></b> (#253). // It is also needed when placing the selection right after an inline // element to avoid the selection moving inside of it. dummySpan = this.document.createElement( 'span' ); dummySpan.setHtml( '&#65279;' ); // Zero Width No-Break Space (U+FEFF). See #1359. dummySpan.insertBefore( startNode ); if ( isStartMarkerAlone ) { // To expand empty blocks or line spaces after <br>, we need // instead to have any char, which will be later deleted using the // selection. // \ufeff = Zero Width No-Break Space (U+FEFF). (#1359) this.document.createText( '\ufeff' ).insertBefore( startNode ); } } // Remove the markers (reset the position, because of the changes in the DOM tree). this.setStartBefore( startNode ); startNode.remove(); if ( collapsed ) { if ( isStartMarkerAlone ) { // Move the selection start to include the temporary \ufeff. ieRange.moveStart( 'character', -1 ); ieRange.select(); // Remove our temporary stuff. this.document.$.selection.clear(); } else ieRange.select(); this.moveToPosition( dummySpan, CKEDITOR.POSITION_BEFORE_START ); dummySpan.remove(); } else { this.setEndBefore( endNode ); endNode.remove(); ieRange.select(); } this.document.fire( 'selectionchange' ); } : function() { this.document.getSelection().selectRanges( [ this ] ); }; } )();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'popup' ); CKEDITOR.tools.extend( CKEDITOR.editor.prototype, { /** * Opens Browser in a popup. The "width" and "height" parameters accept * numbers (pixels) or percent (of screen size) values. * @param {String} url The url of the external file browser. * @param {String} width Popup window width. * @param {String} height Popup window height. * @param {String} options Popup window features. */ popup : function( url, width, height, options ) { width = width || '80%'; height = height || '70%'; if ( typeof width == 'string' && width.length > 1 && width.substr( width.length - 1, 1 ) == '%' ) width = parseInt( window.screen.width * parseInt( width, 10 ) / 100, 10 ); if ( typeof height == 'string' && height.length > 1 && height.substr( height.length - 1, 1 ) == '%' ) height = parseInt( window.screen.height * parseInt( height, 10 ) / 100, 10 ); if ( width < 640 ) width = 640; if ( height < 420 ) height = 420; var top = parseInt( ( window.screen.height - height ) / 2, 10 ), left = parseInt( ( window.screen.width - width ) / 2, 10 ); options = ( options || 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes' ) + ',width=' + width + ',height=' + height + ',top=' + top + ',left=' + left; var popupWindow = window.open( '', null, options, true ); // Blocked by a popup blocker. if ( !popupWindow ) return false; try { // Chrome is problematic with moveTo/resizeTo, but it's not really needed here (#8855). var ua = navigator.userAgent.toLowerCase(); if ( ua.indexOf( ' chrome/' ) == -1 ) { popupWindow.moveTo( left, top ); popupWindow.resizeTo( width, height ); } popupWindow.focus(); popupWindow.location.href = url; } catch ( e ) { popupWindow = window.open( url, null, options, true ); } return true; } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview The "elementspath" plugin. It shows all elements in the DOM * parent tree relative to the current selection in the editing area. */ (function() { var commands = { toolbarFocus : { editorFocus : false, readOnly : 1, exec : function( editor ) { var idBase = editor._.elementsPath.idBase; var element = CKEDITOR.document.getById( idBase + '0' ); // Make the first button focus accessible for IE. (#3417) // Adobe AIR instead need while of delay. element && element.focus( CKEDITOR.env.ie || CKEDITOR.env.air ); } } }; var emptyHtml = '<span class="cke_empty">&nbsp;</span>'; CKEDITOR.plugins.add( 'elementspath', { requires : [ 'selection' ], init : function( editor ) { var spaceId = 'cke_path_' + editor.name; var spaceElement; var getSpaceElement = function() { if ( !spaceElement ) spaceElement = CKEDITOR.document.getById( spaceId ); return spaceElement; }; var idBase = 'cke_elementspath_' + CKEDITOR.tools.getNextNumber() + '_'; editor._.elementsPath = { idBase : idBase, filters : [] }; editor.on( 'themeSpace', function( event ) { if ( event.data.space == 'bottom' ) { event.data.html += '<span id="' + spaceId + '_label" class="cke_voice_label">' + editor.lang.elementsPath.eleLabel + '</span>' + '<div id="' + spaceId + '" class="cke_path" role="group" aria-labelledby="' + spaceId + '_label">' + emptyHtml + '</div>'; } }); function onClick( elementIndex ) { editor.focus(); var element = editor._.elementsPath.list[ elementIndex ]; if ( element.is( 'body' ) ) { var range = new CKEDITOR.dom.range( editor.document ); range.selectNodeContents( element ); range.select(); } else editor.getSelection().selectElement( element ); } var onClickHanlder = CKEDITOR.tools.addFunction( onClick ); var onKeyDownHandler = CKEDITOR.tools.addFunction( function( elementIndex, ev ) { var idBase = editor._.elementsPath.idBase, element; ev = new CKEDITOR.dom.event( ev ); var rtl = editor.lang.dir == 'rtl'; switch ( ev.getKeystroke() ) { case rtl ? 39 : 37 : // LEFT-ARROW case 9 : // TAB element = CKEDITOR.document.getById( idBase + ( elementIndex + 1 ) ); if ( !element ) element = CKEDITOR.document.getById( idBase + '0' ); element.focus(); return false; case rtl ? 37 : 39 : // RIGHT-ARROW case CKEDITOR.SHIFT + 9 : // SHIFT + TAB element = CKEDITOR.document.getById( idBase + ( elementIndex - 1 ) ); if ( !element ) element = CKEDITOR.document.getById( idBase + ( editor._.elementsPath.list.length - 1 ) ); element.focus(); return false; case 27 : // ESC editor.focus(); return false; case 13 : // ENTER // Opera case 32 : // SPACE onClick( elementIndex ); return false; } return true; }); editor.on( 'selectionChange', function( ev ) { var env = CKEDITOR.env, selection = ev.data.selection, element = selection.getStartElement(), html = [], editor = ev.editor, elementsList = editor._.elementsPath.list = [], filters = editor._.elementsPath.filters; while ( element ) { var ignore = 0, name; if ( element.data( 'cke-display-name' ) ) name = element.data( 'cke-display-name' ); else if ( element.data( 'cke-real-element-type' ) ) name = element.data( 'cke-real-element-type' ); else name = element.getName(); for ( var i = 0; i < filters.length; i++ ) { var ret = filters[ i ]( element, name ); if ( ret === false ) { ignore = 1; break; } name = ret || name; } if ( !ignore ) { var index = elementsList.push( element ) - 1; // Use this variable to add conditional stuff to the // HTML (because we are doing it in reverse order... unshift). var extra = ''; // Some browsers don't cancel key events in the keydown but in the // keypress. // TODO: Check if really needed for Gecko+Mac. if ( env.opera || ( env.gecko && env.mac ) ) extra += ' onkeypress="return false;"'; // With Firefox, we need to force the button to redraw, otherwise it // will remain in the focus state. if ( env.gecko ) extra += ' onblur="this.style.cssText = this.style.cssText;"'; var label = editor.lang.elementsPath.eleTitle.replace( /%1/, name ); html.unshift( '<a' + ' id="', idBase, index, '"' + ' href="javascript:void(\'', name, '\')"' + ' tabindex="-1"' + ' title="', label, '"' + ( ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ? ' onfocus="event.preventBubble();"' : '' ) + ' hidefocus="true" ' + ' onkeydown="return CKEDITOR.tools.callFunction(', onKeyDownHandler, ',', index, ', event );"' + extra , ' onclick="CKEDITOR.tools.callFunction('+ onClickHanlder, ',', index, '); return false;"', ' role="button" aria-labelledby="' + idBase + index + '_label">', name, '<span id="', idBase, index, '_label" class="cke_label">' + label + '</span>', '</a>' ); } if ( name == 'body' ) break; element = element.getParent(); } var space = getSpaceElement(); space.setHtml( html.join('') + emptyHtml ); editor.fire( 'elementsPathUpdate', { space : space } ); }); function empty() { spaceElement && spaceElement.setHtml( emptyHtml ); delete editor._.elementsPath.list; } editor.on( 'readOnly', empty ); editor.on( 'contentDomUnload', empty ); editor.addCommand( 'elementsPathFocus', commands.toolbarFocus ); } }); })(); /** * Fired when the contents of the elementsPath are changed * @name CKEDITOR.editor#elementsPathUpdate * @event * @param {Object} eventData.space The elementsPath container */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var guardElements = { table:1, ul:1, ol:1, blockquote:1, div:1 }, directSelectionGuardElements = {}, // All guard elements which can have a direction applied on them. allGuardElements = {}; CKEDITOR.tools.extend( directSelectionGuardElements, guardElements, { tr:1, p:1, div:1, li:1 } ); CKEDITOR.tools.extend( allGuardElements, directSelectionGuardElements, { td:1 } ); function onSelectionChange( e ) { setToolbarStates( e ); handleMixedDirContent( e ); } function setToolbarStates( evt ) { var editor = evt.editor, path = evt.data.path; if ( editor.readOnly ) return; var useComputedState = editor.config.useComputedState, selectedElement; useComputedState = useComputedState === undefined || useComputedState; // We can use computedState provided by the browser or traverse parents manually. if ( !useComputedState ) selectedElement = getElementForDirection( path.lastElement ); selectedElement = selectedElement || path.block || path.blockLimit; // If we're having BODY here, user probably done CTRL+A, let's try to get the enclosed node, if any. if ( selectedElement.is( 'body' ) ) { var enclosedNode = editor.getSelection().getRanges()[ 0 ].getEnclosedNode(); enclosedNode && enclosedNode.type == CKEDITOR.NODE_ELEMENT && ( selectedElement = enclosedNode ); } if ( !selectedElement ) return; var selectionDir = useComputedState ? selectedElement.getComputedStyle( 'direction' ) : selectedElement.getStyle( 'direction' ) || selectedElement.getAttribute( 'dir' ); editor.getCommand( 'bidirtl' ).setState( selectionDir == 'rtl' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); editor.getCommand( 'bidiltr' ).setState( selectionDir == 'ltr' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); } function handleMixedDirContent( evt ) { var editor = evt.editor, directionNode = evt.data.path.block || evt.data.path.blockLimit; editor.fire( 'contentDirChanged', directionNode ? directionNode.getComputedStyle( 'direction' ) : editor.lang.dir ); } /** * Returns element with possibility of applying the direction. * @param node */ function getElementForDirection( node ) { while ( node && !( node.getName() in allGuardElements || node.is( 'body' ) ) ) { var parent = node.getParent(); if ( !parent ) break; node = parent; } return node; } function switchDir( element, dir, editor, database ) { if ( element.isReadOnly() ) return; // Mark this element as processed by switchDir. CKEDITOR.dom.element.setMarker( database, element, 'bidi_processed', 1 ); // Check whether one of the ancestors has already been styled. var parent = element; while ( ( parent = parent.getParent() ) && !parent.is( 'body' ) ) { if ( parent.getCustomData( 'bidi_processed' ) ) { // Ancestor style must dominate. element.removeStyle( 'direction' ); element.removeAttribute( 'dir' ); return; } } var useComputedState = ( 'useComputedState' in editor.config ) ? editor.config.useComputedState : 1; var elementDir = useComputedState ? element.getComputedStyle( 'direction' ) : element.getStyle( 'direction' ) || element.hasAttribute( 'dir' ); // Stop if direction is same as present. if ( elementDir == dir ) return; // Clear direction on this element. element.removeStyle( 'direction' ); // Do the second check when computed state is ON, to check // if we need to apply explicit direction on this element. if ( useComputedState ) { element.removeAttribute( 'dir' ); if ( dir != element.getComputedStyle( 'direction' ) ) element.setAttribute( 'dir', dir ); } else // Set new direction for this element. element.setAttribute( 'dir', dir ); editor.forceNextSelectionCheck(); return; } function getFullySelected( range, elements, enterMode ) { var ancestor = range.getCommonAncestor( false, true ); range = range.clone(); range.enlarge( enterMode == CKEDITOR.ENTER_BR ? CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS : CKEDITOR.ENLARGE_BLOCK_CONTENTS ); if ( range.checkBoundaryOfElement( ancestor, CKEDITOR.START ) && range.checkBoundaryOfElement( ancestor, CKEDITOR.END ) ) { var parent; while ( ancestor && ancestor.type == CKEDITOR.NODE_ELEMENT && ( parent = ancestor.getParent() ) && parent.getChildCount() == 1 && !( ancestor.getName() in elements ) ) ancestor = parent; return ancestor.type == CKEDITOR.NODE_ELEMENT && ( ancestor.getName() in elements ) && ancestor; } } function bidiCommand( dir ) { return function( editor ) { var selection = editor.getSelection(), enterMode = editor.config.enterMode, ranges = selection.getRanges(); if ( ranges && ranges.length ) { var database = {}; // Creates bookmarks for selection, as we may split some blocks. var bookmarks = selection.createBookmarks(); var rangeIterator = ranges.createIterator(), range, i = 0; while ( ( range = rangeIterator.getNextRange( 1 ) ) ) { // Apply do directly selected elements from guardElements. var selectedElement = range.getEnclosedNode(); // If this is not our element of interest, apply to fully selected elements from guardElements. if ( !selectedElement || selectedElement && !( selectedElement.type == CKEDITOR.NODE_ELEMENT && selectedElement.getName() in directSelectionGuardElements ) ) selectedElement = getFullySelected( range, guardElements, enterMode ); selectedElement && switchDir( selectedElement, dir, editor, database ); var iterator, block; // Walker searching for guardElements. var walker = new CKEDITOR.dom.walker( range ); var start = bookmarks[ i ].startNode, end = bookmarks[ i++ ].endNode; walker.evaluator = function( node ) { return !! ( node.type == CKEDITOR.NODE_ELEMENT && node.getName() in guardElements && !( node.getName() == ( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) && node.getParent().type == CKEDITOR.NODE_ELEMENT && node.getParent().getName() == 'blockquote' ) // Element must be fully included in the range as well. (#6485). && node.getPosition( start ) & CKEDITOR.POSITION_FOLLOWING && ( ( node.getPosition( end ) & CKEDITOR.POSITION_PRECEDING + CKEDITOR.POSITION_CONTAINS ) == CKEDITOR.POSITION_PRECEDING ) ); }; while ( ( block = walker.next() ) ) switchDir( block, dir, editor, database ); iterator = range.createIterator(); iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR; while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) ) switchDir( block, dir, editor, database ); } CKEDITOR.dom.element.clearAllMarkers( database ); editor.forceNextSelectionCheck(); // Restore selection position. selection.selectBookmarks( bookmarks ); editor.focus(); } }; } CKEDITOR.plugins.add( 'bidi', { requires : [ 'styles', 'button' ], init : function( editor ) { // All buttons use the same code to register. So, to avoid // duplications, let's use this tool function. var addButtonCommand = function( buttonName, buttonLabel, commandName, commandExec ) { editor.addCommand( commandName, new CKEDITOR.command( editor, { exec : commandExec }) ); editor.ui.addButton( buttonName, { label : buttonLabel, command : commandName }); }; var lang = editor.lang.bidi; addButtonCommand( 'BidiLtr', lang.ltr, 'bidiltr', bidiCommand( 'ltr' ) ); addButtonCommand( 'BidiRtl', lang.rtl, 'bidirtl', bidiCommand( 'rtl' ) ); editor.on( 'selectionChange', onSelectionChange ); editor.on( 'contentDom', function() { editor.document.on( 'dirChanged', function( evt ) { editor.fire( 'dirChanged', { node : evt.data, dir : evt.data.getDirection( 1 ) } ); }); }); } }); // If the element direction changed, we need to switch the margins of // the element and all its children, so it will get really reflected // like a mirror. (#5910) function isOffline( el ) { var html = el.getDocument().getBody().getParent(); while ( el ) { if ( el.equals( html ) ) return false; el = el.getParent(); } return true; } function dirChangeNotifier( org ) { var isAttribute = org == elementProto.setAttribute, isRemoveAttribute = org == elementProto.removeAttribute, dirStyleRegexp = /\bdirection\s*:\s*(.*?)\s*(:?$|;)/; return function( name, val ) { if ( !this.getDocument().equals( CKEDITOR.document ) ) { var orgDir; if ( ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) || name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) ) && !isOffline( this ) ) { orgDir = this.getDirection( 1 ); var retval = org.apply( this, arguments ); if ( orgDir != this.getDirection( 1 ) ) { this.getDocument().fire( 'dirChanged', this ); return retval; } } } return org.apply( this, arguments ); }; } var elementProto = CKEDITOR.dom.element.prototype, methods = [ 'setStyle', 'removeStyle', 'setAttribute', 'removeAttribute' ]; for ( var i = 0; i < methods.length; i++ ) elementProto[ methods[ i ] ] = CKEDITOR.tools.override( elementProto[ methods [ i ] ], dirChangeNotifier ); })(); /** * Fired when the language direction of an element is changed * @name CKEDITOR.editor#dirChanged * @event * @param {CKEDITOR.editor} editor This editor instance. * @param {Object} eventData.node The element that is being changed. * @param {String} eventData.dir The new direction. */ /** * Fired when the language direction in the specific cursor position is changed * @name CKEDITOR.editor#contentDirChanged * @event * @param {String} eventData The direction in the current position. */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { CKEDITOR.plugins.add( 'templates', { requires : [ 'dialog' ], init : function( editor ) { CKEDITOR.dialog.add( 'templates', CKEDITOR.getUrl( this.path + 'dialogs/templates.js' ) ); editor.addCommand( 'templates', new CKEDITOR.dialogCommand( 'templates' ) ); editor.ui.addButton( 'Templates', { label : editor.lang.templates.button, command : 'templates' }); } }); var templates = {}, loadedTemplatesFiles = {}; CKEDITOR.addTemplates = function( name, definition ) { templates[ name ] = definition; }; CKEDITOR.getTemplates = function( name ) { return templates[ name ]; }; CKEDITOR.loadTemplates = function( templateFiles, callback ) { // Holds the templates files to be loaded. var toLoad = []; // Look for pending template files to get loaded. for ( var i = 0, count = templateFiles.length ; i < count ; i++ ) { if ( !loadedTemplatesFiles[ templateFiles[ i ] ] ) { toLoad.push( templateFiles[ i ] ); loadedTemplatesFiles[ templateFiles[ i ] ] = 1; } } if ( toLoad.length ) CKEDITOR.scriptLoader.load( toLoad, callback ); else setTimeout( callback, 0 ); }; })(); /** * The templates definition set to use. It accepts a list of names separated by * comma. It must match definitions loaded with the templates_files setting. * @type String * @default 'default' * @name CKEDITOR.config.templates * @example * config.templates = 'my_templates'; */ /** * The list of templates definition files to load. * @type (String) Array * @default [ 'plugins/templates/templates/default.js' ] * @example * config.templates_files = * [ * '/editor_templates/site_default.js', * 'http://www.example.com/user_templates.js * ]; * */ CKEDITOR.config.templates_files = [ CKEDITOR.getUrl( '_source/' + // @Packager.RemoveLine 'plugins/templates/templates/default.js' ) ]; /** * Whether the "Replace actual contents" checkbox is checked by default in the * Templates dialog. * @type Boolean * @default true * @example * config.templates_replaceContent = false; */ CKEDITOR.config.templates_replaceContent = true;
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Register a templates definition set named "default". CKEDITOR.addTemplates( 'default', { // The name of sub folder which hold the shortcut preview images of the // templates. imagesPath : CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ), // The templates definitions. templates : [ { title: 'Image and Title', image: 'template1.gif', description: 'One main image with a title and text that surround the image.', html: '<h3>' + '<img style="margin-right: 10px" height="100" width="100" align="left"/>' + 'Type the title here'+ '</h3>' + '<p>' + 'Type the text here' + '</p>' }, { title: 'Strange Template', image: 'template2.gif', description: 'A template that defines two colums, each one with a title, and some text.', html: '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' + '<tr>' + '<td style="width:50%">' + '<h3>Title 1</h3>' + '</td>' + '<td></td>' + '<td style="width:50%">' + '<h3>Title 2</h3>' + '</td>' + '</tr>' + '<tr>' + '<td>' + 'Text 1' + '</td>' + '<td></td>' + '<td>' + 'Text 2' + '</td>' + '</tr>' + '</table>' + '<p>' + 'More text goes here.' + '</p>' }, { title: 'Text and Table', image: 'template3.gif', description: 'A title with some text and a table.', html: '<div style="width: 80%">' + '<h3>' + 'Title goes here' + '</h3>' + '<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' + '<caption style="border:solid 1px black">' + '<strong>Table title</strong>' + '</caption>' + '</tr>' + '<tr>' + '<td>&nbsp;</td>' + '<td>&nbsp;</td>' + '<td>&nbsp;</td>' + '</tr>' + '<tr>' + '<td>&nbsp;</td>' + '<td>&nbsp;</td>' + '<td>&nbsp;</td>' + '</tr>' + '<tr>' + '<td>&nbsp;</td>' + '<td>&nbsp;</td>' + '<td>&nbsp;</td>' + '</tr>' + '</table>' + '<p>' + 'Type the text here' + '</p>' + '</div>' } ] });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var doc = CKEDITOR.document; CKEDITOR.dialog.add( 'templates', function( editor ) { // Constructs the HTML view of the specified templates data. function renderTemplatesList( container, templatesDefinitions ) { // clear loading wait text. container.setHtml( '' ); for ( var i = 0, totalDefs = templatesDefinitions.length ; i < totalDefs ; i++ ) { var definition = CKEDITOR.getTemplates( templatesDefinitions[ i ] ), imagesPath = definition.imagesPath, templates = definition.templates, count = templates.length; for ( var j = 0 ; j < count ; j++ ) { var template = templates[ j ], item = createTemplateItem( template, imagesPath ); item.setAttribute( 'aria-posinset', j + 1 ); item.setAttribute( 'aria-setsize', count ); container.append( item ); } } } function createTemplateItem( template, imagesPath ) { var item = CKEDITOR.dom.element.createFromHtml( '<a href="javascript:void(0)" tabIndex="-1" role="option" >' + '<div class="cke_tpl_item"></div>' + '</a>' ); // Build the inner HTML of our new item DIV. var html = '<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>'; if ( template.image && imagesPath ) html += '<td class="cke_tpl_preview_img"><img src="' + CKEDITOR.getUrl( imagesPath + template.image ) + '"' + ( CKEDITOR.env.ie6Compat ? ' onload="this.width=this.width"' : '' ) + ' alt="" title=""></td>'; html += '<td style="white-space:normal;"><span class="cke_tpl_title">' + template.title + '</span><br/>'; if ( template.description ) html += '<span>' + template.description + '</span>'; html += '</td></tr></table>'; item.getFirst().setHtml( html ); item.on( 'click', function() { insertTemplate( template.html ); } ); return item; } /** * Insert the specified template content into editor. * @param {Number} index */ function insertTemplate( html ) { var dialog = CKEDITOR.dialog.getCurrent(), isInsert = dialog.getValueOf( 'selectTpl', 'chkInsertOpt' ); if ( isInsert ) { // Everything should happen after the document is loaded (#4073). editor.on( 'contentDom', function( evt ) { evt.removeListener(); dialog.hide(); // Place the cursor at the first editable place. var range = new CKEDITOR.dom.range( editor.document ); range.moveToElementEditStart( editor.document.getBody() ); range.select( 1 ); setTimeout( function() { editor.fire( 'saveSnapshot' ); }, 0 ); }); editor.fire( 'saveSnapshot' ); editor.setData( html ); } else { editor.insertHtml( html ); dialog.hide(); } } function keyNavigation( evt ) { var target = evt.data.getTarget(), onList = listContainer.equals( target ); // Keyboard navigation for template list. if ( onList || listContainer.contains( target ) ) { var keystroke = evt.data.getKeystroke(), items = listContainer.getElementsByTag( 'a' ), focusItem; if ( items ) { // Focus not yet onto list items? if ( onList ) focusItem = items.getItem( 0 ); else { switch ( keystroke ) { case 40 : // ARROW-DOWN focusItem = target.getNext(); break; case 38 : // ARROW-UP focusItem = target.getPrevious(); break; case 13 : // ENTER case 32 : // SPACE target.fire( 'click' ); } } if ( focusItem ) { focusItem.focus(); evt.data.preventDefault(); } } } } // Load skin at first. CKEDITOR.skins.load( editor, 'templates' ); var listContainer; var templateListLabelId = 'cke_tpl_list_label_' + CKEDITOR.tools.getNextNumber(), lang = editor.lang.templates, config = editor.config; return { title :editor.lang.templates.title, minWidth : CKEDITOR.env.ie ? 440 : 400, minHeight : 340, contents : [ { id :'selectTpl', label : lang.title, elements : [ { type : 'vbox', padding : 5, children : [ { id : 'selectTplText', type : 'html', html : '<span>' + lang.selectPromptMsg + '</span>' }, { id : 'templatesList', type : 'html', focus: true, html : '<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="' + templateListLabelId+ '">' + '<div class="cke_tpl_loading"><span></span></div>' + '</div>' + '<span class="cke_voice_label" id="' + templateListLabelId + '">' + lang.options+ '</span>' }, { id : 'chkInsertOpt', type : 'checkbox', label : lang.insertOption, 'default' : config.templates_replaceContent } ] } ] } ], buttons : [ CKEDITOR.dialog.cancelButton ], onShow : function() { var templatesListField = this.getContentElement( 'selectTpl' , 'templatesList' ); listContainer = templatesListField.getElement(); CKEDITOR.loadTemplates( config.templates_files, function() { var templates = ( config.templates || 'default' ).split( ',' ); if ( templates.length ) { renderTemplatesList( listContainer, templates ); templatesListField.focus(); } else { listContainer.setHtml( '<div class="cke_tpl_empty">' + '<span>' + lang.emptyListMsg + '</span>' + '</div>' ); } }); this._.element.on( 'keydown', keyNavigation ); }, onHide : function() { this._.element.removeListener( 'keydown', keyNavigation ); } }; }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Plugin definition for the a11yhelp, which provides a dialog * with accessibility related help. */ (function() { var pluginName = 'a11yhelp', commandName = 'a11yHelp'; CKEDITOR.plugins.add( pluginName, { requires: [ 'dialog' ], // List of available localizations. availableLangs : { cs:1, cy:1, da:1, de:1, el:1, en:1, eo:1, fa:1, fi:1, fr:1, gu:1, he:1, it:1, ku:1, mk:1, nb:1, nl:1, no:1, 'pt-br':1, ro:1, tr:1, ug:1, vi:1, 'zh-cn':1 }, init : function( editor ) { var plugin = this; editor.addCommand( commandName, { exec : function() { var langCode = editor.langCode; langCode = plugin.availableLangs[ langCode ] ? langCode : 'en'; CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ), function() { CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ langCode ] ); editor.openDialog( commandName ); }); }, modes : { wysiwyg:1, source:1 }, readOnly : 1, canUndo : false }); CKEDITOR.dialog.add( commandName, this.path + 'dialogs/a11yhelp.js' ); } }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'cy', { accessibilityHelp : { title : 'Canllawiau Hygyrchedd', contents : 'Cynnwys Cymorth. I gau y deialog hwn, pwyswch ESC.', legend : [ { name : 'Cyffredinol', items : [ { name : 'Bar Offer y Golygydd', legend: 'Pwyswch $ {toolbarFocus} i fynd at y bar offer. Symudwch i\'r grŵp bar offer nesaf a blaenorol gyda TAB a SHIFT-TAB. Symudwch i\'r botwm bar offer nesaf a blaenorol gyda SAETH DDE neu SAETH CHWITH. Pwyswch SPACE neu ENTER i wneud botwm y bar offer yn weithredol.' }, { name : 'Deialog y Golygydd', legend : 'Tu mewn i\'r deialog, pwyswch TAB i fynd i\'r maes nesaf ar y deialog, pwyswch SHIFT + TAB i symud i faes blaenorol, pwyswch ENTER i gyflwyno\'r deialog, pwyswch ESC i ddiddymu\'r deialog. Ar gyfer deialogau sydd â thudalennau aml-tab, pwyswch ALT + F10 i lywio\'r tab-restr. Yna symudwch i\'r tab nesaf gyda TAB neu SAETH DDE. Symudwch i dab blaenorol gyda SHIFT + TAB neu\'r SAETH CHWITH. Pwyswch SPACE neu ENTER i ddewis y dudalen tab.' }, { name : 'Dewislen Cyd-destun y Golygydd', legend : 'Pwyswch $ {contextMenu} neu\'r ALLWEDD \'APPLICATION\' i agor y ddewislen cyd-destun. Yna symudwch i\'r opsiwn ddewislen nesaf gyda\'r TAB neu\'r SAETH I LAWR. Symudwch i\'r opsiwn blaenorol gyda SHIFT + TAB neu\'r SAETH I FYNY. Pwyswch SPACE neu ENTER i ddewis yr opsiwn ddewislen. Agorwch is-dewislen yr opsiwn cyfredol gyda SPACE neu ENTER neu SAETH DDE. Ewch yn ôl i\'r eitem ar y ddewislen uwch gydag ESC neu SAETH CHWITH. Ceuwch y ddewislen cyd-destun gydag ESC.' }, { name : 'Blwch Rhestr y Golygydd', legend : 'Tu mewn rhestr-bocs, ewch i\'r eitem rhestr nesaf gyda TAB neu\'r SAETH I LAWR. Symudwch i restr eitem flaenorol gyda SHIFT + TAB neu SAETH I FYNY. Pwyswch SPACE neu ENTER i ddewis yr opsiwn o\'r rhestr. Pwyswch ESC i gau\'r rhestr.' }, { name : 'Bar Llwybr Elfen y Golygydd', legend : 'Pwyswch $ {elementsPathFocus} i fynd i\'r elfennau llwybr bar. Symudwch i fotwm yr elfen nesaf gyda TAB neu SAETH DDE. Symudwch i fotwm blaenorol gyda SHIFT + TAB neu SAETH CHWITH. Pwyswch SPACE neu ENTER i ddewis yr elfen yn y golygydd.' } ] }, { name : 'Gorchmynion', items : [ { name : 'Gorchymyn dadwneud', legend : 'Pwyswch ${undo}' }, { name : 'Gorchymyn ailadrodd', legend : 'Pwyswch ${redo}' }, { name : 'Gorchymyn Bras', legend : 'Pwyswch ${bold}' }, { name : 'Gorchymyn italig', legend : 'Pwyswch ${italig}' }, { name : 'Gorchymyn tanlinellu', legend : 'Pwyso ${underline}' }, { name : 'Gorchymyn dolen', legend : 'Pwyswch ${link}' }, { name : 'Gorchymyn Cwympo\'r Dewislen', legend : 'Pwyswch ${toolbarCollapse}' }, { name : 'Cymorth Hygyrchedd', legend : 'Pwyswch ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'ro', { accessibilityHelp : { title : 'Instrucțiuni de accesibilitate', contents : 'Cuprins. Pentru a închide acest dialog, apăsați tasta ESC.', legend : [ { name : 'General', items : [ { name : 'Editează bara.', legend: 'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING }, { name : 'Dialog editor', legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING }, { name : 'Editor meniu contextual', legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING }, { name : 'Editor List Box', // MISSING legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING }, { name : 'Editor Element Path Bar', // MISSING legend : 'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING } ] }, { name : 'Commands', // MISSING items : [ { name : ' Undo command', // MISSING legend : 'Press ${undo}' // MISSING }, { name : ' Redo command', // MISSING legend : 'Press ${redo}' // MISSING }, { name : ' Bold command', // MISSING legend : 'Press ${bold}' // MISSING }, { name : ' Italic command', // MISSING legend : 'Press ${italic}' // MISSING }, { name : ' Underline command', // MISSING legend : 'Press ${underline}' // MISSING }, { name : ' Link command', // MISSING legend : 'Press ${link}' // MISSING }, { name : ' Toolbar Collapse command', // MISSING legend : 'Press ${toolbarCollapse}' // MISSING }, { name : ' Accessibility Help', // MISSING legend : 'Press ${a11yHelp}' // MISSING } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'tr', { accessibilityHelp : { title : 'Erişilebilirlik Talimatları', contents : 'Yardım içeriği. Bu pencereyi kapatmak için ESC tuşuna basın.', legend : [ { name : 'Genel', items : [ { name : 'Araç Çubuğu Editörü', legend: 'Araç çubuğunda gezinmek için ${toolbarFocus} basın. TAB ve SHIFT-TAB ile önceki ve sonraki araç çubuğu grubuna taşıyın. SAĞ OK veya SOL OK ile önceki ve sonraki bir araç çubuğu düğmesini hareket ettirin. SPACE tuşuna basın veya araç çubuğu düğmesini etkinleştirmek için ENTER tuşna basın.' }, { name : 'Dialog Editörü', legend : 'Dialog penceresi içinde, sonraki iletişim alanına gitmek için SEKME tuşuna basın, önceki alana geçmek için SHIFT + TAB tuşuna basın, pencereyi göndermek için ENTER tuşuna basın, dialog penceresini iptal etmek için ESC tuşuna basın. Birden çok sekme sayfaları olan diyalogların, sekme listesine gitmek için ALT + F10 tuşlarına basın. Sonra TAB veya SAĞ OK sonraki sekmeye taşıyın. SHIFT + TAB veya SOL OK ile önceki sekmeye geçin. Sekme sayfayı seçmek için SPACE veya ENTER tuşuna basın.' }, { name : 'İçerik Menü Editörü', legend : 'İçerik menüsünü açmak için ${contextMenu} veya UYGULAMA TUŞU\'na basın. Daha sonra SEKME veya AŞAĞI OK ile bir sonraki menü seçeneği taşıyın. SHIFT + TAB veya YUKARI OK ile önceki seçeneğe gider. Menü seçeneğini seçmek için SPACE veya ENTER tuşuna basın. Seçili seçeneğin alt menüsünü SPACE ya da ENTER veya SAĞ OK açın. Üst menü öğesini geçmek için ESC veya SOL OK ile geri dönün. ESC ile bağlam menüsünü kapatın.' }, { name : 'Liste Kutusu Editörü', legend : 'Liste kutusu içinde, bir sonraki liste öğesine SEKME VEYA AŞAĞI OK ile taşıyın. SHIFT + TAB veya YUKARI önceki liste öğesi taşıyın. Liste seçeneği seçmek için SPACE veya ENTER tuşuna basın. Liste kutusunu kapatmak için ESC tuşuna basın.' }, { name : 'Element Yol Çubuğu Editörü', legend : 'Elementlerin yol çubuğunda gezinmek için ${ElementsPathFocus} basın. SEKME veya SAĞ OK ile sonraki element düğmesine taşıyın. SHIFT + TAB veya SOL OK önceki düğmeye hareket ettirin. Editör içindeki elementi seçmek için ENTER veya SPACE tuşuna basın.' } ] }, { name : 'Komutlar', items : [ { name : 'Komutu geri al', legend : '${undo} basın' }, { name : ' Tekrar komutu uygula', legend : '${redo} basın' }, { name : ' Kalın komut', legend : '${bold} basın' }, { name : ' İtalik komutu', legend : '${italic} basın' }, { name : ' Alttan çizgi komutu', legend : '${underline} basın' }, { name : ' Bağlantı komutu', legend : '${link} basın' }, { name : ' Araç çubuğu Toplama komutu', legend : '${toolbarCollapse} basın' }, { name : 'Erişilebilirlik Yardımı', legend : '${a11yHelp} basın' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'nb', { accessibilityHelp : { title : 'Instruksjoner for tilgjengelighet', contents : 'Innhold for hjelp. Trykk ESC for å lukke denne dialogen.', legend : [ { name : 'Generelt', items : [ { name : 'Verktøylinje for editor', legend: 'Trykk ${toolbarFocus} for å navigere til verktøylinjen. Flytt til neste og forrige verktøylinjegruppe med TAB og SHIFT-TAB. Flytt til neste og forrige verktøylinjeknapp med HØYRE PILTAST og VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å aktivere verktøylinjeknappen.' }, { name : 'Dialog for editor', legend : 'Mens du er i en dialog, trykk TAB for å navigere til neste dialogfelt, press SHIFT + TAB for å flytte til forrige felt, trykk ENTER for å akseptere dialogen, trykk ESC for å avbryte dialogen. For dialoger med flere faner, trykk ALT + F10 for å navigere til listen over faner. Gå til neste fane med TAB eller HØYRE PILTAST. Gå til forrige fane med SHIFT + TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge fanen.' }, { name : 'Kontekstmeny for editor', legend : 'Trykk ${contextMenu} eller MENYKNAPP for å åpne kontekstmeny. Gå til neste alternativ i menyen med TAB eller PILTAST NED. Gå til forrige alternativ med SHIFT+TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge menyalternativet. Åpne undermenyen på valgt alternativ med MELLOMROM eller ENTER eller HØYRE PILTAST. Gå tilbake til overordnet menyelement med ESC eller VENSTRE PILTAST. Lukk kontekstmenyen med ESC.' }, { name : 'Listeboks for editor', legend : 'I en listeboks, gå til neste alternativ i listen med TAB eller PILTAST NED. Gå til forrige alternativ i listen med SHIFT + TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge alternativet i listen. Trykk ESC for å lukke listeboksen.' }, { name : 'Verktøylinje for elementsti', legend : 'Trykk ${elementsPathFocus} for å navigere til verktøylinjen som viser elementsti. Gå til neste elementknapp med TAB eller HØYRE PILTAST. Gå til forrige elementknapp med SHIFT+TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge elementet i editoren.' } ] }, { name : 'Kommandoer', items : [ { name : 'Angre', legend : 'Trykk ${undo}' }, { name : 'Gjør om', legend : 'Trykk ${redo}' }, { name : 'Fet tekst', legend : 'Trykk ${bold}' }, { name : 'Kursiv tekst', legend : 'Trykk ${italic}' }, { name : 'Understreking', legend : 'Trykk ${underline}' }, { name : 'Link', legend : 'Trykk ${link}' }, { name : 'Skjul verktøylinje', legend : 'Trykk ${toolbarCollapse}' }, { name : 'Hjelp for tilgjengelighet', legend : 'Trykk ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'fr', { accessibilityHelp : { title : 'Instructions pour l\'accessibilité', contents : 'Contenu de l\'aide. Pour fermer ce dialogue, appuyez sur la touche ESC (Echappement).', legend : [ { name : 'Général', items : [ { name : 'Barre d\'outils de l\'éditeur', legend: 'Appuyer sur ${toolbarFocus} pour accéder à la barre d\'outils. Se déplacer vers les groupes suivant ou précédent de la barre d\'outil avec les touches TAB et SHIFT-TAB. Se déplacer vers les boutons suivant ou précédent de la barre d\'outils avec les touches FLECHE DROITE et FLECHE GAUCHE. Appuyer sur la barre d\'espace ou la touche ENTRER pour activer le bouton de barre d\'outils.' }, { name : 'Dialogue de léditeur', legend : 'A l\'intérieur d\'un dialogue, appuyer sur la touche TAB pour naviguer jusqu\'au champ de dalogue suivant, appuyez sur les touches SHIFT + TAB pour revenir au champ précédent, appuyez sur la touche ENTRER pour soumettre le dialogue, appuyer sur la touche ESC pour annuler le dialogue. Pour les dialogues avec plusieurs pages d\'onglets, appuyer sur ALT + F10 pour naviguer jusqu\'à la liste des onglets. Puis se déplacer vers l\'onglet suivant avec la touche TAB ou FLECHE DROITE. Se déplacer vers l\'onglet précédent avec les touches SHIFT + TAB ou FLECHE GAUCHE. Appuyer sur la barre d\'espace ou la touche ENTRER pour sélectionner la page de l\'onglet.' }, { name : 'Menu contextuel de l\'éditeur', legend : 'Appuyer sur ${contextMenu} ou entrer le RACCOURCI CLAVIER pour ouvrir le menu contextuel. Puis se déplacer vers l\'option suivante du menu avec les touches TAB ou FLECHE BAS. Se déplacer vers l\'option précédente avec les touches SHIFT+TAB ou FLECHE HAUT. appuyer sur la BARRE D\'ESPACE ou la touche ENTREE pour sélectionner l\'option du menu. Oovrir le sous-menu de l\'option courante avec la BARRE D\'ESPACE ou les touches ENTREE ou FLECHE DROITE. Revenir à l\'élément de menu parent avec les touches ESC ou FLECHE GAUCHE. Fermer le menu contextuel avec ESC.' }, { name : 'Zone de liste en menu déroulant de l\'éditeur', legend : 'A l\'intérieur d\'une liste en menu déroulant, se déplacer vers l\'élément suivant de la liste avec les touches TAB ou FLECHE BAS. Se déplacer vers l\'élément précédent de la liste avec les touches SHIFT + TAB ou FLECHE HAUT. Appuyer sur la BARRE D\'ESPACE ou sur ENTREE pour sélectionner l\'option dans la liste. Appuyer sur ESC pour fermer le menu déroulant.' }, { name : 'Barre d\'emplacement des éléments de léditeur', legend : 'Appuyer sur ${elementsPathFocus} pour naviguer vers la barre d\'emplacement des éléments de léditeur. Se déplacer vers le bouton d\'élément suivant avec les touches TAB ou FLECHE DROITE. Se déplacer vers le bouton d\'élément précédent avec les touches SHIFT+TAB ou FLECHE GAUCHE. Appuyer sur la BARRE D\'ESPACE ou sur ENTREE pour sélectionner l\'élément dans l\'éditeur.' } ] }, { name : 'Commandes', items : [ { name : ' Commande défaire', legend : 'Appuyer sur ${undo}' }, { name : ' Commande refaire', legend : 'Appuyer sur ${redo}' }, { name : ' Commande gras', legend : 'Appuyer sur ${bold}' }, { name : ' Commande italique', legend : 'Appuyer sur ${italic}' }, { name : ' Commande souligné', legend : 'Appuyer sur ${underline}' }, { name : ' Commande lien', legend : 'Appuyer sur ${link}' }, { name : ' Commande enrouler la barre d\'outils', legend : 'Appuyer sur ${toolbarCollapse}' }, { name : ' Aide Accessibilité', legend : 'Appuyer sur ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'fa', { accessibilityHelp : { title : 'دستورالعمل‌های دسترسی', contents : 'راهنمای فهرست مطالب. برای بستن این کادر محاوره‌ای ESC را فشار دهید.', legend : [ { name : 'عمومی', items : [ { name : 'نوار ابزار ویرایشگر', legend: '${toolbarFocus} را برای باز کردن نوار ابزار بفشارید. با کلید Tab و Shif-Tab در مجموعه نوار ابزار بعدی و قبلی حرکت کنید. برای حرکت در کلید نوار ابزار قبلی و بعدی با کلید جهت‌نمای راست و چپ جابجا شوید. کلید Space یا Enter را برای فعال کردن کلید نوار ابزار بفشارید.' }, { name : 'پنجره محاوره‌ای ویرایشگر', legend : 'در داخل یک پنجره محاوره‌ای، کلید Tab را بفشارید تا به پنجره‌ی بعدی بروید، Shift+Tab برای حرکت به فیلد قبلی، فشردن Enter برای ثبت اطلاعات پنجره‌، فشردن Esc برای لغو پنجره محاوره‌ای و برای پنجره‌هایی که چندین برگه دارند، فشردن Alt+F10 جهت رفتن به Tab-List. در نهایت حرکت به برگه بعدی با Tab یا کلید جهت‌نمای راست. حرکت به برگه قبلی با Shift+Tab یا کلید جهت‌نمای چپ. فشردن Space یا Enter برای انتخاب یک برگه.' }, { name : 'منوی متنی ویرایشگر', legend : '${contextMenu} یا کلید برنامه‌های کاربردی را برای باز کردن منوی متن را بفشارید. سپس می‌توانید برای حرکت به گزینه بعدی منو با کلید Tab و یا کلید جهت‌نمای پایین جابجا شوید. حرکت به گزینه قبلی با Shift+Tab یا کلید جهت‌نمای بالا. فشردن Space یا Enter برای انتخاب یک گزینه از منو. باز کردن زیر شاخه گزینه منو جاری با کلید Space یا Enter و یا کلید جهت‌نمای راست و چپ. بازگشت به منوی والد با کلید Esc یا کلید جهت‌نمای چپ. بستن منوی متن با Esc.' }, { name : 'جعبه فهرست ویرایشگر', legend : 'در داخل جعبه لیست، قلم دوم از اقلام لیست بعدی را با TAB و یا Arrow Down حرکت دهید. انتقال به قلم دوم از اقلام لیست قبلی را با SHIFT + TAB یا UP ARROW. کلید Space یا ENTER را برای انتخاب گزینه لیست بفشارید. کلید ESC را برای بستن جعبه لیست بفشارید.' }, { name : 'ویرایشگر عنصر نوار راه', legend : 'برای رفتن به مسیر عناصر ${elementsPathFocus} را بفشارید. حرکت به کلید عنصر بعدی با کلید Tab یا کلید جهت‌نمای راست. برگشت به کلید قبلی با Shift+Tab یا کلید جهت‌نمای چپ. فشردن Space یا Enter برای انتخاب یک عنصر در ویرایشگر.' } ] }, { name : 'فرمان‌ها', items : [ { name : 'بازگشت فرمان', legend : 'فشردن ${undo}' }, { name : 'انجام مجدد فرمان', legend : 'فشردن ${redo}' }, { name : 'فرمان متن درشت', legend : 'فشردن ${bold}' }, { name : 'فرمان متن کج', legend : 'فشردن ${italic}' }, { name : 'فرمان متن زیرخط‌دار', legend : 'فشردن ${underline}' }, { name : 'فرمان پیوند', legend : 'فشردن ${link}' }, { name : 'بستن نوار ابزار فرمان', legend : 'فشردن ${toolbarCollapse}' }, { name : 'راهنمای دسترسی', legend : 'فشردن ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'eo', { accessibilityHelp : { title : 'Uzindikoj pri atingeblo', contents : 'Helpilenhavo. Por fermi tiun dialogon, premu la ESKAPAN klavon.', legend : [ { name : 'Ĝeneralaĵoj', items : [ { name : 'Ilbreto de la redaktilo', legend: 'Premu ${toolbarFocus} por atingi la ilbreton. Moviĝu al la sekva aŭ antaŭa grupoj de la ilbreto per la klavoj TABA kaj MAJUSKLIGA-TABA. Moviĝu al la sekva aŭ antaŭa butonoj de la ilbreto per la klavoj SAGO DEKSTREN kaj SAGO MALDEKSTREN. Premu la SPACETklavon aŭ la ENENklavon por aktivigi la ilbretbutonon.' }, { name : 'Redaktildialogo', legend : 'En dialogo, premu la TABAN klavon por navigi al la sekva dialogkampo, premu la MAJUSKLIGAN + TABAN klavojn por reveni al la antaŭa kampo, premu la ENENklavon por sendi la dialogon, premu la ESKAPAN klavon por nuligi la dialogon. Por dialogoj kun pluraj retpaĝoj sub langetoj, premu ALT + F10 por navigi al la langetlisto. Poste moviĝu al la sekva langeto per la klavo TABA aŭ SAGO DEKSTREN. Moviĝu al la antaŭa langeto per la klavoj MAJUSKLIGA + TABA aŭ SAGO MALDEKSTREN. Premu la SPACETklavon aŭ la ENENklavon por selekti la langetretpaĝon.' }, { name : 'Kunteksta menuo de la redaktilo', legend : 'Premu ${contextMenu} aŭ entajpu la KLAVKOMBINAĴON por malfermi la kuntekstan menuon. Poste moviĝu al la sekva opcio de la menuo per la klavoj TABA aŭ SAGO SUBEN. Moviĝu al la antaŭa opcio per la klavoj MAJUSKLGA + TABA aŭ SAGO SUPREN. Premu la SPACETklavon aŭ ENENklavon por selekti la menuopcion. Malfermu la submenuon de la kuranta opcio per la SPACETklavo aŭ la ENENklavo aŭ la SAGO DEKSTREN. Revenu al la elemento de la patra menuo per la klavoj ESKAPA aŭ SAGO MALDEKSTREN. Fermu la kuntekstan menuon per la ESKAPA klavo.' }, { name : 'Fallisto de la redaktilo', legend : 'En fallisto, moviĝu al la sekva listelemento per la klavoj TABA aŭ SAGO SUBEN. Moviĝu al la antaŭa listelemento per la klavoj MAJUSKLIGA + TABA aŭ SAGO SUPREN. Premu la SPACETklavon aŭ ENENklavon por selekti la opcion en la listo. Premu la ESKAPAN klavon por fermi la falmenuon.' }, { name : 'Breto indikanta la vojon al la redaktilelementoj', legend : 'Premu ${elementsPathFocus} por navigi al la breto indikanta la vojon al la redaktilelementoj. Moviĝu al la butono de la sekva elemento per la klavoj TABA aŭ SAGO DEKSTREN. Moviĝu al la butono de la antaŭa elemento per la klavoj MAJUSKLIGA + TABA aŭ SAGO MALDEKSTREN. Premu la SPACETklavon aŭ ENENklavon por selekti la elementon en la redaktilo.' } ] }, { name : 'Komandoj', items : [ { name : 'Komando malfari', legend : 'Premu ${undo}' }, { name : 'Komando refari', legend : 'Premu ${redo}' }, { name : 'Komando grasa', legend : 'Premu ${bold}' }, { name : 'Komando kursiva', legend : 'Premu ${italic}' }, { name : 'Komando substreki', legend : 'Premu ${underline}' }, { name : 'Komando ligilo', legend : 'Premu ${link}' }, { name : 'Komando faldi la ilbreton', legend : 'Premu ${toolbarCollapse}' }, { name : 'Helpilo pri atingeblo', legend : 'Premu ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'he', { accessibilityHelp : { title : 'הוראות נגישות', contents : 'הוראות נגישות. לסגירה לחץ אסקייפ (ESC).', legend : [ { name : 'כללי', items : [ { name : 'סרגל הכלים', legend: 'לחץ על ${toolbarFocus} כדי לנווט לסרגל הכלים. עבור לכפתור הבא עם מקש הטאב (TAB) או חץ שמאלי. עבור לכפתור הקודם עם מקש השיפט (SHIFT) + טאב (TAB) או חץ ימני. לחץ רווח או אנטר (ENTER) כדי להפעיל את הכפתור הנבחר.' }, { name : 'דיאלוגים (חלונות תשאול)', legend : 'בתוך דיאלוג, לחץ טאב (TAB) כדי לנווט לשדה הבא, לחץ שיפט (SHIFT) + טאב (TAB) כדי לנווט לשדה הקודם, לחץ אנטר (ENTER) כדי לשלוח את הדיאלוג, לחץ אסקייפ (ESC) כדי לבטל. בתוך דיאלוגים בעלי מספר טאבים (לשוניות), לחץ אלט (ALT) + F10 כדי לנווט לשורת הטאבים. נווט לטאב הבא עם טאב (TAB) או חץ שמאלי. עבור לטאב הקודם עם שיפט (SHIFT) + טאב (TAB) או חץ שמאלי. לחץ רווח או אנטר (ENTER) כדי להיכנס לטאב.' }, { name : 'תפריט ההקשר (Context Menu)', legend : 'לחץ ${contextMenu} או APPLICATION KEYכדי לפתוח את תפריט ההקשר. עבור לאפשרות הבאה עם טאב (TAB) או חץ למטה. עבור לאפשרות הקודמת עם שיפט (SHIFT) + טאב (TAB) או חץ למעלה. לחץ רווח או אנטר (ENTER) כדי לבחור את האפשרות. פתח את תת התפריט (Sub-menu) של האפשרות הנוכחית עם רווח או אנטר (ENTER) או חץ שמאלי. חזור לתפריט האב עם אסקייפ (ESC) או חץ שמאלי. סגור את תפריט ההקשר עם אסקייפ (ESC).' }, { name : 'תפריטים צפים (List boxes)', legend : 'בתוך תפריט צף, עבור לפריט הבא עם טאב (TAB) או חץ למטה. עבור לתפריט הקודם עם שיפט (SHIFT) + טאב (TAB) or חץ עליון. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' }, { name : 'עץ אלמנטים (Elements Path)', legend : 'לחץ ${elementsPathFocus} כדי לנווט לעץ האלמנטים. עבור לפריט הבא עם טאב (TAB) או חץ ימני. עבור לפריט הקודם עם שיפט (SHIFT) + טאב (TAB) או חץ שמאלי. לחץ רווח או אנטר (ENTER) כדי לבחור את האלמנט בעורך.' } ] }, { name : 'פקודות', items : [ { name : ' ביטול צעד אחרון', legend : 'לחץ ${undo}' }, { name : ' חזרה על צעד אחרון', legend : 'לחץ ${redo}' }, { name : ' הדגשה', legend : 'לחץ ${bold}' }, { name : ' הטייה', legend : 'לחץ ${italic}' }, { name : ' הוספת קו תחתון', legend : 'לחץ ${underline}' }, { name : ' הוספת לינק', legend : 'לחץ ${link}' }, { name : ' כיווץ סרגל הכלים', legend : 'לחץ ${toolbarCollapse}' }, { name : ' הוראות נגישות', legend : 'לחץ ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'de', { accessibilityHelp : { title : 'Barrierefreiheitinformationen', contents : 'Hilfeinhalt. Um den Dialog zu schliessen die Taste \'ESC\' drücken.', legend : [ { name : 'Allgemein', items : [ { name : 'Editor Symbolleiste', legend: 'Drücken Sie ${toolbarFocus} auf der Symbolleiste. Gehen Sie zur nächsten oder vorherigen Symbolleistengruppe mit TAB und SHIFT-TAB. Gehen Sie zur nächsten oder vorherigen Symbolleiste auf die Schaltfläche mit dem RECHTS- oder LINKS-Pfeil. Drücken Sie die Leertaste oder Eingabetaste, um die Schaltfläche in der Symbolleiste aktivieren.' }, { name : 'Editor Dialog', legend : 'Innerhalb des Dialogs drücken Sie TAB um zum nächsten Dialogfeld zu gelangen, drücken Sie SHIFT-TAG um zum vorherigen Feld zu wechseln, drücken Sie ENTER um den Dialog abzusenden und ESC um den Dialog zu abzubrechen. Um zwischen den Reitern innerhalb eines Dialogs zu wechseln drücken sie ALT-F10. Um zum nächsten Reiter zu gelangen können Sie TAB oder die rechte Pfeiltaste. Zurück gelangt man mit SHIFT-TAB oder der linken Pfeiltaste. Mit der Leertaste oder Enter kann man den Reiter auswählen.' }, { name : 'Editor Kontextmenü', legend : 'Dürcken Sie ${contextMenu} oder die Anwendungstaste um das Kontextmenü zu öffnen. Man kann die Pfeiltasten zum Wechsel benutzen. Mit der Leertaste oder der Enter-Taste kann man den Menüpunkt aufrufen. Schliessen Sie das Kontextmenü mit der ESC-Taste.' }, { name : 'Editor Listen', legend : 'Innerhalb einer Listenbox kann man mit der TAB-Taste oder den Pfeilrunter-Taste den nächsten Menüeintrag wählen. Mit der Shift-TAB Tastenkombination oder der Pfeilhoch-Taste gelangt man zum vorherigen Menüpunkt. Mit der Leertaste oder Enter kann man den Menüpunkt auswählen. Drücken Sie ESC zum Verlassen des Menüs.' }, { name : 'Editor Elementpfadleiste', legend : 'Drücken Sie ${elementsPathFocus} um sich durch die Pfadleiste zu bewegen. Um zum nächsten Element zu gelangen drücken Sie TAB oder die Pfeilrechts-Taste. Zum vorherigen Element gelangen Sie mit der SHIFT-TAB oder der Pfeillinks-Taste. Drücken Sie die Leertaste oder Enter um das Element auszuwählen.' } ] }, { name : 'Befehle', items : [ { name : 'Wiederholen Befehl', legend : 'Drücken Sie ${undo}' }, { name : 'Rückgängig Befehl', legend : 'Drücken Sie ${redo}' }, { name : 'Fettschrift Befehl', legend : 'Drücken Sie ${bold}' }, { name : 'Italic Befehl', legend : 'Drücken Sie ${italic}' }, { name : 'Unterstreichung Befehl', legend : 'Drücken Sie ${underline}' }, { name : 'Link Befehl', legend : 'Drücken Sie ${link}' }, { name : 'Symbolleiste zuammenklappen Befehl', legend : 'Drücken Sie ${toolbarCollapse}' }, { name : 'Eingabehilfen', legend : 'Drücken Sie ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'ku', { accessibilityHelp : { title : 'ڕێنمای لەبەردەستدابوون', contents : 'پێکهاتەی یارمەتی. کلیك ESC بۆ داخستنی ئەم دیالۆگه.', legend : [ { name : 'گشتی', items : [ { name : 'تووڵامرازی ده‌ستكاریكه‌ر', legend: 'کلیك ${toolbarFocus} بۆ ڕابەری تووڵامراز. بۆ گواستنەوەی پێشوو داهاتووی گرووپی تووڵامرازی داگرتنی کلیلی TAB له‌گه‌ڵ‌ SHIFT-TAB. بۆ گواستنەوەی پێشوو داهاتووی دووگمەی تووڵامرازی لەڕێی کلیلی تیری دەستی ڕاست یان کلیلی تیری دەستی چەپ. کلیکی کلیلی SPACE یان ENTER بۆ چالاککردنی دووگمەی تووڵامراز.' }, { name : 'دیالۆگی ده‌ستكاریكه‌ر', legend : 'لەهەمانکاتدا کەتۆ لەدیالۆگی, کلیکی کلیلی TAB بۆ ڕابەری خانەی دیالۆگێکی تر, داگرتنی کلیلی SHIFT + TAB بۆ گواستنەوەی بۆ خانەی پێشووتر, کلیكی کلیلی ENTER بۆ ڕازیکردنی دیالۆگەکە, کلیكی کلیلی ESC بۆ هەڵوەشاندنەوەی دیالۆگەکە. بۆ دیالۆگی لەبازدەری (تابی) زیاتر, کلیكی کلیلی ALT + F10 بۆ ڕابه‌ری لیستی بازده‌ره‌کان. بۆ چوونه‌ بازده‌ری تابی داهاتوو کلیكی کلیلی TAB یان کلیلی تیری ده‌ستی ڕاست. بۆچوونه‌ بازده‌ری تابی پێشوو داگرتنی کلیلی SHIFT + TAB یان کلیلی تیری ده‌ستی چه‌پ. کلیی کلیلی SPACE یان ENTER بۆ هه‌ڵبژاردنی بازده‌ر (تاب).' }, { name : 'پێڕستی سه‌رنووسه‌ر', legend : 'کلیك ${contextMenu} یان دوگمه‌ی لیسته‌(Menu) بۆ کردنه‌وه‌ی لیسته‌ی ده‌ق. بۆ چوونه‌ هه‌ڵبژارده‌یه‌کی تر له‌ لیسته‌ کلیکی کلیلی TAB یان کلیلی تیری ڕوو له‌خواره‌وه‌ بۆ چوون بۆ هه‌ڵبژارده‌ی پێشوو کلیکی کلیلی SHIFT+TAB یان کلیلی تیری ڕوو له‌ سه‌ره‌وه. داگرتنی کلیلی SPACE یان ENTER بۆ هه‌ڵبژاردنی هه‌ڵبژارده‌ی لیسته‌. بۆ کردنه‌وه‌ی لقی ژێر لیسته‌ له‌هه‌ڵبژارده‌ی لیسته‌ کلیکی کلیلی SPACE یان ENTER یان کلیلی تیری ده‌ستی ڕاست. بۆ گه‌ڕانه‌وه بۆ سه‌ره‌وه‌ی لیسته‌ کلیکی کلیلی ESC یان کلیلی تیری ده‌ستی چه‌پ. بۆ داخستنی لیسته‌ کلیكی کلیلی ESC بکه.' }, { name : 'لیستی سنووقی سه‌رنووسه‌ر', legend : 'له‌ناو سنوقی لیست, چۆن بۆ هه‌ڵنبژارده‌ی لیستێکی تر کلیکی کلیلی TAB یان کلیلی تیری ڕوو له‌خوار. چوون بۆ هه‌ڵبژارده‌ی لیستی پێشوو کلیکی کلیلی SHIFT + TAB یان کلیلی تیری ڕوو له‌سه‌ره‌وه‌. کلیکی کلیلی SPACE یان ENTER بۆ دیاریکردنی ‌هه‌ڵبژارده‌ی لیست. کلیکی کلیلی ESC بۆ داخستنی سنوقی لیست.' }, { name : 'تووڵامرازی توخم', legend : 'کلیك ${elementsPathFocus} بۆ ڕابه‌ری تووڵامرازی توخمه‌کان. چوون بۆ دوگمه‌ی توخمێکی تر کلیکی کلیلی TAB یان کلیلی تیری ده‌ستی ڕاست. چوون بۆ دوگمه‌ی توخمی پێشوو کلیلی SHIFT+TAB یان کلیکی کلیلی تیری ده‌ستی چه‌پ. داگرتنی کلیلی SPACE یان ENTER بۆ دیاریکردنی توخمه‌که‌ له‌سه‌رنووسه.' } ] }, { name : 'فه‌رمانه‌کان', items : [ { name : 'فه‌رمانی پووچکردنه‌وه', legend : 'کلیك ${undo}' }, { name : 'فه‌رمانی هه‌ڵگه‌ڕانه‌وه', legend : 'کلیك ${redo}' }, { name : 'فه‌رمانی ده‌قی قه‌ڵه‌و', legend : 'کلیك ${bold}' }, { name : 'فه‌رمانی ده‌قی لار', legend : 'کلیك ${italic}' }, { name : 'فه‌رمانی ژێرهێڵ', legend : 'کلیك ${underline}' }, { name : 'فه‌رمانی به‌سته‌ر', legend : 'کلیك ${link}' }, { name : 'شارده‌نه‌وه‌ی تووڵامراز', legend : 'کلیك ${toolbarCollapse}' }, { name : 'ده‌ستپێگه‌یشتنی یارمه‌تی', legend : 'کلیك ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'no', { accessibilityHelp : { title : 'Instruksjoner for tilgjengelighet', contents : 'Innhold for hjelp. Trykk ESC for å lukke denne dialogen.', legend : [ { name : 'Generelt', items : [ { name : 'Verktøylinje for editor', legend: 'Trykk ${toolbarFocus} for å navigere til verktøylinjen. Flytt til neste og forrige verktøylinjegruppe med TAB og SHIFT-TAB. Flytt til neste og forrige verktøylinjeknapp med HØYRE PILTAST og VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å aktivere verktøylinjeknappen.' }, { name : 'Dialog for editor', legend : 'Mens du er i en dialog, trykk TAB for å navigere til neste dialogfelt, press SHIFT + TAB for å flytte til forrige felt, trykk ENTER for å akseptere dialogen, trykk ESC for å avbryte dialogen. For dialoger med flere faner, trykk ALT + F10 for å navigere til listen over faner. Gå til neste fane med TAB eller HØYRE PILTAST. Gå til forrige fane med SHIFT + TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge fanen.' }, { name : 'Kontekstmeny for editor', legend : 'Trykk ${contextMenu} eller MENYKNAPP for å åpne kontekstmeny. Gå til neste alternativ i menyen med TAB eller PILTAST NED. Gå til forrige alternativ med SHIFT+TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge menyalternativet. Åpne undermenyen på valgt alternativ med MELLOMROM eller ENTER eller HØYRE PILTAST. Gå tilbake til overordnet menyelement med ESC eller VENSTRE PILTAST. Lukk kontekstmenyen med ESC.' }, { name : 'Listeboks for editor', legend : 'I en listeboks, gå til neste alternativ i listen med TAB eller PILTAST NED. Gå til forrige alternativ i listen med SHIFT + TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge alternativet i listen. Trykk ESC for å lukke listeboksen.' }, { name : 'Verktøylinje for elementsti', legend : 'Trykk ${elementsPathFocus} for å navigere til verktøylinjen som viser elementsti. Gå til neste elementknapp med TAB eller HØYRE PILTAST. Gå til forrige elementknapp med SHIFT+TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge elementet i editoren.' } ] }, { name : 'Kommandoer', items : [ { name : 'Angre', legend : 'Trykk ${undo}' }, { name : 'Gjør om', legend : 'Trykk ${redo}' }, { name : 'Fet tekst', legend : 'Trykk ${bold}' }, { name : 'Kursiv tekst', legend : 'Trykk ${italic}' }, { name : 'Understreking', legend : 'Trykk ${underline}' }, { name : 'Link', legend : 'Trykk ${link}' }, { name : 'Skjul verktøylinje', legend : 'Trykk ${toolbarCollapse}' }, { name : 'Hjelp for tilgjengelighet', legend : 'Trykk ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'el', { accessibilityHelp : { title : 'Οδηγίες Προσβασιμότητας', contents : 'Περιεχόμενα Βοήθειας. Πατήστε ESC για κλείσιμο.', legend : [ { name : 'Γενικά', items : [ { name : 'Εργαλειοθήκη Επεξεργαστή', legend: 'Πατήστε ${toolbarFocus} για να περιηγηθείτε στην γραμμή εργαλείων. Μετακινηθείτε ανάμεσα στις ομάδες της γραμμής εργαλείων με TAB και Shift-TAB. Μετακινηθείτε ανάμεσα στα κουμπία εργαλείων με ΔΕΞΙ και ΑΡΙΣΤΕΡΟ ΒΕΛΑΚΙ. Πατήστε ΚΕΝΟ ή ENTER για να ενεργοποιήσετε το ενεργό κουμπί εργαλείου.' }, { name : 'Παράθυρο Διαλόγου Επεξεργαστή', legend : 'Μέσα σε ένα παράθυρο διαλόγου, πατήστε TAB για να μεταβείτε στο επόμενο πεδίο ή SHIFT + TAB για να μεταβείτε στο προηγούμενο. Πατήστε ENTER για να υποβάλετε την φόρμα. Πατήστε ESC για να ακυρώσετε την διαδικασία της φόρμας. Για παράθυρα διαλόγων που έχουν πολλές σελίδες σε καρτέλες πατήστε ALT + F10 για να μεταβείτε στην λίστα των καρτέλων. Στην συνέχεια μπορείτε να μεταβείτε στην επόμενη καρτέλα πατώντας TAB ή RIGHT ARROW. Μπορείτε να μεταβείτε στην προηγούμενη καρτέλα πατώντας SHIFT + TAB ή LEFT ARROW. Πατήστε SPACE ή ENTER για να επιλέξετε την καρτέλα για προβολή.' }, { name : 'Αναδυόμενο Μενού Επεξεργαστή', legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING }, { name : 'Editor List Box', // MISSING legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING }, { name : 'Editor Element Path Bar', // MISSING legend : 'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING } ] }, { name : 'Εντολές', items : [ { name : ' Εντολή αναίρεσης', legend : 'Πατήστε ${undo}' }, { name : ' Εντολή επανάληψης', legend : 'Πατήστε ${redo}' }, { name : ' Εντολή έντονης γραφής', legend : 'Πατήστε ${bold}' }, { name : ' Εντολή πλάγιας γραφής', legend : 'Πατήστε ${italic}' }, { name : ' Εντολή υπογράμμισης', legend : 'Πατήστε ${underline}' }, { name : ' Εντολή συνδέσμου', legend : 'Πατήστε ${link}' }, { name : ' Εντολή Σύμπτηξης Εργαλειοθήκης', legend : 'Πατήστε ${toolbarCollapse}' }, { name : ' Βοήθεια Προσβασιμότητας', legend : 'Πατήστε ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'vi', { accessibilityHelp : { title : 'Accessibility Instructions', // MISSING contents : 'Nội dung Hỗ trợ. Nhấn ESC để đóng hộp thoại.', legend : [ { name : 'Chung', items : [ { name : 'Thanh công cụ soạn th', legend: 'Nhấn ${toolbarFocus} để điều hướng đến thanh công cụ. Nhấn TAB và SHIFT-TAB để chuyển đến nhóm thanh công cụ khác. Nhấn MŨI TÊN PHẢI hoặc MŨI TÊN TRÁI để chuyển sang nút khác trên thanh công cụ. Nhấn PHÍM CÁCH hoặc ENTER để kích hoạt nút trên thanh công c.' }, { name : 'Hộp thoại Biên t', legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING }, { name : 'Trình đơn Ngữ cảnh cBộ soạn thảo', legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING }, { name : 'Editor List Box', // MISSING legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING }, { name : 'Editor Element Path Bar', // MISSING legend : 'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING } ] }, { name : 'Commands', // MISSING items : [ { name : ' Undo command', // MISSING legend : 'Press ${undo}' // MISSING }, { name : ' Redo command', // MISSING legend : 'Press ${redo}' // MISSING }, { name : ' Bold command', // MISSING legend : 'Press ${bold}' // MISSING }, { name : ' Italic command', // MISSING legend : 'Press ${italic}' // MISSING }, { name : ' Underline command', // MISSING legend : 'Press ${underline}' // MISSING }, { name : ' Link command', // MISSING legend : 'Press ${link}' // MISSING }, { name : ' Toolbar Collapse command', // MISSING legend : 'Press ${toolbarCollapse}' // MISSING }, { name : ' Accessibility Help', // MISSING legend : 'Press ${a11yHelp}' // MISSING } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'mk', { accessibilityHelp : { title : 'Инструкции за пристапност', contents : 'Содржина на делот за помош. За да го затворите овој дијалот притиснете ESC.', legend : [ { name : 'Општо', items : [ { name : 'Мени за едиторот', legend: 'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING }, { name : 'Дијалот за едиторот', legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING }, { name : 'Editor Context Menu', // MISSING legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING }, { name : 'Editor List Box', // MISSING legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING }, { name : 'Editor Element Path Bar', // MISSING legend : 'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING } ] }, { name : 'Commands', // MISSING items : [ { name : ' Undo command', // MISSING legend : 'Press ${undo}' // MISSING }, { name : ' Redo command', // MISSING legend : 'Press ${redo}' // MISSING }, { name : ' Bold command', // MISSING legend : 'Press ${bold}' // MISSING }, { name : ' Italic command', // MISSING legend : 'Press ${italic}' // MISSING }, { name : ' Underline command', // MISSING legend : 'Press ${underline}' // MISSING }, { name : ' Link command', // MISSING legend : 'Press ${link}' // MISSING }, { name : ' Toolbar Collapse command', // MISSING legend : 'Press ${toolbarCollapse}' // MISSING }, { name : ' Accessibility Help', // MISSING legend : 'Press ${a11yHelp}' // MISSING } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'it', { accessibilityHelp : { title : 'Istruzioni di Accessibilità', contents : 'Contenuti di Aiuto. Per chiudere questa finestra premi ESC.', legend : [ { name : 'Generale', items : [ { name : 'Barra degli strumenti Editor', legend: 'Premi ${toolbarFocus} per navigare fino alla barra degli strumenti. Muoviti tra i gruppi della barra degli strumenti con i tasti Tab e Maiusc-Tab. Spostati tra il successivo ed il precedente pulsante della barra degli strumenti usando le frecce direzionali Destra e Sinistra. Premi Spazio o Invio per attivare il pulsante della barra degli strumenti.' }, { name : 'Finestra Editor', legend : 'All\'interno di una finestra di dialogo, premi Tab per navigare fino al campo successivo della finestra di dialogo, premi Maiusc-Tab per tornare al campo precedente, premi Invio per inviare la finestra di dialogo, premi Esc per uscire. Per le finestre che hanno schede multiple, premi Alt+F10 per navigare nella lista delle schede. Quindi spostati alla scheda successiva con il tasto Tab oppure con la Freccia Destra. Torna alla scheda precedente con Maiusc+Tab oppure con la Freccia Sinistra. Premi Spazio o Invio per scegliere la scheda.' }, { name : 'Menù contestuale Editor', legend : 'Premi ${contextMenu} o TASTO APPLICAZIONE per aprire il menu contestuale. Dunque muoviti all\'opzione successiva del menu con il tasto TAB o con la Freccia Sotto. Muoviti all\'opzione precedente con MAIUSC+TAB o con Freccia Sopra. Premi SPAZIO o INVIO per scegliere l\'opzione di menu. Apri il sottomenu dell\'opzione corrente con SPAZIO o INVIO oppure con la Freccia Destra. Torna indietro al menu superiore con ESC oppure Freccia Sinistra. Chiudi il menu contestuale con ESC.' }, { name : 'Box Lista Editor', legend : 'Dentro un box-lista, muoviti al prossimo elemento della lista con TAB o con la Freccia direzionale giù. Spostati all\'elemento precedente con MAIUSC+TAB oppure con Freccia direzionale sopra. Premi SPAZIO o INVIO per scegliere l\'opzione della lista. Premi ESC per chiudere il box-lista.' }, { name : 'Barra percorso elementi editor', legend : 'Premi ${elementsPathFocus} per navigare tra gli elementi della barra percorso. Muoviti al prossimo pulsante di elemento con TAB o la Freccia direzionale destra. Muoviti al pulsante precedente con MAIUSC+TAB o la Freccia Direzionale Sinistra. Premi SPAZIO o INVIO per scegliere l\'elemento nell\'editor.' } ] }, { name : 'Comandi', items : [ { name : ' Annulla comando', legend : 'Premi ${undo}' }, { name : ' Ripeti comando', legend : 'Premi ${redo}' }, { name : ' Comando Grassetto', legend : 'Premi ${bold}' }, { name : ' Comando Corsivo', legend : 'Premi ${italic}' }, { name : ' Comando Sottolineato', legend : 'Premi ${underline}' }, { name : ' Comando Link', legend : 'Premi ${link}' }, { name : ' Comando riduci barra degli strumenti', legend : 'Premi ${toolbarCollapse}' }, { name : ' Aiuto Accessibilità', legend : 'Premi ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'sk', { accessibilityHelp : { title : 'Inštrukcie prístupnosti', contents : 'Pomocný obsah. Pre zatvorenie tohto okna, stlačte ESC.', legend : [ { name : 'Všeobecne', items : [ { name : 'Lišta nástrojov editora', legend: 'Stlačte ${toolbarFocus} pre navigáciu na lištu nástrojov. Medzi ďalšou a predchádzajúcou lištou nástrojov sa pohybujete s TAB a SHIFT-TAB. Medzi ďalším a predchádzajúcim tlačidlom na lište nástrojov sa pohybujete s pravou šípkou a ľavou šípkou. Stlačte medzerník alebo ENTER pre aktiváciu tlačidla lišty nástrojov.' }, { name : 'Editorový dialóg', legend : 'V dialogu, stlačte TAB pre navigáciu na ďalšie dialógové pole, stlačte STIFT + TAB pre presun na predchádzajúce pole, stlačte ENTER pre odoslanie dialógu, stlačte ESC pre zrušenie dialógu. Pre dialógy, ktoré majú viac záložiek, stlačte ALT + F10 pre navigácou do zoznamu záložiek. Potom sa posúvajte k ďalšej žáložke pomocou TAB alebo pravou šípkou. Pre presun k predchádzajúcej záložke, stlačte SHIFT + TAB alebo ľavú šípku. Stlačte medzerník alebo ENTER pre vybranie záložky.' }, { name : 'Editorové kontextové menu', legend : 'Stlačte ${contextMenu} alebo APPLICATION KEY pre otvorenie kontextového menu. Potom sa presúvajte na ďalšie možnosti menu s TAB alebo dolnou šípkou. Presunte sa k predchádzajúcej možnosti s SHIFT + TAB alebo hornou šípkou. Stlačte medzerník alebo ENTER pre výber možnosti menu. Otvorte pod-menu danej možnosti s medzerníkom, alebo ENTER, alebo pravou šípkou. Vráťte sa späť do položky rodičovského menu s ESC alebo ľavou šípkou. Zatvorte kontextové menu s ESC.' }, { name : 'Editorov box zoznamu', legend : 'V boxe zoznamu, presuňte sa na ďalšiu položku v zozname s TAB alebo dolnou šípkou. Presuňte sa k predchádzajúcej položke v zozname so SHIFT + TAB alebo hornou šípkou. Stlačte medzerník alebo ENTER pre výber možnosti zoznamu. Stlačte ESC pre zatvorenie boxu zoznamu.' }, { name : 'Editorove pásmo cesty prvku', legend : 'Stlačte ${elementsPathFocus} pre navigovanie na pásmo cesty elementu. Presuňte sa na tlačidlo ďalšieho prvku s TAB alebo pravou šípkou. Presuňte sa k predchádzajúcemu tlačidlu s SHIFT + TAB alebo ľavou šípkou. Stlačte medzerník alebo ENTER pre výber prvku v editore.' } ] }, { name : 'Príkazy', items : [ { name : 'Vrátiť príkazy', legend : 'Stlačte ${undo}' }, { name : 'Nanovo vrátiť príkaz', legend : 'Stlačte ${redo}' }, { name : 'Príkaz na stučnenie', legend : 'Stlačte ${bold}' }, { name : 'Príkaz na kurzívu', legend : 'Stlačte ${italic}' }, { name : 'Príkaz na podčiarknutie', legend : 'Stlačte ${underline}' }, { name : 'Príkaz na odkaz', legend : 'Stlačte ${link}' }, { name : 'Príkaz na zbalenie lišty nástrojov', legend : 'Stlačte ${toolbarCollapse}' }, { name : 'Pomoc prístupnosti', legend : 'Stlačte ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'nl', { accessibilityHelp : { title : 'Toegankelijkheidsinstructies', contents : 'Help inhoud. Druk op ESC om dit dialoog te sluiten.', legend : [ { name : 'Algemeen', items : [ { name : 'Werkbalk tekstverwerker', legend: 'Druk op ${toolbarFocus} om naar de werkbalk te navigeren. Om te schakelen naar de volgende en vorige werkbalkgroep, gebruik TAB en SHIFT+TAB. Om te schakelen naar de volgende en vorige werkbalkknop, gebruik de PIJL RECHTS en PIJL LINKS. Druk op SPATIE of ENTER om een werkbalkknop te activeren.' }, { name : 'Dialoog tekstverwerker', legend : 'In een dialoogvenster, druk op TAB om te navigeren naar het volgende veld. Druk op SHIFT+TAB om naar het vorige veld te navigeren. Druk op ENTER om het dialoogvenster te verzenden. Druk op ESC om het dialoogvenster te sluiten. Voor dialoogvensters met meerdere tabbladen, druk op ALT+F10 om naar de tabset te navigeren. Schakel naar het volgende tabblad met TAB of PIJL RECHTS. Schakel naar het vorige tabblad met SHIFT+TAB of PIJL LINKS. Druk op SPATIE of ENTER om het tabblad te selecteren.' }, { name : 'Contextmenu tekstverwerker', legend : 'Druk op ${contextMenu} of APPLICATION KEY om het contextmenu te openen. Schakel naar de volgende menuoptie met TAB of PIJL OMLAAG. Schakel naar de vorige menuoptie met SHIFT+TAB of PIJL OMHOOG. Druk op SPATIE of ENTER om een menuoptie te selecteren. Op een submenu van de huidige optie met SPATIE, ENTER of PIJL RECHTS. Ga terug naar de bovenliggende menuoptie met ESC of PIJL LINKS. Sluit het contextmenu met ESC.' }, { name : 'Keuzelijst tekstverwerker', legend : 'In een keuzelijst, schakel naar het volgende item met TAB of PIJL OMLAAG. Schakel naar het vorige item met SHIFT+TAB of PIJL OMHOOG. Druk op SPATIE of ENTER om het item te selecteren. Druk op ESC om de keuzelijst te sluiten.' }, { name : 'Elementenpad werkbalk tekstverwerker', legend : 'Druk op ${elementsPathFocus} om naar het elementenpad te navigeren. Om te schakelen naar het volgende element, gebruik TAB of PIJL RECHTS. Om te schakelen naar het vorige element, gebruik SHIFT+TAB or PIJL LINKS. Druk op SPATIE of ENTER om een element te selecteren in de tekstverwerker.' } ] }, { name : 'Opdrachten', items : [ { name : 'Ongedaan maken opdracht', legend : 'Druk op ${undo}' }, { name : 'Opnieuw uitvoeren opdracht', legend : 'Druk op ${redo}' }, { name : 'Vetgedrukt opdracht', legend : 'Druk up ${bold}' }, { name : 'Cursief opdracht', legend : 'Druk op ${italic}' }, { name : 'Onderstrepen opdracht', legend : 'Druk op ${underline}' }, { name : 'Link opdracht', legend : 'Druk op ${link}' }, { name : 'Werkbalk inklappen opdracht', legend : 'Druk op ${toolbarCollapse}' }, { name : 'Toegankelijkheidshulp', legend : 'Druk op ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'da', { accessibilityHelp : { title : 'Tilgængelighedsinstrukser', contents : 'Help Contents. To close this dialog press ESC.', // MISSING legend : [ { name : 'Generelt', items : [ { name : 'Editor værktøjslinje', legend: 'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING }, { name : 'Editor Dialog', // MISSING legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING }, { name : 'Editor Context Menu', // MISSING legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING }, { name : 'Editor List Box', // MISSING legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING }, { name : 'Editor Element Path Bar', // MISSING legend : 'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING } ] }, { name : 'Kommandoer', items : [ { name : 'Fortryd kommando', legend : 'Klik på ${undo}' }, { name : 'Gentag kommando', legend : 'Klik ${redo}' }, { name : ' Bold command', // MISSING legend : 'Klik ${bold}' }, { name : ' Italic command', // MISSING legend : 'Press ${italic}' // MISSING }, { name : ' Underline command', // MISSING legend : 'Klik ${underline}' }, { name : ' Link command', // MISSING legend : 'Klik ${link}' }, { name : ' Toolbar Collapse command', // MISSING legend : 'Press ${toolbarCollapse}' // MISSING }, { name : ' Accessibility Help', // MISSING legend : 'Kilk ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'pt-br', { accessibilityHelp : { title : 'Instruções de Acessibilidade', contents : 'Conteúdo da Ajuda. Para fechar este diálogo pressione ESC.', legend : [ { name : 'Geral', items : [ { name : 'Barra de Ferramentas do Editor', legend: 'Pressione ${toolbarFocus} para navegar para a barra de ferramentas. Mova para o anterior ou próximo grupo de ferramentas com TAB e SHIFT-TAB. Mova para o anterior ou próximo botão com SETA PARA DIREITA or SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para ativar o botão da barra de ferramentas.' }, { name : 'Diálogo do Editor', legend : 'Dentro de um diálogo, pressione TAB para navegar para o próximo campo, pressione SHIFT + TAB para mover para o campo anterior, pressione ENTER para enviar o diálogo, pressione ESC para cancelar o diálogo. Para diálogos que tem múltiplas abas, pressione ALT + F10 para navegar para a lista de abas, então mova para a próxima aba com SHIFT + TAB ou SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para selecionar a aba.' }, { name : 'Menu de Contexto do Editor', legend : 'Pressione ${contextMenu} ou TECLA DE MENU para abrir o menu de contexto, então mova para a próxima opção com TAB ou SETA PARA BAIXO. Mova para a anterior com SHIFT+TAB ou SETA PARA CIMA. Pressione ESPAÇO ou ENTER para selecionar a opção do menu. Abra o submenu da opção atual com ESPAÇO ou ENTER ou SETA PARA DIREITA. Volte para o menu pai com ESC ou SETA PARA ESQUERDA. Feche o menu de contexto com ESC.' }, { name : 'Caixa de Lista do Editor', legend : 'Dentro de uma caixa de lista, mova para o próximo item com TAB ou SETA PARA BAIXO. Mova para o item anterior com SHIFT + TAB ou SETA PARA CIMA. Pressione ESPAÇO ou ENTER para selecionar uma opção na lista. Pressione ESC para fechar a caixa de lista.' }, { name : 'Barra de Caminho do Elementos do Editor', legend : 'Pressione ${elementsPathFocus} para a barra de caminho dos elementos. Mova para o próximo botão de elemento com TAB ou SETA PARA DIREITA. Mova para o botão anterior com SHIFT+TAB ou SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para selecionar o elemento no editor.' } ] }, { name : 'Comandos', items : [ { name : ' Comando Desfazer', legend : 'Pressione ${undo}' }, { name : ' Comando Refazer', legend : 'Pressione ${redo}' }, { name : ' Comando Negrito', legend : 'Pressione ${bold}' }, { name : ' Comando Itálico', legend : 'Pressione ${italic}' }, { name : ' Comando Sublinhado', legend : 'Pressione ${underline}' }, { name : ' Comando Link', legend : 'Pressione ${link}' }, { name : ' Comando Fechar Barra de Ferramentas', legend : 'Pressione ${toolbarCollapse}' }, { name : ' Ajuda de Acessibilidade', legend : 'Pressione ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'gu', { accessibilityHelp : { title : 'એક્ક્ષેબિલિટી ની વિગતો', contents : 'હેલ્પ. આ બંધ કરવા ESC દબાવો.', legend : [ { name : 'જનરલ', items : [ { name : 'એડિટર ટૂલબાર', legend: 'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING }, { name : 'એડિટર ડાયલોગ', legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING }, { name : 'Editor Context Menu', // MISSING legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING }, { name : 'Editor List Box', // MISSING legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING }, { name : 'Editor Element Path Bar', // MISSING legend : 'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING } ] }, { name : 'કમાંડસ', items : [ { name : 'અન્ડું કમાંડ', legend : '$ દબાવો {undo}' }, { name : 'ફરી કરો કમાંડ', legend : '$ દબાવો {redo}' }, { name : 'બોલ્દનો કમાંડ', legend : '$ દબાવો {bold}' }, { name : ' Italic command', // MISSING legend : 'Press ${italic}' // MISSING }, { name : ' Underline command', // MISSING legend : 'Press ${underline}' // MISSING }, { name : ' Link command', // MISSING legend : 'Press ${link}' // MISSING }, { name : ' Toolbar Collapse command', // MISSING legend : 'Press ${toolbarCollapse}' // MISSING }, { name : ' Accessibility Help', // MISSING legend : 'Press ${a11yHelp}' // MISSING } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'cs', { accessibilityHelp : { title : 'Instrukce pro přístupnost', contents : 'Obsah nápovědy. Pro uzavření tohoto dialogu stiskněte klávesu ESC.', legend : [ { name : 'Obecné', items : [ { name : 'Panel nástrojů editoru', legend: 'Stiskněte${toolbarFocus} k procházení panelu nástrojů. Přejděte na další a předchozí skupiny pomocí TAB a SHIFT-TAB. Přechod na další a předchozí tlačítko panelu nástrojů je pomocí ŠIPKA VPRAVO nebo ŠIPKA VLEVO. Stisknutím mezerníku nebo klávesy ENTER tlačítko aktivujete.' }, { name : 'Dialogové okno editoru', legend : 'Uvnitř dialogového okna stiskněte TAB pro přesunutí na další pole, stiskněte SHIFT + TAB pro přesun na předchozí pole, stiskněte ENTER pro odeslání dialogu, stiskněte ESC pro jeho zrušení. Pro dialogová okna, která mají mnoho karet stiskněte ALT + F10 pr oprocházení seznamu karet. Pak se přesuňte na další kartu pomocí TAB nebo ŠIPKA VPRAVO. Pro přesun na předchozí stiskněte SHIFT + TAB nebo ŠIPKA VLEVO. Stiskněte MEZERNÍK nebo ENTER pro vybrání stránky karet.' }, { name : 'Kontextové menu editoru', legend : 'Stiskněte ${contextMenu} nebo klávesu APPLICATION k otevření kontextového menu. Pak se přesuňte na další možnost menu pomocí TAB nebo ŠIPKY DOLŮ. Přesuňte se na předchozí možnost pomocí SHIFT+TAB nebo ŠIPKY NAHORU. Stiskněte MEZERNÍK nebo ENTER pro zvolení možnosti menu. Podmenu současné možnosti otevřete pomocí MEZERNÍKU nebo ENTER či ŠIPKY DOLEVA. Kontextové menu uzavřete stiskem ESC.' }, { name : 'Rámeček seznamu editoru', legend : 'Uvnitř rámečku seznamu se přesunete na další položku menu pomocí TAB nebo ŠIPKA DOLŮ. Na předchozí položku se přesunete SHIFT + TAB nebo ŠIPKA NAHORU. Stiskněte MEZERNÍK nebo ENTER pro zvolení možnosti seznamu. Stiskněte ESC pro uzavření seznamu.' }, { name : 'Lišta cesty prvku v editoru', legend : 'Stiskněte ${elementsPathFocus} pro procházení lišty cesty prvku. Na další tlačítko prvku se přesunete pomocí TAB nebo ŠIPKA VPRAVO. Na předchozí položku se přesunete pomocí SHIFT + TAB nebo ŠIPKA VLEVO. Stiskněte MEZERNÍK nebo ENTER pro vybrání prvku v editoru.' } ] }, { name : 'Příkazy', items : [ { name : ' Příkaz Zpět', legend : 'Stiskněte ${undo}' }, { name : ' Příkaz Znovu', legend : 'Stiskněte ${redo}' }, { name : ' Příkaz Tučné', legend : 'Stiskněte ${bold}' }, { name : ' Příkaz Kurzíva', legend : 'Stiskněte ${italic}' }, { name : ' Příkaz Podtržení', legend : 'Stiskněte ${underline}' }, { name : ' Příkaz Odkaz', legend : 'Stiskněte ${link}' }, { name : ' Příkaz Skrýt panel nástrojů', legend : 'Stiskněte ${toolbarCollapse}' }, { name : ' Nápověda přístupnosti', legend : 'Stiskněte ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'fi', { accessibilityHelp : { title : 'Saavutettavuus ohjeet', contents : 'Ohjeen sisällöt. Sulkeaksesi tämän dialogin paina ESC.', legend : [ { name : 'Yleinen', items : [ { name : 'Editorin työkalupalkki', legend: 'Paina ${toolbarFocus} siirtyäksesi työkalupalkkiin. Siirry seuraavaan ja edelliseen työkalupalkin ryhmään TAB ja SHIFT-TAB näppäimillä. Siirry seuraavaan ja edelliseen työkalupainikkeeseen käyttämällä NUOLI OIKEALLE tai NUOLI VASEMMALLE näppäimillä. Paina VÄLILYÖNTI tai ENTER näppäintä aktivoidaksesi työkalupainikkeen.' }, { name : 'Editorin dialogi', legend : 'Dialogin sisällä, painamalla TAB siirryt seuraavaan dialogin kenttään, painamalla SHIFT+TAB siirryt aiempaan kenttään, painamalla ENTER lähetät dialogin, painamalla ESC peruutat dialogin. Dialogeille joissa on useita välilehtiä, paina ALT+F10 siirtyäksesi välillehtilistaan. Siirtyäksesi seuraavaan välilehteen paina TAB tai NUOLI OIKEALLE. Siirry edelliseen välilehteen painamalla SHIFT+TAB tai nuoli vasemmalle. Paina VÄLILYÖNTI tai ENTER valitaksesi välilehden.' }, { name : 'Editorin oheisvalikko', legend : 'Paina ${contextMenu} tai SOVELLUSPAINIKETTA avataksesi oheisvalikon. Liiku seuraavaan valikon vaihtoehtoon TAB tai NUOLI ALAS näppäimillä. Siirry edelliseen vaihtoehtoon SHIFT+TAB tai NUOLI YLÖS näppäimillä. Paina VÄLILYÖNTI tai ENTER valitaksesi valikon kohdan. Avataksesi nykyisen kohdan alivalikon paina VÄLILYÖNTI tai ENTER tai NUOLI OIKEALLE painiketta. Siirtyäksesi takaisin valikon ylemmälle tasolle paina ESC tai NUOLI vasemmalle. Oheisvalikko suljetaan ESC painikkeella.' }, { name : 'Editorin listalaatikko', legend : 'Listalaatikon sisällä siirry seuraavaan listan kohtaan TAB tai NUOLI ALAS painikkeilla. Siirry edelliseen listan kohtaan SHIFT+TAB tai NUOLI YLÖS painikkeilla. Paina VÄLILYÖNTI tai ENTER valitaksesi listan vaihtoehdon. Paina ESC sulkeaksesi listalaatikon.' }, { name : 'Editorin elementtipolun palkki', legend : 'Paina ${elementsPathFocus} siirtyäksesi elementtipolun palkkiin. Siirry seuraavaan elementtipainikkeeseen TAB tai NUOLI OIKEALLE painikkeilla. Siirry aiempaan painikkeeseen SHIFT+TAB tai NUOLI VASEMMALLE painikkeilla. Paina VÄLILYÖNTI tai ENTER valitaksesi elementin editorissa.' } ] }, { name : 'Komennot', items : [ { name : 'Peruuta komento', legend : 'Paina ${undo}' }, { name : 'Tee uudelleen komento', legend : 'Paina ${redo}' }, { name : 'Lihavoi komento', legend : 'Paina ${bold}' }, { name : 'Kursivoi komento', legend : 'Paina ${italic}' }, { name : 'Alleviivaa komento', legend : 'Paina ${underline}' }, { name : 'Linkki komento', legend : 'Paina ${link}' }, { name : 'Pienennä työkalupalkki komento', legend : 'Paina ${toolbarCollapse}' }, { name : 'Saavutettavuus ohjeet', legend : 'Paina ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'ug', { accessibilityHelp : { title : 'قوشۇمچە چۈشەندۈرۈش', contents : 'ياردەم مەزمۇنى. بۇ سۆزلەشكۈنى ياپماقچى بولسىڭىز ESC نى بېسىڭ.', legend : [ { name : 'ئادەتتىكى', items : [ { name : 'قورال بالداق تەھرىر', legend: '${toolbarFocus} بېسىلسا قورال بالداققا يېتەكلەيدۇ، TAB ياكى SHIFT+TAB ئارقىلىق قورال بالداق گۇرۇپپىسى تاللىنىدۇ، ئوڭ سول يا ئوقتا توپچا تاللىنىدۇ، بوشلۇق ياكى Enter كۇنۇپكىسىدا تاللانغان توپچىنى قوللىنىدۇ.' }, { name : 'تەھرىرلىگۈچ سۆزلەشكۈسى', legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING }, { name : 'تەھرىرلىگۈچ تىل مۇھىت تىزىملىكى', legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING }, { name : 'تەھرىرلىگۈچ تىزىمى', legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING }, { name : 'تەھرىرلىگۈچ ئېلېمېنت يول بالداق', legend : '${elementsPathFocus} بېسىلسا ئېلېمېنت يول بالداققا يېتەكلەيدۇ، TAB ياكى ئوڭ يا ئوقتا كېيىنكى ئېلېمېنت تاللىنىدۇ، SHIFT+TAB ياكى سول يا ئوقتا ئالدىنقى ئېلېمېنت تاللىنىدۇ، بوشلۇق ياكى Enter كۇنۇپكىسىدا تەھرىرلىگۈچتىكى ئېلېمېنت تاللىنىدۇ.' } ] }, { name : 'بۇيرۇق', items : [ { name : 'بۇيرۇقتىن يېنىۋال', legend : '${undo} نى بېسىڭ' }, { name : 'قايتىلاش بۇيرۇقى', legend : '${redo} نى بېسىڭ' }, { name : 'توملىتىش بۇيرۇقى', legend : '${bold} نى بېسىڭ' }, { name : 'يانتۇ بۇيرۇقى', legend : '${italic} نى بېسىڭ' }, { name : 'ئاستى سىزىق بۇيرۇقى', legend : '${underline} نى بېسىڭ' }, { name : 'ئۇلانما بۇيرۇقى', legend : '${link} نى بېسىڭ' }, { name : 'قورال بالداق قاتلاش بۇيرۇقى', legend : '${toolbarCollapse} نى بېسىڭ' }, { name : 'توسالغۇسىز لايىھە چۈشەندۈرۈشى', legend : '${a11yHelp} نى بېسىڭ' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'zh-cn', { accessibilityHelp : { title : '辅助说明', contents : '帮助内容。要关闭此对话框请按 ESC 键。', legend : [ { name : '常规', items : [ { name : '编辑器工具栏', legend: '按 ${toolbarFocus} 导航到工具栏,使用 TAB 键或 SHIFT+TAB 组合键选择工具栏组,使用左右箭头键选择按钮,按空格键或回车键以应用选中的按钮。' }, { name : '编辑器对话框', legend : '在对话框内,TAB 键移动到下一个字段,SHIFT + TAB 组合键移动到上一个字段,ENTER 键提交对话框,ESC 键取消对话框。对于有多标签的对话框,用ALT + F10来移到标签列表。然后用 TAB 键或者向右箭头来移动到下一个标签;SHIFT + TAB 组合键或者向左箭头移动到上一个标签。用 SPACE 键或者 ENTER 键选择标签。' }, { name : '编辑器上下文菜单', legend : '用 ${contextMenu}或者 应用程序键 打开上下文菜单。然后用 TAB 键或者下箭头键来移动到下一个菜单项;SHIFT + TAB 组合键或者上箭头键移动到上一个菜单项。用 SPACE 键或者 ENTER 键选择菜单项。用 SPACE 键,ENTER 键或者右箭头键打开子菜单。返回菜单用 ESC 键或者左箭头键。用 ESC 键关闭上下文菜单。' }, { name : '编辑器列表框', legend : '在列表框中,移到下一列表项用 TAB 键或者下箭头键。移到上一列表项用SHIFT + TAB 组合键或者上箭头键,用 SPACE 键或者 ENTER 键选择列表项。用 ESC 键收起列表框。' }, { name : '编辑器元素路径栏', legend : '按 ${elementsPathFocus} 以导航到元素路径栏,使用 TAB 键或右箭头键选择下一个元素,使用 SHIFT+TAB 组合键或左箭头键选择上一个元素,按空格键或回车键以选定编辑器里的元素。' } ] }, { name : '命令', items : [ { name : ' 撤消命令', legend : '按 ${undo}' }, { name : ' 重做命令', legend : '按 ${redo}' }, { name : ' 加粗命令', legend : '按 ${bold}' }, { name : ' 倾斜命令', legend : '按 ${italic}' }, { name : ' 下划线命令', legend : '按 ${underline}' }, { name : ' 链接命令', legend : '按 ${link}' }, { name : ' 工具栏折叠命令', legend : '按 ${toolbarCollapse}' }, { name : ' 无障碍设计说明', legend : '按 ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'en', { accessibilityHelp : { title : 'Accessibility Instructions', contents : 'Help Contents. To close this dialog press ESC.', legend : [ { name : 'General', items : [ { name : 'Editor Toolbar', legend: 'Press ${toolbarFocus} to navigate to the toolbar. ' + 'Move to the next and previous toolbar group with TAB and SHIFT-TAB. ' + 'Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. ' + 'Press SPACE or ENTER to activate the toolbar button.' }, { name : 'Editor Dialog', legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. ' + 'For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. ' + 'Then move to next tab with TAB OR RIGTH ARROW. ' + 'Move to previous tab with SHIFT + TAB or LEFT ARROW. ' + 'Press SPACE or ENTER to select the tab page.' }, { name : 'Editor Context Menu', legend : 'Press ${contextMenu} or APPLICATION KEY to open context-menu. ' + 'Then move to next menu option with TAB or DOWN ARROW. ' + 'Move to previous option with SHIFT+TAB or UP ARROW. ' + 'Press SPACE or ENTER to select the menu option. ' + 'Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. ' + 'Go back to parent menu item with ESC or LEFT ARROW. ' + 'Close context menu with ESC.' }, { name : 'Editor List Box', legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW. ' + 'Move to previous list item with SHIFT + TAB or UP ARROW. ' + 'Press SPACE or ENTER to select the list option. ' + 'Press ESC to close the list-box.' }, { name : 'Editor Element Path Bar', legend : 'Press ${elementsPathFocus} to navigate to the elements path bar. ' + 'Move to next element button with TAB or RIGHT ARROW. ' + 'Move to previous button with SHIFT+TAB or LEFT ARROW. ' + 'Press SPACE or ENTER to select the element in editor.' } ] }, { name : 'Commands', items : [ { name : ' Undo command', legend : 'Press ${undo}' }, { name : ' Redo command', legend : 'Press ${redo}' }, { name : ' Bold command', legend : 'Press ${bold}' }, { name : ' Italic command', legend : 'Press ${italic}' }, { name : ' Underline command', legend : 'Press ${underline}' }, { name : ' Link command', legend : 'Press ${link}' }, { name : ' Toolbar Collapse command', legend : 'Press ${toolbarCollapse}' }, { name : ' Accessibility Help', legend : 'Press ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'a11yHelp', function( editor ) { var lang = editor.lang.accessibilityHelp, id = CKEDITOR.tools.getNextId(); // CharCode <-> KeyChar. var keyMap = { 8 : "BACKSPACE", 9 : "TAB" , 13 : "ENTER" , 16 : "SHIFT" , 17 : "CTRL" , 18 : "ALT" , 19 : "PAUSE" , 20 : "CAPSLOCK" , 27 : "ESCAPE" , 33 : "PAGE UP" , 34 : "PAGE DOWN" , 35 : "END" , 36 : "HOME" , 37 : "LEFT ARROW" , 38 : "UP ARROW" , 39 : "RIGHT ARROW" , 40 : "DOWN ARROW" , 45 : "INSERT" , 46 : "DELETE" , 91 : "LEFT WINDOW KEY" , 92 : "RIGHT WINDOW KEY" , 93 : "SELECT KEY" , 96 : "NUMPAD 0" , 97 : "NUMPAD 1" , 98 : "NUMPAD 2" , 99 : "NUMPAD 3" , 100 : "NUMPAD 4" , 101 : "NUMPAD 5" , 102 : "NUMPAD 6" , 103 : "NUMPAD 7" , 104 : "NUMPAD 8" , 105 : "NUMPAD 9" , 106 : "MULTIPLY" , 107 : "ADD" , 109 : "SUBTRACT" , 110 : "DECIMAL POINT" , 111 : "DIVIDE" , 112 : "F1" , 113 : "F2" , 114 : "F3" , 115 : "F4" , 116 : "F5" , 117 : "F6" , 118 : "F7" , 119 : "F8" , 120 : "F9" , 121 : "F10" , 122 : "F11" , 123 : "F12" , 144 : "NUM LOCK" , 145 : "SCROLL LOCK" , 186 : "SEMI-COLON" , 187 : "EQUAL SIGN" , 188 : "COMMA" , 189 : "DASH" , 190 : "PERIOD" , 191 : "FORWARD SLASH" , 192 : "GRAVE ACCENT" , 219 : "OPEN BRACKET" , 220 : "BACK SLASH" , 221 : "CLOSE BRAKET" , 222 : "SINGLE QUOTE" }; // Modifier keys override. keyMap[ CKEDITOR.ALT ] = 'ALT'; keyMap[ CKEDITOR.SHIFT ] = 'SHIFT'; keyMap[ CKEDITOR.CTRL ] = 'CTRL'; // Sort in desc. var modifiers = [ CKEDITOR.ALT, CKEDITOR.SHIFT, CKEDITOR.CTRL ]; function representKeyStroke( keystroke ) { var quotient, modifier, presentation = []; for ( var i = 0; i < modifiers.length; i++ ) { modifier = modifiers[ i ]; quotient = keystroke / modifiers[ i ]; if ( quotient > 1 && quotient <= 2 ) { keystroke -= modifier; presentation.push( keyMap[ modifier ] ); } } presentation.push( keyMap[ keystroke ] || String.fromCharCode( keystroke ) ); return presentation.join( '+' ); } var variablesPattern = /\$\{(.*?)\}/g; function replaceVariables( match, name ) { var keystrokes = editor.config.keystrokes, definition, length = keystrokes.length; for ( var i = 0; i < length; i++ ) { definition = keystrokes[ i ]; if ( definition[ 1 ] == name ) break; } return representKeyStroke( definition[ 0 ] ); } // Create the help list directly from lang file entries. function buildHelpContents() { var pageTpl = '<div class="cke_accessibility_legend" role="document" aria-labelledby="' + id + '_arialbl" tabIndex="-1">%1</div>' + '<span id="' + id + '_arialbl" class="cke_voice_label">' + lang.contents + ' </span>', sectionTpl = '<h1>%1</h1><dl>%2</dl>', itemTpl = '<dt>%1</dt><dd>%2</dd>'; var pageHtml = [], sections = lang.legend, sectionLength = sections.length; for ( var i = 0; i < sectionLength; i++ ) { var section = sections[ i ], sectionHtml = [], items = section.items, itemsLength = items.length; for ( var j = 0; j < itemsLength; j++ ) { var item = items[ j ], itemHtml; itemHtml = itemTpl.replace( '%1', item.name ). replace( '%2', item.legend.replace( variablesPattern, replaceVariables ) ); sectionHtml.push( itemHtml ); } pageHtml.push( sectionTpl.replace( '%1', section.name ).replace( '%2', sectionHtml.join( '' ) ) ); } return pageTpl.replace( '%1', pageHtml.join( '' ) ); } return { title : lang.title, minWidth : 600, minHeight : 400, contents : [ { id : 'info', label : editor.lang.common.generalTab, expand : true, elements : [ { type : 'html', id : 'legends', style : 'white-space:normal;', focus : function() {}, html : buildHelpContents() + '<style type="text/css">' + '.cke_accessibility_legend' + '{' + 'width:600px;' + 'height:400px;' + 'padding-right:5px;' + 'overflow-y:auto;' + 'overflow-x:hidden;' + '}' + // Some adjustments are to be done for IE6 and Quirks to work "properly" (#5757) '.cke_browser_quirks .cke_accessibility_legend,' + '.cke_browser_ie6 .cke_accessibility_legend' + '{' + 'height:390px' + '}' + // Override non-wrapping white-space rule in reset css. '.cke_accessibility_legend *' + '{' + 'white-space:normal;' + '}' + '.cke_accessibility_legend h1' + '{' + 'font-size: 20px;' + 'border-bottom: 1px solid #AAA;' + 'margin: 5px 0px 15px;' + '}' + '.cke_accessibility_legend dl' + '{' + 'margin-left: 5px;' + '}' + '.cke_accessibility_legend dt' + '{' + 'font-size: 13px;' + 'font-weight: bold;' + '}' + '.cke_accessibility_legend dd' + '{' + 'margin:10px' + '}' + '</style>' } ] } ], buttons : [ CKEDITOR.dialog.cancelButton ] }; });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'link', { requires : [ 'fakeobjects', 'dialog' ], init : function( editor ) { // Add the link and unlink buttons. editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ) ); editor.addCommand( 'anchor', new CKEDITOR.dialogCommand( 'anchor' ) ); editor.addCommand( 'unlink', new CKEDITOR.unlinkCommand() ); editor.addCommand( 'removeAnchor', new CKEDITOR.removeAnchorCommand() ); editor.ui.addButton( 'Link', { label : editor.lang.link.toolbar, command : 'link' } ); editor.ui.addButton( 'Unlink', { label : editor.lang.unlink, command : 'unlink' } ); editor.ui.addButton( 'Anchor', { label : editor.lang.anchor.toolbar, command : 'anchor' } ); CKEDITOR.dialog.add( 'link', this.path + 'dialogs/link.js' ); CKEDITOR.dialog.add( 'anchor', this.path + 'dialogs/anchor.js' ); // Add the CSS styles for anchor placeholders. var side = ( editor.lang.dir == 'rtl' ? 'right' : 'left' ); var basicCss = 'background:url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ') no-repeat ' + side + ' center;' + 'border:1px dotted #00f;'; editor.addCss( 'a.cke_anchor,a.cke_anchor_empty' + // IE6 breaks with the following selectors. ( ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) ? '' : ',a[name],a[data-cke-saved-name]' ) + '{' + basicCss + 'padding-' + side + ':18px;' + // Show the arrow cursor for the anchor image (FF at least). 'cursor:auto;' + '}' + ( CKEDITOR.env.ie ? ( 'a.cke_anchor_empty' + '{' + // Make empty anchor selectable on IE. 'display:inline-block;' + '}' ) : '' ) + 'img.cke_anchor' + '{' + basicCss + 'width:16px;' + 'min-height:15px;' + // The default line-height on IE. 'height:1.15em;' + // Opera works better with "middle" (even if not perfect) 'vertical-align:' + ( CKEDITOR.env.opera ? 'middle' : 'text-bottom' ) + ';' + '}'); // Register selection change handler for the unlink button. editor.on( 'selectionChange', function( evt ) { if ( editor.readOnly ) return; /* * Despite our initial hope, document.queryCommandEnabled() does not work * for this in Firefox. So we must detect the state by element paths. */ var command = editor.getCommand( 'unlink' ), element = evt.data.path.lastElement && evt.data.path.lastElement.getAscendant( 'a', true ); if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) && element.getChildCount() ) command.setState( CKEDITOR.TRISTATE_OFF ); else command.setState( CKEDITOR.TRISTATE_DISABLED ); } ); editor.on( 'doubleclick', function( evt ) { var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element; if ( !element.isReadOnly() ) { if ( element.is( 'a' ) ) { evt.data.dialog = ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) ? 'anchor' : 'link'; editor.getSelection().selectElement( element ); } else if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) ) evt.data.dialog = 'anchor'; } }); // If the "menu" plugin is loaded, register the menu items. if ( editor.addMenuItems ) { editor.addMenuItems( { anchor : { label : editor.lang.anchor.menu, command : 'anchor', group : 'anchor', order : 1 }, removeAnchor : { label : editor.lang.anchor.remove, command : 'removeAnchor', group : 'anchor', order : 5 }, link : { label : editor.lang.link.menu, command : 'link', group : 'link', order : 1 }, unlink : { label : editor.lang.unlink, command : 'unlink', group : 'link', order : 5 } }); } // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu ) { editor.contextMenu.addListener( function( element, selection ) { if ( !element || element.isReadOnly() ) return null; var anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ); if ( !anchor && !( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) ) return null; var menu = {}; if ( anchor.getAttribute( 'href' ) && anchor.getChildCount() ) menu = { link : CKEDITOR.TRISTATE_OFF, unlink : CKEDITOR.TRISTATE_OFF }; if ( anchor && anchor.hasAttribute( 'name' ) ) menu.anchor = menu.removeAnchor = CKEDITOR.TRISTATE_OFF; return menu; }); } }, afterInit : function( editor ) { // Register a filter to displaying placeholders after mode change. var dataProcessor = editor.dataProcessor, dataFilter = dataProcessor && dataProcessor.dataFilter, htmlFilter = dataProcessor && dataProcessor.htmlFilter, pathFilters = editor._.elementsPath && editor._.elementsPath.filters; if ( dataFilter ) { dataFilter.addRules( { elements : { a : function( element ) { var attributes = element.attributes; if ( !attributes.name ) return null; var isEmpty = !element.children.length; if ( CKEDITOR.plugins.link.synAnchorSelector ) { // IE needs a specific class name to be applied // to the anchors, for appropriate styling. var ieClass = isEmpty ? 'cke_anchor_empty' : 'cke_anchor'; var cls = attributes[ 'class' ]; if ( attributes.name && ( !cls || cls.indexOf( ieClass ) < 0 ) ) attributes[ 'class' ] = ( cls || '' ) + ' ' + ieClass; if ( isEmpty && CKEDITOR.plugins.link.emptyAnchorFix ) { attributes.contenteditable = 'false'; attributes[ 'data-cke-editable' ] = 1; } } else if ( CKEDITOR.plugins.link.fakeAnchor && isEmpty ) return editor.createFakeParserElement( element, 'cke_anchor', 'anchor' ); return null; } } }); } if ( CKEDITOR.plugins.link.emptyAnchorFix && htmlFilter ) { htmlFilter.addRules( { elements : { a : function( element ) { delete element.attributes.contenteditable; } } }); } if ( pathFilters ) { pathFilters.push( function( element, name ) { if ( name == 'a' ) { if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) || ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) ) { return 'anchor'; } } }); } } } ); CKEDITOR.plugins.link = { /** * Get the surrounding link element of current selection. * @param editor * @example CKEDITOR.plugins.link.getSelectedLink( editor ); * @since 3.2.1 * The following selection will all return the link element. * <pre> * <a href="#">li^nk</a> * <a href="#">[link]</a> * text[<a href="#">link]</a> * <a href="#">li[nk</a>] * [<b><a href="#">li]nk</a></b>] * [<a href="#"><b>li]nk</b></a> * </pre> */ getSelectedLink : function( editor ) { try { var selection = editor.getSelection(); if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT ) { var selectedElement = selection.getSelectedElement(); if ( selectedElement.is( 'a' ) ) return selectedElement; } var range = selection.getRanges( true )[ 0 ]; range.shrink( CKEDITOR.SHRINK_TEXT ); var root = range.getCommonAncestor(); return root.getAscendant( 'a', true ); } catch( e ) { return null; } }, // Opera and WebKit don't make it possible to select empty anchors. Fake // elements must be used for them. fakeAnchor : CKEDITOR.env.opera || CKEDITOR.env.webkit, // For browsers that don't support CSS3 a[name]:empty(), note IE9 is included because of #7783. synAnchorSelector : CKEDITOR.env.ie, // For browsers that have editing issue with empty anchor. emptyAnchorFix : CKEDITOR.env.ie && CKEDITOR.env.version < 8, tryRestoreFakeAnchor : function( editor, element ) { if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' ) == 'anchor' ) { var link = editor.restoreRealElement( element ); if ( link.data( 'cke-saved-name' ) ) return link; } } }; CKEDITOR.unlinkCommand = function(){}; CKEDITOR.unlinkCommand.prototype = { /** @ignore */ exec : function( editor ) { /* * execCommand( 'unlink', ... ) in Firefox leaves behind <span> tags at where * the <a> was, so again we have to remove the link ourselves. (See #430) * * TODO: Use the style system when it's complete. Let's use execCommand() * as a stopgap solution for now. */ var selection = editor.getSelection(), bookmarks = selection.createBookmarks(), ranges = selection.getRanges(), rangeRoot, element; for ( var i = 0 ; i < ranges.length ; i++ ) { rangeRoot = ranges[i].getCommonAncestor( true ); element = rangeRoot.getAscendant( 'a', true ); if ( !element ) continue; ranges[i].selectNodeContents( element ); } selection.selectRanges( ranges ); editor.document.$.execCommand( 'unlink', false, null ); selection.selectBookmarks( bookmarks ); }, startDisabled : true }; CKEDITOR.removeAnchorCommand = function(){}; CKEDITOR.removeAnchorCommand.prototype = { /** @ignore */ exec : function( editor ) { var sel = editor.getSelection(), bms = sel.createBookmarks(), anchor; if ( sel && ( anchor = sel.getSelectedElement() ) && ( CKEDITOR.plugins.link.fakeAnchor && !anchor.getChildCount() ? CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, anchor ) : anchor.is( 'a' ) ) ) anchor.remove( 1 ); else { if ( ( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) ) { if ( anchor.hasAttribute( 'href' ) ) { anchor.removeAttributes( { name : 1, 'data-cke-saved-name' : 1 } ); anchor.removeClass( 'cke_anchor' ); } else anchor.remove( 1 ); } } sel.selectBookmarks( bms ); } }; CKEDITOR.tools.extend( CKEDITOR.config, { linkShowAdvancedTab : true, linkShowTargetTab : true } );
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'anchor', function( editor ) { // Function called in onShow to load selected element. var loadElements = function( element ) { this._.selectedElement = element; var attributeValue = element.data( 'cke-saved-name' ); this.setValueOf( 'info','txtName', attributeValue || '' ); }; function createFakeAnchor( editor, anchor ) { return editor.createFakeElement( anchor, 'cke_anchor', 'anchor' ); } return { title : editor.lang.anchor.title, minWidth : 300, minHeight : 60, onOk : function() { var name = CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtName' ) ); var attributes = { id : name, name : name, 'data-cke-saved-name' : name }; if ( this._.selectedElement ) { if ( this._.selectedElement.data( 'cke-realelement' ) ) { var newFake = createFakeAnchor( editor, editor.document.createElement( 'a', { attributes: attributes } ) ); newFake.replace( this._.selectedElement ); } else this._.selectedElement.setAttributes( attributes ); } else { var sel = editor.getSelection(), range = sel && sel.getRanges()[ 0 ]; // Empty anchor if ( range.collapsed ) { if ( CKEDITOR.plugins.link.synAnchorSelector ) attributes[ 'class' ] = 'cke_anchor_empty'; if ( CKEDITOR.plugins.link.emptyAnchorFix ) { attributes[ 'contenteditable' ] = 'false'; attributes[ 'data-cke-editable' ] = 1; } var anchor = editor.document.createElement( 'a', { attributes: attributes } ); // Transform the anchor into a fake element for browsers that need it. if ( CKEDITOR.plugins.link.fakeAnchor ) anchor = createFakeAnchor( editor, anchor ); range.insertNode( anchor ); } else { if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) attributes['class'] = 'cke_anchor'; // Apply style. var style = new CKEDITOR.style( { element : 'a', attributes : attributes } ); style.type = CKEDITOR.STYLE_INLINE; style.apply( editor.document ); } } }, onHide : function() { delete this._.selectedElement; }, onShow : function() { var selection = editor.getSelection(), fullySelected = selection.getSelectedElement(), partialSelected; // Detect the anchor under selection. if ( fullySelected ) { if ( CKEDITOR.plugins.link.fakeAnchor ) { var realElement = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, fullySelected ); realElement && loadElements.call( this, realElement ); this._.selectedElement = fullySelected; } else if ( fullySelected.is( 'a' ) && fullySelected.hasAttribute( 'name' ) ) loadElements.call( this, fullySelected ); } else { partialSelected = CKEDITOR.plugins.link.getSelectedLink( editor ); if ( partialSelected ) { loadElements.call( this, partialSelected ); selection.selectElement( partialSelected ); } } this.getContentElement( 'info', 'txtName' ).focus(); }, contents : [ { id : 'info', label : editor.lang.anchor.title, accessKey : 'I', elements : [ { type : 'text', id : 'txtName', label : editor.lang.anchor.name, required: true, validate : function() { if ( !this.getValue() ) { alert( editor.lang.anchor.errorName ); return false; } return true; } } ] } ] }; } );
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'link', function( editor ) { var plugin = CKEDITOR.plugins.link; // Handles the event when the "Target" selection box is changed. var targetChanged = function() { var dialog = this.getDialog(), popupFeatures = dialog.getContentElement( 'target', 'popupFeatures' ), targetName = dialog.getContentElement( 'target', 'linkTargetName' ), value = this.getValue(); if ( !popupFeatures || !targetName ) return; popupFeatures = popupFeatures.getElement(); popupFeatures.hide(); targetName.setValue( '' ); switch ( value ) { case 'frame' : targetName.setLabel( editor.lang.link.targetFrameName ); targetName.getElement().show(); break; case 'popup' : popupFeatures.show(); targetName.setLabel( editor.lang.link.targetPopupName ); targetName.getElement().show(); break; default : targetName.setValue( value ); targetName.getElement().hide(); break; } }; // Handles the event when the "Type" selection box is changed. var linkTypeChanged = function() { var dialog = this.getDialog(), partIds = [ 'urlOptions', 'anchorOptions', 'emailOptions' ], typeValue = this.getValue(), uploadTab = dialog.definition.getContents( 'upload' ), uploadInitiallyHidden = uploadTab && uploadTab.hidden; if ( typeValue == 'url' ) { if ( editor.config.linkShowTargetTab ) dialog.showPage( 'target' ); if ( !uploadInitiallyHidden ) dialog.showPage( 'upload' ); } else { dialog.hidePage( 'target' ); if ( !uploadInitiallyHidden ) dialog.hidePage( 'upload' ); } for ( var i = 0 ; i < partIds.length ; i++ ) { var element = dialog.getContentElement( 'info', partIds[i] ); if ( !element ) continue; element = element.getElement().getParent().getParent(); if ( partIds[i] == typeValue + 'Options' ) element.show(); else element.hide(); } dialog.layout(); }; // Loads the parameters in a selected link to the link dialog fields. var javascriptProtocolRegex = /^javascript:/, emailRegex = /^mailto:([^?]+)(?:\?(.+))?$/, emailSubjectRegex = /subject=([^;?:@&=$,\/]*)/, emailBodyRegex = /body=([^;?:@&=$,\/]*)/, anchorRegex = /^#(.*)$/, urlRegex = /^((?:http|https|ftp|news):\/\/)?(.*)$/, selectableTargets = /^(_(?:self|top|parent|blank))$/, encodedEmailLinkRegex = /^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/, functionCallProtectedEmailLinkRegex = /^javascript:([^(]+)\(([^)]+)\)$/; var popupRegex = /\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/; var popupFeaturesRegex = /(?:^|,)([^=]+)=(\d+|yes|no)/gi; var parseLink = function( editor, element ) { var href = ( element && ( element.data( 'cke-saved-href' ) || element.getAttribute( 'href' ) ) ) || '', javascriptMatch, emailMatch, anchorMatch, urlMatch, retval = {}; if ( ( javascriptMatch = href.match( javascriptProtocolRegex ) ) ) { if ( emailProtection == 'encode' ) { href = href.replace( encodedEmailLinkRegex, function ( match, protectedAddress, rest ) { return 'mailto:' + String.fromCharCode.apply( String, protectedAddress.split( ',' ) ) + ( rest && unescapeSingleQuote( rest ) ); }); } // Protected email link as function call. else if ( emailProtection ) { href.replace( functionCallProtectedEmailLinkRegex, function( match, funcName, funcArgs ) { if ( funcName == compiledProtectionFunction.name ) { retval.type = 'email'; var email = retval.email = {}; var paramRegex = /[^,\s]+/g, paramQuoteRegex = /(^')|('$)/g, paramsMatch = funcArgs.match( paramRegex ), paramsMatchLength = paramsMatch.length, paramName, paramVal; for ( var i = 0; i < paramsMatchLength; i++ ) { paramVal = decodeURIComponent( unescapeSingleQuote( paramsMatch[ i ].replace( paramQuoteRegex, '' ) ) ); paramName = compiledProtectionFunction.params[ i ].toLowerCase(); email[ paramName ] = paramVal; } email.address = [ email.name, email.domain ].join( '@' ); } } ); } } if ( !retval.type ) { if ( ( anchorMatch = href.match( anchorRegex ) ) ) { retval.type = 'anchor'; retval.anchor = {}; retval.anchor.name = retval.anchor.id = anchorMatch[1]; } // Protected email link as encoded string. else if ( ( emailMatch = href.match( emailRegex ) ) ) { var subjectMatch = href.match( emailSubjectRegex ), bodyMatch = href.match( emailBodyRegex ); retval.type = 'email'; var email = ( retval.email = {} ); email.address = emailMatch[ 1 ]; subjectMatch && ( email.subject = decodeURIComponent( subjectMatch[ 1 ] ) ); bodyMatch && ( email.body = decodeURIComponent( bodyMatch[ 1 ] ) ); } // urlRegex matches empty strings, so need to check for href as well. else if ( href && ( urlMatch = href.match( urlRegex ) ) ) { retval.type = 'url'; retval.url = {}; retval.url.protocol = urlMatch[1]; retval.url.url = urlMatch[2]; } else retval.type = 'url'; } // Load target and popup settings. if ( element ) { var target = element.getAttribute( 'target' ); retval.target = {}; retval.adv = {}; // IE BUG: target attribute is an empty string instead of null in IE if it's not set. if ( !target ) { var onclick = element.data( 'cke-pa-onclick' ) || element.getAttribute( 'onclick' ), onclickMatch = onclick && onclick.match( popupRegex ); if ( onclickMatch ) { retval.target.type = 'popup'; retval.target.name = onclickMatch[1]; var featureMatch; while ( ( featureMatch = popupFeaturesRegex.exec( onclickMatch[2] ) ) ) { // Some values should remain numbers (#7300) if ( ( featureMatch[2] == 'yes' || featureMatch[2] == '1' ) && !( featureMatch[1] in { height:1, width:1, top:1, left:1 } ) ) retval.target[ featureMatch[1] ] = true; else if ( isFinite( featureMatch[2] ) ) retval.target[ featureMatch[1] ] = featureMatch[2]; } } } else { var targetMatch = target.match( selectableTargets ); if ( targetMatch ) retval.target.type = retval.target.name = target; else { retval.target.type = 'frame'; retval.target.name = target; } } var me = this; var advAttr = function( inputName, attrName ) { var value = element.getAttribute( attrName ); if ( value !== null ) retval.adv[ inputName ] = value || ''; }; advAttr( 'advId', 'id' ); advAttr( 'advLangDir', 'dir' ); advAttr( 'advAccessKey', 'accessKey' ); retval.adv.advName = element.data( 'cke-saved-name' ) || element.getAttribute( 'name' ) || ''; advAttr( 'advLangCode', 'lang' ); advAttr( 'advTabIndex', 'tabindex' ); advAttr( 'advTitle', 'title' ); advAttr( 'advContentType', 'type' ); CKEDITOR.plugins.link.synAnchorSelector ? retval.adv.advCSSClasses = getLinkClass( element ) : advAttr( 'advCSSClasses', 'class' ); advAttr( 'advCharset', 'charset' ); advAttr( 'advStyles', 'style' ); advAttr( 'advRel', 'rel' ); } // Find out whether we have any anchors in the editor. var anchors = retval.anchors = [], i, count, item; // For some browsers we set contenteditable="false" on anchors, making document.anchors not to include them, so we must traverse the links manually (#7893). if ( CKEDITOR.plugins.link.emptyAnchorFix ) { var links = editor.document.getElementsByTag( 'a' ); for ( i = 0, count = links.count(); i < count; i++ ) { item = links.getItem( i ); if ( item.data( 'cke-saved-name' ) || item.hasAttribute( 'name' ) ) anchors.push( { name : item.data( 'cke-saved-name' ) || item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) } ); } } else { var anchorList = new CKEDITOR.dom.nodeList( editor.document.$.anchors ); for ( i = 0, count = anchorList.count(); i < count; i++ ) { item = anchorList.getItem( i ); anchors[ i ] = { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) }; } } if ( CKEDITOR.plugins.link.fakeAnchor ) { var imgs = editor.document.getElementsByTag( 'img' ); for ( i = 0, count = imgs.count(); i < count; i++ ) { if ( ( item = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, imgs.getItem( i ) ) ) ) anchors.push( { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) } ); } } // Record down the selected element in the dialog. this._.selectedElement = element; return retval; }; var setupParams = function( page, data ) { if ( data[page] ) this.setValue( data[page][this.id] || '' ); }; var setupPopupParams = function( data ) { return setupParams.call( this, 'target', data ); }; var setupAdvParams = function( data ) { return setupParams.call( this, 'adv', data ); }; var commitParams = function( page, data ) { if ( !data[page] ) data[page] = {}; data[page][this.id] = this.getValue() || ''; }; var commitPopupParams = function( data ) { return commitParams.call( this, 'target', data ); }; var commitAdvParams = function( data ) { return commitParams.call( this, 'adv', data ); }; function unescapeSingleQuote( str ) { return str.replace( /\\'/g, '\'' ); } function escapeSingleQuote( str ) { return str.replace( /'/g, '\\$&' ); } var emailProtection = editor.config.emailProtection || ''; // Compile the protection function pattern. if ( emailProtection && emailProtection != 'encode' ) { var compiledProtectionFunction = {}; emailProtection.replace( /^([^(]+)\(([^)]+)\)$/, function( match, funcName, params ) { compiledProtectionFunction.name = funcName; compiledProtectionFunction.params = []; params.replace( /[^,\s]+/g, function( param ) { compiledProtectionFunction.params.push( param ); } ); } ); } function protectEmailLinkAsFunction( email ) { var retval, name = compiledProtectionFunction.name, params = compiledProtectionFunction.params, paramName, paramValue; retval = [ name, '(' ]; for ( var i = 0; i < params.length; i++ ) { paramName = params[ i ].toLowerCase(); paramValue = email[ paramName ]; i > 0 && retval.push( ',' ); retval.push( '\'', paramValue ? escapeSingleQuote( encodeURIComponent( email[ paramName ] ) ) : '', '\''); } retval.push( ')' ); return retval.join( '' ); } function protectEmailAddressAsEncodedString( address ) { var charCode, length = address.length, encodedChars = []; for ( var i = 0; i < length; i++ ) { charCode = address.charCodeAt( i ); encodedChars.push( charCode ); } return 'String.fromCharCode(' + encodedChars.join( ',' ) + ')'; } function getLinkClass( ele ) { var className = ele.getAttribute( 'class' ); return className ? className.replace( /\s*(?:cke_anchor_empty|cke_anchor)(?:\s*$)?/g, '' ) : ''; } var commonLang = editor.lang.common, linkLang = editor.lang.link; return { title : linkLang.title, minWidth : 350, minHeight : 230, contents : [ { id : 'info', label : linkLang.info, title : linkLang.info, elements : [ { id : 'linkType', type : 'select', label : linkLang.type, 'default' : 'url', items : [ [ linkLang.toUrl, 'url' ], [ linkLang.toAnchor, 'anchor' ], [ linkLang.toEmail, 'email' ] ], onChange : linkTypeChanged, setup : function( data ) { if ( data.type ) this.setValue( data.type ); }, commit : function( data ) { data.type = this.getValue(); } }, { type : 'vbox', id : 'urlOptions', children : [ { type : 'hbox', widths : [ '25%', '75%' ], children : [ { id : 'protocol', type : 'select', label : commonLang.protocol, 'default' : 'http://', items : [ // Force 'ltr' for protocol names in BIDI. (#5433) [ 'http://\u200E', 'http://' ], [ 'https://\u200E', 'https://' ], [ 'ftp://\u200E', 'ftp://' ], [ 'news://\u200E', 'news://' ], [ linkLang.other , '' ] ], setup : function( data ) { if ( data.url ) this.setValue( data.url.protocol || '' ); }, commit : function( data ) { if ( !data.url ) data.url = {}; data.url.protocol = this.getValue(); } }, { type : 'text', id : 'url', label : commonLang.url, required: true, onLoad : function () { this.allowOnChange = true; }, onKeyUp : function() { this.allowOnChange = false; var protocolCmb = this.getDialog().getContentElement( 'info', 'protocol' ), url = this.getValue(), urlOnChangeProtocol = /^(http|https|ftp|news):\/\/(?=.)/i, urlOnChangeTestOther = /^((javascript:)|[#\/\.\?])/i; var protocol = urlOnChangeProtocol.exec( url ); if ( protocol ) { this.setValue( url.substr( protocol[ 0 ].length ) ); protocolCmb.setValue( protocol[ 0 ].toLowerCase() ); } else if ( urlOnChangeTestOther.test( url ) ) protocolCmb.setValue( '' ); this.allowOnChange = true; }, onChange : function() { if ( this.allowOnChange ) // Dont't call on dialog load. this.onKeyUp(); }, validate : function() { var dialog = this.getDialog(); if ( dialog.getContentElement( 'info', 'linkType' ) && dialog.getValueOf( 'info', 'linkType' ) != 'url' ) return true; if ( (/javascript\:/).test( this.getValue() ) ) { alert( commonLang.invalidValue ); return false; } if ( this.getDialog().fakeObj ) // Edit Anchor. return true; var func = CKEDITOR.dialog.validate.notEmpty( linkLang.noUrl ); return func.apply( this ); }, setup : function( data ) { this.allowOnChange = false; if ( data.url ) this.setValue( data.url.url ); this.allowOnChange = true; }, commit : function( data ) { // IE will not trigger the onChange event if the mouse has been used // to carry all the operations #4724 this.onChange(); if ( !data.url ) data.url = {}; data.url.url = this.getValue(); this.allowOnChange = false; } } ], setup : function( data ) { if ( !this.getDialog().getContentElement( 'info', 'linkType' ) ) this.getElement().show(); } }, { type : 'button', id : 'browse', hidden : 'true', filebrowser : 'info:url', label : commonLang.browseServer } ] }, { type : 'vbox', id : 'anchorOptions', width : 260, align : 'center', padding : 0, children : [ { type : 'fieldset', id : 'selectAnchorText', label : linkLang.selectAnchor, setup : function( data ) { if ( data.anchors.length > 0 ) this.getElement().show(); else this.getElement().hide(); }, children : [ { type : 'hbox', id : 'selectAnchor', children : [ { type : 'select', id : 'anchorName', 'default' : '', label : linkLang.anchorName, style : 'width: 100%;', items : [ [ '' ] ], setup : function( data ) { this.clear(); this.add( '' ); for ( var i = 0 ; i < data.anchors.length ; i++ ) { if ( data.anchors[i].name ) this.add( data.anchors[i].name ); } if ( data.anchor ) this.setValue( data.anchor.name ); var linkType = this.getDialog().getContentElement( 'info', 'linkType' ); if ( linkType && linkType.getValue() == 'email' ) this.focus(); }, commit : function( data ) { if ( !data.anchor ) data.anchor = {}; data.anchor.name = this.getValue(); } }, { type : 'select', id : 'anchorId', 'default' : '', label : linkLang.anchorId, style : 'width: 100%;', items : [ [ '' ] ], setup : function( data ) { this.clear(); this.add( '' ); for ( var i = 0 ; i < data.anchors.length ; i++ ) { if ( data.anchors[i].id ) this.add( data.anchors[i].id ); } if ( data.anchor ) this.setValue( data.anchor.id ); }, commit : function( data ) { if ( !data.anchor ) data.anchor = {}; data.anchor.id = this.getValue(); } } ], setup : function( data ) { if ( data.anchors.length > 0 ) this.getElement().show(); else this.getElement().hide(); } } ] }, { type : 'html', id : 'noAnchors', style : 'text-align: center;', html : '<div role="note" tabIndex="-1">' + CKEDITOR.tools.htmlEncode( linkLang.noAnchors ) + '</div>', // Focus the first element defined in above html. focus : true, setup : function( data ) { if ( data.anchors.length < 1 ) this.getElement().show(); else this.getElement().hide(); } } ], setup : function( data ) { if ( !this.getDialog().getContentElement( 'info', 'linkType' ) ) this.getElement().hide(); } }, { type : 'vbox', id : 'emailOptions', padding : 1, children : [ { type : 'text', id : 'emailAddress', label : linkLang.emailAddress, required : true, validate : function() { var dialog = this.getDialog(); if ( !dialog.getContentElement( 'info', 'linkType' ) || dialog.getValueOf( 'info', 'linkType' ) != 'email' ) return true; var func = CKEDITOR.dialog.validate.notEmpty( linkLang.noEmail ); return func.apply( this ); }, setup : function( data ) { if ( data.email ) this.setValue( data.email.address ); var linkType = this.getDialog().getContentElement( 'info', 'linkType' ); if ( linkType && linkType.getValue() == 'email' ) this.select(); }, commit : function( data ) { if ( !data.email ) data.email = {}; data.email.address = this.getValue(); } }, { type : 'text', id : 'emailSubject', label : linkLang.emailSubject, setup : function( data ) { if ( data.email ) this.setValue( data.email.subject ); }, commit : function( data ) { if ( !data.email ) data.email = {}; data.email.subject = this.getValue(); } }, { type : 'textarea', id : 'emailBody', label : linkLang.emailBody, rows : 3, 'default' : '', setup : function( data ) { if ( data.email ) this.setValue( data.email.body ); }, commit : function( data ) { if ( !data.email ) data.email = {}; data.email.body = this.getValue(); } } ], setup : function( data ) { if ( !this.getDialog().getContentElement( 'info', 'linkType' ) ) this.getElement().hide(); } } ] }, { id : 'target', label : linkLang.target, title : linkLang.target, elements : [ { type : 'hbox', widths : [ '50%', '50%' ], children : [ { type : 'select', id : 'linkTargetType', label : commonLang.target, 'default' : 'notSet', style : 'width : 100%;', 'items' : [ [ commonLang.notSet, 'notSet' ], [ linkLang.targetFrame, 'frame' ], [ linkLang.targetPopup, 'popup' ], [ commonLang.targetNew, '_blank' ], [ commonLang.targetTop, '_top' ], [ commonLang.targetSelf, '_self' ], [ commonLang.targetParent, '_parent' ] ], onChange : targetChanged, setup : function( data ) { if ( data.target ) this.setValue( data.target.type || 'notSet' ); targetChanged.call( this ); }, commit : function( data ) { if ( !data.target ) data.target = {}; data.target.type = this.getValue(); } }, { type : 'text', id : 'linkTargetName', label : linkLang.targetFrameName, 'default' : '', setup : function( data ) { if ( data.target ) this.setValue( data.target.name ); }, commit : function( data ) { if ( !data.target ) data.target = {}; data.target.name = this.getValue().replace(/\W/gi, ''); } } ] }, { type : 'vbox', width : '100%', align : 'center', padding : 2, id : 'popupFeatures', children : [ { type : 'fieldset', label : linkLang.popupFeatures, children : [ { type : 'hbox', children : [ { type : 'checkbox', id : 'resizable', label : linkLang.popupResizable, setup : setupPopupParams, commit : commitPopupParams }, { type : 'checkbox', id : 'status', label : linkLang.popupStatusBar, setup : setupPopupParams, commit : commitPopupParams } ] }, { type : 'hbox', children : [ { type : 'checkbox', id : 'location', label : linkLang.popupLocationBar, setup : setupPopupParams, commit : commitPopupParams }, { type : 'checkbox', id : 'toolbar', label : linkLang.popupToolbar, setup : setupPopupParams, commit : commitPopupParams } ] }, { type : 'hbox', children : [ { type : 'checkbox', id : 'menubar', label : linkLang.popupMenuBar, setup : setupPopupParams, commit : commitPopupParams }, { type : 'checkbox', id : 'fullscreen', label : linkLang.popupFullScreen, setup : setupPopupParams, commit : commitPopupParams } ] }, { type : 'hbox', children : [ { type : 'checkbox', id : 'scrollbars', label : linkLang.popupScrollBars, setup : setupPopupParams, commit : commitPopupParams }, { type : 'checkbox', id : 'dependent', label : linkLang.popupDependent, setup : setupPopupParams, commit : commitPopupParams } ] }, { type : 'hbox', children : [ { type : 'text', widths : [ '50%', '50%' ], labelLayout : 'horizontal', label : commonLang.width, id : 'width', setup : setupPopupParams, commit : commitPopupParams }, { type : 'text', labelLayout : 'horizontal', widths : [ '50%', '50%' ], label : linkLang.popupLeft, id : 'left', setup : setupPopupParams, commit : commitPopupParams } ] }, { type : 'hbox', children : [ { type : 'text', labelLayout : 'horizontal', widths : [ '50%', '50%' ], label : commonLang.height, id : 'height', setup : setupPopupParams, commit : commitPopupParams }, { type : 'text', labelLayout : 'horizontal', label : linkLang.popupTop, widths : [ '50%', '50%' ], id : 'top', setup : setupPopupParams, commit : commitPopupParams } ] } ] } ] } ] }, { id : 'upload', label : linkLang.upload, title : linkLang.upload, hidden : true, filebrowser : 'uploadButton', elements : [ { type : 'file', id : 'upload', label : commonLang.upload, style: 'height:40px', size : 29 }, { type : 'fileButton', id : 'uploadButton', label : commonLang.uploadSubmit, filebrowser : 'info:url', 'for' : [ 'upload', 'upload' ] } ] }, { id : 'advanced', label : linkLang.advanced, title : linkLang.advanced, elements : [ { type : 'vbox', padding : 1, children : [ { type : 'hbox', widths : [ '45%', '35%', '20%' ], children : [ { type : 'text', id : 'advId', label : linkLang.id, setup : setupAdvParams, commit : commitAdvParams }, { type : 'select', id : 'advLangDir', label : linkLang.langDir, 'default' : '', style : 'width:110px', items : [ [ commonLang.notSet, '' ], [ linkLang.langDirLTR, 'ltr' ], [ linkLang.langDirRTL, 'rtl' ] ], setup : setupAdvParams, commit : commitAdvParams }, { type : 'text', id : 'advAccessKey', width : '80px', label : linkLang.acccessKey, maxLength : 1, setup : setupAdvParams, commit : commitAdvParams } ] }, { type : 'hbox', widths : [ '45%', '35%', '20%' ], children : [ { type : 'text', label : linkLang.name, id : 'advName', setup : setupAdvParams, commit : commitAdvParams }, { type : 'text', label : linkLang.langCode, id : 'advLangCode', width : '110px', 'default' : '', setup : setupAdvParams, commit : commitAdvParams }, { type : 'text', label : linkLang.tabIndex, id : 'advTabIndex', width : '80px', maxLength : 5, setup : setupAdvParams, commit : commitAdvParams } ] } ] }, { type : 'vbox', padding : 1, children : [ { type : 'hbox', widths : [ '45%', '55%' ], children : [ { type : 'text', label : linkLang.advisoryTitle, 'default' : '', id : 'advTitle', setup : setupAdvParams, commit : commitAdvParams }, { type : 'text', label : linkLang.advisoryContentType, 'default' : '', id : 'advContentType', setup : setupAdvParams, commit : commitAdvParams } ] }, { type : 'hbox', widths : [ '45%', '55%' ], children : [ { type : 'text', label : linkLang.cssClasses, 'default' : '', id : 'advCSSClasses', setup : setupAdvParams, commit : commitAdvParams }, { type : 'text', label : linkLang.charset, 'default' : '', id : 'advCharset', setup : setupAdvParams, commit : commitAdvParams } ] }, { type : 'hbox', widths : [ '45%', '55%' ], children : [ { type : 'text', label : linkLang.rel, 'default' : '', id : 'advRel', setup : setupAdvParams, commit : commitAdvParams }, { type : 'text', label : linkLang.styles, 'default' : '', id : 'advStyles', validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), setup : setupAdvParams, commit : commitAdvParams } ] } ] } ] } ], onShow : function() { var editor = this.getParentEditor(), selection = editor.getSelection(), element = null; // Fill in all the relevant fields if there's already one link selected. if ( ( element = plugin.getSelectedLink( editor ) ) && element.hasAttribute( 'href' ) ) selection.selectElement( element ); else element = null; this.setupContent( parseLink.apply( this, [ editor, element ] ) ); }, onOk : function() { var attributes = {}, removeAttributes = [], data = {}, me = this, editor = this.getParentEditor(); this.commitContent( data ); // Compose the URL. switch ( data.type || 'url' ) { case 'url': var protocol = ( data.url && data.url.protocol != undefined ) ? data.url.protocol : 'http://', url = ( data.url && CKEDITOR.tools.trim( data.url.url ) ) || ''; attributes[ 'data-cke-saved-href' ] = ( url.indexOf( '/' ) === 0 ) ? url : protocol + url; break; case 'anchor': var name = ( data.anchor && data.anchor.name ), id = ( data.anchor && data.anchor.id ); attributes[ 'data-cke-saved-href' ] = '#' + ( name || id || '' ); break; case 'email': var linkHref, email = data.email, address = email.address; switch( emailProtection ) { case '' : case 'encode' : { var subject = encodeURIComponent( email.subject || '' ), body = encodeURIComponent( email.body || '' ); // Build the e-mail parameters first. var argList = []; subject && argList.push( 'subject=' + subject ); body && argList.push( 'body=' + body ); argList = argList.length ? '?' + argList.join( '&' ) : ''; if ( emailProtection == 'encode' ) { linkHref = [ 'javascript:void(location.href=\'mailto:\'+', protectEmailAddressAsEncodedString( address ) ]; // parameters are optional. argList && linkHref.push( '+\'', escapeSingleQuote( argList ), '\'' ); linkHref.push( ')' ); } else linkHref = [ 'mailto:', address, argList ]; break; } default : { // Separating name and domain. var nameAndDomain = address.split( '@', 2 ); email.name = nameAndDomain[ 0 ]; email.domain = nameAndDomain[ 1 ]; linkHref = [ 'javascript:', protectEmailLinkAsFunction( email ) ]; } } attributes[ 'data-cke-saved-href' ] = linkHref.join( '' ); break; } // Popups and target. if ( data.target ) { if ( data.target.type == 'popup' ) { var onclickList = [ 'window.open(this.href, \'', data.target.name || '', '\', \'' ]; var featureList = [ 'resizable', 'status', 'location', 'toolbar', 'menubar', 'fullscreen', 'scrollbars', 'dependent' ]; var featureLength = featureList.length; var addFeature = function( featureName ) { if ( data.target[ featureName ] ) featureList.push( featureName + '=' + data.target[ featureName ] ); }; for ( var i = 0 ; i < featureLength ; i++ ) featureList[i] = featureList[i] + ( data.target[ featureList[i] ] ? '=yes' : '=no' ) ; addFeature( 'width' ); addFeature( 'left' ); addFeature( 'height' ); addFeature( 'top' ); onclickList.push( featureList.join( ',' ), '\'); return false;' ); attributes[ 'data-cke-pa-onclick' ] = onclickList.join( '' ); // Add the "target" attribute. (#5074) removeAttributes.push( 'target' ); } else { if ( data.target.type != 'notSet' && data.target.name ) attributes.target = data.target.name; else removeAttributes.push( 'target' ); removeAttributes.push( 'data-cke-pa-onclick', 'onclick' ); } } // Advanced attributes. if ( data.adv ) { var advAttr = function( inputName, attrName ) { var value = data.adv[ inputName ]; if ( value ) attributes[attrName] = value; else removeAttributes.push( attrName ); }; advAttr( 'advId', 'id' ); advAttr( 'advLangDir', 'dir' ); advAttr( 'advAccessKey', 'accessKey' ); if ( data.adv[ 'advName' ] ) attributes[ 'name' ] = attributes[ 'data-cke-saved-name' ] = data.adv[ 'advName' ]; else removeAttributes = removeAttributes.concat( [ 'data-cke-saved-name', 'name' ] ); advAttr( 'advLangCode', 'lang' ); advAttr( 'advTabIndex', 'tabindex' ); advAttr( 'advTitle', 'title' ); advAttr( 'advContentType', 'type' ); advAttr( 'advCSSClasses', 'class' ); advAttr( 'advCharset', 'charset' ); advAttr( 'advStyles', 'style' ); advAttr( 'advRel', 'rel' ); } var selection = editor.getSelection(); // Browser need the "href" fro copy/paste link to work. (#6641) attributes.href = attributes[ 'data-cke-saved-href' ]; if ( !this._.selectedElement ) { // Create element if current selection is collapsed. var ranges = selection.getRanges( true ); if ( ranges.length == 1 && ranges[0].collapsed ) { // Short mailto link text view (#5736). var text = new CKEDITOR.dom.text( data.type == 'email' ? data.email.address : attributes[ 'data-cke-saved-href' ], editor.document ); ranges[0].insertNode( text ); ranges[0].selectNodeContents( text ); selection.selectRanges( ranges ); } // Apply style. var style = new CKEDITOR.style( { element : 'a', attributes : attributes } ); style.type = CKEDITOR.STYLE_INLINE; // need to override... dunno why. style.apply( editor.document ); } else { // We're only editing an existing link, so just overwrite the attributes. var element = this._.selectedElement, href = element.data( 'cke-saved-href' ), textView = element.getHtml(); element.setAttributes( attributes ); element.removeAttributes( removeAttributes ); if ( data.adv && data.adv.advName && CKEDITOR.plugins.link.synAnchorSelector ) element.addClass( element.getChildCount() ? 'cke_anchor' : 'cke_anchor_empty' ); // Update text view when user changes protocol (#4612). if ( href == textView || data.type == 'email' && textView.indexOf( '@' ) != -1 ) { // Short mailto link text view (#5736). element.setHtml( data.type == 'email' ? data.email.address : attributes[ 'data-cke-saved-href' ] ); } selection.selectElement( element ); delete this._.selectedElement; } }, onLoad : function() { if ( !editor.config.linkShowAdvancedTab ) this.hidePage( 'advanced' ); //Hide Advanded tab. if ( !editor.config.linkShowTargetTab ) this.hidePage( 'target' ); //Hide Target tab. }, // Inital focus on 'url' field if link is of type URL. onFocus : function() { var linkType = this.getContentElement( 'info', 'linkType' ), urlField; if ( linkType && linkType.getValue() == 'url' ) { urlField = this.getContentElement( 'info', 'url' ); urlField.select(); } } }; }); /** * The e-mail address anti-spam protection option. The protection will be * applied when creating or modifying e-mail links through the editor interface.<br> * Two methods of protection can be choosed: * <ol> <li>The e-mail parts (name, domain and any other query string) are * assembled into a function call pattern. Such function must be * provided by the developer in the pages that will use the contents. * <li>Only the e-mail address is obfuscated into a special string that * has no meaning for humans or spam bots, but which is properly * rendered and accepted by the browser.</li></ol> * Both approaches require JavaScript to be enabled. * @name CKEDITOR.config.emailProtection * @since 3.1 * @type String * @default '' (empty string = disabled) * @example * // href="mailto:tester@ckeditor.com?subject=subject&body=body" * config.emailProtection = ''; * @example * // href="<a href=\"javascript:void(location.href=\'mailto:\'+String.fromCharCode(116,101,115,116,101,114,64,99,107,101,100,105,116,111,114,46,99,111,109)+\'?subject=subject&body=body\')\">e-mail</a>" * config.emailProtection = 'encode'; * @example * // href="javascript:mt('tester','ckeditor.com','subject','body')" * config.emailProtection = 'mt(NAME,DOMAIN,SUBJECT,BODY)'; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Increse and decrease indent commands. */ (function() { var listNodeNames = { ol : 1, ul : 1 }, isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true ); function onSelectionChange( evt ) { if ( evt.editor.readOnly ) return null; var editor = evt.editor, elementPath = evt.data.path, list = elementPath && elementPath.contains( listNodeNames ), firstBlock = elementPath.block || elementPath.blockLimit; if ( list ) return this.setState( CKEDITOR.TRISTATE_OFF ); if ( !this.useIndentClasses && this.name == 'indent' ) return this.setState( CKEDITOR.TRISTATE_OFF ); if ( !firstBlock ) return this.setState( CKEDITOR.TRISTATE_DISABLED ); if ( this.useIndentClasses ) { var indentClass = firstBlock.$.className.match( this.classNameRegex ), indentStep = 0; if ( indentClass ) { indentClass = indentClass[1]; indentStep = this.indentClassMap[ indentClass ]; } if ( ( this.name == 'outdent' && !indentStep ) || ( this.name == 'indent' && indentStep == editor.config.indentClasses.length ) ) return this.setState( CKEDITOR.TRISTATE_DISABLED ); return this.setState( CKEDITOR.TRISTATE_OFF ); } else { var indent = parseInt( firstBlock.getStyle( getIndentCssProperty( firstBlock ) ), 10 ); if ( isNaN( indent ) ) indent = 0; if ( indent <= 0 ) return this.setState( CKEDITOR.TRISTATE_DISABLED ); return this.setState( CKEDITOR.TRISTATE_OFF ); } } function indentCommand( editor, name ) { this.name = name; this.useIndentClasses = editor.config.indentClasses && editor.config.indentClasses.length > 0; if ( this.useIndentClasses ) { this.classNameRegex = new RegExp( '(?:^|\\s+)(' + editor.config.indentClasses.join( '|' ) + ')(?=$|\\s)' ); this.indentClassMap = {}; for ( var i = 0 ; i < editor.config.indentClasses.length ; i++ ) this.indentClassMap[ editor.config.indentClasses[i] ] = i + 1; } this.startDisabled = name == 'outdent'; } // Returns the CSS property to be used for identing a given element. function getIndentCssProperty( element, dir ) { return ( dir || element.getComputedStyle( 'direction' ) ) == 'ltr' ? 'margin-left' : 'margin-right'; } function isListItem( node ) { return node.type == CKEDITOR.NODE_ELEMENT && node.is( 'li' ); } indentCommand.prototype = { exec : function( editor ) { var self = this, database = {}; function indentList( listNode ) { // Our starting and ending points of the range might be inside some blocks under a list item... // So before playing with the iterator, we need to expand the block to include the list items. var startContainer = range.startContainer, endContainer = range.endContainer; while ( startContainer && !startContainer.getParent().equals( listNode ) ) startContainer = startContainer.getParent(); while ( endContainer && !endContainer.getParent().equals( listNode ) ) endContainer = endContainer.getParent(); if ( !startContainer || !endContainer ) return; // Now we can iterate over the individual items on the same tree depth. var block = startContainer, itemsToMove = [], stopFlag = false; while ( !stopFlag ) { if ( block.equals( endContainer ) ) stopFlag = true; itemsToMove.push( block ); block = block.getNext(); } if ( itemsToMove.length < 1 ) return; // Do indent or outdent operations on the array model of the list, not the // list's DOM tree itself. The array model demands that it knows as much as // possible about the surrounding lists, we need to feed it the further // ancestor node that is still a list. var listParents = listNode.getParents( true ); for ( var i = 0 ; i < listParents.length ; i++ ) { if ( listParents[i].getName && listNodeNames[ listParents[i].getName() ] ) { listNode = listParents[i]; break; } } var indentOffset = self.name == 'indent' ? 1 : -1, startItem = itemsToMove[0], lastItem = itemsToMove[ itemsToMove.length - 1 ]; // Convert the list DOM tree into a one dimensional array. var listArray = CKEDITOR.plugins.list.listToArray( listNode, database ); // Apply indenting or outdenting on the array. var baseIndent = listArray[ lastItem.getCustomData( 'listarray_index' ) ].indent; for ( i = startItem.getCustomData( 'listarray_index' ); i <= lastItem.getCustomData( 'listarray_index' ); i++ ) { listArray[ i ].indent += indentOffset; // Make sure the newly created sublist get a brand-new element of the same type. (#5372) if ( indentOffset > 0 ) { var listRoot = listArray[ i ].parent; listArray[ i ].parent = new CKEDITOR.dom.element( listRoot.getName(), listRoot.getDocument() ); } } for ( i = lastItem.getCustomData( 'listarray_index' ) + 1 ; i < listArray.length && listArray[i].indent > baseIndent ; i++ ) listArray[i].indent += indentOffset; // Convert the array back to a DOM forest (yes we might have a few subtrees now). // And replace the old list with the new forest. var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode, listNode.getDirection() ); // Avoid nested <li> after outdent even they're visually same, // recording them for later refactoring.(#3982) if ( self.name == 'outdent' ) { var parentLiElement; if ( ( parentLiElement = listNode.getParent() ) && parentLiElement.is( 'li' ) ) { var children = newList.listNode.getChildren(), pendingLis = [], count = children.count(), child; for ( i = count - 1 ; i >= 0 ; i-- ) { if ( ( child = children.getItem( i ) ) && child.is && child.is( 'li' ) ) pendingLis.push( child ); } } } if ( newList ) newList.listNode.replace( listNode ); // Move the nested <li> to be appeared after the parent. if ( pendingLis && pendingLis.length ) { for ( i = 0; i < pendingLis.length ; i++ ) { var li = pendingLis[ i ], followingList = li; // Nest preceding <ul>/<ol> inside current <li> if any. while ( ( followingList = followingList.getNext() ) && followingList.is && followingList.getName() in listNodeNames ) { // IE requires a filler NBSP for nested list inside empty list item, // otherwise the list item will be inaccessiable. (#4476) if ( CKEDITOR.env.ie && !li.getFirst( function( node ){ return isNotWhitespaces( node ) && isNotBookmark( node ); } ) ) li.append( range.document.createText( '\u00a0' ) ); li.append( followingList ); } li.insertAfter( parentLiElement ); } } } function indentBlock() { var iterator = range.createIterator(), enterMode = editor.config.enterMode; iterator.enforceRealBlocks = true; iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR; var block; while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) ) indentElement( block ); } function indentElement( element, dir ) { if ( element.getCustomData( 'indent_processed' ) ) return false; if ( self.useIndentClasses ) { // Transform current class name to indent step index. var indentClass = element.$.className.match( self.classNameRegex ), indentStep = 0; if ( indentClass ) { indentClass = indentClass[1]; indentStep = self.indentClassMap[ indentClass ]; } // Operate on indent step index, transform indent step index back to class // name. if ( self.name == 'outdent' ) indentStep--; else indentStep++; if ( indentStep < 0 ) return false; indentStep = Math.min( indentStep, editor.config.indentClasses.length ); indentStep = Math.max( indentStep, 0 ); element.$.className = CKEDITOR.tools.ltrim( element.$.className.replace( self.classNameRegex, '' ) ); if ( indentStep > 0 ) element.addClass( editor.config.indentClasses[ indentStep - 1 ] ); } else { var indentCssProperty = getIndentCssProperty( element, dir ), currentOffset = parseInt( element.getStyle( indentCssProperty ), 10 ); if ( isNaN( currentOffset ) ) currentOffset = 0; var indentOffset = editor.config.indentOffset || 40; currentOffset += ( self.name == 'indent' ? 1 : -1 ) * indentOffset; if ( currentOffset < 0 ) return false; currentOffset = Math.max( currentOffset, 0 ); currentOffset = Math.ceil( currentOffset / indentOffset ) * indentOffset; element.setStyle( indentCssProperty, currentOffset ? currentOffset + ( editor.config.indentUnit || 'px' ) : '' ); if ( element.getAttribute( 'style' ) === '' ) element.removeAttribute( 'style' ); } CKEDITOR.dom.element.setMarker( database, element, 'indent_processed', 1 ); return true; } var selection = editor.getSelection(), bookmarks = selection.createBookmarks( 1 ), ranges = selection && selection.getRanges( 1 ), range; var iterator = ranges.createIterator(); while ( ( range = iterator.getNextRange() ) ) { var rangeRoot = range.getCommonAncestor(), nearestListBlock = rangeRoot; while ( nearestListBlock && !( nearestListBlock.type == CKEDITOR.NODE_ELEMENT && listNodeNames[ nearestListBlock.getName() ] ) ) nearestListBlock = nearestListBlock.getParent(); // Avoid having selection enclose the entire list. (#6138) // [<ul><li>...</li></ul>] =><ul><li>[...]</li></ul> if ( !nearestListBlock ) { var selectedNode = range.getEnclosedNode(); if ( selectedNode && selectedNode.type == CKEDITOR.NODE_ELEMENT && selectedNode.getName() in listNodeNames) { range.setStartAt( selectedNode, CKEDITOR.POSITION_AFTER_START ); range.setEndAt( selectedNode, CKEDITOR.POSITION_BEFORE_END ); nearestListBlock = selectedNode; } } // Avoid selection anchors under list root. // <ul>[<li>...</li>]</ul> => <ul><li>[...]</li></ul> if ( nearestListBlock && range.startContainer.type == CKEDITOR.NODE_ELEMENT && range.startContainer.getName() in listNodeNames ) { var walker = new CKEDITOR.dom.walker( range ); walker.evaluator = isListItem; range.startContainer = walker.next(); } if ( nearestListBlock && range.endContainer.type == CKEDITOR.NODE_ELEMENT && range.endContainer.getName() in listNodeNames ) { walker = new CKEDITOR.dom.walker( range ); walker.evaluator = isListItem; range.endContainer = walker.previous(); } if ( nearestListBlock ) { var firstListItem = nearestListBlock.getFirst( isListItem ), hasMultipleItems = !!firstListItem.getNext( isListItem ), rangeStart = range.startContainer, indentWholeList = firstListItem.equals( rangeStart ) || firstListItem.contains( rangeStart ); // Indent the entire list if cursor is inside the first list item. (#3893) // Only do that for indenting or when using indent classes or when there is something to outdent. (#6141) if ( !( indentWholeList && ( self.name == 'indent' || self.useIndentClasses || parseInt( nearestListBlock.getStyle( getIndentCssProperty( nearestListBlock ) ), 10 ) ) && indentElement( nearestListBlock, !hasMultipleItems && firstListItem.getDirection() ) ) ) indentList( nearestListBlock ); } else indentBlock(); } // Clean up the markers. CKEDITOR.dom.element.clearAllMarkers( database ); editor.forceNextSelectionCheck(); selection.selectBookmarks( bookmarks ); } }; CKEDITOR.plugins.add( 'indent', { init : function( editor ) { // Register commands. var indent = editor.addCommand( 'indent', new indentCommand( editor, 'indent' ) ), outdent = editor.addCommand( 'outdent', new indentCommand( editor, 'outdent' ) ); // Register the toolbar buttons. editor.ui.addButton( 'Indent', { label : editor.lang.indent, command : 'indent' }); editor.ui.addButton( 'Outdent', { label : editor.lang.outdent, command : 'outdent' }); // Register the state changing handlers. editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, indent ) ); editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, outdent ) ); // [IE6/7] Raw lists are using margin instead of padding for visual indentation in wysiwyg mode. (#3893) if ( CKEDITOR.env.ie6Compat || CKEDITOR.env.ie7Compat ) { editor.addCss( "ul,ol" + "{" + " margin-left: 0px;" + " padding-left: 40px;" + "}" ); } // Register dirChanged listener. editor.on( 'dirChanged', function( e ) { var range = new CKEDITOR.dom.range( editor.document ); range.setStartBefore( e.data.node ); range.setEndAfter( e.data.node ); var walker = new CKEDITOR.dom.walker( range ), node; while ( ( node = walker.next() ) ) { if ( node.type == CKEDITOR.NODE_ELEMENT ) { // A child with the defined dir is to be ignored. if ( !node.equals( e.data.node ) && node.getDirection() ) { range.setStartAfter( node ); walker = new CKEDITOR.dom.walker( range ); continue; } // Switch alignment classes. var classes = editor.config.indentClasses; if ( classes ) { var suffix = ( e.data.dir == 'ltr' ) ? [ '_rtl', '' ] : [ '', '_rtl' ]; for ( var i = 0; i < classes.length; i++ ) { if ( node.hasClass( classes[ i ] + suffix[ 0 ] ) ) { node.removeClass( classes[ i ] + suffix[ 0 ] ); node.addClass( classes[ i ] + suffix[ 1 ] ); } } } // Switch the margins. var marginLeft = node.getStyle( 'margin-right' ), marginRight = node.getStyle( 'margin-left' ); marginLeft ? node.setStyle( 'margin-left', marginLeft ) : node.removeStyle( 'margin-left' ); marginRight ? node.setStyle( 'margin-right', marginRight ) : node.removeStyle( 'margin-right' ); } } }); }, requires : [ 'domiterator', 'list' ] } ); })(); /** * Size of each indentation step * @name CKEDITOR.config.indentOffset * @type Number * @default 40 * @example * config.indentOffset = 4; */ /** * Unit for the indentation style * @name CKEDITOR.config.indentUnit * @type String * @default 'px' * @example * config.indentUnit = 'em'; */ /** * List of classes to use for indenting the contents. If it's null, no classes will be used * and instead the {@link #indentUnit} and {@link #indentOffset} properties will be used. * @name CKEDITOR.config.indentClasses * @type Array * @default null * @example * // Use the classes 'Indent1', 'Indent2', 'Indent3' * config.indentClasses = ['Indent1', 'Indent2', 'Indent3']; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Horizontal Rule plugin. */ (function() { var horizontalruleCmd = { canUndo : false, // The undo snapshot will be handled by 'insertElement'. exec : function( editor ) { var hr = editor.document.createElement( 'hr' ); editor.insertElement( hr ); } }; var pluginName = 'horizontalrule'; // Register a plugin named "horizontalrule". CKEDITOR.plugins.add( pluginName, { init : function( editor ) { editor.addCommand( pluginName, horizontalruleCmd ); editor.ui.addButton( 'HorizontalRule', { label : editor.lang.horizontalrule, command : pluginName }); } }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Print Plugin */ CKEDITOR.plugins.add( 'print', { init : function( editor ) { var pluginName = 'print'; // Register the command. var command = editor.addCommand( pluginName, CKEDITOR.plugins.print ); // Register the toolbar button. editor.ui.addButton( 'Print', { label : editor.lang.print, command : pluginName }); } } ); CKEDITOR.plugins.print = { exec : function( editor ) { if ( CKEDITOR.env.opera ) return; else if ( CKEDITOR.env.gecko ) editor.window.$.print(); else editor.document.$.execCommand( "Print" ); }, canUndo : false, readOnly : 1, modes : { wysiwyg : !( CKEDITOR.env.opera ) } // It is imposible to print the inner document in Opera. };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview The default editing block plugin, which holds the editing area * and source view. */ (function() { // This is a semaphore used to avoid recursive calls between // the following data handling functions. var isHandlingData; CKEDITOR.plugins.add( 'editingblock', { init : function( editor ) { if ( !editor.config.editingBlock ) return; editor.on( 'themeSpace', function( event ) { if ( event.data.space == 'contents' ) event.data.html += '<br>'; }); editor.on( 'themeLoaded', function() { editor.fireOnce( 'editingBlockReady' ); }); editor.on( 'uiReady', function() { editor.setMode( editor.config.startupMode ); }); editor.on( 'afterSetData', function() { if ( !isHandlingData ) { function setData() { isHandlingData = true; editor.getMode().loadData( editor.getData() ); isHandlingData = false; } if ( editor.mode ) setData(); else { editor.on( 'mode', function() { if ( editor.mode ) { setData(); editor.removeListener( 'mode', arguments.callee ); } }); } } }); editor.on( 'beforeGetData', function() { if ( !isHandlingData && editor.mode ) { isHandlingData = true; editor.setData( editor.getMode().getData(), null, 1 ); isHandlingData = false; } }); editor.on( 'getSnapshot', function( event ) { if ( editor.mode ) event.data = editor.getMode().getSnapshotData(); }); editor.on( 'loadSnapshot', function( event ) { if ( editor.mode ) editor.getMode().loadSnapshotData( event.data ); }); // For the first "mode" call, we'll also fire the "instanceReady" // event. editor.on( 'mode', function( event ) { // Do that once only. event.removeListener(); // Redirect the focus into editor for webkit. (#5713) CKEDITOR.env.webkit && editor.container.on( 'focus', function() { editor.focus(); }); if ( editor.config.startupFocus ) editor.focus(); // Fire instanceReady for both the editor and CKEDITOR, but // defer this until the whole execution has completed // to guarantee the editor is fully responsible. setTimeout( function(){ editor.fireOnce( 'instanceReady' ); CKEDITOR.fire( 'instanceReady', null, editor ); }, 0 ); }); editor.on( 'destroy', function () { // -> currentMode.unload( holderElement ); if ( this.mode ) this._.modes[ this.mode ].unload( this.getThemeSpace( 'contents' ) ); }); } }); /** * The current editing mode. An editing mode is basically a viewport for * editing or content viewing. By default the possible values for this * property are "wysiwyg" and "source". * @type String * @example * alert( CKEDITOR.instances.editor1.mode ); // "wysiwyg" (e.g.) */ CKEDITOR.editor.prototype.mode = ''; /** * Registers an editing mode. This function is to be used mainly by plugins. * @param {String} mode The mode name. * @param {Object} modeEditor The mode editor definition. * @example */ CKEDITOR.editor.prototype.addMode = function( mode, modeEditor ) { modeEditor.name = mode; ( this._.modes || ( this._.modes = {} ) )[ mode ] = modeEditor; }; /** * Sets the current editing mode in this editor instance. * @param {String} mode A registered mode name. * @example * // Switch to "source" view. * CKEDITOR.instances.editor1.setMode( 'source' ); */ CKEDITOR.editor.prototype.setMode = function( mode ) { this.fire( 'beforeSetMode', { newMode : mode } ); var data, holderElement = this.getThemeSpace( 'contents' ), isDirty = this.checkDirty(); // Unload the previous mode. if ( this.mode ) { if ( mode == this.mode ) return; this._.previousMode = this.mode; this.fire( 'beforeModeUnload' ); var currentMode = this.getMode(); data = currentMode.getData(); currentMode.unload( holderElement ); this.mode = ''; } holderElement.setHtml( '' ); // Load required mode. var modeEditor = this.getMode( mode ); if ( !modeEditor ) throw '[CKEDITOR.editor.setMode] Unknown mode "' + mode + '".'; if ( !isDirty ) { this.on( 'mode', function() { this.resetDirty(); this.removeListener( 'mode', arguments.callee ); }); } modeEditor.load( holderElement, ( typeof data ) != 'string' ? this.getData() : data ); }; /** * Gets the current or any of the objects that represent the editing * area modes. The two most common editing modes are "wysiwyg" and "source". * @param {String} [mode] The mode to be retrieved. If not specified, the * current one is returned. */ CKEDITOR.editor.prototype.getMode = function( mode ) { return this._.modes && this._.modes[ mode || this.mode ]; }; /** * Moves the selection focus to the editing are space in the editor. */ CKEDITOR.editor.prototype.focus = function() { this.forceNextSelectionCheck(); var mode = this.getMode(); if ( mode ) mode.focus(); }; })(); /** * The mode to load at the editor startup. It depends on the plugins * loaded. By default, the "wysiwyg" and "source" modes are available. * @type String * @default 'wysiwyg' * @example * config.startupMode = 'source'; */ CKEDITOR.config.startupMode = 'wysiwyg'; /** * Sets whether the editor should have the focus when the page loads. * @name CKEDITOR.config.startupFocus * @type Boolean * @default false * @example * config.startupFocus = true; */ /** * Whether to render or not the editing block area in the editor interface. * @type Boolean * @default true * @example * config.editingBlock = false; */ CKEDITOR.config.editingBlock = true; /** * Fired when a CKEDITOR instance is created, fully initialized and ready for interaction. * @name CKEDITOR#instanceReady * @event * @param {CKEDITOR.editor} editor The editor instance that has been created. */ /** * Fired when the CKEDITOR instance is created, fully initialized and ready for interaction. * @name CKEDITOR.editor#instanceReady * @event */ /** * Fired before changing the editing mode. See also CKEDITOR.editor#beforeSetMode and CKEDITOR.editor#mode * @name CKEDITOR.editor#beforeModeUnload * @event */ /** * Fired before the editor mode is set. See also CKEDITOR.editor#mode and CKEDITOR.editor#beforeModeUnload * @name CKEDITOR.editor#beforeSetMode * @event * @since 3.5.3 * @param {String} newMode The name of the mode which is about to be set. */ /** * Fired after setting the editing mode. See also CKEDITOR.editor#beforeSetMode and CKEDITOR.editor#beforeModeUnload * @name CKEDITOR.editor#mode * @event * @param {String} previousMode The previous mode of the editor. */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'menu', { beforeInit : function( editor ) { var groups = editor.config.menu_groups.split( ',' ), groupsOrder = editor._.menuGroups = {}, menuItems = editor._.menuItems = {}; for ( var i = 0 ; i < groups.length ; i++ ) groupsOrder[ groups[ i ] ] = i + 1; /** * Registers an item group to the editor context menu in order to make it * possible to associate it with menu items later. * @name CKEDITOR.editor.prototype.addMenuGroup * @param {String} name Specify a group name. * @param {Number} [order=100] Define the display sequence of this group * inside the menu. A smaller value gets displayed first. */ editor.addMenuGroup = function( name, order ) { groupsOrder[ name ] = order || 100; }; /** * Adds an item from the specified definition to the editor context menu. * @name CKEDITOR.editor.prototype.addMenuItem * @param {String} name The menu item name. * @param {CKEDITOR.menu.definition} definition The menu item definition. */ editor.addMenuItem = function( name, definition ) { if ( groupsOrder[ definition.group ] ) menuItems[ name ] = new CKEDITOR.menuItem( this, name, definition ); }; /** * Adds one or more items from the specified definition array to the editor context menu. * @name CKEDITOR.editor.prototype.addMenuItems * @param {Array} definitions List of definitions for each menu item as if {@link CKEDITOR.editor.addMenuItem} is called. */ editor.addMenuItems = function( definitions ) { for ( var itemName in definitions ) { this.addMenuItem( itemName, definitions[ itemName ] ); } }; /** * Retrieves a particular menu item definition from the editor context menu. * @name CKEDITOR.editor.prototype.getMenuItem * @param {String} name The name of the desired menu item. * @return {CKEDITOR.menu.definition} */ editor.getMenuItem = function( name ) { return menuItems[ name ]; }; /** * Removes a particular menu item added before from the editor context menu. * @name CKEDITOR.editor.prototype.removeMenuItem * @param {String} name The name of the desired menu item. * @since 3.6.1 */ editor.removeMenuItem = function( name ) { delete menuItems[ name ]; }; }, requires : [ 'floatpanel' ] }); (function() { CKEDITOR.menu = CKEDITOR.tools.createClass( { $ : function( editor, definition ) { definition = this._.definition = definition || {}; this.id = CKEDITOR.tools.getNextId(); this.editor = editor; this.items = []; this._.listeners = []; this._.level = definition.level || 1; var panelDefinition = CKEDITOR.tools.extend( {}, definition.panel, { css : editor.skin.editor.css, level : this._.level - 1, block : {} } ); var attrs = panelDefinition.block.attributes = ( panelDefinition.attributes || {} ); // Provide default role of 'menu'. !attrs.role && ( attrs.role = 'menu' ); this._.panelDefinition = panelDefinition; }, _ : { onShow : function() { var selection = this.editor.getSelection(); // Selection will be unavailable after menu shows up // in IE, lock it now. if ( CKEDITOR.env.ie ) selection && selection.lock(); var element = selection && selection.getStartElement(), listeners = this._.listeners, includedItems = []; this.removeAll(); // Call all listeners, filling the list of items to be displayed. for ( var i = 0 ; i < listeners.length ; i++ ) { var listenerItems = listeners[ i ]( element, selection ); if ( listenerItems ) { for ( var itemName in listenerItems ) { var item = this.editor.getMenuItem( itemName ); if ( item && ( !item.command || this.editor.getCommand( item.command ).state ) ) { item.state = listenerItems[ itemName ]; this.add( item ); } } } } }, onClick : function( item ) { this.hide( false ); if ( item.onClick ) item.onClick(); else if ( item.command ) this.editor.execCommand( item.command ); }, onEscape : function( keystroke ) { var parent = this.parent; // 1. If it's sub-menu, restore the last focused item // of upper level menu. // 2. In case of a top-menu, close it. if ( parent ) { parent._.panel.hideChild(); // Restore parent block item focus. var parentBlock = parent._.panel._.panel._.currentBlock, parentFocusIndex = parentBlock._.focusIndex; parentBlock._.markItem( parentFocusIndex ); } else if ( keystroke == 27 ) this.hide(); return false; }, onHide : function() { // Unlock the selection upon first panel closing. if ( CKEDITOR.env.ie && !this.parent ) { var selection = this.editor.getSelection(); selection && selection.unlock( true ); } this.onHide && this.onHide(); }, showSubMenu : function( index ) { var menu = this._.subMenu, item = this.items[ index ], subItemDefs = item.getItems && item.getItems(); // If this item has no subitems, we just hide the submenu, if // available, and return back. if ( !subItemDefs ) { this._.panel.hideChild(); return; } // Record parent menu focused item first (#3389). var block = this._.panel.getBlock( this.id ); block._.focusIndex = index; // Create the submenu, if not available, or clean the existing // one. if ( menu ) menu.removeAll(); else { menu = this._.subMenu = new CKEDITOR.menu( this.editor, CKEDITOR.tools.extend( {}, this._.definition, { level : this._.level + 1 }, true ) ); menu.parent = this; menu._.onClick = CKEDITOR.tools.bind( this._.onClick, this ); } // Add all submenu items to the menu. for ( var subItemName in subItemDefs ) { var subItem = this.editor.getMenuItem( subItemName ); if ( subItem ) { subItem.state = subItemDefs[ subItemName ]; menu.add( subItem ); } } // Get the element representing the current item. var element = this._.panel.getBlock( this.id ).element.getDocument().getById( this.id + String( index ) ); // Show the submenu. menu.show( element, 2 ); } }, proto : { add : function( item ) { // Later we may sort the items, but Array#sort is not stable in // some browsers, here we're forcing the original sequence with // 'order' attribute if it hasn't been assigned. (#3868) if ( !item.order ) item.order = this.items.length; this.items.push( item ); }, removeAll : function() { this.items = []; }, show : function( offsetParent, corner, offsetX, offsetY ) { // Not for sub menu. if ( !this.parent ) { this._.onShow(); // Don't menu with zero items. if ( ! this.items.length ) return; } corner = corner || ( this.editor.lang.dir == 'rtl' ? 2 : 1 ); var items = this.items, editor = this.editor, panel = this._.panel, element = this._.element; // Create the floating panel for this menu. if ( !panel ) { panel = this._.panel = new CKEDITOR.ui.floatPanel( this.editor, CKEDITOR.document.getBody(), this._.panelDefinition, this._.level ); panel.onEscape = CKEDITOR.tools.bind( function( keystroke ) { if ( this._.onEscape( keystroke ) === false ) return false; }, this ); panel.onHide = CKEDITOR.tools.bind( function() { this._.onHide && this._.onHide(); }, this ); // Create an autosize block inside the panel. var block = panel.addBlock( this.id, this._.panelDefinition.block ); block.autoSize = true; var keys = block.keys; keys[ 40 ] = 'next'; // ARROW-DOWN keys[ 9 ] = 'next'; // TAB keys[ 38 ] = 'prev'; // ARROW-UP keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB keys[ ( editor.lang.dir == 'rtl' ? 37 : 39 ) ]= CKEDITOR.env.ie ? 'mouseup' : 'click'; // ARROW-RIGHT/ARROW-LEFT(rtl) keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (#8041). element = this._.element = block.element; element.addClass( editor.skinClass ); var elementDoc = element.getDocument(); elementDoc.getBody().setStyle( 'overflow', 'hidden' ); elementDoc.getElementsByTag( 'html' ).getItem( 0 ).setStyle( 'overflow', 'hidden' ); this._.itemOverFn = CKEDITOR.tools.addFunction( function( index ) { clearTimeout( this._.showSubTimeout ); this._.showSubTimeout = CKEDITOR.tools.setTimeout( this._.showSubMenu, editor.config.menu_subMenuDelay || 400, this, [ index ] ); }, this ); this._.itemOutFn = CKEDITOR.tools.addFunction( function( index ) { clearTimeout( this._.showSubTimeout ); }, this ); this._.itemClickFn = CKEDITOR.tools.addFunction( function( index ) { var item = this.items[ index ]; if ( item.state == CKEDITOR.TRISTATE_DISABLED ) { this.hide(); return; } if ( item.getItems ) this._.showSubMenu( index ); else this._.onClick( item ); }, this ); } // Put the items in the right order. sortItems( items ); var chromeRoot = editor.container.getChild( 1 ), mixedContentClass = chromeRoot.hasClass( 'cke_mixed_dir_content' ) ? ' cke_mixed_dir_content' : ''; // Build the HTML that composes the menu and its items. var output = [ '<div class="cke_menu' + mixedContentClass + '" role="presentation">' ]; var length = items.length, lastGroup = length && items[ 0 ].group; for ( var i = 0 ; i < length ; i++ ) { var item = items[ i ]; if ( lastGroup != item.group ) { output.push( '<div class="cke_menuseparator" role="separator"></div>' ); lastGroup = item.group; } item.render( this, i, output ); } output.push( '</div>' ); // Inject the HTML inside the panel. element.setHtml( output.join( '' ) ); CKEDITOR.ui.fire( 'ready', this ); // Show the panel. if ( this.parent ) this.parent._.panel.showAsChild( panel, this.id, offsetParent, corner, offsetX, offsetY ); else panel.showBlock( this.id, offsetParent, corner, offsetX, offsetY ); editor.fire( 'menuShow', [ panel ] ); }, addListener : function( listenerFn ) { this._.listeners.push( listenerFn ); }, hide : function( returnFocus ) { this._.onHide && this._.onHide(); this._.panel && this._.panel.hide( returnFocus ); } } }); function sortItems( items ) { items.sort( function( itemA, itemB ) { if ( itemA.group < itemB.group ) return -1; else if ( itemA.group > itemB.group ) return 1; return itemA.order < itemB.order ? -1 : itemA.order > itemB.order ? 1 : 0; }); } CKEDITOR.menuItem = CKEDITOR.tools.createClass( { $ : function( editor, name, definition ) { CKEDITOR.tools.extend( this, definition, // Defaults { order : 0, className : 'cke_button_' + name }); // Transform the group name into its order number. this.group = editor._.menuGroups[ this.group ]; this.editor = editor; this.name = name; }, proto : { render : function( menu, index, output ) { var id = menu.id + String( index ), state = ( typeof this.state == 'undefined' ) ? CKEDITOR.TRISTATE_OFF : this.state; var classes = ' cke_' + ( state == CKEDITOR.TRISTATE_ON ? 'on' : state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' : 'off' ); var htmlLabel = this.label; if ( this.className ) classes += ' ' + this.className; var hasSubMenu = this.getItems; output.push( '<span class="cke_menuitem' + ( this.icon && this.icon.indexOf( '.png' ) == -1 ? ' cke_noalphafix' : '' ) + '">' + '<a id="', id, '"' + ' class="', classes, '" href="javascript:void(\'', ( this.label || '' ).replace( "'", '' ), '\')"' + ' title="', this.label, '"' + ' tabindex="-1"' + '_cke_focus=1' + ' hidefocus="true"' + ' role="menuitem"' + ( hasSubMenu ? 'aria-haspopup="true"' : '' ) + ( state == CKEDITOR.TRISTATE_DISABLED ? 'aria-disabled="true"' : '' ) + ( state == CKEDITOR.TRISTATE_ON ? 'aria-pressed="true"' : '' ) ); // Some browsers don't cancel key events in the keydown but in the // keypress. // TODO: Check if really needed for Gecko+Mac. if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) ) { output.push( ' onkeypress="return false;"' ); } // With Firefox, we need to force the button to redraw, otherwise it // will remain in the focus state. if ( CKEDITOR.env.gecko ) { output.push( ' onblur="this.style.cssText = this.style.cssText;"' ); } var offset = ( this.iconOffset || 0 ) * -16; output.push( // ' onkeydown="return CKEDITOR.ui.button._.keydown(', index, ', event);"' + ' onmouseover="CKEDITOR.tools.callFunction(', menu._.itemOverFn, ',', index, ');"' + ' onmouseout="CKEDITOR.tools.callFunction(', menu._.itemOutFn, ',', index, ');" ' + ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 '="CKEDITOR.tools.callFunction(', menu._.itemClickFn, ',', index, '); return false;"' + '>' + '<span class="cke_icon_wrapper"><span class="cke_icon"' + ( this.icon ? ' style="background-image:url(' + CKEDITOR.getUrl( this.icon ) + ');background-position:0 ' + offset + 'px;"' : '' ) + '></span></span>' + '<span class="cke_label">' ); if ( hasSubMenu ) { output.push( '<span class="cke_menuarrow">', '<span>&#', ( this.editor.lang.dir == 'rtl' ? '9668' : // BLACK LEFT-POINTING POINTER '9658' ), // BLACK RIGHT-POINTING POINTER ';</span>', '</span>' ); } output.push( htmlLabel, '</span>' + '</a>' + '</span>' ); } } }); })(); /** * The amount of time, in milliseconds, the editor waits before displaying submenu * options when moving the mouse over options that contain submenus, like the * "Cell Properties" entry for tables. * @type Number * @default 400 * @example * // Remove the submenu delay. * config.menu_subMenuDelay = 0; */ /** * A comma separated list of items group names to be displayed in the context * menu. The order of items will reflect the order specified in this list if * no priority was defined in the groups. * @type String * @default 'clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea' * @example * config.menu_groups = 'clipboard,table,anchor,link,image'; */ CKEDITOR.config.menu_groups = 'clipboard,' + 'form,' + 'tablecell,tablecellproperties,tablerow,tablecolumn,table,'+ 'anchor,link,image,flash,' + 'checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div';
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Horizontal Page Break */ // Register a plugin named "newpage". CKEDITOR.plugins.add( 'newpage', { init : function( editor ) { editor.addCommand( 'newpage', { modes : { wysiwyg:1, source:1 }, exec : function( editor ) { var command = this; editor.setData( editor.config.newpage_html || '', function() { // Save the undo snapshot after all document changes are affected. (#4889) setTimeout( function () { editor.fire( 'afterCommandExec', { name: 'newpage', command: command } ); editor.selectionChange(); }, 200 ); } ); editor.focus(); }, async : true }); editor.ui.addButton( 'NewPage', { label : editor.lang.newPage, command : 'newpage' }); } }); /** * The HTML to load in the editor when the "new page" command is executed. * @name CKEDITOR.config.newpage_html * @type String * @default '' * @example * config.newpage_html = '&lt;p&gt;Type your text here.&lt;/p&gt;'; */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'htmlwriter' ); /** * Class used to write HTML data. * @constructor * @example * var writer = new CKEDITOR.htmlWriter(); * writer.openTag( 'p' ); * writer.attribute( 'class', 'MyClass' ); * writer.openTagClose( 'p' ); * writer.text( 'Hello' ); * writer.closeTag( 'p' ); * alert( writer.getHtml() ); "&lt;p class="MyClass"&gt;Hello&lt;/p&gt;" */ CKEDITOR.htmlWriter = CKEDITOR.tools.createClass( { base : CKEDITOR.htmlParser.basicWriter, $ : function() { // Call the base contructor. this.base(); /** * The characters to be used for each identation step. * @type String * @default "\t" (tab) * @example * // Use two spaces for indentation. * editorInstance.dataProcessor.writer.indentationChars = ' '; */ this.indentationChars = '\t'; /** * The characters to be used to close "self-closing" elements, like "br" or * "img". * @type String * @default " /&gt;" * @example * // Use HTML4 notation for self-closing elements. * editorInstance.dataProcessor.writer.selfClosingEnd = '>'; */ this.selfClosingEnd = ' />'; /** * The characters to be used for line breaks. * @type String * @default "\n" (LF) * @example * // Use CRLF for line breaks. * editorInstance.dataProcessor.writer.lineBreakChars = '\r\n'; */ this.lineBreakChars = '\n'; this.forceSimpleAmpersand = 0; this.sortAttributes = 1; this._.indent = 0; this._.indentation = ''; // Indicate preformatted block context status. (#5789) this._.inPre = 0; this._.rules = {}; var dtd = CKEDITOR.dtd; for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) { this.setRules( e, { indent : 1, breakBeforeOpen : 1, breakAfterOpen : 1, breakBeforeClose : !dtd[ e ][ '#' ], breakAfterClose : 1 }); } this.setRules( 'br', { breakAfterOpen : 1 }); this.setRules( 'title', { indent : 0, breakAfterOpen : 0 }); this.setRules( 'style', { indent : 0, breakBeforeClose : 1 }); // Disable indentation on <pre>. this.setRules( 'pre', { indent : 0 }); }, proto : { /** * Writes the tag opening part for a opener tag. * @param {String} tagName The element name for this tag. * @param {Object} attributes The attributes defined for this tag. The * attributes could be used to inspect the tag. * @example * // Writes "&lt;p". * writer.openTag( 'p', { class : 'MyClass', id : 'MyId' } ); */ openTag : function( tagName, attributes ) { var rules = this._.rules[ tagName ]; if ( this._.indent ) this.indentation(); // Do not break if indenting. else if ( rules && rules.breakBeforeOpen ) { this.lineBreak(); this.indentation(); } this._.output.push( '<', tagName ); }, /** * Writes the tag closing part for a opener tag. * @param {String} tagName The element name for this tag. * @param {Boolean} isSelfClose Indicates that this is a self-closing tag, * like "br" or "img". * @example * // Writes "&gt;". * writer.openTagClose( 'p', false ); * @example * // Writes " /&gt;". * writer.openTagClose( 'br', true ); */ openTagClose : function( tagName, isSelfClose ) { var rules = this._.rules[ tagName ]; if ( isSelfClose ) this._.output.push( this.selfClosingEnd ); else { this._.output.push( '>' ); if ( rules && rules.indent ) this._.indentation += this.indentationChars; } if ( rules && rules.breakAfterOpen ) this.lineBreak(); tagName == 'pre' && ( this._.inPre = 1 ); }, /** * Writes an attribute. This function should be called after opening the * tag with {@link #openTagClose}. * @param {String} attName The attribute name. * @param {String} attValue The attribute value. * @example * // Writes ' class="MyClass"'. * writer.attribute( 'class', 'MyClass' ); */ attribute : function( attName, attValue ) { if ( typeof attValue == 'string' ) { this.forceSimpleAmpersand && ( attValue = attValue.replace( /&amp;/g, '&' ) ); // Browsers don't always escape special character in attribute values. (#4683, #4719). attValue = CKEDITOR.tools.htmlEncodeAttr( attValue ); } this._.output.push( ' ', attName, '="', attValue, '"' ); }, /** * Writes a closer tag. * @param {String} tagName The element name for this tag. * @example * // Writes "&lt;/p&gt;". * writer.closeTag( 'p' ); */ closeTag : function( tagName ) { var rules = this._.rules[ tagName ]; if ( rules && rules.indent ) this._.indentation = this._.indentation.substr( this.indentationChars.length ); if ( this._.indent ) this.indentation(); // Do not break if indenting. else if ( rules && rules.breakBeforeClose ) { this.lineBreak(); this.indentation(); } this._.output.push( '</', tagName, '>' ); tagName == 'pre' && ( this._.inPre = 0 ); if ( rules && rules.breakAfterClose ) this.lineBreak(); }, /** * Writes text. * @param {String} text The text value * @example * // Writes "Hello Word". * writer.text( 'Hello Word' ); */ text : function( text ) { if ( this._.indent ) { this.indentation(); !this._.inPre && ( text = CKEDITOR.tools.ltrim( text ) ); } this._.output.push( text ); }, /** * Writes a comment. * @param {String} comment The comment text. * @example * // Writes "&lt;!-- My comment --&gt;". * writer.comment( ' My comment ' ); */ comment : function( comment ) { if ( this._.indent ) this.indentation(); this._.output.push( '<!--', comment, '-->' ); }, /** * Writes a line break. It uses the {@link #lineBreakChars} property for it. * @example * // Writes "\n" (e.g.). * writer.lineBreak(); */ lineBreak : function() { if ( !this._.inPre && this._.output.length > 0 ) this._.output.push( this.lineBreakChars ); this._.indent = 1; }, /** * Writes the current indentation chars. It uses the * {@link #indentationChars} property, repeating it for the current * indentation steps. * @example * // Writes "\t" (e.g.). * writer.indentation(); */ indentation : function() { if( !this._.inPre ) this._.output.push( this._.indentation ); this._.indent = 0; }, /** * Sets formatting rules for a give element. The possible rules are: * <ul> * <li><b>indent</b>: indent the element contents.</li> * <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. * * By default, all elements available in the {@link CKEDITOR.dtd.$block), * {@link CKEDITOR.dtd.$listItem} and {@link CKEDITOR.dtd.$tableContent} * lists have all the above rules set to "true". Additionaly, the "br" * element has the "breakAfterOpen" set to "true". * @param {String} tagName The element 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( 'img', * { * breakBeforeOpen : true * breakAfterOpen : true * }); * @example * // Reset the rules for the "h1" tag. * writer.setRules( 'h1', {} ); */ setRules : function( tagName, rules ) { var currentRules = this._.rules[ tagName ]; if ( currentRules ) CKEDITOR.tools.extend( currentRules, rules, true ); else this._.rules[ tagName ] = rules; } } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Preview plugin. */ (function() { var pluginPath; var previewCmd = { modes : { wysiwyg:1, source:1 }, canUndo : false, readOnly : 1, exec : function( editor ) { var sHTML, config = editor.config, baseTag = config.baseHref ? '<base href="' + config.baseHref + '"/>' : '', isCustomDomain = CKEDITOR.env.isCustomDomain(); if ( config.fullPage ) { sHTML = editor.getData() .replace( /<head>/, '$&' + baseTag ) .replace( /[^>]*(?=<\/title>)/, '$& &mdash; ' + editor.lang.preview ); } else { var bodyHtml = '<body ', body = editor.document && editor.document.getBody(); if ( body ) { if ( body.getAttribute( 'id' ) ) bodyHtml += 'id="' + body.getAttribute( 'id' ) + '" '; if ( body.getAttribute( 'class' ) ) bodyHtml += 'class="' + body.getAttribute( 'class' ) + '" '; } bodyHtml += '>'; sHTML = editor.config.docType + '<html dir="' + editor.config.contentsLangDirection + '">' + '<head>' + baseTag + '<title>' + editor.lang.preview + '</title>' + CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) + '</head>' + bodyHtml + editor.getData() + '</body></html>'; } var iWidth = 640, // 800 * 0.8, iHeight = 420, // 600 * 0.7, iLeft = 80; // (800 - 0.8 * 800) /2 = 800 * 0.1. try { var screen = window.screen; iWidth = Math.round( screen.width * 0.8 ); iHeight = Math.round( screen.height * 0.7 ); iLeft = Math.round( screen.width * 0.1 ); } catch ( e ){} var sOpenUrl = ''; if ( isCustomDomain ) { window._cke_htmlToLoad = sHTML; sOpenUrl = 'javascript:void( (function(){' + 'document.open();' + 'document.domain="' + document.domain + '";' + 'document.write( window.opener._cke_htmlToLoad );' + 'document.close();' + 'window.opener._cke_htmlToLoad = null;' + '})() )'; } // With Firefox only, we need to open a special preview page, so // anchors will work properly on it. (#9047) if ( CKEDITOR.env.gecko ) { window._cke_htmlToLoad = sHTML; sOpenUrl = pluginPath + 'preview.html'; } var oWindow = window.open( sOpenUrl, null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + iWidth + ',height=' + iHeight + ',left=' + iLeft ); if ( !isCustomDomain && !CKEDITOR.env.gecko ) { var doc = oWindow.document; doc.open(); doc.write( sHTML ); doc.close(); // Chrome will need this to show the embedded. (#8016) CKEDITOR.env.webkit && setTimeout( function() { doc.body.innerHTML += ''; }, 0 ); } } }; var pluginName = 'preview'; // Register a plugin named "preview". CKEDITOR.plugins.add( pluginName, { init : function( editor ) { pluginPath = this.path; editor.addCommand( pluginName, previewCmd ); editor.ui.addButton( 'Preview', { label : editor.lang.preview, command : pluginName }); } }); })();
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'uicolor', { requires : [ 'dialog' ], lang : [ 'bg', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'it', 'ku', 'mk', 'nb', 'nl', 'no', 'pl', 'pt-br', 'sk', 'tr', 'ug', 'uk', 'vi', 'zh-cn' ], init : function( editor ) { if ( CKEDITOR.env.ie6Compat ) return; editor.addCommand( 'uicolor', new CKEDITOR.dialogCommand( 'uicolor' ) ); editor.ui.addButton( 'UIColor', { label : editor.lang.uicolor.title, command : 'uicolor', icon : this.path + 'uicolor.gif' }); CKEDITOR.dialog.add( 'uicolor', this.path + 'dialogs/uicolor.js' ); // Load YUI js files. CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( '_source/' + // @Packager.RemoveLine 'plugins/uicolor/yui/yui.js' )); // Load YUI css files. editor.element.getDocument().appendStyleSheet( CKEDITOR.getUrl( '_source/' + // @Packager.RemoveLine 'plugins/uicolor/yui/assets/yui.css' )); } } );
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', 'cy', { uicolor : { title : 'Dewisydd Lliwiau\'r UI', preview : 'Rhagolwg Byw', config : 'Gludwch y llinyn hwn i\'ch ffeil config.js', predefined : 'Setiau lliw wedi\'u cyn-ddiffinio' } });
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', 'tr', { uicolor : { title : 'UI Renk Seçicisi', preview : 'Canlı önizleme', config : 'Bu dizeyi config.js dosyasının içine yapıştırın', predefined : 'Önceden tanımlanmış renk kümeleri' } });
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', 'nb', { uicolor : { title : 'Fargevelger for brukergrensesnitt', preview : 'Forhåndsvisning i sanntid', config : 'Lim inn følgende tekst i din config.js-fil', predefined : 'Forhåndsdefinerte fargesett' } });
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', 'fr', { uicolor : { title : 'UI Sélecteur de couleur', preview : 'Aperçu', config : 'Collez cette chaîne de caractères dans votre fichier config.js', predefined : 'Palettes de couleurs prédéfinies' } });
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', 'fa', { uicolor : { title : 'انتخاب رنگ UI', 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', 'eo', { uicolor : { title : 'UI Kolorselektilo', preview : 'Vidigi la aspekton', config : 'Gluu tiun signoĉenon en vian dosieron config.js', predefined : 'Antaŭdifinita koloraro' } });
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', 'uk', { uicolor : { title : 'Color Picker Інтерфейс', 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', 'he', { 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', 'de', { uicolor : { title : 'UI Pipette', preview : 'Live-Vorschau', config : 'Fügen Sie diese Zeichenfolge in die \'config.js\' Datei.', predefined : 'Vordefinierte Farbsätze' } });
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', 'ku', { uicolor : { title : 'هه‌ڵگری ڕه‌نگ بۆ ڕووکاری به‌کارهێنه‌ر', preview : 'پێشبینین به‌ زیندوویی', config : 'ئه‌م ده‌قانه‌ بلکێنه‌ به‌ په‌ڕگه‌ی config.js-fil', 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', 'no', { uicolor : { title : 'Fargevelger for brukergrensesnitt', preview : 'Forhåndsvisning i sanntid', config : 'Lim inn følgende tekst i din config.js-fil', predefined : 'Forhåndsdefinerte fargesett' } });
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', 'el', { 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', 'vi', { uicolor : { title : 'Giao diện người dùng Color Picker', preview : 'Xem trước trực tiếp', config : 'Dán chuỗi này vào tập tin config.js của bạn', predefined : 'Tập màu định nghĩa sẵn' } });
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', 'mk', { 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', 'it', { uicolor : { title : 'Selettore Colore UI', preview : 'Anteprima Live', config : 'Incolla questa stringa nel tuo file config.js', predefined : 'Set di colori predefiniti' } });
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', 'sk', { uicolor : { title : 'UI výber farby', preview : 'Živý náhľad', config : 'Vložte tento reťazec do vášho config.js súboru', predefined : 'Preddefinované sady farieb' } });
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', 'nl', { uicolor : { title : 'UI Kleurenkiezer', preview : 'Live voorbeeld', config : 'Plak deze tekst in jouw config.js bestand', predefined : 'Voorgedefinieerde kleurensets' } });
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', 'da', { uicolor : { title : 'Brugerflade på farvevælger', preview : 'Vis liveeksempel', config : 'Indsæt denne streng i din config.js fil', predefined : 'Prædefinerede farveskemaer' } });
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', 'et', { uicolor : { title : 'Värvivalija kasutajaliides', preview : 'Automaatne eelvaade', config : 'Aseta see sõne oma config.js faili.', predefined : 'Eelmääratud värvikomplektid' } });
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', 'pt-br', { uicolor : { title : 'Paleta de Cores', preview : 'Visualização ao vivo', config : 'Cole o texto no seu arquivo config.js', predefined : 'Conjuntos de cores predefinidos' } });
JavaScript