diff --git a/build/exe/doliwamp/doliwamp.iss b/build/exe/doliwamp/doliwamp.iss index e2940f68c871e02046362ad070f0c6e3cdc398a1..9bd1afd34e9a8c5386fc6b0bc30c50a6bcc60474 100644 --- a/build/exe/doliwamp/doliwamp.iss +++ b/build/exe/doliwamp/doliwamp.iss @@ -108,13 +108,13 @@ Source: "C:\Program Files\Wamp\bin\apache\apache2.2.11\*.*"; DestDir: "{app}\bin Source: "C:\Program Files\Wamp\bin\php\php5.3.0\*.*"; DestDir: "{app}\bin\php\php5.3.0"; Flags: ignoreversion recursesubdirs; Excludes: "php.ini,phpForApache.ini,wampserver.conf,*.log,*_log" Source: "C:\Program Files\Wamp\bin\mysql\mysql5.0.45\*.*"; DestDir: "{app}\bin\mysql\mysql5.0.45"; Flags: ignoreversion recursesubdirs; Excludes: "my.ini,data\*,wampserver.conf,*.log,*_log,MySQLInstanceConfig.exe" ; Mysql data files (does not overwrite if exists) -Source: "build\exe\doliwamp\mysql\*.*"; DestDir: "{app}\bin\mysql\data\mysql"; Flags: onlyifdoesntexist ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db" +Source: "build\exe\doliwamp\mysql\*.*"; DestDir: "{app}\bin\mysql\data\mysql"; Flags: onlyifdoesntexist ignoreversion recursesubdirs; Excludes: ".gitignore,.project,CVS\*,Thumbs.db" ; Dolibarr -Source: "htdocs\*.*"; DestDir: "{app}\www\dolibarr\htdocs"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,custom\*,custom2\*,documents\*,includes\savant\*,includes\phpmailer\*,jquery\plugins\template\*,PHPExcel\Shared\PDF\*,PHPExcel\Shared\PCLZip\*,tcpdf\fonts\dejavu-fonts-ttf-2.33\*,tcpdf\fonts\freefont-20100919\*,tcpdf\fonts\utils\*,*\conf.php,*\conf.php.mysql,*\conf.php.old,*\conf.php.postgres,*\conf.php.sav,*\install.forced.php" -Source: "dev\*.*"; DestDir: "{app}\www\dolibarr\dev"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,dbmodel\*,fpdf\*,initdata\*,iso-normes\*,licence\*,phpcheckstyle\*,phpunit\*,samples\*,test\*,uml\*,xdebug\*" -Source: "doc\*.*"; DestDir: "{app}\www\dolibarr\doc"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,wiki\*,plaquette\*,dev\*,images\dolibarr_screenshot2.png,images\dolibarr_screenshot3.png,images\dolibarr_screenshot4.png,images\dolibarr_screenshot5.png,images\dolibarr_screenshot6.png,images\dolibarr_screenshot7.png,images\dolibarr_screenshot8.png,images\dolibarr_screenshot9.png,images\dolibarr_screenshot10.png,images\dolibarr_screenshot11.png,images\dolibarr_screenshot12.png" -Source: "scripts\*.*"; DestDir: "{app}\www\dolibarr\scripts"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,product\materiel.net.php,product\import-product.php" -Source: "*.*"; DestDir: "{app}\www\dolibarr"; Flags: ignoreversion; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,default.properties,install.lock" +Source: "htdocs\*.*"; DestDir: "{app}\www\dolibarr\htdocs"; Flags: ignoreversion recursesubdirs; Excludes: ".gitignore,.project,CVS\*,Thumbs.db,custom\*,custom2\*,documents\*,includes\ckeditor\_source\*,includes\savant\*,includes\phpmailer\*,jquery\plugins\template\*,PHPExcel\Shared\PDF\*,PHPExcel\Shared\PCLZip\*,tcpdf\fonts\dejavu-fonts-ttf-2.33\*,tcpdf\fonts\freefont-20100919\*,tcpdf\fonts\utils\*,*\conf.php,*\conf.php.mysql,*\conf.php.old,*\conf.php.postgres,*\conf.php.sav,*\install.forced.php" +Source: "dev\*.*"; DestDir: "{app}\www\dolibarr\dev"; Flags: ignoreversion recursesubdirs; Excludes: ".gitignore,.project,CVS\*,Thumbs.db,dbmodel\*,fpdf\*,initdata\*,iso-normes\*,licence\*,phpcheckstyle\*,phpunit\*,samples\*,test\*,uml\*,xdebug\*" +Source: "doc\*.*"; DestDir: "{app}\www\dolibarr\doc"; Flags: ignoreversion recursesubdirs; Excludes: ".gitignore,.project,CVS\*,Thumbs.db,wiki\*,plaquette\*,dev\*,images\dolibarr_screenshot2.png,images\dolibarr_screenshot3.png,images\dolibarr_screenshot4.png,images\dolibarr_screenshot5.png,images\dolibarr_screenshot6.png,images\dolibarr_screenshot7.png,images\dolibarr_screenshot8.png,images\dolibarr_screenshot9.png,images\dolibarr_screenshot10.png,images\dolibarr_screenshot11.png,images\dolibarr_screenshot12.png" +Source: "scripts\*.*"; DestDir: "{app}\www\dolibarr\scripts"; Flags: ignoreversion recursesubdirs; Excludes: ".gitignore,.project,CVS\*,Thumbs.db,product\materiel.net.php,product\import-product.php" +Source: "*.*"; DestDir: "{app}\www\dolibarr"; Flags: ignoreversion; Excludes: ".gitignore,.project,CVS\*,Thumbs.db,default.properties,install.lock" ; Config files Source: "build\exe\doliwamp\phpmyadmin.conf.install"; DestDir: "{app}\alias"; Flags: ignoreversion; Source: "build\exe\doliwamp\dolibarr.conf.install"; DestDir: "{app}\alias"; Flags: ignoreversion; diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl index 173773523d289b92f96c2ef123bfb2d4cddb3c31..f2826cf35b11e0e840334c120bd060d390e835b5 100755 --- a/build/makepack-dolibarr.pl +++ b/build/makepack-dolibarr.pl @@ -18,6 +18,7 @@ $RPMSUBVERSION="auto"; # auto use value found into BUILD "SNAPSHOT"=>"tar", "TGZ"=>"tar", "ZIP"=>"7z", +"XZ"=>"xz", "RPM_GENERIC"=>"rpmbuild", "RPM_FEDORA"=>"rpmbuild", "RPM_MANDRIVA"=>"rpmbuild", @@ -35,6 +36,7 @@ $FILENAME="$PROJECT"; $FILENAMESNAPSHOT="$PROJECT-snapshot"; $FILENAMETGZ="$PROJECT-$MAJOR.$MINOR.$BUILD"; $FILENAMEZIP="$PROJECT-$MAJOR.$MINOR.$BUILD"; +$FILENAMEXZ="$PROJECT-$MAJOR.$MINOR.$BUILD"; $FILENAMERPM="$PROJECT-$MAJOR.$MINOR.$BUILD-$RPMSUBVERSION"; $FILENAMEDEB="${PROJECT}_${MAJOR}.${MINOR}.${BUILD}"; $FILENAMEAPS="$PROJECT-$MAJOR.$MINOR.$BUILD.app"; @@ -179,6 +181,7 @@ foreach my $target (keys %CHOOSEDTARGET) { print "Test requirement for target $target: Search '$req'... "; $newreq=$req; $newparam=''; if ($newreq eq 'zip') { $newparam.='-h'; } + if ($newreq eq 'xz') { $newparam.='-h'; } $cmd="\"$newreq\" $newparam 2>&1"; print "Test command ".$cmd."... "; $ret=`$cmd`; @@ -274,6 +277,7 @@ if ($nboftargetok) { $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar.gz`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tgz`; + $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.xz`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.zip`; $ret=`rm -f $BUILDROOT/$PROJECT/build/doxygen/doxygen_warnings.log`; $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/cache.manifest`; @@ -365,7 +369,7 @@ if ($nboftargetok) { print "Compress $BUILDROOT into $FILENAMESNAPSHOT.tgz...\n"; #$cmd="tar --exclude \"$BUILDROOT/tgz/tar_exclude.txt\" --exclude .cache --exclude .settings --exclude conf.php --directory \"$BUILDROOT\" -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT"; - $cmd="tar --exclude doli*.tgz --exclude doli*.deb --exclude doli*.exe --exclude doli*.zip --exclude doli*.rpm --exclude .cache --exclude .settings --exclude conf.php --exclude conf.php.mysql --exclude conf.php.old --exclude conf.php.postgres --directory \"$BUILDROOT\" --mode=go-w --group=500 --owner=500 -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT"; + $cmd="tar --exclude doli*.tgz --exclude doli*.deb --exclude doli*.exe --exclude doli*.xz --exclude doli*.zip --exclude doli*.rpm --exclude .cache --exclude .settings --exclude conf.php --exclude conf.php.mysql --exclude conf.php.old --exclude conf.php.postgres --directory \"$BUILDROOT\" --mode=go-w --group=500 --owner=500 -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT"; print $cmd."\n"; $ret=`$cmd`; @@ -401,6 +405,36 @@ if ($nboftargetok) { next; } + if ($target eq 'XZ') + { + $NEWDESTI=$DESTI; + if (-d $DESTI.'/standard') { $NEWDESTI=$DESTI.'/standard'; } + + print "Remove target $FILENAMEXZ.xz...\n"; + unlink("$NEWDESTI/$FILENAMEXZ.xz"); + + #rmdir "$BUILDROOT/$FILENAMEXZ"; + $ret=`rm -fr $BUILDROOT/$FILENAMEXZ`; + print "Copy $BUILDROOT/$PROJECT to $BUILDROOT/$FILENAMEXZ\n"; + $cmd="cp -pr \"$BUILDROOT/$PROJECT\" \"$BUILDROOT/$FILENAMEXZ\""; + $ret=`$cmd`; + + print "Compress $FILENAMEXZ into $FILENAMEXZ.xz...\n"; + + print "Go to directory $BUILDROOT\n"; + $olddir=getcwd(); + chdir("$BUILDROOT"); + $cmd= "xz -9 -r $BUILDROOT/$FILENAMEAPS.xz \*"; + print $cmd."\n"; + $ret= `$cmd`; + chdir("$olddir"); + + # Move to final dir + print "Move $FILENAMEXZ.xz to $NEWDESTI/$FILENAMEXZ.xz\n"; + $ret=`mv "$BUILDROOT/$FILENAMEXZ.xz" "$NEWDESTI/$FILENAMEXZ.xz"`; + next; + } + if ($target eq 'ZIP') { $NEWDESTI=$DESTI; diff --git a/build/tgz/tar_exclude.txt b/build/tgz/tar_exclude.txt index 5b7eb73e07a84710478dbfa0eec2a01cee4ec008..8cbde2f1903d632b6b206bb05505ba6b267bc250 100644 --- a/build/tgz/tar_exclude.txt +++ b/build/tgz/tar_exclude.txt @@ -37,44 +37,28 @@ htdocs/customleave htdocs/customgoogle htdocs/document htdocs/documents -htdocs/includes/jpgraph2 +htdocs/includes/ckeditor/_source +htdocs/includes/ckeditor/*_source.js htdocs/includes/fckeditor/_samples htdocs/includes/fckeditor/_testcases htdocs/includes/nusoap/samples -htdocs/includes/phplot5 -htdocs/includes/scriptaculous/test -htdocs/includes/treemenu/docs -htdocs/includes/treemenu/images -htdocs/includes/treemenu/imagesAlt -htdocs/includes/treemenu/imagesAlt2 htdocs/includes/tcpdf/fonts/utils htdocs/includes/tcpdf/fonts/free*.ctg.z htdocs/includes/tcpdf/fonts/free*.z -htdocs/lolix -htdocs/oscommerce_ws/ws_client_demo -htdocs/postnuke -htdocs/public/bplc -htdocs/rapport -htdocs/theme/rodolphe -htdocs/telephonie -htdocs/voyage mssql -scripts/addons -scripts/books -scripts/courrier -scripts/lolix -scripts/product/import-product.php -scripts/product/materiel.net.php test CVS *~ .#* +.buildpath .cache .cvsignore +.gitignore .externalToolBuilders .htaccess .settings .project +.travis.yml Thumbs.db data_dev.sql doli*.tar.gz @@ -84,18 +68,5 @@ doli*.rpm doli*.deb doli*.zip cvschangelogbuilder_dolibarr* -deneb -janus -jupiter -lune -mars -pluton -saturne -venus -bigorneau -tourteau -bulot -huitre -pdf_huitre.modules.php doxygen_warnings.log dolibarr_install.log \ No newline at end of file diff --git a/build/zip/zip_exclude.txt b/build/zip/zip_exclude.txt index 15f2aa51dca92a030d2d4a70a13a78e4dae4fb7a..99f8337efccc9f52d1cf7df1351571da5fe91470 100644 --- a/build/zip/zip_exclude.txt +++ b/build/zip/zip_exclude.txt @@ -31,11 +31,8 @@ */htdocs/custom2/* */htdocs/document/* */htdocs/documents/* -*/htdocs/lolix/* -*/htdocs/postnuke/* -*/htdocs/telephonie/* -*/htdocs/voyage/* -*/htdocs/includes/jpgraph2/* +*/htdocs/includes/ckeditor/_source +*/htdocs/includes/ckeditor/*_source.js */htdocs/includes/fckeditor/_samples/* */htdocs/includes/fckeditor/_testcases/* */htdocs/includes/nusoap/samples/* @@ -49,20 +46,18 @@ */htdocs/includes/tcpdf/fonts/utils/* */htdocs/includes/tcpdf/fonts/free*.ctg.z */htdocs/includes/tcpdf/fonts/free*.z -*/htdocs/oscommerce_ws/ws_client_demo/* -*/htdocs/theme/rodolphe/* -*/scripts/addons/* -*/scripts/courrier/* -*/scripts/lolix/* */test */CVS/* *~ *.#* +*.buildpath* *.cache* *.cvsignore* +*.gitignore* *.htaccess* *.settings* *.project* +*.travis.yml* Thumbs.db data_dev.sql dolibarr*.tar.gz @@ -72,19 +67,5 @@ dolibarr*.rpm dolibarr*.deb dolibarr*.zip cvschangelogbuilder_dolibarr* -*/deneb/* -*/janus/* -*/jupiter/* -*/lune/* -*/mars/* -*/mercure/* -*/pluton/* -*/saturne/* -*/venus/* -*/bigorneau/* -*/tourteau/* -*/bulot/* -*/huitre/* -*/pdf_huitre.modules.php doxygen_warnings.log dolibarr_install.log \ No newline at end of file diff --git a/htdocs/includes/ckeditor/_source/adapters/jquery.js b/htdocs/includes/ckeditor/_source/adapters/jquery.js new file mode 100644 index 0000000000000000000000000000000000000000..d95842641038c20523788cefb94f76431fbdc152 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/adapters/jquery.js @@ -0,0 +1,306 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview jQuery adapter provides easy use of basic CKEditor functions + * and access to internal API. It also integrates some aspects of CKEditor with + * jQuery framework. + * + * Every TEXTAREA, DIV and P elements can be converted to working editor. + * + * Plugin exposes some of editor's event to jQuery event system. All of those are namespaces inside + * ".ckeditor" namespace and can be binded/listened on supported textarea, div and p nodes. + * + * Available jQuery events: + * - instanceReady.ckeditor( editor, rootNode ) + * Triggered when new instance is ready. + * - destroy.ckeditor( editor ) + * Triggered when instance is destroyed. + * - getData.ckeditor( editor, eventData ) + * Triggered when getData event is fired inside editor. It can change returned data using eventData reference. + * - setData.ckeditor( editor ) + * Triggered when getData event is fired inside editor. + * + * @example + * <script src="jquery.js"></script> + * <script src="ckeditor.js"></script> + * <script src="adapters/jquery/adapter.js"></script> + */ + +(function() +{ + /** + * Allows CKEditor to override jQuery.fn.val(), making it possible to use the val() + * function on textareas, as usual, having it synchronized with CKEditor.<br> + * <br> + * This configuration option is global and executed during the jQuery Adapter loading. + * It can't be customized across editor instances. + * @type Boolean + * @example + * <script> + * CKEDITOR.config.jqueryOverrideVal = true; + * </script> + * <!-- Important: The JQuery adapter is loaded *after* setting jqueryOverrideVal --> + * <script src="/ckeditor/adapters/jquery.js"></script> + * @example + * // ... then later in the code ... + * + * $( 'textarea' ).ckeditor(); + * // ... + * $( 'textarea' ).val( 'New content' ); + */ + CKEDITOR.config.jqueryOverrideVal = typeof CKEDITOR.config.jqueryOverrideVal == 'undefined' + ? true : CKEDITOR.config.jqueryOverrideVal; + + var jQuery = window.jQuery; + + if ( typeof jQuery == 'undefined' ) + return; + + // jQuery object methods. + jQuery.extend( jQuery.fn, + /** @lends jQuery.fn */ + { + /** + * Return existing CKEditor instance for first matched element. + * Allows to easily use internal API. Doesn't return jQuery object. + * + * Raised exception if editor doesn't exist or isn't ready yet. + * + * @name jQuery.ckeditorGet + * @return CKEDITOR.editor + * @see CKEDITOR.editor + */ + ckeditorGet: function() + { + var instance = this.eq( 0 ).data( 'ckeditorInstance' ); + if ( !instance ) + throw "CKEditor not yet initialized, use ckeditor() with callback."; + return instance; + }, + /** + * Triggers creation of CKEditor in all matched elements (reduced to DIV, P and TEXTAREAs). + * Binds callback to instanceReady event of all instances. If editor is already created, than + * callback is fired right away. + * + * Mixed parameter order allowed. + * + * @param callback Function to be run on editor instance. Passed parameters: [ textarea ]. + * Callback is fiered in "this" scope being ckeditor instance and having source textarea as first param. + * + * @param config Configuration options for new instance(s) if not already created. + * See URL + * + * @example + * $( 'textarea' ).ckeditor( function( textarea ) { + * $( textarea ).val( this.getData() ) + * } ); + * + * @name jQuery.fn.ckeditor + * @return jQuery.fn + */ + ckeditor: function( callback, config ) + { + if ( !CKEDITOR.env.isCompatible ) + return this; + + if ( !jQuery.isFunction( callback )) + { + var tmp = config; + config = callback; + callback = tmp; + } + config = config || {}; + + this.filter( 'textarea, div, p' ).each( function() + { + var $element = jQuery( this ), + editor = $element.data( 'ckeditorInstance' ), + instanceLock = $element.data( '_ckeditorInstanceLock' ), + element = this; + + if ( editor && !instanceLock ) + { + if ( callback ) + callback.apply( editor, [ this ] ); + } + else if ( !instanceLock ) + { + // CREATE NEW INSTANCE + + // Handle config.autoUpdateElement inside this plugin if desired. + if ( config.autoUpdateElement + || ( typeof config.autoUpdateElement == 'undefined' && CKEDITOR.config.autoUpdateElement ) ) + { + config.autoUpdateElementJquery = true; + } + + // Always disable config.autoUpdateElement. + config.autoUpdateElement = false; + $element.data( '_ckeditorInstanceLock', true ); + + // Set instance reference in element's data. + editor = CKEDITOR.replace( element, config ); + $element.data( 'ckeditorInstance', editor ); + + // Register callback. + editor.on( 'instanceReady', function( event ) + { + var editor = event.editor; + setTimeout( function() + { + // Delay bit more if editor is still not ready. + if ( !editor.element ) + { + setTimeout( arguments.callee, 100 ); + return; + } + + // Remove this listener. + event.removeListener( 'instanceReady', this.callee ); + + // Forward setData on dataReady. + editor.on( 'dataReady', function() + { + $element.trigger( 'setData' + '.ckeditor', [ editor ] ); + }); + + // Forward getData. + editor.on( 'getData', function( event ) { + $element.trigger( 'getData' + '.ckeditor', [ editor, event.data ] ); + }, 999 ); + + // Forward destroy event. + editor.on( 'destroy', function() + { + $element.trigger( 'destroy.ckeditor', [ editor ] ); + }); + + // Integrate with form submit. + if ( editor.config.autoUpdateElementJquery && $element.is( 'textarea' ) && $element.parents( 'form' ).length ) + { + var onSubmit = function() + { + $element.ckeditor( function() + { + editor.updateElement(); + }); + }; + + // Bind to submit event. + $element.parents( 'form' ).submit( onSubmit ); + + // Bind to form-pre-serialize from jQuery Forms plugin. + $element.parents( 'form' ).bind( 'form-pre-serialize', onSubmit ); + + // Unbind when editor destroyed. + $element.bind( 'destroy.ckeditor', function() + { + $element.parents( 'form' ).unbind( 'submit', onSubmit ); + $element.parents( 'form' ).unbind( 'form-pre-serialize', onSubmit ); + }); + } + + // Garbage collect on destroy. + editor.on( 'destroy', function() + { + $element.data( 'ckeditorInstance', null ); + }); + + // Remove lock. + $element.data( '_ckeditorInstanceLock', null ); + + // Fire instanceReady event. + $element.trigger( 'instanceReady.ckeditor', [ editor ] ); + + // Run given (first) code. + if ( callback ) + callback.apply( editor, [ element ] ); + }, 0 ); + }, null, null, 9999); + } + else + { + // Editor is already during creation process, bind our code to the event. + CKEDITOR.on( 'instanceReady', function( event ) + { + var editor = event.editor; + setTimeout( function() + { + // Delay bit more if editor is still not ready. + if ( !editor.element ) + { + setTimeout( arguments.callee, 100 ); + return; + } + + if ( editor.element.$ == element ) + { + // Run given code. + if ( callback ) + callback.apply( editor, [ element ] ); + } + }, 0 ); + }, null, null, 9999); + } + }); + return this; + } + }); + + // New val() method for objects. + if ( CKEDITOR.config.jqueryOverrideVal ) + { + jQuery.fn.val = CKEDITOR.tools.override( jQuery.fn.val, function( oldValMethod ) + { + /** + * CKEditor-aware val() method. + * + * Acts same as original jQuery val(), but for textareas which have CKEditor instances binded to them, method + * returns editor's content. It also works for settings values. + * + * @param oldValMethod + * @name jQuery.fn.val + */ + return function( newValue, forceNative ) + { + var isSetter = typeof newValue != 'undefined', + result; + + this.each( function() + { + var $this = jQuery( this ), + editor = $this.data( 'ckeditorInstance' ); + + if ( !forceNative && $this.is( 'textarea' ) && editor ) + { + if ( isSetter ) + editor.setData( newValue ); + else + { + result = editor.getData(); + // break; + return null; + } + } + else + { + if ( isSetter ) + oldValMethod.call( $this, newValue ); + else + { + result = oldValMethod.call( $this ); + // break; + return null; + } + } + + return true; + }); + return isSetter ? this : result; + }; + }); + } +})(); diff --git a/htdocs/includes/ckeditor/_source/core/_bootstrap.js b/htdocs/includes/ckeditor/_source/core/_bootstrap.js new file mode 100644 index 0000000000000000000000000000000000000000..c2a0cf7d179d899528ff00e2e9763db1e1238366 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/_bootstrap.js @@ -0,0 +1,87 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview API initialization code. + */ + +(function() +{ + // Disable HC detaction in WebKit. (#5429) + if ( CKEDITOR.env.webkit ) + { + CKEDITOR.env.hc = false; + return; + } + + // Check whether high contrast is active by creating a colored border. + var hcDetect = CKEDITOR.dom.element.createFromHtml( + '<div style="width:0px;height:0px;position:absolute;left:-10000px;' + + 'border: 1px solid;border-color: red blue;"></div>', CKEDITOR.document ); + + hcDetect.appendTo( CKEDITOR.document.getHead() ); + + // Update CKEDITOR.env. + // Catch exception needed sometimes for FF. (#4230) + try + { + CKEDITOR.env.hc = hcDetect.getComputedStyle( 'border-top-color' ) == hcDetect.getComputedStyle( 'border-right-color' ); + } + catch (e) + { + CKEDITOR.env.hc = false; + } + + if ( CKEDITOR.env.hc ) + CKEDITOR.env.cssClass += ' cke_hc'; + + hcDetect.remove(); +})(); + +// Load core plugins. +CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function() + { + CKEDITOR.status = 'loaded'; + CKEDITOR.fire( 'loaded' ); + + // Process all instances created by the "basic" implementation. + var pending = CKEDITOR._.pending; + if ( pending ) + { + delete CKEDITOR._.pending; + + for ( var i = 0 ; i < pending.length ; i++ ) + CKEDITOR.add( pending[ i ] ); + } + }); + +// Needed for IE6 to not request image (HTTP 200 or 304) for every CSS background. (#6187) +if ( CKEDITOR.env.ie ) +{ + // Remove IE mouse flickering on IE6 because of background images. + try + { + document.execCommand( 'BackgroundImageCache', false, true ); + } + catch (e) + { + // We have been reported about loading problems caused by the above + // line. For safety, let's just ignore errors. + } +} + +/** + * Indicates that CKEditor is running on a High Contrast environment. + * @name CKEDITOR.env.hc + * @example + * if ( CKEDITOR.env.hc ) + * alert( 'You're running on High Contrast mode. The editor interface will get adapted to provide you a better experience.' ); + */ + +/** + * Fired when a CKEDITOR core object is fully loaded and ready for interaction. + * @name CKEDITOR#loaded + * @event + */ diff --git a/htdocs/includes/ckeditor/_source/core/ckeditor.js b/htdocs/includes/ckeditor/_source/core/ckeditor.js new file mode 100644 index 0000000000000000000000000000000000000000..086a8668cd4b0c3e17ec2cd7b08e7bf907d6883a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/ckeditor.js @@ -0,0 +1,141 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Contains the third and last part of the {@link CKEDITOR} object + * definition. + */ + +// Remove the CKEDITOR.loadFullCore reference defined on ckeditor_basic. +delete CKEDITOR.loadFullCore; + +/** + * Holds references to all editor instances created. The name of the properties + * in this object correspond to instance names, and their values contains the + * {@link CKEDITOR.editor} object representing them. + * @type {Object} + * @example + * alert( <b>CKEDITOR.instances</b>.editor1.name ); // "editor1" + */ +CKEDITOR.instances = {}; + +/** + * The document of the window holding the CKEDITOR object. + * @type {CKEDITOR.dom.document} + * @example + * alert( <b>CKEDITOR.document</b>.getBody().getName() ); // "body" + */ +CKEDITOR.document = new CKEDITOR.dom.document( document ); + +/** + * Adds an editor instance to the global {@link CKEDITOR} object. This function + * is available for internal use mainly. + * @param {CKEDITOR.editor} editor The editor instance to be added. + * @example + */ +CKEDITOR.add = function( editor ) +{ + CKEDITOR.instances[ editor.name ] = editor; + + editor.on( 'focus', function() + { + if ( CKEDITOR.currentInstance != editor ) + { + CKEDITOR.currentInstance = editor; + CKEDITOR.fire( 'currentInstance' ); + } + }); + + editor.on( 'blur', function() + { + if ( CKEDITOR.currentInstance == editor ) + { + CKEDITOR.currentInstance = null; + CKEDITOR.fire( 'currentInstance' ); + } + }); +}; + +/** + * Removes an editor instance from the global {@link CKEDITOR} object. This function + * is available for internal use only. External code must use {@link CKEDITOR.editor.prototype.destroy} + * to avoid memory leaks. + * @param {CKEDITOR.editor} editor The editor instance to be removed. + * @example + */ +CKEDITOR.remove = function( editor ) +{ + delete CKEDITOR.instances[ editor.name ]; +}; + +/** + * Perform global clean up to free as much memory as possible + * when there are no instances left + */ +CKEDITOR.on( 'instanceDestroyed', function () + { + if ( CKEDITOR.tools.isEmpty( this.instances ) ) + CKEDITOR.fire( 'reset' ); + }); + +// Load the bootstrap script. +CKEDITOR.loader.load( 'core/_bootstrap' ); // @Packager.RemoveLine + +// Tri-state constants. + +/** + * Used to indicate the ON or ACTIVE state. + * @constant + * @example + */ +CKEDITOR.TRISTATE_ON = 1; + +/** + * Used to indicate the OFF or NON ACTIVE state. + * @constant + * @example + */ +CKEDITOR.TRISTATE_OFF = 2; + +/** + * Used to indicate DISABLED state. + * @constant + * @example + */ +CKEDITOR.TRISTATE_DISABLED = 0; + +/** + * The editor which is currently active (have user focus). + * @name CKEDITOR.currentInstance + * @type CKEDITOR.editor + * @see CKEDITOR#currentInstance + * @example + * function showCurrentEditorName() + * { + * if ( CKEDITOR.currentInstance ) + * alert( CKEDITOR.currentInstance.name ); + * else + * alert( 'Please focus an editor first.' ); + * } + */ + +/** + * Fired when the CKEDITOR.currentInstance object reference changes. This may + * happen when setting the focus on different editor instances in the page. + * @name CKEDITOR#currentInstance + * @event + * var editor; // Variable to hold a reference to the current editor. + * CKEDITOR.on( 'currentInstance' , function( e ) + * { + * editor = CKEDITOR.currentInstance; + * }); + */ + +/** + * Fired when the last instance has been destroyed. This event is used to perform + * global memory clean up. + * @name CKEDITOR#reset + * @event + */ diff --git a/htdocs/includes/ckeditor/_source/core/ckeditor_base.js b/htdocs/includes/ckeditor/_source/core/ckeditor_base.js new file mode 100644 index 0000000000000000000000000000000000000000..8ef941e9b9ce20f808092f568423a28e7670cab6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/ckeditor_base.js @@ -0,0 +1,235 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Contains the first and essential part of the {@link CKEDITOR} + * object definition. + */ + +// #### Compressed Code +// Must be updated on changes in the script as well as updated in the +// ckeditor_source.js and ckeditor_basic_source.js files. + +// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.4',revision:'7575',rnd:Math.floor(Math.random()*900)+100,_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;if(!d)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/'&&!/[&?]t=/.test(d))d+=(d.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})(); + +// #### Raw code +// ATTENTION: read the above "Compressed Code" notes when changing this code. + +/* @Packager.RemoveLine +// Avoid having the editor code initialized twice. (#7588) +// Use CKEDITOR.dom to check whether the full ckeditor.js code has been loaded +// or just ckeditor_basic.js. +// Remove these lines when compressing manually. +if ( window.CKEDITOR && window.CKEDITOR.dom ) + return; +@Packager.RemoveLine */ + +if ( !window.CKEDITOR ) +{ + /** + * @name CKEDITOR + * @namespace This is the API entry point. The entire CKEditor code runs under this object. + * @example + */ + window.CKEDITOR = (function() + { + var CKEDITOR = + /** @lends CKEDITOR */ + { + + /** + * A constant string unique for each release of CKEditor. Its value + * is used, by default, to build the URL for all resources loaded + * by the editor code, guaranteeing clean cache results when + * upgrading. + * @type String + * @example + * alert( CKEDITOR.timestamp ); // e.g. '87dm' + */ + // The production implementation contains a fixed timestamp, unique + // for each release and generated by the releaser. + // (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122) + timestamp : 'C6HH5UF', + + /** + * Contains the CKEditor version number. + * @type String + * @example + * alert( CKEDITOR.version ); // e.g. 'CKEditor 3.4.1' + */ + version : '3.6.4', + + /** + * Contains the CKEditor revision number. + * The revision number is incremented automatically, following each + * modification to the CKEditor source code. + * @type String + * @example + * alert( CKEDITOR.revision ); // e.g. '3975' + */ + revision : '7575', + + /** + * A 3-digit random integer, valid for the entire life of the CKEDITOR object. + * @type Number + * @example + * alert( CKEDITOR.rnd ); // e.g. '319' + */ + rnd : Math.floor( Math.random() * ( 999/*Max*/ - 100/*Min*/ + 1 ) ) + 100/*Min*/, + + /** + * Private object used to hold core stuff. It should not be used outside of + * the API code as properties defined here may change at any time + * without notice. + * @private + */ + _ : {}, + + /** + * Indicates the API loading status. The following statuses are available: + * <ul> + * <li><b>unloaded</b>: the API is not yet loaded.</li> + * <li><b>basic_loaded</b>: the basic API features are available.</li> + * <li><b>basic_ready</b>: the basic API is ready to load the full core code.</li> + * <li><b>loading</b>: the full API is being loaded.</li> + * <li><b>loaded</b>: the API can be fully used.</li> + * </ul> + * @type String + * @example + * if ( <b>CKEDITOR.status</b> == 'loaded' ) + * { + * // The API can now be fully used. + * } + */ + status : 'unloaded', + + /** + * Contains the full URL for the CKEditor installation directory. + * It is possible to manually provide the base path by setting a + * global variable named CKEDITOR_BASEPATH. This global variable + * must be set <strong>before</strong> the editor script loading. + * @type String + * @example + * alert( <b>CKEDITOR.basePath</b> ); // "http://www.example.com/ckeditor/" (e.g.) + */ + basePath : (function() + { + // ATTENTION: fixes to this code must be ported to + // var basePath in "core/loader.js". + + // Find out the editor directory path, based on its <script> tag. + var path = window.CKEDITOR_BASEPATH || ''; + + if ( !path ) + { + var scripts = document.getElementsByTagName( 'script' ); + + for ( var i = 0 ; i < scripts.length ; i++ ) + { + var match = scripts[i].src.match( /(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i ); + + if ( match ) + { + path = match[1]; + break; + } + } + } + + // In IE (only) the script.src string is the raw value entered in the + // HTML source. Other browsers return the full resolved URL instead. + if ( path.indexOf(':/') == -1 ) + { + // Absolute path. + if ( path.indexOf( '/' ) === 0 ) + path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path; + // Relative path. + else + path = location.href.match( /^[^\?]*\/(?:)/ )[0] + path; + } + + if ( !path ) + throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.'; + + return path; + })(), + + /** + * Gets the full URL for CKEditor resources. By default, URLs + * returned by this function contain a querystring parameter ("t") + * set to the {@link CKEDITOR.timestamp} value.<br /> + * <br /> + * It is possible to provide a custom implementation of this + * function by setting a global variable named CKEDITOR_GETURL. + * This global variable must be set <strong>before</strong> the editor script + * loading. If the custom implementation returns nothing (==null), the + * default implementation is used. + * @param {String} resource The resource whose full URL we want to get. + * It may be a full, absolute, or relative URL. + * @returns {String} The full URL. + * @example + * // e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm + * alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) ); + * @example + * // e.g. http://www.example.com/skins/default/editor.css?t=87dm + * alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) ); + * @example + * // e.g. http://www.somesite.com/skins/default/editor.css?t=87dm + * alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) ); + */ + getUrl : function( resource ) + { + // If this is not a full or absolute path. + if ( resource.indexOf(':/') == -1 && resource.indexOf( '/' ) !== 0 ) + resource = this.basePath + resource; + + // Add the timestamp, except for directories. + if ( this.timestamp && resource.charAt( resource.length - 1 ) != '/' && !(/[&?]t=/).test( resource ) ) + resource += ( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) + 't=' + this.timestamp; + + return resource; + } + }; + + // Make it possible to override the getUrl function with a custom + // implementation pointing to a global named CKEDITOR_GETURL. + var newGetUrl = window.CKEDITOR_GETURL; + if ( newGetUrl ) + { + var originalGetUrl = CKEDITOR.getUrl; + CKEDITOR.getUrl = function ( resource ) + { + return newGetUrl.call( CKEDITOR, resource ) || + originalGetUrl.call( CKEDITOR, resource ); + }; + } + + return CKEDITOR; + })(); +} + +/** + * Function called upon loading a custom configuration file that can + * modify the editor instance configuration ({@link CKEDITOR.editor#config }). + * It is usually defined inside the custom configuration files that can + * include developer defined settings. + * @name CKEDITOR.editorConfig + * @function + * @param {CKEDITOR.config} config A configuration object containing the + * settings defined for a {@link CKEDITOR.editor} instance up to this + * function call. Note that not all settings may still be available. See + * <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Configuration_Loading_Order">Configuration Loading Order</a> + * for details. + * @example + * // This is supposed to be placed in the config.js file. + * CKEDITOR.editorConfig = function( config ) + * { + * // Define changes to default configuration here. For example: + * config.language = 'fr'; + * config.uiColor = '#AADC6E'; + * }; + */ + +// PACKAGER_RENAME( CKEDITOR ) diff --git a/htdocs/includes/ckeditor/_source/core/ckeditor_basic.js b/htdocs/includes/ckeditor/_source/core/ckeditor_basic.js new file mode 100644 index 0000000000000000000000000000000000000000..6a2322f20c79d2342c402392af1247829bc8d20d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/ckeditor_basic.js @@ -0,0 +1,238 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Contains the second part of the {@link CKEDITOR} object + * definition, which defines the basic editor features to be available in + * the root ckeditor_basic.js file. + */ + +if ( CKEDITOR.status == 'unloaded' ) +{ + (function() + { + CKEDITOR.event.implementOn( CKEDITOR ); + + /** + * Forces the full CKEditor core code, in the case only the basic code has been + * loaded (ckeditor_basic.js). This method self-destroys (becomes undefined) in + * the first call or as soon as the full code is available. + * @example + * // Check if the full core code has been loaded and load it. + * if ( CKEDITOR.loadFullCore ) + * <b>CKEDITOR.loadFullCore()</b>; + */ + CKEDITOR.loadFullCore = function() + { + // If not the basic code is not ready it, just mark it to be loaded. + if ( CKEDITOR.status != 'basic_ready' ) + { + CKEDITOR.loadFullCore._load = 1; + return; + } + + // Destroy this function. + delete CKEDITOR.loadFullCore; + + // Append the script to the head. + var script = document.createElement( 'script' ); + script.type = 'text/javascript'; + script.src = CKEDITOR.basePath + 'ckeditor.js'; + + document.getElementsByTagName( 'head' )[0].appendChild( script ); + }; + + /** + * The time to wait (in seconds) to load the full editor code after the + * page load, if the "ckeditor_basic" file is used. If set to zero, the + * editor is loaded on demand, as soon as an instance is created. + * + * This value must be set on the page before the page load completion. + * @type Number + * @default 0 (zero) + * @example + * // Loads the full source after five seconds. + * CKEDITOR.loadFullCoreTimeout = 5; + */ + CKEDITOR.loadFullCoreTimeout = 0; + + /** + * The class name used to identify <textarea> elements to be replace + * by CKEditor instances. + * @type String + * @default 'ckeditor' + * @example + * <b>CKEDITOR.replaceClass</b> = 'rich_editor'; + */ + CKEDITOR.replaceClass = 'ckeditor'; + + /** + * Enables the replacement of all textareas with class name matching + * {@link CKEDITOR.replaceClass}. + * @type Boolean + * @default true + * @example + * // Disable the auto-replace feature. + * <b>CKEDITOR.replaceByClassEnabled</b> = false; + */ + CKEDITOR.replaceByClassEnabled = 1; + + var createInstance = function( elementOrIdOrName, config, creationFunction, data ) + { + if ( CKEDITOR.env.isCompatible ) + { + // Load the full core. + if ( CKEDITOR.loadFullCore ) + CKEDITOR.loadFullCore(); + + var editor = creationFunction( elementOrIdOrName, config, data ); + CKEDITOR.add( editor ); + return editor; + } + + return null; + }; + + /** + * Replaces a <textarea> or a DOM element (DIV) with a CKEditor + * instance. For textareas, the initial value in the editor will be the + * textarea value. For DOM elements, their innerHTML will be used + * instead. We recommend using TEXTAREA and DIV elements only. + * @param {Object|String} elementOrIdOrName The DOM element (textarea), its + * ID or name. + * @param {Object} [config] The specific configurations to apply to this + * editor instance. Configurations set here will override global CKEditor + * settings. + * @returns {CKEDITOR.editor} The editor instance created. + * @example + * <textarea id="myfield" name="myfield"><:/textarea> + * ... + * <b>CKEDITOR.replace( 'myfield' )</b>; + * @example + * var textarea = document.body.appendChild( document.createElement( 'textarea' ) ); + * <b>CKEDITOR.replace( textarea )</b>; + */ + CKEDITOR.replace = function( elementOrIdOrName, config ) + { + return createInstance( elementOrIdOrName, config, CKEDITOR.editor.replace ); + }; + + /** + * Creates a new editor instance inside a specific DOM element. + * @param {Object|String} elementOrId The DOM element or its ID. + * @param {Object} [config] The specific configurations to apply to this + * editor instance. Configurations set here will override global CKEditor + * settings. + * @param {String} [data] Since 3.3. Initial value for the instance. + * @returns {CKEDITOR.editor} The editor instance created. + * @example + * <div id="editorSpace"><:/div> + * ... + * <b>CKEDITOR.appendTo( 'editorSpace' )</b>; + */ + CKEDITOR.appendTo = function( elementOrId, config, data ) + { + return createInstance( elementOrId, config, CKEDITOR.editor.appendTo, data ); + }; + + // Documented at ckeditor.js. + CKEDITOR.add = function( editor ) + { + // For now, just put the editor in the pending list. It will be + // processed as soon as the full code gets loaded. + var pending = this._.pending || ( this._.pending = [] ); + pending.push( editor ); + }; + + /** + * Replace all <textarea> elements available in the document with + * editor instances. + * @example + * // Replace all <textarea> elements in the page. + * CKEDITOR.replaceAll(); + * @example + * // Replace all <textarea class="myClassName"> elements in the page. + * CKEDITOR.replaceAll( 'myClassName' ); + * @example + * // Selectively replace <textarea> elements, based on custom assertions. + * CKEDITOR.replaceAll( function( textarea, config ) + * { + * // Custom code to evaluate the replace, returning false + * // if it must not be done. + * // It also passes the "config" parameter, so the + * // developer can customize the instance. + * } ); + */ + CKEDITOR.replaceAll = function() + { + var textareas = document.getElementsByTagName( 'textarea' ); + + for ( var i = 0 ; i < textareas.length ; i++ ) + { + var config = null, + textarea = textareas[i]; + + // The "name" and/or "id" attribute must exist. + if ( !textarea.name && !textarea.id ) + continue; + + if ( typeof arguments[0] == 'string' ) + { + // The textarea class name could be passed as the function + // parameter. + + var classRegex = new RegExp( '(?:^|\\s)' + arguments[0] + '(?:$|\\s)' ); + + if ( !classRegex.test( textarea.className ) ) + continue; + } + else if ( typeof arguments[0] == 'function' ) + { + // An assertion function could be passed as the function parameter. + // It must explicitly return "false" to ignore a specific <textarea>. + config = {}; + if ( arguments[0]( textarea, config ) === false ) + continue; + } + + this.replace( textarea, config ); + } + }; + + (function() + { + var onload = function() + { + var loadFullCore = CKEDITOR.loadFullCore, + loadFullCoreTimeout = CKEDITOR.loadFullCoreTimeout; + + // Replace all textareas with the default class name. + if ( CKEDITOR.replaceByClassEnabled ) + CKEDITOR.replaceAll( CKEDITOR.replaceClass ); + + CKEDITOR.status = 'basic_ready'; + + if ( loadFullCore && loadFullCore._load ) + loadFullCore(); + else if ( loadFullCoreTimeout ) + { + setTimeout( function() + { + if ( CKEDITOR.loadFullCore ) + CKEDITOR.loadFullCore(); + } + , loadFullCoreTimeout * 1000 ); + } + }; + + if ( window.addEventListener ) + window.addEventListener( 'load', onload, false ); + else if ( window.attachEvent ) + window.attachEvent( 'onload', onload ); + })(); + + CKEDITOR.status = 'basic_loaded'; + })(); +} diff --git a/htdocs/includes/ckeditor/_source/core/command.js b/htdocs/includes/ckeditor/_source/core/command.js new file mode 100644 index 0000000000000000000000000000000000000000..d58c684e9346d766b85440653360da259c9385a1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/command.js @@ -0,0 +1,225 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Creates a command class instance. + * @class Represents a command that can be executed on an editor instance. + * @param {CKEDITOR.editor} editor The editor instance this command will be + * related to. + * @param {CKEDITOR.commandDefinition} commandDefinition The command + * definition. + * @augments CKEDITOR.event + * @example + * var command = new CKEDITOR.command( editor, + * { + * exec : function( editor ) + * { + * alert( editor.document.getBody().getHtml() ); + * } + * }); + */ +CKEDITOR.command = function( editor, commandDefinition ) +{ + /** + * Lists UI items that are associated to this command. This list can be + * used to interact with the UI on command execution (by the execution code + * itself, for example). + * @type Array + * @example + * alert( 'Number of UI items associated to this command: ' + command.<b>uiItems</b>.length ); + */ + this.uiItems = []; + + /** + * Executes the command. + * @param {Object} [data] Any data to pass to the command. Depends on the + * command implementation and requirements. + * @returns {Boolean} A boolean indicating that the command has been + * successfully executed. + * @example + * command.<b>exec()</b>; // The command gets executed. + */ + this.exec = function( data ) + { + if ( this.state == CKEDITOR.TRISTATE_DISABLED ) + return false; + + if ( this.editorFocus ) // Give editor focus if necessary (#4355). + editor.focus(); + + if ( this.fire( 'exec' ) === true ) + return true; + + return ( commandDefinition.exec.call( this, editor, data ) !== false ); + }; + + /** + * Explicitly update the status of the command, by firing the {@link CKEDITOR.command#event:refresh} event, + * as well as invoke the {@link CKEDITOR.commandDefinition.prototype.refresh} method if defined, this method + * is to allow different parts of the editor code to contribute in command status resolution. + */ + this.refresh = function() + { + if ( this.fire( 'refresh' ) === true ) + return true; + + return ( commandDefinition.refresh && commandDefinition.refresh.apply( this, arguments ) !== false ); + }; + + CKEDITOR.tools.extend( this, commandDefinition, + // Defaults + /** @lends CKEDITOR.command.prototype */ + { + /** + * The editor modes within which the command can be executed. The + * execution will have no action if the current mode is not listed + * in this property. + * @type Object + * @default { wysiwyg : 1 } + * @see CKEDITOR.editor.prototype.mode + * @example + * // Enable the command in both WYSIWYG and Source modes. + * command.<b>modes</b> = { wysiwyg : 1, source : 1 }; + * @example + * // Enable the command in Source mode only. + * command.<b>modes</b> = { source : 1 }; + */ + modes : { wysiwyg : 1 }, + + /** + * Indicates that the editor will get the focus before executing + * the command. + * @type Boolean + * @default true + * @example + * // Do not force the editor to have focus when executing the command. + * command.<b>editorFocus</b> = false; + */ + editorFocus : 1, + + /** + * Indicates the editor state. Possible values are: + * <ul> + * <li>{@link CKEDITOR.TRISTATE_DISABLED}: the command is + * disabled. It's execution will have no effect. Same as + * {@link disable}.</li> + * <li>{@link CKEDITOR.TRISTATE_ON}: the command is enabled + * and currently active in the editor (for context sensitive commands, + * for example).</li> + * <li>{@link CKEDITOR.TRISTATE_OFF}: the command is enabled + * and currently inactive in the editor (for context sensitive + * commands, for example).</li> + * </ul> + * Do not set this property directly, using the {@link #setState} + * method instead. + * @type Number + * @default {@link CKEDITOR.TRISTATE_OFF} + * @example + * if ( command.<b>state</b> == CKEDITOR.TRISTATE_DISABLED ) + * alert( 'This command is disabled' ); + */ + state : CKEDITOR.TRISTATE_OFF + }); + + // Call the CKEDITOR.event constructor to initialize this instance. + CKEDITOR.event.call( this ); +}; + +CKEDITOR.command.prototype = +{ + /** + * Enables the command for execution. The command state (see + * {@link CKEDITOR.command.prototype.state}) available before disabling it + * is restored. + * @example + * command.<b>enable()</b>; + * command.exec(); // Execute the command. + */ + enable : function() + { + if ( this.state == CKEDITOR.TRISTATE_DISABLED ) + this.setState( ( !this.preserveState || ( typeof this.previousState == 'undefined' ) ) ? CKEDITOR.TRISTATE_OFF : this.previousState ); + }, + + /** + * Disables the command for execution. The command state (see + * {@link CKEDITOR.command.prototype.state}) will be set to + * {@link CKEDITOR.TRISTATE_DISABLED}. + * @example + * command.<b>disable()</b>; + * command.exec(); // "false" - Nothing happens. + */ + disable : function() + { + this.setState( CKEDITOR.TRISTATE_DISABLED ); + }, + + /** + * Sets the command state. + * @param {Number} newState The new state. See {@link #state}. + * @returns {Boolean} Returns "true" if the command state changed. + * @example + * command.<b>setState( CKEDITOR.TRISTATE_ON )</b>; + * command.exec(); // Execute the command. + * command.<b>setState( CKEDITOR.TRISTATE_DISABLED )</b>; + * command.exec(); // "false" - Nothing happens. + * command.<b>setState( CKEDITOR.TRISTATE_OFF )</b>; + * command.exec(); // Execute the command. + */ + setState : function( newState ) + { + // Do nothing if there is no state change. + if ( this.state == newState ) + return false; + + this.previousState = this.state; + + // Set the new state. + this.state = newState; + + // Fire the "state" event, so other parts of the code can react to the + // change. + this.fire( 'state' ); + + return true; + }, + + /** + * Toggles the on/off (active/inactive) state of the command. This is + * mainly used internally by context sensitive commands. + * @example + * command.<b>toggleState()</b>; + */ + toggleState : function() + { + if ( this.state == CKEDITOR.TRISTATE_OFF ) + this.setState( CKEDITOR.TRISTATE_ON ); + else if ( this.state == CKEDITOR.TRISTATE_ON ) + this.setState( CKEDITOR.TRISTATE_OFF ); + } +}; + +CKEDITOR.event.implementOn( CKEDITOR.command.prototype, true ); + +/** + * Indicates the previous command state. + * @name CKEDITOR.command.prototype.previousState + * @type Number + * @see #state + * @example + * alert( command.<b>previousState</b> ); + */ + +/** + * Fired when the command state changes. + * @name CKEDITOR.command#state + * @event + * @example + * command.on( <b>'state'</b> , function( e ) + * { + * // Alerts the new state. + * alert( this.state ); + * }); + */ diff --git a/htdocs/includes/ckeditor/_source/core/commanddefinition.js b/htdocs/includes/ckeditor/_source/core/commanddefinition.js new file mode 100644 index 0000000000000000000000000000000000000000..15e8118e5f67d4533f1fc9d3f77fdab83800172e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/commanddefinition.js @@ -0,0 +1,129 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the "virtual" {@link CKEDITOR.commandDefinition} class, + * which contains the defintion of a command. This file is for + * documentation purposes only. + */ + +/** + * (Virtual Class) Do not call this constructor. This class is not really part + * of the API. + * @name CKEDITOR.commandDefinition + * @class Virtual class that illustrates the features of command objects to be + * passed to the {@link CKEDITOR.editor.prototype.addCommand} function. + * @example + */ + + /** + * The function to be fired when the commend is executed. + * @name CKEDITOR.commandDefinition.prototype.exec + * @function + * @param {CKEDITOR.editor} editor The editor within which run the command. + * @param {Object} [data] Additional data to be used to execute the command. + * @returns {Boolean} Whether the command has been successfully executed. + * Defaults to "true", if nothing is returned. + * @example + * editorInstance.addCommand( 'sample', + * { + * exec : function( editor ) + * { + * alert( 'Executing a command for the editor name "' + editor.name + '"!' ); + * } + * }); + */ + +/** + * Whether the command need to be hooked into the redo/undo system. + * @name CKEDITOR.commandDefinition.prototype.canUndo + * @type {Boolean} + * @default true + * @field + * @example + * editorInstance.addCommand( 'alertName', + * { + * exec : function( editor ) + * { + * alert( editor.name ); + * }, + * canUndo : false // No support for undo/redo + * }); + */ + +/** + * Whether the command is asynchronous, which means that the + * {@link CKEDITOR.editor#event:afterCommandExec} event will be fired by the + * command itself manually, and that the return value of this command is not to + * be returned by the {@link CKEDITOR.command#exec} function. + * @name CKEDITOR.commandDefinition.prototype.async + * @default false + * @type {Boolean} + * @example + * editorInstance.addCommand( 'loadOptions', + * { + * exec : function( editor ) + * { + * // Asynchronous operation below. + * CKEDITOR.ajax.loadXml( 'data.xml', function() + * { + * editor.fire( 'afterCommandExec' ); + * )); + * }, + * async : true // The command need some time to complete after exec function returns. + * }); + */ + +/** + * Whether the command should give focus to the editor before execution. + * @name CKEDITOR.commandDefinition.prototype.editorFocus + * @type {Boolean} + * @default true + * @see CKEDITOR.command#editorFocus + * @example + * editorInstance.addCommand( 'maximize', + * { + * exec : function( editor ) + * { + * // ... + * }, + * editorFocus : false // The command doesn't require focusing the editing document. + * }); + */ + + +/** + * Whether the command state should be set to {@link CKEDITOR.TRISTATE_DISABLED} on startup. + * @name CKEDITOR.commandDefinition.prototype.startDisabled + * @type {Boolean} + * @default false + * @example + * editorInstance.addCommand( 'unlink', + * { + * exec : function( editor ) + * { + * // ... + * }, + * startDisabled : true // Command is unavailable until selection is inside a link. + * }); + */ + +/** + * The editor modes within which the command can be executed. The execution + * will have no action if the current mode is not listed in this property. + * @name CKEDITOR.commandDefinition.prototype.modes + * @type Object + * @default { wysiwyg : 1 } + * @see CKEDITOR.command#modes + * @example + * editorInstance.addCommand( 'link', + * { + * exec : function( editor ) + * { + * // ... + * }, + * modes : { wysiwyg : 1 } // Command is available in wysiwyg mode only. + * }); + */ diff --git a/htdocs/includes/ckeditor/_source/core/config.js b/htdocs/includes/ckeditor/_source/core/config.js new file mode 100644 index 0000000000000000000000000000000000000000..72599bac0db0fe8e58a801698c7496f636aa0249 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/config.js @@ -0,0 +1,447 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the <code>{@link CKEDITOR.config}</code> object that stores the + * default configuration settings. + */ + +/** + * Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code> + * and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration + * settings to make the editor produce <code><p></code> tags when + * using the <em>Enter</em> key. + * @constant + */ +CKEDITOR.ENTER_P = 1; + +/** + * Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code> + * and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration + * settings to make the editor produce <code><br></code> tags when + * using the <em>Enter</em> key. + * @constant + */ +CKEDITOR.ENTER_BR = 2; + +/** + * Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code> + * and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration + * settings to make the editor produce <code><div></code> tags when + * using the <em>Enter</em> key. + * @constant + */ +CKEDITOR.ENTER_DIV = 3; + +/** + * @namespace Stores default configuration settings. Changes to this object are + * reflected in all editor instances, if not specified otherwise for a particular + * instance. + */ +CKEDITOR.config = +{ + /** + * The URL path for the custom configuration file to be loaded. If not + * overloaded with inline configuration, it defaults to the <code>config.js</code> + * file present in the root of the CKEditor installation directory.<br /><br /> + * + * CKEditor will recursively load custom configuration files defined inside + * other custom configuration files. + * @type String + * @default <code>'<em><CKEditor folder></em>/config.js'</code> + * @example + * // Load a specific configuration file. + * CKEDITOR.replace( 'myfield', { customConfig : '/myconfig.js' } ); + * @example + * // Do not load any custom configuration file. + * CKEDITOR.replace( 'myfield', { customConfig : '' } ); + */ + customConfig : 'config.js', + + /** + * Whether the replaced element (usually a <code><textarea></code>) + * is to be updated automatically when posting the form containing the editor. + * @type Boolean + * @default <code>true</code> + * @example + * config.autoUpdateElement = true; + */ + autoUpdateElement : true, + + /** + * The base href URL used to resolve relative and absolute URLs in the + * editor content. + * @type String + * @default <code>''</code> (empty) + * @example + * config.baseHref = 'http://www.example.com/path/'; + */ + baseHref : '', + + /** + * The CSS file(s) to be used to apply style to editor contents. It should + * reflect the CSS used in the final pages where the contents are to be + * used. + * @type String|Array + * @default <code>'<em><CKEditor folder></em>/contents.css'</code> + * @example + * config.contentsCss = '/css/mysitestyles.css'; + * config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css']; + */ + contentsCss : CKEDITOR.basePath + 'contents.css', + + /** + * The writing direction of the language used to create the editor + * contents. Allowed values are: + * <ul> + * <li><code>'ui'</code> – indicates that content direction will be the same as the user interface language direction;</li> + * <li><code>'ltr'</code> – for Left-To-Right language (like English);</li> + * <li><code>'rtl'</code> – for Right-To-Left languages (like Arabic).</li> + * </ul> + * @default <code>'ui'</code> + * @type String + * @example + * config.contentsLangDirection = 'rtl'; + */ + contentsLangDirection : 'ui', + + /** + * Language code of the writing language which is used to create the editor + * contents. + * @default Same value as editor UI language. + * @type String + * @example + * config.contentsLanguage = 'fr'; + */ + contentsLanguage : '', + + /** + * The user interface language localization to use. If left empty, the editor + * will automatically be localized to the user language. If the user language is not supported, + * the language specified in the <code>{@link CKEDITOR.config.defaultLanguage}</code> + * configuration setting is used. + * @default <code>''</code> (empty) + * @type String + * @example + * // Load the German interface. + * config.language = 'de'; + */ + language : '', + + /** + * The language to be used if the <code>{@link CKEDITOR.config.language}</code> + * setting is left empty and it is not possible to localize the editor to the user language. + * @default <code>'en'</code> + * @type String + * @example + * config.defaultLanguage = 'it'; + */ + defaultLanguage : 'en', + + /** + * Sets the behavior of the <em>Enter</em> key. It also determines other behavior + * rules of the editor, like whether the <code><br></code> element is to be used + * as a paragraph separator when indenting text. + * The allowed values are the following constants that cause the behavior outlined below: + * <ul> + * <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li> + * <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li> + * <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li> + * </ul> + * <strong>Note</strong>: It is recommended to use the + * <code>{@link CKEDITOR.ENTER_P}</code> setting because of its semantic value and + * correctness. The editor is optimized for this setting. + * @type Number + * @default <code>{@link CKEDITOR.ENTER_P}</code> + * @example + * // Not recommended. + * config.enterMode = CKEDITOR.ENTER_BR; + */ + enterMode : CKEDITOR.ENTER_P, + + /** + * Force the use of <code>{@link CKEDITOR.config.enterMode}</code> as line break regardless + * of the context. If, for example, <code>{@link CKEDITOR.config.enterMode}</code> is set + * to <code>{@link CKEDITOR.ENTER_P}</code>, pressing the <em>Enter</em> key inside a + * <code><div></code> element will create a new paragraph with <code><p></code> + * instead of a <code><div></code>. + * @since 3.2.1 + * @type Boolean + * @default <code>false</code> + * @example + * // Not recommended. + * config.forceEnterMode = true; + */ + forceEnterMode : false, + + /** + * Similarly to the <code>{@link CKEDITOR.config.enterMode}</code> setting, it defines the behavior + * of the <em>Shift+Enter</em> key combination. + * The allowed values are the following constants the behavior outlined below: + * <ul> + * <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li> + * <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li> + * <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li> + * </ul> + * @type Number + * @default <code>{@link CKEDITOR.ENTER_BR}</code> + * @example + * config.shiftEnterMode = CKEDITOR.ENTER_P; + */ + shiftEnterMode : CKEDITOR.ENTER_BR, + + /** + * A comma separated list of plugins that are not related to editor + * instances. Reserved for plugins that extend the core code only.<br /><br /> + * + * There are no ways to override this setting except by editing the source + * code of CKEditor (<code>_source/core/config.js</code>). + * @type String + * @example + */ + corePlugins : '', + + /** + * Sets the <code>DOCTYPE</code> to be used when loading the editor content as HTML. + * @type String + * @default <code>'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'</code> + * @example + * // Set the DOCTYPE to the HTML 4 (Quirks) mode. + * config.docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'; + */ + docType : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', + + /** + * Sets the <code>id</code> attribute to be used on the <code>body</code> element + * of the editing area. This can be useful when you intend to reuse the original CSS + * file you are using on your live website and want to assign the editor the same ID + * as the section that will include the contents. In this way ID-specific CSS rules will + * be enabled. + * @since 3.1 + * @type String + * @default <code>''</code> (empty) + * @example + * config.bodyId = 'contents_id'; + */ + bodyId : '', + + /** + * Sets the <code>class</code> attribute to be used on the <code>body</code> element + * of the editing area. This can be useful when you intend to reuse the original CSS + * file you are using on your live website and want to assign the editor the same class + * as the section that will include the contents. In this way class-specific CSS rules will + * be enabled. + * @since 3.1 + * @type String + * @default <code>''</code> (empty) + * @example + * config.bodyClass = 'contents'; + */ + bodyClass : '', + + /** + * Indicates whether the contents to be edited are being input as a full + * HTML page. A full page includes the <code><html></code>, + * <code><head></code>, and <code><body></code> elements. + * The final output will also reflect this setting, including the + * <code><body></code> contents only if this setting is disabled. + * @since 3.1 + * @type Boolean + * @default <code>false</code> + * @example + * config.fullPage = true; + */ + fullPage : false, + + /** + * The height of the editing area (that includes the editor content). This + * can be an integer, for pixel sizes, or any CSS-defined length unit.<br> + * <br> + * <strong>Note:</strong> Percent units (%) are not supported. + * @type Number|String + * @default <code>200</code> + * @example + * config.height = 500; // 500 pixels. + * @example + * config.height = '25em'; // CSS length. + * @example + * config.height = '300px'; // CSS length. + */ + height : 200, + + /** + * Comma separated list of plugins to be loaded and initialized for an editor + * instance. This setting should rarely be changed. It is recommended to use the + * <code>{@link CKEDITOR.config.extraPlugins}</code> and + * <code>{@link CKEDITOR.config.removePlugins}</code> for customization purposes instead. + * @type String + * @example + */ + plugins : + 'about,' + + 'a11yhelp,' + + 'basicstyles,' + + 'bidi,' + + 'blockquote,' + + 'button,' + + 'clipboard,' + + 'colorbutton,' + + 'colordialog,' + + 'contextmenu,' + + 'dialogadvtab,' + + 'div,' + + 'elementspath,' + + 'enterkey,' + + 'entities,' + + 'filebrowser,' + + 'find,' + + 'flash,' + + 'font,' + + 'format,' + + 'forms,' + + 'horizontalrule,' + + 'htmldataprocessor,' + + 'iframe,' + + 'image,' + + 'indent,' + + 'justify,' + + 'keystrokes,' + + 'link,' + + 'list,' + + 'liststyle,' + + 'maximize,' + + 'newpage,' + + 'pagebreak,' + + 'pastefromword,' + + 'pastetext,' + + 'popup,' + + 'preview,' + + 'print,' + + 'removeformat,' + + 'resize,' + + 'save,' + + 'scayt,' + + 'showblocks,' + + 'showborders,' + + 'smiley,' + + 'sourcearea,' + + 'specialchar,' + + 'stylescombo,' + + 'tab,' + + 'table,' + + 'tabletools,' + + 'templates,' + + 'toolbar,' + + 'undo,' + + 'wsc,' + + 'wysiwygarea', + + /** + * A list of additional plugins to be loaded. This setting makes it easier + * to add new plugins without having to touch and potentially break the + * <code>{@link CKEDITOR.config.plugins}</code> setting. + * @type String + * @example + * config.extraPlugins = 'myplugin,anotherplugin'; + */ + extraPlugins : '', + + /** + * A list of plugins that must not be loaded. This setting makes it possible + * to avoid loading some plugins defined in the <code>{@link CKEDITOR.config.plugins}</code> + * setting, without having to touch it and potentially break it. + * @type String + * @example + * config.removePlugins = 'elementspath,save,font'; + */ + removePlugins : '', + + /** + * List of regular expressions to be executed on input HTML, + * indicating HTML source code that when matched, must <strong>not</strong> be available in the WYSIWYG + * mode for editing. + * @type Array + * @default <code>[]</code> (empty array) + * @example + * config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP code + * config.protectedSource.push( /<%[\s\S]*?%>/g ); // ASP code + * config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ); // ASP.Net code + */ + protectedSource : [], + + /** + * The editor <code>tabindex</code> value. + * @type Number + * @default <code>0</code> (zero) + * @example + * config.tabIndex = 1; + */ + tabIndex : 0, + + /** + * The theme to be used to build the user interface. + * @type String + * @default <code>'default'</code> + * @see CKEDITOR.config.skin + * @example + * config.theme = 'default'; + */ + theme : 'default', + + /** + * The skin to load. It may be the name of the skin folder inside the + * editor installation path, or the name and the path separated by a comma. + * @type String + * @default <code>'default'</code> + * @example + * config.skin = 'v2'; + * @example + * config.skin = 'myskin,/customstuff/myskin/'; + */ + skin : 'kama', + + /** + * The editor UI outer width. This can be an integer, for pixel sizes, or + * any CSS-defined unit.<br> + * <br> + * Unlike the <code>{@link CKEDITOR.config.height}</code> setting, this + * one will set the outer width of the entire editor UI, not for the + * editing area only. + * @type String|Number + * @default <code>''</code> (empty) + * @example + * config.width = 850; // 850 pixels wide. + * @example + * config.width = '75%'; // CSS unit. + */ + width : '', + + /** + * The base Z-index for floating dialog windows and popups. + * @type Number + * @default <code>10000</code> + * @example + * config.baseFloatZIndex = 2000 + */ + baseFloatZIndex : 10000 +}; + +/** + * Indicates that some of the editor features, like alignment and text + * direction, should use the "computed value" of the feature to indicate its + * on/off state instead of using the "real value".<br /> + * <br /> + * If enabled in a Left-To-Right written document, the "Left Justify" + * alignment button will be shown as active, even if the alignment style is not + * explicitly applied to the current paragraph in the editor. + * @name CKEDITOR.config.useComputedState + * @type Boolean + * @default <code>true</code> + * @since 3.4 + * @example + * config.useComputedState = false; + */ + +// PACKAGER_RENAME( CKEDITOR.config ) diff --git a/htdocs/includes/ckeditor/_source/core/dataprocessor.js b/htdocs/includes/ckeditor/_source/core/dataprocessor.js new file mode 100644 index 0000000000000000000000000000000000000000..6efe5a43c94442264f6e723ac21ccbe9f098a2e5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dataprocessor.js @@ -0,0 +1,65 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the "virtual" {@link CKEDITOR.dataProcessor} class, which + * defines the basic structure of data processor objects to be + * set to {@link CKEDITOR.editor.dataProcessor}. + */ + +/** + * If defined, points to the data processor which is responsible to translate + * and transform the editor data on input and output. + * Generaly it will point to an instance of {@link CKEDITOR.htmlDataProcessor}, + * which handles HTML data. The editor may also handle other data formats by + * using different data processors provided by specific plugins. + * @name CKEDITOR.editor.prototype.dataProcessor + * @type CKEDITOR.dataProcessor + */ + +/** + * This class is here for documentation purposes only and is not really part of + * the API. It serves as the base ("interface") for data processors + * implementation. + * @name CKEDITOR.dataProcessor + * @class Represents a data processor, which is responsible to translate and + * transform the editor data on input and output. + * @example + */ + +/** + * Transforms input data into HTML to be loaded in the editor. + * While the editor is able to handle non HTML data (like BBCode), at runtime + * it can handle HTML data only. The role of the data processor is transforming + * the input data into HTML through this function. + * @name CKEDITOR.dataProcessor.prototype.toHtml + * @function + * @param {String} data The input data to be transformed. + * @param {String} [fixForBody] The tag name to be used if the data must be + * fixed because it is supposed to be loaded direcly into the <body> + * tag. This is generally not used by non-HTML data processors. + * @example + * // Tranforming BBCode data, having a custom BBCode data processor. + * var data = 'This is [b]an example[/b].'; + * var html = editor.dataProcessor.toHtml( data ); // '<p>This is <b>an example</b>.</p>' + */ + +/** + * Transforms HTML into data to be outputted by the editor, in the format + * expected by the data processor. + * While the editor is able to handle non HTML data (like BBCode), at runtime + * it can handle HTML data only. The role of the data processor is transforming + * the HTML data containined by the editor into a specific data format through + * this function. + * @name CKEDITOR.dataProcessor.prototype.toDataFormat + * @function + * @param {String} html The HTML to be transformed. + * @param {String} fixForBody The tag name to be used if the output data is + * coming from <body> and may be eventually fixed for it. This is + * generally not used by non-HTML data processors. + * // Tranforming into BBCode data, having a custom BBCode data processor. + * var html = '<p>This is <b>an example</b>.</p>'; + * var data = editor.dataProcessor.toDataFormat( html ); // 'This is [b]an example[/b].' + */ diff --git a/htdocs/includes/ckeditor/_source/core/dom.js b/htdocs/includes/ckeditor/_source/core/dom.js new file mode 100644 index 0000000000000000000000000000000000000000..54832d8fdb6d5e8fa2c8949038d2ccb3d5b50317 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom.js @@ -0,0 +1,20 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom} object, which contains DOM + * manipulation objects and function. + */ + +/** + * @namespace DOM manipulation objects, classes and functions. + * @see CKEDITOR.dom.element + * @see CKEDITOR.dom.node + * @example + */ +CKEDITOR.dom = +{}; + +// PACKAGER_RENAME( CKEDITOR.dom ) diff --git a/htdocs/includes/ckeditor/_source/core/dom/comment.js b/htdocs/includes/ckeditor/_source/core/dom/comment.js new file mode 100644 index 0000000000000000000000000000000000000000..05c13cf147ecc3b1539edf7dc6afe48d7f7bbd07 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/comment.js @@ -0,0 +1,44 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.comment} class, which represents + * a DOM comment node. + */ + +/** + * Represents a DOM comment node. + * @constructor + * @augments CKEDITOR.dom.node + * @param {Object|String} comment A native DOM comment node or a string containing + * the text to use to create a new comment node. + * @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain + * the node in case of new node creation. Defaults to the current document. + * @example + * var nativeNode = document.createComment( 'Example' ); + * var comment = CKEDITOR.dom.comment( nativeNode ); + * @example + * var comment = CKEDITOR.dom.comment( 'Example' ); + */ +CKEDITOR.dom.comment = function( comment, ownerDocument ) +{ + if ( typeof comment == 'string' ) + comment = ( ownerDocument ? ownerDocument.$ : document ).createComment( comment ); + + CKEDITOR.dom.domObject.call( this, comment ); +}; + +CKEDITOR.dom.comment.prototype = new CKEDITOR.dom.node(); + +CKEDITOR.tools.extend( CKEDITOR.dom.comment.prototype, + /** @lends CKEDITOR.dom.comment.prototype */ + { + type : CKEDITOR.NODE_COMMENT, + + getOuterHtml : function() + { + return '<!--' + this.$.nodeValue + '-->'; + } + }); diff --git a/htdocs/includes/ckeditor/_source/core/dom/document.js b/htdocs/includes/ckeditor/_source/core/dom/document.js new file mode 100644 index 0000000000000000000000000000000000000000..0b421183e538cb3bb74f6808c1fd43d85f18b60b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/document.js @@ -0,0 +1,251 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.document} class, which + * represents a DOM document. + */ + +/** + * Represents a DOM document. + * @constructor + * @augments CKEDITOR.dom.domObject + * @param {Object} domDocument A native DOM document. + * @example + * var document = new CKEDITOR.dom.document( document ); + */ +CKEDITOR.dom.document = function( domDocument ) +{ + CKEDITOR.dom.domObject.call( this, domDocument ); +}; + +// PACKAGER_RENAME( CKEDITOR.dom.document ) + +CKEDITOR.dom.document.prototype = new CKEDITOR.dom.domObject(); + +CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype, + /** @lends CKEDITOR.dom.document.prototype */ + { + /** + * Appends a CSS file to the document. + * @param {String} cssFileUrl The CSS file URL. + * @example + * <b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>; + */ + appendStyleSheet : function( cssFileUrl ) + { + if ( this.$.createStyleSheet ) + this.$.createStyleSheet( cssFileUrl ); + else + { + var link = new CKEDITOR.dom.element( 'link' ); + link.setAttributes( + { + rel :'stylesheet', + type : 'text/css', + href : cssFileUrl + }); + + this.getHead().append( link ); + } + }, + + appendStyleText : function( cssStyleText ) + { + if ( this.$.createStyleSheet ) + { + var styleSheet = this.$.createStyleSheet( "" ); + styleSheet.cssText = cssStyleText ; + } + else + { + var style = new CKEDITOR.dom.element( 'style', this ); + style.append( new CKEDITOR.dom.text( cssStyleText, this ) ); + this.getHead().append( style ); + } + }, + + createElement : function( name, attribsAndStyles ) + { + var element = new CKEDITOR.dom.element( name, this ); + + if ( attribsAndStyles ) + { + if ( attribsAndStyles.attributes ) + element.setAttributes( attribsAndStyles.attributes ); + + if ( attribsAndStyles.styles ) + element.setStyles( attribsAndStyles.styles ); + } + + return element; + }, + + createText : function( text ) + { + return new CKEDITOR.dom.text( text, this ); + }, + + focus : function() + { + this.getWindow().focus(); + }, + + /** + * Gets and element based on its id. + * @param {String} elementId The element id. + * @returns {CKEDITOR.dom.element} The element instance, or null if not found. + * @example + * var element = <b>CKEDITOR.document.getById( 'myElement' )</b>; + * alert( element.getId() ); // "myElement" + */ + getById : function( elementId ) + { + var $ = this.$.getElementById( elementId ); + return $ ? new CKEDITOR.dom.element( $ ) : null; + }, + + getByAddress : function( address, normalized ) + { + var $ = this.$.documentElement; + + for ( var i = 0 ; $ && i < address.length ; i++ ) + { + var target = address[ i ]; + + if ( !normalized ) + { + $ = $.childNodes[ target ]; + continue; + } + + var currentIndex = -1; + + for (var j = 0 ; j < $.childNodes.length ; j++ ) + { + var candidate = $.childNodes[ j ]; + + if ( normalized === true && + candidate.nodeType == 3 && + candidate.previousSibling && + candidate.previousSibling.nodeType == 3 ) + { + continue; + } + + currentIndex++; + + if ( currentIndex == target ) + { + $ = candidate; + break; + } + } + } + + return $ ? new CKEDITOR.dom.node( $ ) : null; + }, + + getElementsByTag : function( tagName, namespace ) + { + if ( !( CKEDITOR.env.ie && ! ( document.documentMode > 8 ) ) && namespace ) + tagName = namespace + ':' + tagName; + return new CKEDITOR.dom.nodeList( this.$.getElementsByTagName( tagName ) ); + }, + + /** + * Gets the <head> element for this document. + * @returns {CKEDITOR.dom.element} The <head> element. + * @example + * var element = <b>CKEDITOR.document.getHead()</b>; + * alert( element.getName() ); // "head" + */ + getHead : function() + { + var head = this.$.getElementsByTagName( 'head' )[0]; + if ( !head ) + head = this.getDocumentElement().append( new CKEDITOR.dom.element( 'head' ), true ); + else + head = new CKEDITOR.dom.element( head ); + + return ( + this.getHead = function() + { + return head; + })(); + }, + + /** + * Gets the <body> element for this document. + * @returns {CKEDITOR.dom.element} The <body> element. + * @example + * var element = <b>CKEDITOR.document.getBody()</b>; + * alert( element.getName() ); // "body" + */ + getBody : function() + { + var body = new CKEDITOR.dom.element( this.$.body ); + + return ( + this.getBody = function() + { + return body; + })(); + }, + + /** + * Gets the DOM document element for this document. + * @returns {CKEDITOR.dom.element} The DOM document element. + */ + getDocumentElement : function() + { + var documentElement = new CKEDITOR.dom.element( this.$.documentElement ); + + return ( + this.getDocumentElement = function() + { + return documentElement; + })(); + }, + + /** + * Gets the window object that holds this document. + * @returns {CKEDITOR.dom.window} The window object. + */ + getWindow : function() + { + var win = new CKEDITOR.dom.window( this.$.parentWindow || this.$.defaultView ); + + return ( + this.getWindow = function() + { + return win; + })(); + }, + + /** + * Defines the document contents through document.write. Note that the + * previous document contents will be lost (cleaned). + * @since 3.5 + * @param {String} html The HTML defining the document contents. + * @example + * document.write( + * '<html>' + + * '<head><title>Sample Doc</title></head>' + + * '<body>Document contents created by code</body>' + + * '</html>' ); + */ + write : function( html ) + { + // Don't leave any history log in IE. (#5657) + this.$.open( 'text/html', 'replace' ); + + // Support for custom document.domain in IE. + CKEDITOR.env.isCustomDomain() && ( this.$.domain = document.domain ); + + this.$.write( html ); + this.$.close(); + } + }); diff --git a/htdocs/includes/ckeditor/_source/core/dom/documentfragment.js b/htdocs/includes/ckeditor/_source/core/dom/documentfragment.js new file mode 100644 index 0000000000000000000000000000000000000000..c08c640efbe754602c4d5433da643906322a3ae1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/documentfragment.js @@ -0,0 +1,49 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @class DocumentFragment is a "lightweight" or "minimal" Document object. It is + * commonly used to extract a portion of a document's tree or to create a new + * fragment of a document. Various operations may take DocumentFragment objects + * as arguments and results in all the child nodes of the DocumentFragment being + * moved to the child list of this node. + * @param {Object} ownerDocument + */ +CKEDITOR.dom.documentFragment = function( ownerDocument ) +{ + ownerDocument = ownerDocument || CKEDITOR.document; + this.$ = ownerDocument.$.createDocumentFragment(); +}; + +CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype, + CKEDITOR.dom.element.prototype, + { + type : CKEDITOR.NODE_DOCUMENT_FRAGMENT, + insertAfterNode : function( node ) + { + node = node.$; + node.parentNode.insertBefore( this.$, node.nextSibling ); + } + }, + true, + { + 'append' : 1, + 'appendBogus' : 1, + 'getFirst' : 1, + 'getLast' : 1, + 'appendTo' : 1, + 'moveChildren' : 1, + 'insertBefore' : 1, + 'insertAfterNode' : 1, + 'replace' : 1, + 'trim' : 1, + 'type' : 1, + 'ltrim' : 1, + 'rtrim' : 1, + 'getDocument' : 1, + 'getChildCount' : 1, + 'getChild' : 1, + 'getChildren' : 1 + } ); diff --git a/htdocs/includes/ckeditor/_source/core/dom/domobject.js b/htdocs/includes/ckeditor/_source/core/dom/domobject.js new file mode 100644 index 0000000000000000000000000000000000000000..e342dc893b13372b4a3fecff0f8587f3c4e5b312 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/domobject.js @@ -0,0 +1,258 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.editor} class, which is the base + * for other classes representing DOM objects. + */ + +/** + * Represents a DOM object. This class is not intended to be used directly. It + * serves as the base class for other classes representing specific DOM + * objects. + * @constructor + * @param {Object} nativeDomObject A native DOM object. + * @augments CKEDITOR.event + * @example + */ +CKEDITOR.dom.domObject = function( nativeDomObject ) +{ + if ( nativeDomObject ) + { + /** + * The native DOM object represented by this class instance. + * @type Object + * @example + * var element = new CKEDITOR.dom.element( 'span' ); + * alert( element.$.nodeType ); // "1" + */ + this.$ = nativeDomObject; + } +}; + +CKEDITOR.dom.domObject.prototype = (function() +{ + // Do not define other local variables here. We want to keep the native + // listener closures as clean as possible. + + var getNativeListener = function( domObject, eventName ) + { + return function( domEvent ) + { + // In FF, when reloading the page with the editor focused, it may + // throw an error because the CKEDITOR global is not anymore + // available. So, we check it here first. (#2923) + if ( typeof CKEDITOR != 'undefined' ) + domObject.fire( eventName, new CKEDITOR.dom.event( domEvent ) ); + }; + }; + + return /** @lends CKEDITOR.dom.domObject.prototype */ { + + getPrivate : function() + { + var priv; + + // Get the main private function from the custom data. Create it if not + // defined. + if ( !( priv = this.getCustomData( '_' ) ) ) + this.setCustomData( '_', ( priv = {} ) ); + + return priv; + }, + + /** @ignore */ + on : function( eventName ) + { + // We customize the "on" function here. The basic idea is that we'll have + // only one listener for a native event, which will then call all listeners + // set to the event. + + // Get the listeners holder object. + var nativeListeners = this.getCustomData( '_cke_nativeListeners' ); + + if ( !nativeListeners ) + { + nativeListeners = {}; + this.setCustomData( '_cke_nativeListeners', nativeListeners ); + } + + // Check if we have a listener for that event. + if ( !nativeListeners[ eventName ] ) + { + var listener = nativeListeners[ eventName ] = getNativeListener( this, eventName ); + + if ( this.$.addEventListener ) + this.$.addEventListener( eventName, listener, !!CKEDITOR.event.useCapture ); + else if ( this.$.attachEvent ) + this.$.attachEvent( 'on' + eventName, listener ); + } + + // Call the original implementation. + return CKEDITOR.event.prototype.on.apply( this, arguments ); + }, + + /** @ignore */ + removeListener : function( eventName ) + { + // Call the original implementation. + CKEDITOR.event.prototype.removeListener.apply( this, arguments ); + + // If we don't have listeners for this event, clean the DOM up. + if ( !this.hasListeners( eventName ) ) + { + var nativeListeners = this.getCustomData( '_cke_nativeListeners' ); + var listener = nativeListeners && nativeListeners[ eventName ]; + if ( listener ) + { + if ( this.$.removeEventListener ) + this.$.removeEventListener( eventName, listener, false ); + else if ( this.$.detachEvent ) + this.$.detachEvent( 'on' + eventName, listener ); + + delete nativeListeners[ eventName ]; + } + } + }, + + /** + * Removes any listener set on this object. + * To avoid memory leaks we must assure that there are no + * references left after the object is no longer needed. + */ + removeAllListeners : function() + { + var nativeListeners = this.getCustomData( '_cke_nativeListeners' ); + for ( var eventName in nativeListeners ) + { + var listener = nativeListeners[ eventName ]; + if ( this.$.detachEvent ) + this.$.detachEvent( 'on' + eventName, listener ); + else if ( this.$.removeEventListener ) + this.$.removeEventListener( eventName, listener, false ); + + delete nativeListeners[ eventName ]; + } + } + }; +})(); + +(function( domObjectProto ) +{ + var customData = {}; + + CKEDITOR.on( 'reset', function() + { + customData = {}; + }); + + /** + * Determines whether the specified object is equal to the current object. + * @name CKEDITOR.dom.domObject.prototype.equals + * @function + * @param {Object} object The object to compare with the current object. + * @returns {Boolean} "true" if the object is equal. + * @example + * var doc = new CKEDITOR.dom.document( document ); + * alert( doc.equals( CKEDITOR.document ) ); // "true" + * alert( doc == CKEDITOR.document ); // "false" + */ + domObjectProto.equals = function( object ) + { + return ( object && object.$ === this.$ ); + }; + + /** + * Sets a data slot value for this object. These values are shared by all + * instances pointing to that same DOM object. + * <strong>Note:</strong> The created data slot is only guarantied to be available on this unique dom node, + * thus any wish to continue access it from other element clones (either created by clone node or from innerHtml) + * will fail, for such usage, please use {@link CKEDITOR.dom.element::setAttribute} instead. + * @name CKEDITOR.dom.domObject.prototype.setCustomData + * @function + * @param {String} key A key used to identify the data slot. + * @param {Object} value The value to set to the data slot. + * @returns {CKEDITOR.dom.domObject} This DOM object instance. + * @see CKEDITOR.dom.domObject.prototype.getCustomData + * @example + * var element = new CKEDITOR.dom.element( 'span' ); + * element.setCustomData( 'hasCustomData', true ); + */ + domObjectProto.setCustomData = function( key, value ) + { + var expandoNumber = this.getUniqueId(), + dataSlot = customData[ expandoNumber ] || ( customData[ expandoNumber ] = {} ); + + dataSlot[ key ] = value; + + return this; + }; + + /** + * Gets the value set to a data slot in this object. + * @name CKEDITOR.dom.domObject.prototype.getCustomData + * @function + * @param {String} key The key used to identify the data slot. + * @returns {Object} This value set to the data slot. + * @see CKEDITOR.dom.domObject.prototype.setCustomData + * @example + * var element = new CKEDITOR.dom.element( 'span' ); + * alert( element.getCustomData( 'hasCustomData' ) ); // e.g. 'true' + */ + domObjectProto.getCustomData = function( key ) + { + var expandoNumber = this.$[ 'data-cke-expando' ], + dataSlot = expandoNumber && customData[ expandoNumber ]; + + return dataSlot && dataSlot[ key ]; + }; + + /** + * @name CKEDITOR.dom.domObject.prototype.removeCustomData + */ + domObjectProto.removeCustomData = function( key ) + { + var expandoNumber = this.$[ 'data-cke-expando' ], + dataSlot = expandoNumber && customData[ expandoNumber ], + retval = dataSlot && dataSlot[ key ]; + + if ( typeof retval != 'undefined' ) + delete dataSlot[ key ]; + + return retval || null; + }; + + /** + * Removes any data stored on this object. + * To avoid memory leaks we must assure that there are no + * references left after the object is no longer needed. + * @name CKEDITOR.dom.domObject.prototype.clearCustomData + * @function + */ + domObjectProto.clearCustomData = function() + { + // Clear all event listeners + this.removeAllListeners(); + + var expandoNumber = this.$[ 'data-cke-expando' ]; + expandoNumber && delete customData[ expandoNumber ]; + }; + + /** + * Gets an ID that can be used to identiquely identify this DOM object in + * the running session. + * @name CKEDITOR.dom.domObject.prototype.getUniqueId + * @function + * @returns {Number} A unique ID. + */ + domObjectProto.getUniqueId = function() + { + return this.$[ 'data-cke-expando' ] || ( this.$[ 'data-cke-expando' ] = CKEDITOR.tools.getNextNumber() ); + }; + + // Implement CKEDITOR.event. + CKEDITOR.event.implementOn( domObjectProto ); + +})( CKEDITOR.dom.domObject.prototype ); diff --git a/htdocs/includes/ckeditor/_source/core/dom/element.js b/htdocs/includes/ckeditor/_source/core/dom/element.js new file mode 100644 index 0000000000000000000000000000000000000000..84498ba72b4080b372777ac9cfe8155f12826e87 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/element.js @@ -0,0 +1,1806 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.element} class, which + * represents a DOM element. + */ + +/** + * Represents a DOM element. + * @constructor + * @augments CKEDITOR.dom.node + * @param {Object|String} element A native DOM element or the element name for + * new elements. + * @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain + * the element in case of element creation. + * @example + * // Create a new <span> element. + * var element = new CKEDITOR.dom.element( 'span' ); + * @example + * // Create an element based on a native DOM element. + * var element = new CKEDITOR.dom.element( document.getElementById( 'myId' ) ); + */ +CKEDITOR.dom.element = function( element, ownerDocument ) +{ + if ( typeof element == 'string' ) + element = ( ownerDocument ? ownerDocument.$ : document ).createElement( element ); + + // Call the base constructor (we must not call CKEDITOR.dom.node). + CKEDITOR.dom.domObject.call( this, element ); +}; + +// PACKAGER_RENAME( CKEDITOR.dom.element ) + +/** + * The the {@link CKEDITOR.dom.element} representing and element. If the + * element is a native DOM element, it will be transformed into a valid + * CKEDITOR.dom.element object. + * @returns {CKEDITOR.dom.element} The transformed element. + * @example + * var element = new CKEDITOR.dom.element( 'span' ); + * alert( element == <b>CKEDITOR.dom.element.get( element )</b> ); "true" + * @example + * var element = document.getElementById( 'myElement' ); + * alert( <b>CKEDITOR.dom.element.get( element )</b>.getName() ); e.g. "p" + */ +CKEDITOR.dom.element.get = function( element ) +{ + return element && ( element.$ ? element : new CKEDITOR.dom.element( element ) ); +}; + +CKEDITOR.dom.element.prototype = new CKEDITOR.dom.node(); + +/** + * Creates an instance of the {@link CKEDITOR.dom.element} class based on the + * HTML representation of an element. + * @param {String} html The element HTML. It should define only one element in + * the "root" level. The "root" element can have child nodes, but not + * siblings. + * @returns {CKEDITOR.dom.element} The element instance. + * @example + * var element = <b>CKEDITOR.dom.element.createFromHtml( '<strong class="anyclass">My element</strong>' )</b>; + * alert( element.getName() ); // "strong" + */ +CKEDITOR.dom.element.createFromHtml = function( html, ownerDocument ) +{ + var temp = new CKEDITOR.dom.element( 'div', ownerDocument ); + temp.setHtml( html ); + + // When returning the node, remove it from its parent to detach it. + return temp.getFirst().remove(); +}; + +CKEDITOR.dom.element.setMarker = function( database, element, name, value ) +{ + var id = element.getCustomData( 'list_marker_id' ) || + ( element.setCustomData( 'list_marker_id', CKEDITOR.tools.getNextNumber() ).getCustomData( 'list_marker_id' ) ), + markerNames = element.getCustomData( 'list_marker_names' ) || + ( element.setCustomData( 'list_marker_names', {} ).getCustomData( 'list_marker_names' ) ); + database[id] = element; + markerNames[name] = 1; + + return element.setCustomData( name, value ); +}; + +CKEDITOR.dom.element.clearAllMarkers = function( database ) +{ + for ( var i in database ) + CKEDITOR.dom.element.clearMarkers( database, database[i], 1 ); +}; + +CKEDITOR.dom.element.clearMarkers = function( database, element, removeFromDatabase ) +{ + var names = element.getCustomData( 'list_marker_names' ), + id = element.getCustomData( 'list_marker_id' ); + for ( var i in names ) + element.removeCustomData( i ); + element.removeCustomData( 'list_marker_names' ); + if ( removeFromDatabase ) + { + element.removeCustomData( 'list_marker_id' ); + delete database[id]; + } +}; + +CKEDITOR.tools.extend( CKEDITOR.dom.element.prototype, + /** @lends CKEDITOR.dom.element.prototype */ + { + /** + * The node type. This is a constant value set to + * {@link CKEDITOR.NODE_ELEMENT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_ELEMENT, + + /** + * Adds a CSS class to the element. It appends the class to the + * already existing names. + * @param {String} className The name of the class to be added. + * @example + * var element = new CKEDITOR.dom.element( 'div' ); + * element.addClass( 'classA' ); // <div class="classA"> + * element.addClass( 'classB' ); // <div class="classA classB"> + * element.addClass( 'classA' ); // <div class="classA classB"> + */ + addClass : function( className ) + { + var c = this.$.className; + if ( c ) + { + var regex = new RegExp( '(?:^|\\s)' + className + '(?:\\s|$)', '' ); + if ( !regex.test( c ) ) + c += ' ' + className; + } + this.$.className = c || className; + }, + + /** + * Removes a CSS class name from the elements classes. Other classes + * remain untouched. + * @param {String} className The name of the class to remove. + * @example + * var element = new CKEDITOR.dom.element( 'div' ); + * element.addClass( 'classA' ); // <div class="classA"> + * element.addClass( 'classB' ); // <div class="classA classB"> + * element.removeClass( 'classA' ); // <div class="classB"> + * element.removeClass( 'classB' ); // <div> + */ + removeClass : function( className ) + { + var c = this.getAttribute( 'class' ); + if ( c ) + { + var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', 'i' ); + if ( regex.test( c ) ) + { + c = c.replace( regex, '' ).replace( /^\s+/, '' ); + + if ( c ) + this.setAttribute( 'class', c ); + else + this.removeAttribute( 'class' ); + } + } + }, + + hasClass : function( className ) + { + var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', '' ); + return regex.test( this.getAttribute('class') ); + }, + + /** + * Append a node as a child of this element. + * @param {CKEDITOR.dom.node|String} node The node or element name to be + * appended. + * @param {Boolean} [toStart] Indicates that the element is to be + * appended at the start. + * @returns {CKEDITOR.dom.node} The appended node. + * @example + * var p = new CKEDITOR.dom.element( 'p' ); + * + * var strong = new CKEDITOR.dom.element( 'strong' ); + * <b>p.append( strong );</b> + * + * var em = <b>p.append( 'em' );</b> + * + * // result: "<p><strong></strong><em></em></p>" + */ + append : function( node, toStart ) + { + if ( typeof node == 'string' ) + node = this.getDocument().createElement( node ); + + if ( toStart ) + this.$.insertBefore( node.$, this.$.firstChild ); + else + this.$.appendChild( node.$ ); + + return node; + }, + + appendHtml : function( html ) + { + if ( !this.$.childNodes.length ) + this.setHtml( html ); + else + { + var temp = new CKEDITOR.dom.element( 'div', this.getDocument() ); + temp.setHtml( html ); + temp.moveChildren( this ); + } + }, + + /** + * Append text to this element. + * @param {String} text The text to be appended. + * @returns {CKEDITOR.dom.node} The appended node. + * @example + * var p = new CKEDITOR.dom.element( 'p' ); + * p.appendText( 'This is' ); + * p.appendText( ' some text' ); + * + * // result: "<p>This is some text</p>" + */ + appendText : function( text ) + { + if ( this.$.text != undefined ) + this.$.text += text; + else + this.append( new CKEDITOR.dom.text( text ) ); + }, + + appendBogus : function() + { + var lastChild = this.getLast() ; + + // Ignore empty/spaces text. + while ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.rtrim( lastChild.getText() ) ) + lastChild = lastChild.getPrevious(); + if ( !lastChild || !lastChild.is || !lastChild.is( 'br' ) ) + { + var bogus = CKEDITOR.env.opera ? + this.getDocument().createText('') : + this.getDocument().createElement( 'br' ); + + CKEDITOR.env.gecko && bogus.setAttribute( 'type', '_moz' ); + + this.append( bogus ); + } + }, + + /** + * Breaks one of the ancestor element in the element position, moving + * this element between the broken parts. + * @param {CKEDITOR.dom.element} parent The anscestor element to get broken. + * @example + * // Before breaking: + * // <b>This <i>is some<span /> sample</i> test text</b> + * // If "element" is <span /> and "parent" is <i>: + * // <b>This <i>is some</i><span /><i> sample</i> test text</b> + * element.breakParent( parent ); + * @example + * // Before breaking: + * // <b>This <i>is some<span /> sample</i> test text</b> + * // If "element" is <span /> and "parent" is <b>: + * // <b>This <i>is some</i></b><span /><b><i> sample</i> test text</b> + * element.breakParent( parent ); + */ + breakParent : function( parent ) + { + var range = new CKEDITOR.dom.range( this.getDocument() ); + + // We'll be extracting part of this element, so let's use our + // range to get the correct piece. + range.setStartAfter( this ); + range.setEndAfter( parent ); + + // Extract it. + var docFrag = range.extractContents(); + + // Move the element outside the broken element. + range.insertNode( this.remove() ); + + // Re-insert the extracted piece after the element. + docFrag.insertAfterNode( this ); + }, + + contains : + CKEDITOR.env.ie || CKEDITOR.env.webkit ? + function( node ) + { + var $ = this.$; + + return node.type != CKEDITOR.NODE_ELEMENT ? + $.contains( node.getParent().$ ) : + $ != node.$ && $.contains( node.$ ); + } + : + function( node ) + { + return !!( this.$.compareDocumentPosition( node.$ ) & 16 ); + }, + + /** + * Moves the selection focus to this element. + * @function + * @param {Boolean} defer Whether to asynchronously defer the + * execution by 100 ms. + * @example + * var element = CKEDITOR.document.getById( 'myTextarea' ); + * <b>element.focus()</b>; + */ + focus : ( function() + { + function exec() + { + // IE throws error if the element is not visible. + try + { + this.$.focus(); + } + catch (e) + {} + } + + return function( defer ) + { + if ( defer ) + CKEDITOR.tools.setTimeout( exec, 100, this ); + else + exec.call( this ); + }; + })(), + + /** + * Gets the inner HTML of this element. + * @returns {String} The inner HTML of this element. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b></div>' ); + * alert( <b>p.getHtml()</b> ); // "<b>Example</b>" + */ + getHtml : function() + { + var retval = this.$.innerHTML; + // Strip <?xml:namespace> tags in IE. (#3341). + return CKEDITOR.env.ie ? retval.replace( /<\?[^>]*>/g, '' ) : retval; + }, + + getOuterHtml : function() + { + if ( this.$.outerHTML ) + { + // IE includes the <?xml:namespace> tag in the outerHTML of + // namespaced element. So, we must strip it here. (#3341) + return this.$.outerHTML.replace( /<\?[^>]*>/, '' ); + } + + var tmpDiv = this.$.ownerDocument.createElement( 'div' ); + tmpDiv.appendChild( this.$.cloneNode( true ) ); + return tmpDiv.innerHTML; + }, + + /** + * Sets the inner HTML of this element. + * @param {String} html The HTML to be set for this element. + * @returns {String} The inserted HTML. + * @example + * var p = new CKEDITOR.dom.element( 'p' ); + * <b>p.setHtml( '<b>Inner</b> HTML' );</b> + * + * // result: "<p><b>Inner</b> HTML</p>" + */ + setHtml : function( html ) + { + return ( this.$.innerHTML = html ); + }, + + /** + * Sets the element contents as plain text. + * @param {String} text The text to be set. + * @returns {String} The inserted text. + * @example + * var element = new CKEDITOR.dom.element( 'div' ); + * element.setText( 'A > B & C < D' ); + * alert( element.innerHTML ); // "A &gt; B &amp; C &lt; D" + */ + setText : function( text ) + { + CKEDITOR.dom.element.prototype.setText = ( this.$.innerText != undefined ) ? + function ( text ) + { + return this.$.innerText = text; + } : + function ( text ) + { + return this.$.textContent = text; + }; + + return this.setText( text ); + }, + + /** + * Gets the value of an element attribute. + * @function + * @param {String} name The attribute name. + * @returns {String} The attribute value or null if not defined. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<input type="text" />' ); + * alert( <b>element.getAttribute( 'type' )</b> ); // "text" + */ + getAttribute : (function() + { + var standard = function( name ) + { + return this.$.getAttribute( name, 2 ); + }; + + if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) + { + return function( name ) + { + switch ( name ) + { + case 'class': + name = 'className'; + break; + + case 'http-equiv': + name = 'httpEquiv'; + break; + + case 'name': + return this.$.name; + + case 'tabindex': + var tabIndex = standard.call( this, name ); + + // IE returns tabIndex=0 by default for all + // elements. For those elements, + // getAtrribute( 'tabindex', 2 ) returns 32768 + // instead. So, we must make this check to give a + // uniform result among all browsers. + if ( tabIndex !== 0 && this.$.tabIndex === 0 ) + tabIndex = null; + + return tabIndex; + break; + + case 'checked': + { + var attr = this.$.attributes.getNamedItem( name ), + attrValue = attr.specified ? attr.nodeValue // For value given by parser. + : this.$.checked; // For value created via DOM interface. + + return attrValue ? 'checked' : null; + } + + case 'hspace': + case 'value': + return this.$[ name ]; + + case 'style': + // IE does not return inline styles via getAttribute(). See #2947. + return this.$.style.cssText; + + case 'contenteditable': + case 'contentEditable': + return this.$.attributes.getNamedItem( 'contentEditable' ).specified ? + this.$.getAttribute( 'contentEditable' ) : null; + } + + return standard.call( this, name ); + }; + } + else + return standard; + })(), + + getChildren : function() + { + return new CKEDITOR.dom.nodeList( this.$.childNodes ); + }, + + /** + * Gets the current computed value of one of the element CSS style + * properties. + * @function + * @param {String} propertyName The style property name. + * @returns {String} The property value. + * @example + * var element = new CKEDITOR.dom.element( 'span' ); + * alert( <b>element.getComputedStyle( 'display' )</b> ); // "inline" + */ + getComputedStyle : + CKEDITOR.env.ie ? + function( propertyName ) + { + return this.$.currentStyle[ CKEDITOR.tools.cssStyleToDomStyle( propertyName ) ]; + } + : + function( propertyName ) + { + return this.getWindow().$.getComputedStyle( this.$, '' ).getPropertyValue( propertyName ); + }, + + /** + * Gets the DTD entries for this element. + * @returns {Object} An object containing the list of elements accepted + * by this element. + */ + getDtd : function() + { + var dtd = CKEDITOR.dtd[ this.getName() ]; + + this.getDtd = function() + { + return dtd; + }; + + return dtd; + }, + + getElementsByTag : CKEDITOR.dom.document.prototype.getElementsByTag, + + /** + * Gets the computed tabindex for this element. + * @function + * @returns {Number} The tabindex value. + * @example + * var element = CKEDITOR.document.getById( 'myDiv' ); + * alert( <b>element.getTabIndex()</b> ); // e.g. "-1" + */ + getTabIndex : + CKEDITOR.env.ie ? + function() + { + var tabIndex = this.$.tabIndex; + + // IE returns tabIndex=0 by default for all elements. In + // those cases we must check that the element really has + // the tabindex attribute set to zero, or it is one of + // those element that should have zero by default. + if ( tabIndex === 0 && !CKEDITOR.dtd.$tabIndex[ this.getName() ] && parseInt( this.getAttribute( 'tabindex' ), 10 ) !== 0 ) + tabIndex = -1; + + return tabIndex; + } + : CKEDITOR.env.webkit ? + function() + { + var tabIndex = this.$.tabIndex; + + // Safari returns "undefined" for elements that should not + // have tabindex (like a div). So, we must try to get it + // from the attribute. + // https://bugs.webkit.org/show_bug.cgi?id=20596 + if ( tabIndex == undefined ) + { + tabIndex = parseInt( this.getAttribute( 'tabindex' ), 10 ); + + // If the element don't have the tabindex attribute, + // then we should return -1. + if ( isNaN( tabIndex ) ) + tabIndex = -1; + } + + return tabIndex; + } + : + function() + { + return this.$.tabIndex; + }, + + /** + * Gets the text value of this element. + * + * Only in IE (which uses innerText), <br> will cause linebreaks, + * and sucessive whitespaces (including line breaks) will be reduced to + * a single space. This behavior is ok for us, for now. It may change + * in the future. + * @returns {String} The text value. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div>Sample <i>text</i>.</div>' ); + * alert( <b>element.getText()</b> ); // "Sample text." + */ + getText : function() + { + return this.$.textContent || this.$.innerText || ''; + }, + + /** + * Gets the window object that contains this element. + * @returns {CKEDITOR.dom.window} The window object. + * @example + */ + getWindow : function() + { + return this.getDocument().getWindow(); + }, + + /** + * Gets the value of the "id" attribute of this element. + * @returns {String} The element id, or null if not available. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<p id="myId"></p>' ); + * alert( <b>element.getId()</b> ); // "myId" + */ + getId : function() + { + return this.$.id || null; + }, + + /** + * Gets the value of the "name" attribute of this element. + * @returns {String} The element name, or null if not available. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<input name="myName"></input>' ); + * alert( <b>element.getNameAtt()</b> ); // "myName" + */ + getNameAtt : function() + { + return this.$.name || null; + }, + + /** + * Gets the element name (tag name). The returned name is guaranteed to + * be always full lowercased. + * @returns {String} The element name. + * @example + * var element = new CKEDITOR.dom.element( 'span' ); + * alert( <b>element.getName()</b> ); // "span" + */ + getName : function() + { + // Cache the lowercased name inside a closure. + var nodeName = this.$.nodeName.toLowerCase(); + + if ( CKEDITOR.env.ie && ! ( document.documentMode > 8 ) ) + { + var scopeName = this.$.scopeName; + if ( scopeName != 'HTML' ) + nodeName = scopeName.toLowerCase() + ':' + nodeName; + } + + return ( + this.getName = function() + { + return nodeName; + })(); + }, + + /** + * Gets the value set to this element. This value is usually available + * for form field elements. + * @returns {String} The element value. + */ + getValue : function() + { + return this.$.value; + }, + + /** + * Gets the first child node of this element. + * @param {Function} evaluator Filtering the result node. + * @returns {CKEDITOR.dom.node} The first child node or null if not + * available. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b></div>' ); + * var first = <b>element.getFirst()</b>; + * alert( first.getName() ); // "b" + */ + getFirst : function( evaluator ) + { + var first = this.$.firstChild, + retval = first && new CKEDITOR.dom.node( first ); + if ( retval && evaluator && !evaluator( retval ) ) + retval = retval.getNext( evaluator ); + + return retval; + }, + + /** + * @param {Function} evaluator Filtering the result node. + */ + getLast : function( evaluator ) + { + var last = this.$.lastChild, + retval = last && new CKEDITOR.dom.node( last ); + if ( retval && evaluator && !evaluator( retval ) ) + retval = retval.getPrevious( evaluator ); + + return retval; + }, + + getStyle : function( name ) + { + return this.$.style[ CKEDITOR.tools.cssStyleToDomStyle( name ) ]; + }, + + /** + * Checks if the element name matches one or more names. + * @param {String} name[,name[,...]] One or more names to be checked. + * @returns {Boolean} true if the element name matches any of the names. + * @example + * var element = new CKEDITOR.element( 'span' ); + * alert( <b>element.is( 'span' )</b> ); "true" + * alert( <b>element.is( 'p', 'span' )</b> ); "true" + * alert( <b>element.is( 'p' )</b> ); "false" + * alert( <b>element.is( 'p', 'div' )</b> ); "false" + */ + is : function() + { + var name = this.getName(); + for ( var i = 0 ; i < arguments.length ; i++ ) + { + if ( arguments[ i ] == name ) + return true; + } + return false; + }, + + /** + * Decide whether one element is able to receive cursor. + * @param {Boolean} [textCursor=true] Only consider element that could receive text child. + */ + isEditable : function( textCursor ) + { + var name = this.getName(); + + if ( this.isReadOnly() + || this.getComputedStyle( 'display' ) == 'none' + || this.getComputedStyle( 'visibility' ) == 'hidden' + || this.is( 'a' ) && this.data( 'cke-saved-name' ) && !this.getChildCount() + || CKEDITOR.dtd.$nonEditable[ name ] + || CKEDITOR.dtd.$empty[ name ] ) + { + return false; + } + + if ( textCursor !== false ) + { + // Get the element DTD (defaults to span for unknown elements). + var dtd = CKEDITOR.dtd[ name ] || CKEDITOR.dtd.span; + // In the DTD # == text node. + return ( dtd && dtd[ '#'] ); + } + + return true; + }, + + isIdentical : function( otherElement ) + { + if ( this.getName() != otherElement.getName() ) + return false; + + var thisAttribs = this.$.attributes, + otherAttribs = otherElement.$.attributes; + + var thisLength = thisAttribs.length, + otherLength = otherAttribs.length; + + for ( var i = 0 ; i < thisLength ; i++ ) + { + var attribute = thisAttribs[ i ]; + + if ( attribute.nodeName == '_moz_dirty' ) + continue; + + if ( ( !CKEDITOR.env.ie || ( attribute.specified && attribute.nodeName != 'data-cke-expando' ) ) && attribute.nodeValue != otherElement.getAttribute( attribute.nodeName ) ) + return false; + } + + // For IE, we have to for both elements, because it's difficult to + // know how the atttibutes collection is organized in its DOM. + if ( CKEDITOR.env.ie ) + { + for ( i = 0 ; i < otherLength ; i++ ) + { + attribute = otherAttribs[ i ]; + if ( attribute.specified && attribute.nodeName != 'data-cke-expando' + && attribute.nodeValue != this.getAttribute( attribute.nodeName ) ) + return false; + } + } + + return true; + }, + + /** + * Checks if this element is visible. May not work if the element is + * child of an element with visibility set to "hidden", but works well + * on the great majority of cases. + * @return {Boolean} True if the element is visible. + */ + isVisible : function() + { + var isVisible = ( this.$.offsetHeight || this.$.offsetWidth ) && this.getComputedStyle( 'visibility' ) != 'hidden', + elementWindow, + elementWindowFrame; + + // Webkit and Opera report non-zero offsetHeight despite that + // element is inside an invisible iframe. (#4542) + if ( isVisible && ( CKEDITOR.env.webkit || CKEDITOR.env.opera ) ) + { + elementWindow = this.getWindow(); + + if ( !elementWindow.equals( CKEDITOR.document.getWindow() ) + && ( elementWindowFrame = elementWindow.$.frameElement ) ) + { + isVisible = new CKEDITOR.dom.element( elementWindowFrame ).isVisible(); + } + } + + return !!isVisible; + }, + + /** + * Whether it's an empty inline elements which has no visual impact when removed. + */ + isEmptyInlineRemoveable : function() + { + if ( !CKEDITOR.dtd.$removeEmpty[ this.getName() ] ) + return false; + + var children = this.getChildren(); + for ( var i = 0, count = children.count(); i < count; i++ ) + { + var child = children.getItem( i ); + + if ( child.type == CKEDITOR.NODE_ELEMENT && child.data( 'cke-bookmark' ) ) + continue; + + if ( child.type == CKEDITOR.NODE_ELEMENT && !child.isEmptyInlineRemoveable() + || child.type == CKEDITOR.NODE_TEXT && CKEDITOR.tools.trim( child.getText() ) ) + { + return false; + } + } + return true; + }, + + /** + * Checks if the element has any defined attributes. + * @function + * @returns {Boolean} True if the element has attributes. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div title="Test">Example</div>' ); + * alert( <b>element.hasAttributes()</b> ); // "true" + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div>Example</div>' ); + * alert( <b>element.hasAttributes()</b> ); // "false" + */ + hasAttributes : + CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ? + function() + { + var attributes = this.$.attributes; + + for ( var i = 0 ; i < attributes.length ; i++ ) + { + var attribute = attributes[i]; + + switch ( attribute.nodeName ) + { + case 'class' : + // IE has a strange bug. If calling removeAttribute('className'), + // the attributes collection will still contain the "class" + // attribute, which will be marked as "specified", even if the + // outerHTML of the element is not displaying the class attribute. + // Note : I was not able to reproduce it outside the editor, + // but I've faced it while working on the TC of #1391. + if ( this.getAttribute( 'class' ) ) + return true; + + // Attributes to be ignored. + case 'data-cke-expando' : + continue; + + /*jsl:fallthru*/ + + default : + if ( attribute.specified ) + return true; + } + } + + return false; + } + : + function() + { + var attrs = this.$.attributes, + attrsNum = attrs.length; + + // The _moz_dirty attribute might get into the element after pasting (#5455) + var execludeAttrs = { 'data-cke-expando' : 1, _moz_dirty : 1 }; + + return attrsNum > 0 && + ( attrsNum > 2 || + !execludeAttrs[ attrs[0].nodeName ] || + ( attrsNum == 2 && !execludeAttrs[ attrs[1].nodeName ] ) ); + }, + + /** + * Checks if the specified attribute is defined for this element. + * @returns {Boolean} True if the specified attribute is defined. + * @param {String} name The attribute name. + * @example + */ + hasAttribute : (function() + { + function standard( name ) + { + var $attr = this.$.attributes.getNamedItem( name ); + return !!( $attr && $attr.specified ); + } + + return ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) ? + function( name ) + { + // On IE < 8 the name attribute cannot be retrieved + // right after the element creation and setting the + // name with setAttribute. + if ( name == 'name' ) + return !!this.$.name; + + return standard.call( this, name ); + } + : + standard; + })(), + + /** + * Hides this element (display:none). + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * <b>element.hide()</b>; + */ + hide : function() + { + this.setStyle( 'display', 'none' ); + }, + + moveChildren : function( target, toStart ) + { + var $ = this.$; + target = target.$; + + if ( $ == target ) + return; + + var child; + + if ( toStart ) + { + while ( ( child = $.lastChild ) ) + target.insertBefore( $.removeChild( child ), target.firstChild ); + } + else + { + while ( ( child = $.firstChild ) ) + target.appendChild( $.removeChild( child ) ); + } + }, + + /** + * Merges sibling elements that are identical to this one.<br> + * <br> + * Identical child elements are also merged. For example:<br> + * <b><i></i></b><b><i></i></b> => <b><i></i></b> + * @function + * @param {Boolean} [inlineOnly] Allow only inline elements to be merged. Defaults to "true". + */ + mergeSiblings : ( function() + { + function mergeElements( element, sibling, isNext ) + { + if ( sibling && sibling.type == CKEDITOR.NODE_ELEMENT ) + { + // Jumping over bookmark nodes and empty inline elements, e.g. <b><i></i></b>, + // queuing them to be moved later. (#5567) + var pendingNodes = []; + + while ( sibling.data( 'cke-bookmark' ) + || sibling.isEmptyInlineRemoveable() ) + { + pendingNodes.push( sibling ); + sibling = isNext ? sibling.getNext() : sibling.getPrevious(); + if ( !sibling || sibling.type != CKEDITOR.NODE_ELEMENT ) + return; + } + + if ( element.isIdentical( sibling ) ) + { + // Save the last child to be checked too, to merge things like + // <b><i></i></b><b><i></i></b> => <b><i></i></b> + var innerSibling = isNext ? element.getLast() : element.getFirst(); + + // Move pending nodes first into the target element. + while( pendingNodes.length ) + pendingNodes.shift().move( element, !isNext ); + + sibling.moveChildren( element, !isNext ); + sibling.remove(); + + // Now check the last inner child (see two comments above). + if ( innerSibling && innerSibling.type == CKEDITOR.NODE_ELEMENT ) + innerSibling.mergeSiblings(); + } + } + } + + return function( inlineOnly ) + { + if ( ! ( inlineOnly === false + || CKEDITOR.dtd.$removeEmpty[ this.getName() ] + || this.is( 'a' ) ) ) // Merge empty links and anchors also. (#5567) + { + return; + } + + mergeElements( this, this.getNext(), true ); + mergeElements( this, this.getPrevious() ); + }; + } )(), + + /** + * Shows this element (display it). + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * <b>element.show()</b>; + */ + show : function() + { + this.setStyles( + { + display : '', + visibility : '' + }); + }, + + /** + * Sets the value of an element attribute. + * @param {String} name The name of the attribute. + * @param {String} value The value to be set to the attribute. + * @function + * @returns {CKEDITOR.dom.element} This element instance. + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * <b>element.setAttribute( 'class', 'myClass' )</b>; + * <b>element.setAttribute( 'title', 'This is an example' )</b>; + */ + setAttribute : (function() + { + var standard = function( name, value ) + { + this.$.setAttribute( name, value ); + return this; + }; + + if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) + { + return function( name, value ) + { + if ( name == 'class' ) + this.$.className = value; + else if ( name == 'style' ) + this.$.style.cssText = value; + else if ( name == 'tabindex' ) // Case sensitive. + this.$.tabIndex = value; + else if ( name == 'checked' ) + this.$.checked = value; + else if ( name == 'contenteditable' ) + standard.call( this, 'contentEditable', value ); + else + standard.apply( this, arguments ); + return this; + }; + } + else if ( CKEDITOR.env.ie8Compat && CKEDITOR.env.secure ) + { + return function( name, value ) + { + // IE8 throws error when setting src attribute to non-ssl value. (#7847) + if ( name == 'src' && value.match( /^http:\/\// ) ) + try { standard.apply( this, arguments ); } catch( e ){} + else + standard.apply( this, arguments ); + return this; + }; + } + else + return standard; + })(), + + /** + * Sets the value of several element attributes. + * @param {Object} attributesPairs An object containing the names and + * values of the attributes. + * @returns {CKEDITOR.dom.element} This element instance. + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * <b>element.setAttributes({ + * 'class' : 'myClass', + * 'title' : 'This is an example' })</b>; + */ + setAttributes : function( attributesPairs ) + { + for ( var name in attributesPairs ) + this.setAttribute( name, attributesPairs[ name ] ); + return this; + }, + + /** + * Sets the element value. This function is usually used with form + * field element. + * @param {String} value The element value. + * @returns {CKEDITOR.dom.element} This element instance. + */ + setValue : function( value ) + { + this.$.value = value; + return this; + }, + + /** + * Removes an attribute from the element. + * @param {String} name The attribute name. + * @function + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div class="classA"></div>' ); + * element.removeAttribute( 'class' ); + */ + removeAttribute : (function() + { + var standard = function( name ) + { + this.$.removeAttribute( name ); + }; + + if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) + { + return function( name ) + { + if ( name == 'class' ) + name = 'className'; + else if ( name == 'tabindex' ) + name = 'tabIndex'; + else if ( name == 'contenteditable' ) + name = 'contentEditable'; + standard.call( this, name ); + }; + } + else + return standard; + })(), + + removeAttributes : function ( attributes ) + { + if ( CKEDITOR.tools.isArray( attributes ) ) + { + for ( var i = 0 ; i < attributes.length ; i++ ) + this.removeAttribute( attributes[ i ] ); + } + else + { + for ( var attr in attributes ) + attributes.hasOwnProperty( attr ) && this.removeAttribute( attr ); + } + }, + + /** + * Removes a style from the element. + * @param {String} name The style name. + * @function + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div style="display:none"></div>' ); + * element.removeStyle( 'display' ); + */ + removeStyle : function( name ) + { + // Removes the specified property from the current style object. + var $ = this.$.style; + $.removeProperty ? $.removeProperty( name ) : $.removeAttribute( CKEDITOR.tools.cssStyleToDomStyle( name ) ); + + if ( !this.$.style.cssText ) + this.removeAttribute( 'style' ); + }, + + /** + * Sets the value of an element style. + * @param {String} name The name of the style. The CSS naming notation + * must be used (e.g. "background-color"). + * @param {String} value The value to be set to the style. + * @returns {CKEDITOR.dom.element} This element instance. + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * <b>element.setStyle( 'background-color', '#ff0000' )</b>; + * <b>element.setStyle( 'margin-top', '10px' )</b>; + * <b>element.setStyle( 'float', 'right' )</b>; + */ + setStyle : function( name, value ) + { + this.$.style[ CKEDITOR.tools.cssStyleToDomStyle( name ) ] = value; + return this; + }, + + /** + * Sets the value of several element styles. + * @param {Object} stylesPairs An object containing the names and + * values of the styles. + * @returns {CKEDITOR.dom.element} This element instance. + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * <b>element.setStyles({ + * 'position' : 'absolute', + * 'float' : 'right' })</b>; + */ + setStyles : function( stylesPairs ) + { + for ( var name in stylesPairs ) + this.setStyle( name, stylesPairs[ name ] ); + return this; + }, + + /** + * Sets the opacity of an element. + * @param {Number} opacity A number within the range [0.0, 1.0]. + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * <b>element.setOpacity( 0.75 )</b>; + */ + setOpacity : function( opacity ) + { + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) + { + opacity = Math.round( opacity * 100 ); + this.setStyle( 'filter', opacity >= 100 ? '' : 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + opacity + ')' ); + } + else + this.setStyle( 'opacity', opacity ); + }, + + /** + * Makes the element and its children unselectable. + * @function + * @example + * var element = CKEDITOR.dom.element.getById( 'myElement' ); + * element.unselectable(); + */ + unselectable : + CKEDITOR.env.gecko ? + function() + { + this.$.style.MozUserSelect = 'none'; + this.on( 'dragstart', function( evt ) { evt.data.preventDefault(); } ); + } + : CKEDITOR.env.webkit ? + function() + { + this.$.style.KhtmlUserSelect = 'none'; + this.on( 'dragstart', function( evt ) { evt.data.preventDefault(); } ); + } + : + function() + { + if ( CKEDITOR.env.ie || CKEDITOR.env.opera ) + { + var element = this.$, + elements = element.getElementsByTagName("*"), + e, + i = 0; + + element.unselectable = 'on'; + + while ( ( e = elements[ i++ ] ) ) + { + switch ( e.tagName.toLowerCase() ) + { + case 'iframe' : + case 'textarea' : + case 'input' : + case 'select' : + /* Ignore the above tags */ + break; + default : + e.unselectable = 'on'; + } + } + } + }, + + getPositionedAncestor : function() + { + var current = this; + while ( current.getName() != 'html' ) + { + if ( current.getComputedStyle( 'position' ) != 'static' ) + return current; + + current = current.getParent(); + } + return null; + }, + + getDocumentPosition : function( refDocument ) + { + var x = 0, y = 0, + doc = this.getDocument(), + body = doc.getBody(), + quirks = doc.$.compatMode == 'BackCompat'; + + if ( document.documentElement[ "getBoundingClientRect" ] ) + { + var box = this.$.getBoundingClientRect(), + $doc = doc.$, + $docElem = $doc.documentElement; + + var clientTop = $docElem.clientTop || body.$.clientTop || 0, + clientLeft = $docElem.clientLeft || body.$.clientLeft || 0, + needAdjustScrollAndBorders = true; + + /* + * #3804: getBoundingClientRect() works differently on IE and non-IE + * browsers, regarding scroll positions. + * + * On IE, the top position of the <html> element is always 0, no matter + * how much you scrolled down. + * + * On other browsers, the top position of the <html> element is negative + * scrollTop. + */ + if ( CKEDITOR.env.ie ) + { + var inDocElem = doc.getDocumentElement().contains( this ), + inBody = doc.getBody().contains( this ); + + needAdjustScrollAndBorders = ( quirks && inBody ) || ( !quirks && inDocElem ); + } + + if ( needAdjustScrollAndBorders ) + { + x = box.left + ( !quirks && $docElem.scrollLeft || body.$.scrollLeft ); + x -= clientLeft; + y = box.top + ( !quirks && $docElem.scrollTop || body.$.scrollTop ); + y -= clientTop; + } + } + else + { + var current = this, previous = null, offsetParent; + while ( current && !( current.getName() == 'body' || current.getName() == 'html' ) ) + { + x += current.$.offsetLeft - current.$.scrollLeft; + y += current.$.offsetTop - current.$.scrollTop; + + // Opera includes clientTop|Left into offsetTop|Left. + if ( !current.equals( this ) ) + { + x += ( current.$.clientLeft || 0 ); + y += ( current.$.clientTop || 0 ); + } + + var scrollElement = previous; + while ( scrollElement && !scrollElement.equals( current ) ) + { + x -= scrollElement.$.scrollLeft; + y -= scrollElement.$.scrollTop; + scrollElement = scrollElement.getParent(); + } + + previous = current; + current = ( offsetParent = current.$.offsetParent ) ? + new CKEDITOR.dom.element( offsetParent ) : null; + } + } + + if ( refDocument ) + { + var currentWindow = this.getWindow(), + refWindow = refDocument.getWindow(); + + if ( !currentWindow.equals( refWindow ) && currentWindow.$.frameElement ) + { + var iframePosition = ( new CKEDITOR.dom.element( currentWindow.$.frameElement ) ).getDocumentPosition( refDocument ); + + x += iframePosition.x; + y += iframePosition.y; + } + } + + if ( !document.documentElement[ "getBoundingClientRect" ] ) + { + // In Firefox, we'll endup one pixel before the element positions, + // so we must add it here. + if ( CKEDITOR.env.gecko && !quirks ) + { + x += this.$.clientLeft ? 1 : 0; + y += this.$.clientTop ? 1 : 0; + } + } + + return { x : x, y : y }; + }, + + /** + * Make any page element visible inside the browser viewport. + * @param {Boolean} [alignToTop] + */ + scrollIntoView : function( alignToTop ) + { + var parent = this.getParent(); + if ( !parent ) return; + + // Scroll the element into parent container from the inner out. + do + { + // Check ancestors that overflows. + var overflowed = + parent.$.clientWidth && parent.$.clientWidth < parent.$.scrollWidth + || parent.$.clientHeight && parent.$.clientHeight < parent.$.scrollHeight; + + if ( overflowed ) + this.scrollIntoParent( parent, alignToTop, 1 ); + + // Walk across the frame. + if ( parent.is( 'html' ) ) + { + var win = parent.getWindow(); + + // Avoid security error. + try + { + var iframe = win.$.frameElement; + iframe && ( parent = new CKEDITOR.dom.element( iframe ) ); + } + catch(er){} + } + } + while ( ( parent = parent.getParent() ) ); + }, + + /** + * Make any page element visible inside one of the ancestors by scrolling the parent. + * @param {CKEDITOR.dom.element|CKEDITOR.dom.window} parent The container to scroll into. + * @param {Boolean} [alignToTop] Align the element's top side with the container's + * when <code>true</code> is specified; align the bottom with viewport bottom when + * <code>false</code> is specified. Otherwise scroll on either side with the minimum + * amount to show the element. + * @param {Boolean} [hscroll] Whether horizontal overflow should be considered. + */ + scrollIntoParent : function( parent, alignToTop, hscroll ) + { + !parent && ( parent = this.getWindow() ); + + var doc = parent.getDocument(); + var isQuirks = doc.$.compatMode == 'BackCompat'; + + // On window <html> is scrolled while quirks scrolls <body>. + if ( parent instanceof CKEDITOR.dom.window ) + parent = isQuirks ? doc.getBody() : doc.getDocumentElement(); + + // Scroll the parent by the specified amount. + function scrollBy( x, y ) + { + // Webkit doesn't support "scrollTop/scrollLeft" + // on documentElement/body element. + if ( /body|html/.test( parent.getName() ) ) + parent.getWindow().$.scrollBy( x, y ); + else + { + parent.$[ 'scrollLeft' ] += x; + parent.$[ 'scrollTop' ] += y; + } + } + + // Figure out the element position relative to the specified window. + function screenPos( element, refWin ) + { + var pos = { x: 0, y: 0 }; + + if ( !( element.is( isQuirks ? 'body' : 'html' ) ) ) + { + var box = element.$.getBoundingClientRect(); + pos.x = box.left, pos.y = box.top; + } + + var win = element.getWindow(); + if ( !win.equals( refWin ) ) + { + var outerPos = screenPos( CKEDITOR.dom.element.get( win.$.frameElement ), refWin ); + pos.x += outerPos.x, pos.y += outerPos.y; + } + + return pos; + } + + // calculated margin size. + function margin( element, side ) + { + return parseInt( element.getComputedStyle( 'margin-' + side ) || 0, 10 ) || 0; + } + + var win = parent.getWindow(); + + var thisPos = screenPos( this, win ), + parentPos = screenPos( parent, win ), + eh = this.$.offsetHeight, + ew = this.$.offsetWidth, + ch = parent.$.clientHeight, + cw = parent.$.clientWidth, + lt, + br; + + // Left-top margins. + lt = + { + x : thisPos.x - margin( this, 'left' ) - parentPos.x || 0, + y : thisPos.y - margin( this, 'top' ) - parentPos.y|| 0 + }; + + // Bottom-right margins. + br = + { + x : thisPos.x + ew + margin( this, 'right' ) - ( ( parentPos.x ) + cw ) || 0, + y : thisPos.y + eh + margin( this, 'bottom' ) - ( ( parentPos.y ) + ch ) || 0 + }; + + // 1. Do the specified alignment as much as possible; + // 2. Otherwise be smart to scroll only the minimum amount; + // 3. Never cut at the top; + // 4. DO NOT scroll when already visible. + if ( lt.y < 0 || br.y > 0 ) + { + scrollBy( 0, + alignToTop === true ? lt.y : + alignToTop === false ? br.y : + lt.y < 0 ? lt.y : br.y ); + } + + if ( hscroll && ( lt.x < 0 || br.x > 0 ) ) + scrollBy( lt.x < 0 ? lt.x : br.x, 0 ); + }, + + setState : function( state ) + { + switch ( state ) + { + case CKEDITOR.TRISTATE_ON : + this.addClass( 'cke_on' ); + this.removeClass( 'cke_off' ); + this.removeClass( 'cke_disabled' ); + break; + case CKEDITOR.TRISTATE_DISABLED : + this.addClass( 'cke_disabled' ); + this.removeClass( 'cke_off' ); + this.removeClass( 'cke_on' ); + break; + default : + this.addClass( 'cke_off' ); + this.removeClass( 'cke_on' ); + this.removeClass( 'cke_disabled' ); + break; + } + }, + + /** + * Returns the inner document of this IFRAME element. + * @returns {CKEDITOR.dom.document} The inner document. + */ + getFrameDocument : function() + { + var $ = this.$; + + try + { + // In IE, with custom document.domain, it may happen that + // the iframe is not yet available, resulting in "Access + // Denied" for the following property access. + $.contentWindow.document; + } + catch ( e ) + { + // Trick to solve this issue, forcing the iframe to get ready + // by simply setting its "src" property. + $.src = $.src; + + // In IE6 though, the above is not enough, so we must pause the + // execution for a while, giving it time to think. + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) + { + window.showModalDialog( + 'javascript:document.write("' + + '<script>' + + 'window.setTimeout(' + + 'function(){window.close();}' + + ',50);' + + '</script>")' ); + } + } + + return $ && new CKEDITOR.dom.document( $.contentWindow.document ); + }, + + /** + * Copy all the attributes from one node to the other, kinda like a clone + * skipAttributes is an object with the attributes that must NOT be copied. + * @param {CKEDITOR.dom.element} dest The destination element. + * @param {Object} skipAttributes A dictionary of attributes to skip. + * @example + */ + copyAttributes : function( dest, skipAttributes ) + { + var attributes = this.$.attributes; + skipAttributes = skipAttributes || {}; + + for ( var n = 0 ; n < attributes.length ; n++ ) + { + var attribute = attributes[n]; + + // Lowercase attribute name hard rule is broken for + // some attribute on IE, e.g. CHECKED. + var attrName = attribute.nodeName.toLowerCase(), + attrValue; + + // We can set the type only once, so do it with the proper value, not copying it. + if ( attrName in skipAttributes ) + continue; + + if ( attrName == 'checked' && ( attrValue = this.getAttribute( attrName ) ) ) + dest.setAttribute( attrName, attrValue ); + // IE BUG: value attribute is never specified even if it exists. + else if ( attribute.specified || + ( CKEDITOR.env.ie && attribute.nodeValue && attrName == 'value' ) ) + { + attrValue = this.getAttribute( attrName ); + if ( attrValue === null ) + attrValue = attribute.nodeValue; + + dest.setAttribute( attrName, attrValue ); + } + } + + // The style: + if ( this.$.style.cssText !== '' ) + dest.$.style.cssText = this.$.style.cssText; + }, + + /** + * Changes the tag name of the current element. + * @param {String} newTag The new tag for the element. + */ + renameNode : function( newTag ) + { + // If it's already correct exit here. + if ( this.getName() == newTag ) + return; + + var doc = this.getDocument(); + + // Create the new node. + var newNode = new CKEDITOR.dom.element( newTag, doc ); + + // Copy all attributes. + this.copyAttributes( newNode ); + + // Move children to the new node. + this.moveChildren( newNode ); + + // Replace the node. + this.getParent() && this.$.parentNode.replaceChild( newNode.$, this.$ ); + newNode.$[ 'data-cke-expando' ] = this.$[ 'data-cke-expando' ]; + this.$ = newNode.$; + }, + + /** + * Gets a DOM tree descendant under the current node. + * @param {Array|Number} indices The child index or array of child indices under the node. + * @returns {CKEDITOR.dom.node} The specified DOM child under the current node. Null if child does not exist. + * @example + * var strong = p.getChild(0); + */ + getChild : function( indices ) + { + var rawNode = this.$; + + if ( !indices.slice ) + rawNode = rawNode.childNodes[ indices ]; + else + { + while ( indices.length > 0 && rawNode ) + rawNode = rawNode.childNodes[ indices.shift() ]; + } + + return rawNode ? new CKEDITOR.dom.node( rawNode ) : null; + }, + + getChildCount : function() + { + return this.$.childNodes.length; + }, + + disableContextMenu : function() + { + this.on( 'contextmenu', function( event ) + { + // Cancel the browser context menu. + if ( !event.data.getTarget().hasClass( 'cke_enable_context_menu' ) ) + event.data.preventDefault(); + } ); + }, + + /** + * Gets element's direction. Supports both CSS 'direction' prop and 'dir' attr. + */ + getDirection : function( useComputed ) + { + return useComputed ? + this.getComputedStyle( 'direction' ) + // Webkit: offline element returns empty direction (#8053). + || this.getDirection() + || this.getDocument().$.dir + || this.getDocument().getBody().getDirection( 1 ) + : this.getStyle( 'direction' ) || this.getAttribute( 'dir' ); + }, + + /** + * Gets, sets and removes custom data to be stored as HTML5 data-* attributes. + * @param {String} name The name of the attribute, excluding the 'data-' part. + * @param {String} [value] The value to set. If set to false, the attribute will be removed. + * @example + * element.data( 'extra-info', 'test' ); // appended the attribute data-extra-info="test" to the element + * alert( element.data( 'extra-info' ) ); // "test" + * element.data( 'extra-info', false ); // remove the data-extra-info attribute from the element + */ + data : function ( name, value ) + { + name = 'data-' + name; + if ( value === undefined ) + return this.getAttribute( name ); + else if ( value === false ) + this.removeAttribute( name ); + else + this.setAttribute( name, value ); + + return null; + } + }); + +( function() +{ + var sides = { + width : [ "border-left-width", "border-right-width","padding-left", "padding-right" ], + height : [ "border-top-width", "border-bottom-width", "padding-top", "padding-bottom" ] + }; + + function marginAndPaddingSize( type ) + { + var adjustment = 0; + for ( var i = 0, len = sides[ type ].length; i < len; i++ ) + adjustment += parseInt( this.getComputedStyle( sides [ type ][ i ] ) || 0, 10 ) || 0; + return adjustment; + } + + /** + * Sets the element size considering the box model. + * @name CKEDITOR.dom.element.prototype.setSize + * @function + * @param {String} type The dimension to set. It accepts "width" and "height". + * @param {Number} size The length unit in px. + * @param {Boolean} isBorderBox Apply the size based on the border box model. + */ + CKEDITOR.dom.element.prototype.setSize = function( type, size, isBorderBox ) + { + if ( typeof size == 'number' ) + { + if ( isBorderBox && !( CKEDITOR.env.ie && CKEDITOR.env.quirks ) ) + size -= marginAndPaddingSize.call( this, type ); + + this.setStyle( type, size + 'px' ); + } + }; + + /** + * Gets the element size, possibly considering the box model. + * @name CKEDITOR.dom.element.prototype.getSize + * @function + * @param {String} type The dimension to get. It accepts "width" and "height". + * @param {Boolean} isBorderBox Get the size based on the border box model. + */ + CKEDITOR.dom.element.prototype.getSize = function( type, isBorderBox ) + { + var size = Math.max( this.$[ 'offset' + CKEDITOR.tools.capitalize( type ) ], + this.$[ 'client' + CKEDITOR.tools.capitalize( type ) ] ) || 0; + + if ( isBorderBox ) + size -= marginAndPaddingSize.call( this, type ); + + return size; + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/dom/elementpath.js b/htdocs/includes/ckeditor/_source/core/dom/elementpath.js new file mode 100644 index 0000000000000000000000000000000000000000..caf4d3811f29cac8c7efbafdcfa77f23ef055fb1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/elementpath.js @@ -0,0 +1,117 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + // Elements that may be considered the "Block boundary" in an element path. + var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1, legend:1,caption:1 }; + + // Elements that may be considered the "Block limit" in an element path. + var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,form:1,fieldset:1 }; + + // Check if an element contains any block element. + var checkHasBlock = function( element ) + { + var childNodes = element.getChildren(); + + for ( var i = 0, count = childNodes.count() ; i < count ; i++ ) + { + var child = childNodes.getItem( i ); + + if ( child.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$block[ child.getName() ] ) + return true; + } + + return false; + }; + + /** + * @class + */ + CKEDITOR.dom.elementPath = function( lastNode ) + { + var block = null; + var blockLimit = null; + var elements = []; + + var e = lastNode; + + while ( e ) + { + if ( e.type == CKEDITOR.NODE_ELEMENT ) + { + if ( !this.lastElement ) + this.lastElement = e; + + var elementName = e.getName(); + + if ( !blockLimit ) + { + if ( !block && pathBlockElements[ elementName ] ) + block = e; + + if ( pathBlockLimitElements[ elementName ] ) + { + // DIV is considered the Block, if no block is available (#525) + // and if it doesn't contain other blocks. + if ( !block && elementName == 'div' && !checkHasBlock( e ) ) + block = e; + else + blockLimit = e; + } + } + + elements.push( e ); + + if ( elementName == 'body' ) + break; + } + e = e.getParent(); + } + + this.block = block; + this.blockLimit = blockLimit; + this.elements = elements; + }; +})(); + +CKEDITOR.dom.elementPath.prototype = +{ + /** + * Compares this element path with another one. + * @param {CKEDITOR.dom.elementPath} otherPath The elementPath object to be + * compared with this one. + * @returns {Boolean} "true" if the paths are equal, containing the same + * number of elements and the same elements in the same order. + */ + compare : function( otherPath ) + { + var thisElements = this.elements; + var otherElements = otherPath && otherPath.elements; + + if ( !otherElements || thisElements.length != otherElements.length ) + return false; + + for ( var i = 0 ; i < thisElements.length ; i++ ) + { + if ( !thisElements[ i ].equals( otherElements[ i ] ) ) + return false; + } + + return true; + }, + + contains : function( tagNames ) + { + var elements = this.elements; + for ( var i = 0 ; i < elements.length ; i++ ) + { + if ( elements[ i ].getName() in tagNames ) + return elements[ i ]; + } + + return null; + } +}; diff --git a/htdocs/includes/ckeditor/_source/core/dom/event.js b/htdocs/includes/ckeditor/_source/core/dom/event.js new file mode 100644 index 0000000000000000000000000000000000000000..c63469c68bf9d5dfae177b9e1bf95c277d2727fc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/event.js @@ -0,0 +1,145 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.event} class, which + * represents the a native DOM event object. + */ + +/** + * Represents a native DOM event object. + * @constructor + * @param {Object} domEvent A native DOM event object. + * @example + */ +CKEDITOR.dom.event = function( domEvent ) +{ + /** + * The native DOM event object represented by this class instance. + * @type Object + * @example + */ + this.$ = domEvent; +}; + +CKEDITOR.dom.event.prototype = +{ + /** + * Gets the key code associated to the event. + * @returns {Number} The key code. + * @example + * alert( event.getKey() ); "65" is "a" has been pressed + */ + getKey : function() + { + return this.$.keyCode || this.$.which; + }, + + /** + * Gets a number represeting the combination of the keys pressed during the + * event. It is the sum with the current key code and the {@link CKEDITOR.CTRL}, + * {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT} constants. + * @returns {Number} The number representing the keys combination. + * @example + * alert( event.getKeystroke() == 65 ); // "a" key + * alert( event.getKeystroke() == CKEDITOR.CTRL + 65 ); // CTRL + "a" key + * alert( event.getKeystroke() == CKEDITOR.CTRL + CKEDITOR.SHIFT + 65 ); // CTRL + SHIFT + "a" key + */ + getKeystroke : function() + { + var keystroke = this.getKey(); + + if ( this.$.ctrlKey || this.$.metaKey ) + keystroke += CKEDITOR.CTRL; + + if ( this.$.shiftKey ) + keystroke += CKEDITOR.SHIFT; + + if ( this.$.altKey ) + keystroke += CKEDITOR.ALT; + + return keystroke; + }, + + /** + * Prevents the original behavior of the event to happen. It can optionally + * stop propagating the event in the event chain. + * @param {Boolean} [stopPropagation] Stop propagating this event in the + * event chain. + * @example + * var element = CKEDITOR.document.getById( 'myElement' ); + * element.on( 'click', function( ev ) + * { + * // The DOM event object is passed by the "data" property. + * var domEvent = ev.data; + * // Prevent the click to chave any effect in the element. + * domEvent.preventDefault(); + * }); + */ + preventDefault : function( stopPropagation ) + { + var $ = this.$; + if ( $.preventDefault ) + $.preventDefault(); + else + $.returnValue = false; + + if ( stopPropagation ) + this.stopPropagation(); + }, + + stopPropagation : function() + { + var $ = this.$; + if ( $.stopPropagation ) + $.stopPropagation(); + else + $.cancelBubble = true; + }, + + /** + * Returns the DOM node where the event was targeted to. + * @returns {CKEDITOR.dom.node} The target DOM node. + * @example + * var element = CKEDITOR.document.getById( 'myElement' ); + * element.on( 'click', function( ev ) + * { + * // The DOM event object is passed by the "data" property. + * var domEvent = ev.data; + * // Add a CSS class to the event target. + * domEvent.getTarget().addClass( 'clicked' ); + * }); + */ + + getTarget : function() + { + var rawNode = this.$.target || this.$.srcElement; + return rawNode ? new CKEDITOR.dom.node( rawNode ) : null; + } +}; + +// For the followind constants, we need to go over the Unicode boundaries +// (0x10FFFF) to avoid collision. + +/** + * CTRL key (0x110000). + * @constant + * @example + */ +CKEDITOR.CTRL = 0x110000; + +/** + * SHIFT key (0x220000). + * @constant + * @example + */ +CKEDITOR.SHIFT = 0x220000; + +/** + * ALT key (0x440000). + * @constant + * @example + */ +CKEDITOR.ALT = 0x440000; diff --git a/htdocs/includes/ckeditor/_source/core/dom/node.js b/htdocs/includes/ckeditor/_source/core/dom/node.js new file mode 100644 index 0000000000000000000000000000000000000000..90412e4b48ee06608419f853109d0c10fdfcbcbf --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/node.js @@ -0,0 +1,691 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.node} class which is the base + * class for classes that represent DOM nodes. + */ + +/** + * Base class for classes representing DOM nodes. This constructor may return + * an instance of a class that inherits from this class, like + * {@link CKEDITOR.dom.element} or {@link CKEDITOR.dom.text}. + * @augments CKEDITOR.dom.domObject + * @param {Object} domNode A native DOM node. + * @constructor + * @see CKEDITOR.dom.element + * @see CKEDITOR.dom.text + * @example + */ +CKEDITOR.dom.node = function( domNode ) +{ + if ( domNode ) + { + var type = domNode.nodeType == CKEDITOR.NODE_DOCUMENT ? 'document' + : domNode.nodeType == CKEDITOR.NODE_ELEMENT ? 'element' + : domNode.nodeType == CKEDITOR.NODE_TEXT ? 'text' + : domNode.nodeType == CKEDITOR.NODE_COMMENT ? 'comment' + : 'domObject'; // Call the base constructor otherwise. + + return new CKEDITOR.dom[ type ]( domNode ); + } + + return this; +}; + +CKEDITOR.dom.node.prototype = new CKEDITOR.dom.domObject(); + +/** + * Element node type. + * @constant + * @example + */ +CKEDITOR.NODE_ELEMENT = 1; + +/** + * Document node type. + * @constant + * @example + */ +CKEDITOR.NODE_DOCUMENT = 9; + +/** + * Text node type. + * @constant + * @example + */ +CKEDITOR.NODE_TEXT = 3; + +/** + * Comment node type. + * @constant + * @example + */ +CKEDITOR.NODE_COMMENT = 8; + +CKEDITOR.NODE_DOCUMENT_FRAGMENT = 11; + +CKEDITOR.POSITION_IDENTICAL = 0; +CKEDITOR.POSITION_DISCONNECTED = 1; +CKEDITOR.POSITION_FOLLOWING = 2; +CKEDITOR.POSITION_PRECEDING = 4; +CKEDITOR.POSITION_IS_CONTAINED = 8; +CKEDITOR.POSITION_CONTAINS = 16; + +CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype, + /** @lends CKEDITOR.dom.node.prototype */ + { + /** + * Makes this node a child of another element. + * @param {CKEDITOR.dom.element} element The target element to which + * this node will be appended. + * @returns {CKEDITOR.dom.element} The target element. + * @example + * var p = new CKEDITOR.dom.element( 'p' ); + * var strong = new CKEDITOR.dom.element( 'strong' ); + * strong.appendTo( p ); + * + * // result: "<p><strong></strong></p>" + */ + appendTo : function( element, toStart ) + { + element.append( this, toStart ); + return element; + }, + + clone : function( includeChildren, cloneId ) + { + var $clone = this.$.cloneNode( includeChildren ); + + var removeIds = function( node ) + { + if ( node.nodeType != CKEDITOR.NODE_ELEMENT ) + return; + + if ( !cloneId ) + node.removeAttribute( 'id', false ); + node.removeAttribute( 'data-cke-expando', false ); + + if ( includeChildren ) + { + var childs = node.childNodes; + for ( var i=0; i < childs.length; i++ ) + removeIds( childs[ i ] ); + } + }; + + // The "id" attribute should never be cloned to avoid duplication. + removeIds( $clone ); + + return new CKEDITOR.dom.node( $clone ); + }, + + hasPrevious : function() + { + return !!this.$.previousSibling; + }, + + hasNext : function() + { + return !!this.$.nextSibling; + }, + + /** + * Inserts this element after a node. + * @param {CKEDITOR.dom.node} node The node that will precede this element. + * @returns {CKEDITOR.dom.node} The node preceding this one after + * insertion. + * @example + * var em = new CKEDITOR.dom.element( 'em' ); + * var strong = new CKEDITOR.dom.element( 'strong' ); + * strong.insertAfter( em ); + * + * // result: "<em></em><strong></strong>" + */ + insertAfter : function( node ) + { + node.$.parentNode.insertBefore( this.$, node.$.nextSibling ); + return node; + }, + + /** + * Inserts this element before a node. + * @param {CKEDITOR.dom.node} node The node that will succeed this element. + * @returns {CKEDITOR.dom.node} The node being inserted. + * @example + * var em = new CKEDITOR.dom.element( 'em' ); + * var strong = new CKEDITOR.dom.element( 'strong' ); + * strong.insertBefore( em ); + * + * // result: "<strong></strong><em></em>" + */ + insertBefore : function( node ) + { + node.$.parentNode.insertBefore( this.$, node.$ ); + return node; + }, + + insertBeforeMe : function( node ) + { + this.$.parentNode.insertBefore( node.$, this.$ ); + return node; + }, + + /** + * Retrieves a uniquely identifiable tree address for this node. + * The tree address returned is an array of integers, with each integer + * indicating a child index of a DOM node, starting from + * <code>document.documentElement</code>. + * + * For example, assuming <code><body></code> is the second child + * of <code><html></code> (<code><head></code> being the first), + * and we would like to address the third child under the + * fourth child of <code><body></code>, the tree address returned would be: + * [1, 3, 2] + * + * The tree address cannot be used for finding back the DOM tree node once + * the DOM tree structure has been modified. + */ + getAddress : function( normalized ) + { + var address = []; + var $documentElement = this.getDocument().$.documentElement; + var node = this.$; + + while ( node && node != $documentElement ) + { + var parentNode = node.parentNode; + + if ( parentNode ) + { + // Get the node index. For performance, call getIndex + // directly, instead of creating a new node object. + address.unshift( this.getIndex.call( { $ : node }, normalized ) ); + } + + node = parentNode; + } + + return address; + }, + + /** + * Gets the document containing this element. + * @returns {CKEDITOR.dom.document} The document. + * @example + * var element = CKEDITOR.document.getById( 'example' ); + * alert( <strong>element.getDocument().equals( CKEDITOR.document )</strong> ); // "true" + */ + getDocument : function() + { + return new CKEDITOR.dom.document( this.$.ownerDocument || this.$.parentNode.ownerDocument ); + }, + + getIndex : function( normalized ) + { + // Attention: getAddress depends on this.$ + + var current = this.$, + index = 0; + + while ( ( current = current.previousSibling ) ) + { + // When normalizing, do not count it if this is an + // empty text node or if it's a text node following another one. + if ( normalized && current.nodeType == 3 && + ( !current.nodeValue.length || + ( current.previousSibling && current.previousSibling.nodeType == 3 ) ) ) + { + continue; + } + + index++; + } + + return index; + }, + + getNextSourceNode : function( startFromSibling, nodeType, guard ) + { + // If "guard" is a node, transform it in a function. + if ( guard && !guard.call ) + { + var guardNode = guard; + guard = function( node ) + { + return !node.equals( guardNode ); + }; + } + + var node = ( !startFromSibling && this.getFirst && this.getFirst() ), + parent; + + // Guarding when we're skipping the current element( no children or 'startFromSibling' ). + // send the 'moving out' signal even we don't actually dive into. + if ( !node ) + { + if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false ) + return null; + node = this.getNext(); + } + + while ( !node && ( parent = ( parent || this ).getParent() ) ) + { + // The guard check sends the "true" paramenter to indicate that + // we are moving "out" of the element. + if ( guard && guard( parent, true ) === false ) + return null; + + node = parent.getNext(); + } + + if ( !node ) + return null; + + if ( guard && guard( node ) === false ) + return null; + + if ( nodeType && nodeType != node.type ) + return node.getNextSourceNode( false, nodeType, guard ); + + return node; + }, + + getPreviousSourceNode : function( startFromSibling, nodeType, guard ) + { + if ( guard && !guard.call ) + { + var guardNode = guard; + guard = function( node ) + { + return !node.equals( guardNode ); + }; + } + + var node = ( !startFromSibling && this.getLast && this.getLast() ), + parent; + + // Guarding when we're skipping the current element( no children or 'startFromSibling' ). + // send the 'moving out' signal even we don't actually dive into. + if ( !node ) + { + if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false ) + return null; + node = this.getPrevious(); + } + + while ( !node && ( parent = ( parent || this ).getParent() ) ) + { + // The guard check sends the "true" paramenter to indicate that + // we are moving "out" of the element. + if ( guard && guard( parent, true ) === false ) + return null; + + node = parent.getPrevious(); + } + + if ( !node ) + return null; + + if ( guard && guard( node ) === false ) + return null; + + if ( nodeType && node.type != nodeType ) + return node.getPreviousSourceNode( false, nodeType, guard ); + + return node; + }, + + getPrevious : function( evaluator ) + { + var previous = this.$, retval; + do + { + previous = previous.previousSibling; + + // Avoid returning the doc type node. + // http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-412266927 + retval = previous && previous.nodeType != 10 && new CKEDITOR.dom.node( previous ); + } + while ( retval && evaluator && !evaluator( retval ) ) + return retval; + }, + + /** + * Gets the node that follows this element in its parent's child list. + * @param {Function} evaluator Filtering the result node. + * @returns {CKEDITOR.dom.node} The next node or null if not available. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b> <i>next</i></div>' ); + * var first = <strong>element.getFirst().getNext()</strong>; + * alert( first.getName() ); // "i" + */ + getNext : function( evaluator ) + { + var next = this.$, retval; + do + { + next = next.nextSibling; + retval = next && new CKEDITOR.dom.node( next ); + } + while ( retval && evaluator && !evaluator( retval ) ) + return retval; + }, + + /** + * Gets the parent element for this node. + * @returns {CKEDITOR.dom.element} The parent element. + * @example + * var node = editor.document.getBody().getFirst(); + * var parent = node.<strong>getParent()</strong>; + * alert( node.getName() ); // "body" + */ + getParent : function() + { + var parent = this.$.parentNode; + return ( parent && parent.nodeType == 1 ) ? new CKEDITOR.dom.node( parent ) : null; + }, + + getParents : function( closerFirst ) + { + var node = this; + var parents = []; + + do + { + parents[ closerFirst ? 'push' : 'unshift' ]( node ); + } + while ( ( node = node.getParent() ) ) + + return parents; + }, + + getCommonAncestor : function( node ) + { + if ( node.equals( this ) ) + return this; + + if ( node.contains && node.contains( this ) ) + return node; + + var start = this.contains ? this : this.getParent(); + + do + { + if ( start.contains( node ) ) + return start; + } + while ( ( start = start.getParent() ) ); + + return null; + }, + + getPosition : function( otherNode ) + { + var $ = this.$; + var $other = otherNode.$; + + if ( $.compareDocumentPosition ) + return $.compareDocumentPosition( $other ); + + // IE and Safari have no support for compareDocumentPosition. + + if ( $ == $other ) + return CKEDITOR.POSITION_IDENTICAL; + + // Only element nodes support contains and sourceIndex. + if ( this.type == CKEDITOR.NODE_ELEMENT && otherNode.type == CKEDITOR.NODE_ELEMENT ) + { + if ( $.contains ) + { + if ( $.contains( $other ) ) + return CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING; + + if ( $other.contains( $ ) ) + return CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING; + } + + if ( 'sourceIndex' in $ ) + { + return ( $.sourceIndex < 0 || $other.sourceIndex < 0 ) ? CKEDITOR.POSITION_DISCONNECTED : + ( $.sourceIndex < $other.sourceIndex ) ? CKEDITOR.POSITION_PRECEDING : + CKEDITOR.POSITION_FOLLOWING; + } + } + + // For nodes that don't support compareDocumentPosition, contains + // or sourceIndex, their "address" is compared. + + var addressOfThis = this.getAddress(), + addressOfOther = otherNode.getAddress(), + minLevel = Math.min( addressOfThis.length, addressOfOther.length ); + + // Determinate preceed/follow relationship. + for ( var i = 0 ; i <= minLevel - 1 ; i++ ) + { + if ( addressOfThis[ i ] != addressOfOther[ i ] ) + { + if ( i < minLevel ) + { + return addressOfThis[ i ] < addressOfOther[ i ] ? + CKEDITOR.POSITION_PRECEDING : CKEDITOR.POSITION_FOLLOWING; + } + break; + } + } + + // Determinate contains/contained relationship. + return ( addressOfThis.length < addressOfOther.length ) ? + CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING : + CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING; + }, + + /** + * Gets the closest ancestor node of this node, specified by its name. + * @param {String} reference The name of the ancestor node to search or + * an object with the node names to search for. + * @param {Boolean} [includeSelf] Whether to include the current + * node in the search. + * @returns {CKEDITOR.dom.node} The located ancestor node or null if not found. + * @since 3.6.1 + * @example + * // Suppose we have the following HTML structure: + * // <div id="outer"><div id="inner"><p><b>Some text</b></p></div></div> + * // If node == <b> + * ascendant = node.getAscendant( 'div' ); // ascendant == <div id="inner"> + * ascendant = node.getAscendant( 'b' ); // ascendant == null + * ascendant = node.getAscendant( 'b', true ); // ascendant == <b> + * ascendant = node.getAscendant( { div: 1, p: 1} ); // Searches for the first 'div' or 'p': ascendant == <div id="inner"> + */ + getAscendant : function( reference, includeSelf ) + { + var $ = this.$, + name; + + if ( !includeSelf ) + $ = $.parentNode; + + while ( $ ) + { + if ( $.nodeName && ( name = $.nodeName.toLowerCase(), ( typeof reference == 'string' ? name == reference : name in reference ) ) ) + return new CKEDITOR.dom.node( $ ); + + $ = $.parentNode; + } + return null; + }, + + hasAscendant : function( name, includeSelf ) + { + var $ = this.$; + + if ( !includeSelf ) + $ = $.parentNode; + + while ( $ ) + { + if ( $.nodeName && $.nodeName.toLowerCase() == name ) + return true; + + $ = $.parentNode; + } + return false; + }, + + move : function( target, toStart ) + { + target.append( this.remove(), toStart ); + }, + + /** + * Removes this node from the document DOM. + * @param {Boolean} [preserveChildren] Indicates that the children + * elements must remain in the document, removing only the outer + * tags. + * @example + * var element = CKEDITOR.dom.element.getById( 'MyElement' ); + * <strong>element.remove()</strong>; + */ + remove : function( preserveChildren ) + { + var $ = this.$; + var parent = $.parentNode; + + if ( parent ) + { + if ( preserveChildren ) + { + // Move all children before the node. + for ( var child ; ( child = $.firstChild ) ; ) + { + parent.insertBefore( $.removeChild( child ), $ ); + } + } + + parent.removeChild( $ ); + } + + return this; + }, + + replace : function( nodeToReplace ) + { + this.insertBefore( nodeToReplace ); + nodeToReplace.remove(); + }, + + trim : function() + { + this.ltrim(); + this.rtrim(); + }, + + ltrim : function() + { + var child; + while ( this.getFirst && ( child = this.getFirst() ) ) + { + if ( child.type == CKEDITOR.NODE_TEXT ) + { + var trimmed = CKEDITOR.tools.ltrim( child.getText() ), + originalLength = child.getLength(); + + if ( !trimmed ) + { + child.remove(); + continue; + } + else if ( trimmed.length < originalLength ) + { + child.split( originalLength - trimmed.length ); + + // IE BUG: child.remove() may raise JavaScript errors here. (#81) + this.$.removeChild( this.$.firstChild ); + } + } + break; + } + }, + + rtrim : function() + { + var child; + while ( this.getLast && ( child = this.getLast() ) ) + { + if ( child.type == CKEDITOR.NODE_TEXT ) + { + var trimmed = CKEDITOR.tools.rtrim( child.getText() ), + originalLength = child.getLength(); + + if ( !trimmed ) + { + child.remove(); + continue; + } + else if ( trimmed.length < originalLength ) + { + child.split( trimmed.length ); + + // IE BUG: child.getNext().remove() may raise JavaScript errors here. + // (#81) + this.$.lastChild.parentNode.removeChild( this.$.lastChild ); + } + } + break; + } + + if ( !CKEDITOR.env.ie && !CKEDITOR.env.opera ) + { + child = this.$.lastChild; + + if ( child && child.type == 1 && child.nodeName.toLowerCase() == 'br' ) + { + // Use "eChildNode.parentNode" instead of "node" to avoid IE bug (#324). + child.parentNode.removeChild( child ) ; + } + } + }, + + /** + * Checks if this node is read-only (should not be changed). + * @returns {Boolean} + * @since 3.5 + * @example + * // For the following HTML: + * // <div contenteditable="false">Some <b>text</b></div> + * + * // If "ele" is the above <div> + * ele.isReadOnly(); // true + */ + isReadOnly : function() + { + var element = this; + if ( this.type != CKEDITOR.NODE_ELEMENT ) + element = this.getParent(); + + if ( element && typeof element.$.isContentEditable != 'undefined' ) + return ! ( element.$.isContentEditable || element.data( 'cke-editable' ) ); + else + { + // Degrade for old browsers which don't support "isContentEditable", e.g. FF3 + var current = element; + while( current ) + { + if ( current.is( 'body' ) || !!current.data( 'cke-editable' ) ) + break; + + if ( current.getAttribute( 'contentEditable' ) == 'false' ) + return true; + else if ( current.getAttribute( 'contentEditable' ) == 'true' ) + break; + + current = current.getParent(); + } + + return false; + } + } + } +); diff --git a/htdocs/includes/ckeditor/_source/core/dom/nodelist.js b/htdocs/includes/ckeditor/_source/core/dom/nodelist.js new file mode 100644 index 0000000000000000000000000000000000000000..6c394dc251473a469fa23eabeb7f3a5424bde201 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/nodelist.js @@ -0,0 +1,26 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @class + */ +CKEDITOR.dom.nodeList = function( nativeList ) +{ + this.$ = nativeList; +}; + +CKEDITOR.dom.nodeList.prototype = +{ + count : function() + { + return this.$.length; + }, + + getItem : function( index ) + { + var $node = this.$[ index ]; + return $node ? new CKEDITOR.dom.node( $node ) : null; + } +}; diff --git a/htdocs/includes/ckeditor/_source/core/dom/range.js b/htdocs/includes/ckeditor/_source/core/dom/range.js new file mode 100644 index 0000000000000000000000000000000000000000..c8312b749b3008e1b304afd3e45c587104c06880 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/range.js @@ -0,0 +1,2087 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Creates a CKEDITOR.dom.range instance that can be used inside a specific + * DOM Document. + * @class Represents a delimited piece of content in a DOM Document. + * It is contiguous in the sense that it can be characterized as selecting all + * of the content between a pair of boundary-points.<br> + * <br> + * This class shares much of the W3C + * <a href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html">Document Object Model Range</a> + * ideas and features, adding several range manipulation tools to it, but it's + * not intended to be compatible with it. + * @param {CKEDITOR.dom.document} document The document into which the range + * features will be available. + * @example + * // Create a range for the entire contents of the editor document body. + * var range = new CKEDITOR.dom.range( editor.document ); + * range.selectNodeContents( editor.document.getBody() ); + * // Delete the contents. + * range.deleteContents(); + */ +CKEDITOR.dom.range = function( document ) +{ + /** + * Node within which the range begins. + * @type {CKEDITOR.NODE_ELEMENT|CKEDITOR.NODE_TEXT} + * @example + * var range = new CKEDITOR.dom.range( editor.document ); + * range.selectNodeContents( editor.document.getBody() ); + * alert( range.startContainer.getName() ); // "body" + */ + this.startContainer = null; + + /** + * Offset within the starting node of the range. + * @type {Number} + * @example + * var range = new CKEDITOR.dom.range( editor.document ); + * range.selectNodeContents( editor.document.getBody() ); + * alert( range.startOffset ); // "0" + */ + this.startOffset = null; + + /** + * Node within which the range ends. + * @type {CKEDITOR.NODE_ELEMENT|CKEDITOR.NODE_TEXT} + * @example + * var range = new CKEDITOR.dom.range( editor.document ); + * range.selectNodeContents( editor.document.getBody() ); + * alert( range.endContainer.getName() ); // "body" + */ + this.endContainer = null; + + /** + * Offset within the ending node of the range. + * @type {Number} + * @example + * var range = new CKEDITOR.dom.range( editor.document ); + * range.selectNodeContents( editor.document.getBody() ); + * alert( range.endOffset ); // == editor.document.getBody().getChildCount() + */ + this.endOffset = null; + + /** + * Indicates that this is a collapsed range. A collapsed range has it's + * start and end boudaries at the very same point so nothing is contained + * in it. + * @example + * var range = new CKEDITOR.dom.range( editor.document ); + * range.selectNodeContents( editor.document.getBody() ); + * alert( range.collapsed ); // "false" + * range.collapse(); + * alert( range.collapsed ); // "true" + */ + this.collapsed = true; + + /** + * The document within which the range can be used. + * @type {CKEDITOR.dom.document} + * @example + * // Selects the body contents of the range document. + * range.selectNodeContents( range.document.getBody() ); + */ + this.document = document; +}; + +(function() +{ + // Updates the "collapsed" property for the given range object. + var updateCollapsed = function( range ) + { + range.collapsed = ( + range.startContainer && + range.endContainer && + range.startContainer.equals( range.endContainer ) && + range.startOffset == range.endOffset ); + }; + + // This is a shared function used to delete, extract and clone the range + // contents. + // V2 + var execContentsAction = function( range, action, docFrag, mergeThen ) + { + range.optimizeBookmark(); + + var startNode = range.startContainer; + var endNode = range.endContainer; + + var startOffset = range.startOffset; + var endOffset = range.endOffset; + + var removeStartNode; + var removeEndNode; + + // For text containers, we must simply split the node and point to the + // second part. The removal will be handled by the rest of the code . + if ( endNode.type == CKEDITOR.NODE_TEXT ) + endNode = endNode.split( endOffset ); + else + { + // If the end container has children and the offset is pointing + // to a child, then we should start from it. + if ( endNode.getChildCount() > 0 ) + { + // If the offset points after the last node. + if ( endOffset >= endNode.getChildCount() ) + { + // Let's create a temporary node and mark it for removal. + endNode = endNode.append( range.document.createText( '' ) ); + removeEndNode = true; + } + else + endNode = endNode.getChild( endOffset ); + } + } + + // For text containers, we must simply split the node. The removal will + // be handled by the rest of the code . + if ( startNode.type == CKEDITOR.NODE_TEXT ) + { + startNode.split( startOffset ); + + // In cases the end node is the same as the start node, the above + // splitting will also split the end, so me must move the end to + // the second part of the split. + if ( startNode.equals( endNode ) ) + endNode = startNode.getNext(); + } + else + { + // If the start container has children and the offset is pointing + // to a child, then we should start from its previous sibling. + + // If the offset points to the first node, we don't have a + // sibling, so let's use the first one, but mark it for removal. + if ( !startOffset ) + { + // Let's create a temporary node and mark it for removal. + startNode = startNode.getFirst().insertBeforeMe( range.document.createText( '' ) ); + removeStartNode = true; + } + else if ( startOffset >= startNode.getChildCount() ) + { + // Let's create a temporary node and mark it for removal. + startNode = startNode.append( range.document.createText( '' ) ); + removeStartNode = true; + } + else + startNode = startNode.getChild( startOffset ).getPrevious(); + } + + // Get the parent nodes tree for the start and end boundaries. + var startParents = startNode.getParents(); + var endParents = endNode.getParents(); + + // Compare them, to find the top most siblings. + var i, topStart, topEnd; + + for ( i = 0 ; i < startParents.length ; i++ ) + { + topStart = startParents[ i ]; + topEnd = endParents[ i ]; + + // The compared nodes will match until we find the top most + // siblings (different nodes that have the same parent). + // "i" will hold the index in the parents array for the top + // most element. + if ( !topStart.equals( topEnd ) ) + break; + } + + var clone = docFrag, levelStartNode, levelClone, currentNode, currentSibling; + + // Remove all successive sibling nodes for every node in the + // startParents tree. + for ( var j = i ; j < startParents.length ; j++ ) + { + levelStartNode = startParents[j]; + + // For Extract and Clone, we must clone this level. + if ( clone && !levelStartNode.equals( startNode ) ) // action = 0 = Delete + levelClone = clone.append( levelStartNode.clone() ); + + currentNode = levelStartNode.getNext(); + + while ( currentNode ) + { + // Stop processing when the current node matches a node in the + // endParents tree or if it is the endNode. + if ( currentNode.equals( endParents[ j ] ) || currentNode.equals( endNode ) ) + break; + + // Cache the next sibling. + currentSibling = currentNode.getNext(); + + // If cloning, just clone it. + if ( action == 2 ) // 2 = Clone + clone.append( currentNode.clone( true ) ); + else + { + // Both Delete and Extract will remove the node. + currentNode.remove(); + + // When Extracting, move the removed node to the docFrag. + if ( action == 1 ) // 1 = Extract + clone.append( currentNode ); + } + + currentNode = currentSibling; + } + + if ( clone ) + clone = levelClone; + } + + clone = docFrag; + + // Remove all previous sibling nodes for every node in the + // endParents tree. + for ( var k = i ; k < endParents.length ; k++ ) + { + levelStartNode = endParents[ k ]; + + // For Extract and Clone, we must clone this level. + if ( action > 0 && !levelStartNode.equals( endNode ) ) // action = 0 = Delete + levelClone = clone.append( levelStartNode.clone() ); + + // The processing of siblings may have already been done by the parent. + if ( !startParents[ k ] || levelStartNode.$.parentNode != startParents[ k ].$.parentNode ) + { + currentNode = levelStartNode.getPrevious(); + + while ( currentNode ) + { + // Stop processing when the current node matches a node in the + // startParents tree or if it is the startNode. + if ( currentNode.equals( startParents[ k ] ) || currentNode.equals( startNode ) ) + break; + + // Cache the next sibling. + currentSibling = currentNode.getPrevious(); + + // If cloning, just clone it. + if ( action == 2 ) // 2 = Clone + clone.$.insertBefore( currentNode.$.cloneNode( true ), clone.$.firstChild ) ; + else + { + // Both Delete and Extract will remove the node. + currentNode.remove(); + + // When Extracting, mode the removed node to the docFrag. + if ( action == 1 ) // 1 = Extract + clone.$.insertBefore( currentNode.$, clone.$.firstChild ); + } + + currentNode = currentSibling; + } + } + + if ( clone ) + clone = levelClone; + } + + if ( action == 2 ) // 2 = Clone. + { + // No changes in the DOM should be done, so fix the split text (if any). + + var startTextNode = range.startContainer; + if ( startTextNode.type == CKEDITOR.NODE_TEXT ) + { + startTextNode.$.data += startTextNode.$.nextSibling.data; + startTextNode.$.parentNode.removeChild( startTextNode.$.nextSibling ); + } + + var endTextNode = range.endContainer; + if ( endTextNode.type == CKEDITOR.NODE_TEXT && endTextNode.$.nextSibling ) + { + endTextNode.$.data += endTextNode.$.nextSibling.data; + endTextNode.$.parentNode.removeChild( endTextNode.$.nextSibling ); + } + } + else + { + // Collapse the range. + + // If a node has been partially selected, collapse the range between + // topStart and topEnd. Otherwise, simply collapse it to the start. (W3C specs). + if ( topStart && topEnd && ( startNode.$.parentNode != topStart.$.parentNode || endNode.$.parentNode != topEnd.$.parentNode ) ) + { + var endIndex = topEnd.getIndex(); + + // If the start node is to be removed, we must correct the + // index to reflect the removal. + if ( removeStartNode && topEnd.$.parentNode == startNode.$.parentNode ) + endIndex--; + + // Merge splitted parents. + if ( mergeThen && topStart.type == CKEDITOR.NODE_ELEMENT ) + { + var span = CKEDITOR.dom.element.createFromHtml( '<span ' + + 'data-cke-bookmark="1" style="display:none"> </span>', range.document ); + span.insertAfter( topStart ); + topStart.mergeSiblings( false ); + range.moveToBookmark( { startNode : span } ); + } + else + range.setStart( topEnd.getParent(), endIndex ); + } + + // Collapse it to the start. + range.collapse( true ); + } + + // Cleanup any marked node. + if ( removeStartNode ) + startNode.remove(); + + if ( removeEndNode && endNode.$.parentNode ) + endNode.remove(); + }; + + var inlineChildReqElements = { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 }; + + // Creates the appropriate node evaluator for the dom walker used inside + // check(Start|End)OfBlock. + function getCheckStartEndBlockEvalFunction( isStart ) + { + var skipBogus = false, + bookmarkEvaluator = CKEDITOR.dom.walker.bookmark( true ), + nbspRegExp = /^[\t\r\n ]*(?: |\xa0)$/; + + return function( node ) + { + // First ignore bookmark nodes. + if ( bookmarkEvaluator( node ) ) + return true; + + if ( node.type == CKEDITOR.NODE_TEXT ) + { + // Skip the block filler NBSP. + if ( CKEDITOR.env.ie && + nbspRegExp.test( node.getText() ) && + !skipBogus && + !( isStart && node.getNext() ) ) + { + skipBogus = true; + } + // If there's any visible text, then we're not at the start. + else if ( node.hasAscendant( 'pre' ) || CKEDITOR.tools.trim( node.getText() ).length ) + return false; + } + else if ( node.type == CKEDITOR.NODE_ELEMENT ) + { + // If there are non-empty inline elements (e.g. <img />), then we're not + // at the start. + if ( !inlineChildReqElements[ node.getName() ] ) + { + // Skip the padding block br. + if ( !CKEDITOR.env.ie && + node.is( 'br' ) && + !skipBogus && + !( isStart && node.getNext() ) ) + { + skipBogus = true; + } + else + return false; + } + } + return true; + }; + } + + + var isBogus = CKEDITOR.dom.walker.bogus(); + // Evaluator for CKEDITOR.dom.element::checkBoundaryOfElement, reject any + // text node and non-empty elements unless it's being bookmark text. + function elementBoundaryEval( checkStart ) + { + return function( node ) + { + // Tolerant bogus br when checking at the end of block. + // Reject any text node unless it's being bookmark + // OR it's spaces. + // Reject any element unless it's being invisible empty. (#3883) + return !checkStart && isBogus( node ) || + ( node.type == CKEDITOR.NODE_TEXT ? + !CKEDITOR.tools.trim( node.getText() ) || !!node.getParent().data( 'cke-bookmark' ) + : node.getName() in CKEDITOR.dtd.$removeEmpty ); + }; + } + + var whitespaceEval = new CKEDITOR.dom.walker.whitespaces(), + bookmarkEval = new CKEDITOR.dom.walker.bookmark(); + + function nonWhitespaceOrBookmarkEval( node ) + { + // Whitespaces and bookmark nodes are to be ignored. + return !whitespaceEval( node ) && !bookmarkEval( node ); + } + + CKEDITOR.dom.range.prototype = + { + clone : function() + { + var clone = new CKEDITOR.dom.range( this.document ); + + clone.startContainer = this.startContainer; + clone.startOffset = this.startOffset; + clone.endContainer = this.endContainer; + clone.endOffset = this.endOffset; + clone.collapsed = this.collapsed; + + return clone; + }, + + collapse : function( toStart ) + { + if ( toStart ) + { + this.endContainer = this.startContainer; + this.endOffset = this.startOffset; + } + else + { + this.startContainer = this.endContainer; + this.startOffset = this.endOffset; + } + + this.collapsed = true; + }, + + /** + * The content nodes of the range are cloned and added to a document fragment, which is returned. + * <strong> Note: </strong> Text selection may lost after invoking this method. (caused by text node splitting). + */ + cloneContents : function() + { + var docFrag = new CKEDITOR.dom.documentFragment( this.document ); + + if ( !this.collapsed ) + execContentsAction( this, 2, docFrag ); + + return docFrag; + }, + + /** + * Deletes the content nodes of the range permanently from the DOM tree. + * @param {Boolean} [mergeThen] Merge any splitted elements result in DOM true due to partial selection. + */ + deleteContents : function( mergeThen ) + { + if ( this.collapsed ) + return; + + execContentsAction( this, 0, null, mergeThen ); + }, + + /** + * The content nodes of the range are cloned and added to a document fragment, + * meanwhile they're removed permanently from the DOM tree. + * @param {Boolean} [mergeThen] Merge any splitted elements result in DOM true due to partial selection. + */ + extractContents : function( mergeThen ) + { + var docFrag = new CKEDITOR.dom.documentFragment( this.document ); + + if ( !this.collapsed ) + execContentsAction( this, 1, docFrag, mergeThen ); + + return docFrag; + }, + + /** + * Creates a bookmark object, which can be later used to restore the + * range by using the moveToBookmark function. + * This is an "intrusive" way to create a bookmark. It includes <span> tags + * in the range boundaries. The advantage of it is that it is possible to + * handle DOM mutations when moving back to the bookmark. + * Attention: the inclusion of nodes in the DOM is a design choice and + * should not be changed as there are other points in the code that may be + * using those nodes to perform operations. See GetBookmarkNode. + * @param {Boolean} [serializable] Indicates that the bookmark nodes + * must contain ids, which can be used to restore the range even + * when these nodes suffer mutations (like a clonation or innerHTML + * change). + * @returns {Object} And object representing a bookmark. + */ + createBookmark : function( serializable ) + { + var startNode, endNode; + var baseId; + var clone; + var collapsed = this.collapsed; + + startNode = this.document.createElement( 'span' ); + startNode.data( 'cke-bookmark', 1 ); + startNode.setStyle( 'display', 'none' ); + + // For IE, it must have something inside, otherwise it may be + // removed during DOM operations. + startNode.setHtml( ' ' ); + + if ( serializable ) + { + baseId = 'cke_bm_' + CKEDITOR.tools.getNextNumber(); + startNode.setAttribute( 'id', baseId + ( collapsed ? 'C' : 'S' ) ); + } + + // If collapsed, the endNode will not be created. + if ( !collapsed ) + { + endNode = startNode.clone(); + endNode.setHtml( ' ' ); + + if ( serializable ) + endNode.setAttribute( 'id', baseId + 'E' ); + + clone = this.clone(); + clone.collapse(); + clone.insertNode( endNode ); + } + + clone = this.clone(); + clone.collapse( true ); + clone.insertNode( startNode ); + + // Update the range position. + if ( endNode ) + { + this.setStartAfter( startNode ); + this.setEndBefore( endNode ); + } + else + this.moveToPosition( startNode, CKEDITOR.POSITION_AFTER_END ); + + return { + startNode : serializable ? baseId + ( collapsed ? 'C' : 'S' ) : startNode, + endNode : serializable ? baseId + 'E' : endNode, + serializable : serializable, + collapsed : collapsed + }; + }, + + /** + * Creates a "non intrusive" and "mutation sensible" bookmark. This + * kind of bookmark should be used only when the DOM is supposed to + * remain stable after its creation. + * @param {Boolean} [normalized] Indicates that the bookmark must + * normalized. When normalized, the successive text nodes are + * considered a single node. To sucessful load a normalized + * bookmark, the DOM tree must be also normalized before calling + * moveToBookmark. + * @returns {Object} An object representing the bookmark. + */ + createBookmark2 : function( normalized ) + { + var startContainer = this.startContainer, + endContainer = this.endContainer; + + var startOffset = this.startOffset, + endOffset = this.endOffset; + + var collapsed = this.collapsed; + + var child, previous; + + // If there is no range then get out of here. + // It happens on initial load in Safari #962 and if the editor it's + // hidden also in Firefox + if ( !startContainer || !endContainer ) + return { start : 0, end : 0 }; + + if ( normalized ) + { + // Find out if the start is pointing to a text node that will + // be normalized. + if ( startContainer.type == CKEDITOR.NODE_ELEMENT ) + { + child = startContainer.getChild( startOffset ); + + // In this case, move the start information to that text + // node. + if ( child && child.type == CKEDITOR.NODE_TEXT + && startOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT ) + { + startContainer = child; + startOffset = 0; + } + + // Get the normalized offset. + if ( child && child.type == CKEDITOR.NODE_ELEMENT ) + startOffset = child.getIndex( 1 ); + } + + // Normalize the start. + while ( startContainer.type == CKEDITOR.NODE_TEXT + && ( previous = startContainer.getPrevious() ) + && previous.type == CKEDITOR.NODE_TEXT ) + { + startContainer = previous; + startOffset += previous.getLength(); + } + + // Process the end only if not normalized. + if ( !collapsed ) + { + // Find out if the start is pointing to a text node that + // will be normalized. + if ( endContainer.type == CKEDITOR.NODE_ELEMENT ) + { + child = endContainer.getChild( endOffset ); + + // In this case, move the start information to that + // text node. + if ( child && child.type == CKEDITOR.NODE_TEXT + && endOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT ) + { + endContainer = child; + endOffset = 0; + } + + // Get the normalized offset. + if ( child && child.type == CKEDITOR.NODE_ELEMENT ) + endOffset = child.getIndex( 1 ); + } + + // Normalize the end. + while ( endContainer.type == CKEDITOR.NODE_TEXT + && ( previous = endContainer.getPrevious() ) + && previous.type == CKEDITOR.NODE_TEXT ) + { + endContainer = previous; + endOffset += previous.getLength(); + } + } + } + + return { + start : startContainer.getAddress( normalized ), + end : collapsed ? null : endContainer.getAddress( normalized ), + startOffset : startOffset, + endOffset : endOffset, + normalized : normalized, + collapsed : collapsed, + is2 : true // It's a createBookmark2 bookmark. + }; + }, + + moveToBookmark : function( bookmark ) + { + if ( bookmark.is2 ) // Created with createBookmark2(). + { + // Get the start information. + var startContainer = this.document.getByAddress( bookmark.start, bookmark.normalized ), + startOffset = bookmark.startOffset; + + // Get the end information. + var endContainer = bookmark.end && this.document.getByAddress( bookmark.end, bookmark.normalized ), + endOffset = bookmark.endOffset; + + // Set the start boundary. + this.setStart( startContainer, startOffset ); + + // Set the end boundary. If not available, collapse it. + if ( endContainer ) + this.setEnd( endContainer, endOffset ); + else + this.collapse( true ); + } + else // Created with createBookmark(). + { + var serializable = bookmark.serializable, + startNode = serializable ? this.document.getById( bookmark.startNode ) : bookmark.startNode, + endNode = serializable ? this.document.getById( bookmark.endNode ) : bookmark.endNode; + + // Set the range start at the bookmark start node position. + this.setStartBefore( startNode ); + + // Remove it, because it may interfere in the setEndBefore call. + startNode.remove(); + + // Set the range end at the bookmark end node position, or simply + // collapse it if it is not available. + if ( endNode ) + { + this.setEndBefore( endNode ); + endNode.remove(); + } + else + this.collapse( true ); + } + }, + + getBoundaryNodes : function() + { + var startNode = this.startContainer, + endNode = this.endContainer, + startOffset = this.startOffset, + endOffset = this.endOffset, + childCount; + + if ( startNode.type == CKEDITOR.NODE_ELEMENT ) + { + childCount = startNode.getChildCount(); + if ( childCount > startOffset ) + startNode = startNode.getChild( startOffset ); + else if ( childCount < 1 ) + startNode = startNode.getPreviousSourceNode(); + else // startOffset > childCount but childCount is not 0 + { + // Try to take the node just after the current position. + startNode = startNode.$; + while ( startNode.lastChild ) + startNode = startNode.lastChild; + startNode = new CKEDITOR.dom.node( startNode ); + + // Normally we should take the next node in DFS order. But it + // is also possible that we've already reached the end of + // document. + startNode = startNode.getNextSourceNode() || startNode; + } + } + if ( endNode.type == CKEDITOR.NODE_ELEMENT ) + { + childCount = endNode.getChildCount(); + if ( childCount > endOffset ) + endNode = endNode.getChild( endOffset ).getPreviousSourceNode( true ); + else if ( childCount < 1 ) + endNode = endNode.getPreviousSourceNode(); + else // endOffset > childCount but childCount is not 0 + { + // Try to take the node just before the current position. + endNode = endNode.$; + while ( endNode.lastChild ) + endNode = endNode.lastChild; + endNode = new CKEDITOR.dom.node( endNode ); + } + } + + // Sometimes the endNode will come right before startNode for collapsed + // ranges. Fix it. (#3780) + if ( startNode.getPosition( endNode ) & CKEDITOR.POSITION_FOLLOWING ) + startNode = endNode; + + return { startNode : startNode, endNode : endNode }; + }, + + /** + * Find the node which fully contains the range. + * @param includeSelf + * @param {Boolean} ignoreTextNode Whether ignore CKEDITOR.NODE_TEXT type. + */ + getCommonAncestor : function( includeSelf , ignoreTextNode ) + { + var start = this.startContainer, + end = this.endContainer, + ancestor; + + if ( start.equals( end ) ) + { + if ( includeSelf + && start.type == CKEDITOR.NODE_ELEMENT + && this.startOffset == this.endOffset - 1 ) + ancestor = start.getChild( this.startOffset ); + else + ancestor = start; + } + else + ancestor = start.getCommonAncestor( end ); + + return ignoreTextNode && !ancestor.is ? ancestor.getParent() : ancestor; + }, + + /** + * Transforms the startContainer and endContainer properties from text + * nodes to element nodes, whenever possible. This is actually possible + * if either of the boundary containers point to a text node, and its + * offset is set to zero, or after the last char in the node. + */ + optimize : function() + { + var container = this.startContainer; + var offset = this.startOffset; + + if ( container.type != CKEDITOR.NODE_ELEMENT ) + { + if ( !offset ) + this.setStartBefore( container ); + else if ( offset >= container.getLength() ) + this.setStartAfter( container ); + } + + container = this.endContainer; + offset = this.endOffset; + + if ( container.type != CKEDITOR.NODE_ELEMENT ) + { + if ( !offset ) + this.setEndBefore( container ); + else if ( offset >= container.getLength() ) + this.setEndAfter( container ); + } + }, + + /** + * Move the range out of bookmark nodes if they'd been the container. + */ + optimizeBookmark: function() + { + var startNode = this.startContainer, + endNode = this.endContainer; + + if ( startNode.is && startNode.is( 'span' ) + && startNode.data( 'cke-bookmark' ) ) + this.setStartAt( startNode, CKEDITOR.POSITION_BEFORE_START ); + if ( endNode && endNode.is && endNode.is( 'span' ) + && endNode.data( 'cke-bookmark' ) ) + this.setEndAt( endNode, CKEDITOR.POSITION_AFTER_END ); + }, + + trim : function( ignoreStart, ignoreEnd ) + { + var startContainer = this.startContainer, + startOffset = this.startOffset, + collapsed = this.collapsed; + if ( ( !ignoreStart || collapsed ) + && startContainer && startContainer.type == CKEDITOR.NODE_TEXT ) + { + // If the offset is zero, we just insert the new node before + // the start. + if ( !startOffset ) + { + startOffset = startContainer.getIndex(); + startContainer = startContainer.getParent(); + } + // If the offset is at the end, we'll insert it after the text + // node. + else if ( startOffset >= startContainer.getLength() ) + { + startOffset = startContainer.getIndex() + 1; + startContainer = startContainer.getParent(); + } + // In other case, we split the text node and insert the new + // node at the split point. + else + { + var nextText = startContainer.split( startOffset ); + + startOffset = startContainer.getIndex() + 1; + startContainer = startContainer.getParent(); + + // Check all necessity of updating the end boundary. + if ( this.startContainer.equals( this.endContainer ) ) + this.setEnd( nextText, this.endOffset - this.startOffset ); + else if ( startContainer.equals( this.endContainer ) ) + this.endOffset += 1; + } + + this.setStart( startContainer, startOffset ); + + if ( collapsed ) + { + this.collapse( true ); + return; + } + } + + var endContainer = this.endContainer; + var endOffset = this.endOffset; + + if ( !( ignoreEnd || collapsed ) + && endContainer && endContainer.type == CKEDITOR.NODE_TEXT ) + { + // If the offset is zero, we just insert the new node before + // the start. + if ( !endOffset ) + { + endOffset = endContainer.getIndex(); + endContainer = endContainer.getParent(); + } + // If the offset is at the end, we'll insert it after the text + // node. + else if ( endOffset >= endContainer.getLength() ) + { + endOffset = endContainer.getIndex() + 1; + endContainer = endContainer.getParent(); + } + // In other case, we split the text node and insert the new + // node at the split point. + else + { + endContainer.split( endOffset ); + + endOffset = endContainer.getIndex() + 1; + endContainer = endContainer.getParent(); + } + + this.setEnd( endContainer, endOffset ); + } + }, + + /** + * Expands the range so that partial units are completely contained. + * @param unit {Number} The unit type to expand with. + * @param {Boolean} [excludeBrs=false] Whether include line-breaks when expanding. + */ + enlarge : function( unit, excludeBrs ) + { + switch ( unit ) + { + case CKEDITOR.ENLARGE_ELEMENT : + + if ( this.collapsed ) + return; + + // Get the common ancestor. + var commonAncestor = this.getCommonAncestor(); + + var body = this.document.getBody(); + + // For each boundary + // a. Depending on its position, find out the first node to be checked (a sibling) or, if not available, to be enlarge. + // b. Go ahead checking siblings and enlarging the boundary as much as possible until the common ancestor is not reached. After reaching the common ancestor, just save the enlargeable node to be used later. + + var startTop, endTop; + + var enlargeable, sibling, commonReached; + + // Indicates that the node can be added only if whitespace + // is available before it. + var needsWhiteSpace = false; + var isWhiteSpace; + var siblingText; + + // Process the start boundary. + + var container = this.startContainer; + var offset = this.startOffset; + + if ( container.type == CKEDITOR.NODE_TEXT ) + { + if ( offset ) + { + // Check if there is any non-space text before the + // offset. Otherwise, container is null. + container = !CKEDITOR.tools.trim( container.substring( 0, offset ) ).length && container; + + // If we found only whitespace in the node, it + // means that we'll need more whitespace to be able + // to expand. For example, <i> can be expanded in + // "A <i> [B]</i>", but not in "A<i> [B]</i>". + needsWhiteSpace = !!container; + } + + if ( container ) + { + if ( !( sibling = container.getPrevious() ) ) + enlargeable = container.getParent(); + } + } + else + { + // If we have offset, get the node preceeding it as the + // first sibling to be checked. + if ( offset ) + sibling = container.getChild( offset - 1 ) || container.getLast(); + + // If there is no sibling, mark the container to be + // enlarged. + if ( !sibling ) + enlargeable = container; + } + + while ( enlargeable || sibling ) + { + if ( enlargeable && !sibling ) + { + // If we reached the common ancestor, mark the flag + // for it. + if ( !commonReached && enlargeable.equals( commonAncestor ) ) + commonReached = true; + + if ( !body.contains( enlargeable ) ) + break; + + // If we don't need space or this element breaks + // the line, then enlarge it. + if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' ) + { + needsWhiteSpace = false; + + // If the common ancestor has been reached, + // we'll not enlarge it immediately, but just + // mark it to be enlarged later if the end + // boundary also enlarges it. + if ( commonReached ) + startTop = enlargeable; + else + this.setStartBefore( enlargeable ); + } + + sibling = enlargeable.getPrevious(); + } + + // Check all sibling nodes preceeding the enlargeable + // node. The node wil lbe enlarged only if none of them + // blocks it. + while ( sibling ) + { + // This flag indicates that this node has + // whitespaces at the end. + isWhiteSpace = false; + + if ( sibling.type == CKEDITOR.NODE_COMMENT ) + { + sibling = sibling.getPrevious(); + continue; + } + else if ( sibling.type == CKEDITOR.NODE_TEXT ) + { + siblingText = sibling.getText(); + + if ( /[^\s\ufeff]/.test( siblingText ) ) + sibling = null; + + isWhiteSpace = /[\s\ufeff]$/.test( siblingText ); + } + else + { + // If this is a visible element. + // We need to check for the bookmark attribute because IE insists on + // rendering the display:none nodes we use for bookmarks. (#3363) + // Line-breaks (br) are rendered with zero width, which we don't want to include. (#7041) + if ( ( sibling.$.offsetWidth > 0 || excludeBrs && sibling.is( 'br' ) ) && !sibling.data( 'cke-bookmark' ) ) + { + // We'll accept it only if we need + // whitespace, and this is an inline + // element with whitespace only. + if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] ) + { + // It must contains spaces and inline elements only. + + siblingText = sibling.getText(); + + if ( (/[^\s\ufeff]/).test( siblingText ) ) // Spaces + Zero Width No-Break Space (U+FEFF) + sibling = null; + else + { + var allChildren = sibling.$.getElementsByTagName( '*' ); + for ( var i = 0, child ; child = allChildren[ i++ ] ; ) + { + if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] ) + { + sibling = null; + break; + } + } + } + + if ( sibling ) + isWhiteSpace = !!siblingText.length; + } + else + sibling = null; + } + } + + // A node with whitespaces has been found. + if ( isWhiteSpace ) + { + // Enlarge the last enlargeable node, if we + // were waiting for spaces. + if ( needsWhiteSpace ) + { + if ( commonReached ) + startTop = enlargeable; + else if ( enlargeable ) + this.setStartBefore( enlargeable ); + } + else + needsWhiteSpace = true; + } + + if ( sibling ) + { + var next = sibling.getPrevious(); + + if ( !enlargeable && !next ) + { + // Set the sibling as enlargeable, so it's + // parent will be get later outside this while. + enlargeable = sibling; + sibling = null; + break; + } + + sibling = next; + } + else + { + // If sibling has been set to null, then we + // need to stop enlarging. + enlargeable = null; + } + } + + if ( enlargeable ) + enlargeable = enlargeable.getParent(); + } + + // Process the end boundary. This is basically the same + // code used for the start boundary, with small changes to + // make it work in the oposite side (to the right). This + // makes it difficult to reuse the code here. So, fixes to + // the above code are likely to be replicated here. + + container = this.endContainer; + offset = this.endOffset; + + // Reset the common variables. + enlargeable = sibling = null; + commonReached = needsWhiteSpace = false; + + if ( container.type == CKEDITOR.NODE_TEXT ) + { + // Check if there is any non-space text after the + // offset. Otherwise, container is null. + container = !CKEDITOR.tools.trim( container.substring( offset ) ).length && container; + + // If we found only whitespace in the node, it + // means that we'll need more whitespace to be able + // to expand. For example, <i> can be expanded in + // "A <i> [B]</i>", but not in "A<i> [B]</i>". + needsWhiteSpace = !( container && container.getLength() ); + + if ( container ) + { + if ( !( sibling = container.getNext() ) ) + enlargeable = container.getParent(); + } + } + else + { + // Get the node right after the boudary to be checked + // first. + sibling = container.getChild( offset ); + + if ( !sibling ) + enlargeable = container; + } + + while ( enlargeable || sibling ) + { + if ( enlargeable && !sibling ) + { + if ( !commonReached && enlargeable.equals( commonAncestor ) ) + commonReached = true; + + if ( !body.contains( enlargeable ) ) + break; + + if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' ) + { + needsWhiteSpace = false; + + if ( commonReached ) + endTop = enlargeable; + else if ( enlargeable ) + this.setEndAfter( enlargeable ); + } + + sibling = enlargeable.getNext(); + } + + while ( sibling ) + { + isWhiteSpace = false; + + if ( sibling.type == CKEDITOR.NODE_TEXT ) + { + siblingText = sibling.getText(); + + if ( /[^\s\ufeff]/.test( siblingText ) ) + sibling = null; + + isWhiteSpace = /^[\s\ufeff]/.test( siblingText ); + } + else if ( sibling.type == CKEDITOR.NODE_ELEMENT ) + { + // If this is a visible element. + // We need to check for the bookmark attribute because IE insists on + // rendering the display:none nodes we use for bookmarks. (#3363) + // Line-breaks (br) are rendered with zero width, which we don't want to include. (#7041) + if ( ( sibling.$.offsetWidth > 0 || excludeBrs && sibling.is( 'br' ) ) && !sibling.data( 'cke-bookmark' ) ) + { + // We'll accept it only if we need + // whitespace, and this is an inline + // element with whitespace only. + if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] ) + { + // It must contains spaces and inline elements only. + + siblingText = sibling.getText(); + + if ( (/[^\s\ufeff]/).test( siblingText ) ) + sibling = null; + else + { + allChildren = sibling.$.getElementsByTagName( '*' ); + for ( i = 0 ; child = allChildren[ i++ ] ; ) + { + if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] ) + { + sibling = null; + break; + } + } + } + + if ( sibling ) + isWhiteSpace = !!siblingText.length; + } + else + sibling = null; + } + } + else + isWhiteSpace = 1; + + if ( isWhiteSpace ) + { + if ( needsWhiteSpace ) + { + if ( commonReached ) + endTop = enlargeable; + else + this.setEndAfter( enlargeable ); + } + } + + if ( sibling ) + { + next = sibling.getNext(); + + if ( !enlargeable && !next ) + { + enlargeable = sibling; + sibling = null; + break; + } + + sibling = next; + } + else + { + // If sibling has been set to null, then we + // need to stop enlarging. + enlargeable = null; + } + } + + if ( enlargeable ) + enlargeable = enlargeable.getParent(); + } + + // If the common ancestor can be enlarged by both boundaries, then include it also. + if ( startTop && endTop ) + { + commonAncestor = startTop.contains( endTop ) ? endTop : startTop; + + this.setStartBefore( commonAncestor ); + this.setEndAfter( commonAncestor ); + } + break; + + case CKEDITOR.ENLARGE_BLOCK_CONTENTS: + case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS: + + // Enlarging the start boundary. + var walkerRange = new CKEDITOR.dom.range( this.document ); + + body = this.document.getBody(); + + walkerRange.setStartAt( body, CKEDITOR.POSITION_AFTER_START ); + walkerRange.setEnd( this.startContainer, this.startOffset ); + + var walker = new CKEDITOR.dom.walker( walkerRange ), + blockBoundary, // The node on which the enlarging should stop. + tailBr, // In case BR as block boundary. + notBlockBoundary = CKEDITOR.dom.walker.blockBoundary( + ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ? { br : 1 } : null ), + // Record the encountered 'blockBoundary' for later use. + boundaryGuard = function( node ) + { + var retval = notBlockBoundary( node ); + if ( !retval ) + blockBoundary = node; + return retval; + }, + // Record the encounted 'tailBr' for later use. + tailBrGuard = function( node ) + { + var retval = boundaryGuard( node ); + if ( !retval && node.is && node.is( 'br' ) ) + tailBr = node; + return retval; + }; + + walker.guard = boundaryGuard; + + enlargeable = walker.lastBackward(); + + // It's the body which stop the enlarging if no block boundary found. + blockBoundary = blockBoundary || body; + + // Start the range either after the end of found block (<p>...</p>[text) + // or at the start of block (<p>[text...), by comparing the document position + // with 'enlargeable' node. + this.setStartAt( + blockBoundary, + !blockBoundary.is( 'br' ) && + ( !enlargeable && this.checkStartOfBlock() + || enlargeable && blockBoundary.contains( enlargeable ) ) ? + CKEDITOR.POSITION_AFTER_START : + CKEDITOR.POSITION_AFTER_END ); + + // Avoid enlarging the range further when end boundary spans right after the BR. (#7490) + if ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) + { + var theRange = this.clone(); + walker = new CKEDITOR.dom.walker( theRange ); + + var whitespaces = CKEDITOR.dom.walker.whitespaces(), + bookmark = CKEDITOR.dom.walker.bookmark(); + + walker.evaluator = function( node ) { return !whitespaces( node ) && !bookmark( node ); }; + var previous = walker.previous(); + if ( previous && previous.type == CKEDITOR.NODE_ELEMENT && previous.is( 'br' ) ) + return; + } + + + // Enlarging the end boundary. + walkerRange = this.clone(); + walkerRange.collapse(); + walkerRange.setEndAt( body, CKEDITOR.POSITION_BEFORE_END ); + walker = new CKEDITOR.dom.walker( walkerRange ); + + // tailBrGuard only used for on range end. + walker.guard = ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ? + tailBrGuard : boundaryGuard; + blockBoundary = null; + // End the range right before the block boundary node. + + enlargeable = walker.lastForward(); + + // It's the body which stop the enlarging if no block boundary found. + blockBoundary = blockBoundary || body; + + // Close the range either before the found block start (text]<p>...</p>) or at the block end (...text]</p>) + // by comparing the document position with 'enlargeable' node. + this.setEndAt( + blockBoundary, + ( !enlargeable && this.checkEndOfBlock() + || enlargeable && blockBoundary.contains( enlargeable ) ) ? + CKEDITOR.POSITION_BEFORE_END : + CKEDITOR.POSITION_BEFORE_START ); + // We must include the <br> at the end of range if there's + // one and we're expanding list item contents + if ( tailBr ) + this.setEndAfter( tailBr ); + } + }, + + /** + * Descrease the range to make sure that boundaries + * always anchor beside text nodes or innermost element. + * @param {Number} mode ( CKEDITOR.SHRINK_ELEMENT | CKEDITOR.SHRINK_TEXT ) The shrinking mode. + * <dl> + * <dt>CKEDITOR.SHRINK_ELEMENT</dt> + * <dd>Shrink the range boundaries to the edge of the innermost element.</dd> + * <dt>CKEDITOR.SHRINK_TEXT</dt> + * <dd>Shrink the range boudaries to anchor by the side of enclosed text node, range remains if there's no text nodes on boundaries at all.</dd> + * </dl> + * @param {Boolean} selectContents Whether result range anchors at the inner OR outer boundary of the node. + */ + shrink : function( mode, selectContents ) + { + // Unable to shrink a collapsed range. + if ( !this.collapsed ) + { + mode = mode || CKEDITOR.SHRINK_TEXT; + + var walkerRange = this.clone(); + + var startContainer = this.startContainer, + endContainer = this.endContainer, + startOffset = this.startOffset, + endOffset = this.endOffset, + collapsed = this.collapsed; + + // Whether the start/end boundary is moveable. + var moveStart = 1, + moveEnd = 1; + + if ( startContainer && startContainer.type == CKEDITOR.NODE_TEXT ) + { + if ( !startOffset ) + walkerRange.setStartBefore( startContainer ); + else if ( startOffset >= startContainer.getLength( ) ) + walkerRange.setStartAfter( startContainer ); + else + { + // Enlarge the range properly to avoid walker making + // DOM changes caused by triming the text nodes later. + walkerRange.setStartBefore( startContainer ); + moveStart = 0; + } + } + + if ( endContainer && endContainer.type == CKEDITOR.NODE_TEXT ) + { + if ( !endOffset ) + walkerRange.setEndBefore( endContainer ); + else if ( endOffset >= endContainer.getLength( ) ) + walkerRange.setEndAfter( endContainer ); + else + { + walkerRange.setEndAfter( endContainer ); + moveEnd = 0; + } + } + + var walker = new CKEDITOR.dom.walker( walkerRange ), + isBookmark = CKEDITOR.dom.walker.bookmark(); + + walker.evaluator = function( node ) + { + return node.type == ( mode == CKEDITOR.SHRINK_ELEMENT ? + CKEDITOR.NODE_ELEMENT : CKEDITOR.NODE_TEXT ); + }; + + var currentElement; + walker.guard = function( node, movingOut ) + { + if ( isBookmark( node ) ) + return true; + + // Stop when we're shrink in element mode while encountering a text node. + if ( mode == CKEDITOR.SHRINK_ELEMENT && node.type == CKEDITOR.NODE_TEXT ) + return false; + + // Stop when we've already walked "through" an element. + if ( movingOut && node.equals( currentElement ) ) + return false; + + if ( !movingOut && node.type == CKEDITOR.NODE_ELEMENT ) + currentElement = node; + + return true; + }; + + if ( moveStart ) + { + var textStart = walker[ mode == CKEDITOR.SHRINK_ELEMENT ? 'lastForward' : 'next'](); + textStart && this.setStartAt( textStart, selectContents ? CKEDITOR.POSITION_AFTER_START : CKEDITOR.POSITION_BEFORE_START ); + } + + if ( moveEnd ) + { + walker.reset(); + var textEnd = walker[ mode == CKEDITOR.SHRINK_ELEMENT ? 'lastBackward' : 'previous'](); + textEnd && this.setEndAt( textEnd, selectContents ? CKEDITOR.POSITION_BEFORE_END : CKEDITOR.POSITION_AFTER_END ); + } + + return !!( moveStart || moveEnd ); + } + }, + + /** + * Inserts a node at the start of the range. The range will be expanded + * the contain the node. + */ + insertNode : function( node ) + { + this.optimizeBookmark(); + this.trim( false, true ); + + var startContainer = this.startContainer; + var startOffset = this.startOffset; + + var nextNode = startContainer.getChild( startOffset ); + + if ( nextNode ) + node.insertBefore( nextNode ); + else + startContainer.append( node ); + + // Check if we need to update the end boundary. + if ( node.getParent().equals( this.endContainer ) ) + this.endOffset++; + + // Expand the range to embrace the new node. + this.setStartBefore( node ); + }, + + moveToPosition : function( node, position ) + { + this.setStartAt( node, position ); + this.collapse( true ); + }, + + selectNodeContents : function( node ) + { + this.setStart( node, 0 ); + this.setEnd( node, node.type == CKEDITOR.NODE_TEXT ? node.getLength() : node.getChildCount() ); + }, + + /** + * Sets the start position of a Range. + * @param {CKEDITOR.dom.node} startNode The node to start the range. + * @param {Number} startOffset An integer greater than or equal to zero + * representing the offset for the start of the range from the start + * of startNode. + */ + setStart : function( startNode, startOffset ) + { + // W3C requires a check for the new position. If it is after the end + // boundary, the range should be collapsed to the new start. It seams + // we will not need this check for our use of this class so we can + // ignore it for now. + + // Fixing invalid range start inside dtd empty elements. + if( startNode.type == CKEDITOR.NODE_ELEMENT + && CKEDITOR.dtd.$empty[ startNode.getName() ] ) + startOffset = startNode.getIndex(), startNode = startNode.getParent(); + + this.startContainer = startNode; + this.startOffset = startOffset; + + if ( !this.endContainer ) + { + this.endContainer = startNode; + this.endOffset = startOffset; + } + + updateCollapsed( this ); + }, + + /** + * Sets the end position of a Range. + * @param {CKEDITOR.dom.node} endNode The node to end the range. + * @param {Number} endOffset An integer greater than or equal to zero + * representing the offset for the end of the range from the start + * of endNode. + */ + setEnd : function( endNode, endOffset ) + { + // W3C requires a check for the new position. If it is before the start + // boundary, the range should be collapsed to the new end. It seams we + // will not need this check for our use of this class so we can ignore + // it for now. + + // Fixing invalid range end inside dtd empty elements. + if( endNode.type == CKEDITOR.NODE_ELEMENT + && CKEDITOR.dtd.$empty[ endNode.getName() ] ) + endOffset = endNode.getIndex() + 1, endNode = endNode.getParent(); + + this.endContainer = endNode; + this.endOffset = endOffset; + + if ( !this.startContainer ) + { + this.startContainer = endNode; + this.startOffset = endOffset; + } + + updateCollapsed( this ); + }, + + setStartAfter : function( node ) + { + this.setStart( node.getParent(), node.getIndex() + 1 ); + }, + + setStartBefore : function( node ) + { + this.setStart( node.getParent(), node.getIndex() ); + }, + + setEndAfter : function( node ) + { + this.setEnd( node.getParent(), node.getIndex() + 1 ); + }, + + setEndBefore : function( node ) + { + this.setEnd( node.getParent(), node.getIndex() ); + }, + + setStartAt : function( node, position ) + { + switch( position ) + { + case CKEDITOR.POSITION_AFTER_START : + this.setStart( node, 0 ); + break; + + case CKEDITOR.POSITION_BEFORE_END : + if ( node.type == CKEDITOR.NODE_TEXT ) + this.setStart( node, node.getLength() ); + else + this.setStart( node, node.getChildCount() ); + break; + + case CKEDITOR.POSITION_BEFORE_START : + this.setStartBefore( node ); + break; + + case CKEDITOR.POSITION_AFTER_END : + this.setStartAfter( node ); + } + + updateCollapsed( this ); + }, + + setEndAt : function( node, position ) + { + switch( position ) + { + case CKEDITOR.POSITION_AFTER_START : + this.setEnd( node, 0 ); + break; + + case CKEDITOR.POSITION_BEFORE_END : + if ( node.type == CKEDITOR.NODE_TEXT ) + this.setEnd( node, node.getLength() ); + else + this.setEnd( node, node.getChildCount() ); + break; + + case CKEDITOR.POSITION_BEFORE_START : + this.setEndBefore( node ); + break; + + case CKEDITOR.POSITION_AFTER_END : + this.setEndAfter( node ); + } + + updateCollapsed( this ); + }, + + fixBlock : function( isStart, blockTag ) + { + var bookmark = this.createBookmark(), + fixedBlock = this.document.createElement( blockTag ); + + this.collapse( isStart ); + + this.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS ); + + this.extractContents().appendTo( fixedBlock ); + fixedBlock.trim(); + + if ( !CKEDITOR.env.ie ) + fixedBlock.appendBogus(); + + this.insertNode( fixedBlock ); + + this.moveToBookmark( bookmark ); + + return fixedBlock; + }, + + splitBlock : function( blockTag ) + { + var startPath = new CKEDITOR.dom.elementPath( this.startContainer ), + endPath = new CKEDITOR.dom.elementPath( this.endContainer ); + + var startBlockLimit = startPath.blockLimit, + endBlockLimit = endPath.blockLimit; + + var startBlock = startPath.block, + endBlock = endPath.block; + + var elementPath = null; + // Do nothing if the boundaries are in different block limits. + if ( !startBlockLimit.equals( endBlockLimit ) ) + return null; + + // Get or fix current blocks. + if ( blockTag != 'br' ) + { + if ( !startBlock ) + { + startBlock = this.fixBlock( true, blockTag ); + endBlock = new CKEDITOR.dom.elementPath( this.endContainer ).block; + } + + if ( !endBlock ) + endBlock = this.fixBlock( false, blockTag ); + } + + // Get the range position. + var isStartOfBlock = startBlock && this.checkStartOfBlock(), + isEndOfBlock = endBlock && this.checkEndOfBlock(); + + // Delete the current contents. + // TODO: Why is 2.x doing CheckIsEmpty()? + this.deleteContents(); + + if ( startBlock && startBlock.equals( endBlock ) ) + { + if ( isEndOfBlock ) + { + elementPath = new CKEDITOR.dom.elementPath( this.startContainer ); + this.moveToPosition( endBlock, CKEDITOR.POSITION_AFTER_END ); + endBlock = null; + } + else if ( isStartOfBlock ) + { + elementPath = new CKEDITOR.dom.elementPath( this.startContainer ); + this.moveToPosition( startBlock, CKEDITOR.POSITION_BEFORE_START ); + startBlock = null; + } + else + { + endBlock = this.splitElement( startBlock ); + + // In Gecko, the last child node must be a bogus <br>. + // Note: bogus <br> added under <ul> or <ol> would cause + // lists to be incorrectly rendered. + if ( !CKEDITOR.env.ie && !startBlock.is( 'ul', 'ol') ) + startBlock.appendBogus() ; + } + } + + return { + previousBlock : startBlock, + nextBlock : endBlock, + wasStartOfBlock : isStartOfBlock, + wasEndOfBlock : isEndOfBlock, + elementPath : elementPath + }; + }, + + /** + * Branch the specified element from the collapsed range position and + * place the caret between the two result branches. + * Note: The range must be collapsed and been enclosed by this element. + * @param {CKEDITOR.dom.element} element + * @return {CKEDITOR.dom.element} Root element of the new branch after the split. + */ + splitElement : function( toSplit ) + { + if ( !this.collapsed ) + return null; + + // Extract the contents of the block from the selection point to the end + // of its contents. + this.setEndAt( toSplit, CKEDITOR.POSITION_BEFORE_END ); + var documentFragment = this.extractContents(); + + // Duplicate the element after it. + var clone = toSplit.clone( false ); + + // Place the extracted contents into the duplicated element. + documentFragment.appendTo( clone ); + clone.insertAfter( toSplit ); + this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END ); + return clone; + }, + + /** + * Check whether a range boundary is at the inner boundary of a given + * element. + * @param {CKEDITOR.dom.element} element The target element to check. + * @param {Number} checkType The boundary to check for both the range + * and the element. It can be CKEDITOR.START or CKEDITOR.END. + * @returns {Boolean} "true" if the range boundary is at the inner + * boundary of the element. + */ + checkBoundaryOfElement : function( element, checkType ) + { + var checkStart = ( checkType == CKEDITOR.START ); + + // Create a copy of this range, so we can manipulate it for our checks. + var walkerRange = this.clone(); + + // Collapse the range at the proper size. + walkerRange.collapse( checkStart ); + + // Expand the range to element boundary. + walkerRange[ checkStart ? 'setStartAt' : 'setEndAt' ] + ( element, checkStart ? CKEDITOR.POSITION_AFTER_START : CKEDITOR.POSITION_BEFORE_END ); + + // Create the walker, which will check if we have anything useful + // in the range. + var walker = new CKEDITOR.dom.walker( walkerRange ); + walker.evaluator = elementBoundaryEval( checkStart ); + + return walker[ checkStart ? 'checkBackward' : 'checkForward' ](); + }, + + // Calls to this function may produce changes to the DOM. The range may + // be updated to reflect such changes. + checkStartOfBlock : function() + { + var startContainer = this.startContainer, + startOffset = this.startOffset; + + // If the starting node is a text node, and non-empty before the offset, + // then we're surely not at the start of block. + if ( startOffset && startContainer.type == CKEDITOR.NODE_TEXT ) + { + var textBefore = CKEDITOR.tools.ltrim( startContainer.substring( 0, startOffset ) ); + if ( textBefore.length ) + return false; + } + + // We need to grab the block element holding the start boundary, so + // let's use an element path for it. + var path = new CKEDITOR.dom.elementPath( this.startContainer ); + + // Creates a range starting at the block start until the range start. + var walkerRange = this.clone(); + walkerRange.collapse( true ); + walkerRange.setStartAt( path.block || path.blockLimit, CKEDITOR.POSITION_AFTER_START ); + + var walker = new CKEDITOR.dom.walker( walkerRange ); + walker.evaluator = getCheckStartEndBlockEvalFunction( true ); + + return walker.checkBackward(); + }, + + checkEndOfBlock : function() + { + var endContainer = this.endContainer, + endOffset = this.endOffset; + + // If the ending node is a text node, and non-empty after the offset, + // then we're surely not at the end of block. + if ( endContainer.type == CKEDITOR.NODE_TEXT ) + { + var textAfter = CKEDITOR.tools.rtrim( endContainer.substring( endOffset ) ); + if ( textAfter.length ) + return false; + } + + // We need to grab the block element holding the start boundary, so + // let's use an element path for it. + var path = new CKEDITOR.dom.elementPath( this.endContainer ); + + // Creates a range starting at the block start until the range start. + var walkerRange = this.clone(); + walkerRange.collapse( false ); + walkerRange.setEndAt( path.block || path.blockLimit, CKEDITOR.POSITION_BEFORE_END ); + + var walker = new CKEDITOR.dom.walker( walkerRange ); + walker.evaluator = getCheckStartEndBlockEvalFunction( false ); + + return walker.checkForward(); + }, + + /** + * Check if elements at which the range boundaries anchor are read-only, + * with respect to "contenteditable" attribute. + */ + checkReadOnly : ( function() + { + function checkNodesEditable( node, anotherEnd ) + { + while( node ) + { + if ( node.type == CKEDITOR.NODE_ELEMENT ) + { + if ( node.getAttribute( 'contentEditable' ) == 'false' + && !node.data( 'cke-editable' ) ) + { + return 0; + } + // Range enclosed entirely in an editable element. + else if ( node.is( 'html' ) + || node.getAttribute( 'contentEditable' ) == 'true' + && ( node.contains( anotherEnd ) || node.equals( anotherEnd ) ) ) + { + break; + } + } + node = node.getParent(); + } + + return 1; + } + + return function() + { + var startNode = this.startContainer, + endNode = this.endContainer; + + // Check if elements path at both boundaries are editable. + return !( checkNodesEditable( startNode, endNode ) && checkNodesEditable( endNode, startNode ) ); + }; + })(), + + /** + * Moves the range boundaries to the first/end editing point inside an + * element. For example, in an element tree like + * "<p><b><i></i></b> Text</p>", the start editing point is + * "<p><b><i>^</i></b> Text</p>" (inside <i>). + * @param {CKEDITOR.dom.element} el The element into which look for the + * editing spot. + * @param {Boolean} isMoveToEnd Whether move to the end editable position. + */ + moveToElementEditablePosition : function( el, isMoveToEnd ) + { + var nbspRegExp = /^[\t\r\n ]*(?: |\xa0)$/; + + function nextDFS( node, childOnly ) + { + var next; + + if ( node.type == CKEDITOR.NODE_ELEMENT && node.isEditable( false ) ) + next = node[ isMoveToEnd ? 'getLast' : 'getFirst' ]( nonWhitespaceOrBookmarkEval ); + + if ( !childOnly && !next ) + next = node[ isMoveToEnd ? 'getPrevious' : 'getNext' ]( nonWhitespaceOrBookmarkEval ); + + return next; + } + + // Handle non-editable element e.g. HR. + if ( el.type == CKEDITOR.NODE_ELEMENT && !el.isEditable( false ) ) + { + this.moveToPosition( el, isMoveToEnd ? + CKEDITOR.POSITION_AFTER_END : + CKEDITOR.POSITION_BEFORE_START ); + return true; + } + + var found = 0; + + while ( el ) + { + // Stop immediately if we've found a text node. + if ( el.type == CKEDITOR.NODE_TEXT ) + { + // Put cursor before block filler. + if ( isMoveToEnd && this.checkEndOfBlock() && nbspRegExp.test( el.getText() ) ) + this.moveToPosition( el, CKEDITOR.POSITION_BEFORE_START ); + else + this.moveToPosition( el, isMoveToEnd ? + CKEDITOR.POSITION_AFTER_END : + CKEDITOR.POSITION_BEFORE_START ); + found = 1; + break; + } + + // If an editable element is found, move inside it, but not stop the searching. + if ( el.type == CKEDITOR.NODE_ELEMENT ) + { + if ( el.isEditable() ) + { + this.moveToPosition( el, isMoveToEnd ? + CKEDITOR.POSITION_BEFORE_END : + CKEDITOR.POSITION_AFTER_START ); + found = 1; + } + // Put cursor before padding block br. + else if ( isMoveToEnd && el.is( 'br' ) && this.checkEndOfBlock() ) + this.moveToPosition( el, CKEDITOR.POSITION_BEFORE_START ); + } + + el = nextDFS( el, found ); + } + + return !!found; + }, + + /** + *@see {CKEDITOR.dom.range.moveToElementEditablePosition} + */ + moveToElementEditStart : function( target ) + { + return this.moveToElementEditablePosition( target ); + }, + + /** + *@see {CKEDITOR.dom.range.moveToElementEditablePosition} + */ + moveToElementEditEnd : function( target ) + { + return this.moveToElementEditablePosition( target, true ); + }, + + /** + * Get the single node enclosed within the range if there's one. + */ + getEnclosedNode : function() + { + var walkerRange = this.clone(); + + // Optimize and analyze the range to avoid DOM destructive nature of walker. (#5780) + walkerRange.optimize(); + if ( walkerRange.startContainer.type != CKEDITOR.NODE_ELEMENT + || walkerRange.endContainer.type != CKEDITOR.NODE_ELEMENT ) + return null; + + var walker = new CKEDITOR.dom.walker( walkerRange ), + isNotBookmarks = CKEDITOR.dom.walker.bookmark( true ), + isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), + evaluator = function( node ) + { + return isNotWhitespaces( node ) && isNotBookmarks( node ); + }; + walkerRange.evaluator = evaluator; + var node = walker.next(); + walker.reset(); + return node && node.equals( walker.previous() ) ? node : null; + }, + + getTouchedStartNode : function() + { + var container = this.startContainer ; + + if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT ) + return container ; + + return container.getChild( this.startOffset ) || container ; + }, + + getTouchedEndNode : function() + { + var container = this.endContainer ; + + if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT ) + return container ; + + return container.getChild( this.endOffset - 1 ) || container ; + } + }; +})(); + +CKEDITOR.POSITION_AFTER_START = 1; // <element>^contents</element> "^text" +CKEDITOR.POSITION_BEFORE_END = 2; // <element>contents^</element> "text^" +CKEDITOR.POSITION_BEFORE_START = 3; // ^<element>contents</element> ^"text" +CKEDITOR.POSITION_AFTER_END = 4; // <element>contents</element>^ "text" + +CKEDITOR.ENLARGE_ELEMENT = 1; +CKEDITOR.ENLARGE_BLOCK_CONTENTS = 2; +CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS = 3; + +// Check boundary types. +// @see CKEDITOR.dom.range.prototype.checkBoundaryOfElement +CKEDITOR.START = 1; +CKEDITOR.END = 2; +CKEDITOR.STARTEND = 3; + +// Shrink range types. +// @see CKEDITOR.dom.range.prototype.shrink +CKEDITOR.SHRINK_ELEMENT = 1; +CKEDITOR.SHRINK_TEXT = 2; diff --git a/htdocs/includes/ckeditor/_source/core/dom/rangelist.js b/htdocs/includes/ckeditor/_source/core/dom/rangelist.js new file mode 100644 index 0000000000000000000000000000000000000000..2e5a1b22a8c4c3d6296dd39d6ad49e6803048267 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/rangelist.js @@ -0,0 +1,213 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + /** + * Represents a list os CKEDITOR.dom.range objects, which can be easily + * iterated sequentially. + * @constructor + * @param {CKEDITOR.dom.range|Array} [ranges] The ranges contained on this list. + * Note that, if an array of ranges is specified, the range sequence + * should match its DOM order. This class will not help to sort them. + */ + CKEDITOR.dom.rangeList = function( ranges ) + { + if ( ranges instanceof CKEDITOR.dom.rangeList ) + return ranges; + + if ( !ranges ) + ranges = []; + else if ( ranges instanceof CKEDITOR.dom.range ) + ranges = [ ranges ]; + + return CKEDITOR.tools.extend( ranges, mixins ); + }; + + var mixins = + /** @lends CKEDITOR.dom.rangeList.prototype */ + { + /** + * Creates an instance of the rangeList iterator, it should be used + * only when the ranges processing could be DOM intrusive, which + * means it may pollute and break other ranges in this list. + * Otherwise, it's enough to just iterate over this array in a for loop. + * @returns {CKEDITOR.dom.rangeListIterator} + */ + createIterator : function() + { + var rangeList = this, + bookmark = CKEDITOR.dom.walker.bookmark(), + guard = function( node ) { return ! ( node.is && node.is( 'tr' ) ); }, + bookmarks = [], + current; + + /** + * @lends CKEDITOR.dom.rangeListIterator.prototype + */ + return { + + /** + * Retrieves the next range in the list. + * @param {Boolean} mergeConsequent Whether join two adjacent ranges into single, e.g. consequent table cells. + */ + getNextRange : function( mergeConsequent ) + { + current = current == undefined ? 0 : current + 1; + + var range = rangeList[ current ]; + + // Multiple ranges might be mangled by each other. + if ( range && rangeList.length > 1 ) + { + // Bookmarking all other ranges on the first iteration, + // the range correctness after it doesn't matter since we'll + // restore them before the next iteration. + if ( !current ) + { + // Make sure bookmark correctness by reverse processing. + for ( var i = rangeList.length - 1; i >= 0; i-- ) + bookmarks.unshift( rangeList[ i ].createBookmark( true ) ); + } + + if ( mergeConsequent ) + { + // Figure out how many ranges should be merged. + var mergeCount = 0; + while ( rangeList[ current + mergeCount + 1 ] ) + { + var doc = range.document, + found = 0, + left = doc.getById( bookmarks[ mergeCount ].endNode ), + right = doc.getById( bookmarks[ mergeCount + 1 ].startNode ), + next; + + // Check subsequent range. + while ( 1 ) + { + next = left.getNextSourceNode( false ); + if ( !right.equals( next ) ) + { + // This could be yet another bookmark or + // walking across block boundaries. + if ( bookmark( next ) || ( next.type == CKEDITOR.NODE_ELEMENT && next.isBlockBoundary() ) ) + { + left = next; + continue; + } + } + else + found = 1; + + break; + } + + if ( !found ) + break; + + mergeCount++; + } + } + + range.moveToBookmark( bookmarks.shift() ); + + // Merge ranges finally after moving to bookmarks. + while( mergeCount-- ) + { + next = rangeList[ ++current ]; + next.moveToBookmark( bookmarks.shift() ); + range.setEnd( next.endContainer, next.endOffset ); + } + } + + return range; + } + }; + }, + + createBookmarks : function( serializable ) + { + var retval = [], bookmark; + for ( var i = 0; i < this.length ; i++ ) + { + retval.push( bookmark = this[ i ].createBookmark( serializable, true) ); + + // Updating the container & offset values for ranges + // that have been touched. + for ( var j = i + 1; j < this.length; j++ ) + { + this[ j ] = updateDirtyRange( bookmark, this[ j ] ); + this[ j ] = updateDirtyRange( bookmark, this[ j ], true ); + } + } + return retval; + }, + + createBookmarks2 : function( normalized ) + { + var bookmarks = []; + + for ( var i = 0 ; i < this.length ; i++ ) + bookmarks.push( this[ i ].createBookmark2( normalized ) ); + + return bookmarks; + }, + + /** + * Move each range in the list to the position specified by a list of bookmarks. + * @param {Array} bookmarks The list of bookmarks, each one matching a range in the list. + */ + moveToBookmarks : function( bookmarks ) + { + for ( var i = 0 ; i < this.length ; i++ ) + this[ i ].moveToBookmark( bookmarks[ i ] ); + } + }; + + // Update the specified range which has been mangled by previous insertion of + // range bookmark nodes.(#3256) + function updateDirtyRange( bookmark, dirtyRange, checkEnd ) + { + var serializable = bookmark.serializable, + container = dirtyRange[ checkEnd ? 'endContainer' : 'startContainer' ], + offset = checkEnd ? 'endOffset' : 'startOffset'; + + var bookmarkStart = serializable ? + dirtyRange.document.getById( bookmark.startNode ) + : bookmark.startNode; + + var bookmarkEnd = serializable ? + dirtyRange.document.getById( bookmark.endNode ) + : bookmark.endNode; + + if ( container.equals( bookmarkStart.getPrevious() ) ) + { + dirtyRange.startOffset = dirtyRange.startOffset + - container.getLength() + - bookmarkEnd.getPrevious().getLength(); + container = bookmarkEnd.getNext(); + } + else if ( container.equals( bookmarkEnd.getPrevious() ) ) + { + dirtyRange.startOffset = dirtyRange.startOffset - container.getLength(); + container = bookmarkEnd.getNext(); + } + + container.equals( bookmarkStart.getParent() ) && dirtyRange[ offset ]++; + container.equals( bookmarkEnd.getParent() ) && dirtyRange[ offset ]++; + + // Update and return this range. + dirtyRange[ checkEnd ? 'endContainer' : 'startContainer' ] = container; + return dirtyRange; + } +})(); + +/** + * (Virtual Class) Do not call this constructor. This class is not really part + * of the API. It just describes the return type of {@link CKEDITOR.dom.rangeList#createIterator}. + * @name CKEDITOR.dom.rangeListIterator + * @constructor + * @example + */ diff --git a/htdocs/includes/ckeditor/_source/core/dom/text.js b/htdocs/includes/ckeditor/_source/core/dom/text.js new file mode 100644 index 0000000000000000000000000000000000000000..dfb46d5037d5fd8898b935132b1eb8cf3ba29b2b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/text.js @@ -0,0 +1,128 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.text} class, which represents + * a DOM text node. + */ + +/** + * Represents a DOM text node. + * @constructor + * @augments CKEDITOR.dom.node + * @param {Object|String} text A native DOM text node or a string containing + * the text to use to create a new text node. + * @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain + * the node in case of new node creation. Defaults to the current document. + * @example + * var nativeNode = document.createTextNode( 'Example' ); + * var text = CKEDITOR.dom.text( nativeNode ); + * @example + * var text = CKEDITOR.dom.text( 'Example' ); + */ +CKEDITOR.dom.text = function( text, ownerDocument ) +{ + if ( typeof text == 'string' ) + text = ( ownerDocument ? ownerDocument.$ : document ).createTextNode( text ); + + // Theoretically, we should call the base constructor here + // (not CKEDITOR.dom.node though). But, IE doesn't support expando + // properties on text node, so the features provided by domObject will not + // work for text nodes (which is not a big issue for us). + // + // CKEDITOR.dom.domObject.call( this, element ); + + /** + * The native DOM text node represented by this class instance. + * @type Object + * @example + * var element = new CKEDITOR.dom.text( 'Example' ); + * alert( element.$.nodeType ); // "3" + */ + this.$ = text; +}; + +CKEDITOR.dom.text.prototype = new CKEDITOR.dom.node(); + +CKEDITOR.tools.extend( CKEDITOR.dom.text.prototype, + /** @lends CKEDITOR.dom.text.prototype */ + { + /** + * The node type. This is a constant value set to + * {@link CKEDITOR.NODE_TEXT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_TEXT, + + getLength : function() + { + return this.$.nodeValue.length; + }, + + getText : function() + { + return this.$.nodeValue; + }, + + setText : function( text ) + { + this.$.nodeValue = text; + }, + + /** + * Breaks this text node into two nodes at the specified offset, + * keeping both in the tree as siblings. This node then only contains + * all the content up to the offset point. A new text node, which is + * inserted as the next sibling of this node, contains all the content + * at and after the offset point. When the offset is equal to the + * length of this node, the new node has no data. + * @param {Number} The position at which to split, starting from zero. + * @returns {CKEDITOR.dom.text} The new text node. + */ + split : function( offset ) + { + // If the offset is after the last char, IE creates the text node + // on split, but don't include it into the DOM. So, we have to do + // that manually here. + if ( CKEDITOR.env.ie && offset == this.getLength() ) + { + var next = this.getDocument().createText( '' ); + next.insertAfter( this ); + return next; + } + + var doc = this.getDocument(); + var retval = new CKEDITOR.dom.text( this.$.splitText( offset ), doc ); + + // IE BUG: IE8 does not update the childNodes array in DOM after splitText(), + // we need to make some DOM changes to make it update. (#3436) + if ( CKEDITOR.env.ie8 ) + { + var workaround = new CKEDITOR.dom.text( '', doc ); + workaround.insertAfter( retval ); + workaround.remove(); + } + + return retval; + }, + + /** + * Extracts characters from indexA up to but not including indexB. + * @param {Number} indexA An integer between 0 and one less than the + * length of the text. + * @param {Number} [indexB] An integer between 0 and the length of the + * string. If omitted, extracts characters to the end of the text. + */ + substring : function( indexA, indexB ) + { + // We need the following check due to a Firefox bug + // https://bugzilla.mozilla.org/show_bug.cgi?id=458886 + if ( typeof indexB != 'number' ) + return this.$.nodeValue.substr( indexA ); + else + return this.$.nodeValue.substring( indexA, indexB ); + } + }); diff --git a/htdocs/includes/ckeditor/_source/core/dom/walker.js b/htdocs/includes/ckeditor/_source/core/dom/walker.js new file mode 100644 index 0000000000000000000000000000000000000000..a9c4ebacb5b4cb0beacff21d490918e7fda39628 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/walker.js @@ -0,0 +1,502 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + // This function is to be called under a "walker" instance scope. + function iterate( rtl, breakOnFalse ) + { + var range = this.range; + + // Return null if we have reached the end. + if ( this._.end ) + return null; + + // This is the first call. Initialize it. + if ( !this._.start ) + { + this._.start = 1; + + // A collapsed range must return null at first call. + if ( range.collapsed ) + { + this.end(); + return null; + } + + // Move outside of text node edges. + range.optimize(); + } + + var node, + startCt = range.startContainer, + endCt = range.endContainer, + startOffset = range.startOffset, + endOffset = range.endOffset, + guard, + userGuard = this.guard, + type = this.type, + getSourceNodeFn = ( rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' ); + + // Create the LTR guard function, if necessary. + if ( !rtl && !this._.guardLTR ) + { + // The node that stops walker from moving up. + var limitLTR = endCt.type == CKEDITOR.NODE_ELEMENT ? + endCt : + endCt.getParent(); + + // The node that stops the walker from going to next. + var blockerLTR = endCt.type == CKEDITOR.NODE_ELEMENT ? + endCt.getChild( endOffset ) : + endCt.getNext(); + + this._.guardLTR = function( node, movingOut ) + { + return ( ( !movingOut || !limitLTR.equals( node ) ) + && ( !blockerLTR || !node.equals( blockerLTR ) ) + && ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) ); + }; + } + + // Create the RTL guard function, if necessary. + if ( rtl && !this._.guardRTL ) + { + // The node that stops walker from moving up. + var limitRTL = startCt.type == CKEDITOR.NODE_ELEMENT ? + startCt : + startCt.getParent(); + + // The node that stops the walker from going to next. + var blockerRTL = startCt.type == CKEDITOR.NODE_ELEMENT ? + startOffset ? + startCt.getChild( startOffset - 1 ) : null : + startCt.getPrevious(); + + this._.guardRTL = function( node, movingOut ) + { + return ( ( !movingOut || !limitRTL.equals( node ) ) + && ( !blockerRTL || !node.equals( blockerRTL ) ) + && ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) ); + }; + } + + // Define which guard function to use. + var stopGuard = rtl ? this._.guardRTL : this._.guardLTR; + + // Make the user defined guard function participate in the process, + // otherwise simply use the boundary guard. + if ( userGuard ) + { + guard = function( node, movingOut ) + { + if ( stopGuard( node, movingOut ) === false ) + return false; + + return userGuard( node, movingOut ); + }; + } + else + guard = stopGuard; + + if ( this.current ) + node = this.current[ getSourceNodeFn ]( false, type, guard ); + else + { + // Get the first node to be returned. + if ( rtl ) + { + node = endCt; + + if ( node.type == CKEDITOR.NODE_ELEMENT ) + { + if ( endOffset > 0 ) + node = node.getChild( endOffset - 1 ); + else + node = ( guard ( node, true ) === false ) ? + null : node.getPreviousSourceNode( true, type, guard ); + } + } + else + { + node = startCt; + + if ( node.type == CKEDITOR.NODE_ELEMENT ) + { + if ( ! ( node = node.getChild( startOffset ) ) ) + node = ( guard ( startCt, true ) === false ) ? + null : startCt.getNextSourceNode( true, type, guard ) ; + } + } + + if ( node && guard( node ) === false ) + node = null; + } + + while ( node && !this._.end ) + { + this.current = node; + + if ( !this.evaluator || this.evaluator( node ) !== false ) + { + if ( !breakOnFalse ) + return node; + } + else if ( breakOnFalse && this.evaluator ) + return false; + + node = node[ getSourceNodeFn ]( false, type, guard ); + } + + this.end(); + return this.current = null; + } + + function iterateToLast( rtl ) + { + var node, last = null; + + while ( ( node = iterate.call( this, rtl ) ) ) + last = node; + + return last; + } + + CKEDITOR.dom.walker = CKEDITOR.tools.createClass( + { + /** + * Utility class to "walk" the DOM inside a range boundaries. If + * necessary, partially included nodes (text nodes) are broken to + * reflect the boundaries limits, so DOM and range changes may happen. + * Outside changes to the range may break the walker. + * + * The walker may return nodes that are not totaly included into the + * range boundaires. Let's take the following range representation, + * where the square brackets indicate the boundaries: + * + * [<p>Some <b>sample] text</b> + * + * While walking forward into the above range, the following nodes are + * returned: <p>, "Some ", <b> and "sample". Going + * backwards instead we have: "sample" and "Some ". So note that the + * walker always returns nodes when "entering" them, but not when + * "leaving" them. The guard function is instead called both when + * entering and leaving nodes. + * + * @constructor + * @param {CKEDITOR.dom.range} range The range within which walk. + */ + $ : function( range ) + { + this.range = range; + + /** + * A function executed for every matched node, to check whether + * it's to be considered into the walk or not. If not provided, all + * matched nodes are considered good. + * If the function returns "false" the node is ignored. + * @name CKEDITOR.dom.walker.prototype.evaluator + * @property + * @type Function + */ + // this.evaluator = null; + + /** + * A function executed for every node the walk pass by to check + * whether the walk is to be finished. It's called when both + * entering and exiting nodes, as well as for the matched nodes. + * If this function returns "false", the walking ends and no more + * nodes are evaluated. + * @name CKEDITOR.dom.walker.prototype.guard + * @property + * @type Function + */ + // this.guard = null; + + /** @private */ + this._ = {}; + }, + +// statics : +// { +// /* Creates a CKEDITOR.dom.walker instance to walk inside DOM boundaries set by nodes. +// * @param {CKEDITOR.dom.node} startNode The node from wich the walk +// * will start. +// * @param {CKEDITOR.dom.node} [endNode] The last node to be considered +// * in the walk. No more nodes are retrieved after touching or +// * passing it. If not provided, the walker stops at the +// * <body> closing boundary. +// * @returns {CKEDITOR.dom.walker} A DOM walker for the nodes between the +// * provided nodes. +// */ +// createOnNodes : function( startNode, endNode, startInclusive, endInclusive ) +// { +// var range = new CKEDITOR.dom.range(); +// if ( startNode ) +// range.setStartAt( startNode, startInclusive ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_END ) ; +// else +// range.setStartAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_AFTER_START ) ; +// +// if ( endNode ) +// range.setEndAt( endNode, endInclusive ? CKEDITOR.POSITION_AFTER_END : CKEDITOR.POSITION_BEFORE_START ) ; +// else +// range.setEndAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_BEFORE_END ) ; +// +// return new CKEDITOR.dom.walker( range ); +// } +// }, +// + proto : + { + /** + * Stop walking. No more nodes are retrieved if this function gets + * called. + */ + end : function() + { + this._.end = 1; + }, + + /** + * Retrieves the next node (at right). + * @returns {CKEDITOR.dom.node} The next node or null if no more + * nodes are available. + */ + next : function() + { + return iterate.call( this ); + }, + + /** + * Retrieves the previous node (at left). + * @returns {CKEDITOR.dom.node} The previous node or null if no more + * nodes are available. + */ + previous : function() + { + return iterate.call( this, 1 ); + }, + + /** + * Check all nodes at right, executing the evaluation fuction. + * @returns {Boolean} "false" if the evaluator function returned + * "false" for any of the matched nodes. Otherwise "true". + */ + checkForward : function() + { + return iterate.call( this, 0, 1 ) !== false; + }, + + /** + * Check all nodes at left, executing the evaluation fuction. + * @returns {Boolean} "false" if the evaluator function returned + * "false" for any of the matched nodes. Otherwise "true". + */ + checkBackward : function() + { + return iterate.call( this, 1, 1 ) !== false; + }, + + /** + * Executes a full walk forward (to the right), until no more nodes + * are available, returning the last valid node. + * @returns {CKEDITOR.dom.node} The last node at the right or null + * if no valid nodes are available. + */ + lastForward : function() + { + return iterateToLast.call( this ); + }, + + /** + * Executes a full walk backwards (to the left), until no more nodes + * are available, returning the last valid node. + * @returns {CKEDITOR.dom.node} The last node at the left or null + * if no valid nodes are available. + */ + lastBackward : function() + { + return iterateToLast.call( this, 1 ); + }, + + reset : function() + { + delete this.current; + this._ = {}; + } + + } + }); + + /* + * Anything whose display computed style is block, list-item, table, + * table-row-group, table-header-group, table-footer-group, table-row, + * table-column-group, table-column, table-cell, table-caption, or whose node + * name is hr, br (when enterMode is br only) is a block boundary. + */ + var blockBoundaryDisplayMatch = + { + block : 1, + 'list-item' : 1, + table : 1, + 'table-row-group' : 1, + 'table-header-group' : 1, + 'table-footer-group' : 1, + 'table-row' : 1, + 'table-column-group' : 1, + 'table-column' : 1, + 'table-cell' : 1, + 'table-caption' : 1 + }; + + CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames ) + { + var nodeNameMatches = customNodeNames ? + CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} ) : + CKEDITOR.dtd.$block; + + // Don't consider floated formatting as block boundary, fall back to dtd check in that case. (#6297) + return this.getComputedStyle( 'float' ) == 'none' && blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] + || nodeNameMatches[ this.getName() ]; + }; + + CKEDITOR.dom.walker.blockBoundary = function( customNodeNames ) + { + return function( node , type ) + { + return ! ( node.type == CKEDITOR.NODE_ELEMENT + && node.isBlockBoundary( customNodeNames ) ); + }; + }; + + CKEDITOR.dom.walker.listItemBoundary = function() + { + return this.blockBoundary( { br : 1 } ); + }; + + /** + * Whether the to-be-evaluated node is a bookmark node OR bookmark node + * inner contents. + * @param {Boolean} contentOnly Whether only test againt the text content of + * bookmark node instead of the element itself(default). + * @param {Boolean} isReject Whether should return 'false' for the bookmark + * node instead of 'true'(default). + */ + CKEDITOR.dom.walker.bookmark = function( contentOnly, isReject ) + { + function isBookmarkNode( node ) + { + return ( node && node.getName + && node.getName() == 'span' + && node.data( 'cke-bookmark' ) ); + } + + return function( node ) + { + var isBookmark, parent; + // Is bookmark inner text node? + isBookmark = ( node && !node.getName && ( parent = node.getParent() ) + && isBookmarkNode( parent ) ); + // Is bookmark node? + isBookmark = contentOnly ? isBookmark : isBookmark || isBookmarkNode( node ); + return !! ( isReject ^ isBookmark ); + }; + }; + + /** + * Whether the node is a text node containing only whitespaces characters. + * @param isReject + */ + CKEDITOR.dom.walker.whitespaces = function( isReject ) + { + return function( node ) + { + var isWhitespace = node && ( node.type == CKEDITOR.NODE_TEXT ) + && !CKEDITOR.tools.trim( node.getText() ); + return !! ( isReject ^ isWhitespace ); + }; + }; + + /** + * Whether the node is invisible in wysiwyg mode. + * @param isReject + */ + CKEDITOR.dom.walker.invisible = function( isReject ) + { + var whitespace = CKEDITOR.dom.walker.whitespaces(); + return function( node ) + { + // Nodes that take no spaces in wysiwyg: + // 1. White-spaces but not including NBSP; + // 2. Empty inline elements, e.g. <b></b> we're checking here + // 'offsetHeight' instead of 'offsetWidth' for properly excluding + // all sorts of empty paragraph, e.g. <br />. + var isInvisible = whitespace( node ) || node.is && !node.$.offsetHeight; + return !! ( isReject ^ isInvisible ); + }; + }; + + CKEDITOR.dom.walker.nodeType = function( type, isReject ) + { + return function( node ) + { + return !! ( isReject ^ ( node.type == type ) ); + }; + }; + + CKEDITOR.dom.walker.bogus = function( isReject ) + { + function nonEmpty( node ) + { + return !isWhitespaces( node ) && !isBookmark( node ); + } + + return function( node ) + { + var isBogus = !CKEDITOR.env.ie ? node.is && node.is( 'br' ) : + node.getText && tailNbspRegex.test( node.getText() ); + + if ( isBogus ) + { + var parent = node.getParent(), next = node.getNext( nonEmpty ); + isBogus = parent.isBlockBoundary() && + ( !next || + next.type == CKEDITOR.NODE_ELEMENT && + next.isBlockBoundary() ); + } + + return !! ( isReject ^ isBogus ); + }; + }; + + var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/, + isWhitespaces = CKEDITOR.dom.walker.whitespaces(), + isBookmark = CKEDITOR.dom.walker.bookmark(), + toSkip = function( node ) + { + return isBookmark( node ) + || isWhitespaces( node ) + || node.type == CKEDITOR.NODE_ELEMENT + && node.getName() in CKEDITOR.dtd.$inline + && !( node.getName() in CKEDITOR.dtd.$empty ); + }; + + // Check if there's a filler node at the end of an element, and return it. + CKEDITOR.dom.element.prototype.getBogus = function() + { + // Bogus are not always at the end, e.g. <p><a>text<br /></a></p> (#7070). + var tail = this; + do { tail = tail.getPreviousSourceNode(); } + while ( toSkip( tail ) ) + + if ( tail && ( !CKEDITOR.env.ie ? tail.is && tail.is( 'br' ) + : tail.getText && tailNbspRegex.test( tail.getText() ) ) ) + { + return tail; + } + return false; + }; + +})(); diff --git a/htdocs/includes/ckeditor/_source/core/dom/window.js b/htdocs/includes/ckeditor/_source/core/dom/window.js new file mode 100644 index 0000000000000000000000000000000000000000..755b658f7f95ae4590d2823fc107afe79c2c10c3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dom/window.js @@ -0,0 +1,96 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.document} class, which + * represents a DOM document. + */ + +/** + * Represents a DOM window. + * @constructor + * @augments CKEDITOR.dom.domObject + * @param {Object} domWindow A native DOM window. + * @example + * var document = new CKEDITOR.dom.window( window ); + */ +CKEDITOR.dom.window = function( domWindow ) +{ + CKEDITOR.dom.domObject.call( this, domWindow ); +}; + +CKEDITOR.dom.window.prototype = new CKEDITOR.dom.domObject(); + +CKEDITOR.tools.extend( CKEDITOR.dom.window.prototype, + /** @lends CKEDITOR.dom.window.prototype */ + { + /** + * Moves the selection focus to this window. + * @function + * @example + * var win = new CKEDITOR.dom.window( window ); + * <b>win.focus()</b>; + */ + focus : function() + { + // Webkit is sometimes failed to focus iframe, blur it first(#3835). + if ( CKEDITOR.env.webkit && this.$.parent ) + this.$.parent.focus(); + this.$.focus(); + }, + + /** + * Gets the width and height of this window's viewable area. + * @function + * @returns {Object} An object with the "width" and "height" + * properties containing the size. + * @example + * var win = new CKEDITOR.dom.window( window ); + * var size = <b>win.getViewPaneSize()</b>; + * alert( size.width ); + * alert( size.height ); + */ + getViewPaneSize : function() + { + var doc = this.$.document, + stdMode = doc.compatMode == 'CSS1Compat'; + return { + width : ( stdMode ? doc.documentElement.clientWidth : doc.body.clientWidth ) || 0, + height : ( stdMode ? doc.documentElement.clientHeight : doc.body.clientHeight ) || 0 + }; + }, + + /** + * Gets the current position of the window's scroll. + * @function + * @returns {Object} An object with the "x" and "y" properties + * containing the scroll position. + * @example + * var win = new CKEDITOR.dom.window( window ); + * var pos = <b>win.getScrollPosition()</b>; + * alert( pos.x ); + * alert( pos.y ); + */ + getScrollPosition : function() + { + var $ = this.$; + + if ( 'pageXOffset' in $ ) + { + return { + x : $.pageXOffset || 0, + y : $.pageYOffset || 0 + }; + } + else + { + var doc = $.document; + return { + x : doc.documentElement.scrollLeft || doc.body.scrollLeft || 0, + y : doc.documentElement.scrollTop || doc.body.scrollTop || 0 + }; + } + } + }); diff --git a/htdocs/includes/ckeditor/_source/core/dtd.js b/htdocs/includes/ckeditor/_source/core/dtd.js new file mode 100644 index 0000000000000000000000000000000000000000..6636dca3d1cea9e075cf6c1e5c7a4c5434269e62 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/dtd.js @@ -0,0 +1,266 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dtd} object, which holds the DTD + * mapping for XHTML 1.0 Transitional. This file was automatically + * generated from the file: xhtml1-transitional.dtd. + */ + +/** + * @namespace Holds and object representation of the HTML DTD to be used by the + * editor in its internal operations.<br /> + * <br /> + * Each element in the DTD is represented by a property in this object. Each + * property contains the list of elements that can be contained by the element. + * Text is represented by the "#" property.<br /> + * <br /> + * Several special grouping properties are also available. Their names start + * with the "$" character. + * @example + * // Check if "div" can be contained in a "p" element. + * alert( !!CKEDITOR.dtd[ 'p' ][ 'div' ] ); "false" + * @example + * // Check if "p" can be contained in a "div" element. + * alert( !!CKEDITOR.dtd[ 'div' ][ 'p' ] ); "true" + * @example + * // Check if "p" is a block element. + * alert( !!CKEDITOR.dtd.$block[ 'p' ] ); "true" + */ +CKEDITOR.dtd = (function() +{ + var X = CKEDITOR.tools.extend, + + A = {isindex:1,fieldset:1}, + B = {input:1,button:1,select:1,textarea:1,label:1}, + C = X({a:1},B), + D = X({iframe:1},C), + E = {hr:1,ul:1,menu:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1}, + F = {ins:1,del:1,script:1,style:1}, + G = X({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1,wbr:1},F), + H = X({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1,mark:1},G), + I = X({p:1},H), + J = X({iframe:1},H,B), + K = {img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1}, + + L = X({a:1},J), + M = {tr:1}, + N = {'#':1}, + O = X({param:1},K), + P = X({form:1},A,D,E,I), + Q = {li:1}, + R = {style:1,script:1}, + S = {base:1,link:1,meta:1,title:1}, + T = X(S,R), + U = {head:1,body:1}, + V = {html:1}; + + var block = {address:1,blockquote:1,center:1,dir:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1}; + + return /** @lends CKEDITOR.dtd */ { + + // The "$" items have been added manually. + + // List of elements living outside body. + $nonBodyContent: X(V,U,S), + + /** + * List of block elements, like "p" or "div". + * @type Object + * @example + */ + $block : block, + + /** + * List of block limit elements. + * @type Object + * @example + */ + $blockLimit : { body:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,td:1,th:1,caption:1,form:1 }, + + /** + * List of inline (<span> like) elements. + */ + $inline : L, // Just like span. + + /** + * list of elements that can be children at <body>. + */ + $body : X({script:1,style:1}, block), + + $cdata : {script:1,style:1}, + + /** + * List of empty (self-closing) elements, like "br" or "img". + * @type Object + * @example + */ + $empty : {area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1,wbr:1}, + + /** + * List of list item elements, like "li" or "dd". + * @type Object + * @example + */ + $listItem : {dd:1,dt:1,li:1}, + + /** + * List of list root elements. + * @type Object + * @example + */ + $list: {ul:1,ol:1,dl:1}, + + /** + * Elements that accept text nodes, but are not possible to edit into + * the browser. + * @type Object + * @example + */ + $nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1,audio:1,video:1}, + + /** + * List of block tags with each one a singleton element lives in the corresponding structure for description. + */ + $captionBlock : { caption:1, legend:1 }, + + /** + * List of elements that can be ignored if empty, like "b" or "span". + * @type Object + * @example + */ + $removeEmpty : {abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1,mark:1}, + + /** + * List of elements that have tabindex set to zero by default. + * @type Object + * @example + */ + $tabIndex : {a:1,area:1,button:1,input:1,object:1,select:1,textarea:1}, + + /** + * List of elements used inside the "table" element, like "tbody" or "td". + * @type Object + * @example + */ + $tableContent : {caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}, + + html: U, + head: T, + style: N, + script: N, + body: P, + base: {}, + link: {}, + meta: {}, + title: N, + col : {}, + tr : {td:1,th:1}, + img : {}, + colgroup : {col:1}, + noscript : P, + td : P, + br : {}, + wbr : {}, + th : P, + center : P, + kbd : L, + button : X(I,E), + basefont : {}, + h5 : L, + h4 : L, + samp : L, + h6 : L, + ol : Q, + h1 : L, + h3 : L, + option : N, + h2 : L, + form : X(A,D,E,I), + select : {optgroup:1,option:1}, + font : L, + ins : L, + menu : Q, + abbr : L, + label : L, + table : {thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1}, + code : L, + tfoot : M, + cite : L, + li : P, + input : {}, + iframe : P, + strong : L, + textarea : N, + noframes : P, + big : L, + small : L, + span : L, + hr : {}, + dt : L, + sub : L, + optgroup : {option:1}, + param : {}, + bdo : L, + 'var' : L, + div : P, + object : O, + sup : L, + dd : P, + strike : L, + area : {}, + dir : Q, + map : X({area:1,form:1,p:1},A,F,E), + applet : O, + dl : {dt:1,dd:1}, + del : L, + isindex : {}, + fieldset : X({legend:1},K), + thead : M, + ul : Q, + acronym : L, + b : L, + a : J, + blockquote : P, + caption : L, + i : L, + u : L, + tbody : M, + s : L, + address : X(D,I), + tt : L, + legend : L, + q : L, + pre : X(G,C), + p : L, + em : L, + dfn : L, + //HTML5 + section : P, + header : P, + footer : P, + nav : P, + article : P, + aside : P, + figure: P, + dialog : P, + hgroup : P, + mark : L, + time : L, + meter : L, + menu : L, + command : L, + keygen : L, + output : L, + progress : O, + audio : O, + video : O, + details : O, + datagrid : O, + datalist : O + }; +})(); + +// PACKAGER_RENAME( CKEDITOR.dtd ) diff --git a/htdocs/includes/ckeditor/_source/core/editor.js b/htdocs/includes/ckeditor/_source/core/editor.js new file mode 100644 index 0000000000000000000000000000000000000000..20e5d7c0e07eae9e810667455ca66cac8617f2b8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/editor.js @@ -0,0 +1,1059 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.editor} class, which represents an + * editor instance. + */ + +(function() +{ + // The counter for automatic instance names. + var nameCounter = 0; + + var getNewName = function() + { + var name = 'editor' + ( ++nameCounter ); + return ( CKEDITOR.instances && CKEDITOR.instances[ name ] ) ? getNewName() : name; + }; + + // ##### START: Config Privates + + // These function loads custom configuration files and cache the + // CKEDITOR.editorConfig functions defined on them, so there is no need to + // download them more than once for several instances. + var loadConfigLoaded = {}; + var loadConfig = function( editor ) + { + var customConfig = editor.config.customConfig; + + // Check if there is a custom config to load. + if ( !customConfig ) + return false; + + customConfig = CKEDITOR.getUrl( customConfig ); + + var loadedConfig = loadConfigLoaded[ customConfig ] || ( loadConfigLoaded[ customConfig ] = {} ); + + // If the custom config has already been downloaded, reuse it. + if ( loadedConfig.fn ) + { + // Call the cached CKEDITOR.editorConfig defined in the custom + // config file for the editor instance depending on it. + loadedConfig.fn.call( editor, editor.config ); + + // If there is no other customConfig in the chain, fire the + // "configLoaded" event. + if ( CKEDITOR.getUrl( editor.config.customConfig ) == customConfig || !loadConfig( editor ) ) + editor.fireOnce( 'customConfigLoaded' ); + } + else + { + // Load the custom configuration file. + CKEDITOR.scriptLoader.load( customConfig, function() + { + // If the CKEDITOR.editorConfig function has been properly + // defined in the custom configuration file, cache it. + if ( CKEDITOR.editorConfig ) + loadedConfig.fn = CKEDITOR.editorConfig; + else + loadedConfig.fn = function(){}; + + // Call the load config again. This time the custom + // config is already cached and so it will get loaded. + loadConfig( editor ); + }); + } + + return true; + }; + + var initConfig = function( editor, instanceConfig ) + { + // Setup the lister for the "customConfigLoaded" event. + editor.on( 'customConfigLoaded', function() + { + if ( instanceConfig ) + { + // Register the events that may have been set at the instance + // configuration object. + if ( instanceConfig.on ) + { + for ( var eventName in instanceConfig.on ) + { + editor.on( eventName, instanceConfig.on[ eventName ] ); + } + } + + // Overwrite the settings from the in-page config. + CKEDITOR.tools.extend( editor.config, instanceConfig, true ); + + delete editor.config.on; + } + + onConfigLoaded( editor ); + }); + + // The instance config may override the customConfig setting to avoid + // loading the default ~/config.js file. + if ( instanceConfig && instanceConfig.customConfig != undefined ) + editor.config.customConfig = instanceConfig.customConfig; + + // Load configs from the custom configuration files. + if ( !loadConfig( editor ) ) + editor.fireOnce( 'customConfigLoaded' ); + }; + + // ##### END: Config Privates + + var onConfigLoaded = function( editor ) + { + // Set config related properties. + + var skin = editor.config.skin.split( ',' ), + skinName = skin[ 0 ], + skinPath = CKEDITOR.getUrl( skin[ 1 ] || ( + '_source/' + // @Packager.RemoveLine + 'skins/' + skinName + '/' ) ); + + /** + * The name of the skin used by this editor instance. The skin name can + * be set through the <code>{@link CKEDITOR.config.skin}</code> setting. + * @name CKEDITOR.editor.prototype.skinName + * @type String + * @example + * alert( editor.skinName ); // E.g. "kama" + */ + editor.skinName = skinName; + + /** + * The full URL of the skin directory. + * @name CKEDITOR.editor.prototype.skinPath + * @type String + * @example + * alert( editor.skinPath ); // E.g. "http://example.com/ckeditor/skins/kama/" + */ + editor.skinPath = skinPath; + + /** + * The CSS class name used for skin identification purposes. + * @name CKEDITOR.editor.prototype.skinClass + * @type String + * @example + * alert( editor.skinClass ); // E.g. "cke_skin_kama" + */ + editor.skinClass = 'cke_skin_' + skinName; + + /** + * The <a href="http://en.wikipedia.org/wiki/Tabbing_navigation">tabbing + * navigation</a> order that has been calculated for this editor + * instance. This can be set by the <code>{@link CKEDITOR.config.tabIndex}</code> + * setting or taken from the <code>tabindex</code> attribute of the + * <code>{@link #element}</code> associated with the editor. + * @name CKEDITOR.editor.prototype.tabIndex + * @type Number + * @default 0 (zero) + * @example + * alert( editor.tabIndex ); // E.g. "0" + */ + editor.tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0; + + /** + * Indicates the read-only state of this editor. This is a read-only property. + * @name CKEDITOR.editor.prototype.readOnly + * @type Boolean + * @since 3.6 + * @see CKEDITOR.editor#setReadOnly + */ + editor.readOnly = !!( editor.config.readOnly || editor.element.getAttribute( 'disabled' ) ); + + // Fire the "configLoaded" event. + editor.fireOnce( 'configLoaded' ); + + // Load language file. + loadSkin( editor ); + }; + + var loadLang = function( editor ) + { + CKEDITOR.lang.load( editor.config.language, editor.config.defaultLanguage, function( languageCode, lang ) + { + /** + * The code for the language resources that have been loaded + * for the user interface elements of this editor instance. + * @name CKEDITOR.editor.prototype.langCode + * @type String + * @example + * alert( editor.langCode ); // E.g. "en" + */ + editor.langCode = languageCode; + + /** + * An object that contains all language strings used by the editor + * interface. + * @name CKEDITOR.editor.prototype.lang + * @type CKEDITOR.lang + * @example + * alert( editor.lang.bold ); // E.g. "Negrito" (if the language is set to Portuguese) + */ + // As we'll be adding plugin specific entries that could come + // from different language code files, we need a copy of lang, + // not a direct reference to it. + editor.lang = CKEDITOR.tools.prototypedCopy( lang ); + + // We're not able to support RTL in Firefox 2 at this time. + if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' ) + editor.lang.dir = 'ltr'; + + editor.fire( 'langLoaded' ); + + var config = editor.config; + config.contentsLangDirection == 'ui' && ( config.contentsLangDirection = editor.lang.dir ); + + loadPlugins( editor ); + }); + }; + + var loadPlugins = function( editor ) + { + var config = editor.config, + plugins = config.plugins, + extraPlugins = config.extraPlugins, + removePlugins = config.removePlugins; + + if ( extraPlugins ) + { + // Remove them first to avoid duplications. + var removeRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' ); + plugins = plugins.replace( removeRegex, '' ); + + plugins += ',' + extraPlugins; + } + + if ( removePlugins ) + { + removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' ); + plugins = plugins.replace( removeRegex, '' ); + } + + // Load the Adobe AIR plugin conditionally. + CKEDITOR.env.air && ( plugins += ',adobeair' ); + + // Load all plugins defined in the "plugins" setting. + CKEDITOR.plugins.load( plugins.split( ',' ), function( plugins ) + { + // The list of plugins. + var pluginsArray = []; + + // The language code to get loaded for each plugin. Null + // entries will be appended for plugins with no language files. + var languageCodes = []; + + // The list of URLs to language files. + var languageFiles = []; + + /** + * An object that contains references to all plugins used by this + * editor instance. + * @name CKEDITOR.editor.prototype.plugins + * @type Object + * @example + * alert( editor.plugins.dialog.path ); // E.g. "http://example.com/ckeditor/plugins/dialog/" + */ + editor.plugins = plugins; + + // Loop through all plugins, to build the list of language + // files to get loaded. + for ( var pluginName in plugins ) + { + var plugin = plugins[ pluginName ], + pluginLangs = plugin.lang, + pluginPath = CKEDITOR.plugins.getPath( pluginName ), + lang = null; + + // Set the plugin path in the plugin. + plugin.path = pluginPath; + + // If the plugin has "lang". + if ( pluginLangs ) + { + // Resolve the plugin language. If the current language + // is not available, get the first one (default one). + lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] ); + + if ( !plugin.langEntries || !plugin.langEntries[ lang ] ) + { + // Put the language file URL into the list of files to + // get downloaded. + languageFiles.push( CKEDITOR.getUrl( pluginPath + 'lang/' + lang + '.js' ) ); + } + else + { + CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ lang ] ); + lang = null; + } + } + + // Save the language code, so we know later which + // language has been resolved to this plugin. + languageCodes.push( lang ); + + pluginsArray.push( plugin ); + } + + // Load all plugin specific language files in a row. + CKEDITOR.scriptLoader.load( languageFiles, function() + { + // Initialize all plugins that have the "beforeInit" and "init" methods defined. + var methods = [ 'beforeInit', 'init', 'afterInit' ]; + for ( var m = 0 ; m < methods.length ; m++ ) + { + for ( var i = 0 ; i < pluginsArray.length ; i++ ) + { + var plugin = pluginsArray[ i ]; + + // Uses the first loop to update the language entries also. + if ( m === 0 && languageCodes[ i ] && plugin.lang ) + CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ languageCodes[ i ] ] ); + + // Call the plugin method (beforeInit and init). + if ( plugin[ methods[ m ] ] ) + plugin[ methods[ m ] ]( editor ); + } + } + + // Load the editor skin. + editor.fire( 'pluginsLoaded' ); + loadTheme( editor ); + }); + }); + }; + + var loadSkin = function( editor ) + { + CKEDITOR.skins.load( editor, 'editor', function() + { + loadLang( editor ); + }); + }; + + var loadTheme = function( editor ) + { + var theme = editor.config.theme; + CKEDITOR.themes.load( theme, function() + { + /** + * The theme used by this editor instance. + * @name CKEDITOR.editor.prototype.theme + * @type CKEDITOR.theme + * @example + * alert( editor.theme ); // E.g. "http://example.com/ckeditor/themes/default/" + */ + var editorTheme = editor.theme = CKEDITOR.themes.get( theme ); + editorTheme.path = CKEDITOR.themes.getPath( theme ); + editorTheme.build( editor ); + + if ( editor.config.autoUpdateElement ) + attachToForm( editor ); + }); + }; + + var attachToForm = function( editor ) + { + var element = editor.element; + + // If are replacing a textarea, we must + if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.is( 'textarea' ) ) + { + var form = element.$.form && new CKEDITOR.dom.element( element.$.form ); + if ( form ) + { + function onSubmit() + { + editor.updateElement(); + } + form.on( 'submit',onSubmit ); + + // Setup the submit function because it doesn't fire the + // "submit" event. + if ( !form.$.submit.nodeName && !form.$.submit.length ) + { + form.$.submit = CKEDITOR.tools.override( form.$.submit, function( originalSubmit ) + { + return function() + { + editor.updateElement(); + + // For IE, the DOM submit function is not a + // function, so we need thid check. + if ( originalSubmit.apply ) + originalSubmit.apply( this, arguments ); + else + originalSubmit(); + }; + }); + } + + // Remove 'submit' events registered on form element before destroying.(#3988) + editor.on( 'destroy', function() + { + form.removeListener( 'submit', onSubmit ); + } ); + } + } + }; + + function updateCommands() + { + var command, + commands = this._.commands, + mode = this.mode; + + if ( !mode ) + return; + + for ( var name in commands ) + { + command = commands[ name ]; + command[ command.startDisabled ? 'disable' : + this.readOnly && !command.readOnly ? 'disable' : command.modes[ mode ] ? 'enable' : 'disable' ](); + } + } + + /** + * Initializes the editor instance. This function is called by the editor + * contructor (<code>editor_basic.js</code>). + * @private + */ + CKEDITOR.editor.prototype._init = function() + { + // Get the properties that have been saved in the editor_base + // implementation. + var element = CKEDITOR.dom.element.get( this._.element ), + instanceConfig = this._.instanceConfig; + delete this._.element; + delete this._.instanceConfig; + + this._.commands = {}; + this._.styles = []; + + /** + * The DOM element that was replaced by this editor instance. This + * element stores the editor data on load and post. + * @name CKEDITOR.editor.prototype.element + * @type CKEDITOR.dom.element + * @example + * var editor = CKEDITOR.instances.editor1; + * alert( <strong>editor.element</strong>.getName() ); // E.g. "textarea" + */ + this.element = element; + + /** + * The editor instance name. It may be the replaced element ID, name, or + * a default name using the progressive counter (<code>editor1</code>, + * <code>editor2</code>, ...). + * @name CKEDITOR.editor.prototype.name + * @type String + * @example + * var editor = CKEDITOR.instances.editor1; + * alert( <strong>editor.name</strong> ); // "editor1" + */ + this.name = ( element && ( this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + && ( element.getId() || element.getNameAtt() ) ) + || getNewName(); + + if ( this.name in CKEDITOR.instances ) + throw '[CKEDITOR.editor] The instance "' + this.name + '" already exists.'; + + /** + * A unique random string assigned to each editor instance on the page. + * @name CKEDITOR.editor.prototype.id + * @type String + */ + this.id = CKEDITOR.tools.getNextId(); + + /** + * The configurations for this editor instance. It inherits all + * settings defined in <code>(@link CKEDITOR.config}</code>, combined with settings + * loaded from custom configuration files and those defined inline in + * the page when creating the editor. + * @name CKEDITOR.editor.prototype.config + * @type Object + * @example + * var editor = CKEDITOR.instances.editor1; + * alert( <strong>editor.config.theme</strong> ); // E.g. "default" + */ + this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config ); + + /** + * The namespace containing UI features related to this editor instance. + * @name CKEDITOR.editor.prototype.ui + * @type CKEDITOR.ui + * @example + */ + this.ui = new CKEDITOR.ui( this ); + + /** + * Controls the focus state of this editor instance. This property + * is rarely used for normal API operations. It is mainly + * intended for developers adding UI elements to the editor interface. + * @name CKEDITOR.editor.prototype.focusManager + * @type CKEDITOR.focusManager + * @example + */ + this.focusManager = new CKEDITOR.focusManager( this ); + + CKEDITOR.fire( 'instanceCreated', null, this ); + + this.on( 'mode', updateCommands, null, null, 1 ); + this.on( 'readOnly', updateCommands, null, null, 1 ); + + initConfig( this, instanceConfig ); + }; +})(); + +CKEDITOR.tools.extend( CKEDITOR.editor.prototype, + /** @lends CKEDITOR.editor.prototype */ + { + /** + * Adds a command definition to the editor instance. Commands added with + * this function can be executed later with the <code>{@link #execCommand}</code> method. + * @param {String} commandName The indentifier name of the command. + * @param {CKEDITOR.commandDefinition} commandDefinition The command definition. + * @example + * editorInstance.addCommand( 'sample', + * { + * exec : function( editor ) + * { + * alert( 'Executing a command for the editor name "' + editor.name + '"!' ); + * } + * }); + */ + addCommand : function( commandName, commandDefinition ) + { + return this._.commands[ commandName ] = new CKEDITOR.command( this, commandDefinition ); + }, + + /** + * Adds a piece of CSS code to the editor which will be applied to the WYSIWYG editing document. + * This CSS would not be added to the output, and is there mainly for editor-specific editing requirements. + * Note: This function should be called before the editor is loaded to take effect. + * @param css {String} CSS text. + * @example + * editorInstance.addCss( 'body { background-color: grey; }' ); + */ + addCss : function( css ) + { + this._.styles.push( css ); + }, + + /** + * Destroys the editor instance, releasing all resources used by it. + * If the editor replaced an element, the element will be recovered. + * @param {Boolean} [noUpdate] If the instance is replacing a DOM + * element, this parameter indicates whether or not to update the + * element with the instance contents. + * @example + * alert( CKEDITOR.instances.editor1 ); // E.g "object" + * <strong>CKEDITOR.instances.editor1.destroy()</strong>; + * alert( CKEDITOR.instances.editor1 ); // "undefined" + */ + destroy : function( noUpdate ) + { + if ( !noUpdate ) + this.updateElement(); + + this.fire( 'destroy' ); + this.theme && this.theme.destroy( this ); + + CKEDITOR.remove( this ); + CKEDITOR.fire( 'instanceDestroyed', null, this ); + }, + + /** + * Executes a command associated with the editor. + * @param {String} commandName The indentifier name of the command. + * @param {Object} [data] Data to be passed to the command. + * @returns {Boolean} <code>true</code> if the command was executed + * successfully, otherwise <code>false</code>. + * @see CKEDITOR.editor.addCommand + * @example + * editorInstance.execCommand( 'bold' ); + */ + execCommand : function( commandName, data ) + { + var command = this.getCommand( commandName ); + + var eventData = + { + name: commandName, + commandData: data, + command: command + }; + + if ( command && command.state != CKEDITOR.TRISTATE_DISABLED ) + { + if ( this.fire( 'beforeCommandExec', eventData ) !== true ) + { + eventData.returnValue = command.exec( eventData.commandData ); + + // Fire the 'afterCommandExec' immediately if command is synchronous. + if ( !command.async && this.fire( 'afterCommandExec', eventData ) !== true ) + return eventData.returnValue; + } + } + + // throw 'Unknown command name "' + commandName + '"'; + return false; + }, + + /** + * Gets one of the registered commands. Note that after registering a + * command definition with <code>{@link #addCommand}</code>, it is + * transformed internally into an instance of + * <code>{@link CKEDITOR.command}</code>, which will then be returned + * by this function. + * @param {String} commandName The name of the command to be returned. + * This is the same name that is used to register the command with + * <code>addCommand</code>. + * @returns {CKEDITOR.command} The command object identified by the + * provided name. + */ + getCommand : function( commandName ) + { + return this._.commands[ commandName ]; + }, + + /** + * Gets the editor data. The data will be in raw format. It is the same + * data that is posted by the editor. + * @type String + * @returns (String) The editor data. + * @example + * if ( CKEDITOR.instances.editor1.<strong>getData()</strong> == '' ) + * alert( 'There is no data available' ); + */ + getData : function() + { + this.fire( 'beforeGetData' ); + + var eventData = this._.data; + + if ( typeof eventData != 'string' ) + { + var element = this.element; + if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + eventData = element.is( 'textarea' ) ? element.getValue() : element.getHtml(); + else + eventData = ''; + } + + eventData = { dataValue : eventData }; + + // Fire "getData" so data manipulation may happen. + this.fire( 'getData', eventData ); + + return eventData.dataValue; + }, + + /** + * Gets the "raw data" currently available in the editor. This is a + * fast method which returns the data as is, without processing, so it is + * not recommended to use it on resulting pages. Instead it can be used + * combined with the <code>{@link #loadSnapshot}</code> method in order + * to be able to automatically save the editor data from time to time + * while the user is using the editor, to avoid data loss, without risking + * performance issues. + * @see CKEDITOR.editor.getData + * @example + * alert( editor.getSnapshot() ); + */ + getSnapshot : function() + { + var data = this.fire( 'getSnapshot' ); + + if ( typeof data != 'string' ) + { + var element = this.element; + if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + data = element.is( 'textarea' ) ? element.getValue() : element.getHtml(); + } + + return data; + }, + + /** + * Loads "raw data" into the editor. The data is loaded with processing + * straight to the editing area. It should not be used as a way to load + * any kind of data, but instead in combination with + * <code>{@link #getSnapshot}</code> produced data. + * @see CKEDITOR.editor.setData + * @example + * var data = editor.getSnapshot(); + * editor.<strong>loadSnapshot( data )</strong>; + */ + loadSnapshot : function( snapshot ) + { + this.fire( 'loadSnapshot', snapshot ); + }, + + /** + * Sets the editor data. The data must be provided in the raw format (HTML).<br /> + * <br /> + * Note that this method is asynchronous. The <code>callback</code> parameter must + * be used if interaction with the editor is needed after setting the data. + * @param {String} data HTML code to replace the curent content in the + * editor. + * @param {Function} callback Function to be called after the <code>setData</code> + * is completed. + *@param {Boolean} internal Whether to suppress any event firing when copying data + * internally inside the editor. + * @example + * CKEDITOR.instances.editor1.<strong>setData</strong>( '<p>This is the editor data.</p>' ); + * @example + * CKEDITOR.instances.editor1.<strong>setData</strong>( '<p>Some other editor data.</p>', function() + * { + * this.checkDirty(); // true + * }); + */ + setData : function( data , callback, internal ) + { + if( callback ) + { + this.on( 'dataReady', function( evt ) + { + evt.removeListener(); + callback.call( evt.editor ); + } ); + } + + // Fire "setData" so data manipulation may happen. + var eventData = { dataValue : data }; + !internal && this.fire( 'setData', eventData ); + + this._.data = eventData.dataValue; + + !internal && this.fire( 'afterSetData', eventData ); + }, + + /** + * Puts or restores the editor into read-only state. When in read-only, + * the user is not able to change the editor contents, but can still use + * some editor features. This function sets the <code>{@link CKEDITOR.config.readOnly}</code> + * property of the editor, firing the <code>{@link CKEDITOR.editor#readOnly}</code> event.<br><br> + * <strong>Note:</strong> the current editing area will be reloaded. + * @param {Boolean} [isReadOnly] Indicates that the editor must go + * read-only (<code>true</code>, default) or be restored and made editable + * (<code>false</code>). + * @since 3.6 + */ + setReadOnly : function( isReadOnly ) + { + isReadOnly = ( isReadOnly == undefined ) || isReadOnly; + + if ( this.readOnly != isReadOnly ) + { + this.readOnly = isReadOnly; + + // Fire the readOnly event so the editor features can update + // their state accordingly. + this.fire( 'readOnly' ); + } + }, + + /** + * Inserts HTML code into the currently selected position in the editor in WYSIWYG mode. + * @param {String} data HTML code to be inserted into the editor. + * @example + * CKEDITOR.instances.editor1.<strong>insertHtml( '<p>This is a new paragraph.</p>' )</strong>; + */ + insertHtml : function( data ) + { + this.fire( 'insertHtml', data ); + }, + + /** + * Insert text content into the currently selected position in the + * editor in WYSIWYG mode. The styles of the selected element will be applied to the inserted text. + * Spaces around the text will be leaving untouched. + * <strong>Note:</strong> two subsequent line-breaks will introduce one paragraph. This depends on <code>{@link CKEDITOR.config.enterMode}</code>; + * A single line-break will be instead translated into one <br />. + * @since 3.5 + * @param {String} text Text to be inserted into the editor. + * @example + * CKEDITOR.instances.editor1.<strong>insertText( ' line1 \n\n line2' )</strong>; + */ + insertText : function( text ) + { + this.fire( 'insertText', text ); + }, + + /** + * Inserts an element into the currently selected position in the + * editor in WYSIWYG mode. + * @param {CKEDITOR.dom.element} element The element to be inserted + * into the editor. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<img src="hello.png" border="0" title="Hello" />' ); + * CKEDITOR.instances.editor1.<strong>insertElement( element )</strong>; + */ + insertElement : function( element ) + { + this.fire( 'insertElement', element ); + }, + + /** + * Checks whether the current editor contents contain changes when + * compared to the contents loaded into the editor at startup, or to + * the contents available in the editor when <code>{@link #resetDirty}</code> + * was called. + * @returns {Boolean} "true" is the contents contain changes. + * @example + * function beforeUnload( e ) + * { + * if ( CKEDITOR.instances.editor1.<strong>checkDirty()</strong> ) + * return e.returnValue = "You will lose the changes made in the editor."; + * } + * + * if ( window.addEventListener ) + * window.addEventListener( 'beforeunload', beforeUnload, false ); + * else + * window.attachEvent( 'onbeforeunload', beforeUnload ); + */ + checkDirty : function() + { + return ( this.mayBeDirty && this._.previousValue !== this.getSnapshot() ); + }, + + /** + * Resets the "dirty state" of the editor so subsequent calls to + * <code>{@link #checkDirty}</code> will return <code>false</code> if the user will not + * have made further changes to the contents. + * @example + * alert( editor.checkDirty() ); // E.g. "true" + * editor.<strong>resetDirty()</strong>; + * alert( editor.checkDirty() ); // "false" + */ + resetDirty : function() + { + if ( this.mayBeDirty ) + this._.previousValue = this.getSnapshot(); + }, + + /** + * Updates the <code><textarea></code> element that was replaced by the editor with + * the current data available in the editor. + * @see CKEDITOR.editor.element + * @example + * CKEDITOR.instances.editor1.updateElement(); + * alert( document.getElementById( 'editor1' ).value ); // The current editor data. + */ + updateElement : function() + { + var element = this.element; + if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + { + var data = this.getData(); + + if ( this.config.htmlEncodeOutput ) + data = CKEDITOR.tools.htmlEncode( data ); + + if ( element.is( 'textarea' ) ) + element.setValue( data ); + else + element.setHtml( data ); + } + } + }); + +CKEDITOR.on( 'loaded', function() + { + // Run the full initialization for pending editors. + var pending = CKEDITOR.editor._pending; + if ( pending ) + { + delete CKEDITOR.editor._pending; + + for ( var i = 0 ; i < pending.length ; i++ ) + pending[ i ]._init(); + } + }); + +/** + * Whether to escape HTML when the editor updates the original input element. + * @name CKEDITOR.config.htmlEncodeOutput + * @since 3.1 + * @type Boolean + * @default false + * @example + * config.htmlEncodeOutput = true; + */ + +/** + * If <code>true</code>, makes the editor start in read-only state. Otherwise, it will check + * if the linked <code><textarea></code> element has the <code>disabled</code> attribute. + * @name CKEDITOR.config.readOnly + * @see CKEDITOR.editor#setReadOnly + * @type Boolean + * @default false + * @since 3.6 + * @example + * config.readOnly = true; + */ + +/** + * Fired when a CKEDITOR instance is created, but still before initializing it. + * To interact with a fully initialized instance, use the + * <code>{@link CKEDITOR#instanceReady}</code> event instead. + * @name CKEDITOR#instanceCreated + * @event + * @param {CKEDITOR.editor} editor The editor instance that has been created. + */ + +/** + * Fired when a CKEDITOR instance is destroyed. + * @name CKEDITOR#instanceDestroyed + * @event + * @param {CKEDITOR.editor} editor The editor instance that has been destroyed. + */ + +/** + * Fired when the language is loaded into the editor instance. + * @name CKEDITOR.editor#langLoaded + * @event + * @since 3.6.1 + * @param {CKEDITOR.editor} editor This editor instance. + */ + +/** + * Fired when all plugins are loaded and initialized into the editor instance. + * @name CKEDITOR.editor#pluginsLoaded + * @event + * @param {CKEDITOR.editor} editor This editor instance. + */ + +/** + * Fired before the command execution when <code>{@link #execCommand}</code> is called. + * @name CKEDITOR.editor#beforeCommandExec + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {String} data.name The command name. + * @param {Object} data.commandData The data to be sent to the command. This + * can be manipulated by the event listener. + * @param {CKEDITOR.command} data.command The command itself. + */ + +/** + * Fired after the command execution when <code>{@link #execCommand}</code> is called. + * @name CKEDITOR.editor#afterCommandExec + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {String} data.name The command name. + * @param {Object} data.commandData The data sent to the command. + * @param {CKEDITOR.command} data.command The command itself. + * @param {Object} data.returnValue The value returned by the command execution. + */ + +/** + * Fired when the custom configuration file is loaded, before the final + * configurations initialization.<br /> + * <br /> + * Custom configuration files can be loaded thorugh the + * <code>{@link CKEDITOR.config.customConfig}</code> setting. Several files can be loaded + * by changing this setting. + * @name CKEDITOR.editor#customConfigLoaded + * @event + * @param {CKEDITOR.editor} editor This editor instance. + */ + +/** + * Fired once the editor configuration is ready (loaded and processed). + * @name CKEDITOR.editor#configLoaded + * @event + * @param {CKEDITOR.editor} editor This editor instance. + */ + +/** + * Fired when this editor instance is destroyed. The editor at this + * point is not usable and this event should be used to perform the clean-up + * in any plugin. + * @name CKEDITOR.editor#destroy + * @event + */ + +/** + * Internal event to get the current data. + * @name CKEDITOR.editor#beforeGetData + * @event + */ + +/** + * Internal event to perform the <code>#getSnapshot</code> call. + * @name CKEDITOR.editor#getSnapshot + * @event + */ + +/** + * Internal event to perform the <code>#loadSnapshot</code> call. + * @name CKEDITOR.editor#loadSnapshot + * @event + */ + +/** + * Event fired before the <code>#getData</code> call returns allowing additional manipulation. + * @name CKEDITOR.editor#getData + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {String} data.dataValue The data that will be returned. + */ + +/** + * Event fired before the <code>#setData</code> call is executed allowing additional manipulation. + * @name CKEDITOR.editor#setData + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {String} data.dataValue The data that will be used. + */ + +/** + * Event fired at the end of the <code>#setData</code> call execution. Usually it is better to use the + * <code>{@link CKEDITOR.editor.prototype.dataReady}</code> event. + * @name CKEDITOR.editor#afterSetData + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {String} data.dataValue The data that has been set. + */ + +/** + * Internal event to perform the <code>#insertHtml</code> call + * @name CKEDITOR.editor#insertHtml + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {String} data The HTML to insert. + */ + +/** + * Internal event to perform the <code>#insertText</code> call + * @name CKEDITOR.editor#insertText + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {String} text The text to insert. + */ + +/** + * Internal event to perform the <code>#insertElement</code> call + * @name CKEDITOR.editor#insertElement + * @event + * @param {CKEDITOR.editor} editor This editor instance. + * @param {Object} element The element to insert. + */ + +/** + * Event fired after the <code>{@link CKEDITOR.editor#readOnly}</code> property changes. + * @name CKEDITOR.editor#readOnly + * @event + * @since 3.6 + * @param {CKEDITOR.editor} editor This editor instance. + */ diff --git a/htdocs/includes/ckeditor/_source/core/editor_basic.js b/htdocs/includes/ckeditor/_source/core/editor_basic.js new file mode 100644 index 0000000000000000000000000000000000000000..da7ef1ff07da58c31a02408c720c1ae1ff1f23ab --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/editor_basic.js @@ -0,0 +1,186 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +if ( !CKEDITOR.editor ) +{ + /** + * No element is linked to the editor instance. + * @constant + * @example + */ + CKEDITOR.ELEMENT_MODE_NONE = 0; + + /** + * The element is to be replaced by the editor instance. + * @constant + * @example + */ + CKEDITOR.ELEMENT_MODE_REPLACE = 1; + + /** + * The editor is to be created inside the element. + * @constant + * @example + */ + CKEDITOR.ELEMENT_MODE_APPENDTO = 2; + + /** + * Creates an editor class instance. This constructor should be rarely + * used, in favor of the {@link CKEDITOR} editor creation functions. + * @ class Represents an editor instance. + * @param {Object} instanceConfig Configuration values for this specific + * instance. + * @param {CKEDITOR.dom.element} [element] The element linked to this + * instance. + * @param {Number} [mode] The mode in which the element is linked to this + * instance. See {@link #elementMode}. + * @param {String} [data] Since 3.3. Initial value for the instance. + * @augments CKEDITOR.event + * @example + */ + CKEDITOR.editor = function( instanceConfig, element, mode, data ) + { + this._ = + { + // Save the config to be processed later by the full core code. + instanceConfig : instanceConfig, + element : element, + data : data + }; + + /** + * The mode in which the {@link #element} is linked to this editor + * instance. It can be any of the following values: + * <ul> + * <li>{@link CKEDITOR.ELEMENT_MODE_NONE}: No element is linked to the + * editor instance.</li> + * <li>{@link CKEDITOR.ELEMENT_MODE_REPLACE}: The element is to be + * replaced by the editor instance.</li> + * <li>{@link CKEDITOR.ELEMENT_MODE_APPENDTO}: The editor is to be + * created inside the element.</li> + * </ul> + * @name CKEDITOR.editor.prototype.elementMode + * @type Number + * @example + * var editor = CKEDITOR.replace( 'editor1' ); + * alert( <b>editor.elementMode</b> ); "1" + */ + this.elementMode = mode || CKEDITOR.ELEMENT_MODE_NONE; + + // Call the CKEDITOR.event constructor to initialize this instance. + CKEDITOR.event.call( this ); + + this._init(); + }; + + /** + * Replaces a <textarea> or a DOM element (DIV) with a CKEditor + * instance. For textareas, the initial value in the editor will be the + * textarea value. For DOM elements, their innerHTML will be used + * instead. We recommend using TEXTAREA and DIV elements only. Do not use + * this function directly. Use {@link CKEDITOR.replace} instead. + * @param {Object|String} elementOrIdOrName The DOM element (textarea), its + * ID or name. + * @param {Object} [config] The specific configurations to apply to this + * editor instance. Configurations set here will override global CKEditor + * settings. + * @returns {CKEDITOR.editor} The editor instance created. + * @example + */ + CKEDITOR.editor.replace = function( elementOrIdOrName, config ) + { + var element = elementOrIdOrName; + + if ( typeof element != 'object' ) + { + // Look for the element by id. We accept any kind of element here. + element = document.getElementById( elementOrIdOrName ); + + // Elements that should go into head are unacceptable (#6791). + if ( element && element.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1} ) + element = null; + + // If not found, look for elements by name. In this case we accept only + // textareas. + if ( !element ) + { + var i = 0, + textareasByName = document.getElementsByName( elementOrIdOrName ); + + while ( ( element = textareasByName[ i++ ] ) && element.tagName.toLowerCase() != 'textarea' ) + { /*jsl:pass*/ } + } + + if ( !element ) + throw '[CKEDITOR.editor.replace] The element with id or name "' + elementOrIdOrName + '" was not found.'; + } + + // Do not replace the textarea right now, just hide it. The effective + // replacement will be done by the _init function. + element.style.visibility = 'hidden'; + + // Create the editor instance. + return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_REPLACE ); + }; + + /** + * Creates a new editor instance inside a specific DOM element. Do not use + * this function directly. Use {@link CKEDITOR.appendTo} instead. + * @param {Object|String} elementOrId The DOM element or its ID. + * @param {Object} [config] The specific configurations to apply to this + * editor instance. Configurations set here will override global CKEditor + * settings. + * @param {String} [data] Since 3.3. Initial value for the instance. + * @returns {CKEDITOR.editor} The editor instance created. + * @example + */ + CKEDITOR.editor.appendTo = function( elementOrId, config, data ) + { + var element = elementOrId; + if ( typeof element != 'object' ) + { + element = document.getElementById( elementOrId ); + + if ( !element ) + throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.'; + } + + // Create the editor instance. + return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO, data ); + }; + + CKEDITOR.editor.prototype = + { + /** + * Initializes the editor instance. This function will be overriden by the + * full CKEDITOR.editor implementation (editor.js). + * @private + */ + _init : function() + { + var pending = CKEDITOR.editor._pending || ( CKEDITOR.editor._pending = [] ); + pending.push( this ); + }, + + // Both fire and fireOnce will always pass this editor instance as the + // "editor" param in CKEDITOR.event.fire. So, we override it to do that + // automaticaly. + + /** @ignore */ + fire : function( eventName, data ) + { + return CKEDITOR.event.prototype.fire.call( this, eventName, data, this ); + }, + + /** @ignore */ + fireOnce : function( eventName, data ) + { + return CKEDITOR.event.prototype.fireOnce.call( this, eventName, data, this ); + } + }; + + // "Inherit" (copy actually) from CKEDITOR.event. + CKEDITOR.event.implementOn( CKEDITOR.editor.prototype, true ); +} diff --git a/htdocs/includes/ckeditor/_source/core/env.js b/htdocs/includes/ckeditor/_source/core/env.js new file mode 100644 index 0000000000000000000000000000000000000000..e803371606663b4c851c962ee4f462c95fa3accd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/env.js @@ -0,0 +1,305 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.env} object, which constains + * environment and browser information. + */ + +if ( !CKEDITOR.env ) +{ + /** + * @namespace Environment and browser information. + */ + CKEDITOR.env = (function() + { + var agent = navigator.userAgent.toLowerCase(); + var opera = window.opera; + + var env = + /** @lends CKEDITOR.env */ + { + /** + * Indicates that CKEditor is running on Internet Explorer. + * @type Boolean + * @example + * if ( CKEDITOR.env.ie ) + * alert( "I'm on IE!" ); + */ + ie : /*@cc_on!@*/false, + + /** + * Indicates that CKEditor is running on Opera. + * @type Boolean + * @example + * if ( CKEDITOR.env.opera ) + * alert( "I'm on Opera!" ); + */ + opera : ( !!opera && opera.version ), + + /** + * Indicates that CKEditor is running on a WebKit based browser, like + * Safari. + * @type Boolean + * @example + * if ( CKEDITOR.env.webkit ) + * alert( "I'm on WebKit!" ); + */ + webkit : ( agent.indexOf( ' applewebkit/' ) > -1 ), + + /** + * Indicates that CKEditor is running on Adobe AIR. + * @type Boolean + * @example + * if ( CKEDITOR.env.air ) + * alert( "I'm on AIR!" ); + */ + air : ( agent.indexOf( ' adobeair/' ) > -1 ), + + /** + * Indicates that CKEditor is running on Macintosh. + * @type Boolean + * @example + * if ( CKEDITOR.env.mac ) + * alert( "I love apples!" ); + */ + mac : ( agent.indexOf( 'macintosh' ) > -1 ), + + /** + * Indicates that CKEditor is running on a quirks mode environemnt. + * @type Boolean + * @example + * if ( CKEDITOR.env.quirks ) + * alert( "Nooooo!" ); + */ + quirks : ( document.compatMode == 'BackCompat' ), + + /** + * Indicates that CKEditor is running on a mobile like environemnt. + * @type Boolean + * @example + * if ( CKEDITOR.env.mobile ) + * alert( "I'm running with CKEditor today!" ); + */ + mobile : ( agent.indexOf( 'mobile' ) > -1 ), + + /** + * Indicates that CKEditor is running on Apple iPhone/iPad/iPod devices. + * @type Boolean + * @example + * if ( CKEDITOR.env.iOS ) + * alert( "I like little apples!" ); + */ + iOS : /(ipad|iphone|ipod)/.test(agent), + + /** + * Indicates that the browser has a custom domain enabled. This has + * been set with "document.domain". + * @returns {Boolean} "true" if a custom domain is enabled. + * @example + * if ( CKEDITOR.env.isCustomDomain() ) + * alert( "I'm in a custom domain!" ); + */ + isCustomDomain : function() + { + if ( !this.ie ) + return false; + + var domain = document.domain, + hostname = window.location.hostname; + + return domain != hostname && + domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434) + }, + + /** + * Indicates that page is running under an encrypted connection. + * @returns {Boolean} "true" if the page has an encrypted connection. + * @example + * if ( CKEDITOR.env.secure ) + * alert( "I'm in SSL!" ); + */ + secure : location.protocol == 'https:' + }; + + /** + * Indicates that CKEditor is running on a Gecko based browser, like + * Firefox. + * @name CKEDITOR.env.gecko + * @type Boolean + * @example + * if ( CKEDITOR.env.gecko ) + * alert( "I'm riding a gecko!" ); + */ + env.gecko = ( navigator.product == 'Gecko' && !env.webkit && !env.opera ); + + var version = 0; + + // Internet Explorer 6.0+ + if ( env.ie ) + { + version = parseFloat( agent.match( /msie (\d+)/ )[1] ); + + /** + * Indicates that CKEditor is running on Internet Explorer 8. + * @name CKEDITOR.env.ie8 + * @type Boolean + * @example + * if ( CKEDITOR.env.ie8 ) + * alert( "I'm on IE8!" ); + */ + env.ie8 = !!document.documentMode; + + /** + * Indicates that CKEditor is running on Internet Explorer 8 on + * standards mode. + * @name CKEDITOR.env.ie8Compat + * @type Boolean + * @example + * if ( CKEDITOR.env.ie8Compat ) + * alert( "Now I'm on IE8, for real!" ); + */ + env.ie8Compat = document.documentMode == 8; + + /** + * Indicates that CKEditor is running on Internet Explorer 9's standards mode. + * @name CKEDITOR.env.ie9Compat + * @type Boolean + * @example + * if ( CKEDITOR.env.ie9Compat ) + * alert( "IE9, the beauty of the web!" ); + */ + env.ie9Compat = document.documentMode == 9; + + /** + * Indicates that CKEditor is running on an IE7-like environment, which + * includes IE7 itself and IE8's IE7 document mode. + * @name CKEDITOR.env.ie7Compat + * @type Boolean + * @example + * if ( CKEDITOR.env.ie8Compat ) + * alert( "I'm on IE7 or on an IE7 like IE8!" ); + */ + env.ie7Compat = ( ( version == 7 && !document.documentMode ) + || document.documentMode == 7 ); + + /** + * Indicates that CKEditor is running on an IE6-like environment, which + * includes IE6 itself and IE7 and IE8 quirks mode. + * @name CKEDITOR.env.ie6Compat + * @type Boolean + * @example + * if ( CKEDITOR.env.ie6Compat ) + * alert( "I'm on IE6 or quirks mode!" ); + */ + env.ie6Compat = ( version < 7 || env.quirks ); + } + + // Gecko. + if ( env.gecko ) + { + var geckoRelease = agent.match( /rv:([\d\.]+)/ ); + if ( geckoRelease ) + { + geckoRelease = geckoRelease[1].split( '.' ); + version = geckoRelease[0] * 10000 + ( geckoRelease[1] || 0 ) * 100 + ( geckoRelease[2] || 0 ) * 1; + } + } + + // Opera 9.50+ + if ( env.opera ) + version = parseFloat( opera.version() ); + + // Adobe AIR 1.0+ + // Checked before Safari because AIR have the WebKit rich text editor + // features from Safari 3.0.4, but the version reported is 420. + if ( env.air ) + version = parseFloat( agent.match( / adobeair\/(\d+)/ )[1] ); + + // WebKit 522+ (Safari 3+) + if ( env.webkit ) + version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] ); + + /** + * Contains the browser version.<br /> + * <br /> + * For gecko based browsers (like Firefox) it contains the revision + * number with first three parts concatenated with a padding zero + * (e.g. for revision 1.9.0.2 we have 10900).<br /> + * <br /> + * For webkit based browser (like Safari and Chrome) it contains the + * WebKit build version (e.g. 522). + * @name CKEDITOR.env.version + * @type Boolean + * @example + * if ( CKEDITOR.env.ie && <b>CKEDITOR.env.version</b> <= 6 ) + * alert( "Ouch!" ); + */ + env.version = version; + + /** + * Indicates that CKEditor is running on a compatible browser. + * @name CKEDITOR.env.isCompatible + * @type Boolean + * @example + * if ( CKEDITOR.env.isCompatible ) + * alert( "Your browser is pretty cool!" ); + */ + env.isCompatible = + + // White list of mobile devices that supports. + env.iOS && version >= 534 || + + !env.mobile && ( + + ( env.ie && version >= 6 ) || + ( env.gecko && version >= 10801 ) || + ( env.opera && version >= 9.5 ) || + ( env.air && version >= 1 ) || + ( env.webkit && version >= 522 ) || + false ); + + /** + * The CSS class to be appended on the main UI containers, making it + * easy to apply browser specific styles to it. + * @name CKEDITOR.env.cssClass + * @type String + * @example + * myDiv.className = CKEDITOR.env.cssClass; + */ + env.cssClass = + 'cke_browser_' + ( + env.ie ? 'ie' : + env.gecko ? 'gecko' : + env.opera ? 'opera' : + env.webkit ? 'webkit' : + 'unknown' ); + + if ( env.quirks ) + env.cssClass += ' cke_browser_quirks'; + + if ( env.ie ) + { + env.cssClass += ' cke_browser_ie' + ( + env.version < 7 ? '6' : + env.version >= 8 ? document.documentMode: + '7' ); + + if ( env.quirks ) + env.cssClass += ' cke_browser_iequirks'; + } + + if ( env.gecko && version < 10900 ) + env.cssClass += ' cke_browser_gecko18'; + + if ( env.air ) + env.cssClass += ' cke_browser_air'; + + return env; + })(); +} + +// PACKAGER_RENAME( CKEDITOR.env ) +// PACKAGER_RENAME( CKEDITOR.env.ie ) diff --git a/htdocs/includes/ckeditor/_source/core/event.js b/htdocs/includes/ckeditor/_source/core/event.js new file mode 100644 index 0000000000000000000000000000000000000000..7b2b55750b48cec3d6e22dab4875c80e79f4517c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/event.js @@ -0,0 +1,342 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.event} class, which serves as the + * base for classes and objects that require event handling features. + */ + +if ( !CKEDITOR.event ) +{ + /** + * Creates an event class instance. This constructor is rearely used, being + * the {@link #.implementOn} function used in class prototypes directly + * instead. + * @class This is a base class for classes and objects that require event + * handling features.<br /> + * <br /> + * Do not confuse this class with {@link CKEDITOR.dom.event} which is + * instead used for DOM events. The CKEDITOR.event class implements the + * internal event system used by the CKEditor to fire API related events. + * @example + */ + CKEDITOR.event = function() + {}; + + /** + * Implements the {@link CKEDITOR.event} features in an object. + * @param {Object} targetObject The object into which implement the features. + * @example + * var myObject = { message : 'Example' }; + * <b>CKEDITOR.event.implementOn( myObject }</b>; + * myObject.on( 'testEvent', function() + * { + * alert( this.message ); // "Example" + * }); + * myObject.fire( 'testEvent' ); + */ + CKEDITOR.event.implementOn = function( targetObject ) + { + var eventProto = CKEDITOR.event.prototype; + + for ( var prop in eventProto ) + { + if ( targetObject[ prop ] == undefined ) + targetObject[ prop ] = eventProto[ prop ]; + } + }; + + CKEDITOR.event.prototype = (function() + { + // Returns the private events object for a given object. + var getPrivate = function( obj ) + { + var _ = ( obj.getPrivate && obj.getPrivate() ) || obj._ || ( obj._ = {} ); + return _.events || ( _.events = {} ); + }; + + var eventEntry = function( eventName ) + { + this.name = eventName; + this.listeners = []; + }; + + eventEntry.prototype = + { + // Get the listener index for a specified function. + // Returns -1 if not found. + getListenerIndex : function( listenerFunction ) + { + for ( var i = 0, listeners = this.listeners ; i < listeners.length ; i++ ) + { + if ( listeners[i].fn == listenerFunction ) + return i; + } + return -1; + } + }; + + return /** @lends CKEDITOR.event.prototype */ { + /** + * Registers a listener to a specific event in the current object. + * @param {String} eventName The event name to which listen. + * @param {Function} listenerFunction The function listening to the + * event. A single {@link CKEDITOR.eventInfo} object instanced + * is passed to this function containing all the event data. + * @param {Object} [scopeObj] The object used to scope the listener + * call (the this object. If omitted, the current object is used. + * @param {Object} [listenerData] Data to be sent as the + * {@link CKEDITOR.eventInfo#listenerData} when calling the + * listener. + * @param {Number} [priority] The listener priority. Lower priority + * listeners are called first. Listeners with the same priority + * value are called in registration order. Defaults to 10. + * @example + * someObject.on( 'someEvent', function() + * { + * alert( this == someObject ); // "true" + * }); + * @example + * someObject.on( 'someEvent', function() + * { + * alert( this == anotherObject ); // "true" + * } + * , anotherObject ); + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.listenerData ); // "Example" + * } + * , null, 'Example' ); + * @example + * someObject.on( 'someEvent', function() { ... } ); // 2nd called + * someObject.on( 'someEvent', function() { ... }, null, null, 100 ); // 3rd called + * someObject.on( 'someEvent', function() { ... }, null, null, 1 ); // 1st called + */ + on : function( eventName, listenerFunction, scopeObj, listenerData, priority ) + { + // Get the event entry (create it if needed). + var events = getPrivate( this ), + event = events[ eventName ] || ( events[ eventName ] = new eventEntry( eventName ) ); + + if ( event.getListenerIndex( listenerFunction ) < 0 ) + { + // Get the listeners. + var listeners = event.listeners; + + // Fill the scope. + if ( !scopeObj ) + scopeObj = this; + + // Default the priority, if needed. + if ( isNaN( priority ) ) + priority = 10; + + var me = this; + + // Create the function to be fired for this listener. + var listenerFirer = function( editor, publisherData, stopFn, cancelFn ) + { + var ev = + { + name : eventName, + sender : this, + editor : editor, + data : publisherData, + listenerData : listenerData, + stop : stopFn, + cancel : cancelFn, + removeListener : function() + { + me.removeListener( eventName, listenerFunction ); + } + }; + + listenerFunction.call( scopeObj, ev ); + + return ev.data; + }; + listenerFirer.fn = listenerFunction; + listenerFirer.priority = priority; + + // Search for the right position for this new listener, based on its + // priority. + for ( var i = listeners.length - 1 ; i >= 0 ; i-- ) + { + // Find the item which should be before the new one. + if ( listeners[ i ].priority <= priority ) + { + // Insert the listener in the array. + listeners.splice( i + 1, 0, listenerFirer ); + return; + } + } + + // If no position has been found (or zero length), put it in + // the front of list. + listeners.unshift( listenerFirer ); + } + }, + + /** + * Fires an specific event in the object. All registered listeners are + * called at this point. + * @function + * @param {String} eventName The event name to fire. + * @param {Object} [data] Data to be sent as the + * {@link CKEDITOR.eventInfo#data} when calling the + * listeners. + * @param {CKEDITOR.editor} [editor] The editor instance to send as the + * {@link CKEDITOR.eventInfo#editor} when calling the + * listener. + * @returns {Boolean|Object} A booloan indicating that the event is to be + * canceled, or data returned by one of the listeners. + * @example + * someObject.on( 'someEvent', function() { ... } ); + * someObject.on( 'someEvent', function() { ... } ); + * <b>someObject.fire( 'someEvent' )</b>; // both listeners are called + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.data ); // "Example" + * }); + * <b>someObject.fire( 'someEvent', 'Example' )</b>; + */ + fire : (function() + { + // Create the function that marks the event as stopped. + var stopped = false; + var stopEvent = function() + { + stopped = true; + }; + + // Create the function that marks the event as canceled. + var canceled = false; + var cancelEvent = function() + { + canceled = true; + }; + + return function( eventName, data, editor ) + { + // Get the event entry. + var event = getPrivate( this )[ eventName ]; + + // Save the previous stopped and cancelled states. We may + // be nesting fire() calls. + var previousStopped = stopped, + previousCancelled = canceled; + + // Reset the stopped and canceled flags. + stopped = canceled = false; + + if ( event ) + { + var listeners = event.listeners; + + if ( listeners.length ) + { + // As some listeners may remove themselves from the + // event, the original array length is dinamic. So, + // let's make a copy of all listeners, so we are + // sure we'll call all of them. + listeners = listeners.slice( 0 ); + + // Loop through all listeners. + for ( var i = 0 ; i < listeners.length ; i++ ) + { + // Call the listener, passing the event data. + var retData = listeners[i].call( this, editor, data, stopEvent, cancelEvent ); + + if ( typeof retData != 'undefined' ) + data = retData; + + // No further calls is stopped or canceled. + if ( stopped || canceled ) + break; + } + } + } + + var ret = canceled || ( typeof data == 'undefined' ? false : data ); + + // Restore the previous stopped and canceled states. + stopped = previousStopped; + canceled = previousCancelled; + + return ret; + }; + })(), + + /** + * Fires an specific event in the object, releasing all listeners + * registered to that event. The same listeners are not called again on + * successive calls of it or of {@link #fire}. + * @param {String} eventName The event name to fire. + * @param {Object} [data] Data to be sent as the + * {@link CKEDITOR.eventInfo#data} when calling the + * listeners. + * @param {CKEDITOR.editor} [editor] The editor instance to send as the + * {@link CKEDITOR.eventInfo#editor} when calling the + * listener. + * @returns {Boolean|Object} A booloan indicating that the event is to be + * canceled, or data returned by one of the listeners. + * @example + * someObject.on( 'someEvent', function() { ... } ); + * someObject.fire( 'someEvent' ); // above listener called + * <b>someObject.fireOnce( 'someEvent' )</b>; // above listener called + * someObject.fire( 'someEvent' ); // no listeners called + */ + fireOnce : function( eventName, data, editor ) + { + var ret = this.fire( eventName, data, editor ); + delete getPrivate( this )[ eventName ]; + return ret; + }, + + /** + * Unregisters a listener function from being called at the specified + * event. No errors are thrown if the listener has not been + * registered previously. + * @param {String} eventName The event name. + * @param {Function} listenerFunction The listener function to unregister. + * @example + * var myListener = function() { ... }; + * someObject.on( 'someEvent', myListener ); + * someObject.fire( 'someEvent' ); // myListener called + * <b>someObject.removeListener( 'someEvent', myListener )</b>; + * someObject.fire( 'someEvent' ); // myListener not called + */ + removeListener : function( eventName, listenerFunction ) + { + // Get the event entry. + var event = getPrivate( this )[ eventName ]; + + if ( event ) + { + var index = event.getListenerIndex( listenerFunction ); + if ( index >= 0 ) + event.listeners.splice( index, 1 ); + } + }, + + /** + * Checks if there is any listener registered to a given event. + * @param {String} eventName The event name. + * @example + * var myListener = function() { ... }; + * someObject.on( 'someEvent', myListener ); + * alert( someObject.<b>hasListeners( 'someEvent' )</b> ); // "true" + * alert( someObject.<b>hasListeners( 'noEvent' )</b> ); // "false" + */ + hasListeners : function( eventName ) + { + var event = getPrivate( this )[ eventName ]; + return ( event && event.listeners.length > 0 ) ; + } + }; + })(); +} diff --git a/htdocs/includes/ckeditor/_source/core/eventInfo.js b/htdocs/includes/ckeditor/_source/core/eventInfo.js new file mode 100644 index 0000000000000000000000000000000000000000..2e38828fff7e01e5409986e2913ffb8ccdda12f5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/eventInfo.js @@ -0,0 +1,132 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the "virtual" {@link CKEDITOR.eventInfo} class, which + * contains the defintions of the event object passed to event listeners. + * This file is for documentation purposes only. + */ + +/** + * (Virtual Class) Do not call this constructor. This class is not really part + * of the API. + * @class Virtual class that illustrates the features of the event object to be + * passed to event listeners by a {@link CKEDITOR.event} based object. + * @name CKEDITOR.eventInfo + * @example + * // Do not do this. + * var myEvent = new CKEDITOR.eventInfo(); // Error: CKEDITOR.eventInfo is undefined + */ + +/** + * The event name. + * @name CKEDITOR.eventInfo.prototype.name + * @field + * @type String + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( <b>event.name</b> ); // "someEvent" + * }); + * someObject.fire( 'someEvent' ); + */ + +/** + * The object that publishes (sends) the event. + * @name CKEDITOR.eventInfo.prototype.sender + * @field + * @type Object + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( <b>event.sender</b> == someObject ); // "true" + * }); + * someObject.fire( 'someEvent' ); + */ + +/** + * The editor instance that holds the sender. May be the same as sender. May be + * null if the sender is not part of an editor instance, like a component + * running in standalone mode. + * @name CKEDITOR.eventInfo.prototype.editor + * @field + * @type CKEDITOR.editor + * @example + * myButton.on( 'someEvent', function( event ) + * { + * alert( <b>event.editor</b> == myEditor ); // "true" + * }); + * myButton.fire( 'someEvent', null, <b>myEditor</b> ); + */ + +/** + * Any kind of additional data. Its format and usage is event dependent. + * @name CKEDITOR.eventInfo.prototype.data + * @field + * @type Object + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( <b>event.data</b> ); // "Example" + * }); + * someObject.fire( 'someEvent', <b>'Example'</b> ); + */ + +/** + * Any extra data appended during the listener registration. + * @name CKEDITOR.eventInfo.prototype.listenerData + * @field + * @type Object + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( <b>event.listenerData</b> ); // "Example" + * } + * , null, <b>'Example'</b> ); + */ + +/** + * Indicates that no further listeners are to be called. + * @name CKEDITOR.eventInfo.prototype.stop + * @function + * @example + * someObject.on( 'someEvent', function( event ) + * { + * <b>event.stop()</b>; + * }); + * someObject.on( 'someEvent', function( event ) + * { + * // This one will not be called. + * }); + * alert( someObject.fire( 'someEvent' ) ); // "false" + */ + +/** + * Indicates that the event is to be cancelled (if cancelable). + * @name CKEDITOR.eventInfo.prototype.cancel + * @function + * @example + * someObject.on( 'someEvent', function( event ) + * { + * <b>event.cancel()</b>; + * }); + * someObject.on( 'someEvent', function( event ) + * { + * // This one will not be called. + * }); + * alert( someObject.fire( 'someEvent' ) ); // "true" + */ + +/** + * Removes the current listener. + * @name CKEDITOR.eventInfo.prototype.removeListener + * @function + * @example + * someObject.on( 'someEvent', function( event ) + * { + * <b>event.removeListener()</b>; + * // Now this function won't be called again by 'someEvent' + * }); + */ diff --git a/htdocs/includes/ckeditor/_source/core/focusmanager.js b/htdocs/includes/ckeditor/_source/core/focusmanager.js new file mode 100644 index 0000000000000000000000000000000000000000..812bc9b5fde1861bb87533f28c992429544ce071 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/focusmanager.js @@ -0,0 +1,152 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.focusManager} class, which is used + * to handle the focus on editor instances.. + */ + +/** + * Creates a focusManager class instance. + * @class Manages the focus activity in an editor instance. This class is to be + * used mainly by UI elements coders when adding interface elements that need + * to set the focus state of the editor. + * @param {CKEDITOR.editor} editor The editor instance. + * @example + * var focusManager = <b>new CKEDITOR.focusManager( editor )</b>; + * focusManager.focus(); + */ +CKEDITOR.focusManager = function( editor ) +{ + if ( editor.focusManager ) + return editor.focusManager; + + /** + * Indicates that the editor instance has focus. + * @type Boolean + * @example + * alert( CKEDITOR.instances.editor1.focusManager.hasFocus ); // e.g "true" + */ + this.hasFocus = false; + + /** + * Object used to hold private stuff. + * @private + */ + this._ = + { + editor : editor + }; + + return this; +}; + +CKEDITOR.focusManager.prototype = +{ + /** + * Used to indicate that the editor instance has the focus.<br /> + * <br /> + * Note that this function will not explicitelly set the focus in the + * editor (for example, making the caret blinking on it). Use + * {@link CKEDITOR.editor#focus} for it instead. + * @example + * var editor = CKEDITOR.instances.editor1; + * <b>editor.focusManager.focus()</b>; + */ + focus : function() + { + if ( this._.timer ) + clearTimeout( this._.timer ); + + if ( !this.hasFocus ) + { + // If another editor has the current focus, we first "blur" it. In + // this way the events happen in a more logical sequence, like: + // "focus 1" > "blur 1" > "focus 2" + // ... instead of: + // "focus 1" > "focus 2" > "blur 1" + if ( CKEDITOR.currentInstance ) + CKEDITOR.currentInstance.focusManager.forceBlur(); + + var editor = this._.editor; + + editor.container.getChild( 1 ).addClass( 'cke_focus' ); + + this.hasFocus = true; + editor.fire( 'focus' ); + } + }, + + /** + * Used to indicate that the editor instance has lost the focus.<br /> + * <br /> + * Note that this functions acts asynchronously with a delay of 100ms to + * avoid subsequent blur/focus effects. If you want the "blur" to happen + * immediately, use the {@link #forceBlur} function instead. + * @example + * var editor = CKEDITOR.instances.editor1; + * <b>editor.focusManager.blur()</b>; + */ + blur : function() + { + var focusManager = this; + + if ( focusManager._.timer ) + clearTimeout( focusManager._.timer ); + + focusManager._.timer = setTimeout( + function() + { + delete focusManager._.timer; + focusManager.forceBlur(); + } + , 100 ); + }, + + /** + * Used to indicate that the editor instance has lost the focus. Unlike + * {@link #blur}, this function is synchronous, marking the instance as + * "blured" immediately. + * @example + * var editor = CKEDITOR.instances.editor1; + * <b>editor.focusManager.forceBlur()</b>; + */ + forceBlur : function() + { + if ( this.hasFocus ) + { + var editor = this._.editor; + + editor.container.getChild( 1 ).removeClass( 'cke_focus' ); + + this.hasFocus = false; + editor.fire( 'blur' ); + } + } +}; + +/** + * Fired when the editor instance receives the input focus. + * @name CKEDITOR.editor#focus + * @event + * @param {CKEDITOR.editor} editor The editor instance. + * @example + * editor.on( 'focus', function( e ) + * { + * alert( 'The editor named ' + e.editor.name + ' is now focused' ); + * }); + */ + +/** + * Fired when the editor instance loses the input focus. + * @name CKEDITOR.editor#blur + * @event + * @param {CKEDITOR.editor} editor The editor instance. + * @example + * editor.on( 'blur', function( e ) + * { + * alert( 'The editor named ' + e.editor.name + ' lost the focus' ); + * }); + */ diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser.js b/htdocs/includes/ckeditor/_source/core/htmlparser.js new file mode 100644 index 0000000000000000000000000000000000000000..b652c6f5e3705b4e12e0c9ce6f69b706ac0ccf60 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser.js @@ -0,0 +1,224 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Creates a {@link CKEDITOR.htmlParser} class instance. + * @class Provides an "event like" system to parse strings of HTML data. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onTagOpen = function( tagName, attributes, selfClosing ) + * { + * alert( tagName ); + * }; + * parser.parse( '<p>Some <b>text</b>.</p>' ); + */ +CKEDITOR.htmlParser = function() +{ + this._ = + { + htmlPartsRegex : new RegExp( '<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:"[^"]*")|(?:\'[^\']*\')|[^"\'>])*)\\/?>))', 'g' ) + }; +}; + +(function() +{ + var attribsRegex = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g, + emptyAttribs = {checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1}; + + CKEDITOR.htmlParser.prototype = + { + /** + * Function to be fired when a tag opener is found. This function + * should be overriden when using this class. + * @param {String} tagName The tag name. The name is guarantted to be + * lowercased. + * @param {Object} attributes An object containing all tag attributes. Each + * property in this object represent and attribute name and its + * value is the attribute value. + * @param {Boolean} selfClosing true if the tag closes itself, false if the + * tag doesn't. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onTagOpen = function( tagName, attributes, selfClosing ) + * { + * alert( tagName ); // e.g. "b" + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onTagOpen : function() {}, + + /** + * Function to be fired when a tag closer is found. This function + * should be overriden when using this class. + * @param {String} tagName The tag name. The name is guarantted to be + * lowercased. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onTagClose = function( tagName ) + * { + * alert( tagName ); // e.g. "b" + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onTagClose : function() {}, + + /** + * Function to be fired when text is found. This function + * should be overriden when using this class. + * @param {String} text The text found. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onText = function( text ) + * { + * alert( text ); // e.g. "Hello" + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onText : function() {}, + + /** + * Function to be fired when CDATA section is found. This function + * should be overriden when using this class. + * @param {String} cdata The CDATA been found. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onCDATA = function( cdata ) + * { + * alert( cdata ); // e.g. "var hello;" + * }); + * parser.parse( "<script>var hello;</script>" ); + */ + onCDATA : function() {}, + + /** + * Function to be fired when a commend is found. This function + * should be overriden when using this class. + * @param {String} comment The comment text. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onComment = function( comment ) + * { + * alert( comment ); // e.g. " Example " + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onComment : function() {}, + + /** + * Parses text, looking for HTML tokens, like tag openers or closers, + * or comments. This function fires the onTagOpen, onTagClose, onText + * and onComment function during its execution. + * @param {String} html The HTML to be parsed. + * @example + * var parser = new CKEDITOR.htmlParser(); + * // The onTagOpen, onTagClose, onText and onComment should be overriden + * // at this point. + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + parse : function( html ) + { + var parts, + tagName, + nextIndex = 0, + cdata; // The collected data inside a CDATA section. + + while ( ( parts = this._.htmlPartsRegex.exec( html ) ) ) + { + var tagIndex = parts.index; + if ( tagIndex > nextIndex ) + { + var text = html.substring( nextIndex, tagIndex ); + + if ( cdata ) + cdata.push( text ); + else + this.onText( text ); + } + + nextIndex = this._.htmlPartsRegex.lastIndex; + + /* + "parts" is an array with the following items: + 0 : The entire match for opening/closing tags and comments. + 1 : Group filled with the tag name for closing tags. + 2 : Group filled with the comment text. + 3 : Group filled with the tag name for opening tags. + 4 : Group filled with the attributes part of opening tags. + */ + + // Closing tag + if ( ( tagName = parts[ 1 ] ) ) + { + tagName = tagName.toLowerCase(); + + if ( cdata && CKEDITOR.dtd.$cdata[ tagName ] ) + { + // Send the CDATA data. + this.onCDATA( cdata.join('') ); + cdata = null; + } + + if ( !cdata ) + { + this.onTagClose( tagName ); + continue; + } + } + + // If CDATA is enabled, just save the raw match. + if ( cdata ) + { + cdata.push( parts[ 0 ] ); + continue; + } + + // Opening tag + if ( ( tagName = parts[ 3 ] ) ) + { + tagName = tagName.toLowerCase(); + + // There are some tag names that can break things, so let's + // simply ignore them when parsing. (#5224) + if ( /="/.test( tagName ) ) + continue; + + var attribs = {}, + attribMatch, + attribsPart = parts[ 4 ], + selfClosing = !!( attribsPart && attribsPart.charAt( attribsPart.length - 1 ) == '/' ); + + if ( attribsPart ) + { + while ( ( attribMatch = attribsRegex.exec( attribsPart ) ) ) + { + var attName = attribMatch[1].toLowerCase(), + attValue = attribMatch[2] || attribMatch[3] || attribMatch[4] || ''; + + if ( !attValue && emptyAttribs[ attName ] ) + attribs[ attName ] = attName; + else + attribs[ attName ] = attValue; + } + } + + this.onTagOpen( tagName, attribs, selfClosing ); + + // Open CDATA mode when finding the appropriate tags. + if ( !cdata && CKEDITOR.dtd.$cdata[ tagName ] ) + cdata = []; + + continue; + } + + // Comment + if ( ( tagName = parts[ 2 ] ) ) + this.onComment( tagName ); + } + + if ( html.length > nextIndex ) + this.onText( html.substring( nextIndex, html.length ) ); + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser/basicwriter.js b/htdocs/includes/ckeditor/_source/core/htmlparser/basicwriter.js new file mode 100644 index 0000000000000000000000000000000000000000..6334e8fe2181f4747078e98e0808a34c416d6c8c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser/basicwriter.js @@ -0,0 +1,145 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass( +{ + $ : function() + { + this._ = + { + output : [] + }; + }, + + proto : + { + /** + * Writes the tag opening part for a opener tag. + * @param {String} tagName The element name for this tag. + * @param {Object} attributes The attributes defined for this tag. The + * attributes could be used to inspect the tag. + * @example + * // Writes "<p". + * writer.openTag( 'p', { class : 'MyClass', id : 'MyId' } ); + */ + openTag : function( tagName, attributes ) + { + this._.output.push( '<', tagName ); + }, + + /** + * Writes the tag closing part for a opener tag. + * @param {String} tagName The element name for this tag. + * @param {Boolean} isSelfClose Indicates that this is a self-closing tag, + * like "br" or "img". + * @example + * // Writes ">". + * writer.openTagClose( 'p', false ); + * @example + * // Writes " />". + * writer.openTagClose( 'br', true ); + */ + openTagClose : function( tagName, isSelfClose ) + { + if ( isSelfClose ) + this._.output.push( ' />' ); + else + this._.output.push( '>' ); + }, + + /** + * Writes an attribute. This function should be called after opening the + * tag with {@link #openTagClose}. + * @param {String} attName The attribute name. + * @param {String} attValue The attribute value. + * @example + * // Writes ' class="MyClass"'. + * writer.attribute( 'class', 'MyClass' ); + */ + attribute : function( attName, attValue ) + { + // Browsers don't always escape special character in attribute values. (#4683, #4719). + if ( typeof attValue == 'string' ) + attValue = CKEDITOR.tools.htmlEncodeAttr( attValue ); + + this._.output.push( ' ', attName, '="', attValue, '"' ); + }, + + /** + * Writes a closer tag. + * @param {String} tagName The element name for this tag. + * @example + * // Writes "</p>". + * writer.closeTag( 'p' ); + */ + closeTag : function( tagName ) + { + this._.output.push( '</', tagName, '>' ); + }, + + /** + * Writes text. + * @param {String} text The text value + * @example + * // Writes "Hello Word". + * writer.text( 'Hello Word' ); + */ + text : function( text ) + { + this._.output.push( text ); + }, + + /** + * Writes a comment. + * @param {String} comment The comment text. + * @example + * // Writes "<!-- My comment -->". + * writer.comment( ' My comment ' ); + */ + comment : function( comment ) + { + this._.output.push( '<!--', comment, '-->' ); + }, + + /** + * Writes any kind of data to the ouput. + * @example + * writer.write( 'This is an <b>example</b>.' ); + */ + write : function( data ) + { + this._.output.push( data ); + }, + + /** + * Empties the current output buffer. + * @example + * writer.reset(); + */ + reset : function() + { + this._.output = []; + this._.indent = false; + }, + + /** + * Empties the current output buffer. + * @param {Boolean} reset Indicates that the {@link reset} function is to + * be automatically called after retrieving the HTML. + * @returns {String} The HTML written to the writer so far. + * @example + * var html = writer.getHtml(); + */ + getHtml : function( reset ) + { + var html = this._.output.join( '' ); + + if ( reset ) + this.reset(); + + return html; + } + } +}); diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser/cdata.js b/htdocs/includes/ckeditor/_source/core/htmlparser/cdata.js new file mode 100644 index 0000000000000000000000000000000000000000..f8eb01c80abedc6421f88dad3469da73f51aba82 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser/cdata.js @@ -0,0 +1,43 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + + /** + * A lightweight representation of HTML text. + * @constructor + * @example + */ + CKEDITOR.htmlParser.cdata = function( value ) + { + /** + * The CDATA value. + * @type String + * @example + */ + this.value = value; + }; + + CKEDITOR.htmlParser.cdata.prototype = + { + /** + * CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is + * a constant value set to {@link CKEDITOR.NODE_TEXT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_TEXT, + + /** + * Writes write the CDATA with no special manipulations. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + */ + writeHtml : function( writer ) + { + writer.write( this.value ); + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser/comment.js b/htdocs/includes/ckeditor/_source/core/htmlparser/comment.js new file mode 100644 index 0000000000000000000000000000000000000000..0cc5419645da5b1f66b621f45c4992e8c60feb25 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser/comment.js @@ -0,0 +1,60 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * A lightweight representation of an HTML comment. + * @constructor + * @example + */ +CKEDITOR.htmlParser.comment = function( value ) +{ + /** + * The comment text. + * @type String + * @example + */ + this.value = value; + + /** @private */ + this._ = + { + isBlockLike : false + }; +}; + +CKEDITOR.htmlParser.comment.prototype = +{ + /** + * The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_COMMENT, + + /** + * Writes the HTML representation of this comment to a CKEDITOR.htmlWriter. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + * @example + */ + writeHtml : function( writer, filter ) + { + var comment = this.value; + + if ( filter ) + { + if ( !( comment = filter.onComment( comment, this ) ) ) + return; + + if ( typeof comment != 'string' ) + { + comment.parent = this.parent; + comment.writeHtml( writer, filter ); + return; + } + } + + writer.comment( comment ); + } +}; diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser/element.js b/htdocs/includes/ckeditor/_source/core/htmlparser/element.js new file mode 100644 index 0000000000000000000000000000000000000000..2795eb7ce3598e4942b6009893806ac3dcb3d88c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser/element.js @@ -0,0 +1,306 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * A lightweight representation of an HTML element. + * @param {String} name The element name. + * @param {Object} attributes And object holding all attributes defined for + * this element. + * @constructor + * @example + */ +CKEDITOR.htmlParser.element = function( name, attributes ) +{ + /** + * The element name. + * @type String + * @example + */ + this.name = name; + + /** + * Holds the attributes defined for this element. + * @type Object + * @example + */ + this.attributes = attributes || {}; + + /** + * The nodes that are direct children of this element. + * @type Array + * @example + */ + this.children = []; + + // Reveal the real semantic of our internal custom tag name (#6639), + // when resolving whether it's block like. + var realName = name || '', + prefixed = realName.match( /^cke:(.*)/ ); + prefixed && ( realName = prefixed[ 1 ] ); + + var isBlockLike = !!( CKEDITOR.dtd.$nonBodyContent[ realName ] + || CKEDITOR.dtd.$block[ realName ] + || CKEDITOR.dtd.$listItem[ realName ] + || CKEDITOR.dtd.$tableContent[ realName ] + || CKEDITOR.dtd.$nonEditable[ realName ] + || realName == 'br' ); + + this.isEmpty = !!CKEDITOR.dtd.$empty[ name ]; + this.isUnknown = !CKEDITOR.dtd[ name ]; + + /** @private */ + this._ = + { + isBlockLike : isBlockLike, + hasInlineStarted : this.isEmpty || !isBlockLike + }; +}; + +/** + * Object presentation of CSS style declaration text. + * @param {CKEDITOR.htmlParser.element|String} elementOrStyleText A html parser element or the inline style text. + */ +CKEDITOR.htmlParser.cssStyle = function() +{ + var styleText, + arg = arguments[ 0 ], + rules = {}; + + styleText = arg instanceof CKEDITOR.htmlParser.element ? arg.attributes.style : arg; + + // html-encoded quote might be introduced by 'font-family' + // from MS-Word which confused the following regexp. e.g. + //'font-family: "Lucida, Console"' + ( styleText || '' ) + .replace( /"/g, '"' ) + .replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, + function( match, name, value ) + { + name == 'font-family' && ( value = value.replace( /["']/g, '' ) ); + rules[ name.toLowerCase() ] = value; + }); + + return { + + rules : rules, + + /** + * Apply the styles onto the specified element or object. + * @param {CKEDITOR.htmlParser.element|CKEDITOR.dom.element|Object} obj + */ + populate : function( obj ) + { + var style = this.toString(); + if ( style ) + { + obj instanceof CKEDITOR.dom.element ? + obj.setAttribute( 'style', style ) : + obj instanceof CKEDITOR.htmlParser.element ? + obj.attributes.style = style : + obj.style = style; + } + }, + + toString : function() + { + var output = []; + for ( var i in rules ) + rules[ i ] && output.push( i, ':', rules[ i ], ';' ); + return output.join( '' ); + } + }; +}; + +(function() +{ + // Used to sort attribute entries in an array, where the first element of + // each object is the attribute name. + var sortAttribs = function( a, b ) + { + a = a[0]; + b = b[0]; + return a < b ? -1 : a > b ? 1 : 0; + }; + + CKEDITOR.htmlParser.element.prototype = + { + /** + * The node type. This is a constant value set to {@link CKEDITOR.NODE_ELEMENT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_ELEMENT, + + /** + * Adds a node to the element children list. + * @param {Object} node The node to be added. It can be any of of the + * following types: {@link CKEDITOR.htmlParser.element}, + * {@link CKEDITOR.htmlParser.text} and + * {@link CKEDITOR.htmlParser.comment}. + * @function + * @example + */ + add : CKEDITOR.htmlParser.fragment.prototype.add, + + /** + * Clone this element. + * @returns {CKEDITOR.htmlParser.element} The element clone. + * @example + */ + clone : function() + { + return new CKEDITOR.htmlParser.element( this.name, this.attributes ); + }, + + /** + * Writes the element HTML to a CKEDITOR.htmlWriter. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + * @example + */ + writeHtml : function( writer, filter ) + { + var attributes = this.attributes; + + // Ignore cke: prefixes when writing HTML. + var element = this, + writeName = element.name, + a, newAttrName, value; + + var isChildrenFiltered; + + /** + * Providing an option for bottom-up filtering order ( element + * children to be pre-filtered before the element itself ). + */ + element.filterChildren = function() + { + if ( !isChildrenFiltered ) + { + var writer = new CKEDITOR.htmlParser.basicWriter(); + CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.call( element, writer, filter ); + element.children = new CKEDITOR.htmlParser.fragment.fromHtml( writer.getHtml(), 0, element.clone() ).children; + isChildrenFiltered = 1; + } + }; + + if ( filter ) + { + while ( true ) + { + if ( !( writeName = filter.onElementName( writeName ) ) ) + return; + + element.name = writeName; + + if ( !( element = filter.onElement( element ) ) ) + return; + + element.parent = this.parent; + + if ( element.name == writeName ) + break; + + // If the element has been replaced with something of a + // different type, then make the replacement write itself. + if ( element.type != CKEDITOR.NODE_ELEMENT ) + { + element.writeHtml( writer, filter ); + return; + } + + writeName = element.name; + + // This indicate that the element has been dropped by + // filter but not the children. + if ( !writeName ) + { + // Fix broken parent refs. + for ( var c = 0, length = this.children.length ; c < length ; c++ ) + this.children[ c ].parent = element.parent; + + this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter ); + return; + } + } + + // The element may have been changed, so update the local + // references. + attributes = element.attributes; + } + + // Open element tag. + writer.openTag( writeName, attributes ); + + // Copy all attributes to an array. + var attribsArray = []; + // Iterate over the attributes twice since filters may alter + // other attributes. + for ( var i = 0 ; i < 2; i++ ) + { + for ( a in attributes ) + { + newAttrName = a; + value = attributes[ a ]; + if ( i == 1 ) + attribsArray.push( [ a, value ] ); + else if ( filter ) + { + while ( true ) + { + if ( !( newAttrName = filter.onAttributeName( a ) ) ) + { + delete attributes[ a ]; + break; + } + else if ( newAttrName != a ) + { + delete attributes[ a ]; + a = newAttrName; + continue; + } + else + break; + } + if ( newAttrName ) + { + if ( ( value = filter.onAttribute( element, newAttrName, value ) ) === false ) + delete attributes[ newAttrName ]; + else + attributes [ newAttrName ] = value; + } + } + } + } + // Sort the attributes by name. + if ( writer.sortAttributes ) + attribsArray.sort( sortAttribs ); + + // Send the attributes. + var len = attribsArray.length; + for ( i = 0 ; i < len ; i++ ) + { + var attrib = attribsArray[ i ]; + writer.attribute( attrib[0], attrib[1] ); + } + + // Close the tag. + writer.openTagClose( writeName, element.isEmpty ); + + if ( !element.isEmpty ) + { + this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter ); + // Close the element. + writer.closeTag( writeName ); + } + }, + + writeChildrenHtml : function( writer, filter ) + { + // Send children. + CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.apply( this, arguments ); + + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser/filter.js b/htdocs/includes/ckeditor/_source/core/htmlparser/filter.js new file mode 100644 index 0000000000000000000000000000000000000000..e4df3613dd119933262fc31cee8f0a8f34f3854e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser/filter.js @@ -0,0 +1,288 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + CKEDITOR.htmlParser.filter = CKEDITOR.tools.createClass( + { + $ : function( rules ) + { + this._ = + { + elementNames : [], + attributeNames : [], + elements : { $length : 0 }, + attributes : { $length : 0 } + }; + + if ( rules ) + this.addRules( rules, 10 ); + }, + + proto : + { + addRules : function( rules, priority ) + { + if ( typeof priority != 'number' ) + priority = 10; + + // Add the elementNames. + addItemsToList( this._.elementNames, rules.elementNames, priority ); + + // Add the attributeNames. + addItemsToList( this._.attributeNames, rules.attributeNames, priority ); + + // Add the elements. + addNamedItems( this._.elements, rules.elements, priority ); + + // Add the attributes. + addNamedItems( this._.attributes, rules.attributes, priority ); + + // Add the text. + this._.text = transformNamedItem( this._.text, rules.text, priority ) || this._.text; + + // Add the comment. + this._.comment = transformNamedItem( this._.comment, rules.comment, priority ) || this._.comment; + + // Add root fragment. + this._.root = transformNamedItem( this._.root, rules.root, priority ) || this._.root; + }, + + onElementName : function( name ) + { + return filterName( name, this._.elementNames ); + }, + + onAttributeName : function( name ) + { + return filterName( name, this._.attributeNames ); + }, + + onText : function( text ) + { + var textFilter = this._.text; + return textFilter ? textFilter.filter( text ) : text; + }, + + onComment : function( commentText, comment ) + { + var textFilter = this._.comment; + return textFilter ? textFilter.filter( commentText, comment ) : commentText; + }, + + onFragment : function( element ) + { + var rootFilter = this._.root; + return rootFilter ? rootFilter.filter( element ) : element; + }, + + onElement : function( element ) + { + // We must apply filters set to the specific element name as + // well as those set to the generic $ name. So, add both to an + // array and process them in a small loop. + var filters = [ this._.elements[ '^' ], this._.elements[ element.name ], this._.elements.$ ], + filter, ret; + + for ( var i = 0 ; i < 3 ; i++ ) + { + filter = filters[ i ]; + if ( filter ) + { + ret = filter.filter( element, this ); + + if ( ret === false ) + return null; + + if ( ret && ret != element ) + return this.onNode( ret ); + + // The non-root element has been dismissed by one of the filters. + if ( element.parent && !element.name ) + break; + } + } + + return element; + }, + + onNode : function( node ) + { + var type = node.type; + + return type == CKEDITOR.NODE_ELEMENT ? this.onElement( node ) : + type == CKEDITOR.NODE_TEXT ? new CKEDITOR.htmlParser.text( this.onText( node.value ) ) : + type == CKEDITOR.NODE_COMMENT ? new CKEDITOR.htmlParser.comment( this.onComment( node.value ) ): + null; + }, + + onAttribute : function( element, name, value ) + { + var filter = this._.attributes[ name ]; + + if ( filter ) + { + var ret = filter.filter( value, element, this ); + + if ( ret === false ) + return false; + + if ( typeof ret != 'undefined' ) + return ret; + } + + return value; + } + } + }); + + function filterName( name, filters ) + { + for ( var i = 0 ; name && i < filters.length ; i++ ) + { + var filter = filters[ i ]; + name = name.replace( filter[ 0 ], filter[ 1 ] ); + } + return name; + } + + function addItemsToList( list, items, priority ) + { + if ( typeof items == 'function' ) + items = [ items ]; + + var i, j, + listLength = list.length, + itemsLength = items && items.length; + + if ( itemsLength ) + { + // Find the index to insert the items at. + for ( i = 0 ; i < listLength && list[ i ].pri < priority ; i++ ) + { /*jsl:pass*/ } + + // Add all new items to the list at the specific index. + for ( j = itemsLength - 1 ; j >= 0 ; j-- ) + { + var item = items[ j ]; + if ( item ) + { + item.pri = priority; + list.splice( i, 0, item ); + } + } + } + } + + function addNamedItems( hashTable, items, priority ) + { + if ( items ) + { + for ( var name in items ) + { + var current = hashTable[ name ]; + + hashTable[ name ] = + transformNamedItem( + current, + items[ name ], + priority ); + + if ( !current ) + hashTable.$length++; + } + } + } + + function transformNamedItem( current, item, priority ) + { + if ( item ) + { + item.pri = priority; + + if ( current ) + { + // If the current item is not an Array, transform it. + if ( !current.splice ) + { + if ( current.pri > priority ) + current = [ item, current ]; + else + current = [ current, item ]; + + current.filter = callItems; + } + else + addItemsToList( current, item, priority ); + + return current; + } + else + { + item.filter = item; + return item; + } + } + } + + // Invoke filters sequentially on the array, break the iteration + // when it doesn't make sense to continue anymore. + function callItems( currentEntry ) + { + var isNode = currentEntry.type + || currentEntry instanceof CKEDITOR.htmlParser.fragment; + + for ( var i = 0 ; i < this.length ; i++ ) + { + // Backup the node info before filtering. + if ( isNode ) + { + var orgType = currentEntry.type, + orgName = currentEntry.name; + } + + var item = this[ i ], + ret = item.apply( window, arguments ); + + if ( ret === false ) + return ret; + + // We're filtering node (element/fragment). + if ( isNode ) + { + // No further filtering if it's not anymore + // fitable for the subsequent filters. + if ( ret && ( ret.name != orgName + || ret.type != orgType ) ) + { + return ret; + } + } + // Filtering value (nodeName/textValue/attrValue). + else + { + // No further filtering if it's not + // any more values. + if ( typeof ret != 'string' ) + return ret; + } + + ret != undefined && ( currentEntry = ret ); + } + + return currentEntry; + } +})(); + +// "entities" plugin +/* +{ + text : function( text ) + { + // TODO : Process entities. + return text.toUpperCase(); + } +}; +*/ diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser/fragment.js b/htdocs/includes/ckeditor/_source/core/htmlparser/fragment.js new file mode 100644 index 0000000000000000000000000000000000000000..2d7f8ac1a2dc4af55694c1a2f1983147b5b3becd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser/fragment.js @@ -0,0 +1,537 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * A lightweight representation of an HTML DOM structure. + * @constructor + * @example + */ +CKEDITOR.htmlParser.fragment = function() +{ + /** + * The nodes contained in the root of this fragment. + * @type Array + * @example + * var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' ); + * alert( fragment.children.length ); "2" + */ + this.children = []; + + /** + * Get the fragment parent. Should always be null. + * @type Object + * @default null + * @example + */ + this.parent = null; + + /** @private */ + this._ = + { + isBlockLike : true, + hasInlineStarted : false + }; +}; + +(function() +{ + // Block-level elements whose internal structure should be respected during + // parser fixing. + var nonBreakingBlocks = CKEDITOR.tools.extend( { table:1,ul:1,ol:1,dl:1 }, CKEDITOR.dtd.table, CKEDITOR.dtd.ul, CKEDITOR.dtd.ol, CKEDITOR.dtd.dl ); + + // IE < 8 don't output the close tag on definition list items. (#6975) + var optionalCloseTags = CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? { dd : 1, dt :1 } : {}; + + var listBlocks = { ol:1, ul:1 }; + + // Dtd of the fragment element, basically it accept anything except for intermediate structure, e.g. orphan <li>. + var rootDtd = CKEDITOR.tools.extend( {}, { html: 1 }, CKEDITOR.dtd.html, CKEDITOR.dtd.body, CKEDITOR.dtd.head, { style:1,script:1 } ); + + function isRemoveEmpty( node ) + { + // Empty link is to be removed when empty but not anchor. (#7894) + return node.name == 'a' && node.attributes.href + || CKEDITOR.dtd.$removeEmpty[ node.name ]; + } + + /** + * Creates a {@link CKEDITOR.htmlParser.fragment} from an HTML string. + * @param {String} fragmentHtml The HTML to be parsed, filling the fragment. + * @param {Number} [fixForBody=false] Wrap body with specified element if needed. + * @param {CKEDITOR.htmlParser.element} contextNode Parse the html as the content of this element. + * @returns CKEDITOR.htmlParser.fragment The fragment created. + * @example + * var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' ); + * alert( fragment.children[0].name ); "b" + * alert( fragment.children[1].value ); " Text" + */ + CKEDITOR.htmlParser.fragment.fromHtml = function( fragmentHtml, fixForBody, contextNode ) + { + var parser = new CKEDITOR.htmlParser(), + fragment = contextNode || new CKEDITOR.htmlParser.fragment(), + pendingInline = [], + pendingBRs = [], + currentNode = fragment, + // Indicate we're inside a <textarea> element, spaces should be touched differently. + inTextarea = false, + // Indicate we're inside a <pre> element, spaces should be touched differently. + inPre = false; + + function checkPending( newTagName ) + { + var pendingBRsSent; + + if ( pendingInline.length > 0 ) + { + for ( var i = 0 ; i < pendingInline.length ; i++ ) + { + var pendingElement = pendingInline[ i ], + pendingName = pendingElement.name, + pendingDtd = CKEDITOR.dtd[ pendingName ], + currentDtd = currentNode.name && CKEDITOR.dtd[ currentNode.name ]; + + if ( ( !currentDtd || currentDtd[ pendingName ] ) && ( !newTagName || !pendingDtd || pendingDtd[ newTagName ] || !CKEDITOR.dtd[ newTagName ] ) ) + { + if ( !pendingBRsSent ) + { + sendPendingBRs(); + pendingBRsSent = 1; + } + + // Get a clone for the pending element. + pendingElement = pendingElement.clone(); + + // Add it to the current node and make it the current, + // so the new element will be added inside of it. + pendingElement.parent = currentNode; + currentNode = pendingElement; + + // Remove the pending element (back the index by one + // to properly process the next entry). + pendingInline.splice( i, 1 ); + i--; + } + else + { + // Some element of the same type cannot be nested, flat them, + // e.g. <a href="#">foo<a href="#">bar</a></a>. (#7894) + if ( pendingName == currentNode.name ) + addElement( currentNode, currentNode.parent, 1 ), i--; + } + } + } + } + + function sendPendingBRs() + { + while ( pendingBRs.length ) + addElement( pendingBRs.shift(), currentNode ); + } + + /* + * Beside of simply append specified element to target, this function also takes + * care of other dirty lifts like forcing block in body, trimming spaces at + * the block boundaries etc. + * + * @param {Element} element The element to be added as the last child of {@link target}. + * @param {Element} target The parent element to relieve the new node. + * @param {Boolean} [moveCurrent=false] Don't change the "currentNode" global unless + * there's a return point node specified on the element, otherwise move current onto {@link target} node. + */ + function addElement( element, target, moveCurrent ) + { + // Ignore any element that has already been added. + if ( element.previous !== undefined ) + return; + + target = target || currentNode || fragment; + + // Current element might be mangled by fix body below, + // save it for restore later. + var savedCurrent = currentNode; + + // If the target is the fragment and this inline element can't go inside + // body (if fixForBody). + if ( fixForBody && ( !target.type || target.name == 'body' ) ) + { + var elementName, realElementName; + if ( element.attributes + && ( realElementName = + element.attributes[ 'data-cke-real-element-type' ] ) ) + elementName = realElementName; + else + elementName = element.name; + + if ( elementName && !( elementName in CKEDITOR.dtd.$body || elementName == 'body' || element.isOrphan ) ) + { + // Create a <p> in the fragment. + currentNode = target; + parser.onTagOpen( fixForBody, {} ); + + // The new target now is the <p>. + element.returnPoint = target = currentNode; + } + } + + // Rtrim empty spaces on block end boundary. (#3585) + if ( element._.isBlockLike + && element.name != 'pre' && element.name != 'textarea' ) + { + + var length = element.children.length, + lastChild = element.children[ length - 1 ], + text; + if ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT ) + { + if ( !( text = CKEDITOR.tools.rtrim( lastChild.value ) ) ) + element.children.length = length -1; + else + lastChild.value = text; + } + } + + target.add( element ); + + if ( element.name == 'pre' ) + inPre = false; + + if ( element.name == 'textarea' ) + inTextarea = false; + + + if ( element.returnPoint ) + { + currentNode = element.returnPoint; + delete element.returnPoint; + } + else + currentNode = moveCurrent ? target : savedCurrent; + } + + parser.onTagOpen = function( tagName, attributes, selfClosing, optionalClose ) + { + var element = new CKEDITOR.htmlParser.element( tagName, attributes ); + + // "isEmpty" will be always "false" for unknown elements, so we + // must force it if the parser has identified it as a selfClosing tag. + if ( element.isUnknown && selfClosing ) + element.isEmpty = true; + + // Check for optional closed elements, including browser quirks and manually opened blocks. + element.isOptionalClose = tagName in optionalCloseTags || optionalClose; + + // This is a tag to be removed if empty, so do not add it immediately. + if ( isRemoveEmpty( element ) ) + { + pendingInline.push( element ); + return; + } + else if ( tagName == 'pre' ) + inPre = true; + else if ( tagName == 'br' && inPre ) + { + currentNode.add( new CKEDITOR.htmlParser.text( '\n' ) ); + return; + } + else if ( tagName == 'textarea' ) + inTextarea = true; + + if ( tagName == 'br' ) + { + pendingBRs.push( element ); + return; + } + + while( 1 ) + { + var currentName = currentNode.name; + + var currentDtd = currentName ? ( CKEDITOR.dtd[ currentName ] + || ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ) + : rootDtd; + + // If the element cannot be child of the current element. + if ( !element.isUnknown && !currentNode.isUnknown && !currentDtd[ tagName ] ) + { + // Current node doesn't have a close tag, time for a close + // as this element isn't fit in. (#7497) + if ( currentNode.isOptionalClose ) + parser.onTagClose( currentName ); + // Fixing malformed nested lists by moving it into a previous list item. (#3828) + else if ( tagName in listBlocks + && currentName in listBlocks ) + { + var children = currentNode.children, + lastChild = children[ children.length - 1 ]; + + // Establish the list item if it's not existed. + if ( !( lastChild && lastChild.name == 'li' ) ) + addElement( ( lastChild = new CKEDITOR.htmlParser.element( 'li' ) ), currentNode ); + + !element.returnPoint && ( element.returnPoint = currentNode ); + currentNode = lastChild; + } + // Establish new list root for orphan list items. + else if ( tagName in CKEDITOR.dtd.$listItem && currentName != tagName ) + parser.onTagOpen( tagName == 'li' ? 'ul' : 'dl', {}, 0, 1 ); + // We're inside a structural block like table and list, AND the incoming element + // is not of the same type (e.g. <td>td1<td>td2</td>), we simply add this new one before it, + // and most importantly, return back to here once this element is added, + // e.g. <table><tr><td>td1</td><p>p1</p><td>td2</td></tr></table> + else if ( currentName in nonBreakingBlocks && currentName != tagName ) + { + !element.returnPoint && ( element.returnPoint = currentNode ); + currentNode = currentNode.parent; + } + else + { + // The current element is an inline element, which + // need to be continued even after the close, so put + // it in the pending list. + if ( currentName in CKEDITOR.dtd.$inline ) + pendingInline.unshift( currentNode ); + + // The most common case where we just need to close the + // current one and append the new one to the parent. + if ( currentNode.parent ) + addElement( currentNode, currentNode.parent, 1 ); + // We've tried our best to fix the embarrassment here, while + // this element still doesn't find it's parent, mark it as + // orphan and show our tolerance to it. + else + { + element.isOrphan = 1; + break; + } + } + } + else + break; + } + + checkPending( tagName ); + sendPendingBRs(); + + element.parent = currentNode; + + if ( element.isEmpty ) + addElement( element ); + else + currentNode = element; + }; + + parser.onTagClose = function( tagName ) + { + // Check if there is any pending tag to be closed. + for ( var i = pendingInline.length - 1 ; i >= 0 ; i-- ) + { + // If found, just remove it from the list. + if ( tagName == pendingInline[ i ].name ) + { + pendingInline.splice( i, 1 ); + return; + } + } + + var pendingAdd = [], + newPendingInline = [], + candidate = currentNode; + + while ( candidate != fragment && candidate.name != tagName ) + { + // If this is an inline element, add it to the pending list, if we're + // really closing one of the parents element later, they will continue + // after it. + if ( !candidate._.isBlockLike ) + newPendingInline.unshift( candidate ); + + // This node should be added to it's parent at this point. But, + // it should happen only if the closing tag is really closing + // one of the nodes. So, for now, we just cache it. + pendingAdd.push( candidate ); + + // Make sure return point is properly restored. + candidate = candidate.returnPoint || candidate.parent; + } + + if ( candidate != fragment ) + { + // Add all elements that have been found in the above loop. + for ( i = 0 ; i < pendingAdd.length ; i++ ) + { + var node = pendingAdd[ i ]; + addElement( node, node.parent ); + } + + currentNode = candidate; + + if ( candidate._.isBlockLike ) + sendPendingBRs(); + + addElement( candidate, candidate.parent ); + + // The parent should start receiving new nodes now, except if + // addElement changed the currentNode. + if ( candidate == currentNode ) + currentNode = currentNode.parent; + + pendingInline = pendingInline.concat( newPendingInline ); + } + + if ( tagName == 'body' ) + fixForBody = false; + }; + + parser.onText = function( text ) + { + // Trim empty spaces at beginning of text contents except <pre> and <textarea>. + if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre && !inTextarea ) + { + text = CKEDITOR.tools.ltrim( text ); + + if ( text.length === 0 ) + return; + } + + var currentName = currentNode.name, + currentDtd = currentName ? ( CKEDITOR.dtd[ currentName ] + || ( currentNode._.isBlockLike ? + CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ) : rootDtd; + + // Fix orphan text in list/table. (#8540) (#8870) + if ( !inTextarea && + !currentDtd [ '#' ] && + currentName in nonBreakingBlocks ) + { + parser.onTagOpen( currentName in listBlocks ? 'li' : + currentName == 'dl' ? 'dd' : + currentName == 'table' ? 'tr' : + currentName == 'tr' ? 'td' : '' ); + parser.onText( text ); + return; + } + + sendPendingBRs(); + checkPending(); + + if ( fixForBody + && ( !currentNode.type || currentNode.name == 'body' ) + && CKEDITOR.tools.trim( text ) ) + { + this.onTagOpen( fixForBody, {}, 0, 1 ); + } + + // Shrinking consequential spaces into one single for all elements + // text contents. + if ( !inPre && !inTextarea ) + text = text.replace( /[\t\r\n ]{2,}|[\t\r\n]/g, ' ' ); + + currentNode.add( new CKEDITOR.htmlParser.text( text ) ); + }; + + parser.onCDATA = function( cdata ) + { + currentNode.add( new CKEDITOR.htmlParser.cdata( cdata ) ); + }; + + parser.onComment = function( comment ) + { + sendPendingBRs(); + checkPending(); + currentNode.add( new CKEDITOR.htmlParser.comment( comment ) ); + }; + + // Parse it. + parser.parse( fragmentHtml ); + + // Send all pending BRs except one, which we consider a unwanted bogus. (#5293) + sendPendingBRs( !CKEDITOR.env.ie && 1 ); + + // Close all pending nodes, make sure return point is properly restored. + while ( currentNode != fragment ) + addElement( currentNode, currentNode.parent, 1 ); + + return fragment; + }; + + CKEDITOR.htmlParser.fragment.prototype = + { + /** + * Adds a node to this fragment. + * @param {Object} node The node to be added. It can be any of of the + * following types: {@link CKEDITOR.htmlParser.element}, + * {@link CKEDITOR.htmlParser.text} and + * {@link CKEDITOR.htmlParser.comment}. + * @param {Number} [index] From where the insertion happens. + * @example + */ + add : function( node, index ) + { + isNaN( index ) && ( index = this.children.length ); + + var previous = index > 0 ? this.children[ index - 1 ] : null; + if ( previous ) + { + // If the block to be appended is following text, trim spaces at + // the right of it. + if ( node._.isBlockLike && previous.type == CKEDITOR.NODE_TEXT ) + { + previous.value = CKEDITOR.tools.rtrim( previous.value ); + + // If we have completely cleared the previous node. + if ( previous.value.length === 0 ) + { + // Remove it from the list and add the node again. + this.children.pop(); + this.add( node ); + return; + } + } + + previous.next = node; + } + + node.previous = previous; + node.parent = this; + + this.children.splice( index, 0, node ); + + this._.hasInlineStarted = node.type == CKEDITOR.NODE_TEXT || ( node.type == CKEDITOR.NODE_ELEMENT && !node._.isBlockLike ); + }, + + /** + * Writes the fragment HTML to a CKEDITOR.htmlWriter. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + * @example + * var writer = new CKEDITOR.htmlWriter(); + * var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<P><B>Example' ); + * fragment.writeHtml( writer ) + * alert( writer.getHtml() ); "<p><b>Example</b></p>" + */ + writeHtml : function( writer, filter ) + { + var isChildrenFiltered; + this.filterChildren = function() + { + var writer = new CKEDITOR.htmlParser.basicWriter(); + this.writeChildrenHtml.call( this, writer, filter, true ); + var html = writer.getHtml(); + this.children = new CKEDITOR.htmlParser.fragment.fromHtml( html ).children; + isChildrenFiltered = 1; + }; + + // Filtering the root fragment before anything else. + !this.name && filter && filter.onFragment( this ); + + this.writeChildrenHtml( writer, isChildrenFiltered ? null : filter ); + }, + + writeChildrenHtml : function( writer, filter ) + { + for ( var i = 0 ; i < this.children.length ; i++ ) + this.children[i].writeHtml( writer, filter ); + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/htmlparser/text.js b/htdocs/includes/ckeditor/_source/core/htmlparser/text.js new file mode 100644 index 0000000000000000000000000000000000000000..4bf5fd6471f5ab7db111f41c627441c5c0a2deed --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/htmlparser/text.js @@ -0,0 +1,53 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + /** + * A lightweight representation of HTML text. + * @constructor + * @example + */ + CKEDITOR.htmlParser.text = function( value ) + { + /** + * The text value. + * @type String + * @example + */ + this.value = value; + + /** @private */ + this._ = + { + isBlockLike : false + }; + }; + + CKEDITOR.htmlParser.text.prototype = + { + /** + * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_TEXT, + + /** + * Writes the HTML representation of this text to a CKEDITOR.htmlWriter. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + * @example + */ + writeHtml : function( writer, filter ) + { + var text = this.value; + + if ( filter && !( text = filter.onText( text, this ) ) ) + return; + + writer.text( text ); + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/lang.js b/htdocs/includes/ckeditor/_source/core/lang.js new file mode 100644 index 0000000000000000000000000000000000000000..e75909f3bd442f0750377a3416ecb33401f4779c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/lang.js @@ -0,0 +1,157 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var loadedLangs = {}; + + /** + * @namespace Holds language related functions. + */ + CKEDITOR.lang = + { + /** + * The list of languages available in the editor core. + * @type Object + * @example + * alert( CKEDITOR.lang.en ); // "true" + */ + languages : + { + 'af' : 1, + 'ar' : 1, + 'bg' : 1, + 'bn' : 1, + 'bs' : 1, + 'ca' : 1, + 'cs' : 1, + 'cy' : 1, + 'da' : 1, + 'de' : 1, + 'el' : 1, + 'en-au' : 1, + 'en-ca' : 1, + 'en-gb' : 1, + 'en' : 1, + 'eo' : 1, + 'es' : 1, + 'et' : 1, + 'eu' : 1, + 'fa' : 1, + 'fi' : 1, + 'fo' : 1, + 'fr-ca' : 1, + 'fr' : 1, + 'gl' : 1, + 'gu' : 1, + 'he' : 1, + 'hi' : 1, + 'hr' : 1, + 'hu' : 1, + 'is' : 1, + 'it' : 1, + 'ja' : 1, + 'ka' : 1, + 'km' : 1, + 'ko' : 1, + 'lt' : 1, + 'lv' : 1, + 'mn' : 1, + 'ms' : 1, + 'nb' : 1, + 'nl' : 1, + 'no' : 1, + 'pl' : 1, + 'pt-br' : 1, + 'pt' : 1, + 'ro' : 1, + 'ru' : 1, + 'sk' : 1, + 'sl' : 1, + 'sr-latn' : 1, + 'sr' : 1, + 'sv' : 1, + 'th' : 1, + 'tr' : 1, + 'uk' : 1, + 'vi' : 1, + 'zh-cn' : 1, + 'zh' : 1 + }, + + /** + * Loads a specific language file, or auto detect it. A callback is + * then called when the file gets loaded. + * @param {String} languageCode The code of the language file to be + * loaded. If null or empty, autodetection will be performed. The + * same happens if the language is not supported. + * @param {String} defaultLanguage The language to be used if + * languageCode is not supported or if the autodetection fails. + * @param {Function} callback A function to be called once the + * language file is loaded. Two parameters are passed to this + * function: the language code and the loaded language entries. + * @example + */ + load : function( languageCode, defaultLanguage, callback ) + { + // If no languageCode - fallback to browser or default. + // If languageCode - fallback to no-localized version or default. + if ( !languageCode || !CKEDITOR.lang.languages[ languageCode ] ) + languageCode = this.detect( defaultLanguage, languageCode ); + + if ( !this[ languageCode ] ) + { + CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( + '_source/' + // @Packager.RemoveLine + 'lang/' + languageCode + '.js' ), + function() + { + callback( languageCode, this[ languageCode ] ); + } + , this ); + } + else + callback( languageCode, this[ languageCode ] ); + }, + + /** + * Returns the language that best fit the user language. For example, + * suppose that the user language is "pt-br". If this language is + * supported by the editor, it is returned. Otherwise, if only "pt" is + * supported, it is returned instead. If none of the previous are + * supported, a default language is then returned. + * @param {String} defaultLanguage The default language to be returned + * if the user language is not supported. + * @param {String} [probeLanguage] A language code to try to use, + * instead of the browser based autodetection. + * @returns {String} The detected language code. + * @example + * alert( CKEDITOR.lang.detect( 'en' ) ); // e.g., in a German browser: "de" + */ + detect : function( defaultLanguage, probeLanguage ) + { + var languages = this.languages; + probeLanguage = probeLanguage || navigator.userLanguage || navigator.language || defaultLanguage; + + var parts = probeLanguage + .toLowerCase() + .match( /([a-z]+)(?:-([a-z]+))?/ ), + lang = parts[1], + locale = parts[2]; + + if ( languages[ lang + '-' + locale ] ) + lang = lang + '-' + locale; + else if ( !languages[ lang ] ) + lang = null; + + CKEDITOR.lang.detect = lang ? + function() { return lang; } : + function( defaultLanguage ) { return defaultLanguage; }; + + return lang || defaultLanguage; + } + }; + +})(); diff --git a/htdocs/includes/ckeditor/_source/core/loader.js b/htdocs/includes/ckeditor/_source/core/loader.js new file mode 100644 index 0000000000000000000000000000000000000000..ade7c068bf5adf175a19e06c6188bffcade661a9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/loader.js @@ -0,0 +1,240 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to + * load core scripts and their dependencies from _source. + */ + +if ( typeof CKEDITOR == 'undefined' ) + CKEDITOR = {}; + +if ( !CKEDITOR.loader ) +{ + /** + * Load core scripts and their dependencies from _source. + * @namespace + * @example + */ + CKEDITOR.loader = (function() + { + // Table of script names and their dependencies. + var scripts = + { + 'core/_bootstrap' : [ 'core/config', 'core/ckeditor', 'core/plugins', 'core/scriptloader', 'core/tools', /* The following are entries that we want to force loading at the end to avoid dependence recursion */ 'core/dom/comment', 'core/dom/elementpath', 'core/dom/text', 'core/dom/rangelist' ], + 'core/ckeditor' : [ 'core/ckeditor_basic', 'core/dom', 'core/dtd', 'core/dom/document', 'core/dom/element', 'core/editor', 'core/event', 'core/htmlparser', 'core/htmlparser/element', 'core/htmlparser/fragment', 'core/htmlparser/filter', 'core/htmlparser/basicwriter', 'core/tools' ], + 'core/ckeditor_base' : [], + 'core/ckeditor_basic' : [ 'core/editor_basic', 'core/env', 'core/event' ], + 'core/command' : [], + 'core/config' : [ 'core/ckeditor_base' ], + 'core/dom' : [], + 'core/dom/comment' : [ 'core/dom/node' ], + 'core/dom/document' : [ 'core/dom', 'core/dom/domobject', 'core/dom/window' ], + 'core/dom/documentfragment' : [ 'core/dom/element' ], + 'core/dom/element' : [ 'core/dom', 'core/dom/document', 'core/dom/domobject', 'core/dom/node', 'core/dom/nodelist', 'core/tools' ], + 'core/dom/elementpath' : [ 'core/dom/element' ], + 'core/dom/event' : [], + 'core/dom/node' : [ 'core/dom/domobject', 'core/tools' ], + 'core/dom/nodelist' : [ 'core/dom/node' ], + 'core/dom/domobject' : [ 'core/dom/event' ], + 'core/dom/range' : [ 'core/dom/document', 'core/dom/documentfragment', 'core/dom/element', 'core/dom/walker' ], + 'core/dom/rangelist' : [ 'core/dom/range' ], + 'core/dom/text' : [ 'core/dom/node', 'core/dom/domobject' ], + 'core/dom/walker' : [ 'core/dom/node' ], + 'core/dom/window' : [ 'core/dom/domobject' ], + 'core/dtd' : [ 'core/tools' ], + 'core/editor' : [ 'core/command', 'core/config', 'core/editor_basic', 'core/focusmanager', 'core/lang', 'core/plugins', 'core/skins', 'core/themes', 'core/tools', 'core/ui' ], + 'core/editor_basic' : [ 'core/event' ], + 'core/env' : [], + 'core/event' : [], + 'core/focusmanager' : [], + 'core/htmlparser' : [], + 'core/htmlparser/comment' : [ 'core/htmlparser' ], + 'core/htmlparser/element' : [ 'core/htmlparser', 'core/htmlparser/fragment' ], + 'core/htmlparser/fragment' : [ 'core/htmlparser', 'core/htmlparser/comment', 'core/htmlparser/text', 'core/htmlparser/cdata' ], + 'core/htmlparser/text' : [ 'core/htmlparser' ], + 'core/htmlparser/cdata' : [ 'core/htmlparser' ], + 'core/htmlparser/filter' : [ 'core/htmlparser' ], + 'core/htmlparser/basicwriter': [ 'core/htmlparser' ], + 'core/lang' : [], + 'core/plugins' : [ 'core/resourcemanager' ], + 'core/resourcemanager' : [ 'core/scriptloader', 'core/tools' ], + 'core/scriptloader' : [ 'core/dom/element', 'core/env' ], + 'core/skins' : [ 'core/scriptloader' ], + 'core/themes' : [ 'core/resourcemanager' ], + 'core/tools' : [ 'core/env' ], + 'core/ui' : [] + }; + + var basePath = (function() + { + // This is a copy of CKEDITOR.basePath, but requires the script having + // "_source/core/loader.js". + if ( CKEDITOR && CKEDITOR.basePath ) + return CKEDITOR.basePath; + + // Find out the editor directory path, based on its <script> tag. + var path = ''; + var scripts = document.getElementsByTagName( 'script' ); + + for ( var i = 0 ; i < scripts.length ; i++ ) + { + var match = scripts[i].src.match( /(^|.*?[\\\/])(?:_source\/)?core\/loader.js(?:\?.*)?$/i ); + + if ( match ) + { + path = match[1]; + break; + } + } + + // In IE (only) the script.src string is the raw valued entered in the + // HTML. Other browsers return the full resolved URL instead. + if ( path.indexOf('://') == -1 ) + { + // Absolute path. + if ( path.indexOf( '/' ) === 0 ) + path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path; + // Relative path. + else + path = location.href.match( /^[^\?]*\// )[0] + path; + } + + return path; + })(); + + var timestamp = 'C6HH5UF'; + + var getUrl = function( resource ) + { + if ( CKEDITOR && CKEDITOR.getUrl ) + return CKEDITOR.getUrl( resource ); + + return basePath + resource + + ( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) + + 't=' + timestamp; + }; + + var pendingLoad = []; + + /** @lends CKEDITOR.loader */ + return { + /** + * The list of loaded scripts in their loading order. + * @type Array + * @example + * // Alert the loaded script names. + * alert( <b>CKEDITOR.loader.loadedScripts</b> ); + */ + loadedScripts : [], + + loadPending : function() + { + var scriptName = pendingLoad.shift(); + + if ( !scriptName ) + return; + + var scriptSrc = getUrl( '_source/' + scriptName + '.js' ); + + var script = document.createElement( 'script' ); + script.type = 'text/javascript'; + script.src = scriptSrc; + + function onScriptLoaded() + { + // Append this script to the list of loaded scripts. + CKEDITOR.loader.loadedScripts.push( scriptName ); + + // Load the next. + CKEDITOR.loader.loadPending(); + } + + // We must guarantee the execution order of the scripts, so we + // need to load them one by one. (#4145) + // The following if/else block has been taken from the scriptloader core code. + if ( typeof(script.onreadystatechange) !== "undefined" ) + { + /** @ignore */ + script.onreadystatechange = function() + { + if ( script.readyState == 'loaded' || script.readyState == 'complete' ) + { + script.onreadystatechange = null; + onScriptLoaded(); + } + }; + } + else + { + /** @ignore */ + script.onload = function() + { + // Some browsers, such as Safari, may call the onLoad function + // immediately. Which will break the loading sequence. (#3661) + setTimeout( function() { onScriptLoaded( scriptName ); }, 0 ); + }; + } + + document.body.appendChild( script ); + }, + + /** + * Loads a specific script, including its dependencies. This is not a + * synchronous loading, which means that the code to be loaded will + * not necessarily be available after this call. + * @example + * CKEDITOR.loader.load( 'core/dom/element' ); + */ + load : function( scriptName, defer ) + { + // Check if the script has already been loaded. + if ( scriptName in this.loadedScripts ) + return; + + // Get the script dependencies list. + var dependencies = scripts[ scriptName ]; + if ( !dependencies ) + throw 'The script name"' + scriptName + '" is not defined.'; + + // Mark the script as loaded, even before really loading it, to + // avoid cross references recursion. + this.loadedScripts[ scriptName ] = true; + + // Load all dependencies first. + for ( var i = 0 ; i < dependencies.length ; i++ ) + this.load( dependencies[ i ], true ); + + var scriptSrc = getUrl( '_source/' + scriptName + '.js' ); + + // Append the <script> element to the DOM. + // If the page is fully loaded, we can't use document.write + // but if the script is run while the body is loading then it's safe to use it + // Unfortunately, Firefox <3.6 doesn't support document.readyState, so it won't get this improvement + if ( document.body && (!document.readyState || document.readyState == 'complete') ) + { + pendingLoad.push( scriptName ); + + if ( !defer ) + this.loadPending(); + } + else + { + // Append this script to the list of loaded scripts. + this.loadedScripts.push( scriptName ); + + document.write( '<script src="' + scriptSrc + '" type="text/javascript"><\/script>' ); + } + } + }; + })(); +} + +// Check if any script has been defined for autoload. +if ( CKEDITOR._autoLoad ) +{ + CKEDITOR.loader.load( CKEDITOR._autoLoad ); + delete CKEDITOR._autoLoad; +} diff --git a/htdocs/includes/ckeditor/_source/core/plugindefinition.js b/htdocs/includes/ckeditor/_source/core/plugindefinition.js new file mode 100644 index 0000000000000000000000000000000000000000..f2cb536e452717bf0907f25e4e06e219d0481ef3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/plugindefinition.js @@ -0,0 +1,83 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the "virtual" {@link CKEDITOR.pluginDefinition} class, which + * contains the defintion of a plugin. This file is for documentation + * purposes only. + */ + +/** + * (Virtual Class) Do not call this constructor. This class is not really part + * of the API. It just illustrates the features of plugin objects to be + * passed to the {@link CKEDITOR.plugins.add} function. + * @name CKEDITOR.pluginDefinition + * @constructor + * @example + */ + +/** + * A list of plugins that are required by this plugin. Note that this property + * doesn't guarantee the loading order of the plugins. + * @name CKEDITOR.pluginDefinition.prototype.requires + * @type Array + * @example + * CKEDITOR.plugins.add( 'sample', + * { + * requires : [ 'button', 'selection' ] + * }); + */ + +/** + * A list of language files available for this plugin. These files are stored inside + * the "lang" directory, which is inside the plugin directory, follow the name + * pattern of "langCode.js", and contain a language definition created with {@link CKEDITOR.pluginDefinition#setLang}. + * While the plugin is being loaded, the editor checks this list to see if + * a language file of the current editor language ({@link CKEDITOR.editor#langCode}) + * is available, and if so, loads it. Otherwise, the file represented by the first list item + * in the list is loaded. + * @name CKEDITOR.pluginDefinition.prototype.lang + * @type Array + * @example + * CKEDITOR.plugins.add( 'sample', + * { + * lang : [ 'en', 'fr' ] + * }); + */ + + /** + * Function called on initialization of every editor instance created in the + * page before the init() call task. The beforeInit function will be called for + * all plugins, after that the init function is called for all of them. This + * feature makes it possible to initialize things that could be used in the + * init function of other plugins. + * @name CKEDITOR.pluginDefinition.prototype.beforeInit + * @function + * @param {CKEDITOR.editor} editor The editor instance being initialized. + * @example + * CKEDITOR.plugins.add( 'sample', + * { + * beforeInit : function( editor ) + * { + * alert( 'Editor "' + editor.name + '" is to be initialized!' ); + * } + * }); + */ + + /** + * Function called on initialization of every editor instance created in the + * page. + * @name CKEDITOR.pluginDefinition.prototype.init + * @function + * @param {CKEDITOR.editor} editor The editor instance being initialized. + * @example + * CKEDITOR.plugins.add( 'sample', + * { + * init : function( editor ) + * { + * alert( 'Editor "' + editor.name + '" is being initialized!' ); + * } + * }); + */ diff --git a/htdocs/includes/ckeditor/_source/core/plugins.js b/htdocs/includes/ckeditor/_source/core/plugins.js new file mode 100644 index 0000000000000000000000000000000000000000..0bbe53f6b7a6b85e1a41dfcbc9059794d867e387 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/plugins.js @@ -0,0 +1,103 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.plugins} object, which is used to + * manage plugins registration and loading. + */ + +/** + * Manages plugins registration and loading. + * @namespace + * @augments CKEDITOR.resourceManager + * @example + */ +CKEDITOR.plugins = new CKEDITOR.resourceManager( + '_source/' + // @Packager.RemoveLine + 'plugins/', 'plugin' ); + +// PACKAGER_RENAME( CKEDITOR.plugins ) + +CKEDITOR.plugins.load = CKEDITOR.tools.override( CKEDITOR.plugins.load, function( originalLoad ) + { + return function( name, callback, scope ) + { + var allPlugins = {}; + + var loadPlugins = function( names ) + { + originalLoad.call( this, names, function( plugins ) + { + CKEDITOR.tools.extend( allPlugins, plugins ); + + var requiredPlugins = []; + for ( var pluginName in plugins ) + { + var plugin = plugins[ pluginName ], + requires = plugin && plugin.requires; + + if ( requires ) + { + for ( var i = 0 ; i < requires.length ; i++ ) + { + if ( !allPlugins[ requires[ i ] ] ) + requiredPlugins.push( requires[ i ] ); + } + } + } + + if ( requiredPlugins.length ) + loadPlugins.call( this, requiredPlugins ); + else + { + // Call the "onLoad" function for all plugins. + for ( pluginName in allPlugins ) + { + plugin = allPlugins[ pluginName ]; + if ( plugin.onLoad && !plugin.onLoad._called ) + { + plugin.onLoad(); + plugin.onLoad._called = 1; + } + } + + // Call the callback. + if ( callback ) + callback.call( scope || window, allPlugins ); + } + } + , this); + + }; + + loadPlugins.call( this, name ); + }; + }); + +/** + * Loads a specific language file, or auto detect it. A callback is + * then called when the file gets loaded. + * @param {String} pluginName The name of the plugin to which the provided translation + * should be attached. + * @param {String} languageCode The code of the language translation provided. + * @param {Object} languageEntries An object that contains pairs of label and + * the respective translation. + * @example + * CKEDITOR.plugins.setLang( 'myPlugin', 'en', { + * title : 'My plugin', + * selectOption : 'Please select an option' + * } ); + */ +CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries ) +{ + var plugin = this.get( pluginName ), + pluginLangEntries = plugin.langEntries || ( plugin.langEntries = {} ), + pluginLang = plugin.lang || ( plugin.lang = [] ); + + if ( CKEDITOR.tools.indexOf( pluginLang, languageCode ) == -1 ) + pluginLang.push( languageCode ); + + pluginLangEntries[ languageCode ] = languageEntries; +}; diff --git a/htdocs/includes/ckeditor/_source/core/resourcemanager.js b/htdocs/includes/ckeditor/_source/core/resourcemanager.js new file mode 100644 index 0000000000000000000000000000000000000000..53ffba246e4759e3185334826f3a7673cd2d88cc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/resourcemanager.js @@ -0,0 +1,238 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.resourceManager} class, which is + * the base for resource managers, like plugins and themes. + */ + + /** + * Base class for resource managers, like plugins and themes. This class is not + * intended to be used out of the CKEditor core code. + * @param {String} basePath The path for the resources folder. + * @param {String} fileName The name used for resource files. + * @namespace + * @example + */ +CKEDITOR.resourceManager = function( basePath, fileName ) +{ + /** + * The base directory containing all resources. + * @name CKEDITOR.resourceManager.prototype.basePath + * @type String + * @example + */ + this.basePath = basePath; + + /** + * The name used for resource files. + * @name CKEDITOR.resourceManager.prototype.fileName + * @type String + * @example + */ + this.fileName = fileName; + + /** + * Contains references to all resources that have already been registered + * with {@link #add}. + * @name CKEDITOR.resourceManager.prototype.registered + * @type Object + * @example + */ + this.registered = {}; + + /** + * Contains references to all resources that have already been loaded + * with {@link #load}. + * @name CKEDITOR.resourceManager.prototype.loaded + * @type Object + * @example + */ + this.loaded = {}; + + /** + * Contains references to all resources that have already been registered + * with {@link #addExternal}. + * @name CKEDITOR.resourceManager.prototype.externals + * @type Object + * @example + */ + this.externals = {}; + + /** + * @private + */ + this._ = + { + // List of callbacks waiting for plugins to be loaded. + waitingList : {} + }; +}; + +CKEDITOR.resourceManager.prototype = +{ + /** + * Registers a resource. + * @param {String} name The resource name. + * @param {Object} [definition] The resource definition. + * @example + * CKEDITOR.plugins.add( 'sample', { ... plugin definition ... } ); + * @see CKEDITOR.pluginDefinition + */ + add : function( name, definition ) + { + if ( this.registered[ name ] ) + throw '[CKEDITOR.resourceManager.add] The resource name "' + name + '" is already registered.'; + + CKEDITOR.fire( name + CKEDITOR.tools.capitalize( this.fileName ) + 'Ready', + this.registered[ name ] = definition || {} ); + }, + + /** + * Gets the definition of a specific resource. + * @param {String} name The resource name. + * @type Object + * @example + * var definition = <b>CKEDITOR.plugins.get( 'sample' )</b>; + */ + get : function( name ) + { + return this.registered[ name ] || null; + }, + + /** + * Get the folder path for a specific loaded resource. + * @param {String} name The resource name. + * @type String + * @example + * alert( <b>CKEDITOR.plugins.getPath( 'sample' )</b> ); // "<editor path>/plugins/sample/" + */ + getPath : function( name ) + { + var external = this.externals[ name ]; + return CKEDITOR.getUrl( ( external && external.dir ) || this.basePath + name + '/' ); + }, + + /** + * Get the file path for a specific loaded resource. + * @param {String} name The resource name. + * @type String + * @example + * alert( <b>CKEDITOR.plugins.getFilePath( 'sample' )</b> ); // "<editor path>/plugins/sample/plugin.js" + */ + getFilePath : function( name ) + { + var external = this.externals[ name ]; + return CKEDITOR.getUrl( + this.getPath( name ) + + ( ( external && ( typeof external.file == 'string' ) ) ? external.file : this.fileName + '.js' ) ); + }, + + /** + * Registers one or more resources to be loaded from an external path + * instead of the core base path. + * @param {String} names The resource names, separated by commas. + * @param {String} path The path of the folder containing the resource. + * @param {String} [fileName] The resource file name. If not provided, the + * default name is used; If provided with a empty string, will implicitly indicates that {@param path} + * is already the full path. + * @example + * // Loads a plugin from '/myplugin/samples/plugin.js'. + * CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/' ); + * @example + * // Loads a plugin from '/myplugin/samples/my_plugin.js'. + * CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/', 'my_plugin.js' ); + * @example + * // Loads a plugin from '/myplugin/samples/my_plugin.js'. + * CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/my_plugin.js', '' ); + */ + addExternal : function( names, path, fileName ) + { + names = names.split( ',' ); + for ( var i = 0 ; i < names.length ; i++ ) + { + var name = names[ i ]; + + this.externals[ name ] = + { + dir : path, + file : fileName + }; + } + }, + + /** + * Loads one or more resources. + * @param {String|Array} name The name of the resource to load. It may be a + * string with a single resource name, or an array with several names. + * @param {Function} callback A function to be called when all resources + * are loaded. The callback will receive an array containing all + * loaded names. + * @param {Object} [scope] The scope object to be used for the callback + * call. + * @example + * <b>CKEDITOR.plugins.load</b>( 'myplugin', function( plugins ) + * { + * alert( plugins['myplugin'] ); // "object" + * }); + */ + load : function( names, callback, scope ) + { + // Ensure that we have an array of names. + if ( !CKEDITOR.tools.isArray( names ) ) + names = names ? [ names ] : []; + + var loaded = this.loaded, + registered = this.registered, + urls = [], + urlsNames = {}, + resources = {}; + + // Loop through all names. + for ( var i = 0 ; i < names.length ; i++ ) + { + var name = names[ i ]; + + if ( !name ) + continue; + + // If not available yet. + if ( !loaded[ name ] && !registered[ name ] ) + { + var url = this.getFilePath( name ); + urls.push( url ); + if ( !( url in urlsNames ) ) + urlsNames[ url ] = []; + urlsNames[ url ].push( name ); + } + else + resources[ name ] = this.get( name ); + } + + CKEDITOR.scriptLoader.load( urls, function( completed, failed ) + { + if ( failed.length ) + { + throw '[CKEDITOR.resourceManager.load] Resource name "' + urlsNames[ failed[ 0 ] ].join( ',' ) + + '" was not found at "' + failed[ 0 ] + '".'; + } + + for ( var i = 0 ; i < completed.length ; i++ ) + { + var nameList = urlsNames[ completed[ i ] ]; + for ( var j = 0 ; j < nameList.length ; j++ ) + { + var name = nameList[ j ]; + resources[ name ] = this.get( name ); + + loaded[ name ] = 1; + } + } + + callback.call( scope, resources ); + } + , this); + } +}; diff --git a/htdocs/includes/ckeditor/_source/core/scriptloader.js b/htdocs/includes/ckeditor/_source/core/scriptloader.js new file mode 100644 index 0000000000000000000000000000000000000000..3640fcd5df4c92c9a3798d05674d6e3874456933 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/scriptloader.js @@ -0,0 +1,180 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.scriptLoader} object, used to load scripts + * asynchronously. + */ + +/** + * Load scripts asynchronously. + * @namespace + * @example + */ +CKEDITOR.scriptLoader = (function() +{ + var uniqueScripts = {}, + waitingList = {}; + + return /** @lends CKEDITOR.scriptLoader */ { + /** + * Loads one or more external script checking if not already loaded + * previously by this function. + * @param {String|Array} scriptUrl One or more URLs pointing to the + * scripts to be loaded. + * @param {Function} [callback] A function to be called when the script + * is loaded and executed. If a string is passed to "scriptUrl", a + * boolean parameter is passed to the callback, indicating the + * success of the load. If an array is passed instead, two array + * parameters are passed to the callback; the first contains the + * URLs that have been properly loaded, and the second the failed + * ones. + * @param {Object} [scope] The scope ("this" reference) to be used for + * the callback call. Default to {@link CKEDITOR}. + * @param {Boolean} [showBusy] Changes the cursor of the document while ++ * the script is loaded. + * @example + * CKEDITOR.scriptLoader.load( '/myscript.js' ); + * @example + * CKEDITOR.scriptLoader.load( '/myscript.js', function( success ) + * { + * // Alerts "true" if the script has been properly loaded. + * // HTTP error 404 should return "false". + * alert( success ); + * }); + * @example + * CKEDITOR.scriptLoader.load( [ '/myscript1.js', '/myscript2.js' ], function( completed, failed ) + * { + * alert( 'Number of scripts loaded: ' + completed.length ); + * alert( 'Number of failures: ' + failed.length ); + * }); + */ + load : function( scriptUrl, callback, scope, showBusy ) + { + var isString = ( typeof scriptUrl == 'string' ); + + if ( isString ) + scriptUrl = [ scriptUrl ]; + + if ( !scope ) + scope = CKEDITOR; + + var scriptCount = scriptUrl.length, + completed = [], + failed = []; + + var doCallback = function( success ) + { + if ( callback ) + { + if ( isString ) + callback.call( scope, success ); + else + callback.call( scope, completed, failed ); + } + }; + + if ( scriptCount === 0 ) + { + doCallback( true ); + return; + } + + var checkLoaded = function( url, success ) + { + ( success ? completed : failed ).push( url ); + + if ( --scriptCount <= 0 ) + { + showBusy && CKEDITOR.document.getDocumentElement().removeStyle( 'cursor' ); + doCallback( success ); + } + }; + + var onLoad = function( url, success ) + { + // Mark this script as loaded. + uniqueScripts[ url ] = 1; + + // Get the list of callback checks waiting for this file. + var waitingInfo = waitingList[ url ]; + delete waitingList[ url ]; + + // Check all callbacks waiting for this file. + for ( var i = 0 ; i < waitingInfo.length ; i++ ) + waitingInfo[ i ]( url, success ); + }; + + var loadScript = function( url ) + { + if ( uniqueScripts[ url ] ) + { + checkLoaded( url, true ); + return; + } + + var waitingInfo = waitingList[ url ] || ( waitingList[ url ] = [] ); + waitingInfo.push( checkLoaded ); + + // Load it only for the first request. + if ( waitingInfo.length > 1 ) + return; + + // Create the <script> element. + var script = new CKEDITOR.dom.element( 'script' ); + script.setAttributes( { + type : 'text/javascript', + src : url } ); + + if ( callback ) + { + if ( CKEDITOR.env.ie ) + { + // FIXME: For IE, we are not able to return false on error (like 404). + + /** @ignore */ + script.$.onreadystatechange = function () + { + if ( script.$.readyState == 'loaded' || script.$.readyState == 'complete' ) + { + script.$.onreadystatechange = null; + onLoad( url, true ); + } + }; + } + else + { + /** @ignore */ + script.$.onload = function() + { + // Some browsers, such as Safari, may call the onLoad function + // immediately. Which will break the loading sequence. (#3661) + setTimeout( function() { onLoad( url, true ); }, 0 ); + }; + + // FIXME: Opera and Safari will not fire onerror. + + /** @ignore */ + script.$.onerror = function() + { + onLoad( url, false ); + }; + } + } + + // Append it to <head>. + script.appendTo( CKEDITOR.document.getHead() ); + + CKEDITOR.fire( 'download', url ); // @Packager.RemoveLine + }; + + showBusy && CKEDITOR.document.getDocumentElement().setStyle( 'cursor', 'wait' ); + for ( var i = 0 ; i < scriptCount ; i++ ) + { + loadScript( scriptUrl[ i ] ); + } + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/skins.js b/htdocs/includes/ckeditor/_source/core/skins.js new file mode 100644 index 0000000000000000000000000000000000000000..f91d45c5fbdbeabb3b6dc8358d72fa9f3a8bb45a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/skins.js @@ -0,0 +1,184 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.skins} object, which is used to + * manage skins loading. + */ + +/** + * Manages skins loading. + * @namespace + * @example + */ +CKEDITOR.skins = (function() +{ + // Holds the list of loaded skins. + var loaded = {}, + paths = {}; + + var loadPart = function( editor, skinName, part, callback ) + { + // Get the skin definition. + var skinDefinition = loaded[ skinName ]; + + if ( !editor.skin ) + { + editor.skin = skinDefinition; + + // Trigger init function if any. + if ( skinDefinition.init ) + skinDefinition.init( editor ); + } + + var appendSkinPath = function( fileNames ) + { + for ( var n = 0 ; n < fileNames.length ; n++ ) + { + fileNames[ n ] = CKEDITOR.getUrl( paths[ skinName ] + fileNames[ n ] ); + } + }; + + function fixCSSTextRelativePath( cssStyleText, baseUrl ) + { + return cssStyleText.replace( /url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g, + function( match, opener, path, closer ) + { + if ( /^\/|^\w?:/.test( path ) ) + return match; + else + return 'url(' + baseUrl + opener + path + closer + ')'; + } ); + } + + // Get the part definition. + part = skinDefinition[ part ]; + var partIsLoaded = !part || !!part._isLoaded; + + // Call the callback immediately if already loaded. + if ( partIsLoaded ) + callback && callback(); + else + { + // Put the callback in a queue. + var pending = part._pending || ( part._pending = [] ); + pending.push( callback ); + + // We may have more than one skin part load request. Just the first + // one must do the loading job. + if ( pending.length > 1 ) + return; + + // Check whether the "css" and "js" properties have been defined + // for that part. + var cssIsLoaded = !part.css || !part.css.length, + jsIsLoaded = !part.js || !part.js.length; + + // This is the function that will trigger the callback calls on + // load. + var checkIsLoaded = function() + { + if ( cssIsLoaded && jsIsLoaded ) + { + // Mark the part as loaded. + part._isLoaded = 1; + + // Call all pending callbacks. + for ( var i = 0 ; i < pending.length ; i++ ) + { + if ( pending[ i ] ) + pending[ i ](); + } + } + }; + + // Load the "css" pieces. + if ( !cssIsLoaded ) + { + var cssPart = part.css; + + if ( CKEDITOR.tools.isArray( cssPart ) ) + { + appendSkinPath( cssPart ); + for ( var c = 0 ; c < cssPart.length ; c++ ) + CKEDITOR.document.appendStyleSheet( cssPart[ c ] ); + } + else + { + cssPart = fixCSSTextRelativePath( + cssPart, CKEDITOR.getUrl( paths[ skinName ] ) ); + // Processing Inline CSS part. + CKEDITOR.document.appendStyleText( cssPart ); + } + + part.css = cssPart; + + cssIsLoaded = 1; + } + + // Load the "js" pieces. + if ( !jsIsLoaded ) + { + appendSkinPath( part.js ); + CKEDITOR.scriptLoader.load( part.js, function() + { + jsIsLoaded = 1; + checkIsLoaded(); + }); + } + + // We may have nothing to load, so check it immediately. + checkIsLoaded(); + } + }; + + return /** @lends CKEDITOR.skins */ { + + /** + * Registers a skin definition. + * @param {String} skinName The skin name. + * @param {Object} skinDefinition The skin definition. + * @example + */ + add : function( skinName, skinDefinition ) + { + loaded[ skinName ] = skinDefinition; + + skinDefinition.skinPath = paths[ skinName ] + || ( paths[ skinName ] = + CKEDITOR.getUrl( + '_source/' + // @Packager.RemoveLine + 'skins/' + skinName + '/' ) ); + }, + + /** + * Loads a skin part. Skins are defined in parts, which are basically + * separated CSS files. This function is mainly used by the core code and + * should not have much use out of it. + * @param {String} skinName The name of the skin to be loaded. + * @param {String} skinPart The skin part to be loaded. Common skin parts + * are "editor" and "dialog". + * @param {Function} [callback] A function to be called once the skin + * part files are loaded. + * @example + */ + load : function( editor, skinPart, callback ) + { + var skinName = editor.skinName, + skinPath = editor.skinPath; + + if ( loaded[ skinName ] ) + loadPart( editor, skinName, skinPart, callback ); + else + { + paths[ skinName ] = skinPath; + CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( skinPath + 'skin.js' ), function() + { + loadPart( editor, skinName, skinPart, callback ); + }); + } + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/core/themes.js b/htdocs/includes/ckeditor/_source/core/themes.js new file mode 100644 index 0000000000000000000000000000000000000000..0ac89526c8a2d5602cf681b3ccb6b9a1eb557de4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/themes.js @@ -0,0 +1,19 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.themes} object, which is used to + * manage themes registration and loading. + */ + +/** + * Manages themes registration and loading. + * @namespace + * @augments CKEDITOR.resourceManager + * @example + */ +CKEDITOR.themes = new CKEDITOR.resourceManager( + '_source/'+ // @Packager.RemoveLine + 'themes/', 'theme' ); diff --git a/htdocs/includes/ckeditor/_source/core/tools.js b/htdocs/includes/ckeditor/_source/core/tools.js new file mode 100644 index 0000000000000000000000000000000000000000..148c588caebf3a87042d6902415c568c766568fa --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/tools.js @@ -0,0 +1,763 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.tools} object, which contains + * utility functions. + */ + +(function() +{ + var functions = []; + + CKEDITOR.on( 'reset', function() + { + functions = []; + }); + + /** + * Utility functions. + * @namespace + * @example + */ + CKEDITOR.tools = + { + /** + * Compare the elements of two arrays. + * @param {Array} arrayA An array to be compared. + * @param {Array} arrayB The other array to be compared. + * @returns {Boolean} "true" is the arrays have the same lenght and + * their elements match. + * @example + * var a = [ 1, 'a', 3 ]; + * var b = [ 1, 3, 'a' ]; + * var c = [ 1, 'a', 3 ]; + * var d = [ 1, 'a', 3, 4 ]; + * + * alert( CKEDITOR.tools.arrayCompare( a, b ) ); // false + * alert( CKEDITOR.tools.arrayCompare( a, c ) ); // true + * alert( CKEDITOR.tools.arrayCompare( a, d ) ); // false + */ + arrayCompare : function( arrayA, arrayB ) + { + if ( !arrayA && !arrayB ) + return true; + + if ( !arrayA || !arrayB || arrayA.length != arrayB.length ) + return false; + + for ( var i = 0 ; i < arrayA.length ; i++ ) + { + if ( arrayA[ i ] != arrayB[ i ] ) + return false; + } + + return true; + }, + + /** + * Creates a deep copy of an object. + * Attention: there is no support for recursive references. + * @param {Object} object The object to be cloned. + * @returns {Object} The object clone. + * @example + * var obj = + * { + * name : 'John', + * cars : + * { + * Mercedes : { color : 'blue' }, + * Porsche : { color : 'red' } + * } + * }; + * var clone = CKEDITOR.tools.clone( obj ); + * clone.name = 'Paul'; + * clone.cars.Porsche.color = 'silver'; + * alert( obj.name ); // John + * alert( clone.name ); // Paul + * alert( obj.cars.Porsche.color ); // red + * alert( clone.cars.Porsche.color ); // silver + */ + clone : function( obj ) + { + var clone; + + // Array. + if ( obj && ( obj instanceof Array ) ) + { + clone = []; + + for ( var i = 0 ; i < obj.length ; i++ ) + clone[ i ] = this.clone( obj[ i ] ); + + return clone; + } + + // "Static" types. + if ( obj === null + || ( typeof( obj ) != 'object' ) + || ( obj instanceof String ) + || ( obj instanceof Number ) + || ( obj instanceof Boolean ) + || ( obj instanceof Date ) + || ( obj instanceof RegExp) ) + { + return obj; + } + + // Objects. + clone = new obj.constructor(); + + for ( var propertyName in obj ) + { + var property = obj[ propertyName ]; + clone[ propertyName ] = this.clone( property ); + } + + return clone; + }, + + /** + * Turn the first letter of string to upper-case. + * @param {String} str + */ + capitalize: function( str ) + { + return str.charAt( 0 ).toUpperCase() + str.substring( 1 ).toLowerCase(); + }, + + /** + * Copy the properties from one object to another. By default, properties + * already present in the target object <strong>are not</strong> overwritten. + * @param {Object} target The object to be extended. + * @param {Object} source[,souce(n)] The objects from which copy + * properties. Any number of objects can be passed to this function. + * @param {Boolean} [overwrite] If 'true' is specified it indicates that + * properties already present in the target object could be + * overwritten by subsequent objects. + * @param {Object} [properties] Only properties within the specified names + * list will be received from the source object. + * @returns {Object} the extended object (target). + * @example + * // Create the sample object. + * var myObject = + * { + * prop1 : true + * }; + * + * // Extend the above object with two properties. + * CKEDITOR.tools.extend( myObject, + * { + * prop2 : true, + * prop3 : true + * } ); + * + * // Alert "prop1", "prop2" and "prop3". + * for ( var p in myObject ) + * alert( p ); + */ + extend : function( target ) + { + var argsLength = arguments.length, + overwrite, propertiesList; + + if ( typeof ( overwrite = arguments[ argsLength - 1 ] ) == 'boolean') + argsLength--; + else if ( typeof ( overwrite = arguments[ argsLength - 2 ] ) == 'boolean' ) + { + propertiesList = arguments [ argsLength -1 ]; + argsLength-=2; + } + for ( var i = 1 ; i < argsLength ; i++ ) + { + var source = arguments[ i ]; + for ( var propertyName in source ) + { + // Only copy existed fields if in overwrite mode. + if ( overwrite === true || target[ propertyName ] == undefined ) + { + // Only copy specified fields if list is provided. + if ( !propertiesList || ( propertyName in propertiesList ) ) + target[ propertyName ] = source[ propertyName ]; + + } + } + } + + return target; + }, + + /** + * Creates an object which is an instance of a class which prototype is a + * predefined object. All properties defined in the source object are + * automatically inherited by the resulting object, including future + * changes to it. + * @param {Object} source The source object to be used as the prototype for + * the final object. + * @returns {Object} The resulting copy. + */ + prototypedCopy : function( source ) + { + var copy = function() + {}; + copy.prototype = source; + return new copy(); + }, + + /** + * Checks if an object is an Array. + * @param {Object} object The object to be checked. + * @type Boolean + * @returns <i>true</i> if the object is an Array, otherwise <i>false</i>. + * @example + * alert( CKEDITOR.tools.isArray( [] ) ); // "true" + * alert( CKEDITOR.tools.isArray( 'Test' ) ); // "false" + */ + isArray : function( object ) + { + return ( !!object && object instanceof Array ); + }, + + /** + * Whether the object contains no properties of it's own. + * @param object + */ + isEmpty : function ( object ) + { + for ( var i in object ) + { + if ( object.hasOwnProperty( i ) ) + return false; + } + return true; + }, + + /** + * Transforms a CSS property name to its relative DOM style name. + * @param {String} cssName The CSS property name. + * @returns {String} The transformed name. + * @example + * alert( CKEDITOR.tools.cssStyleToDomStyle( 'background-color' ) ); // "backgroundColor" + * alert( CKEDITOR.tools.cssStyleToDomStyle( 'float' ) ); // "cssFloat" + */ + cssStyleToDomStyle : ( function() + { + var test = document.createElement( 'div' ).style; + + var cssFloat = ( typeof test.cssFloat != 'undefined' ) ? 'cssFloat' + : ( typeof test.styleFloat != 'undefined' ) ? 'styleFloat' + : 'float'; + + return function( cssName ) + { + if ( cssName == 'float' ) + return cssFloat; + else + { + return cssName.replace( /-./g, function( match ) + { + return match.substr( 1 ).toUpperCase(); + }); + } + }; + } )(), + + /** + * Build the HTML snippet of a set of <style>/<link>. + * @param css {String|Array} Each of which are url (absolute) of a CSS file or + * a trunk of style text. + */ + buildStyleHtml : function ( css ) + { + css = [].concat( css ); + var item, retval = []; + for ( var i = 0; i < css.length; i++ ) + { + item = css[ i ]; + // Is CSS style text ? + if ( /@import|[{}]/.test(item) ) + retval.push('<style>' + item + '</style>'); + else + retval.push('<link type="text/css" rel=stylesheet href="' + item + '">'); + } + return retval.join( '' ); + }, + + /** + * Replace special HTML characters in a string with their relative HTML + * entity values. + * @param {String} text The string to be encoded. + * @returns {String} The encode string. + * @example + * alert( CKEDITOR.tools.htmlEncode( 'A > B & C < D' ) ); // "A &gt; B &amp; C &lt; D" + */ + htmlEncode : function( text ) + { + var standard = function( text ) + { + var span = new CKEDITOR.dom.element( 'span' ); + span.setText( text ); + return span.getHtml(); + }; + + var fix1 = ( standard( '\n' ).toLowerCase() == '<br>' ) ? + function( text ) + { + // #3874 IE and Safari encode line-break into <br> + return standard( text ).replace( /<br>/gi, '\n' ); + } : + standard; + + var fix2 = ( standard( '>' ) == '>' ) ? + function( text ) + { + // WebKit does't encode the ">" character, which makes sense, but + // it's different than other browsers. + return fix1( text ).replace( />/g, '>' ); + } : + fix1; + + var fix3 = ( standard( ' ' ) == ' ' ) ? + function( text ) + { + // #3785 IE8 changes spaces (>= 2) to + return fix2( text ).replace( / /g, ' ' ); + } : + fix2; + + this.htmlEncode = fix3; + + return this.htmlEncode( text ); + }, + + /** + * Replace special HTML characters in HTMLElement's attribute with their relative HTML entity values. + * @param {String} The attribute's value to be encoded. + * @returns {String} The encode value. + * @example + * element.setAttribute( 'title', '<a " b >' ); + * alert( CKEDITOR.tools.htmlEncodeAttr( element.getAttribute( 'title' ) ); // ">a " b <" + */ + htmlEncodeAttr : function( text ) + { + return text.replace( /"/g, '"' ).replace( /</g, '<' ).replace( />/g, '>' ); + }, + + /** + * Gets a unique number for this CKEDITOR execution session. It returns + * progressive numbers starting at 1. + * @function + * @returns {Number} A unique number. + * @example + * alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "1" (e.g.) + * alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "2" + */ + getNextNumber : (function() + { + var last = 0; + return function() + { + return ++last; + }; + })(), + + /** + * Gets a unique ID for CKEditor's interface elements. It returns a + * string with the "cke_" prefix and a progressive number. + * @function + * @returns {String} A unique ID. + * @example + * alert( CKEDITOR.tools.<b>getNextId()</b> ); // "cke_1" (e.g.) + * alert( CKEDITOR.tools.<b>getNextId()</b> ); // "cke_2" + */ + getNextId : function() + { + return 'cke_' + this.getNextNumber(); + }, + + /** + * Creates a function override. + * @param {Function} originalFunction The function to be overridden. + * @param {Function} functionBuilder A function that returns the new + * function. The original function reference will be passed to this + * function. + * @returns {Function} The new function. + * @example + * var example = + * { + * myFunction : function( name ) + * { + * alert( 'Name: ' + name ); + * } + * }; + * + * example.myFunction = CKEDITOR.tools.override( example.myFunction, function( myFunctionOriginal ) + * { + * return function( name ) + * { + * alert( 'Override Name: ' + name ); + * myFunctionOriginal.call( this, name ); + * }; + * }); + */ + override : function( originalFunction, functionBuilder ) + { + return functionBuilder( originalFunction ); + }, + + /** + * Executes a function after specified delay. + * @param {Function} func The function to be executed. + * @param {Number} [milliseconds] The amount of time (millisecods) to wait + * to fire the function execution. Defaults to zero. + * @param {Object} [scope] The object to hold the function execution scope + * (the "this" object). By default the "window" object. + * @param {Object|Array} [args] A single object, or an array of objects, to + * pass as arguments to the function. + * @param {Object} [ownerWindow] The window that will be used to set the + * timeout. By default the current "window". + * @returns {Object} A value that can be used to cancel the function execution. + * @example + * CKEDITOR.tools.<b>setTimeout( + * function() + * { + * alert( 'Executed after 2 seconds' ); + * }, + * 2000 )</b>; + */ + setTimeout : function( func, milliseconds, scope, args, ownerWindow ) + { + if ( !ownerWindow ) + ownerWindow = window; + + if ( !scope ) + scope = ownerWindow; + + return ownerWindow.setTimeout( + function() + { + if ( args ) + func.apply( scope, [].concat( args ) ) ; + else + func.apply( scope ) ; + }, + milliseconds || 0 ); + }, + + /** + * Remove spaces from the start and the end of a string. The following + * characters are removed: space, tab, line break, line feed. + * @function + * @param {String} str The text from which remove the spaces. + * @returns {String} The modified string without the boundary spaces. + * @example + * alert( CKEDITOR.tools.trim( ' example ' ); // "example" + */ + trim : (function() + { + // We are not using \s because we don't want "non-breaking spaces" to be caught. + var trimRegex = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g; + return function( str ) + { + return str.replace( trimRegex, '' ) ; + }; + })(), + + /** + * Remove spaces from the start (left) of a string. The following + * characters are removed: space, tab, line break, line feed. + * @function + * @param {String} str The text from which remove the spaces. + * @returns {String} The modified string excluding the removed spaces. + * @example + * alert( CKEDITOR.tools.ltrim( ' example ' ); // "example " + */ + ltrim : (function() + { + // We are not using \s because we don't want "non-breaking spaces" to be caught. + var trimRegex = /^[ \t\n\r]+/g; + return function( str ) + { + return str.replace( trimRegex, '' ) ; + }; + })(), + + /** + * Remove spaces from the end (right) of a string. The following + * characters are removed: space, tab, line break, line feed. + * @function + * @param {String} str The text from which remove the spaces. + * @returns {String} The modified string excluding the removed spaces. + * @example + * alert( CKEDITOR.tools.ltrim( ' example ' ); // " example" + */ + rtrim : (function() + { + // We are not using \s because we don't want "non-breaking spaces" to be caught. + var trimRegex = /[ \t\n\r]+$/g; + return function( str ) + { + return str.replace( trimRegex, '' ) ; + }; + })(), + + /** + * Returns the index of an element in an array. + * @param {Array} array The array to be searched. + * @param {Object} entry The element to be found. + * @returns {Number} The (zero based) index of the first entry that matches + * the entry, or -1 if not found. + * @example + * var letters = [ 'a', 'b', 0, 'c', false ]; + * alert( CKEDITOR.tools.indexOf( letters, '0' ) ); "-1" because 0 !== '0' + * alert( CKEDITOR.tools.indexOf( letters, false ) ); "4" because 0 !== false + */ + indexOf : + // #2514: We should try to use Array.indexOf if it does exist. + ( Array.prototype.indexOf ) ? + function( array, entry ) + { + return array.indexOf( entry ); + } + : + function( array, entry ) + { + for ( var i = 0, len = array.length ; i < len ; i++ ) + { + if ( array[ i ] === entry ) + return i; + } + return -1; + }, + + /** + * Creates a function that will always execute in the context of a + * specified object. + * @param {Function} func The function to be executed. + * @param {Object} obj The object to which bind the execution context. + * @returns {Function} The function that can be used to execute the + * "func" function in the context of "obj". + * @example + * var obj = { text : 'My Object' }; + * + * function alertText() + * { + * alert( this.text ); + * } + * + * var newFunc = <b>CKEDITOR.tools.bind( alertText, obj )</b>; + * newFunc(); // Alerts "My Object". + */ + bind : function( func, obj ) + { + return function() { return func.apply( obj, arguments ); }; + }, + + /** + * Class creation based on prototype inheritance, with supports of the + * following features: + * <ul> + * <li> Static fields </li> + * <li> Private fields </li> + * <li> Public (prototype) fields </li> + * <li> Chainable base class constructor </li> + * </ul> + * @param {Object} definition The class definition object. + * @returns {Function} A class-like JavaScript function. + */ + createClass : function( definition ) + { + var $ = definition.$, + baseClass = definition.base, + privates = definition.privates || definition._, + proto = definition.proto, + statics = definition.statics; + + if ( privates ) + { + var originalConstructor = $; + $ = function() + { + // Create (and get) the private namespace. + var _ = this._ || ( this._ = {} ); + + // Make some magic so "this" will refer to the main + // instance when coding private functions. + for ( var privateName in privates ) + { + var priv = privates[ privateName ]; + + _[ privateName ] = + ( typeof priv == 'function' ) ? CKEDITOR.tools.bind( priv, this ) : priv; + } + + originalConstructor.apply( this, arguments ); + }; + } + + if ( baseClass ) + { + $.prototype = this.prototypedCopy( baseClass.prototype ); + $.prototype.constructor = $; + $.prototype.base = function() + { + this.base = baseClass.prototype.base; + baseClass.apply( this, arguments ); + this.base = arguments.callee; + }; + } + + if ( proto ) + this.extend( $.prototype, proto, true ); + + if ( statics ) + this.extend( $, statics, true ); + + return $; + }, + + /** + * Creates a function reference that can be called later using + * CKEDITOR.tools.callFunction. This approach is specially useful to + * make DOM attribute function calls to JavaScript defined functions. + * @param {Function} fn The function to be executed on call. + * @param {Object} [scope] The object to have the context on "fn" execution. + * @returns {Number} A unique reference to be used in conjuction with + * CKEDITOR.tools.callFunction. + * @example + * var ref = <b>CKEDITOR.tools.addFunction</b>( + * function() + * { + * alert( 'Hello!'); + * }); + * CKEDITOR.tools.callFunction( ref ); // Hello! + */ + addFunction : function( fn, scope ) + { + return functions.push( function() + { + return fn.apply( scope || this, arguments ); + }) - 1; + }, + + /** + * Removes the function reference created with {@see CKEDITOR.tools.addFunction}. + * @param {Number} ref The function reference created with + * CKEDITOR.tools.addFunction. + */ + removeFunction : function( ref ) + { + functions[ ref ] = null; + }, + + /** + * Executes a function based on the reference created with + * CKEDITOR.tools.addFunction. + * @param {Number} ref The function reference created with + * CKEDITOR.tools.addFunction. + * @param {[Any,[Any,...]} params Any number of parameters to be passed + * to the executed function. + * @returns {Any} The return value of the function. + * @example + * var ref = CKEDITOR.tools.addFunction( + * function() + * { + * alert( 'Hello!'); + * }); + * <b>CKEDITOR.tools.callFunction( ref )</b>; // Hello! + */ + callFunction : function( ref ) + { + var fn = functions[ ref ]; + return fn && fn.apply( window, Array.prototype.slice.call( arguments, 1 ) ); + }, + + /** + * Append the 'px' length unit to the size if it's missing. + * @param length + */ + cssLength : (function() + { + return function( length ) + { + return length + ( !length || isNaN( Number( length ) ) ? '' : 'px' ); + }; + })(), + + /** + * Convert the specified CSS length value to the calculated pixel length inside this page. + * <strong>Note:</strong> Percentage based value is left intact. + * @param {String} cssLength CSS length value. + */ + convertToPx : ( function () + { + var calculator; + + return function( cssLength ) + { + if ( !calculator ) + { + calculator = CKEDITOR.dom.element.createFromHtml( + '<div style="position:absolute;left:-9999px;' + + 'top:-9999px;margin:0px;padding:0px;border:0px;"' + + '></div>', CKEDITOR.document ); + CKEDITOR.document.getBody().append( calculator ); + } + + if ( !(/%$/).test( cssLength ) ) + { + calculator.setStyle( 'width', cssLength ); + return calculator.$.clientWidth; + } + + return cssLength; + }; + } )(), + + /** + * String specified by {@param str} repeats {@param times} times. + * @param str + * @param times + */ + repeat : function( str, times ) + { + return new Array( times + 1 ).join( str ); + }, + + /** + * Return the first successfully executed function's return value that + * doesn't throw any exception. + */ + tryThese : function() + { + var returnValue; + for ( var i = 0, length = arguments.length; i < length; i++ ) + { + var lambda = arguments[i]; + try + { + returnValue = lambda(); + break; + } + catch (e) {} + } + return returnValue; + }, + + /** + * Generate a combined key from a series of params. + * @param {String} subKey One or more string used as sub keys. + * @example + * var key = CKEDITOR.tools.genKey( 'key1', 'key2', 'key3' ); + * alert( key ); // "key1-key2-key3". + */ + genKey : function() + { + return Array.prototype.slice.call( arguments ).join( '-' ); + } + }; +})(); + +// PACKAGER_RENAME( CKEDITOR.tools ) diff --git a/htdocs/includes/ckeditor/_source/core/ui.js b/htdocs/includes/ckeditor/_source/core/ui.js new file mode 100644 index 0000000000000000000000000000000000000000..085815c01b2106512f560f4f3d48057a26eb08ac --- /dev/null +++ b/htdocs/includes/ckeditor/_source/core/ui.js @@ -0,0 +1,128 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Contains UI features related to an editor instance. + * @constructor + * @param {CKEDITOR.editor} editor The editor instance. + * @example + */ +CKEDITOR.ui = function( editor ) +{ + if ( editor.ui ) + return editor.ui; + + /** + * Object used to hold private stuff. + * @private + */ + this._ = + { + handlers : {}, + items : {}, + editor : editor + }; + + return this; +}; + +// PACKAGER_RENAME( CKEDITOR.ui ) + +CKEDITOR.ui.prototype = +{ + /** + * Adds a UI item to the items collection. These items can be later used in + * the interface. + * @param {String} name The UI item name. + * @param {Object} type The item type. + * @param {Object} definition The item definition. The properties of this + * object depend on the item type. + * @example + * // Add a new button named "MyBold". + * editorInstance.ui.add( 'MyBold', CKEDITOR.UI_BUTTON, + * { + * label : 'My Bold', + * command : 'bold' + * }); + */ + add : function( name, type, definition ) + { + this._.items[ name ] = + { + type : type, + // The name of {@link CKEDITOR.command} which associate with this UI. + command : definition.command || null, + args : Array.prototype.slice.call( arguments, 2 ) + }; + }, + + /** + * Gets a UI object. + * @param {String} name The UI item hame. + * @example + */ + create : function( name ) + { + var item = this._.items[ name ], + handler = item && this._.handlers[ item.type ], + command = item && item.command && this._.editor.getCommand( item.command ); + + var result = handler && handler.create.apply( this, item.args ); + + // Allow overrides from skin ui definitions.. + item && ( result = CKEDITOR.tools.extend( result, this._.editor.skin[ item.type ], true ) ); + + // Add reference inside command object. + if ( command ) + command.uiItems.push( result ); + + return result; + }, + + /** + * Adds a handler for a UI item type. The handler is responsible for + * transforming UI item definitions in UI objects. + * @param {Object} type The item type. + * @param {Object} handler The handler definition. + * @example + */ + addHandler : function( type, handler ) + { + this._.handlers[ type ] = handler; + } +}; + +CKEDITOR.event.implementOn( CKEDITOR.ui ); + +/** + * (Virtual Class) Do not call this constructor. This class is not really part + * of the API. It just illustrates the features of hanlder objects to be + * passed to the {@link CKEDITOR.ui.prototype.addHandler} function. + * @name CKEDITOR.ui.handlerDefinition + * @constructor + * @example + */ + + /** + * Transforms an item definition into an UI item object. + * @name CKEDITOR.handlerDefinition.prototype.create + * @function + * @param {Object} definition The item definition. + * @example + * editorInstance.ui.addHandler( CKEDITOR.UI_BUTTON, + * { + * create : function( definition ) + * { + * return new CKEDITOR.ui.button( definition ); + * } + * }); + */ + +/** + * Internal event fired when a new UI element is ready + * @name CKEDITOR.ui#ready + * @event + * @param {Object} element The new element + */ diff --git a/htdocs/includes/ckeditor/_source/lang/_languages.js b/htdocs/includes/ckeditor/_source/lang/_languages.js new file mode 100644 index 0000000000000000000000000000000000000000..bb882af91824877b64e55eed25b4cef0b2e65418 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/_languages.js @@ -0,0 +1,84 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +var CKEDITOR_LANGS = (function() +{ + var langs = + { + af : 'Afrikaans', + ar : 'Arabic', + bg : 'Bulgarian', + bn : 'Bengali/Bangla', + bs : 'Bosnian', + ca : 'Catalan', + cs : 'Czech', + cy : 'Welsh', + da : 'Danish', + de : 'German', + el : 'Greek', + en : 'English', + 'en-au' : 'English (Australia)', + 'en-ca' : 'English (Canadian)', + 'en-gb' : 'English (United Kingdom)', + eo : 'Esperanto', + es : 'Spanish', + et : 'Estonian', + eu : 'Basque', + fa : 'Persian', + fi : 'Finnish', + fo : 'Faroese', + fr : 'French', + 'fr-ca' : 'French (Canada)', + gl : 'Galician', + gu : 'Gujarati', + he : 'Hebrew', + hi : 'Hindi', + hr : 'Croatian', + hu : 'Hungarian', + is : 'Icelandic', + it : 'Italian', + ja : 'Japanese', + ka : 'Georgian', + km : 'Khmer', + ko : 'Korean', + lt : 'Lithuanian', + lv : 'Latvian', + mn : 'Mongolian', + ms : 'Malay', + nb : 'Norwegian Bokmal', + nl : 'Dutch', + no : 'Norwegian', + pl : 'Polish', + pt : 'Portuguese (Portugal)', + 'pt-br' : 'Portuguese (Brazil)', + ro : 'Romanian', + ru : 'Russian', + sk : 'Slovak', + sl : 'Slovenian', + sr : 'Serbian (Cyrillic)', + 'sr-latn' : 'Serbian (Latin)', + sv : 'Swedish', + th : 'Thai', + tr : 'Turkish', + uk : 'Ukrainian', + vi : 'Vietnamese', + zh : 'Chinese Traditional', + 'zh-cn' : 'Chinese Simplified' + }; + + var langsArray = []; + + for ( var code in langs ) + { + langsArray.push( { code : code, name : langs[ code ] } ); + } + + langsArray.sort( function( a, b ) + { + return ( a.name < b.name ) ? -1 : 1; + }); + + return langsArray; +})(); diff --git a/htdocs/includes/ckeditor/_source/lang/_translationstatus.txt b/htdocs/includes/ckeditor/_source/lang/_translationstatus.txt new file mode 100644 index 0000000000000000000000000000000000000000..467a73331e0a8ba6fcdc8cf2181abaef5d547fcd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/_translationstatus.txt @@ -0,0 +1,64 @@ +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license + +af.js Found: 548 Missing: 29 +ar.js Found: 470 Missing: 107 +bg.js Found: 394 Missing: 183 +bn.js Found: 292 Missing: 285 +bs.js Found: 175 Missing: 402 +ca.js Found: 549 Missing: 28 +cs.js Found: 577 Missing: 0 +cy.js Found: 575 Missing: 2 +da.js Found: 575 Missing: 2 +de.js Found: 575 Missing: 2 +el.js Found: 391 Missing: 186 +en-au.js Found: 347 Missing: 230 +en-ca.js Found: 345 Missing: 232 +en-gb.js Found: 517 Missing: 60 +eo.js Found: 577 Missing: 0 +es.js Found: 575 Missing: 2 +et.js Found: 577 Missing: 0 +eu.js Found: 417 Missing: 160 +fa.js Found: 575 Missing: 2 +fi.js Found: 575 Missing: 2 +fo.js Found: 575 Missing: 2 +fr-ca.js Found: 319 Missing: 258 +fr.js Found: 575 Missing: 2 +gl.js Found: 292 Missing: 285 +gu.js Found: 575 Missing: 2 +he.js Found: 575 Missing: 2 +hi.js Found: 327 Missing: 250 +hr.js Found: 575 Missing: 2 +hu.js Found: 572 Missing: 5 +id.js Found: 1 Missing: 576 +is.js Found: 326 Missing: 251 +it.js Found: 577 Missing: 0 +ja.js Found: 493 Missing: 84 +ka.js Found: 568 Missing: 9 +km.js Found: 286 Missing: 291 +ko.js Found: 304 Missing: 273 +lt.js Found: 575 Missing: 2 +lv.js Found: 294 Missing: 283 +mk.js Found: 0 Missing: 577 +mn.js Found: 320 Missing: 257 +ms.js Found: 276 Missing: 301 +nb.js Found: 577 Missing: 0 +nl.js Found: 575 Missing: 2 +no.js Found: 577 Missing: 0 +pl.js Found: 575 Missing: 2 +pt-br.js Found: 577 Missing: 0 +pt.js Found: 326 Missing: 251 +ro.js Found: 432 Missing: 145 +ru.js Found: 575 Missing: 2 +sk.js Found: 364 Missing: 213 +sl.js Found: 426 Missing: 151 +sr-latn.js Found: 287 Missing: 290 +sr.js Found: 286 Missing: 291 +sv.js Found: 550 Missing: 27 +th.js Found: 298 Missing: 279 +tr.js Found: 575 Missing: 2 +ug.js Found: 572 Missing: 5 +uk.js Found: 575 Missing: 2 +vi.js Found: 577 Missing: 0 +zh-cn.js Found: 577 Missing: 0 +zh.js Found: 433 Missing: 144 diff --git a/htdocs/includes/ckeditor/_source/lang/af.js b/htdocs/includes/ckeditor/_source/lang/af.js new file mode 100644 index 0000000000000000000000000000000000000000..9b79693103445083a354f139c2dae64b4c0f3599 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/af.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Afrikaans language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['af'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Teksverwerker', + + // Toolbar buttons without dialogs. + source : 'Bron', + newPage : 'Nuwe bladsy', + save : 'Bewaar', + preview : 'Voorbeeld', + cut : 'Knip', + copy : 'Kopiëer', + paste : 'Plak', + print : 'Druk', + underline : 'Onderstreep', + bold : 'Vet', + italic : 'Skuins', + selectAll : 'Selekteer alles', + removeFormat : 'Verwyder opmaak', + strike : 'Deurstreep', + subscript : 'Onderskrif', + superscript : 'Bo-skrif', + horizontalrule : 'Horisontale lyn invoeg', + pagebreak : 'Bladsy-einde invoeg', + pagebreakAlt : 'Bladsy-einde', + unlink : 'Verwyder skakel', + undo : 'Ontdoen', + redo : 'Oordoen', + + // Common messages and labels. + common : + { + browseServer : 'Blaai op bediener', + url : 'URL', + protocol : 'Protokol', + upload : 'Oplaai', + uploadSubmit : 'Stuur na bediener', + image : 'Afbeelding', + flash : 'Flash', + form : 'Vorm', + checkbox : 'Merkhokkie', + radio : 'Radioknoppie', + textField : 'Teksveld', + textarea : 'Teks-area', + hiddenField : 'Blinde veld', + button : 'Knop', + select : 'Keuseveld', + imageButton : 'Afbeeldingsknop', + notSet : '<geen instelling>', + id : 'Id', + name : 'Naam', + langDir : 'Skryfrigting', + langDirLtr : 'Links na regs (LTR)', + langDirRtl : 'Regs na links (RTL)', + langCode : 'Taalkode', + longDescr : 'Lang beskrywing URL', + cssClass : 'CSS klasse', + advisoryTitle : 'Aanbevole titel', + cssStyle : 'Styl', + ok : 'OK', + cancel : 'Kanselleer', + close : 'Sluit', + preview : 'Voorbeeld', + generalTab : 'Algemeen', + advancedTab : 'Gevorderd', + validateNumberFailed : 'Hierdie waarde is nie \'n getal nie.', + confirmNewPage : 'Alle wysiginge sal verlore gaan. Is u seker dat u \'n nuwe bladsy wil laai?', + confirmCancel : 'Sommige opsies is gewysig. Is u seker dat u hierdie dialoogvenster wil sluit?', + options : 'Opsies', + target : 'Doel', + targetNew : 'Nuwe venster (_blank)', + targetTop : 'Boonste venster (_top)', + targetSelf : 'Selfde venster (_self)', + targetParent : 'Oorspronklike venster (_parent)', + langDirLTR : 'Links na Regs (LTR)', + langDirRTL : 'Regs na Links (RTL)', + styles : 'Styl', + cssClasses : 'CSS klasse', + width : 'Breedte', + height : 'Hoogte', + align : 'Oplyn', + alignLeft : 'Links', + alignRight : 'Regs', + alignCenter : 'Sentreer', + alignTop : 'Bo', + alignMiddle : 'Middel', + alignBottom : 'Onder', + invalidHeight : 'Hoogte moet \'n getal wees', + invalidWidth : 'Breedte moet \'n getal wees.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, nie beskikbaar nie</span>' + }, + + contextmenu : + { + options : 'Konteks Spyskaart-opsies' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Voeg spesiaale karakter in', + title : 'Kies spesiale karakter', + options : 'Spesiale karakter-opsies' + }, + + // Link dialog. + link : + { + toolbar : 'Skakel invoeg/wysig', + other : '<ander>', + menu : 'Wysig skakel', + title : 'Skakel', + info : 'Skakel informasie', + target : 'Doel', + upload : 'Oplaai', + advanced : 'Gevorderd', + type : 'Skakelsoort', + toUrl : 'URL', + toAnchor : 'Anker in bladsy', + toEmail : 'E-pos', + targetFrame : '<raam>', + targetPopup : '<opspringvenster>', + targetFrameName : 'Naam van doelraam', + targetPopupName : 'Naam van opspringvenster', + popupFeatures : 'Eienskappe van opspringvenster', + popupResizable : 'Herskaalbaar', + popupStatusBar : 'Statusbalk', + popupLocationBar: 'Adresbalk', + popupToolbar : 'Werkbalk', + popupMenuBar : 'Spyskaartbalk', + popupFullScreen : 'Volskerm (IE)', + popupScrollBars : 'Skuifbalke', + popupDependent : 'Afhanklik (Netscape)', + popupLeft : 'Posisie links', + popupTop : 'Posisie bo', + id : 'Id', + langDir : 'Skryfrigting', + langDirLTR : 'Links na regs (LTR)', + langDirRTL : 'Regs na links (RTL)', + acccessKey : 'Toegangsleutel', + name : 'Naam', + langCode : 'Taalkode', + tabIndex : 'Tab indeks', + advisoryTitle : 'Aanbevole titel', + advisoryContentType : 'Aanbevole inhoudstipe', + cssClasses : 'CSS klasse', + charset : 'Karakterstel van geskakelde bron', + styles : 'Styl', + rel : 'Relationship', // MISSING + selectAnchor : 'Kies \'n anker', + anchorName : 'Op ankernaam', + anchorId : 'Op element Id', + emailAddress : 'E-posadres', + emailSubject : 'Berig-onderwerp', + emailBody : 'Berig-inhoud', + noAnchors : '(Geen ankers beskikbaar in dokument)', + noUrl : 'Gee die skakel se URL', + noEmail : 'Gee die e-posadres' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anker byvoeg/verander', + menu : 'Anker-eienskappe', + title : 'Anker-eienskappe', + name : 'Ankernaam', + errorName : 'Voltooi die ankernaam asseblief', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Eienskappe van genommerde lys', + bulletedTitle : 'Eienskappe van ongenommerde lys', + type : 'Tipe', + start : 'Begin', + validateStartNumber :'Beginnommer van lys moet \'n heelgetal wees.', + circle : 'Sirkel', + disc : 'Skyf', + square : 'Vierkant', + none : 'Geen', + notset : '<nie ingestel nie>', + armenian : 'Armeense nommering', + georgian : 'Georgiese nommering (an, ban, gan, ens.)', + lowerRoman : 'Romeinse kleinletters (i, ii, iii, iv, v, ens.)', + upperRoman : 'Romeinse hoofletters (I, II, III, IV, V, ens.)', + lowerAlpha : 'Kleinletters (a, b, c, d, e, ens.)', + upperAlpha : 'Hoofletters (A, B, C, D, E, ens.)', + lowerGreek : 'Griekse kleinletters (alpha, beta, gamma, ens.)', + decimal : 'Desimale syfers (1, 2, 3, ens.)', + decimalLeadingZero : 'Desimale syfers met voorloopnul (01, 02, 03, ens.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Soek en vervang', + find : 'Soek', + replace : 'Vervang', + findWhat : 'Soek na:', + replaceWith : 'Vervang met:', + notFoundMsg : 'Teks nie gevind nie.', + findOptions : 'Find Options', // MISSING + matchCase : 'Hoof/kleinletter sensitief', + matchWord : 'Hele woord moet voorkom', + matchCyclic : 'Soek deurlopend', + replaceAll : 'Vervang alles', + replaceSuccessMsg : '%1 voorkoms(te) vervang.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabel', + title : 'Tabel eienskappe', + menu : 'Tabel eienskappe', + deleteTable : 'Verwyder tabel', + rows : 'Rye', + columns : 'Kolomme', + border : 'Randbreedte', + widthPx : 'piksels', + widthPc : 'persent', + widthUnit : 'breedte-eenheid', + cellSpace : 'Sel-afstand', + cellPad : 'Sel-spasie', + caption : 'Naam', + summary : 'Opsomming', + headers : 'Opskrifte', + headersNone : 'Geen', + headersColumn : 'Eerste kolom', + headersRow : 'Eerste ry', + headersBoth : 'Beide ', + invalidRows : 'Aantal rye moet \'n getal groter as 0 wees.', + invalidCols : 'Aantal kolomme moet \'n getal groter as 0 wees.', + invalidBorder : 'Randbreedte moet \'n getal wees.', + invalidWidth : 'Tabelbreedte moet \'n getal wees.', + invalidHeight : 'Tabelhoogte moet \'n getal wees.', + invalidCellSpacing : 'Sel-afstand moet \'n getal wees.', + invalidCellPadding : 'Sel-spasie moet \'n getal wees.', + + cell : + { + menu : 'Sel', + insertBefore : 'Voeg sel in voor', + insertAfter : 'Voeg sel in na', + deleteCell : 'Verwyder sel', + merge : 'Voeg selle saam', + mergeRight : 'Voeg saam na regs', + mergeDown : 'Voeg saam ondertoe', + splitHorizontal : 'Splits sel horisontaal', + splitVertical : 'Splits sel vertikaal', + title : 'Sel eienskappe', + cellType : 'Sel tipe', + rowSpan : 'Omspan rye', + colSpan : 'Omspan kolomme', + wordWrap : 'Woord terugloop', + hAlign : 'Horisontale oplyning', + vAlign : 'Vertikale oplyning', + alignBaseline : 'Basislyn', + bgColor : 'Agtergrondkleur', + borderColor : 'Randkleur', + data : 'Inhoud', + header : 'Opskrif', + yes : 'Ja', + no : 'Nee', + invalidWidth : 'Selbreedte moet \'n getal wees.', + invalidHeight : 'Selhoogte moet \'n getal wees.', + invalidRowSpan : 'Omspan rye moet \'n heelgetal wees.', + invalidColSpan : 'Omspan kolomme moet \'n heelgetal wees.', + chooseColor : 'Kies' + }, + + row : + { + menu : 'Ry', + insertBefore : 'Voeg ry in voor', + insertAfter : 'Voeg ry in na', + deleteRow : 'Verwyder ry' + }, + + column : + { + menu : 'Kolom', + insertBefore : 'Voeg kolom in voor', + insertAfter : 'Voeg kolom in na', + deleteColumn : 'Verwyder kolom' + } + }, + + // Button Dialog. + button : + { + title : 'Knop eienskappe', + text : 'Teks (Waarde)', + type : 'Soort', + typeBtn : 'Knop', + typeSbm : 'Stuur', + typeRst : 'Maak leeg' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Merkhokkie eienskappe', + radioTitle : 'Radioknoppie eienskappe', + value : 'Waarde', + selected : 'Geselekteer' + }, + + // Form Dialog. + form : + { + title : 'Vorm eienskappe', + menu : 'Vorm eienskappe', + action : 'Aksie', + method : 'Metode', + encoding : 'Kodering' + }, + + // Select Field Dialog. + select : + { + title : 'Keuseveld eienskappe', + selectInfo : 'Info', + opAvail : 'Beskikbare opsies', + value : 'Waarde', + size : 'Grootte', + lines : 'Lyne', + chkMulti : 'Laat meer as een keuse toe', + opText : 'Teks', + opValue : 'Waarde', + btnAdd : 'Byvoeg', + btnModify : 'Wysig', + btnUp : 'Op', + btnDown : 'Af', + btnSetValue : 'Stel as geselekteerde waarde', + btnDelete : 'Verwyder' + }, + + // Textarea Dialog. + textarea : + { + title : 'Teks-area eienskappe', + cols : 'Kolomme', + rows : 'Rye' + }, + + // Text Field Dialog. + textfield : + { + title : 'Teksveld eienskappe', + name : 'Naam', + value : 'Waarde', + charWidth : 'Breedte (karakters)', + maxChars : 'Maksimum karakters', + type : 'Soort', + typeText : 'Teks', + typePass : 'Wagwoord' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Verborge veld eienskappe', + name : 'Naam', + value : 'Waarde' + }, + + // Image Dialog. + image : + { + title : 'Afbeelding eienskappe', + titleButton : 'Afbeeldingsknop eienskappe', + menu : 'Afbeelding eienskappe', + infoTab : 'Afbeelding informasie', + btnUpload : 'Stuur na bediener', + upload : 'Oplaai', + alt : 'Alternatiewe teks', + lockRatio : 'Vaste proporsie', + resetSize : 'Herstel grootte', + border : 'Rand', + hSpace : 'HSpasie', + vSpace : 'VSpasie', + alertUrl : 'Gee URL van afbeelding.', + linkTab : 'Skakel', + button2Img : 'Wil u die geselekteerde afbeeldingsknop vervang met \'n eenvoudige afbeelding?', + img2Button : 'Wil u die geselekteerde afbeelding vervang met \'n afbeeldingsknop?', + urlMissing : 'Die URL na die afbeelding ontbreek.', + validateBorder : 'Rand moet \'n heelgetal wees.', + validateHSpace : 'HSpasie moet \'n heelgetal wees.', + validateVSpace : 'VSpasie moet \'n heelgetal wees.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash eienskappe', + propertiesTab : 'Eienskappe', + title : 'Flash eienskappe', + chkPlay : 'Speel outomaties', + chkLoop : 'Herhaal', + chkMenu : 'Flash spyskaart aan', + chkFull : 'Laat volledige skerm toe', + scale : 'Skaal', + scaleAll : 'Wys alles', + scaleNoBorder : 'Geen rand', + scaleFit : 'Presiese pas', + access : 'Skrip toegang', + accessAlways : 'Altyd', + accessSameDomain: 'Selfde domeinnaam', + accessNever : 'Nooit', + alignAbsBottom : 'Absoluut-onder', + alignAbsMiddle : 'Absoluut-middel', + alignBaseline : 'Basislyn', + alignTextTop : 'Teks bo', + quality : 'Kwaliteit', + qualityBest : 'Beste', + qualityHigh : 'Hoog', + qualityAutoHigh : 'Outomaties hoog', + qualityMedium : 'Gemiddeld', + qualityAutoLow : 'Outomaties laag', + qualityLow : 'Laag', + windowModeWindow: 'Venster', + windowModeOpaque: 'Ondeursigtig', + windowModeTransparent : 'Deursigtig', + windowMode : 'Venster modus', + flashvars : 'Veranderlikes vir Flash', + bgcolor : 'Agtergrondkleur', + hSpace : 'HSpasie', + vSpace : 'VSpasie', + validateSrc : 'Voeg die URL in', + validateHSpace : 'HSpasie moet \'n heelgetal wees.', + validateVSpace : 'VSpasie moet \'n heelgetal wees.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Speltoets', + title : 'Speltoetser', + notAvailable : 'Jammer, hierdie diens is nie nou beskikbaar nie.', + errorLoading : 'Fout by inlaai van diens: %s.', + notInDic : 'Nie in woordeboek nie', + changeTo : 'Verander na', + btnIgnore : 'Ignoreer', + btnIgnoreAll : 'Ignoreer alles', + btnReplace : 'Vervang', + btnReplaceAll : 'vervang alles', + btnUndo : 'Ontdoen', + noSuggestions : '- Geen voorstel -', + progress : 'Spelling word getoets...', + noMispell : 'Klaar met speltoets: Geen foute nie', + noChanges : 'Klaar met speltoets: Geen woorde verander nie', + oneChange : 'Klaar met speltoets: Een woord verander', + manyChanges : 'Klaar met speltoets: %1 woorde verander', + ieSpellDownload : 'Speltoetser is nie geïnstalleer nie. Wil u dit nou aflaai?' + }, + + smiley : + { + toolbar : 'Lagbekkie', + title : 'Voeg lagbekkie by', + options : 'Lagbekkie opsies' + }, + + elementsPath : + { + eleLabel : 'Elemente-pad', + eleTitle : '%1 element' + }, + + numberedlist : 'Genommerde lys', + bulletedlist : 'Ongenommerde lys', + indent : 'Vergroot inspring', + outdent : 'Verklein inspring', + + justify : + { + left : 'Links oplyn', + center : 'Sentreer', + right : 'Regs oplyn', + block : 'Uitvul' + }, + + blockquote : 'Sitaatblok', + + clipboard : + { + title : 'Byvoeg', + cutError : 'U blaaier se sekuriteitsinstelling belet die outomatiese knip-aksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+X).', + copyError : 'U blaaier se sekuriteitsinstelling belet die kopiëringsaksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+C).', + pasteMsg : 'Plak die teks in die volgende teks-area met die sleutelbordkombinasie (<STRONG>Ctrl/Cmd+V</STRONG>) en druk <STRONG>OK</STRONG>.', + securityMsg : 'Weens u blaaier se sekuriteitsinstelling is data op die knipbord nie toeganklik nie. U kan dit eers weer in hierdie venster plak.', + pasteArea : 'Plak-area' + }, + + pastefromword : + { + confirmCleanup : 'Die teks wat u wil plak lyk asof dit uit Word gekopiëer is. Wil u dit eers skoonmaak voordat dit geplak word?', + toolbar : 'Plak vanuit Word', + title : 'Plak vanuit Word', + error : 'Die geplakte teks kon nie skoongemaak word nie, weens \'n interne fout' + }, + + pasteText : + { + button : 'Plak as eenvoudige teks', + title : 'Plak as eenvoudige teks' + }, + + templates : + { + button : 'Sjablone', + title : 'Inhoud Sjablone', + options : 'Sjabloon opsies', + insertOption : 'Vervang huidige inhoud', + selectPromptMsg : 'Kies die sjabloon om te gebruik in die redigeerder (huidige inhoud gaan verlore):', + emptyListMsg : '(Geen sjablone gedefineer nie)' + }, + + showBlocks : 'Toon blokke', + + stylesCombo : + { + label : 'Styl', + panelTitle : 'Opmaak style', + panelTitle1 : 'Blok style', + panelTitle2 : 'Inlyn style', + panelTitle3 : 'Objek style' + }, + + format : + { + label : 'Opmaak', + panelTitle : 'Opmaak', + + tag_p : 'Normaal', + tag_pre : 'Opgemaak', + tag_address : 'Adres', + tag_h1 : 'Opskrif 1', + tag_h2 : 'Opskrif 2', + tag_h3 : 'Opskrif 3', + tag_h4 : 'Opskrif 4', + tag_h5 : 'Opskrif 5', + tag_h6 : 'Opskrif 6', + tag_div : 'Normaal (DIV)' + }, + + div : + { + title : 'Skep Div houer', + toolbar : 'Skep Div houer', + cssClassInputLabel : 'CSS klasse', + styleSelectLabel : 'Styl', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Taalkode', + inlineStyleInputLabel : 'Inlyn Styl', + advisoryTitleInputLabel : 'Aanbevole Titel', + langDirLabel : 'Skryfrigting', + langDirLTRLabel : 'Links na regs (LTR)', + langDirRTLLabel : 'Regs na links (RTL)', + edit : 'Wysig Div', + remove : 'Verwyder Div' + }, + + iframe : + { + title : 'IFrame Eienskappe', + toolbar : 'IFrame', + noUrl : 'Gee die iframe URL', + scrolling : 'Skuifbalke aan', + border : 'Wys rand van raam' + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', + panelTitle : 'Fontnaam' + }, + + fontSize : + { + label : 'Grootte', + voiceLabel : 'Fontgrootte', + panelTitle : 'Fontgrootte' + }, + + colorButton : + { + textColorTitle : 'Tekskleur', + bgColorTitle : 'Agtergrondkleur', + panelTitle : 'Kleure', + auto : 'Outomaties', + more : 'Meer Kleure...' + }, + + colors : + { + '000' : 'Swart', + '800000' : 'Meroen', + '8B4513' : 'Sjokoladebruin', + '2F4F4F' : 'Donkerleisteengrys', + '008080' : 'Blougroen', + '000080' : 'Vlootblou', + '4B0082' : 'Indigo', + '696969' : 'Donkergrys', + 'B22222' : 'Rooibaksteen', + 'A52A2A' : 'Bruin', + 'DAA520' : 'Donkergeel', + '006400' : 'Donkergroen', + '40E0D0' : 'Turkoois', + '0000CD' : 'Middelblou', + '800080' : 'Pers', + '808080' : 'Grys', + 'F00' : 'Rooi', + 'FF8C00' : 'Donkeroranje', + 'FFD700' : 'Goud', + '008000' : 'Groen', + '0FF' : 'Siaan', + '00F' : 'Blou', + 'EE82EE' : 'Viooltjieblou', + 'A9A9A9' : 'Donkergrys', + 'FFA07A' : 'Ligsalm', + 'FFA500' : 'Oranje', + 'FFFF00' : 'Geel', + '00FF00' : 'Lemmetjie', + 'AFEEEE' : 'Ligturkoois', + 'ADD8E6' : 'Ligblou', + 'DDA0DD' : 'Pruim', + 'D3D3D3' : 'Liggrys', + 'FFF0F5' : 'Linne', + 'FAEBD7' : 'Ivoor', + 'FFFFE0' : 'Liggeel', + 'F0FFF0' : 'Heuningdou', + 'F0FFFF' : 'Asuur', + 'F0F8FF' : 'Ligte hemelsblou', + 'E6E6FA' : 'Laventel', + 'FFF' : 'Wit' + }, + + scayt : + { + title : 'Speltoets terwyl u tik', + opera_title : 'Nie ondersteun deur Opera nie', + enable : 'SCAYT aan', + disable : 'SCAYT af', + about : 'SCAYT info', + toggle : 'SCAYT wissel aan/af', + options : 'Opsies', + langs : 'Tale', + moreSuggestions : 'Meer voorstelle', + ignore : 'Ignoreer', + ignoreAll : 'Ignoreer alles', + addWord : 'Voeg woord by', + emptyDic : 'Woordeboeknaam mag nie leeg wees nie.', + + optionsTab : 'Opsies', + allCaps : 'Ignoreer woorde in hoofletters', + ignoreDomainNames : 'Ignoreer domeinname', + mixedCase : 'Ignoreer woorde met hoof- en kleinletters', + mixedWithDigits : 'Ignoreer woorde met syfers', + + languagesTab : 'Tale', + + dictionariesTab : 'Woordeboeke', + dic_field_name : 'Naam van woordeboek', + dic_create : 'Skep', + dic_restore : 'Herstel', + dic_delete : 'Verwijder', + dic_rename : 'Hernoem', + dic_info : 'Aanvanklik word die gebruikerswoordeboek in \'n koekie gestoor. Koekies is egter beperk in grootte. Wanneer die gebruikerswoordeboek te groot vir \'n koekie geword het, kan dit op ons bediener gestoor word. Om u persoonlike woordeboek op ons bediener te stoor, gee asb. \'n naam vir u woordeboek. Indien u alreeds \'n gestoorde woordeboek het, tik die naam en kliek op die Herstel knop.', + + aboutTab : 'Info' + }, + + about : + { + title : 'Info oor CKEditor', + dlgTitle : 'Info oor CKEditor', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'Vir lisensie-informasie, besoek asb. ons webwerf:', + copy : 'Kopiereg © $1. Alle regte voorbehou.' + }, + + maximize : 'Maksimaliseer', + minimize : 'Minimaliseer', + + fakeobjects : + { + anchor : 'Anker', + flash : 'Flash animasie', + iframe : 'IFrame', + hiddenfield : 'Verborge veld', + unknown : 'Onbekende objek' + }, + + resize : 'Sleep om te herskaal', + + colordialog : + { + title : 'Kies kleur', + options : 'Kleuropsies', + highlight : 'Aktief', + selected : 'Geselekteer', + clear : 'Herstel' + }, + + toolbarCollapse : 'Verklein werkbalk', + toolbarExpand : 'Vergroot werkbalk', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Skryfrigting van links na regs', + rtl : 'Skryfrigting van regs na links' + }, + + docprops : + { + label : 'Dokument Eienskappe', + title : 'Dokument Eienskappe', + design : 'Design', // MISSING + meta : 'Meta Data', + chooseColor : 'Kies', + other : '<ander>', + docTitle : 'Bladsy Opskrif', + charset : 'Karakterstel Kodeering', + charsetOther : 'Ander Karakterstel Kodeering', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Sentraal Europa', + charsetCT : 'Chinees Traditioneel (Big5)', + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Grieks', + charsetJP : 'Japanees', + charsetKR : 'Koreans', + charsetTR : 'Turks', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Dokument Opskrif Soort', + docTypeOther : 'Ander Dokument Opskrif Soort', + xhtmlDec : 'Voeg XHTML verklaring by', + bgColor : 'Agtergrond kleur', + bgImage : 'Agtergrond Beeld URL', + bgFixed : 'Vasgeklemde Agtergrond', + txtColor : 'Tekskleur', + margin : 'Bladsy Rante', + marginTop : 'Bo', + marginLeft : 'Links', + marginRight : 'Regs', + marginBottom : 'Onder', + metaKeywords : 'Dokument Index Sleutelwoorde(comma verdeelt)', + metaDescription : 'Dokument Beskrywing', + metaAuthor : 'Skrywer', + metaCopyright : 'Kopiereg', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ar.js b/htdocs/includes/ckeditor/_source/lang/ar.js new file mode 100644 index 0000000000000000000000000000000000000000..e04ad55ee70f1d97d687f6e6c25c596adf2dc948 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ar.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Arabic language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ar'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'rtl', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'المصدر', + newPage : 'صفحة جديدة', + save : 'حفظ', + preview : 'معاينة الصفحة', + cut : 'قص', + copy : 'نسخ', + paste : 'لصق', + print : 'طباعة', + underline : 'تسطير', + bold : 'غامق', + italic : 'مائل', + selectAll : 'تحديد الكل', + removeFormat : 'إزالة التنسيقات', + strike : 'يتوسطه خط', + subscript : 'منخفض', + superscript : 'مرتفع', + horizontalrule : 'خط فاصل', + pagebreak : 'إدخال صفحة جديدة', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'إزالة رابط', + undo : 'تراجع', + redo : 'إعادة', + + // Common messages and labels. + common : + { + browseServer : 'تصفح', + url : 'الرابط', + protocol : 'البروتوكول', + upload : 'رفع', + uploadSubmit : 'أرسل', + image : 'صورة', + flash : 'فلاش', + form : 'نموذج', + checkbox : 'خانة إختيار', + radio : 'زر اختيار', + textField : 'مربع نص', + textarea : 'مساحة نصية', + hiddenField : 'إدراج حقل خفي', + button : 'زر ضغط', + select : 'اختار', + imageButton : 'زر صورة', + notSet : '<بدون تحديد>', + id : 'الرقم', + name : 'الاسم', + langDir : 'إتجاه النص', + langDirLtr : 'اليسار لليمين (LTR)', + langDirRtl : 'اليمين لليسار (RTL)', + langCode : 'رمز اللغة', + longDescr : 'الوصف التفصيلى', + cssClass : 'فئات التنسيق', + advisoryTitle : 'عنوان التقرير', + cssStyle : 'نمط', + ok : 'موافق', + cancel : 'إلغاء الأمر', + close : 'أغلق', + preview : 'استعراض', + generalTab : 'عام', + advancedTab : 'متقدم', + validateNumberFailed : 'لايوجد نتيجة', + confirmNewPage : 'ستفقد أي متغييرات اذا لم تقم بحفظها اولا. هل أنت متأكد أنك تريد صفحة جديدة؟', + confirmCancel : 'بعض الخيارات قد تغيرت. هل أنت متأكد من إغلاق مربع النص؟', + options : 'خيارات', + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'العرض', + height : 'الإرتفاع', + align : 'محاذاة', + alignLeft : 'يسار', + alignRight : 'يمين', + alignCenter : 'وسط', + alignTop : 'أعلى', + alignMiddle : 'وسط', + alignBottom : 'أسفل', + invalidHeight : 'الارتفاع يجب أن يكون عدداً.', + invalidWidth : 'العرض يجب أن يكون عدداً.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, غير متاح</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'إدراج خاص.ِ', + title : 'اختر الخواص', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'رابط', + other : '<أخرى>', + menu : 'تحرير رابط', + title : 'إرتباط تشعبي', + info : 'معلومات الرابط', + target : 'هدف الرابط', + upload : 'رفع', + advanced : 'متقدم', + type : 'نوع الربط', + toUrl : 'URL', // MISSING + toAnchor : 'مكان في هذا المستند', + toEmail : 'بريد إلكتروني', + targetFrame : '<إطار>', + targetPopup : '<نافذة منبثقة>', + targetFrameName : 'اسم الإطار المستهدف', + targetPopupName : 'اسم النافذة المنبثقة', + popupFeatures : 'خصائص النافذة المنبثقة', + popupResizable : 'قابلة التشكيل', + popupStatusBar : 'شريط الحالة', + popupLocationBar: 'شريط العنوان', + popupToolbar : 'شريط الأدوات', + popupMenuBar : 'القوائم الرئيسية', + popupFullScreen : 'ملئ الشاشة (IE)', + popupScrollBars : 'أشرطة التمرير', + popupDependent : 'تابع (Netscape)', + popupLeft : 'التمركز لليسار', + popupTop : 'التمركز للأعلى', + id : 'هوية', + langDir : 'إتجاه النص', + langDirLTR : 'اليسار لليمين (LTR)', + langDirRTL : 'اليمين لليسار (RTL)', + acccessKey : 'مفاتيح الإختصار', + name : 'الاسم', + langCode : 'كود النص', + tabIndex : 'الترتيب', + advisoryTitle : 'عنوان التقرير', + advisoryContentType : 'نوع التقرير', + cssClasses : 'فئات التنسيق', + charset : 'ترميز المادة المطلوبة', + styles : 'نمط', + rel : 'Relationship', // MISSING + selectAnchor : 'اختر علامة مرجعية', + anchorName : 'حسب الاسم', + anchorId : 'حسب رقم العنصر', + emailAddress : 'عنوان البريد إلكتروني', + emailSubject : 'موضوع الرسالة', + emailBody : 'محتوى الرسالة', + noAnchors : '(لا توجد علامات مرجعية في هذا المستند)', + noUrl : 'من فضلك أدخل عنوان الموقع الذي يشير إليه الرابط', + noEmail : 'من فضلك أدخل عنوان البريد الإلكتروني' + }, + + // Anchor dialog + anchor : + { + toolbar : 'إشارة مرجعية', + menu : 'تحرير الإشارة المرجعية', + title : 'خصائص الإشارة المرجعية', + name : 'اسم الإشارة المرجعية', + errorName : 'الرجاء كتابة اسم الإشارة المرجعية', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'بحث واستبدال', + find : 'بحث', + replace : 'إستبدال', + findWhat : 'البحث بـ:', + replaceWith : 'إستبدال بـ:', + notFoundMsg : 'لم يتم العثور على النص المحدد.', + findOptions : 'Find Options', // MISSING + matchCase : 'مطابقة حالة الأحرف', + matchWord : 'مطابقة بالكامل', + matchCyclic : 'مطابقة دورية', + replaceAll : 'إستبدال الكل', + replaceSuccessMsg : 'تم استبدال 1% من الحالات ' + }, + + // Table Dialog + table : + { + toolbar : 'جدول', + title : 'خصائص الجدول', + menu : 'خصائص الجدول', + deleteTable : 'حذف الجدول', + rows : 'صفوف', + columns : 'أعمدة', + border : 'الحدود', + widthPx : 'بكسل', + widthPc : 'بالمئة', + widthUnit : 'width unit', // MISSING + cellSpace : 'تباعد الخلايا', + cellPad : 'المسافة البادئة', + caption : 'الوصف', + summary : 'الخلاصة', + headers : 'العناوين', + headersNone : 'بدون', + headersColumn : 'العمود الأول', + headersRow : 'الصف الأول', + headersBoth : 'كلاهما', + invalidRows : 'عدد الصفوف يجب أن يكون عدداً أكبر من صفر.', + invalidCols : 'عدد الأعمدة يجب أن يكون عدداً أكبر من صفر.', + invalidBorder : 'حجم الحد يجب أن يكون عدداً.', + invalidWidth : 'عرض الجدول يجب أن يكون عدداً.', + invalidHeight : 'ارتفاع الجدول يجب أن يكون عدداً.', + invalidCellSpacing : 'المسافة بين الخلايا يجب أن تكون عدداً.', + invalidCellPadding : 'المسافة البادئة يجب أن تكون عدداً', + + cell : + { + menu : 'خلية', + insertBefore : 'إدراج خلية قبل', + insertAfter : 'إدراج خلية بعد', + deleteCell : 'حذف خلية', + merge : 'دمج خلايا', + mergeRight : 'دمج لليمين', + mergeDown : 'دمج للأسفل', + splitHorizontal : 'تقسيم الخلية أفقياً', + splitVertical : 'تقسيم الخلية عمودياً', + title : 'خصائص الخلية', + cellType : 'نوع الخلية', + rowSpan : 'امتداد الصفوف', + colSpan : 'امتداد الأعمدة', + wordWrap : 'التفاف النص', + hAlign : 'محاذاة أفقية', + vAlign : 'محاذاة رأسية', + alignBaseline : 'خط القاعدة', + bgColor : 'لون الخلفية', + borderColor : 'لون الحدود', + data : 'بيانات', + header : 'عنوان', + yes : 'نعم', + no : 'لا', + invalidWidth : 'عرض الخلية يجب أن يكون عدداً.', + invalidHeight : 'ارتفاع الخلية يجب أن يكون عدداً.', + invalidRowSpan : 'امتداد الصفوف يجب أن يكون عدداً صحيحاً.', + invalidColSpan : 'امتداد الأعمدة يجب أن يكون عدداً صحيحاً.', + chooseColor : 'اختر' + }, + + row : + { + menu : 'صف', + insertBefore : 'إدراج صف قبل', + insertAfter : 'إدراج صف بعد', + deleteRow : 'حذف صفوف' + }, + + column : + { + menu : 'عمود', + insertBefore : 'إدراج عمود قبل', + insertAfter : 'إدراج عمود بعد', + deleteColumn : 'حذف أعمدة' + } + }, + + // Button Dialog. + button : + { + title : 'خصائص زر الضغط', + text : 'القيمة/التسمية', + type : 'نوع الزر', + typeBtn : 'زر', + typeSbm : 'إرسال', + typeRst : 'إعادة تعيين' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'خصائص خانة الإختيار', + radioTitle : 'خصائص زر الخيار', + value : 'القيمة', + selected : 'محدد' + }, + + // Form Dialog. + form : + { + title : 'خصائص النموذج', + menu : 'خصائص النموذج', + action : 'اسم الملف', + method : 'الأسلوب', + encoding : 'تشفير' + }, + + // Select Field Dialog. + select : + { + title : 'خصائص اختيار الحقل', + selectInfo : 'اختار معلومات', + opAvail : 'الخيارات المتاحة', + value : 'القيمة', + size : 'الحجم', + lines : 'الأسطر', + chkMulti : 'السماح بتحديدات متعددة', + opText : 'النص', + opValue : 'القيمة', + btnAdd : 'إضافة', + btnModify : 'تعديل', + btnUp : 'أعلى', + btnDown : 'أسفل', + btnSetValue : 'إجعلها محددة', + btnDelete : 'إزالة' + }, + + // Textarea Dialog. + textarea : + { + title : 'خصائص مساحة النص', + cols : 'الأعمدة', + rows : 'الصفوف' + }, + + // Text Field Dialog. + textfield : + { + title : 'خصائص مربع النص', + name : 'الاسم', + value : 'القيمة', + charWidth : 'عرض السمات', + maxChars : 'اقصى عدد للسمات', + type : 'نوع المحتوى', + typeText : 'نص', + typePass : 'كلمة مرور' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'خصائص الحقل المخفي', + name : 'الاسم', + value : 'القيمة' + }, + + // Image Dialog. + image : + { + title : 'خصائص الصورة', + titleButton : 'خصائص زر الصورة', + menu : 'خصائص الصورة', + infoTab : 'معلومات الصورة', + btnUpload : 'أرسلها للخادم', + upload : 'رفع', + alt : 'عنوان الصورة', + lockRatio : 'تناسق الحجم', + resetSize : 'إستعادة الحجم الأصلي', + border : 'سمك الحدود', + hSpace : 'تباعد أفقي', + vSpace : 'تباعد عمودي', + alertUrl : 'فضلاً أكتب الموقع الذي توجد عليه هذه الصورة.', + linkTab : 'الرابط', + button2Img : 'هل تريد تحويل زر الصورة المختار إلى صورة بسيطة؟', + img2Button : 'هل تريد تحويل الصورة المختارة إلى زر صورة؟', + urlMissing : 'عنوان مصدر الصورة مفقود', + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'خصائص الفلاش', + propertiesTab : 'الخصائص', + title : 'خصائص فيلم الفلاش', + chkPlay : 'تشغيل تلقائي', + chkLoop : 'تكرار', + chkMenu : 'تمكين قائمة فيلم الفلاش', + chkFull : 'ملء الشاشة', + scale : 'الحجم', + scaleAll : 'إظهار الكل', + scaleNoBorder : 'بلا حدود', + scaleFit : 'ضبط تام', + access : 'دخول النص البرمجي', + accessAlways : 'دائماً', + accessSameDomain: 'نفس النطاق', + accessNever : 'مطلقاً', + alignAbsBottom : 'أسفل النص', + alignAbsMiddle : 'وسط السطر', + alignBaseline : 'على السطر', + alignTextTop : 'أعلى النص', + quality : 'جودة', + qualityBest : 'أفضل', + qualityHigh : 'عالية', + qualityAutoHigh : 'عالية تلقائياً', + qualityMedium : 'متوسطة', + qualityAutoLow : 'منخفضة تلقائياً', + qualityLow : 'منخفضة', + windowModeWindow: 'نافذة', + windowModeOpaque: 'غير شفاف', + windowModeTransparent : 'شفاف', + windowMode : 'وضع النافذة', + flashvars : 'متغيرات الفلاش', + bgcolor : 'لون الخلفية', + hSpace : 'تباعد أفقي', + vSpace : 'تباعد عمودي', + validateSrc : 'فضلاً أدخل عنوان الموقع الذي يشير إليه الرابط', + validateHSpace : 'HSpace يجب أن يكون عدداً.', + validateVSpace : 'VSpace يجب أن يكون عدداً.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'تدقيق إملائي', + title : 'التدقيق الإملائي', + notAvailable : 'عفواً، ولكن هذه الخدمة غير متاحة الان', + errorLoading : 'خطأ في تحميل تطبيق خدمة الاستضافة: %s.', + notInDic : 'ليست في القاموس', + changeTo : 'التغيير إلى', + btnIgnore : 'تجاهل', + btnIgnoreAll : 'تجاهل الكل', + btnReplace : 'تغيير', + btnReplaceAll : 'تغيير الكل', + btnUndo : 'تراجع', + noSuggestions : '- لا توجد إقتراحات -', + progress : 'جاري التدقيق الاملائى', + noMispell : 'تم التدقيق الإملائي: لم يتم العثور على أي أخطاء إملائية', + noChanges : 'تم التدقيق الإملائي: لم يتم تغيير أي كلمة', + oneChange : 'تم التدقيق الإملائي: تم تغيير كلمة واحدة فقط', + manyChanges : 'تم إكمال التدقيق الإملائي: تم تغيير %1 من كلمات', + ieSpellDownload : 'المدقق الإملائي (الإنجليزي) غير مثبّت. هل تود تحميله الآن؟' + }, + + smiley : + { + toolbar : 'ابتسامات', + title : 'إدراج ابتسامات', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : 'عنصر 1%' + }, + + numberedlist : 'ادخال/حذف تعداد رقمي', + bulletedlist : 'ادخال/حذف تعداد نقطي', + indent : 'زيادة المسافة البادئة', + outdent : 'إنقاص المسافة البادئة', + + justify : + { + left : 'محاذاة إلى اليسار', + center : 'توسيط', + right : 'محاذاة إلى اليمين', + block : 'ضبط' + }, + + blockquote : 'اقتباس', + + clipboard : + { + title : 'لصق', + cutError : 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع القص التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+X).', + copyError : 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع النسخ التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+C).', + pasteMsg : 'الصق داخل الصندوق بإستخدام زرائر (<STRONG>Ctrl/Cmd+V</STRONG>) في لوحة المفاتيح، ثم اضغط زر <STRONG>موافق</STRONG>.', + securityMsg : 'نظراً لإعدادات الأمان الخاصة بمتصفحك، لن يتمكن هذا المحرر من الوصول لمحتوى حافظتك، لذلك يجب عليك لصق المحتوى مرة أخرى في هذه النافذة.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'يبدو أن النص المراد لصقه منسوخ من برنامج وورد. هل تود تنظيفه قبل الشروع في عملية اللصق؟', + toolbar : 'لصق من وورد', + title : 'لصق من وورد', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'لصق كنص بسيط', + title : 'لصق كنص بسيط' + }, + + templates : + { + button : 'القوالب', + title : 'قوالب المحتوى', + options : 'Template Options', // MISSING + insertOption : 'استبدال المحتوى', + selectPromptMsg : 'اختر القالب الذي تود وضعه في المحرر', + emptyListMsg : '(لم يتم تعريف أي قالب)' + }, + + showBlocks : 'مخطط تفصيلي', + + stylesCombo : + { + label : 'أنماط', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'أنماط الفقرة', + panelTitle2 : 'أنماط مضمنة', + panelTitle3 : 'أنماط الكائن' + }, + + format : + { + label : 'تنسيق', + panelTitle : 'تنسيق الفقرة', + + tag_p : 'عادي', + tag_pre : 'منسّق', + tag_address : 'عنوان', + tag_h1 : 'العنوان 1', + tag_h2 : 'العنوان 2', + tag_h3 : 'العنوان 3', + tag_h4 : 'العنوان 4', + tag_h5 : 'العنوان 5', + tag_h6 : 'العنوان 6', + tag_div : 'عادي (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'خط', + voiceLabel : 'حجم الخط', + panelTitle : 'حجم الخط' + }, + + fontSize : + { + label : 'حجم الخط', + voiceLabel : 'حجم الخط', + panelTitle : 'حجم الخط' + }, + + colorButton : + { + textColorTitle : 'لون النص', + bgColorTitle : 'لون الخلفية', + panelTitle : 'Colors', // MISSING + auto : 'تلقائي', + more : 'ألوان إضافية...' + }, + + colors : + { + '000' : 'أسود', + '800000' : 'كستنائي', + '8B4513' : 'بني فاتح', + '2F4F4F' : 'رمادي أردوازي غامق', + '008080' : 'أزرق مخضر', + '000080' : 'أزرق داكن', + '4B0082' : 'كحلي', + '696969' : 'رمادي داكن', + 'B22222' : 'طوبي', + 'A52A2A' : 'بني', + 'DAA520' : 'ذهبي داكن', + '006400' : 'أخضر داكن', + '40E0D0' : 'فيروزي', + '0000CD' : 'أزرق متوسط', + '800080' : 'بنفسجي غامق', + '808080' : 'رمادي', + 'F00' : 'أحمر', + 'FF8C00' : 'برتقالي داكن', + 'FFD700' : 'ذهبي', + '008000' : 'أخضر', + '0FF' : 'تركواز', + '00F' : 'أزرق', + 'EE82EE' : 'بنفسجي', + 'A9A9A9' : 'رمادي شاحب', + 'FFA07A' : 'برتقالي وردي', + 'FFA500' : 'برتقالي', + 'FFFF00' : 'أصفر', + '00FF00' : 'ليموني', + 'AFEEEE' : 'فيروزي شاحب', + 'ADD8E6' : 'أزرق فاتح', + 'DDA0DD' : 'بنفسجي فاتح', + 'D3D3D3' : 'رمادي فاتح', + 'FFF0F5' : 'وردي فاتح', + 'FAEBD7' : 'أبيض عتيق', + 'FFFFE0' : 'أصفر فاتح', + 'F0FFF0' : 'أبيض مائل للأخضر', + 'F0FFFF' : 'سماوي', + 'F0F8FF' : 'لبني', + 'E6E6FA' : 'أرجواني', + 'FFF' : 'أبيض' + }, + + scayt : + { + title : 'تدقيق إملائي أثناء الكتابة', + opera_title : 'Not supported by Opera', // MISSING + enable : 'تفعيل SCAYT', + disable : 'تعطيل SCAYT', + about : 'عن SCAYT', + toggle : 'تثبيت SCAYT', + options : 'خيارات', + langs : 'لغات', + moreSuggestions : 'المزيد من المقترحات', + ignore : 'تجاهل', + ignoreAll : 'تجاهل الكل', + addWord : 'إضافة كلمة', + emptyDic : 'اسم القاموس يجب ألا يكون فارغاً.', + + optionsTab : 'خيارات', + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'لغات', + + dictionariesTab : 'قواميس', + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'عن' + }, + + about : + { + title : 'عن CKEditor', + dlgTitle : 'عن CKEditor', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'للحصول على معلومات الترخيص ، يرجى زيارة موقعنا على شبكة الانترنت:', + copy : 'حقوق النشر © $1. جميع الحقوق محفوظة.' + }, + + maximize : 'تكبير', + minimize : 'تصغير', + + fakeobjects : + { + anchor : 'إرساء', + flash : 'رسم متحرك بالفلاش', + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'كائن غير معروف' + }, + + resize : 'اسحب لتغيير الحجم', + + colordialog : + { + title : 'اختر لون', + options : 'Color Options', // MISSING + highlight : 'إلقاء الضوء', + selected : 'مُختار', + clear : 'مسح' + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'خصائص الصفحة', + title : 'خصائص الصفحة', + design : 'Design', // MISSING + meta : 'المعرّفات الرأسية', + chooseColor : 'اختر', + other : '<أخرى>', + docTitle : 'عنوان الصفحة', + charset : 'ترميز الحروف', + charsetOther : 'ترميز آخر', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'أوروبا الوسطى', + charsetCT : 'الصينية التقليدية (Big5)', + charsetCR : 'السيريلية', + charsetGR : 'اليونانية', + charsetJP : 'اليابانية', + charsetKR : 'الكورية', + charsetTR : 'التركية', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'أوروبا الغربية', + docType : 'ترويسة نوع الصفحة', + docTypeOther : 'ترويسة نوع صفحة أخرى', + xhtmlDec : 'تضمين إعلانات لغة XHTMLَ', + bgColor : 'لون الخلفية', + bgImage : 'رابط الصورة الخلفية', + bgFixed : 'جعلها علامة مائية', + txtColor : 'لون النص', + margin : 'هوامش الصفحة', + marginTop : 'علوي', + marginLeft : 'أيسر', + marginRight : 'أيمن', + marginBottom : 'سفلي', + metaKeywords : 'الكلمات الأساسية (مفصولة بفواصل)َ', + metaDescription : 'وصف الصفحة', + metaAuthor : 'الكاتب', + metaCopyright : 'المالك', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/bg.js b/htdocs/includes/ckeditor/_source/lang/bg.js new file mode 100644 index 0000000000000000000000000000000000000000..2995ff4a4bfda9615c3f2337012daf965573c675 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/bg.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Bulgarian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['bg'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Ленти с инструменти', + editor : 'Текстов редактор за форматиран текст', + + // Toolbar buttons without dialogs. + source : 'Източник', + newPage : 'Нова страница', + save : 'Запис', + preview : 'Преглед', + cut : 'Отрежи', + copy : 'Копирай', + paste : 'Вмъкни', + print : 'Печат', + underline : 'Подчертан', + bold : 'Удебелен', + italic : 'Наклонен', + selectAll : 'Избери всичко', + removeFormat : 'Премахване на форматирането', + strike : 'Зачертан текст', + subscript : 'Индексиран текст', + superscript : 'Суперскрипт', + horizontalrule : 'Вмъкване на хоризонтална линия', + pagebreak : 'Вмъкване на нова страница при печат', + pagebreakAlt : 'Разделяне на страници', + unlink : 'Премахни връзката', + undo : 'Възтанови', + redo : 'Връщане на предишен статус', + + // Common messages and labels. + common : + { + browseServer : 'Избор от сървъра', + url : 'URL', + protocol : 'Протокол', + upload : 'Качване', + uploadSubmit : 'Изпращане към сървъра', + image : 'Снимка', + flash : 'Флаш', + form : 'Форма', + checkbox : 'Поле за избор', + radio : 'Радио бутон', + textField : 'Текстово поле', + textarea : 'Текстова зона', + hiddenField : 'Скрито поле', + button : 'Бутон', + select : 'Поле за избор', + imageButton : 'Бутон за снимка', + notSet : '<не е избрано>', + id : 'ID', + name : 'Име', + langDir : 'Посока на езика', + langDirLtr : 'Ляво на дясно (ЛнД)', + langDirRtl : 'Дясно на ляво (ДнЛ)', + langCode : 'Код на езика', + longDescr : 'Уеб адрес за дълго описание', + cssClass : 'Класове за CSS', + advisoryTitle : 'Advisory Title', // MISSING + cssStyle : 'Стил', + ok : 'ОК', + cancel : 'Отказ', + close : 'Затвори', + preview : 'Преглед', + generalTab : 'Общо', + advancedTab : 'Разширено', + validateNumberFailed : 'Тази стойност не е число', + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Опции', + target : 'Цел', + targetNew : 'Нов прозорец (_blank)', + targetTop : 'Горна позиция (_top)', + targetSelf : 'Текущия прозорец (_self)', + targetParent : 'Основен прозорец (_parent)', + langDirLTR : 'Ляво на дясно (ЛнД)', + langDirRTL : 'Дясно на ляво (ДнЛ)', + styles : 'Стил', + cssClasses : 'Класове за CSS', + width : 'Ширина', + height : 'Височина', + align : 'Подравняване', + alignLeft : 'Ляво', + alignRight : 'Дясно', + alignCenter : 'Център', + alignTop : 'Горе', + alignMiddle : 'По средата', + alignBottom : 'Долу', + invalidHeight : 'Височината трябва да е число.', + invalidWidth : 'Ширина требе да е число.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Опции на контекстното меню' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Вмъкване на специален знак', + title : 'Избор на специален знак', + options : 'Опции за специален знак' + }, + + // Link dialog. + link : + { + toolbar : 'Връзка', + other : '<друго>', + menu : 'Промяна на връзка', + title : 'Връзка', + info : 'Инфо за връзката', + target : 'Цел', + upload : 'Качване', + advanced : 'Разширено', + type : 'Тип на връзката', + toUrl : 'Уеб адрес', + toAnchor : 'Връзка към котва в текста', + toEmail : 'E-mail', + targetFrame : '<frame>', + targetPopup : '<изкачащ прозорец>', + targetFrameName : 'Име на целевият прозорец', + targetPopupName : 'Име на изкачащ прозорец', + popupFeatures : 'Функции на изкачащ прозорец', + popupResizable : 'Оразмеряем', + popupStatusBar : 'Статусна лента', + popupLocationBar: 'Лента с локацията', + popupToolbar : 'Лента с инструменти', + popupMenuBar : 'Лента за меню', + popupFullScreen : 'Цял екран (IE)', + popupScrollBars : 'Скролери', + popupDependent : 'Зависимост (Netscape)', + popupLeft : 'Лява позиция', + popupTop : 'Горна позиция', + id : 'ID', + langDir : 'Посока на езика', + langDirLTR : 'Ляво на Дясно (ЛнД)', + langDirRTL : 'Дясно на Ляво (ДнЛ)', + acccessKey : 'Ключ за достъп', + name : 'Име', + langCode : 'Код за езика', + tabIndex : 'Tab Index', // MISSING + advisoryTitle : 'Advisory Title', // MISSING + advisoryContentType : 'Advisory Content Type', // MISSING + cssClasses : 'Класове за CSS', + charset : 'Linked Resource Charset', // MISSING + styles : 'Стил', + rel : 'Връзка', + selectAnchor : 'Изберете котва', + anchorName : 'По име на котва', + anchorId : 'По ID на елемент', + emailAddress : 'E-mail aдрес', + emailSubject : 'Тема', + emailBody : 'Съдържание', + noAnchors : '(No anchors available in the document)', // MISSING + noUrl : 'Моля въведете URL адреса', + noEmail : 'Моля въведете e-mail aдрес' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Котва', + menu : 'Промяна на котва', + title : 'Настройки на котва', + name : 'Име на котва', + errorName : 'Моля въведете име на котвата', + remove : 'Премахване на котва' + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Тип', + start : 'Старт', + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Кръг', + disc : 'Диск', + square : 'Квадрат', + none : 'Няма', + notset : '<не е указано>', + armenian : 'Арменско номериране', + georgian : 'Грузинско номериране (an, ban, gan, и т.н.)', + lowerRoman : 'Малки римски числа (i, ii, iii, iv, v и т.н.)', + upperRoman : 'Големи римски числа (I, II, III, IV, V и т.н.)', + lowerAlpha : 'Малки букви (а, б, в, г, д и т.н.)', + upperAlpha : 'Големи букви (А, Б, В, Г, Д и т.н.)', + lowerGreek : 'Малки гръцки букви (алфа, бета, гама и т.н.)', + decimal : 'Числа (1, 2, 3 и др.)', + decimalLeadingZero : 'Числа с водеща нула (01, 02, 03 и т.н.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Търсене и препокриване', + find : 'Търсене', + replace : 'Препокриване', + findWhat : 'Търси за:', + replaceWith : 'Препокрива с:', + notFoundMsg : 'Указаният текст не е намерен.', + findOptions : 'Find Options', // MISSING + matchCase : 'Съвпадение', + matchWord : 'Съвпадение с дума', + matchCyclic : 'Циклично съвпадение', + replaceAll : 'Препокрий всички', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Таблица', + title : 'Настройки на таблицата', + menu : 'Настройки на таблицата', + deleteTable : 'Изтриване на таблица', + rows : 'Редове', + columns : 'Колони', + border : 'Размер на рамката', + widthPx : 'пиксела', + widthPc : 'процент', + widthUnit : 'единица за ширина', + cellSpace : 'Разтояние между клетките', + cellPad : 'Отделяне на клетките', + caption : 'Заглавие', + summary : 'Обща информация', + headers : 'Хедъри', + headersNone : 'Няма', + headersColumn : 'Първа колона', + headersRow : 'Първи ред', + headersBoth : 'Заедно', + invalidRows : 'Броят редове трябва да е по-голям от 0.', + invalidCols : 'Броят колони трябва да е по-голям от 0.', + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Клетка', + insertBefore : 'Вмъкване на клетка преди', + insertAfter : 'Вмъкване на клетка след', + deleteCell : 'Изтриване на клетки', + merge : 'Сливане на клетки', + mergeRight : 'Сливане в дясно', + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Настройки на клетката', + cellType : 'Тип на клетката', + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Авто. пренос', + hAlign : 'Хоризонтално подравняване', + vAlign : 'Вертикално подравняване', + alignBaseline : 'Базова линия', + bgColor : 'Фон', + borderColor : 'Цвят на рамката', + data : 'Данни', + header : 'Хедър', + yes : 'Да', + no : 'Не', + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Изберете' + }, + + row : + { + menu : 'Ред', + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Вмъкване на ред след', + deleteRow : 'Изтриване на редове' + }, + + column : + { + menu : 'Колона', + insertBefore : 'Вмъкване на колона преди', + insertAfter : 'Вмъкване на колона след', + deleteColumn : 'Изтриване на колони' + } + }, + + // Button Dialog. + button : + { + title : 'Настройки на бутона', + text : 'Текст (стойност)', + type : 'Тип', + typeBtn : 'Бутон', + typeSbm : 'Добави', + typeRst : 'Нулиране' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', // MISSING + radioTitle : 'Настройки на радиобутон', + value : 'Стойност', + selected : 'Избрано' + }, + + // Form Dialog. + form : + { + title : 'Настройки на формата', + menu : 'Настройки на формата', + action : 'Действие', + method : 'Метод', + encoding : 'Кодиране' + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', // MISSING + selectInfo : 'Select Info', // MISSING + opAvail : 'Налични опции', + value : 'Стойност', + size : 'Размер', + lines : 'линии', + chkMulti : 'Allow multiple selections', // MISSING + opText : 'Текст', + opValue : 'Стойност', + btnAdd : 'Добави', + btnModify : 'Промени', + btnUp : 'На горе', + btnDown : 'На долу', + btnSetValue : 'Set as selected value', // MISSING + btnDelete : 'Изтриване' + }, + + // Textarea Dialog. + textarea : + { + title : 'Опции за текстовата зона', + cols : 'Колони', + rows : 'Редове' + }, + + // Text Field Dialog. + textfield : + { + title : 'Настройки за текстово поле', + name : 'Име', + value : 'Стойност', + charWidth : 'Ширина на знаците', + maxChars : 'Макс. знаци', + type : 'Тип', + typeText : 'Текст', + typePass : 'Парола' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Настройки за скрито поле', + name : 'Име', + value : 'Стойност' + }, + + // Image Dialog. + image : + { + title : 'Настройки за снимка', + titleButton : 'Настойки за бутон за снимка', + menu : 'Настройки за снимка', + infoTab : 'Инфо за снимка', + btnUpload : 'Изпрати я на сървъра', + upload : 'Качване', + alt : 'Алтернативен текст', + lockRatio : 'Заключване на съотношението', + resetSize : 'Нулиране на размер', + border : 'Рамка', + hSpace : 'HSpace', // MISSING + vSpace : 'VSpace', // MISSING + alertUrl : 'Please type the image URL', // MISSING + linkTab : 'Връзка', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Настройки за флаш', + propertiesTab : 'Настройки', + title : 'Настройки за флаш', + chkPlay : 'Авто. пускане', + chkLoop : 'Цикъл', + chkMenu : 'Enable Flash Menu', // MISSING + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Scale', // MISSING + scaleAll : 'Показва всичко', + scaleNoBorder : 'Без рамка', + scaleFit : 'Exact Fit', // MISSING + access : 'Script Access', // MISSING + accessAlways : 'Винаги', + accessSameDomain: 'Същият домейн', + accessNever : 'Никога', + alignAbsBottom : 'Abs Bottom', // MISSING + alignAbsMiddle : 'Abs Middle', // MISSING + alignBaseline : 'Baseline', // MISSING + alignTextTop : 'Text Top', // MISSING + quality : 'Качество', + qualityBest : 'Отлично', + qualityHigh : 'Високо', + qualityAutoHigh : 'Авто. високо', + qualityMedium : 'Средно', + qualityAutoLow : 'Авто. ниско', + qualityLow : 'Ниско', + windowModeWindow: 'Прозорец', + windowModeOpaque: 'Плътност', + windowModeTransparent : 'Прозрачност', + windowMode : 'Режим на прозореца', + flashvars : 'Променливи за Флаш', + bgcolor : 'Background color', // MISSING + hSpace : 'HSpace', // MISSING + vSpace : 'VSpace', // MISSING + validateSrc : 'Уеб адреса не трябва да е празен.', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Проверка на правопис', + title : 'Проверка на правопис', + notAvailable : 'Съжаляваме, но услугата не е достъпна за момента', + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Не е в речника', + changeTo : 'Промени на', + btnIgnore : 'Игнорирай', + btnIgnoreAll : 'Игнорирай всичко', + btnReplace : 'Препокриване', + btnReplaceAll : 'Препокрий всичко', + btnUndo : 'Възтанови', + noSuggestions : '- Няма препоръчани -', + progress : 'Проверява се правописа...', + noMispell : 'Spell check complete: No misspellings found', // MISSING + noChanges : 'Spell check complete: No words changed', // MISSING + oneChange : 'Spell check complete: One word changed', // MISSING + manyChanges : 'Spell check complete: %1 words changed', // MISSING + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING + }, + + smiley : + { + toolbar : 'Усмивка', + title : 'Вмъкване на усмивка', + options : 'Опции за усмивката' + }, + + elementsPath : + { + eleLabel : 'Път за елементите', + eleTitle : '%1 елемент' + }, + + numberedlist : 'Вмъкване/Премахване на номериран списък', + bulletedlist : 'Вмъкване/Премахване на точков списък', + indent : 'Увеличаване на отстъпа', + outdent : 'Намаляване на отстъпа', + + justify : + { + left : 'Подравни в ляво', + center : 'Център', + right : 'Подравни в дясно', + block : 'Justify' // MISSING + }, + + blockquote : 'Блок за цитат', + + clipboard : + { + title : 'Paste', // MISSING + cutError : 'Настройките за сигурност на Вашия браузър не позволяват на редактора автоматично да изъплни действията за отрязване. Моля ползвайте клавиатурните команди за целта (ctrl+x).', + copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Paste from Word', // MISSING + title : 'Paste from Word', // MISSING + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Paste as plain text', // MISSING + title : 'Paste as Plain Text' // MISSING + }, + + templates : + { + button : 'Templates', // MISSING + title : 'Content Templates', // MISSING + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Please select the template to open in the editor', // MISSING + emptyListMsg : '(No templates defined)' // MISSING + }, + + showBlocks : 'Показва блокове', + + stylesCombo : + { + label : 'Styles', // MISSING + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Format', // MISSING + panelTitle : 'Paragraph Format', // MISSING + + tag_p : 'Normal', // MISSING + tag_pre : 'Formatted', // MISSING + tag_address : 'Address', // MISSING + tag_h1 : 'Heading 1', // MISSING + tag_h2 : 'Heading 2', // MISSING + tag_h3 : 'Heading 3', // MISSING + tag_h4 : 'Heading 4', // MISSING + tag_h5 : 'Heading 5', // MISSING + tag_h6 : 'Heading 6', // MISSING + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Стил', + IdInputLabel : 'ID', + languageCodeInputLabel : ' Код на езика', + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Промяна на Div', + remove : 'Премахване на Div' + }, + + iframe : + { + title : 'IFrame настройки', + toolbar : 'IFrame', + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Шрифт', + voiceLabel : 'Шрифт', + panelTitle : 'Име на шрифт' + }, + + fontSize : + { + label : 'Размер', + voiceLabel : 'Размер на шрифт', + panelTitle : 'Размер на шрифт' + }, + + colorButton : + { + textColorTitle : 'Цвят на шрифт', + bgColorTitle : 'Фонов цвят', + panelTitle : 'Цветове', + auto : 'Автоматично', + more : 'Още цветове' + }, + + colors : + { + '000' : 'Черно', + '800000' : 'Кестеняво', + '8B4513' : 'Светлокафяво', + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Индиго', + '696969' : 'Тъмно сиво', + 'B22222' : 'Огнено червено', + 'A52A2A' : 'Кафяво', + 'DAA520' : 'Златисто', + '006400' : 'Тъмно зелено', + '40E0D0' : 'Тюркуазено', + '0000CD' : 'Средно синьо', + '800080' : 'Пурпурно', + '808080' : 'Сиво', + 'F00' : 'Червено', + 'FF8C00' : 'Тъмно оранжево', + 'FFD700' : 'Златно', + '008000' : 'Зелено', + '0FF' : 'Светло синьо', + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Игнорирани думи и цифри', + + languagesTab : 'Езици', + + dictionariesTab : 'Речници', + dic_field_name : 'Име на речнк', + dic_create : 'Нов', + dic_restore : 'Възтановяване', + dic_delete : 'Изтриване', + dic_rename : 'Преименуване', + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'Относно' + }, + + about : + { + title : 'Относно CKEditor', + dlgTitle : 'Относно CKEditor', + help : 'Проверете $1 за помощ.', + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'За лицензионна информация моля посетете сайта ни:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Максимизиране', + minimize : 'Минимизиране', + + fakeobjects : + { + anchor : 'Кука', + flash : 'Флаш анимация', + iframe : 'IFrame', + hiddenfield : 'Скрито поле', + unknown : 'Неизвестен обект' + }, + + resize : 'Влачете за да оразмерите', + + colordialog : + { + title : 'Изберете цвят', + options : 'Цветови опции', + highlight : 'Осветяване', + selected : 'Изберете цвят', + clear : 'Изчистване' + }, + + toolbarCollapse : 'Свиване на лентата с инструменти', + toolbarExpand : 'Разширяване на лентата с инструменти', + + toolbarGroups : + { + document : 'Документ', + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Промяна', + forms : 'Форми', + basicstyles : 'Базови стилове', + paragraph : 'Параграф', + links : 'Връзки', + insert : 'Вмъкване', + styles : 'Стилове', + colors : 'Цветове', + tools : 'Инструменти' + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Настройки на документа', + title : 'Настройки на документа', + design : 'Дизайн', + meta : 'Мета етикети', + chooseColor : 'Изберете', + other : 'Други...', + docTitle : 'Заглавие на страницата', + charset : 'Кодова таблица', + charsetOther : 'Друга кодова таблица', + charsetASCII : 'ASCII', + charsetCE : 'Централна европейска', + charsetCT : 'Китайски традиционен', + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Other Document Type Heading', // MISSING + xhtmlDec : 'Include XHTML Declarations', // MISSING + bgColor : 'Background Color', // MISSING + bgImage : 'Background Image URL', // MISSING + bgFixed : 'Non-scrolling (Fixed) Background', // MISSING + txtColor : 'Text Color', // MISSING + margin : 'Page Margins', // MISSING + marginTop : 'Top', // MISSING + marginLeft : 'Left', // MISSING + marginRight : 'Right', // MISSING + marginBottom : 'Bottom', // MISSING + metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING + metaDescription : 'Document Description', // MISSING + metaAuthor : 'Author', // MISSING + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/bn.js b/htdocs/includes/ckeditor/_source/lang/bn.js new file mode 100644 index 0000000000000000000000000000000000000000..f3bef9f7320d5af20d03c66f684c77ec7206364f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/bn.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Bengali/Bangla language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['bn'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'সোর্স', + newPage : 'নতুন পেজ', + save : 'সংরক্ষন কর', + preview : 'প্রিভিউ', + cut : 'কাট', + copy : 'কপি', + paste : 'পেস্ট', + print : 'প্রিন্ট', + underline : 'আন্ডারলাইন', + bold : 'বোল্ড', + italic : 'ইটালিক', + selectAll : 'সব সিলেক্ট কর', + removeFormat : 'ফরমেট সরাও', + strike : 'স্ট্রাইক থ্রু', + subscript : 'অধোলেখ', + superscript : 'অভিলেখ', + horizontalrule : 'রেখা যুক্ত কর', + pagebreak : 'পেজ ব্রেক', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'লিংক সরাও', + undo : 'আনডু', + redo : 'রি-ডু', + + // Common messages and labels. + common : + { + browseServer : 'ব্রাউজ সার্ভার', + url : 'URL', + protocol : 'প্রোটোকল', + upload : 'আপলোড', + uploadSubmit : 'ইহাকে সার্ভারে প্রেরন কর', + image : 'ছবির লেবেল যুক্ত কর', + flash : 'ফ্লাশ লেবেল যুক্ত কর', + form : 'ফর্ম', + checkbox : 'চেক বাক্স', + radio : 'রেডিও বাটন', + textField : 'টেক্সট ফীল্ড', + textarea : 'টেক্সট এরিয়া', + hiddenField : 'গুপ্ত ফীল্ড', + button : 'বাটন', + select : 'বাছাই ফীল্ড', + imageButton : 'ছবির বাটন', + notSet : '<সেট নেই>', + id : 'আইডি', + name : 'নাম', + langDir : 'ভাষা লেখার দিক', + langDirLtr : 'বাম থেকে ডান (LTR)', + langDirRtl : 'ডান থেকে বাম (RTL)', + langCode : 'ভাষা কোড', + longDescr : 'URL এর লম্বা বর্ণনা', + cssClass : 'স্টাইল-শীট ক্লাস', + advisoryTitle : 'পরামর্শ শীর্ষক', + cssStyle : 'স্টাইল', + ok : 'ওকে', + cancel : 'বাতিল', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'এডভান্সড', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'প্রস্থ', + height : 'দৈর্ঘ্য', + align : 'এলাইন', + alignLeft : 'বামে', + alignRight : 'ডানে', + alignCenter : 'মাঝখানে', + alignTop : 'উপর', + alignMiddle : 'মধ্য', + alignBottom : 'নীচে', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'বিশেষ অক্ষর যুক্ত কর', + title : 'বিশেষ ক্যারেক্টার বাছাই কর', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'লিংক যুক্ত কর', + other : '<other>', // MISSING + menu : 'লিংক সম্পাদন', + title : 'লিংক', + info : 'লিংক তথ্য', + target : 'টার্গেট', + upload : 'আপলোড', + advanced : 'এডভান্সড', + type : 'লিংক প্রকার', + toUrl : 'URL', // MISSING + toAnchor : 'এই পেজে নোঙর কর', + toEmail : 'ইমেইল', + targetFrame : '<ফ্রেম>', + targetPopup : '<পপআপ উইন্ডো>', + targetFrameName : 'টার্গেট ফ্রেমের নাম', + targetPopupName : 'পপআপ উইন্ডোর নাম', + popupFeatures : 'পপআপ উইন্ডো ফীচার সমূহ', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'স্ট্যাটাস বার', + popupLocationBar: 'লোকেশন বার', + popupToolbar : 'টুল বার', + popupMenuBar : 'মেন্যু বার', + popupFullScreen : 'পূর্ণ পর্দা জুড়ে (IE)', + popupScrollBars : 'স্ক্রল বার', + popupDependent : 'ডিপেন্ডেন্ট (Netscape)', + popupLeft : 'বামের পজিশন', + popupTop : 'ডানের পজিশন', + id : 'Id', // MISSING + langDir : 'ভাষা লেখার দিক', + langDirLTR : 'বাম থেকে ডান (LTR)', + langDirRTL : 'ডান থেকে বাম (RTL)', + acccessKey : 'এক্সেস কী', + name : 'নাম', + langCode : 'ভাষা লেখার দিক', + tabIndex : 'ট্যাব ইন্ডেক্স', + advisoryTitle : 'পরামর্শ শীর্ষক', + advisoryContentType : 'পরামর্শ কন্টেন্টের প্রকার', + cssClasses : 'স্টাইল-শীট ক্লাস', + charset : 'লিংক রিসোর্স ক্যারেক্টর সেট', + styles : 'স্টাইল', + rel : 'Relationship', // MISSING + selectAnchor : 'নোঙর বাছাই', + anchorName : 'নোঙরের নাম দিয়ে', + anchorId : 'নোঙরের আইডি দিয়ে', + emailAddress : 'ইমেইল ঠিকানা', + emailSubject : 'মেসেজের বিষয়', + emailBody : 'মেসেজের দেহ', + noAnchors : '(No anchors available in the document)', // MISSING + noUrl : 'অনুগ্রহ করে URL লিংক টাইপ করুন', + noEmail : 'অনুগ্রহ করে ইমেইল এড্রেস টাইপ করুন' + }, + + // Anchor dialog + anchor : + { + toolbar : 'নোঙ্গর', + menu : 'নোঙর প্রোপার্টি', + title : 'নোঙর প্রোপার্টি', + name : 'নোঙরের নাম', + errorName : 'নোঙরের নাম টাইপ করুন', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'খোজো', + replace : 'রিপ্লেস', + findWhat : 'যা খুঁজতে হবে:', + replaceWith : 'যার সাথে বদলাতে হবে:', + notFoundMsg : 'আপনার উল্লেখিত টেকস্ট পাওয়া যায়নি', + findOptions : 'Find Options', // MISSING + matchCase : 'কেস মিলাও', + matchWord : 'পুরা শব্দ মেলাও', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'সব বদলে দাও', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'টেবিলের লেবেল যুক্ত কর', + title : 'টেবিল প্রোপার্টি', + menu : 'টেবিল প্রোপার্টি', + deleteTable : 'টেবিল ডিলীট কর', + rows : 'রো', + columns : 'কলাম', + border : 'বর্ডার সাইজ', + widthPx : 'পিক্সেল', + widthPc : 'শতকরা', + widthUnit : 'width unit', // MISSING + cellSpace : 'সেল স্পেস', + cellPad : 'সেল প্যাডিং', + caption : 'শীর্ষক', + summary : 'সারাংশ', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'সেল', + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'সেল মুছে দাও', + merge : 'সেল জোড়া দাও', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'রো', + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'রো মুছে দাও' + }, + + column : + { + menu : 'কলাম', + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'কলাম মুছে দাও' + } + }, + + // Button Dialog. + button : + { + title : 'বাটন প্রোপার্টি', + text : 'টেক্সট (ভ্যালু)', + type : 'প্রকার', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'চেক বক্স প্রোপার্টি', + radioTitle : 'রেডিও বাটন প্রোপার্টি', + value : 'ভ্যালু', + selected : 'সিলেক্টেড' + }, + + // Form Dialog. + form : + { + title : 'ফর্ম প্রোপার্টি', + menu : 'ফর্ম প্রোপার্টি', + action : 'একশ্যন', + method : 'পদ্ধতি', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'বাছাই ফীল্ড প্রোপার্টি', + selectInfo : 'তথ্য', + opAvail : 'অন্যান্য বিকল্প', + value : 'ভ্যালু', + size : 'সাইজ', + lines : 'লাইন সমূহ', + chkMulti : 'একাধিক সিলেকশন এলাউ কর', + opText : 'টেক্সট', + opValue : 'ভ্যালু', + btnAdd : 'যুক্ত', + btnModify : 'বদলে দাও', + btnUp : 'উপর', + btnDown : 'নীচে', + btnSetValue : 'বাছাই করা ভ্যালু হিসেবে সেট কর', + btnDelete : 'ডিলীট' + }, + + // Textarea Dialog. + textarea : + { + title : 'টেক্সট এরিয়া প্রোপার্টি', + cols : 'কলাম', + rows : 'রো' + }, + + // Text Field Dialog. + textfield : + { + title : 'টেক্সট ফীল্ড প্রোপার্টি', + name : 'নাম', + value : 'ভ্যালু', + charWidth : 'ক্যারেক্টার প্রশস্ততা', + maxChars : 'সর্বাধিক ক্যারেক্টার', + type : 'টাইপ', + typeText : 'টেক্সট', + typePass : 'পাসওয়ার্ড' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'গুপ্ত ফীল্ড প্রোপার্টি', + name : 'নাম', + value : 'ভ্যালু' + }, + + // Image Dialog. + image : + { + title : 'ছবির প্রোপার্টি', + titleButton : 'ছবি বাটন প্রোপার্টি', + menu : 'ছবির প্রোপার্টি', + infoTab : 'ছবির তথ্য', + btnUpload : 'ইহাকে সার্ভারে প্রেরন কর', + upload : 'আপলোড', + alt : 'বিকল্প টেক্সট', + lockRatio : 'অনুপাত লক কর', + resetSize : 'সাইজ পূর্বাবস্থায় ফিরিয়ে দাও', + border : 'বর্ডার', + hSpace : 'হরাইজন্টাল স্পেস', + vSpace : 'ভার্টিকেল স্পেস', + alertUrl : 'অনুগ্রহক করে ছবির URL টাইপ করুন', + linkTab : 'লিংক', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'ফ্লাশ প্রোপার্টি', + propertiesTab : 'Properties', // MISSING + title : 'ফ্ল্যাশ প্রোপার্টি', + chkPlay : 'অটো প্লে', + chkLoop : 'লূপ', + chkMenu : 'ফ্ল্যাশ মেনু এনাবল কর', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'স্কেল', + scaleAll : 'সব দেখাও', + scaleNoBorder : 'কোনো বর্ডার নেই', + scaleFit : 'নিখুঁত ফিট', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs নীচে', + alignAbsMiddle : 'Abs উপর', + alignBaseline : 'মূল রেখা', + alignTextTop : 'টেক্সট উপর', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'বেকগ্রাউন্ড রং', + hSpace : 'হরাইজন্টাল স্পেস', + vSpace : 'ভার্টিকেল স্পেস', + validateSrc : 'অনুগ্রহ করে URL লিংক টাইপ করুন', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'বানান চেক', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'শব্দকোষে নেই', + changeTo : 'এতে বদলাও', + btnIgnore : 'ইগনোর কর', + btnIgnoreAll : 'সব ইগনোর কর', + btnReplace : 'বদলে দাও', + btnReplaceAll : 'সব বদলে দাও', + btnUndo : 'আন্ডু', + noSuggestions : '- কোন সাজেশন নেই -', + progress : 'বানান পরীক্ষা চলছে...', + noMispell : 'বানান পরীক্ষা শেষ: কোন ভুল বানান পাওয়া যায়নি', + noChanges : 'বানান পরীক্ষা শেষ: কোন শব্দ পরিবর্তন করা হয়নি', + oneChange : 'বানান পরীক্ষা শেষ: একটি মাত্র শব্দ পরিবর্তন করা হয়েছে', + manyChanges : 'বানান পরীক্ষা শেষ: %1 গুলো শব্দ বদলে গ্যাছে', + ieSpellDownload : 'বানান পরীক্ষক ইনস্টল করা নেই। আপনি কি এখনই এটা ডাউনলোড করতে চান?' + }, + + smiley : + { + toolbar : 'স্মাইলী', + title : 'স্মাইলী যুক্ত কর', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'সাংখ্যিক লিস্টের লেবেল', + bulletedlist : 'বুলেট লিস্ট লেবেল', + indent : 'ইনডেন্ট বাড়াও', + outdent : 'ইনডেন্ট কমাও', + + justify : + { + left : 'বা দিকে ঘেঁষা', + center : 'মাঝ বরাবর ঘেষা', + right : 'ডান দিকে ঘেঁষা', + block : 'ব্লক জাস্টিফাই' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'পেস্ট', + cutError : 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কাট করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+X)।', + copyError : 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কপি করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+C)।', + pasteMsg : 'অনুগ্রহ করে নীচের বাক্সে কিবোর্ড ব্যবহার করে (<STRONG>Ctrl/Cmd+V</STRONG>) পেস্ট করুন এবং <STRONG>OK</STRONG> চাপ দিন', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'পেস্ট (শব্দ)', + title : 'পেস্ট (শব্দ)', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'সাদা টেক্সট হিসেবে পেস্ট কর', + title : 'সাদা টেক্সট হিসেবে পেস্ট কর' + }, + + templates : + { + button : 'টেমপ্লেট', + title : 'কনটেন্ট টেমপ্লেট', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'অনুগ্রহ করে এডিটরে ওপেন করার জন্য টেমপ্লেট বাছাই করুন<br>(আসল কনটেন্ট হারিয়ে যাবে):', + emptyListMsg : '(কোন টেমপ্লেট ডিফাইন করা নেই)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'স্টাইল', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'ফন্ট ফরমেট', + panelTitle : 'ফন্ট ফরমেট', + + tag_p : 'সাধারণ', + tag_pre : 'ফর্মেটেড', + tag_address : 'ঠিকানা', + tag_h1 : 'শীর্ষক ১', + tag_h2 : 'শীর্ষক ২', + tag_h3 : 'শীর্ষক ৩', + tag_h4 : 'শীর্ষক ৪', + tag_h5 : 'শীর্ষক ৫', + tag_h6 : 'শীর্ষক ৬', + tag_div : 'শীর্ষক (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'ফন্ট', + voiceLabel : 'Font', // MISSING + panelTitle : 'ফন্ট' + }, + + fontSize : + { + label : 'সাইজ', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'সাইজ' + }, + + colorButton : + { + textColorTitle : 'টেক্স্ট রং', + bgColorTitle : 'বেকগ্রাউন্ড রং', + panelTitle : 'Colors', // MISSING + auto : 'অটোমেটিক', + more : 'আরও রং...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'ডক্যুমেন্ট প্রোপার্টি', + title : 'ডক্যুমেন্ট প্রোপার্টি', + design : 'Design', // MISSING + meta : 'মেটাডেটা', + chooseColor : 'Choose', // MISSING + other : '<other>', + docTitle : 'পেজ শীর্ষক', + charset : 'ক্যারেক্টার সেট এনকোডিং', + charsetOther : 'অন্য ক্যারেক্টার সেট এনকোডিং', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'ডক্যুমেন্ট টাইপ হেডিং', + docTypeOther : 'অন্য ডক্যুমেন্ট টাইপ হেডিং', + xhtmlDec : 'XHTML ডেক্লারেশন যুক্ত কর', + bgColor : 'ব্যাকগ্রাউন্ড রং', + bgImage : 'ব্যাকগ্রাউন্ড ছবির URL', + bgFixed : 'স্ক্রলহীন ব্যাকগ্রাউন্ড', + txtColor : 'টেক্স্ট রং', + margin : 'পেজ মার্জিন', + marginTop : 'উপর', + marginLeft : 'বামে', + marginRight : 'ডানে', + marginBottom : 'নীচে', + metaKeywords : 'ডক্যুমেন্ট ইন্ডেক্স কিওয়ার্ড (কমা দ্বারা বিচ্ছিন্ন)', + metaDescription : 'ডক্যূমেন্ট বর্ণনা', + metaAuthor : 'লেখক', + metaCopyright : 'কপীরাইট', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/bs.js b/htdocs/includes/ckeditor/_source/lang/bs.js new file mode 100644 index 0000000000000000000000000000000000000000..6dbd9a006818bc6cb62733b05cc44e4de96c362d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/bs.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Bosnian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['bs'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'HTML kôd', + newPage : 'Novi dokument', + save : 'Snimi', + preview : 'Prikaži', + cut : 'Izreži', + copy : 'Kopiraj', + paste : 'Zalijepi', + print : 'Štampaj', + underline : 'Podvuci', + bold : 'Boldiraj', + italic : 'Ukosi', + selectAll : 'Selektuj sve', + removeFormat : 'Poništi format', + strike : 'Precrtaj', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Ubaci horizontalnu liniju', + pagebreak : 'Insert Page Break for Printing', // MISSING + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Izbriši link', + undo : 'Vrati', + redo : 'Ponovi', + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', // MISSING + url : 'URL', + protocol : 'Protokol', + upload : 'Šalji', + uploadSubmit : 'Šalji na server', + image : 'Slika', + flash : 'Flash', // MISSING + form : 'Form', // MISSING + checkbox : 'Checkbox', // MISSING + radio : 'Radio Button', // MISSING + textField : 'Text Field', // MISSING + textarea : 'Textarea', // MISSING + hiddenField : 'Hidden Field', // MISSING + button : 'Button', // MISSING + select : 'Selection Field', // MISSING + imageButton : 'Image Button', // MISSING + notSet : '<nije podešeno>', + id : 'Id', + name : 'Naziv', + langDir : 'Smjer pisanja', + langDirLtr : 'S lijeva na desno (LTR)', + langDirRtl : 'S desna na lijevo (RTL)', + langCode : 'Jezièni kôd', + longDescr : 'Dugaèki opis URL-a', + cssClass : 'Klase CSS stilova', + advisoryTitle : 'Advisory title', + cssStyle : 'Stil', + ok : 'OK', + cancel : 'Odustani', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Naprednije', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Širina', + height : 'Visina', + align : 'Poravnanje', + alignLeft : 'Lijevo', + alignRight : 'Desno', + alignCenter : 'Centar', + alignTop : 'Vrh', + alignMiddle : 'Sredina', + alignBottom : 'Dno', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Ubaci specijalni karater', + title : 'Izaberi specijalni karakter', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Ubaci/Izmjeni link', + other : '<other>', // MISSING + menu : 'Izmjeni link', + title : 'Link', + info : 'Link info', + target : 'Prozor', + upload : 'Šalji', + advanced : 'Naprednije', + type : 'Tip linka', + toUrl : 'URL', // MISSING + toAnchor : 'Sidro na ovoj stranici', + toEmail : 'E-Mail', + targetFrame : '<frejm>', + targetPopup : '<popup prozor>', + targetFrameName : 'Target Frame Name', // MISSING + targetPopupName : 'Naziv popup prozora', + popupFeatures : 'Moguænosti popup prozora', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Statusna traka', + popupLocationBar: 'Traka za lokaciju', + popupToolbar : 'Traka sa alatima', + popupMenuBar : 'Izborna traka', + popupFullScreen : 'Cijeli ekran (IE)', + popupScrollBars : 'Scroll traka', + popupDependent : 'Ovisno (Netscape)', + popupLeft : 'Lijeva pozicija', + popupTop : 'Gornja pozicija', + id : 'Id', // MISSING + langDir : 'Smjer pisanja', + langDirLTR : 'S lijeva na desno (LTR)', + langDirRTL : 'S desna na lijevo (RTL)', + acccessKey : 'Pristupna tipka', + name : 'Naziv', + langCode : 'Smjer pisanja', + tabIndex : 'Tab indeks', + advisoryTitle : 'Advisory title', + advisoryContentType : 'Advisory vrsta sadržaja', + cssClasses : 'Klase CSS stilova', + charset : 'Linked Resource Charset', + styles : 'Stil', + rel : 'Relationship', // MISSING + selectAnchor : 'Izaberi sidro', + anchorName : 'Po nazivu sidra', + anchorId : 'Po Id-u elementa', + emailAddress : 'E-Mail Adresa', + emailSubject : 'Subjekt poruke', + emailBody : 'Poruka', + noAnchors : '(Nema dostupnih sidra na stranici)', + noUrl : 'Molimo ukucajte URL link', + noEmail : 'Molimo ukucajte e-mail adresu' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anchor', // MISSING + menu : 'Edit Anchor', // MISSING + title : 'Anchor Properties', // MISSING + name : 'Anchor Name', // MISSING + errorName : 'Please type the anchor name', // MISSING + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Naði', + replace : 'Zamjeni', + findWhat : 'Naði šta:', + replaceWith : 'Zamjeni sa:', + notFoundMsg : 'Traženi tekst nije pronaðen.', + findOptions : 'Find Options', // MISSING + matchCase : 'Uporeðuj velika/mala slova', + matchWord : 'Uporeðuj samo cijelu rijeè', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Zamjeni sve', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Tabela', + title : 'Svojstva tabele', + menu : 'Svojstva tabele', + deleteTable : 'Delete Table', // MISSING + rows : 'Redova', + columns : 'Kolona', + border : 'Okvir', + widthPx : 'piksela', + widthPc : 'posto', + widthUnit : 'width unit', // MISSING + cellSpace : 'Razmak æelija', + cellPad : 'Uvod æelija', + caption : 'Naslov', + summary : 'Summary', // MISSING + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cell', // MISSING + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Briši æelije', + merge : 'Spoji æelije', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', // MISSING + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Briši redove' + }, + + column : + { + menu : 'Column', // MISSING + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Briši kolone' + } + }, + + // Button Dialog. + button : + { + title : 'Button Properties', // MISSING + text : 'Text (Value)', // MISSING + type : 'Type', // MISSING + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', // MISSING + radioTitle : 'Radio Button Properties', // MISSING + value : 'Value', // MISSING + selected : 'Selected' // MISSING + }, + + // Form Dialog. + form : + { + title : 'Form Properties', // MISSING + menu : 'Form Properties', // MISSING + action : 'Action', // MISSING + method : 'Method', // MISSING + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', // MISSING + selectInfo : 'Select Info', // MISSING + opAvail : 'Available Options', // MISSING + value : 'Value', // MISSING + size : 'Size', // MISSING + lines : 'lines', // MISSING + chkMulti : 'Allow multiple selections', // MISSING + opText : 'Text', // MISSING + opValue : 'Value', // MISSING + btnAdd : 'Add', // MISSING + btnModify : 'Modify', // MISSING + btnUp : 'Up', // MISSING + btnDown : 'Down', // MISSING + btnSetValue : 'Set as selected value', // MISSING + btnDelete : 'Delete' // MISSING + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea Properties', // MISSING + cols : 'Columns', // MISSING + rows : 'Rows' // MISSING + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field Properties', // MISSING + name : 'Name', // MISSING + value : 'Value', // MISSING + charWidth : 'Character Width', // MISSING + maxChars : 'Maximum Characters', // MISSING + type : 'Type', // MISSING + typeText : 'Text', // MISSING + typePass : 'Password' // MISSING + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field Properties', // MISSING + name : 'Name', // MISSING + value : 'Value' // MISSING + }, + + // Image Dialog. + image : + { + title : 'Svojstva slike', + titleButton : 'Image Button Properties', // MISSING + menu : 'Svojstva slike', + infoTab : 'Info slike', + btnUpload : 'Šalji na server', + upload : 'Šalji', + alt : 'Tekst na slici', + lockRatio : 'Zakljuèaj odnos', + resetSize : 'Resetuj dimenzije', + border : 'Okvir', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Molimo ukucajte URL od slike.', + linkTab : 'Link', // MISSING + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', // MISSING + propertiesTab : 'Properties', // MISSING + title : 'Flash Properties', // MISSING + chkPlay : 'Auto Play', // MISSING + chkLoop : 'Loop', // MISSING + chkMenu : 'Enable Flash Menu', // MISSING + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Scale', // MISSING + scaleAll : 'Show all', // MISSING + scaleNoBorder : 'No Border', // MISSING + scaleFit : 'Exact Fit', // MISSING + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs dole', + alignAbsMiddle : 'Abs sredina', + alignBaseline : 'Bazno', + alignTextTop : 'Vrh teksta', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Boja pozadine', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Molimo ukucajte URL link', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Check Spelling', // MISSING + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Not in dictionary', // MISSING + changeTo : 'Change to', // MISSING + btnIgnore : 'Ignore', // MISSING + btnIgnoreAll : 'Ignore All', // MISSING + btnReplace : 'Replace', // MISSING + btnReplaceAll : 'Replace All', // MISSING + btnUndo : 'Undo', // MISSING + noSuggestions : '- No suggestions -', // MISSING + progress : 'Spell check in progress...', // MISSING + noMispell : 'Spell check complete: No misspellings found', // MISSING + noChanges : 'Spell check complete: No words changed', // MISSING + oneChange : 'Spell check complete: One word changed', // MISSING + manyChanges : 'Spell check complete: %1 words changed', // MISSING + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING + }, + + smiley : + { + toolbar : 'Smješko', + title : 'Ubaci smješka', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Numerisana lista', + bulletedlist : 'Lista', + indent : 'Poveæaj uvod', + outdent : 'Smanji uvod', + + justify : + { + left : 'Lijevo poravnanje', + center : 'Centralno poravnanje', + right : 'Desno poravnanje', + block : 'Puno poravnanje' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Zalijepi', + cutError : 'Sigurnosne postavke vašeg pretraživaèa ne dozvoljavaju operacije automatskog rezanja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+X).', + copyError : 'Sigurnosne postavke Vašeg pretraživaèa ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+C).', + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Zalijepi iz Word-a', + title : 'Zalijepi iz Word-a', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Zalijepi kao obièan tekst', + title : 'Zalijepi kao obièan tekst' + }, + + templates : + { + button : 'Templates', // MISSING + title : 'Content Templates', // MISSING + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Please select the template to open in the editor', // MISSING + emptyListMsg : '(No templates defined)' // MISSING + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Stil', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', // MISSING + panelTitle : 'Font' + }, + + fontSize : + { + label : 'Velièina', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Velièina' + }, + + colorButton : + { + textColorTitle : 'Boja teksta', + bgColorTitle : 'Boja pozadine', + panelTitle : 'Colors', // MISSING + auto : 'Automatska', + more : 'Više boja...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Document Properties', // MISSING + title : 'Document Properties', // MISSING + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : 'Other...', // MISSING + docTitle : 'Page Title', // MISSING + charset : 'Character Set Encoding', // MISSING + charsetOther : 'Other Character Set Encoding', // MISSING + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Other Document Type Heading', // MISSING + xhtmlDec : 'Include XHTML Declarations', // MISSING + bgColor : 'Background Color', // MISSING + bgImage : 'Background Image URL', // MISSING + bgFixed : 'Non-scrolling (Fixed) Background', // MISSING + txtColor : 'Text Color', // MISSING + margin : 'Page Margins', // MISSING + marginTop : 'Top', // MISSING + marginLeft : 'Left', // MISSING + marginRight : 'Right', // MISSING + marginBottom : 'Bottom', // MISSING + metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING + metaDescription : 'Document Description', // MISSING + metaAuthor : 'Author', // MISSING + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ca.js b/htdocs/includes/ckeditor/_source/lang/ca.js new file mode 100644 index 0000000000000000000000000000000000000000..236dcf2fc16e6bded69d16eacd41925d3cdbc1fc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ca.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Catalan language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ca'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Editor de text enriquit', + + // Toolbar buttons without dialogs. + source : 'Codi font', + newPage : 'Nova pàgina', + save : 'Desa', + preview : 'Visualització prèvia', + cut : 'Retalla', + copy : 'Copia', + paste : 'Enganxa', + print : 'Imprimeix', + underline : 'Subratllat', + bold : 'Negreta', + italic : 'Cursiva', + selectAll : 'Selecciona-ho tot', + removeFormat : 'Elimina Format', + strike : 'Barrat', + subscript : 'Subíndex', + superscript : 'Superíndex', + horizontalrule : 'Insereix línia horitzontal', + pagebreak : 'Insereix salt de pàgina', + pagebreakAlt : 'Salt de pàgina', + unlink : 'Elimina l\'enllaç', + undo : 'Desfés', + redo : 'Refés', + + // Common messages and labels. + common : + { + browseServer : 'Veure servidor', + url : 'URL', + protocol : 'Protocol', + upload : 'Puja', + uploadSubmit : 'Envia-la al servidor', + image : 'Imatge', + flash : 'Flash', + form : 'Formulari', + checkbox : 'Casella de verificació', + radio : 'Botó d\'opció', + textField : 'Camp de text', + textarea : 'Àrea de text', + hiddenField : 'Camp ocult', + button : 'Botó', + select : 'Camp de selecció', + imageButton : 'Botó d\'imatge', + notSet : '<no definit>', + id : 'Id', + name : 'Nom', + langDir : 'Direcció de l\'idioma', + langDirLtr : 'D\'esquerra a dreta (LTR)', + langDirRtl : 'De dreta a esquerra (RTL)', + langCode : 'Codi d\'idioma', + longDescr : 'Descripció llarga de la URL', + cssClass : 'Classes del full d\'estil', + advisoryTitle : 'Títol consultiu', + cssStyle : 'Estil', + ok : 'D\'acord', + cancel : 'Cancel·la', + close : 'Tanca', + preview : 'Previsualitza', + generalTab : 'General', + advancedTab : 'Avançat', + validateNumberFailed : 'Aquest valor no és un número.', + confirmNewPage : 'Els canvis en aquest contingut que no es desin es perdran. Esteu segur que voleu carregar una pàgina nova?', + confirmCancel : 'Algunes opcions s\'han canviat. Esteu segur que voleu tancar la finestra de diàleg?', + options : 'Opcions', + target : 'Destí', + targetNew : 'Nova finestra (_blank)', + targetTop : 'Finestra major (_top)', + targetSelf : 'Mateixa finestra (_self)', + targetParent : 'Finestra pare (_parent)', + langDirLTR : 'D\'esquerra a dreta (LTR)', + langDirRTL : 'De dreta a esquerra (RTL)', + styles : 'Estil', + cssClasses : 'Classes del full d\'estil', + width : 'Amplada', + height : 'Alçada', + align : 'Alineació', + alignLeft : 'Ajusta a l\'esquerra', + alignRight : 'Ajusta a la dreta', + alignCenter : 'Centre', + alignTop : 'Superior', + alignMiddle : 'Centre', + alignBottom : 'Inferior', + invalidHeight : 'L\'alçada ha de ser un nombre.', + invalidWidth : 'L\'amplada ha de ser un nombre.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, no disponible</span>' + }, + + contextmenu : + { + options : 'Opcions del menú contextual' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insereix caràcter especial', + title : 'Selecciona el caràcter especial', + options : 'Opcions de caràcters especials' + }, + + // Link dialog. + link : + { + toolbar : 'Insereix/Edita enllaç', + other : '<altre>', + menu : 'Edita l\'enllaç', + title : 'Enllaç', + info : 'Informació de l\'enllaç', + target : 'Destí', + upload : 'Puja', + advanced : 'Avançat', + type : 'Tipus d\'enllaç', + toUrl : 'URL', + toAnchor : 'Àncora en aquesta pàgina', + toEmail : 'Correu electrònic', + targetFrame : '<marc>', + targetPopup : '<finestra emergent>', + targetFrameName : 'Nom del marc de destí', + targetPopupName : 'Nom finestra popup', + popupFeatures : 'Característiques finestra popup', + popupResizable : 'Redimensionable', + popupStatusBar : 'Barra d\'estat', + popupLocationBar: 'Barra d\'adreça', + popupToolbar : 'Barra d\'eines', + popupMenuBar : 'Barra de menú', + popupFullScreen : 'Pantalla completa (IE)', + popupScrollBars : 'Barres d\'scroll', + popupDependent : 'Depenent (Netscape)', + popupLeft : 'Posició esquerra', + popupTop : 'Posició dalt', + id : 'Id', + langDir : 'Direcció de l\'idioma', + langDirLTR : 'D\'esquerra a dreta (LTR)', + langDirRTL : 'De dreta a esquerra (RTL)', + acccessKey : 'Clau d\'accés', + name : 'Nom', + langCode : 'Direcció de l\'idioma', + tabIndex : 'Index de Tab', + advisoryTitle : 'Títol consultiu', + advisoryContentType : 'Tipus de contingut consultiu', + cssClasses : 'Classes del full d\'estil', + charset : 'Conjunt de caràcters font enllaçat', + styles : 'Estil', + rel : 'Relationship', // MISSING + selectAnchor : 'Selecciona una àncora', + anchorName : 'Per nom d\'àncora', + anchorId : 'Per Id d\'element', + emailAddress : 'Adreça de correu electrònic', + emailSubject : 'Assumpte del missatge', + emailBody : 'Cos del missatge', + noAnchors : '(No hi ha àncores disponibles en aquest document)', + noUrl : 'Si us plau, escrigui l\'enllaç URL', + noEmail : 'Si us plau, escrigui l\'adreça correu electrònic' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Insereix/Edita àncora', + menu : 'Propietats de l\'àncora', + title : 'Propietats de l\'àncora', + name : 'Nom de l\'àncora', + errorName : 'Si us plau, escriviu el nom de l\'ancora', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', + bulletedTitle : 'Bulleted List Properties', + type : 'Type', + start : 'Start', + validateStartNumber :'List start number must be a whole number.', + circle : 'Circle', + disc : 'Disc', + square : 'Square', + none : 'None', + notset : '<not set>', + armenian : 'Armenian numbering', + georgian : 'Georgian numbering (an, ban, gan, etc.)', + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', + decimal : 'Decimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Cerca i reemplaça', + find : 'Cerca', + replace : 'Reemplaça', + findWhat : 'Cerca:', + replaceWith : 'Remplaça amb:', + notFoundMsg : 'El text especificat no s\'ha trobat.', + findOptions : 'Find Options', // MISSING + matchCase : 'Distingeix majúscules/minúscules', + matchWord : 'Només paraules completes', + matchCyclic : 'Match cyclic', + replaceAll : 'Reemplaça-ho tot', + replaceSuccessMsg : '%1 ocurrència/es reemplaçada/es.' + }, + + // Table Dialog + table : + { + toolbar : 'Taula', + title : 'Propietats de la taula', + menu : 'Propietats de la taula', + deleteTable : 'Suprimeix la taula', + rows : 'Files', + columns : 'Columnes', + border : 'Mida vora', + widthPx : 'píxels', + widthPc : 'percentatge', + widthUnit : 'unitat d\'amplada', + cellSpace : 'Espaiat de cel·les', + cellPad : 'Encoixinament de cel·les', + caption : 'Títol', + summary : 'Resum', + headers : 'Capçaleres', + headersNone : 'Cap', + headersColumn : 'Primera columna', + headersRow : 'Primera fila', + headersBoth : 'Ambdues', + invalidRows : 'El nombre de files ha de ser un nombre major que 0.', + invalidCols : 'El nombre de columnes ha de ser un nombre major que 0.', + invalidBorder : 'El gruix de la vora ha de ser un nombre.', + invalidWidth : 'L\'amplada de la taula ha de ser un nombre.', + invalidHeight : 'L\'alçada de la taula ha de ser un nombre.', + invalidCellSpacing : 'L\'espaiat de cel·la ha de ser un nombre.', + invalidCellPadding : 'L\'encoixinament de cel·la ha de ser un nombre.', + + cell : + { + menu : 'Cel·la', + insertBefore : 'Insereix abans', + insertAfter : 'Insereix després', + deleteCell : 'Suprimeix', + merge : 'Fusiona', + mergeRight : 'Fusiona a la dreta', + mergeDown : 'Fusiona avall', + splitHorizontal : 'Divideix horitzontalment', + splitVertical : 'Divideix verticalment', + title : 'Propietats de la cel·la', + cellType : 'Tipus de cel·la', + rowSpan : 'Expansió de files', + colSpan : 'Expansió de columnes', + wordWrap : 'Ajustar al contingut', + hAlign : 'Alineació Horizontal', + vAlign : 'Alineació Vertical', + alignBaseline : 'A la línia base', + bgColor : 'Color de fons', + borderColor : 'Color de la vora', + data : 'Dades', + header : 'Capçalera', + yes : 'Sí', + no : 'No', + invalidWidth : 'L\'amplada de cel·la ha de ser un nombre.', + invalidHeight : 'L\'alçada de cel·la ha de ser un nombre.', + invalidRowSpan : 'L\'expansió de files ha de ser un nombre enter.', + invalidColSpan : 'L\'expansió de columnes ha de ser un nombre enter.', + chooseColor : 'Trieu' + }, + + row : + { + menu : 'Fila', + insertBefore : 'Insereix fila abans de', + insertAfter : 'Insereix fila darrera', + deleteRow : 'Suprimeix una fila' + }, + + column : + { + menu : 'Columna', + insertBefore : 'Insereix columna abans de', + insertAfter : 'Insereix columna darrera', + deleteColumn : 'Suprimeix una columna' + } + }, + + // Button Dialog. + button : + { + title : 'Propietats del botó', + text : 'Text (Valor)', + type : 'Tipus', + typeBtn : 'Botó', + typeSbm : 'Transmet formulari', + typeRst : 'Reinicia formulari' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Propietats de la casella de verificació', + radioTitle : 'Propietats del botó d\'opció', + value : 'Valor', + selected : 'Seleccionat' + }, + + // Form Dialog. + form : + { + title : 'Propietats del formulari', + menu : 'Propietats del formulari', + action : 'Acció', + method : 'Mètode', + encoding : 'Codificació' + }, + + // Select Field Dialog. + select : + { + title : 'Propietats del camp de selecció', + selectInfo : 'Info', + opAvail : 'Opcions disponibles', + value : 'Valor', + size : 'Mida', + lines : 'Línies', + chkMulti : 'Permet múltiples seleccions', + opText : 'Text', + opValue : 'Valor', + btnAdd : 'Afegeix', + btnModify : 'Modifica', + btnUp : 'Amunt', + btnDown : 'Avall', + btnSetValue : 'Selecciona per defecte', + btnDelete : 'Elimina' + }, + + // Textarea Dialog. + textarea : + { + title : 'Propietats de l\'àrea de text', + cols : 'Columnes', + rows : 'Files' + }, + + // Text Field Dialog. + textfield : + { + title : 'Propietats del camp de text', + name : 'Nom', + value : 'Valor', + charWidth : 'Amplada', + maxChars : 'Nombre màxim de caràcters', + type : 'Tipus', + typeText : 'Text', + typePass : 'Contrasenya' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Propietats del camp ocult', + name : 'Nom', + value : 'Valor' + }, + + // Image Dialog. + image : + { + title : 'Propietats de la imatge', + titleButton : 'Propietats del botó d\'imatge', + menu : 'Propietats de la imatge', + infoTab : 'Informació de la imatge', + btnUpload : 'Envia-la al servidor', + upload : 'Puja', + alt : 'Text alternatiu', + lockRatio : 'Bloqueja les proporcions', + resetSize : 'Restaura la mida', + border : 'Vora', + hSpace : 'Espaiat horit.', + vSpace : 'Espaiat vert.', + alertUrl : 'Si us plau, escriviu la URL de la imatge', + linkTab : 'Enllaç', + button2Img : 'Voleu transformar el botó d\'imatge seleccionat en una simple imatge?', + img2Button : 'Voleu transformar la imatge seleccionada en un botó d\'imatge?', + urlMissing : 'Falta la URL de la imatge.', + validateBorder : 'La vora ha de ser un nombre enter.', + validateHSpace : 'HSpace ha de ser un nombre enter.', + validateVSpace : 'VSpace ha de ser un nombre enter.' + }, + + // Flash Dialog + flash : + { + properties : 'Propietats del Flash', + propertiesTab : 'Propietats', + title : 'Propietats del Flash', + chkPlay : 'Reprodució automàtica', + chkLoop : 'Bucle', + chkMenu : 'Habilita menú Flash', + chkFull : 'Permetre la pantalla completa', + scale : 'Escala', + scaleAll : 'Mostra-ho tot', + scaleNoBorder : 'Sense vores', + scaleFit : 'Mida exacta', + access : 'Accés a scripts', + accessAlways : 'Sempre', + accessSameDomain: 'El mateix domini', + accessNever : 'Mai', + alignAbsBottom : 'Abs Bottom', + alignAbsMiddle : 'Abs Middle', + alignBaseline : 'Baseline', + alignTextTop : 'Text Top', + quality : 'Qualitat', + qualityBest : 'La millor', + qualityHigh : 'Alta', + qualityAutoHigh : 'Alta automàtica', + qualityMedium : 'Mitjana', + qualityAutoLow : 'Baixa automàtica', + qualityLow : 'Baixa', + windowModeWindow: 'Finestra', + windowModeOpaque: 'Opaca', + windowModeTransparent : 'Transparent', + windowMode : 'Mode de la finestra', + flashvars : 'Variables de Flash', + bgcolor : 'Color de Fons', + hSpace : 'Espaiat horit.', + vSpace : 'Espaiat vert.', + validateSrc : 'Si us plau, escrigui l\'enllaç URL', + validateHSpace : 'L\'espaiat horitzonatal ha de ser un nombre.', + validateVSpace : 'L\'espaiat vertical ha de ser un nombre.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Revisa l\'ortografia', + title : 'Comprova l\'ortografia', + notAvailable : 'El servei no es troba disponible ara.', + errorLoading : 'Error carregant el servidor: %s.', + notInDic : 'No és al diccionari', + changeTo : 'Reemplaça amb', + btnIgnore : 'Ignora', + btnIgnoreAll : 'Ignora-les totes', + btnReplace : 'Canvia', + btnReplaceAll : 'Canvia-les totes', + btnUndo : 'Desfés', + noSuggestions : 'Cap suggeriment', + progress : 'Verificació ortogràfica en curs...', + noMispell : 'Verificació ortogràfica acabada: no hi ha cap paraula mal escrita', + noChanges : 'Verificació ortogràfica: no s\'ha canviat cap paraula', + oneChange : 'Verificació ortogràfica: s\'ha canviat una paraula', + manyChanges : 'Verificació ortogràfica: s\'han canviat %1 paraules', + ieSpellDownload : 'Verificació ortogràfica no instal·lada. Voleu descarregar-ho ara?' + }, + + smiley : + { + toolbar : 'Icona', + title : 'Insereix una icona', + options : 'Opcions d\'emoticones' + }, + + elementsPath : + { + eleLabel : 'Elements path', + eleTitle : '%1 element' + }, + + numberedlist : 'Llista numerada', + bulletedlist : 'Llista de pics', + indent : 'Augmenta el sagnat', + outdent : 'Redueix el sagnat', + + justify : + { + left : 'Alinea a l\'esquerra', + center : 'Centrat', + right : 'Alinea a la dreta', + block : 'Justificat' + }, + + blockquote : 'Bloc de cita', + + clipboard : + { + title : 'Enganxa', + cutError : 'La seguretat del vostre navegador no permet executar automàticament les operacions de retallar. Si us plau, utilitzeu el teclat (Ctrl+X).', + copyError : 'La seguretat del vostre navegador no permet executar automàticament les operacions de copiar. Si us plau, utilitzeu el teclat (Ctrl+C).', + pasteMsg : 'Si us plau, enganxeu dins del següent camp utilitzant el teclat (<STRONG>Ctrl+V</STRONG>) i premeu <STRONG>OK</STRONG>.', + securityMsg : 'A causa de la configuració de seguretat del vostre navegador, l\'editor no pot accedir al porta-retalls directament. Enganxeu-ho un altre cop en aquesta finestra.', + pasteArea : 'Àrea d\'enganxat' + }, + + pastefromword : + { + confirmCleanup : 'El text que voleu enganxar sembla provenir de Word. Voleu netejar aquest text abans que sigui enganxat?', + toolbar : 'Enganxa des del Word', + title : 'Enganxa des del Word', + error : 'No ha estat possible netejar les dades enganxades degut a un error intern' + }, + + pasteText : + { + button : 'Enganxa com a text no formatat', + title : 'Enganxa com a text no formatat' + }, + + templates : + { + button : 'Plantilles', + title : 'Plantilles de contingut', + options : 'Opcions de plantilla', + insertOption : 'Reemplaça el contingut actual', + selectPromptMsg : 'Seleccioneu una plantilla per usar a l\'editor<br>(per defecte s\'elimina el contingut actual):', + emptyListMsg : '(No hi ha plantilles definides)' + }, + + showBlocks : 'Mostra els blocs', + + stylesCombo : + { + label : 'Estil', + panelTitle : 'Estils de format', + panelTitle1 : 'Estils de bloc', + panelTitle2 : 'Estils incrustats', + panelTitle3 : 'Estils d\'objecte' + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normal', + tag_pre : 'Formatejat', + tag_address : 'Adreça', + tag_h1 : 'Encapçalament 1', + tag_h2 : 'Encapçalament 2', + tag_h3 : 'Encapçalament 3', + tag_h4 : 'Encapçalament 4', + tag_h5 : 'Encapçalament 5', + tag_h6 : 'Encapçalament 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Crea un contenidor Div', + toolbar : 'Crea un contenidor Div', + cssClassInputLabel : 'Classes de la fulla d\'estils', + styleSelectLabel : 'Estil', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Codi d\'idioma', + inlineStyleInputLabel : 'Estil en línia', + advisoryTitleInputLabel : 'Títol de guia', + langDirLabel : 'Direcció de l\'idioma', + langDirLTRLabel : 'D\'esquerra a dreta (LTR)', + langDirRTLLabel : 'De dreta a esquerra (RTL)', + edit : 'Edita Div', + remove : 'Elimina Div' + }, + + iframe : + { + title : 'Propietats IFrame', + toolbar : 'IFrame', + noUrl : 'Si us plau, introduïu la URL de l\'iframe URL', + scrolling : 'Activa les barrres de desplaçament', + border : 'Mostra la vora del marc' + }, + + font : + { + label : 'Tipus de lletra', + voiceLabel : 'Tipus de lletra', + panelTitle : 'Tipus de lletra' + }, + + fontSize : + { + label : 'Mida', + voiceLabel : 'Mida de la lletra', + panelTitle : 'Mida' + }, + + colorButton : + { + textColorTitle : 'Color de Text', + bgColorTitle : 'Color de Fons', + panelTitle : 'Colors', + auto : 'Automàtic', + more : 'Més colors...' + }, + + colors : + { + '000' : 'Negre', + '800000' : 'Granat', + '8B4513' : 'Marró sella', + '2F4F4F' : 'Gris pissarra fosca', + '008080' : 'Blau xarxet', + '000080' : 'Blau marí', + '4B0082' : 'Indi', + '696969' : 'Gris intens', + 'B22222' : 'Maó', + 'A52A2A' : 'Marró (web)', + 'DAA520' : 'Solidago', + '006400' : 'Verd fosc', + '40E0D0' : 'Turquesa', + '0000CD' : 'Atzur', + '800080' : 'Lila', + '808080' : 'Gris', + 'F00' : 'Vermell', + 'FF8C00' : 'Taronja fosc', + 'FFD700' : 'Or', + '008000' : 'Verd', + '0FF' : 'Cian', + '00F' : 'Blau', + 'EE82EE' : 'Lavanda rosat', + 'A9A9A9' : 'Gris clar', + 'FFA07A' : 'Salmó clar', + 'FFA500' : 'Taronja', + 'FFFF00' : 'Groc', + '00FF00' : 'Verd llima', + 'AFEEEE' : 'Blau pàlid', + 'ADD8E6' : 'Blau clar', + 'DDA0DD' : 'Pruna', + 'D3D3D3' : 'Gris clar', + 'FFF0F5' : 'Lavanda rosat', + 'FAEBD7' : 'Blanc antic', + 'FFFFE0' : 'Groc clar', + 'F0FFF0' : 'Verd pàlid', + 'F0FFFF' : 'Blau cel pàlid', + 'F0F8FF' : 'Cian pàlid', + 'E6E6FA' : 'Lavanda', + 'FFF' : 'Blanc' + }, + + scayt : + { + title : 'Spell Check As You Type', + opera_title : 'No és compatible amb l\'Opera', + enable : 'Habilitat l\'SCAYT', + disable : 'Deshabilita SCAYT', + about : 'Quant a l\'SCAYT', + toggle : 'Commuta l\'SCAYT', + options : 'Opcions', + langs : 'Idiomes', + moreSuggestions : 'Més suggerències', + ignore : 'Ignora', + ignoreAll : 'Ignora\'ls tots', + addWord : 'Afegeix una paraula', + emptyDic : 'El nom del diccionari no hauria d\'estar buit.', + + optionsTab : 'Opcions', + allCaps : 'Ignora paraules en majúscules', + ignoreDomainNames : 'Ignora els noms de domini', + mixedCase : 'Ignora paraules amb majúscules i minúscules', + mixedWithDigits : 'Ignora paraules amb números ', + + languagesTab : 'Idiomes', + + dictionariesTab : 'Diccionaris', + dic_field_name : 'Nom del diccionari', + dic_create : 'Crea', + dic_restore : 'Restaura', + dic_delete : 'Elimina', + dic_rename : 'Canvia el nom', + dic_info : 'Inicialment el diccionari d\'usuari s\'emmagatzema en una galeta. De totes maneres, les galetes tenen la mida limitada. Quan el diccionari creix massa, llavors el diccionari es pot emmagatzemar al nostre servidor. Per desar el vostre diccionari personal al nostre servidor heu d.\'especificar un nom pel diccionari. Si ja heu desat un diccionari, teclegeu si us plau el seu nom i cliqueu el botó de restauració.', + + aboutTab : 'Quant a' + }, + + about : + { + title : 'Quant al CKEditor', + dlgTitle : 'Quant al CKEditor', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'Per informació sobre llicències visiteu el web:', + copy : 'Copyright © $1. Tots els drets reservats.' + }, + + maximize : 'Maximitza', + minimize : 'Minimitza', + + fakeobjects : + { + anchor : 'Àncora', + flash : 'Animació Flash', + iframe : 'IFrame', + hiddenfield : 'Camp ocult', + unknown : 'Objecte desconegut' + }, + + resize : 'Arrossegueu per redimensionar', + + colordialog : + { + title : 'Selecciona el color', + options : 'Opcions del color', + highlight : 'Destacat', + selected : 'Seleccionat', + clear : 'Neteja' + }, + + toolbarCollapse : 'Redueix la barra d\'eines', + toolbarExpand : 'Amplia la barra d\'eines', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Direcció del text d\'esquerra a dreta', + rtl : 'Direcció del text de dreta a esquerra' + }, + + docprops : + { + label : 'Propietats del document', + title : 'Propietats del document', + design : 'Design', // MISSING + meta : 'Metadades', + chooseColor : 'Trieu', + other : '<altre>', + docTitle : 'Títol de la pàgina', + charset : 'Codificació de conjunt de caràcters', + charsetOther : 'Una altra codificació de caràcters', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Centreeuropeu', + charsetCT : 'Xinès tradicional (Big5)', + charsetCR : 'Ciríl·lic', + charsetGR : 'Grec', + charsetJP : 'Japonès', + charsetKR : 'Coreà', + charsetTR : 'Turc', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Europeu occidental', + docType : 'Capçalera de tipus de document', + docTypeOther : 'Un altra capçalera de tipus de document', + xhtmlDec : 'Incloure declaracions XHTML', + bgColor : 'Color de fons', + bgImage : 'URL de la imatge de fons', + bgFixed : 'Fons fixe', + txtColor : 'Color de Text', + margin : 'Marges de pàgina', + marginTop : 'Cap', + marginLeft : 'Esquerra', + marginRight : 'Dreta', + marginBottom : 'Peu', + metaKeywords : 'Mots clau per a indexació (separats per coma)', + metaDescription : 'Descripció del document', + metaAuthor : 'Autor', + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/cs.js b/htdocs/includes/ckeditor/_source/lang/cs.js new file mode 100644 index 0000000000000000000000000000000000000000..98a02b03bfc5ae3ce7509fad0bd2eb7c39d602b2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/cs.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Czech language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['cs'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Textový editor, %1', + editorHelp : 'Stiskněte ALT 0 pro nápovědu', + + // ARIA descriptions. + toolbars : 'Panely nástrojů editoru', + editor : 'Textový editor', + + // Toolbar buttons without dialogs. + source : 'Zdroj', + newPage : 'Nová stránka', + save : 'Uložit', + preview : 'Náhled', + cut : 'Vyjmout', + copy : 'Kopírovat', + paste : 'Vložit', + print : 'Tisk', + underline : 'Podtržené', + bold : 'Tučné', + italic : 'Kurzíva', + selectAll : 'Vybrat vše', + removeFormat : 'Odstranit formátování', + strike : 'Přeškrtnuté', + subscript : 'Dolní index', + superscript : 'Horní index', + horizontalrule : 'Vložit vodorovnou linku', + pagebreak : 'Vložit konec stránky', + pagebreakAlt : 'Konec stránky', + unlink : 'Odstranit odkaz', + undo : 'Zpět', + redo : 'Znovu', + + // Common messages and labels. + common : + { + browseServer : 'Vybrat na serveru', + url : 'URL', + protocol : 'Protokol', + upload : 'Odeslat', + uploadSubmit : 'Odeslat na server', + image : 'Obrázek', + flash : 'Flash', + form : 'Formulář', + checkbox : 'Zaškrtávací políčko', + radio : 'Přepínač', + textField : 'Textové pole', + textarea : 'Textová oblast', + hiddenField : 'Skryté pole', + button : 'Tlačítko', + select : 'Seznam', + imageButton : 'Obrázkové tlačítko', + notSet : '<nenastaveno>', + id : 'Id', + name : 'Jméno', + langDir : 'Směr jazyka', + langDirLtr : 'Zleva doprava (LTR)', + langDirRtl : 'Zprava doleva (RTL)', + langCode : 'Kód jazyka', + longDescr : 'Dlouhý popis URL', + cssClass : 'Třída stylu', + advisoryTitle : 'Pomocný titulek', + cssStyle : 'Styl', + ok : 'OK', + cancel : 'Zrušit', + close : 'Zavřít', + preview : 'Náhled', + generalTab : 'Obecné', + advancedTab : 'Rozšířené', + validateNumberFailed : 'Zadaná hodnota není číselná.', + confirmNewPage : 'Jakékoliv neuložené změny obsahu budou ztraceny. Skutečně chcete otevřít novou stránku?', + confirmCancel : 'Některá z nastavení byla změněna. Skutečně chcete zavřít dialogové okno?', + options : 'Nastavení', + target : 'Cíl', + targetNew : 'Nové okno (_blank)', + targetTop : 'Okno nejvyšší úrovně (_top)', + targetSelf : 'Stejné okno (_self)', + targetParent : 'Rodičovské okno (_parent)', + langDirLTR : 'Zleva doprava (LTR)', + langDirRTL : 'Zprava doleva (RTL)', + styles : 'Styly', + cssClasses : 'Třídy stylů', + width : 'Šířka', + height : 'Výška', + align : 'Zarovnání', + alignLeft : 'Vlevo', + alignRight : 'Vpravo', + alignCenter : 'Na střed', + alignTop : 'Nahoru', + alignMiddle : 'Na střed', + alignBottom : 'Dolů', + invalidHeight : 'Zadaná výška musí být číslo.', + invalidWidth : 'Šířka musí být číslo.', + invalidCssLength : 'Hodnota určená pro pole "%1" musí být kladné číslo bez nebo s platnou jednotkou míry CSS (px, %, in, cm, mm, em, ex, pt, nebo pc).', + invalidHtmlLength : 'Hodnota určená pro pole "%1" musí být kladné číslo bez nebo s platnou jednotkou míry HTML (px nebo %).', + invalidInlineStyle : 'Hodnota určená pro řádkový styl se musí skládat z jedné nebo více n-tic ve formátu "název : hodnota", oddělené středníky', + cssLengthTooltip : 'Zadejte číslo jako hodnotu v pixelech nebo číslo s platnou jednotkou CSS (px, %, v cm, mm, em, ex, pt, nebo pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, nedostupné</span>' + }, + + contextmenu : + { + options : 'Nastavení kontextové nabídky' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Vložit speciální znaky', + title : 'Výběr speciálního znaku', + options : 'Nastavení speciálních znaků' + }, + + // Link dialog. + link : + { + toolbar : 'Odkaz', + other : '<jiný>', + menu : 'Změnit odkaz', + title : 'Odkaz', + info : 'Informace o odkazu', + target : 'Cíl', + upload : 'Odeslat', + advanced : 'Rozšířené', + type : 'Typ odkazu', + toUrl : 'URL', + toAnchor : 'Kotva v této stránce', + toEmail : 'E-mail', + targetFrame : '<rámec>', + targetPopup : '<vyskakovací okno>', + targetFrameName : 'Název cílového rámu', + targetPopupName : 'Název vyskakovacího okna', + popupFeatures : 'Vlastnosti vyskakovacího okna', + popupResizable : 'Umožňující měnit velikost', + popupStatusBar : 'Stavový řádek', + popupLocationBar: 'Panel umístění', + popupToolbar : 'Panel nástrojů', + popupMenuBar : 'Panel nabídky', + popupFullScreen : 'Celá obrazovka (IE)', + popupScrollBars : 'Posuvníky', + popupDependent : 'Závislost (Netscape)', + popupLeft : 'Levý okraj', + popupTop : 'Horní okraj', + id : 'Id', + langDir : 'Směr jazyka', + langDirLTR : 'Zleva doprava (LTR)', + langDirRTL : 'Zprava doleva (RTL)', + acccessKey : 'Přístupový klíč', + name : 'Jméno', + langCode : 'Kód jazyka', + tabIndex : 'Pořadí prvku', + advisoryTitle : 'Pomocný titulek', + advisoryContentType : 'Pomocný typ obsahu', + cssClasses : 'Třída stylu', + charset : 'Přiřazená znaková sada', + styles : 'Styl', + rel : 'Vztah', + selectAnchor : 'Vybrat kotvu', + anchorName : 'Podle jména kotvy', + anchorId : 'Podle Id objektu', + emailAddress : 'E-mailová adresa', + emailSubject : 'Předmět zprávy', + emailBody : 'Tělo zprávy', + noAnchors : '(Ve stránce není definována žádná kotva!)', + noUrl : 'Zadejte prosím URL odkazu', + noEmail : 'Zadejte prosím e-mailovou adresu' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Záložka', + menu : 'Vlastnosti záložky', + title : 'Vlastnosti záložky', + name : 'Název záložky', + errorName : 'Zadejte prosím název záložky', + remove : 'Odstranit záložku' + }, + + // List style dialog + list: + { + numberedTitle : 'Vlastnosti číslování', + bulletedTitle : 'Vlastnosti odrážek', + type : 'Typ', + start : 'Počátek', + validateStartNumber :'Číslování musí začínat celým číslem.', + circle : 'Kroužky', + disc : 'Kolečka', + square : 'Čtverce', + none : 'Nic', + notset : '<nenastaveno>', + armenian : 'Arménské', + georgian : 'Gruzínské (an, ban, gan, atd.)', + lowerRoman : 'Malé římské (i, ii, iii, iv, v, atd.)', + upperRoman : 'Velké římské (I, II, III, IV, V, atd.)', + lowerAlpha : 'Malá latinka (a, b, c, d, e, atd.)', + upperAlpha : 'Velká latinka (A, B, C, D, E, atd.)', + lowerGreek : 'Malé řecké (alpha, beta, gamma, atd.)', + decimal : 'Arabská čísla (1, 2, 3, atd.)', + decimalLeadingZero : 'Arabská čísla uvozená nulou (01, 02, 03, atd.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Najít a nahradit', + find : 'Hledat', + replace : 'Nahradit', + findWhat : 'Co hledat:', + replaceWith : 'Čím nahradit:', + notFoundMsg : 'Hledaný text nebyl nalezen.', + findOptions : 'Možnosti hledání', + matchCase : 'Rozlišovat velikost písma', + matchWord : 'Pouze celá slova', + matchCyclic : 'Procházet opakovaně', + replaceAll : 'Nahradit vše', + replaceSuccessMsg : '%1 nahrazení.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabulka', + title : 'Vlastnosti tabulky', + menu : 'Vlastnosti tabulky', + deleteTable : 'Smazat tabulku', + rows : 'Řádky', + columns : 'Sloupce', + border : 'Ohraničení', + widthPx : 'bodů', + widthPc : 'procent', + widthUnit : 'jednotka šířky', + cellSpace : 'Vzdálenost buněk', + cellPad : 'Odsazení obsahu v buňce', + caption : 'Popis', + summary : 'Souhrn', + headers : 'Záhlaví', + headersNone : 'Žádné', + headersColumn : 'První sloupec', + headersRow : 'První řádek', + headersBoth : 'Obojí', + invalidRows : 'Počet řádků musí být číslo větší než 0.', + invalidCols : 'Počet sloupců musí být číslo větší než 0.', + invalidBorder : 'Zdaná velikost okraje musí být číselná.', + invalidWidth : 'Šířka tabulky musí být číslo.', + invalidHeight : 'Zadaná výška tabulky musí být číselná.', + invalidCellSpacing : 'Zadaná vzdálenost buněk musí být číselná.', + invalidCellPadding : 'Zadané odsazení obsahu v buňce musí být číselné.', + + cell : + { + menu : 'Buňka', + insertBefore : 'Vložit buňku před', + insertAfter : 'Vložit buňku za', + deleteCell : 'Smazat buňky', + merge : 'Sloučit buňky', + mergeRight : 'Sloučit doprava', + mergeDown : 'Sloučit dolů', + splitHorizontal : 'Rozdělit buňky vodorovně', + splitVertical : 'Rozdělit buňky svisle', + title : 'Vlastnosti buňky', + cellType : 'Typ buňky', + rowSpan : 'Spojit řádky', + colSpan : 'Spojit sloupce', + wordWrap : 'Zalamování', + hAlign : 'Vodorovné zarovnání', + vAlign : 'Svislé zarovnání', + alignBaseline : 'Na účaří', + bgColor : 'Barva pozadí', + borderColor : 'Barva okraje', + data : 'Data', + header : 'Hlavička', + yes : 'Ano', + no : 'Ne', + invalidWidth : 'Šířka buňky musí být číslo.', + invalidHeight : 'Zadaná výška buňky musí být číslená.', + invalidRowSpan : 'Zadaný počet sloučených řádků musí být celé číslo.', + invalidColSpan : 'Zadaný počet sloučených sloupců musí být celé číslo.', + chooseColor : 'Výběr' + }, + + row : + { + menu : 'Řádek', + insertBefore : 'Vložit řádek před', + insertAfter : 'Vložit řádek za', + deleteRow : 'Smazat řádky' + }, + + column : + { + menu : 'Sloupec', + insertBefore : 'Vložit sloupec před', + insertAfter : 'Vložit sloupec za', + deleteColumn : 'Smazat sloupec' + } + }, + + // Button Dialog. + button : + { + title : 'Vlastnosti tlačítka', + text : 'Popisek', + type : 'Typ', + typeBtn : 'Tlačítko', + typeSbm : 'Odeslat', + typeRst : 'Obnovit' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Vlastnosti zaškrtávacího políčka', + radioTitle : 'Vlastnosti přepínače', + value : 'Hodnota', + selected : 'Zaškrtnuto' + }, + + // Form Dialog. + form : + { + title : 'Vlastnosti formuláře', + menu : 'Vlastnosti formuláře', + action : 'Akce', + method : 'Metoda', + encoding : 'Kódování' + }, + + // Select Field Dialog. + select : + { + title : 'Vlastnosti seznamu', + selectInfo : 'Info', + opAvail : 'Dostupná nastavení', + value : 'Hodnota', + size : 'Velikost', + lines : 'Řádků', + chkMulti : 'Povolit mnohonásobné výběry', + opText : 'Text', + opValue : 'Hodnota', + btnAdd : 'Přidat', + btnModify : 'Změnit', + btnUp : 'Nahoru', + btnDown : 'Dolů', + btnSetValue : 'Nastavit jako vybranou hodnotu', + btnDelete : 'Smazat' + }, + + // Textarea Dialog. + textarea : + { + title : 'Vlastnosti textové oblasti', + cols : 'Sloupců', + rows : 'Řádků' + }, + + // Text Field Dialog. + textfield : + { + title : 'Vlastnosti textového pole', + name : 'Název', + value : 'Hodnota', + charWidth : 'Šířka ve znacích', + maxChars : 'Maximální počet znaků', + type : 'Typ', + typeText : 'Text', + typePass : 'Heslo' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Vlastnosti skrytého pole', + name : 'Název', + value : 'Hodnota' + }, + + // Image Dialog. + image : + { + title : 'Vlastnosti obrázku', + titleButton : 'Vlastností obrázkového tlačítka', + menu : 'Vlastnosti obrázku', + infoTab : 'Informace o obrázku', + btnUpload : 'Odeslat na server', + upload : 'Odeslat', + alt : 'Alternativní text', + lockRatio : 'Zámek', + resetSize : 'Původní velikost', + border : 'Okraje', + hSpace : 'Horizontální mezera', + vSpace : 'Vertikální mezera', + alertUrl : 'Zadejte prosím URL obrázku', + linkTab : 'Odkaz', + button2Img : 'Skutečně chcete převést zvolené obrázkové tlačítko na obyčejný obrázek?', + img2Button : 'Skutečně chcete převést zvolený obrázek na obrázkové tlačítko?', + urlMissing : 'Zadané URL zdroje obrázku nebylo nalezeno.', + validateBorder : 'Okraj musí být nastaven v celých číslech.', + validateHSpace : 'Horizontální mezera musí být nastavena v celých číslech.', + validateVSpace : 'Vertikální mezera musí být nastavena v celých číslech.' + }, + + // Flash Dialog + flash : + { + properties : 'Vlastnosti Flashe', + propertiesTab : 'Vlastnosti', + title : 'Vlastnosti Flashe', + chkPlay : 'Automatické spuštění', + chkLoop : 'Opakování', + chkMenu : 'Nabídka Flash', + chkFull : 'Povolit celoobrazovkový režim', + scale : 'Zobrazit', + scaleAll : 'Zobrazit vše', + scaleNoBorder : 'Bez okraje', + scaleFit : 'Přizpůsobit', + access : 'Přístup ke skriptu', + accessAlways : 'Vždy', + accessSameDomain: 'Ve stejné doméně', + accessNever : 'Nikdy', + alignAbsBottom : 'Zcela dolů', + alignAbsMiddle : 'Doprostřed', + alignBaseline : 'Na účaří', + alignTextTop : 'Na horní okraj textu', + quality : 'Kvalita', + qualityBest : 'Nejlepší', + qualityHigh : 'Vysoká', + qualityAutoHigh : 'Vysoká - auto', + qualityMedium : 'Střední', + qualityAutoLow : 'Nízká - auto', + qualityLow : 'Nejnižší', + windowModeWindow: 'Okno', + windowModeOpaque: 'Neprůhledné', + windowModeTransparent : 'Průhledné', + windowMode : 'Režim okna', + flashvars : 'Proměnné pro Flash', + bgcolor : 'Barva pozadí', + hSpace : 'Horizontální mezera', + vSpace : 'Vertikální mezera', + validateSrc : 'Zadejte prosím URL odkazu', + validateHSpace : 'Zadaná horizontální mezera musí být číslo.', + validateVSpace : 'Zadaná vertikální mezera musí být číslo.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Zkontrolovat pravopis', + title : 'Kontrola pravopisu', + notAvailable : 'Omlouváme se, ale služba nyní není dostupná.', + errorLoading : 'Chyba nahrávání služby aplikace z: %s.', + notInDic : 'Není ve slovníku', + changeTo : 'Změnit na', + btnIgnore : 'Přeskočit', + btnIgnoreAll : 'Přeskakovat vše', + btnReplace : 'Zaměnit', + btnReplaceAll : 'Zaměňovat vše', + btnUndo : 'Zpět', + noSuggestions : '- žádné návrhy -', + progress : 'Probíhá kontrola pravopisu...', + noMispell : 'Kontrola pravopisu dokončena: Žádné pravopisné chyby nenalezeny', + noChanges : 'Kontrola pravopisu dokončena: Beze změn', + oneChange : 'Kontrola pravopisu dokončena: Jedno slovo změněno', + manyChanges : 'Kontrola pravopisu dokončena: %1 slov změněno', + ieSpellDownload : 'Kontrola pravopisu není nainstalována. Chcete ji nyní stáhnout?' + }, + + smiley : + { + toolbar : 'Smajlíci', + title : 'Vkládání smajlíků', + options : 'Nastavení smajlíků' + }, + + elementsPath : + { + eleLabel : 'Cesta objektu', + eleTitle : '%1 objekt' + }, + + numberedlist : 'Číslování', + bulletedlist : 'Odrážky', + indent : 'Zvětšit odsazení', + outdent : 'Zmenšit odsazení', + + justify : + { + left : 'Zarovnat vlevo', + center : 'Zarovnat na střed', + right : 'Zarovnat vpravo', + block : 'Zarovnat do bloku' + }, + + blockquote : 'Citace', + + clipboard : + { + title : 'Vložit', + cutError : 'Bezpečnostní nastavení vašeho prohlížeče nedovolují editoru spustit funkci pro vyjmutí zvoleného textu do schránky. Prosím vyjměte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+X).', + copyError : 'Bezpečnostní nastavení vašeho prohlížeče nedovolují editoru spustit funkci pro kopírování zvoleného textu do schránky. Prosím zkopírujte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+C).', + pasteMsg : 'Do následujícího pole vložte požadovaný obsah pomocí klávesnice (<STRONG>Ctrl/Cmd+V</STRONG>) a stiskněte <STRONG>OK</STRONG>.', + securityMsg : 'Z důvodů nastavení bezpečnosti vašeho prohlížeče nemůže editor přistupovat přímo do schránky. Obsah schránky prosím vložte znovu do tohoto okna.', + pasteArea : 'Oblast vkládání' + }, + + pastefromword : + { + confirmCleanup : 'Jak je vidět, vkládaný text je kopírován z Wordu. Chcete jej před vložením vyčistit?', + toolbar : 'Vložit z Wordu', + title : 'Vložit z Wordu', + error : 'Z důvodu vnitřní chyby nebylo možné provést vyčištění vkládaného textu.' + }, + + pasteText : + { + button : 'Vložit jako čistý text', + title : 'Vložit jako čistý text' + }, + + templates : + { + button : 'Šablony', + title : 'Šablony obsahu', + options : 'Nastavení šablon', + insertOption : 'Nahradit aktuální obsah', + selectPromptMsg : 'Prosím zvolte šablonu pro otevření v editoru<br>(aktuální obsah editoru bude ztracen):', + emptyListMsg : '(Není definována žádná šablona)' + }, + + showBlocks : 'Ukázat bloky', + + stylesCombo : + { + label : 'Styl', + panelTitle : 'Formátovací styly', + panelTitle1 : 'Blokové styly', + panelTitle2 : 'Řádkové styly', + panelTitle3 : 'Objektové styly' + }, + + format : + { + label : 'Formát', + panelTitle : 'Formát', + + tag_p : 'Normální', + tag_pre : 'Naformátováno', + tag_address : 'Adresa', + tag_h1 : 'Nadpis 1', + tag_h2 : 'Nadpis 2', + tag_h3 : 'Nadpis 3', + tag_h4 : 'Nadpis 4', + tag_h5 : 'Nadpis 5', + tag_h6 : 'Nadpis 6', + tag_div : 'Normální (DIV)' + }, + + div : + { + title : 'Vytvořit Div kontejner', + toolbar : 'Vytvořit Div kontejner', + cssClassInputLabel : 'Třídy stylů', + styleSelectLabel : 'Styly', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Kód jazyka', + inlineStyleInputLabel : 'Vnitřní styly', + advisoryTitleInputLabel : 'Nápovědní titulek', + langDirLabel : 'Směr jazyka', + langDirLTRLabel : 'Zleva doprava (LTR)', + langDirRTLLabel : 'Zprava doleva (RTL)', + edit : 'Změnit Div', + remove : 'Odstranit Div' + }, + + iframe : + { + title : 'Vlastnosti IFrame', + toolbar : 'IFrame', + noUrl : 'Zadejte prosím URL obsahu pro IFrame', + scrolling : 'Zapnout posuvníky', + border : 'Zobrazit okraj' + }, + + font : + { + label : 'Písmo', + voiceLabel : 'Písmo', + panelTitle : 'Písmo' + }, + + fontSize : + { + label : 'Velikost', + voiceLabel : 'Velikost písma', + panelTitle : 'Velikost' + }, + + colorButton : + { + textColorTitle : 'Barva textu', + bgColorTitle : 'Barva pozadí', + panelTitle : 'Barvy', + auto : 'Automaticky', + more : 'Více barev...' + }, + + colors : + { + '000' : 'Černá', + '800000' : 'Kaštanová', + '8B4513' : 'Sedlová hněď', + '2F4F4F' : 'Tmavě bledě šedá', + '008080' : 'Čírka', + '000080' : 'Námořnická modř', + '4B0082' : 'Inkoustová', + '696969' : 'Tmavě šedá', + 'B22222' : 'Pálená cihla', + 'A52A2A' : 'Hnědá', + 'DAA520' : 'Zlatý prut', + '006400' : 'Tmavě zelená', + '40E0D0' : 'Tyrkisová', + '0000CD' : 'Středně modrá', + '800080' : 'Purpurová', + '808080' : 'Šedá', + 'F00' : 'Červená', + 'FF8C00' : 'Tmavě oranžová', + 'FFD700' : 'Zlatá', + '008000' : 'Zelená', + '0FF' : 'Azurová', + '00F' : 'Modrá', + 'EE82EE' : 'Fialová', + 'A9A9A9' : 'Kalně šedá', + 'FFA07A' : 'Světle lososová', + 'FFA500' : 'Oranžová', + 'FFFF00' : 'Žlutá', + '00FF00' : 'Limetková', + 'AFEEEE' : 'Bledě tyrkisová', + 'ADD8E6' : 'Světle modrá', + 'DDA0DD' : 'Švestková', + 'D3D3D3' : 'Světle šedá', + 'FFF0F5' : 'Levandulově ruměnná', + 'FAEBD7' : 'Antická bílá', + 'FFFFE0' : 'Světle žlutá', + 'F0FFF0' : 'Medová rosa', + 'F0FFFF' : 'Azurová', + 'F0F8FF' : 'Alenčina modrá', + 'E6E6FA' : 'Levandulová', + 'FFF' : 'Bílá' + }, + + scayt : + { + title : 'Kontrola pravopisu během psaní (SCAYT)', + opera_title : 'Toto Opera nepodporuje', + enable : 'Zapnout SCAYT', + disable : 'Vypnout SCAYT', + about : 'O aplikaci SCAYT', + toggle : 'Vypínač SCAYT', + options : 'Nastavení', + langs : 'Jazyky', + moreSuggestions : 'Více návrhů', + ignore : 'Přeskočit', + ignoreAll : 'Přeskočit vše', + addWord : 'Přidat slovo', + emptyDic : 'Název slovníku nesmí být prázdný.', + + optionsTab : 'Nastavení', + allCaps : 'Ignorovat slova tvořená velkými písmeny', + ignoreDomainNames : 'Ignorovat doménová jména', + mixedCase : 'Ignorovat slova obsahující různou velikost písma', + mixedWithDigits : 'Ignorovat slova obsahující čísla', + + languagesTab : 'Jazyky', + + dictionariesTab : 'Slovníky', + dic_field_name : 'Název slovníku', + dic_create : 'Vytvořit', + dic_restore : 'Obnovit', + dic_delete : 'Smazat', + dic_rename : 'Přejmenovat', + dic_info : 'Zpočátku se uživatelský slovník ukládá do cookies ve vašem prohlížeči. Ovšem cookies mají omezenou velikost, takže když slovník dosáhne velikosti, kdy se již do cookies nevejde, může být uložen na našem serveru. Chcete-li uložit váš osobní slovník na našem serveru, je třeba slovník nejdříve pojmenovat. Máte-li již slovník pojmenován a uložen, zadejte jeho název a klepněte na tlačítko Obnovit.', + + aboutTab : 'O aplikaci' + }, + + about : + { + title : 'O aplikaci CKEditor', + dlgTitle : 'O aplikaci CKEditor', + help : 'Prohlédněte si $1 pro nápovědu.', + userGuide : 'Uživatelská příručka CKEditor', + moreInfo : 'Pro informace o lincenci navštivte naši webovou stránku:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Maximalizovat', + minimize : 'Minimalizovat', + + fakeobjects : + { + anchor : 'Záložka', + flash : 'Flash animace', + iframe : 'IFrame', + hiddenfield : 'Skryté pole', + unknown : 'Neznámý objekt' + }, + + resize : 'Uchopit pro změnu velikosti', + + colordialog : + { + title : 'Výběr barvy', + options : 'Nastavení barvy', + highlight : 'Zvýraznit', + selected : 'Vybráno', + clear : 'Vyčistit' + }, + + toolbarCollapse : 'Skrýt panel nástrojů', + toolbarExpand : 'Zobrazit panel nástrojů', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Schránka/Zpět', + editing : 'Úpravy', + forms : 'Formuláře', + basicstyles : 'Základní styly', + paragraph : 'Odstavec', + links : 'Odkazy', + insert : 'Vložit', + styles : 'Styly', + colors : 'Barvy', + tools : 'Nástroje' + }, + + bidi : + { + ltr : 'Směr textu zleva doprava', + rtl : 'Směr textu zprava doleva' + }, + + docprops : + { + label : 'Vlastnosti dokumentu', + title : 'Vlastnosti dokumentu', + design : 'Vzhled', + meta : 'Metadata', + chooseColor : 'Výběr', + other : '<jiný>', + docTitle : 'Titulek stránky', + charset : 'Znaková sada', + charsetOther : 'Další znaková sada', + charsetASCII : 'ASCII', + charsetCE : 'Středoevropské jazyky', + charsetCT : 'Tradiční čínština (Big5)', + charsetCR : 'Cyrilice', + charsetGR : 'Řečtina', + charsetJP : 'Japonština', + charsetKR : 'Korejština', + charsetTR : 'Turečtina', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Západoevropské jazyky', + docType : 'Typ dokumentu', + docTypeOther : 'Jiný typ dokumetu', + xhtmlDec : 'Zahrnout deklarace XHTML', + bgColor : 'Barva pozadí', + bgImage : 'URL obrázku na pozadí', + bgFixed : 'Nerolovatelné (Pevné) pozadí', + txtColor : 'Barva textu', + margin : 'Okraje stránky', + marginTop : 'Horní', + marginLeft : 'Levý', + marginRight : 'Pravý', + marginBottom : 'Dolní', + metaKeywords : 'Klíčová slova (oddělená čárkou)', + metaDescription : 'Popis dokumentu', + metaAuthor : 'Autor', + metaCopyright : 'Autorská práva', + previewHtml : '<p>Toto je <strong>ukázkový text</strong>. Používáte <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/cy.js b/htdocs/includes/ckeditor/_source/lang/cy.js new file mode 100644 index 0000000000000000000000000000000000000000..73590ad6acd19c072f1f35e59d9d7a01906d93f7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/cy.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Welsh language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['cy'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Bariau offer golygydd', + editor : 'Golygydd Testun Cyfoethog', + + // Toolbar buttons without dialogs. + source : 'HTML', + newPage : 'Tudalen newydd', + save : 'Cadw', + preview : 'Rhagolwg', + cut : 'Torri', + copy : 'Copïo', + paste : 'Gludo', + print : 'Argraffu', + underline : 'Tanlinellu', + bold : 'Bras', + italic : 'Italig', + selectAll : 'Dewis Popeth', + removeFormat : 'Tynnu Fformat', + strike : 'Llinell Trwyddo', + subscript : 'Is-sgript', + superscript : 'Uwchsgript', + horizontalrule : 'Mewnosod Llinell Lorweddol', + pagebreak : 'Mewnosod Toriad Tudalen i Argraffu', + pagebreakAlt : 'Toriad Tudalen', + unlink : 'Datgysylltu', + undo : 'Dadwneud', + redo : 'Ailadrodd', + + // Common messages and labels. + common : + { + browseServer : 'Pori\'r Gweinydd', + url : 'URL', + protocol : 'Protocol', + upload : 'Lanlwytho', + uploadSubmit : 'Anfon i\'r Gweinydd', + image : 'Delwedd', + flash : 'Flash', + form : 'Ffurflen', + checkbox : 'Blwch ticio', + radio : 'Botwm Radio', + textField : 'Maes Testun', + textarea : 'Ardal Testun', + hiddenField : 'Maes Cudd', + button : 'Botwm', + select : 'Maes Dewis', + imageButton : 'Botwm Delwedd', + notSet : '<heb osod>', + id : 'Id', + name : 'Name', + langDir : 'Cyfeiriad Iaith', + langDirLtr : 'Chwith i\'r Dde (LTR)', + langDirRtl : 'Dde i\'r Chwith (RTL)', + langCode : 'Cod Iaith', + longDescr : 'URL Disgrifiad Hir', + cssClass : 'Dosbarth Dalen Arddull', + advisoryTitle : 'Teitl Cynghorol', + cssStyle : 'Arddull', + ok : 'Iawn', + cancel : 'Diddymu', + close : 'Cau', + preview : 'Rhagolwg', + generalTab : 'Cyffredinol', + advancedTab : 'Uwch', + validateNumberFailed : 'Nid yw\'r gwerth hwn yn rhif.', + confirmNewPage : 'Byddwch yn colli unrhyw newidiadau i\'r cynnwys sydd heb eu cadw. A ydych am barhau i lwytho tudalen newydd?', + confirmCancel : 'Mae rhai o\'r opsiynau wedi\'u newid. A ydych wir am gau\'r deialog?', + options : 'Opsiynau', + target : 'Targed', + targetNew : 'Ffenest Newydd (_blank)', + targetTop : 'Ffenest ar y Brig (_top)', + targetSelf : 'Yr un Ffenest (_self)', + targetParent : 'Ffenest y Rhiant (_parent)', + langDirLTR : 'Chwith i\'r Dde (LTR)', + langDirRTL : 'Dde i\'r Chwith (RTL)', + styles : 'Arddull', + cssClasses : 'Dosbarthiadau Ffeil Ddiwyg', + width : 'Lled', + height : 'Uchder', + align : 'Alinio', + alignLeft : 'Chwith', + alignRight : 'Dde', + alignCenter : 'Canol', + alignTop : 'Brig', + alignMiddle : 'Canol', + alignBottom : 'Gwaelod', + invalidHeight : 'Rhaid i\'r Uchder fod yn rhif.', + invalidWidth : 'Rhaid i\'r Lled fod yn rhif.', + invalidCssLength : 'Mae\'n rhaid i\'r gwerth ar gyfer maes "%1" fod yn rhif positif gyda neu heb uned fesuriad CSS dilys (px, %, in, cm, mm, em, ex, pt, neu pc).', + invalidHtmlLength : 'Mae\'n rhaid i\'r gwerth ar gyfer maes "%1" fod yn rhif positif gyda neu heb uned fesuriad HTML dilys (px neu %).', + invalidInlineStyle : 'Mae\'n rhaid i\'r gwerth ar gyfer arddull mewn-llinell gynnwys un set neu fwy ar y fformat "enw:gwerth", wedi\'u gwahanu gyda hanner colon.', + cssLengthTooltip : 'Rhowch rif ar gyfer gwerth mewn picsel neu rhif gydag uned CSS dilys (px, %, in, cm, mm, em, pt neu pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, ddim ar gael</span>' + }, + + contextmenu : + { + options : 'Opsiynau Dewislen Cyd-destun' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Mewnosod Nodau Arbennig', + title : 'Dewis Nod Arbennig', + options : 'Opsiynau Nodau Arbennig' + }, + + // Link dialog. + link : + { + toolbar : 'Dolen', + other : '<eraill>', + menu : 'Golygu Dolen', + title : 'Dolen', + info : 'Gwyb ar y Ddolen', + target : 'Targed', + upload : 'Lanlwytho', + advanced : 'Uwch', + type : 'Math y Ddolen', + toUrl : 'URL', + toAnchor : 'Dolen at angor yn y testun', + toEmail : 'E-bost', + targetFrame : '<ffrâm>', + targetPopup : '<ffenestr bop>', + targetFrameName : 'Enw Ffrâm y Targed', + targetPopupName : 'Enw Ffenestr Bop', + popupFeatures : 'Nodweddion Ffenestr Bop', + popupResizable : 'Ailfeintiol', + popupStatusBar : 'Bar Statws', + popupLocationBar: 'Bar Safle', + popupToolbar : 'Bar Offer', + popupMenuBar : 'Dewislen', + popupFullScreen : 'Sgrin Llawn (IE)', + popupScrollBars : 'Barrau Sgrolio', + popupDependent : 'Dibynnol (Netscape)', + popupLeft : 'Safle Chwith', + popupTop : 'Safle Top', + id : 'Id', + langDir : 'Cyfeiriad Iaith', + langDirLTR : 'Chwith i\'r Dde (LTR)', + langDirRTL : 'Dde i\'r Chwith (RTL)', + acccessKey : 'Allwedd Mynediad', + name : 'Enw', + langCode : 'Cod Iaith', + tabIndex : 'Indecs Tab', + advisoryTitle : 'Teitl Cynghorol', + advisoryContentType : 'Math y Cynnwys Cynghorol', + cssClasses : 'Dosbarthiadau Dalen Arddull', + charset : 'Set nodau\'r Adnodd Cysylltiedig', + styles : 'Arddull', + rel : 'Perthynas', + selectAnchor : 'Dewiswch Angor', + anchorName : 'Gan Enw\'r Angor', + anchorId : 'Gan Id yr Elfen', + emailAddress : 'Cyfeiriad E-Bost', + emailSubject : 'Testun y Message Subject', + emailBody : 'Pwnc y Neges', + noAnchors : '(Dim angorau ar gael yn y ddogfen)', + noUrl : 'Teipiwch URL y ddolen', + noEmail : 'Teipiwch gyfeiriad yr e-bost' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Angor', + menu : 'Golygwch yr Angor', + title : 'Priodweddau\'r Angor', + name : 'Enw\'r Angor', + errorName : 'Teipiwch enw\'r angor', + remove : 'Tynnwch yr Angor' + }, + + // List style dialog + list: + { + numberedTitle : 'Priodweddau Rhestr Rifol', + bulletedTitle : 'Priodweddau Rhestr Fwled', + type : 'Math', + start : 'Dechrau', + validateStartNumber :'Rhaid bod y rhif cychwynnol yn gyfanrif.', + circle : 'Cylch', + disc : 'Disg', + square : 'Sgwâr', + none : 'Dim', + notset : '<heb osod>', + armenian : 'Rhifau Armeneg', + georgian : 'Rhifau Sioraidd (an, ban, gan, ayyb.)', + lowerRoman : 'Rhufeinig Is (i, ii, iii, iv, v, ayyb.)', + upperRoman : 'Rhufeinig Uwch (I, II, III, IV, V, ayyb.)', + lowerAlpha : 'Alffa Is (a, b, c, d, e, ayyb.)', + upperAlpha : 'Alffa Uwch (A, B, C, D, E, ayyb.)', + lowerGreek : 'Groeg Is (alpha, beta, gamma, ayyb.)', + decimal : 'Degol (1, 2, 3, ayyb.)', + decimalLeadingZero : 'Degol â sero arweiniol (01, 02, 03, ayyb.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Chwilio ac Amnewid', + find : 'Chwilio', + replace : 'Amnewid', + findWhat : 'Chwilio\'r term:', + replaceWith : 'Amnewid gyda:', + notFoundMsg : 'Nid oedd y testun wedi\'i ddarganfod.', + findOptions : 'Chwilio Opsiynau', + matchCase : 'Cyfateb i\'r cas', + matchWord : 'Cyfateb gair cyfan', + matchCyclic : 'Cyfateb cylchol', + replaceAll : 'Amnewid pob un', + replaceSuccessMsg : 'Amnewidiwyd %1 achlysur.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabl', + title : 'Nodweddion Tabl', + menu : 'Nodweddion Tabl', + deleteTable : 'Dileu Tabl', + rows : 'Rhesi', + columns : 'Colofnau', + border : 'Maint yr Ymyl', + widthPx : 'picsel', + widthPc : 'y cant', + widthUnit : 'uned lled', + cellSpace : 'Bylchu\'r gell', + cellPad : 'Padio\'r gell', + caption : 'Pennawd', + summary : 'Crynodeb', + headers : 'Penynnau', + headersNone : 'Dim', + headersColumn : 'Colofn gyntaf', + headersRow : 'Rhes gyntaf', + headersBoth : 'Y Ddau', + invalidRows : 'Mae\'n rhaid cael o leiaf un rhes.', + invalidCols : 'Mae\'n rhaid cael o leiaf un golofn.', + invalidBorder : 'Mae\'n rhaid i faint yr ymyl fod yn rhif.', + invalidWidth : 'Mae\'n rhaid i led y tabl fod yn rhif.', + invalidHeight : 'Mae\'n rhaid i uchder y tabl fod yn rhif.', + invalidCellSpacing : 'Mae\'n rhaid i fylchiad y gell fod yn rhif positif.', + invalidCellPadding : 'Mae\'n rhaid i badiad y gell fod yn rhif positif.', + + cell : + { + menu : 'Cell', + insertBefore : 'Mewnosod Cell Cyn', + insertAfter : 'Mewnosod Cell Ar Ôl', + deleteCell : 'Dileu Celloedd', + merge : 'Cyfuno Celloedd', + mergeRight : 'Cyfuno i\'r Dde', + mergeDown : 'Cyfuno i Lawr', + splitHorizontal : 'Hollti\'r Gell yn Lorweddol', + splitVertical : 'Hollti\'r Gell yn Fertigol', + title : 'Priodweddau\'r Gell', + cellType : 'Math y Gell', + rowSpan : 'Rhychwant Rhesi', + colSpan : 'Rhychwant Colofnau', + wordWrap : 'Lapio Geiriau', + hAlign : 'Aliniad Llorweddol', + vAlign : 'Aliniad Fertigol', + alignBaseline : 'Baslinell', + bgColor : 'Lliw Cefndir', + borderColor : 'Lliw Ymyl', + data : 'Data', + header : 'Pennyn', + yes : 'Ie', + no : 'Na', + invalidWidth : 'Mae\'n rhaid i led y gell fod yn rhif.', + invalidHeight : 'Mae\'n rhaid i uchder y gell fod yn rhif.', + invalidRowSpan : 'Mae\'n rhaid i rychwant y rhesi fod yn gyfanrif.', + invalidColSpan : 'Mae\'n rhaid i rychwant y colofnau fod yn gyfanrif.', + chooseColor : 'Choose' + }, + + row : + { + menu : 'Rhes', + insertBefore : 'Mewnosod Rhes Cyn', + insertAfter : 'Mewnosod Rhes Ar Ôl', + deleteRow : 'Dileu Rhesi' + }, + + column : + { + menu : 'Colofn', + insertBefore : 'Mewnosod Colofn Cyn', + insertAfter : 'Mewnosod Colofn Ar Ôl', + deleteColumn : 'Dileu Colofnau' + } + }, + + // Button Dialog. + button : + { + title : 'Priodweddau Botymau', + text : 'Testun (Gwerth)', + type : 'Math', + typeBtn : 'Botwm', + typeSbm : 'Gyrru', + typeRst : 'Ailosod' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Priodweddau Blwch Ticio', + radioTitle : 'Priodweddau Botwm Radio', + value : 'Gwerth', + selected : 'Dewiswyd' + }, + + // Form Dialog. + form : + { + title : 'Priodweddau Ffurflen', + menu : 'Priodweddau Ffurflen', + action : 'Gweithred', + method : 'Dull', + encoding : 'Amgodio' + }, + + // Select Field Dialog. + select : + { + title : 'Priodweddau Maes Dewis', + selectInfo : 'Gwyb Dewis', + opAvail : 'Opsiynau ar Gael', + value : 'Gwerth', + size : 'Maint', + lines : 'llinellau', + chkMulti : 'Caniatàu aml-ddewisiadau', + opText : 'Testun', + opValue : 'Gwerth', + btnAdd : 'Ychwanegu', + btnModify : 'Newid', + btnUp : 'Lan', + btnDown : 'Lawr', + btnSetValue : 'Gosod fel gwerth a ddewiswyd', + btnDelete : 'Dileu' + }, + + // Textarea Dialog. + textarea : + { + title : 'Priodweddau Ardal Testun', + cols : 'Colofnau', + rows : 'Rhesi' + }, + + // Text Field Dialog. + textfield : + { + title : 'Priodweddau Maes Testun', + name : 'Enw', + value : 'Gwerth', + charWidth : 'Lled Nod', + maxChars : 'Uchafswm y Nodau', + type : 'Math', + typeText : 'Testun', + typePass : 'Cyfrinair' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Priodweddau Maes Cudd', + name : 'Enw', + value : 'Gwerth' + }, + + // Image Dialog. + image : + { + title : 'Priodweddau Delwedd', + titleButton : 'Priodweddau Botwm Delwedd', + menu : 'Priodweddau Delwedd', + infoTab : 'Gwyb Delwedd', + btnUpload : 'Anfon i\'r Gweinydd', + upload : 'lanlwytho', + alt : 'Testun Amgen', + lockRatio : 'Cloi Cymhareb', + resetSize : 'Ailosod Maint', + border : 'Ymyl', + hSpace : 'BwlchLl', + vSpace : 'BwlchF', + alertUrl : 'Rhowch URL y ddelwedd', + linkTab : 'Dolen', + button2Img : 'Ydych am drawsffurfio\'r botwm ddelwedd hwn ar ddelwedd syml?', + img2Button : 'Ydych am drawsffurfio\'r ddelwedd hon ar fotwm delwedd?', + urlMissing : 'URL gwreiddiol y ddelwedd ar goll.', + validateBorder : 'Rhaid i\'r ymyl fod yn gyfanrif.', + validateHSpace : 'Rhaid i\'r HSpace fod yn gyfanrif.', + validateVSpace : 'Rhaid i\'r VSpace fod yn gyfanrif.' + }, + + // Flash Dialog + flash : + { + properties : 'Priodweddau Flash', + propertiesTab : 'Priodweddau', + title : 'Priodweddau Flash', + chkPlay : 'AwtoChwarae', + chkLoop : 'Lwpio', + chkMenu : 'Galluogi Dewislen Flash', + chkFull : 'Caniatàu Sgrin Llawn', + scale : 'Graddfa', + scaleAll : 'Dangos pob', + scaleNoBorder : 'Dim Ymyl', + scaleFit : 'Ffit Union', + access : 'Mynediad Sgript', + accessAlways : 'Pob amser', + accessSameDomain: 'R\'un parth', + accessNever : 'Byth', + alignAbsBottom : 'Gwaelod Abs', + alignAbsMiddle : 'Canol Abs', + alignBaseline : 'Baslinell', + alignTextTop : 'Testun Top', + quality : 'Ansawdd', + qualityBest : 'Gorau', + qualityHigh : 'Uchel', + qualityAutoHigh : 'Uchel Awto', + qualityMedium : 'Canolig', + qualityAutoLow : 'Isel Awto', + qualityLow : 'Isel', + windowModeWindow: 'Ffenestr', + windowModeOpaque: 'Afloyw', + windowModeTransparent : 'Tryloyw', + windowMode : 'Modd ffenestr', + flashvars : 'Newidynnau ar gyfer Flash', + bgcolor : 'Lliw cefndir', + hSpace : 'BwlchLl', + vSpace : 'BwlchF', + validateSrc : 'Ni all yr URL fod yn wag.', + validateHSpace : 'Rhaid i\'r BwlchLl fod yn rhif.', + validateVSpace : 'Rhaid i\'r BwlchF fod yn rhif.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Gwirio Sillafu', + title : 'Gwirio Sillafu', + notAvailable : 'Nid yw\'r gwasanaeth hwn ar gael yn bresennol.', + errorLoading : 'Error loading application service host: %s.', + notInDic : 'Nid i\'w gael yn y geiriadur', + changeTo : 'Newid i', + btnIgnore : 'Anwybyddu Un', + btnIgnoreAll : 'Anwybyddu Pob', + btnReplace : 'Amnewid Un', + btnReplaceAll : 'Amnewid Pob', + btnUndo : 'Dadwneud', + noSuggestions : '- Dim awgrymiadau -', + progress : 'Gwirio sillafu yn ar y gweill...', + noMispell : 'Gwirio sillafu wedi gorffen: Dim camsillaf.', + noChanges : 'Gwirio sillafu wedi gorffen: Dim newidiadau', + oneChange : 'Gwirio sillafu wedi gorffen: Newidiwyd 1 gair', + manyChanges : 'Gwirio sillafu wedi gorffen: Newidiwyd %1 gair', + ieSpellDownload : 'Gwirydd sillafu heb ei arsefydlu. A ydych am ei lawrlwytho nawr?' + }, + + smiley : + { + toolbar : 'Gwenoglun', + title : 'Mewnosod Gwenoglun', + options : 'Opsiynau Gwenogluniau' + }, + + elementsPath : + { + eleLabel : 'Llwybr elfennau', + eleTitle : 'Elfen %1' + }, + + numberedlist : 'Mewnosod/Tynnu Rhestr Rhifol', + bulletedlist : 'Mewnosod/Tynnu Rhestr Bwled', + indent : 'Cynyddu\'r Mewnoliad', + outdent : 'Lleihau\'r Mewnoliad', + + justify : + { + left : 'Alinio i\'r Chwith', + center : 'Alinio i\'r Canol', + right : 'Alinio i\'r Dde', + block : 'Aliniad Bloc' + }, + + blockquote : 'Dyfyniad bloc', + + clipboard : + { + title : 'Gludo', + cutError : 'Nid yw gosodiadau diogelwch eich porwr yn caniatàu\'r golygydd i gynnal \'gweithredoedd torri\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+X).', + copyError : 'Nid yw gosodiadau diogelwch eich porwr yn caniatàu\'r golygydd i gynnal \'gweithredoedd copïo\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+C).', + pasteMsg : 'Gludwch i mewn i\'r blwch canlynol gan ddefnyddio\'r bysellfwrdd (<strong>Ctrl/Cmd+V</strong>) a phwyso <strong>Iawn</strong>.', + securityMsg : 'Oherwydd gosodiadau diogelwch eich porwr, nid yw\'r porwr yn gallu ennill mynediad i\'r data ar y clipfwrdd yn uniongyrchol. Mae angen i chi ei ludo eto i\'r ffenestr hon.', + pasteArea : 'Ardal Gludo' + }, + + pastefromword : + { + confirmCleanup : 'Mae\'r testun rydych chi am ludo wedi\'i gopïo o Word. Ydych chi am ei lanhau cyn ei ludo?', + toolbar : 'Gludo o Word', + title : 'Gludo o Word', + error : 'Doedd dim modd glanhau y data a ludwyd oherwydd gwall mewnol' + }, + + pasteText : + { + button : 'Gludo fel testun plaen', + title : 'Gludo fel Testun Plaen' + }, + + templates : + { + button : 'Templedi', + title : 'Templedi Cynnwys', + options : 'Opsiynau Templedi', + insertOption : 'Amnewid y cynnwys go iawn', + selectPromptMsg : 'Dewiswch dempled i\'w agor yn y golygydd', + emptyListMsg : '(Dim templedi wedi\'u diffinio)' + }, + + showBlocks : 'Dangos Blociau', + + stylesCombo : + { + label : 'Arddulliau', + panelTitle : 'Arddulliau Fformatio', + panelTitle1 : 'Arddulliau Bloc', + panelTitle2 : 'Arddulliau Mewnol', + panelTitle3 : 'Arddulliau Gwrthrych' + }, + + format : + { + label : 'Fformat', + panelTitle : 'Fformat Paragraff', + + tag_p : 'Normal', + tag_pre : 'Wedi\'i Fformatio', + tag_address : 'Cyfeiriad', + tag_h1 : 'Pennawd 1', + tag_h2 : 'Pennawd 2', + tag_h3 : 'Pennawd 3', + tag_h4 : 'Pennawd 4', + tag_h5 : 'Pennawd 5', + tag_h6 : 'Pennawd 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Creu Cynhwysydd Div', + toolbar : 'Creu Cynhwysydd Div', + cssClassInputLabel : 'Dosbarthiadau Ffeil Ddiwyg', + styleSelectLabel : 'Arddull', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Cod Iaith', + inlineStyleInputLabel : 'Arddull Mewn Llinell', + advisoryTitleInputLabel : 'Teitl Cynghorol', + langDirLabel : 'Cyfeiriad yr Iaith', + langDirLTRLabel : 'Chwith i\'r Dde (LTR)', + langDirRTLLabel : 'Dde i\'r Chwith (RTL)', + edit : 'Golygu Div', + remove : 'Tynnu Div' + }, + + iframe : + { + title : 'Priodweddau IFrame', + toolbar : 'IFrame', + noUrl : 'Rhowch fath URL yr iframe', + scrolling : 'Galluogi bariau sgrolio', + border : 'Dangos ymyl y ffrâm' + }, + + font : + { + label : 'Ffont', + voiceLabel : 'Ffont', + panelTitle : 'Enw\'r Ffont' + }, + + fontSize : + { + label : 'Maint', + voiceLabel : 'Maint y Ffont', + panelTitle : 'Maint y Ffont' + }, + + colorButton : + { + textColorTitle : 'Lliw Testun', + bgColorTitle : 'Lliw Cefndir', + panelTitle : 'Lliwiau', + auto : 'Awtomatig', + more : 'Mwy o Liwiau...' + }, + + colors : + { + '000' : 'Du', + '800000' : 'Marwn', + '8B4513' : 'Brown Cyfrwy', + '2F4F4F' : 'Llechen Tywyll', + '008080' : 'Corhwyad', + '000080' : 'Nefi', + '4B0082' : 'Indigo', + '696969' : 'Llwyd Pwl', + 'B22222' : 'Bric Tân', + 'A52A2A' : 'Brown', + 'DAA520' : 'Rhoden Aur', + '006400' : 'Gwyrdd Tywyll', + '40E0D0' : 'Gwyrddlas', + '0000CD' : 'Glas Canolig', + '800080' : 'Porffor', + '808080' : 'Llwyd', + 'F00' : 'Coch', + 'FF8C00' : 'Oren Tywyll', + 'FFD700' : 'Aur', + '008000' : 'Gwyrdd', + '0FF' : 'Cyan', + '00F' : 'Glas', + 'EE82EE' : 'Fioled', + 'A9A9A9' : 'Llwyd Tywyll', + 'FFA07A' : 'Samwn Golau', + 'FFA500' : 'Oren', + 'FFFF00' : 'Melyn', + '00FF00' : 'Leim', + 'AFEEEE' : 'Gwyrddlas Golau', + 'ADD8E6' : 'Glas Golau', + 'DDA0DD' : 'Eirinen', + 'D3D3D3' : 'Llwyd Golau', + 'FFF0F5' : 'Gwrid Lafant', + 'FAEBD7' : 'Gwyn Hynafol', + 'FFFFE0' : 'Melyn Golau', + 'F0FFF0' : 'Melwn Gwyrdd Golau', + 'F0FFFF' : 'Aswr', + 'F0F8FF' : 'Glas Alys', + 'E6E6FA' : 'Lafant', + 'FFF' : 'Gwyn' + }, + + scayt : + { + title : 'Gwirio\'r Sillafu Wrth Deipio', + opera_title : 'Heb ei gynnal gan Opera', + enable : 'Galluogi SCAYT', + disable : 'Analluogi SCAYT', + about : 'Ynghylch SCAYT', + toggle : 'Togl SCAYT', + options : 'Opsiynau', + langs : 'Ieithoedd', + moreSuggestions : 'Awgrymiadau pellach', + ignore : 'Anwybyddu', + ignoreAll : 'Anwybyddu pob', + addWord : 'Ychwanegu Gair', + emptyDic : 'Ni ddylai enw\'r geiriadur fod yn wag.', + + optionsTab : 'Opsiynau', + allCaps : 'Anwybyddu Geiriau Nodau Uwch i Gyd', + ignoreDomainNames : 'Anwybyddu Enwau Parth', + mixedCase : 'Anwybyddu Geiriau â Chymysgedd Nodau Uwch ac Is', + mixedWithDigits : 'Anwybyddu Geiriau â Rhifau', + + languagesTab : 'Ieithoedd', + + dictionariesTab : 'Geiriaduron', + dic_field_name : 'Enw\'r geiriadur', + dic_create : 'Creu', + dic_restore : 'Adfer', + dic_delete : 'Dileu', + dic_rename : 'Ailenwi', + dic_info : 'Ar y cychwyn, caiff y Geiriadur ei storio mewn Cwci. Er, mae terfyn ar faint cwcis. Pan fydd Gweiriadur Defnyddiwr yn tyfu tu hwnt i gyfyngiadau maint Cwci, caiff y geiriadur ei storio ar ein gweinydd ni. er mwyn storio eich geiriadur poersonol chi ar ein gweinydd, bydd angen i chi osod enw ar gyfer y geiriadur. Os oes geiriadur \'da chi ar ein gweinydd yn barod, teipiwch ei enw a chliciwch y botwm Adfer.', + + aboutTab : 'Ynghylch' + }, + + about : + { + title : 'Ynghylch CKEditor', + dlgTitle : 'Ynghylch CKEditor', + help : 'Gwirio $1 am gymorth.', + userGuide : 'Canllawiau Defnyddiwr CKEditor', + moreInfo : 'Am wybodaeth ynghylch trwyddedau, ewch i\'n gwefan:', + copy : 'Hawlfraint © $1. Cedwir pob hawl.' + }, + + maximize : 'Mwyhau', + minimize : 'Lleihau', + + fakeobjects : + { + anchor : 'Angor', + flash : 'Animeiddiant Flash', + iframe : 'IFrame', + hiddenfield : 'Maes Cudd', + unknown : 'Gwrthrych Anhysbys' + }, + + resize : 'Llusgo i ailfeintio', + + colordialog : + { + title : 'Dewis lliw', + options : 'Opsiynau Lliw', + highlight : 'Uwcholeuo', + selected : 'Dewiswyd', + clear : 'Clirio' + }, + + toolbarCollapse : 'Cyfangu\'r Bar Offer', + toolbarExpand : 'Ehangu\'r Bar Offer', + + toolbarGroups : + { + document : 'Dogfen', + clipboard : 'Clipfwrdd/Dadwneud', + editing : 'Golygu', + forms : 'Ffurflenni', + basicstyles : 'Arddulliau Sylfaenol', + paragraph : 'Paragraff', + links : 'Dolenni', + insert : 'Mewnosod', + styles : 'Arddulliau', + colors : 'Lliwiau', + tools : 'Offer' + }, + + bidi : + { + ltr : 'Cyfeiriad testun o\'r chwith i\'r dde', + rtl : 'Cyfeiriad testun o\'r dde i\'r chwith' + }, + + docprops : + { + label : 'Priodweddau Dogfen', + title : 'Priodweddau Dogfen', + design : 'Cynllunio', + meta : 'Tagiau Meta', + chooseColor : 'Dewis', + other : 'Arall...', + docTitle : 'Teitl y Dudalen', + charset : 'Amgodio Set Nodau', + charsetOther : 'Amgodio Set Nodau Arall', + charsetASCII : 'ASCII', + charsetCE : 'Ewropeaidd Canol', + charsetCT : 'Tsieinëeg Traddodiadol (Big5)', + charsetCR : 'Syrilig', + charsetGR : 'Groeg', + charsetJP : 'Siapanëeg', + charsetKR : 'Corëeg', + charsetTR : 'Tyrceg', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Ewropeaidd Gorllewinol', + docType : 'Pennawd Math y Ddogfen', + docTypeOther : 'Pennawd Math y Ddogfen Arall', + xhtmlDec : 'Cynnwys Datganiadau XHTML', + bgColor : 'Lliw Cefndir', + bgImage : 'URL Delwedd Cefndir', + bgFixed : 'Cefndir Sefydlog (Ddim yn Sgrolio)', + txtColor : 'Lliw y Testun', + margin : 'Ffin y Dudalen', + marginTop : 'Brig', + marginLeft : 'Chwith', + marginRight : 'Dde', + marginBottom : 'Gwaelod', + metaKeywords : 'Allweddeiriau Indecsio Dogfen (gwahanu gyda choma)', + metaDescription : 'Disgrifiad y Ddogfen', + metaAuthor : 'Awdur', + metaCopyright : 'Hawlfraint', + previewHtml : '<p>Dyma ychydig o <strong>destun sampl</strong>. Rydych chi\'n defnyddio <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/da.js b/htdocs/includes/ckeditor/_source/lang/da.js new file mode 100644 index 0000000000000000000000000000000000000000..84a3e733efac07ccff660bebfe3f1f24202fcf9e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/da.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Danish language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['da'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editors værktøjslinjer', + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Kilde', + newPage : 'Ny side', + save : 'Gem', + preview : 'Vis eksempel', + cut : 'Klip', + copy : 'Kopiér', + paste : 'Indsæt', + print : 'Udskriv', + underline : 'Understreget', + bold : 'Fed', + italic : 'Kursiv', + selectAll : 'Vælg alt', + removeFormat : 'Fjern formatering', + strike : 'Gennemstreget', + subscript : 'Sænket skrift', + superscript : 'Hævet skrift', + horizontalrule : 'Indsæt vandret streg', + pagebreak : 'Indsæt sideskift', + pagebreakAlt : 'Sideskift', + unlink : 'Fjern hyperlink', + undo : 'Fortryd', + redo : 'Annullér fortryd', + + // Common messages and labels. + common : + { + browseServer : 'Gennemse...', + url : 'URL', + protocol : 'Protokol', + upload : 'Upload', + uploadSubmit : 'Upload', + image : 'Indsæt billede', + flash : 'Indsæt Flash', + form : 'Indsæt formular', + checkbox : 'Indsæt afkrydsningsfelt', + radio : 'Indsæt alternativknap', + textField : 'Indsæt tekstfelt', + textarea : 'Indsæt tekstboks', + hiddenField : 'Indsæt skjult felt', + button : 'Indsæt knap', + select : 'Indsæt liste', + imageButton : 'Indsæt billedknap', + notSet : '<intet valgt>', + id : 'Id', + name : 'Navn', + langDir : 'Tekstretning', + langDirLtr : 'Fra venstre mod højre (LTR)', + langDirRtl : 'Fra højre mod venstre (RTL)', + langCode : 'Sprogkode', + longDescr : 'Udvidet beskrivelse', + cssClass : 'Typografiark (CSS)', + advisoryTitle : 'Titel', + cssStyle : 'Typografi (CSS)', + ok : 'OK', + cancel : 'Annullér', + close : 'Luk', + preview : 'Forhåndsvisning', + generalTab : 'Generelt', + advancedTab : 'Avanceret', + validateNumberFailed : 'Værdien er ikke et tal.', + confirmNewPage : 'Alt indhold, der ikke er blevet gemt, vil gå tabt. Er du sikker på, at du vil indlæse en ny side?', + confirmCancel : 'Nogle af indstillingerne er blevet ændret. Er du sikker på, at du vil lukke vinduet?', + options : 'Vis muligheder', + target : 'Mål', + targetNew : 'Nyt vindue (_blank)', + targetTop : 'Øverste vindue (_top)', + targetSelf : 'Samme vindue (_self)', + targetParent : 'Samme vindue (_parent)', + langDirLTR : 'Venstre til højre (LTR)', + langDirRTL : 'Højre til venstre (RTL)', + styles : 'Style', + cssClasses : 'Stylesheetklasser', + width : 'Bredde', + height : 'Højde', + align : 'Justering', + alignLeft : 'Venstre', + alignRight : 'Højre', + alignCenter : 'Centreret', + alignTop : 'Øverst', + alignMiddle : 'Centreret', + alignBottom : 'Nederst', + invalidHeight : 'Højde skal være et tal.', + invalidWidth : 'Bredde skal være et tal.', + invalidCssLength : 'Værdien specificeret for "%1" feltet skal være et positivt nummer med eller uden en CSS måleenhed (px, %, in, cm, mm, em, ex, pt, eller pc).', + invalidHtmlLength : 'Værdien specificeret for "%1" feltet skal være et positivt nummer med eller uden en CSS måleenhed (px eller %).', + invalidInlineStyle : 'Værdien specificeret for inline style skal indeholde en eller flere elementer med et format som "name:value", separeret af semikoloner', + cssLengthTooltip : 'Indsæt en numerisk værdi i pixel eller nummer med en gyldig CSS værdi (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, ikke tilgængelig</span>' + }, + + contextmenu : + { + options : 'Muligheder for hjælpemenu' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Indsæt symbol', + title : 'Vælg symbol', + options : 'Muligheder for specialkarakterer' + }, + + // Link dialog. + link : + { + toolbar : 'Indsæt/redigér hyperlink', + other : '<anden>', + menu : 'Redigér hyperlink', + title : 'Egenskaber for hyperlink', + info : 'Generelt', + target : 'Mål', + upload : 'Upload', + advanced : 'Avanceret', + type : 'Type', + toUrl : 'URL', + toAnchor : 'Bogmærke på denne side', + toEmail : 'E-mail', + targetFrame : '<ramme>', + targetPopup : '<popup vindue>', + targetFrameName : 'Destinationsvinduets navn', + targetPopupName : 'Popupvinduets navn', + popupFeatures : 'Egenskaber for popup', + popupResizable : 'Justérbar', + popupStatusBar : 'Statuslinje', + popupLocationBar: 'Adresselinje', + popupToolbar : 'Værktøjslinje', + popupMenuBar : 'Menulinje', + popupFullScreen : 'Fuld skærm (IE)', + popupScrollBars : 'Scrollbar', + popupDependent : 'Koblet/dependent (Netscape)', + popupLeft : 'Position fra venstre', + popupTop : 'Position fra toppen', + id : 'Id', + langDir : 'Tekstretning', + langDirLTR : 'Fra venstre mod højre (LTR)', + langDirRTL : 'Fra højre mod venstre (RTL)', + acccessKey : 'Genvejstast', + name : 'Navn', + langCode : 'Tekstretning', + tabIndex : 'Tabulatorindeks', + advisoryTitle : 'Titel', + advisoryContentType : 'Indholdstype', + cssClasses : 'Typografiark', + charset : 'Tegnsæt', + styles : 'Typografi', + rel : 'Relation', + selectAnchor : 'Vælg et anker', + anchorName : 'Efter ankernavn', + anchorId : 'Efter element-Id', + emailAddress : 'E-mailadresse', + emailSubject : 'Emne', + emailBody : 'Besked', + noAnchors : '(Ingen bogmærker i dokumentet)', + noUrl : 'Indtast hyperlink-URL!', + noEmail : 'Indtast e-mailadresse!' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Indsæt/redigér bogmærke', + menu : 'Egenskaber for bogmærke', + title : 'Egenskaber for bogmærke', + name : 'Bogmærkenavn', + errorName : 'Indtast bogmærkenavn', + remove : 'Fjern bogmærke' + }, + + // List style dialog + list: + { + numberedTitle : 'Egenskaber for nummereret liste', + bulletedTitle : 'Værdier for cirkelpunktopstilling', + type : 'Type', + start : 'Start', + validateStartNumber :'Den nummererede liste skal starte med et rundt nummer', + circle : 'Cirkel', + disc : 'Værdier for diskpunktopstilling', + square : 'Firkant', + none : 'Ingen', + notset : '<ikke defineret>', + armenian : 'Armensk nummering', + georgian : 'Georgiansk nummering (an, ban, gan, etc.)', + lowerRoman : 'Små romerske (i, ii, iii, iv, v, etc.)', + upperRoman : 'Store romerske (I, II, III, IV, V, etc.)', + lowerAlpha : 'Små alfabet (a, b, c, d, e, etc.)', + upperAlpha : 'Store alfabet (A, B, C, D, E, etc.)', + lowerGreek : 'Små græsk (alpha, beta, gamma, etc.)', + decimal : 'Decimal (1, 2, 3, osv.)', + decimalLeadingZero : 'Decimaler med 0 først (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Søg og erstat', + find : 'Søg', + replace : 'Erstat', + findWhat : 'Søg efter:', + replaceWith : 'Erstat med:', + notFoundMsg : 'Søgeteksten blev ikke fundet', + findOptions : 'Find muligheder', + matchCase : 'Forskel på store og små bogstaver', + matchWord : 'Kun hele ord', + matchCyclic : 'Match cyklisk', + replaceAll : 'Erstat alle', + replaceSuccessMsg : '%1 forekomst(er) erstattet.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabel', + title : 'Egenskaber for tabel', + menu : 'Egenskaber for tabel', + deleteTable : 'Slet tabel', + rows : 'Rækker', + columns : 'Kolonner', + border : 'Rammebredde', + widthPx : 'pixels', + widthPc : 'procent', + widthUnit : 'Bredde på enhed', + cellSpace : 'Celleafstand', + cellPad : 'Cellemargen', + caption : 'Titel', + summary : 'Resumé', + headers : 'Hoved', + headersNone : 'Ingen', + headersColumn : 'Første kolonne', + headersRow : 'Første række', + headersBoth : 'Begge', + invalidRows : 'Antallet af rækker skal være større end 0.', + invalidCols : 'Antallet af kolonner skal være større end 0.', + invalidBorder : 'Rammetykkelse skal være et tal.', + invalidWidth : 'Tabelbredde skal være et tal.', + invalidHeight : 'Tabelhøjde skal være et tal.', + invalidCellSpacing : 'Celleafstand skal være et tal.', + invalidCellPadding : 'Cellemargen skal være et tal.', + + cell : + { + menu : 'Celle', + insertBefore : 'Indsæt celle før', + insertAfter : 'Indsæt celle efter', + deleteCell : 'Slet celle', + merge : 'Flet celler', + mergeRight : 'Flet til højre', + mergeDown : 'Flet nedad', + splitHorizontal : 'Del celle vandret', + splitVertical : 'Del celle lodret', + title : 'Celleegenskaber', + cellType : 'Celletype', + rowSpan : 'Række span (rows span)', + colSpan : 'Kolonne span (columns span)', + wordWrap : 'Tekstombrydning', + hAlign : 'Vandret justering', + vAlign : 'Lodret justering', + alignBaseline : 'Grundlinje', + bgColor : 'Baggrundsfarve', + borderColor : 'Rammefarve', + data : 'Data', + header : 'Hoved', + yes : 'Ja', + no : 'Nej', + invalidWidth : 'Cellebredde skal være et tal.', + invalidHeight : 'Cellehøjde skal være et tal.', + invalidRowSpan : 'Række span skal være et heltal.', + invalidColSpan : 'Kolonne span skal være et heltal.', + chooseColor : 'Vælg' + }, + + row : + { + menu : 'Række', + insertBefore : 'Indsæt række før', + insertAfter : 'Indsæt række efter', + deleteRow : 'Slet række' + }, + + column : + { + menu : 'Kolonne', + insertBefore : 'Indsæt kolonne før', + insertAfter : 'Indsæt kolonne efter', + deleteColumn : 'Slet kolonne' + } + }, + + // Button Dialog. + button : + { + title : 'Egenskaber for knap', + text : 'Tekst', + type : 'Type', + typeBtn : 'Knap', + typeSbm : 'Send', + typeRst : 'Nulstil' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Egenskaber for afkrydsningsfelt', + radioTitle : 'Egenskaber for alternativknap', + value : 'Værdi', + selected : 'Valgt' + }, + + // Form Dialog. + form : + { + title : 'Egenskaber for formular', + menu : 'Egenskaber for formular', + action : 'Handling', + method : 'Metode', + encoding : 'Kodning (encoding)' + }, + + // Select Field Dialog. + select : + { + title : 'Egenskaber for liste', + selectInfo : 'Generelt', + opAvail : 'Valgmuligheder', + value : 'Værdi', + size : 'Størrelse', + lines : 'Linjer', + chkMulti : 'Tillad flere valg', + opText : 'Tekst', + opValue : 'Værdi', + btnAdd : 'Tilføj', + btnModify : 'Redigér', + btnUp : 'Op', + btnDown : 'Ned', + btnSetValue : 'Sæt som valgt', + btnDelete : 'Slet' + }, + + // Textarea Dialog. + textarea : + { + title : 'Egenskaber for tekstboks', + cols : 'Kolonner', + rows : 'Rækker' + }, + + // Text Field Dialog. + textfield : + { + title : 'Egenskaber for tekstfelt', + name : 'Navn', + value : 'Værdi', + charWidth : 'Bredde (tegn)', + maxChars : 'Max. antal tegn', + type : 'Type', + typeText : 'Tekst', + typePass : 'Adgangskode' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Egenskaber for skjult felt', + name : 'Navn', + value : 'Værdi' + }, + + // Image Dialog. + image : + { + title : 'Egenskaber for billede', + titleButton : 'Egenskaber for billedknap', + menu : 'Egenskaber for billede', + infoTab : 'Generelt', + btnUpload : 'Upload fil til serveren', + upload : 'Upload', + alt : 'Alternativ tekst', + lockRatio : 'Lås størrelsesforhold', + resetSize : 'Nulstil størrelse', + border : 'Ramme', + hSpace : 'Vandret margen', + vSpace : 'Lodret margen', + alertUrl : 'Indtast stien til billedet', + linkTab : 'Hyperlink', + button2Img : 'Vil du lave billedknappen om til et almindeligt billede?', + img2Button : 'Vil du lave billedet om til en billedknap?', + urlMissing : 'Kilde på billed-URL mangler', + validateBorder : 'Kant skal være et helt nummer.', + validateHSpace : 'HSpace skal være et helt nummer.', + validateVSpace : 'VSpace skal være et helt nummer.' + }, + + // Flash Dialog + flash : + { + properties : 'Egenskaber for Flash', + propertiesTab : 'Egenskaber', + title : 'Egenskaber for Flash', + chkPlay : 'Automatisk afspilning', + chkLoop : 'Gentagelse', + chkMenu : 'Vis Flash-menu', + chkFull : 'Tillad fuldskærm', + scale : 'Skalér', + scaleAll : 'Vis alt', + scaleNoBorder : 'Ingen ramme', + scaleFit : 'Tilpas størrelse', + access : 'Scriptadgang', + accessAlways : 'Altid', + accessSameDomain: 'Samme domæne', + accessNever : 'Aldrig', + alignAbsBottom : 'Absolut nederst', + alignAbsMiddle : 'Absolut centreret', + alignBaseline : 'Grundlinje', + alignTextTop : 'Toppen af teksten', + quality : 'Kvalitet', + qualityBest : 'Bedste', + qualityHigh : 'Høj', + qualityAutoHigh : 'Auto høj', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto lav', + qualityLow : 'Lav', + windowModeWindow: 'Vindue', + windowModeOpaque: 'Gennemsigtig (opaque)', + windowModeTransparent : 'Transparent', + windowMode : 'Vinduestilstand', + flashvars : 'Variabler for Flash', + bgcolor : 'Baggrundsfarve', + hSpace : 'Vandret margen', + vSpace : 'Lodret margen', + validateSrc : 'Indtast hyperlink URL!', + validateHSpace : 'Vandret margen skal være et tal.', + validateVSpace : 'Lodret margen skal være et tal.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Stavekontrol', + title : 'Stavekontrol', + notAvailable : 'Stavekontrol er desværre ikke tilgængelig.', + errorLoading : 'Fejl ved indlæsning af host: %s.', + notInDic : 'Ikke i ordbogen', + changeTo : 'Forslag', + btnIgnore : 'Ignorér', + btnIgnoreAll : 'Ignorér alle', + btnReplace : 'Erstat', + btnReplaceAll : 'Erstat alle', + btnUndo : 'Tilbage', + noSuggestions : '(ingen forslag)', + progress : 'Stavekontrollen arbejder...', + noMispell : 'Stavekontrol færdig: Ingen fejl fundet', + noChanges : 'Stavekontrol færdig: Ingen ord ændret', + oneChange : 'Stavekontrol færdig: Et ord ændret', + manyChanges : 'Stavekontrol færdig: %1 ord ændret', + ieSpellDownload : 'Stavekontrol ikke installeret. Vil du installere den nu?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Vælg smiley', + options : 'Smileymuligheder' + }, + + elementsPath : + { + eleLabel : 'Sti på element', + eleTitle : '%1 element' + }, + + numberedlist : 'Talopstilling', + bulletedlist : 'Punktopstilling', + indent : 'Forøg indrykning', + outdent : 'Formindsk indrykning', + + justify : + { + left : 'Venstrestillet', + center : 'Centreret', + right : 'Højrestillet', + block : 'Lige margener' + }, + + blockquote : 'Blokcitat', + + clipboard : + { + title : 'Indsæt', + cutError : 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.<br><br>Brug i stedet tastaturet til at klippe teksten (Ctrl/Cmd+X).', + copyError : 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.<br><br>Brug i stedet tastaturet til at kopiere teksten (Ctrl/Cmd+C).', + pasteMsg : 'Indsæt i feltet herunder (<STRONG>Ctrl/Cmd+V</STRONG>) og klik på <STRONG>OK</STRONG>.', + securityMsg : 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.<br><br>Du skal indsætte udklipsholderens indhold i dette vindue igen.', + pasteArea : 'Indsæt område' + }, + + pastefromword : + { + confirmCleanup : 'Den tekst du forsøger at indsætte ser ud til at komme fra Word. Vil du rense teksten før den indsættes?', + toolbar : 'Indsæt fra Word', + title : 'Indsæt fra Word', + error : 'Det var ikke muligt at fjerne formatteringen på den indsatte tekst grundet en intern fejl' + }, + + pasteText : + { + button : 'Indsæt som ikke-formateret tekst', + title : 'Indsæt som ikke-formateret tekst' + }, + + templates : + { + button : 'Skabeloner', + title : 'Indholdsskabeloner', + options : 'Skabelon muligheder', + insertOption : 'Erstat det faktiske indhold', + selectPromptMsg : 'Vælg den skabelon, som skal åbnes i editoren (nuværende indhold vil blive overskrevet):', + emptyListMsg : '(Der er ikke defineret nogen skabelon)' + }, + + showBlocks : 'Vis afsnitsmærker', + + stylesCombo : + { + label : 'Typografi', + panelTitle : 'Formattering på stylesheet', + panelTitle1 : 'Block typografi', + panelTitle2 : 'Inline typografi', + panelTitle3 : 'Object typografi' + }, + + format : + { + label : 'Formatering', + panelTitle : 'Formatering', + + tag_p : 'Normal', + tag_pre : 'Formateret', + tag_address : 'Adresse', + tag_h1 : 'Overskrift 1', + tag_h2 : 'Overskrift 2', + tag_h3 : 'Overskrift 3', + tag_h4 : 'Overskrift 4', + tag_h5 : 'Overskrift 5', + tag_h6 : 'Overskrift 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Opret Div Container', + toolbar : 'Opret Div Container', + cssClassInputLabel : 'Typografiark', + styleSelectLabel : 'Style', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Sprogkode', + inlineStyleInputLabel : 'Inline Style', + advisoryTitleInputLabel : 'Vejledende titel', + langDirLabel : 'Sprogretning', + langDirLTRLabel : 'Venstre til højre (LTR)', + langDirRTLLabel : 'Højre til venstre (RTL)', + edit : 'Rediger Div', + remove : 'Slet Div' + }, + + iframe : + { + title : 'Iframe egenskaber', + toolbar : 'Iframe', + noUrl : 'Venligst indsæt URL på iframen', + scrolling : 'Aktiver scrollbars', + border : 'Vis kant på rammen' + }, + + font : + { + label : 'Skrifttype', + voiceLabel : 'Skrifttype', + panelTitle : 'Skrifttype' + }, + + fontSize : + { + label : 'Skriftstørrelse', + voiceLabel : 'Skriftstørrelse', + panelTitle : 'Skriftstørrelse' + }, + + colorButton : + { + textColorTitle : 'Tekstfarve', + bgColorTitle : 'Baggrundsfarve', + panelTitle : 'Farver', + auto : 'Automatisk', + more : 'Flere farver...' + }, + + colors : + { + '000' : 'Sort', + '800000' : 'Mørkerød', + '8B4513' : 'Mørk orange', + '2F4F4F' : 'Dark Slate Grå', + '008080' : 'Teal', + '000080' : 'Navy', + '4B0082' : 'Indigo', + '696969' : 'Mørkegrå', + 'B22222' : 'Scarlet / Rød', + 'A52A2A' : 'Brun', + 'DAA520' : 'Guld', + '006400' : 'Mørkegrøn', + '40E0D0' : 'Tyrkis', + '0000CD' : 'Mellemblå', + '800080' : 'Lilla', + '808080' : 'Grå', + 'F00' : 'Rød', + 'FF8C00' : 'Mørk orange', + 'FFD700' : 'Guld', + '008000' : 'Grøn', + '0FF' : 'Cyan', + '00F' : 'Blå', + 'EE82EE' : 'Violet', + 'A9A9A9' : 'Matgrå', + 'FFA07A' : 'Laksefarve', + 'FFA500' : 'Orange', + 'FFFF00' : 'Gul', + '00FF00' : 'Lime', + 'AFEEEE' : 'Mat tyrkis', + 'ADD8E6' : 'Lyseblå', + 'DDA0DD' : 'Plum', + 'D3D3D3' : 'Lysegrå', + 'FFF0F5' : 'Lavender Blush', + 'FAEBD7' : 'Antikhvid', + 'FFFFE0' : 'Lysegul', + 'F0FFF0' : 'Gul / Beige', + 'F0FFFF' : 'Himmeblå', + 'F0F8FF' : 'Alice blue', + 'E6E6FA' : 'Lavendel', + 'FFF' : 'Hvid' + }, + + scayt : + { + title : 'Stavekontrol mens du skriver', + opera_title : 'Ikke supporteret af Opera', + enable : 'Aktivér SCAYT', + disable : 'Deaktivér SCAYT', + about : 'Om SCAYT', + toggle : 'Skift/toggle SCAYT', + options : 'Indstillinger', + langs : 'Sprog', + moreSuggestions : 'Flere forslag', + ignore : 'Ignorér', + ignoreAll : 'Ignorér alle', + addWord : 'Tilføj ord', + emptyDic : 'Ordbogsnavn må ikke være tom.', + + optionsTab : 'Indstillinger', + allCaps : 'Ignorer alle store bogstaver', + ignoreDomainNames : 'Ignorér domænenavne', + mixedCase : 'Ignorer ord med store og små bogstaver', + mixedWithDigits : 'Ignorér ord med numre', + + languagesTab : 'Sprog', + + dictionariesTab : 'Ordbøger', + dic_field_name : 'Navn på ordbog', + dic_create : 'Opret', + dic_restore : 'Gendan', + dic_delete : 'Slet', + dic_rename : 'Omdøb', + dic_info : 'Til start er brugerordbogen gemt i en Cookie. Dog har Cookies en begrænsning på størrelse. Når ordbogen når en bestemt størrelse kan den blive gemt på vores server. For at gemme din personlige ordbog på vores server skal du angive et navn for denne. Såfremt du allerede har gemt en ordbog, skriv navnet på denne og klik på Gendan knappen.', + + aboutTab : 'Om' + }, + + about : + { + title : 'Om CKEditor', + dlgTitle : 'Om CKEditor', + help : 'Se $1 for at få hjælp.', + userGuide : 'CKEditor-brugermanual', + moreInfo : 'For informationer omkring licens, se venligst vores hjemmeside (på engelsk):', + copy : 'Copyright © $1. Alle rettigheder forbeholdes.' + }, + + maximize : 'Maksimér', + minimize : 'Minimér', + + fakeobjects : + { + anchor : 'Anker', + flash : 'Flashanimation', + iframe : 'Iframe', + hiddenfield : 'Skjult felt', + unknown : 'Ukendt objekt' + }, + + resize : 'Træk for at skalere', + + colordialog : + { + title : 'Vælg farve', + options : 'Farvemuligheder', + highlight : 'Markér', + selected : 'Valgt farve', + clear : 'Nulstil' + }, + + toolbarCollapse : 'Sammenklap værktøjslinje', + toolbarExpand : 'Udvid værktøjslinje', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Udklipsholder/Fortryd', + editing : 'Redigering', + forms : 'Formularer', + basicstyles : 'Basis styles', + paragraph : 'Paragraf', + links : 'Links', + insert : 'Indsæt', + styles : 'Typografier', + colors : 'Farver', + tools : 'Værktøjer' + }, + + bidi : + { + ltr : 'Tekstretning fra venstre til højre', + rtl : 'Tekstretning fra højre til venstre' + }, + + docprops : + { + label : 'Egenskaber for dokument', + title : 'Egenskaber for dokument', + design : 'Design', + meta : 'Metatags', + chooseColor : 'Vælg', + other : '<anden>', + docTitle : 'Sidetitel', + charset : 'Tegnsætskode', + charsetOther : 'Anden tegnsætskode', + charsetASCII : 'ASCII', + charsetCE : 'Centraleuropæisk', + charsetCT : 'Traditionel kinesisk (Big5)', + charsetCR : 'Kyrillisk', + charsetGR : 'Græsk', + charsetJP : 'Japansk', + charsetKR : 'Koreansk', + charsetTR : 'Tyrkisk', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Vesteuropæisk', + docType : 'Dokumenttype kategori', + docTypeOther : 'Anden dokumenttype kategori', + xhtmlDec : 'Inkludere XHTML deklartion', + bgColor : 'Baggrundsfarve', + bgImage : 'Baggrundsbillede URL', + bgFixed : 'Fastlåst baggrund', + txtColor : 'Tekstfarve', + margin : 'Sidemargen', + marginTop : 'Øverst', + marginLeft : 'Venstre', + marginRight : 'Højre', + marginBottom : 'Nederst', + metaKeywords : 'Dokument index nøgleord (kommasepareret)', + metaDescription : 'Dokumentbeskrivelse', + metaAuthor : 'Forfatter', + metaCopyright : 'Copyright', + previewHtml : '<p>Dette er et <strong>eksempel på noget tekst</strong>. Du benytter <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/de.js b/htdocs/includes/ckeditor/_source/lang/de.js new file mode 100644 index 0000000000000000000000000000000000000000..f2922527f3c4a82dd0dda97a2876ab9980eea43a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/de.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * German language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['de'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor Symbolleisten', + editor : 'WYSIWYG-Editor', + + // Toolbar buttons without dialogs. + source : 'Quellcode', + newPage : 'Neue Seite', + save : 'Speichern', + preview : 'Vorschau', + cut : 'Ausschneiden', + copy : 'Kopieren', + paste : 'Einfügen', + print : 'Drucken', + underline : 'Unterstrichen', + bold : 'Fett', + italic : 'Kursiv', + selectAll : 'Alles auswählen', + removeFormat : 'Formatierungen entfernen', + strike : 'Durchgestrichen', + subscript : 'Tiefgestellt', + superscript : 'Hochgestellt', + horizontalrule : 'Horizontale Linie einfügen', + pagebreak : 'Seitenumbruch einfügen', + pagebreakAlt : 'Seitenumbruch einfügen', + unlink : 'Link entfernen', + undo : 'Rückgängig', + redo : 'Wiederherstellen', + + // Common messages and labels. + common : + { + browseServer : 'Server durchsuchen', + url : 'URL', + protocol : 'Protokoll', + upload : 'Hochladen', + uploadSubmit : 'Zum Server senden', + image : 'Bild', + flash : 'Flash', + form : 'Formular', + checkbox : 'Checkbox', + radio : 'Radiobutton', + textField : 'Textfeld einzeilig', + textarea : 'Textfeld mehrzeilig', + hiddenField : 'Verstecktes Feld', + button : 'Klickbutton', + select : 'Auswahlfeld', + imageButton : 'Bildbutton', + notSet : '<nichts>', + id : 'ID', + name : 'Name', + langDir : 'Schreibrichtung', + langDirLtr : 'Links nach Rechts (LTR)', + langDirRtl : 'Rechts nach Links (RTL)', + langCode : 'Sprachenkürzel', + longDescr : 'Langform URL', + cssClass : 'Stylesheet Klasse', + advisoryTitle : 'Titel Beschreibung', + cssStyle : 'Style', + ok : 'OK', + cancel : 'Abbrechen', + close : 'Schließen', + preview : 'Vorschau', + generalTab : 'Allgemein', + advancedTab : 'Erweitert', + validateNumberFailed : 'Dieser Wert ist keine Nummer.', + confirmNewPage : 'Alle nicht gespeicherten Änderungen gehen verlohren. Sind Sie sicher die neue Seite zu laden?', + confirmCancel : 'Einige Optionen wurden geändert. Wollen Sie den Dialog dennoch schließen?', + options : 'Optionen', + target : 'Zielseite', + targetNew : 'Neues Fenster (_blank)', + targetTop : 'Oberstes Fenster (_top)', + targetSelf : 'Gleiches Fenster (_self)', + targetParent : 'Oberes Fenster (_parent)', + langDirLTR : 'Links nach Rechts (LNR)', + langDirRTL : 'Rechts nach Links (RNL)', + styles : 'Style', + cssClasses : 'Stylesheet Klasse', + width : 'Breite', + height : 'Höhe', + align : 'Ausrichtung', + alignLeft : 'Links', + alignRight : 'Rechts', + alignCenter : 'Zentriert', + alignTop : 'Oben', + alignMiddle : 'Mitte', + alignBottom : 'Unten', + invalidHeight : 'Höhe muss eine Zahl sein.', + invalidWidth : 'Breite muss eine Zahl sein.', + invalidCssLength : 'Wert spezifiziert für "%1" Feld muss ein positiver numerischer Wert sein mit oder ohne korrekte CSS Messeinheit (px, %, in, cm, mm, em, ex, pt oder pc).', + invalidHtmlLength : 'Wert spezifiziert für "%1" Feld muss ein positiver numerischer Wert sein mit oder ohne korrekte HTML Messeinheit (px oder %).', + invalidInlineStyle : 'Wert spezifiziert für inline Stilart muss enthalten ein oder mehr Tupels mit dem Format "Name : Wert" getrennt mit Semikolons.', + cssLengthTooltip : 'Gebe eine Zahl ein für ein Wert in pixels oder eine Zahl mit einer korrekten CSS Messeinheit (px, %, in, cm, mm, em, ex, pt oder pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, nicht verfügbar</span>' + }, + + contextmenu : + { + options : 'Kontextmenü Optionen' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Sonderzeichen einfügen/editieren', + title : 'Sonderzeichen auswählen', + options : 'Sonderzeichen Optionen' + }, + + // Link dialog. + link : + { + toolbar : 'Link einfügen/editieren', + other : '<andere>', + menu : 'Link editieren', + title : 'Link', + info : 'Link-Info', + target : 'Zielseite', + upload : 'Hochladen', + advanced : 'Erweitert', + type : 'Link-Typ', + toUrl : 'URL', + toAnchor : 'Anker in dieser Seite', + toEmail : 'E-Mail', + targetFrame : '<Frame>', + targetPopup : '<Pop-up Fenster>', + targetFrameName : 'Ziel-Fenster-Name', + targetPopupName : 'Pop-up Fenster-Name', + popupFeatures : 'Pop-up Fenster-Eigenschaften', + popupResizable : 'Größe änderbar', + popupStatusBar : 'Statusleiste', + popupLocationBar: 'Adress-Leiste', + popupToolbar : 'Symbolleiste', + popupMenuBar : 'Menü-Leiste', + popupFullScreen : 'Vollbild (IE)', + popupScrollBars : 'Rollbalken', + popupDependent : 'Abhängig (Netscape)', + popupLeft : 'Linke Position', + popupTop : 'Obere Position', + id : 'Id', + langDir : 'Schreibrichtung', + langDirLTR : 'Links nach Rechts (LTR)', + langDirRTL : 'Rechts nach Links (RTL)', + acccessKey : 'Zugriffstaste', + name : 'Name', + langCode : 'Sprachenkürzel', + tabIndex : 'Tab-Index', + advisoryTitle : 'Titel Beschreibung', + advisoryContentType : 'Inhaltstyp', + cssClasses : 'Stylesheet Klasse', + charset : 'Ziel-Zeichensatz', + styles : 'Style', + rel : 'Beziehung', + selectAnchor : 'Anker auswählen', + anchorName : 'nach Anker Name', + anchorId : 'nach Element Id', + emailAddress : 'E-Mail Adresse', + emailSubject : 'Betreffzeile', + emailBody : 'Nachrichtentext', + noAnchors : '(keine Anker im Dokument vorhanden)', + noUrl : 'Bitte geben Sie die Link-URL an', + noEmail : 'Bitte geben Sie e-Mail Adresse an' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anker einfügen/editieren', + menu : 'Anker-Eigenschaften', + title : 'Anker-Eigenschaften', + name : 'Anker Name', + errorName : 'Bitte geben Sie den Namen des Ankers ein', + remove : 'Anker entfernen' + }, + + // List style dialog + list: + { + numberedTitle : 'Nummerierte Listen-Eigenschaften', + bulletedTitle : 'Listen-Eigenschaften', + type : 'Typ', + start : 'Start', + validateStartNumber :'List Startnummer muss eine ganze Zahl sein.', + circle : 'Ring', + disc : 'Kreis', + square : 'Quadrat', + none : 'Keine', + notset : '<nicht gesetzt>', + armenian : 'Armenisch Nummerierung', + georgian : 'Georgisch Nummerierung (an, ban, gan, etc.)', + lowerRoman : 'Klein römisch (i, ii, iii, iv, v, etc.)', + upperRoman : 'Groß römisch (I, II, III, IV, V, etc.)', + lowerAlpha : 'Klein alpha (a, b, c, d, e, etc.)', + upperAlpha : 'Groß alpha (A, B, C, D, E, etc.)', + lowerGreek : 'Klein griechisch (alpha, beta, gamma, etc.)', + decimal : 'Dezimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Dezimal mit führende Null (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Suchen und Ersetzen', + find : 'Suchen', + replace : 'Ersetzen', + findWhat : 'Suche nach:', + replaceWith : 'Ersetze mit:', + notFoundMsg : 'Der gesuchte Text wurde nicht gefunden.', + findOptions : 'Suchoptionen', + matchCase : 'Groß-Kleinschreibung beachten', + matchWord : 'Nur ganze Worte suchen', + matchCyclic : 'Zyklische Suche', + replaceAll : 'Alle ersetzen', + replaceSuccessMsg : '%1 vorkommen ersetzt.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabelle', + title : 'Tabellen-Eigenschaften', + menu : 'Tabellen-Eigenschaften', + deleteTable : 'Tabelle löschen', + rows : 'Zeile', + columns : 'Spalte', + border : 'Rahmen', + widthPx : 'Pixel', + widthPc : '%', + widthUnit : 'Breite Einheit', + cellSpace : 'Zellenabstand außen', + cellPad : 'Zellenabstand innen', + caption : 'Überschrift', + summary : 'Inhaltsübersicht', + headers : 'Kopfzeile', + headersNone : 'Keine', + headersColumn : 'Erste Spalte', + headersRow : 'Erste Zeile', + headersBoth : 'Beide', + invalidRows : 'Die Anzahl der Zeilen muß größer als 0 sein.', + invalidCols : 'Die Anzahl der Spalten muß größer als 0 sein..', + invalidBorder : 'Die Rahmenbreite muß eine Zahl sein.', + invalidWidth : 'Die Tabellenbreite muss eine Zahl sein.', + invalidHeight : 'Die Tabellenbreite muß eine Zahl sein.', + invalidCellSpacing : 'Der Zellenabstand außen muß eine positive Zahl sein.', + invalidCellPadding : 'Der Zellenabstand innen muß eine positive Zahl sein.', + + cell : + { + menu : 'Zelle', + insertBefore : 'Zelle davor einfügen', + insertAfter : 'Zelle danach einfügen', + deleteCell : 'Zelle löschen', + merge : 'Zellen verbinden', + mergeRight : 'Nach rechts verbinden', + mergeDown : 'Nach unten verbinden', + splitHorizontal : 'Zelle horizontal teilen', + splitVertical : 'Zelle vertikal teilen', + title : 'Zellen-Eigenschaften', + cellType : 'Zellart', + rowSpan : 'Anzahl Zeilen verbinden', + colSpan : 'Anzahl Spalten verbinden', + wordWrap : 'Zeilenumbruch', + hAlign : 'Horizontale Ausrichtung', + vAlign : 'Vertikale Ausrichtung', + alignBaseline : 'Grundlinie', + bgColor : 'Hintergrundfarbe', + borderColor : 'Rahmenfarbe', + data : 'Daten', + header : 'Überschrift', + yes : 'Ja', + no : 'Nein', + invalidWidth : 'Zellenbreite muß eine Zahl sein.', + invalidHeight : 'Zellenhöhe muß eine Zahl sein.', + invalidRowSpan : '"Anzahl Zeilen verbinden" muss eine Ganzzahl sein.', + invalidColSpan : '"Anzahl Spalten verbinden" muss eine Ganzzahl sein.', + chooseColor : 'Wählen' + }, + + row : + { + menu : 'Zeile', + insertBefore : 'Zeile oberhalb einfügen', + insertAfter : 'Zeile unterhalb einfügen', + deleteRow : 'Zeile entfernen' + }, + + column : + { + menu : 'Spalte', + insertBefore : 'Spalte links davor einfügen', + insertAfter : 'Spalte rechts danach einfügen', + deleteColumn : 'Spalte löschen' + } + }, + + // Button Dialog. + button : + { + title : 'Button-Eigenschaften', + text : 'Text (Wert)', + type : 'Typ', + typeBtn : 'Button', + typeSbm : 'Absenden', + typeRst : 'Zurücksetzen' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox-Eigenschaften', + radioTitle : 'Optionsfeld-Eigenschaften', + value : 'Wert', + selected : 'ausgewählt' + }, + + // Form Dialog. + form : + { + title : 'Formular-Eigenschaften', + menu : 'Formular-Eigenschaften', + action : 'Action', + method : 'Method', + encoding : 'Zeichenkodierung' + }, + + // Select Field Dialog. + select : + { + title : 'Auswahlfeld-Eigenschaften', + selectInfo : 'Info', + opAvail : 'Mögliche Optionen', + value : 'Wert', + size : 'Größe', + lines : 'Linien', + chkMulti : 'Erlaube Mehrfachauswahl', + opText : 'Text', + opValue : 'Wert', + btnAdd : 'Hinzufügen', + btnModify : 'Ändern', + btnUp : 'Hoch', + btnDown : 'Runter', + btnSetValue : 'Setze als Standardwert', + btnDelete : 'Entfernen' + }, + + // Textarea Dialog. + textarea : + { + title : 'Textfeld (mehrzeilig) Eigenschaften', + cols : 'Spalten', + rows : 'Reihen' + }, + + // Text Field Dialog. + textfield : + { + title : 'Textfeld (einzeilig) Eigenschaften', + name : 'Name', + value : 'Wert', + charWidth : 'Zeichenbreite', + maxChars : 'Max. Zeichen', + type : 'Typ', + typeText : 'Text', + typePass : 'Passwort' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Verstecktes Feld-Eigenschaften', + name : 'Name', + value : 'Wert' + }, + + // Image Dialog. + image : + { + title : 'Bild-Eigenschaften', + titleButton : 'Bildbutton-Eigenschaften', + menu : 'Bild-Eigenschaften', + infoTab : 'Bild-Info', + btnUpload : 'Zum Server senden', + upload : 'Hochladen', + alt : 'Alternativer Text', + lockRatio : 'Größenverhältnis beibehalten', + resetSize : 'Größe zurücksetzen', + border : 'Rahmen', + hSpace : 'Horizontal-Abstand', + vSpace : 'Vertikal-Abstand', + alertUrl : 'Bitte geben Sie die Bild-URL an', + linkTab : 'Link', + button2Img : 'Möchten Sie den gewählten Bild-Button in ein einfaches Bild umwandeln?', + img2Button : 'Möchten Sie das gewählten Bild in einen Bild-Button umwandeln?', + urlMissing : 'Imagequelle URL fehlt.', + validateBorder : 'Rahmen muß eine ganze Zahl sein.', + validateHSpace : 'Horizontal-Abstand muß eine ganze Zahl sein.', + validateVSpace : 'Vertikal-Abstand muß eine ganze Zahl sein.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash-Eigenschaften', + propertiesTab : 'Eigenschaften', + title : 'Flash-Eigenschaften', + chkPlay : 'Automatisch Abspielen', + chkLoop : 'Endlosschleife', + chkMenu : 'Flash-Menü aktivieren', + chkFull : 'Vollbildmodus erlauben', + scale : 'Skalierung', + scaleAll : 'Alles anzeigen', + scaleNoBorder : 'Ohne Rand', + scaleFit : 'Passgenau', + access : 'Skript Zugang', + accessAlways : 'Immer', + accessSameDomain: 'Gleiche Domain', + accessNever : 'Nie', + alignAbsBottom : 'Abs Unten', + alignAbsMiddle : 'Abs Mitte', + alignBaseline : 'Baseline', + alignTextTop : 'Text Oben', + quality : 'Qualität', + qualityBest : 'Beste', + qualityHigh : 'Hoch', + qualityAutoHigh : 'Auto Hoch', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto Niedrig', + qualityLow : 'Niedrig', + windowModeWindow: 'Fenster', + windowModeOpaque: 'Deckend', + windowModeTransparent : 'Transparent', + windowMode : 'Fenster Modus', + flashvars : 'Variablen für Flash', + bgcolor : 'Hintergrundfarbe', + hSpace : 'Horizontal-Abstand', + vSpace : 'Vertikal-Abstand', + validateSrc : 'Bitte geben Sie die Link-URL an', + validateHSpace : 'HSpace muss eine Zahl sein.', + validateVSpace : 'VSpace muss eine Zahl sein.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Rechtschreibprüfung', + title : 'Rechtschreibprüfung', + notAvailable : 'Entschuldigung, aber dieser Dienst steht im Moment nicht zur Verfügung.', + errorLoading : 'Fehler beim laden des Dienstanbieters: %s.', + notInDic : 'Nicht im Wörterbuch', + changeTo : 'Ändern in', + btnIgnore : 'Ignorieren', + btnIgnoreAll : 'Alle Ignorieren', + btnReplace : 'Ersetzen', + btnReplaceAll : 'Alle Ersetzen', + btnUndo : 'Rückgängig', + noSuggestions : ' - keine Vorschläge - ', + progress : 'Rechtschreibprüfung läuft...', + noMispell : 'Rechtschreibprüfung abgeschlossen - keine Fehler gefunden', + noChanges : 'Rechtschreibprüfung abgeschlossen - keine Worte geändert', + oneChange : 'Rechtschreibprüfung abgeschlossen - ein Wort geändert', + manyChanges : 'Rechtschreibprüfung abgeschlossen - %1 Wörter geändert', + ieSpellDownload : 'Rechtschreibprüfung nicht installiert. Möchten Sie sie jetzt herunterladen?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Smiley auswählen', + options : 'Smiley Optionen' + }, + + elementsPath : + { + eleLabel : 'Elements Pfad', + eleTitle : '%1 Element' + }, + + numberedlist : 'Nummerierte Liste', + bulletedlist : 'Liste', + indent : 'Einzug erhöhen', + outdent : 'Einzug verringern', + + justify : + { + left : 'Linksbündig', + center : 'Zentriert', + right : 'Rechtsbündig', + block : 'Blocksatz' + }, + + blockquote : 'Zitatblock', + + clipboard : + { + title : 'Einfügen', + cutError : 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch auszuschneiden. Bitte benutzen Sie die System-Zwischenablage über STRG-X (ausschneiden) und STRG-V (einfügen).', + copyError : 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).', + pasteMsg : 'Bitte fügen Sie den Text in der folgenden Box über die Tastatur (mit <STRONG>Strg+V</STRONG>) ein und bestätigen Sie mit <STRONG>OK</STRONG>.', + securityMsg : 'Aufgrund von Sicherheitsbeschränkungen Ihres Browsers kann der Editor nicht direkt auf die Zwischenablage zugreifen. Bitte fügen Sie den Inhalt erneut in diesem Fenster ein.', + pasteArea : 'Einfügebereich' + }, + + pastefromword : + { + confirmCleanup : 'Der Text, den Sie einfügen möchten, scheint aus MS-Word kopiert zu sein. Möchten Sie ihn zuvor bereinigen lassen?', + toolbar : 'Aus MS-Word einfügen', + title : 'Aus MS-Word einfügen', + error : 'Aufgrund eines internen Fehlers war es nicht möglich die eingefügten Daten zu bereinigen' + }, + + pasteText : + { + button : 'Als Text einfügen', + title : 'Als Text einfügen' + }, + + templates : + { + button : 'Vorlagen', + title : 'Vorlagen', + options : 'Vorlagen Optionen', + insertOption : 'Aktuellen Inhalt ersetzen', + selectPromptMsg : 'Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen (der aktuelle Inhalt wird dabei gelöscht!):', + emptyListMsg : '(keine Vorlagen definiert)' + }, + + showBlocks : 'Blöcke anzeigen', + + stylesCombo : + { + label : 'Stil', + panelTitle : 'Formatierungenstil', + panelTitle1 : 'Block Stilart', + panelTitle2 : 'Inline Stilart', + panelTitle3 : 'Objekt Stilart' + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normal', + tag_pre : 'Formatiert', + tag_address : 'Addresse', + tag_h1 : 'Überschrift 1', + tag_h2 : 'Überschrift 2', + tag_h3 : 'Überschrift 3', + tag_h4 : 'Überschrift 4', + tag_h5 : 'Überschrift 5', + tag_h6 : 'Überschrift 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Div Container erzeugen', + toolbar : 'Div Container erzeugen', + cssClassInputLabel : 'Stylesheet Klasse', + styleSelectLabel : 'Style', + IdInputLabel : 'Id', + languageCodeInputLabel : 'Sprachenkürzel', + inlineStyleInputLabel : 'Inline Stil', + advisoryTitleInputLabel : 'Tooltip', + langDirLabel : 'Sprache Richtung', + langDirLTRLabel : 'Links nach Rechs (LTR)', + langDirRTLLabel : 'Rechs nach Links (RTL)', + edit : 'Div bearbeiten', + remove : 'Div entfernen' + }, + + iframe : + { + title : 'IFrame-Eigenschaften', + toolbar : 'IFrame', + noUrl : 'Bitte geben Sie die IFrame-URL an', + scrolling : 'Rollbalken anzeigen', + border : 'Rahmen anzeigen' + }, + + font : + { + label : 'Schriftart', + voiceLabel : 'Schriftart', + panelTitle : 'Schriftart' + }, + + fontSize : + { + label : 'Größe', + voiceLabel : 'Schrifgröße', + panelTitle : 'Größe' + }, + + colorButton : + { + textColorTitle : 'Textfarbe', + bgColorTitle : 'Hintergrundfarbe', + panelTitle : 'Farben', + auto : 'Automatisch', + more : 'Weitere Farben...' + }, + + colors : + { + '000' : 'Schwarz', + '800000' : 'Kastanienbraun', + '8B4513' : 'Braun', + '2F4F4F' : 'Dunkles Schiefergrau', + '008080' : 'Blaugrün', + '000080' : 'Navy', + '4B0082' : 'Indigo', + '696969' : 'Dunkelgrau', + 'B22222' : 'Ziegelrot', + 'A52A2A' : 'Braun', + 'DAA520' : 'Goldgelb', + '006400' : 'Dunkelgrün', + '40E0D0' : 'Türkis', + '0000CD' : 'Medium Blau', + '800080' : 'Lila', + '808080' : 'Grau', + 'F00' : 'Rot', + 'FF8C00' : 'Dunkelorange', + 'FFD700' : 'Gold', + '008000' : 'Grün', + '0FF' : 'Cyan', + '00F' : 'Blau', + 'EE82EE' : 'Hellviolett', + 'A9A9A9' : 'Dunkelgrau', + 'FFA07A' : 'Helles Lachsrosa', + 'FFA500' : 'Orange', + 'FFFF00' : 'Gelb', + '00FF00' : 'Lime', + 'AFEEEE' : 'Blaß-Türkis', + 'ADD8E6' : 'Hellblau', + 'DDA0DD' : 'Pflaumenblau', + 'D3D3D3' : 'Hellgrau', + 'FFF0F5' : 'Lavendel', + 'FAEBD7' : 'Antik Weiß', + 'FFFFE0' : 'Hellgelb', + 'F0FFF0' : 'Honigtau', + 'F0FFFF' : 'Azurblau', + 'F0F8FF' : 'Alice Blau', + 'E6E6FA' : 'Lavendel', + 'FFF' : 'Weiß' + }, + + scayt : + { + title : 'Rechtschreibprüfung während der Texteingabe (SCAYT)', + opera_title : 'Nicht von Opera unterstützt', + enable : 'SCAYT einschalten', + disable : 'SCAYT ausschalten', + about : 'Über SCAYT', + toggle : 'SCAYT umschalten', + options : 'Optionen', + langs : 'Sprachen', + moreSuggestions : 'Mehr Vorschläge', + ignore : 'Ignorieren', + ignoreAll : 'Alle ignorieren', + addWord : 'Wort hinzufügen', + emptyDic : 'Wörterbuchname sollte leer sein.', + + optionsTab : 'Optionen', + allCaps : 'Groß geschriebenen Wörter ignorieren', + ignoreDomainNames : 'Domain-Namen ignorieren', + mixedCase : 'Wörter mit gemischte Setzkasten ignorieren', + mixedWithDigits : 'Wörter mit Zahlen ignorieren', + + languagesTab : 'Sprachen', + + dictionariesTab : 'Wörterbücher', + dic_field_name : 'Wörterbuchname', + dic_create : 'Erzeugen', + dic_restore : 'Wiederherstellen', + dic_delete : 'Löschen', + dic_rename : 'Umbenennen', + dic_info : 'Anfangs wird das Benutzerwörterbuch in einem Cookie gespeichert. Allerdings sind Cookies in der Größe begrenzt. Wenn das Benutzerwörterbuch bis zu einem Punkt wächst, wo es nicht mehr in einem Cookie gespeichert werden kann, wird das Benutzerwörterbuch auf dem Server gespeichert. Um Ihr persönliches Wörterbuch auf dem Server zu speichern, müssen Sie einen Namen für das Wörterbuch angeben. Falls Sie schon ein gespeicherte Wörterbuch haben, geben Sie bitte dessen Namen ein und klicken Sie auf die Schaltfläche Wiederherstellen.', + + aboutTab : 'Über' + }, + + about : + { + title : 'Über CKEditor', + dlgTitle : 'Über CKEditor', + help : 'Prüfe $1 für Hilfe.', + userGuide : 'CKEditor Benutzerhandbuch', + moreInfo : 'Für Informationen über unsere Lizenzbestimmungen besuchen sie bitte unsere Webseite:', + copy : 'Copyright © $1. Alle Rechte vorbehalten.' + }, + + maximize : 'Maximieren', + minimize : 'Minimieren', + + fakeobjects : + { + anchor : 'Anker', + flash : 'Flash Animation', + iframe : 'IFrame', + hiddenfield : 'Verstecktes Feld', + unknown : 'Unbekanntes Objekt' + }, + + resize : 'Zum Vergrößern ziehen', + + colordialog : + { + title : 'Farbe wählen', + options : 'Farbeoptionen', + highlight : 'Hervorheben', + selected : 'Ausgewählte Farbe', + clear : 'Entfernen' + }, + + toolbarCollapse : 'Symbolleiste einklappen', + toolbarExpand : 'Symbolleiste ausklappen', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Zwischenablage/Rückgängig', + editing : 'Editieren', + forms : 'Formularen', + basicstyles : 'Grundstile', + paragraph : 'Absatz', + links : 'Links', + insert : 'Einfügen', + styles : 'Stile', + colors : 'Farben', + tools : 'Werkzeuge' + }, + + bidi : + { + ltr : 'Leserichtung von Links nach Rechts', + rtl : 'Leserichtung von Rechts nach Links' + }, + + docprops : + { + label : 'Dokument-Eigenschaften', + title : 'Dokument-Eigenschaften', + design : 'Design', + meta : 'Metadaten', + chooseColor : 'Wählen', + other : '<andere>', + docTitle : 'Seitentitel', + charset : 'Zeichenkodierung', + charsetOther : 'Andere Zeichenkodierung', + charsetASCII : 'ASCII', + charsetCE : 'Zentraleuropäisch', + charsetCT : 'traditionell Chinesisch (Big5)', + charsetCR : 'Kyrillisch', + charsetGR : 'Griechisch', + charsetJP : 'Japanisch', + charsetKR : 'Koreanisch', + charsetTR : 'Türkisch', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Westeuropäisch', + docType : 'Dokumententyp', + docTypeOther : 'Anderer Dokumententyp', + xhtmlDec : 'Beziehe XHTML Deklarationen ein', + bgColor : 'Hintergrundfarbe', + bgImage : 'Hintergrundbild URL', + bgFixed : 'feststehender Hintergrund', + txtColor : 'Textfarbe', + margin : 'Seitenränder', + marginTop : 'Oben', + marginLeft : 'Links', + marginRight : 'Rechts', + marginBottom : 'Unten', + metaKeywords : 'Schlüsselwörter (durch Komma getrennt)', + metaDescription : 'Dokument-Beschreibung', + metaAuthor : 'Autor', + metaCopyright : 'Copyright', + previewHtml : '<p>Das ist ein <strong>Beispieltext</strong>. Du schreibst in <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/el.js b/htdocs/includes/ckeditor/_source/lang/el.js new file mode 100644 index 0000000000000000000000000000000000000000..6c18e2535acde017f7d1ff03c50fb5b569faa54e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/el.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Greek language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['el'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Εργαλειοθήκες Επεξεργαστή', + editor : 'Επεξεργαστής Πλούσιου Κειμένου', + + // Toolbar buttons without dialogs. + source : 'HTML κώδικας', + newPage : 'Νέα Σελίδα', + save : 'Αποθήκευση', + preview : 'Προεπισκόπιση', + cut : 'Αποκοπή', + copy : 'Αντιγραφή', + paste : 'Επικόλληση', + print : 'Εκτύπωση', + underline : 'Υπογράμμιση', + bold : 'Έντονα', + italic : 'Πλάγια', + selectAll : 'Επιλογή όλων', + removeFormat : 'Αφαίρεση Μορφοποίησης', + strike : 'Διαγράμμιση', + subscript : 'Δείκτης', + superscript : 'Εκθέτης', + horizontalrule : 'Εισαγωγή Οριζόντιας Γραμμής', + pagebreak : 'Εισαγωγή τέλους σελίδας', + pagebreakAlt : 'Αλλαγή Σελίδας', + unlink : 'Αφαίρεση Συνδέσμου (Link)', + undo : 'Αναίρεση', + redo : 'Επαναφορά', + + // Common messages and labels. + common : + { + browseServer : 'Εξερεύνηση διακομιστή', + url : 'URL', + protocol : 'Πρωτόκολλο', + upload : 'Ανέβασμα', + uploadSubmit : 'Αποστολή στον Διακομιστή', + image : 'Εικόνα', + flash : 'Εισαγωγή Flash', + form : 'Φόρμα', + checkbox : 'Κουτί επιλογής', + radio : 'Κουμπί επιλογής', + textField : 'Πεδίο κειμένου', + textarea : 'Περιοχή κειμένου', + hiddenField : 'Κρυφό πεδίο', + button : 'Κουμπί', + select : 'Πεδίο επιλογής', + imageButton : 'Κουμπί εικόνας', + notSet : '<δεν έχει ρυθμιστεί>', + id : 'Id', + name : 'Όνομα', + langDir : 'Κατεύθυνση κειμένου', + langDirLtr : 'Αριστερά προς Δεξιά (LTR)', + langDirRtl : 'Δεξιά προς Αριστερά (RTL)', + langCode : 'Κωδικός Γλώσσας', + longDescr : 'Αναλυτική περιγραφή URL', + cssClass : 'Stylesheet Classes', + advisoryTitle : 'Ενδεικτικός τίτλος', + cssStyle : 'Μορφή κειμένου', + ok : 'OK', + cancel : 'Ακύρωση', + close : 'Κλείσιμο', + preview : 'Προεπισκόπηση', + generalTab : 'Γενικά', + advancedTab : 'Για προχωρημένους', + validateNumberFailed : 'Αυτή η τιμή δεν είναι αριθμός.', + confirmNewPage : 'Οι όποιες αλλαγές στο περιεχόμενο θα χαθούν. Είσαστε σίγουροι ότι θέλετε να φορτώσετε μια νέα σελίδα;', + confirmCancel : 'Μερικές επιλογές έχουν αλλάξει. Είσαστε σίγουροι ότι θέλετε να κλείσετε το παράθυρο διαλόγου;', + options : 'Επιλογές', + target : 'Προορισμός', + targetNew : 'Νέο Παράθυρο (_blank)', + targetTop : 'Αρχική Περιοχή (_top)', + targetSelf : 'Ίδια Περιοχή (_self)', + targetParent : 'Γονεϊκό Παράθυρο (_parent)', + langDirLTR : 'Αριστερά προς Δεξιά (LTR)', + langDirRTL : 'Δεξιά προς Αριστερά (RTL)', + styles : 'Μορφή', + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Πλάτος', + height : 'Ύψος', + align : 'Στοίχιση', + alignLeft : 'Αριστερά', + alignRight : 'Δεξιά', + alignCenter : 'Κέντρο', + alignTop : 'Πάνω', + alignMiddle : 'Μέση', + alignBottom : 'Κάτω', + invalidHeight : 'Το ύψος πρέπει να είναι ένας αριθμός.', + invalidWidth : 'Το πλάτος πρέπει να είναι ένας αριθμός.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Επιλογές Αναδυόμενου Μενού' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Εισαγωγή Ειδικού Χαρακτήρα', + title : 'Επιλέξτε έναν Ειδικό Χαρακτήρα', + options : 'Επιλογές Ειδικών Χαρακτήρων' + }, + + // Link dialog. + link : + { + toolbar : 'Σύνδεσμος', + other : '<άλλο>', + menu : 'Επεξεργασία Συνδέσμου', + title : 'Σύνδεσμος', + info : 'Πληροφορίες Συνδέσμου', + target : 'Παράθυρο Προορισμού', + upload : 'Ανέβασμα', + advanced : 'Για προχωρημένους', + type : 'Τύπος Συνδέσμου', + toUrl : 'URL', // MISSING + toAnchor : 'Άγκυρα σε αυτή τη σελίδα', + toEmail : 'E-Mail', + targetFrame : '<πλαίσιο>', + targetPopup : '<αναδυόμενο παράθυρο>', + targetFrameName : 'Όνομα Παραθύρου Προορισμού', + targetPopupName : 'Όνομα Αναδυόμενου Παραθύρου', + popupFeatures : 'Επιλογές Αναδυόμενου Παραθύρου', + popupResizable : 'Προσαρμοζόμενο Μέγεθος', + popupStatusBar : 'Γραμμή Κατάστασης', + popupLocationBar: 'Γραμμή Τοποθεσίας', + popupToolbar : 'Εργαλειοθήκη', + popupMenuBar : 'Γραμμή Επιλογών', + popupFullScreen : 'Πλήρης Οθόνη (IE)', + popupScrollBars : 'Μπάρες Κύλισης', + popupDependent : 'Εξαρτημένο (Netscape)', + popupLeft : 'Θέση Αριστερά', + popupTop : 'Θέση Πάνω', + id : 'Id', // MISSING + langDir : 'Κατεύθυνση Κειμένου', + langDirLTR : 'Αριστερά προς Δεξιά (LTR)', + langDirRTL : 'Δεξιά προς Αριστερά (RTL)', + acccessKey : 'Συντόμευση', + name : 'Όνομα', + langCode : 'Κατεύθυνση Κειμένου', + tabIndex : 'Σειρά Μεταπήδησης', + advisoryTitle : 'Ενδεικτικός Τίτλος', + advisoryContentType : 'Ενδεικτικός Τύπος Περιεχομένου', + cssClasses : 'Stylesheet Classes', + charset : 'Κωδικοποίηση Χαρακτήρων Προσαρτημένης Πηγής', + styles : 'Μορφή', + rel : 'Σχέση', + selectAnchor : 'Επιλέξτε μια άγκυρα', + anchorName : 'Βάσει του Ονόματος της άγκυρας', + anchorId : 'Βάσει του Element Id', + emailAddress : 'Διεύθυνση e-mail', + emailSubject : 'Θέμα Μηνύματος', + emailBody : 'Κείμενο Μηνύματος', + noAnchors : '(Δεν υπάρχουν άγκυρες στο κείμενο)', + noUrl : 'Εισάγετε την τοποθεσία (URL) του υπερσυνδέσμου (Link)', + noEmail : 'Εισάγετε την διεύθυνση ηλεκτρονικού ταχυδρομείου' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Εισαγωγή/επεξεργασία Άγκυρας', + menu : 'Ιδιότητες άγκυρας', + title : 'Ιδιότητες άγκυρας', + name : 'Όνομα άγκυρας', + errorName : 'Παρακαλούμε εισάγετε όνομα άγκυρας', + remove : 'Αφαίρεση Άγκυρας' + }, + + // List style dialog + list: + { + numberedTitle : 'Ιδιότητες Αριθμημένης Λίστας ', + bulletedTitle : 'Ιδιότητες Λίστας Σημείων', + type : 'Τύπος', + start : 'Εκκίνηση', + validateStartNumber :'Ο αριθμός εκκίνησης της αρίθμησης πρέπει να είναι ακέραιος αριθμός.', + circle : 'Κύκλος', + disc : 'Δίσκος', + square : 'Τετράγωνο', + none : 'Τίποτα', + notset : '<δεν έχει οριστεί>', + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Δεκαδικός (1, 2, 3, κτλ)', + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Αναζήτηση και Αντικατάσταση', + find : 'Αναζήτηση', + replace : 'Αντικατάσταση', + findWhat : 'Αναζήτηση για:', + replaceWith : 'Αντικατάσταση με:', + notFoundMsg : 'Το κείμενο δεν βρέθηκε.', + findOptions : 'Find Options', // MISSING + matchCase : 'Έλεγχος πεζών/κεφαλαίων', + matchWord : 'Εύρεση πλήρους λέξης', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Αντικατάσταση Όλων', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Πίνακας', + title : 'Ιδιότητες Πίνακα', + menu : 'Ιδιότητες Πίνακα', + deleteTable : 'Διαγραφή πίνακα', + rows : 'Γραμμές', + columns : 'Κολώνες', + border : 'Πάχος Περιγράμματος', + widthPx : 'pixels', + widthPc : 'τοις εκατό', + widthUnit : 'μονάδα πλάτους', + cellSpace : 'Διάστημα κελιών', + cellPad : 'Γέμισμα κελιών', + caption : 'Λεζάντα', + summary : 'Περίληψη', + headers : 'Κεφαλίδες', + headersNone : 'Κανένα', + headersColumn : 'Πρώτη Στήλη', + headersRow : 'Πρώτη Σειρά', + headersBoth : 'Και τα δύο', + invalidRows : 'Ο αριθμός των σειρών πρέπει να είναι μεγαλύτερος από 0.', + invalidCols : 'Ο αριθμός των στηλών πρέπει να είναι μεγαλύτερος από 0.', + invalidBorder : 'Το πάχος του περιγράμματος πρέπει να είναι ένας αριθμός.', + invalidWidth : 'Το πλάτος του πίνακα πρέπει να είναι ένας αριθμός.', + invalidHeight : 'Το ύψος του πίνακα πρέπει να είναι ένας αριθμός.', + invalidCellSpacing : 'Η απόσταση μεταξύ των κελιών πρέπει να είναι ένας θετικός αριθμός.', + invalidCellPadding : 'Το γέμισμα μέσα στα κελιά πρέπει να είναι ένας θετικός αριθμός.', + + cell : + { + menu : 'Κελί', + insertBefore : 'Εισαγωγή Κελιού Πριν', + insertAfter : 'Εισαγωγή Κελιού Μετά', + deleteCell : 'Διαγραφή Κελιών', + merge : 'Ενοποίηση Κελιών', + mergeRight : 'Συγχώνευση Με Δεξιά', + mergeDown : 'Συγχώνευση Με Κάτω', + splitHorizontal : 'Οριζόντιο Μοίρασμα Κελιού', + splitVertical : 'Κατακόρυφο Μοίρασμα Κελιού', + title : 'Ιδιότητες Κελιού', + cellType : 'Τύπος Κελιού', + rowSpan : 'Εύρος Σειρών', + colSpan : 'Εύρος Στηλών', + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Οριζόντια Στοίχιση', + vAlign : 'Κάθετη Στοίχιση', + alignBaseline : 'Baseline', // MISSING + bgColor : 'Χρώμα Φόντου', + borderColor : 'Χρώμα Περιγράμματος', + data : 'Δεδομένα', + header : 'Κεφαλίδα', + yes : 'Ναι', + no : 'Όχι', + invalidWidth : 'Το πλάτος του κελιού πρέπει να είναι ένας αριθμός.', + invalidHeight : 'Το ύψος του κελιού πρέπει να είναι ένας αριθμός.', + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Επιλέξτε' + }, + + row : + { + menu : 'Σειρά', + insertBefore : 'Εισαγωγή Σειράς Από Πάνω', + insertAfter : 'Εισαγωγή Σειράς Από Κάτω', + deleteRow : 'Διαγραφή Γραμμών' + }, + + column : + { + menu : 'Στήλη', + insertBefore : 'Εισαγωγή Στήλης Πριν', + insertAfter : 'Εισαγωγή Σειράς Μετά', + deleteColumn : 'Διαγραφή Κολωνών' + } + }, + + // Button Dialog. + button : + { + title : 'Ιδιότητες Κουμπιού', + text : 'Κείμενο (Τιμή)', + type : 'Τύπος', + typeBtn : 'Κουμπί', + typeSbm : 'Υποβολή', + typeRst : 'Επαναφορά' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Ιδιότητες Κουτιού Επιλογής', + radioTitle : 'Ιδιότητες Κουμπιού Επιλογής', + value : 'Τιμή', + selected : 'Επιλεγμένο' + }, + + // Form Dialog. + form : + { + title : 'Ιδιότητες Φόρμας', + menu : 'Ιδιότητες Φόρμας', + action : 'Δράση', + method : 'Μέθοδος', + encoding : 'Κωδικοποίηση' + }, + + // Select Field Dialog. + select : + { + title : 'Ιδιότητες Πεδίου Επιλογής', + selectInfo : 'Πληροφορίες Πεδίου Επιλογής', + opAvail : 'Διαθέσιμες Επιλογές', + value : 'Τιμή', + size : 'Μέγεθος', + lines : 'γραμμές', + chkMulti : 'Να επιτρέπονται οι πολλαπλές επιλογές', + opText : 'Κείμενο', + opValue : 'Τιμή', + btnAdd : 'Προσθήκη', + btnModify : 'Τροποποίηση', + btnUp : 'Πάνω', + btnDown : 'Κάτω', + btnSetValue : 'Προεπιλογή', + btnDelete : 'Διαγραφή' + }, + + // Textarea Dialog. + textarea : + { + title : 'Ιδιότητες Περιοχής Κειμένου', + cols : 'Στήλες', + rows : 'Σειρές' + }, + + // Text Field Dialog. + textfield : + { + title : 'Ιδιότητες Πεδίου Κειμένου', + name : 'Όνομα', + value : 'Τιμή', + charWidth : 'Πλάτος Χαρακτήρων', + maxChars : 'Μέγιστοι χαρακτήρες', + type : 'Τύπος', + typeText : 'Κείμενο', + typePass : 'Κωδικός' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Ιδιότητες Κρυφού Πεδίου', + name : 'Όνομα', + value : 'Τιμή' + }, + + // Image Dialog. + image : + { + title : 'Ιδιότητες Εικόνας', + titleButton : 'Ιδιότητες Κουμπιού Εικόνας', + menu : 'Ιδιότητες Εικόνας', + infoTab : 'Πληροφορίες Εικόνας', + btnUpload : 'Αποστολή στον Διακομιστή', + upload : 'Ανέβασμα', + alt : 'Εναλλακτικό Κείμενο', + lockRatio : 'Κλείδωμα Αναλογίας', + resetSize : 'Επαναφορά Αρχικού Μεγέθους', + border : 'Περίγραμμα', + hSpace : 'Οριζόντιο Διάστημα', + vSpace : 'Κάθετο Διάστημα', + alertUrl : 'Εισάγετε την τοποθεσία (URL) της εικόνας', + linkTab : 'Σύνδεσμος', + button2Img : 'Θέλετε να μετατρέψετε το επιλεγμένο κουμπί εικόνας σε απλή εικόνα;', + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Ιδιότητες Flash', + propertiesTab : 'Ιδιότητες', + title : 'Ιδιότητες Flash', + chkPlay : 'Αυτόματη Εκτέλεση', + chkLoop : 'Επανάληψη', + chkMenu : 'Ενεργοποίηση Flash Menu', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Μεγέθυνση', + scaleAll : 'Εμφάνιση όλων', + scaleNoBorder : 'Χωρίς Περίγραμμα', + scaleFit : 'Ακριβές Μέγεθος', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Απόλυτα Κάτω', + alignAbsMiddle : 'Απόλυτα στη Μέση', + alignBaseline : 'Γραμμή Βάσης', + alignTextTop : 'Κορυφή Κειμένου', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Χρώμα Υποβάθρου', + hSpace : 'Οριζόντιο Διάστημα', + vSpace : 'Κάθετο Διάστημα', + validateSrc : 'Εισάγετε την τοποθεσία (URL) του υπερσυνδέσμου (Link)', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Ορθογραφικός Έλεγχος', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Δεν υπάρχει στο λεξικό', + changeTo : 'Αλλαγή σε', + btnIgnore : 'Αγνόηση', + btnIgnoreAll : 'Αγνόηση όλων', + btnReplace : 'Αντικατάσταση', + btnReplaceAll : 'Αντικατάσταση όλων', + btnUndo : 'Αναίρεση', + noSuggestions : '- Δεν υπάρχουν προτάσεις -', + progress : 'Γίνεται ορθογραφικός έλεγχος...', + noMispell : 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Δεν βρέθηκαν λάθη', + noChanges : 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Δεν άλλαξαν λέξεις', + oneChange : 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Άλλαξε μια λέξη', + manyChanges : 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Άλλαξαν %1 λέξεις', + ieSpellDownload : 'Δεν υπάρχει εγκατεστημένος ορθογράφος. Θέλετε να τον κατεβάσετε τώρα;' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Επιλέξτε ένα Smiley', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Εισαγωγή/Απομάκρυνση Αριθμημένης Λίστας', + bulletedlist : 'Εισαγωγή/Απομάκρυνση Λίστας Κουκκίδων', + indent : 'Αύξηση Εσοχής', + outdent : 'Μείωση Εσοχής', + + justify : + { + left : 'Στοίχιση Αριστερά', + center : 'Στοίχιση στο Κέντρο', + right : 'Στοίχιση Δεξιά', + block : 'Πλήρης Στοίχιση' + }, + + blockquote : 'Περιοχή Παράθεσης', + + clipboard : + { + title : 'Επικόλληση', + cutError : 'Οι ρυθμίσεις ασφαλείας του φυλλομετρητή σας δεν επιτρέπουν την επιλεγμένη εργασία αποκοπής. Χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+X).', + copyError : 'Οι ρυθμίσεις ασφαλείας του φυλλομετρητή σας δεν επιτρέπουν την επιλεγμένη εργασία αντιγραφής. Χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+C).', + pasteMsg : 'Παρακαλώ επικολήστε στο ακόλουθο κουτί χρησιμοποιόντας το πληκτρολόγιο (<strong>Ctrl/Cmd+V</strong>) και πατήστε OK.', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Επικόλληση από το Word', + title : 'Επικόλληση από το Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Επικόλληση ως Απλό Κείμενο', + title : 'Επικόλληση ως Απλό Κείμενο' + }, + + templates : + { + button : 'Πρότυπα', + title : 'Πρότυπα Περιεχομένου', + options : 'Template Options', // MISSING + insertOption : 'Αντικατάσταση υπάρχοντων περιεχομένων', + selectPromptMsg : 'Παρακαλώ επιλέξτε πρότυπο για εισαγωγή στο πρόγραμμα', + emptyListMsg : '(Δεν έχουν καθοριστεί πρότυπα)' + }, + + showBlocks : 'Προβολή Περιοχών', + + stylesCombo : + { + label : 'Μορφές', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Μορφοποίηση', + panelTitle : 'Μορφοποίηση Παραγράφου', + + tag_p : 'Κανονικό', + tag_pre : 'Μορφοποιημένο', + tag_address : 'Διεύθυνση', + tag_h1 : 'Επικεφαλίδα 1', + tag_h2 : 'Επικεφαλίδα 2', + tag_h3 : 'Επικεφαλίδα 3', + tag_h4 : 'Επικεφαλίδα 4', + tag_h5 : 'Επικεφαλίδα 5', + tag_h6 : 'Επικεφαλίδα 6', + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Γραμματοσειρά', + voiceLabel : 'Font', // MISSING + panelTitle : 'Όνομα Γραμματοσειράς' + }, + + fontSize : + { + label : 'Μέγεθος', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Μέγεθος Γραμματοσειράς' + }, + + colorButton : + { + textColorTitle : 'Χρώμα Κειμένου', + bgColorTitle : 'Χρώμα Φόντου', + panelTitle : 'Colors', // MISSING + auto : 'Αυτόματα', + more : 'Περισσότερα χρώματα...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Μεγιστοποίηση', + minimize : 'Ελαχιστοποίηση', + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Σύρσιμο για αλλαγή μεγέθους', + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Σύμπτηξη Εργαλειοθήκης', + toolbarExpand : 'Ανάπτυξη Εργαλειοθήκης', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Ιδιότητες Εγγράφου', + title : 'Ιδιότητες Εγγράφου', + design : 'Design', // MISSING + meta : 'Δεδομένα Meta', + chooseColor : 'Choose', // MISSING + other : 'Άλλο...', + docTitle : 'Τίτλος Σελίδας', + charset : 'Κωδικοποίηση Χαρακτήρων', + charsetOther : 'Άλλη Κωδικοποίηση Χαρακτήρων', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Κεντρικής Ευρώπης', + charsetCT : 'Παραδοσιακά κινέζικα (Big5)', + charsetCR : 'Κυριλλική', + charsetGR : 'Ελληνική', + charsetJP : 'Ιαπωνική', + charsetKR : 'Κορεάτικη', + charsetTR : 'Τουρκική', + charsetUN : 'Διεθνής (UTF-8)', + charsetWE : 'Δυτικής Ευρώπης', + docType : 'Επικεφαλίδα τύπου εγγράφου', + docTypeOther : 'Άλλη επικεφαλίδα τύπου εγγράφου', + xhtmlDec : 'Να συμπεριληφθούν οι δηλώσεις XHTML', + bgColor : 'Χρώμα φόντου', + bgImage : 'Διεύθυνση εικόνας φόντου', + bgFixed : 'Φόντο χωρίς κύλιση', + txtColor : 'Χρώμα Γραμμάτων', + margin : 'Περιθώρια σελίδας', + marginTop : 'Κορυφή', + marginLeft : 'Αριστερά', + marginRight : 'Δεξιά', + marginBottom : 'Κάτω', + metaKeywords : 'Λέξεις κλειδιά δείκτες εγγράφου (διαχωρισμός με κόμμα)', + metaDescription : 'Περιγραφή εγγράφου', + metaAuthor : 'Συγγραφέας', + metaCopyright : 'Πνευματικά Δικαιώματα', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/en-au.js b/htdocs/includes/ckeditor/_source/lang/en-au.js new file mode 100644 index 0000000000000000000000000000000000000000..f577109c9cca393c36a5b702c4bd48a3bf61e083 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/en-au.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * English (Australia) language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['en-au'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Source', + newPage : 'New Page', + save : 'Save', + preview : 'Preview', + cut : 'Cut', + copy : 'Copy', + paste : 'Paste', + print : 'Print', + underline : 'Underline', + bold : 'Bold', + italic : 'Italic', + selectAll : 'Select All', + removeFormat : 'Remove Format', + strike : 'Strike Through', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Insert Horizontal Line', + pagebreak : 'Insert Page Break for Printing', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Unlink', + undo : 'Undo', + redo : 'Redo', + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', + url : 'URL', + protocol : 'Protocol', + upload : 'Upload', + uploadSubmit : 'Send it to the Server', + image : 'Image', + flash : 'Flash', + form : 'Form', + checkbox : 'Checkbox', + radio : 'Radio Button', + textField : 'Text Field', + textarea : 'Textarea', + hiddenField : 'Hidden Field', + button : 'Button', + select : 'Selection Field', + imageButton : 'Image Button', + notSet : '<not set>', + id : 'Id', + name : 'Name', + langDir : 'Language Direction', + langDirLtr : 'Left to Right (LTR)', + langDirRtl : 'Right to Left (RTL)', + langCode : 'Language Code', + longDescr : 'Long Description URL', + cssClass : 'Stylesheet Classes', + advisoryTitle : 'Advisory Title', + cssStyle : 'Style', + ok : 'OK', + cancel : 'Cancel', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', + advancedTab : 'Advanced', + validateNumberFailed : 'This value is not a number.', + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Width', // MISSING + height : 'Height', // MISSING + align : 'Align', + alignLeft : 'Left', // MISSING + alignRight : 'Right', // MISSING + alignCenter : 'Centre', + alignTop : 'Top', // MISSING + alignMiddle : 'Middle', // MISSING + alignBottom : 'Bottom', // MISSING + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insert Special Character', + title : 'Select Special Character', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Link', + other : '<other>', + menu : 'Edit Link', + title : 'Link', + info : 'Link Info', + target : 'Target', + upload : 'Upload', + advanced : 'Advanced', + type : 'Link Type', + toUrl : 'URL', // MISSING + toAnchor : 'Link to anchor in the text', + toEmail : 'E-mail', + targetFrame : '<frame>', + targetPopup : '<popup window>', + targetFrameName : 'Target Frame Name', + targetPopupName : 'Popup Window Name', + popupFeatures : 'Popup Window Features', + popupResizable : 'Resizable', + popupStatusBar : 'Status Bar', + popupLocationBar: 'Location Bar', + popupToolbar : 'Toolbar', + popupMenuBar : 'Menu Bar', + popupFullScreen : 'Full Screen (IE)', + popupScrollBars : 'Scroll Bars', + popupDependent : 'Dependent (Netscape)', + popupLeft : 'Left Position', + popupTop : 'Top Position', + id : 'Id', + langDir : 'Language Direction', + langDirLTR : 'Left to Right (LTR)', + langDirRTL : 'Right to Left (RTL)', + acccessKey : 'Access Key', + name : 'Name', + langCode : 'Language Code', + tabIndex : 'Tab Index', + advisoryTitle : 'Advisory Title', + advisoryContentType : 'Advisory Content Type', + cssClasses : 'Stylesheet Classes', + charset : 'Linked Resource Charset', + styles : 'Style', + rel : 'Relationship', // MISSING + selectAnchor : 'Select an Anchor', + anchorName : 'By Anchor Name', + anchorId : 'By Element Id', + emailAddress : 'E-Mail Address', + emailSubject : 'Message Subject', + emailBody : 'Message Body', + noAnchors : '(No anchors available in the document)', + noUrl : 'Please type the link URL', + noEmail : 'Please type the e-mail address' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anchor', + menu : 'Edit Anchor', + title : 'Anchor Properties', + name : 'Anchor Name', + errorName : 'Please type the anchor name', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', + find : 'Find', + replace : 'Replace', + findWhat : 'Find what:', + replaceWith : 'Replace with:', + notFoundMsg : 'The specified text was not found.', + findOptions : 'Find Options', // MISSING + matchCase : 'Match case', + matchWord : 'Match whole word', + matchCyclic : 'Match cyclic', + replaceAll : 'Replace All', + replaceSuccessMsg : '%1 occurrence(s) replaced.' + }, + + // Table Dialog + table : + { + toolbar : 'Table', + title : 'Table Properties', + menu : 'Table Properties', + deleteTable : 'Delete Table', + rows : 'Rows', + columns : 'Columns', + border : 'Border size', + widthPx : 'pixels', + widthPc : 'percent', + widthUnit : 'width unit', // MISSING + cellSpace : 'Cell spacing', + cellPad : 'Cell padding', + caption : 'Caption', + summary : 'Summary', + headers : 'Headers', + headersNone : 'None', + headersColumn : 'First column', + headersRow : 'First Row', + headersBoth : 'Both', + invalidRows : 'Number of rows must be a number greater than 0.', + invalidCols : 'Number of columns must be a number greater than 0.', + invalidBorder : 'Border size must be a number.', + invalidWidth : 'Table width must be a number.', + invalidHeight : 'Table height must be a number.', + invalidCellSpacing : 'Cell spacing must be a number.', + invalidCellPadding : 'Cell padding must be a number.', + + cell : + { + menu : 'Cell', + insertBefore : 'Insert Cell Before', + insertAfter : 'Insert Cell After', + deleteCell : 'Delete Cells', + merge : 'Merge Cells', + mergeRight : 'Merge Right', + mergeDown : 'Merge Down', + splitHorizontal : 'Split Cell Horizontally', + splitVertical : 'Split Cell Vertically', + title : 'Cell Properties', + cellType : 'Cell Type', + rowSpan : 'Rows Span', + colSpan : 'Columns Span', + wordWrap : 'Word Wrap', + hAlign : 'Horizontal Alignment', + vAlign : 'Vertical Alignment', + alignBaseline : 'Baseline', + bgColor : 'Background Color', + borderColor : 'Border Color', + data : 'Data', + header : 'Header', + yes : 'Yes', + no : 'No', + invalidWidth : 'Cell width must be a number.', + invalidHeight : 'Cell height must be a number.', + invalidRowSpan : 'Rows span must be a whole number.', + invalidColSpan : 'Columns span must be a whole number.', + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', + insertBefore : 'Insert Row Before', + insertAfter : 'Insert Row After', + deleteRow : 'Delete Rows' + }, + + column : + { + menu : 'Column', + insertBefore : 'Insert Column Before', + insertAfter : 'Insert Column After', + deleteColumn : 'Delete Columns' + } + }, + + // Button Dialog. + button : + { + title : 'Button Properties', + text : 'Text (Value)', + type : 'Type', + typeBtn : 'Button', + typeSbm : 'Submit', + typeRst : 'Reset' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', + radioTitle : 'Radio Button Properties', + value : 'Value', + selected : 'Selected' + }, + + // Form Dialog. + form : + { + title : 'Form Properties', + menu : 'Form Properties', + action : 'Action', + method : 'Method', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', + selectInfo : 'Select Info', + opAvail : 'Available Options', + value : 'Value', + size : 'Size', + lines : 'lines', + chkMulti : 'Allow multiple selections', + opText : 'Text', + opValue : 'Value', + btnAdd : 'Add', + btnModify : 'Modify', + btnUp : 'Up', + btnDown : 'Down', + btnSetValue : 'Set as selected value', + btnDelete : 'Delete' + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea Properties', + cols : 'Columns', + rows : 'Rows' + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field Properties', + name : 'Name', + value : 'Value', + charWidth : 'Character Width', + maxChars : 'Maximum Characters', + type : 'Type', + typeText : 'Text', + typePass : 'Password' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field Properties', + name : 'Name', + value : 'Value' + }, + + // Image Dialog. + image : + { + title : 'Image Properties', + titleButton : 'Image Button Properties', + menu : 'Image Properties', + infoTab : 'Image Info', + btnUpload : 'Send it to the Server', + upload : 'Upload', + alt : 'Alternative Text', + lockRatio : 'Lock Ratio', + resetSize : 'Reset Size', + border : 'Border', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Please type the image URL', + linkTab : 'Link', + button2Img : 'Do you want to transform the selected image button on a simple image?', + img2Button : 'Do you want to transform the selected image on a image button?', + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', + propertiesTab : 'Properties', + title : 'Flash Properties', + chkPlay : 'Auto Play', + chkLoop : 'Loop', + chkMenu : 'Enable Flash Menu', + chkFull : 'Allow Fullscreen', + scale : 'Scale', + scaleAll : 'Show all', + scaleNoBorder : 'No Border', + scaleFit : 'Exact Fit', + access : 'Script Access', + accessAlways : 'Always', + accessSameDomain: 'Same domain', + accessNever : 'Never', + alignAbsBottom : 'Abs Bottom', + alignAbsMiddle : 'Abs Middle', + alignBaseline : 'Baseline', + alignTextTop : 'Text Top', + quality : 'Quality', + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', + flashvars : 'Variables for Flash', + bgcolor : 'Background colour', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'URL must not be empty.', + validateHSpace : 'HSpace must be a number.', + validateVSpace : 'VSpace must be a number.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Check Spelling', + title : 'Spell Check', + notAvailable : 'Sorry, but service is unavailable now.', + errorLoading : 'Error loading application service host: %s.', + notInDic : 'Not in dictionary', + changeTo : 'Change to', + btnIgnore : 'Ignore', + btnIgnoreAll : 'Ignore All', + btnReplace : 'Replace', + btnReplaceAll : 'Replace All', + btnUndo : 'Undo', + noSuggestions : '- No suggestions -', + progress : 'Spell check in progress...', + noMispell : 'Spell check complete: No misspellings found', + noChanges : 'Spell check complete: No words changed', + oneChange : 'Spell check complete: One word changed', + manyChanges : 'Spell check complete: %1 words changed', + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Insert a Smiley', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' + }, + + numberedlist : 'Insert/Remove Numbered List', + bulletedlist : 'Insert/Remove Bulleted List', + indent : 'Increase Indent', + outdent : 'Decrease Indent', + + justify : + { + left : 'Align Left', + center : 'Centre', + right : 'Align Right', + block : 'Justify' + }, + + blockquote : 'Block Quote', + + clipboard : + { + title : 'Paste', + cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Paste from Word', + title : 'Paste from Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Paste as plain text', + title : 'Paste as Plain Text' + }, + + templates : + { + button : 'Templates', + title : 'Content Templates', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', + selectPromptMsg : 'Please select the template to open in the editor', + emptyListMsg : '(No templates defined)' + }, + + showBlocks : 'Show Blocks', + + stylesCombo : + { + label : 'Styles', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', + panelTitle2 : 'Inline Styles', + panelTitle3 : 'Object Styles' + }, + + format : + { + label : 'Format', + panelTitle : 'Paragraph Format', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', // MISSING + panelTitle : 'Font Name' + }, + + fontSize : + { + label : 'Size', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Font Size' + }, + + colorButton : + { + textColorTitle : 'Text Colour', + bgColorTitle : 'Background Colour', + panelTitle : 'Colors', // MISSING + auto : 'Automatic', + more : 'More Colours...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Maximize', + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Document Properties', // MISSING + title : 'Document Properties', // MISSING + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : 'Other...', // MISSING + docTitle : 'Page Title', // MISSING + charset : 'Character Set Encoding', // MISSING + charsetOther : 'Other Character Set Encoding', // MISSING + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Other Document Type Heading', // MISSING + xhtmlDec : 'Include XHTML Declarations', // MISSING + bgColor : 'Background Color', // MISSING + bgImage : 'Background Image URL', // MISSING + bgFixed : 'Non-scrolling (Fixed) Background', // MISSING + txtColor : 'Text Color', // MISSING + margin : 'Page Margins', // MISSING + marginTop : 'Top', // MISSING + marginLeft : 'Left', // MISSING + marginRight : 'Right', // MISSING + marginBottom : 'Bottom', // MISSING + metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING + metaDescription : 'Document Description', // MISSING + metaAuthor : 'Author', // MISSING + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/en-ca.js b/htdocs/includes/ckeditor/_source/lang/en-ca.js new file mode 100644 index 0000000000000000000000000000000000000000..3c47cb6f67e19b81deb668461e62b8784d234149 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/en-ca.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * English (Canadian) language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['en-ca'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Source', + newPage : 'New Page', + save : 'Save', + preview : 'Preview', + cut : 'Cut', + copy : 'Copy', + paste : 'Paste', + print : 'Print', + underline : 'Underline', + bold : 'Bold', + italic : 'Italic', + selectAll : 'Select All', + removeFormat : 'Remove Format', + strike : 'Strike Through', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Insert Horizontal Line', + pagebreak : 'Insert Page Break for Printing', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Unlink', + undo : 'Undo', + redo : 'Redo', + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', + url : 'URL', + protocol : 'Protocol', + upload : 'Upload', + uploadSubmit : 'Send it to the Server', + image : 'Image', + flash : 'Flash', + form : 'Form', + checkbox : 'Checkbox', + radio : 'Radio Button', + textField : 'Text Field', + textarea : 'Textarea', + hiddenField : 'Hidden Field', + button : 'Button', + select : 'Selection Field', + imageButton : 'Image Button', + notSet : '<not set>', + id : 'Id', + name : 'Name', + langDir : 'Language Direction', + langDirLtr : 'Left to Right (LTR)', + langDirRtl : 'Right to Left (RTL)', + langCode : 'Language Code', + longDescr : 'Long Description URL', + cssClass : 'Stylesheet Classes', + advisoryTitle : 'Advisory Title', + cssStyle : 'Style', + ok : 'OK', + cancel : 'Cancel', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', + advancedTab : 'Advanced', + validateNumberFailed : 'This value is not a number.', + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Width', // MISSING + height : 'Height', // MISSING + align : 'Align', + alignLeft : 'Left', // MISSING + alignRight : 'Right', // MISSING + alignCenter : 'Centre', + alignTop : 'Top', // MISSING + alignMiddle : 'Middle', // MISSING + alignBottom : 'Bottom', // MISSING + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insert Special Character', + title : 'Select Special Character', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Link', + other : '<other>', + menu : 'Edit Link', + title : 'Link', + info : 'Link Info', + target : 'Target', + upload : 'Upload', + advanced : 'Advanced', + type : 'Link Type', + toUrl : 'URL', // MISSING + toAnchor : 'Link to anchor in the text', + toEmail : 'E-mail', + targetFrame : '<frame>', + targetPopup : '<popup window>', + targetFrameName : 'Target Frame Name', + targetPopupName : 'Popup Window Name', + popupFeatures : 'Popup Window Features', + popupResizable : 'Resizable', + popupStatusBar : 'Status Bar', + popupLocationBar: 'Location Bar', + popupToolbar : 'Toolbar', + popupMenuBar : 'Menu Bar', + popupFullScreen : 'Full Screen (IE)', + popupScrollBars : 'Scroll Bars', + popupDependent : 'Dependent (Netscape)', + popupLeft : 'Left Position', + popupTop : 'Top Position', + id : 'Id', + langDir : 'Language Direction', + langDirLTR : 'Left to Right (LTR)', + langDirRTL : 'Right to Left (RTL)', + acccessKey : 'Access Key', + name : 'Name', + langCode : 'Language Code', + tabIndex : 'Tab Index', + advisoryTitle : 'Advisory Title', + advisoryContentType : 'Advisory Content Type', + cssClasses : 'Stylesheet Classes', + charset : 'Linked Resource Charset', + styles : 'Style', + rel : 'Relationship', // MISSING + selectAnchor : 'Select an Anchor', + anchorName : 'By Anchor Name', + anchorId : 'By Element Id', + emailAddress : 'E-Mail Address', + emailSubject : 'Message Subject', + emailBody : 'Message Body', + noAnchors : '(No anchors available in the document)', + noUrl : 'Please type the link URL', + noEmail : 'Please type the e-mail address' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anchor', + menu : 'Edit Anchor', + title : 'Anchor Properties', + name : 'Anchor Name', + errorName : 'Please type the anchor name', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', + find : 'Find', + replace : 'Replace', + findWhat : 'Find what:', + replaceWith : 'Replace with:', + notFoundMsg : 'The specified text was not found.', + findOptions : 'Find Options', // MISSING + matchCase : 'Match case', + matchWord : 'Match whole word', + matchCyclic : 'Match cyclic', + replaceAll : 'Replace All', + replaceSuccessMsg : '%1 occurrence(s) replaced.' + }, + + // Table Dialog + table : + { + toolbar : 'Table', + title : 'Table Properties', + menu : 'Table Properties', + deleteTable : 'Delete Table', + rows : 'Rows', + columns : 'Columns', + border : 'Border size', + widthPx : 'pixels', + widthPc : 'percent', + widthUnit : 'width unit', // MISSING + cellSpace : 'Cell spacing', + cellPad : 'Cell padding', + caption : 'Caption', + summary : 'Summary', + headers : 'Headers', + headersNone : 'None', + headersColumn : 'First column', + headersRow : 'First Row', + headersBoth : 'Both', + invalidRows : 'Number of rows must be a number greater than 0.', + invalidCols : 'Number of columns must be a number greater than 0.', + invalidBorder : 'Border size must be a number.', + invalidWidth : 'Table width must be a number.', + invalidHeight : 'Table height must be a number.', + invalidCellSpacing : 'Cell spacing must be a number.', + invalidCellPadding : 'Cell padding must be a number.', + + cell : + { + menu : 'Cell', + insertBefore : 'Insert Cell Before', + insertAfter : 'Insert Cell After', + deleteCell : 'Delete Cells', + merge : 'Merge Cells', + mergeRight : 'Merge Right', + mergeDown : 'Merge Down', + splitHorizontal : 'Split Cell Horizontally', + splitVertical : 'Split Cell Vertically', + title : 'Cell Properties', + cellType : 'Cell Type', + rowSpan : 'Rows Span', + colSpan : 'Columns Span', + wordWrap : 'Word Wrap', + hAlign : 'Horizontal Alignment', + vAlign : 'Vertical Alignment', + alignBaseline : 'Baseline', + bgColor : 'Background Color', + borderColor : 'Border Color', + data : 'Data', + header : 'Header', + yes : 'Yes', + no : 'No', + invalidWidth : 'Cell width must be a number.', + invalidHeight : 'Cell height must be a number.', + invalidRowSpan : 'Rows span must be a whole number.', + invalidColSpan : 'Columns span must be a whole number.', + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', + insertBefore : 'Insert Row Before', + insertAfter : 'Insert Row After', + deleteRow : 'Delete Rows' + }, + + column : + { + menu : 'Column', + insertBefore : 'Insert Column Before', + insertAfter : 'Insert Column After', + deleteColumn : 'Delete Columns' + } + }, + + // Button Dialog. + button : + { + title : 'Button Properties', + text : 'Text (Value)', + type : 'Type', + typeBtn : 'Button', + typeSbm : 'Submit', + typeRst : 'Reset' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', + radioTitle : 'Radio Button Properties', + value : 'Value', + selected : 'Selected' + }, + + // Form Dialog. + form : + { + title : 'Form Properties', + menu : 'Form Properties', + action : 'Action', + method : 'Method', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', + selectInfo : 'Select Info', + opAvail : 'Available Options', + value : 'Value', + size : 'Size', + lines : 'lines', + chkMulti : 'Allow multiple selections', + opText : 'Text', + opValue : 'Value', + btnAdd : 'Add', + btnModify : 'Modify', + btnUp : 'Up', + btnDown : 'Down', + btnSetValue : 'Set as selected value', + btnDelete : 'Delete' + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea Properties', + cols : 'Columns', + rows : 'Rows' + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field Properties', + name : 'Name', + value : 'Value', + charWidth : 'Character Width', + maxChars : 'Maximum Characters', + type : 'Type', + typeText : 'Text', + typePass : 'Password' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field Properties', + name : 'Name', + value : 'Value' + }, + + // Image Dialog. + image : + { + title : 'Image Properties', + titleButton : 'Image Button Properties', + menu : 'Image Properties', + infoTab : 'Image Info', + btnUpload : 'Send it to the Server', + upload : 'Upload', + alt : 'Alternative Text', + lockRatio : 'Lock Ratio', + resetSize : 'Reset Size', + border : 'Border', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Please type the image URL', + linkTab : 'Link', + button2Img : 'Do you want to transform the selected image button on a simple image?', + img2Button : 'Do you want to transform the selected image on a image button?', + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', + propertiesTab : 'Properties', + title : 'Flash Properties', + chkPlay : 'Auto Play', + chkLoop : 'Loop', + chkMenu : 'Enable Flash Menu', + chkFull : 'Allow Fullscreen', + scale : 'Scale', + scaleAll : 'Show all', + scaleNoBorder : 'No Border', + scaleFit : 'Exact Fit', + access : 'Script Access', + accessAlways : 'Always', + accessSameDomain: 'Same domain', + accessNever : 'Never', + alignAbsBottom : 'Abs Bottom', + alignAbsMiddle : 'Abs Middle', + alignBaseline : 'Baseline', + alignTextTop : 'Text Top', + quality : 'Quality', + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', + flashvars : 'Variables for Flash', + bgcolor : 'Background colour', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'URL must not be empty.', + validateHSpace : 'HSpace must be a number.', + validateVSpace : 'VSpace must be a number.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Check Spelling', + title : 'Spell Check', + notAvailable : 'Sorry, but service is unavailable now.', + errorLoading : 'Error loading application service host: %s.', + notInDic : 'Not in dictionary', + changeTo : 'Change to', + btnIgnore : 'Ignore', + btnIgnoreAll : 'Ignore All', + btnReplace : 'Replace', + btnReplaceAll : 'Replace All', + btnUndo : 'Undo', + noSuggestions : '- No suggestions -', + progress : 'Spell check in progress...', + noMispell : 'Spell check complete: No misspellings found', + noChanges : 'Spell check complete: No words changed', + oneChange : 'Spell check complete: One word changed', + manyChanges : 'Spell check complete: %1 words changed', + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Insert a Smiley', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' + }, + + numberedlist : 'Insert/Remove Numbered List', + bulletedlist : 'Insert/Remove Bulleted List', + indent : 'Increase Indent', + outdent : 'Decrease Indent', + + justify : + { + left : 'Align Left', + center : 'Centre', + right : 'Align Right', + block : 'Justify' + }, + + blockquote : 'Block Quote', + + clipboard : + { + title : 'Paste', + cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Paste from Word', + title : 'Paste from Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Paste as plain text', + title : 'Paste as Plain Text' + }, + + templates : + { + button : 'Templates', + title : 'Content Templates', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', + selectPromptMsg : 'Please select the template to open in the editor', + emptyListMsg : '(No templates defined)' + }, + + showBlocks : 'Show Blocks', + + stylesCombo : + { + label : 'Styles', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', + panelTitle2 : 'Inline Styles', + panelTitle3 : 'Object Styles' + }, + + format : + { + label : 'Format', + panelTitle : 'Paragraph Format', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', // MISSING + panelTitle : 'Font Name' + }, + + fontSize : + { + label : 'Size', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Font Size' + }, + + colorButton : + { + textColorTitle : 'Text Colour', + bgColorTitle : 'Background Colour', + panelTitle : 'Colors', // MISSING + auto : 'Automatic', + more : 'More Colours...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Maximize', + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Document Properties', // MISSING + title : 'Document Properties', // MISSING + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : 'Other...', // MISSING + docTitle : 'Page Title', // MISSING + charset : 'Character Set Encoding', // MISSING + charsetOther : 'Other Character Set Encoding', // MISSING + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Other Document Type Heading', // MISSING + xhtmlDec : 'Include XHTML Declarations', // MISSING + bgColor : 'Background Color', // MISSING + bgImage : 'Background Image URL', // MISSING + bgFixed : 'Non-scrolling (Fixed) Background', // MISSING + txtColor : 'Text Color', // MISSING + margin : 'Page Margins', // MISSING + marginTop : 'Top', // MISSING + marginLeft : 'Left', // MISSING + marginRight : 'Right', // MISSING + marginBottom : 'Bottom', // MISSING + metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING + metaDescription : 'Document Description', // MISSING + metaAuthor : 'Author', // MISSING + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/en-gb.js b/htdocs/includes/ckeditor/_source/lang/en-gb.js new file mode 100644 index 0000000000000000000000000000000000000000..2e1f7eb91132218ea88f3585cebe56a479b71143 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/en-gb.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * English (United Kingdom) language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['en-gb'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Source', + newPage : 'New Page', + save : 'Save', + preview : 'Preview', + cut : 'Cut', + copy : 'Copy', + paste : 'Paste', + print : 'Print', + underline : 'Underline', + bold : 'Bold', + italic : 'Italic', + selectAll : 'Select All', + removeFormat : 'Remove Format', + strike : 'Strike Through', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Insert Horizontal Line', + pagebreak : 'Insert Page Break for Printing', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Unlink', + undo : 'Undo', + redo : 'Redo', + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', + url : 'URL', + protocol : 'Protocol', + upload : 'Upload', + uploadSubmit : 'Send it to the Server', + image : 'Image', + flash : 'Flash', + form : 'Form', + checkbox : 'Checkbox', + radio : 'Radio Button', + textField : 'Text Field', + textarea : 'Textarea', + hiddenField : 'Hidden Field', + button : 'Button', + select : 'Selection Field', + imageButton : 'Image Button', + notSet : '<not set>', + id : 'Id', + name : 'Name', + langDir : 'Language Direction', + langDirLtr : 'Left to Right (LTR)', + langDirRtl : 'Right to Left (RTL)', + langCode : 'Language Code', + longDescr : 'Long Description URL', + cssClass : 'Stylesheet Classes', + advisoryTitle : 'Advisory Title', + cssStyle : 'Style', + ok : 'OK', + cancel : 'Cancel', + close : 'Close', + preview : 'Preview', + generalTab : 'General', + advancedTab : 'Advanced', + validateNumberFailed : 'This value is not a number.', + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', + options : 'Options', + target : 'Target', + targetNew : 'New Window (_blank)', + targetTop : 'Topmost Window (_top)', + targetSelf : 'Same Window (_self)', + targetParent : 'Parent Window (_parent)', + langDirLTR : 'Left to Right (LTR)', + langDirRTL : 'Right to Left (RTL)', + styles : 'Style', + cssClasses : 'Stylesheet Classes', + width : 'Width', + height : 'Height', + align : 'Align', + alignLeft : 'Left', + alignRight : 'Right', + alignCenter : 'Centre', + alignTop : 'Top', + alignMiddle : 'Middle', + alignBottom : 'Bottom', + invalidHeight : 'Height must be a number.', + invalidWidth : 'Width must be a number.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insert Special Character', + title : 'Select Special Character', + options : 'Special Character Options' + }, + + // Link dialog. + link : + { + toolbar : 'Link', + other : '<other>', + menu : 'Edit Link', + title : 'Link', + info : 'Link Info', + target : 'Target', + upload : 'Upload', + advanced : 'Advanced', + type : 'Link Type', + toUrl : 'URL', + toAnchor : 'Link to anchor in the text', + toEmail : 'E-mail', + targetFrame : '<frame>', + targetPopup : '<popup window>', + targetFrameName : 'Target Frame Name', + targetPopupName : 'Popup Window Name', + popupFeatures : 'Popup Window Features', + popupResizable : 'Resizable', + popupStatusBar : 'Status Bar', + popupLocationBar: 'Location Bar', + popupToolbar : 'Toolbar', + popupMenuBar : 'Menu Bar', + popupFullScreen : 'Full Screen (IE)', + popupScrollBars : 'Scroll Bars', + popupDependent : 'Dependent (Netscape)', + popupLeft : 'Left Position', + popupTop : 'Top Position', + id : 'Id', + langDir : 'Language Direction', + langDirLTR : 'Left to Right (LTR)', + langDirRTL : 'Right to Left (RTL)', + acccessKey : 'Access Key', + name : 'Name', + langCode : 'Language Code', + tabIndex : 'Tab Index', + advisoryTitle : 'Advisory Title', + advisoryContentType : 'Advisory Content Type', + cssClasses : 'Stylesheet Classes', + charset : 'Linked Resource Charset', + styles : 'Style', + rel : 'Relationship', // MISSING + selectAnchor : 'Select an Anchor', + anchorName : 'By Anchor Name', + anchorId : 'By Element Id', + emailAddress : 'E-Mail Address', + emailSubject : 'Message Subject', + emailBody : 'Message Body', + noAnchors : '(No anchors available in the document)', + noUrl : 'Please type the link URL', + noEmail : 'Please type the e-mail address' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anchor', + menu : 'Edit Anchor', + title : 'Anchor Properties', + name : 'Anchor Name', + errorName : 'Please type the anchor name', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', + bulletedTitle : 'Bulleted List Properties', + type : 'Type', + start : 'Start', + validateStartNumber :'List start number must be a whole number.', + circle : 'Circle', + disc : 'Disc', + square : 'Square', + none : 'None', + notset : '<not set>', + armenian : 'Armenian numbering', + georgian : 'Georgian numbering (an, ban, gan, etc.)', + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', + decimal : 'Decimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', + find : 'Find', + replace : 'Replace', + findWhat : 'Find what:', + replaceWith : 'Replace with:', + notFoundMsg : 'The specified text was not found.', + findOptions : 'Find Options', // MISSING + matchCase : 'Match case', + matchWord : 'Match whole word', + matchCyclic : 'Match cyclic', + replaceAll : 'Replace All', + replaceSuccessMsg : '%1 occurrence(s) replaced.' + }, + + // Table Dialog + table : + { + toolbar : 'Table', + title : 'Table Properties', + menu : 'Table Properties', + deleteTable : 'Delete Table', + rows : 'Rows', + columns : 'Columns', + border : 'Border size', + widthPx : 'pixels', + widthPc : 'percent', + widthUnit : 'width unit', + cellSpace : 'Cell spacing', + cellPad : 'Cell padding', + caption : 'Caption', + summary : 'Summary', + headers : 'Headers', + headersNone : 'None', + headersColumn : 'First column', + headersRow : 'First Row', + headersBoth : 'Both', + invalidRows : 'Number of rows must be a number greater than 0.', + invalidCols : 'Number of columns must be a number greater than 0.', + invalidBorder : 'Border size must be a number.', + invalidWidth : 'Table width must be a number.', + invalidHeight : 'Table height must be a number.', + invalidCellSpacing : 'Cell spacing must be a number.', + invalidCellPadding : 'Cell padding must be a number.', + + cell : + { + menu : 'Cell', + insertBefore : 'Insert Cell Before', + insertAfter : 'Insert Cell After', + deleteCell : 'Delete Cells', + merge : 'Merge Cells', + mergeRight : 'Merge Right', + mergeDown : 'Merge Down', + splitHorizontal : 'Split Cell Horizontally', + splitVertical : 'Split Cell Vertically', + title : 'Cell Properties', + cellType : 'Cell Type', + rowSpan : 'Rows Span', + colSpan : 'Columns Span', + wordWrap : 'Word Wrap', + hAlign : 'Horizontal Alignment', + vAlign : 'Vertical Alignment', + alignBaseline : 'Baseline', + bgColor : 'Background Color', + borderColor : 'Border Color', + data : 'Data', + header : 'Header', + yes : 'Yes', + no : 'No', + invalidWidth : 'Cell width must be a number.', + invalidHeight : 'Cell height must be a number.', + invalidRowSpan : 'Rows span must be a whole number.', + invalidColSpan : 'Columns span must be a whole number.', + chooseColor : 'Choose' + }, + + row : + { + menu : 'Row', + insertBefore : 'Insert Row Before', + insertAfter : 'Insert Row After', + deleteRow : 'Delete Rows' + }, + + column : + { + menu : 'Column', + insertBefore : 'Insert Column Before', + insertAfter : 'Insert Column After', + deleteColumn : 'Delete Columns' + } + }, + + // Button Dialog. + button : + { + title : 'Button Properties', + text : 'Text (Value)', + type : 'Type', + typeBtn : 'Button', + typeSbm : 'Submit', + typeRst : 'Reset' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', + radioTitle : 'Radio Button Properties', + value : 'Value', + selected : 'Selected' + }, + + // Form Dialog. + form : + { + title : 'Form Properties', + menu : 'Form Properties', + action : 'Action', + method : 'Method', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', + selectInfo : 'Select Info', + opAvail : 'Available Options', + value : 'Value', + size : 'Size', + lines : 'lines', + chkMulti : 'Allow multiple selections', + opText : 'Text', + opValue : 'Value', + btnAdd : 'Add', + btnModify : 'Modify', + btnUp : 'Up', + btnDown : 'Down', + btnSetValue : 'Set as selected value', + btnDelete : 'Delete' + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea Properties', + cols : 'Columns', + rows : 'Rows' + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field Properties', + name : 'Name', + value : 'Value', + charWidth : 'Character Width', + maxChars : 'Maximum Characters', + type : 'Type', + typeText : 'Text', + typePass : 'Password' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field Properties', + name : 'Name', + value : 'Value' + }, + + // Image Dialog. + image : + { + title : 'Image Properties', + titleButton : 'Image Button Properties', + menu : 'Image Properties', + infoTab : 'Image Info', + btnUpload : 'Send it to the Server', + upload : 'Upload', + alt : 'Alternative Text', + lockRatio : 'Lock Ratio', + resetSize : 'Reset Size', + border : 'Border', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Please type the image URL', + linkTab : 'Link', + button2Img : 'Do you want to transform the selected image button on a simple image?', + img2Button : 'Do you want to transform the selected image on a image button?', + urlMissing : 'Image source URL is missing.', + validateBorder : 'Border must be a whole number.', + validateHSpace : 'HSpace must be a whole number.', + validateVSpace : 'VSpace must be a whole number.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', + propertiesTab : 'Properties', + title : 'Flash Properties', + chkPlay : 'Auto Play', + chkLoop : 'Loop', + chkMenu : 'Enable Flash Menu', + chkFull : 'Allow Fullscreen', + scale : 'Scale', + scaleAll : 'Show all', + scaleNoBorder : 'No Border', + scaleFit : 'Exact Fit', + access : 'Script Access', + accessAlways : 'Always', + accessSameDomain: 'Same domain', + accessNever : 'Never', + alignAbsBottom : 'Abs Bottom', + alignAbsMiddle : 'Abs Middle', + alignBaseline : 'Baseline', + alignTextTop : 'Text Top', + quality : 'Quality', + qualityBest : 'Best', + qualityHigh : 'High', + qualityAutoHigh : 'Auto High', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto Low', + qualityLow : 'Low', + windowModeWindow: 'Window', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Transparent', + windowMode : 'Window mode', + flashvars : 'Variables for Flash', + bgcolor : 'Background colour', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'URL must not be empty.', + validateHSpace : 'HSpace must be a number.', + validateVSpace : 'VSpace must be a number.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Check Spelling', + title : 'Spell Check', + notAvailable : 'Sorry, but service is unavailable now.', + errorLoading : 'Error loading application service host: %s.', + notInDic : 'Not in dictionary', + changeTo : 'Change to', + btnIgnore : 'Ignore', + btnIgnoreAll : 'Ignore All', + btnReplace : 'Replace', + btnReplaceAll : 'Replace All', + btnUndo : 'Undo', + noSuggestions : '- No suggestions -', + progress : 'Spell check in progress...', + noMispell : 'Spell check complete: No misspellings found', + noChanges : 'Spell check complete: No words changed', + oneChange : 'Spell check complete: One word changed', + manyChanges : 'Spell check complete: %1 words changed', + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Insert a Smiley', + options : 'Smiley Options' + }, + + elementsPath : + { + eleLabel : 'Elements path', + eleTitle : '%1 element' + }, + + numberedlist : 'Insert/Remove Numbered List', + bulletedlist : 'Insert/Remove Bulleted List', + indent : 'Increase Indent', + outdent : 'Decrease Indent', + + justify : + { + left : 'Align Left', + center : 'Centre', + right : 'Align Right', + block : 'Justify' + }, + + blockquote : 'Block Quote', + + clipboard : + { + title : 'Paste', + cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + pasteArea : 'Paste Area' + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', + toolbar : 'Paste from Word', + title : 'Paste from Word', + error : 'It was not possible to clean up the pasted data due to an internal error' + }, + + pasteText : + { + button : 'Paste as plain text', + title : 'Paste as Plain Text' + }, + + templates : + { + button : 'Templates', + title : 'Content Templates', + options : 'Template Options', + insertOption : 'Replace actual contents', + selectPromptMsg : 'Please select the template to open in the editor', + emptyListMsg : '(No templates defined)' + }, + + showBlocks : 'Show Blocks', + + stylesCombo : + { + label : 'Styles', + panelTitle : 'Formatting Styles', + panelTitle1 : 'Block Styles', + panelTitle2 : 'Inline Styles', + panelTitle3 : 'Object Styles' + }, + + format : + { + label : 'Format', + panelTitle : 'Paragraph Format', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Create Div Container', + toolbar : 'Create Div Container', + cssClassInputLabel : 'Stylesheet Classes', + styleSelectLabel : 'Style', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Language Code', + inlineStyleInputLabel : 'Inline Style', + advisoryTitleInputLabel : 'Advisory Title', + langDirLabel : 'Language Direction', + langDirLTRLabel : 'Left to Right (LTR)', + langDirRTLLabel : 'Right to Left (RTL)', + edit : 'Edit Div', + remove : 'Remove Div' + }, + + iframe : + { + title : 'IFrame Properties', + toolbar : 'IFrame', + noUrl : 'Please type the iframe URL', + scrolling : 'Enable scrollbars', + border : 'Show frame border' + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', + panelTitle : 'Font Name' + }, + + fontSize : + { + label : 'Size', + voiceLabel : 'Font Size', + panelTitle : 'Font Size' + }, + + colorButton : + { + textColorTitle : 'Text Colour', + bgColorTitle : 'Background Colour', + panelTitle : 'Colours', + auto : 'Automatic', + more : 'More Colours...' + }, + + colors : + { + '000' : 'Black', + '800000' : 'Maroon', + '8B4513' : 'Saddle Brown', + '2F4F4F' : 'Dark Slate Grey', + '008080' : 'Teal', + '000080' : 'Navy', + '4B0082' : 'Indigo', + '696969' : 'Dark Grey', + 'B22222' : 'Fire Brick', + 'A52A2A' : 'Brown', + 'DAA520' : 'Golden Rod', + '006400' : 'Dark Green', + '40E0D0' : 'Turquoise', + '0000CD' : 'Medium Blue', + '800080' : 'Purple', + '808080' : 'Grey', + 'F00' : 'Red', + 'FF8C00' : 'Dark Orange', + 'FFD700' : 'Gold', + '008000' : 'Green', + '0FF' : 'Cyan', + '00F' : 'Blue', + 'EE82EE' : 'Violet', + 'A9A9A9' : 'Dim Grey', + 'FFA07A' : 'Light Salmon', + 'FFA500' : 'Orange', + 'FFFF00' : 'Yellow', + '00FF00' : 'Lime', + 'AFEEEE' : 'Pale Turquoise', + 'ADD8E6' : 'Light Blue', + 'DDA0DD' : 'Plum', + 'D3D3D3' : 'Light Grey', + 'FFF0F5' : 'Lavender Blush', + 'FAEBD7' : 'Antique White', + 'FFFFE0' : 'Light Yellow', + 'F0FFF0' : 'Honeydew', + 'F0FFFF' : 'Azure', + 'F0F8FF' : 'Alice Blue', + 'E6E6FA' : 'Lavender', + 'FFF' : 'White' + }, + + scayt : + { + title : 'Spell Check As You Type', + opera_title : 'Not supported by Opera', + enable : 'Enable SCAYT', + disable : 'Disable SCAYT', + about : 'About SCAYT', + toggle : 'Toggle SCAYT', + options : 'Options', + langs : 'Languages', + moreSuggestions : 'More suggestions', + ignore : 'Ignore', + ignoreAll : 'Ignore All', + addWord : 'Add Word', + emptyDic : 'Dictionary name should not be empty.', + + optionsTab : 'Options', + allCaps : 'Ignore All-Caps Words', + ignoreDomainNames : 'Ignore Domain Names', + mixedCase : 'Ignore Words with Mixed Case', + mixedWithDigits : 'Ignore Words with Numbers', + + languagesTab : 'Languages', + + dictionariesTab : 'Dictionaries', + dic_field_name : 'Dictionary name', + dic_create : 'Create', + dic_restore : 'Restore', + dic_delete : 'Delete', + dic_rename : 'Rename', + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', + + aboutTab : 'About' + }, + + about : + { + title : 'About CKEditor', + dlgTitle : 'About CKEditor', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Maximise', + minimize : 'Minimise', + + fakeobjects : + { + anchor : 'Anchor', + flash : 'Flash Animation', + iframe : 'IFrame', + hiddenfield : 'Hidden Field', + unknown : 'Unknown Object' + }, + + resize : 'Drag to resize', + + colordialog : + { + title : 'Select colour', + options : 'Colour Options', + highlight : 'Highlight', + selected : 'Selected Colour', + clear : 'Clear' + }, + + toolbarCollapse : 'Collapse Toolbar', + toolbarExpand : 'Expand Toolbar', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', + rtl : 'Text direction from right to left' + }, + + docprops : + { + label : 'Document Properties', // MISSING + title : 'Document Properties', // MISSING + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : 'Other...', // MISSING + docTitle : 'Page Title', // MISSING + charset : 'Character Set Encoding', // MISSING + charsetOther : 'Other Character Set Encoding', // MISSING + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Other Document Type Heading', // MISSING + xhtmlDec : 'Include XHTML Declarations', // MISSING + bgColor : 'Background Color', // MISSING + bgImage : 'Background Image URL', // MISSING + bgFixed : 'Non-scrolling (Fixed) Background', // MISSING + txtColor : 'Text Color', // MISSING + margin : 'Page Margins', // MISSING + marginTop : 'Top', // MISSING + marginLeft : 'Left', // MISSING + marginRight : 'Right', // MISSING + marginBottom : 'Bottom', // MISSING + metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING + metaDescription : 'Document Description', // MISSING + metaAuthor : 'Author', // MISSING + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/en.js b/htdocs/includes/ckeditor/_source/lang/en.js new file mode 100644 index 0000000000000000000000000000000000000000..2af57e8d20c0056f9e9c25420e46b4d54050e30a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/en.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object for the English + * language. This is the base file for all translations. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['en'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', + editorHelp : 'Press ALT 0 for help', + + // ARIA descriptions. + toolbars : 'Editor toolbars', + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Source', + newPage : 'New Page', + save : 'Save', + preview : 'Preview', + cut : 'Cut', + copy : 'Copy', + paste : 'Paste', + print : 'Print', + underline : 'Underline', + bold : 'Bold', + italic : 'Italic', + selectAll : 'Select All', + removeFormat : 'Remove Format', + strike : 'Strike Through', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Insert Horizontal Line', + pagebreak : 'Insert Page Break for Printing', + pagebreakAlt : 'Page Break', + unlink : 'Unlink', + undo : 'Undo', + redo : 'Redo', + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', + url : 'URL', + protocol : 'Protocol', + upload : 'Upload', + uploadSubmit : 'Send it to the Server', + image : 'Image', + flash : 'Flash', + form : 'Form', + checkbox : 'Checkbox', + radio : 'Radio Button', + textField : 'Text Field', + textarea : 'Textarea', + hiddenField : 'Hidden Field', + button : 'Button', + select : 'Selection Field', + imageButton : 'Image Button', + notSet : '<not set>', + id : 'Id', + name : 'Name', + langDir : 'Language Direction', + langDirLtr : 'Left to Right (LTR)', + langDirRtl : 'Right to Left (RTL)', + langCode : 'Language Code', + longDescr : 'Long Description URL', + cssClass : 'Stylesheet Classes', + advisoryTitle : 'Advisory Title', + cssStyle : 'Style', + ok : 'OK', + cancel : 'Cancel', + close : 'Close', + preview : 'Preview', + generalTab : 'General', + advancedTab : 'Advanced', + validateNumberFailed : 'This value is not a number.', + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', + options : 'Options', + target : 'Target', + targetNew : 'New Window (_blank)', + targetTop : 'Topmost Window (_top)', + targetSelf : 'Same Window (_self)', + targetParent : 'Parent Window (_parent)', + langDirLTR : 'Left to Right (LTR)', + langDirRTL : 'Right to Left (RTL)', + styles : 'Style', + cssClasses : 'Stylesheet Classes', + width : 'Width', + height : 'Height', + align : 'Alignment', + alignLeft : 'Left', + alignRight : 'Right', + alignCenter : 'Center', + alignTop : 'Top', + alignMiddle : 'Middle', + alignBottom : 'Bottom', + invalidHeight : 'Height must be a number.', + invalidWidth : 'Width must be a number.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insert Special Character', + title : 'Select Special Character', + options : 'Special Character Options' + }, + + // Link dialog. + link : + { + toolbar : 'Link', + other : '<other>', + menu : 'Edit Link', + title : 'Link', + info : 'Link Info', + target : 'Target', + upload : 'Upload', + advanced : 'Advanced', + type : 'Link Type', + toUrl : 'URL', + toAnchor : 'Link to anchor in the text', + toEmail : 'E-mail', + targetFrame : '<frame>', + targetPopup : '<popup window>', + targetFrameName : 'Target Frame Name', + targetPopupName : 'Popup Window Name', + popupFeatures : 'Popup Window Features', + popupResizable : 'Resizable', + popupStatusBar : 'Status Bar', + popupLocationBar: 'Location Bar', + popupToolbar : 'Toolbar', + popupMenuBar : 'Menu Bar', + popupFullScreen : 'Full Screen (IE)', + popupScrollBars : 'Scroll Bars', + popupDependent : 'Dependent (Netscape)', + popupLeft : 'Left Position', + popupTop : 'Top Position', + id : 'Id', + langDir : 'Language Direction', + langDirLTR : 'Left to Right (LTR)', + langDirRTL : 'Right to Left (RTL)', + acccessKey : 'Access Key', + name : 'Name', + langCode : 'Language Code', + tabIndex : 'Tab Index', + advisoryTitle : 'Advisory Title', + advisoryContentType : 'Advisory Content Type', + cssClasses : 'Stylesheet Classes', + charset : 'Linked Resource Charset', + styles : 'Style', + rel : 'Relationship', + selectAnchor : 'Select an Anchor', + anchorName : 'By Anchor Name', + anchorId : 'By Element Id', + emailAddress : 'E-Mail Address', + emailSubject : 'Message Subject', + emailBody : 'Message Body', + noAnchors : '(No anchors available in the document)', + noUrl : 'Please type the link URL', + noEmail : 'Please type the e-mail address' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anchor', + menu : 'Edit Anchor', + title : 'Anchor Properties', + name : 'Anchor Name', + errorName : 'Please type the anchor name', + remove : 'Remove Anchor' + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', + bulletedTitle : 'Bulleted List Properties', + type : 'Type', + start : 'Start', + validateStartNumber :'List start number must be a whole number.', + circle : 'Circle', + disc : 'Disc', + square : 'Square', + none : 'None', + notset : '<not set>', + armenian : 'Armenian numbering', + georgian : 'Georgian numbering (an, ban, gan, etc.)', + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', + decimal : 'Decimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', + find : 'Find', + replace : 'Replace', + findWhat : 'Find what:', + replaceWith : 'Replace with:', + notFoundMsg : 'The specified text was not found.', + findOptions : 'Find Options', + matchCase : 'Match case', + matchWord : 'Match whole word', + matchCyclic : 'Match cyclic', + replaceAll : 'Replace All', + replaceSuccessMsg : '%1 occurrence(s) replaced.' + }, + + // Table Dialog + table : + { + toolbar : 'Table', + title : 'Table Properties', + menu : 'Table Properties', + deleteTable : 'Delete Table', + rows : 'Rows', + columns : 'Columns', + border : 'Border size', + widthPx : 'pixels', + widthPc : 'percent', + widthUnit : 'width unit', + cellSpace : 'Cell spacing', + cellPad : 'Cell padding', + caption : 'Caption', + summary : 'Summary', + headers : 'Headers', + headersNone : 'None', + headersColumn : 'First column', + headersRow : 'First Row', + headersBoth : 'Both', + invalidRows : 'Number of rows must be a number greater than 0.', + invalidCols : 'Number of columns must be a number greater than 0.', + invalidBorder : 'Border size must be a number.', + invalidWidth : 'Table width must be a number.', + invalidHeight : 'Table height must be a number.', + invalidCellSpacing : 'Cell spacing must be a positive number.', + invalidCellPadding : 'Cell padding must be a positive number.', + + cell : + { + menu : 'Cell', + insertBefore : 'Insert Cell Before', + insertAfter : 'Insert Cell After', + deleteCell : 'Delete Cells', + merge : 'Merge Cells', + mergeRight : 'Merge Right', + mergeDown : 'Merge Down', + splitHorizontal : 'Split Cell Horizontally', + splitVertical : 'Split Cell Vertically', + title : 'Cell Properties', + cellType : 'Cell Type', + rowSpan : 'Rows Span', + colSpan : 'Columns Span', + wordWrap : 'Word Wrap', + hAlign : 'Horizontal Alignment', + vAlign : 'Vertical Alignment', + alignBaseline : 'Baseline', + bgColor : 'Background Color', + borderColor : 'Border Color', + data : 'Data', + header : 'Header', + yes : 'Yes', + no : 'No', + invalidWidth : 'Cell width must be a number.', + invalidHeight : 'Cell height must be a number.', + invalidRowSpan : 'Rows span must be a whole number.', + invalidColSpan : 'Columns span must be a whole number.', + chooseColor : 'Choose' + }, + + row : + { + menu : 'Row', + insertBefore : 'Insert Row Before', + insertAfter : 'Insert Row After', + deleteRow : 'Delete Rows' + }, + + column : + { + menu : 'Column', + insertBefore : 'Insert Column Before', + insertAfter : 'Insert Column After', + deleteColumn : 'Delete Columns' + } + }, + + // Button Dialog. + button : + { + title : 'Button Properties', + text : 'Text (Value)', + type : 'Type', + typeBtn : 'Button', + typeSbm : 'Submit', + typeRst : 'Reset' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', + radioTitle : 'Radio Button Properties', + value : 'Value', + selected : 'Selected' + }, + + // Form Dialog. + form : + { + title : 'Form Properties', + menu : 'Form Properties', + action : 'Action', + method : 'Method', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', + selectInfo : 'Select Info', + opAvail : 'Available Options', + value : 'Value', + size : 'Size', + lines : 'lines', + chkMulti : 'Allow multiple selections', + opText : 'Text', + opValue : 'Value', + btnAdd : 'Add', + btnModify : 'Modify', + btnUp : 'Up', + btnDown : 'Down', + btnSetValue : 'Set as selected value', + btnDelete : 'Delete' + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea Properties', + cols : 'Columns', + rows : 'Rows' + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field Properties', + name : 'Name', + value : 'Value', + charWidth : 'Character Width', + maxChars : 'Maximum Characters', + type : 'Type', + typeText : 'Text', + typePass : 'Password' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field Properties', + name : 'Name', + value : 'Value' + }, + + // Image Dialog. + image : + { + title : 'Image Properties', + titleButton : 'Image Button Properties', + menu : 'Image Properties', + infoTab : 'Image Info', + btnUpload : 'Send it to the Server', + upload : 'Upload', + alt : 'Alternative Text', + lockRatio : 'Lock Ratio', + resetSize : 'Reset Size', + border : 'Border', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Please type the image URL', + linkTab : 'Link', + button2Img : 'Do you want to transform the selected image button on a simple image?', + img2Button : 'Do you want to transform the selected image on a image button?', + urlMissing : 'Image source URL is missing.', + validateBorder : 'Border must be a whole number.', + validateHSpace : 'HSpace must be a whole number.', + validateVSpace : 'VSpace must be a whole number.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', + propertiesTab : 'Properties', + title : 'Flash Properties', + chkPlay : 'Auto Play', + chkLoop : 'Loop', + chkMenu : 'Enable Flash Menu', + chkFull : 'Allow Fullscreen', + scale : 'Scale', + scaleAll : 'Show all', + scaleNoBorder : 'No Border', + scaleFit : 'Exact Fit', + access : 'Script Access', + accessAlways : 'Always', + accessSameDomain: 'Same domain', + accessNever : 'Never', + alignAbsBottom : 'Abs Bottom', + alignAbsMiddle : 'Abs Middle', + alignBaseline : 'Baseline', + alignTextTop : 'Text Top', + quality : 'Quality', + qualityBest : 'Best', + qualityHigh : 'High', + qualityAutoHigh : 'Auto High', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto Low', + qualityLow : 'Low', + windowModeWindow: 'Window', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Transparent', + windowMode : 'Window mode', + flashvars : 'Variables for Flash', + bgcolor : 'Background color', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'URL must not be empty.', + validateHSpace : 'HSpace must be a number.', + validateVSpace : 'VSpace must be a number.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Check Spelling', + title : 'Spell Check', + notAvailable : 'Sorry, but service is unavailable now.', + errorLoading : 'Error loading application service host: %s.', + notInDic : 'Not in dictionary', + changeTo : 'Change to', + btnIgnore : 'Ignore', + btnIgnoreAll : 'Ignore All', + btnReplace : 'Replace', + btnReplaceAll : 'Replace All', + btnUndo : 'Undo', + noSuggestions : '- No suggestions -', + progress : 'Spell check in progress...', + noMispell : 'Spell check complete: No misspellings found', + noChanges : 'Spell check complete: No words changed', + oneChange : 'Spell check complete: One word changed', + manyChanges : 'Spell check complete: %1 words changed', + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Insert a Smiley', + options : 'Smiley Options' + }, + + elementsPath : + { + eleLabel : 'Elements path', + eleTitle : '%1 element' + }, + + numberedlist : 'Insert/Remove Numbered List', + bulletedlist : 'Insert/Remove Bulleted List', + indent : 'Increase Indent', + outdent : 'Decrease Indent', + + justify : + { + left : 'Align Left', + center : 'Center', + right : 'Align Right', + block : 'Justify' + }, + + blockquote : 'Block Quote', + + clipboard : + { + title : 'Paste', + cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + pasteArea : 'Paste Area' + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', + toolbar : 'Paste from Word', + title : 'Paste from Word', + error : 'It was not possible to clean up the pasted data due to an internal error' + }, + + pasteText : + { + button : 'Paste as plain text', + title : 'Paste as Plain Text' + }, + + templates : + { + button : 'Templates', + title : 'Content Templates', + options : 'Template Options', + insertOption : 'Replace actual contents', + selectPromptMsg : 'Please select the template to open in the editor', + emptyListMsg : '(No templates defined)' + }, + + showBlocks : 'Show Blocks', + + stylesCombo : + { + label : 'Styles', + panelTitle : 'Formatting Styles', + panelTitle1 : 'Block Styles', + panelTitle2 : 'Inline Styles', + panelTitle3 : 'Object Styles' + }, + + format : + { + label : 'Format', + panelTitle : 'Paragraph Format', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Create Div Container', + toolbar : 'Create Div Container', + cssClassInputLabel : 'Stylesheet Classes', + styleSelectLabel : 'Style', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Language Code', + inlineStyleInputLabel : 'Inline Style', + advisoryTitleInputLabel : 'Advisory Title', + langDirLabel : 'Language Direction', + langDirLTRLabel : 'Left to Right (LTR)', + langDirRTLLabel : 'Right to Left (RTL)', + edit : 'Edit Div', + remove : 'Remove Div' + }, + + iframe : + { + title : 'IFrame Properties', + toolbar : 'IFrame', + noUrl : 'Please type the iframe URL', + scrolling : 'Enable scrollbars', + border : 'Show frame border' + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', + panelTitle : 'Font Name' + }, + + fontSize : + { + label : 'Size', + voiceLabel : 'Font Size', + panelTitle : 'Font Size' + }, + + colorButton : + { + textColorTitle : 'Text Color', + bgColorTitle : 'Background Color', + panelTitle : 'Colors', + auto : 'Automatic', + more : 'More Colors...' + }, + + colors : + { + '000' : 'Black', + '800000' : 'Maroon', + '8B4513' : 'Saddle Brown', + '2F4F4F' : 'Dark Slate Gray', + '008080' : 'Teal', + '000080' : 'Navy', + '4B0082' : 'Indigo', + '696969' : 'Dark Gray', + 'B22222' : 'Fire Brick', + 'A52A2A' : 'Brown', + 'DAA520' : 'Golden Rod', + '006400' : 'Dark Green', + '40E0D0' : 'Turquoise', + '0000CD' : 'Medium Blue', + '800080' : 'Purple', + '808080' : 'Gray', + 'F00' : 'Red', + 'FF8C00' : 'Dark Orange', + 'FFD700' : 'Gold', + '008000' : 'Green', + '0FF' : 'Cyan', + '00F' : 'Blue', + 'EE82EE' : 'Violet', + 'A9A9A9' : 'Dim Gray', + 'FFA07A' : 'Light Salmon', + 'FFA500' : 'Orange', + 'FFFF00' : 'Yellow', + '00FF00' : 'Lime', + 'AFEEEE' : 'Pale Turquoise', + 'ADD8E6' : 'Light Blue', + 'DDA0DD' : 'Plum', + 'D3D3D3' : 'Light Grey', + 'FFF0F5' : 'Lavender Blush', + 'FAEBD7' : 'Antique White', + 'FFFFE0' : 'Light Yellow', + 'F0FFF0' : 'Honeydew', + 'F0FFFF' : 'Azure', + 'F0F8FF' : 'Alice Blue', + 'E6E6FA' : 'Lavender', + 'FFF' : 'White' + }, + + scayt : + { + title : 'Spell Check As You Type', + opera_title : 'Not supported by Opera', + enable : 'Enable SCAYT', + disable : 'Disable SCAYT', + about : 'About SCAYT', + toggle : 'Toggle SCAYT', + options : 'Options', + langs : 'Languages', + moreSuggestions : 'More suggestions', + ignore : 'Ignore', + ignoreAll : 'Ignore All', + addWord : 'Add Word', + emptyDic : 'Dictionary name should not be empty.', + + optionsTab : 'Options', + allCaps : 'Ignore All-Caps Words', + ignoreDomainNames : 'Ignore Domain Names', + mixedCase : 'Ignore Words with Mixed Case', + mixedWithDigits : 'Ignore Words with Numbers', + + languagesTab : 'Languages', + + dictionariesTab : 'Dictionaries', + dic_field_name : 'Dictionary name', + dic_create : 'Create', + dic_restore : 'Restore', + dic_delete : 'Delete', + dic_rename : 'Rename', + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', + + aboutTab : 'About' + }, + + about : + { + title : 'About CKEditor', + dlgTitle : 'About CKEditor', + help : 'Check $1 for help.', + userGuide : 'CKEditor User\'s Guide', + moreInfo : 'For licensing information please visit our web site:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Maximize', + minimize : 'Minimize', + + fakeobjects : + { + anchor : 'Anchor', + flash : 'Flash Animation', + iframe : 'IFrame', + hiddenfield : 'Hidden Field', + unknown : 'Unknown Object' + }, + + resize : 'Drag to resize', + + colordialog : + { + title : 'Select color', + options : 'Color Options', + highlight : 'Highlight', + selected : 'Selected Color', + clear : 'Clear' + }, + + toolbarCollapse : 'Collapse Toolbar', + toolbarExpand : 'Expand Toolbar', + + toolbarGroups : + { + document : 'Document', + clipboard : 'Clipboard/Undo', + editing : 'Editing', + forms : 'Forms', + basicstyles : 'Basic Styles', + paragraph : 'Paragraph', + links : 'Links', + insert : 'Insert', + styles : 'Styles', + colors : 'Colors', + tools : 'Tools' + }, + + bidi : + { + ltr : 'Text direction from left to right', + rtl : 'Text direction from right to left' + }, + + docprops : + { + label : 'Document Properties', + title : 'Document Properties', + design : 'Design', + meta : 'Meta Tags', + chooseColor : 'Choose', + other : 'Other...', + docTitle : 'Page Title', + charset : 'Character Set Encoding', + charsetOther : 'Other Character Set Encoding', + charsetASCII : 'ASCII', + charsetCE : 'Central European', + charsetCT : 'Chinese Traditional (Big5)', + charsetCR : 'Cyrillic', + charsetGR : 'Greek', + charsetJP : 'Japanese', + charsetKR : 'Korean', + charsetTR : 'Turkish', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Western European', + docType : 'Document Type Heading', + docTypeOther : 'Other Document Type Heading', + xhtmlDec : 'Include XHTML Declarations', + bgColor : 'Background Color', + bgImage : 'Background Image URL', + bgFixed : 'Non-scrolling (Fixed) Background', + txtColor : 'Text Color', + margin : 'Page Margins', + marginTop : 'Top', + marginLeft : 'Left', + marginRight : 'Right', + marginBottom : 'Bottom', + metaKeywords : 'Document Indexing Keywords (comma separated)', + metaDescription : 'Document Description', + metaAuthor : 'Author', + metaCopyright : 'Copyright', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/eo.js b/htdocs/includes/ckeditor/_source/lang/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..a1b3584c1f24fa51e99c705c3e862a5a7af7f3ff --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/eo.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Esperanto language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['eo'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'riĉteksta redaktilo, %1', + editorHelp : 'Premu ALT 0 por helpilo', + + // ARIA descriptions. + toolbars : 'Ilobretoj de la redaktilo', + editor : 'Redaktilo por Riĉiga Teksto', + + // Toolbar buttons without dialogs. + source : 'Fonto', + newPage : 'Nova Paĝo', + save : 'Konservi', + preview : 'Vidigi Aspekton', + cut : 'Eltondi', + copy : 'Kopii', + paste : 'Interglui', + print : 'Presi', + underline : 'Substreko', + bold : 'Grasa', + italic : 'Kursiva', + selectAll : 'Elekti ĉion', + removeFormat : 'Forigi Formaton', + strike : 'Trastreko', + subscript : 'Suba indico', + superscript : 'Supra indico', + horizontalrule : 'Enmeti Horizontalan Linion', + pagebreak : 'Enmeti Paĝavancon por Presado', + pagebreakAlt : 'Paĝavanco', + unlink : 'Forigi Ligilon', + undo : 'Malfari', + redo : 'Refari', + + // Common messages and labels. + common : + { + browseServer : 'Foliumi en la Servilo', + url : 'URL', + protocol : 'Protokolo', + upload : 'Alŝuti', + uploadSubmit : 'Sendu al Servilo', + image : 'Bildo', + flash : 'Flaŝo', + form : 'Formularo', + checkbox : 'Markobutono', + radio : 'Radiobutono', + textField : 'Teksta kampo', + textarea : 'Teksta Areo', + hiddenField : 'Kaŝita Kampo', + button : 'Butono', + select : 'Elekta Kampo', + imageButton : 'Bildbutono', + notSet : '<Defaŭlta>', + id : 'Id', + name : 'Nomo', + langDir : 'Skribdirekto', + langDirLtr : 'De maldekstro dekstren (LTR)', + langDirRtl : 'De dekstro maldekstren (RTL)', + langCode : 'Lingva Kodo', + longDescr : 'URL de Longa Priskribo', + cssClass : 'Klasoj de Stilfolioj', + advisoryTitle : 'Priskriba Titolo', + cssStyle : 'Stilo', + ok : 'Akcepti', + cancel : 'Rezigni', + close : 'Fermi', + preview : 'Vidigi Aspekton', + generalTab : 'Ĝenerala', + advancedTab : 'Speciala', + validateNumberFailed : 'Tiu valoro ne estas nombro.', + confirmNewPage : 'La neregistritaj ŝanĝoj estas perdotaj. Ĉu vi certas, ke vi volas ŝargi novan paĝon?', + confirmCancel : 'Iuj opcioj esta ŝanĝitaj. Ĉu vi certas, ke vi volas fermi la dialogon?', + options : 'Opcioj', + target : 'Celo', + targetNew : 'Nova Fenestro (_blank)', + targetTop : 'Supra Fenestro (_top)', + targetSelf : 'Sama Fenestro (_self)', + targetParent : 'Patra Fenestro (_parent)', + langDirLTR : 'De maldekstro dekstren (LTR)', + langDirRTL : 'De dekstro maldekstren (RTL)', + styles : 'Stilo', + cssClasses : 'Stilfoliaj Klasoj', + width : 'Larĝo', + height : 'Alto', + align : 'Ĝisrandigo', + alignLeft : 'Maldekstre', + alignRight : 'Dekstre', + alignCenter : 'Centre', + alignTop : 'Supre', + alignMiddle : 'Centre', + alignBottom : 'Malsupre', + invalidHeight : 'Alto devas esti nombro.', + invalidWidth : 'Larĝo devas esti nombro.', + invalidCssLength : 'La valoro indikita por la "%1" kampo devas esti pozitiva nombro kun aŭ sen valida CSSmezurunuo (px, %, in, cm, mm, em, ex, pt, or pc).', + invalidHtmlLength : 'La valoro indikita por la "%1" kampo devas esti pozitiva nombro kun aŭ sen valida HTMLmezurunuo (px or %).', + invalidInlineStyle : 'La valoro indikita por la enlinia stilo devas konsisti el unu aŭ pluraj elementoj kun la formato de "nomo : valoro", apartigitaj per punktokomoj.', + cssLengthTooltip : 'Entajpu nombron por rastrumera valoro aŭ nombron kun valida CSSunuo (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, nehavebla</span>' + }, + + contextmenu : + { + options : 'Opcioj de Kunteksta Menuo' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Enmeti Specialan Signon', + title : 'Selekti Specialan Signon', + options : 'Opcioj pri Specialaj Signoj' + }, + + // Link dialog. + link : + { + toolbar : 'Enmeti/Ŝanĝi Ligilon', + other : '<alia>', + menu : 'Ŝanĝi Ligilon', + title : 'Ligilo', + info : 'Informoj pri la Ligilo', + target : 'Celo', + upload : 'Alŝuti', + advanced : 'Speciala', + type : 'Tipo de Ligilo', + toUrl : 'URL', + toAnchor : 'Ankri en tiu ĉi paĝo', + toEmail : 'Retpoŝto', + targetFrame : '<kadro>', + targetPopup : '<ŝprucfenestro>', + targetFrameName : 'Nomo de CelKadro', + targetPopupName : 'Nomo de Ŝprucfenestro', + popupFeatures : 'Atributoj de la Ŝprucfenestro', + popupResizable : 'Dimensiŝanĝebla', + popupStatusBar : 'Statobreto', + popupLocationBar: 'Adresobreto', + popupToolbar : 'Ilobreto', + popupMenuBar : 'Menubreto', + popupFullScreen : 'Tutekrane (IE)', + popupScrollBars : 'Rulumskaloj', + popupDependent : 'Dependa (Netscape)', + popupLeft : 'Maldekstra Pozicio', + popupTop : 'Supra Pozicio', + id : 'Id', + langDir : 'Skribdirekto', + langDirLTR : 'De maldekstro dekstren (LTR)', + langDirRTL : 'De dekstro maldekstren (RTL)', + acccessKey : 'Fulmoklavo', + name : 'Nomo', + langCode : 'Lingva Kodo', + tabIndex : 'Taba Indekso', + advisoryTitle : 'Priskriba Titolo', + advisoryContentType : 'Enhavotipo', + cssClasses : 'Klasoj de Stilfolioj', + charset : 'Signaro de la Ligita Rimedo', + styles : 'Stilo', + rel : 'Rilato', + selectAnchor : 'Elekti Ankron', + anchorName : 'Per Ankronomo', + anchorId : 'Per Elementidentigilo', + emailAddress : 'Retpoŝto', + emailSubject : 'Mesaĝa Temo', + emailBody : 'Mesaĝa korpo', + noAnchors : '<Ne disponeblas ankroj en la dokumento>', + noUrl : 'Bonvolu entajpi la URL-on', + noEmail : 'Bonvolu entajpi la retpoŝtadreson' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Ankro', + menu : 'Enmeti/Ŝanĝi Ankron', + title : 'Ankraj Atributoj', + name : 'Ankra Nomo', + errorName : 'Bv entajpi la ankran nomon', + remove : 'Forigi Ankron' + }, + + // List style dialog + list: + { + numberedTitle : 'Atributoj de Numera Listo', + bulletedTitle : 'Atributoj de Bula Listo', + type : 'Tipo', + start : 'Komenco', + validateStartNumber :'La unua listero devas esti entjera nombro.', + circle : 'Cirklo', + disc : 'Disko', + square : 'kvadrato', + none : 'Neniu', + notset : '<Defaŭlta>', + armenian : 'Armena nombrado', + georgian : 'Gruza nombrado (an, ban, gan, ktp.)', + lowerRoman : 'Minusklaj Romanaj Nombroj (i, ii, iii, iv, v, ktp.)', + upperRoman : 'Majusklaj Romanaj Nombroj (I, II, III, IV, V, ktp.)', + lowerAlpha : 'Minusklaj Literoj (a, b, c, d, e, ktp.)', + upperAlpha : 'Majusklaj Literoj (A, B, C, D, E, ktp.)', + lowerGreek : 'Grekaj Minusklaj Literoj (alpha, beta, gamma, ktp.)', + decimal : 'Dekumaj Nombroj (1, 2, 3, ktp.)', + decimalLeadingZero : 'Dekumaj Nombroj malantaŭ nulo (01, 02, 03, ktp.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Serĉi kaj Anstataŭigi', + find : 'Serĉi', + replace : 'Anstataŭigi', + findWhat : 'Serĉi:', + replaceWith : 'Anstataŭigi per:', + notFoundMsg : 'La celteksto ne estas trovita.', + findOptions : 'Opcioj pri Serĉado', + matchCase : 'Kongruigi Usklecon', + matchWord : 'Tuta Vorto', + matchCyclic : 'Cikla Serĉado', + replaceAll : 'Anstataŭigi Ĉion', + replaceSuccessMsg : '%1 anstataŭigita(j) apero(j).' + }, + + // Table Dialog + table : + { + toolbar : 'Tabelo', + title : 'Atributoj de Tabelo', + menu : 'Atributoj de Tabelo', + deleteTable : 'Forigi Tabelon', + rows : 'Linioj', + columns : 'Kolumnoj', + border : 'Bordero', + widthPx : 'Rastrumeroj', + widthPc : 'elcentoj', + widthUnit : 'unuo de larĝo', + cellSpace : 'Spaco inter la Ĉeloj', + cellPad : 'Interna Marĝeno de la ĉeloj', + caption : 'Tabeltitolo', + summary : 'Resumo', + headers : 'Supraj Paĝotitoloj', + headersNone : 'Neniu', + headersColumn : 'Unua kolumno', + headersRow : 'Unua linio', + headersBoth : 'Ambaŭ', + invalidRows : 'La nombro de la linioj devas superi 0.', + invalidCols : 'La nombro de la kolumnoj devas superi 0.', + invalidBorder : 'La bordergrando devas esti nombro.', + invalidWidth : 'La tabellarĝo devas esti nombro.', + invalidHeight : 'La tabelalto devas esti nombro.', + invalidCellSpacing : 'La spaco inter la ĉeloj devas esti pozitiva nombro.', + invalidCellPadding : 'La interna marĝeno en la ĉeloj devas esti pozitiva nombro.', + + cell : + { + menu : 'Ĉelo', + insertBefore : 'Enmeti Ĉelon Antaŭ', + insertAfter : 'Enmeti Ĉelon Post', + deleteCell : 'Forigi la Ĉelojn', + merge : 'Kunfandi la Ĉelojn', + mergeRight : 'Kunfandi dekstren', + mergeDown : 'Kunfandi malsupren ', + splitHorizontal : 'Horizontale dividi', + splitVertical : 'Vertikale dividi', + title : 'Ĉelatributoj', + cellType : 'Ĉeltipo', + rowSpan : 'Kunfando de linioj', + colSpan : 'Kunfando de kolumnoj', + wordWrap : 'Cezuro', + hAlign : 'Horizontala ĝisrandigo', + vAlign : 'Vertikala ĝisrandigo', + alignBaseline : 'Malsupro de la teksto', + bgColor : 'Fonkoloro', + borderColor : 'Borderkoloro', + data : 'Datenoj', + header : 'Supra paĝotitolo', + yes : 'Jes', + no : 'No', + invalidWidth : 'Ĉellarĝo devas esti nombro.', + invalidHeight : 'Ĉelalto devas esti nombro.', + invalidRowSpan : 'Kunfando de linioj devas esti entjera nombro.', + invalidColSpan : 'Kunfando de kolumnoj devas esti entjera nombro.', + chooseColor : 'Elektu' + }, + + row : + { + menu : 'Linio', + insertBefore : 'Enmeti linion antaŭ', + insertAfter : 'Enmeti linion post', + deleteRow : 'Forigi Liniojn' + }, + + column : + { + menu : 'Kolumno', + insertBefore : 'Enmeti kolumnon antaŭ', + insertAfter : 'Enmeti kolumnon post', + deleteColumn : 'Forigi Kolumnojn' + } + }, + + // Button Dialog. + button : + { + title : 'Butonaj atributoj', + text : 'Teksto (Valoro)', + type : 'Tipo', + typeBtn : 'Butono', + typeSbm : 'Validigi (submit)', + typeRst : 'Remeti en la originstaton (Reset)' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Markobutonaj Atributoj', + radioTitle : 'Radiobutonaj Atributoj', + value : 'Valoro', + selected : 'Selektita' + }, + + // Form Dialog. + form : + { + title : 'Formularaj Atributoj', + menu : 'Formularaj Atributoj', + action : 'Ago', + method : 'Metodo', + encoding : 'Kodoprezento' + }, + + // Select Field Dialog. + select : + { + title : 'Atributoj de Elekta Kampo', + selectInfo : 'Informoj pri la rulummenuo', + opAvail : 'Elektoj Disponeblaj', + value : 'Valoro', + size : 'Grando', + lines : 'Linioj', + chkMulti : 'Permesi Plurajn Elektojn', + opText : 'Teksto', + opValue : 'Valoro', + btnAdd : 'Aldoni', + btnModify : 'Modifi', + btnUp : 'Supren', + btnDown : 'Malsupren', + btnSetValue : 'Agordi kiel Elektitan Valoron', + btnDelete : 'Forigi' + }, + + // Textarea Dialog. + textarea : + { + title : 'Atributoj de Teksta Areo', + cols : 'Kolumnoj', + rows : 'Linioj' + }, + + // Text Field Dialog. + textfield : + { + title : 'Atributoj de Teksta Kampo', + name : 'Nomo', + value : 'Valoro', + charWidth : 'Signolarĝo', + maxChars : 'Maksimuma Nombro da Signoj', + type : 'Tipo', + typeText : 'Teksto', + typePass : 'Pasvorto' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Atributoj de Kaŝita Kampo', + name : 'Nomo', + value : 'Valoro' + }, + + // Image Dialog. + image : + { + title : 'Atributoj de Bildo', + titleButton : 'Bildbutonaj Atributoj', + menu : 'Atributoj de Bildo', + infoTab : 'Informoj pri Bildo', + btnUpload : 'Sendu al Servilo', + upload : 'Alŝuti', + alt : 'Anstataŭiga Teksto', + lockRatio : 'Konservi Proporcion', + resetSize : 'Origina Grando', + border : 'Bordero', + hSpace : 'Horizontala Spaco', + vSpace : 'Vertikala Spaco', + alertUrl : 'Bonvolu tajpi la retadreson de la bildo', + linkTab : 'Ligilo', + button2Img : 'Ĉu vi volas transformi la selektitan bildbutonon en simplan bildon?', + img2Button : 'Ĉu vi volas transformi la selektitan bildon en bildbutonon?', + urlMissing : 'La fontretadreso de la bildo mankas.', + validateBorder : 'La bordero devas esti entjera nombro.', + validateHSpace : 'La horizontala spaco devas esti entjera nombro.', + validateVSpace : 'La vertikala spaco devas esti entjera nombro.' + }, + + // Flash Dialog + flash : + { + properties : 'Flaŝatributoj', + propertiesTab : 'Atributoj', + title : 'Flaŝatributoj', + chkPlay : 'Aŭtomata legado', + chkLoop : 'Iteracio', + chkMenu : 'Ebligi flaŝmenuon', + chkFull : 'Permesi tutekranon', + scale : 'Skalo', + scaleAll : 'Montri ĉion', + scaleNoBorder : 'Neniu bordero', + scaleFit : 'Origina grando', + access : 'Atingi skriptojn', + accessAlways : 'Ĉiam', + accessSameDomain: 'Sama domajno', + accessNever : 'Neniam', + alignAbsBottom : 'Absoluta Malsupro', + alignAbsMiddle : 'Absoluta Centro', + alignBaseline : 'TekstoMalsupro', + alignTextTop : 'TekstoSupro', + quality : 'Kvalito', + qualityBest : 'Plej bona', + qualityHigh : 'Alta', + qualityAutoHigh : 'Aŭtomate alta', + qualityMedium : 'Meza', + qualityAutoLow : 'Aŭtomate malalta', + qualityLow : 'Malalta', + windowModeWindow: 'Fenestro', + windowModeOpaque: 'Opaka', + windowModeTransparent : 'Travidebla', + windowMode : 'Fenestra reĝimo', + flashvars : 'Variabloj por Flaŝo', + bgcolor : 'Fona Koloro', + hSpace : 'Horizontala Spaco', + vSpace : 'Vertikala Spaco', + validateSrc : 'Bonvolu entajpi la retadreson (URL)', + validateHSpace : 'Horizontala Spaco devas esti nombro.', + validateVSpace : 'Vertikala Spaco devas esti nombro.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Kontroli la ortografion', + title : 'Kontroli la ortografion', + notAvailable : 'Bedaŭrinde la servo ne funkcias nuntempe.', + errorLoading : 'Eraro en la servoelŝuto el la gastiga komputiko: %s.', + notInDic : 'Ne trovita en la vortaro', + changeTo : 'Ŝanĝi al', + btnIgnore : 'Ignori', + btnIgnoreAll : 'Ignori Ĉion', + btnReplace : 'Anstataŭigi', + btnReplaceAll : 'Anstataŭigi Ĉion', + btnUndo : 'Malfari', + noSuggestions : '- Neniu propono -', + progress : 'La ortografio estas kontrolata...', + noMispell : 'Ortografikontrolado finita: neniu eraro trovita', + noChanges : 'Ortografikontrolado finita: neniu vorto korektita', + oneChange : 'Ortografikontrolado finita: unu vorto korektita', + manyChanges : 'Ortografikontrolado finita: %1 vortoj korektitaj', + ieSpellDownload : 'Ortografikontrolilo ne instalita. Ĉu vi volas elŝuti ĝin nun?' + }, + + smiley : + { + toolbar : 'Mienvinjeto', + title : 'Enmeti Mienvinjeton', + options : 'Opcioj pri mienvinjetoj' + }, + + elementsPath : + { + eleLabel : 'Vojo al Elementoj', + eleTitle : '%1 elementoj' + }, + + numberedlist : 'Numera Listo', + bulletedlist : 'Bula Listo', + indent : 'Pligrandigi Krommarĝenon', + outdent : 'Malpligrandigi Krommarĝenon', + + justify : + { + left : 'Ĝisrandigi maldekstren', + center : 'Centrigi', + right : 'Ĝisrandigi dekstren', + block : 'Ĝisrandigi Ambaŭflanke' + }, + + blockquote : 'Citaĵo', + + clipboard : + { + title : 'Interglui', + cutError : 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras eltondajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-X).', + copyError : 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras kopiajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-C).', + pasteMsg : 'Bonvolu glui la tekston en la jenan areon per uzado de la klavaro (<strong>Ctrl/Cmd+V</strong>) kaj premu OK', + securityMsg : 'Pro la sekurecagordo de via TTT-legilo, la redaktilo ne povas rekte atingi viajn datenojn en la poŝo. Bonvolu denove interglui la datenojn en tiun fenestron.', + pasteArea : 'Intergluoareo' + }, + + pastefromword : + { + confirmCleanup : 'La teksto, kiun vi volas interglui, ŝajnas esti kopiita el Word. Ĉu vi deziras purigi ĝin antaŭ intergluo?', + toolbar : 'Interglui el Word', + title : 'Interglui el Word', + error : 'Ne eblis purigi la intergluitajn datenojn pro interna eraro' + }, + + pasteText : + { + button : 'Interglui kiel platan tekston', + title : 'Interglui kiel platan tekston' + }, + + templates : + { + button : 'Ŝablonoj', + title : 'Enhavo de ŝablonoj', + options : 'Opcioj pri ŝablonoj', + insertOption : 'Anstataŭigi la nunan enhavon', + selectPromptMsg : 'Bonvolu selekti la ŝablonon por malfermi ĝin en la redaktilo', + emptyListMsg : '(Neniu ŝablono difinita)' + }, + + showBlocks : 'Montri la blokojn', + + stylesCombo : + { + label : 'Stiloj', + panelTitle : 'Stiloj pri enpaĝigo', + panelTitle1 : 'Stiloj de blokoj', + panelTitle2 : 'Enliniaj Stiloj', + panelTitle3 : 'Stiloj de objektoj' + }, + + format : + { + label : 'Formato', + panelTitle : 'ParagrafFormato', + + tag_p : 'Normala', + tag_pre : 'Formatita', + tag_address : 'Adreso', + tag_h1 : 'Titolo 1', + tag_h2 : 'Titolo 2', + tag_h3 : 'Titolo 3', + tag_h4 : 'Titolo 4', + tag_h5 : 'Titolo 5', + tag_h6 : 'Titolo 6', + tag_div : 'Normala (DIV)' + }, + + div : + { + title : 'Krei DIV ujon', + toolbar : 'Krei DIV ujon', + cssClassInputLabel : 'Stilfolioklasoj', + styleSelectLabel : 'Stilo', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Lingvokodo', + inlineStyleInputLabel : 'Enlinia stilo', + advisoryTitleInputLabel : 'Priskriba Titolo', + langDirLabel : 'Skribdirekto', + langDirLTRLabel : 'Maldekstre dekstren (angle LTR)', + langDirRTLLabel : 'Dekstre maldekstren (angle RTL)', + edit : 'Redakti Div', + remove : 'Forigi Div' + }, + + iframe : + { + title : 'Atributoj de la enlinia kadro (IFrame)', + toolbar : 'Enlinia kadro (IFrame)', + noUrl : 'Bonvolu entajpi la retadreson de la ligilo al la enlinia kadro (IFrame)', + scrolling : 'Ebligi rulumskalon', + border : 'Montri borderon de kadro (frame)' + }, + + font : + { + label : 'Tiparo', + voiceLabel : 'Tiparo', + panelTitle : 'Tipara nomo' + }, + + fontSize : + { + label : 'Grado', + voiceLabel : 'Tipara grado', + panelTitle : 'Tipara grado' + }, + + colorButton : + { + textColorTitle : 'Teksta Koloro', + bgColorTitle : 'Fona Koloro', + panelTitle : 'Koloroj', + auto : 'Aŭtomata', + more : 'Pli da Koloroj...' + }, + + colors : + { + '000' : 'Nigra', + '800000' : 'Kaŝtankolora', + '8B4513' : 'Mezbruna', + '2F4F4F' : 'Ardezgriza', + '008080' : 'Marĉanaskolora', + '000080' : 'Maristblua', + '4B0082' : 'Indigokolora', + '696969' : 'Malhelgriza', + 'B22222' : 'Brikruĝa', + 'A52A2A' : 'Bruna', + 'DAA520' : 'Senbrilorkolora', + '006400' : 'Malhelverda', + '40E0D0' : 'Turkisblua', + '0000CD' : 'Reĝblua', + '800080' : 'Purpura', + '808080' : 'Griza', + 'F00' : 'Ruĝa', + 'FF8C00' : 'Malheloranĝkolora', + 'FFD700' : 'Orkolora', + '008000' : 'Verda', + '0FF' : 'Verdblua', + '00F' : 'Blua', + 'EE82EE' : 'Viola', + 'A9A9A9' : 'Mezgriza', + 'FFA07A' : 'Salmokolora', + 'FFA500' : 'Oranĝkolora', + 'FFFF00' : 'Flava', + '00FF00' : 'Limetkolora', + 'AFEEEE' : 'Helturkiskolora', + 'ADD8E6' : 'Helblua', + 'DDA0DD' : 'Prunkolora', + 'D3D3D3' : 'Helgriza', + 'FFF0F5' : 'Lavendkolora vangoŝminko', + 'FAEBD7' : 'Antikvablanka', + 'FFFFE0' : 'Helflava', + 'F0FFF0' : 'Vintromelonkolora', + 'F0FFFF' : 'Lazura', + 'F0F8FF' : 'Aliceblua', + 'E6E6FA' : 'Lavendkolora', + 'FFF' : 'Blanka' + }, + + scayt : + { + title : 'OrtografiKontrolado Dum Vi Tajpas (OKDVT)', + opera_title : 'Ne subportata de Opera', + enable : 'Ebligi OKDVT', + disable : 'Malebligi OKDVT', + about : 'Pri OKDVT', + toggle : 'Baskuligi OKDVT', + options : 'Opcioj', + langs : 'Lingvoj', + moreSuggestions : 'Pli da sugestoj', + ignore : 'Ignori', + ignoreAll : 'Ignori ĉion', + addWord : 'Almeti la vorton', + emptyDic : 'La vortaronomo ne devus esti malplena.', + + optionsTab : 'Opcioj', + allCaps : 'Ignori la vortojn skribitajn nur per ĉefliteroj', + ignoreDomainNames : 'Ignori domajnajn nomojn', + mixedCase : 'Ignori vortojn kun miksa uskleco', + mixedWithDigits : 'Ignori vortojn kun nombroj', + + languagesTab : 'Lingvoj', + + dictionariesTab : 'Vortaroj', + dic_field_name : 'Vortaronomo', + dic_create : 'Krei', + dic_restore : 'Restaŭri', + dic_delete : 'Forigi', + dic_rename : 'Renomi', + dic_info : 'Komence la vortaro de la uzanto estas konservita en kuketo. Tamen la kuketgrando estas limigita. Kiam la vortaro de la uzanto atingas grandon, kiu ne plu ebligas konservi ĝin en kuketo, tiam la vortaro povas esti konservata en niaj serviloj. Por konservi vian personan vortaron en nian servilon, vi devas indiki nomon por tiu vortaro. Se vi jam havas konservitan vortaron, bonvolu entajpi ties nomon kaj alklaki la restaŭrbutonon.', + + aboutTab : 'Pri' + }, + + about : + { + title : 'Pri CKEditor', + dlgTitle : 'Pri CKEditor', + help : 'Kontroli $1 por helpo.', + userGuide : 'CKEditor Uzindikoj', + moreInfo : 'Por informoj pri licenco, bonvolu viziti nian retpaĝaron:', + copy : 'Copyright © $1. Ĉiuj rajtoj rezervitaj.' + }, + + maximize : 'Pligrandigi', + minimize : 'Malgrandigi', + + fakeobjects : + { + anchor : 'Ankro', + flash : 'FlaŝAnimacio', + iframe : 'Enlinia Kadro (IFrame)', + hiddenfield : 'Kaŝita kampo', + unknown : 'Nekonata objekto' + }, + + resize : 'Movigi por ŝanĝi la grandon', + + colordialog : + { + title : 'Selekti koloron', + options : 'Opcioj pri koloroj', + highlight : 'Detaloj', + selected : 'Selektita koloro', + clear : 'Forigi' + }, + + toolbarCollapse : 'Faldi la ilbreton', + toolbarExpand : 'Malfaldi la ilbreton', + + toolbarGroups : + { + document : 'Dokumento', + clipboard : 'Poŝo/Malfari', + editing : 'Redaktado', + forms : 'Formularoj', + basicstyles : 'Bazaj stiloj', + paragraph : 'Paragrafo', + links : 'Ligiloj', + insert : 'Enmeti', + styles : 'Stiloj', + colors : 'Koloroj', + tools : 'Iloj' + }, + + bidi : + { + ltr : 'Tekstdirekto de maldekstre dekstren', + rtl : 'Tekstdirekto de dekstre maldekstren' + }, + + docprops : + { + label : 'Dokumentaj Atributoj', + title : 'Dokumentaj Atributoj', + design : 'Dizajno', + meta : 'Metadatenoj', + chooseColor : 'Elektu', + other : '<alia>', + docTitle : 'Paĝotitolo', + charset : 'Signara Kodo', + charsetOther : 'Alia Signara Kodo', + charsetASCII : 'ASCII', + charsetCE : 'Centra Eŭropa', + charsetCT : 'Tradicia Ĉina (Big5)', + charsetCR : 'Cirila', + charsetGR : 'Greka', + charsetJP : 'Japana', + charsetKR : 'Korea', + charsetTR : 'Turka', + charsetUN : 'Unikodo (UTF-8)', + charsetWE : 'Okcidenta Eŭropa', + docType : 'Dokumenta Tipo', + docTypeOther : 'Alia Dokumenta Tipo', + xhtmlDec : 'Inkluzivi XHTML Deklarojn', + bgColor : 'Fona Koloro', + bgImage : 'URL de Fona Bildo', + bgFixed : 'Neruluma Fono', + txtColor : 'Teksta Koloro', + margin : 'Paĝaj Marĝenoj', + marginTop : 'Supra', + marginLeft : 'Maldekstra', + marginRight : 'Dekstra', + marginBottom : 'Malsupra', + metaKeywords : 'Ŝlosilvortoj de la Dokumento (apartigitaj de komoj)', + metaDescription : 'Dokumenta Priskribo', + metaAuthor : 'Verkinto', + metaCopyright : 'Kopirajto', + previewHtml : '<p>Tio estas <strong>sampla teksto</strong>. Vi estas uzanta <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/es.js b/htdocs/includes/ckeditor/_source/lang/es.js new file mode 100644 index 0000000000000000000000000000000000000000..da315e05a05bb36c68d3896de2e9cbea5367ae0f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/es.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Spanish language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['es'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Barras de herramientas del editor', + editor : 'Editor de texto enriquecido', + + // Toolbar buttons without dialogs. + source : 'Fuente HTML', + newPage : 'Nueva Página', + save : 'Guardar', + preview : 'Vista Previa', + cut : 'Cortar', + copy : 'Copiar', + paste : 'Pegar', + print : 'Imprimir', + underline : 'Subrayado', + bold : 'Negrita', + italic : 'Cursiva', + selectAll : 'Seleccionar Todo', + removeFormat : 'Eliminar Formato', + strike : 'Tachado', + subscript : 'Subíndice', + superscript : 'Superíndice', + horizontalrule : 'Insertar Línea Horizontal', + pagebreak : 'Insertar Salto de Página', + pagebreakAlt : 'Salto de página', + unlink : 'Eliminar Vínculo', + undo : 'Deshacer', + redo : 'Rehacer', + + // Common messages and labels. + common : + { + browseServer : 'Ver Servidor', + url : 'URL', + protocol : 'Protocolo', + upload : 'Cargar', + uploadSubmit : 'Enviar al Servidor', + image : 'Imagen', + flash : 'Flash', + form : 'Formulario', + checkbox : 'Casilla de Verificación', + radio : 'Botones de Radio', + textField : 'Campo de Texto', + textarea : 'Area de Texto', + hiddenField : 'Campo Oculto', + button : 'Botón', + select : 'Campo de Selección', + imageButton : 'Botón Imagen', + notSet : '<No definido>', + id : 'Id', + name : 'Nombre', + langDir : 'Orientación', + langDirLtr : 'Izquierda a Derecha (LTR)', + langDirRtl : 'Derecha a Izquierda (RTL)', + langCode : 'Cód. de idioma', + longDescr : 'Descripción larga URL', + cssClass : 'Clases de hojas de estilo', + advisoryTitle : 'Título', + cssStyle : 'Estilo', + ok : 'Aceptar', + cancel : 'Cancelar', + close : 'Cerrar', + preview : 'Previsualización', + generalTab : 'General', + advancedTab : 'Avanzado', + validateNumberFailed : 'El valor no es un número.', + confirmNewPage : 'Cualquier cambio que no se haya guardado se perderá.\r\n¿Está seguro de querer crear una nueva página?', + confirmCancel : 'Algunas de las opciones se han cambiado.\r\n¿Está seguro de querer cerrar el diálogo?', + options : 'Opciones', + target : 'Destino', + targetNew : 'Nueva ventana (_blank)', + targetTop : 'Ventana principal (_top)', + targetSelf : 'Misma ventana (_self)', + targetParent : 'Ventana padre (_parent)', + langDirLTR : 'Izquierda a derecha (LTR)', + langDirRTL : 'Derecha a izquierda (RTL)', + styles : 'Estilos', + cssClasses : 'Clase de la hoja de estilos', + width : 'Anchura', + height : 'Altura', + align : 'Alineación', + alignLeft : 'Izquierda', + alignRight : 'Derecha', + alignCenter : 'Centrado', + alignTop : 'Tope', + alignMiddle : 'Centro', + alignBottom : 'Pie', + invalidHeight : 'Altura debe ser un número.', + invalidWidth : 'Anchura debe ser un número.', + invalidCssLength : 'El valor especificado para el campo "%1" debe ser un número positivo, incluyendo optionalmente una unidad de medida CSS válida (px, %, in, cm, mm, em, ex, pt, o pc).', + invalidHtmlLength : 'El valor especificado para el campo "%1" debe ser un número positivo, incluyendo optionalmente una unidad de medida HTML válida (px o %).', + invalidInlineStyle : 'El valor especificado para el estilo debe consistir en uno o más pares con el formato "nombre: valor", separados por punto y coma.', + cssLengthTooltip : 'Introduca un número para el valor en pixels o un número con una unidad de medida CSS válida (px, %, in, cm, mm, em, ex, pt, o pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, no disponible</span>' + }, + + contextmenu : + { + options : 'Opciones del menú contextual' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insertar Caracter Especial', + title : 'Seleccione un caracter especial', + options : 'Opciones de caracteres especiales' + }, + + // Link dialog. + link : + { + toolbar : 'Insertar/Editar Vínculo', + other : '<otro>', + menu : 'Editar Vínculo', + title : 'Vínculo', + info : 'Información de Vínculo', + target : 'Destino', + upload : 'Cargar', + advanced : 'Avanzado', + type : 'Tipo de vínculo', + toUrl : 'URL', + toAnchor : 'Referencia en esta página', + toEmail : 'E-Mail', + targetFrame : '<marco>', + targetPopup : '<ventana emergente>', + targetFrameName : 'Nombre del Marco Destino', + targetPopupName : 'Nombre de Ventana Emergente', + popupFeatures : 'Características de Ventana Emergente', + popupResizable : 'Redimensionable', + popupStatusBar : 'Barra de Estado', + popupLocationBar: 'Barra de ubicación', + popupToolbar : 'Barra de Herramientas', + popupMenuBar : 'Barra de Menú', + popupFullScreen : 'Pantalla Completa (IE)', + popupScrollBars : 'Barras de desplazamiento', + popupDependent : 'Dependiente (Netscape)', + popupLeft : 'Posición Izquierda', + popupTop : 'Posición Derecha', + id : 'Id', + langDir : 'Orientación', + langDirLTR : 'Izquierda a Derecha (LTR)', + langDirRTL : 'Derecha a Izquierda (RTL)', + acccessKey : 'Tecla de Acceso', + name : 'Nombre', + langCode : 'Código idioma', + tabIndex : 'Indice de tabulación', + advisoryTitle : 'Título', + advisoryContentType : 'Tipo de Contenido', + cssClasses : 'Clases de hojas de estilo', + charset : 'Fuente de caracteres vinculado', + styles : 'Estilo', + rel : 'Relación', + selectAnchor : 'Seleccionar una referencia', + anchorName : 'Por Nombre de Referencia', + anchorId : 'Por ID de elemento', + emailAddress : 'Dirección de E-Mail', + emailSubject : 'Título del Mensaje', + emailBody : 'Cuerpo del Mensaje', + noAnchors : '(No hay referencias disponibles en el documento)', + noUrl : 'Por favor escriba el vínculo URL', + noEmail : 'Por favor escriba la dirección de e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Referencia', + menu : 'Propiedades de Referencia', + title : 'Propiedades de Referencia', + name : 'Nombre de la Referencia', + errorName : 'Por favor, complete el nombre de la Referencia', + remove : 'Quitar Referencia' + }, + + // List style dialog + list: + { + numberedTitle : 'Propiedades de lista numerada', + bulletedTitle : 'Propiedades de viñetas', + type : 'Tipo', + start : 'Inicio', + validateStartNumber :'El Inicio debe ser un número entero.', + circle : 'Círculo', + disc : 'Disco', + square : 'Cuadrado', + none : 'Ninguno', + notset : '<sin establecer>', + armenian : 'Numeración armenia', + georgian : 'Numeración georgiana (an, ban, gan, etc.)', + lowerRoman : 'Números romanos en minúsculas (i, ii, iii, iv, v, etc.)', + upperRoman : 'Números romanos en mayúsculas (I, II, III, IV, V, etc.)', + lowerAlpha : 'Alfabeto en minúsculas (a, b, c, d, e, etc.)', + upperAlpha : 'Alfabeto en mayúsculas (A, B, C, D, E, etc.)', + lowerGreek : 'Letras griegas (alpha, beta, gamma, etc.)', + decimal : 'Decimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Decimal con cero inicial (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Buscar y Reemplazar', + find : 'Buscar', + replace : 'Reemplazar', + findWhat : 'Texto a buscar:', + replaceWith : 'Reemplazar con:', + notFoundMsg : 'El texto especificado no ha sido encontrado.', + findOptions : 'Opciones de búsqueda', + matchCase : 'Coincidir may/min', + matchWord : 'Coincidir toda la palabra', + matchCyclic : 'Buscar en todo el contenido', + replaceAll : 'Reemplazar Todo', + replaceSuccessMsg : 'La expresión buscada ha sido reemplazada %1 veces.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabla', + title : 'Propiedades de Tabla', + menu : 'Propiedades de Tabla', + deleteTable : 'Eliminar Tabla', + rows : 'Filas', + columns : 'Columnas', + border : 'Tamaño de Borde', + widthPx : 'pixeles', + widthPc : 'porcentaje', + widthUnit : 'unidad de la anchura', + cellSpace : 'Esp. e/celdas', + cellPad : 'Esp. interior', + caption : 'Título', + summary : 'Síntesis', + headers : 'Encabezados', + headersNone : 'Ninguno', + headersColumn : 'Primera columna', + headersRow : 'Primera fila', + headersBoth : 'Ambas', + invalidRows : 'El número de filas debe ser un número mayor que 0.', + invalidCols : 'El número de columnas debe ser un número mayor que 0.', + invalidBorder : 'El tamaño del borde debe ser un número.', + invalidWidth : 'La anchura de tabla debe ser un número.', + invalidHeight : 'La altura de tabla debe ser un número.', + invalidCellSpacing : 'El espaciado entre celdas debe ser un número.', + invalidCellPadding : 'El espaciado interior debe ser un número.', + + cell : + { + menu : 'Celda', + insertBefore : 'Insertar celda a la izquierda', + insertAfter : 'Insertar celda a la derecha', + deleteCell : 'Eliminar Celdas', + merge : 'Combinar Celdas', + mergeRight : 'Combinar a la derecha', + mergeDown : 'Combinar hacia abajo', + splitHorizontal : 'Dividir la celda horizontalmente', + splitVertical : 'Dividir la celda verticalmente', + title : 'Propiedades de celda', + cellType : 'Tipo de Celda', + rowSpan : 'Expandir filas', + colSpan : 'Expandir columnas', + wordWrap : 'Ajustar al contenido', + hAlign : 'Alineación Horizontal', + vAlign : 'Alineación Vertical', + alignBaseline : 'Linea de base', + bgColor : 'Color de fondo', + borderColor : 'Color de borde', + data : 'Datos', + header : 'Encabezado', + yes : 'Sí', + no : 'No', + invalidWidth : 'La anchura de celda debe ser un número.', + invalidHeight : 'La altura de celda debe ser un número.', + invalidRowSpan : 'La expansión de filas debe ser un número entero.', + invalidColSpan : 'La expansión de columnas debe ser un número entero.', + chooseColor : 'Elegir' + }, + + row : + { + menu : 'Fila', + insertBefore : 'Insertar fila en la parte superior', + insertAfter : 'Insertar fila en la parte inferior', + deleteRow : 'Eliminar Filas' + }, + + column : + { + menu : 'Columna', + insertBefore : 'Insertar columna a la izquierda', + insertAfter : 'Insertar columna a la derecha', + deleteColumn : 'Eliminar Columnas' + } + }, + + // Button Dialog. + button : + { + title : 'Propiedades de Botón', + text : 'Texto (Valor)', + type : 'Tipo', + typeBtn : 'Boton', + typeSbm : 'Enviar', + typeRst : 'Reestablecer' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Propiedades de Casilla', + radioTitle : 'Propiedades de Botón de Radio', + value : 'Valor', + selected : 'Seleccionado' + }, + + // Form Dialog. + form : + { + title : 'Propiedades de Formulario', + menu : 'Propiedades de Formulario', + action : 'Acción', + method : 'Método', + encoding : 'Codificación' + }, + + // Select Field Dialog. + select : + { + title : 'Propiedades de Campo de Selección', + selectInfo : 'Información', + opAvail : 'Opciones disponibles', + value : 'Valor', + size : 'Tamaño', + lines : 'Lineas', + chkMulti : 'Permitir múltiple selección', + opText : 'Texto', + opValue : 'Valor', + btnAdd : 'Agregar', + btnModify : 'Modificar', + btnUp : 'Subir', + btnDown : 'Bajar', + btnSetValue : 'Establecer como predeterminado', + btnDelete : 'Eliminar' + }, + + // Textarea Dialog. + textarea : + { + title : 'Propiedades de Area de Texto', + cols : 'Columnas', + rows : 'Filas' + }, + + // Text Field Dialog. + textfield : + { + title : 'Propiedades de Campo de Texto', + name : 'Nombre', + value : 'Valor', + charWidth : 'Caracteres de ancho', + maxChars : 'Máximo caracteres', + type : 'Tipo', + typeText : 'Texto', + typePass : 'Contraseña' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Propiedades de Campo Oculto', + name : 'Nombre', + value : 'Valor' + }, + + // Image Dialog. + image : + { + title : 'Propiedades de Imagen', + titleButton : 'Propiedades de Botón de Imagen', + menu : 'Propiedades de Imagen', + infoTab : 'Información de Imagen', + btnUpload : 'Enviar al Servidor', + upload : 'Cargar', + alt : 'Texto Alternativo', + lockRatio : 'Proporcional', + resetSize : 'Tamaño Original', + border : 'Borde', + hSpace : 'Esp.Horiz', + vSpace : 'Esp.Vert', + alertUrl : 'Por favor escriba la URL de la imagen', + linkTab : 'Vínculo', + button2Img : '¿Desea convertir el botón de imagen en una simple imagen?', + img2Button : '¿Desea convertir la imagen en un botón de imagen?', + urlMissing : 'Debe indicar la URL de la imagen.', + validateBorder : 'El borde debe ser un número.', + validateHSpace : 'El espaciado horizontal debe ser un número.', + validateVSpace : 'El espaciado vertical debe ser un número.' + }, + + // Flash Dialog + flash : + { + properties : 'Propiedades de Flash', + propertiesTab : 'Propiedades', + title : 'Propiedades de Flash', + chkPlay : 'Autoejecución', + chkLoop : 'Repetir', + chkMenu : 'Activar Menú Flash', + chkFull : 'Permitir pantalla completa', + scale : 'Escala', + scaleAll : 'Mostrar todo', + scaleNoBorder : 'Sin Borde', + scaleFit : 'Ajustado', + access : 'Acceso de scripts', + accessAlways : 'Siempre', + accessSameDomain: 'Mismo dominio', + accessNever : 'Nunca', + alignAbsBottom : 'Abs inferior', + alignAbsMiddle : 'Abs centro', + alignBaseline : 'Línea de base', + alignTextTop : 'Tope del texto', + quality : 'Calidad', + qualityBest : 'La mejor', + qualityHigh : 'Alta', + qualityAutoHigh : 'Auto Alta', + qualityMedium : 'Media', + qualityAutoLow : 'Auto Baja', + qualityLow : 'Baja', + windowModeWindow: 'Ventana', + windowModeOpaque: 'Opaco', + windowModeTransparent : 'Transparente', + windowMode : 'WindowMode', + flashvars : 'Opciones', + bgcolor : 'Color de Fondo', + hSpace : 'Esp.Horiz', + vSpace : 'Esp.Vert', + validateSrc : 'Por favor escriba el vínculo URL', + validateHSpace : 'Esp.Horiz debe ser un número.', + validateVSpace : 'Esp.Vert debe ser un número.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Ortografía', + title : 'Comprobar ortografía', + notAvailable : 'Lo sentimos pero el servicio no está disponible.', + errorLoading : 'Error cargando la aplicación del servidor: %s.', + notInDic : 'No se encuentra en el Diccionario', + changeTo : 'Cambiar a', + btnIgnore : 'Ignorar', + btnIgnoreAll : 'Ignorar Todo', + btnReplace : 'Reemplazar', + btnReplaceAll : 'Reemplazar Todo', + btnUndo : 'Deshacer', + noSuggestions : '- No hay sugerencias -', + progress : 'Control de Ortografía en progreso...', + noMispell : 'Control finalizado: no se encontraron errores', + noChanges : 'Control finalizado: no se ha cambiado ninguna palabra', + oneChange : 'Control finalizado: se ha cambiado una palabra', + manyChanges : 'Control finalizado: se ha cambiado %1 palabras', + ieSpellDownload : 'Módulo de Control de Ortografía no instalado.\r\n¿Desea descargarlo ahora?' + }, + + smiley : + { + toolbar : 'Emoticonos', + title : 'Insertar un Emoticon', + options : 'Opciones de emoticonos' + }, + + elementsPath : + { + eleLabel : 'Ruta de los elementos', + eleTitle : '%1 elemento' + }, + + numberedlist : 'Numeración', + bulletedlist : 'Viñetas', + indent : 'Aumentar Sangría', + outdent : 'Disminuir Sangría', + + justify : + { + left : 'Alinear a Izquierda', + center : 'Centrar', + right : 'Alinear a Derecha', + block : 'Justificado' + }, + + blockquote : 'Cita', + + clipboard : + { + title : 'Pegar', + cutError : 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de cortado.\r\nPor favor use el teclado (Ctrl/Cmd+X).', + copyError : 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de copiado.\r\nPor favor use el teclado (Ctrl/Cmd+C).', + pasteMsg : 'Por favor pegue dentro del cuadro utilizando el teclado (<STRONG>Ctrl/Cmd+V</STRONG>);\r\nluego presione <STRONG>Aceptar</STRONG>.', + securityMsg : 'Debido a la configuración de seguridad de su navegador, el editor no tiene acceso al portapapeles.\r\nEs necesario que lo pegue de nuevo en esta ventana.', + pasteArea : 'Zona de pegado' + }, + + pastefromword : + { + confirmCleanup : 'El texto que desea parece provenir de Word.\r\n¿Desea depurarlo antes de pegarlo?', + toolbar : 'Pegar desde Word', + title : 'Pegar desde Word', + error : 'No ha sido posible limpiar los datos debido a un error interno' + }, + + pasteText : + { + button : 'Pegar como Texto Plano', + title : 'Pegar como Texto Plano' + }, + + templates : + { + button : 'Plantillas', + title : 'Contenido de Plantillas', + options : 'Opciones de plantillas', + insertOption : 'Reemplazar el contenido actual', + selectPromptMsg : 'Por favor selecciona la plantilla a abrir en el editor<br>(el contenido actual se perderá):', + emptyListMsg : '(No hay plantillas definidas)' + }, + + showBlocks : 'Mostrar bloques', + + stylesCombo : + { + label : 'Estilo', + panelTitle : 'Estilos para formatear', + panelTitle1 : 'Estilos de párrafo', + panelTitle2 : 'Estilos de carácter', + panelTitle3 : 'Estilos de objeto' + }, + + format : + { + label : 'Formato', + panelTitle : 'Formato', + + tag_p : 'Normal', + tag_pre : 'Con formato', + tag_address : 'Dirección', + tag_h1 : 'Encabezado 1', + tag_h2 : 'Encabezado 2', + tag_h3 : 'Encabezado 3', + tag_h4 : 'Encabezado 4', + tag_h5 : 'Encabezado 5', + tag_h6 : 'Encabezado 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Crear contenedor DIV', + toolbar : 'Crear contenedor DIV', + cssClassInputLabel : 'Clase de hoja de estilos', + styleSelectLabel : 'Estilo', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Codigo de idioma', + inlineStyleInputLabel : 'Estilo', + advisoryTitleInputLabel : 'Título', + langDirLabel : 'Orientación', + langDirLTRLabel : 'Izquierda a Derecha (LTR)', + langDirRTLLabel : 'Derecha a Izquierda (RTL)', + edit : 'Editar Div', + remove : 'Quitar Div' + }, + + iframe : + { + title : 'Propiedades de iframe', + toolbar : 'IFrame', + noUrl : 'Por favor, escriba la dirección del iframe', + scrolling : 'Activar barras de desplazamiento', + border : 'Mostrar borde del marco' + }, + + font : + { + label : 'Fuente', + voiceLabel : 'Fuente', + panelTitle : 'Fuente' + }, + + fontSize : + { + label : 'Tamaño', + voiceLabel : 'Tamaño de fuente', + panelTitle : 'Tamaño' + }, + + colorButton : + { + textColorTitle : 'Color de Texto', + bgColorTitle : 'Color de Fondo', + panelTitle : 'Colores', + auto : 'Automático', + more : 'Más Colores...' + }, + + colors : + { + '000' : 'Negro', + '800000' : 'Marrón oscuro', + '8B4513' : 'Marrón tierra', + '2F4F4F' : 'Pizarra Oscuro', + '008080' : 'Azul verdoso', + '000080' : 'Azul marino', + '4B0082' : 'Añil', + '696969' : 'Gris oscuro', + 'B22222' : 'Ladrillo', + 'A52A2A' : 'Marrón', + 'DAA520' : 'Oro oscuro', + '006400' : 'Verde oscuro', + '40E0D0' : 'Turquesa', + '0000CD' : 'Azul medio-oscuro', + '800080' : 'Púrpura', + '808080' : 'Gris', + 'F00' : 'Rojo', + 'FF8C00' : 'Naranja oscuro', + 'FFD700' : 'Oro', + '008000' : 'Verde', + '0FF' : 'Cian', + '00F' : 'Azul', + 'EE82EE' : 'Violeta', + 'A9A9A9' : 'Gris medio', + 'FFA07A' : 'Salmón claro', + 'FFA500' : 'Naranja', + 'FFFF00' : 'Amarillo', + '00FF00' : 'Lima', + 'AFEEEE' : 'Turquesa claro', + 'ADD8E6' : 'Azul claro', + 'DDA0DD' : 'Violeta claro', + 'D3D3D3' : 'Gris claro', + 'FFF0F5' : 'Lavanda rojizo', + 'FAEBD7' : 'Blanco antiguo', + 'FFFFE0' : 'Amarillo claro', + 'F0FFF0' : 'Miel', + 'F0FFFF' : 'Azul celeste', + 'F0F8FF' : 'Azul pálido', + 'E6E6FA' : 'Lavanda', + 'FFF' : 'Blanco' + }, + + scayt : + { + title : 'Comprobar Ortografía Mientras Escribe', + opera_title : 'No soportado en Opera', + enable : 'Activar Corrector', + disable : 'Desactivar Corrector', + about : 'Acerca de Corrector', + toggle : 'Cambiar Corrector', + options : 'Opciones', + langs : 'Idiomas', + moreSuggestions : 'Más sugerencias', + ignore : 'Ignorar', + ignoreAll : 'Ignorar Todas', + addWord : 'Añadir palabra', + emptyDic : 'El nombre del diccionario no puede estar en blanco.', + + optionsTab : 'Opciones', + allCaps : 'Omitir palabras en MAYÚSCULAS', + ignoreDomainNames : 'Omitir nombres de dominio', + mixedCase : 'Ignorar palabras con combinación de mayúsculas y minúsculas', + mixedWithDigits : 'Omitir palabras con números', + + languagesTab : 'Idiomas', + + dictionariesTab : 'Diccionarios', + dic_field_name : 'Nombre del diccionario', + dic_create : 'Crear', + dic_restore : 'Recuperar', + dic_delete : 'Borrar', + dic_rename : 'Renombrar', + dic_info : 'Inicialmente el Diccionario de usuario se guarda en una Cookie. Sin embargo, las cookies están limitadas en tamaño. Cuando el diccionario crece a un punto en el que no se puede guardar en una Cookie, el diccionario puede ser almacenado en nuestro servidor. Para almacenar su diccionario personalizado en nuestro servidor debe especificar un nombre para su diccionario. Si ya ha guardado un diccionaro, por favor, escriba su nombre y pulse el botón Recuperar', + + aboutTab : 'Acerca de' + }, + + about : + { + title : 'Acerca de CKEditor', + dlgTitle : 'Acerca de CKEditor', + help : 'Lea la $1 para resolver sus dudas.', + userGuide : 'Guía de usuario de CKEditor', + moreInfo : 'Para información de licencia, por favor visite nuestro sitio web:', + copy : 'Copyright © $1. Todos los derechos reservados.' + }, + + maximize : 'Maximizar', + minimize : 'Minimizar', + + fakeobjects : + { + anchor : 'Ancla', + flash : 'Animación flash', + iframe : 'IFrame', + hiddenfield : 'Campo oculto', + unknown : 'Objeto desconocido' + }, + + resize : 'Arrastre para redimensionar', + + colordialog : + { + title : 'Elegir color', + options : 'Opciones de colores', + highlight : 'Muestra', + selected : 'Elegido', + clear : 'Borrar' + }, + + toolbarCollapse : 'Contraer barra de herramientas', + toolbarExpand : 'Expandir barra de herramientas', + + toolbarGroups : + { + document : 'Documento', + clipboard : 'Portapapeles/Deshacer', + editing : 'Edición', + forms : 'Formularios', + basicstyles : 'Estilos básicos', + paragraph : 'Párrafo', + links : 'Enlaces', + insert : 'Insertar', + styles : 'Estilos', + colors : 'Colores', + tools : 'Herramientas' + }, + + bidi : + { + ltr : 'Dirección del texto de izquierda a derecha', + rtl : 'Dirección del texto de derecha a izquierda' + }, + + docprops : + { + label : 'Propiedades del documento', + title : 'Propiedades del documento', + design : 'Diseño', + meta : 'Meta Tags', + chooseColor : 'Elegir', + other : 'Otro...', + docTitle : 'Título de página', + charset : 'Codificación de caracteres', + charsetOther : 'Otra codificación de caracteres', + charsetASCII : 'ASCII', + charsetCE : 'Centro Europeo', + charsetCT : 'Chino Tradicional (Big5)', + charsetCR : 'Ruso', + charsetGR : 'Griego', + charsetJP : 'Japonés', + charsetKR : 'Koreano', + charsetTR : 'Turco', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Europeo occidental', + docType : 'Tipo de documento', + docTypeOther : 'Otro tipo de documento', + xhtmlDec : 'Incluir declaración XHTML', + bgColor : 'Color de fondo', + bgImage : 'Imagen de fondo', + bgFixed : 'Fondo fijo (no se desplaza)', + txtColor : 'Color del texto', + margin : 'Márgenes', + marginTop : 'Superior', + marginLeft : 'Izquierdo', + marginRight : 'Derecho', + marginBottom : 'Inferior', + metaKeywords : 'Palabras claves del documento separadas por coma (meta keywords)', + metaDescription : 'Descripción del documento', + metaAuthor : 'Autor', + metaCopyright : 'Copyright', + previewHtml : '<p>Este es un <strong>texto de ejemplo</strong>. Usted está usando <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/et.js b/htdocs/includes/ckeditor/_source/lang/et.js new file mode 100644 index 0000000000000000000000000000000000000000..859c70beeac79e93c12a13b715a01549b3729a21 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/et.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Estonian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['et'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Vormindatud teksti redaktor %1', + editorHelp : 'Abi saamiseks vajuta ALT 0', + + // ARIA descriptions. + toolbars : 'Redaktori tööriistaribad', + editor : 'Rikkalik tekstiredaktor', + + // Toolbar buttons without dialogs. + source : 'Lähtekood', + newPage : 'Uus leht', + save : 'Salvestamine', + preview : 'Eelvaade', + cut : 'Lõika', + copy : 'Kopeeri', + paste : 'Aseta', + print : 'Printimine', + underline : 'Allajoonitud', + bold : 'Paks', + italic : 'Kursiiv', + selectAll : 'Kõige valimine', + removeFormat : 'Vormingu eemaldamine', + strike : 'Läbijoonitud', + subscript : 'Allindeks', + superscript : 'Ülaindeks', + horizontalrule : 'Horisontaaljoone sisestamine', + pagebreak : 'Lehevahetuskoha sisestamine', + pagebreakAlt : 'Lehevahetuskoht', + unlink : 'Lingi eemaldamine', + undo : 'Tagasivõtmine', + redo : 'Toimingu kordamine', + + // Common messages and labels. + common : + { + browseServer : 'Serveri sirvimine', + url : 'URL', + protocol : 'Protokoll', + upload : 'Laadi üles', + uploadSubmit : 'Saada serverisse', + image : 'Pilt', + flash : 'Flash', + form : 'Vorm', + checkbox : 'Märkeruut', + radio : 'Raadionupp', + textField : 'Tekstilahter', + textarea : 'Tekstiala', + hiddenField : 'Varjatud lahter', + button : 'Nupp', + select : 'Valiklahter', + imageButton : 'Piltnupp', + notSet : '<määramata>', + id : 'ID', + name : 'Nimi', + langDir : 'Keele suund', + langDirLtr : 'Vasakult paremale (LTR)', + langDirRtl : 'Paremalt vasakule (RTL)', + langCode : 'Keele kood', + longDescr : 'Pikk kirjeldus URL', + cssClass : 'Stiilistiku klassid', + advisoryTitle : 'Soovituslik pealkiri', + cssStyle : 'Laad', + ok : 'OK', + cancel : 'Loobu', + close : 'Sulge', + preview : 'Eelvaade', + generalTab : 'Üldine', + advancedTab : 'Täpsemalt', + validateNumberFailed : 'See väärtus pole number.', + confirmNewPage : 'Kõik salvestamata muudatused lähevad kaotsi. Kas oled kindel, et tahad laadida uue lehe?', + confirmCancel : 'Mõned valikud on muudetud. Kas oled kindel, et tahad dialoogi sulgeda?', + options : 'Valikud', + target : 'Sihtkoht', + targetNew : 'Uus aken (_blank)', + targetTop : 'Kõige ülemine aken (_top)', + targetSelf : 'Sama aken (_self)', + targetParent : 'Vanemaken (_parent)', + langDirLTR : 'Vasakult paremale (LTR)', + langDirRTL : 'Paremalt vasakule (RTL)', + styles : 'Stiili', + cssClasses : 'Stiililehe klassid', + width : 'Laius', + height : 'Kõrgus', + align : 'Joondus', + alignLeft : 'Vasak', + alignRight : 'Paremale', + alignCenter : 'Kesk', + alignTop : 'Üles', + alignMiddle : 'Keskele', + alignBottom : 'Alla', + invalidHeight : 'Kõrgus peab olema number.', + invalidWidth : 'Laius peab olema number.', + invalidCssLength : '"%1" välja jaoks määratud väärtus peab olema positiivne täisarv CSS ühikuga (px, %, in, cm, mm, em, ex, pt või pc) või ilma.', + invalidHtmlLength : '"%1" välja jaoks määratud väärtus peab olema positiivne täisarv HTML ühikuga (px või %) või ilma.', + invalidInlineStyle : 'Reasisese stiili määrangud peavad koosnema paarisväärtustest (tuples), mis on semikoolonitega eraldatult järgnevas vormingus: "nimi : väärtus".', + cssLengthTooltip : 'Sisesta väärtus pikslites või number koos sobiva CSS-i ühikuga (px, %, in, cm, mm, em, ex, pt või pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, pole saadaval</span>' + }, + + contextmenu : + { + options : 'Kontekstimenüü valikud' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Erimärgi sisestamine', + title : 'Erimärgi valimine', + options : 'Erimärkide valikud' + }, + + // Link dialog. + link : + { + toolbar : 'Lingi lisamine/muutmine', + other : '<muu>', + menu : 'Muuda linki', + title : 'Link', + info : 'Lingi info', + target : 'Sihtkoht', + upload : 'Lae üles', + advanced : 'Täpsemalt', + type : 'Lingi liik', + toUrl : 'URL', + toAnchor : 'Ankur sellel lehel', + toEmail : 'E-post', + targetFrame : '<raam>', + targetPopup : '<hüpikaken>', + targetFrameName : 'Sihtmärk raami nimi', + targetPopupName : 'Hüpikakna nimi', + popupFeatures : 'Hüpikakna omadused', + popupResizable : 'Suurust saab muuta', + popupStatusBar : 'Olekuriba', + popupLocationBar: 'Aadressiriba', + popupToolbar : 'Tööriistariba', + popupMenuBar : 'Menüüriba', + popupFullScreen : 'Täisekraan (IE)', + popupScrollBars : 'Kerimisribad', + popupDependent : 'Sõltuv (Netscape)', + popupLeft : 'Vasak asukoht', + popupTop : 'Ülemine asukoht', + id : 'ID', + langDir : 'Keele suund', + langDirLTR : 'Vasakult paremale (LTR)', + langDirRTL : 'Paremalt vasakule (RTL)', + acccessKey : 'Juurdepääsu võti', + name : 'Nimi', + langCode : 'Keele suund', + tabIndex : 'Tab indeks', + advisoryTitle : 'Juhendav tiitel', + advisoryContentType : 'Juhendava sisu tüüp', + cssClasses : 'Stiilistiku klassid', + charset : 'Lingitud ressursi märgistik', + styles : 'Laad', + rel : 'Suhe', + selectAnchor : 'Vali ankur', + anchorName : 'Ankru nime järgi', + anchorId : 'Elemendi id järgi', + emailAddress : 'E-posti aadress', + emailSubject : 'Sõnumi teema', + emailBody : 'Sõnumi tekst', + noAnchors : '(Selles dokumendis pole ankruid)', + noUrl : 'Palun kirjuta lingi URL', + noEmail : 'Palun kirjuta e-posti aadress' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Ankru sisestamine/muutmine', + menu : 'Ankru omadused', + title : 'Ankru omadused', + name : 'Ankru nimi', + errorName : 'Palun sisesta ankru nimi', + remove : 'Eemalda ankur' + }, + + // List style dialog + list: + { + numberedTitle : 'Numberloendi omadused', + bulletedTitle : 'Punktloendi omadused', + type : 'Liik', + start : 'Algus', + validateStartNumber :'Loendi algusnumber peab olema täisarv.', + circle : 'Ring', + disc : 'Täpp', + square : 'Ruut', + none : 'Puudub', + notset : '<pole määratud>', + armenian : 'Armeenia numbrid', + georgian : 'Gruusia numbrid (an, ban, gan, jne)', + lowerRoman : 'Väiksed rooma numbrid (i, ii, iii, iv, v, jne)', + upperRoman : 'Suured rooma numbrid (I, II, III, IV, V, jne)', + lowerAlpha : 'Väiketähed (a, b, c, d, e, jne)', + upperAlpha : 'Suurtähed (A, B, C, D, E, jne)', + lowerGreek : 'Kreeka väiketähed (alpha, beta, gamma, jne)', + decimal : 'Numbrid (1, 2, 3, jne)', + decimalLeadingZero : 'Numbrid algusnulliga (01, 02, 03, jne)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Otsimine ja asendamine', + find : 'Otsi', + replace : 'Asenda', + findWhat : 'Otsitav:', + replaceWith : 'Asendus:', + notFoundMsg : 'Otsitud teksti ei leitud.', + findOptions : 'Otsingu valikud', + matchCase : 'Suur- ja väiketähtede eristamine', + matchWord : 'Ainult terved sõnad', + matchCyclic : 'Jätkatakse algusest', + replaceAll : 'Asenda kõik', + replaceSuccessMsg : '%1 vastet asendati.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabel', + title : 'Tabeli omadused', + menu : 'Tabeli omadused', + deleteTable : 'Kustuta tabel', + rows : 'Read', + columns : 'Veerud', + border : 'Joone suurus', + widthPx : 'pikslit', + widthPc : 'protsenti', + widthUnit : 'laiuse ühik', + cellSpace : 'Lahtri vahe', + cellPad : 'Lahtri täidis', + caption : 'Tabeli tiitel', + summary : 'Kokkuvõte', + headers : 'Päised', + headersNone : 'Puudub', + headersColumn : 'Esimene tulp', + headersRow : 'Esimene rida', + headersBoth : 'Mõlemad', + invalidRows : 'Ridade arv peab olema nullist suurem.', + invalidCols : 'Tulpade arv peab olema nullist suurem.', + invalidBorder : 'Äärise suurus peab olema number.', + invalidWidth : 'Tabeli laius peab olema number.', + invalidHeight : 'Tabeli kõrgus peab olema number.', + invalidCellSpacing : 'Lahtrite vahe peab olema positiivne arv.', + invalidCellPadding : 'Lahtrite polsterdus (padding) peab olema positiivne arv.', + + cell : + { + menu : 'Lahter', + insertBefore : 'Sisesta lahter enne', + insertAfter : 'Sisesta lahter peale', + deleteCell : 'Eemalda lahtrid', + merge : 'Ühenda lahtrid', + mergeRight : 'Ühenda paremale', + mergeDown : 'Ühenda alla', + splitHorizontal : 'Poolita lahter horisontaalselt', + splitVertical : 'Poolita lahter vertikaalselt', + title : 'Lahtri omadused', + cellType : 'Lahtri liik', + rowSpan : 'Ridade vahe', + colSpan : 'Tulpade vahe', + wordWrap : 'Sõnade murdmine', + hAlign : 'Horisontaalne joondus', + vAlign : 'Vertikaalne joondus', + alignBaseline : 'Baasjoon', + bgColor : 'Tausta värv', + borderColor : 'Äärise värv', + data : 'Andmed', + header : 'Päis', + yes : 'Jah', + no : 'Ei', + invalidWidth : 'Lahtri laius peab olema number.', + invalidHeight : 'Lahtri kõrgus peab olema number.', + invalidRowSpan : 'Ridade vahe peab olema täisarv.', + invalidColSpan : 'Tulpade vahe peab olema täisarv.', + chooseColor : 'Vali' + }, + + row : + { + menu : 'Rida', + insertBefore : 'Sisesta rida enne', + insertAfter : 'Sisesta rida peale', + deleteRow : 'Eemalda read' + }, + + column : + { + menu : 'Veerg', + insertBefore : 'Sisesta veerg enne', + insertAfter : 'Sisesta veerg peale', + deleteColumn : 'Eemalda veerud' + } + }, + + // Button Dialog. + button : + { + title : 'Nupu omadused', + text : 'Tekst (väärtus)', + type : 'Liik', + typeBtn : 'Nupp', + typeSbm : 'Saada', + typeRst : 'Lähtesta' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Märkeruudu omadused', + radioTitle : 'Raadionupu omadused', + value : 'Väärtus', + selected : 'Märgitud' + }, + + // Form Dialog. + form : + { + title : 'Vormi omadused', + menu : 'Vormi omadused', + action : 'Toiming', + method : 'Meetod', + encoding : 'Kodeering' + }, + + // Select Field Dialog. + select : + { + title : 'Valiklahtri omadused', + selectInfo : 'Info', + opAvail : 'Võimalikud valikud:', + value : 'Väärtus', + size : 'Suurus', + lines : 'ridu', + chkMulti : 'Võimalik mitu valikut', + opText : 'Tekst', + opValue : 'Väärtus', + btnAdd : 'Lisa', + btnModify : 'Muuda', + btnUp : 'Üles', + btnDown : 'Alla', + btnSetValue : 'Määra vaikimisi', + btnDelete : 'Kustuta' + }, + + // Textarea Dialog. + textarea : + { + title : 'Tekstiala omadused', + cols : 'Veerge', + rows : 'Ridu' + }, + + // Text Field Dialog. + textfield : + { + title : 'Tekstilahtri omadused', + name : 'Nimi', + value : 'Väärtus', + charWidth : 'Laius (tähemärkides)', + maxChars : 'Maksimaalselt tähemärke', + type : 'Liik', + typeText : 'Tekst', + typePass : 'Parool' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Varjatud lahtri omadused', + name : 'Nimi', + value : 'Väärtus' + }, + + // Image Dialog. + image : + { + title : 'Pildi omadused', + titleButton : 'Piltnupu omadused', + menu : 'Pildi omadused', + infoTab : 'Pildi info', + btnUpload : 'Saada serverisse', + upload : 'Lae üles', + alt : 'Alternatiivne tekst', + lockRatio : 'Lukusta kuvasuhe', + resetSize : 'Lähtesta suurus', + border : 'Joon', + hSpace : 'H. vaheruum', + vSpace : 'V. vaheruum', + alertUrl : 'Palun kirjuta pildi URL', + linkTab : 'Link', + button2Img : 'Kas tahad teisendada valitud pildiga nupu tavaliseks pildiks?', + img2Button : 'Kas tahad teisendada valitud tavalise pildi pildiga nupuks?', + urlMissing : 'Pildi lähte-URL on puudu.', + validateBorder : 'Äärise laius peab olema täisarv.', + validateHSpace : 'Horisontaalne vaheruum peab olema täisarv.', + validateVSpace : 'Vertikaalne vaheruum peab olema täisarv.' + }, + + // Flash Dialog + flash : + { + properties : 'Flashi omadused', + propertiesTab : 'Omadused', + title : 'Flashi omadused', + chkPlay : 'Automaatne start ', + chkLoop : 'Korduv', + chkMenu : 'Flashi menüü lubatud', + chkFull : 'Täisekraan lubatud', + scale : 'Mastaap', + scaleAll : 'Näidatakse kõike', + scaleNoBorder : 'Äärist ei ole', + scaleFit : 'Täpne sobivus', + access : 'Skriptide ligipääs', + accessAlways : 'Kõigile', + accessSameDomain: 'Samalt domeenilt', + accessNever : 'Mitte ühelegi', + alignAbsBottom : 'Abs alla', + alignAbsMiddle : 'Abs keskele', + alignBaseline : 'Baasjoonele', + alignTextTop : 'Tekstist üles', + quality : 'Kvaliteet', + qualityBest : 'Parim', + qualityHigh : 'Kõrge', + qualityAutoHigh : 'Automaatne kõrge', + qualityMedium : 'Keskmine', + qualityAutoLow : 'Automaatne madal', + qualityLow : 'Madal', + windowModeWindow: 'Aken', + windowModeOpaque: 'Läbipaistmatu', + windowModeTransparent : 'Läbipaistev', + windowMode : 'Akna režiim', + flashvars : 'Flashi muutujad', + bgcolor : 'Tausta värv', + hSpace : 'H. vaheruum', + vSpace : 'V. vaheruum', + validateSrc : 'Palun kirjuta lingi URL', + validateHSpace : 'H. vaheruum peab olema number.', + validateVSpace : 'V. vaheruum peab olema number.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Õigekirjakontroll', + title : 'Õigekirjakontroll', + notAvailable : 'Kahjuks ei ole teenus praegu saadaval.', + errorLoading : 'Viga rakenduse teenushosti laadimisel: %s.', + notInDic : 'Puudub sõnastikust', + changeTo : 'Muuda', + btnIgnore : 'Ignoreeri', + btnIgnoreAll : 'Ignoreeri kõiki', + btnReplace : 'Asenda', + btnReplaceAll : 'Asenda kõik', + btnUndo : 'Võta tagasi', + noSuggestions : '- Soovitused puuduvad -', + progress : 'Toimub õigekirja kontroll...', + noMispell : 'Õigekirja kontroll sooritatud: õigekirjuvigu ei leitud', + noChanges : 'Õigekirja kontroll sooritatud: ühtegi sõna ei muudetud', + oneChange : 'Õigekirja kontroll sooritatud: üks sõna muudeti', + manyChanges : 'Õigekirja kontroll sooritatud: %1 sõna muudetud', + ieSpellDownload : 'Õigekirja kontrollija ei ole paigaldatud. Soovid sa selle alla laadida?' + }, + + smiley : + { + toolbar : 'Emotikon', + title : 'Sisesta emotikon', + options : 'Emotikonide valikud' + }, + + elementsPath : + { + eleLabel : 'Elementide asukoht', + eleTitle : '%1 element' + }, + + numberedlist : 'Numberloend', + bulletedlist : 'Punktloend', + indent : 'Taande suurendamine', + outdent : 'Taande vähendamine', + + justify : + { + left : 'Vasakjoondus', + center : 'Keskjoondus', + right : 'Paremjoondus', + block : 'Rööpjoondus' + }, + + blockquote : 'Blokktsitaat', + + clipboard : + { + title : 'Asetamine', + cutError : 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt lõigata. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+X).', + copyError : 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt kopeerida. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+C).', + pasteMsg : 'Palun aseta tekst järgnevasse kasti kasutades klaviatuuri klahvikombinatsiooni (<STRONG>Ctrl/Cmd+V</STRONG>) ja vajuta seejärel <STRONG>OK</STRONG>.', + securityMsg : 'Sinu veebisirvija turvaseadete tõttu ei oma redaktor otsest ligipääsu lõikelaua andmetele. Sa pead asetama need uuesti siia aknasse.', + pasteArea : 'Asetamise ala' + }, + + pastefromword : + { + confirmCleanup : 'Tekst, mida tahad asetada näib pärinevat Wordist. Kas tahad selle enne asetamist puhastada?', + toolbar : 'Asetamine Wordist', + title : 'Asetamine Wordist', + error : 'Asetatud andmete puhastamine ei olnud sisemise vea tõttu võimalik' + }, + + pasteText : + { + button : 'Asetamine tavalise tekstina', + title : 'Asetamine tavalise tekstina' + }, + + templates : + { + button : 'Mall', + title : 'Sisumallid', + options : 'Malli valikud', + insertOption : 'Praegune sisu asendatakse', + selectPromptMsg : 'Palun vali mall, mis avada redaktoris<br />(praegune sisu läheb kaotsi):', + emptyListMsg : '(Ühtegi malli ei ole defineeritud)' + }, + + showBlocks : 'Blokkide näitamine', + + stylesCombo : + { + label : 'Stiil', + panelTitle : 'Vormindusstiilid', + panelTitle1 : 'Blokkstiilid', + panelTitle2 : 'Reasisesed stiilid', + panelTitle3 : 'Objektistiilid' + }, + + format : + { + label : 'Vorming', + panelTitle : 'Vorming', + + tag_p : 'Tavaline', + tag_pre : 'Vormindatud', + tag_address : 'Aadress', + tag_h1 : 'Pealkiri 1', + tag_h2 : 'Pealkiri 2', + tag_h3 : 'Pealkiri 3', + tag_h4 : 'Pealkiri 4', + tag_h5 : 'Pealkiri 5', + tag_h6 : 'Pealkiri 6', + tag_div : 'Tavaline (DIV)' + }, + + div : + { + title : 'Div-konteineri loomine', + toolbar : 'Div-konteineri loomine', + cssClassInputLabel : 'Stiililehe klassid', + styleSelectLabel : 'Stiil', + IdInputLabel : 'ID', + languageCodeInputLabel : ' Keelekood', + inlineStyleInputLabel : 'Reasisene stiil', + advisoryTitleInputLabel : 'Soovitatav pealkiri', + langDirLabel : 'Keele suund', + langDirLTRLabel : 'Vasakult paremale (LTR)', + langDirRTLLabel : 'Paremalt vasakule (RTL)', + edit : 'Muuda Div', + remove : 'Eemalda Div' + }, + + iframe : + { + title : 'IFrame omadused', + toolbar : 'IFrame', + noUrl : 'Vali iframe URLi liik', + scrolling : 'Kerimisribade lubamine', + border : 'Raami äärise näitamine' + }, + + font : + { + label : 'Kiri', + voiceLabel : 'Kiri', + panelTitle : 'Kiri' + }, + + fontSize : + { + label : 'Suurus', + voiceLabel : 'Kirja suurus', + panelTitle : 'Suurus' + }, + + colorButton : + { + textColorTitle : 'Teksti värv', + bgColorTitle : 'Tausta värv', + panelTitle : 'Värvid', + auto : 'Automaatne', + more : 'Rohkem värve...' + }, + + colors : + { + '000' : 'Must', + '800000' : 'Kastanpruun', + '8B4513' : 'Sadulapruun', + '2F4F4F' : 'Tume paehall', + '008080' : 'Sinakasroheline', + '000080' : 'Meresinine', + '4B0082' : 'Indigosinine', + '696969' : 'Tumehall', + 'B22222' : 'Šamottkivi', + 'A52A2A' : 'Pruun', + 'DAA520' : 'Kuldkollane', + '006400' : 'Tumeroheline', + '40E0D0' : 'Türkiissinine', + '0000CD' : 'Keskmine sinine', + '800080' : 'Lilla', + '808080' : 'Hall', + 'F00' : 'Punanae', + 'FF8C00' : 'Tumeoranž', + 'FFD700' : 'Kuldne', + '008000' : 'Roheline', + '0FF' : 'Tsüaniidsinine', + '00F' : 'Sinine', + 'EE82EE' : 'Violetne', + 'A9A9A9' : 'Tuhm hall', + 'FFA07A' : 'Hele lõhe', + 'FFA500' : 'Oranž', + 'FFFF00' : 'Kollane', + '00FF00' : 'Lubja hall', + 'AFEEEE' : 'Kahvatu türkiis', + 'ADD8E6' : 'Helesinine', + 'DDA0DD' : 'Ploomililla', + 'D3D3D3' : 'Helehall', + 'FFF0F5' : 'Lavendlipunane', + 'FAEBD7' : 'Antiikvalge', + 'FFFFE0' : 'Helekollane', + 'F0FFF0' : 'Meloniroheline', + 'F0FFFF' : 'Taevasinine', + 'F0F8FF' : 'Beebisinine', + 'E6E6FA' : 'Lavendel', + 'FFF' : 'Valge' + }, + + scayt : + { + title : 'Õigekirjakontroll kirjutamise ajal', + opera_title : 'Operas pole toetatud', + enable : 'SCAYT lubatud', + disable : 'SCAYT keelatud', + about : 'SCAYT-ist lähemalt', + toggle : 'SCAYT sisse/välja lülitamine', + options : 'Valikud', + langs : 'Keeled', + moreSuggestions : 'Veel soovitusi', + ignore : 'Eira', + ignoreAll : 'Eira kõiki', + addWord : 'Lisa sõna', + emptyDic : 'Sõnaraamatu nimi ei tohi olla tühi.', + + optionsTab : 'Valikud', + allCaps : 'Läbivate suurtähtedega sõnade eiramine', + ignoreDomainNames : 'Domeeninimede eiramine', + mixedCase : 'Tavapäratu tõstuga sõnade eiramine', + mixedWithDigits : 'Numbreid sisaldavate sõnade eiramine', + + languagesTab : 'Keeled', + + dictionariesTab : 'Sõnaraamatud', + dic_field_name : 'Sõnaraamatu nimi', + dic_create : 'Loo', + dic_restore : 'Taasta', + dic_delete : 'Kustuta', + dic_rename : 'Nimeta ümber', + dic_info : 'Alguses säilitatakse kasutaja sõnaraamatut küpsises. Küpsise suurus on piiratud. Pärast sõnaraamatu kasvamist nii suureks, et see küpsisesse ei mahu, võib sõnaraamatut hoida meie serveris. Oma isikliku sõnaraamatu hoidmiseks meie serveris pead andma sellele nime. Kui sa juba oled sõnaraamatu salvestanud, sisesta selle nimi ja klõpsa taastamise nupule.', + + aboutTab : 'Lähemalt' + }, + + about : + { + title : 'CKEditorist', + dlgTitle : 'CKEditorist', + help : 'Abi jaoks vaata $1.', + userGuide : 'CKEditori kasutusjuhendit', + moreInfo : 'Litsentsi andmed leiab meie veebilehelt:', + copy : 'Copyright © $1. Kõik õigused kaitstud.' + }, + + maximize : 'Maksimeerimine', + minimize : 'Minimeerimine', + + fakeobjects : + { + anchor : 'Ankur', + flash : 'Flashi animatsioon', + iframe : 'IFrame', + hiddenfield : 'Varjatud väli', + unknown : 'Tundmatu objekt' + }, + + resize : 'Suuruse muutmiseks lohista', + + colordialog : + { + title : 'Värvi valimine', + options : 'Värvi valikud', + highlight : 'Näidis', + selected : 'Valitud värv', + clear : 'Eemalda' + }, + + toolbarCollapse : 'Tööriistariba peitmine', + toolbarExpand : 'Tööriistariba näitamine', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Lõikelaud/tagasivõtmine', + editing : 'Muutmine', + forms : 'Vormid', + basicstyles : 'Põhistiilid', + paragraph : 'Lõik', + links : 'Lingid', + insert : 'Sisesta', + styles : 'Stiilid', + colors : 'Värvid', + tools : 'Tööriistad' + }, + + bidi : + { + ltr : 'Teksti suund vasakult paremale', + rtl : 'Teksti suund paremalt vasakule' + }, + + docprops : + { + label : 'Dokumendi omadused', + title : 'Dokumendi omadused', + design : 'Disain', + meta : 'Meta andmed', + chooseColor : 'Vali', + other : '<muu>', + docTitle : 'Lehekülje tiitel', + charset : 'Märgistiku kodeering', + charsetOther : 'Ülejäänud märgistike kodeeringud', + charsetASCII : 'ASCII', + charsetCE : 'Kesk-Euroopa', + charsetCT : 'Hiina traditsiooniline (Big5)', + charsetCR : 'Kirillisa', + charsetGR : 'Kreeka', + charsetJP : 'Jaapani', + charsetKR : 'Korea', + charsetTR : 'Türgi', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Lääne-Euroopa', + docType : 'Dokumendi tüüppäis', + docTypeOther : 'Teised dokumendi tüüppäised', + xhtmlDec : 'Arva kaasa XHTML deklaratsioonid', + bgColor : 'Taustavärv', + bgImage : 'Taustapildi URL', + bgFixed : 'Mittekeritav tagataust', + txtColor : 'Teksti värv', + margin : 'Lehekülje äärised', + marginTop : 'Ülaserv', + marginLeft : 'Vasakserv', + marginRight : 'Paremserv', + marginBottom : 'Alaserv', + metaKeywords : 'Dokumendi võtmesõnad (eraldatud komadega)', + metaDescription : 'Dokumendi kirjeldus', + metaAuthor : 'Autor', + metaCopyright : 'Autoriõigus', + previewHtml : '<p>See on <strong>näidistekst</strong>. Sa kasutad <a href="javascript:void(0)">CKEditori</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/eu.js b/htdocs/includes/ckeditor/_source/lang/eu.js new file mode 100644 index 0000000000000000000000000000000000000000..cbb152275a9a9d46c83e040cd323b3676ee47865 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/eu.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Basque language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['eu'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'HTML Iturburua', + newPage : 'Orrialde Berria', + save : 'Gorde', + preview : 'Aurrebista', + cut : 'Ebaki', + copy : 'Kopiatu', + paste : 'Itsatsi', + print : 'Inprimatu', + underline : 'Azpimarratu', + bold : 'Lodia', + italic : 'Etzana', + selectAll : 'Hautatu dena', + removeFormat : 'Kendu Formatua', + strike : 'Marratua', + subscript : 'Azpi-indize', + superscript : 'Goi-indize', + horizontalrule : 'Txertatu Marra Horizontala', + pagebreak : 'Txertatu Orrialde-jauzia', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Kendu Esteka', + undo : 'Desegin', + redo : 'Berregin', + + // Common messages and labels. + common : + { + browseServer : 'Zerbitzaria arakatu', + url : 'URL', + protocol : 'Protokoloa', + upload : 'Gora kargatu', + uploadSubmit : 'Zerbitzarira bidalia', + image : 'Irudia', + flash : 'Flasha', + form : 'Formularioa', + checkbox : 'Kontrol-laukia', + radio : 'Aukera-botoia', + textField : 'Testu Eremua', + textarea : 'Testu-area', + hiddenField : 'Ezkutuko Eremua', + button : 'Botoia', + select : 'Hautespen Eremua', + imageButton : 'Irudi Botoia', + notSet : '<Ezarri gabe>', + id : 'Id', + name : 'Izena', + langDir : 'Hizkuntzaren Norabidea', + langDirLtr : 'Ezkerretik Eskumara(LTR)', + langDirRtl : 'Eskumatik Ezkerrera (RTL)', + langCode : 'Hizkuntza Kodea', + longDescr : 'URL Deskribapen Luzea', + cssClass : 'Estilo-orriko Klaseak', + advisoryTitle : 'Izenburua', + cssStyle : 'Estiloa', + ok : 'Ados', + cancel : 'Utzi', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'Orokorra', + advancedTab : 'Aurreratua', + validateNumberFailed : 'Balio hau ez da zenbaki bat.', + confirmNewPage : 'Eduki honetan gorde gabe dauden aldaketak galduko dira. Ziur zaude orri berri bat kargatu nahi duzula?', + confirmCancel : 'Aukera batzuk aldatu egin dira. Ziur zaude elkarrizketa-koadroa itxi nahi duzula?', + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Zabalera', + height : 'Altuera', + align : 'Lerrokatu', + alignLeft : 'Ezkerrera', + alignRight : 'Eskuman', + alignCenter : 'Erdian', + alignTop : 'Goian', + alignMiddle : 'Erdian', + alignBottom : 'Behean', + invalidHeight : 'Altuera zenbaki bat izan behar da.', + invalidWidth : 'Zabalera zenbaki bat izan behar da.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, erabilezina</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Txertatu Karaktere Berezia', + title : 'Karaktere Berezia Aukeratu', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Txertatu/Editatu Esteka', + other : '<other>', // MISSING + menu : 'Aldatu Esteka', + title : 'Esteka', + info : 'Estekaren Informazioa', + target : 'Target (Helburua)', + upload : 'Gora kargatu', + advanced : 'Aurreratua', + type : 'Esteka Mota', + toUrl : 'URL', // MISSING + toAnchor : 'Aingura orrialde honetan', + toEmail : 'ePosta', + targetFrame : '<marko>', + targetPopup : '<popup leihoa>', + targetFrameName : 'Marko Helburuaren Izena', + targetPopupName : 'Popup Leihoaren Izena', + popupFeatures : 'Popup Leihoaren Ezaugarriak', + popupResizable : 'Tamaina Aldakorra', + popupStatusBar : 'Egoera Barra', + popupLocationBar: 'Kokaleku Barra', + popupToolbar : 'Tresna Barra', + popupMenuBar : 'Menu Barra', + popupFullScreen : 'Pantaila Osoa (IE)', + popupScrollBars : 'Korritze Barrak', + popupDependent : 'Menpekoa (Netscape)', + popupLeft : 'Ezkerreko Posizioa', + popupTop : 'Goiko Posizioa', + id : 'Id', + langDir : 'Hizkuntzaren Norabidea', + langDirLTR : 'Ezkerretik Eskumara(LTR)', + langDirRTL : 'Eskumatik Ezkerrera (RTL)', + acccessKey : 'Sarbide-gakoa', + name : 'Izena', + langCode : 'Hizkuntzaren Norabidea', + tabIndex : 'Tabulazio Indizea', + advisoryTitle : 'Izenburua', + advisoryContentType : 'Eduki Mota (Content Type)', + cssClasses : 'Estilo-orriko Klaseak', + charset : 'Estekatutako Karaktere Multzoa', + styles : 'Estiloa', + rel : 'Relationship', // MISSING + selectAnchor : 'Aingura bat hautatu', + anchorName : 'Aingura izenagatik', + anchorId : 'Elementuaren ID-gatik', + emailAddress : 'ePosta Helbidea', + emailSubject : 'Mezuaren Gaia', + emailBody : 'Mezuaren Gorputza', + noAnchors : '(Ez daude aingurak eskuragarri dokumentuan)', + noUrl : 'Mesedez URL esteka idatzi', + noEmail : 'Mesedez ePosta helbidea idatzi' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Aingura', + menu : 'Ainguraren Ezaugarriak', + title : 'Ainguraren Ezaugarriak', + name : 'Ainguraren Izena', + errorName : 'Idatzi ainguraren izena', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Bilatu eta Ordeztu', + find : 'Bilatu', + replace : 'Ordezkatu', + findWhat : 'Zer bilatu:', + replaceWith : 'Zerekin ordeztu:', + notFoundMsg : 'Idatzitako testua ez da topatu.', + findOptions : 'Find Options', // MISSING + matchCase : 'Maiuskula/minuskula', + matchWord : 'Esaldi osoa bilatu', + matchCyclic : 'Bilaketa ziklikoa', + replaceAll : 'Ordeztu Guztiak', + replaceSuccessMsg : 'Zenbat aldiz ordeztua: %1' + }, + + // Table Dialog + table : + { + toolbar : 'Taula', + title : 'Taularen Ezaugarriak', + menu : 'Taularen Ezaugarriak', + deleteTable : 'Ezabatu Taula', + rows : 'Lerroak', + columns : 'Zutabeak', + border : 'Ertzaren Zabalera', + widthPx : 'pixel', + widthPc : 'ehuneko', + widthUnit : 'width unit', // MISSING + cellSpace : 'Gelaxka arteko tartea', + cellPad : 'Gelaxken betegarria', + caption : 'Epigrafea', + summary : 'Laburpena', + headers : 'Goiburuak', + headersNone : 'Bat ere ez', + headersColumn : 'Lehen zutabea', + headersRow : 'Lehen lerroa', + headersBoth : 'Biak', + invalidRows : 'Lerro kopurua 0 baino handiagoa den zenbakia izan behar da.', + invalidCols : 'Zutabe kopurua 0 baino handiagoa den zenbakia izan behar da.', + invalidBorder : 'Ertzaren tamaina zenbaki bat izan behar da.', + invalidWidth : 'Taularen zabalera zenbaki bat izan behar da.', + invalidHeight : 'Taularen altuera zenbaki bat izan behar da.', + invalidCellSpacing : 'Gelaxka arteko tartea zenbaki bat izan behar da.', + invalidCellPadding : 'Gelaxken betegarria zenbaki bat izan behar da.', + + cell : + { + menu : 'Gelaxka', + insertBefore : 'Txertatu Gelaxka Aurretik', + insertAfter : 'Txertatu Gelaxka Ostean', + deleteCell : 'Kendu Gelaxkak', + merge : 'Batu Gelaxkak', + mergeRight : 'Elkartu Eskumara', + mergeDown : 'Elkartu Behera', + splitHorizontal : 'Banatu Gelaxkak Horizontalki', + splitVertical : 'Banatu Gelaxkak Bertikalki', + title : 'Gelaxken Ezaugarriak', + cellType : 'Gelaxka Mota', + rowSpan : 'Hedatutako Lerroak', + colSpan : 'Hedatutako Zutabeak', + wordWrap : 'Itzulbira', + hAlign : 'Lerrokatze Horizontala', + vAlign : 'Lerrokatze Bertikala', + alignBaseline : 'Oinarri-lerroan', + bgColor : 'Fondoaren Kolorea', + borderColor : 'Ertzaren Kolorea', + data : 'Data', + header : 'Goiburua', + yes : 'Bai', + no : 'Ez', + invalidWidth : 'Gelaxkaren zabalera zenbaki bat izan behar da.', + invalidHeight : 'Gelaxkaren altuera zenbaki bat izan behar da.', + invalidRowSpan : 'Lerroen hedapena zenbaki osoa izan behar da.', + invalidColSpan : 'Zutabeen hedapena zenbaki osoa izan behar da.', + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Lerroa', + insertBefore : 'Txertatu Lerroa Aurretik', + insertAfter : 'Txertatu Lerroa Ostean', + deleteRow : 'Ezabatu Lerroak' + }, + + column : + { + menu : 'Zutabea', + insertBefore : 'Txertatu Zutabea Aurretik', + insertAfter : 'Txertatu Zutabea Ostean', + deleteColumn : 'Ezabatu Zutabeak' + } + }, + + // Button Dialog. + button : + { + title : 'Botoiaren Ezaugarriak', + text : 'Testua (Balorea)', + type : 'Mota', + typeBtn : 'Botoia', + typeSbm : 'Bidali', + typeRst : 'Garbitu' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Kontrol-laukiko Ezaugarriak', + radioTitle : 'Aukera-botoiaren Ezaugarriak', + value : 'Balorea', + selected : 'Hautatuta' + }, + + // Form Dialog. + form : + { + title : 'Formularioaren Ezaugarriak', + menu : 'Formularioaren Ezaugarriak', + action : 'Ekintza', + method : 'Metodoa', + encoding : 'Kodeketa' + }, + + // Select Field Dialog. + select : + { + title : 'Hautespen Eremuaren Ezaugarriak', + selectInfo : 'Informazioa', + opAvail : 'Aukera Eskuragarriak', + value : 'Balorea', + size : 'Tamaina', + lines : 'lerro kopurura', + chkMulti : 'Hautaketa anitzak baimendu', + opText : 'Testua', + opValue : 'Balorea', + btnAdd : 'Gehitu', + btnModify : 'Aldatu', + btnUp : 'Gora', + btnDown : 'Behera', + btnSetValue : 'Aukeratutako balorea ezarri', + btnDelete : 'Ezabatu' + }, + + // Textarea Dialog. + textarea : + { + title : 'Testu-arearen Ezaugarriak', + cols : 'Zutabeak', + rows : 'Lerroak' + }, + + // Text Field Dialog. + textfield : + { + title : 'Testu Eremuaren Ezaugarriak', + name : 'Izena', + value : 'Balorea', + charWidth : 'Zabalera', + maxChars : 'Zenbat karaktere gehienez', + type : 'Mota', + typeText : 'Testua', + typePass : 'Pasahitza' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Ezkutuko Eremuaren Ezaugarriak', + name : 'Izena', + value : 'Balorea' + }, + + // Image Dialog. + image : + { + title : 'Irudi Ezaugarriak', + titleButton : 'Irudi Botoiaren Ezaugarriak', + menu : 'Irudi Ezaugarriak', + infoTab : 'Irudi informazioa', + btnUpload : 'Zerbitzarira bidalia', + upload : 'Gora Kargatu', + alt : 'Ordezko Testua', + lockRatio : 'Erlazioa Blokeatu', + resetSize : 'Tamaina Berrezarri', + border : 'Ertza', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Mesedez Irudiaren URLa idatzi', + linkTab : 'Esteka', + button2Img : 'Aukeratutako irudi botoia, irudi normal batean eraldatu nahi duzu?', + img2Button : 'Aukeratutako irudia, irudi botoi batean eraldatu nahi duzu?', + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flasharen Ezaugarriak', + propertiesTab : 'Ezaugarriak', + title : 'Flasharen Ezaugarriak', + chkPlay : 'Automatikoki Erreproduzitu', + chkLoop : 'Begizta', + chkMenu : 'Flasharen Menua Gaitu', + chkFull : 'Onartu Pantaila osoa', + scale : 'Eskalatu', + scaleAll : 'Dena erakutsi', + scaleNoBorder : 'Ertzik gabe', + scaleFit : 'Doitu', + access : 'Scriptak baimendu', + accessAlways : 'Beti', + accessSameDomain: 'Domeinu berdinekoak', + accessNever : 'Inoiz ere ez', + alignAbsBottom : 'Abs Behean', + alignAbsMiddle : 'Abs Erdian', + alignBaseline : 'Oinan', + alignTextTop : 'Testua Goian', + quality : 'Kalitatea', + qualityBest : 'Hoberena', + qualityHigh : 'Altua', + qualityAutoHigh : 'Auto Altua', + qualityMedium : 'Ertaina', + qualityAutoLow : 'Auto Baxua', + qualityLow : 'Baxua', + windowModeWindow: 'Leihoa', + windowModeOpaque: 'Opakoa', + windowModeTransparent : 'Gardena', + windowMode : 'Leihoaren modua', + flashvars : 'Flash Aldagaiak', + bgcolor : 'Atzeko kolorea', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Mesedez URL esteka idatzi', + validateHSpace : 'HSpace zenbaki bat izan behar da.', + validateVSpace : 'VSpace zenbaki bat izan behar da.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Ortografia', + title : 'Ortografia zuzenketa', + notAvailable : 'Barkatu baina momentu honetan zerbitzua ez dago erabilgarri.', + errorLoading : 'Errorea gertatu da aplikazioa zerbitzaritik kargatzean: %s.', + notInDic : 'Ez dago hiztegian', + changeTo : 'Honekin ordezkatu', + btnIgnore : 'Ezikusi', + btnIgnoreAll : 'Denak Ezikusi', + btnReplace : 'Ordezkatu', + btnReplaceAll : 'Denak Ordezkatu', + btnUndo : 'Desegin', + noSuggestions : '- Iradokizunik ez -', + progress : 'Zuzenketa ortografikoa martxan...', + noMispell : 'Zuzenketa ortografikoa bukatuta: Akatsik ez', + noChanges : 'Zuzenketa ortografikoa bukatuta: Ez da ezer aldatu', + oneChange : 'Zuzenketa ortografikoa bukatuta: Hitz bat aldatu da', + manyChanges : 'Zuzenketa ortografikoa bukatuta: %1 hitz aldatu dira', + ieSpellDownload : 'Zuzentzaile ortografikoa ez dago instalatuta. Deskargatu nahi duzu?' + }, + + smiley : + { + toolbar : 'Aurpegierak', + title : 'Aurpegiera Sartu', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 elementua' + }, + + numberedlist : 'Zenbakidun Zerrenda', + bulletedlist : 'Buletdun Zerrenda', + indent : 'Handitu Koska', + outdent : 'Txikitu Koska', + + justify : + { + left : 'Lerrokatu Ezkerrean', + center : 'Lerrokatu Erdian', + right : 'Lerrokatu Eskuman', + block : 'Justifikatu' + }, + + blockquote : 'Aipamen blokea', + + clipboard : + { + title : 'Itsatsi', + cutError : 'Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki moztea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+X).', + copyError : 'Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki kopiatzea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+C).', + pasteMsg : 'Mesedez teklatua erabilita (<STRONG>Ctrl/Cmd+V</STRONG>) ondorego eremuan testua itsatsi eta <STRONG>OK</STRONG> sakatu.', + securityMsg : 'Nabigatzailearen segurtasun ezarpenak direla eta, editoreak ezin du arbela zuzenean erabili. Leiho honetan berriro itsatsi behar duzu.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'Itsatsi nahi duzun testua Wordetik hartua dela dirudi. Itsatsi baino lehen garbitu nahi duzu?', + toolbar : 'Itsatsi Word-etik', + title : 'Itsatsi Word-etik', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Testu Arrunta bezala Itsatsi', + title : 'Testu Arrunta bezala Itsatsi' + }, + + templates : + { + button : 'Txantiloiak', + title : 'Eduki Txantiloiak', + options : 'Template Options', // MISSING + insertOption : 'Ordeztu oraingo edukiak', + selectPromptMsg : 'Mesedez txantiloia aukeratu editorean kargatzeko<br>(orain dauden edukiak galduko dira):', + emptyListMsg : '(Ez dago definitutako txantiloirik)' + }, + + showBlocks : 'Blokeak erakutsi', + + stylesCombo : + { + label : 'Estiloa', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Bloke Estiloak', + panelTitle2 : 'Inline Estiloak', + panelTitle3 : 'Objektu Estiloak' + }, + + format : + { + label : 'Formatua', + panelTitle : 'Formatua', + + tag_p : 'Arrunta', + tag_pre : 'Formateatua', + tag_address : 'Helbidea', + tag_h1 : 'Izenburua 1', + tag_h2 : 'Izenburua 2', + tag_h3 : 'Izenburua 3', + tag_h4 : 'Izenburua 4', + tag_h5 : 'Izenburua 5', + tag_h6 : 'Izenburua 6', + tag_div : 'Paragrafoa (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Letra-tipoa', + voiceLabel : 'Letra-tipoa', + panelTitle : 'Letra-tipoa' + }, + + fontSize : + { + label : 'Tamaina', + voiceLabel : 'Tamaina', + panelTitle : 'Tamaina' + }, + + colorButton : + { + textColorTitle : 'Testu Kolorea', + bgColorTitle : 'Atzeko kolorea', + panelTitle : 'Colors', // MISSING + auto : 'Automatikoa', + more : 'Kolore gehiago...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Ortografia Zuzenketa Idatzi Ahala (SCAYT)', + opera_title : 'Not supported by Opera', // MISSING + enable : 'Gaitu SCAYT', + disable : 'Desgaitu SCAYT', + about : 'SCAYTi buruz', + toggle : 'SCAYT aldatu', + options : 'Aukerak', + langs : 'Hizkuntzak', + moreSuggestions : 'Iradokizun gehiago', + ignore : 'Baztertu', + ignoreAll : 'Denak baztertu', + addWord : 'Hitza Gehitu', + emptyDic : 'Hiztegiaren izena ezin da hutsik egon.', + + optionsTab : 'Aukerak', + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Hizkuntzak', + + dictionariesTab : 'Hiztegiak', + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'Honi buruz' + }, + + about : + { + title : 'CKEditor(r)i buruz', + dlgTitle : 'CKEditor(r)i buruz', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'Lizentziari buruzko informazioa gure webgunean:', + copy : 'Copyright © $1. Eskubide guztiak erreserbaturik.' + }, + + maximize : 'Maximizatu', + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Aingura', + flash : 'Flash Animazioa', + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Objektu ezezaguna' + }, + + resize : 'Arrastatu tamaina aldatzeko', + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Dokumentuaren Ezarpenak', + title : 'Dokumentuaren Ezarpenak', + design : 'Design', // MISSING + meta : 'Meta Informazioa', + chooseColor : 'Choose', // MISSING + other : '<other>', + docTitle : 'Orriaren Izenburua', + charset : 'Karaktere Multzoaren Kodeketa', + charsetOther : 'Beste Karaktere Multzoko Kodeketa', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Erdialdeko Europakoa', + charsetCT : 'Txinatar Tradizionala (Big5)', + charsetCR : 'Zirilikoa', + charsetGR : 'Grekoa', + charsetJP : 'Japoniarra', + charsetKR : 'Korearra', + charsetTR : 'Turkiarra', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Mendebaldeko Europakoa', + docType : 'Document Type Goiburua', + docTypeOther : 'Beste Document Type Goiburua', + xhtmlDec : 'XHTML Ezarpenak', + bgColor : 'Atzeko Kolorea', + bgImage : 'Atzeko Irudiaren URL-a', + bgFixed : 'Korritze gabeko Atzealdea', + txtColor : 'Testu Kolorea', + margin : 'Orrialdearen marjinak', + marginTop : 'Goian', + marginLeft : 'Ezkerrean', + marginRight : 'Eskuman', + marginBottom : 'Behean', + metaKeywords : 'Dokumentuaren Gako-hitzak (komarekin bananduta)', + metaDescription : 'Dokumentuaren Deskribapena', + metaAuthor : 'Egilea', + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/fa.js b/htdocs/includes/ckeditor/_source/lang/fa.js new file mode 100644 index 0000000000000000000000000000000000000000..3173b25640d50563f1715e3669cafc727ba39aa7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/fa.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object for the + * Persian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['fa'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'rtl', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'نوار ابزار', + editor : 'ویرایشگر متن غنی', + + // Toolbar buttons without dialogs. + source : 'منبع', + newPage : 'برگهٴ تازه', + save : 'ذخیره', + preview : 'پیشنمایش', + cut : 'برش', + copy : 'کپی', + paste : 'چسباندن', + print : 'چاپ', + underline : 'زیرخطدار', + bold : 'درشت', + italic : 'خمیده', + selectAll : 'گزینش همه', + removeFormat : 'برداشتن فرمت', + strike : 'میانخط', + subscript : 'زیرنویس', + superscript : 'بالانویس', + horizontalrule : 'گنجاندن خط افقی', + pagebreak : 'گنجاندن شکستگی پایان برگه', + pagebreakAlt : 'شکستن صفحه', + unlink : 'برداشتن پیوند', + undo : 'واچیدن', + redo : 'بازچیدن', + + // Common messages and labels. + common : + { + browseServer : 'فهرستنمایی سرور', + url : 'URL', + protocol : 'پروتکل', + upload : 'انتقال به سرور', + uploadSubmit : 'به سرور بفرست', + image : 'تصویر', + flash : 'فلش', + form : 'فرم', + checkbox : 'خانهٴ گزینهای', + radio : 'دکمهٴ رادیویی', + textField : 'فیلد متنی', + textarea : 'ناحیهٴ متنی', + hiddenField : 'فیلد پنهان', + button : 'دکمه', + select : 'فیلد چندگزینهای', + imageButton : 'دکمهٴ تصویری', + notSet : '<تعین نشده>', + id : 'شناسه', + name : 'نام', + langDir : 'جهتنمای زبان', + langDirLtr : 'چپ به راست (LTR)', + langDirRtl : 'راست به چپ (RTL)', + langCode : 'کد زبان', + longDescr : 'URL توصیف طولانی', + cssClass : 'کلاسهای شیوهنامه(Stylesheet)', + advisoryTitle : 'عنوان کمکی', + cssStyle : 'شیوه(style)', + ok : 'پذیرش', + cancel : 'انصراف', + close : 'بستن', + preview : 'پیشنمایش', + generalTab : 'عمومی', + advancedTab : 'پیشرفته', + validateNumberFailed : 'این مقدار یک عدد نیست.', + confirmNewPage : 'هر تغییر ایجاد شدهی ذخیره نشده از بین خواهد رفت. آیا اطمینان دارید که قصد بارگیری صفحه جدیدی را دارید؟', + confirmCancel : 'برخی از گزینهها تغییر کردهاند. آیا واقعا قصد بستن این پنجره را دارید؟', + options : 'گزینهها', + target : 'مسیر', + targetNew : 'پنجره جدید (_blank)', + targetTop : 'بالاترین پنجره (_top)', + targetSelf : 'همان پنجره (_self)', + targetParent : 'پنجره والد (_parent)', + langDirLTR : 'چپ به راست (LTR)', + langDirRTL : 'راست به چپ (RTL)', + styles : 'سبک', + cssClasses : 'کلاسهای شیوهنامه', + width : 'پهنا', + height : 'درازا', + align : 'چینش', + alignLeft : 'چپ', + alignRight : 'راست', + alignCenter : 'وسط', + alignTop : 'بالا', + alignMiddle : 'وسط', + alignBottom : 'پائین', + invalidHeight : 'ارتفاع باید یک عدد باشد.', + invalidWidth : 'پهنا باید یک عدد باشد.', + invalidCssLength : 'عدد تعیین شده برای فیلد "%1" باید یک عدد مثبت با یا بدون یک واحد اندازه گیری CSS معتبر باشد (px, %, in, cm, mm, em, ex, pt, or pc).', + invalidHtmlLength : 'عدد تعیین شده برای فیلد "%1" باید یک عدد مثبت با یا بدون یک واحد اندازه گیری HTML معتبر باشد (px or %).', + invalidInlineStyle : 'عدد تعیین شده برای سبک درونخطی(Inline Style) باید دارای یک یا چند چندتایی با شکلی شبیه "name : value" که باید با یک ","(semi-colons) از هم جدا شوند.', + cssLengthTooltip : 'یک عدد برای یک مقدار بر حسب پیکسل و یا یک عدد با یک واحد CSS معتبر وارد کنید (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">، غیر قابل دسترس</span>' + }, + + contextmenu : + { + options : 'گزینههای منوی زمینه' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'گنجاندن نویسهٴ ویژه', + title : 'گزینش نویسهٴ ویژه', + options : 'گزینههای نویسههای ویژه' + }, + + // Link dialog. + link : + { + toolbar : 'گنجاندن/ویرایش پیوند', + other : '<سایر>', + menu : 'ویرایش پیوند', + title : 'پیوند', + info : 'اطلاعات پیوند', + target : 'مقصد', + upload : 'انتقال به سرور', + advanced : 'پیشرفته', + type : 'نوع پیوند', + toUrl : 'URL', + toAnchor : 'لنگر در همین صفحه', + toEmail : 'پست الکترونیکی', + targetFrame : '<فریم>', + targetPopup : '<پنجرهٴ پاپاپ>', + targetFrameName : 'نام فریم مقصد', + targetPopupName : 'نام پنجرهٴ پاپاپ', + popupFeatures : 'ویژگیهای پنجرهٴ پاپاپ', + popupResizable : 'قابل تغییر اندازه', + popupStatusBar : 'نوار وضعیت', + popupLocationBar: 'نوار موقعیت', + popupToolbar : 'نوارابزار', + popupMenuBar : 'نوار منو', + popupFullScreen : 'تمامصفحه (IE)', + popupScrollBars : 'میلههای پیمایش', + popupDependent : 'وابسته (Netscape)', + popupLeft : 'موقعیت چپ', + popupTop : 'موقعیت بالا', + id : 'شناسه', + langDir : 'جهتنمای زبان', + langDirLTR : 'چپ به راست (LTR)', + langDirRTL : 'راست به چپ (RTL)', + acccessKey : 'کلید دستیابی', + name : 'نام', + langCode : 'جهتنمای زبان', + tabIndex : 'نمایهٴ دسترسی با برگه', + advisoryTitle : 'عنوان کمکی', + advisoryContentType : 'نوع محتوای کمکی', + cssClasses : 'کلاسهای شیوهنامه(Stylesheet)', + charset : 'نویسهگان منبع پیوند شده', + styles : 'شیوه(style)', + rel : 'وابستگی', + selectAnchor : 'یک لنگر برگزینید', + anchorName : 'با نام لنگر', + anchorId : 'با شناسهٴ المان', + emailAddress : 'نشانی پست الکترونیکی', + emailSubject : 'موضوع پیام', + emailBody : 'متن پیام', + noAnchors : '(در این سند لنگری دردسترس نیست)', + noUrl : 'لطفا URL پیوند را بنویسید', + noEmail : 'لطفا نشانی پست الکترونیکی را بنویسید' + }, + + // Anchor dialog + anchor : + { + toolbar : 'گنجاندن/ویرایش لنگر', + menu : 'ویژگیهای لنگر', + title : 'ویژگیهای لنگر', + name : 'نام لنگر', + errorName : 'لطفا نام لنگر را بنویسید', + remove : 'حذف لنگر' + }, + + // List style dialog + list: + { + numberedTitle : 'ویژگیهای فهرست شمارهدار', + bulletedTitle : 'ویژگیهای فهرست گلولهدار', + type : 'نوع', + start : 'شروع', + validateStartNumber :'فهرست شماره شروع باید یک عدد صحیح باشد.', + circle : 'دایره', + disc : 'صفحه گرد', + square : 'چهارگوش', + none : 'هیچ', + notset : '<تنظیم نشده>', + armenian : 'شمارهگذاری ارمنی', + georgian : 'شمارهگذاری گریگورین (an, ban, gan, etc.)', + lowerRoman : 'پانویس رومی (i, ii, iii, iv, v, etc.)', + upperRoman : 'بالانویس رومی (I, II, III, IV, V, etc.)', + lowerAlpha : 'پانویس الفبایی (a, b, c, d, e, etc.)', + upperAlpha : 'بالانویس الفبایی (A, B, C, D, E, etc.)', + lowerGreek : 'پانویس یونانی (alpha, beta, gamma, etc.)', + decimal : 'دهدهی (1, 2, 3, etc.)', + decimalLeadingZero : 'دهدهی همراه با صفر (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'جستجو و جایگزینی', + find : 'جستجو', + replace : 'جایگزینی', + findWhat : 'چه چیز را مییابید:', + replaceWith : 'جایگزینی با:', + notFoundMsg : 'متن موردنظر یافت نشد.', + findOptions : 'گزینههای جستجو', + matchCase : 'همسانی در بزرگی و کوچکی نویسهها', + matchWord : 'همسانی با واژهٴ کامل', + matchCyclic : 'همسانی با چرخه', + replaceAll : 'جایگزینی همهٴ یافتهها', + replaceSuccessMsg : '%1 رخداد جایگزین شد.' + }, + + // Table Dialog + table : + { + toolbar : 'جدول', + title : 'ویژگیهای جدول', + menu : 'ویژگیهای جدول', + deleteTable : 'پاک کردن جدول', + rows : 'سطرها', + columns : 'ستونها', + border : 'اندازهٴ لبه', + widthPx : 'پیکسل', + widthPc : 'درصد', + widthUnit : 'واحد پهنا', + cellSpace : 'فاصلهٴ میان سلولها', + cellPad : 'فاصلهٴ پرشده در سلول', + caption : 'عنوان', + summary : 'خلاصه', + headers : 'سرنویسها', + headersNone : 'هیچ', + headersColumn : 'اولین ستون', + headersRow : 'اولین ردیف', + headersBoth : 'هردو', + invalidRows : 'تعداد ردیفها باید یک عدد بزرگتر از 0 باشد.', + invalidCols : 'تعداد ستونها باید یک عدد بزرگتر از 0 باشد.', + invalidBorder : 'مقدار اندازه خطوط باید یک عدد باشد.', + invalidWidth : 'مقدار پهنای جدول باید یک عدد باشد.', + invalidHeight : 'مقدار ارتفاع جدول باید یک عدد باشد.', + invalidCellSpacing : 'مقدار فاصلهگذاری سلول باید یک عدد باشد.', + invalidCellPadding : 'بالشتک سلول باید یک عدد باشد.', + + cell : + { + menu : 'سلول', + insertBefore : 'افزودن سلول قبل از', + insertAfter : 'افزودن سلول بعد از', + deleteCell : 'حذف سلولها', + merge : 'ادغام سلولها', + mergeRight : 'ادغام به راست', + mergeDown : 'ادغام به پایین', + splitHorizontal : 'جدا کردن افقی سلول', + splitVertical : 'جدا کردن عمودی سلول', + title : 'ویژگیهای سلول', + cellType : 'نوع سلول', + rowSpan : 'محدوده ردیفها', + colSpan : 'محدوده ستونها', + wordWrap : 'شکستن کلمه', + hAlign : 'چینش افقی', + vAlign : 'چینش عمودی', + alignBaseline : 'خط مبنا', + bgColor : 'رنگ زمینه', + borderColor : 'رنگ خطوط', + data : 'اطلاعات', + header : 'سرنویس', + yes : 'بله', + no : 'خیر', + invalidWidth : 'عرض سلول باید یک عدد باشد.', + invalidHeight : 'ارتفاع سلول باید عدد باشد.', + invalidRowSpan : 'مقدار محدوده ردیفها باید یک عدد باشد.', + invalidColSpan : 'مقدار محدوده ستونها باید یک عدد باشد.', + chooseColor : 'انتخاب' + }, + + row : + { + menu : 'سطر', + insertBefore : 'افزودن سطر قبل از', + insertAfter : 'افزودن سطر بعد از', + deleteRow : 'حذف سطرها' + }, + + column : + { + menu : 'ستون', + insertBefore : 'افزودن ستون قبل از', + insertAfter : 'افزودن ستون بعد از', + deleteColumn : 'حذف ستونها' + } + }, + + // Button Dialog. + button : + { + title : 'ویژگیهای دکمه', + text : 'متن (مقدار)', + type : 'نوع', + typeBtn : 'دکمه', + typeSbm : 'ثبت', + typeRst : 'بازنشانی (Reset)' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'ویژگیهای خانهٴ گزینهای', + radioTitle : 'ویژگیهای دکمهٴ رادیویی', + value : 'مقدار', + selected : 'برگزیده' + }, + + // Form Dialog. + form : + { + title : 'ویژگیهای فرم', + menu : 'ویژگیهای فرم', + action : 'رویداد', + method : 'متد', + encoding : 'رمزنگاری' + }, + + // Select Field Dialog. + select : + { + title : 'ویژگیهای فیلد چندگزینهای', + selectInfo : 'اطلاعات', + opAvail : 'گزینههای دردسترس', + value : 'مقدار', + size : 'اندازه', + lines : 'خطوط', + chkMulti : 'گزینش چندگانه فراهم باشد', + opText : 'متن', + opValue : 'مقدار', + btnAdd : 'افزودن', + btnModify : 'ویرایش', + btnUp : 'بالا', + btnDown : 'پائین', + btnSetValue : 'تنظیم به عنوان مقدار برگزیده', + btnDelete : 'پاککردن' + }, + + // Textarea Dialog. + textarea : + { + title : 'ویژگیهای ناحیهٴ متنی', + cols : 'ستونها', + rows : 'سطرها' + }, + + // Text Field Dialog. + textfield : + { + title : 'ویژگیهای فیلد متنی', + name : 'نام', + value : 'مقدار', + charWidth : 'پهنای نویسه', + maxChars : 'بیشینهٴ نویسهها', + type : 'نوع', + typeText : 'متن', + typePass : 'گذرواژه' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'ویژگیهای فیلد پنهان', + name : 'نام', + value : 'مقدار' + }, + + // Image Dialog. + image : + { + title : 'ویژگیهای تصویر', + titleButton : 'ویژگیهای دکمهٴ تصویری', + menu : 'ویژگیهای تصویر', + infoTab : 'اطلاعات تصویر', + btnUpload : 'به سرور بفرست', + upload : 'انتقال به سرور', + alt : 'متن جایگزین', + lockRatio : 'قفل کردن نسبت', + resetSize : 'بازنشانی اندازه', + border : 'لبه', + hSpace : 'فاصلهٴ افقی', + vSpace : 'فاصلهٴ عمودی', + alertUrl : 'لطفا URL تصویر را بنویسید', + linkTab : 'پیوند', + button2Img : 'آیا مایلید از یک تصویر ساده روی دکمه تصویری انتخاب شده استفاده کنید؟', + img2Button : 'آیا مایلید از یک دکمه تصویری روی تصویر انتخاب شده استفاده کنید؟', + urlMissing : 'آدرس URL اصلی تصویر یافت نشد.', + validateBorder : 'مقدار خطوط باید یک عدد باشد.', + validateHSpace : 'مقدار فاصلهگذاری افقی باید یک عدد باشد.', + validateVSpace : 'مقدار فاصلهگذاری عمودی باید یک عدد باشد.' + }, + + // Flash Dialog + flash : + { + properties : 'ویژگیهای فلش', + propertiesTab : 'ویژگیها', + title : 'ویژگیهای فلش', + chkPlay : 'آغاز خودکار', + chkLoop : 'اجرای پیاپی', + chkMenu : 'در دسترس بودن منوی فلش', + chkFull : 'اجازه تمام صفحه', + scale : 'مقیاس', + scaleAll : 'نمایش همه', + scaleNoBorder : 'بدون کران', + scaleFit : 'جایگیری کامل', + access : 'دسترسی به اسکریپت', + accessAlways : 'همیشه', + accessSameDomain: 'همان دامنه', + accessNever : 'هرگز', + alignAbsBottom : 'پائین مطلق', + alignAbsMiddle : 'وسط مطلق', + alignBaseline : 'خط پایه', + alignTextTop : 'متن بالا', + quality : 'کیفیت', + qualityBest : 'بهترین', + qualityHigh : 'بالا', + qualityAutoHigh : 'بالا - خودکار', + qualityMedium : 'متوسط', + qualityAutoLow : 'پایین - خودکار', + qualityLow : 'پایین', + windowModeWindow: 'پنجره', + windowModeOpaque: 'مات', + windowModeTransparent : 'شفاف', + windowMode : 'حالت پنجره', + flashvars : 'مقادیر برای فلش', + bgcolor : 'رنگ پسزمینه', + hSpace : 'فاصلهٴ افقی', + vSpace : 'فاصلهٴ عمودی', + validateSrc : 'لطفا URL پیوند را بنویسید', + validateHSpace : 'مقدار فاصلهگذاری افقی باید یک عدد باشد.', + validateVSpace : 'مقدار فاصلهگذاری عمودی باید یک عدد باشد.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'بررسی املا', + title : 'بررسی املا', + notAvailable : 'با عرض پوزش خدمات الان در دسترس نیستند.', + errorLoading : 'خطا در بارگیری برنامه خدمات میزبان: %s.', + notInDic : 'در واژه~نامه یافت نشد', + changeTo : 'تغییر به', + btnIgnore : 'چشمپوشی', + btnIgnoreAll : 'چشمپوشی همه', + btnReplace : 'جایگزینی', + btnReplaceAll : 'جایگزینی همه', + btnUndo : 'واچینش', + noSuggestions : '- پیشنهادی نیست -', + progress : 'بررسی املا در حال انجام...', + noMispell : 'بررسی املا انجام شد. هیچ غلط املائی یافت نشد', + noChanges : 'بررسی املا انجام شد. هیچ واژهای تغییر نیافت', + oneChange : 'بررسی املا انجام شد. یک واژه تغییر یافت', + manyChanges : 'بررسی املا انجام شد. %1 واژه تغییر یافت', + ieSpellDownload : 'بررسی کنندهٴ املا نصب نشده است. آیا میخواهید آن را هماکنون دریافت کنید؟' + }, + + smiley : + { + toolbar : 'خندانک', + title : 'گنجاندن خندانک', + options : 'گزینههای خندانک' + }, + + elementsPath : + { + eleLabel : 'مسیر عناصر', + eleTitle : '%1 عنصر' + }, + + numberedlist : 'فهرست شمارهدار', + bulletedlist : 'فهرست نقطهای', + indent : 'افزایش تورفتگی', + outdent : 'کاهش تورفتگی', + + justify : + { + left : 'چپچین', + center : 'میانچین', + right : 'راستچین', + block : 'بلوکچین' + }, + + blockquote : 'بلوک نقل قول', + + clipboard : + { + title : 'چسباندن', + cutError : 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای برش را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+X).', + copyError : 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای کپی کردن را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+C).', + pasteMsg : 'لطفا متن را با کلیدهای (<STRONG>Ctrl/Cmd+V</STRONG>) در این جعبهٴ متنی بچسبانید و <STRONG>پذیرش</STRONG> را بزنید.', + securityMsg : 'به خاطر تنظیمات امنیتی مرورگر شما، ویرایشگر نمیتواند دسترسی مستقیم به دادههای clipboard داشته باشد. شما باید دوباره آنرا در این پنجره بچسبانید.', + pasteArea : 'محل چسباندن' + }, + + pastefromword : + { + confirmCleanup : 'متنی که میخواهید بچسبانید به نظر میرسد که از Word کپی شده است. آیا میخواهید قبل از چسباندن آن را پاکسازی کنید؟', + toolbar : 'چسباندن از Word', + title : 'چسباندن از Word', + error : 'به دلیل بروز خطای داخلی امکان پاکسازی اطلاعات بازنشانی شده وجود ندارد.' + }, + + pasteText : + { + button : 'چسباندن به عنوان متن ِساده', + title : 'چسباندن به عنوان متن ِساده' + }, + + templates : + { + button : 'الگوها', + title : 'الگوهای محتویات', + options : 'گزینههای الگو', + insertOption : 'محتویات کنونی جایگزین شوند', + selectPromptMsg : 'لطفا الگوی موردنظر را برای بازکردن در ویرایشگر برگزینید<br>(محتویات کنونی از دست خواهند رفت):', + emptyListMsg : '(الگوئی تعریف نشده است)' + }, + + showBlocks : 'نمایش بلوکها', + + stylesCombo : + { + label : 'سبک', + panelTitle : 'سبکهای قالببندی', + panelTitle1 : 'سبکهای بلوک', + panelTitle2 : 'سبکهای درونخطی', + panelTitle3 : 'سبکهای شیء' + }, + + format : + { + label : 'فرمت', + panelTitle : 'فرمت', + + tag_p : 'نرمال', + tag_pre : 'فرمت شده', + tag_address : 'آدرس', + tag_h1 : 'سرنویس 1', + tag_h2 : 'سرنویس 2', + tag_h3 : 'سرنویس 3', + tag_h4 : 'سرنویس 4', + tag_h5 : 'سرنویس 5', + tag_h6 : 'سرنویس 6', + tag_div : 'بند' + }, + + div : + { + title : 'ایجاد یک محل DIV', + toolbar : 'ایجاد یک محل DIV', + cssClassInputLabel : 'کلاسهای شیوهنامه', + styleSelectLabel : 'سبک', + IdInputLabel : 'شناسه', + languageCodeInputLabel : ' کد زبان', + inlineStyleInputLabel : 'سبک درونخطی(Inline Style)', + advisoryTitleInputLabel : 'عنوان مشاوره', + langDirLabel : 'جهت نوشتاری زبان', + langDirLTRLabel : 'چپ به راست (LTR)', + langDirRTLLabel : 'راست به چپ (RTL)', + edit : 'ویرایش Div', + remove : 'حذف Div' + }, + + iframe : + { + title : 'ویژگیهای IFrame', + toolbar : 'IFrame', + noUrl : 'لطفا مسیر URL iframe را درج کنید', + scrolling : 'نمایش خطکشها', + border : 'نمایش خطوط frame' + }, + + font : + { + label : 'قلم', + voiceLabel : 'قلم', + panelTitle : 'قلم' + }, + + fontSize : + { + label : 'اندازه', + voiceLabel : 'اندازه قلم', + panelTitle : 'اندازه' + }, + + colorButton : + { + textColorTitle : 'رنگ متن', + bgColorTitle : 'رنگ پسزمینه', + panelTitle : 'رنگها', + auto : 'خودکار', + more : 'رنگهای بیشتر...' + }, + + colors : + { + '000' : 'سیاه', + '800000' : 'خرمایی', + '8B4513' : 'قهوهای شکلاتی', + '2F4F4F' : 'ارغوانی مایل به خاکستری', + '008080' : 'آبی مایل به خاکستری', + '000080' : 'آبی سیر', + '4B0082' : 'نیلی', + '696969' : 'خاکستری تیره', + 'B22222' : 'آتش آجری', + 'A52A2A' : 'قهوهای', + 'DAA520' : 'میلهی طلایی', + '006400' : 'سبز تیره', + '40E0D0' : 'فیروزهای', + '0000CD' : 'آبی روشن', + '800080' : 'ارغوانی', + '808080' : 'خاکستری', + 'F00' : 'قرمز', + 'FF8C00' : 'نارنجی پررنگ', + 'FFD700' : 'طلایی', + '008000' : 'سبز', + '0FF' : 'آبی مایل به سبز', + '00F' : 'آبی', + 'EE82EE' : 'بنفش', + 'A9A9A9' : 'خاکستری مات', + 'FFA07A' : 'صورتی کدر روشن', + 'FFA500' : 'نارنجی', + 'FFFF00' : 'زرد', + '00FF00' : 'فسفری', + 'AFEEEE' : 'فیروزهای رنگ پریده', + 'ADD8E6' : 'آبی کمرنگ', + 'DDA0DD' : 'آلویی', + 'D3D3D3' : 'خاکستری روشن', + 'FFF0F5' : 'بنفش کمرنگ', + 'FAEBD7' : 'عتیقه سفید', + 'FFFFE0' : 'زرد روشن', + 'F0FFF0' : 'عسلی', + 'F0FFFF' : 'لاجوردی', + 'F0F8FF' : 'آبی براق', + 'E6E6FA' : 'بنفش کمرنگ', + 'FFF' : 'سفید' + }, + + scayt : + { + title : 'بررسی املای تایپ شما', + opera_title : 'توسط اپرا پشتیبانی نمیشود', + enable : 'فعالسازی SCAYT', + disable : 'غیرفعالسازی SCAYT', + about : 'درباره SCAYT', + toggle : 'ضامن SCAYT', + options : 'گزینهها', + langs : 'زبانها', + moreSuggestions : 'پیشنهادهای بیشتر', + ignore : 'عبور کردن', + ignoreAll : 'عبور کردن از همه', + addWord : 'افزودن Word', + emptyDic : 'نام دیکشنری نباید خالی باشد.', + + optionsTab : 'گزینهها', + allCaps : 'نادیده گرفتن همه کلاه-واژهها', + ignoreDomainNames : 'عبور از نامهای دامنه', + mixedCase : 'عبور از کلماتی مرکب از حروف بزرگ و کوچک', + mixedWithDigits : 'عبور از کلمات به همراه عدد', + + languagesTab : 'زبانها', + + dictionariesTab : 'دیکشنریها', + dic_field_name : 'نام دیکشنری', + dic_create : 'ایجاد', + dic_restore : 'بازیافت', + dic_delete : 'حذف', + dic_rename : 'تغییر نام', + dic_info : 'در ابتدا دیکشنری کاربر در کوکی ذخیره میشود. با این حال، کوکیها در اندازه محدود شدهاند. وقتی که دیکشنری کاربری بزرگ میشود و به نقطهای که نمیتواند در کوکی ذخیره شود، پس از آن دیکشنری ممکن است بر روی سرور ما ذخیره شود. برای ذخیره دیکشنری شخصی شما بر روی سرور ما، باید یک نام برای دیکشنری خود مشخص نمایید. اگر شما قبلا یک دیکشنری روی سرور ما ذخیره کردهاید، لطفا نام آنرا درج و روی دکمه بازیافت کلیک نمایید.', + + aboutTab : 'درباره' + }, + + about : + { + title : 'درباره CKEditor', + dlgTitle : 'درباره CKEditor', + help : 'بررسی $1 برای راهنمایی.', + userGuide : 'راهنمای کاربران CKEditor', + moreInfo : 'برای کسب اطلاعات مجوز لطفا به وب سایت ما مراجعه کنید:', + copy : 'حق نشر © $1. کلیه حقوق محفوظ است.' + }, + + maximize : 'حداکثر کردن', + minimize : 'حداقل کردن', + + fakeobjects : + { + anchor : 'لنگر', + flash : 'انیمشن فلش', + iframe : 'IFrame', + hiddenfield : 'فیلد پنهان', + unknown : 'شیء ناشناخته' + }, + + resize : 'کشیدن برای تغییر اندازه', + + colordialog : + { + title : 'انتخاب رنگ', + options : 'گزینههای رنگ', + highlight : 'متمایز', + selected : 'رنگ انتخاب شده', + clear : 'پاک کردن' + }, + + toolbarCollapse : 'بستن نوار ابزار', + toolbarExpand : 'بازکردن نوار ابزار', + + toolbarGroups : + { + document : 'سند', + clipboard : 'حافظه موقت/برگشت', + editing : 'در حال ویرایش', + forms : 'فرمها', + basicstyles : 'شیوههای پایه', + paragraph : 'بند', + links : 'پیوندها', + insert : 'ورود', + styles : 'شیوهها', + colors : 'رنگها', + tools : 'ابزارها' + }, + + bidi : + { + ltr : 'نوشتار متن از چپ به راست', + rtl : 'نوشتار متن از راست به چپ' + }, + + docprops : + { + label : 'ویژگیهای سند', + title : 'ویژگیهای سند', + design : 'طراحی', + meta : 'فراداده', + chooseColor : 'انتخاب', + other : '<سایر>', + docTitle : 'عنوان صفحه', + charset : 'رمزگذاری نویسهگان', + charsetOther : 'رمزگذاری نویسهگان دیگر', + charsetASCII : 'ASCII', + charsetCE : 'اروپای مرکزی', + charsetCT : 'چینی رسمی (Big5)', + charsetCR : 'سیریلیک', + charsetGR : 'یونانی', + charsetJP : 'ژاپنی', + charsetKR : 'کرهای', + charsetTR : 'ترکی', + charsetUN : 'یونیکُد (UTF-8)', + charsetWE : 'اروپای غربی', + docType : 'عنوان نوع سند', + docTypeOther : 'عنوان نوع سند دیگر', + xhtmlDec : 'شامل تعاریف XHTML', + bgColor : 'رنگ پسزمینه', + bgImage : 'URL تصویر پسزمینه', + bgFixed : 'پسزمینهٴ پیمایش ناپذیر', + txtColor : 'رنگ متن', + margin : 'حاشیههای صفحه', + marginTop : 'بالا', + marginLeft : 'چپ', + marginRight : 'راست', + marginBottom : 'پایین', + metaKeywords : 'کلیدواژگان نمایهگذاری سند (با کاما جدا شوند)', + metaDescription : 'توصیف سند', + metaAuthor : 'نویسنده', + metaCopyright : 'حق انتشار', + previewHtml : '<p>این یک <strong>متن نمونه</strong> است. شما در حال استفاده از <a href="javascript:void(0)">CKEditor</a> هستید.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/fi.js b/htdocs/includes/ckeditor/_source/lang/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..69cdc604ac18169bf5730f91c6d177beac9d8585 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/fi.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object for the + * Finnish language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['fi'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editorin työkalupalkit', + editor : 'Rikastekstieditori', + + // Toolbar buttons without dialogs. + source : 'Koodi', + newPage : 'Tyhjennä', + save : 'Tallenna', + preview : 'Esikatsele', + cut : 'Leikkaa', + copy : 'Kopioi', + paste : 'Liitä', + print : 'Tulosta', + underline : 'Alleviivattu', + bold : 'Lihavoitu', + italic : 'Kursivoitu', + selectAll : 'Valitse kaikki', + removeFormat : 'Poista muotoilu', + strike : 'Yliviivattu', + subscript : 'Alaindeksi', + superscript : 'Yläindeksi', + horizontalrule : 'Lisää murtoviiva', + pagebreak : 'Lisää sivunvaihto', + pagebreakAlt : 'Sivunvaihto', + unlink : 'Poista linkki', + undo : 'Kumoa', + redo : 'Toista', + + // Common messages and labels. + common : + { + browseServer : 'Selaa palvelinta', + url : 'Osoite', + protocol : 'Protokolla', + upload : 'Lisää tiedosto', + uploadSubmit : 'Lähetä palvelimelle', + image : 'Kuva', + flash : 'Flash-animaatio', + form : 'Lomake', + checkbox : 'Valintaruutu', + radio : 'Radiopainike', + textField : 'Tekstikenttä', + textarea : 'Tekstilaatikko', + hiddenField : 'Piilokenttä', + button : 'Painike', + select : 'Valintakenttä', + imageButton : 'Kuvapainike', + notSet : '<ei asetettu>', + id : 'Tunniste', + name : 'Nimi', + langDir : 'Kielen suunta', + langDirLtr : 'Vasemmalta oikealle (LTR)', + langDirRtl : 'Oikealta vasemmalle (RTL)', + langCode : 'Kielikoodi', + longDescr : 'Pitkän kuvauksen URL', + cssClass : 'Tyyliluokat', + advisoryTitle : 'Avustava otsikko', + cssStyle : 'Tyyli', + ok : 'OK', + cancel : 'Peruuta', + close : 'Sulje', + preview : 'Esikatselu', + generalTab : 'Yleinen', + advancedTab : 'Lisäominaisuudet', + validateNumberFailed : 'Arvon pitää olla numero.', + confirmNewPage : 'Kaikki tallentamattomat muutokset tähän sisältöön menetetään. Oletko varma, että haluat ladata uuden sivun?', + confirmCancel : 'Jotkut asetuksista on muuttuneet. Oletko varma, että haluat sulkea valintaikkunan?', + options : 'Asetukset', + target : 'Kohde', + targetNew : 'Uusi ikkuna (_blank)', + targetTop : 'Päällimmäinen ikkuna (_top)', + targetSelf : 'Sama ikkuna (_self)', + targetParent : 'Ylemmän tason ikkuna (_parent)', + langDirLTR : 'Vasemmalta oikealle (LTR)', + langDirRTL : 'Oikealta vasemmalle (RTL)', + styles : 'Tyyli', + cssClasses : 'Tyylitiedoston luokat', + width : 'Leveys', + height : 'Korkeus', + align : 'Kohdistus', + alignLeft : 'Vasemmalle', + alignRight : 'Oikealle', + alignCenter : 'Keskelle', + alignTop : 'Ylös', + alignMiddle : 'Keskelle', + alignBottom : 'Alas', + invalidHeight : 'Korkeuden täytyy olla numero.', + invalidWidth : 'Leveyden täytyy olla numero.', + invalidCssLength : 'Kentän "%1" arvon täytyy olla positiivinen luku CSS mittayksikön (px, %, in, cm, mm, em, ex, pt tai pc) kanssa tai ilman.', + invalidHtmlLength : 'Kentän "%1" arvon täytyy olla positiivinen luku HTML mittayksikön (px tai %) kanssa tai ilman.', + invalidInlineStyle : 'Tyylille annetun arvon täytyy koostua yhdestä tai useammasta "nimi : arvo" parista, jotka ovat eroteltuna toisistaan puolipisteillä.', + cssLengthTooltip : 'Anna numeroarvo pikseleinä tai numeroarvo CSS mittayksikön kanssa (px, %, in, cm, mm, em, ex, pt, tai pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, ei saatavissa</span>' + }, + + contextmenu : + { + options : 'Pikavalikon ominaisuudet' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Lisää erikoismerkki', + title : 'Valitse erikoismerkki', + options : 'Erikoismerkin ominaisuudet' + }, + + // Link dialog. + link : + { + toolbar : 'Lisää linkki/muokkaa linkkiä', + other : '<muu>', + menu : 'Muokkaa linkkiä', + title : 'Linkki', + info : 'Linkin tiedot', + target : 'Kohde', + upload : 'Lisää tiedosto', + advanced : 'Lisäominaisuudet', + type : 'Linkkityyppi', + toUrl : 'Osoite', + toAnchor : 'Ankkuri tässä sivussa', + toEmail : 'Sähköposti', + targetFrame : '<kehys>', + targetPopup : '<popup ikkuna>', + targetFrameName : 'Kohdekehyksen nimi', + targetPopupName : 'Popup ikkunan nimi', + popupFeatures : 'Popup ikkunan ominaisuudet', + popupResizable : 'Venytettävä', + popupStatusBar : 'Tilarivi', + popupLocationBar: 'Osoiterivi', + popupToolbar : 'Vakiopainikkeet', + popupMenuBar : 'Valikkorivi', + popupFullScreen : 'Täysi ikkuna (IE)', + popupScrollBars : 'Vierityspalkit', + popupDependent : 'Riippuva (Netscape)', + popupLeft : 'Vasemmalta (px)', + popupTop : 'Ylhäältä (px)', + id : 'Tunniste', + langDir : 'Kielen suunta', + langDirLTR : 'Vasemmalta oikealle (LTR)', + langDirRTL : 'Oikealta vasemmalle (RTL)', + acccessKey : 'Pikanäppäin', + name : 'Nimi', + langCode : 'Kielen suunta', + tabIndex : 'Tabulaattori indeksi', + advisoryTitle : 'Avustava otsikko', + advisoryContentType : 'Avustava sisällön tyyppi', + cssClasses : 'Tyyliluokat', + charset : 'Linkitetty kirjaimisto', + styles : 'Tyyli', + rel : 'Suhde', + selectAnchor : 'Valitse ankkuri', + anchorName : 'Ankkurin nimen mukaan', + anchorId : 'Ankkurin ID:n mukaan', + emailAddress : 'Sähköpostiosoite', + emailSubject : 'Aihe', + emailBody : 'Viesti', + noAnchors : '(Ei ankkureita tässä dokumentissa)', + noUrl : 'Linkille on kirjoitettava URL', + noEmail : 'Kirjoita sähköpostiosoite' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Lisää ankkuri/muokkaa ankkuria', + menu : 'Ankkurin ominaisuudet', + title : 'Ankkurin ominaisuudet', + name : 'Nimi', + errorName : 'Ankkurille on kirjoitettava nimi', + remove : 'Poista ankkuri' + }, + + // List style dialog + list: + { + numberedTitle : 'Numeroidun listan ominaisuudet', + bulletedTitle : 'Numeroimattoman listan ominaisuudet', + type : 'Tyyppi', + start : 'Alku', + validateStartNumber :'Listan ensimmäisen numeron tulee olla kokonaisluku.', + circle : 'Ympyrä', + disc : 'Levy', + square : 'Neliö', + none : 'Ei mikään', + notset : '<ei asetettu>', + armenian : 'Armeenialainen numerointi', + georgian : 'Georgialainen numerointi (an, ban, gan, etc.)', + lowerRoman : 'Pienet roomalaiset (i, ii, iii, iv, v, jne.)', + upperRoman : 'Isot roomalaiset (I, II, III, IV, V, jne.)', + lowerAlpha : 'Pienet aakkoset (a, b, c, d, e, jne.)', + upperAlpha : 'Isot aakkoset (A, B, C, D, E, jne.)', + lowerGreek : 'Pienet kreikkalaiset (alpha, beta, gamma, jne.)', + decimal : 'Desimaalit (1, 2, 3, jne.)', + decimalLeadingZero : 'Desimaalit, alussa nolla (01, 02, 03, jne.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Etsi ja korvaa', + find : 'Etsi', + replace : 'Korvaa', + findWhat : 'Etsi mitä:', + replaceWith : 'Korvaa tällä:', + notFoundMsg : 'Etsittyä tekstiä ei löytynyt.', + findOptions : 'Hakuasetukset', + matchCase : 'Sama kirjainkoko', + matchWord : 'Koko sana', + matchCyclic : 'Kierrä ympäri', + replaceAll : 'Korvaa kaikki', + replaceSuccessMsg : '%1 esiintymä(ä) korvattu.' + }, + + // Table Dialog + table : + { + toolbar : 'Taulu', + title : 'Taulun ominaisuudet', + menu : 'Taulun ominaisuudet', + deleteTable : 'Poista taulu', + rows : 'Rivit', + columns : 'Sarakkeet', + border : 'Rajan paksuus', + widthPx : 'pikseliä', + widthPc : 'prosenttia', + widthUnit : 'leveysyksikkö', + cellSpace : 'Solujen väli', + cellPad : 'Solujen sisennys', + caption : 'Otsikko', + summary : 'Yhteenveto', + headers : 'Ylätunnisteet', + headersNone : 'Ei', + headersColumn : 'Ensimmäinen sarake', + headersRow : 'Ensimmäinen rivi', + headersBoth : 'Molemmat', + invalidRows : 'Rivien määrän täytyy olla suurempi kuin 0.', + invalidCols : 'Sarakkeiden määrän täytyy olla suurempi kuin 0.', + invalidBorder : 'Reunan koon täytyy olla numero.', + invalidWidth : 'Taulun leveyden täytyy olla numero.', + invalidHeight : 'Taulun korkeuden täytyy olla numero.', + invalidCellSpacing : 'Solujen välin täytyy olla numero.', + invalidCellPadding : 'Solujen sisennyksen täytyy olla numero.', + + cell : + { + menu : 'Solu', + insertBefore : 'Lisää solu eteen', + insertAfter : 'Lisää solu perään', + deleteCell : 'Poista solut', + merge : 'Yhdistä solut', + mergeRight : 'Yhdistä oikealla olevan kanssa', + mergeDown : 'Yhdistä alla olevan kanssa', + splitHorizontal : 'Jaa solu vaakasuunnassa', + splitVertical : 'Jaa solu pystysuunnassa', + title : 'Solun ominaisuudet', + cellType : 'Solun tyyppi', + rowSpan : 'Rivin jatkuvuus', + colSpan : 'Solun jatkuvuus', + wordWrap : 'Rivitys', + hAlign : 'Horisontaali kohdistus', + vAlign : 'Vertikaali kohdistus', + alignBaseline : 'Alas (teksti)', + bgColor : 'Taustan väri', + borderColor : 'Reunan väri', + data : 'Data', + header : 'Ylätunniste', + yes : 'Kyllä', + no : 'Ei', + invalidWidth : 'Solun leveyden täytyy olla numero.', + invalidHeight : 'Solun korkeuden täytyy olla numero.', + invalidRowSpan : 'Rivin jatkuvuuden täytyy olla kokonaisluku.', + invalidColSpan : 'Solun jatkuvuuden täytyy olla kokonaisluku.', + chooseColor : 'Valitse' + }, + + row : + { + menu : 'Rivi', + insertBefore : 'Lisää rivi yläpuolelle', + insertAfter : 'Lisää rivi alapuolelle', + deleteRow : 'Poista rivit' + }, + + column : + { + menu : 'Sarake', + insertBefore : 'Lisää sarake vasemmalle', + insertAfter : 'Lisää sarake oikealle', + deleteColumn : 'Poista sarakkeet' + } + }, + + // Button Dialog. + button : + { + title : 'Painikkeen ominaisuudet', + text : 'Teksti (arvo)', + type : 'Tyyppi', + typeBtn : 'Painike', + typeSbm : 'Lähetä', + typeRst : 'Tyhjennä' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Valintaruudun ominaisuudet', + radioTitle : 'Radiopainikkeen ominaisuudet', + value : 'Arvo', + selected : 'Valittu' + }, + + // Form Dialog. + form : + { + title : 'Lomakkeen ominaisuudet', + menu : 'Lomakkeen ominaisuudet', + action : 'Toiminto', + method : 'Tapa', + encoding : 'Enkoodaus' + }, + + // Select Field Dialog. + select : + { + title : 'Valintakentän ominaisuudet', + selectInfo : 'Info', + opAvail : 'Ominaisuudet', + value : 'Arvo', + size : 'Koko', + lines : 'Rivit', + chkMulti : 'Salli usea valinta', + opText : 'Teksti', + opValue : 'Arvo', + btnAdd : 'Lisää', + btnModify : 'Muuta', + btnUp : 'Ylös', + btnDown : 'Alas', + btnSetValue : 'Aseta valituksi', + btnDelete : 'Poista' + }, + + // Textarea Dialog. + textarea : + { + title : 'Tekstilaatikon ominaisuudet', + cols : 'Sarakkeita', + rows : 'Rivejä' + }, + + // Text Field Dialog. + textfield : + { + title : 'Tekstikentän ominaisuudet', + name : 'Nimi', + value : 'Arvo', + charWidth : 'Leveys', + maxChars : 'Maksimi merkkimäärä', + type : 'Tyyppi', + typeText : 'Teksti', + typePass : 'Salasana' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Piilokentän ominaisuudet', + name : 'Nimi', + value : 'Arvo' + }, + + // Image Dialog. + image : + { + title : 'Kuvan ominaisuudet', + titleButton : 'Kuvapainikkeen ominaisuudet', + menu : 'Kuvan ominaisuudet', + infoTab : 'Kuvan tiedot', + btnUpload : 'Lähetä palvelimelle', + upload : 'Lisää kuva', + alt : 'Vaihtoehtoinen teksti', + lockRatio : 'Lukitse suhteet', + resetSize : 'Alkuperäinen koko', + border : 'Kehys', + hSpace : 'Vaakatila', + vSpace : 'Pystytila', + alertUrl : 'Kirjoita kuvan osoite (URL)', + linkTab : 'Linkki', + button2Img : 'Haluatko muuntaa valitun kuvanäppäimen kuvaksi?', + img2Button : 'Haluatko muuntaa valitun kuvan kuvanäppäimeksi?', + urlMissing : 'Kuvan lähdeosoite puuttuu.', + validateBorder : 'Kehyksen täytyy olla kokonaisluku.', + validateHSpace : 'HSpace-määrityksen täytyy olla kokonaisluku.', + validateVSpace : 'VSpace-määrityksen täytyy olla kokonaisluku.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash-ominaisuudet', + propertiesTab : 'Ominaisuudet', + title : 'Flash ominaisuudet', + chkPlay : 'Automaattinen käynnistys', + chkLoop : 'Toisto', + chkMenu : 'Näytä Flash-valikko', + chkFull : 'Salli kokoruututila', + scale : 'Levitä', + scaleAll : 'Näytä kaikki', + scaleNoBorder : 'Ei rajaa', + scaleFit : 'Tarkka koko', + access : 'Skriptien pääsy', + accessAlways : 'Aina', + accessSameDomain: 'Sama verkkotunnus', + accessNever : 'Ei koskaan', + alignAbsBottom : 'Aivan alas', + alignAbsMiddle : 'Aivan keskelle', + alignBaseline : 'Alas (teksti)', + alignTextTop : 'Ylös (teksti)', + quality : 'Laatu', + qualityBest : 'Paras', + qualityHigh : 'Korkea', + qualityAutoHigh : 'Automaattinen korkea', + qualityMedium : 'Keskitaso', + qualityAutoLow : 'Automaattinen matala', + qualityLow : 'Matala', + windowModeWindow: 'Ikkuna', + windowModeOpaque: 'Läpinäkyvyys', + windowModeTransparent : 'Läpinäkyvä', + windowMode : 'Ikkuna tila', + flashvars : 'Muuttujat Flash:lle', + bgcolor : 'Taustaväri', + hSpace : 'Vaakatila', + vSpace : 'Pystytila', + validateSrc : 'Linkille on kirjoitettava URL', + validateHSpace : 'Vaakatilan täytyy olla numero.', + validateVSpace : 'Pystytilan täytyy olla numero.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Tarkista oikeinkirjoitus', + title : 'Oikoluku', + notAvailable : 'Valitettavasti oikoluku ei ole käytössä tällä hetkellä.', + errorLoading : 'Virhe ladattaessa oikolukupalvelua isännältä: %s.', + notInDic : 'Ei sanakirjassa', + changeTo : 'Vaihda', + btnIgnore : 'Jätä huomioimatta', + btnIgnoreAll : 'Jätä kaikki huomioimatta', + btnReplace : 'Korvaa', + btnReplaceAll : 'Korvaa kaikki', + btnUndo : 'Kumoa', + noSuggestions : 'Ei ehdotuksia', + progress : 'Tarkistus käynnissä...', + noMispell : 'Tarkistus valmis: Ei virheitä', + noChanges : 'Tarkistus valmis: Yhtään sanaa ei muutettu', + oneChange : 'Tarkistus valmis: Yksi sana muutettiin', + manyChanges : 'Tarkistus valmis: %1 sanaa muutettiin', + ieSpellDownload : 'Oikeinkirjoituksen tarkistusta ei ole asennettu. Haluatko ladata sen nyt?' + }, + + smiley : + { + toolbar : 'Hymiö', + title : 'Lisää hymiö', + options : 'Hymiön ominaisuudet' + }, + + elementsPath : + { + eleLabel : 'Elementin polku', + eleTitle : '%1 elementti' + }, + + numberedlist : 'Numerointi', + bulletedlist : 'Luottelomerkit', + indent : 'Suurenna sisennystä', + outdent : 'Pienennä sisennystä', + + justify : + { + left : 'Tasaa vasemmat reunat', + center : 'Keskitä', + right : 'Tasaa oikeat reunat', + block : 'Tasaa molemmat reunat' + }, + + blockquote : 'Lainaus', + + clipboard : + { + title : 'Liitä', + cutError : 'Selaimesi turva-asetukset eivät salli editorin toteuttaa leikkaamista. Käytä näppäimistöä leikkaamiseen (Ctrl+X).', + copyError : 'Selaimesi turva-asetukset eivät salli editorin toteuttaa kopioimista. Käytä näppäimistöä kopioimiseen (Ctrl+C).', + pasteMsg : 'Liitä painamalla (<STRONG>Ctrl+V</STRONG>) ja painamalla <STRONG>OK</STRONG>.', + securityMsg : 'Selaimesi turva-asetukset eivät salli editorin käyttää leikepöytää suoraan. Sinun pitää suorittaa liittäminen tässä ikkunassa.', + pasteArea : 'Leikealue' + }, + + pastefromword : + { + confirmCleanup : 'Liittämäsi teksti näyttäisi olevan Word-dokumentista. Haluatko siivota sen ennen liittämistä? (Suositus: Kyllä)', + toolbar : 'Liitä Word-dokumentista', + title : 'Liitä Word-dokumentista', + error : 'Liitetyn tiedon siivoaminen ei onnistunut sisäisen virheen takia' + }, + + pasteText : + { + button : 'Liitä tekstinä', + title : 'Liitä tekstinä' + }, + + templates : + { + button : 'Pohjat', + title : 'Sisältöpohjat', + options : 'Sisältöpohjan ominaisuudet', + insertOption : 'Korvaa editorin koko sisältö', + selectPromptMsg : 'Valitse pohja editoriin<br>(aiempi sisältö menetetään):', + emptyListMsg : '(Ei määriteltyjä pohjia)' + }, + + showBlocks : 'Näytä elementit', + + stylesCombo : + { + label : 'Tyyli', + panelTitle : 'Muotoilujen tyylit', + panelTitle1 : 'Lohkojen tyylit', + panelTitle2 : 'Rivinsisäiset tyylit', + panelTitle3 : 'Objektien tyylit' + }, + + format : + { + label : 'Muotoilu', + panelTitle : 'Muotoilu', + + tag_p : 'Normaali', + tag_pre : 'Muotoiltu', + tag_address : 'Osoite', + tag_h1 : 'Otsikko 1', + tag_h2 : 'Otsikko 2', + tag_h3 : 'Otsikko 3', + tag_h4 : 'Otsikko 4', + tag_h5 : 'Otsikko 5', + tag_h6 : 'Otsikko 6', + tag_div : 'Normaali (DIV)' + }, + + div : + { + title : 'Luo div-kehikko', + toolbar : 'Luo div-kehikko', + cssClassInputLabel : 'Tyylitiedoston luokat', + styleSelectLabel : 'Tyyli', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Kielen koodi', + inlineStyleInputLabel : 'Sisätyyli', + advisoryTitleInputLabel : 'Ohjeistava otsikko', + langDirLabel : 'Kielen suunta', + langDirLTRLabel : 'Vasemmalta oikealle (LTR)', + langDirRTLLabel : 'Oikealta vasemmalle (RTL)', + edit : 'Muokkaa Diviä', + remove : 'Poista Div' + }, + + iframe : + { + title : 'IFrame-kehyksen ominaisuudet', + toolbar : 'IFrame-kehys', + noUrl : 'Anna IFrame-kehykselle lähdeosoite (src)', + scrolling : 'Näytä vierityspalkit', + border : 'Näytä kehyksen reunat' + }, + + font : + { + label : 'Kirjaisinlaji', + voiceLabel : 'Kirjaisinlaji', + panelTitle : 'Kirjaisinlaji' + }, + + fontSize : + { + label : 'Koko', + voiceLabel : 'Kirjaisimen koko', + panelTitle : 'Koko' + }, + + colorButton : + { + textColorTitle : 'Tekstiväri', + bgColorTitle : 'Taustaväri', + panelTitle : 'Värit', + auto : 'Automaattinen', + more : 'Lisää värejä...' + }, + + colors : + { + '000' : 'Musta', + '800000' : 'Kastanjanruskea', + '8B4513' : 'Satulanruskea', + '2F4F4F' : 'Tumma liuskekivenharmaa', + '008080' : 'Sinivihreä', + '000080' : 'Laivastonsininen', + '4B0082' : 'Indigonsininen', + '696969' : 'Tummanharmaa', + 'B22222' : 'Tiili', + 'A52A2A' : 'Ruskea', + 'DAA520' : 'Kultapiisku', + '006400' : 'Tummanvihreä', + '40E0D0' : 'Turkoosi', + '0000CD' : 'Keskisininen', + '800080' : 'Purppura', + '808080' : 'Harmaa', + 'F00' : 'Punainen', + 'FF8C00' : 'Tumma oranssi', + 'FFD700' : 'Kulta', + '008000' : 'Vihreä', + '0FF' : 'Syaani', + '00F' : 'Sininen', + 'EE82EE' : 'Violetti', + 'A9A9A9' : 'Tummanharmaa', + 'FFA07A' : 'Vaaleanlohenpunainen', + 'FFA500' : 'Oranssi', + 'FFFF00' : 'Keltainen', + '00FF00' : 'Limetin vihreä', + 'AFEEEE' : 'Haalea turkoosi', + 'ADD8E6' : 'Vaaleansininen', + 'DDA0DD' : 'Luumu', + 'D3D3D3' : 'Vaaleanharmaa', + 'FFF0F5' : 'Laventelinpunainen', + 'FAEBD7' : 'Antiikinvalkoinen', + 'FFFFE0' : 'Vaaleankeltainen', + 'F0FFF0' : 'Hunajameloni', + 'F0FFFF' : 'Asurinsininen', + 'F0F8FF' : 'Alice Blue -sininen', + 'E6E6FA' : 'Lavanteli', + 'FFF' : 'Valkoinen' + }, + + scayt : + { + title : 'Oikolue kirjoitettaessa', + opera_title : 'Opera ei tue tätä ominaisuutta', + enable : 'Ota käyttöön oikoluku kirjoitettaessa', + disable : 'Poista käytöstä oikoluku kirjoitetaessa', + about : 'Tietoja oikoluvusta kirjoitetaessa', + toggle : 'Vaihda oikoluku kirjoittaessa tilaa', + options : 'Asetukset', + langs : 'Kielet', + moreSuggestions : 'Lisää ehdotuksia', + ignore : 'Ohita', + ignoreAll : 'Ohita kaikki', + addWord : 'Lisää sana', + emptyDic : 'Sanakirjan nimi on annettava.', + + optionsTab : 'Asetukset', + allCaps : 'Ohita sanat, jotka on kirjoitettu kokonaan isoilla kirjaimilla', + ignoreDomainNames : 'Ohita verkkotunnukset', + mixedCase : 'Ohita sanat, joissa on sekoitettu isoja ja pieniä kirjaimia', + mixedWithDigits : 'Ohita sanat, joissa on numeroita', + + languagesTab : 'Kielet', + + dictionariesTab : 'Sanakirjat', + dic_field_name : 'Sanakirjan nimi', + dic_create : 'Luo', + dic_restore : 'Palauta', + dic_delete : 'Poista', + dic_rename : 'Nimeä uudelleen', + dic_info : 'Oletuksena sanakirjat tallennetaan evästeeseen, mutta evästeiden koko on kuitenkin rajallinen. Sanakirjan kasvaessa niin suureksi, ettei se enää mahdu evästeeseen, sanakirja täytyy tallentaa palvelimellemme. Tallentaaksesi sanakirjasi palvelimellemme tulee sinun antaa sille nimi. Jos olet jo tallentanut sanakirjan, anna sen nimi ja klikkaa Palauta-painiketta', + + aboutTab : 'Tietoa' + }, + + about : + { + title : 'Tietoa CKEditorista', + dlgTitle : 'Tietoa CKEditorista', + help : 'Katso ohjeet: $1.', + userGuide : 'CKEditorin käyttäjäopas', + moreInfo : 'Lisenssitiedot löytyvät kotisivuiltamme:', + copy : 'Copyright © $1. Kaikki oikeuden pidätetään.' + }, + + maximize : 'Suurenna', + minimize : 'Pienennä', + + fakeobjects : + { + anchor : 'Ankkuri', + flash : 'Flash animaatio', + iframe : 'IFrame-kehys', + hiddenfield : 'Piilokenttä', + unknown : 'Tuntematon objekti' + }, + + resize : 'Raahaa muuttaaksesi kokoa', + + colordialog : + { + title : 'Valitse väri', + options : 'Värin ominaisuudet', + highlight : 'Korostus', + selected : 'Valittu', + clear : 'Poista' + }, + + toolbarCollapse : 'Kutista työkalupalkki', + toolbarExpand : 'Laajenna työkalupalkki', + + toolbarGroups : + { + document : 'Dokumentti', + clipboard : 'Leikepöytä/Kumoa', + editing : 'Muokkaus', + forms : 'Lomakkeet', + basicstyles : 'Perustyylit', + paragraph : 'Kappale', + links : 'Linkit', + insert : 'Lisää', + styles : 'Tyylit', + colors : 'Värit', + tools : 'Työkalut' + }, + + bidi : + { + ltr : 'Tekstin suunta vasemmalta oikealle', + rtl : 'Tekstin suunta oikealta vasemmalle' + }, + + docprops : + { + label : 'Dokumentin ominaisuudet', + title : 'Dokumentin ominaisuudet', + design : 'Sommittelu', + meta : 'Metatieto', + chooseColor : 'Valitse', + other : '<muu>', + docTitle : 'Sivun nimi', + charset : 'Merkistökoodaus', + charsetOther : 'Muu merkistökoodaus', + charsetASCII : 'ASCII', + charsetCE : 'Keskieurooppalainen', + charsetCT : 'Kiina, perinteinen (Big5)', + charsetCR : 'Kyrillinen', + charsetGR : 'Kreikka', + charsetJP : 'Japani', + charsetKR : 'Korealainen', + charsetTR : 'Turkkilainen', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Länsieurooppalainen', + docType : 'Dokumentin tyyppi', + docTypeOther : 'Muu dokumentin tyyppi', + xhtmlDec : 'Lisää XHTML julistukset', + bgColor : 'Taustaväri', + bgImage : 'Taustakuva', + bgFixed : 'Paikallaanpysyvä tausta', + txtColor : 'Tekstiväri', + margin : 'Sivun marginaalit', + marginTop : 'Ylä', + marginLeft : 'Vasen', + marginRight : 'Oikea', + marginBottom : 'Ala', + metaKeywords : 'Hakusanat (pilkulla erotettuna)', + metaDescription : 'Kuvaus', + metaAuthor : 'Tekijä', + metaCopyright : 'Tekijänoikeudet', + previewHtml : '<p>Tämä on <strong>esimerkkitekstiä</strong>. Käytät juuri <a href="javascript:void(0)">CKEditoria</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/fo.js b/htdocs/includes/ckeditor/_source/lang/fo.js new file mode 100644 index 0000000000000000000000000000000000000000..992090695268bc6188da3cfdf40567d77c6d59d3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/fo.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Faroese language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['fo'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Kelda', + newPage : 'Nýggj síða', + save : 'Goym', + preview : 'Frumsýning', + cut : 'Kvett', + copy : 'Avrita', + paste : 'Innrita', + print : 'Prenta', + underline : 'Undirstrikað', + bold : 'Feit skrift', + italic : 'Skráskrift', + selectAll : 'Markera alt', + removeFormat : 'Strika sniðgeving', + strike : 'Yvirstrikað', + subscript : 'Lækkað skrift', + superscript : 'Hækkað skrift', + horizontalrule : 'Ger vatnrætta linju', + pagebreak : 'Ger síðuskift', + pagebreakAlt : 'Síðuskift', + unlink : 'Strika tilknýti', + undo : 'Angra', + redo : 'Vend aftur', + + // Common messages and labels. + common : + { + browseServer : 'Ambætarakagi', + url : 'URL', + protocol : 'Protokoll', + upload : 'Send til ambætaran', + uploadSubmit : 'Send til ambætaran', + image : 'Myndir', + flash : 'Flash', + form : 'Formur', + checkbox : 'Flugubein', + radio : 'Radioknøttur', + textField : 'Tekstteigur', + textarea : 'Tekstumráði', + hiddenField : 'Fjaldur teigur', + button : 'Knøttur', + select : 'Valskrá', + imageButton : 'Myndaknøttur', + notSet : '<ikki sett>', + id : 'Id', + name : 'Navn', + langDir : 'Tekstkós', + langDirLtr : 'Frá vinstru til høgru (LTR)', + langDirRtl : 'Frá høgru til vinstru (RTL)', + langCode : 'Málkoda', + longDescr : 'Víðkað URL frágreiðing', + cssClass : 'Typografi klassar', + advisoryTitle : 'Vegleiðandi heiti', + cssStyle : 'Typografi', + ok : 'Góðkent', + cancel : 'Avlýst', + close : 'Lat aftur', + preview : 'Frumsýn', + generalTab : 'Generelt', + advancedTab : 'Fjølbroytt', + validateNumberFailed : 'Hetta er ikki eitt tal.', + confirmNewPage : 'Allar ikki goymdar broytingar í hesum innihaldið hvørva. Skal nýggj síða lesast kortini?', + confirmCancel : 'Nakrir valmøguleikar eru broyttir. Ert tú vísur í, at dialogurin skal latast aftur?', + options : 'Options', + target : 'Target', + targetNew : 'Nýtt vindeyga (_blank)', + targetTop : 'Vindeyga ovast (_top)', + targetSelf : 'Sama vindeyga (_self)', + targetParent : 'Upphavligt vindeyga (_parent)', + langDirLTR : 'Frá vinstru til høgru (LTR)', + langDirRTL : 'Frá høgru til vinstru (RTL)', + styles : 'Style', + cssClasses : 'Stylesheet Classes', + width : 'Breidd', + height : 'Hædd', + align : 'Justering', + alignLeft : 'Vinstra', + alignRight : 'Høgra', + alignCenter : 'Miðsett', + alignTop : 'Ovast', + alignMiddle : 'Miðja', + alignBottom : 'Botnur', + invalidHeight : 'Hædd má vera eitt tal.', + invalidWidth : 'Breidd má vera eitt tal.', + invalidCssLength : 'Virðið sett í "%1" feltið má vera eitt positivt tal, við ella uttan gyldugum CSS mátieind (px, %, in, cm, mm, em, ex, pt, ella pc).', + invalidHtmlLength : 'Virðið sett í "%1" feltiðield má vera eitt positivt tal, við ella uttan gyldugum CSS mátieind (px ella %).', + invalidInlineStyle : 'Virði specifiserað fyri inline style má hava eitt ella fleiri pør (tuples) skrivað sum "name : value", hvørt parið sundurskilt við semi-colon.', + cssLengthTooltip : 'Skriva eitt tal fyri eitt virði í pixels ella eitt tal við gyldigum CSS eind (px, %, in, cm, mm, em, ex, pt, ella pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, ikki tøkt</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Set inn sertekn', + title : 'Vel sertekn', + options : 'Møguleikar við serteknum' + }, + + // Link dialog. + link : + { + toolbar : 'Ger/broyt tilknýti', + other : '<annað>', + menu : 'Broyt tilknýti', + title : 'Tilknýti', + info : 'Tilknýtis upplýsingar', + target : 'Target', + upload : 'Send til ambætaran', + advanced : 'Fjølbroytt', + type : 'Tilknýtisslag', + toUrl : 'URL', + toAnchor : 'Tilknýti til marknastein í tekstinum', + toEmail : 'Teldupostur', + targetFrame : '<ramma>', + targetPopup : '<popup vindeyga>', + targetFrameName : 'Vís navn vindeygans', + targetPopupName : 'Popup vindeygans navn', + popupFeatures : 'Popup vindeygans víðkaðu eginleikar', + popupResizable : 'Stødd kann broytast', + popupStatusBar : 'Støðufrágreiðingarbjálki', + popupLocationBar: 'Adressulinja', + popupToolbar : 'Amboðsbjálki', + popupMenuBar : 'Skrábjálki', + popupFullScreen : 'Fullur skermur (IE)', + popupScrollBars : 'Rullibjálki', + popupDependent : 'Bundið (Netscape)', + popupLeft : 'Frástøða frá vinstru', + popupTop : 'Frástøða frá íerva', + id : 'Id', + langDir : 'Tekstkós', + langDirLTR : 'Frá vinstru til høgru (LTR)', + langDirRTL : 'Frá høgru til vinstru (RTL)', + acccessKey : 'Snarvegisknöttur', + name : 'Navn', + langCode : 'Tekstkós', + tabIndex : 'Tabulator indeks', + advisoryTitle : 'Vegleiðandi heiti', + advisoryContentType : 'Vegleiðandi innihaldsslag', + cssClasses : 'Typografi klassar', + charset : 'Atknýtt teknsett', + styles : 'Typografi', + rel : 'Relatión', + selectAnchor : 'Vel ein marknastein', + anchorName : 'Eftir navni á marknasteini', + anchorId : 'Eftir element Id', + emailAddress : 'Teldupost-adressa', + emailSubject : 'Evni', + emailBody : 'Breyðtekstur', + noAnchors : '(Eingir marknasteinar eru í hesum dokumentið)', + noUrl : 'Vinarliga skriva tilknýti (URL)', + noEmail : 'Vinarliga skriva teldupost-adressu' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Ger/broyt marknastein', + menu : 'Eginleikar fyri marknastein', + title : 'Eginleikar fyri marknastein', + name : 'Heiti marknasteinsins', + errorName : 'Vinarliga rita marknasteinsins heiti', + remove : 'Strika marknastein' + }, + + // List style dialog + list: + { + numberedTitle : 'Eginleikar fyri lista við tølum', + bulletedTitle : 'Eginleikar fyri lista við prikkum', + type : 'Slag', + start : 'Byrjan', + validateStartNumber :'Byrjunartalið fyri lista má vera eitt heiltal.', + circle : 'Sirkul', + disc : 'Disc', + square : 'Fýrkantur', + none : 'Einki', + notset : '<ikki sett>', + armenian : 'Armensk talskipan', + georgian : 'Georgisk talskipan (an, ban, gan, osv.)', + lowerRoman : 'Lítil rómaratøl (i, ii, iii, iv, v, etc.)', + upperRoman : 'Stór rómaratøl (I, II, III, IV, V, etc.)', + lowerAlpha : 'Lítlir bókstavir (a, b, c, d, e, etc.)', + upperAlpha : 'Stórir bókstavir (A, B, C, D, E, etc.)', + lowerGreek : 'Grikskt við lítlum (alpha, beta, gamma, etc.)', + decimal : 'Vanlig tøl (1, 2, 3, etc.)', + decimalLeadingZero : 'Tøl við null frammanfyri (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Finn og broyt', + find : 'Leita', + replace : 'Yvirskriva', + findWhat : 'Finn:', + replaceWith : 'Yvirskriva við:', + notFoundMsg : 'Leititeksturin varð ikki funnin', + findOptions : 'Finn møguleikar', + matchCase : 'Munur á stórum og smáum bókstavum', + matchWord : 'Bert heil orð', + matchCyclic : 'Match cyclic', + replaceAll : 'Yvirskriva alt', + replaceSuccessMsg : '%1 úrslit broytt.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabell', + title : 'Eginleikar fyri tabell', + menu : 'Eginleikar fyri tabell', + deleteTable : 'Strika tabell', + rows : 'Røðir', + columns : 'Kolonnur', + border : 'Bordabreidd', + widthPx : 'pixels', + widthPc : 'prosent', + widthUnit : 'breiddar unit', + cellSpace : 'Fjarstøða millum meskar', + cellPad : 'Meskubreddi', + caption : 'Tabellfrágreiðing', + summary : 'Samandráttur', + headers : 'Yvirskriftir', + headersNone : 'Eingin', + headersColumn : 'Fyrsta kolonna', + headersRow : 'Fyrsta rað', + headersBoth : 'Báðir', + invalidRows : 'Talið av røðum má vera eitt tal størri enn 0.', + invalidCols : 'Talið av kolonnum má vera eitt tal størri enn 0.', + invalidBorder : 'Borda-stødd má vera eitt tal.', + invalidWidth : 'Tabell-breidd má vera eitt tal.', + invalidHeight : 'Tabell-hædd má vera eitt tal.', + invalidCellSpacing : 'Cell spacing má vera eitt tal.', + invalidCellPadding : 'Cell padding má vera eitt tal.', + + cell : + { + menu : 'Meski', + insertBefore : 'Set meska inn áðrenn', + insertAfter : 'Set meska inn aftaná', + deleteCell : 'Strika meskar', + merge : 'Flætta meskar', + mergeRight : 'Flætta meskar til høgru', + mergeDown : 'Flætta saman', + splitHorizontal : 'Kloyv meska vatnrætt', + splitVertical : 'Kloyv meska loddrætt', + title : 'Mesku eginleikar', + cellType : 'Mesku slag', + rowSpan : 'Ræð spenni', + colSpan : 'Kolonnu spenni', + wordWrap : 'Orðkloyving', + hAlign : 'Horisontal plasering', + vAlign : 'Loddrøtt plasering', + alignBaseline : 'Basislinja', + bgColor : 'Bakgrundslitur', + borderColor : 'Bordalitur', + data : 'Data', + header : 'Header', + yes : 'Ja', + no : 'Nei', + invalidWidth : 'Meskubreidd má vera eitt tal.', + invalidHeight : 'Meskuhædd má vera eitt tal.', + invalidRowSpan : 'Raðspennið má vera eitt heiltal.', + invalidColSpan : 'Kolonnuspennið má vera eitt heiltal.', + chooseColor : 'Vel' + }, + + row : + { + menu : 'Rað', + insertBefore : 'Set rað inn áðrenn', + insertAfter : 'Set rað inn aftaná', + deleteRow : 'Strika røðir' + }, + + column : + { + menu : 'Kolonna', + insertBefore : 'Set kolonnu inn áðrenn', + insertAfter : 'Set kolonnu inn aftaná', + deleteColumn : 'Strika kolonnur' + } + }, + + // Button Dialog. + button : + { + title : 'Eginleikar fyri knøtt', + text : 'Tekstur', + type : 'Slag', + typeBtn : 'Knøttur', + typeSbm : 'Send', + typeRst : 'Nullstilla' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Eginleikar fyri flugubein', + radioTitle : 'Eginleikar fyri radioknøtt', + value : 'Virði', + selected : 'Valt' + }, + + // Form Dialog. + form : + { + title : 'Eginleikar fyri Form', + menu : 'Eginleikar fyri Form', + action : 'Hending', + method : 'Háttur', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Eginleikar fyri valskrá', + selectInfo : 'Upplýsingar', + opAvail : 'Tøkir møguleikar', + value : 'Virði', + size : 'Stødd', + lines : 'Linjur', + chkMulti : 'Loyv fleiri valmøguleikum samstundis', + opText : 'Tekstur', + opValue : 'Virði', + btnAdd : 'Legg afturat', + btnModify : 'Broyt', + btnUp : 'Upp', + btnDown : 'Niður', + btnSetValue : 'Set sum valt virði', + btnDelete : 'Strika' + }, + + // Textarea Dialog. + textarea : + { + title : 'Eginleikar fyri tekstumráði', + cols : 'kolonnur', + rows : 'røðir' + }, + + // Text Field Dialog. + textfield : + { + title : 'Eginleikar fyri tekstteig', + name : 'Navn', + value : 'Virði', + charWidth : 'Breidd (sjónlig tekn)', + maxChars : 'Mest loyvdu tekn', + type : 'Slag', + typeText : 'Tekstur', + typePass : 'Loyniorð' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Eginleikar fyri fjaldan teig', + name : 'Navn', + value : 'Virði' + }, + + // Image Dialog. + image : + { + title : 'Myndaeginleikar', + titleButton : 'Eginleikar fyri myndaknøtt', + menu : 'Myndaeginleikar', + infoTab : 'Myndaupplýsingar', + btnUpload : 'Send til ambætaran', + upload : 'Send', + alt : 'Alternativur tekstur', + lockRatio : 'Læs lutfallið', + resetSize : 'Upprunastødd', + border : 'Bordi', + hSpace : 'Høgri breddi', + vSpace : 'Vinstri breddi', + alertUrl : 'Rita slóðina til myndina', + linkTab : 'Tilknýti', + button2Img : 'Skal valdi myndaknøttur gerast til vanliga mynd?', + img2Button : 'Skal valda mynd gerast til myndaknøtt?', + urlMissing : 'URL til mynd manglar.', + validateBorder : 'Bordi má vera eitt heiltal.', + validateHSpace : 'HSpace má vera eitt heiltal.', + validateVSpace : 'VSpace má vera eitt heiltal.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash eginleikar', + propertiesTab : 'Eginleikar', + title : 'Flash eginleikar', + chkPlay : 'Avspælingin byrjar sjálv', + chkLoop : 'Endurspæl', + chkMenu : 'Ger Flash skrá virkna', + chkFull : 'Loyv fullan skerm', + scale : 'Skalering', + scaleAll : 'Vís alt', + scaleNoBorder : 'Eingin bordi', + scaleFit : 'Neyv skalering', + access : 'Script atgongd', + accessAlways : 'Altíð', + accessSameDomain: 'Sama navnaøki', + accessNever : 'Ongantíð', + alignAbsBottom : 'Abs botnur', + alignAbsMiddle : 'Abs miðja', + alignBaseline : 'Basislinja', + alignTextTop : 'Tekst toppur', + quality : 'Góðska', + qualityBest : 'Besta', + qualityHigh : 'Høg', + qualityAutoHigh : 'Auto høg', + qualityMedium : 'Meðal', + qualityAutoLow : 'Auto Lág', + qualityLow : 'Lág', + windowModeWindow: 'Rútur', + windowModeOpaque: 'Ikki transparent', + windowModeTransparent : 'Transparent', + windowMode : 'Slag av rúti', + flashvars : 'Variablar fyri Flash', + bgcolor : 'Bakgrundslitur', + hSpace : 'Høgri breddi', + vSpace : 'Vinstri breddi', + validateSrc : 'Vinarliga skriva tilknýti (URL)', + validateHSpace : 'HSpace má vera eitt tal.', + validateVSpace : 'VSpace má vera eitt tal.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Kanna stavseting', + title : 'Kanna stavseting', + notAvailable : 'Tíverri, ikki tøkt í løtuni.', + errorLoading : 'Feilur við innlesing av application service host: %s.', + notInDic : 'Finst ikki í orðabókini', + changeTo : 'Broyt til', + btnIgnore : 'Forfjóna', + btnIgnoreAll : 'Forfjóna alt', + btnReplace : 'Yvirskriva', + btnReplaceAll : 'Yvirskriva alt', + btnUndo : 'Angra', + noSuggestions : '- Einki uppskot -', + progress : 'Rættstavarin arbeiðir...', + noMispell : 'Rættstavarin liðugur: Eingin feilur funnin', + noChanges : 'Rættstavarin liðugur: Einki orð varð broytt', + oneChange : 'Rættstavarin liðugur: Eitt orð er broytt', + manyChanges : 'Rættstavarin liðugur: %1 orð broytt', + ieSpellDownload : 'Rættstavarin er ikki tøkur í tekstviðgeranum. Vilt tú heinta hann nú?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Vel Smiley', + options : 'Møguleikar fyri Smiley' + }, + + elementsPath : + { + eleLabel : 'Slóð til elementir', + eleTitle : '%1 element' + }, + + numberedlist : 'Talmerktur listi', + bulletedlist : 'Punktmerktur listi', + indent : 'Økja reglubrotarinntriv', + outdent : 'Minka reglubrotarinntriv', + + justify : + { + left : 'Vinstrasett', + center : 'Miðsett', + right : 'Høgrasett', + block : 'Javnir tekstkantar' + }, + + blockquote : 'Blockquote', + + clipboard : + { + title : 'Innrita', + cutError : 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at kvetta tekstin. Vinarliga nýt knappaborðið til at kvetta tekstin (Ctrl/Cmd+X).', + copyError : 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at avrita tekstin. Vinarliga nýt knappaborðið til at avrita tekstin (Ctrl/Cmd+C).', + pasteMsg : 'Vinarliga koyr tekstin í hendan rútin við knappaborðinum (<strong>Ctrl/Cmd+V</strong>) og klikk á <strong>Góðtak</strong>.', + securityMsg : 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í beinleiðis atgongd til avritingarminnið. Tygum mugu royna aftur í hesum rútinum.', + pasteArea : 'Avritingarumráði' + }, + + pastefromword : + { + confirmCleanup : 'Teksturin, tú roynir at seta inn, sýnist at stava frá Word. Skal teksturin reinsast fyrst?', + toolbar : 'Innrita frá Word', + title : 'Innrita frá Word', + error : 'Tað eydnaðist ikki at reinsa tekstin vegna ein internan feil' + }, + + pasteText : + { + button : 'Innrita som reinan tekst', + title : 'Innrita som reinan tekst' + }, + + templates : + { + button : 'Skabelónir', + title : 'Innihaldsskabelónir', + options : 'Møguleikar fyri Template', + insertOption : 'Yvirskriva núverandi innihald', + selectPromptMsg : 'Vinarliga vel ta skabelón, ið skal opnast í tekstviðgeranum<br>(Hetta yvirskrivar núverandi innihald):', + emptyListMsg : '(Ongar skabelónir tøkar)' + }, + + showBlocks : 'Vís blokkar', + + stylesCombo : + { + label : 'Typografi', + panelTitle : 'Formatterings stílir', + panelTitle1 : 'Blokk stílir', + panelTitle2 : 'Inline stílir', + panelTitle3 : 'Object stílir' + }, + + format : + { + label : 'Skriftsnið', + panelTitle : 'Skriftsnið', + + tag_p : 'Vanligt', + tag_pre : 'Sniðgivið', + tag_address : 'Adressa', + tag_h1 : 'Yvirskrift 1', + tag_h2 : 'Yvirskrift 2', + tag_h3 : 'Yvirskrift 3', + tag_h4 : 'Yvirskrift 4', + tag_h5 : 'Yvirskrift 5', + tag_h6 : 'Yvirskrift 6', + tag_div : 'Vanligt (DIV)' + }, + + div : + { + title : 'Ger Div Container', + toolbar : 'Ger Div Container', + cssClassInputLabel : 'Stylesheet Classes', + styleSelectLabel : 'Style', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Language Code', + inlineStyleInputLabel : 'Inline Style', + advisoryTitleInputLabel : 'Advisory Title', + langDirLabel : 'Language Direction', + langDirLTRLabel : 'Vinstru til høgru (LTR)', + langDirRTLLabel : 'Høgru til vinstru (RTL)', + edit : 'Redigera Div', + remove : 'Strika Div' + }, + + iframe : + { + title : 'Møguleikar fyri IFrame', + toolbar : 'IFrame', + noUrl : 'Vinarliga skriva URL til iframe', + scrolling : 'Loyv scrollbars', + border : 'Vís frame kant' + }, + + font : + { + label : 'Skrift', + voiceLabel : 'Skrift', + panelTitle : 'Skrift' + }, + + fontSize : + { + label : 'Skriftstødd', + voiceLabel : 'Skriftstødd', + panelTitle : 'Skriftstødd' + }, + + colorButton : + { + textColorTitle : 'Tekstlitur', + bgColorTitle : 'Bakgrundslitur', + panelTitle : 'Litir', + auto : 'Automatiskt', + more : 'Fleiri litir...' + }, + + colors : + { + '000' : 'Svart', + '800000' : 'Maroon', + '8B4513' : 'Saðilsbrúnt', + '2F4F4F' : 'Dark Slate Gray', + '008080' : 'Teal', + '000080' : 'Navy', + '4B0082' : 'Indigo', + '696969' : 'Myrkagrátt', + 'B22222' : 'Fire Brick', + 'A52A2A' : 'Brúnt', + 'DAA520' : 'Gullstavur', + '006400' : 'Myrkagrønt', + '40E0D0' : 'Turquoise', + '0000CD' : 'Meðal blátt', + '800080' : 'Purple', + '808080' : 'Grátt', + 'F00' : 'Reytt', + 'FF8C00' : 'Myrkt appelsingult', + 'FFD700' : 'Gull', + '008000' : 'Grønt', + '0FF' : 'Cyan', + '00F' : 'Blátt', + 'EE82EE' : 'Violet', + 'A9A9A9' : 'Døkt grátt', + 'FFA07A' : 'Ljósur laksur', + 'FFA500' : 'Appelsingult', + 'FFFF00' : 'Gult', + '00FF00' : 'Lime', + 'AFEEEE' : 'Pale Turquoise', + 'ADD8E6' : 'Ljósablátt', + 'DDA0DD' : 'Plum', + 'D3D3D3' : 'Ljósagrátt', + 'FFF0F5' : 'Lavender Blush', + 'FAEBD7' : 'Klassiskt hvítt', + 'FFFFE0' : 'Ljósagult', + 'F0FFF0' : 'Hunangsdøggur', + 'F0FFFF' : 'Azure', + 'F0F8FF' : 'Alice Blátt', + 'E6E6FA' : 'Lavender', + 'FFF' : 'Hvítt' + }, + + scayt : + { + title : 'Kanna stavseting, meðan tú skrivar', + opera_title : 'Ikki stuðlað í Opera', + enable : 'Loyv SCAYT', + disable : 'Nokta SCAYT', + about : 'Um SCAYT', + toggle : 'Toggle SCAYT', + options : 'Uppseting', + langs : 'Tungumál', + moreSuggestions : 'Fleiri tilráðingar', + ignore : 'Ignorera', + ignoreAll : 'Ignorera alt', + addWord : 'Legg orð afturat', + emptyDic : 'Heiti á orðabók eigur ikki at vera tómt.', + + optionsTab : 'Uppseting', + allCaps : 'Loyp orð við bert stórum stavum um', + ignoreDomainNames : 'loyp økisnøvn um', + mixedCase : 'Loyp orð við blandaðum smáum og stórum stavum um', + mixedWithDigits : 'Loyp orð við tølum um', + + languagesTab : 'Tungumál', + + dictionariesTab : 'Orðabøkur', + dic_field_name : 'Orðabókanavn', + dic_create : 'Upprætta nýggja', + dic_restore : 'Endurskapa', + dic_delete : 'Strika', + dic_rename : 'Broyt', + dic_info : 'Upprunaliga er brúkara-orðabókin goymd í eini cookie í tínum egna kaga. Men hesar cookies eru avmarkaðar í stødd. Tá brúkara-orðabókin veksur seg ov stóra til eina cookie, so er møguligt at goyma hana á ambætara okkara. Fyri at goyma persónligu orðabókina á ambætaranum eigur tú at velja eitt navn til tína skuffu. Hevur tú longu goymt eina orðabók, so vinarliga skriva navnið og klikk á knøttin Endurskapa.', + + aboutTab : 'Um' + }, + + about : + { + title : 'Um CKEditor', + dlgTitle : 'Um CKEditor', + help : 'Kekka $1 fyri hjálp.', + userGuide : 'CKEditor Brúkaravegleiðing', + moreInfo : 'Licens upplýsingar finnast á heimasíðu okkara:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Maksimera', + minimize : 'Minimera', + + fakeobjects : + { + anchor : 'Anchor', + flash : 'Flash Animation', + iframe : 'IFrame', + hiddenfield : 'Fjaldur teigur', + unknown : 'Ókent Object' + }, + + resize : 'Drag fyri at broyta stødd', + + colordialog : + { + title : 'Vel lit', + options : 'Litmøguleikar', + highlight : 'Framheva', + selected : 'Valdur litur', + clear : 'Strika' + }, + + toolbarCollapse : 'Lat Toolbar aftur', + toolbarExpand : 'Vís Toolbar', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Clipboard/Undo', + editing : 'Editering', + forms : 'Formar', + basicstyles : 'Grundleggjandi Styles', + paragraph : 'Reglubrot', + links : 'Leinkjur', + insert : 'Set inn', + styles : 'Styles', + colors : 'Litir', + tools : 'Tól' + }, + + bidi : + { + ltr : 'Tekstkós frá vinstru til høgru', + rtl : 'Tekstkós frá høgru til vinstru' + }, + + docprops : + { + label : 'Eginleikar fyri dokument', + title : 'Eginleikar fyri dokument', + design : 'Design', + meta : 'META-upplýsingar', + chooseColor : 'Vel', + other : '<annað>', + docTitle : 'Síðuheiti', + charset : 'Teknsett koda', + charsetOther : 'Onnur teknsett koda', + charsetASCII : 'ASCII', + charsetCE : 'Miðeuropa', + charsetCT : 'Kinesiskt traditionelt (Big5)', + charsetCR : 'Cyrilliskt', + charsetGR : 'Grikst', + charsetJP : 'Japanskt', + charsetKR : 'Koreanskt', + charsetTR : 'Turkiskt', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Vestureuropa', + docType : 'Dokumentslag yvirskrift', + docTypeOther : 'Annað dokumentslag yvirskrift', + xhtmlDec : 'Viðfest XHTML deklaratiónir', + bgColor : 'Bakgrundslitur', + bgImage : 'Leið til bakgrundsmynd (URL)', + bgFixed : 'Læst bakgrund (rullar ikki)', + txtColor : 'Tekstlitur', + margin : 'Síðubreddar', + marginTop : 'Ovast', + marginLeft : 'Vinstra', + marginRight : 'Høgra', + marginBottom : 'Niðast', + metaKeywords : 'Dokument index lyklaorð (sundurbýtt við komma)', + metaDescription : 'Dokumentlýsing', + metaAuthor : 'Høvundur', + metaCopyright : 'Upphavsrættindi', + previewHtml : '<p>Hetta er ein <strong>royndartekstur</strong>. Tygum brúka <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/fr-ca.js b/htdocs/includes/ckeditor/_source/lang/fr-ca.js new file mode 100644 index 0000000000000000000000000000000000000000..8ffbf54456909101ab4a265008308084dd89c21e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/fr-ca.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Canadian French language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['fr-ca'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Source', + newPage : 'Nouvelle page', + save : 'Sauvegarder', + preview : 'Previsualiser', + cut : 'Couper', + copy : 'Copier', + paste : 'Coller', + print : 'Imprimer', + underline : 'Souligné', + bold : 'Gras', + italic : 'Italique', + selectAll : 'Tout sélectionner', + removeFormat : 'Supprimer le formatage', + strike : 'Barrer', + subscript : 'Indice', + superscript : 'Exposant', + horizontalrule : 'Insérer un séparateur', + pagebreak : 'Insérer un saut de page', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Supprimer le lien', + undo : 'Annuler', + redo : 'Refaire', + + // Common messages and labels. + common : + { + browseServer : 'Parcourir le serveur', + url : 'URL', + protocol : 'Protocole', + upload : 'Télécharger', + uploadSubmit : 'Envoyer sur le serveur', + image : 'Image', + flash : 'Animation Flash', + form : 'Formulaire', + checkbox : 'Case à cocher', + radio : 'Bouton radio', + textField : 'Champ texte', + textarea : 'Zone de texte', + hiddenField : 'Champ caché', + button : 'Bouton', + select : 'Champ de sélection', + imageButton : 'Bouton image', + notSet : '<Par défaut>', + id : 'Id', + name : 'Nom', + langDir : 'Sens d\'écriture', + langDirLtr : 'De gauche à droite (LTR)', + langDirRtl : 'De droite à gauche (RTL)', + langCode : 'Code langue', + longDescr : 'URL de description longue', + cssClass : 'Classes de feuilles de style', + advisoryTitle : 'Titre', + cssStyle : 'Style', + ok : 'OK', + cancel : 'Annuler', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'Général', + advancedTab : 'Avancée', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Largeur', + height : 'Hauteur', + align : 'Alignement', + alignLeft : 'Gauche', + alignRight : 'Droite', + alignCenter : 'Centré', + alignTop : 'Haut', + alignMiddle : 'Milieu', + alignBottom : 'Bas', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insérer un caractère spécial', + title : 'Insérer un caractère spécial', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Insérer/modifier le lien', + other : '<other>', // MISSING + menu : 'Modifier le lien', + title : 'Propriétés du lien', + info : 'Informations sur le lien', + target : 'Destination', + upload : 'Télécharger', + advanced : 'Avancée', + type : 'Type de lien', + toUrl : 'URL', // MISSING + toAnchor : 'Ancre dans cette page', + toEmail : 'E-Mail', + targetFrame : '<Cadre>', + targetPopup : '<fenêtre popup>', + targetFrameName : 'Nom du cadre de destination', + targetPopupName : 'Nom de la fenêtre popup', + popupFeatures : 'Caractéristiques de la fenêtre popup', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Barre d\'état', + popupLocationBar: 'Barre d\'adresses', + popupToolbar : 'Barre d\'outils', + popupMenuBar : 'Barre de menu', + popupFullScreen : 'Plein écran (IE)', + popupScrollBars : 'Barres de défilement', + popupDependent : 'Dépendante (Netscape)', + popupLeft : 'Position à partir de la gauche', + popupTop : 'Position à partir du haut', + id : 'Id', // MISSING + langDir : 'Sens d\'écriture', + langDirLTR : 'De gauche à droite (LTR)', + langDirRTL : 'De droite à gauche (RTL)', + acccessKey : 'Équivalent clavier', + name : 'Nom', + langCode : 'Sens d\'écriture', + tabIndex : 'Ordre de tabulation', + advisoryTitle : 'Titre', + advisoryContentType : 'Type de contenu', + cssClasses : 'Classes de feuilles de style', + charset : 'Encodage de caractère', + styles : 'Style', + rel : 'Relationship', // MISSING + selectAnchor : 'Sélectionner une ancre', + anchorName : 'Par nom', + anchorId : 'Par id', + emailAddress : 'Adresse E-Mail', + emailSubject : 'Sujet du message', + emailBody : 'Corps du message', + noAnchors : '(Pas d\'ancre disponible dans le document)', + noUrl : 'Veuillez saisir l\'URL', + noEmail : 'Veuillez saisir l\'adresse e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Insérer/modifier l\'ancre', + menu : 'Propriétés de l\'ancre', + title : 'Propriétés de l\'ancre', + name : 'Nom de l\'ancre', + errorName : 'Veuillez saisir le nom de l\'ancre', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Chercher et Remplacer', + find : 'Chercher', + replace : 'Remplacer', + findWhat : 'Rechercher:', + replaceWith : 'Remplacer par:', + notFoundMsg : 'Le texte indiqué est introuvable.', + findOptions : 'Find Options', // MISSING + matchCase : 'Respecter la casse', + matchWord : 'Mot entier', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Tout remplacer', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Tableau', + title : 'Propriétés du tableau', + menu : 'Propriétés du tableau', + deleteTable : 'Supprimer le tableau', + rows : 'Lignes', + columns : 'Colonnes', + border : 'Taille de la bordure', + widthPx : 'pixels', + widthPc : 'pourcentage', + widthUnit : 'width unit', // MISSING + cellSpace : 'Espacement', + cellPad : 'Contour', + caption : 'Titre', + summary : 'Résumé', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cellule', + insertBefore : 'Insérer une cellule avant', + insertAfter : 'Insérer une cellule après', + deleteCell : 'Supprimer des cellules', + merge : 'Fusionner les cellules', + mergeRight : 'Fusionner à droite', + mergeDown : 'Fusionner en bas', + splitHorizontal : 'Scinder la cellule horizontalement', + splitVertical : 'Scinder la cellule verticalement', + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Ligne', + insertBefore : 'Insérer une ligne avant', + insertAfter : 'Insérer une ligne après', + deleteRow : 'Supprimer des lignes' + }, + + column : + { + menu : 'Colonne', + insertBefore : 'Insérer une colonne avant', + insertAfter : 'Insérer une colonne après', + deleteColumn : 'Supprimer des colonnes' + } + }, + + // Button Dialog. + button : + { + title : 'Propriétés du bouton', + text : 'Texte (Valeur)', + type : 'Type', + typeBtn : 'Bouton', + typeSbm : 'Soumettre', + typeRst : 'Réinitialiser' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Propriétés de la case à cocher', + radioTitle : 'Propriétés du bouton radio', + value : 'Valeur', + selected : 'Sélectionné' + }, + + // Form Dialog. + form : + { + title : 'Propriétés du formulaire', + menu : 'Propriétés du formulaire', + action : 'Action', + method : 'Méthode', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Propriétés de la liste/du menu', + selectInfo : 'Info', + opAvail : 'Options disponibles', + value : 'Valeur', + size : 'Taille', + lines : 'lignes', + chkMulti : 'Sélection multiple', + opText : 'Texte', + opValue : 'Valeur', + btnAdd : 'Ajouter', + btnModify : 'Modifier', + btnUp : 'Monter', + btnDown : 'Descendre', + btnSetValue : 'Valeur sélectionnée', + btnDelete : 'Supprimer' + }, + + // Textarea Dialog. + textarea : + { + title : 'Propriétés de la zone de texte', + cols : 'Colonnes', + rows : 'Lignes' + }, + + // Text Field Dialog. + textfield : + { + title : 'Propriétés du champ texte', + name : 'Nom', + value : 'Valeur', + charWidth : 'Largeur en caractères', + maxChars : 'Nombre maximum de caractères', + type : 'Type', + typeText : 'Texte', + typePass : 'Mot de passe' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Propriétés du champ caché', + name : 'Nom', + value : 'Valeur' + }, + + // Image Dialog. + image : + { + title : 'Propriétés de l\'image', + titleButton : 'Propriétés du bouton image', + menu : 'Propriétés de l\'image', + infoTab : 'Informations sur l\'image', + btnUpload : 'Envoyer sur le serveur', + upload : 'Télécharger', + alt : 'Texte de remplacement', + lockRatio : 'Garder les proportions', + resetSize : 'Taille originale', + border : 'Bordure', + hSpace : 'Espacement horizontal', + vSpace : 'Espacement vertical', + alertUrl : 'Veuillez saisir l\'URL de l\'image', + linkTab : 'Lien', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Propriétés de l\'animation Flash', + propertiesTab : 'Properties', // MISSING + title : 'Propriétés de l\'animation Flash', + chkPlay : 'Lecture automatique', + chkLoop : 'Boucle', + chkMenu : 'Activer le menu Flash', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Affichage', + scaleAll : 'Par défaut (tout montrer)', + scaleNoBorder : 'Sans bordure', + scaleFit : 'Ajuster aux dimensions', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs Bas', + alignAbsMiddle : 'Abs Milieu', + alignBaseline : 'Bas du texte', + alignTextTop : 'Haut du texte', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Couleur de fond', + hSpace : 'Espacement horizontal', + vSpace : 'Espacement vertical', + validateSrc : 'Veuillez saisir l\'URL', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Orthographe', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Pas dans le dictionnaire', + changeTo : 'Changer en', + btnIgnore : 'Ignorer', + btnIgnoreAll : 'Ignorer tout', + btnReplace : 'Remplacer', + btnReplaceAll : 'Remplacer tout', + btnUndo : 'Annuler', + noSuggestions : '- Pas de suggestion -', + progress : 'Vérification d\'orthographe en cours...', + noMispell : 'Vérification d\'orthographe terminée: pas d\'erreur trouvée', + noChanges : 'Vérification d\'orthographe terminée: Pas de modifications', + oneChange : 'Vérification d\'orthographe terminée: Un mot modifié', + manyChanges : 'Vérification d\'orthographe terminée: %1 mots modifiés', + ieSpellDownload : 'Le Correcteur d\'orthographe n\'est pas installé. Souhaitez-vous le télécharger maintenant?' + }, + + smiley : + { + toolbar : 'Emoticon', + title : 'Insérer un Emoticon', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Liste numérotée', + bulletedlist : 'Liste à puces', + indent : 'Augmenter le retrait', + outdent : 'Diminuer le retrait', + + justify : + { + left : 'Aligner à gauche', + center : 'Centrer', + right : 'Aligner à Droite', + block : 'Texte justifié' + }, + + blockquote : 'Citation', + + clipboard : + { + title : 'Coller', + cutError : 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de couper automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+X).', + copyError : 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de copier automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+C).', + pasteMsg : 'Veuillez coller dans la zone ci-dessous en utilisant le clavier (<STRONG>Ctrl/Cmd+V</STRONG>) et appuyer sur <STRONG>OK</STRONG>.', + securityMsg : 'A cause des paramètres de sécurité de votre navigateur, l\'éditeur ne peut accéder au presse-papier directement. Vous devez coller à nouveau le contenu dans cette fenêtre.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Coller en tant que Word (formaté)', + title : 'Coller en tant que Word (formaté)', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Coller comme texte', + title : 'Coller comme texte' + }, + + templates : + { + button : 'Modèles', + title : 'Modèles de contenu', + options : 'Template Options', // MISSING + insertOption : 'Remplacer tout le contenu actuel', + selectPromptMsg : 'Sélectionner le modèle à ouvrir dans l\'éditeur<br>(le contenu actuel sera remplacé):', + emptyListMsg : '(Aucun modèle disponible)' + }, + + showBlocks : 'Afficher les blocs', + + stylesCombo : + { + label : 'Style', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normal', + tag_pre : 'Formaté', + tag_address : 'Adresse', + tag_h1 : 'En-tête 1', + tag_h2 : 'En-tête 2', + tag_h3 : 'En-tête 3', + tag_h4 : 'En-tête 4', + tag_h5 : 'En-tête 5', + tag_h6 : 'En-tête 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Police', + voiceLabel : 'Font', // MISSING + panelTitle : 'Police' + }, + + fontSize : + { + label : 'Taille', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Taille' + }, + + colorButton : + { + textColorTitle : 'Couleur de caractère', + bgColorTitle : 'Couleur de fond', + panelTitle : 'Colors', // MISSING + auto : 'Automatique', + more : 'Plus de couleurs...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Propriétés du document', + title : 'Propriétés du document', + design : 'Design', // MISSING + meta : 'Méta-Données', + chooseColor : 'Choose', // MISSING + other : '<other>', + docTitle : 'Titre de la page', + charset : 'Encodage de caractère', + charsetOther : 'Autre encodage de caractère', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Europe Centrale', + charsetCT : 'Chinois Traditionnel (Big5)', + charsetCR : 'Cyrillique', + charsetGR : 'Grecque', + charsetJP : 'Japonais', + charsetKR : 'Coréen', + charsetTR : 'Turcque', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Occidental', + docType : 'Type de document', + docTypeOther : 'Autre type de document', + xhtmlDec : 'Inclure les déclarations XHTML', + bgColor : 'Couleur de fond', + bgImage : 'Image de fond', + bgFixed : 'Image fixe sans défilement', + txtColor : 'Couleur de caractère', + margin : 'Marges', + marginTop : 'Haut', + marginLeft : 'Gauche', + marginRight : 'Droite', + marginBottom : 'Bas', + metaKeywords : 'Mots-clés (séparés par des virgules)', + metaDescription : 'Description', + metaAuthor : 'Auteur', + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/fr.js b/htdocs/includes/ckeditor/_source/lang/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..a4a0bde58c6b944b0db39abbcd620401c6a5fdfd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/fr.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * French language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['fr'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Barre d\'outils de l\'éditeur', + editor : 'Éditeur de Texte Enrichi', + + // Toolbar buttons without dialogs. + source : 'Source', + newPage : 'Nouvelle page', + save : 'Enregistrer', + preview : 'Aperçu', + cut : 'Couper', + copy : 'Copier', + paste : 'Coller', + print : 'Imprimer', + underline : 'Souligné', + bold : 'Gras', + italic : 'Italique', + selectAll : 'Tout sélectionner', + removeFormat : 'Supprimer la mise en forme', + strike : 'Barré', + subscript : 'Indice', + superscript : 'Exposant', + horizontalrule : 'Ligne horizontale', + pagebreak : 'Saut de page', + pagebreakAlt : 'Saut de page', + unlink : 'Supprimer le lien', + undo : 'Annuler', + redo : 'Rétablir', + + // Common messages and labels. + common : + { + browseServer : 'Explorer le serveur', + url : 'URL', + protocol : 'Protocole', + upload : 'Envoyer', + uploadSubmit : 'Envoyer sur le serveur', + image : 'Image', + flash : 'Flash', + form : 'Formulaire', + checkbox : 'Case à cocher', + radio : 'Bouton Radio', + textField : 'Champ texte', + textarea : 'Zone de texte', + hiddenField : 'Champ caché', + button : 'Bouton', + select : 'Liste déroulante', + imageButton : 'Bouton image', + notSet : '<non défini>', + id : 'Id', + name : 'Nom', + langDir : 'Sens d\'écriture', + langDirLtr : 'Gauche à droite (LTR)', + langDirRtl : 'Droite à gauche (RTL)', + langCode : 'Code de langue', + longDescr : 'URL de description longue (longdesc => malvoyant)', + cssClass : 'Classe CSS', + advisoryTitle : 'Description (title)', + cssStyle : 'Style', + ok : 'OK', + cancel : 'Annuler', + close : 'Fermer', + preview : 'Aperçu', + generalTab : 'Général', + advancedTab : 'Avancé', + validateNumberFailed : 'Cette valeur n\'est pas un nombre.', + confirmNewPage : 'Les changements non sauvegardés seront perdus. Êtes-vous sûr de vouloir charger une nouvelle page?', + confirmCancel : 'Certaines options ont été modifiées. Êtes-vous sûr de vouloir fermer?', + options : 'Options', + target : 'Cible (Target)', + targetNew : 'Nouvelle fenêtre (_blank)', + targetTop : 'Fenêtre supérieure (_top)', + targetSelf : 'Même fenêtre (_self)', + targetParent : 'Fenêtre parent (_parent)', + langDirLTR : 'Gauche à Droite (LTR)', + langDirRTL : 'Droite à Gauche (RTL)', + styles : 'Style', + cssClasses : 'Classes de style', + width : 'Largeur', + height : 'Hauteur', + align : 'Alignement', + alignLeft : 'Gauche', + alignRight : 'Droite', + alignCenter : 'Centré', + alignTop : 'Haut', + alignMiddle : 'Milieu', + alignBottom : 'Bas', + invalidHeight : 'La hauteur doit être un nombre.', + invalidWidth : 'La largeur doit être un nombre.', + invalidCssLength : 'La valeur spécifiée pour le champ "%1" doit être un nombre positif avec ou sans unité de mesure CSS valide (px, %, in, cm, mm, em, ex, pt, or pc).', + invalidHtmlLength : 'La valeur spécifiée pour le champ "%1" doit être un nombre positif avec ou sans unité de mesure HTML valide (px or %).', + invalidInlineStyle : 'La valeur spécifiée pour le style inline doit être composée d\'un ou plusieurs couples de valeur au format "nom : valeur", separés par des points-virgules.', + cssLengthTooltip : 'Entrer un nombre pour une valeur en pixels ou un nombre avec une unité de mesure CSS valide (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, Indisponible</span>' + }, + + contextmenu : + { + options : 'Options du menu contextuel' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insérer un caractère spécial', + title : 'Sélectionnez un caractère', + options : 'Options des caractères spéciaux' + }, + + // Link dialog. + link : + { + toolbar : 'Lien', + other : '<autre>', + menu : 'Editer le lien', + title : 'Lien', + info : 'Infos sur le lien', + target : 'Cible', + upload : 'Envoyer', + advanced : 'Avancé', + type : 'Type de lien', + toUrl : 'URL', + toAnchor : 'Transformer le lien en ancre dans le texte', + toEmail : 'E-mail', + targetFrame : '<cadre>', + targetPopup : '<fenêtre popup>', + targetFrameName : 'Nom du Cadre destination', + targetPopupName : 'Nom de la fenêtre popup', + popupFeatures : 'Options de la fenêtre popup', + popupResizable : 'Redimensionnable', + popupStatusBar : 'Barre de status', + popupLocationBar: 'Barre d\'adresse', + popupToolbar : 'Barre d\'outils', + popupMenuBar : 'Barre de menu', + popupFullScreen : 'Plein écran (IE)', + popupScrollBars : 'Barres de défilement', + popupDependent : 'Dépendante (Netscape)', + popupLeft : 'Position gauche', + popupTop : 'Position haute', + id : 'Id', + langDir : 'Sens d\'écriture', + langDirLTR : 'Gauche à droite', + langDirRTL : 'Droite à gauche', + acccessKey : 'Touche d\'accessibilité', + name : 'Nom', + langCode : 'Code de langue', + tabIndex : 'Index de tabulation', + advisoryTitle : 'Description (title)', + advisoryContentType : 'Type de contenu (ex: text/html)', + cssClasses : 'Classe CSS', + charset : 'Charset de la cible', + styles : 'Style', + rel : 'Relation', + selectAnchor : 'Sélectionner l\'ancre', + anchorName : 'Par nom d\'ancre', + anchorId : 'Par ID d\'élément', + emailAddress : 'Adresse E-Mail', + emailSubject : 'Sujet du message', + emailBody : 'Corps du message', + noAnchors : '(Aucune ancre disponible dans ce document)', + noUrl : 'Veuillez entrer l\'adresse du lien', + noEmail : 'Veuillez entrer l\'adresse e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Ancre', + menu : 'Editer l\'ancre', + title : 'Propriétés de l\'ancre', + name : 'Nom de l\'ancre', + errorName : 'Veuillez entrer le nom de l\'ancre.', + remove : 'Supprimer l\'ancre' + }, + + // List style dialog + list: + { + numberedTitle : 'Propriétés de la liste numérotée', + bulletedTitle : 'Propriétés de la liste à puces', + type : 'Type', + start : 'Début', + validateStartNumber :'Le premier élément de la liste doit être un nombre entier.', + circle : 'Cercle', + disc : 'Disque', + square : 'Carré', + none : 'Aucun', + notset : '<Non défini>', + armenian : 'Numération arménienne', + georgian : 'Numération géorgienne (an, ban, gan, etc.)', + lowerRoman : 'Nombres romains minuscules (i, ii, iii, iv, v, etc.)', + upperRoman : 'Nombres romains majuscules (I, II, III, IV, V, etc.)', + lowerAlpha : 'Alphabétique minuscules (a, b, c, d, e, etc.)', + upperAlpha : 'Alphabétique majuscules (A, B, C, D, E, etc.)', + lowerGreek : 'Grec minuscule (alpha, beta, gamma, etc.)', + decimal : 'Décimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Décimal précédé par un 0 (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Trouver et remplacer', + find : 'Trouver', + replace : 'Remplacer', + findWhat : 'Expression à trouver: ', + replaceWith : 'Remplacer par: ', + notFoundMsg : 'Le texte spécifié ne peut être trouvé.', + findOptions : 'Options de recherche', + matchCase : 'Respecter la casse', + matchWord : 'Mot entier uniquement', + matchCyclic : 'Boucler', + replaceAll : 'Remplacer tout', + replaceSuccessMsg : '%1 occurrence(s) replacée(s).' + }, + + // Table Dialog + table : + { + toolbar : 'Tableau', + title : 'Propriétés du tableau', + menu : 'Propriétés du tableau', + deleteTable : 'Supprimer le tableau', + rows : 'Lignes', + columns : 'Colonnes', + border : 'Taille de la bordure', + widthPx : 'pixels', + widthPc : '% pourcents', + widthUnit : 'unité de largeur', + cellSpace : 'Espacement des cellules', + cellPad : 'Marge interne des cellules', + caption : 'Titre du tableau', + summary : 'Résumé (description)', + headers : 'En-Têtes', + headersNone : 'Aucunes', + headersColumn : 'Première colonne', + headersRow : 'Première ligne', + headersBoth : 'Les deux', + invalidRows : 'Le nombre de lignes doit être supérieur à 0.', + invalidCols : 'Le nombre de colonnes doit être supérieur à 0.', + invalidBorder : 'La taille de la bordure doit être un nombre.', + invalidWidth : 'La largeur du tableau doit être un nombre.', + invalidHeight : 'La hauteur du tableau doit être un nombre.', + invalidCellSpacing : 'L\'espacement des cellules doit être un nombre positif.', + invalidCellPadding : 'La marge intérieure des cellules doit être un nombre positif.', + + cell : + { + menu : 'Cellule', + insertBefore : 'Insérer une cellule avant', + insertAfter : 'Insérer une cellule après', + deleteCell : 'Supprimer les cellules', + merge : 'Fusionner les cellules', + mergeRight : 'Fusionner à droite', + mergeDown : 'Fusionner en bas', + splitHorizontal : 'Fractionner horizontalement', + splitVertical : 'Fractionner verticalement', + title : 'Propriétés de la cellule', + cellType : 'Type de cellule', + rowSpan : 'Fusion de lignes', + colSpan : 'Fusion de colonnes', + wordWrap : 'Césure', + hAlign : 'Alignement Horizontal', + vAlign : 'Alignement Vertical', + alignBaseline : 'Bas du texte', + bgColor : 'Couleur d\'arrière-plan', + borderColor : 'Couleur de Bordure', + data : 'Données', + header : 'Entête', + yes : 'Oui', + no : 'Non', + invalidWidth : 'La Largeur de Cellule doit être un nombre.', + invalidHeight : 'La Hauteur de Cellule doit être un nombre.', + invalidRowSpan : 'La fusion de lignes doit être un nombre entier.', + invalidColSpan : 'La fusion de colonnes doit être un nombre entier.', + chooseColor : 'Choisissez' + }, + + row : + { + menu : 'Ligne', + insertBefore : 'Insérer une ligne avant', + insertAfter : 'Insérer une ligne après', + deleteRow : 'Supprimer les lignes' + }, + + column : + { + menu : 'Colonnes', + insertBefore : 'Insérer une colonne avant', + insertAfter : 'Insérer une colonne après', + deleteColumn : 'Supprimer les colonnes' + } + }, + + // Button Dialog. + button : + { + title : 'Propriétés du bouton', + text : 'Texte (Value)', + type : 'Type', + typeBtn : 'Bouton', + typeSbm : 'Validation (submit)', + typeRst : 'Remise à zéro' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Propriétés de la case à cocher', + radioTitle : 'Propriétés du bouton Radio', + value : 'Valeur', + selected : 'Sélectionné' + }, + + // Form Dialog. + form : + { + title : 'Propriétés du formulaire', + menu : 'Propriétés du formulaire', + action : 'Action', + method : 'Méthode', + encoding : 'Encodage' + }, + + // Select Field Dialog. + select : + { + title : 'Propriétés du menu déroulant', + selectInfo : 'Informations sur le menu déroulant', + opAvail : 'Options disponibles', + value : 'Valeur', + size : 'Taille', + lines : 'Lignes', + chkMulti : 'Permettre les sélections multiples', + opText : 'Texte', + opValue : 'Valeur', + btnAdd : 'Ajouter', + btnModify : 'Modifier', + btnUp : 'Haut', + btnDown : 'Bas', + btnSetValue : 'Définir comme valeur sélectionnée', + btnDelete : 'Supprimer' + }, + + // Textarea Dialog. + textarea : + { + title : 'Propriétés de la zone de texte', + cols : 'Colonnes', + rows : 'Lignes' + }, + + // Text Field Dialog. + textfield : + { + title : 'Propriétés du champ texte', + name : 'Nom', + value : 'Valeur', + charWidth : 'Taille des caractères', + maxChars : 'Nombre maximum de caractères', + type : 'Type', + typeText : 'Texte', + typePass : 'Mot de passe' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Propriétés du champ caché', + name : 'Nom', + value : 'Valeur' + }, + + // Image Dialog. + image : + { + title : 'Propriétés de l\'image', + titleButton : 'Propriétés du bouton image', + menu : 'Propriétés de l\'image', + infoTab : 'Informations sur l\'image', + btnUpload : 'Envoyer sur le serveur', + upload : 'Envoyer', + alt : 'Texte de remplacement', + lockRatio : 'Conserver les proportions', + resetSize : 'Taille d\'origine', + border : 'Bordure', + hSpace : 'Espacement horizontal', + vSpace : 'Espacement vertical', + alertUrl : 'Veuillez entrer l\'adresse de l\'image', + linkTab : 'Lien', + button2Img : 'Voulez-vous transformer le bouton image sélectionné en simple image?', + img2Button : 'Voulez-vous transformer l\'image en bouton image?', + urlMissing : 'L\'adresse source de l\'image est manquante.', + validateBorder : 'Bordure doit être un entier.', + validateHSpace : 'HSpace doit être un entier.', + validateVSpace : 'VSpace doit être un entier.' + }, + + // Flash Dialog + flash : + { + properties : 'Propriétés du Flash', + propertiesTab : 'Propriétés', + title : 'Propriétés du Flash', + chkPlay : 'Jouer automatiquement', + chkLoop : 'Boucle', + chkMenu : 'Activer le menu Flash', + chkFull : 'Permettre le plein écran', + scale : 'Echelle', + scaleAll : 'Afficher tout', + scaleNoBorder : 'Pas de bordure', + scaleFit : 'Taille d\'origine', + access : 'Accès aux scripts', + accessAlways : 'Toujours', + accessSameDomain: 'Même domaine', + accessNever : 'Jamais', + alignAbsBottom : 'Bas absolu', + alignAbsMiddle : 'Milieu absolu', + alignBaseline : 'Bas du texte', + alignTextTop : 'Haut du texte', + quality : 'Qualité', + qualityBest : 'Meilleure', + qualityHigh : 'Haute', + qualityAutoHigh : 'Haute Auto', + qualityMedium : 'Moyenne', + qualityAutoLow : 'Basse Auto', + qualityLow : 'Basse', + windowModeWindow: 'Fenêtre', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Transparent', + windowMode : 'Mode fenêtre', + flashvars : 'Variables du Flash', + bgcolor : 'Couleur d\'arrière-plan', + hSpace : 'Espacement horizontal', + vSpace : 'Espacement vertical', + validateSrc : 'L\'adresse ne doit pas être vide.', + validateHSpace : 'L\'espacement horizontal doit être un nombre.', + validateVSpace : 'L\'espacement vertical doit être un nombre.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Vérifier l\'orthographe', + title : 'Vérifier l\'orthographe', + notAvailable : 'Désolé, le service est indisponible actuellement.', + errorLoading : 'Erreur du chargement du service depuis l\'hôte : %s.', + notInDic : 'N\'existe pas dans le dictionnaire.', + changeTo : 'Modifier pour', + btnIgnore : 'Ignorer', + btnIgnoreAll : 'Ignorer tout', + btnReplace : 'Remplacer', + btnReplaceAll : 'Remplacer tout', + btnUndo : 'Annuler', + noSuggestions : '- Aucune suggestion -', + progress : 'Vérification de l\'orthographe en cours...', + noMispell : 'Vérification de l\'orthographe terminée : aucune erreur trouvée.', + noChanges : 'Vérification de l\'orthographe terminée : Aucun mot corrigé.', + oneChange : 'Vérification de l\'orthographe terminée : Un seul mot corrigé.', + manyChanges : 'Vérification de l\'orthographe terminée : %1 mots corrigés.', + ieSpellDownload : 'La vérification d\'orthographe n\'est pas installée. Voulez-vous la télécharger maintenant?' + }, + + smiley : + { + toolbar : 'Émoticones', + title : 'Insérer un émoticone', + options : 'Options des émoticones' + }, + + elementsPath : + { + eleLabel : 'Elements path', + eleTitle : '%1 éléments' + }, + + numberedlist : 'Insérer/Supprimer la liste numérotée', + bulletedlist : 'Insérer/Supprimer la liste à puces', + indent : 'Augmenter le retrait (tabulation)', + outdent : 'Diminuer le retrait (tabulation)', + + justify : + { + left : 'Aligner à gauche', + center : 'Centrer', + right : 'Aligner à droite', + block : 'Justifier' + }, + + blockquote : 'Citation', + + clipboard : + { + title : 'Coller', + cutError : 'Les paramètres de sécurité de votre navigateur ne permettent pas à l\'éditeur d\'exécuter automatiquement l\'opération "couper". Veuillez utiliser le raccourci clavier (Ctrl/Cmd+X).', + copyError : 'Les paramètres de sécurité de votre navigateur ne permettent pas à l\'éditeur d\'exécuter automatiquement des opérations de copie. Veuillez utiliser le raccourci clavier (Ctrl/Cmd+C).', + pasteMsg : 'Veuillez coller le texte dans la zone suivante en utilisant le raccourci clavier (<strong>Ctrl/Cmd+V</strong>) et cliquez sur OK.', + securityMsg : 'A cause des paramètres de sécurité de votre navigateur, l\'éditeur n\'est pas en mesure d\'accéder directement à vos données contenues dans le presse-papier. Vous devriez réessayer de coller les données dans la fenêtre.', + pasteArea : 'Coller la zone' + }, + + pastefromword : + { + confirmCleanup : 'Le texte à coller semble provenir de Word. Désirez-vous le nettoyer avant de coller?', + toolbar : 'Coller depuis Word', + title : 'Coller depuis Word', + error : 'Il n\'a pas été possible de nettoyer les données collées à la suite d\'une erreur interne.' + }, + + pasteText : + { + button : 'Coller comme texte sans mise en forme', + title : 'Coller comme texte sans mise en forme' + }, + + templates : + { + button : 'Modèles', + title : 'Contenu des modèles', + options : 'Options des modèles', + insertOption : 'Remplacer le contenu actuel', + selectPromptMsg : 'Veuillez sélectionner le modèle pour l\'ouvrir dans l\'éditeur', + emptyListMsg : '(Aucun modèle disponible)' + }, + + showBlocks : 'Afficher les blocs', + + stylesCombo : + { + label : 'Styles', + panelTitle : 'Styles de mise en page', + panelTitle1 : 'Styles de blocs', + panelTitle2 : 'Styles en ligne', + panelTitle3 : 'Styles d\'objet' + }, + + format : + { + label : 'Format', + panelTitle : 'Format de paragraphe', + + tag_p : 'Normal', + tag_pre : 'Formaté', + tag_address : 'Adresse', + tag_h1 : 'Titre 1', + tag_h2 : 'Titre 2', + tag_h3 : 'Titre 3', + tag_h4 : 'Titre 4', + tag_h5 : 'Titre 5', + tag_h6 : 'Titre 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Créer un container DIV', + toolbar : 'Créer un container DIV', + cssClassInputLabel : 'Classe CSS', + styleSelectLabel : 'Style', + IdInputLabel : 'Id', + languageCodeInputLabel : 'Code de langue', + inlineStyleInputLabel : 'Style en ligne', + advisoryTitleInputLabel : 'Advisory Title', + langDirLabel : 'Sens d\'écriture', + langDirLTRLabel : 'Gauche à droite (LTR)', + langDirRTLLabel : 'Droite à gauche (RTL)', + edit : 'Éditer la DIV', + remove : 'Enlever la DIV' + }, + + iframe : + { + title : 'Propriétés de la IFrame', + toolbar : 'IFrame', + noUrl : 'Veuillez entrer l\'adresse du lien de la IFrame', + scrolling : 'Permettre à la barre de défilement', + border : 'Afficher une bordure de la IFrame' + }, + + font : + { + label : 'Police', + voiceLabel : 'Police', + panelTitle : 'Style de police' + }, + + fontSize : + { + label : 'Taille', + voiceLabel : 'Taille de police', + panelTitle : 'Taille de police' + }, + + colorButton : + { + textColorTitle : 'Couleur de texte', + bgColorTitle : 'Couleur d\'arrière plan', + panelTitle : 'Couleurs', + auto : 'Automatique', + more : 'Plus de couleurs...' + }, + + colors : + { + '000' : 'Noir', + '800000' : 'Marron', + '8B4513' : 'Brun moyen', + '2F4F4F' : 'Vert sombre', + '008080' : 'Canard', + '000080' : 'Bleu marine', + '4B0082' : 'Indigo', + '696969' : 'Gris foncé', + 'B22222' : 'Rouge brique', + 'A52A2A' : 'Brun', + 'DAA520' : 'Or terni', + '006400' : 'Vert foncé', + '40E0D0' : 'Turquoise', + '0000CD' : 'Bleu royal', + '800080' : 'Pourpre', + '808080' : 'Gris', + 'F00' : 'Rouge', + 'FF8C00' : 'Orange foncé', + 'FFD700' : 'Or', + '008000' : 'Vert', + '0FF' : 'Cyan', + '00F' : 'Bleu', + 'EE82EE' : 'Violet', + 'A9A9A9' : 'Gris moyen', + 'FFA07A' : 'Saumon', + 'FFA500' : 'Orange', + 'FFFF00' : 'Jaune', + '00FF00' : 'Lime', + 'AFEEEE' : 'Turquoise clair', + 'ADD8E6' : 'Bleu clair', + 'DDA0DD' : 'Prune', + 'D3D3D3' : 'Gris clair', + 'FFF0F5' : 'Fard Lavande', + 'FAEBD7' : 'Blanc antique', + 'FFFFE0' : 'Jaune clair', + 'F0FFF0' : 'Honeydew', + 'F0FFFF' : 'Azur', + 'F0F8FF' : 'Bleu Alice', + 'E6E6FA' : 'Lavande', + 'FFF' : 'Blanc' + }, + + scayt : + { + title : 'Vérification de l\'Orthographe en Cours de Frappe (SCAYT)', + opera_title : 'Non supporté par Opera', + enable : 'Activer SCAYT', + disable : 'Désactiver SCAYT', + about : 'A propos de SCAYT', + toggle : 'Activer/Désactiver SCAYT', + options : 'Options', + langs : 'Langues', + moreSuggestions : 'Plus de suggestions', + ignore : 'Ignorer', + ignoreAll : 'Ignorer Tout', + addWord : 'Ajouter le mot', + emptyDic : 'Le nom du dictionnaire ne devrait pas être vide.', + + optionsTab : 'Options', + allCaps : 'Ignorer les mots entièrement en majuscules', + ignoreDomainNames : 'Ignorer les noms de domaines', + mixedCase : 'Ignorer les mots à casse multiple', + mixedWithDigits : 'Ignorer les mots contenant des chiffres', + + languagesTab : 'Langues', + + dictionariesTab : 'Dictionnaires', + dic_field_name : 'Nom du dictionnaire', + dic_create : 'Créer', + dic_restore : 'Restaurer', + dic_delete : 'Effacer', + dic_rename : 'Renommer', + dic_info : 'Initialement, le dictionnaire de l\'utilisateur est stocké dans un cookie. Cependant, les cookies sont limités en taille. Quand le dictionnaire atteint une taille qu\'il n\'est plus possible de stocker dans un cookie, il peut alors être stocké sur nos serveurs. Afin de stocker votre dictionnaire personnel sur nos serveurs, vous devez spécifier un nom pour ce dictionnaire. Si vous avez déjà un dictionnaire stocké, merci de taper son nom puis cliquer sur Restaurer pour le récupérer.', + + aboutTab : 'À propos de' + }, + + about : + { + title : 'À propos de CKEditor', + dlgTitle : 'À propos de CKEditor', + help : 'Consulter $1 pour l\'aide.', + userGuide : 'Guide de l\'utilisateur CKEditor en anglais', + moreInfo : 'Pour les informations de licence, veuillez visiter notre site web:', + copy : 'Copyright © $1. Tous droits réservés.' + }, + + maximize : 'Agrandir', + minimize : 'Minimiser', + + fakeobjects : + { + anchor : 'Ancre', + flash : 'Animation Flash', + iframe : 'IFrame', + hiddenfield : 'Champ caché', + unknown : 'Objet inconnu' + }, + + resize : 'Déplacer pour modifier la taille', + + colordialog : + { + title : 'Choisir une couleur', + options : 'Option des couleurs', + highlight : 'Détails', + selected : 'Couleur choisie', + clear : 'Effacer' + }, + + toolbarCollapse : 'Enrouler la barre d\'outils', + toolbarExpand : 'Dérouler la barre d\'outils', + + toolbarGroups : + { + document : 'Document', + clipboard : 'Presse-papier/Défaire', + editing : 'Editer', + forms : 'Formulaires', + basicstyles : 'Styles de base', + paragraph : 'Paragraphe', + links : 'Liens', + insert : 'Insérer', + styles : 'Styles', + colors : 'Couleurs', + tools : 'Outils' + }, + + bidi : + { + ltr : 'Direction du texte de la gauche vers la droite', + rtl : 'Direction du texte de la droite vers la gauche' + }, + + docprops : + { + label : 'Propriétés du document', + title : 'Propriétés du document', + design : 'Design', + meta : 'Métadonnées', + chooseColor : 'Choisissez', + other : '<autre>', + docTitle : 'Titre de la page', + charset : 'Encodage de caractère', + charsetOther : 'Autre encodage de caractère', + charsetASCII : 'ASCII', + charsetCE : 'Europe Centrale', + charsetCT : 'Chinois Traditionnel (Big5)', + charsetCR : 'Cyrillique', + charsetGR : 'Grec', + charsetJP : 'Japonais', + charsetKR : 'Coréen', + charsetTR : 'Turc', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Occidental', + docType : 'Type de document', + docTypeOther : 'Autre type de document', + xhtmlDec : 'Inclure les déclarations XHTML', + bgColor : 'Couleur de fond', + bgImage : 'Image de fond', + bgFixed : 'Image fixe sans défilement', + txtColor : 'Couleur de texte', + margin : 'Marges', + marginTop : 'Haut', + marginLeft : 'Gauche', + marginRight : 'Droite', + marginBottom : 'Bas', + metaKeywords : 'Mots-clés (séparés par des virgules)', + metaDescription : 'Description', + metaAuthor : 'Auteur', + metaCopyright : 'Copyright', + previewHtml : '<p>Ceci est un <strong>texte d\'exemple</strong>. Vous utilisez <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/gl.js b/htdocs/includes/ckeditor/_source/lang/gl.js new file mode 100644 index 0000000000000000000000000000000000000000..abc4f4976f4acbac1de414d8bce5f8cb23143baa --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/gl.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Galician language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['gl'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Código Fonte', + newPage : 'Nova Páxina', + save : 'Gardar', + preview : 'Vista Previa', + cut : 'Cortar', + copy : 'Copiar', + paste : 'Pegar', + print : 'Imprimir', + underline : 'Sub-raiado', + bold : 'Negrita', + italic : 'Cursiva', + selectAll : 'Seleccionar todo', + removeFormat : 'Eliminar Formato', + strike : 'Tachado', + subscript : 'Subíndice', + superscript : 'Superíndice', + horizontalrule : 'Inserir Liña Horizontal', + pagebreak : 'Inserir Salto de Páxina', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Eliminar Ligazón', + undo : 'Desfacer', + redo : 'Refacer', + + // Common messages and labels. + common : + { + browseServer : 'Navegar no Servidor', + url : 'URL', + protocol : 'Protocolo', + upload : 'Carregar', + uploadSubmit : 'Enviar ó Servidor', + image : 'Imaxe', + flash : 'Flash', + form : 'Formulario', + checkbox : 'Cadro de Verificación', + radio : 'Botón de Radio', + textField : 'Campo de Texto', + textarea : 'Área de Texto', + hiddenField : 'Campo Oculto', + button : 'Botón', + select : 'Campo de Selección', + imageButton : 'Botón de Imaxe', + notSet : '<non definido>', + id : 'Id', + name : 'Nome', + langDir : 'Orientación do Idioma', + langDirLtr : 'Esquerda a Dereita (LTR)', + langDirRtl : 'Dereita a Esquerda (RTL)', + langCode : 'Código do Idioma', + longDescr : 'Descrición Completa da URL', + cssClass : 'Clases da Folla de Estilos', + advisoryTitle : 'Título', + cssStyle : 'Estilo', + ok : 'OK', + cancel : 'Cancelar', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Advanzado', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Largura', + height : 'Altura', + align : 'Aliñamento', + alignLeft : 'Esquerda', + alignRight : 'Dereita', + alignCenter : 'Centro', + alignTop : 'Tope', + alignMiddle : 'Centro', + alignBottom : 'Pé', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Inserir Carácter Especial', + title : 'Seleccione Caracter Especial', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Inserir/Editar Ligazón', + other : '<outro>', + menu : 'Editar Ligazón', + title : 'Ligazón', + info : 'Información da Ligazón', + target : 'Destino', + upload : 'Carregar', + advanced : 'Advanzado', + type : 'Tipo de Ligazón', + toUrl : 'URL', // MISSING + toAnchor : 'Referencia nesta páxina', + toEmail : 'E-Mail', + targetFrame : '<frame>', + targetPopup : '<Xanela Emerxente>', + targetFrameName : 'Nome do Marco Destino', + targetPopupName : 'Nome da Xanela Emerxente', + popupFeatures : 'Características da Xanela Emerxente', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Barra de Estado', + popupLocationBar: 'Barra de Localización', + popupToolbar : 'Barra de Ferramentas', + popupMenuBar : 'Barra de Menú', + popupFullScreen : 'A Toda Pantalla (IE)', + popupScrollBars : 'Barras de Desplazamento', + popupDependent : 'Dependente (Netscape)', + popupLeft : 'Posición Esquerda', + popupTop : 'Posición dende Arriba', + id : 'Id', // MISSING + langDir : 'Orientación do Idioma', + langDirLTR : 'Esquerda a Dereita (LTR)', + langDirRTL : 'Dereita a Esquerda (RTL)', + acccessKey : 'Chave de Acceso', + name : 'Nome', + langCode : 'Orientación do Idioma', + tabIndex : 'Índice de Tabulación', + advisoryTitle : 'Título', + advisoryContentType : 'Tipo de Contido', + cssClasses : 'Clases da Folla de Estilos', + charset : 'Fonte de Caracteres Vinculado', + styles : 'Estilo', + rel : 'Relationship', // MISSING + selectAnchor : 'Seleccionar unha Referencia', + anchorName : 'Por Nome de Referencia', + anchorId : 'Por Element Id', + emailAddress : 'Enderezo de E-Mail', + emailSubject : 'Asunto do Mensaxe', + emailBody : 'Corpo do Mensaxe', + noAnchors : '(Non hai referencias disponibles no documento)', + noUrl : 'Por favor, escriba a ligazón URL', + noEmail : 'Por favor, escriba o enderezo de e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Inserir/Editar Referencia', + menu : 'Propriedades da Referencia', + title : 'Propriedades da Referencia', + name : 'Nome da Referencia', + errorName : 'Por favor, escriba o nome da referencia', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Procurar', + replace : 'Substituir', + findWhat : 'Texto a procurar:', + replaceWith : 'Substituir con:', + notFoundMsg : 'Non te atopou o texto indicado.', + findOptions : 'Find Options', // MISSING + matchCase : 'Coincidir Mai./min.', + matchWord : 'Coincidir con toda a palabra', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Substitiur Todo', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Tabla', + title : 'Propiedades da Táboa', + menu : 'Propiedades da Táboa', + deleteTable : 'Borrar Táboa', + rows : 'Filas', + columns : 'Columnas', + border : 'Tamaño do Borde', + widthPx : 'pixels', + widthPc : 'percent', + widthUnit : 'width unit', // MISSING + cellSpace : 'Marxe entre Celas', + cellPad : 'Marxe interior', + caption : 'Título', + summary : 'Sumario', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cela', + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Borrar Cela', + merge : 'Unir Celas', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Fila', + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Borrar Filas' + }, + + column : + { + menu : 'Columna', + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Borrar Columnas' + } + }, + + // Button Dialog. + button : + { + title : 'Propriedades do Botón', + text : 'Texto (Valor)', + type : 'Tipo', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Propriedades do Cadro de Verificación', + radioTitle : 'Propriedades do Botón de Radio', + value : 'Valor', + selected : 'Seleccionado' + }, + + // Form Dialog. + form : + { + title : 'Propriedades do Formulario', + menu : 'Propriedades do Formulario', + action : 'Acción', + method : 'Método', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Propriedades do Campo de Selección', + selectInfo : 'Info', + opAvail : 'Opcións Disponibles', + value : 'Valor', + size : 'Tamaño', + lines : 'liñas', + chkMulti : 'Permitir múltiples seleccións', + opText : 'Texto', + opValue : 'Valor', + btnAdd : 'Engadir', + btnModify : 'Modificar', + btnUp : 'Subir', + btnDown : 'Baixar', + btnSetValue : 'Definir como valor por defecto', + btnDelete : 'Borrar' + }, + + // Textarea Dialog. + textarea : + { + title : 'Propriedades da Área de Texto', + cols : 'Columnas', + rows : 'Filas' + }, + + // Text Field Dialog. + textfield : + { + title : 'Propriedades do Campo de Texto', + name : 'Nome', + value : 'Valor', + charWidth : 'Tamaño do Caracter', + maxChars : 'Máximo de Caracteres', + type : 'Tipo', + typeText : 'Texto', + typePass : 'Chave' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Propriedades do Campo Oculto', + name : 'Nome', + value : 'Valor' + }, + + // Image Dialog. + image : + { + title : 'Propriedades da Imaxe', + titleButton : 'Propriedades do Botón de Imaxe', + menu : 'Propriedades da Imaxe', + infoTab : 'Información da Imaxe', + btnUpload : 'Enviar ó Servidor', + upload : 'Carregar', + alt : 'Texto Alternativo', + lockRatio : 'Proporcional', + resetSize : 'Tamaño Orixinal', + border : 'Límite', + hSpace : 'Esp. Horiz.', + vSpace : 'Esp. Vert.', + alertUrl : 'Por favor, escriba a URL da imaxe', + linkTab : 'Ligazón', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Propriedades Flash', + propertiesTab : 'Properties', // MISSING + title : 'Propriedades Flash', + chkPlay : 'Auto Execución', + chkLoop : 'Bucle', + chkMenu : 'Activar Menú Flash', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Escalar', + scaleAll : 'Amosar Todo', + scaleNoBorder : 'Sen Borde', + scaleFit : 'Encaixar axustando', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs Inferior', + alignAbsMiddle : 'Abs Centro', + alignBaseline : 'Liña Base', + alignTextTop : 'Tope do Texto', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Cor do Fondo', + hSpace : 'Esp. Horiz.', + vSpace : 'Esp. Vert.', + validateSrc : 'Por favor, escriba a ligazón URL', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Corrección Ortográfica', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Non está no diccionario', + changeTo : 'Cambiar a', + btnIgnore : 'Ignorar', + btnIgnoreAll : 'Ignorar Todas', + btnReplace : 'Substituir', + btnReplaceAll : 'Substituir Todas', + btnUndo : 'Desfacer', + noSuggestions : '- Sen candidatos -', + progress : 'Corrección ortográfica en progreso...', + noMispell : 'Corrección ortográfica rematada: Non se atoparon erros', + noChanges : 'Corrección ortográfica rematada: Non se substituiu nengunha verba', + oneChange : 'Corrección ortográfica rematada: Unha verba substituida', + manyChanges : 'Corrección ortográfica rematada: %1 verbas substituidas', + ieSpellDownload : 'O corrector ortográfico non está instalado. ¿Quere descargalo agora?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Inserte un Smiley', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Lista Numerada', + bulletedlist : 'Marcas', + indent : 'Aumentar Sangría', + outdent : 'Disminuir Sangría', + + justify : + { + left : 'Aliñar á Esquerda', + center : 'Centrado', + right : 'Aliñar á Dereita', + block : 'Xustificado' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Pegar', + cutError : 'Os axustes de seguridade do seu navegador non permiten que o editor realice automáticamente as tarefas de corte. Por favor, use o teclado para iso (Ctrl/Cmd+X).', + copyError : 'Os axustes de seguridade do seu navegador non permiten que o editor realice automáticamente as tarefas de copia. Por favor, use o teclado para iso (Ctrl/Cmd+C).', + pasteMsg : 'Por favor, pegue dentro do seguinte cadro usando o teclado (<STRONG>Ctrl/Cmd+V</STRONG>) e pulse <STRONG>OK</STRONG>.', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Pegar dende Word', + title : 'Pegar dende Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Pegar como texto plano', + title : 'Pegar como texto plano' + }, + + templates : + { + button : 'Plantillas', + title : 'Plantillas de Contido', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Por favor, seleccione a plantilla a abrir no editor<br>(o contido actual perderase):', + emptyListMsg : '(Non hai plantillas definidas)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Estilo', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Formato', + panelTitle : 'Formato', + + tag_p : 'Normal', + tag_pre : 'Formateado', + tag_address : 'Enderezo', + tag_h1 : 'Enacabezado 1', + tag_h2 : 'Encabezado 2', + tag_h3 : 'Encabezado 3', + tag_h4 : 'Encabezado 4', + tag_h5 : 'Encabezado 5', + tag_h6 : 'Encabezado 6', + tag_div : 'Paragraph (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Tipo', + voiceLabel : 'Font', // MISSING + panelTitle : 'Tipo' + }, + + fontSize : + { + label : 'Tamaño', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Tamaño' + }, + + colorButton : + { + textColorTitle : 'Cor do Texto', + bgColorTitle : 'Cor do Fondo', + panelTitle : 'Colors', // MISSING + auto : 'Automático', + more : 'Máis Cores...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Propriedades do Documento', + title : 'Propriedades do Documento', + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : '<outro>', + docTitle : 'Título da Páxina', + charset : 'Codificación do Xogo de Caracteres', + charsetOther : 'Outra Codificación do Xogo de Caracteres', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Encabezado do Tipo de Documento', + docTypeOther : 'Outro Encabezado do Tipo de Documento', + xhtmlDec : 'Incluir Declaracións XHTML', + bgColor : 'Cor de Fondo', + bgImage : 'URL da Imaxe de Fondo', + bgFixed : 'Fondo Fixo', + txtColor : 'Cor do Texto', + margin : 'Marxes da Páxina', + marginTop : 'Arriba', + marginLeft : 'Esquerda', + marginRight : 'Dereita', + marginBottom : 'Abaixo', + metaKeywords : 'Palabras Chave de Indexación do Documento (separadas por comas)', + metaDescription : 'Descripción do Documento', + metaAuthor : 'Autor', + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/gu.js b/htdocs/includes/ckeditor/_source/lang/gu.js new file mode 100644 index 0000000000000000000000000000000000000000..eabc7f7cebc97a7216c999eda7b46b02148851ba --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/gu.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Gujarati language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['gu'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'એડીટર ટૂલ બાર', + editor : 'રીચ ટેક્ષ્ત્ એડીટર', + + // Toolbar buttons without dialogs. + source : 'મૂળ કે પ્રાથમિક દસ્તાવેજ', + newPage : 'નવુ પાનું', + save : 'સેવ', + preview : 'પૂર્વદર્શન', + cut : 'કાપવું', + copy : 'નકલ', + paste : 'પેસ્ટ', + print : 'પ્રિન્ટ', + underline : 'અન્ડર્લાઇન, નીચે લીટી', + bold : 'બોલ્ડ/સ્પષ્ટ', + italic : 'ઇટેલિક, ત્રાંસા', + selectAll : 'બઘું પસંદ કરવું', + removeFormat : 'ફૉર્મટ કાઢવું', + strike : 'છેકી નાખવું', + subscript : 'એક ચિહ્નની નીચે કરેલું બીજું ચિહ્ન', + superscript : 'એક ચિહ્ન ઉપર કરેલું બીજું ચિહ્ન.', + horizontalrule : 'સમસ્તરીય રેખા ઇન્સર્ટ/દાખલ કરવી', + pagebreak : 'ઇન્સર્ટ પેજબ્રેક/પાનાને અલગ કરવું/દાખલ કરવું', + pagebreakAlt : 'નવું પાનું', + unlink : 'લિંક કાઢવી', + undo : 'રદ કરવું; પહેલાં હતી એવી સ્થિતિ પાછી લાવવી', + redo : 'રિડૂ; પછી હતી એવી સ્થિતિ પાછી લાવવી', + + // Common messages and labels. + common : + { + browseServer : 'સર્વર બ્રાઉઝ કરો', + url : 'URL', + protocol : 'પ્રોટોકૉલ', + upload : 'અપલોડ', + uploadSubmit : 'આ સર્વરને મોકલવું', + image : 'ચિત્ર', + flash : 'ફ્લૅશ', + form : 'ફૉર્મ/પત્રક', + checkbox : 'ચેક બોક્સ', + radio : 'રેડિઓ બટન', + textField : 'ટેક્સ્ટ ફીલ્ડ, શબ્દ ક્ષેત્ર', + textarea : 'ટેક્સ્ટ એરિઆ, શબ્દ વિસ્તાર', + hiddenField : 'ગુપ્ત ક્ષેત્ર', + button : 'બટન', + select : 'પસંદગી ક્ષેત્ર', + imageButton : 'ચિત્ર બટન', + notSet : '<સેટ નથી>', + id : 'Id', + name : 'નામ', + langDir : 'ભાષા લેખવાની પદ્ધતિ', + langDirLtr : 'ડાબે થી જમણે (LTR)', + langDirRtl : 'જમણે થી ડાબે (RTL)', + langCode : 'ભાષા કોડ', + longDescr : 'વધારે માહિતી માટે URL', + cssClass : 'સ્ટાઇલ-શીટ ક્લાસ', + advisoryTitle : 'મુખ્ય મથાળું', + cssStyle : 'સ્ટાઇલ', + ok : 'ઠીક છે', + cancel : 'રદ કરવું', + close : 'બંધ કરવું', + preview : 'જોવું', + generalTab : 'જનરલ', + advancedTab : 'અડ્વાન્સડ', + validateNumberFailed : 'આ રકમ આકડો નથી.', + confirmNewPage : 'સવે કાર્ય વગરનું ફકરો ખોવાઈ જશે. તમને ખાતરી છે કે તમને નવું પાનું ખોલવું છે?', + confirmCancel : 'ઘણા વિકલ્પો બદલાયા છે. તમારે આ બોક્ષ્ બંધ કરવું છે?', + options : 'વિકલ્પો', + target : 'લક્ષ્ય', + targetNew : 'નવી વિન્ડો (_blank)', + targetTop : 'ઉપરની વિન્ડો (_top)', + targetSelf : 'એજ વિન્ડો (_self)', + targetParent : 'પેરનટ વિન્ડો (_parent)', + langDirLTR : 'ડાબે થી જમણે (LTR)', + langDirRTL : 'જમણે થી ડાબે (RTL)', + styles : 'શૈલી', + cssClasses : 'શૈલી કલાસીસ', + width : 'પહોળાઈ', + height : 'ઊંચાઈ', + align : 'લાઇનદોરીમાં ગોઠવવું', + alignLeft : 'ડાબી બાજુ ગોઠવવું', + alignRight : 'જમણી', + alignCenter : 'મધ્ય સેન્ટર', + alignTop : 'ઉપર', + alignMiddle : 'વચ્ચે', + alignBottom : 'નીચે', + invalidHeight : 'ઉંચાઈ એક આંકડો હોવો જોઈએ.', + invalidWidth : 'પોહળ ઈ એક આંકડો હોવો જોઈએ.', + invalidCssLength : '"%1" ની વેલ્યુ એક પોસીટીવ આંકડો હોવો જોઈએ અથવા CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc) વગર.', + invalidHtmlLength : '"%1" ની વેલ્યુ એક પોસીટીવ આંકડો હોવો જોઈએ અથવા HTML measurement unit (px or %) વગર.', + invalidInlineStyle : 'ઈનલાઈન સ્ટાઈલ ની વેલ્યુ "name : value" ના ફોર્મેટ માં હોવી જોઈએ, વચ્ચે સેમી-કોલોન જોઈએ.', + cssLengthTooltip : 'પિક્ષ્લ્ નો આંકડો CSS unit (px, %, in, cm, mm, em, ex, pt, or pc) માં નાખો.', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, નથી મળતું</span>' + }, + + contextmenu : + { + options : 'કોન્તેક્ષ્ત્ મેનુના વિકલ્પો' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'વિશિષ્ટ અક્ષર ઇન્સર્ટ/દાખલ કરવું', + title : 'સ્પેશિઅલ વિશિષ્ટ અક્ષર પસંદ કરો', + options : 'સ્પેશિઅલ કરેક્ટરના વિકલ્પો' + }, + + // Link dialog. + link : + { + toolbar : 'લિંક ઇન્સર્ટ/દાખલ કરવી', + other : '<other> <અન્ય>', + menu : ' લિંક એડિટ/માં ફેરફાર કરવો', + title : 'લિંક', + info : 'લિંક ઇન્ફૉ ટૅબ', + target : 'ટાર્ગેટ/લક્ષ્ય', + upload : 'અપલોડ', + advanced : 'અડ્વાન્સડ', + type : 'લિંક પ્રકાર', + toUrl : 'URL', + toAnchor : 'આ પેજનો ઍંકર', + toEmail : 'ઈ-મેલ', + targetFrame : '<ફ્રેમ>', + targetPopup : '<પૉપ-અપ વિન્ડો>', + targetFrameName : 'ટાર્ગેટ ફ્રેમ નું નામ', + targetPopupName : 'પૉપ-અપ વિન્ડો નું નામ', + popupFeatures : 'પૉપ-અપ વિન્ડો ફીચરસૅ', + popupResizable : 'રીસાઈઝએબલ', + popupStatusBar : 'સ્ટૅટસ બાર', + popupLocationBar: 'લોકેશન બાર', + popupToolbar : 'ટૂલ બાર', + popupMenuBar : 'મેન્યૂ બાર', + popupFullScreen : 'ફુલ સ્ક્રીન (IE)', + popupScrollBars : 'સ્ક્રોલ બાર', + popupDependent : 'ડિપેન્ડન્ટ (Netscape)', + popupLeft : 'ડાબી બાજુ', + popupTop : 'જમણી બાજુ', + id : 'Id', + langDir : 'ભાષા લેખવાની પદ્ધતિ', + langDirLTR : 'ડાબે થી જમણે (LTR)', + langDirRTL : 'જમણે થી ડાબે (RTL)', + acccessKey : 'ઍક્સેસ કી', + name : 'નામ', + langCode : 'ભાષા લેખવાની પદ્ધતિ', + tabIndex : 'ટૅબ ઇન્ડેક્સ', + advisoryTitle : 'મુખ્ય મથાળું', + advisoryContentType : 'મુખ્ય કન્ટેન્ટ પ્રકાર', + cssClasses : 'સ્ટાઇલ-શીટ ક્લાસ', + charset : 'લિંક રિસૉર્સ કૅરિક્ટર સેટ', + styles : 'સ્ટાઇલ', + rel : 'સંબંધની સ્થિતિ', + selectAnchor : 'ઍંકર પસંદ કરો', + anchorName : 'ઍંકર નામથી પસંદ કરો', + anchorId : 'ઍંકર એલિમન્ટ Id થી પસંદ કરો', + emailAddress : 'ઈ-મેલ સરનામું', + emailSubject : 'ઈ-મેલ વિષય', + emailBody : 'સંદેશ', + noAnchors : '(ડૉક્યુમન્ટમાં ઍંકરની સંખ્યા)', + noUrl : 'લિંક URL ટાઇપ કરો', + noEmail : 'ઈ-મેલ સરનામું ટાઇપ કરો' + }, + + // Anchor dialog + anchor : + { + toolbar : 'ઍંકર ઇન્સર્ટ/દાખલ કરવી', + menu : 'ઍંકરના ગુણ', + title : 'ઍંકરના ગુણ', + name : 'ઍંકરનું નામ', + errorName : 'ઍંકરનું નામ ટાઈપ કરો', + remove : 'સ્થિર નકરવું' + }, + + // List style dialog + list: + { + numberedTitle : 'આંકડાના લીસ્ટના ગુણ', + bulletedTitle : 'બુલેટેડ લીસ્ટના ગુણ', + type : 'પ્રકાર', + start : 'શરુ કરવું', + validateStartNumber :'લીસ્ટના સરુઆતનો આંકડો પુરો હોવો જોઈએ.', + circle : 'વર્તુળ', + disc : 'ડિસ્ક', + square : 'ચોરસ', + none : 'કસુ ', + notset : '<સેટ નથી>', + armenian : 'અરમેનિયન આંકડા પદ્ધતિ', + georgian : 'ગેઓર્ગિયન આંકડા પદ્ધતિ (an, ban, gan, etc.)', + lowerRoman : 'રોમન નાના (i, ii, iii, iv, v, etc.)', + upperRoman : 'રોમન મોટા (I, II, III, IV, V, etc.)', + lowerAlpha : 'આલ્ફા નાના (a, b, c, d, e, etc.)', + upperAlpha : 'આલ્ફા મોટા (A, B, C, D, E, etc.)', + lowerGreek : 'ગ્રીક નાના (alpha, beta, gamma, etc.)', + decimal : 'આંકડા (1, 2, 3, etc.)', + decimalLeadingZero : 'સુન્ય આગળ આંકડા (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'શોધવું અને બદલવું', + find : 'શોધવું', + replace : 'રિપ્લેસ/બદલવું', + findWhat : 'આ શોધો', + replaceWith : 'આનાથી બદલો', + notFoundMsg : 'તમે શોધેલી ટેક્સ્ટ નથી મળી', + findOptions : 'વીકલ્પ શોધો', + matchCase : 'કેસ સરખા રાખો', + matchWord : 'બઘા શબ્દ સરખા રાખો', + matchCyclic : 'સરખાવવા બધા', + replaceAll : 'બઘા બદલી ', + replaceSuccessMsg : '%1 ફેરફારો બાદલાયા છે.' + }, + + // Table Dialog + table : + { + toolbar : 'ટેબલ, કોઠો', + title : 'ટેબલ, કોઠાનું મથાળું', + menu : 'ટેબલ, કોઠાનું મથાળું', + deleteTable : 'કોઠો ડિલીટ/કાઢી નાખવું', + rows : 'પંક્તિના ખાના', + columns : 'કૉલમ/ઊભી કટાર', + border : 'કોઠાની બાજુ(બોર્ડર) સાઇઝ', + widthPx : 'પિકસલ', + widthPc : 'પ્રતિશત', + widthUnit : 'પોહાલાઈ એકમ', + cellSpace : 'સેલ અંતર', + cellPad : 'સેલ પૅડિંગ', + caption : 'મથાળું/કૅપ્શન ', + summary : 'ટૂંકો એહેવાલ', + headers : 'મથાળા', + headersNone : 'નથી ', + headersColumn : 'પહેલી ઊભી કટાર', + headersRow : 'પહેલી કટાર', + headersBoth : 'બેવું', + invalidRows : 'આડી કટાર, 0 કરતા વધારે હોવી જોઈએ.', + invalidCols : 'ઉભી કટાર, 0 કરતા વધારે હોવી જોઈએ.', + invalidBorder : 'બોર્ડર એક આંકડો હોવો જોઈએ', + invalidWidth : 'ટેબલની પોહલાઈ આંકડો હોવો જોઈએ.', + invalidHeight : 'ટેબલની ઊંચાઈ આંકડો હોવો જોઈએ.', + invalidCellSpacing : 'સેલ વચ્ચેની જગ્યા સુન્ય કરતા વધારે હોવી જોઈએ.', + invalidCellPadding : 'સેલની અંદરની જગ્યા સુન્ય કરતા વધારે હોવી જોઈએ.', + + cell : + { + menu : 'કોષના ખાના', + insertBefore : 'પહેલાં કોષ ઉમેરવો', + insertAfter : 'પછી કોષ ઉમેરવો', + deleteCell : 'કોષ ડિલીટ/કાઢી નાખવો', + merge : 'કોષ ભેગા કરવા', + mergeRight : 'જમણી બાજુ ભેગા કરવા', + mergeDown : 'નીચે ભેગા કરવા', + splitHorizontal : 'કોષને સમસ્તરીય વિભાજન કરવું', + splitVertical : 'કોષને સીધું ને ઊભું વિભાજન કરવું', + title : 'સેલના ગુણ', + cellType : 'સેલનો પ્રકાર', + rowSpan : 'આડી કટારની જગ્યા', + colSpan : 'ઊભી કતારની જગ્યા', + wordWrap : 'વર્ડ રેપ', + hAlign : 'સપાટ લાઈનદોરી', + vAlign : 'ઊભી લાઈનદોરી', + alignBaseline : 'બસે લાઈન', + bgColor : 'પાછાળનો રંગ', + borderColor : 'બોર્ડેર રંગ', + data : 'સ્વીકૃત માહિતી', + header : 'મથાળું', + yes : 'હા', + no : 'ના', + invalidWidth : 'સેલની પોહલાઈ આંકડો હોવો જોઈએ.', + invalidHeight : 'સેલની ઊંચાઈ આંકડો હોવો જોઈએ.', + invalidRowSpan : 'રો સ્પાન આંકડો હોવો જોઈએ.', + invalidColSpan : 'કોલમ સ્પાન આંકડો હોવો જોઈએ.', + chooseColor : 'પસંદ કરવું' + }, + + row : + { + menu : 'પંક્તિના ખાના', + insertBefore : 'પહેલાં પંક્તિ ઉમેરવી', + insertAfter : 'પછી પંક્તિ ઉમેરવી', + deleteRow : 'પંક્તિઓ ડિલીટ/કાઢી નાખવી' + }, + + column : + { + menu : 'કૉલમ/ઊભી કટાર', + insertBefore : 'પહેલાં કૉલમ/ઊભી કટાર ઉમેરવી', + insertAfter : 'પછી કૉલમ/ઊભી કટાર ઉમેરવી', + deleteColumn : 'કૉલમ/ઊભી કટાર ડિલીટ/કાઢી નાખવી' + } + }, + + // Button Dialog. + button : + { + title : 'બટનના ગુણ', + text : 'ટેક્સ્ટ (વૅલ્યૂ)', + type : 'પ્રકાર', + typeBtn : 'બટન', + typeSbm : 'સબ્મિટ', + typeRst : 'રિસેટ' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'ચેક બોક્સ ગુણ', + radioTitle : 'રેડિઓ બટનના ગુણ', + value : 'વૅલ્યૂ', + selected : 'સિલેક્ટેડ' + }, + + // Form Dialog. + form : + { + title : 'ફૉર્મ/પત્રકના ગુણ', + menu : 'ફૉર્મ/પત્રકના ગુણ', + action : 'ક્રિયા', + method : 'પદ્ધતિ', + encoding : 'અન્કોડીન્ગ' + }, + + // Select Field Dialog. + select : + { + title : 'પસંદગી ક્ષેત્રના ગુણ', + selectInfo : 'સૂચના', + opAvail : 'ઉપલબ્ધ વિકલ્પ', + value : 'વૅલ્યૂ', + size : 'સાઇઝ', + lines : 'લીટીઓ', + chkMulti : 'એકથી વધારે પસંદ કરી શકો', + opText : 'ટેક્સ્ટ', + opValue : 'વૅલ્યૂ', + btnAdd : 'ઉમેરવું', + btnModify : 'બદલવું', + btnUp : 'ઉપર', + btnDown : 'નીચે', + btnSetValue : 'પસંદ કરલી વૅલ્યૂ સેટ કરો', + btnDelete : 'રદ કરવું' + }, + + // Textarea Dialog. + textarea : + { + title : 'ટેક્સ્ટ એઅરિઆ, શબ્દ વિસ્તારના ગુણ', + cols : 'કૉલમ/ઊભી કટાર', + rows : 'પંક્તિઓ' + }, + + // Text Field Dialog. + textfield : + { + title : 'ટેક્સ્ટ ફીલ્ડ, શબ્દ ક્ષેત્રના ગુણ', + name : 'નામ', + value : 'વૅલ્યૂ', + charWidth : 'કેરેક્ટરની પહોળાઈ', + maxChars : 'અધિકતમ કેરેક્ટર', + type : 'ટાઇપ', + typeText : 'ટેક્સ્ટ', + typePass : 'પાસવર્ડ' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'ગુપ્ત ક્ષેત્રના ગુણ', + name : 'નામ', + value : 'વૅલ્યૂ' + }, + + // Image Dialog. + image : + { + title : 'ચિત્રના ગુણ', + titleButton : 'ચિત્ર બટનના ગુણ', + menu : 'ચિત્રના ગુણ', + infoTab : 'ચિત્ર ની જાણકારી', + btnUpload : 'આ સર્વરને મોકલવું', + upload : 'અપલોડ', + alt : 'ઑલ્ટર્નટ ટેક્સ્ટ', + lockRatio : 'લૉક ગુણોત્તર', + resetSize : 'રીસેટ સાઇઝ', + border : 'બોર્ડર', + hSpace : 'સમસ્તરીય જગ્યા', + vSpace : 'લંબરૂપ જગ્યા', + alertUrl : 'ચિત્રની URL ટાઇપ કરો', + linkTab : 'લિંક', + button2Img : 'તમારે ઈમેજ બટનને સાદી ઈમેજમાં બદલવું છે.', + img2Button : 'તમારે સાદી ઈમેજને ઈમેજ બટનમાં બદલવું છે.', + urlMissing : 'ઈમેજની મૂળ URL છે નહી.', + validateBorder : 'બોર્ડેર આંકડો હોવો જોઈએ.', + validateHSpace : 'HSpaceઆંકડો હોવો જોઈએ.', + validateVSpace : 'VSpace આંકડો હોવો જોઈએ. ' + }, + + // Flash Dialog + flash : + { + properties : 'ફ્લૅશના ગુણ', + propertiesTab : 'ગુણ', + title : 'ફ્લૅશ ગુણ', + chkPlay : 'ઑટો/સ્વયં પ્લે', + chkLoop : 'લૂપ', + chkMenu : 'ફ્લૅશ મેન્યૂ નો પ્રયોગ કરો', + chkFull : 'ફૂલ સ્ક્રીન કરવું', + scale : 'સ્કેલ', + scaleAll : 'સ્કેલ ઓલ/બધુ બતાવો', + scaleNoBorder : 'સ્કેલ બોર્ડર વગર', + scaleFit : 'સ્કેલ એકદમ ફીટ', + access : 'સ્ક્રીપ્ટ એક્સેસ', + accessAlways : 'હમેશાં', + accessSameDomain: 'એજ ડોમેન', + accessNever : 'નહી', + alignAbsBottom : 'Abs નીચે', + alignAbsMiddle : 'Abs ઉપર', + alignBaseline : 'આધાર લીટી', + alignTextTop : 'ટેક્સ્ટ ઉપર', + quality : 'ગુણધર્મ', + qualityBest : 'શ્રેષ્ઠ', + qualityHigh : 'ઊંચું', + qualityAutoHigh : 'ઓટો ઊંચું', + qualityMedium : 'મધ્યમ', + qualityAutoLow : 'ઓટો નીચું', + qualityLow : 'નીચું', + windowModeWindow: 'વિન્ડો', + windowModeOpaque: 'અપારદર્શક', + windowModeTransparent : 'પારદર્શક', + windowMode : 'વિન્ડો મોડ', + flashvars : 'ફલેશ ના વિકલ્પો', + bgcolor : 'બૅકગ્રાઉન્ડ રંગ,', + hSpace : 'સમસ્તરીય જગ્યા', + vSpace : 'લંબરૂપ જગ્યા', + validateSrc : 'લિંક URL ટાઇપ કરો', + validateHSpace : 'HSpace આંકડો હોવો જોઈએ.', + validateVSpace : 'VSpace આંકડો હોવો જોઈએ.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'જોડણી (સ્પેલિંગ) તપાસવી', + title : 'સ્પેલ ', + notAvailable : 'માફ કરશો, આ સુવિધા ઉપલબ્ધ નથી', + errorLoading : 'સર્વિસ એપ્લીકેશન લોડ નથી થ: %s.', + notInDic : 'શબ્દકોશમાં નથી', + changeTo : 'આનાથી બદલવું', + btnIgnore : 'ઇગ્નોર/અવગણના કરવી', + btnIgnoreAll : 'બધાની ઇગ્નોર/અવગણના કરવી', + btnReplace : 'બદલવું', + btnReplaceAll : 'બધા બદલી કરો', + btnUndo : 'અન્ડૂ', + noSuggestions : '- કઇ સજેશન નથી -', + progress : 'શબ્દની જોડણી/સ્પેલ ચેક ચાલુ છે...', + noMispell : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: ખોટી જોડણી મળી નથી', + noChanges : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: એકપણ શબ્દ બદલયો નથી', + oneChange : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: એક શબ્દ બદલયો છે', + manyChanges : 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: %1 શબ્દ બદલયા છે', + ieSpellDownload : 'સ્પેલ-ચેકર ઇન્સ્ટોલ નથી. શું તમે ડાઉનલોડ કરવા માંગો છો?' + }, + + smiley : + { + toolbar : 'સ્માઇલી', + title : 'સ્માઇલી પસંદ કરો', + options : 'સમ્ય્લી વિકલ્પો' + }, + + elementsPath : + { + eleLabel : 'એલીમેન્ટ્સ નો ', + eleTitle : 'એલીમેન્ટ %1' + }, + + numberedlist : 'સંખ્યાંકન સૂચિ', + bulletedlist : 'બુલેટ સૂચિ', + indent : 'ઇન્ડેન્ટ, લીટીના આરંભમાં જગ્યા વધારવી', + outdent : 'ઇન્ડેન્ટ લીટીના આરંભમાં જગ્યા ઘટાડવી', + + justify : + { + left : 'ડાબી બાજુએ/બાજુ તરફ', + center : 'સંકેંદ્રણ/સેંટરિંગ', + right : 'જમણી બાજુએ/બાજુ તરફ', + block : 'બ્લૉક, અંતરાય જસ્ટિફાઇ' + }, + + blockquote : 'બ્લૉક-કોટ, અવતરણચિહ્નો', + + clipboard : + { + title : 'પેસ્ટ', + cutError : 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કટ કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+X) નો ઉપયોગ કરો.', + copyError : 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કોપી કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+C) का प्रयोग करें।', + pasteMsg : 'Ctrl/Cmd+V નો પ્રયોગ કરી પેસ્ટ કરો', + securityMsg : 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસના કારણે,એડિટર તમારા કિલ્પબોર્ડ ડેટા ને કોપી નથી કરી શકતો. તમારે આ વિન્ડોમાં ફરીથી પેસ્ટ કરવું પડશે.', + pasteArea : 'પેસ્ટ કરવાની જગ્યા' + }, + + pastefromword : + { + confirmCleanup : 'તમે જે ટેક્ષ્ત્ કોપી કરી રહ્યા છો ટે વર્ડ ની છે. કોપી કરતા પેહલા સાફ કરવી છે?', + toolbar : 'પેસ્ટ (વડૅ ટેક્સ્ટ)', + title : 'પેસ્ટ (વડૅ ટેક્સ્ટ)', + error : 'પેસ્ટ કરેલો ડેટા ઇન્ટરનલ એરર ના લીથે સાફ કરી શકાયો નથી.' + }, + + pasteText : + { + button : 'પેસ્ટ (ટેક્સ્ટ)', + title : 'પેસ્ટ (ટેક્સ્ટ)' + }, + + templates : + { + button : 'ટેમ્પ્લેટ', + title : 'કન્ટેન્ટ ટેમ્પ્લેટ', + options : 'ટેમ્પ્લેટના વિકલ્પો', + insertOption : 'મૂળ શબ્દને બદલો', + selectPromptMsg : 'એડિટરમાં ઓપન કરવા ટેમ્પ્લેટ પસંદ કરો (વર્તમાન કન્ટેન્ટ સેવ નહીં થાય):', + emptyListMsg : '(કોઈ ટેમ્પ્લેટ ડિફાઇન નથી)' + }, + + showBlocks : 'બ્લૉક બતાવવું', + + stylesCombo : + { + label : 'શૈલી/રીત', + panelTitle : 'ફોર્મેટ ', + panelTitle1 : 'બ્લોક ', + panelTitle2 : 'ઈનલાઈન ', + panelTitle3 : 'ઓબ્જેક્ટ પદ્ધતિ' + }, + + format : + { + label : 'ફૉન્ટ ફૉર્મટ, રચનાની શૈલી', + panelTitle : 'ફૉન્ટ ફૉર્મટ, રચનાની શૈલી', + + tag_p : 'સામાન્ય', + tag_pre : 'ફૉર્મટેડ', + tag_address : 'સરનામું', + tag_h1 : 'શીર્ષક 1', + tag_h2 : 'શીર્ષક 2', + tag_h3 : 'શીર્ષક 3', + tag_h4 : 'શીર્ષક 4', + tag_h5 : 'શીર્ષક 5', + tag_h6 : 'શીર્ષક 6', + tag_div : 'શીર્ષક (DIV)' + }, + + div : + { + title : 'Div કન્ટેનર બનાવુંવું', + toolbar : 'Div કન્ટેનર બનાવુંવું', + cssClassInputLabel : 'સ્ટાઈલશીટ કલાસીસ', + styleSelectLabel : 'સ્ટાઈલ', + IdInputLabel : 'Id', + languageCodeInputLabel : 'ભાષાનો કોડ', + inlineStyleInputLabel : 'ઈનલાઈન પદ્ધતિ', + advisoryTitleInputLabel : 'એડવાઈઝર શીર્ષક', + langDirLabel : 'ભાષાની દિશા', + langDirLTRLabel : 'ડાબે થી જમણે (LTR)', + langDirRTLLabel : 'જમણે થી ડાબે (RTL)', + edit : 'ડીવીમાં ફેરફાર કરવો', + remove : 'ડીવી કાઢી કાઢવું' + }, + + iframe : + { + title : 'IFrame વિકલ્પો', + toolbar : 'IFrame', + noUrl : 'iframe URL ટાઈપ્ કરો', + scrolling : 'સ્ક્રોલબાર ચાલુ કરવા', + border : 'ફ્રેમ બોર્ડેર બતાવવી' + }, + + font : + { + label : 'ફૉન્ટ', + voiceLabel : 'ફોન્ટ', + panelTitle : 'ફૉન્ટ' + }, + + fontSize : + { + label : 'ફૉન્ટ સાઇઝ/કદ', + voiceLabel : 'ફોન્ટ સાઈઝ', + panelTitle : 'ફૉન્ટ સાઇઝ/કદ' + }, + + colorButton : + { + textColorTitle : 'શબ્દનો રંગ', + bgColorTitle : 'બૅકગ્રાઉન્ડ રંગ,', + panelTitle : 'રંગ', + auto : 'સ્વચાલિત', + more : 'ઔર રંગ...' + }, + + colors : + { + '000' : 'કાળો', + '800000' : 'મરુન', + '8B4513' : 'છીક', + '2F4F4F' : 'ડાર્ક સ્લેટ ગ્રે ', + '008080' : 'ટીલ', + '000080' : 'નેવી', + '4B0082' : 'જામલી', + '696969' : 'ડાર્ક ગ્રે', + 'B22222' : 'ઈટ', + 'A52A2A' : 'બ્રાઉન', + 'DAA520' : 'ગોલ્ડન રોડ', + '006400' : 'ડાર્ક લીલો', + '40E0D0' : 'ટ્રકોઈસ', + '0000CD' : 'મધ્યમ વાદળી', + '800080' : 'પર્પલ', + '808080' : 'ગ્રે', + 'F00' : 'લાલ', + 'FF8C00' : 'ડાર્ક ઓરંજ', + 'FFD700' : 'ગોલ્ડ', + '008000' : 'ગ્રીન', + '0FF' : 'સાયન', + '00F' : 'વાદળી', + 'EE82EE' : 'વાયોલેટ', + 'A9A9A9' : 'ડીમ ', + 'FFA07A' : 'લાઈટ સાલમન', + 'FFA500' : 'ઓરંજ', + 'FFFF00' : 'પીળો', + '00FF00' : 'લાઈમ', + 'AFEEEE' : 'પેલ કોઈસ', + 'ADD8E6' : 'લાઈટ બ્લુ', + 'DDA0DD' : 'પલ્મ', + 'D3D3D3' : 'લાઈટ ગ્રે', + 'FFF0F5' : 'લવંડર ', + 'FAEBD7' : 'એન્ટીક સફેદ', + 'FFFFE0' : 'લાઈટ પીળો', + 'F0FFF0' : 'હનીડઉય', + 'F0FFFF' : 'અઝુરે', + 'F0F8FF' : 'એલીસ બ્લુ', + 'E6E6FA' : 'લવંડર', + 'FFF' : 'સફેદ' + }, + + scayt : + { + title : 'ટાઈપ કરતા સ્પેલ તપાસો', + opera_title : 'ઓપેરામાં સપોર્ટ નથી', + enable : 'SCAYT એનેબલ કરવું', + disable : 'SCAYT ડિસેબલ કરવું', + about : 'SCAYT વિષે', + toggle : 'SCAYT ટોગલ', + options : 'વિકલ્પો', + langs : 'ભાષાઓ', + moreSuggestions : 'વધારે વિકલ્પો', + ignore : 'ઇગ્નોર', + ignoreAll : 'બધા ઇગ્નોર ', + addWord : 'શબ્દ ઉમેરવો', + emptyDic : 'ડિક્સનરીનું નામ ખાલી ના હોય.', + + optionsTab : 'વિકલ્પો', + allCaps : 'ઓલ-કેપ્સ વર્ડ છોડી દો.', + ignoreDomainNames : 'ડોમેન નામ છોડી દો.', + mixedCase : 'મિક્સ કેસ વર્ડ છોડી દો.', + mixedWithDigits : 'આંકડા વાળા શબ્દ છોડી દો.', + + languagesTab : 'ભાષા', + + dictionariesTab : 'શબ્દકોશ', + dic_field_name : 'શબ્દકોશ નામ', + dic_create : 'બનાવવું', + dic_restore : 'પાછું ', + dic_delete : 'કાઢી નાખવું', + dic_rename : 'નવું નામ આપવું', + dic_info : 'પેહલા User Dictionary, Cookie તરીકે સ્ટોર થાય છે. પણ Cookie ની સમતા ઓછી છે. જયારે User Dictionary, Cookie તરીકે સ્ટોર ના કરી શકાય, ત્યારે તે અમારા સર્વર પર સ્ટોર થાય છે. તમારી વ્યતિગત ડીકસ્નરી ને સર્વર પર સ્ટોર કરવા માટે તમારે તેનું નામ આપવું પડશે. જો તમે તમારી ડીકસ્નરી નું નામ આપેલું હોય તો તમે રિસ્ટોર બટન ક્લીક કરી શકો.', + + aboutTab : 'વિષે' + }, + + about : + { + title : 'CKEditor વિષે', + dlgTitle : 'CKEditor વિષે', + help : 'મદદ માટે $1 તપાસો', + userGuide : 'CKEditor યુઝર્સ ગાઈડ', + moreInfo : 'લાયસનસની માહિતી માટે અમારી વેબ સાઈટ', + copy : 'કોપીરાઈટ © $1. ઓલ રાઈટ્સ ' + }, + + maximize : 'મોટું કરવું', + minimize : 'નાનું કરવું', + + fakeobjects : + { + anchor : 'અનકર', + flash : 'ફ્લેશ ', + iframe : 'IFrame', + hiddenfield : 'હિડન ', + unknown : 'અનનોન ઓબ્જેક્ટ' + }, + + resize : 'ખેંચી ને યોગ્ય કરવું', + + colordialog : + { + title : 'રંગ પસંદ કરો', + options : 'રંગના વિકલ્પ', + highlight : 'હાઈઈટ', + selected : 'પસંદ કરેલો રંગ', + clear : 'સાફ કરવું' + }, + + toolbarCollapse : 'ટૂલબાર નાનું કરવું', + toolbarExpand : 'ટૂલબાર મોટું કરવું', + + toolbarGroups : + { + document : 'દસ્તાવેજ', + clipboard : 'ક્લિપબોર્ડ/અન', + editing : 'એડીટ કરવું', + forms : 'ફોર્મ', + basicstyles : 'બેસિક્ સ્ટાઇલ', + paragraph : 'ફકરો', + links : 'લીંક', + insert : 'ઉમેરવું', + styles : 'સ્ટાઇલ', + colors : 'રંગ', + tools : 'ટૂલ્સ' + }, + + bidi : + { + ltr : 'ટેક્ષ્ત્ ની દિશા ડાબે થી જમણે', + rtl : 'ટેક્ષ્ત્ ની દિશા જમણે થી ડાબે' + }, + + docprops : + { + label : 'ડૉક્યુમન્ટ ગુણ/પ્રૉપર્ટિઝ', + title : 'ડૉક્યુમન્ટ ગુણ/પ્રૉપર્ટિઝ', + design : 'ડીસા', + meta : 'મેટાડૅટા', + chooseColor : 'વિકલ્પ', + other : '<other>', + docTitle : 'પેજ મથાળું/ટાઇટલ', + charset : 'કેરેક્ટર સેટ એન્કોડિંગ', + charsetOther : 'અન્ય કેરેક્ટર સેટ એન્કોડિંગ', + charsetASCII : 'ASCII', + charsetCE : 'મધ્ય યુરોપિઅન (Central European)', + charsetCT : 'ચાઇનીઝ (Chinese Traditional Big5)', + charsetCR : 'સિરીલિક (Cyrillic)', + charsetGR : 'ગ્રીક (Greek)', + charsetJP : 'જાપાનિઝ (Japanese)', + charsetKR : 'કોરીયન (Korean)', + charsetTR : 'ટર્કિ (Turkish)', + charsetUN : 'યૂનિકોડ (UTF-8)', + charsetWE : 'પશ્ચિમ યુરોપિઅન (Western European)', + docType : 'ડૉક્યુમન્ટ પ્રકાર શીર્ષક', + docTypeOther : 'અન્ય ડૉક્યુમન્ટ પ્રકાર શીર્ષક', + xhtmlDec : 'XHTML સૂચના સમાવિષ્ટ કરવી', + bgColor : 'બૅકગ્રાઉન્ડ રંગ', + bgImage : 'બૅકગ્રાઉન્ડ ચિત્ર URL', + bgFixed : 'સ્ક્રોલ ન થાય તેવું બૅકગ્રાઉન્ડ', + txtColor : 'શબ્દનો રંગ', + margin : 'પેજ માર્જિન', + marginTop : 'ઉપર', + marginLeft : 'ડાબી', + marginRight : 'જમણી', + marginBottom : 'નીચે', + metaKeywords : 'ડૉક્યુમન્ટ ઇન્ડેક્સ સંકેતશબ્દ (અલ્પવિરામ (,) થી અલગ કરો)', + metaDescription : 'ડૉક્યુમન્ટ વર્ણન', + metaAuthor : 'લેખક', + metaCopyright : 'કૉપિરાઇટ', + previewHtml : '<p>આ એક <strong>સેમ્પલ ટેક્ષ્ત્</strong> છે. તમે <a href="javascript:void(0)">CKEditor</a> વાપરો છો.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/he.js b/htdocs/includes/ckeditor/_source/lang/he.js new file mode 100644 index 0000000000000000000000000000000000000000..c98c3d2e02f1dfe5c56ddc6309a2de460420ad04 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/he.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Hebrew language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['he'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'rtl', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'סרגלי כלים של העורך', + editor : 'עורך טקסט עשיר', + + // Toolbar buttons without dialogs. + source : 'מקור', + newPage : 'דף חדש', + save : 'שמירה', + preview : 'תצוגה מקדימה', + cut : 'גזירה', + copy : 'העתקה', + paste : 'הדבקה', + print : 'הדפסה', + underline : 'קו תחתון', + bold : 'מודגש', + italic : 'נטוי', + selectAll : 'בחירת הכל', + removeFormat : 'הסרת העיצוב', + strike : 'כתיב מחוק', + subscript : 'כתיב תחתון', + superscript : 'כתיב עליון', + horizontalrule : 'הוספת קו אופקי', + pagebreak : 'הוספת שבירת דף', + pagebreakAlt : 'שבירת דף', + unlink : 'הסרת הקישור', + undo : 'ביטול צעד אחרון', + redo : 'חזרה על צעד אחרון', + + // Common messages and labels. + common : + { + browseServer : 'סייר השרת', + url : 'כתובת (URL)', + protocol : 'פרוטוקול', + upload : 'העלאה', + uploadSubmit : 'שליחה לשרת', + image : 'תמונה', + flash : 'פלאש', + form : 'טופס', + checkbox : 'תיבת סימון', + radio : 'לחצן אפשרויות', + textField : 'שדה טקסט', + textarea : 'איזור טקסט', + hiddenField : 'שדה חבוי', + button : 'כפתור', + select : 'שדה בחירה', + imageButton : 'כפתור תמונה', + notSet : '<לא נקבע>', + id : 'זיהוי (ID)', + name : 'שם', + langDir : 'כיוון שפה', + langDirLtr : 'שמאל לימין (LTR)', + langDirRtl : 'ימין לשמאל (RTL)', + langCode : 'קוד שפה', + longDescr : 'קישור לתיאור מפורט', + cssClass : 'מחלקת עיצוב (CSS Class)', + advisoryTitle : 'כותרת מוצעת', + cssStyle : 'סגנון', + ok : 'אישור', + cancel : 'ביטול', + close : 'סגירה', + preview : 'תצוגה מקדימה', + generalTab : 'כללי', + advancedTab : 'אפשרויות מתקדמות', + validateNumberFailed : 'הערך חייב להיות מספרי.', + confirmNewPage : 'כל השינויים שלא נשמרו יאבדו. האם להעלות דף חדש?', + confirmCancel : 'חלק מהאפשרויות שונו, האם לסגור את הדיאלוג?', + options : 'אפשרויות', + target : 'מטרה', + targetNew : 'חלון חדש (_blank)', + targetTop : 'החלון העליון ביותר (_top)', + targetSelf : 'אותו חלון (_self)', + targetParent : 'חלון האב (_parent)', + langDirLTR : 'שמאל לימין (LTR)', + langDirRTL : 'ימין לשמאל (RTL)', + styles : 'סגנון', + cssClasses : 'מחלקות גליונות סגנון', + width : 'רוחב', + height : 'גובה', + align : 'יישור', + alignLeft : 'לשמאל', + alignRight : 'לימין', + alignCenter : 'מרכז', + alignTop : 'למעלה', + alignMiddle : 'לאמצע', + alignBottom : 'לתחתית', + invalidHeight : 'הגובה חייב להיות מספר.', + invalidWidth : 'הרוחב חייב להיות מספר.', + invalidCssLength : 'הערך שצוין לשדה "%1" חייב להיות מספר חיובי עם או ללא יחידת מידה חוקית של CSS (px, %, in, cm, mm, em, ex, pt, או pc).', + invalidHtmlLength : 'הערך שצוין לשדה "%1" חייב להיות מספר חיובי עם או ללא יחידת מידה חוקית של HTML (px או %).', + invalidInlineStyle : 'הערך שצויין לשדה הסגנון חייב להכיל זוג ערכים אחד או יותר בפורמט "שם : ערך", מופרדים על ידי נקודה-פסיק.', + cssLengthTooltip : 'יש להכניס מספר המייצג פיקסלים או מספר עם יחידת גליונות סגנון תקינה (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, לא זמין</span>' + }, + + contextmenu : + { + options : 'אפשרויות תפריט ההקשר' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'הוספת תו מיוחד', + title : 'בחירת תו מיוחד', + options : 'אפשרויות תווים מיוחדים' + }, + + // Link dialog. + link : + { + toolbar : 'הוספת/עריכת קישור', + other : '<אחר>', + menu : 'מאפייני קישור', + title : 'קישור', + info : 'מידע על הקישור', + target : 'מטרה', + upload : 'העלאה', + advanced : 'אפשרויות מתקדמות', + type : 'סוג קישור', + toUrl : 'כתובת (URL)', + toAnchor : 'עוגן בעמוד זה', + toEmail : 'דוא"ל', + targetFrame : '<מסגרת>', + targetPopup : '<חלון קופץ>', + targetFrameName : 'שם מסגרת היעד', + targetPopupName : 'שם החלון הקופץ', + popupFeatures : 'תכונות החלון הקופץ', + popupResizable : 'שינוי גודל', + popupStatusBar : 'סרגל חיווי', + popupLocationBar: 'סרגל כתובת', + popupToolbar : 'סרגל הכלים', + popupMenuBar : 'סרגל תפריט', + popupFullScreen : 'מסך מלא (IE)', + popupScrollBars : 'ניתן לגלילה', + popupDependent : 'תלוי (Netscape)', + popupLeft : 'מיקום צד שמאל', + popupTop : 'מיקום צד עליון', + id : 'זיהוי (ID)', + langDir : 'כיוון שפה', + langDirLTR : 'שמאל לימין (LTR)', + langDirRTL : 'ימין לשמאל (RTL)', + acccessKey : 'מקש גישה', + name : 'שם', + langCode : 'קוד שפה', + tabIndex : 'מספר טאב', + advisoryTitle : 'כותרת מוצעת', + advisoryContentType : 'Content Type מוצע', + cssClasses : 'גיליונות עיצוב קבוצות', + charset : 'קידוד המשאב המקושר', + styles : 'סגנון', + rel : 'קשר גומלין', + selectAnchor : 'בחירת עוגן', + anchorName : 'עפ"י שם העוגן', + anchorId : 'עפ"י זיהוי (ID) האלמנט', + emailAddress : 'כתובת הדוא"ל', + emailSubject : 'נושא ההודעה', + emailBody : 'גוף ההודעה', + noAnchors : '(אין עוגנים זמינים בדף)', + noUrl : 'יש להקליד את כתובת הקישור (URL)', + noEmail : 'יש להקליד את כתובת הדוא"ל' + }, + + // Anchor dialog + anchor : + { + toolbar : 'הוספת/עריכת נקודת עיגון', + menu : 'מאפייני נקודת עיגון', + title : 'מאפייני נקודת עיגון', + name : 'שם לנקודת עיגון', + errorName : 'יש להקליד שם לנקודת עיגון', + remove : 'מחיקת נקודת עיגון' + }, + + // List style dialog + list: + { + numberedTitle : 'תכונות רשימה ממוספרת', + bulletedTitle : 'תכונות רשימת תבליטים', + type : 'סוג', + start : 'תחילת מספור', + validateStartNumber :'שדה תחילת המספור חייב להכיל מספר שלם.', + circle : 'עיגול ריק', + disc : 'עיגול מלא', + square : 'ריבוע', + none : 'ללא', + notset : '<לא נקבע>', + armenian : 'ספרות ארמניות', + georgian : 'ספרות גיאורגיות (an, ban, gan וכו\')', + lowerRoman : 'ספירה רומית באותיות קטנות (i, ii, iii, iv, v וכו\')', + upperRoman : 'ספירה רומיות באותיות גדולות (I, II, III, IV, V וכו\')', + lowerAlpha : 'אותיות אנגליות קטנות (a, b, c, d, e וכו\')', + upperAlpha : 'אותיות אנגליות גדולות (A, B, C, D, E וכו\')', + lowerGreek : 'אותיות יווניות קטנות (alpha, beta, gamma וכו\')', + decimal : 'ספרות (1, 2, 3 וכו\')', + decimalLeadingZero : 'ספרות עם 0 בהתחלה (01, 02, 03 וכו\')' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'חיפוש והחלפה', + find : 'חיפוש', + replace : 'החלפה', + findWhat : 'חיפוש מחרוזת:', + replaceWith : 'החלפה במחרוזת:', + notFoundMsg : 'הטקסט המבוקש לא נמצא.', + findOptions : 'אפשרויות חיפוש', + matchCase : 'הבחנה בין אותיות רשיות לקטנות (Case)', + matchWord : 'התאמה למילה המלאה', + matchCyclic : 'התאמה מחזורית', + replaceAll : 'החלפה בכל העמוד', + replaceSuccessMsg : '%1 טקסטים הוחלפו.' + }, + + // Table Dialog + table : + { + toolbar : 'טבלה', + title : 'מאפייני טבלה', + menu : 'מאפייני טבלה', + deleteTable : 'מחק טבלה', + rows : 'שורות', + columns : 'עמודות', + border : 'גודל מסגרת', + widthPx : 'פיקסלים', + widthPc : 'אחוז', + widthUnit : 'יחידת רוחב', + cellSpace : 'מרווח תא', + cellPad : 'ריפוד תא', + caption : 'כיתוב', + summary : 'תקציר', + headers : 'כותרות', + headersNone : 'אין', + headersColumn : 'עמודה ראשונה', + headersRow : 'שורה ראשונה', + headersBoth : 'שניהם', + invalidRows : 'שדה מספר השורות חייב להיות מספר גדול מ 0.', + invalidCols : 'שדה מספר העמודות חייב להיות מספר גדול מ 0.', + invalidBorder : 'שדה גודל המסגרת חייב להיות מספר.', + invalidWidth : 'שדה רוחב הטבלה חייב להיות מספר.', + invalidHeight : 'שדה גובה הטבלה חייב להיות מספר.', + invalidCellSpacing : 'שדה ריווח התאים חייב להיות מספר חיובי.', + invalidCellPadding : 'שדה ריפוד התאים חייב להיות מספר חיובי.', + + cell : + { + menu : 'מאפייני תא', + insertBefore : 'הוספת תא לפני', + insertAfter : 'הוספת תא אחרי', + deleteCell : 'מחיקת תאים', + merge : 'מיזוג תאים', + mergeRight : 'מזג ימינה', + mergeDown : 'מזג למטה', + splitHorizontal : 'פיצול תא אופקית', + splitVertical : 'פיצול תא אנכית', + title : 'תכונות התא', + cellType : 'סוג התא', + rowSpan : 'מתיחת השורות', + colSpan : 'מתיחת התאים', + wordWrap : 'מניעת גלישת שורות', + hAlign : 'יישור אופקי', + vAlign : 'יישור אנכי', + alignBaseline : 'שורת בסיס', + bgColor : 'צבע רקע', + borderColor : 'צבע מסגרת', + data : 'מידע', + header : 'כותרת', + yes : 'כן', + no : 'לא', + invalidWidth : 'שדה רוחב התא חייב להיות מספר.', + invalidHeight : 'שדה גובה התא חייב להיות מספר.', + invalidRowSpan : 'שדה מתיחת השורות חייב להיות מספר שלם.', + invalidColSpan : 'שדה מתיחת העמודות חייב להיות מספר שלם.', + chooseColor : 'בחר' + }, + + row : + { + menu : 'שורה', + insertBefore : 'הוספת שורה לפני', + insertAfter : 'הוספת שורה אחרי', + deleteRow : 'מחיקת שורות' + }, + + column : + { + menu : 'עמודה', + insertBefore : 'הוספת עמודה לפני', + insertAfter : 'הוספת עמודה אחרי', + deleteColumn : 'מחיקת עמודות' + } + }, + + // Button Dialog. + button : + { + title : 'מאפייני כפתור', + text : 'טקסט (ערך)', + type : 'סוג', + typeBtn : 'כפתור', + typeSbm : 'שליחה', + typeRst : 'איפוס' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'מאפייני תיבת סימון', + radioTitle : 'מאפייני לחצן אפשרויות', + value : 'ערך', + selected : 'מסומן' + }, + + // Form Dialog. + form : + { + title : 'מאפיני טופס', + menu : 'מאפיני טופס', + action : 'שלח אל', + method : 'סוג שליחה', + encoding : 'קידוד' + }, + + // Select Field Dialog. + select : + { + title : 'מאפייני שדה בחירה', + selectInfo : 'מידע', + opAvail : 'אפשרויות זמינות', + value : 'ערך', + size : 'גודל', + lines : 'שורות', + chkMulti : 'איפשור בחירות מרובות', + opText : 'טקסט', + opValue : 'ערך', + btnAdd : 'הוספה', + btnModify : 'שינוי', + btnUp : 'למעלה', + btnDown : 'למטה', + btnSetValue : 'קביעה כברירת מחדל', + btnDelete : 'מחיקה' + }, + + // Textarea Dialog. + textarea : + { + title : 'מאפייני איזור טקסט', + cols : 'עמודות', + rows : 'שורות' + }, + + // Text Field Dialog. + textfield : + { + title : 'מאפייני שדה טקסט', + name : 'שם', + value : 'ערך', + charWidth : 'רוחב לפי תווים', + maxChars : 'מקסימום תווים', + type : 'סוג', + typeText : 'טקסט', + typePass : 'סיסמה' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'מאפיני שדה חבוי', + name : 'שם', + value : 'ערך' + }, + + // Image Dialog. + image : + { + title : 'מאפייני התמונה', + titleButton : 'מאפיני כפתור תמונה', + menu : 'תכונות התמונה', + infoTab : 'מידע על התמונה', + btnUpload : 'שליחה לשרת', + upload : 'העלאה', + alt : 'טקסט חלופי', + lockRatio : 'נעילת היחס', + resetSize : 'איפוס הגודל', + border : 'מסגרת', + hSpace : 'מרווח אופקי', + vSpace : 'מרווח אנכי', + alertUrl : 'יש להקליד את כתובת התמונה', + linkTab : 'קישור', + button2Img : 'האם להפוך את תמונת הכפתור לתמונה פשוטה?', + img2Button : 'האם להפוך את התמונה לכפתור תמונה?', + urlMissing : 'כתובת התמונה חסרה.', + validateBorder : 'שדה המסגרת חייב להיות מספר שלם.', + validateHSpace : 'שדה המרווח האופקי חייב להיות מספר שלם.', + validateVSpace : 'שדה המרווח האנכי חייב להיות מספר שלם.' + }, + + // Flash Dialog + flash : + { + properties : 'מאפייני פלאש', + propertiesTab : 'מאפיינים', + title : 'מאפיני פלאש', + chkPlay : 'ניגון אוטומטי', + chkLoop : 'לולאה', + chkMenu : 'אפשר תפריט פלאש', + chkFull : 'אפשר חלון מלא', + scale : 'גודל', + scaleAll : 'הצג הכל', + scaleNoBorder : 'ללא גבולות', + scaleFit : 'התאמה מושלמת', + access : 'גישת סקריפט', + accessAlways : 'תמיד', + accessSameDomain: 'דומיין זהה', + accessNever : 'אף פעם', + alignAbsBottom : 'לתחתית האבסולוטית', + alignAbsMiddle : 'מרכוז אבסולוטי', + alignBaseline : 'לקו התחתית', + alignTextTop : 'לראש הטקסט', + quality : 'איכות', + qualityBest : 'מעולה', + qualityHigh : 'גבוהה', + qualityAutoHigh : 'גבוהה אוטומטית', + qualityMedium : 'ממוצעת', + qualityAutoLow : 'נמוכה אוטומטית', + qualityLow : 'נמוכה', + windowModeWindow: 'חלון', + windowModeOpaque: 'אטום', + windowModeTransparent : 'שקוף', + windowMode : 'מצב חלון', + flashvars : 'משתנים לפלאש', + bgcolor : 'צבע רקע', + hSpace : 'מרווח אופקי', + vSpace : 'מרווח אנכי', + validateSrc : 'יש להקליד את כתובת סרטון הפלאש (URL)', + validateHSpace : 'המרווח האופקי חייב להיות מספר.', + validateVSpace : 'המרווח האנכי חייב להיות מספר.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'בדיקת איות', + title : 'בדיקת איות', + notAvailable : 'לא נמצא שירות זמין.', + errorLoading : 'שגיאה בהעלאת השירות: %s.', + notInDic : 'לא נמצא במילון', + changeTo : 'שינוי ל', + btnIgnore : 'התעלמות', + btnIgnoreAll : 'התעלמות מהכל', + btnReplace : 'החלפה', + btnReplaceAll : 'החלפת הכל', + btnUndo : 'החזרה', + noSuggestions : '- אין הצעות -', + progress : 'בודק האיות בתהליך בדיקה....', + noMispell : 'בדיקות איות הסתיימה: לא נמצאו שגיאות כתיב', + noChanges : 'בדיקות איות הסתיימה: לא שונתה אף מילה', + oneChange : 'בדיקות איות הסתיימה: שונתה מילה אחת', + manyChanges : 'בדיקות איות הסתיימה: %1 מילים שונו', + ieSpellDownload : 'בודק האיות לא מותקן, האם להורידו?' + }, + + smiley : + { + toolbar : 'סמיילי', + title : 'הוספת סמיילי', + options : 'אפשרויות סמיילים' + }, + + elementsPath : + { + eleLabel : 'עץ האלמנטים', + eleTitle : '%1 אלמנט' + }, + + numberedlist : 'רשימה ממוספרת', + bulletedlist : 'רשימת נקודות', + indent : 'הגדלת הזחה', + outdent : 'הקטנת הזחה', + + justify : + { + left : 'יישור לשמאל', + center : 'מרכוז', + right : 'יישור לימין', + block : 'יישור לשוליים' + }, + + blockquote : 'בלוק ציטוט', + + clipboard : + { + title : 'הדבקה', + cutError : 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות גזירה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+X).', + copyError : 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות העתקה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+C).', + pasteMsg : 'נא להדביק בתוך הקופסה באמצעות (<b>Ctrl/Cmd+V</b>) וללחוץ על <b>אישור</b>.', + securityMsg : 'עקב הגדרות אבטחה בדפדפן, לא ניתן לגשת אל לוח הגזירים (Clipboard) בצורה ישירה. נא להדביק שוב בחלון זה.', + pasteArea : 'איזור הדבקה' + }, + + pastefromword : + { + confirmCleanup : 'נראה הטקסט שבכוונתך להדביק מקורו בקובץ וורד. האם ברצונך לנקות אותו טרם ההדבקה?', + toolbar : 'הדבקה מ-Word', + title : 'הדבקה מ-Word', + error : 'לא ניתן היה לנקות את המידע בשל תקלה פנימית.' + }, + + pasteText : + { + button : 'הדבקה כטקסט פשוט', + title : 'הדבקה כטקסט פשוט' + }, + + templates : + { + button : 'תבניות', + title : 'תביות תוכן', + options : 'אפשרויות התבניות', + insertOption : 'החלפת תוכן ממשי', + selectPromptMsg : 'יש לבחור תבנית לפתיחה בעורך.<br />התוכן המקורי ימחק:', + emptyListMsg : '(לא הוגדרו תבניות)' + }, + + showBlocks : 'הצגת בלוקים', + + stylesCombo : + { + label : 'סגנון', + panelTitle : 'סגנונות פורמט', + panelTitle1 : 'סגנונות בלוק', + panelTitle2 : 'סגנונות רצף', + panelTitle3 : 'סגנונות אובייקט' + }, + + format : + { + label : 'עיצוב', + panelTitle : 'עיצוב', + + tag_p : 'נורמלי', + tag_pre : 'קוד', + tag_address : 'כתובת', + tag_h1 : 'כותרת', + tag_h2 : 'כותרת 2', + tag_h3 : 'כותרת 3', + tag_h4 : 'כותרת 4', + tag_h5 : 'כותרת 5', + tag_h6 : 'כותרת 6', + tag_div : 'נורמלי (DIV)' + }, + + div : + { + title : 'יצירת מיכל (Div)', + toolbar : 'יצירת מיכל (Div)', + cssClassInputLabel : 'מחלקת עיצוב', + styleSelectLabel : 'סגנון', + IdInputLabel : 'מזהה (ID)', + languageCodeInputLabel : 'קוד שפה', + inlineStyleInputLabel : 'סגנון פנימי', + advisoryTitleInputLabel : 'כותרת מוצעת', + langDirLabel : 'כיוון שפה', + langDirLTRLabel : 'שמאל לימין (LTR)', + langDirRTLLabel : 'ימין לשמאל (RTL)', + edit : 'עריכת מיכל (Div)', + remove : 'הסרת מיכל (Div)' + }, + + iframe : + { + title : 'מאפייני חלון פנימי (iframe)', + toolbar : 'חלון פנימי (iframe)', + noUrl : 'יש להכניס כתובת לחלון.', + scrolling : 'אפשר פסי גלילה', + border : 'הראה מסגרת לחלון' + }, + + font : + { + label : 'גופן', + voiceLabel : 'גופן', + panelTitle : 'גופן' + }, + + fontSize : + { + label : 'גודל', + voiceLabel : 'גודל', + panelTitle : 'גודל' + }, + + colorButton : + { + textColorTitle : 'צבע טקסט', + bgColorTitle : 'צבע רקע', + panelTitle : 'צבעים', + auto : 'אוטומטי', + more : 'צבעים נוספים...' + }, + + colors : + { + '000' : 'שחור', + '800000' : 'סגול כהה', + '8B4513' : 'חום בהיר', + '2F4F4F' : 'אפור צפחה', + '008080' : 'כחול-ירוק', + '000080' : 'כחול-סגול', + '4B0082' : 'אינדיגו', + '696969' : 'אפור מעומעם', + 'B22222' : 'אדום-חום', + 'A52A2A' : 'חום', + 'DAA520' : 'כתום זהב', + '006400' : 'ירוק כהה', + '40E0D0' : 'טורקיז', + '0000CD' : 'כחול בינוני', + '800080' : 'סגול', + '808080' : 'אפור', + 'F00' : 'אדום', + 'FF8C00' : 'כתום כהה', + 'FFD700' : 'זהב', + '008000' : 'ירוק', + '0FF' : 'ציאן', + '00F' : 'כחול', + 'EE82EE' : 'סגלגל', + 'A9A9A9' : 'אפור כהה', + 'FFA07A' : 'כתום-וורוד', + 'FFA500' : 'כתום', + 'FFFF00' : 'צהוב', + '00FF00' : 'ליים', + 'AFEEEE' : 'טורקיז בהיר', + 'ADD8E6' : 'כחול בהיר', + 'DDA0DD' : 'שזיף', + 'D3D3D3' : 'אפור בהיר', + 'FFF0F5' : 'לבנדר מסמיק', + 'FAEBD7' : 'לבן עתיק', + 'FFFFE0' : 'צהוב בהיר', + 'F0FFF0' : 'טל דבש', + 'F0FFFF' : 'תכלת', + 'F0F8FF' : 'כחול טיפת מים', + 'E6E6FA' : 'לבנדר', + 'FFF' : 'לבן' + }, + + scayt : + { + title : 'בדיקת איות בזמן כתיבה (SCAYT)', + opera_title : 'לא זמין בדפדפן אופרה', + enable : 'אפשר SCAYT', + disable : 'בטל SCAYT', + about : 'אודות SCAYT', + toggle : 'שינוי SCAYT', + options : 'אפשרויות', + langs : 'שפות', + moreSuggestions : 'הצעות נוספות', + ignore : 'התעלמות', + ignoreAll : 'התעלמות מהכל', + addWord : 'הוספת מילה', + emptyDic : 'יש לבחור מילון.', + + optionsTab : 'אפשרויות', + allCaps : 'התעלם ממילים שכל אותיותיהן גדולות', + ignoreDomainNames : 'התעלם משמות מתחם', + mixedCase : 'התעלם ממילים עם אותיות גדולות וקטנות ביחד', + mixedWithDigits : 'התעלם ממילים עם מספרים', + + languagesTab : 'שפות', + + dictionariesTab : 'מילון', + dic_field_name : 'שם המילון', + dic_create : 'יצירה', + dic_restore : 'שחזור', + dic_delete : 'מחיקה', + dic_rename : 'שינוי שם', + dic_info : 'בהתחלה מילון המשתמש מאוחסן בעוגיה, אך עוגיות מוגבלות במקום. כאשר המילון מגיע לגודל בו הוא אינו יכול להתאכסן בעוגיה, המילון צריך להתאכסן בשרתנו. לשם כך עליך לתת שם למילון. אם כבר יש לך מילון מאוחסן, יש להכניס את שמו וללחוץ על כפתור השחזור.', + + aboutTab : 'אודות' + }, + + about : + { + title : 'אודות CKEditor', + dlgTitle : 'אודות CKEditor', + help : 'היכנסו ל$1 לעזרה.', + userGuide : 'מדריך המשתמש של CKEditor', + moreInfo : 'למידע נוסף בקרו באתרנו:', + copy : 'Copyright © $1. כל הזכויות שמורות.' + }, + + maximize : 'הגדלה למקסימום', + minimize : 'הקטנה למינימום', + + fakeobjects : + { + anchor : 'עוגן', + flash : 'סרטון פלאש', + iframe : 'חלון פנימי (iframe)', + hiddenfield : 'שדה חבוי', + unknown : 'אובייקט לא ידוע' + }, + + resize : 'יש לגרור בכדי לשנות את הגודל', + + colordialog : + { + title : 'בחירת צבע', + options : 'אפשרויות צבע', + highlight : 'סימון', + selected : 'בחירה', + clear : 'ניקוי' + }, + + toolbarCollapse : 'מזעור סרגל כלים', + toolbarExpand : 'הרחבת סרגל כלים', + + toolbarGroups : + { + document : 'מסמך', + clipboard : 'לוח הגזירים (Clipboard)/צעד אחרון', + editing : 'עריכה', + forms : 'טפסים', + basicstyles : 'עיצוב בסיסי', + paragraph : 'פסקה', + links : 'קישורים', + insert : 'הכנסה', + styles : 'עיצוב', + colors : 'צבעים', + tools : 'כלים' + }, + + bidi : + { + ltr : 'כיוון טקסט משמאל לימין (LTR)', + rtl : 'כיוון טקסט מימין לשמאל (RTL)' + }, + + docprops : + { + label : 'מאפייני מסמך', + title : 'מאפייני מסמך', + design : 'עיצוב', + meta : 'תגי Meta', + chooseColor : 'בחירה', + other : 'אחר...', + docTitle : 'כותרת עמוד', + charset : 'קידוד תווים', + charsetOther : 'קידוד תווים אחר', + charsetASCII : 'ASCII', + charsetCE : 'מרכז אירופאי', + charsetCT : 'סיני מסורתי (Big5)', + charsetCR : 'קירילי', + charsetGR : 'יווני', + charsetJP : 'יפני', + charsetKR : 'קוריאני', + charsetTR : 'טורקי', + charsetUN : 'יוניקוד (UTF-8)', + charsetWE : 'מערב אירופאי', + docType : 'כותר סוג מסמך', + docTypeOther : 'כותר סוג מסמך אחר', + xhtmlDec : 'כלול הכרזות XHTML', + bgColor : 'צבע רקע', + bgImage : 'כתובת של תמונת רקע', + bgFixed : 'רקע לא נגלל (צמוד)', + txtColor : 'צבע טקסט', + margin : 'מרווחי עמוד', + marginTop : 'עליון', + marginLeft : 'שמאלי', + marginRight : 'ימני', + marginBottom : 'תחתון', + metaKeywords : 'מילות מפתח של המסמך (מופרדות בפסיק)', + metaDescription : 'תיאור המסמך', + metaAuthor : 'מחבר/ת', + metaCopyright : 'זכויות יוצרים', + previewHtml : '<p>זהו <strong>טקסט הדגמה</strong>. את/ה משתמש/ת ב<a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/hi.js b/htdocs/includes/ckeditor/_source/lang/hi.js new file mode 100644 index 0000000000000000000000000000000000000000..240af00a4c2bb8f9368f61d0916fae67713c6a82 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/hi.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Hindi language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['hi'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'एडिटर टूलबार', + editor : 'रिच टेक्स्ट एडिटर', + + // Toolbar buttons without dialogs. + source : 'सोर्स', + newPage : 'नया पेज', + save : 'सेव', + preview : 'प्रीव्यू', + cut : 'कट', + copy : 'कॉपी', + paste : 'पेस्ट', + print : 'प्रिन्ट', + underline : 'रेखांकण', + bold : 'बोल्ड', + italic : 'इटैलिक', + selectAll : 'सब सॅलॅक्ट करें', + removeFormat : 'फ़ॉर्मैट हटायें', + strike : 'स्ट्राइक थ्रू', + subscript : 'अधोलेख', + superscript : 'अभिलेख', + horizontalrule : 'हॉरिज़ॉन्टल रेखा इन्सर्ट करें', + pagebreak : 'पेज ब्रेक इन्सर्ट् करें', + pagebreakAlt : 'पेज ब्रेक', + unlink : 'लिंक हटायें', + undo : 'अन्डू', + redo : 'रीडू', + + // Common messages and labels. + common : + { + browseServer : 'सर्वर ब्राउज़ करें', + url : 'URL', + protocol : 'प्रोटोकॉल', + upload : 'अपलोड', + uploadSubmit : 'इसे सर्वर को भेजें', + image : 'तस्वीर', + flash : 'फ़्लैश', + form : 'फ़ॉर्म', + checkbox : 'चॅक बॉक्स', + radio : 'रेडिओ बटन', + textField : 'टेक्स्ट फ़ील्ड', + textarea : 'टेक्स्ट एरिया', + hiddenField : 'गुप्त फ़ील्ड', + button : 'बटन', + select : 'चुनाव फ़ील्ड', + imageButton : 'तस्वीर बटन', + notSet : '<सॅट नहीं>', + id : 'Id', + name : 'नाम', + langDir : 'भाषा लिखने की दिशा', + langDirLtr : 'बायें से दायें (LTR)', + langDirRtl : 'दायें से बायें (RTL)', + langCode : 'भाषा कोड', + longDescr : 'अधिक विवरण के लिए URL', + cssClass : 'स्टाइल-शीट क्लास', + advisoryTitle : 'परामर्श शीर्शक', + cssStyle : 'स्टाइल', + ok : 'ठीक है', + cancel : 'रद्द करें', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'सामान्य', + advancedTab : 'ऍड्वान्स्ड', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'चौड़ाई', + height : 'ऊँचाई', + align : 'ऍलाइन', + alignLeft : 'दायें', + alignRight : 'दायें', + alignCenter : 'बीच में', + alignTop : 'ऊपर', + alignMiddle : 'मध्य', + alignBottom : 'नीचे', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'विशेष करॅक्टर इन्सर्ट करें', + title : 'विशेष करॅक्टर चुनें', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'लिंक इन्सर्ट/संपादन', + other : '<अन्य>', + menu : 'लिंक संपादन', + title : 'लिंक', + info : 'लिंक ', + target : 'टार्गेट', + upload : 'अपलोड', + advanced : 'ऍड्वान्स्ड', + type : 'लिंक प्रकार', + toUrl : 'URL', // MISSING + toAnchor : 'इस पेज का ऐंकर', + toEmail : 'ई-मेल', + targetFrame : '<फ़्रेम>', + targetPopup : '<पॉप-अप विन्डो>', + targetFrameName : 'टार्गेट फ़्रेम का नाम', + targetPopupName : 'पॉप-अप विन्डो का नाम', + popupFeatures : 'पॉप-अप विन्डो फ़ीचर्स', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'स्टेटस बार', + popupLocationBar: 'लोकेशन बार', + popupToolbar : 'टूल बार', + popupMenuBar : 'मॅन्यू बार', + popupFullScreen : 'फ़ुल स्क्रीन (IE)', + popupScrollBars : 'स्क्रॉल बार', + popupDependent : 'डिपेन्डॅन्ट (Netscape)', + popupLeft : 'बायीं तरफ', + popupTop : 'दायीं तरफ', + id : 'Id', // MISSING + langDir : 'भाषा लिखने की दिशा', + langDirLTR : 'बायें से दायें (LTR)', + langDirRTL : 'दायें से बायें (RTL)', + acccessKey : 'ऍक्सॅस की', + name : 'नाम', + langCode : 'भाषा लिखने की दिशा', + tabIndex : 'टैब इन्डॅक्स', + advisoryTitle : 'परामर्श शीर्शक', + advisoryContentType : 'परामर्श कन्टॅन्ट प्रकार', + cssClasses : 'स्टाइल-शीट क्लास', + charset : 'लिंक रिसोर्स करॅक्टर सॅट', + styles : 'स्टाइल', + rel : 'Relationship', // MISSING + selectAnchor : 'ऐंकर चुनें', + anchorName : 'ऐंकर नाम से', + anchorId : 'ऍलीमॅन्ट Id से', + emailAddress : 'ई-मेल पता', + emailSubject : 'संदेश विषय', + emailBody : 'संदेश', + noAnchors : '(डॉक्यूमॅन्ट में ऐंकर्स की संख्या)', + noUrl : 'लिंक URL टाइप करें', + noEmail : 'ई-मेल पता टाइप करें' + }, + + // Anchor dialog + anchor : + { + toolbar : 'ऐंकर इन्सर्ट/संपादन', + menu : 'ऐंकर प्रॉपर्टीज़', + title : 'ऐंकर प्रॉपर्टीज़', + name : 'ऐंकर का नाम', + errorName : 'ऐंकर का नाम टाइप करें', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'खोजें और बदलें', + find : 'खोजें', + replace : 'रीप्लेस', + findWhat : 'यह खोजें:', + replaceWith : 'इससे रिप्लेस करें:', + notFoundMsg : 'आपके द्वारा दिया गया टेक्स्ट नहीं मिला', + findOptions : 'Find Options', // MISSING + matchCase : 'केस मिलायें', + matchWord : 'पूरा शब्द मिलायें', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'सभी रिप्लेस करें', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'टेबल', + title : 'टेबल प्रॉपर्टीज़', + menu : 'टेबल प्रॉपर्टीज़', + deleteTable : 'टेबल डिलीट करें', + rows : 'पंक्तियाँ', + columns : 'कालम', + border : 'बॉर्डर साइज़', + widthPx : 'पिक्सैल', + widthPc : 'प्रतिशत', + widthUnit : 'width unit', // MISSING + cellSpace : 'सैल अंतर', + cellPad : 'सैल पैडिंग', + caption : 'शीर्षक', + summary : 'सारांश', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'खाना', + insertBefore : 'पहले सैल डालें', + insertAfter : 'बाद में सैल डालें', + deleteCell : 'सैल डिलीट करें', + merge : 'सैल मिलायें', + mergeRight : 'बाँया विलय', + mergeDown : 'नीचे विलय करें', + splitHorizontal : 'सैल को क्षैतिज स्थिति में विभाजित करें', + splitVertical : 'सैल को लम्बाकार में विभाजित करें', + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'पंक्ति', + insertBefore : 'पहले पंक्ति डालें', + insertAfter : 'बाद में पंक्ति डालें', + deleteRow : 'पंक्तियाँ डिलीट करें' + }, + + column : + { + menu : 'कालम', + insertBefore : 'पहले कालम डालें', + insertAfter : 'बाद में कालम डालें', + deleteColumn : 'कालम डिलीट करें' + } + }, + + // Button Dialog. + button : + { + title : 'बटन प्रॉपर्टीज़', + text : 'टेक्स्ट (वैल्यू)', + type : 'प्रकार', + typeBtn : 'बटन', + typeSbm : 'सब्मिट', + typeRst : 'रिसेट' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'चॅक बॉक्स प्रॉपर्टीज़', + radioTitle : 'रेडिओ बटन प्रॉपर्टीज़', + value : 'वैल्यू', + selected : 'सॅलॅक्टॅड' + }, + + // Form Dialog. + form : + { + title : 'फ़ॉर्म प्रॉपर्टीज़', + menu : 'फ़ॉर्म प्रॉपर्टीज़', + action : 'क्रिया', + method : 'तरीका', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'चुनाव फ़ील्ड प्रॉपर्टीज़', + selectInfo : 'सूचना', + opAvail : 'उपलब्ध विकल्प', + value : 'वैल्यू', + size : 'साइज़', + lines : 'पंक्तियाँ', + chkMulti : 'एक से ज्यादा विकल्प चुनने दें', + opText : 'टेक्स्ट', + opValue : 'वैल्यू', + btnAdd : 'जोड़ें', + btnModify : 'बदलें', + btnUp : 'ऊपर', + btnDown : 'नीचे', + btnSetValue : 'चुनी गई वैल्यू सॅट करें', + btnDelete : 'डिलीट' + }, + + // Textarea Dialog. + textarea : + { + title : 'टेक्स्त एरिया प्रॉपर्टीज़', + cols : 'कालम', + rows : 'पंक्तियां' + }, + + // Text Field Dialog. + textfield : + { + title : 'टेक्स्ट फ़ील्ड प्रॉपर्टीज़', + name : 'नाम', + value : 'वैल्यू', + charWidth : 'करॅक्टर की चौढ़ाई', + maxChars : 'अधिकतम करॅक्टर', + type : 'टाइप', + typeText : 'टेक्स्ट', + typePass : 'पास्वर्ड' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'गुप्त फ़ील्ड प्रॉपर्टीज़', + name : 'नाम', + value : 'वैल्यू' + }, + + // Image Dialog. + image : + { + title : 'तस्वीर प्रॉपर्टीज़', + titleButton : 'तस्वीर बटन प्रॉपर्टीज़', + menu : 'तस्वीर प्रॉपर्टीज़', + infoTab : 'तस्वीर की जानकारी', + btnUpload : 'इसे सर्वर को भेजें', + upload : 'अपलोड', + alt : 'वैकल्पिक टेक्स्ट', + lockRatio : 'लॉक अनुपात', + resetSize : 'रीसॅट साइज़', + border : 'बॉर्डर', + hSpace : 'हॉरिज़ॉन्टल स्पेस', + vSpace : 'वर्टिकल स्पेस', + alertUrl : 'तस्वीर का URL टाइप करें ', + linkTab : 'लिंक', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'फ़्लैश प्रॉपर्टीज़', + propertiesTab : 'Properties', // MISSING + title : 'फ़्लैश प्रॉपर्टीज़', + chkPlay : 'ऑटो प्ले', + chkLoop : 'लूप', + chkMenu : 'फ़्लैश मॅन्यू का प्रयोग करें', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'स्केल', + scaleAll : 'सभी दिखायें', + scaleNoBorder : 'कोई बॉर्डर नहीं', + scaleFit : 'बिल्कुल फ़िट', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs नीचे', + alignAbsMiddle : 'Abs ऊपर', + alignBaseline : 'मूल रेखा', + alignTextTop : 'टेक्स्ट ऊपर', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'बैक्ग्राउन्ड रंग', + hSpace : 'हॉरिज़ॉन्टल स्पेस', + vSpace : 'वर्टिकल स्पेस', + validateSrc : 'लिंक URL टाइप करें', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'वर्तनी (स्पेलिंग) जाँच', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'शब्दकोश में नहीं', + changeTo : 'इसमें बदलें', + btnIgnore : 'इग्नोर', + btnIgnoreAll : 'सभी इग्नोर करें', + btnReplace : 'रिप्लेस', + btnReplaceAll : 'सभी रिप्लेस करें', + btnUndo : 'अन्डू', + noSuggestions : '- कोई सुझाव नहीं -', + progress : 'वर्तनी की जाँच (स्पॅल-चॅक) जारी है...', + noMispell : 'वर्तनी की जाँच : कोई गलत वर्तनी (स्पॅलिंग) नहीं पाई गई', + noChanges : 'वर्तनी की जाँच :कोई शब्द नहीं बदला गया', + oneChange : 'वर्तनी की जाँच : एक शब्द बदला गया', + manyChanges : 'वर्तनी की जाँच : %1 शब्द बदले गये', + ieSpellDownload : 'स्पॅल-चॅकर इन्स्टाल नहीं किया गया है। क्या आप इसे डाउनलोड करना चाहेंगे?' + }, + + smiley : + { + toolbar : 'स्माइली', + title : 'स्माइली इन्सर्ट करें', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'अंकीय सूची', + bulletedlist : 'बुलॅट सूची', + indent : 'इन्डॅन्ट बढ़ायें', + outdent : 'इन्डॅन्ट कम करें', + + justify : + { + left : 'बायीं तरफ', + center : 'बीच में', + right : 'दायीं तरफ', + block : 'ब्लॉक जस्टीफ़ाई' + }, + + blockquote : 'ब्लॉक-कोट', + + clipboard : + { + title : 'पेस्ट', + cutError : 'आपके ब्राउज़र की सुरक्षा सॅटिन्ग्स ने कट करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+X) का प्रयोग करें।', + copyError : 'आपके ब्राआउज़र की सुरक्षा सॅटिन्ग्स ने कॉपी करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+C) का प्रयोग करें।', + pasteMsg : 'Ctrl/Cmd+V का प्रयोग करके पेस्ट करें और ठीक है करें.', + securityMsg : 'आपके ब्राउज़र की सुरक्षा आपके ब्राउज़र की सुरKश सैटिंग के कारण, एडिटर आपके क्लिपबोर्ड डेटा को नहीं पा सकता है. आपको उसे इस विन्डो में दोबारा पेस्ट करना होगा.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'पेस्ट (वर्ड से)', + title : 'पेस्ट (वर्ड से)', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'पेस्ट (सादा टॅक्स्ट)', + title : 'पेस्ट (सादा टॅक्स्ट)' + }, + + templates : + { + button : 'टॅम्प्लेट', + title : 'कन्टेन्ट टॅम्प्लेट', + options : 'Template Options', // MISSING + insertOption : 'मूल शब्दों को बदलें', + selectPromptMsg : 'ऍडिटर में ओपन करने हेतु टॅम्प्लेट चुनें(वर्तमान कन्टॅन्ट सेव नहीं होंगे):', + emptyListMsg : '(कोई टॅम्प्लेट डिफ़ाइन नहीं किया गया है)' + }, + + showBlocks : 'ब्लॉक दिखायें', + + stylesCombo : + { + label : 'स्टाइल', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'फ़ॉर्मैट', + panelTitle : 'फ़ॉर्मैट', + + tag_p : 'साधारण', + tag_pre : 'फ़ॉर्मैटॅड', + tag_address : 'पता', + tag_h1 : 'शीर्षक 1', + tag_h2 : 'शीर्षक 2', + tag_h3 : 'शीर्षक 3', + tag_h4 : 'शीर्षक 4', + tag_h5 : 'शीर्षक 5', + tag_h6 : 'शीर्षक 6', + tag_div : 'शीर्षक (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'फ़ॉन्ट', + voiceLabel : 'Font', // MISSING + panelTitle : 'फ़ॉन्ट' + }, + + fontSize : + { + label : 'साइज़', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'साइज़' + }, + + colorButton : + { + textColorTitle : 'टेक्स्ट रंग', + bgColorTitle : 'बैक्ग्राउन्ड रंग', + panelTitle : 'Colors', // MISSING + auto : 'स्वचालित', + more : 'और रंग...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'मेक्सिमाईज़', + minimize : 'मिनिमाईज़', + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'डॉक्यूमॅन्ट प्रॉपर्टीज़', + title : 'डॉक्यूमॅन्ट प्रॉपर्टीज़', + design : 'Design', // MISSING + meta : 'मॅटाडेटा', + chooseColor : 'Choose', // MISSING + other : '<अन्य>', + docTitle : 'पेज शीर्षक', + charset : 'करेक्टर सॅट ऍन्कोडिंग', + charsetOther : 'अन्य करेक्टर सॅट ऍन्कोडिंग', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'मध्य यूरोपीय (Central European)', + charsetCT : 'चीनी (Chinese Traditional Big5)', + charsetCR : 'सिरीलिक (Cyrillic)', + charsetGR : 'यवन (Greek)', + charsetJP : 'जापानी (Japanese)', + charsetKR : 'कोरीयन (Korean)', + charsetTR : 'तुर्की (Turkish)', + charsetUN : 'यूनीकोड (UTF-8)', + charsetWE : 'पश्चिम यूरोपीय (Western European)', + docType : 'डॉक्यूमॅन्ट प्रकार शीर्षक', + docTypeOther : 'अन्य डॉक्यूमॅन्ट प्रकार शीर्षक', + xhtmlDec : 'XHTML सूचना सम्मिलित करें', + bgColor : 'बैक्ग्राउन्ड रंग', + bgImage : 'बैक्ग्राउन्ड तस्वीर URL', + bgFixed : 'स्क्रॉल न करने वाला बैक्ग्राउन्ड', + txtColor : 'टेक्स्ट रंग', + margin : 'पेज मार्जिन', + marginTop : 'ऊपर', + marginLeft : 'बायें', + marginRight : 'दायें', + marginBottom : 'नीचे', + metaKeywords : 'डॉक्युमॅन्ट इन्डेक्स संकेतशब्द (अल्पविराम से अलग करें)', + metaDescription : 'डॉक्यूमॅन्ट करॅक्टरन', + metaAuthor : 'लेखक', + metaCopyright : 'कॉपीराइट', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/hr.js b/htdocs/includes/ckeditor/_source/lang/hr.js new file mode 100644 index 0000000000000000000000000000000000000000..1d442b08f763f1fc118a7b3ef3fda329b2f5193f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/hr.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Croatian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['hr'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Alatne trake uređivača teksta', + editor : 'Bogati uređivač teksta', + + // Toolbar buttons without dialogs. + source : 'Kôd', + newPage : 'Nova stranica', + save : 'Snimi', + preview : 'Pregledaj', + cut : 'Izreži', + copy : 'Kopiraj', + paste : 'Zalijepi', + print : 'Ispiši', + underline : 'Potcrtano', + bold : 'Podebljaj', + italic : 'Ukosi', + selectAll : 'Odaberi sve', + removeFormat : 'Ukloni formatiranje', + strike : 'Precrtano', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Ubaci vodoravnu liniju', + pagebreak : 'Ubaci prijelom stranice', + pagebreakAlt : 'Prijelom stranice', + unlink : 'Ukloni link', + undo : 'Poništi', + redo : 'Ponovi', + + // Common messages and labels. + common : + { + browseServer : 'Pretraži server', + url : 'URL', + protocol : 'Protokol', + upload : 'Pošalji', + uploadSubmit : 'Pošalji na server', + image : 'Slika', + flash : 'Flash', + form : 'Form', + checkbox : 'Checkbox', + radio : 'Radio Button', + textField : 'Text Field', + textarea : 'Textarea', + hiddenField : 'Hidden Field', + button : 'Button', + select : 'Selection Field', + imageButton : 'Image Button', + notSet : '<nije postavljeno>', + id : 'Id', + name : 'Naziv', + langDir : 'Smjer jezika', + langDirLtr : 'S lijeva na desno (LTR)', + langDirRtl : 'S desna na lijevo (RTL)', + langCode : 'Kôd jezika', + longDescr : 'Dugački opis URL', + cssClass : 'Stylesheet klase', + advisoryTitle : 'Advisory naslov', + cssStyle : 'Stil', + ok : 'OK', + cancel : 'Poništi', + close : 'Zatvori', + preview : 'Pregledaj', + generalTab : 'Općenito', + advancedTab : 'Napredno', + validateNumberFailed : 'Ova vrijednost nije broj.', + confirmNewPage : 'Sve napravljene promjene će biti izgubljene ukoliko ih niste snimili. Sigurno želite učitati novu stranicu?', + confirmCancel : 'Neke od opcija su promjenjene. Sigurno želite zatvoriti ovaj prozor?', + options : 'Opcije', + target : 'Odredište', + targetNew : 'Novi prozor (_blank)', + targetTop : 'Vršni prozor (_top)', + targetSelf : 'Isti prozor (_self)', + targetParent : 'Roditeljski prozor (_parent)', + langDirLTR : 'S lijeva na desno (LTR)', + langDirRTL : 'S desna na lijevo (RTL)', + styles : 'Stil', + cssClasses : 'Klase stilova', + width : 'Širina', + height : 'Visina', + align : 'Poravnaj', + alignLeft : 'Lijevo', + alignRight : 'Desno', + alignCenter : 'Središnje', + alignTop : 'Vrh', + alignMiddle : 'Sredina', + alignBottom : 'Dolje', + invalidHeight : 'Visina mora biti broj.', + invalidWidth : 'Širina mora biti broj.', + invalidCssLength : 'Vrijednost određena za "%1" polje mora biti pozitivni broj sa ili bez važećih CSS mjernih jedinica (px, %, in, cm, mm, em, ex, pt ili pc).', + invalidHtmlLength : 'Vrijednost određena za "%1" polje mora biti pozitivni broj sa ili bez važećih HTML mjernih jedinica (px ili %).', + invalidInlineStyle : 'Vrijednost za linijski stil mora sadržavati jednu ili više definicija s formatom "naziv:vrijednost", odvojenih točka-zarezom.', + cssLengthTooltip : 'Unesite broj za vrijednost u pikselima ili broj s važećim CSS mjernim jedinicama (px, %, in, cm, mm, em, ex, pt ili pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, nedostupno</span>' + }, + + contextmenu : + { + options : 'Opcije izbornika' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Ubaci posebne znakove', + title : 'Odaberite posebni karakter', + options : 'Opcije specijalnih znakova' + }, + + // Link dialog. + link : + { + toolbar : 'Ubaci/promijeni link', + other : '<drugi>', + menu : 'Promijeni link', + title : 'Link', + info : 'Link Info', + target : 'Meta', + upload : 'Pošalji', + advanced : 'Napredno', + type : 'Link vrsta', + toUrl : 'URL', + toAnchor : 'Sidro na ovoj stranici', + toEmail : 'E-Mail', + targetFrame : '<okvir>', + targetPopup : '<popup prozor>', + targetFrameName : 'Ime ciljnog okvira', + targetPopupName : 'Naziv popup prozora', + popupFeatures : 'Mogućnosti popup prozora', + popupResizable : 'Promjenjiva veličina', + popupStatusBar : 'Statusna traka', + popupLocationBar: 'Traka za lokaciju', + popupToolbar : 'Traka s alatima', + popupMenuBar : 'Izborna traka', + popupFullScreen : 'Cijeli ekran (IE)', + popupScrollBars : 'Scroll traka', + popupDependent : 'Ovisno (Netscape)', + popupLeft : 'Lijeva pozicija', + popupTop : 'Gornja pozicija', + id : 'Id', + langDir : 'Smjer jezika', + langDirLTR : 'S lijeva na desno (LTR)', + langDirRTL : 'S desna na lijevo (RTL)', + acccessKey : 'Pristupna tipka', + name : 'Naziv', + langCode : 'Smjer jezika', + tabIndex : 'Tab Indeks', + advisoryTitle : 'Advisory naslov', + advisoryContentType : 'Advisory vrsta sadržaja', + cssClasses : 'Stylesheet klase', + charset : 'Kodna stranica povezanih resursa', + styles : 'Stil', + rel : 'Veza', + selectAnchor : 'Odaberi sidro', + anchorName : 'Po nazivu sidra', + anchorId : 'Po Id elementa', + emailAddress : 'E-Mail adresa', + emailSubject : 'Naslov', + emailBody : 'Sadržaj poruke', + noAnchors : '(Nema dostupnih sidra)', + noUrl : 'Molimo upišite URL link', + noEmail : 'Molimo upišite e-mail adresu' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Ubaci/promijeni sidro', + menu : 'Svojstva sidra', + title : 'Svojstva sidra', + name : 'Ime sidra', + errorName : 'Molimo unesite ime sidra', + remove : 'Ukloni sidro' + }, + + // List style dialog + list: + { + numberedTitle : 'Svojstva brojčane liste', + bulletedTitle : 'Svojstva liste', + type : 'Vrsta', + start : 'Početak', + validateStartNumber :'Početak brojčane liste mora biti cijeli broj.', + circle : 'Krug', + disc : 'Disk', + square : 'Kvadrat', + none : 'Bez', + notset : '<nije određen>', + armenian : 'Armenijska numeracija', + georgian : 'Gruzijska numeracija(an, ban, gan, etc.)', + lowerRoman : 'Romanska numeracija mala slova (i, ii, iii, iv, v, itd.)', + upperRoman : 'Romanska numeracija velika slova (I, II, III, IV, V, itd.)', + lowerAlpha : 'Znakovi mala slova (a, b, c, d, e, itd.)', + upperAlpha : 'Znakovi velika slova (A, B, C, D, E, itd.)', + lowerGreek : 'Grčka numeracija mala slova (alfa, beta, gama, itd).', + decimal : 'Decimalna numeracija (1, 2, 3, itd.)', + decimalLeadingZero : 'Decimalna s vodećom nulom (01, 02, 03, itd)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Pronađi i zamijeni', + find : 'Pronađi', + replace : 'Zamijeni', + findWhat : 'Pronađi:', + replaceWith : 'Zamijeni s:', + notFoundMsg : 'Traženi tekst nije pronađen.', + findOptions : 'Opcije traženja', + matchCase : 'Usporedi mala/velika slova', + matchWord : 'Usporedi cijele riječi', + matchCyclic : 'Usporedi kružno', + replaceAll : 'Zamijeni sve', + replaceSuccessMsg : 'Zamijenjeno %1 pojmova.' + }, + + // Table Dialog + table : + { + toolbar : 'Tablica', + title : 'Svojstva tablice', + menu : 'Svojstva tablice', + deleteTable : 'Izbriši tablicu', + rows : 'Redova', + columns : 'Kolona', + border : 'Veličina okvira', + widthPx : 'piksela', + widthPc : 'postotaka', + widthUnit : 'jedinica širine', + cellSpace : 'Prostornost ćelija', + cellPad : 'Razmak ćelija', + caption : 'Naslov', + summary : 'Sažetak', + headers : 'Zaglavlje', + headersNone : 'Ništa', + headersColumn : 'Prva kolona', + headersRow : 'Prvi red', + headersBoth : 'Oba', + invalidRows : 'Broj redova mora biti broj veći od 0.', + invalidCols : 'Broj kolona mora biti broj veći od 0.', + invalidBorder : 'Debljina ruba mora biti broj.', + invalidWidth : 'Širina tablice mora biti broj.', + invalidHeight : 'Visina tablice mora biti broj.', + invalidCellSpacing : 'Prostornost ćelija mora biti broj.', + invalidCellPadding : 'Razmak ćelija mora biti broj.', + + cell : + { + menu : 'Ćelija', + insertBefore : 'Ubaci ćeliju prije', + insertAfter : 'Ubaci ćeliju poslije', + deleteCell : 'Izbriši ćelije', + merge : 'Spoji ćelije', + mergeRight : 'Spoji desno', + mergeDown : 'Spoji dolje', + splitHorizontal : 'Podijeli ćeliju vodoravno', + splitVertical : 'Podijeli ćeliju okomito', + title : 'Svojstva ćelije', + cellType : 'Vrsta ćelije', + rowSpan : 'Rows Span', + colSpan : 'Columns Span', + wordWrap : 'Prelazak u novi red', + hAlign : 'Vodoravno poravnanje', + vAlign : 'Okomito poravnanje', + alignBaseline : 'Osnovna linija', + bgColor : 'Boja pozadine', + borderColor : 'Boja ruba', + data : 'Podatak', + header : 'Zaglavlje', + yes : 'Da', + no : 'ne', + invalidWidth : 'Širina ćelije mora biti broj.', + invalidHeight : 'Visina ćelije mora biti broj.', + invalidRowSpan : 'Rows span mora biti cijeli broj.', + invalidColSpan : 'Columns span mora biti cijeli broj.', + chooseColor : 'Odaberi' + }, + + row : + { + menu : 'Red', + insertBefore : 'Ubaci red prije', + insertAfter : 'Ubaci red poslije', + deleteRow : 'Izbriši redove' + }, + + column : + { + menu : 'Kolona', + insertBefore : 'Ubaci kolonu prije', + insertAfter : 'Ubaci kolonu poslije', + deleteColumn : 'Izbriši kolone' + } + }, + + // Button Dialog. + button : + { + title : 'Image Button svojstva', + text : 'Tekst (vrijednost)', + type : 'Vrsta', + typeBtn : 'Gumb', + typeSbm : 'Pošalji', + typeRst : 'Poništi' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox svojstva', + radioTitle : 'Radio Button svojstva', + value : 'Vrijednost', + selected : 'Odabrano' + }, + + // Form Dialog. + form : + { + title : 'Form svojstva', + menu : 'Form svojstva', + action : 'Akcija', + method : 'Metoda', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Selection svojstva', + selectInfo : 'Info', + opAvail : 'Dostupne opcije', + value : 'Vrijednost', + size : 'Veličina', + lines : 'linija', + chkMulti : 'Dozvoli višestruki odabir', + opText : 'Tekst', + opValue : 'Vrijednost', + btnAdd : 'Dodaj', + btnModify : 'Promijeni', + btnUp : 'Gore', + btnDown : 'Dolje', + btnSetValue : 'Postavi kao odabranu vrijednost', + btnDelete : 'Obriši' + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea svojstva', + cols : 'Kolona', + rows : 'Redova' + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field svojstva', + name : 'Ime', + value : 'Vrijednost', + charWidth : 'Širina', + maxChars : 'Najviše karaktera', + type : 'Vrsta', + typeText : 'Tekst', + typePass : 'Šifra' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field svojstva', + name : 'Ime', + value : 'Vrijednost' + }, + + // Image Dialog. + image : + { + title : 'Svojstva slika', + titleButton : 'Image Button svojstva', + menu : 'Svojstva slika', + infoTab : 'Info slike', + btnUpload : 'Pošalji na server', + upload : 'Pošalji', + alt : 'Alternativni tekst', + lockRatio : 'Zaključaj odnos', + resetSize : 'Obriši veličinu', + border : 'Okvir', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Unesite URL slike', + linkTab : 'Link', + button2Img : 'Želite li promijeniti odabrani gumb u jednostavnu sliku?', + img2Button : 'Želite li promijeniti odabranu sliku u gumb?', + urlMissing : 'Nedostaje URL slike.', + validateBorder : 'Okvir mora biti cijeli broj.', + validateHSpace : 'HSpace mora biti cijeli broj', + validateVSpace : 'VSpace mora biti cijeli broj.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash svojstva', + propertiesTab : 'Svojstva', + title : 'Flash svojstva', + chkPlay : 'Auto Play', + chkLoop : 'Ponavljaj', + chkMenu : 'Omogući Flash izbornik', + chkFull : 'Omogući Fullscreen', + scale : 'Omjer', + scaleAll : 'Prikaži sve', + scaleNoBorder : 'Bez okvira', + scaleFit : 'Točna veličina', + access : 'Script Access', + accessAlways : 'Uvijek', + accessSameDomain: 'Ista domena', + accessNever : 'Nikad', + alignAbsBottom : 'Abs dolje', + alignAbsMiddle : 'Abs sredina', + alignBaseline : 'Bazno', + alignTextTop : 'Vrh teksta', + quality : 'Kvaliteta', + qualityBest : 'Best', + qualityHigh : 'High', + qualityAutoHigh : 'Auto High', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto Low', + qualityLow : 'Low', + windowModeWindow: 'Window', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Transparent', + windowMode : 'Vrsta prozora', + flashvars : 'Varijable za Flash', + bgcolor : 'Boja pozadine', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Molimo upišite URL link', + validateHSpace : 'HSpace mora biti broj.', + validateVSpace : 'VSpace mora biti broj.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Provjeri pravopis', + title : 'Provjera pravopisa', + notAvailable : 'Žao nam je, ali usluga trenutno nije dostupna.', + errorLoading : 'Greška učitavanja aplikacije: %s.', + notInDic : 'Nije u rječniku', + changeTo : 'Promijeni u', + btnIgnore : 'Zanemari', + btnIgnoreAll : 'Zanemari sve', + btnReplace : 'Zamijeni', + btnReplaceAll : 'Zamijeni sve', + btnUndo : 'Vrati', + noSuggestions : '-Nema preporuke-', + progress : 'Provjera u tijeku...', + noMispell : 'Provjera završena: Nema grešaka', + noChanges : 'Provjera završena: Nije napravljena promjena', + oneChange : 'Provjera završena: Jedna riječ promjenjena', + manyChanges : 'Provjera završena: Promijenjeno %1 riječi', + ieSpellDownload : 'Provjera pravopisa nije instalirana. Želite li skinuti provjeru pravopisa?' + }, + + smiley : + { + toolbar : 'Smješko', + title : 'Ubaci smješka', + options : 'Opcije smješka' + }, + + elementsPath : + { + eleLabel : 'Putanja elemenata', + eleTitle : '%1 element' + }, + + numberedlist : 'Brojčana lista', + bulletedlist : 'Obična lista', + indent : 'Pomakni udesno', + outdent : 'Pomakni ulijevo', + + justify : + { + left : 'Lijevo poravnanje', + center : 'Središnje poravnanje', + right : 'Desno poravnanje', + block : 'Blok poravnanje' + }, + + blockquote : 'Blockquote', + + clipboard : + { + title : 'Zalijepi', + cutError : 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog izrezivanja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+X).', + copyError : 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+C).', + pasteMsg : 'Molimo zaljepite unutar doljnjeg okvira koristeći tipkovnicu (<STRONG>Ctrl/Cmd+V</STRONG>) i kliknite <STRONG>OK</STRONG>.', + securityMsg : 'Zbog sigurnosnih postavki Vašeg pretraživača, editor nema direktan pristup Vašem međuspremniku. Potrebno je ponovno zalijepiti tekst u ovaj prozor.', + pasteArea : 'Prostor za ljepljenje' + }, + + pastefromword : + { + confirmCleanup : 'Tekst koji želite zalijepiti čini se da je kopiran iz Worda. Želite li prije očistiti tekst?', + toolbar : 'Zalijepi iz Worda', + title : 'Zalijepi iz Worda', + error : 'Nije moguće očistiti podatke za ljepljenje zbog interne greške' + }, + + pasteText : + { + button : 'Zalijepi kao čisti tekst', + title : 'Zalijepi kao čisti tekst' + }, + + templates : + { + button : 'Predlošci', + title : 'Predlošci sadržaja', + options : 'Opcije predložaka', + insertOption : 'Zamijeni trenutne sadržaje', + selectPromptMsg : 'Molimo odaberite predložak koji želite otvoriti<br>(stvarni sadržaj će biti izgubljen):', + emptyListMsg : '(Nema definiranih predložaka)' + }, + + showBlocks : 'Prikaži blokove', + + stylesCombo : + { + label : 'Stil', + panelTitle : 'Stilovi formatiranja', + panelTitle1 : 'Block stilovi', + panelTitle2 : 'Inline stilovi', + panelTitle3 : 'Object stilovi' + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normal', + tag_pre : 'Formatirano', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Napravi DIV kontejner', + toolbar : 'Napravi DIV kontejner', + cssClassInputLabel : 'Klase stilova', + styleSelectLabel : 'Stil', + IdInputLabel : 'Id', + languageCodeInputLabel : 'Jezični kod', + inlineStyleInputLabel : 'Stil u liniji', + advisoryTitleInputLabel : 'Savjetodavni naslov', + langDirLabel : 'Smjer jezika', + langDirLTRLabel : 'S lijeva na desno (LTR)', + langDirRTLLabel : 'S desna na lijevo (RTL)', + edit : 'Uredi DIV', + remove : 'Ukloni DIV' + }, + + iframe : + { + title : 'IFrame svojstva', + toolbar : 'IFrame', + noUrl : 'Unesite URL iframe-a', + scrolling : 'Omogući trake za skrolanje', + border : 'Prikaži okvir IFrame-a' + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', + panelTitle : 'Font' + }, + + fontSize : + { + label : 'Veličina', + voiceLabel : 'Veličina slova', + panelTitle : 'Veličina' + }, + + colorButton : + { + textColorTitle : 'Boja teksta', + bgColorTitle : 'Boja pozadine', + panelTitle : 'Boje', + auto : 'Automatski', + more : 'Više boja...' + }, + + colors : + { + '000' : 'Crna', + '800000' : 'Kesten', + '8B4513' : 'Smeđa', + '2F4F4F' : 'Tamno siva', + '008080' : 'Teal', + '000080' : 'Mornarska', + '4B0082' : 'Indigo', + '696969' : 'Tamno siva', + 'B22222' : 'Vatrena cigla', + 'A52A2A' : 'Smeđa', + 'DAA520' : 'Zlatna', + '006400' : 'Tamno zelena', + '40E0D0' : 'Tirkizna', + '0000CD' : 'Srednje plava', + '800080' : 'Ljubičasta', + '808080' : 'Siva', + 'F00' : 'Crvena', + 'FF8C00' : 'Tamno naranđasta', + 'FFD700' : 'Zlatna', + '008000' : 'Zelena', + '0FF' : 'Cijan', + '00F' : 'Plava', + 'EE82EE' : 'Ljubičasta', + 'A9A9A9' : 'Mutno siva', + 'FFA07A' : 'Svijetli losos', + 'FFA500' : 'Naranđasto', + 'FFFF00' : 'Žuto', + '00FF00' : 'Limun', + 'AFEEEE' : 'Blijedo tirkizna', + 'ADD8E6' : 'Svijetlo plava', + 'DDA0DD' : 'Šljiva', + 'D3D3D3' : 'Svijetlo siva', + 'FFF0F5' : 'Lavanda rumeno', + 'FAEBD7' : 'Antikno bijela', + 'FFFFE0' : 'Svijetlo žuta', + 'F0FFF0' : 'Med', + 'F0FFFF' : 'Azurna', + 'F0F8FF' : 'Alice plava', + 'E6E6FA' : 'Lavanda', + 'FFF' : 'Bijela' + }, + + scayt : + { + title : 'Provjeri pravopis tijekom tipkanja (SCAYT)', + opera_title : 'Nije podržano u Operi', + enable : 'Omogući SCAYT', + disable : 'Onemogući SCAYT', + about : 'O SCAYT', + toggle : 'Omoguću/Onemogući SCAYT', + options : 'Opcije', + langs : 'Jezici', + moreSuggestions : 'Više prijedloga', + ignore : 'Zanemari', + ignoreAll : 'Zanemari sve', + addWord : 'Dodaj riječ', + emptyDic : 'Naziv rječnika ne smije biti prazno.', + + optionsTab : 'Opcije', + allCaps : 'Ignoriraj riječi s velikim slovima', + ignoreDomainNames : 'Ignoriraj nazive domena', + mixedCase : 'Ignoriraj riječi s miješanim slovima', + mixedWithDigits : 'Ignoriraj riječi s brojevima', + + languagesTab : 'Jezici', + + dictionariesTab : 'Rječnici', + dic_field_name : 'Naziv riječnika', + dic_create : 'Napravi', + dic_restore : 'Povrati', + dic_delete : 'Obriši', + dic_rename : 'Promijeni naziv', + dic_info : 'Na početku se korisnički Riječnik sprema u Cookie. Nažalost, veličina im je ograničena. Kada korisnički Riječnik naraste preko te veličine, Riječnik će biti smješten na naš server. Kako bi se korisnički Riječnik spremio na naš server morate odabrati naziv Vašeg Riječnika. Ukoliko ste već prije spremali Riječnik na naše servere, unesite naziv Riječnika i pritisnite na Povrati.', + + aboutTab : 'O SCAYT' + }, + + about : + { + title : 'O CKEditoru', + dlgTitle : 'O CKEditoru', + help : 'Provjeri $1 za pomoć.', + userGuide : 'Vodič za CKEditor korisnike', + moreInfo : 'Za informacije o licencama posjetite našu web stranicu:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : 'Povećaj', + minimize : 'Smanji', + + fakeobjects : + { + anchor : 'Sidro', + flash : 'Flash animacija', + iframe : 'IFrame', + hiddenfield : 'Sakriveno polje', + unknown : 'Nepoznati objekt' + }, + + resize : 'Povuci za promjenu veličine', + + colordialog : + { + title : 'Odaberi boju', + options : 'Opcije boje', + highlight : 'Istaknuto', + selected : 'Odabrana boja', + clear : 'Očisti' + }, + + toolbarCollapse : 'Smanji alatnu traku', + toolbarExpand : 'Proširi alatnu traku', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Međuspremnik/Poništi', + editing : 'Uređivanje', + forms : 'Forme', + basicstyles : 'Osnovni stilovi', + paragraph : 'Paragraf', + links : 'Veze', + insert : 'Umetni', + styles : 'Stilovi', + colors : 'Boje', + tools : 'Alatke' + }, + + bidi : + { + ltr : 'Smjer teksta s lijeva na desno', + rtl : 'Smjer teksta s desna na lijevo' + }, + + docprops : + { + label : 'Svojstva dokumenta', + title : 'Svojstva dokumenta', + design : 'Dizajn', + meta : 'Meta Data', + chooseColor : 'Odaberi', + other : '<drugi>', + docTitle : 'Naslov stranice', + charset : 'Enkodiranje znakova', + charsetOther : 'Ostalo enkodiranje znakova', + charsetASCII : 'ASCII', + charsetCE : 'Središnja Europa', + charsetCT : 'Tradicionalna kineska (Big5)', + charsetCR : 'Ćirilica', + charsetGR : 'Grčka', + charsetJP : 'Japanska', + charsetKR : 'Koreanska', + charsetTR : 'Turska', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Zapadna Europa', + docType : 'Zaglavlje vrste dokumenta', + docTypeOther : 'Ostalo zaglavlje vrste dokumenta', + xhtmlDec : 'Ubaci XHTML deklaracije', + bgColor : 'Boja pozadine', + bgImage : 'URL slike pozadine', + bgFixed : 'Pozadine se ne pomiče', + txtColor : 'Boja teksta', + margin : 'Margine stranice', + marginTop : 'Vrh', + marginLeft : 'Lijevo', + marginRight : 'Desno', + marginBottom : 'Dolje', + metaKeywords : 'Ključne riječi dokumenta (odvojene zarezom)', + metaDescription : 'Opis dokumenta', + metaAuthor : 'Autor', + metaCopyright : 'Autorska prava', + previewHtml : '<p>Ovo je neki <strong>primjer teksta</strong>. Vi koristite <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/hu.js b/htdocs/includes/ckeditor/_source/lang/hu.js new file mode 100644 index 0000000000000000000000000000000000000000..b44ed03d8c6ee1e0aa4fbab650423d1caf958fa3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/hu.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Hungarian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['hu'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Szerkesztő Eszköztár', + editor : 'HTML szerkesztő', + + // Toolbar buttons without dialogs. + source : 'Forráskód', + newPage : 'Új oldal', + save : 'Mentés', + preview : 'Előnézet', + cut : 'Kivágás', + copy : 'Másolás', + paste : 'Beillesztés', + print : 'Nyomtatás', + underline : 'Aláhúzott', + bold : 'Félkövér', + italic : 'Dőlt', + selectAll : 'Mindent kijelöl', + removeFormat : 'Formázás eltávolítása', + strike : 'Áthúzott', + subscript : 'Alsó index', + superscript : 'Felső index', + horizontalrule : 'Elválasztóvonal beillesztése', + pagebreak : 'Oldaltörés beillesztése', + pagebreakAlt : 'Oldaltörés', + unlink : 'Hivatkozás törlése', + undo : 'Visszavonás', + redo : 'Ismétlés', + + // Common messages and labels. + common : + { + browseServer : 'Böngészés a szerveren', + url : 'Hivatkozás', + protocol : 'Protokoll', + upload : 'Feltöltés', + uploadSubmit : 'Küldés a szerverre', + image : 'Kép', + flash : 'Flash', + form : 'Űrlap', + checkbox : 'Jelölőnégyzet', + radio : 'Választógomb', + textField : 'Szövegmező', + textarea : 'Szövegterület', + hiddenField : 'Rejtettmező', + button : 'Gomb', + select : 'Legördülő lista', + imageButton : 'Képgomb', + notSet : '<nincs beállítva>', + id : 'Azonosító', + name : 'Név', + langDir : 'Írás iránya', + langDirLtr : 'Balról jobbra', + langDirRtl : 'Jobbról balra', + langCode : 'Nyelv kódja', + longDescr : 'Részletes leírás webcíme', + cssClass : 'Stíluskészlet', + advisoryTitle : 'Súgócimke', + cssStyle : 'Stílus', + ok : 'Rendben', + cancel : 'Mégsem', + close : 'Bezárás', + preview : 'Előnézet', + generalTab : 'Általános', + advancedTab : 'További opciók', + validateNumberFailed : 'A mezőbe csak számokat írhat.', + confirmNewPage : 'Minden nem mentett változás el fog veszni! Biztosan be szeretné tölteni az oldalt?', + confirmCancel : 'Az űrlap tartalma megváltozott, ám a változásokat nem rögzítette. Biztosan be szeretné zárni az űrlapot?', + options : 'Beállítások', + target : 'Cél', + targetNew : 'Új ablak (_blank)', + targetTop : 'Legfelső ablak (_top)', + targetSelf : 'Aktuális ablakban (_self)', + targetParent : 'Szülő ablak (_parent)', + langDirLTR : 'Balról jobbra (LTR)', + langDirRTL : 'Jobbról balra (RTL)', + styles : 'Stílus', + cssClasses : 'Stíluslap osztály', + width : 'Szélesség', + height : 'Magasság', + align : 'Igazítás', + alignLeft : 'Bal', + alignRight : 'Jobbra', + alignCenter : 'Középre', + alignTop : 'Tetejére', + alignMiddle : 'Középre', + alignBottom : 'Aljára', + invalidHeight : 'A magasság mezőbe csak számokat írhat.', + invalidWidth : 'A szélesség mezőbe csak számokat írhat.', + invalidCssLength : '"%1"-hez megadott érték csakis egy pozitív szám lehet, esetleg egy érvényes CSS egységgel megjelölve(px, %, in, cm, mm, em, ex, pt vagy pc).', + invalidHtmlLength : '"%1"-hez megadott érték csakis egy pozitív szám lehet, esetleg egy érvényes HTML egységgel megjelölve(px vagy %).', + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, nem elérhető</span>' + }, + + contextmenu : + { + options : 'Helyi menü opciók' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Speciális karakter beillesztése', + title : 'Speciális karakter választása', + options : 'Speciális karakter opciók' + }, + + // Link dialog. + link : + { + toolbar : 'Hivatkozás beillesztése/módosítása', + other : '<más>', + menu : 'Hivatkozás módosítása', + title : 'Hivatkozás tulajdonságai', + info : 'Alaptulajdonságok', + target : 'Tartalom megjelenítése', + upload : 'Feltöltés', + advanced : 'További opciók', + type : 'Hivatkozás típusa', + toUrl : 'URL', + toAnchor : 'Horgony az oldalon', + toEmail : 'E-Mail', + targetFrame : '<keretben>', + targetPopup : '<felugró ablakban>', + targetFrameName : 'Keret neve', + targetPopupName : 'Felugró ablak neve', + popupFeatures : 'Felugró ablak jellemzői', + popupResizable : 'Átméretezés', + popupStatusBar : 'Állapotsor', + popupLocationBar: 'Címsor', + popupToolbar : 'Eszköztár', + popupMenuBar : 'Menü sor', + popupFullScreen : 'Teljes képernyő (csak IE)', + popupScrollBars : 'Gördítősáv', + popupDependent : 'Szülőhöz kapcsolt (csak Netscape)', + popupLeft : 'Bal pozíció', + popupTop : 'Felső pozíció', + id : 'Id', + langDir : 'Írás iránya', + langDirLTR : 'Balról jobbra', + langDirRTL : 'Jobbról balra', + acccessKey : 'Billentyűkombináció', + name : 'Név', + langCode : 'Írás iránya', + tabIndex : 'Tabulátor index', + advisoryTitle : 'Súgócimke', + advisoryContentType : 'Súgó tartalomtípusa', + cssClasses : 'Stíluskészlet', + charset : 'Hivatkozott tartalom kódlapja', + styles : 'Stílus', + rel : 'Kapcsolat típusa', + selectAnchor : 'Horgony választása', + anchorName : 'Horgony név szerint', + anchorId : 'Azonosító szerint', + emailAddress : 'E-Mail cím', + emailSubject : 'Üzenet tárgya', + emailBody : 'Üzenet', + noAnchors : '(Nincs horgony a dokumentumban)', + noUrl : 'Adja meg a hivatkozás webcímét', + noEmail : 'Adja meg az E-Mail címet' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Horgony beillesztése/szerkesztése', + menu : 'Horgony tulajdonságai', + title : 'Horgony tulajdonságai', + name : 'Horgony neve', + errorName : 'Kérem adja meg a horgony nevét', + remove : 'Horgony eltávolítása' + }, + + // List style dialog + list: + { + numberedTitle : 'Sorszámozott lista tulajdonságai', + bulletedTitle : 'Pontozott lista tulajdonságai', + type : 'Típus', + start : 'Kezdőszám', + validateStartNumber :'A kezdőszám nem lehet tört érték.', + circle : 'Kör', + disc : 'Korong', + square : 'Négyzet', + none : 'Nincs', + notset : '<Nincs beállítva>', + armenian : 'Örmény számozás', + georgian : 'Grúz számozás (an, ban, gan, stb.)', + lowerRoman : 'Római kisbetűs (i, ii, iii, iv, v, stb.)', + upperRoman : 'Római nagybetűs (I, II, III, IV, V, stb.)', + lowerAlpha : 'Kisbetűs (a, b, c, d, e, stb.)', + upperAlpha : 'Nagybetűs (A, B, C, D, E, stb.)', + lowerGreek : 'Görög (alpha, beta, gamma, stb.)', + decimal : 'Arab számozás (1, 2, 3, stb.)', + decimalLeadingZero : 'Számozás bevezető nullákkal (01, 02, 03, stb.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Keresés és csere', + find : 'Keresés', + replace : 'Csere', + findWhat : 'Keresett szöveg:', + replaceWith : 'Csere erre:', + notFoundMsg : 'A keresett szöveg nem található.', + findOptions : 'Find Options', // MISSING + matchCase : 'kis- és nagybetű megkülönböztetése', + matchWord : 'csak ha ez a teljes szó', + matchCyclic : 'Ciklikus keresés', + replaceAll : 'Az összes cseréje', + replaceSuccessMsg : '%1 egyezőség cserélve.' + }, + + // Table Dialog + table : + { + toolbar : 'Táblázat', + title : 'Táblázat tulajdonságai', + menu : 'Táblázat tulajdonságai', + deleteTable : 'Táblázat törlése', + rows : 'Sorok', + columns : 'Oszlopok', + border : 'Szegélyméret', + widthPx : 'képpont', + widthPc : 'százalék', + widthUnit : 'Szélesség egység', + cellSpace : 'Cella térköz', + cellPad : 'Cella belső margó', + caption : 'Felirat', + summary : 'Leírás', + headers : 'Fejlécek', + headersNone : 'Nincsenek', + headersColumn : 'Első oszlop', + headersRow : 'Első sor', + headersBoth : 'Mindkettő', + invalidRows : 'A sorok számának nagyobbnak kell lenni mint 0.', + invalidCols : 'Az oszlopok számának nagyobbnak kell lenni mint 0.', + invalidBorder : 'A szegélyméret mezőbe csak számokat írhat.', + invalidWidth : 'A szélesség mezőbe csak számokat írhat.', + invalidHeight : 'A magasság mezőbe csak számokat írhat.', + invalidCellSpacing : 'A cella térköz mezőbe csak számokat írhat.', + invalidCellPadding : 'A cella belső margó mezőbe csak számokat írhat.', + + cell : + { + menu : 'Cella', + insertBefore : 'Beszúrás balra', + insertAfter : 'Beszúrás jobbra', + deleteCell : 'Cellák törlése', + merge : 'Cellák egyesítése', + mergeRight : 'Cellák egyesítése jobbra', + mergeDown : 'Cellák egyesítése lefelé', + splitHorizontal : 'Cellák szétválasztása vízszintesen', + splitVertical : 'Cellák szétválasztása függőlegesen', + title : 'Cella tulajdonságai', + cellType : 'Cella típusa', + rowSpan : 'Függőleges egyesítés', + colSpan : 'Vízszintes egyesítés', + wordWrap : 'Hosszú sorok törése', + hAlign : 'Vízszintes igazítás', + vAlign : 'Függőleges igazítás', + alignBaseline : 'Alapvonalra', + bgColor : 'Háttér színe', + borderColor : 'Keret színe', + data : 'Adat', + header : 'Fejléc', + yes : 'Igen', + no : 'Nem', + invalidWidth : 'A szélesség mezőbe csak számokat írhat.', + invalidHeight : 'A magasság mezőbe csak számokat írhat.', + invalidRowSpan : 'A függőleges egyesítés mezőbe csak számokat írhat.', + invalidColSpan : 'A vízszintes egyesítés mezőbe csak számokat írhat.', + chooseColor : 'Válasszon' + }, + + row : + { + menu : 'Sor', + insertBefore : 'Beszúrás fölé', + insertAfter : 'Beszúrás alá', + deleteRow : 'Sorok törlése' + }, + + column : + { + menu : 'Oszlop', + insertBefore : 'Beszúrás balra', + insertAfter : 'Beszúrás jobbra', + deleteColumn : 'Oszlopok törlése' + } + }, + + // Button Dialog. + button : + { + title : 'Gomb tulajdonságai', + text : 'Szöveg (Érték)', + type : 'Típus', + typeBtn : 'Gomb', + typeSbm : 'Küldés', + typeRst : 'Alaphelyzet' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Jelölőnégyzet tulajdonságai', + radioTitle : 'Választógomb tulajdonságai', + value : 'Érték', + selected : 'Kiválasztott' + }, + + // Form Dialog. + form : + { + title : 'Űrlap tulajdonságai', + menu : 'Űrlap tulajdonságai', + action : 'Adatfeldolgozást végző hivatkozás', + method : 'Adatküldés módja', + encoding : 'Kódolás' + }, + + // Select Field Dialog. + select : + { + title : 'Legördülő lista tulajdonságai', + selectInfo : 'Alaptulajdonságok', + opAvail : 'Elérhető opciók', + value : 'Érték', + size : 'Méret', + lines : 'sor', + chkMulti : 'több sor is kiválasztható', + opText : 'Szöveg', + opValue : 'Érték', + btnAdd : 'Hozzáad', + btnModify : 'Módosít', + btnUp : 'Fel', + btnDown : 'Le', + btnSetValue : 'Legyen az alapértelmezett érték', + btnDelete : 'Töröl' + }, + + // Textarea Dialog. + textarea : + { + title : 'Szövegterület tulajdonságai', + cols : 'Karakterek száma egy sorban', + rows : 'Sorok száma' + }, + + // Text Field Dialog. + textfield : + { + title : 'Szövegmező tulajdonságai', + name : 'Név', + value : 'Érték', + charWidth : 'Megjelenített karakterek száma', + maxChars : 'Maximális karakterszám', + type : 'Típus', + typeText : 'Szöveg', + typePass : 'Jelszó' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Rejtett mező tulajdonságai', + name : 'Név', + value : 'Érték' + }, + + // Image Dialog. + image : + { + title : 'Kép tulajdonságai', + titleButton : 'Képgomb tulajdonságai', + menu : 'Kép tulajdonságai', + infoTab : 'Alaptulajdonságok', + btnUpload : 'Küldés a szerverre', + upload : 'Feltöltés', + alt : 'Buborék szöveg', + lockRatio : 'Arány megtartása', + resetSize : 'Eredeti méret', + border : 'Keret', + hSpace : 'Vízsz. táv', + vSpace : 'Függ. táv', + alertUrl : 'Töltse ki a kép webcímét', + linkTab : 'Hivatkozás', + button2Img : 'A kiválasztott képgombból sima képet szeretne csinálni?', + img2Button : 'A kiválasztott képből képgombot szeretne csinálni?', + urlMissing : 'Hiányzik a kép URL-je', + validateBorder : 'A keret méretének egész számot kell beírni!', + validateHSpace : 'Vízszintes távolságnak egész számot kell beírni!', + validateVSpace : 'Függőleges távolságnak egész számot kell beírni!' + }, + + // Flash Dialog + flash : + { + properties : 'Flash tulajdonságai', + propertiesTab : 'Tulajdonságok', + title : 'Flash tulajdonságai', + chkPlay : 'Automata lejátszás', + chkLoop : 'Folyamatosan', + chkMenu : 'Flash menü engedélyezése', + chkFull : 'Teljes képernyő engedélyezése', + scale : 'Méretezés', + scaleAll : 'Mindent mutat', + scaleNoBorder : 'Keret nélkül', + scaleFit : 'Teljes kitöltés', + access : 'Szkript hozzáférés', + accessAlways : 'Mindig', + accessSameDomain: 'Azonos domainről', + accessNever : 'Soha', + alignAbsBottom : 'Legaljára', + alignAbsMiddle : 'Közepére', + alignBaseline : 'Alapvonalhoz', + alignTextTop : 'Szöveg tetejére', + quality : 'Minőség', + qualityBest : 'Legjobb', + qualityHigh : 'Jó', + qualityAutoHigh : 'Automata jó', + qualityMedium : 'Közepes', + qualityAutoLow : 'Automata gyenge', + qualityLow : 'Gyenge', + windowModeWindow: 'Window', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Transparent', + windowMode : 'Ablak mód', + flashvars : 'Flash változók', + bgcolor : 'Háttérszín', + hSpace : 'Vízsz. táv', + vSpace : 'Függ. táv', + validateSrc : 'Adja meg a hivatkozás webcímét', + validateHSpace : 'A vízszintes távolsűág mezőbe csak számokat írhat.', + validateVSpace : 'A függőleges távolsűág mezőbe csak számokat írhat.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Helyesírás-ellenőrzés', + title : 'Helyesírás ellenörző', + notAvailable : 'Sajnálom, de a szolgáltatás jelenleg nem elérhető.', + errorLoading : 'Hiba a szolgáltatás host betöltése közben: %s.', + notInDic : 'Nincs a szótárban', + changeTo : 'Módosítás', + btnIgnore : 'Kihagyja', + btnIgnoreAll : 'Mindet kihagyja', + btnReplace : 'Csere', + btnReplaceAll : 'Összes cseréje', + btnUndo : 'Visszavonás', + noSuggestions : 'Nincs javaslat', + progress : 'Helyesírás-ellenőrzés folyamatban...', + noMispell : 'Helyesírás-ellenőrzés kész: Nem találtam hibát', + noChanges : 'Helyesírás-ellenőrzés kész: Nincs változtatott szó', + oneChange : 'Helyesírás-ellenőrzés kész: Egy szó cserélve', + manyChanges : 'Helyesírás-ellenőrzés kész: %1 szó cserélve', + ieSpellDownload : 'A helyesírás-ellenőrző nincs telepítve. Szeretné letölteni most?' + }, + + smiley : + { + toolbar : 'Hangulatjelek', + title : 'Hangulatjel beszúrása', + options : 'Hangulatjel opciók' + }, + + elementsPath : + { + eleLabel : 'Elem utak', + eleTitle : '%1 elem' + }, + + numberedlist : 'Számozás', + bulletedlist : 'Felsorolás', + indent : 'Behúzás növelése', + outdent : 'Behúzás csökkentése', + + justify : + { + left : 'Balra', + center : 'Középre', + right : 'Jobbra', + block : 'Sorkizárt' + }, + + blockquote : 'Idézet blokk', + + clipboard : + { + title : 'Beillesztés', + cutError : 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a kivágás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).', + copyError : 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a másolás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).', + pasteMsg : 'Másolja be az alábbi mezőbe a <STRONG>Ctrl/Cmd+V</STRONG> billentyűk lenyomásával, majd nyomjon <STRONG>Rendben</STRONG>-t.', + securityMsg : 'A böngésző biztonsági beállításai miatt a szerkesztő nem képes hozzáférni a vágólap adataihoz. Illeszd be újra ebben az ablakban.', + pasteArea : 'Beszúrás mező' + }, + + pastefromword : + { + confirmCleanup : 'Úgy tűnik a beillesztett szöveget Word-ből másolt át. Meg szeretné tisztítani a szöveget? (ajánlott)', + toolbar : 'Beillesztés Word-ből', + title : 'Beillesztés Word-ből', + error : 'Egy belső hiba miatt nem sikerült megtisztítani a szöveget' + }, + + pasteText : + { + button : 'Beillesztés formázatlan szövegként', + title : 'Beillesztés formázatlan szövegként' + }, + + templates : + { + button : 'Sablonok', + title : 'Elérhető sablonok', + options : 'Sablon opciók', + insertOption : 'Kicseréli a jelenlegi tartalmat', + selectPromptMsg : 'Válassza ki melyik sablon nyíljon meg a szerkesztőben<br>(a jelenlegi tartalom elveszik):', + emptyListMsg : '(Nincs sablon megadva)' + }, + + showBlocks : 'Blokkok megjelenítése', + + stylesCombo : + { + label : 'Stílus', + panelTitle : 'Formázási stílusok', + panelTitle1 : 'Blokk stílusok', + panelTitle2 : 'Inline stílusok', + panelTitle3 : 'Objektum stílusok' + }, + + format : + { + label : 'Formátum', + panelTitle : 'Formátum', + + tag_p : 'Normál', + tag_pre : 'Formázott', + tag_address : 'Címsor', + tag_h1 : 'Fejléc 1', + tag_h2 : 'Fejléc 2', + tag_h3 : 'Fejléc 3', + tag_h4 : 'Fejléc 4', + tag_h5 : 'Fejléc 5', + tag_h6 : 'Fejléc 6', + tag_div : 'Bekezdés (DIV)' + }, + + div : + { + title : 'DIV tároló létrehozása', + toolbar : 'DIV tároló létrehozása', + cssClassInputLabel : 'Stíluslap osztály', + styleSelectLabel : 'Stílus', + IdInputLabel : 'Azonosító', + languageCodeInputLabel : ' Nyelv kódja', + inlineStyleInputLabel : 'Inline stílus', + advisoryTitleInputLabel : 'Tipp szöveg', + langDirLabel : 'Nyelvi irány', + langDirLTRLabel : 'Balról jobbra (LTR)', + langDirRTLLabel : 'Jobbról balra (RTL)', + edit : 'DIV szerkesztése', + remove : 'DIV eltávolítása' + }, + + iframe : + { + title : 'IFrame Tulajdonságok', + toolbar : 'IFrame', + noUrl : 'Kérem írja be a iframe URL-t', + scrolling : 'Gördítősáv bekapcsolása', + border : 'Legyen keret' + }, + + font : + { + label : 'Betűtípus', + voiceLabel : 'Betűtípus', + panelTitle : 'Betűtípus' + }, + + fontSize : + { + label : 'Méret', + voiceLabel : 'Betűméret', + panelTitle : 'Méret' + }, + + colorButton : + { + textColorTitle : 'Betűszín', + bgColorTitle : 'Háttérszín', + panelTitle : 'Színek', + auto : 'Automatikus', + more : 'További színek...' + }, + + colors : + { + '000' : 'Fekete', + '800000' : 'Bordó', + '8B4513' : 'Barna', + '2F4F4F' : 'Sötét türkiz', + '008080' : 'Türkiz', + '000080' : 'Király kék', + '4B0082' : 'Indigó kék', + '696969' : 'Szürke', + 'B22222' : 'Tégla vörös', + 'A52A2A' : 'Vörös', + 'DAA520' : 'Arany sárga', + '006400' : 'Sötét zöld', + '40E0D0' : 'Türkiz', + '0000CD' : 'Kék', + '800080' : 'Lila', + '808080' : 'Szürke', + 'F00' : 'Piros', + 'FF8C00' : 'Sötét narancs', + 'FFD700' : 'Arany', + '008000' : 'Zöld', + '0FF' : 'Türkiz', + '00F' : 'Kék', + 'EE82EE' : 'Rózsaszín', + 'A9A9A9' : 'Sötét szürke', + 'FFA07A' : 'Lazac', + 'FFA500' : 'Narancs', + 'FFFF00' : 'Citromsárga', + '00FF00' : 'Neon zöld', + 'AFEEEE' : 'Világos türkiz', + 'ADD8E6' : 'Világos kék', + 'DDA0DD' : 'Világos lila', + 'D3D3D3' : 'Világos szürke', + 'FFF0F5' : 'Lavender Blush', + 'FAEBD7' : 'Törtfehér', + 'FFFFE0' : 'Világos sárga', + 'F0FFF0' : 'Menta', + 'F0FFFF' : 'Azúr kék', + 'F0F8FF' : 'Halvány kék', + 'E6E6FA' : 'Lavender', + 'FFF' : 'Fehér' + }, + + scayt : + { + title : 'Helyesírás ellenőrzés gépelés közben', + opera_title : 'Az Opera nem támogatja', + enable : 'SCAYT engedélyezése', + disable : 'SCAYT letiltása', + about : 'SCAYT névjegy', + toggle : 'SCAYT kapcsolása', + options : 'Beállítások', + langs : 'Nyelvek', + moreSuggestions : 'További javaslatok', + ignore : 'Kihagy', + ignoreAll : 'Összes kihagyása', + addWord : 'Szó hozzáadása', + emptyDic : 'A szótár nevét meg kell adni.', + + optionsTab : 'Beállítások', + allCaps : 'Nagybetűs szavak kihagyása', + ignoreDomainNames : 'Domain nevek kihagyása', + mixedCase : 'Kis és nagybetűt is tartalmazó szavak kihagyása', + mixedWithDigits : 'Számokat tartalmazó szavak kihagyása', + + languagesTab : 'Nyelvek', + + dictionariesTab : 'Szótár', + dic_field_name : 'Szótár neve', + dic_create : 'Létrehozás', + dic_restore : 'Visszaállítás', + dic_delete : 'Törlés', + dic_rename : 'Átnevezés', + dic_info : 'Kezdetben a felhasználói szótár böngésző sütiben tárolódik. Azonban a sütik maximális mérete korlátozott. Amikora a szótár akkora lesz, hogy már sütiben nem lehet tárolni, akkor a szótárat tárolhatja a szerveren is. Ehhez egy nevet kell megadni a szótárhoz. Amennyiben már van szerveren tárolt szótára, adja meg a nevét és kattintson a visszaállítás gombra.', + + aboutTab : 'Névjegy' + }, + + about : + { + title : 'CKEditor névjegy', + dlgTitle : 'CKEditor névjegy', + help : 'Itt találsz segítséget: $1', + userGuide : 'CKEditor Felhasználói útmutató', + moreInfo : 'Licenszelési információkért kérjük látogassa meg weboldalunkat:', + copy : 'Copyright © $1. Minden jog fenntartva.' + }, + + maximize : 'Teljes méret', + minimize : 'Kis méret', + + fakeobjects : + { + anchor : 'Horgony', + flash : 'Flash animáció', + iframe : 'IFrame', + hiddenfield : 'Rejtett mezõ', + unknown : 'Ismeretlen objektum' + }, + + resize : 'Húzza az átméretezéshez', + + colordialog : + { + title : 'Válasszon színt', + options : 'Szín opciók', + highlight : 'Nagyítás', + selected : 'Kiválasztott', + clear : 'Ürítés' + }, + + toolbarCollapse : 'Eszköztár összecsukása', + toolbarExpand : 'Eszköztár szétnyitása', + + toolbarGroups : + { + document : 'Dokumentum', + clipboard : 'Vágólap/Visszavonás', + editing : 'Szerkesztés', + forms : 'Űrlapok', + basicstyles : 'Alapstílusok', + paragraph : 'Bekezdés', + links : 'Hivatkozások', + insert : 'Beszúrás', + styles : 'Stílusok', + colors : 'Színek', + tools : 'Eszközök' + }, + + bidi : + { + ltr : 'Szöveg iránya balról jobbra', + rtl : 'Szöveg iránya jobbról balra' + }, + + docprops : + { + label : 'Dokumentum tulajdonságai', + title : 'Dokumentum tulajdonságai', + design : 'Design', + meta : 'Meta adatok', + chooseColor : 'Válasszon', + other : '<más>', + docTitle : 'Oldalcím', + charset : 'Karakterkódolás', + charsetOther : 'Más karakterkódolás', + charsetASCII : 'ASCII', + charsetCE : 'Közép-Európai', + charsetCT : 'Kínai Tradicionális (Big5)', + charsetCR : 'Cyrill', + charsetGR : 'Görög', + charsetJP : 'Japán', + charsetKR : 'Koreai', + charsetTR : 'Török', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Nyugat-Európai', + docType : 'Dokumentum típus fejléc', + docTypeOther : 'Más dokumentum típus fejléc', + xhtmlDec : 'XHTML deklarációk beillesztése', + bgColor : 'Háttérszín', + bgImage : 'Háttérkép cím', + bgFixed : 'Nem gördíthető háttér', + txtColor : 'Betűszín', + margin : 'Oldal margók', + marginTop : 'Felső', + marginLeft : 'Bal', + marginRight : 'Jobb', + marginBottom : 'Alsó', + metaKeywords : 'Dokumentum keresőszavak (vesszővel elválasztva)', + metaDescription : 'Dokumentum leírás', + metaAuthor : 'Szerző', + metaCopyright : 'Szerzői jog', + previewHtml : '<p>Ez itt egy <strong>példa</strong>. A <a href="javascript:void(0)">CKEditor</a>-t használod.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/id.js b/htdocs/includes/ckeditor/_source/lang/id.js new file mode 100644 index 0000000000000000000000000000000000000000..98eaff1e0449801ba8cd45e84ec8a7a3ab3de5d4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/id.js @@ -0,0 +1,815 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** +* @fileOverview +*/ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['id'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Source', // MISSING + newPage : 'New Page', // MISSING + save : 'Save', // MISSING + preview : 'Preview', // MISSING + cut : 'Cut', // MISSING + copy : 'Copy', // MISSING + paste : 'Paste', // MISSING + print : 'Print', // MISSING + underline : 'Underline', // MISSING + bold : 'Bold', // MISSING + italic : 'Italic', // MISSING + selectAll : 'Select All', // MISSING + removeFormat : 'Remove Format', // MISSING + strike : 'Strike Through', // MISSING + subscript : 'Subscript', // MISSING + superscript : 'Superscript', // MISSING + horizontalrule : 'Insert Horizontal Line', // MISSING + pagebreak : 'Insert Page Break for Printing', // MISSING + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Unlink', // MISSING + undo : 'Undo', // MISSING + redo : 'Redo', // MISSING + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', // MISSING + url : 'URL', // MISSING + protocol : 'Protocol', // MISSING + upload : 'Upload', // MISSING + uploadSubmit : 'Send it to the Server', // MISSING + image : 'Image', // MISSING + flash : 'Flash', // MISSING + form : 'Form', // MISSING + checkbox : 'Checkbox', // MISSING + radio : 'Radio Button', // MISSING + textField : 'Text Field', // MISSING + textarea : 'Textarea', // MISSING + hiddenField : 'Hidden Field', // MISSING + button : 'Button', // MISSING + select : 'Selection Field', // MISSING + imageButton : 'Image Button', // MISSING + notSet : '<not set>', // MISSING + id : 'Id', // MISSING + name : 'Name', // MISSING + langDir : 'Language Direction', // MISSING + langDirLtr : 'Left to Right (LTR)', // MISSING + langDirRtl : 'Right to Left (RTL)', // MISSING + langCode : 'Language Code', // MISSING + longDescr : 'Long Description URL', // MISSING + cssClass : 'Stylesheet Classes', // MISSING + advisoryTitle : 'Advisory Title', // MISSING + cssStyle : 'Style', // MISSING + ok : 'OK', // MISSING + cancel : 'Cancel', // MISSING + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Advanced', // MISSING + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Width', // MISSING + height : 'Height', // MISSING + align : 'Alignment', // MISSING + alignLeft : 'Left', // MISSING + alignRight : 'Right', // MISSING + alignCenter : 'Center', // MISSING + alignTop : 'Top', // MISSING + alignMiddle : 'Middle', // MISSING + alignBottom : 'Bottom', // MISSING + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insert Special Character', // MISSING + title : 'Select Special Character', // MISSING + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Link', // MISSING + other : '<other>', // MISSING + menu : 'Edit Link', // MISSING + title : 'Link', // MISSING + info : 'Link Info', // MISSING + target : 'Target', // MISSING + upload : 'Upload', // MISSING + advanced : 'Advanced', // MISSING + type : 'Link Type', // MISSING + toUrl : 'URL', // MISSING + toAnchor : 'Link to anchor in the text', // MISSING + toEmail : 'E-mail', // MISSING + targetFrame : '<frame>', // MISSING + targetPopup : '<popup window>', // MISSING + targetFrameName : 'Target Frame Name', // MISSING + targetPopupName : 'Popup Window Name', // MISSING + popupFeatures : 'Popup Window Features', // MISSING + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Status Bar', // MISSING + popupLocationBar: 'Location Bar', // MISSING + popupToolbar : 'Toolbar', // MISSING + popupMenuBar : 'Menu Bar', // MISSING + popupFullScreen : 'Full Screen (IE)', // MISSING + popupScrollBars : 'Scroll Bars', // MISSING + popupDependent : 'Dependent (Netscape)', // MISSING + popupLeft : 'Left Position', // MISSING + popupTop : 'Top Position', // MISSING + id : 'Id', // MISSING + langDir : 'Language Direction', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + acccessKey : 'Access Key', // MISSING + name : 'Name', // MISSING + langCode : 'Language Code', // MISSING + tabIndex : 'Tab Index', // MISSING + advisoryTitle : 'Advisory Title', // MISSING + advisoryContentType : 'Advisory Content Type', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + charset : 'Linked Resource Charset', // MISSING + styles : 'Style', // MISSING + rel : 'Relationship', // MISSING + selectAnchor : 'Select an Anchor', // MISSING + anchorName : 'By Anchor Name', // MISSING + anchorId : 'By Element Id', // MISSING + emailAddress : 'E-Mail Address', // MISSING + emailSubject : 'Message Subject', // MISSING + emailBody : 'Message Body', // MISSING + noAnchors : '(No anchors available in the document)', // MISSING + noUrl : 'Please type the link URL', // MISSING + noEmail : 'Please type the e-mail address' // MISSING + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anchor', // MISSING + menu : 'Edit Anchor', // MISSING + title : 'Anchor Properties', // MISSING + name : 'Anchor Name', // MISSING + errorName : 'Please type the anchor name', // MISSING + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Find', // MISSING + replace : 'Replace', // MISSING + findWhat : 'Find what:', // MISSING + replaceWith : 'Replace with:', // MISSING + notFoundMsg : 'The specified text was not found.', // MISSING + findOptions : 'Find Options', // MISSING + matchCase : 'Match case', // MISSING + matchWord : 'Match whole word', // MISSING + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Replace All', // MISSING + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Table', // MISSING + title : 'Table Properties', // MISSING + menu : 'Table Properties', // MISSING + deleteTable : 'Delete Table', // MISSING + rows : 'Rows', // MISSING + columns : 'Columns', // MISSING + border : 'Border size', // MISSING + widthPx : 'pixels', // MISSING + widthPc : 'percent', // MISSING + widthUnit : 'width unit', // MISSING + cellSpace : 'Cell spacing', // MISSING + cellPad : 'Cell padding', // MISSING + caption : 'Caption', // MISSING + summary : 'Summary', // MISSING + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cell', // MISSING + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Delete Cells', // MISSING + merge : 'Merge Cells', // MISSING + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', // MISSING + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Delete Rows' // MISSING + }, + + column : + { + menu : 'Column', // MISSING + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Delete Columns' // MISSING + } + }, + + // Button Dialog. + button : + { + title : 'Button Properties', // MISSING + text : 'Text (Value)', // MISSING + type : 'Type', // MISSING + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', // MISSING + radioTitle : 'Radio Button Properties', // MISSING + value : 'Value', // MISSING + selected : 'Selected' // MISSING + }, + + // Form Dialog. + form : + { + title : 'Form Properties', // MISSING + menu : 'Form Properties', // MISSING + action : 'Action', // MISSING + method : 'Method', // MISSING + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', // MISSING + selectInfo : 'Select Info', // MISSING + opAvail : 'Available Options', // MISSING + value : 'Value', // MISSING + size : 'Size', // MISSING + lines : 'lines', // MISSING + chkMulti : 'Allow multiple selections', // MISSING + opText : 'Text', // MISSING + opValue : 'Value', // MISSING + btnAdd : 'Add', // MISSING + btnModify : 'Modify', // MISSING + btnUp : 'Up', // MISSING + btnDown : 'Down', // MISSING + btnSetValue : 'Set as selected value', // MISSING + btnDelete : 'Delete' // MISSING + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea Properties', // MISSING + cols : 'Columns', // MISSING + rows : 'Rows' // MISSING + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field Properties', // MISSING + name : 'Name', // MISSING + value : 'Value', // MISSING + charWidth : 'Character Width', // MISSING + maxChars : 'Maximum Characters', // MISSING + type : 'Type', // MISSING + typeText : 'Text', // MISSING + typePass : 'Password' // MISSING + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field Properties', // MISSING + name : 'Name', // MISSING + value : 'Value' // MISSING + }, + + // Image Dialog. + image : + { + title : 'Image Properties', // MISSING + titleButton : 'Image Button Properties', // MISSING + menu : 'Image Properties', // MISSING + infoTab : 'Image Info', // MISSING + btnUpload : 'Send it to the Server', // MISSING + upload : 'Upload', // MISSING + alt : 'Alternative Text', // MISSING + lockRatio : 'Lock Ratio', // MISSING + resetSize : 'Reset Size', // MISSING + border : 'Border', // MISSING + hSpace : 'HSpace', // MISSING + vSpace : 'VSpace', // MISSING + alertUrl : 'Please type the image URL', // MISSING + linkTab : 'Link', // MISSING + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', // MISSING + propertiesTab : 'Properties', // MISSING + title : 'Flash Properties', // MISSING + chkPlay : 'Auto Play', // MISSING + chkLoop : 'Loop', // MISSING + chkMenu : 'Enable Flash Menu', // MISSING + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Scale', // MISSING + scaleAll : 'Show all', // MISSING + scaleNoBorder : 'No Border', // MISSING + scaleFit : 'Exact Fit', // MISSING + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs Bottom', // MISSING + alignAbsMiddle : 'Abs Middle', // MISSING + alignBaseline : 'Baseline', // MISSING + alignTextTop : 'Text Top', // MISSING + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Background color', // MISSING + hSpace : 'HSpace', // MISSING + vSpace : 'VSpace', // MISSING + validateSrc : 'URL must not be empty.', // MISSING + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Check Spelling', // MISSING + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Not in dictionary', // MISSING + changeTo : 'Change to', // MISSING + btnIgnore : 'Ignore', // MISSING + btnIgnoreAll : 'Ignore All', // MISSING + btnReplace : 'Replace', // MISSING + btnReplaceAll : 'Replace All', // MISSING + btnUndo : 'Undo', // MISSING + noSuggestions : '- No suggestions -', // MISSING + progress : 'Spell check in progress...', // MISSING + noMispell : 'Spell check complete: No misspellings found', // MISSING + noChanges : 'Spell check complete: No words changed', // MISSING + oneChange : 'Spell check complete: One word changed', // MISSING + manyChanges : 'Spell check complete: %1 words changed', // MISSING + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING + }, + + smiley : + { + toolbar : 'Smiley', // MISSING + title : 'Insert a Smiley', // MISSING + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Insert/Remove Numbered List', // MISSING + bulletedlist : 'Insert/Remove Bulleted List', // MISSING + indent : 'Increase Indent', // MISSING + outdent : 'Decrease Indent', // MISSING + + justify : + { + left : 'Align Left', // MISSING + center : 'Center', // MISSING + right : 'Align Right', // MISSING + block : 'Justify' // MISSING + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Paste', // MISSING + cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING + copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Paste from Word', // MISSING + title : 'Paste from Word', // MISSING + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Paste as plain text', // MISSING + title : 'Paste as Plain Text' // MISSING + }, + + templates : + { + button : 'Templates', // MISSING + title : 'Content Templates', // MISSING + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Please select the template to open in the editor', // MISSING + emptyListMsg : '(No templates defined)' // MISSING + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Styles', // MISSING + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Format', // MISSING + panelTitle : 'Paragraph Format', // MISSING + + tag_p : 'Normal', // MISSING + tag_pre : 'Formatted', // MISSING + tag_address : 'Address', // MISSING + tag_h1 : 'Heading 1', // MISSING + tag_h2 : 'Heading 2', // MISSING + tag_h3 : 'Heading 3', // MISSING + tag_h4 : 'Heading 4', // MISSING + tag_h5 : 'Heading 5', // MISSING + tag_h6 : 'Heading 6', // MISSING + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', // MISSING + voiceLabel : 'Font', // MISSING + panelTitle : 'Font Name' // MISSING + }, + + fontSize : + { + label : 'Size', // MISSING + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Font Size' // MISSING + }, + + colorButton : + { + textColorTitle : 'Text Color', // MISSING + bgColorTitle : 'Background Color', // MISSING + panelTitle : 'Colors', // MISSING + auto : 'Automatic', // MISSING + more : 'More Colors...' // MISSING + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Document Properties', // MISSING + title : 'Document Properties', // MISSING + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : 'Other...', // MISSING + docTitle : 'Page Title', // MISSING + charset : 'Character Set Encoding', // MISSING + charsetOther : 'Other Character Set Encoding', // MISSING + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Other Document Type Heading', // MISSING + xhtmlDec : 'Include XHTML Declarations', // MISSING + bgColor : 'Background Color', // MISSING + bgImage : 'Background Image URL', // MISSING + bgFixed : 'Non-scrolling (Fixed) Background', // MISSING + txtColor : 'Text Color', // MISSING + margin : 'Page Margins', // MISSING + marginTop : 'Top', // MISSING + marginLeft : 'Left', // MISSING + marginRight : 'Right', // MISSING + marginBottom : 'Bottom', // MISSING + metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING + metaDescription : 'Document Description', // MISSING + metaAuthor : 'Author', // MISSING + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/is.js b/htdocs/includes/ckeditor/_source/lang/is.js new file mode 100644 index 0000000000000000000000000000000000000000..51169b676367df03b2a8799b8863287c9fd34017 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/is.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Icelandic language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['is'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Kóði', + newPage : 'Ný síða', + save : 'Vista', + preview : 'Forskoða', + cut : 'Klippa', + copy : 'Afrita', + paste : 'Líma', + print : 'Prenta', + underline : 'Undirstrikað', + bold : 'Feitletrað', + italic : 'Skáletrað', + selectAll : 'Velja allt', + removeFormat : 'Fjarlægja snið', + strike : 'Yfirstrikað', + subscript : 'Niðurskrifað', + superscript : 'Uppskrifað', + horizontalrule : 'Lóðrétt lína', + pagebreak : 'Setja inn síðuskil', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Fjarlægja stiklu', + undo : 'Afturkalla', + redo : 'Hætta við afturköllun', + + // Common messages and labels. + common : + { + browseServer : 'Fletta í skjalasafni', + url : 'Vefslóð', + protocol : 'Samskiptastaðall', + upload : 'Senda upp', + uploadSubmit : 'Hlaða upp', + image : 'Setja inn mynd', + flash : 'Flash', + form : 'Setja inn innsláttarform', + checkbox : 'Setja inn hökunarreit', + radio : 'Setja inn valhnapp', + textField : 'Setja inn textareit', + textarea : 'Setja inn textasvæði', + hiddenField : 'Setja inn falið svæði', + button : 'Setja inn hnapp', + select : 'Setja inn lista', + imageButton : 'Setja inn myndahnapp', + notSet : '<ekkert valið>', + id : 'Auðkenni', + name : 'Nafn', + langDir : 'Lesstefna', + langDirLtr : 'Frá vinstri til hægri (LTR)', + langDirRtl : 'Frá hægri til vinstri (RTL)', + langCode : 'Tungumálakóði', + longDescr : 'Nánari lýsing', + cssClass : 'Stílsniðsflokkur', + advisoryTitle : 'Titill', + cssStyle : 'Stíll', + ok : 'Í lagi', + cancel : 'Hætta við', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'Almennt', + advancedTab : 'Tæknilegt', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Breidd', + height : 'Hæð', + align : 'Jöfnun', + alignLeft : 'Vinstri', + alignRight : 'Hægri', + alignCenter : 'Miðjað', + alignTop : 'Efst', + alignMiddle : 'Miðjuð', + alignBottom : 'Neðst', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Setja inn merki', + title : 'Velja tákn', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Stofna/breyta stiklu', + other : '<annar>', + menu : 'Breyta stiklu', + title : 'Stikla', + info : 'Almennt', + target : 'Mark', + upload : 'Senda upp', + advanced : 'Tæknilegt', + type : 'Stikluflokkur', + toUrl : 'URL', // MISSING + toAnchor : 'Bókamerki á þessari síðu', + toEmail : 'Netfang', + targetFrame : '<rammi>', + targetPopup : '<sprettigluggi>', + targetFrameName : 'Nafn markglugga', + targetPopupName : 'Nafn sprettiglugga', + popupFeatures : 'Eigindi sprettiglugga', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Stöðustika', + popupLocationBar: 'Fanglína', + popupToolbar : 'Verkfærastika', + popupMenuBar : 'Vallína', + popupFullScreen : 'Heilskjár (IE)', + popupScrollBars : 'Skrunstikur', + popupDependent : 'Háð venslum (Netscape)', + popupLeft : 'Fjarlægð frá vinstri', + popupTop : 'Fjarlægð frá efri brún', + id : 'Id', // MISSING + langDir : 'Lesstefna', + langDirLTR : 'Frá vinstri til hægri (LTR)', + langDirRTL : 'Frá hægri til vinstri (RTL)', + acccessKey : 'Skammvalshnappur', + name : 'Nafn', + langCode : 'Lesstefna', + tabIndex : 'Raðnúmer innsláttarreits', + advisoryTitle : 'Titill', + advisoryContentType : 'Tegund innihalds', + cssClasses : 'Stílsniðsflokkur', + charset : 'Táknróf', + styles : 'Stíll', + rel : 'Relationship', // MISSING + selectAnchor : 'Veldu akkeri', + anchorName : 'Eftir akkerisnafni', + anchorId : 'Eftir auðkenni einingar', + emailAddress : 'Netfang', + emailSubject : 'Efni', + emailBody : 'Meginmál', + noAnchors : '<Engin bókamerki á skrá>', + noUrl : 'Sláðu inn veffang stiklunnar!', + noEmail : 'Sláðu inn netfang!' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Stofna/breyta kaflamerki', + menu : 'Eigindi kaflamerkis', + title : 'Eigindi kaflamerkis', + name : 'Nafn bókamerkis', + errorName : 'Sláðu inn nafn bókamerkis!', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Finna og skipta', + find : 'Leita', + replace : 'Skipta út', + findWhat : 'Leita að:', + replaceWith : 'Skipta út fyrir:', + notFoundMsg : 'Leitartexti fannst ekki!', + findOptions : 'Find Options', // MISSING + matchCase : 'Gera greinarmun á¡ há¡- og lágstöfum', + matchWord : 'Aðeins heil orð', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Skipta út allsstaðar', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Tafla', + title : 'Eigindi töflu', + menu : 'Eigindi töflu', + deleteTable : 'Fella töflu', + rows : 'Raðir', + columns : 'Dálkar', + border : 'Breidd ramma', + widthPx : 'myndeindir', + widthPc : 'prósent', + widthUnit : 'width unit', // MISSING + cellSpace : 'Bil milli reita', + cellPad : 'Reitaspássía', + caption : 'Titill', + summary : 'Áfram', + headers : 'Fyrirsagnir', + headersNone : 'Engar', + headersColumn : 'Fyrsti dálkur', + headersRow : 'Fyrsta röð', + headersBoth : 'Hvort tveggja', + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Reitur', + insertBefore : 'Skjóta inn reiti fyrir aftan', + insertAfter : 'Skjóta inn reiti fyrir framan', + deleteCell : 'Fella reit', + merge : 'Sameina reiti', + mergeRight : 'Sameina til hægri', + mergeDown : 'Sameina niður á við', + splitHorizontal : 'Kljúfa reit lárétt', + splitVertical : 'Kljúfa reit lóðrétt', + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Röð', + insertBefore : 'Skjóta inn röð fyrir ofan', + insertAfter : 'Skjóta inn röð fyrir neðan', + deleteRow : 'Eyða röð' + }, + + column : + { + menu : 'Dálkur', + insertBefore : 'Skjóta inn dálki vinstra megin', + insertAfter : 'Skjóta inn dálki hægra megin', + deleteColumn : 'Fella dálk' + } + }, + + // Button Dialog. + button : + { + title : 'Eigindi hnapps', + text : 'Texti', + type : 'Gerð', + typeBtn : 'Hnappur', + typeSbm : 'Staðfesta', + typeRst : 'Hreinsa' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Eigindi markreits', + radioTitle : 'Eigindi valhnapps', + value : 'Gildi', + selected : 'Valið' + }, + + // Form Dialog. + form : + { + title : 'Eigindi innsláttarforms', + menu : 'Eigindi innsláttarforms', + action : 'Aðgerð', + method : 'Aðferð', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Eigindi lista', + selectInfo : 'Upplýsingar', + opAvail : 'Kostir', + value : 'Gildi', + size : 'Stærð', + lines : 'línur', + chkMulti : 'Leyfa fleiri kosti', + opText : 'Texti', + opValue : 'Gildi', + btnAdd : 'Bæta við', + btnModify : 'Breyta', + btnUp : 'Upp', + btnDown : 'Niður', + btnSetValue : 'Merkja sem valið', + btnDelete : 'Eyða' + }, + + // Textarea Dialog. + textarea : + { + title : 'Eigindi textasvæðis', + cols : 'Dálkar', + rows : 'Línur' + }, + + // Text Field Dialog. + textfield : + { + title : 'Eigindi textareits', + name : 'Nafn', + value : 'Gildi', + charWidth : 'Breidd (leturtákn)', + maxChars : 'Hámarksfjöldi leturtákna', + type : 'Gerð', + typeText : 'Texti', + typePass : 'Lykilorð' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Eigindi falins svæðis', + name : 'Nafn', + value : 'Gildi' + }, + + // Image Dialog. + image : + { + title : 'Eigindi myndar', + titleButton : 'Eigindi myndahnapps', + menu : 'Eigindi myndar', + infoTab : 'Almennt', + btnUpload : 'Hlaða upp', + upload : 'Hlaða upp', + alt : 'Baklægur texti', + lockRatio : 'Festa stærðarhlutfall', + resetSize : 'Reikna stærð', + border : 'Rammi', + hSpace : 'Vinstri bil', + vSpace : 'Hægri bil', + alertUrl : 'Sláðu inn slóðina að myndinni', + linkTab : 'Stikla', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Eigindi Flash', + propertiesTab : 'Properties', // MISSING + title : 'Eigindi Flash', + chkPlay : 'Sjálfvirk spilun', + chkLoop : 'Endurtekning', + chkMenu : 'Sýna Flash-valmynd', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Skali', + scaleAll : 'Sýna allt', + scaleNoBorder : 'Án ramma', + scaleFit : 'Fella skala að stærð', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs neðst', + alignAbsMiddle : 'Abs miðjuð', + alignBaseline : 'Grunnlína', + alignTextTop : 'Efri brún texta', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Bakgrunnslitur', + hSpace : 'Vinstri bil', + vSpace : 'Hægri bil', + validateSrc : 'Sláðu inn veffang stiklunnar!', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Villuleit', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Ekki í orðabókinni', + changeTo : 'Tillaga', + btnIgnore : 'Hunsa', + btnIgnoreAll : 'Hunsa allt', + btnReplace : 'Skipta', + btnReplaceAll : 'Skipta öllu', + btnUndo : 'Til baka', + noSuggestions : '- engar tillögur -', + progress : 'Villuleit í gangi...', + noMispell : 'Villuleit lokið: Engin villa fannst', + noChanges : 'Villuleit lokið: Engu orði breytt', + oneChange : 'Villuleit lokið: Einu orði breytt', + manyChanges : 'Villuleit lokið: %1 orðum breytt', + ieSpellDownload : 'Villuleit ekki sett upp.<br>Viltu setja hana upp?' + }, + + smiley : + { + toolbar : 'Svipur', + title : 'Velja svip', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Númeraður listi', + bulletedlist : 'Punktalisti', + indent : 'Minnka inndrátt', + outdent : 'Auka inndrátt', + + justify : + { + left : 'Vinstrijöfnun', + center : 'Miðja texta', + right : 'Hægrijöfnun', + block : 'Jafna báðum megin' + }, + + blockquote : 'Inndráttur', + + clipboard : + { + title : 'Líma', + cutError : 'Öryggisstillingar vafrans þíns leyfa ekki klippingu texta með músaraðgerð. Notaðu lyklaborðið í klippa (Ctrl/Cmd+X).', + copyError : 'Öryggisstillingar vafrans þíns leyfa ekki afritun texta með músaraðgerð. Notaðu lyklaborðið í afrita (Ctrl/Cmd+C).', + pasteMsg : 'Límdu í svæðið hér að neðan og (<STRONG>Ctrl/Cmd+V</STRONG>) og smelltu á <STRONG>OK</STRONG>.', + securityMsg : 'Vegna öryggisstillinga í vafranum þínum fær ritillinn ekki beinan aðgang að klippuborðinu. Þú verður að líma innihaldið aftur inn í þennan glugga.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Líma úr Word', + title : 'Líma úr Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Líma sem ósniðinn texta', + title : 'Líma sem ósniðinn texta' + }, + + templates : + { + button : 'Sniðmát', + title : 'Innihaldssniðmát', + options : 'Template Options', // MISSING + insertOption : 'Skipta út raunverulegu innihaldi', + selectPromptMsg : 'Veldu sniðmát til að opna í ritlinum.<br>(Núverandi innihald víkur fyrir því!):', + emptyListMsg : '(Ekkert sniðmát er skilgreint!)' + }, + + showBlocks : 'Sýna blokkir', + + stylesCombo : + { + label : 'Stílflokkur', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Stílsnið', + panelTitle : 'Stílsnið', + + tag_p : 'Venjulegt letur', + tag_pre : 'Forsniðið', + tag_address : 'Vistfang', + tag_h1 : 'Fyrirsögn 1', + tag_h2 : 'Fyrirsögn 2', + tag_h3 : 'Fyrirsögn 3', + tag_h4 : 'Fyrirsögn 4', + tag_h5 : 'Fyrirsögn 5', + tag_h6 : 'Fyrirsögn 6', + tag_div : 'Venjulegt (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Leturgerð ', + voiceLabel : 'Font', // MISSING + panelTitle : 'Leturgerð ' + }, + + fontSize : + { + label : 'Leturstærð ', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Leturstærð ' + }, + + colorButton : + { + textColorTitle : 'Litur texta', + bgColorTitle : 'Bakgrunnslitur', + panelTitle : 'Colors', // MISSING + auto : 'Sjálfval', + more : 'Fleiri liti...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Eigindi skjals', + title : 'Eigindi skjals', + design : 'Design', // MISSING + meta : 'Lýsigögn', + chooseColor : 'Choose', // MISSING + other : '<annar>', + docTitle : 'Titill síðu', + charset : 'Letursett', + charsetOther : 'Annað letursett', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Mið-evrópskt', + charsetCT : 'Kínverskt, hefðbundið (Big5)', + charsetCR : 'Kýrilskt', + charsetGR : 'Grískt', + charsetJP : 'Japanskt', + charsetKR : 'Kóreskt', + charsetTR : 'Tyrkneskt', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Vestur-evrópst', + docType : 'Flokkur skjalategunda', + docTypeOther : 'Annar flokkur skjalategunda', + xhtmlDec : 'Fella inn XHTML lýsingu', + bgColor : 'Bakgrunnslitur', + bgImage : 'Slóð bakgrunnsmyndar', + bgFixed : 'Læstur bakgrunnur', + txtColor : 'Litur texta', + margin : 'Hliðarspássía', + marginTop : 'Efst', + marginLeft : 'Vinstri', + marginRight : 'Hægri', + marginBottom : 'Neðst', + metaKeywords : 'Lykilorð efnisorðaskrár (aðgreind með kommum)', + metaDescription : 'Lýsing skjals', + metaAuthor : 'Höfundur', + metaCopyright : 'Höfundarréttur', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/it.js b/htdocs/includes/ckeditor/_source/lang/it.js new file mode 100644 index 0000000000000000000000000000000000000000..c2d3dc8c2bb57d2f6091181fbfdc88cb99e09d25 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/it.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Italian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['it'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Editor di testo Rich Text, %1', + editorHelp : 'Premi ALT 0 per aiuto', + + // ARIA descriptions. + toolbars : 'Editor toolbar', + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Codice Sorgente', + newPage : 'Nuova pagina vuota', + save : 'Salva', + preview : 'Anteprima', + cut : 'Taglia', + copy : 'Copia', + paste : 'Incolla', + print : 'Stampa', + underline : 'Sottolineato', + bold : 'Grassetto', + italic : 'Corsivo', + selectAll : 'Seleziona tutto', + removeFormat : 'Elimina formattazione', + strike : 'Barrato', + subscript : 'Pedice', + superscript : 'Apice', + horizontalrule : 'Inserisci riga orizzontale', + pagebreak : 'Inserisci interruzione di pagina', + pagebreakAlt : 'Interruzione di pagina', + unlink : 'Elimina collegamento', + undo : 'Annulla', + redo : 'Ripristina', + + // Common messages and labels. + common : + { + browseServer : 'Cerca sul server', + url : 'URL', + protocol : 'Protocollo', + upload : 'Carica', + uploadSubmit : 'Invia al server', + image : 'Immagine', + flash : 'Oggetto Flash', + form : 'Modulo', + checkbox : 'Checkbox', + radio : 'Radio Button', + textField : 'Campo di testo', + textarea : 'Area di testo', + hiddenField : 'Campo nascosto', + button : 'Bottone', + select : 'Menu di selezione', + imageButton : 'Bottone immagine', + notSet : '<non impostato>', + id : 'Id', + name : 'Nome', + langDir : 'Direzione scrittura', + langDirLtr : 'Da Sinistra a Destra (LTR)', + langDirRtl : 'Da Destra a Sinistra (RTL)', + langCode : 'Codice Lingua', + longDescr : 'URL descrizione estesa', + cssClass : 'Nome classe CSS', + advisoryTitle : 'Titolo', + cssStyle : 'Stile', + ok : 'OK', + cancel : 'Annulla', + close : 'Chiudi', + preview : 'Anteprima', + generalTab : 'Generale', + advancedTab : 'Avanzate', + validateNumberFailed : 'Il valore inserito non è un numero.', + confirmNewPage : 'Ogni modifica non salvata sarà persa. Sei sicuro di voler caricare una nuova pagina?', + confirmCancel : 'Alcune delle opzioni sono state cambiate. Sei sicuro di voler chiudere la finestra di dialogo?', + options : 'Opzioni', + target : 'Destinazione', + targetNew : 'Nuova finestra (_blank)', + targetTop : 'Finestra in primo piano (_top)', + targetSelf : 'Stessa finestra (_self)', + targetParent : 'Finestra Padre (_parent)', + langDirLTR : 'Da sinistra a destra (LTR)', + langDirRTL : 'Da destra a sinistra (RTL)', + styles : 'Stile', + cssClasses : 'Classi di stile', + width : 'Larghezza', + height : 'Altezza', + align : 'Allineamento', + alignLeft : 'Sinistra', + alignRight : 'Destra', + alignCenter : 'Centrato', + alignTop : 'In Alto', + alignMiddle : 'Centrato', + alignBottom : 'In Basso', + invalidHeight : 'L\'altezza dev\'essere un numero', + invalidWidth : 'La Larghezza dev\'essere un numero', + invalidCssLength : 'Il valore indicato per il campo "%1" deve essere un numero positivo con o senza indicazione di una valida unità di misura per le classi CSS (px, %, in, cm, mm, em, ex, pt, o pc).', + invalidHtmlLength : 'Il valore indicato per il campo "%1" deve essere un numero positivo con o senza indicazione di una valida unità di misura per le pagine HTML (px o %).', + invalidInlineStyle : 'Il valore specificato per lo stile inline deve consistere in una o più tuple con il formato di "name : value", separati da semicolonne.', + cssLengthTooltip : 'Inserisci un numero per il valore in pixel oppure un numero con una valida unità CSS (px, %, in, cm, mm, ex, pt, o pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, non disponibile</span>' + }, + + contextmenu : + { + options : 'Opzioni del menù contestuale' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Inserisci carattere speciale', + title : 'Seleziona carattere speciale', + options : 'Opzioni carattere speciale' + }, + + // Link dialog. + link : + { + toolbar : 'Inserisci/Modifica collegamento', + other : '<altro>', + menu : 'Modifica collegamento', + title : 'Collegamento', + info : 'Informazioni collegamento', + target : 'Destinazione', + upload : 'Carica', + advanced : 'Avanzate', + type : 'Tipo di Collegamento', + toUrl : 'URL', + toAnchor : 'Ancora nella pagina', + toEmail : 'E-Mail', + targetFrame : '<riquadro>', + targetPopup : '<finestra popup>', + targetFrameName : 'Nome del riquadro di destinazione', + targetPopupName : 'Nome finestra popup', + popupFeatures : 'Caratteristiche finestra popup', + popupResizable : 'Ridimensionabile', + popupStatusBar : 'Barra di stato', + popupLocationBar: 'Barra degli indirizzi', + popupToolbar : 'Barra degli strumenti', + popupMenuBar : 'Barra del menu', + popupFullScreen : 'A tutto schermo (IE)', + popupScrollBars : 'Barre di scorrimento', + popupDependent : 'Dipendente (Netscape)', + popupLeft : 'Posizione da sinistra', + popupTop : 'Posizione dall\'alto', + id : 'Id', + langDir : 'Direzione scrittura', + langDirLTR : 'Da Sinistra a Destra (LTR)', + langDirRTL : 'Da Destra a Sinistra (RTL)', + acccessKey : 'Scorciatoia<br />da tastiera', + name : 'Nome', + langCode : 'Direzione scrittura', + tabIndex : 'Ordine di tabulazione', + advisoryTitle : 'Titolo', + advisoryContentType : 'Tipo della risorsa collegata', + cssClasses : 'Nome classe CSS', + charset : 'Set di caretteri della risorsa collegata', + styles : 'Stile', + rel : 'Relazioni', + selectAnchor : 'Scegli Ancora', + anchorName : 'Per Nome', + anchorId : 'Per id elemento', + emailAddress : 'Indirizzo E-Mail', + emailSubject : 'Oggetto del messaggio', + emailBody : 'Corpo del messaggio', + noAnchors : '(Nessuna ancora disponibile nel documento)', + noUrl : 'Devi inserire l\'URL del collegamento', + noEmail : 'Devi inserire un\'indirizzo e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Inserisci/Modifica Ancora', + menu : 'Proprietà ancora', + title : 'Proprietà ancora', + name : 'Nome ancora', + errorName : 'Inserici il nome dell\'ancora', + remove : 'Rimuovi l\'ancora' + }, + + // List style dialog + list: + { + numberedTitle : 'Proprietà liste numerate', + bulletedTitle : 'Proprietà liste puntate', + type : 'Tipo', + start : 'Inizio', + validateStartNumber :'Il numero di inizio di una lista numerata deve essere un numero intero.', + circle : 'Cerchio', + disc : 'Disco', + square : 'Quadrato', + none : 'Nessuno', + notset : '<non impostato>', + armenian : 'Numerazione Armena', + georgian : 'Numerazione Georgiana (an, ban, gan, ecc.)', + lowerRoman : 'Numerazione Romana minuscola (i, ii, iii, iv, v, ecc.)', + upperRoman : 'Numerazione Romana maiuscola (I, II, III, IV, V, ecc.)', + lowerAlpha : 'Alfabetico minuscolo (a, b, c, d, e, ecc.)', + upperAlpha : 'Alfabetico maiuscolo (A, B, C, D, E, ecc.)', + lowerGreek : 'Greco minuscolo (alpha, beta, gamma, ecc.)', + decimal : 'Decimale (1, 2, 3, ecc.)', + decimalLeadingZero : 'Decimale preceduto da 0 (01, 02, 03, ecc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Cerca e Sostituisci', + find : 'Trova', + replace : 'Sostituisci', + findWhat : 'Trova:', + replaceWith : 'Sostituisci con:', + notFoundMsg : 'L\'elemento cercato non è stato trovato.', + findOptions : 'Opzioni di ricerca', + matchCase : 'Maiuscole/minuscole', + matchWord : 'Solo parole intere', + matchCyclic : 'Ricerca ciclica', + replaceAll : 'Sostituisci tutto', + replaceSuccessMsg : '%1 occorrenza(e) sostituite.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabella', + title : 'Proprietà tabella', + menu : 'Proprietà tabella', + deleteTable : 'Cancella Tabella', + rows : 'Righe', + columns : 'Colonne', + border : 'Dimensione bordo', + widthPx : 'pixel', + widthPc : 'percento', + widthUnit : 'unità larghezza', + cellSpace : 'Spaziatura celle', + cellPad : 'Padding celle', + caption : 'Intestazione', + summary : 'Indice', + headers : 'Intestazione', + headersNone : 'Nessuna', + headersColumn : 'Prima Colonna', + headersRow : 'Prima Riga', + headersBoth : 'Entrambe', + invalidRows : 'Il numero di righe dev\'essere un numero maggiore di 0.', + invalidCols : 'Il numero di colonne dev\'essere un numero maggiore di 0.', + invalidBorder : 'La dimensione del bordo dev\'essere un numero.', + invalidWidth : 'La larghezza della tabella dev\'essere un numero.', + invalidHeight : 'L\'altezza della tabella dev\'essere un numero.', + invalidCellSpacing : 'La spaziatura tra le celle dev\'essere un numero.', + invalidCellPadding : 'Il paging delle celle dev\'essere un numero', + + cell : + { + menu : 'Cella', + insertBefore : 'Inserisci Cella Prima', + insertAfter : 'Inserisci Cella Dopo', + deleteCell : 'Elimina celle', + merge : 'Unisce celle', + mergeRight : 'Unisci a Destra', + mergeDown : 'Unisci in Basso', + splitHorizontal : 'Dividi Cella Orizzontalmente', + splitVertical : 'Dividi Cella Verticalmente', + title : 'Proprietà della cella', + cellType : 'Tipo di cella', + rowSpan : 'Su più righe', + colSpan : 'Su più colonne', + wordWrap : 'Ritorno a capo', + hAlign : 'Allineamento orizzontale', + vAlign : 'Allineamento verticale', + alignBaseline : 'Linea Base', + bgColor : 'Colore di Sfondo', + borderColor : 'Colore del Bordo', + data : 'Dati', + header : 'Intestazione', + yes : 'Si', + no : 'No', + invalidWidth : 'La larghezza della cella dev\'essere un numero.', + invalidHeight : 'L\'altezza della cella dev\'essere un numero.', + invalidRowSpan : 'Il numero di righe dev\'essere un numero intero.', + invalidColSpan : 'Il numero di colonne dev\'essere un numero intero.', + chooseColor : 'Scegli' + }, + + row : + { + menu : 'Riga', + insertBefore : 'Inserisci Riga Prima', + insertAfter : 'Inserisci Riga Dopo', + deleteRow : 'Elimina righe' + }, + + column : + { + menu : 'Colonna', + insertBefore : 'Inserisci Colonna Prima', + insertAfter : 'Inserisci Colonna Dopo', + deleteColumn : 'Elimina colonne' + } + }, + + // Button Dialog. + button : + { + title : 'Proprietà bottone', + text : 'Testo (Valore)', + type : 'Tipo', + typeBtn : 'Bottone', + typeSbm : 'Invio', + typeRst : 'Annulla' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Proprietà checkbox', + radioTitle : 'Proprietà radio button', + value : 'Valore', + selected : 'Selezionato' + }, + + // Form Dialog. + form : + { + title : 'Proprietà modulo', + menu : 'Proprietà modulo', + action : 'Azione', + method : 'Metodo', + encoding : 'Codifica' + }, + + // Select Field Dialog. + select : + { + title : 'Proprietà menu di selezione', + selectInfo : 'Info', + opAvail : 'Opzioni disponibili', + value : 'Valore', + size : 'Dimensione', + lines : 'righe', + chkMulti : 'Permetti selezione multipla', + opText : 'Testo', + opValue : 'Valore', + btnAdd : 'Aggiungi', + btnModify : 'Modifica', + btnUp : 'Su', + btnDown : 'Gi', + btnSetValue : 'Imposta come predefinito', + btnDelete : 'Rimuovi' + }, + + // Textarea Dialog. + textarea : + { + title : 'Proprietà area di testo', + cols : 'Colonne', + rows : 'Righe' + }, + + // Text Field Dialog. + textfield : + { + title : 'Proprietà campo di testo', + name : 'Nome', + value : 'Valore', + charWidth : 'Larghezza', + maxChars : 'Numero massimo di caratteri', + type : 'Tipo', + typeText : 'Testo', + typePass : 'Password' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Proprietà campo nascosto', + name : 'Nome', + value : 'Valore' + }, + + // Image Dialog. + image : + { + title : 'Proprietà immagine', + titleButton : 'Proprietà bottone immagine', + menu : 'Proprietà immagine', + infoTab : 'Informazioni immagine', + btnUpload : 'Invia al server', + upload : 'Carica', + alt : 'Testo alternativo', + lockRatio : 'Blocca rapporto', + resetSize : 'Reimposta dimensione', + border : 'Bordo', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Devi inserire l\'URL per l\'immagine', + linkTab : 'Collegamento', + button2Img : 'Vuoi trasformare il bottone immagine selezionato in un\'immagine semplice?', + img2Button : 'Vuoi trasferomare l\'immagine selezionata in un bottone immagine?', + urlMissing : 'Manca l\'URL dell\'immagine.', + validateBorder : 'Il campo Bordo deve essere un numero intero.', + validateHSpace : 'Il campo HSpace deve essere un numero intero.', + validateVSpace : 'Il campo VSpace deve essere un numero intero.' + }, + + // Flash Dialog + flash : + { + properties : 'Proprietà Oggetto Flash', + propertiesTab : 'Proprietà', + title : 'Proprietà Oggetto Flash', + chkPlay : 'Avvio Automatico', + chkLoop : 'Riavvio automatico', + chkMenu : 'Abilita Menu di Flash', + chkFull : 'Permetti la modalità tutto schermo', + scale : 'Ridimensiona', + scaleAll : 'Mostra Tutto', + scaleNoBorder : 'Senza Bordo', + scaleFit : 'Dimensione Esatta', + access : 'Accesso Script', + accessAlways : 'Sempre', + accessSameDomain: 'Solo stesso dominio', + accessNever : 'Mai', + alignAbsBottom : 'In basso assoluto', + alignAbsMiddle : 'Centrato assoluto', + alignBaseline : 'Linea base', + alignTextTop : 'In alto al testo', + quality : 'Qualità', + qualityBest : 'Massima', + qualityHigh : 'Alta', + qualityAutoHigh : 'Alta Automatica', + qualityMedium : 'Intermedia', + qualityAutoLow : 'Bassa Automatica', + qualityLow : 'Bassa', + windowModeWindow: 'Finestra', + windowModeOpaque: 'Opaca', + windowModeTransparent : 'Trasparente', + windowMode : 'Modalità finestra', + flashvars : 'Variabili per Flash', + bgcolor : 'Colore sfondo', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Devi inserire l\'URL del collegamento', + validateHSpace : 'L\'HSpace dev\'essere un numero.', + validateVSpace : 'Il VSpace dev\'essere un numero.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Correttore ortografico', + title : 'Controllo ortografico', + notAvailable : 'Il servizio non è momentaneamente disponibile.', + errorLoading : 'Errore nel caricamento dell\'host col servizio applicativo: %s.', + notInDic : 'Non nel dizionario', + changeTo : 'Cambia in', + btnIgnore : 'Ignora', + btnIgnoreAll : 'Ignora tutto', + btnReplace : 'Cambia', + btnReplaceAll : 'Cambia tutto', + btnUndo : 'Annulla', + noSuggestions : '- Nessun suggerimento -', + progress : 'Controllo ortografico in corso', + noMispell : 'Controllo ortografico completato: nessun errore trovato', + noChanges : 'Controllo ortografico completato: nessuna parola cambiata', + oneChange : 'Controllo ortografico completato: 1 parola cambiata', + manyChanges : 'Controllo ortografico completato: %1 parole cambiate', + ieSpellDownload : 'Contollo ortografico non installato. Lo vuoi scaricare ora?' + }, + + smiley : + { + toolbar : 'Emoticon', + title : 'Inserisci emoticon', + options : 'Opzioni Smiley' + }, + + elementsPath : + { + eleLabel : 'Percorso degli elementi', + eleTitle : '%1 elemento' + }, + + numberedlist : 'Elenco numerato', + bulletedlist : 'Elenco puntato', + indent : 'Aumenta rientro', + outdent : 'Riduci rientro', + + justify : + { + left : 'Allinea a sinistra', + center : 'Centra', + right : 'Allinea a destra', + block : 'Giustifica' + }, + + blockquote : 'Citazione', + + clipboard : + { + title : 'Incolla', + cutError : 'Le impostazioni di sicurezza del browser non permettono di tagliare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+X).', + copyError : 'Le impostazioni di sicurezza del browser non permettono di copiare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+C).', + pasteMsg : 'Incolla il testo all\'interno dell\'area sottostante usando la scorciatoia di tastiere (<STRONG>Ctrl/Cmd+V</STRONG>) e premi <STRONG>OK</STRONG>.', + securityMsg : 'A causa delle impostazioni di sicurezza del browser,l\'editor non è in grado di accedere direttamente agli appunti. E\' pertanto necessario incollarli di nuovo in questa finestra.', + pasteArea : 'Incolla' + }, + + pastefromword : + { + confirmCleanup : 'Il testo da incollare sembra provenire da Word. Desideri pulirlo prima di incollare?', + toolbar : 'Incolla da Word', + title : 'Incolla da Word', + error : 'Non è stato possibile eliminarre il testo incollato a causa di un errore interno.' + }, + + pasteText : + { + button : 'Incolla come testo semplice', + title : 'Incolla come testo semplice' + }, + + templates : + { + button : 'Modelli', + title : 'Contenuto dei modelli', + options : 'Opzioni del Modello', + insertOption : 'Cancella il contenuto corrente', + selectPromptMsg : 'Seleziona il modello da aprire nell\'editor<br />(il contenuto attuale verrà eliminato):', + emptyListMsg : '(Nessun modello definito)' + }, + + showBlocks : 'Visualizza Blocchi', + + stylesCombo : + { + label : 'Stile', + panelTitle : 'Stili di formattazione', + panelTitle1 : 'Stili per blocchi', + panelTitle2 : 'Stili in linea', + panelTitle3 : 'Stili per oggetti' + }, + + format : + { + label : 'Formato', + panelTitle : 'Formato', + + tag_p : 'Normale', + tag_pre : 'Formattato', + tag_address : 'Indirizzo', + tag_h1 : 'Titolo 1', + tag_h2 : 'Titolo 2', + tag_h3 : 'Titolo 3', + tag_h4 : 'Titolo 4', + tag_h5 : 'Titolo 5', + tag_h6 : 'Titolo 6', + tag_div : 'Paragrafo (DIV)' + }, + + div : + { + title : 'Crea DIV contenitore', + toolbar : 'Crea DIV contenitore', + cssClassInputLabel : 'Classi di stile', + styleSelectLabel : 'Stile', + IdInputLabel : 'Id', + languageCodeInputLabel : 'Codice lingua', + inlineStyleInputLabel : 'Stile Inline', + advisoryTitleInputLabel : 'Titolo Avviso', + langDirLabel : 'Direzione di scrittura', + langDirLTRLabel : 'Da sinistra a destra (LTR)', + langDirRTLLabel : 'Da destra a sinistra (RTL)', + edit : 'Modifica DIV', + remove : 'Rimuovi DIV' + }, + + iframe : + { + title : 'Proprietà IFrame', + toolbar : 'IFrame', + noUrl : 'Inserire l\'URL del campo IFrame', + scrolling : 'Abilita scrollbar', + border : 'Mostra il bordo' + }, + + font : + { + label : 'Carattere', + voiceLabel : 'Carattere', + panelTitle : 'Carattere' + }, + + fontSize : + { + label : 'Dimensione', + voiceLabel : 'Dimensione Carattere', + panelTitle : 'Dimensione' + }, + + colorButton : + { + textColorTitle : 'Colore testo', + bgColorTitle : 'Colore sfondo', + panelTitle : 'Colori', + auto : 'Automatico', + more : 'Altri colori...' + }, + + colors : + { + '000' : 'Nero', + '800000' : 'Marrone Castagna', + '8B4513' : 'Marrone Cuoio', + '2F4F4F' : 'Grigio Fumo di Londra', + '008080' : 'Acquamarina', + '000080' : 'Blu Oceano', + '4B0082' : 'Indigo', + '696969' : 'Grigio Scuro', + 'B22222' : 'Giallo Fiamma', + 'A52A2A' : 'Marrone', + 'DAA520' : 'Giallo Mimosa', + '006400' : 'Verde Scuro', + '40E0D0' : 'Turchese', + '0000CD' : 'Blue Scuro', + '800080' : 'Viola', + '808080' : 'Grigio', + 'F00' : 'Rosso', + 'FF8C00' : 'Arancio Scuro', + 'FFD700' : 'Oro', + '008000' : 'Verde', + '0FF' : 'Ciano', + '00F' : 'Blu', + 'EE82EE' : 'Violetto', + 'A9A9A9' : 'Grigio Scuro', + 'FFA07A' : 'Salmone', + 'FFA500' : 'Arancio', + 'FFFF00' : 'Giallo', + '00FF00' : 'Lime', + 'AFEEEE' : 'Turchese Chiaro', + 'ADD8E6' : 'Blu Chiaro', + 'DDA0DD' : 'Rosso Ciliegia', + 'D3D3D3' : 'Grigio Chiaro', + 'FFF0F5' : 'Lavanda Chiara', + 'FAEBD7' : 'Bianco Antico', + 'FFFFE0' : 'Giallo Chiaro', + 'F0FFF0' : 'Verde Mela', + 'F0FFFF' : 'Azzurro', + 'F0F8FF' : 'Celeste', + 'E6E6FA' : 'Lavanda', + 'FFF' : 'Bianco' + }, + + scayt : + { + title : 'Controllo Ortografico Mentre Scrivi', + opera_title : 'Non supportato da Opera', + enable : 'Abilita COMS', + disable : 'Disabilita COMS', + about : 'About COMS', + toggle : 'Inverti abilitazione SCOMS', + options : 'Opzioni', + langs : 'Lingue', + moreSuggestions : 'Altri suggerimenti', + ignore : 'Ignora', + ignoreAll : 'Ignora tutti', + addWord : 'Aggiungi Parola', + emptyDic : 'Il nome del dizionario non può essere vuoto.', + + optionsTab : 'Opzioni', + allCaps : 'Ignora Parole in maiuscolo', + ignoreDomainNames : 'Ignora nomi di dominio', + mixedCase : 'Ignora parole con maiuscole e minuscole', + mixedWithDigits : 'Ignora parole con numeri', + + languagesTab : 'Lingue', + + dictionariesTab : 'Dizionari', + dic_field_name : 'Nome del dizionario', + dic_create : 'Crea', + dic_restore : 'Ripristina', + dic_delete : 'Cancella', + dic_rename : 'Rinomina', + dic_info : 'Inizialmente il dizionario utente è memorizzato in un Cookie. I Cookie però hanno una dimensioni massima limitata. Quando il dizionario utente creasce a tal punto da non poter più essere memorizzato in un Cookie, allora il dizionario può essere memorizzato sul nostro server. Per memorizzare il proprio dizionario personale sul nostro server, è necessario specificare un nome per il proprio dizionario. Se avete già memorizzato un dizionario, inserite il nome che gli avete dato e premete il pulsante Ripristina.', + + aboutTab : 'Info' + }, + + about : + { + title : 'Riguardo CKEditor', + dlgTitle : 'Riguardo CKEditor', + help : 'Vedi $1 per l\'aiuto.', + userGuide : 'Guida Utente CKEditor', + moreInfo : 'Per le informazioni sulla licenza si prega di visitare il nostro sito:', + copy : 'Copyright © $1. Tutti i diritti riservati.' + }, + + maximize : 'Massimizza', + minimize : 'Minimizza', + + fakeobjects : + { + anchor : 'Ancora', + flash : 'Animazione Flash', + iframe : 'IFrame', + hiddenfield : 'Campo Nascosto', + unknown : 'Oggetto sconosciuto' + }, + + resize : 'Trascina per ridimensionare', + + colordialog : + { + title : 'Selezionare il colore', + options : 'Opzioni colore', + highlight : 'Evidenzia', + selected : 'Seleziona il colore', + clear : 'cancella' + }, + + toolbarCollapse : 'Minimizza Toolbar', + toolbarExpand : 'Espandi Toolbar', + + toolbarGroups : + { + document : 'Documento', + clipboard : 'Copia negli appunti/Indietro', + editing : 'Modifica', + forms : 'Form', + basicstyles : 'Stili di base', + paragraph : 'Paragrafo', + links : 'Link', + insert : 'Inserisci', + styles : 'Stili', + colors : 'Colori', + tools : 'Strumenti' + }, + + bidi : + { + ltr : 'Direzione del testo da sinistra verso destra', + rtl : 'Direzione del testo da destra verso sinistra' + }, + + docprops : + { + label : 'Proprietà del Documento', + title : 'Proprietà del Documento', + design : 'Disegna', + meta : 'Meta Data', + chooseColor : 'Scegli', + other : '<altro>', + docTitle : 'Titolo pagina', + charset : 'Set di caretteri', + charsetOther : 'Altro set di caretteri', + charsetASCII : 'ASCII', + charsetCE : 'Europa Centrale', + charsetCT : 'Cinese Tradizionale (Big5)', + charsetCR : 'Cirillico', + charsetGR : 'Greco', + charsetJP : 'Giapponese', + charsetKR : 'Coreano', + charsetTR : 'Turco', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Europa Occidentale', + docType : 'Intestazione DocType', + docTypeOther : 'Altra intestazione DocType', + xhtmlDec : 'Includi dichiarazione XHTML', + bgColor : 'Colore di sfondo', + bgImage : 'Immagine di sfondo', + bgFixed : 'Sfondo fissato', + txtColor : 'Colore testo', + margin : 'Margini', + marginTop : 'In Alto', + marginLeft : 'A Sinistra', + marginRight : 'A Destra', + marginBottom : 'In Basso', + metaKeywords : 'Chiavi di indicizzazione documento (separate da virgola)', + metaDescription : 'Descrizione documento', + metaAuthor : 'Autore', + metaCopyright : 'Copyright', + previewHtml : '<p>Questo è un <strong>testo di esempio</strong>. State usando <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ja.js b/htdocs/includes/ckeditor/_source/lang/ja.js new file mode 100644 index 0000000000000000000000000000000000000000..2090e742fc49ac9456d5e786a2c60d1895d9b36b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ja.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Japanese language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ja'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'リッチテキストエディタ', + + // Toolbar buttons without dialogs. + source : 'ソース', + newPage : '新しいページ', + save : '保存', + preview : 'プレビュー', + cut : '切り取り', + copy : 'コピー', + paste : '貼り付け', + print : '印刷', + underline : '下線', + bold : '太字', + italic : '斜体', + selectAll : 'すべて選択', + removeFormat : 'フォーマット削除', + strike : '打ち消し線', + subscript : '添え字', + superscript : '上付き文字', + horizontalrule : '横罫線', + pagebreak : '改ページ挿入', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'リンク削除', + undo : '元に戻す', + redo : 'やり直し', + + // Common messages and labels. + common : + { + browseServer : 'サーバーブラウザー', + url : 'URL', + protocol : 'プロトコル', + upload : 'アップロード', + uploadSubmit : 'サーバーに送信', + image : 'イメージ', + flash : 'Flash', + form : 'フォーム', + checkbox : 'チェックボックス', + radio : 'ラジオボタン', + textField : '1行テキスト', + textarea : 'テキストエリア', + hiddenField : '不可視フィールド', + button : 'ボタン', + select : '選択フィールド', + imageButton : '画像ボタン', + notSet : '<なし>', + id : 'Id', + name : 'Name属性', + langDir : '文字表記の方向', + langDirLtr : '左から右 (LTR)', + langDirRtl : '右から左 (RTL)', + langCode : '言語コード', + longDescr : 'longdesc属性(長文説明)', + cssClass : 'スタイルシートクラス', + advisoryTitle : 'Title属性', + cssStyle : 'スタイルシート', + ok : 'OK', + cancel : 'キャンセル', + close : '閉じる', + preview : 'プレビュー', + generalTab : '全般', + advancedTab : '高度な設定', + validateNumberFailed : '値が数ではありません', + confirmNewPage : '変更内容を保存せず、 新しいページを開いてもよろしいでしょうか?', + confirmCancel : 'オプション設定を変更しました。ダイアログを閉じてもよろしいでしょうか?', + options : 'オプション', + target : 'ターゲット', + targetNew : '新しいウィンドウ (_空白)', + targetTop : '最上部ウィンドウ (_トップ)', + targetSelf : '同じウィンドウ (_同一)', + targetParent : '親ウィンドウ (_親)', + langDirLTR : '左から右 (LTR)', + langDirRTL : '右から左 (RTL)', + styles : 'スタイル', + cssClasses : 'スタイルシートクラス', + width : '幅', + height : '高さ', + align : '行揃え', + alignLeft : '左', + alignRight : '右', + alignCenter : '中央', + alignTop : '上', + alignMiddle : '中央', + alignBottom : '下', + invalidHeight : '高さは数値で入力してください。', + invalidWidth : '幅は数値で入力してください。', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, 利用不可能</span>' + }, + + contextmenu : + { + options : 'コンテキストメニューオプション' + }, + + // Special char dialog. + specialChar : + { + toolbar : '特殊文字挿入', + title : '特殊文字選択', + options : '特殊文字オプション' + }, + + // Link dialog. + link : + { + toolbar : 'リンク挿入/編集', + other : '<その他の>', + menu : 'リンク編集', + title : 'ハイパーリンク', + info : 'ハイパーリンク 情報', + target : 'ターゲット', + upload : 'アップロード', + advanced : '高度な設定', + type : 'リンクタイプ', + toUrl : 'URL', // MISSING + toAnchor : 'このページのアンカー', + toEmail : 'E-Mail', + targetFrame : '<フレーム>', + targetPopup : '<ポップアップウィンドウ>', + targetFrameName : '目的のフレーム名', + targetPopupName : 'ポップアップウィンドウ名', + popupFeatures : 'ポップアップウィンドウ特徴', + popupResizable : 'サイズ可変', + popupStatusBar : 'ステータスバー', + popupLocationBar: 'ロケーションバー', + popupToolbar : 'ツールバー', + popupMenuBar : 'メニューバー', + popupFullScreen : '全画面モード(IE)', + popupScrollBars : 'スクロールバー', + popupDependent : '開いたウィンドウに連動して閉じる (Netscape)', + popupLeft : '左端からの座標で指定', + popupTop : '上端からの座標で指定', + id : 'Id', + langDir : '文字表記の方向', + langDirLTR : '左から右 (LTR)', + langDirRTL : '右から左 (RTL)', + acccessKey : 'アクセスキー', + name : 'Name属性', + langCode : '言語コード', + tabIndex : 'タブインデックス', + advisoryTitle : 'Title属性', + advisoryContentType : 'Content Type属性', + cssClasses : 'スタイルシートクラス', + charset : 'リンクcharset属性', + styles : 'スタイルシート', + rel : 'Relationship', // MISSING + selectAnchor : 'アンカーを選択', + anchorName : 'アンカー名', + anchorId : 'エレメントID', + emailAddress : 'E-Mail アドレス', + emailSubject : '件名', + emailBody : '本文', + noAnchors : '(ドキュメントにおいて利用可能なアンカーはありません。)', + noUrl : 'リンクURLを入力してください。', + noEmail : 'メールアドレスを入力してください。' + }, + + // Anchor dialog + anchor : + { + toolbar : 'アンカー挿入/編集', + menu : 'アンカー プロパティ', + title : 'アンカー プロパティ', + name : 'アンカー名', + errorName : 'アンカー名を必ず入力してください。', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : '段落番号 プロパティ', + bulletedTitle : '箇条書き プロパティ', + type : 'タイプ', + start : '開始', + validateStartNumber :'リスト開始番号は数値で入力してください。', + circle : '白丸', + disc : '黒丸', + square : '四角', + none : 'なし', + notset : '<なし>', + armenian : 'アルメニア数字', + georgian : 'グルジア数字 (an, ban, gan, etc.)', + lowerRoman : '小文字ローマ数字 (i, ii, iii, iv, v, etc.)', + upperRoman : '大文字ローマ数字 (I, II, III, IV, V, etc.)', + lowerAlpha : '小文字アルファベット (a, b, c, d, e, etc.)', + upperAlpha : '大文字アルファベット (A, B, C, D, E, etc.)', + lowerGreek : '小文字ギリシャ文字 (alpha, beta, gamma, etc.)', + decimal : '数字 (1, 2, 3, etc.)', + decimalLeadingZero : '上位桁に0をつけた数字 (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : '検索して置換', + find : '検索', + replace : '置き換え', + findWhat : '検索する文字列:', + replaceWith : '置換えする文字列:', + notFoundMsg : '指定された文字列は見つかりませんでした。', + findOptions : 'Find Options', // MISSING + matchCase : '大文字と小文字を区別する', + matchWord : '単語単位で探す', + matchCyclic : '一周する', + replaceAll : 'すべて置換え', + replaceSuccessMsg : '%1 個置換しました。' + }, + + // Table Dialog + table : + { + toolbar : 'テーブル', + title : 'テーブル プロパティ', + menu : 'テーブル プロパティ', + deleteTable : 'テーブル削除', + rows : '行', + columns : '列', + border : 'ボーダーサイズ', + widthPx : 'ピクセル', + widthPc : 'パーセント', + widthUnit : 'ユニット', + cellSpace : 'セル内余白', + cellPad : 'セル内間隔', + caption : 'キャプション', + summary : 'テーブルの概要', + headers : 'テーブルヘッダ(th)', + headersNone : 'なし', + headersColumn : '初めの列のみ', + headersRow : '初めの行のみ', + headersBoth : '両方', + invalidRows : '行は0より大きな数値で入力してください。', + invalidCols : '列は0より大きな数値で入力してください。', + invalidBorder : 'ボーダーサイズは数値で入力してください。', + invalidWidth : '幅は数値で入力してください。', + invalidHeight : '高さは数値で入力してください。', + invalidCellSpacing : 'セル内余白は数値で入力してください。', + invalidCellPadding : 'セル内間隔は数値で入力してください。', + + cell : + { + menu : 'セル', + insertBefore : 'セルの前に挿入', + insertAfter : 'セルの後に挿入', + deleteCell : 'セル削除', + merge : 'セル結合', + mergeRight : '右に結合', + mergeDown : '下に結合', + splitHorizontal : 'セルを水平方向分割', + splitVertical : 'セルを垂直方向に分割', + title : 'セルプロパティ', + cellType : 'セルタイプ', + rowSpan : '縦幅(行数)', + colSpan : '横幅(列数)', + wordWrap : '折り返し', + hAlign : 'セル横の整列', + vAlign : 'セル縦の整列', + alignBaseline : 'ベースライン', + bgColor : '背景色', + borderColor : 'ボーダーカラー', + data : 'テーブルデータ(td)', + header : 'テーブルヘッダ(th)', + yes : 'Yes', + no : 'No', + invalidWidth : 'セル幅は数値で入力してください。', + invalidHeight : 'セル高さは数値で入力してください。', + invalidRowSpan : '縦幅(行数)は数値で入力してください。', + invalidColSpan : '横幅(列数)は数値で入力してください。', + chooseColor : '色の選択' + }, + + row : + { + menu : '行', + insertBefore : '行の前に挿入', + insertAfter : '行の後に挿入', + deleteRow : '行削除' + }, + + column : + { + menu : 'カラム', + insertBefore : 'カラムの前に挿入', + insertAfter : 'カラムの後に挿入', + deleteColumn : '列削除' + } + }, + + // Button Dialog. + button : + { + title : 'ボタン プロパティ', + text : 'テキスト (値)', + type : 'タイプ', + typeBtn : 'ボタン', + typeSbm : '送信', + typeRst : 'リセット' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'チェックボックス プロパティ', + radioTitle : 'ラジオボタン プロパティ', + value : '値', + selected : '選択済み' + }, + + // Form Dialog. + form : + { + title : 'フォーム プロパティ', + menu : 'フォーム プロパティ', + action : 'アクション', + method : 'メソッド', + encoding : 'エンコーディング' + }, + + // Select Field Dialog. + select : + { + title : '選択フィールド プロパティ', + selectInfo : '情報', + opAvail : '利用可能なオプション', + value : '選択項目値', + size : 'サイズ', + lines : '行', + chkMulti : '複数項目選択を許可', + opText : '選択項目名', + opValue : '値', + btnAdd : '追加', + btnModify : '編集', + btnUp : '上へ', + btnDown : '下へ', + btnSetValue : '選択した値を設定', + btnDelete : '削除' + }, + + // Textarea Dialog. + textarea : + { + title : 'テキストエリア プロパティ', + cols : '列', + rows : '行' + }, + + // Text Field Dialog. + textfield : + { + title : '1行テキスト プロパティ', + name : '名前', + value : '値', + charWidth : 'サイズ', + maxChars : '最大長', + type : 'タイプ', + typeText : 'テキスト', + typePass : 'パスワード入力' + }, + + // Hidden Field Dialog. + hidden : + { + title : '不可視フィールド プロパティ', + name : '名前', + value : '値' + }, + + // Image Dialog. + image : + { + title : 'イメージ プロパティ', + titleButton : '画像ボタン プロパティ', + menu : 'イメージ プロパティ', + infoTab : 'イメージ 情報', + btnUpload : 'サーバーに送信', + upload : 'アップロード', + alt : '代替テキスト', + lockRatio : 'ロック比率', + resetSize : 'サイズリセット', + border : 'ボーダー', + hSpace : '横間隔', + vSpace : '縦間隔', + alertUrl : 'イメージのURLを入力してください。', + linkTab : 'リンク', + button2Img : '選択したボタンを画像に置き換えますか?', + img2Button : '選択した画像をボタンに置き換えますか?', + urlMissing : 'イメージのURLを入力してください。', + validateBorder : 'ボーダーは数値で入力してください。', + validateHSpace : '横間隔は数値で入力してください。', + validateVSpace : '縦間隔は数値で入力してください。' + }, + + // Flash Dialog + flash : + { + properties : 'Flash プロパティ', + propertiesTab : 'プロパティ', + title : 'Flash プロパティ', + chkPlay : '再生', + chkLoop : 'ループ再生', + chkMenu : 'Flashメニュー可能', + chkFull : 'フルスクリーン許可', + scale : '拡大縮小設定', + scaleAll : 'すべて表示', + scaleNoBorder : '外が見えない様に拡大', + scaleFit : '上下左右にフィット', + access : 'スプリクトアクセス(AllowScriptAccess)', + accessAlways : 'すべての場合に通信可能(Always)', + accessSameDomain: '同一ドメインのみに通信可能(Same domain)', + accessNever : 'すべての場合に通信不可能(Never)', + alignAbsBottom : '下部(絶対的)', + alignAbsMiddle : '中央(絶対的)', + alignBaseline : 'ベースライン', + alignTextTop : 'テキスト上部', + quality : '画質', + qualityBest : '品質優先', + qualityHigh : '高', + qualityAutoHigh : '自動/高', + qualityMedium : '中', + qualityAutoLow : '自動/低', + qualityLow : '低', + windowModeWindow: '標準', + windowModeOpaque: '背景を不透明設定', + windowModeTransparent : '背景を透過設定', + windowMode : 'ウィンドウモード', + flashvars : 'フラッシュに渡す変数(FlashVars)', + bgcolor : '背景色', + hSpace : '横間隔', + vSpace : '縦間隔', + validateSrc : 'リンクURLを入力してください。', + validateHSpace : '横間隔は数値で入力してください。', + validateVSpace : '縦間隔は数値で入力してください。' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'スペルチェック', + title : 'スペルチェック', + notAvailable : '申し訳ありません、現在サービスを利用することができません', + errorLoading : 'アプリケーションサービスホスト読込みエラー: %s.', + notInDic : '辞書にありません', + changeTo : '変更', + btnIgnore : '無視', + btnIgnoreAll : 'すべて無視', + btnReplace : '置換', + btnReplaceAll : 'すべて置換', + btnUndo : 'やり直し', + noSuggestions : '- 該当なし -', + progress : 'スペルチェック処理中...', + noMispell : 'スペルチェック完了: スペルの誤りはありませんでした', + noChanges : 'スペルチェック完了: 語句は変更されませんでした', + oneChange : 'スペルチェック完了: 1語句変更されました', + manyChanges : 'スペルチェック完了: %1 語句変更されました', + ieSpellDownload : 'スペルチェッカーがインストールされていません。今すぐダウンロードしますか?' + }, + + smiley : + { + toolbar : '絵文字', + title : '顔文字挿入', + options : '絵文字オプション' + }, + + elementsPath : + { + eleLabel : 'エレメントパス', + eleTitle : '%1 エレメント' + }, + + numberedlist : '段落番号', + bulletedlist : '箇条書き', + indent : 'インデント', + outdent : 'インデント解除', + + justify : + { + left : '左揃え', + center : '中央揃え', + right : '右揃え', + block : '両端揃え' + }, + + blockquote : 'ブロック引用', + + clipboard : + { + title : '貼り付け', + cutError : 'ブラウザーのセキュリティ設定によりエディタの切り取り操作が自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+X)を使用してください。', + copyError : 'ブラウザーのセキュリティ設定によりエディタのコピー操作が自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+C)を使用してください。', + pasteMsg : 'キーボード(<STRONG>Ctrl/Cmd+V</STRONG>)を使用して、次の入力エリア内で貼って、<STRONG>OK</STRONG>を押してください。', + securityMsg : 'ブラウザのセキュリティ設定により、エディタはクリップボード・データに直接アクセスすることができません。このウィンドウは貼り付け操作を行う度に表示されます。', + pasteArea : '貼り付け場所' + }, + + pastefromword : + { + confirmCleanup : '貼り付けを行うテキストは、ワード文章からコピーされようとしています。貼り付ける前にクリーニングを行いますか?', + toolbar : 'ワード文章から貼り付け', + title : 'ワード文章から貼り付け', + error : '内部エラーにより貼り付けたデータがクリアできませんでした' + }, + + pasteText : + { + button : 'プレーンテキスト貼り付け', + title : 'プレーンテキスト貼り付け' + }, + + templates : + { + button : 'テンプレート(雛形)', + title : 'テンプレート内容', + options : 'テンプレートオプション', + insertOption : '現在のエディタの内容と置換えをします', + selectPromptMsg : 'エディターで使用するテンプレートを選択してください。<br>(現在のエディタの内容は失われます):', + emptyListMsg : '(テンプレートが定義されていません)' + }, + + showBlocks : 'ブロック表示', + + stylesCombo : + { + label : 'スタイル', + panelTitle : 'スタイル', + panelTitle1 : 'ブロックスタイル', + panelTitle2 : 'インラインスタイル', + panelTitle3 : 'オブジェクトスタイル' + }, + + format : + { + label : 'フォーマット', + panelTitle : 'フォーマット', + + tag_p : '標準', + tag_pre : '書式付き', + tag_address : 'アドレス', + tag_h1 : '見出し 1', + tag_h2 : '見出し 2', + tag_h3 : '見出し 3', + tag_h4 : '見出し 4', + tag_h5 : '見出し 5', + tag_h6 : '見出し 6', + tag_div : '標準 (DIV)' + }, + + div : + { + title : 'Divコンテナ', + toolbar : 'Divコンテナ', + cssClassInputLabel : 'スタイルシートクラス', + styleSelectLabel : 'スタイル', + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' 言語コード', + inlineStyleInputLabel : 'インラインスタイル', + advisoryTitleInputLabel : 'Title属性', + langDirLabel : '文字表記の方向', + langDirLTRLabel : '左から右 (LTR)', + langDirRTLLabel : '右から左 (RTL)', + edit : 'Divコンテナ 編集', + remove : 'Divコンテナ 削除' + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'フォント', + voiceLabel : 'フォント', + panelTitle : 'フォント' + }, + + fontSize : + { + label : 'サイズ', + voiceLabel : 'フォントサイズ', + panelTitle : 'サイズ' + }, + + colorButton : + { + textColorTitle : 'テキスト色', + bgColorTitle : '背景色', + panelTitle : '色', + auto : '自動', + more : 'その他の色...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'スペルチェック設定(SCAYT)', + opera_title : 'Operaではサポートされません', + enable : 'SCAYT有効', + disable : 'SCAYT無効', + about : 'SCAYTバージョン', + toggle : 'SCAYT切替', + options : 'オプション', + langs : '言語', + moreSuggestions : '他の候補', + ignore : '無視', + ignoreAll : 'すべて無視', + addWord : '語句追加', + emptyDic : '辞書名は必ず入力してください', + + optionsTab : 'オプション', + allCaps : '全て大文字の単語を無視', + ignoreDomainNames : 'ドメイン名を無視', + mixedCase : '大文字小文字混在の単語を無視', + mixedWithDigits : '数字付き単語を無視', + + languagesTab : '言語', + + dictionariesTab : '辞書', + dic_field_name : '辞書名', + dic_create : '登録', + dic_restore : '元に戻す', + dic_delete : '削除', + dic_rename : '名前変更', + dic_info : '始めユーザーディレクトリは、Cookieに保存されます。但し Cookie はサイズに制限があります。ユーザーディレクトリがCookieに保存できないサイズに到達するとディレクトリはサーバー上に保存されます。個人のディレクトリをサーバー上に保存するには、ディレクトリ名を明示する必要があります。もし既に保存されたディレクトリがある場合、その名前を入力し、元に戻すボタンを押してください。', + + aboutTab : 'バージョン情報' + }, + + about : + { + title : 'CKEditorバージョン情報', + dlgTitle : 'CKEditorバージョン情報', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'ライセンス情報の詳細はウェブサイトにて確認してください:', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : '最大化', + minimize : '最小化', + + fakeobjects : + { + anchor : 'アンカー', + flash : 'Flash Animation', + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' + }, + + resize : 'ドラッグしてリサイズ', + + colordialog : + { + title : '色選択', + options : 'カラーオプション', + highlight : 'ハイライト', + selected : '選択された色', + clear : 'クリア' + }, + + toolbarCollapse : 'ツールバーを閉じる', + toolbarExpand : 'ツールバーを開く', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'テキストの向き : 左から右へ', + rtl : 'テキストの向き : 右から左へ' + }, + + docprops : + { + label : '文書 プロパティ', + title : '文書 プロパティ', + design : 'Design', // MISSING + meta : 'メタデータ', + chooseColor : '色の選択', + other : '<その他の>', + docTitle : 'ページタイトル', + charset : '文字セット符号化', + charsetOther : '他の文字セット符号化', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', + docType : '文書タイプヘッダー', + docTypeOther : 'その他文書タイプヘッダー', + xhtmlDec : 'XHTML宣言をインクルード', + bgColor : '背景色', + bgImage : '背景画像 URL', + bgFixed : 'スクロールしない背景', + txtColor : 'テキスト色', + margin : 'ページ・マージン', + marginTop : '上部', + marginLeft : '左', + marginRight : '右', + marginBottom : '下部', + metaKeywords : '文書のキーワード(カンマ区切り)', + metaDescription : '文書の概要', + metaAuthor : '文書の作者', + metaCopyright : '文書の著作権', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ka.js b/htdocs/includes/ckeditor/_source/lang/ka.js new file mode 100644 index 0000000000000000000000000000000000000000..c187d2d65f4d53d198402699d8798bf773bea169 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ka.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the Georgian + * language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ka'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'ტექსტის რედაქტორი', + + // Toolbar buttons without dialogs. + source : 'კოდები', + newPage : 'ახალი გვერდი', + save : 'ჩაწერა', + preview : 'გადახედვა', + cut : 'ამოჭრა', + copy : 'ასლი', + paste : 'ჩასმა', + print : 'ბეჭდვა', + underline : 'გახაზული', + bold : 'მსხვილი', + italic : 'დახრილი', + selectAll : 'ყველაფრის მონიშნვა', + removeFormat : 'ფორმატირების მოხსნა', + strike : 'გადახაზული', + subscript : 'ინდექსი', + superscript : 'ხარისხი', + horizontalrule : 'ჰორიზონტალური ხაზის ჩასმა', + pagebreak : 'გვერდის წყვეტა ბეჭდვისთვის', + pagebreakAlt : 'გვერდის წყვეტა', + unlink : 'ბმულის მოხსნა', + undo : 'გაუქმება', + redo : 'გამეორება', + + // Common messages and labels. + common : + { + browseServer : 'სერვერზე დათვალიერება', + url : 'URL', + protocol : 'პროტოკოლი', + upload : 'ატვირთვა', + uploadSubmit : 'სერვერზე გაგზავნა', + image : 'სურათი', + flash : 'Flash', + form : 'ფორმა', + checkbox : 'მონიშვნის ღილაკი', + radio : 'ამორჩევის ღილაკი', + textField : 'ტექსტური ველი', + textarea : 'ტექსტური არე', + hiddenField : 'მალული ველი', + button : 'ღილაკი', + select : 'არჩევის ველი', + imageButton : 'სურათიანი ღილაკი', + notSet : '<არაფერი>', + id : 'Id', + name : 'სახელი', + langDir : 'ენის მიმართულება', + langDirLtr : 'მარცხნიდან მარჯვნივ (LTR)', + langDirRtl : 'მარჯვნიდან მარცხნივ (RTL)', + langCode : 'ენის კოდი', + longDescr : 'დიდი აღწერის URL', + cssClass : 'CSS კლასი', + advisoryTitle : 'სათაური', + cssStyle : 'CSS სტილი', + ok : 'დიახ', + cancel : 'გაუქმება', + close : 'დახურვა', + preview : 'გადახედვა', + generalTab : 'ინფორმაცია', + advancedTab : 'გაფართოებული', + validateNumberFailed : 'ეს მნიშვნელობა არაა რიცხვი.', + confirmNewPage : 'ამ დოკუმენტში ყველა ჩაუწერელი ცვლილება დაიკარგება. დარწმუნებული ხართ რომ ახალი გვერდის ჩატვირთვა გინდათ?', + confirmCancel : 'ზოგიერთი პარამეტრი შეცვლილია, დარწმუნებულილ ხართ რომ ფანჯრის დახურვა გსურთ?', + options : 'პარამეტრები', + target : 'გახსნის ადგილი', + targetNew : 'ახალი ფანჯარა (_blank)', + targetTop : 'ზედა ფანჯარა (_top)', + targetSelf : 'იგივე ფანჯარა (_self)', + targetParent : 'მშობელი ფანჯარა (_parent)', + langDirLTR : 'მარცხნიდან მარჯვნივ (LTR)', + langDirRTL : 'მარჯვნიდან მარცხნივ (RTL)', + styles : 'სტილი', + cssClasses : 'CSS კლასი', + width : 'სიგანე', + height : 'სიმაღლე', + align : 'სწორება', + alignLeft : 'მარცხენა', + alignRight : 'მარჯვენა', + alignCenter : 'შუა', + alignTop : 'ზემოთა', + alignMiddle : 'შუა', + alignBottom : 'ქვემოთა', + invalidHeight : 'სიმაღლე რიცხვით უნდა იყოს წარმოდგენილი.', + invalidWidth : 'სიგანე რიცხვით უნდა იყოს წარმოდგენილი.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, მიუწვდომელია</span>' + }, + + contextmenu : + { + options : 'კონტექსტური მენიუს პარამეტრები' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'სპეციალური სიმბოლოს ჩასმა', + title : 'სპეციალური სიმბოლოს არჩევა', + options : 'სპეციალური სიმბოლოს პარამეტრები' + }, + + // Link dialog. + link : + { + toolbar : 'ბმული', + other : '<სხვა>', + menu : 'ბმულის რედაქტირება', + title : 'ბმული', + info : 'ბმულის ინფორმაცია', + target : 'გახსნის ადგილი', + upload : 'აქაჩვა', + advanced : 'დაწვრილებით', + type : 'ბმულის ტიპი', + toUrl : 'URL', + toAnchor : 'ბმული ტექსტში ღუზაზე', + toEmail : 'ელფოსტა', + targetFrame : '<frame>', + targetPopup : '<popup ფანჯარა>', + targetFrameName : 'Frame-ის სახელი', + targetPopupName : 'Popup ფანჯრის სახელი', + popupFeatures : 'Popup ფანჯრის პარამეტრები', + popupResizable : 'ცვალებადი ზომით', + popupStatusBar : 'სტატუსის ზოლი', + popupLocationBar: 'ნავიგაციის ზოლი', + popupToolbar : 'ხელსაწყოთა ზოლი', + popupMenuBar : 'მენიუს ზოლი', + popupFullScreen : 'მთელი ეკრანი (IE)', + popupScrollBars : 'გადახვევის ზოლები', + popupDependent : 'დამოკიდებული (Netscape)', + popupLeft : 'მარცხენა პოზიცია', + popupTop : 'ზედა პოზიცია', + id : 'Id', + langDir : 'ენის მიმართულება', + langDirLTR : 'მარცხნიდან მარჯვნივ (LTR)', + langDirRTL : 'მარჯვნიდან მარცხნივ (RTL)', + acccessKey : 'წვდომის ღილაკი', + name : 'სახელი', + langCode : 'ენის კოდი', + tabIndex : 'Tab-ის ინდექსი', + advisoryTitle : 'სათაური', + advisoryContentType : 'შიგთავსის ტიპი', + cssClasses : 'CSS კლასი', + charset : 'კოდირება', + styles : 'CSS სტილი', + rel : 'კავშირი', + selectAnchor : 'აირჩიეთ ღუზა', + anchorName : 'ღუზის სახელით', + anchorId : 'ელემენტის Id-თ', + emailAddress : 'ელფოსტის მისამართები', + emailSubject : 'წერილის სათაური', + emailBody : 'წერილის ტექსტი', + noAnchors : '(ამ დოკუმენტში ღუზა არაა)', + noUrl : 'აკრიფეთ ბმულის URL', + noEmail : 'აკრიფეთ ელფოსტის მისამართი' + }, + + // Anchor dialog + anchor : + { + toolbar : 'ღუზა', + menu : 'ღუზის რედაქტირება', + title : 'ღუზის პარამეტრები', + name : 'ღუზუს სახელი', + errorName : 'აკრიფეთ ღუზის სახელი', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'გადანომრილი სიის პარამეტრები', + bulletedTitle : 'ღილებიანი სიის პარამეტრები', + type : 'ტიპი', + start : 'საწყისი', + validateStartNumber :'სიის საწყისი მთელი რიცხვი უნდა იყოს.', + circle : 'წრეწირი', + disc : 'წრე', + square : 'კვადრატი', + none : 'არაფერი', + notset : '<არაფერი>', + armenian : 'სომხური გადანომრვა', + georgian : 'ქართული გადანომრვა (ან, ბან, გან, ..)', + lowerRoman : 'რომაული გადანომრვცა პატარა ციფრებით (i, ii, iii, iv, v, ..)', + upperRoman : 'რომაული გადანომრვა დიდი ციფრებით (I, II, III, IV, V, etc.)', + lowerAlpha : 'პატარა ლათინური ასოებით (a, b, c, d, e, ..)', + upperAlpha : 'დიდი ლათინური ასოებით (A, B, C, D, E, ..)', + lowerGreek : 'პატარა ბერძნული ასოებით (ალფა, ბეტა, გამა, ..)', + decimal : 'რიცხვებით (1, 2, 3, ..)', + decimalLeadingZero : 'ნულით დაწყებული რიცხვებით (01, 02, 03, ..)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'ძებნა და შეცვლა', + find : 'ძებნა', + replace : 'შეცვლა', + findWhat : 'საძიებელი ტექსტი:', + replaceWith : 'შეცვლის ტექსტი:', + notFoundMsg : 'მითითებული ტექსტი არ მოიძებნა.', + findOptions : 'Find Options', // MISSING + matchCase : 'დიდი და პატარა ასოების დამთხვევა', + matchWord : 'მთელი სიტყვის დამთხვევა', + matchCyclic : 'დოკუმენტის ბოლოში გასვლის მერე თავიდან დაწყება', + replaceAll : 'ყველას შეცვლა', + replaceSuccessMsg : '%1 მოძებნილი შეიცვალა.' + }, + + // Table Dialog + table : + { + toolbar : 'ცხრილი', + title : 'ცხრილის პარამეტრები', + menu : 'ცხრილის პარამეტრები', + deleteTable : 'ცხრილის წაშლა', + rows : 'სტრიქონი', + columns : 'სვეტი', + border : 'ჩარჩოს ზომა', + widthPx : 'წერტილი', + widthPc : 'პროცენტი', + widthUnit : 'საზომი ერთეული', + cellSpace : 'უჯრის სივრცე (spacing)', + cellPad : 'უჯრის კიდე (padding)', + caption : 'სათაური', + summary : 'შეჯამება', + headers : 'სათაურები', + headersNone : 'არაფერი', + headersColumn : 'პირველი სვეტი', + headersRow : 'პირველი სტრიქონი', + headersBoth : 'ორივე', + invalidRows : 'სტრიქონების რაოდენობა დადებითი რიცხვი უნდა იყოს.', + invalidCols : 'სვეტების რაოდენობა დადებითი რიცხვი უნდა იყოს.', + invalidBorder : 'ჩარჩოს ზომა რიცხვით უდნა იყოს წარმოდგენილი.', + invalidWidth : 'ცხრილის სიგანე რიცხვით უნდა იყოს წარმოდგენილი.', + invalidHeight : 'ცხრილის სიმაღლე რიცხვით უნდა იყოს წარმოდგენილი.', + invalidCellSpacing : 'უჯრის სივრცე (spacing) რიცხვით უნდა იყოს წარმოდგენილი.', + invalidCellPadding : 'უჯრის კიდე (padding) რიცხვით უნდა იყოს წარმოდგენილი.', + + cell : + { + menu : 'უჯრა', + insertBefore : 'უჯრის ჩასმა მანამდე', + insertAfter : 'უჯრის ჩასმა მერე', + deleteCell : 'უჯრების წაშლა', + merge : 'უჯრების შეერთება', + mergeRight : 'შეერთება მარჯვენასთან', + mergeDown : 'შეერთება ქვემოთასთან', + splitHorizontal : 'გაყოფა ჰორიზონტალურად', + splitVertical : 'გაყოფა ვერტიკალურად', + title : 'უჯრის პარამეტრები', + cellType : 'უჯრის ტიპი', + rowSpan : 'სტრიქონების ოდენობა', + colSpan : 'სვეტების ოდენობა', + wordWrap : 'სტრიქონის გადატანა (Word Wrap)', + hAlign : 'ჰორიზონტალური სწორება', + vAlign : 'ვერტიკალური სწორება', + alignBaseline : 'ძირითადი ხაზის გასწვრივ', + bgColor : 'ფონის ფერი', + borderColor : 'ჩარჩოს ფერი', + data : 'მონაცემები', + header : 'სათაური', + yes : 'დიახ', + no : 'არა', + invalidWidth : 'უჯრის სიგანე რიცხვით უნდა იყოს წარმოდგენილი.', + invalidHeight : 'უჯრის სიმაღლე რიცხვით უნდა იყოს წარმოდგენილი.', + invalidRowSpan : 'სტრიქონების რაოდენობა მთელი რიცხვი უნდა იყოს.', + invalidColSpan : 'სვეტების რაოდენობა მთელი რიცხვი უნდა იყოს.', + chooseColor : 'არჩევა' + }, + + row : + { + menu : 'სტრიქონი', + insertBefore : 'სტრიქონის ჩამატება წინ', + insertAfter : 'სტრიქონის ჩამატება მერე', + deleteRow : 'სტრიქონების წაშლა' + }, + + column : + { + menu : 'სვეტი', + insertBefore : 'სვეტის ჩამატება წინ', + insertAfter : 'სვეტის ჩამატება მერე', + deleteColumn : 'სვეტების წაშლა' + } + }, + + // Button Dialog. + button : + { + title : 'ღილაკის პარამეტრები', + text : 'ტექსტი', + type : 'ტიპი', + typeBtn : 'ღილაკი', + typeSbm : 'გაგზავნა', + typeRst : 'გასუფთავება' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'მონიშვნის ღილაკის (Checkbox) პარამეტრები', + radioTitle : 'ასარჩევი ღილაკის (Radio) პარამეტრები', + value : 'ტექსტი', + selected : 'არჩეული' + }, + + // Form Dialog. + form : + { + title : 'ფორმის პარამეტრები', + menu : 'ფორმის პარამეტრები', + action : 'ქმედება', + method : 'მეთოდი', + encoding : 'კოდირება' + }, + + // Select Field Dialog. + select : + { + title : 'არჩევის ველის პარამეტრები', + selectInfo : 'ინფორმაცია', + opAvail : 'შესაძლებელი ვარიანტები', + value : 'მნიშვნელობა', + size : 'ზომა', + lines : 'ხაზები', + chkMulti : 'მრავლობითი არჩევანის საშუალება', + opText : 'ტექსტი', + opValue : 'მნიშვნელობა', + btnAdd : 'დამატება', + btnModify : 'შეცვლა', + btnUp : 'ზემოთ', + btnDown : 'ქვემოთ', + btnSetValue : 'ამორჩეულ მნიშვნელოვნად დაყენება', + btnDelete : 'წაშლა' + }, + + // Textarea Dialog. + textarea : + { + title : 'ტექსტური არის პარამეტრები', + cols : 'სვეტები', + rows : 'სტრიქონები' + }, + + // Text Field Dialog. + textfield : + { + title : 'ტექსტური ველის პარამეტრები', + name : 'სახელი', + value : 'მნიშვნელობა', + charWidth : 'სიმბოლოს ზომა', + maxChars : 'ასოების მაქსიმალური ოდენობა', + type : 'ტიპი', + typeText : 'ტექსტი', + typePass : 'პაროლი' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'მალული ველის პარამეტრები', + name : 'სახელი', + value : 'მნიშვნელობა' + }, + + // Image Dialog. + image : + { + title : 'სურათის პარამეტრები', + titleButton : 'სურათიანი ღილაკის პარამეტრები', + menu : 'სურათის პარამეტრები', + infoTab : 'სურათის ინფორმცია', + btnUpload : 'სერვერისთვის გაგზავნა', + upload : 'ატვირთვა', + alt : 'სანაცვლო ტექსტი', + lockRatio : 'პროპორციის შენარჩუნება', + resetSize : 'ზომის დაბრუნება', + border : 'ჩარჩო', + hSpace : 'ჰორიზონტალური სივრცე', + vSpace : 'ვერტიკალური სივრცე', + alertUrl : 'აკრიფეთ სურათის URL', + linkTab : 'ბმული', + button2Img : 'გსურთ არჩეული სურათიანი ღილაკის გადაქცევა ჩვეულებრივ ღილაკად?', + img2Button : 'გსურთ არჩეული ჩვეულებრივი ღილაკის გადაქცევა სურათიან ღილაკად?', + urlMissing : 'სურათის URL არაა შევსებული.', + validateBorder : 'ჩარჩო მთელი რიცხვი უნდა იყოს.', + validateHSpace : 'ჰორიზონტალური სივრცე მთელი რიცხვი უნდა იყოს.', + validateVSpace : 'ვერტიკალური სივრცე მთელი რიცხვი უნდა იყოს.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash-ის პარამეტრები', + propertiesTab : 'პარამეტრები', + title : 'Flash-ის პარამეტრები', + chkPlay : 'ავტო გაშვება', + chkLoop : 'ჩაციკლვა', + chkMenu : 'Flash-ის მენიუს დაშვება', + chkFull : 'მთელი ეკრანის დაშვება', + scale : 'მასშტაბირება', + scaleAll : 'ყველაფრის ჩვენება', + scaleNoBorder : 'ჩარჩოს გარეშე', + scaleFit : 'ზუსტი ჩასმა', + access : 'სკრიპტის წვდომა', + accessAlways : 'ყოველთვის', + accessSameDomain: 'იგივე დომენი', + accessNever : 'არასდროს', + alignAbsBottom : 'ჩარჩოს ქვემოთა ნაწილის სწორება ტექსტისთვის', + alignAbsMiddle : 'ჩარჩოს შუა ნაწილის სწორება ტექსტისთვის', + alignBaseline : 'საბაზისო ხაზის სწორება', + alignTextTop : 'ტექსტი ზემოდან', + quality : 'ხარისხი', + qualityBest : 'საუკეთესო', + qualityHigh : 'მაღალი', + qualityAutoHigh : 'მაღალი (ავტომატური)', + qualityMedium : 'საშუალო', + qualityAutoLow : 'ძალიან დაბალი', + qualityLow : 'დაბალი', + windowModeWindow: 'ფანჯარა', + windowModeOpaque: 'გაუმჭვირვალე', + windowModeTransparent : 'გამჭვირვალე', + windowMode : 'ფანჯრის რეჟიმი', + flashvars : 'ცვლადები Flash-ისთვის', + bgcolor : 'ფონის ფერი', + hSpace : 'ჰორიზ. სივრცე', + vSpace : 'ვერტ. სივრცე', + validateSrc : 'URL არ უნდა იყოს ცარიელი.', + validateHSpace : 'ჰორიზონტალური სივრცე არ უნდა იყოს ცარიელი.', + validateVSpace : 'ვერტიკალური სივრცე არ უნდა იყოს ცარიელი.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'მართლწერა', + title : 'მართლწერა', + notAvailable : 'უკაცრავად, ეს სერვისი ამჟამად მიუწვდომელია.', + errorLoading : 'სერვისის გამოძახების შეცდომა: %s.', + notInDic : 'არაა ლექსიკონში', + changeTo : 'შეცვლელი', + btnIgnore : 'უგულებელყოფა', + btnIgnoreAll : 'ყველას უგულებელყოფა', + btnReplace : 'შეცვლა', + btnReplaceAll : 'ყველას შეცვლა', + btnUndo : 'გაუქმება', + noSuggestions : '- არაა შემოთავაზება -', + progress : 'მიმდინარეობს მართლწერის შემოწმება...', + noMispell : 'მართლწერის შემოწმება: შეცდომა არ მოიძებნა', + noChanges : 'მართლწერის შემოწმება: არაფერი შეცვლილა', + oneChange : 'მართლწერის შემოწმება: ერთი სიტყვა შეიცვალა', + manyChanges : 'მართლწერის შემოწმება: %1 სიტყვა შეიცვალა', + ieSpellDownload : 'მართლწერის შემოწმება არაა დაინსტალირებული. ჩამოვქაჩოთ ინტერნეტიდან?' + }, + + smiley : + { + toolbar : 'სიცილაკები', + title : 'სიცილაკის ჩასმა', + options : 'სიცილაკის პარამეტრები' + }, + + elementsPath : + { + eleLabel : 'ელემეტის გზა', + eleTitle : '%1 ელემენტი' + }, + + numberedlist : 'გადანომრილი სია', + bulletedlist : 'ღილიანი სია', + indent : 'მეტად შეწევა', + outdent : 'ნაკლებად შეწევა', + + justify : + { + left : 'მარცხნივ სწორება', + center : 'შუაში სწორება', + right : 'მარჯვნივ სწორება', + block : 'გადასწორება' + }, + + blockquote : 'ციტატა', + + clipboard : + { + title : 'ჩასმა', + cutError : 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ამოჭრის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+X).', + copyError : 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ასლის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+C).', + pasteMsg : 'ჩასვით ამ არის შიგნით კლავიატურის გამოყენებით (<strong>Ctrl/Cmd+V</strong>) და დააჭირეთ OK-ს', + securityMsg : 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა clipboard-ის მონაცემების წვდომის უფლებას. კიდევ უნდა ჩასვათ ტექსტი ამ ფანჯარაში.', + pasteArea : 'ჩასმის არე' + }, + + pastefromword : + { + confirmCleanup : 'ჩასასმელი ტექსტი ვორდიდან გადმოტანილს გავს - გინდათ მისი წინასწარ გაწმენდა?', + toolbar : 'ვორდიდან ჩასმა', + title : 'ვორდიდან ჩასმა', + error : 'შიდა შეცდომის გამო ვერ მოხერხდა ტექსტის გაწმენდა' + }, + + pasteText : + { + button : 'მხოლოდ ტექსტის ჩასმა', + title : 'მხოლოდ ტექსტის ჩასმა' + }, + + templates : + { + button : 'თარგები', + title : 'თარგები', + options : 'თარგების პარამეტრები', + insertOption : 'მიმდინარე შეგთავსის შეცვლა', + selectPromptMsg : 'აირჩიეთ თარგი რედაქტორისთვის', + emptyListMsg : '(თარგი არაა განსაზღვრული)' + }, + + showBlocks : 'არეების ჩვენება', + + stylesCombo : + { + label : 'სტილები', + panelTitle : 'ფორმატირების სტილები', + panelTitle1 : 'არის სტილები', + panelTitle2 : 'თანდართული სტილები', + panelTitle3 : 'ობიექტის სტილები' + }, + + format : + { + label : 'ფიორმატირება', + panelTitle : 'ფორმატირება', + + tag_p : 'ჩვეულებრივი', + tag_pre : 'ფორმატირებული', + tag_address : 'მისამართი', + tag_h1 : 'სათაური 1', + tag_h2 : 'სათაური 2', + tag_h3 : 'სათაური 3', + tag_h4 : 'სათაური 4', + tag_h5 : 'სათაური 5', + tag_h6 : 'სათაური 6', + tag_div : 'ჩვეულებრივი (DIV)' + }, + + div : + { + title : 'Div კონტეინერის შექმნა', + toolbar : 'Div კონტეინერის შექმნა', + cssClassInputLabel : 'CSS კლასები', + styleSelectLabel : 'სტილი', + IdInputLabel : 'Id', + languageCodeInputLabel : 'ენის კოდი', + inlineStyleInputLabel : 'თანდართული სტილი', + advisoryTitleInputLabel : 'სათაური', + langDirLabel : 'ენის მინართულება', + langDirLTRLabel : 'მარცხნიდან მარჯვნიც (LTR)', + langDirRTLLabel : 'მარჯვნიდან მარცხნივ (RTL)', + edit : 'Div-ის რედაქტირება', + remove : 'Div-ის წაშლა' + }, + + iframe : + { + title : 'IFrame-ის პარამეტრები', + toolbar : 'IFrame', + noUrl : 'აკრიფეთ iframe-ის URL', + scrolling : 'გადახვევის ზოლების დაშვება', + border : 'ჩარჩოს გამოჩენა' + }, + + font : + { + label : 'ფონტი', + voiceLabel : 'ფონტი', + panelTitle : 'ფონტის სახელი' + }, + + fontSize : + { + label : 'ზომა', + voiceLabel : 'ტექსტის ზომა', + panelTitle : 'ტექსტის ზომა' + }, + + colorButton : + { + textColorTitle : 'ტექსტის ფერი', + bgColorTitle : 'ფონის ფერი', + panelTitle : 'ფერები', + auto : 'ავტომატური', + more : 'მეტი ფერი...' + }, + + colors : + { + '000' : 'შავი', + '800000' : 'მუქი შინდისფერი', + '8B4513' : 'ყავისფერი', + '2F4F4F' : 'მოლურჯო ნაცრისფერი', + '008080' : 'ჩამქრალი ლურჯი', + '000080' : 'მუქი ლურჯი', + '4B0082' : 'იასამნისფერი', + '696969' : 'მუქი ნაცრისფერი', + 'B22222' : 'აგურისფერი', + 'A52A2A' : 'მუქი ყავისფერი', + 'DAA520' : 'მოყვითალო', + '006400' : 'მუქი მწვანე', + '40E0D0' : 'ცისფერი', + '0000CD' : 'ზომიერად ლურჯი', + '800080' : 'იისფერი', + '808080' : 'ნაცრისფერი', + 'F00' : 'წითელი', + 'FF8C00' : 'მუქი სტაფილოსფერი', + 'FFD700' : 'ოქროსფერი', + '008000' : 'მწვანე', + '0FF' : 'ღია ცისფერი', + '00F' : 'ლურჯი', + 'EE82EE' : 'იისფერი', + 'A9A9A9' : 'ბაცი ნაცრისფერი', + 'FFA07A' : 'ჩამქრალი ვარდისფერი', + 'FFA500' : 'სტაფილოსფერი', + 'FFFF00' : 'ყვითელი', + '00FF00' : 'ლურჯი', + 'AFEEEE' : 'ცისფერი', + 'ADD8E6' : 'ღია ლურჯი', + 'DDA0DD' : 'ღია იისფერი', + 'D3D3D3' : 'ღია ნაცრისფერი', + 'FFF0F5' : 'ღია ვარდისფერი', + 'FAEBD7' : 'ღია ყავისფერი', + 'FFFFE0' : 'ნათელი ყვითელი', + 'F0FFF0' : 'ღია მწვანე', + 'F0FFFF' : 'ღია ცისფერი 2', + 'F0F8FF' : 'ღია ცისფერი 3', + 'E6E6FA' : 'ღია იისფერი 2', + 'FFF' : 'თეთრი' + }, + + scayt : + { + title : 'მართლწერის შემოწმება კრეფისას', + opera_title : 'არაა მხარდაჭერილი Opera-ს მიერ', + enable : 'SCAYT-ის ჩართვა', + disable : 'SCAYT-ის გამორთვა', + about : 'SCAYT-ის შესახებ', + toggle : 'SCAYT-ის გადართვა', + options : 'პარამეტრები', + langs : 'ენები', + moreSuggestions : 'მეტი შემოთავაზება', + ignore : 'უგულებელყოფა', + ignoreAll : 'ყველას უგულებელყოფა', + addWord : 'სიტყვის დამატება', + emptyDic : 'ლექსიკონის სიტყვა არ უნდა იყოს ცარიელი.', + + optionsTab : 'პარამეტრები', + allCaps : 'დიდი ასოებით დაწერილი სიტყვების უგულებელყოფა', + ignoreDomainNames : 'დომენური სახელების უგულებელყოფა', + mixedCase : 'შერეული ასოებანი სიტყვების უგულებელყოფა', + mixedWithDigits : 'ციფრებიანი სიტყვების უგულებელყოფა', + + languagesTab : 'ენები', + + dictionariesTab : 'ლექსიკონები', + dic_field_name : 'ლექსიკონის სახელი', + dic_create : 'შექმნა', + dic_restore : 'დაბრუნება', + dic_delete : 'წაშლა', + dic_rename : 'გადარქმევა', + dic_info : 'თავდაპირველად მომხმარებლის ლექსიკონი ინახება Cookie-ში. თუმცა Cookie შეზღუდულია ზომაში. როცა ლექსიკონის ზომა გაიზრდება საკმაოდ ის შეიძლება შევინახოთ ჩვენს სერვერზე. ჩვენს სერვერზე ლექსიკონს შესანახად უნდა მიუთითოთ მისი სახელი. თუ უკე გაქვთ ლექსიკონი, აკრიფეთ მისი სახელი და დააჭირეთ "დაბრუნების" ღილაკს.', + + aboutTab : 'ინფორმაცია' + }, + + about : + { + title : 'CKEditor-ის შესახებ', + dlgTitle : 'CKEditor-ის შესახებ', + help : 'დახმარებისთვის იხილეთ $1.', + userGuide : 'CKEditor-ის მომხმარებლის სახელმძღვანელო', + moreInfo : 'ლიცენზიის ინფორმაციისთვის ეწვიეთ ჩვენს საიტს:', + copy : 'Copyright © $1. ყველა უფლება დაცულია.' + }, + + maximize : 'გადიდება', + minimize : 'დაპატარავება', + + fakeobjects : + { + anchor : 'ღუზა', + flash : 'Flash ანიმაცია', + iframe : 'IFrame', + hiddenfield : 'მალული ველი', + unknown : 'უცნობი ობიექტი' + }, + + resize : 'გაწიე ზომის შესაცვლელად', + + colordialog : + { + title : 'ფერის შეცვლა', + options : 'ფერის პარამეტრები', + highlight : 'ჩვენება', + selected : 'არჩეული ფერი', + clear : 'გასუფთავება' + }, + + toolbarCollapse : 'ხელსაწყოთა ზოლის შეწევა', + toolbarExpand : 'ხელსაწყოთა ზოლის გამოწევა', + + toolbarGroups : + { + document : 'დოკუმენტი', + clipboard : 'Clipboard/გაუქმება', + editing : 'რედაქტირება', + forms : 'ფორმები', + basicstyles : 'ძირითადი სტილები', + paragraph : 'აბზაცი', + links : 'ბმულები', + insert : 'ჩასმა', + styles : 'სტილები', + colors : 'ფერები', + tools : 'ხელსაწყოები' + }, + + bidi : + { + ltr : 'ტექსტის მიმართულება მარცხნიდან მარჯვნივ', + rtl : 'ტექსტის მიმართულება მარჯვნიდან მარცხნივ' + }, + + docprops : + { + label : 'დოკუმენტის პარამეტრები', + title : 'დოკუმენტის პარამეტრები', + design : 'დიზაინი', + meta : 'მეტაTag-ები', + chooseColor : 'არჩევა', + other : 'სხვა...', + docTitle : 'გვერდის სათაური', + charset : 'კოდირება', + charsetOther : 'სხვა კოდირებები', + charsetASCII : 'ამერიკული (ASCII)', + charsetCE : 'ცენტრალურ ევროპული', + charsetCT : 'ტრადიციული ჩინური (Big5)', + charsetCR : 'კირილური', + charsetGR : 'ბერძნული', + charsetJP : 'იაპონური', + charsetKR : 'კორეული', + charsetTR : 'თურქული', + charsetUN : 'უნიკოდი (UTF-8)', + charsetWE : 'დასავლეთ ევროპული', + docType : 'დოკუმენტის ტიპი', + docTypeOther : 'სხვა ტიპის დოკუმენტი', + xhtmlDec : 'XHTML დეკლარაციების ჩართვა', + bgColor : 'ფონის ფერი', + bgImage : 'ფონური სურათის URL', + bgFixed : 'უმოძრაო (ფიქსირებული) ფონი', + txtColor : 'ტექსტის ფერი', + margin : 'გვერდის კიდეები', + marginTop : 'ზედა', + marginLeft : 'მარცხენა', + marginRight : 'მარჯვენა', + marginBottom : 'ქვედა', + metaKeywords : 'დოკუმენტის საკვანძო სიტყვები (მძიმით გამოყოფილი)', + metaDescription : 'დოკუმენტის აღწერა', + metaAuthor : 'ავტორი', + metaCopyright : 'Copyright', + previewHtml : '<p>ეს არის <strong>საცდელი ტექსტი</strong>. თქვენ <a href="javascript:void(0)">CKEditor</a>-ით სარგებლობთ.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/km.js b/htdocs/includes/ckeditor/_source/lang/km.js new file mode 100644 index 0000000000000000000000000000000000000000..a77c0db2b5ccd11109cb8e3db6e42348d728b235 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/km.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Khmer language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['km'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'កូត', + newPage : 'ទំព័រថ្មី', + save : 'រក្សាទុក', + preview : 'មើលសាកល្បង', + cut : 'កាត់យក', + copy : 'ចំលងយក', + paste : 'ចំលងដាក់', + print : 'បោះពុម្ភ', + underline : 'ដិតបន្ទាត់ពីក្រោមអក្សរ', + bold : 'អក្សរដិតធំ', + italic : 'អក្សរផ្តេក', + selectAll : 'ជ្រើសរើសទាំងអស់', + removeFormat : 'លប់ចោល ការរចនា', + strike : 'ដិតបន្ទាត់ពាក់កណ្តាលអក្សរ', + subscript : 'អក្សរតូចក្រោម', + superscript : 'អក្សរតូចលើ', + horizontalrule : 'បន្ថែមបន្ទាត់ផ្តេក', + pagebreak : 'បន្ថែម ការផ្តាច់ទំព័រ', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'លប់ឈ្នាប់', + undo : 'សារឡើងវិញ', + redo : 'ធ្វើឡើងវិញ', + + // Common messages and labels. + common : + { + browseServer : 'មើល', + url : 'URL', + protocol : 'ប្រូតូកូល', + upload : 'ទាញយក', + uploadSubmit : 'បញ្ជូនទៅកាន់ម៉ាស៊ីនផ្តល់សេវា', + image : 'រូបភាព', + flash : 'Flash', + form : 'បែបបទ', + checkbox : 'ប្រអប់ជ្រើសរើស', + radio : 'ប៉ូតុនរង្វង់មូល', + textField : 'ជួរសរសេរអត្ថបទ', + textarea : 'តំបន់សរសេរអត្ថបទ', + hiddenField : 'ជួរលាក់', + button : 'ប៉ូតុន', + select : 'ជួរជ្រើសរើស', + imageButton : 'ប៉ូតុនរូបភាព', + notSet : '<មិនមែន>', + id : 'Id', + name : 'ឈ្មោះ', + langDir : 'ទិសដៅភាសា', + langDirLtr : 'ពីឆ្វេងទៅស្តាំ(LTR)', + langDirRtl : 'ពីស្តាំទៅឆ្វេង(RTL)', + langCode : 'លេខកូតភាសា', + longDescr : 'អធិប្បាយ URL វែង', + cssClass : 'Stylesheet Classes', + advisoryTitle : 'ចំណងជើង ប្រឹក្សា', + cssStyle : 'ម៉ូត', + ok : 'យល់ព្រម', + cancel : 'មិនយល់ព្រម', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'កំរិតខ្ពស់', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'ទទឹង', + height : 'កំពស់', + align : 'កំណត់ទីតាំង', + alignLeft : 'ខាងឆ្វង', + alignRight : 'ខាងស្តាំ', + alignCenter : 'កណ្តាល', + alignTop : 'ខាងលើ', + alignMiddle : 'កណ្តាល', + alignBottom : 'ខាងក្រោម', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'បន្ថែមអក្សរពិសេស', + title : 'តូអក្សរពិសេស', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'បន្ថែម/កែប្រែ ឈ្នាប់', + other : '<other>', // MISSING + menu : 'កែប្រែឈ្នាប់', + title : 'ឈ្នាប់', + info : 'ពត៌មានអំពីឈ្នាប់', + target : 'គោលដៅ', + upload : 'ទាញយក', + advanced : 'កំរិតខ្ពស់', + type : 'ប្រភេទឈ្នាប់', + toUrl : 'URL', // MISSING + toAnchor : 'យុថ្កានៅក្នុងទំព័រនេះ', + toEmail : 'អ៊ីមែល', + targetFrame : '<ហ្វ្រេម>', + targetPopup : '<វីនដូវ លោត>', + targetFrameName : 'ឈ្មោះហ្រ្វេមដែលជាគោលដៅ', + targetPopupName : 'ឈ្មោះវីនដូវលោត', + popupFeatures : 'លក្ខណះរបស់វីនដូលលោត', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'របា ពត៌មាន', + popupLocationBar: 'របា ទីតាំង', + popupToolbar : 'របា ឩបករណ៍', + popupMenuBar : 'របា មឺនុយ', + popupFullScreen : 'អេក្រុងពេញ(IE)', + popupScrollBars : 'របា ទាញ', + popupDependent : 'អាស្រ័យលើ (Netscape)', + popupLeft : 'ទីតាំងខាងឆ្វេង', + popupTop : 'ទីតាំងខាងលើ', + id : 'Id', // MISSING + langDir : 'ទិសដៅភាសា', + langDirLTR : 'ពីឆ្វេងទៅស្តាំ(LTR)', + langDirRTL : 'ពីស្តាំទៅឆ្វេង(RTL)', + acccessKey : 'ឃី សំរាប់ចូល', + name : 'ឈ្មោះ', + langCode : 'ទិសដៅភាសា', + tabIndex : 'លេខ Tab', + advisoryTitle : 'ចំណងជើង ប្រឹក្សា', + advisoryContentType : 'ប្រភេទអត្ថបទ ប្រឹក្សា', + cssClasses : 'Stylesheet Classes', + charset : 'លេខកូតអក្សររបស់ឈ្នាប់', + styles : 'ម៉ូត', + rel : 'Relationship', // MISSING + selectAnchor : 'ជ្រើសរើសយុថ្កា', + anchorName : 'តាមឈ្មោះរបស់យុថ្កា', + anchorId : 'តាម Id', + emailAddress : 'អ៊ីមែល', + emailSubject : 'ចំណងជើងអត្ថបទ', + emailBody : 'អត្ថបទ', + noAnchors : '(No anchors available in the document)', // MISSING + noUrl : 'សូមសរសេរ អាស័យដ្ឋាន URL', + noEmail : 'សូមសរសេរ អាស័យដ្ឋាន អ៊ីមែល' + }, + + // Anchor dialog + anchor : + { + toolbar : 'បន្ថែម/កែប្រែ យុថ្កា', + menu : 'ការកំណត់យុថ្កា', + title : 'ការកំណត់យុថ្កា', + name : 'ឈ្មោះយុទ្ធថ្កា', + errorName : 'សូមសរសេរ ឈ្មោះយុទ្ធថ្កា', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'ស្វែងរក', + replace : 'ជំនួស', + findWhat : 'ស្វែងរកអ្វី:', + replaceWith : 'ជំនួសជាមួយ:', + notFoundMsg : 'ពាក្យនេះ រកមិនឃើញទេ ។', + findOptions : 'Find Options', // MISSING + matchCase : 'ករណ៉ត្រូវរក', + matchWord : 'ត្រូវពាក្យទាំងអស់', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'ជំនួសទាំងអស់', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'តារាង', + title : 'ការកំណត់ តារាង', + menu : 'ការកំណត់ តារាង', + deleteTable : 'លប់តារាង', + rows : 'ជួរផ្តេក', + columns : 'ជួរឈរ', + border : 'ទំហំស៊ុម', + widthPx : 'ភីកសែល', + widthPc : 'ភាគរយ', + widthUnit : 'width unit', // MISSING + cellSpace : 'គំលាតសែល', + cellPad : 'គែមសែល', + caption : 'ចំណងជើង', + summary : 'សេចក្តីសង្ខេប', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cell', // MISSING + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'លប់សែល', + merge : 'បញ្ជូលសែល', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', // MISSING + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'លប់ជួរផ្តេក' + }, + + column : + { + menu : 'Column', // MISSING + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'លប់ជួរឈរ' + } + }, + + // Button Dialog. + button : + { + title : 'ការកំណត់ ប៉ូតុន', + text : 'អត្ថបទ(តំលៃ)', + type : 'ប្រភេទ', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'ការកំណត់ប្រអប់ជ្រើសរើស', + radioTitle : 'ការកំណត់ប៉ូតុនរង្វង់', + value : 'តំលៃ', + selected : 'បានជ្រើសរើស' + }, + + // Form Dialog. + form : + { + title : 'ការកំណត់បែបបទ', + menu : 'ការកំណត់បែបបទ', + action : 'សកម្មភាព', + method : 'វិធី', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'ការកំណត់ជួរជ្រើសរើស', + selectInfo : 'ពត៌មាន', + opAvail : 'ការកំណត់ជ្រើសរើស ដែលអាចកំណត់បាន', + value : 'តំលៃ', + size : 'ទំហំ', + lines : 'បន្ទាត់', + chkMulti : 'អនុញ្ញាតអោយជ្រើសរើសច្រើន', + opText : 'ពាក្យ', + opValue : 'តំលៃ', + btnAdd : 'បន្ថែម', + btnModify : 'ផ្លាស់ប្តូរ', + btnUp : 'លើ', + btnDown : 'ក្រោម', + btnSetValue : 'Set as selected value', // MISSING + btnDelete : 'លប់' + }, + + // Textarea Dialog. + textarea : + { + title : 'ការកំណត់កន្លែងសរសេរអត្ថបទ', + cols : 'ជូរឈរ', + rows : 'ជូរផ្តេក' + }, + + // Text Field Dialog. + textfield : + { + title : 'ការកំណត់ជួរអត្ថបទ', + name : 'ឈ្មោះ', + value : 'តំលៃ', + charWidth : 'ទទឹង អក្សរ', + maxChars : 'អក្សរអតិបរិមា', + type : 'ប្រភេទ', + typeText : 'ពាក្យ', + typePass : 'ពាក្យសំងាត់' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'ការកំណត់ជួរលាក់', + name : 'ឈ្មោះ', + value : 'តំលៃ' + }, + + // Image Dialog. + image : + { + title : 'ការកំណត់រូបភាព', + titleButton : 'ការកំណត់ប៉ូតុនរូបភាព', + menu : 'ការកំណត់រូបភាព', + infoTab : 'ពត៌មានអំពីរូបភាព', + btnUpload : 'បញ្ជូនទៅកាន់ម៉ាស៊ីនផ្តល់សេវា', + upload : 'ទាញយក', + alt : 'អត្ថបទជំនួស', + lockRatio : 'អត្រាឡុក', + resetSize : 'កំណត់ទំហំឡើងវិញ', + border : 'ស៊ុម', + hSpace : 'គំលាតទទឹង', + vSpace : 'គំលាតបណ្តោយ', + alertUrl : 'សូមសរសេរងាស័យដ្ឋានរបស់រូបភាព', + linkTab : 'ឈ្នាប់', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'ការកំណត់ Flash', + propertiesTab : 'Properties', // MISSING + title : 'ការកំណត់ Flash', + chkPlay : 'លេងដោយស្វ័យប្រវត្ត', + chkLoop : 'ចំនួនដង', + chkMenu : 'បង្ហាញ មឺនុយរបស់ Flash', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'ទំហំ', + scaleAll : 'បង្ហាញទាំងអស់', + scaleNoBorder : 'មិនបង្ហាញស៊ុម', + scaleFit : 'ត្រូវល្មម', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs Bottom', // MISSING + alignAbsMiddle : 'Abs Middle', // MISSING + alignBaseline : 'បន្ទាត់ជាមូលដ្ឋាន', + alignTextTop : 'លើអត្ថបទ', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'ពណ៌ផ្ទៃខាងក្រោយ', + hSpace : 'គំលាតទទឹង', + vSpace : 'គំលាតបណ្តោយ', + validateSrc : 'សូមសរសេរ អាស័យដ្ឋាន URL', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'ពិនិត្យអក្ខរាវិរុទ្ធ', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'គ្មានក្នុងវចនានុក្រម', + changeTo : 'ផ្លាស់ប្តូរទៅ', + btnIgnore : 'មិនផ្លាស់ប្តូរ', + btnIgnoreAll : 'មិនផ្លាស់ប្តូរ ទាំងអស់', + btnReplace : 'ជំនួស', + btnReplaceAll : 'ជំនួសទាំងអស់', + btnUndo : 'សារឡើងវិញ', + noSuggestions : '- គ្មានសំណើរ -', + progress : 'កំពុងពិនិត្យអក្ខរាវិរុទ្ធ...', + noMispell : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: គ្មានកំហុស', + noChanges : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពុំមានផ្លាស់ប្តូរ', + oneChange : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពាក្យមួយត្រូចបានផ្លាស់ប្តូរ', + manyChanges : 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: %1 ពាក្យបានផ្លាស់ប្តូរ', + ieSpellDownload : 'ពុំមានកម្មវិធីពិនិត្យអក្ខរាវិរុទ្ធ ។ តើចង់ទាញយកពីណា?' + }, + + smiley : + { + toolbar : 'រូបភាព', + title : 'បញ្ជូលរូបភាព', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'បញ្ជីជាអក្សរ', + bulletedlist : 'បញ្ជីជារង្វង់មូល', + indent : 'បន្ថែមការចូលបន្ទាត់', + outdent : 'បន្ថយការចូលបន្ទាត់', + + justify : + { + left : 'តំរឹមឆ្វេង', + center : 'តំរឹមកណ្តាល', + right : 'តំរឹមស្តាំ', + block : 'តំរឹមសងខាង' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'ចំលងដាក់', + cutError : 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ\u200bមិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ កាត់អត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+X) ។', + copyError : 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ\u200bមិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ ចំលងអត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+C)។', + pasteMsg : 'សូមចំលងអត្ថបទទៅដាក់ក្នុងប្រអប់ដូចខាងក្រោមដោយប្រើប្រាស់ ឃី \u200b(<STRONG>Ctrl/Cmd+V</STRONG>) ហើយចុច <STRONG>OK</STRONG> ។', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'ចំលងដាក់ពី Word', + title : 'ចំលងដាក់ពី Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'ចំលងដាក់អត្ថបទធម្មតា', + title : 'ចំលងដាក់អត្ថបទធម្មតា' + }, + + templates : + { + button : 'ឯកសារគំរូ', + title : 'ឯកសារគំរូ របស់អត្ថន័យ', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'សូមជ្រើសរើសឯកសារគំរូ ដើម្បីបើកនៅក្នុងកម្មវិធីតាក់តែងអត្ថបទ<br>(អត្ថបទនឹងបាត់បង់):', + emptyListMsg : '(ពុំមានឯកសារគំរូត្រូវបានកំណត់)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'ម៉ូត', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'រចនា', + panelTitle : 'រចនា', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'ហ្វុង', + voiceLabel : 'Font', // MISSING + panelTitle : 'ហ្វុង' + }, + + fontSize : + { + label : 'ទំហំ', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'ទំហំ' + }, + + colorButton : + { + textColorTitle : 'ពណ៌អក្សរ', + bgColorTitle : 'ពណ៌ផ្ទៃខាងក្រោយ', + panelTitle : 'Colors', // MISSING + auto : 'ស្វ័យប្រវត្ត', + more : 'ពណ៌ផ្សេងទៀត..' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'ការកំណត់ ឯកសារ', + title : 'ការកំណត់ ឯកសារ', + design : 'Design', // MISSING + meta : 'ទិន្នន័យមេ', + chooseColor : 'Choose', // MISSING + other : '<other>', + docTitle : 'ចំណងជើងទំព័រ', + charset : 'កំណត់លេខកូតភាសា', + charsetOther : 'កំណត់លេខកូតភាសាផ្សេងទៀត', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'ប្រភេទក្បាលទំព័រ', + docTypeOther : 'ប្រភេទក្បាលទំព័រផ្សេងទៀត', + xhtmlDec : 'បញ្ជូល XHTML', + bgColor : 'ពណ៌ខាងក្រោម', + bgImage : 'URL របស់រូបភាពខាងក្រោម', + bgFixed : 'ទំព័រក្រោមមិនប្តូរ', + txtColor : 'ពណ៌អក្សរ', + margin : 'ស៊ុមទំព័រ', + marginTop : 'លើ', + marginLeft : 'ឆ្វេង', + marginRight : 'ស្ដាំ', + marginBottom : 'ក្រោម', + metaKeywords : 'ពាក្យនៅក្នុងឯកសារ (ផ្តាច់ពីគ្នាដោយក្បៀស)', + metaDescription : 'សេចក្តីអត្ថាធិប្បាយអំពីឯកសារ', + metaAuthor : 'អ្នកនិពន្ធ', + metaCopyright : 'រក្សាសិទ្ធិ៏', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ko.js b/htdocs/includes/ckeditor/_source/lang/ko.js new file mode 100644 index 0000000000000000000000000000000000000000..3c67a29aeba100dc03c2c35d35490420459d23f8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ko.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Korean language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ko'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : '소스', + newPage : '새 문서', + save : '저장하기', + preview : '미리보기', + cut : '잘라내기', + copy : '복사하기', + paste : '붙여넣기', + print : '인쇄하기', + underline : '밑줄', + bold : '진하게', + italic : '이텔릭', + selectAll : '전체선택', + removeFormat : '포맷 지우기', + strike : '취소선', + subscript : '아래 첨자', + superscript : '위 첨자', + horizontalrule : '수평선 삽입', + pagebreak : 'Insert Page Break for Printing', // MISSING + pagebreakAlt : 'Page Break', // MISSING + unlink : '링크 삭제', + undo : '취소', + redo : '재실행', + + // Common messages and labels. + common : + { + browseServer : '서버 보기', + url : 'URL', + protocol : '프로토콜', + upload : '업로드', + uploadSubmit : '서버로 전송', + image : '이미지', + flash : '플래쉬', + form : '폼', + checkbox : '체크박스', + radio : '라디오버튼', + textField : '입력필드', + textarea : '입력영역', + hiddenField : '숨김필드', + button : '버튼', + select : '펼침목록', + imageButton : '이미지버튼', + notSet : '<설정되지 않음>', + id : 'ID', + name : 'Name', + langDir : '쓰기 방향', + langDirLtr : '왼쪽에서 오른쪽 (LTR)', + langDirRtl : '오른쪽에서 왼쪽 (RTL)', + langCode : '언어 코드', + longDescr : 'URL 설명', + cssClass : 'Stylesheet Classes', + advisoryTitle : 'Advisory Title', + cssStyle : 'Style', + ok : '예', + cancel : '아니오', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : '자세히', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : '너비', + height : '높이', + align : '정렬', + alignLeft : '왼쪽', + alignRight : '오른쪽', + alignCenter : '가운데', + alignTop : '위', + alignMiddle : '중간', + alignBottom : '아래', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : '특수문자 삽입', + title : '특수문자 선택', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : '링크 삽입/변경', + other : '<기타>', + menu : '링크 수정', + title : '링크', + info : '링크 정보', + target : '타겟', + upload : '업로드', + advanced : '자세히', + type : '링크 종류', + toUrl : 'URL', // MISSING + toAnchor : '책갈피', + toEmail : '이메일', + targetFrame : '<프레임>', + targetPopup : '<팝업창>', + targetFrameName : '타겟 프레임 이름', + targetPopupName : '팝업창 이름', + popupFeatures : '팝업창 설정', + popupResizable : 'Resizable', // MISSING + popupStatusBar : '상태바', + popupLocationBar: '주소표시줄', + popupToolbar : '툴바', + popupMenuBar : '메뉴바', + popupFullScreen : '전체화면 (IE)', + popupScrollBars : '스크롤바', + popupDependent : 'Dependent (Netscape)', + popupLeft : '왼쪽 위치', + popupTop : '윗쪽 위치', + id : 'Id', // MISSING + langDir : '쓰기 방향', + langDirLTR : '왼쪽에서 오른쪽 (LTR)', + langDirRTL : '오른쪽에서 왼쪽 (RTL)', + acccessKey : '엑세스 키', + name : 'Name', + langCode : '쓰기 방향', + tabIndex : '탭 순서', + advisoryTitle : 'Advisory Title', + advisoryContentType : 'Advisory Content Type', + cssClasses : 'Stylesheet Classes', + charset : 'Linked Resource Charset', + styles : 'Style', + rel : 'Relationship', // MISSING + selectAnchor : '책갈피 선택', + anchorName : '책갈피 이름', + anchorId : '책갈피 ID', + emailAddress : '이메일 주소', + emailSubject : '제목', + emailBody : '내용', + noAnchors : '(문서에 책갈피가 없습니다.)', + noUrl : '링크 URL을 입력하십시요.', + noEmail : '이메일주소를 입력하십시요.' + }, + + // Anchor dialog + anchor : + { + toolbar : '책갈피 삽입/변경', + menu : '책갈피 속성', + title : '책갈피 속성', + name : '책갈피 이름', + errorName : '책갈피 이름을 입력하십시요.', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : '찾기 & 바꾸기', + find : '찾기', + replace : '바꾸기', + findWhat : '찾을 문자열:', + replaceWith : '바꿀 문자열:', + notFoundMsg : '문자열을 찾을 수 없습니다.', + findOptions : 'Find Options', // MISSING + matchCase : '대소문자 구분', + matchWord : '온전한 단어', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : '모두 바꾸기', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : '표', + title : '표 설정', + menu : '표 설정', + deleteTable : '표 삭제', + rows : '가로줄', + columns : '세로줄', + border : '테두리 크기', + widthPx : '픽셀', + widthPc : '퍼센트', + widthUnit : 'width unit', // MISSING + cellSpace : '셀 간격', + cellPad : '셀 여백', + caption : '캡션', + summary : 'Summary', // MISSING + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : '셀/칸(Cell)', + insertBefore : '앞에 셀/칸 삽입', + insertAfter : '뒤에 셀/칸 삽입', + deleteCell : '셀 삭제', + merge : '셀 합치기', + mergeRight : '오른쪽 뭉치기', + mergeDown : '왼쪽 뭉치기', + splitHorizontal : '수평 나누기', + splitVertical : '수직 나누기', + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : '행(Row)', + insertBefore : '앞에 행 삽입', + insertAfter : '뒤에 행 삽입', + deleteRow : '가로줄 삭제' + }, + + column : + { + menu : '열(Column)', + insertBefore : '앞에 열 삽입', + insertAfter : '뒤에 열 삽입', + deleteColumn : '세로줄 삭제' + } + }, + + // Button Dialog. + button : + { + title : '버튼 속성', + text : '버튼글자(값)', + type : '버튼종류', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : '체크박스 속성', + radioTitle : '라디오버튼 속성', + value : '값', + selected : '선택됨' + }, + + // Form Dialog. + form : + { + title : '폼 속성', + menu : '폼 속성', + action : '실행경로(Action)', + method : '방법(Method)', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : '펼침목록 속성', + selectInfo : '정보', + opAvail : '선택옵션', + value : '값', + size : '세로크기', + lines : '줄', + chkMulti : '여러항목 선택 허용', + opText : '이름', + opValue : '값', + btnAdd : '추가', + btnModify : '변경', + btnUp : '위로', + btnDown : '아래로', + btnSetValue : '선택된것으로 설정', + btnDelete : '삭제' + }, + + // Textarea Dialog. + textarea : + { + title : '입력영역 속성', + cols : '칸수', + rows : '줄수' + }, + + // Text Field Dialog. + textfield : + { + title : '입력필드 속성', + name : '이름', + value : '값', + charWidth : '글자 너비', + maxChars : '최대 글자수', + type : '종류', + typeText : '문자열', + typePass : '비밀번호' + }, + + // Hidden Field Dialog. + hidden : + { + title : '숨김필드 속성', + name : '이름', + value : '값' + }, + + // Image Dialog. + image : + { + title : '이미지 설정', + titleButton : '이미지버튼 속성', + menu : '이미지 설정', + infoTab : '이미지 정보', + btnUpload : '서버로 전송', + upload : '업로드', + alt : '이미지 설명', + lockRatio : '비율 유지', + resetSize : '원래 크기로', + border : '테두리', + hSpace : '수평여백', + vSpace : '수직여백', + alertUrl : '이미지 URL을 입력하십시요', + linkTab : '링크', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : '플래쉬 속성', + propertiesTab : 'Properties', // MISSING + title : '플래쉬 등록정보', + chkPlay : '자동재생', + chkLoop : '반복', + chkMenu : '플래쉬메뉴 가능', + chkFull : 'Allow Fullscreen', // MISSING + scale : '영역', + scaleAll : '모두보기', + scaleNoBorder : '경계선없음', + scaleFit : '영역자동조절', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : '줄아래(Abs Bottom)', + alignAbsMiddle : '줄중간(Abs Middle)', + alignBaseline : '기준선', + alignTextTop : '글자상단', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : '배경 색상', + hSpace : '수평여백', + vSpace : '수직여백', + validateSrc : '링크 URL을 입력하십시요.', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : '철자검사', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : '사전에 없는 단어', + changeTo : '변경할 단어', + btnIgnore : '건너뜀', + btnIgnoreAll : '모두 건너뜀', + btnReplace : '변경', + btnReplaceAll : '모두 변경', + btnUndo : '취소', + noSuggestions : '- 추천단어 없음 -', + progress : '철자검사를 진행중입니다...', + noMispell : '철자검사 완료: 잘못된 철자가 없습니다.', + noChanges : '철자검사 완료: 변경된 단어가 없습니다.', + oneChange : '철자검사 완료: 단어가 변경되었습니다.', + manyChanges : '철자검사 완료: %1 단어가 변경되었습니다.', + ieSpellDownload : '철자 검사기가 철치되지 않았습니다. 지금 다운로드하시겠습니까?' + }, + + smiley : + { + toolbar : '아이콘', + title : '아이콘 삽입', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : '순서있는 목록', + bulletedlist : '순서없는 목록', + indent : '들여쓰기', + outdent : '내어쓰기', + + justify : + { + left : '왼쪽 정렬', + center : '가운데 정렬', + right : '오른쪽 정렬', + block : '양쪽 맞춤' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : '붙여넣기', + cutError : '브라우저의 보안설정때문에 잘라내기 기능을 실행할 수 없습니다. 키보드 명령을 사용하십시요. (Ctrl/Cmd+X).', + copyError : '브라우저의 보안설정때문에 복사하기 기능을 실행할 수 없습니다. 키보드 명령을 사용하십시요. (Ctrl/Cmd+C).', + pasteMsg : '키보드의 (<STRONG>Ctrl/Cmd+V</STRONG>) 를 이용해서 상자안에 붙여넣고 <STRONG>OK</STRONG> 를 누르세요.', + securityMsg : '브러우저 보안 설정으로 인해, 클립보드의 자료를 직접 접근할 수 없습니다. 이 창에 다시 붙여넣기 하십시오.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'MS Word 형식에서 붙여넣기', + title : 'MS Word 형식에서 붙여넣기', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : '텍스트로 붙여넣기', + title : '텍스트로 붙여넣기' + }, + + templates : + { + button : '템플릿', + title : '내용 템플릿', + options : 'Template Options', // MISSING + insertOption : '현재 내용 바꾸기', + selectPromptMsg : '에디터에서 사용할 템플릿을 선택하십시요.<br>(지금까지 작성된 내용은 사라집니다.):', + emptyListMsg : '(템플릿이 없습니다.)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : '스타일', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : '포맷', + panelTitle : '포맷', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : '폰트', + voiceLabel : 'Font', // MISSING + panelTitle : '폰트' + }, + + fontSize : + { + label : '글자 크기', + voiceLabel : 'Font Size', // MISSING + panelTitle : '글자 크기' + }, + + colorButton : + { + textColorTitle : '글자 색상', + bgColorTitle : '배경 색상', + panelTitle : 'Colors', // MISSING + auto : '기본색상', + more : '색상선택...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : '문서 속성', + title : '문서 속성', + design : 'Design', // MISSING + meta : '메타데이터', + chooseColor : 'Choose', // MISSING + other : '<기타>', + docTitle : '페이지명', + charset : '캐릭터셋 인코딩', + charsetOther : '다른 캐릭터셋 인코딩', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : '문서 헤드', + docTypeOther : '다른 문서헤드', + xhtmlDec : 'XHTML 문서정의 포함', + bgColor : '배경색상', + bgImage : '배경이미지 URL', + bgFixed : '스크롤되지않는 배경', + txtColor : '글자 색상', + margin : '페이지 여백', + marginTop : '위', + marginLeft : '왼쪽', + marginRight : '오른쪽', + marginBottom : '아래', + metaKeywords : '문서 키워드 (콤마로 구분)', + metaDescription : '문서 설명', + metaAuthor : '작성자', + metaCopyright : '저작권', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/lt.js b/htdocs/includes/ckeditor/_source/lang/lt.js new file mode 100644 index 0000000000000000000000000000000000000000..c960625060f4daefb0fa06990890acee965ea902 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/lt.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object for the + * Lithuanian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['lt'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Redaktoriaus įrankiai', + editor : 'Pilnas redaktorius', + + // Toolbar buttons without dialogs. + source : 'Šaltinis', + newPage : 'Naujas puslapis', + save : 'Išsaugoti', + preview : 'Peržiūra', + cut : 'Iškirpti', + copy : 'Kopijuoti', + paste : 'Įdėti', + print : 'Spausdinti', + underline : 'Pabrauktas', + bold : 'Pusjuodis', + italic : 'Kursyvas', + selectAll : 'Pažymėti viską', + removeFormat : 'Panaikinti formatą', + strike : 'Perbrauktas', + subscript : 'Apatinis indeksas', + superscript : 'Viršutinis indeksas', + horizontalrule : 'Įterpti horizontalią liniją', + pagebreak : 'Įterpti puslapių skirtuką', + pagebreakAlt : 'Puslapio skirtukas', + unlink : 'Panaikinti nuorodą', + undo : 'Atšaukti', + redo : 'Atstatyti', + + // Common messages and labels. + common : + { + browseServer : 'Naršyti po serverį', + url : 'URL', + protocol : 'Protokolas', + upload : 'Siųsti', + uploadSubmit : 'Siųsti į serverį', + image : 'Vaizdas', + flash : 'Flash', + form : 'Forma', + checkbox : 'Žymimasis langelis', + radio : 'Žymimoji akutė', + textField : 'Teksto laukas', + textarea : 'Teksto sritis', + hiddenField : 'Nerodomas laukas', + button : 'Mygtukas', + select : 'Atrankos laukas', + imageButton : 'Vaizdinis mygtukas', + notSet : '<nėra nustatyta>', + id : 'Id', + name : 'Vardas', + langDir : 'Teksto kryptis', + langDirLtr : 'Iš kairės į dešinę (LTR)', + langDirRtl : 'Iš dešinės į kairę (RTL)', + langCode : 'Kalbos kodas', + longDescr : 'Ilgas aprašymas URL', + cssClass : 'Stilių lentelės klasės', + advisoryTitle : 'Konsultacinė antraštė', + cssStyle : 'Stilius', + ok : 'OK', + cancel : 'Nutraukti', + close : 'Uždaryti', + preview : 'Peržiūrėti', + generalTab : 'Bendros savybės', + advancedTab : 'Papildomas', + validateNumberFailed : 'Ši reikšmė nėra skaičius.', + confirmNewPage : 'Visas neišsaugotas turinys bus prarastas. Ar tikrai norite įkrauti naują puslapį?', + confirmCancel : 'Kai kurie parametrai pasikeitė. Ar tikrai norite užverti langą?', + options : 'Parametrai', + target : 'Tikslinė nuoroda', + targetNew : 'Naujas langas (_blank)', + targetTop : 'Viršutinis langas (_top)', + targetSelf : 'Esamas langas (_self)', + targetParent : 'Paskutinis langas (_parent)', + langDirLTR : 'Iš kairės į dešinę (LTR)', + langDirRTL : 'Iš dešinės į kairę (RTL)', + styles : 'Stilius', + cssClasses : 'Stilių klasės', + width : 'Plotis', + height : 'Aukštis', + align : 'Lygiuoti', + alignLeft : 'Kairę', + alignRight : 'Dešinę', + alignCenter : 'Centrą', + alignTop : 'Viršūnę', + alignMiddle : 'Vidurį', + alignBottom : 'Apačią', + invalidHeight : 'Aukštis turi būti nurodytas skaičiais.', + invalidWidth : 'Plotis turi būti nurodytas skaičiais.', + invalidCssLength : 'Reikšmė nurodyta "%1" laukui, turi būti teigiamas skaičius su arba be tinkamo CSS matavimo vieneto (px, %, in, cm, mm, em, ex, pt arba pc).', + invalidHtmlLength : 'Reikšmė nurodyta "%1" laukui, turi būti teigiamas skaičius su arba be tinkamo HTML matavimo vieneto (px arba %).', + invalidInlineStyle : 'Reikšmė nurodyta vidiniame stiliuje turi būti sudaryta iš vieno šių reikšmių "vardas : reikšmė", atskirta kabliataškiais.', + cssLengthTooltip : 'Įveskite reikšmę pikseliais arba skaičiais su tinkamu CSS vienetu (px, %, in, cm, mm, em, ex, pt arba pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, netinkamas</span>' + }, + + contextmenu : + { + options : 'Kontekstinio meniu parametrai' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Įterpti specialų simbolį', + title : 'Pasirinkite specialų simbolį', + options : 'Specialaus simbolio nustatymai' + }, + + // Link dialog. + link : + { + toolbar : 'Įterpti/taisyti nuorodą', + other : '<kitas>', + menu : 'Taisyti nuorodą', + title : 'Nuoroda', + info : 'Nuorodos informacija', + target : 'Paskirties vieta', + upload : 'Siųsti', + advanced : 'Papildomas', + type : 'Nuorodos tipas', + toUrl : 'Nuoroda', + toAnchor : 'Žymė šiame puslapyje', + toEmail : 'El.paštas', + targetFrame : '<kadras>', + targetPopup : '<išskleidžiamas langas>', + targetFrameName : 'Paskirties kadro vardas', + targetPopupName : 'Paskirties lango vardas', + popupFeatures : 'Išskleidžiamo lango savybės', + popupResizable : 'Kintamas dydis', + popupStatusBar : 'Būsenos juosta', + popupLocationBar: 'Adreso juosta', + popupToolbar : 'Mygtukų juosta', + popupMenuBar : 'Meniu juosta', + popupFullScreen : 'Visas ekranas (IE)', + popupScrollBars : 'Slinkties juostos', + popupDependent : 'Priklausomas (Netscape)', + popupLeft : 'Kairė pozicija', + popupTop : 'Viršutinė pozicija', + id : 'Id', + langDir : 'Teksto kryptis', + langDirLTR : 'Iš kairės į dešinę (LTR)', + langDirRTL : 'Iš dešinės į kairę (RTL)', + acccessKey : 'Prieigos raktas', + name : 'Vardas', + langCode : 'Teksto kryptis', + tabIndex : 'Tabuliavimo indeksas', + advisoryTitle : 'Konsultacinė antraštė', + advisoryContentType : 'Konsultacinio turinio tipas', + cssClasses : 'Stilių lentelės klasės', + charset : 'Susietų išteklių simbolių lentelė', + styles : 'Stilius', + rel : 'Sąsajos', + selectAnchor : 'Pasirinkite žymę', + anchorName : 'Pagal žymės vardą', + anchorId : 'Pagal žymės Id', + emailAddress : 'El.pašto adresas', + emailSubject : 'Žinutės tema', + emailBody : 'Žinutės turinys', + noAnchors : '(Šiame dokumente žymių nėra)', + noUrl : 'Prašome įvesti nuorodos URL', + noEmail : 'Prašome įvesti el.pašto adresą' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Įterpti/modifikuoti žymę', + menu : 'Žymės savybės', + title : 'Žymės savybės', + name : 'Žymės vardas', + errorName : 'Prašome įvesti žymės vardą', + remove : 'Pašalinti žymę' + }, + + // List style dialog + list: + { + numberedTitle : 'Skaitmeninio sąrašo nustatymai', + bulletedTitle : 'Ženklelinio sąrašo nustatymai', + type : 'Rūšis', + start : 'Pradžia', + validateStartNumber :'Sąrašo pradžios skaitmuo turi būti sveikas skaičius.', + circle : 'Apskritimas', + disc : 'Diskas', + square : 'Kvadratas', + none : 'Niekas', + notset : '<nenurodytas>', + armenian : 'Armėniški skaitmenys', + georgian : 'Gruziniški skaitmenys (an, ban, gan, t.t)', + lowerRoman : 'Mažosios Romėnų (i, ii, iii, iv, v, t.t)', + upperRoman : 'Didžiosios Romėnų (I, II, III, IV, V, t.t)', + lowerAlpha : 'Mažosios Alpha (a, b, c, d, e, t.t)', + upperAlpha : 'Didžiosios Alpha (A, B, C, D, E, t.t)', + lowerGreek : 'Mažosios Graikų (alpha, beta, gamma, t.t)', + decimal : 'Dešimtainis (1, 2, 3, t.t)', + decimalLeadingZero : 'Dešimtainis su nuliu priekyje (01, 02, 03, t.t)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Surasti ir pakeisti', + find : 'Rasti', + replace : 'Pakeisti', + findWhat : 'Surasti tekstą:', + replaceWith : 'Pakeisti tekstu:', + notFoundMsg : 'Nurodytas tekstas nerastas.', + findOptions : 'Paieškos nustatymai', + matchCase : 'Skirti didžiąsias ir mažąsias raides', + matchWord : 'Atitikti pilną žodį', + matchCyclic : 'Sutampantis cikliškumas', + replaceAll : 'Pakeisti viską', + replaceSuccessMsg : '%1 sutapimas(ų) buvo pakeisti.' + }, + + // Table Dialog + table : + { + toolbar : 'Lentelė', + title : 'Lentelės savybės', + menu : 'Lentelės savybės', + deleteTable : 'Šalinti lentelę', + rows : 'Eilutės', + columns : 'Stulpeliai', + border : 'Rėmelio dydis', + widthPx : 'taškais', + widthPc : 'procentais', + widthUnit : 'pločio vienetas', + cellSpace : 'Tarpas tarp langelių', + cellPad : 'Trapas nuo langelio rėmo iki teksto', + caption : 'Antraštė', + summary : 'Santrauka', + headers : 'Antraštės', + headersNone : 'Nėra', + headersColumn : 'Pirmas stulpelis', + headersRow : 'Pirma eilutė', + headersBoth : 'Abu', + invalidRows : 'Skaičius turi būti didesnis nei 0.', + invalidCols : 'Skaičius turi būti didesnis nei 0.', + invalidBorder : 'Reikšmė turi būti nurodyta skaičiumi.', + invalidWidth : 'Reikšmė turi būti nurodyta skaičiumi.', + invalidHeight : 'Reikšmė turi būti nurodyta skaičiumi.', + invalidCellSpacing : 'Reikšmė turi būti nurodyta skaičiumi.', + invalidCellPadding : 'Reikšmė turi būti nurodyta skaičiumi.', + + cell : + { + menu : 'Langelis', + insertBefore : 'Įterpti langelį prieš', + insertAfter : 'Įterpti langelį po', + deleteCell : 'Šalinti langelius', + merge : 'Sujungti langelius', + mergeRight : 'Sujungti su dešine', + mergeDown : 'Sujungti su apačia', + splitHorizontal : 'Skaidyti langelį horizontaliai', + splitVertical : 'Skaidyti langelį vertikaliai', + title : 'Cell nustatymai', + cellType : 'Cell rūšis', + rowSpan : 'Eilučių Span', + colSpan : 'Stulpelių Span', + wordWrap : 'Sutraukti raides', + hAlign : 'Horizontalus lygiavimas', + vAlign : 'Vertikalus lygiavimas', + alignBaseline : 'Apatinė linija', + bgColor : 'Fono spalva', + borderColor : 'Rėmelio spalva', + data : 'Data', + header : 'Antraštė', + yes : 'Taip', + no : 'Ne', + invalidWidth : 'Reikšmė turi būti skaičius.', + invalidHeight : 'Reikšmė turi būti skaičius.', + invalidRowSpan : 'Reikšmė turi būti skaičius.', + invalidColSpan : 'Reikšmė turi būti skaičius.', + chooseColor : 'Pasirinkite' + }, + + row : + { + menu : 'Eilutė', + insertBefore : 'Įterpti eilutę prieš', + insertAfter : 'Įterpti eilutę po', + deleteRow : 'Šalinti eilutes' + }, + + column : + { + menu : 'Stulpelis', + insertBefore : 'Įterpti stulpelį prieš', + insertAfter : 'Įterpti stulpelį po', + deleteColumn : 'Šalinti stulpelius' + } + }, + + // Button Dialog. + button : + { + title : 'Mygtuko savybės', + text : 'Tekstas (Reikšmė)', + type : 'Tipas', + typeBtn : 'Mygtukas', + typeSbm : 'Siųsti', + typeRst : 'Išvalyti' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Žymimojo langelio savybės', + radioTitle : 'Žymimosios akutės savybės', + value : 'Reikšmė', + selected : 'Pažymėtas' + }, + + // Form Dialog. + form : + { + title : 'Formos savybės', + menu : 'Formos savybės', + action : 'Veiksmas', + method : 'Metodas', + encoding : 'Kodavimas' + }, + + // Select Field Dialog. + select : + { + title : 'Atrankos lauko savybės', + selectInfo : 'Informacija', + opAvail : 'Galimos parinktys', + value : 'Reikšmė', + size : 'Dydis', + lines : 'eilučių', + chkMulti : 'Leisti daugeriopą atranką', + opText : 'Tekstas', + opValue : 'Reikšmė', + btnAdd : 'Įtraukti', + btnModify : 'Modifikuoti', + btnUp : 'Aukštyn', + btnDown : 'Žemyn', + btnSetValue : 'Laikyti pažymėta reikšme', + btnDelete : 'Trinti' + }, + + // Textarea Dialog. + textarea : + { + title : 'Teksto srities savybės', + cols : 'Ilgis', + rows : 'Plotis' + }, + + // Text Field Dialog. + textfield : + { + title : 'Teksto lauko savybės', + name : 'Vardas', + value : 'Reikšmė', + charWidth : 'Ilgis simboliais', + maxChars : 'Maksimalus simbolių skaičius', + type : 'Tipas', + typeText : 'Tekstas', + typePass : 'Slaptažodis' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Nerodomo lauko savybės', + name : 'Vardas', + value : 'Reikšmė' + }, + + // Image Dialog. + image : + { + title : 'Vaizdo savybės', + titleButton : 'Vaizdinio mygtuko savybės', + menu : 'Vaizdo savybės', + infoTab : 'Vaizdo informacija', + btnUpload : 'Siųsti į serverį', + upload : 'Nusiųsti', + alt : 'Alternatyvus Tekstas', + lockRatio : 'Išlaikyti proporciją', + resetSize : 'Atstatyti dydį', + border : 'Rėmelis', + hSpace : 'Hor.Erdvė', + vSpace : 'Vert.Erdvė', + alertUrl : 'Prašome įvesti vaizdo URL', + linkTab : 'Nuoroda', + button2Img : 'Ar norite mygtuką paversti paprastu paveiksliuku?', + img2Button : 'Ar norite paveiksliuką paversti mygtuku?', + urlMissing : 'Paveiksliuko nuorodos nėra.', + validateBorder : 'Reikšmė turi būti sveikas skaičius.', + validateHSpace : 'Reikšmė turi būti sveikas skaičius.', + validateVSpace : 'Reikšmė turi būti sveikas skaičius.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash savybės', + propertiesTab : 'Nustatymai', + title : 'Flash savybės', + chkPlay : 'Automatinis paleidimas', + chkLoop : 'Ciklas', + chkMenu : 'Leisti Flash meniu', + chkFull : 'Leisti per visą ekraną', + scale : 'Mastelis', + scaleAll : 'Rodyti visą', + scaleNoBorder : 'Be rėmelio', + scaleFit : 'Tikslus atitikimas', + access : 'Skripto priėjimas', + accessAlways : 'Visada', + accessSameDomain: 'Tas pats domenas', + accessNever : 'Niekada', + alignAbsBottom : 'Absoliučią apačią', + alignAbsMiddle : 'Absoliutų vidurį', + alignBaseline : 'Apatinę liniją', + alignTextTop : 'Teksto viršūnę', + quality : 'Kokybė', + qualityBest : 'Geriausia', + qualityHigh : 'Gera', + qualityAutoHigh : 'Automatiškai Gera', + qualityMedium : 'Vidutinė', + qualityAutoLow : 'Automatiškai Žema', + qualityLow : 'Žema', + windowModeWindow: 'Langas', + windowModeOpaque: 'Nepermatomas', + windowModeTransparent : 'Permatomas', + windowMode : 'Lango režimas', + flashvars : 'Flash kintamieji', + bgcolor : 'Fono spalva', + hSpace : 'Hor.Erdvė', + vSpace : 'Vert.Erdvė', + validateSrc : 'Prašome įvesti nuorodos URL', + validateHSpace : 'HSpace turi būti skaičius.', + validateVSpace : 'VSpace turi būti skaičius.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Rašybos tikrinimas', + title : 'Tikrinti klaidas', + notAvailable : 'Atleiskite, šiuo metu servisas neprieinamas.', + errorLoading : 'Klaida įkraunant servisą: %s.', + notInDic : 'Žodyne nerastas', + changeTo : 'Pakeisti į', + btnIgnore : 'Ignoruoti', + btnIgnoreAll : 'Ignoruoti visus', + btnReplace : 'Pakeisti', + btnReplaceAll : 'Pakeisti visus', + btnUndo : 'Atšaukti', + noSuggestions : '- Nėra pasiūlymų -', + progress : 'Vyksta rašybos tikrinimas...', + noMispell : 'Rašybos tikrinimas baigtas: Nerasta rašybos klaidų', + noChanges : 'Rašybos tikrinimas baigtas: Nėra pakeistų žodžių', + oneChange : 'Rašybos tikrinimas baigtas: Vienas žodis pakeistas', + manyChanges : 'Rašybos tikrinimas baigtas: Pakeista %1 žodžių', + ieSpellDownload : 'Rašybos tikrinimas neinstaliuotas. Ar Jūs norite jį dabar atsisiųsti?' + }, + + smiley : + { + toolbar : 'Veideliai', + title : 'Įterpti veidelį', + options : 'Šypsenėlių nustatymai' + }, + + elementsPath : + { + eleLabel : 'Elemento kelias', + eleTitle : '%1 elementas' + }, + + numberedlist : 'Numeruotas sąrašas', + bulletedlist : 'Suženklintas sąrašas', + indent : 'Padidinti įtrauką', + outdent : 'Sumažinti įtrauką', + + justify : + { + left : 'Lygiuoti kairę', + center : 'Centruoti', + right : 'Lygiuoti dešinę', + block : 'Lygiuoti abi puses' + }, + + blockquote : 'Citata', + + clipboard : + { + title : 'Įdėti', + cutError : 'Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti iškirpimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl/Cmd+X).', + copyError : 'Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti kopijavimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl/Cmd+C).', + pasteMsg : 'Žemiau esančiame įvedimo lauke įdėkite tekstą, naudodami klaviatūrą (<STRONG>Ctrl/Cmd+V</STRONG>) ir paspauskite mygtuką <STRONG>OK</STRONG>.', + securityMsg : 'Dėl jūsų naršyklės saugumo nustatymų, redaktorius negali tiesiogiai pasiekti laikinosios atminties. Jums reikia nukopijuoti dar kartą į šį langą.', + pasteArea : 'Įkelti dalį' + }, + + pastefromword : + { + confirmCleanup : 'Tekstas, kurį įkeliate yra kopijuojamas iš Word. Ar norite jį išvalyti prieš įkeliant?', + toolbar : 'Įdėti iš Word', + title : 'Įdėti iš Word', + error : 'Dėl vidinių sutrikimų, nepavyko išvalyti įkeliamo teksto' + }, + + pasteText : + { + button : 'Įdėti kaip gryną tekstą', + title : 'Įdėti kaip gryną tekstą' + }, + + templates : + { + button : 'Šablonai', + title : 'Turinio šablonai', + options : 'Template Options', + insertOption : 'Pakeisti dabartinį turinį pasirinktu šablonu', + selectPromptMsg : 'Pasirinkite norimą šabloną<br>(<b>Dėmesio!</b> esamas turinys bus prarastas):', + emptyListMsg : '(Šablonų sąrašas tuščias)' + }, + + showBlocks : 'Rodyti blokus', + + stylesCombo : + { + label : 'Stilius', + panelTitle : 'Stilių formatavimas', + panelTitle1 : 'Blokų stiliai', + panelTitle2 : 'Vidiniai stiliai', + panelTitle3 : 'Objektų stiliai' + }, + + format : + { + label : 'Šrifto formatas', + panelTitle : 'Šrifto formatas', + + tag_p : 'Normalus', + tag_pre : 'Formuotas', + tag_address : 'Kreipinio', + tag_h1 : 'Antraštinis 1', + tag_h2 : 'Antraštinis 2', + tag_h3 : 'Antraštinis 3', + tag_h4 : 'Antraštinis 4', + tag_h5 : 'Antraštinis 5', + tag_h6 : 'Antraštinis 6', + tag_div : 'Normalus (DIV)' + }, + + div : + { + title : 'Sukurti Div elementą', + toolbar : 'Sukurti Div elementą', + cssClassInputLabel : 'Stilių klasės', + styleSelectLabel : 'Stilius', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Kalbos kodas', + inlineStyleInputLabel : 'Vidiniai stiliai', + advisoryTitleInputLabel : 'Patariamas pavadinimas', + langDirLabel : 'Kalbos nurodymai', + langDirLTRLabel : 'Iš kairės į dešinę (LTR)', + langDirRTLLabel : 'Iš dešinės į kairę (RTL)', + edit : 'Redaguoti Div', + remove : 'Pašalinti Div' + }, + + iframe : + { + title : 'IFrame nustatymai', + toolbar : 'IFrame', + noUrl : 'Nurodykite iframe nuorodą', + scrolling : 'Įjungti slankiklius', + border : 'Rodyti rėmelį' + }, + + font : + { + label : 'Šriftas', + voiceLabel : 'Šriftas', + panelTitle : 'Šriftas' + }, + + fontSize : + { + label : 'Šrifto dydis', + voiceLabel : 'Šrifto dydis', + panelTitle : 'Šrifto dydis' + }, + + colorButton : + { + textColorTitle : 'Teksto spalva', + bgColorTitle : 'Fono spalva', + panelTitle : 'Spalva', + auto : 'Automatinis', + more : 'Daugiau spalvų...' + }, + + colors : + { + '000' : 'Juoda', + '800000' : 'Kaštoninė', + '8B4513' : 'Tamsiai ruda', + '2F4F4F' : 'Pilka tamsaus šiferio', + '008080' : 'Teal', + '000080' : 'Karinis', + '4B0082' : 'Indigo', + '696969' : 'Tamsiai pilka', + 'B22222' : 'Ugnies', + 'A52A2A' : 'Ruda', + 'DAA520' : 'Aukso', + '006400' : 'Tamsiai žalia', + '40E0D0' : 'Turquoise', + '0000CD' : 'Vidutinė mėlyna', + '800080' : 'Violetinė', + '808080' : 'Pilka', + 'F00' : 'Raudona', + 'FF8C00' : 'Tamsiai oranžinė', + 'FFD700' : 'Auksinė', + '008000' : 'Žalia', + '0FF' : 'Žydra', + '00F' : 'Mėlyna', + 'EE82EE' : 'Violetinė', + 'A9A9A9' : 'Dim Gray', + 'FFA07A' : 'Light Salmon', + 'FFA500' : 'Oranžinė', + 'FFFF00' : 'Geltona', + '00FF00' : 'Citrinų', + 'AFEEEE' : 'Pale Turquoise', + 'ADD8E6' : 'Šviesiai mėlyna', + 'DDA0DD' : 'Plum', + 'D3D3D3' : 'Šviesiai pilka', + 'FFF0F5' : 'Lavender Blush', + 'FAEBD7' : 'Antique White', + 'FFFFE0' : 'Šviesiai geltona', + 'F0FFF0' : 'Honeydew', + 'F0FFFF' : 'Azure', + 'F0F8FF' : 'Alice Blue', + 'E6E6FA' : 'Lavender', + 'FFF' : 'Balta' + }, + + scayt : + { + title : 'Tikrinti klaidas kai rašoma', + opera_title : 'Nepalaikoma naršyklėje Opera', + enable : 'Įjungti SCAYT', + disable : 'Išjungti SCAYT', + about : 'Apie SCAYT', + toggle : 'Perjungti SCAYT', + options : 'Parametrai', + langs : 'Kalbos', + moreSuggestions : 'Daugiau patarimų', + ignore : 'Ignoruoti', + ignoreAll : 'Ignoruoti viską', + addWord : 'Pridėti žodį', + emptyDic : 'Žodyno vardas neturėtų būti tuščias.', + + optionsTab : 'Parametrai', + allCaps : 'Ignoruoti visas didžiąsias raides', + ignoreDomainNames : 'Ignoruoti domenų vardus', + mixedCase : 'Ignoruoti maišyto dydžio raides', + mixedWithDigits : 'Ignoruoti raides su skaičiais', + + languagesTab : 'Kalbos', + + dictionariesTab : 'Žodynai', + dic_field_name : 'Žodyno pavadinimas', + dic_create : 'Sukurti', + dic_restore : 'Atstatyti', + dic_delete : 'Ištrinti', + dic_rename : 'Pervadinti', + dic_info : 'Paprastai žodynas yra saugojamas sausainėliuose (cookies), kurių dydis, bet kokiu atveju, yra apribotas. Esant sausainėlių apimties pervišiui, viskas bus saugoma serveryje. Jei norite iš kart viską saugoti serveryje, turite sugalvoti žodynui pavadinimą. Jei jau turite žodyną, įrašykite pavadinimą ir nuspauskite Atstatyti mygtuką.', + + aboutTab : 'Apie' + }, + + about : + { + title : 'Apie CKEditor', + dlgTitle : 'Apie CKEditor', + help : 'Patikrinkite $1 dėl pagalbos.', + userGuide : 'CKEditor Vartotojo Gidas', + moreInfo : 'Dėl licencijavimo apsilankykite mūsų svetainėje:', + copy : 'Copyright © $1. Visos teiss saugomos.' + }, + + maximize : 'Išdidinti', + minimize : 'Sumažinti', + + fakeobjects : + { + anchor : 'Žymė', + flash : 'Flash animacija', + iframe : 'IFrame', + hiddenfield : 'Paslėptas laukas', + unknown : 'Nežinomas objektas' + }, + + resize : 'Pavilkite, kad pakeistumėte dydį', + + colordialog : + { + title : 'Pasirinkite spalvą', + options : 'Spalvos nustatymai', + highlight : 'Paryškinti', + selected : 'Pasirinkta spalva', + clear : 'Išvalyti' + }, + + toolbarCollapse : 'Apjungti įrankių juostą', + toolbarExpand : 'Išplėsti įrankių juostą', + + toolbarGroups : + { + document : 'Dokumentas', + clipboard : 'Atmintinė/Atgal', + editing : 'Redagavimas', + forms : 'Formos', + basicstyles : 'Pagrindiniai stiliai', + paragraph : 'Paragrafas', + links : 'Nuorodos', + insert : 'Įterpti', + styles : 'Stiliai', + colors : 'Spalvos', + tools : 'Įrankiai' + }, + + bidi : + { + ltr : 'Tekstas iš kairės į dešinę', + rtl : 'Tekstas iš dešinės į kairę' + }, + + docprops : + { + label : 'Dokumento savybės', + title : 'Dokumento savybės', + design : 'Išdėstymas', + meta : 'Meta duomenys', + chooseColor : 'Pasirinkite', + other : '<kitas>', + docTitle : 'Puslapio antraštė', + charset : 'Simbolių kodavimo lentelė', + charsetOther : 'Kita simbolių kodavimo lentelė', + charsetASCII : 'ASCII', + charsetCE : 'Centrinės Europos', + charsetCT : 'Tradicinės kinų (Big5)', + charsetCR : 'Kirilica', + charsetGR : 'Graikų', + charsetJP : 'Japonų', + charsetKR : 'Korėjiečių', + charsetTR : 'Turkų', + charsetUN : 'Unikodas (UTF-8)', + charsetWE : 'Vakarų Europos', + docType : 'Dokumento tipo antraštė', + docTypeOther : 'Kita dokumento tipo antraštė', + xhtmlDec : 'Įtraukti XHTML deklaracijas', + bgColor : 'Fono spalva', + bgImage : 'Fono paveikslėlio nuoroda (URL)', + bgFixed : 'Neslenkantis fonas', + txtColor : 'Teksto spalva', + margin : 'Puslapio kraštinės', + marginTop : 'Viršuje', + marginLeft : 'Kairėje', + marginRight : 'Dešinėje', + marginBottom : 'Apačioje', + metaKeywords : 'Dokumento indeksavimo raktiniai žodžiai (atskirti kableliais)', + metaDescription : 'Dokumento apibūdinimas', + metaAuthor : 'Autorius', + metaCopyright : 'Autorinės teisės', + previewHtml : '<p>Tai yra <strong>pavyzdinis tekstas</strong>. Jūs naudojate <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/lv.js b/htdocs/includes/ckeditor/_source/lang/lv.js new file mode 100644 index 0000000000000000000000000000000000000000..b2b11bf3b374190c837c7b7059b4d1042876c9aa --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/lv.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Latvian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['lv'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'HTML kods', + newPage : 'Jauna lapa', + save : 'Saglabāt', + preview : 'Pārskatīt', + cut : 'Izgriezt', + copy : 'Kopēt', + paste : 'Ievietot', + print : 'Drukāt', + underline : 'Apakšsvītra', + bold : 'Treknu šriftu', + italic : 'Slīprakstā', + selectAll : 'Iezīmēt visu', + removeFormat : 'Noņemt stilus', + strike : 'Pārsvītrots', + subscript : 'Zemrakstā', + superscript : 'Augšrakstā', + horizontalrule : 'Ievietot horizontālu Atdalītājsvītru', + pagebreak : 'Ievietot lapas pārtraukumu', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Noņemt hipersaiti', + undo : 'Atcelt', + redo : 'Atkārtot', + + // Common messages and labels. + common : + { + browseServer : 'Skatīt servera saturu', + url : 'URL', + protocol : 'Protokols', + upload : 'Augšupielādēt', + uploadSubmit : 'Nosūtīt serverim', + image : 'Attēls', + flash : 'Flash', + form : 'Forma', + checkbox : 'Atzīmēšanas kastīte', + radio : 'Izvēles poga', + textField : 'Teksta rinda', + textarea : 'Teksta laukums', + hiddenField : 'Paslēpta teksta rinda', + button : 'Poga', + select : 'Iezīmēšanas lauks', + imageButton : 'Attēlpoga', + notSet : '<nav iestatīts>', + id : 'Id', + name : 'Nosaukums', + langDir : 'Valodas lasīšanas virziens', + langDirLtr : 'No kreisās uz labo (LTR)', + langDirRtl : 'No labās uz kreiso (RTL)', + langCode : 'Valodas kods', + longDescr : 'Gara apraksta Hipersaite', + cssClass : 'Stilu saraksta klases', + advisoryTitle : 'Konsultatīvs virsraksts', + cssStyle : 'Stils', + ok : 'Darīts!', + cancel : 'Atcelt', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Izvērstais', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Platums', + height : 'Augstums', + align : 'Nolīdzināt', + alignLeft : 'Pa kreisi', + alignRight : 'Pa labi', + alignCenter : 'Centrēti', + alignTop : 'Augšā', + alignMiddle : 'Vertikāli centrēts', + alignBottom : 'Apakšā', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Ievietot speciālo simbolu', + title : 'Ievietot īpašu simbolu', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Ievietot/Labot hipersaiti', + other : '<cits>', + menu : 'Labot hipersaiti', + title : 'Hipersaite', + info : 'Hipersaites informācija', + target : 'Mērķis', + upload : 'Augšupielādēt', + advanced : 'Izvērstais', + type : 'Hipersaites tips', + toUrl : 'URL', // MISSING + toAnchor : 'Iezīme šajā lapā', + toEmail : 'E-pasts', + targetFrame : '<ietvars>', + targetPopup : '<uznirstošā logā>', + targetFrameName : 'Mērķa ietvara nosaukums', + targetPopupName : 'Uznirstošā loga nosaukums', + popupFeatures : 'Uznirstošā loga nosaukums īpašības', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Statusa josla', + popupLocationBar: 'Atrašanās vietas josla', + popupToolbar : 'Rīku josla', + popupMenuBar : 'Izvēlnes josla', + popupFullScreen : 'Pilnā ekrānā (IE)', + popupScrollBars : 'Ritjoslas', + popupDependent : 'Atkarīgs (Netscape)', + popupLeft : 'Kreisā koordināte', + popupTop : 'Augšējā koordināte', + id : 'Id', // MISSING + langDir : 'Valodas lasīšanas virziens', + langDirLTR : 'No kreisās uz labo (LTR)', + langDirRTL : 'No labās uz kreiso (RTL)', + acccessKey : 'Pieejas kods', + name : 'Nosaukums', + langCode : 'Valodas lasīšanas virziens', + tabIndex : 'Ciļņu indekss', + advisoryTitle : 'Konsultatīvs virsraksts', + advisoryContentType : 'Konsultatīvs satura tips', + cssClasses : 'Stilu saraksta klases', + charset : 'Pievienotā resursa kodu tabula', + styles : 'Stils', + rel : 'Relationship', // MISSING + selectAnchor : 'Izvēlēties iezīmi', + anchorName : 'Pēc iezīmes nosaukuma', + anchorId : 'Pēc elementa ID', + emailAddress : 'E-pasta adrese', + emailSubject : 'Ziņas tēma', + emailBody : 'Ziņas saturs', + noAnchors : '(Šajā dokumentā nav iezīmju)', + noUrl : 'Lūdzu norādi hipersaiti', + noEmail : 'Lūdzu norādi e-pasta adresi' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Ievietot/Labot iezīmi', + menu : 'Iezīmes īpašības', + title : 'Iezīmes īpašības', + name : 'Iezīmes nosaukums', + errorName : 'Lūdzu norādiet iezīmes nosaukumu', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Meklēt', + replace : 'Nomainīt', + findWhat : 'Meklēt:', + replaceWith : 'Nomainīt uz:', + notFoundMsg : 'Norādītā frāze netika atrasta.', + findOptions : 'Find Options', // MISSING + matchCase : 'Reģistrjūtīgs', + matchWord : 'Jāsakrīt pilnībā', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Aizvietot visu', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Tabula', + title : 'Tabulas īpašības', + menu : 'Tabulas īpašības', + deleteTable : 'Dzēst tabulu', + rows : 'Rindas', + columns : 'Kolonnas', + border : 'Rāmja izmērs', + widthPx : 'pikseļos', + widthPc : 'procentuāli', + widthUnit : 'width unit', // MISSING + cellSpace : 'Rūtiņu atstatums', + cellPad : 'Rūtiņu nobīde', + caption : 'Leģenda', + summary : 'Anotācija', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Šūna', + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Dzēst rūtiņas', + merge : 'Apvienot rūtiņas', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Rinda', + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Dzēst rindas' + }, + + column : + { + menu : 'Kolonna', + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Dzēst kolonnas' + } + }, + + // Button Dialog. + button : + { + title : 'Pogas īpašības', + text : 'Teksts (vērtība)', + type : 'Tips', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Atzīmēšanas kastītes īpašības', + radioTitle : 'Izvēles poga īpašības', + value : 'Vērtība', + selected : 'Iezīmēts' + }, + + // Form Dialog. + form : + { + title : 'Formas īpašības', + menu : 'Formas īpašības', + action : 'Darbība', + method : 'Metode', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Iezīmēšanas lauka īpašības', + selectInfo : 'Informācija', + opAvail : 'Pieejamās iespējas', + value : 'Vērtība', + size : 'Izmērs', + lines : 'rindas', + chkMulti : 'Atļaut vairākus iezīmējumus', + opText : 'Teksts', + opValue : 'Vērtība', + btnAdd : 'Pievienot', + btnModify : 'Veikt izmaiņas', + btnUp : 'Augšup', + btnDown : 'Lejup', + btnSetValue : 'Noteikt kā iezīmēto vērtību', + btnDelete : 'Dzēst' + }, + + // Textarea Dialog. + textarea : + { + title : 'Teksta laukuma īpašības', + cols : 'Kolonnas', + rows : 'Rindas' + }, + + // Text Field Dialog. + textfield : + { + title : 'Teksta rindas īpašības', + name : 'Nosaukums', + value : 'Vērtība', + charWidth : 'Simbolu platums', + maxChars : 'Simbolu maksimālais daudzums', + type : 'Tips', + typeText : 'Teksts', + typePass : 'Parole' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Paslēptās teksta rindas īpašības', + name : 'Nosaukums', + value : 'Vērtība' + }, + + // Image Dialog. + image : + { + title : 'Attēla īpašības', + titleButton : 'Attēlpogas īpašības', + menu : 'Attēla īpašības', + infoTab : 'Informācija par attēlu', + btnUpload : 'Nosūtīt serverim', + upload : 'Augšupielādēt', + alt : 'Alternatīvais teksts', + lockRatio : 'Nemainīga Augstuma/Platuma attiecība', + resetSize : 'Atjaunot sākotnējo izmēru', + border : 'Rāmis', + hSpace : 'Horizontālā telpa', + vSpace : 'Vertikālā telpa', + alertUrl : 'Lūdzu norādīt attēla hipersaiti', + linkTab : 'Hipersaite', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash īpašības', + propertiesTab : 'Properties', // MISSING + title : 'Flash īpašības', + chkPlay : 'Automātiska atskaņošana', + chkLoop : 'Nepārtraukti', + chkMenu : 'Atļaut Flash izvēlni', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Mainīt izmēru', + scaleAll : 'Rādīt visu', + scaleNoBorder : 'Bez rāmja', + scaleFit : 'Precīzs izmērs', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Absolūti apakšā', + alignAbsMiddle : 'Absolūti vertikāli centrēts', + alignBaseline : 'Pamatrindā', + alignTextTop : 'Teksta augšā', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Fona krāsa', + hSpace : 'Horizontālā telpa', + vSpace : 'Vertikālā telpa', + validateSrc : 'Lūdzu norādi hipersaiti', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Pareizrakstības pārbaude', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Netika atrasts vārdnīcā', + changeTo : 'Nomainīt uz', + btnIgnore : 'Ignorēt', + btnIgnoreAll : 'Ignorēt visu', + btnReplace : 'Aizvietot', + btnReplaceAll : 'Aizvietot visu', + btnUndo : 'Atcelt', + noSuggestions : '- Nav ieteikumu -', + progress : 'Notiek pareizrakstības pārbaude...', + noMispell : 'Pareizrakstības pārbaude pabeigta: kļūdas netika atrastas', + noChanges : 'Pareizrakstības pārbaude pabeigta: nekas netika labots', + oneChange : 'Pareizrakstības pārbaude pabeigta: 1 vārds izmainīts', + manyChanges : 'Pareizrakstības pārbaude pabeigta: %1 vārdi tika mainīti', + ieSpellDownload : 'Pareizrakstības pārbaudītājs nav pievienots. Vai vēlaties to lejupielādēt tagad?' + }, + + smiley : + { + toolbar : 'Smaidiņi', + title : 'Ievietot smaidiņu', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Numurēts saraksts', + bulletedlist : 'Izcelts saraksts', + indent : 'Palielināt atkāpi', + outdent : 'Samazināt atkāpi', + + justify : + { + left : 'Izlīdzināt pa kreisi', + center : 'Izlīdzināt pret centru', + right : 'Izlīdzināt pa labi', + block : 'Izlīdzināt malas' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Ievietot', + cutError : 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj editoram automātiski veikt izgriešanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+X, lai veiktu šo darbību.', + copyError : 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj editoram automātiski veikt kopēšanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+C), lai veiktu šo darbību.', + pasteMsg : 'Lūdzu, ievietojiet tekstu šajā laukumā, izmantojot klaviatūru (<STRONG>Ctrl/Cmd+V</STRONG>) un apstipriniet ar <STRONG>Darīts!</STRONG>.', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Ievietot no Worda', + title : 'Ievietot no Worda', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Ievietot kā vienkāršu tekstu', + title : 'Ievietot kā vienkāršu tekstu' + }, + + templates : + { + button : 'Sagataves', + title : 'Satura sagataves', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Lūdzu, norādiet sagatavi, ko atvērt editorā<br>(patreizējie dati tiks zaudēti):', + emptyListMsg : '(Nav norādītas sagataves)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Stils', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Formāts', + panelTitle : 'Formāts', + + tag_p : 'Normāls teksts', + tag_pre : 'Formatēts teksts', + tag_address : 'Adrese', + tag_h1 : 'Virsraksts 1', + tag_h2 : 'Virsraksts 2', + tag_h3 : 'Virsraksts 3', + tag_h4 : 'Virsraksts 4', + tag_h5 : 'Virsraksts 5', + tag_h6 : 'Virsraksts 6', + tag_div : 'Rindkopa (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Šrifts', + voiceLabel : 'Font', // MISSING + panelTitle : 'Šrifts' + }, + + fontSize : + { + label : 'Izmērs', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Izmērs' + }, + + colorButton : + { + textColorTitle : 'Teksta krāsa', + bgColorTitle : 'Fona krāsa', + panelTitle : 'Colors', // MISSING + auto : 'Automātiska', + more : 'Plašāka palete...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Dokumenta īpašības', + title : 'Dokumenta īpašības', + design : 'Design', // MISSING + meta : 'META dati', + chooseColor : 'Choose', // MISSING + other : '<cits>', + docTitle : 'Dokumenta virsraksts <Title>', + charset : 'Simbolu kodējums', + charsetOther : 'Cits simbolu kodējums', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Dokumenta tips', + docTypeOther : 'Cits dokumenta tips', + xhtmlDec : 'Ietvert XHTML deklarācijas', + bgColor : 'Fona krāsa', + bgImage : 'Fona attēla hipersaite', + bgFixed : 'Fona attēls ir fiksēts', + txtColor : 'Teksta krāsa', + margin : 'Lapas robežas', + marginTop : 'Augšā', + marginLeft : 'Pa kreisi', + marginRight : 'Pa labi', + marginBottom : 'Apakšā', + metaKeywords : 'Dokumentu aprakstoši atslēgvārdi (atdalīti ar komatu)', + metaDescription : 'Dokumenta apraksts', + metaAuthor : 'Autors', + metaCopyright : 'Autortiesības', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/mk.js b/htdocs/includes/ckeditor/_source/lang/mk.js new file mode 100644 index 0000000000000000000000000000000000000000..9a34b2d6d6bb4b79cc210613d6b932eb321b762b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/mk.js @@ -0,0 +1,815 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** +* @fileOverview +*/ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['mk'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', // MISSING + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Source', // MISSING + newPage : 'New Page', // MISSING + save : 'Save', // MISSING + preview : 'Preview', // MISSING + cut : 'Cut', // MISSING + copy : 'Copy', // MISSING + paste : 'Paste', // MISSING + print : 'Print', // MISSING + underline : 'Underline', // MISSING + bold : 'Bold', // MISSING + italic : 'Italic', // MISSING + selectAll : 'Select All', // MISSING + removeFormat : 'Remove Format', // MISSING + strike : 'Strike Through', // MISSING + subscript : 'Subscript', // MISSING + superscript : 'Superscript', // MISSING + horizontalrule : 'Insert Horizontal Line', // MISSING + pagebreak : 'Insert Page Break for Printing', // MISSING + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Unlink', // MISSING + undo : 'Undo', // MISSING + redo : 'Redo', // MISSING + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', // MISSING + url : 'URL', // MISSING + protocol : 'Protocol', // MISSING + upload : 'Upload', // MISSING + uploadSubmit : 'Send it to the Server', // MISSING + image : 'Image', // MISSING + flash : 'Flash', // MISSING + form : 'Form', // MISSING + checkbox : 'Checkbox', // MISSING + radio : 'Radio Button', // MISSING + textField : 'Text Field', // MISSING + textarea : 'Textarea', // MISSING + hiddenField : 'Hidden Field', // MISSING + button : 'Button', // MISSING + select : 'Selection Field', // MISSING + imageButton : 'Image Button', // MISSING + notSet : '<not set>', // MISSING + id : 'Id', // MISSING + name : 'Name', // MISSING + langDir : 'Language Direction', // MISSING + langDirLtr : 'Left to Right (LTR)', // MISSING + langDirRtl : 'Right to Left (RTL)', // MISSING + langCode : 'Language Code', // MISSING + longDescr : 'Long Description URL', // MISSING + cssClass : 'Stylesheet Classes', // MISSING + advisoryTitle : 'Advisory Title', // MISSING + cssStyle : 'Style', // MISSING + ok : 'OK', // MISSING + cancel : 'Cancel', // MISSING + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Advanced', // MISSING + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Width', // MISSING + height : 'Height', // MISSING + align : 'Alignment', // MISSING + alignLeft : 'Left', // MISSING + alignRight : 'Right', // MISSING + alignCenter : 'Center', // MISSING + alignTop : 'Top', // MISSING + alignMiddle : 'Middle', // MISSING + alignBottom : 'Bottom', // MISSING + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Insert Special Character', // MISSING + title : 'Select Special Character', // MISSING + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Link', // MISSING + other : '<other>', // MISSING + menu : 'Edit Link', // MISSING + title : 'Link', // MISSING + info : 'Link Info', // MISSING + target : 'Target', // MISSING + upload : 'Upload', // MISSING + advanced : 'Advanced', // MISSING + type : 'Link Type', // MISSING + toUrl : 'URL', // MISSING + toAnchor : 'Link to anchor in the text', // MISSING + toEmail : 'E-mail', // MISSING + targetFrame : '<frame>', // MISSING + targetPopup : '<popup window>', // MISSING + targetFrameName : 'Target Frame Name', // MISSING + targetPopupName : 'Popup Window Name', // MISSING + popupFeatures : 'Popup Window Features', // MISSING + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Status Bar', // MISSING + popupLocationBar: 'Location Bar', // MISSING + popupToolbar : 'Toolbar', // MISSING + popupMenuBar : 'Menu Bar', // MISSING + popupFullScreen : 'Full Screen (IE)', // MISSING + popupScrollBars : 'Scroll Bars', // MISSING + popupDependent : 'Dependent (Netscape)', // MISSING + popupLeft : 'Left Position', // MISSING + popupTop : 'Top Position', // MISSING + id : 'Id', // MISSING + langDir : 'Language Direction', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + acccessKey : 'Access Key', // MISSING + name : 'Name', // MISSING + langCode : 'Language Code', // MISSING + tabIndex : 'Tab Index', // MISSING + advisoryTitle : 'Advisory Title', // MISSING + advisoryContentType : 'Advisory Content Type', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + charset : 'Linked Resource Charset', // MISSING + styles : 'Style', // MISSING + rel : 'Relationship', // MISSING + selectAnchor : 'Select an Anchor', // MISSING + anchorName : 'By Anchor Name', // MISSING + anchorId : 'By Element Id', // MISSING + emailAddress : 'E-Mail Address', // MISSING + emailSubject : 'Message Subject', // MISSING + emailBody : 'Message Body', // MISSING + noAnchors : '(No anchors available in the document)', // MISSING + noUrl : 'Please type the link URL', // MISSING + noEmail : 'Please type the e-mail address' // MISSING + }, + + // Anchor dialog + anchor : + { + toolbar : 'Anchor', // MISSING + menu : 'Edit Anchor', // MISSING + title : 'Anchor Properties', // MISSING + name : 'Anchor Name', // MISSING + errorName : 'Please type the anchor name', // MISSING + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Find', // MISSING + replace : 'Replace', // MISSING + findWhat : 'Find what:', // MISSING + replaceWith : 'Replace with:', // MISSING + notFoundMsg : 'The specified text was not found.', // MISSING + findOptions : 'Find Options', // MISSING + matchCase : 'Match case', // MISSING + matchWord : 'Match whole word', // MISSING + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Replace All', // MISSING + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Table', // MISSING + title : 'Table Properties', // MISSING + menu : 'Table Properties', // MISSING + deleteTable : 'Delete Table', // MISSING + rows : 'Rows', // MISSING + columns : 'Columns', // MISSING + border : 'Border size', // MISSING + widthPx : 'pixels', // MISSING + widthPc : 'percent', // MISSING + widthUnit : 'width unit', // MISSING + cellSpace : 'Cell spacing', // MISSING + cellPad : 'Cell padding', // MISSING + caption : 'Caption', // MISSING + summary : 'Summary', // MISSING + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cell', // MISSING + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Delete Cells', // MISSING + merge : 'Merge Cells', // MISSING + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', // MISSING + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Delete Rows' // MISSING + }, + + column : + { + menu : 'Column', // MISSING + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Delete Columns' // MISSING + } + }, + + // Button Dialog. + button : + { + title : 'Button Properties', // MISSING + text : 'Text (Value)', // MISSING + type : 'Type', // MISSING + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Checkbox Properties', // MISSING + radioTitle : 'Radio Button Properties', // MISSING + value : 'Value', // MISSING + selected : 'Selected' // MISSING + }, + + // Form Dialog. + form : + { + title : 'Form Properties', // MISSING + menu : 'Form Properties', // MISSING + action : 'Action', // MISSING + method : 'Method', // MISSING + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Selection Field Properties', // MISSING + selectInfo : 'Select Info', // MISSING + opAvail : 'Available Options', // MISSING + value : 'Value', // MISSING + size : 'Size', // MISSING + lines : 'lines', // MISSING + chkMulti : 'Allow multiple selections', // MISSING + opText : 'Text', // MISSING + opValue : 'Value', // MISSING + btnAdd : 'Add', // MISSING + btnModify : 'Modify', // MISSING + btnUp : 'Up', // MISSING + btnDown : 'Down', // MISSING + btnSetValue : 'Set as selected value', // MISSING + btnDelete : 'Delete' // MISSING + }, + + // Textarea Dialog. + textarea : + { + title : 'Textarea Properties', // MISSING + cols : 'Columns', // MISSING + rows : 'Rows' // MISSING + }, + + // Text Field Dialog. + textfield : + { + title : 'Text Field Properties', // MISSING + name : 'Name', // MISSING + value : 'Value', // MISSING + charWidth : 'Character Width', // MISSING + maxChars : 'Maximum Characters', // MISSING + type : 'Type', // MISSING + typeText : 'Text', // MISSING + typePass : 'Password' // MISSING + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Hidden Field Properties', // MISSING + name : 'Name', // MISSING + value : 'Value' // MISSING + }, + + // Image Dialog. + image : + { + title : 'Image Properties', // MISSING + titleButton : 'Image Button Properties', // MISSING + menu : 'Image Properties', // MISSING + infoTab : 'Image Info', // MISSING + btnUpload : 'Send it to the Server', // MISSING + upload : 'Upload', // MISSING + alt : 'Alternative Text', // MISSING + lockRatio : 'Lock Ratio', // MISSING + resetSize : 'Reset Size', // MISSING + border : 'Border', // MISSING + hSpace : 'HSpace', // MISSING + vSpace : 'VSpace', // MISSING + alertUrl : 'Please type the image URL', // MISSING + linkTab : 'Link', // MISSING + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', // MISSING + propertiesTab : 'Properties', // MISSING + title : 'Flash Properties', // MISSING + chkPlay : 'Auto Play', // MISSING + chkLoop : 'Loop', // MISSING + chkMenu : 'Enable Flash Menu', // MISSING + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Scale', // MISSING + scaleAll : 'Show all', // MISSING + scaleNoBorder : 'No Border', // MISSING + scaleFit : 'Exact Fit', // MISSING + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs Bottom', // MISSING + alignAbsMiddle : 'Abs Middle', // MISSING + alignBaseline : 'Baseline', // MISSING + alignTextTop : 'Text Top', // MISSING + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Background color', // MISSING + hSpace : 'HSpace', // MISSING + vSpace : 'VSpace', // MISSING + validateSrc : 'URL must not be empty.', // MISSING + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Check Spelling', // MISSING + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Not in dictionary', // MISSING + changeTo : 'Change to', // MISSING + btnIgnore : 'Ignore', // MISSING + btnIgnoreAll : 'Ignore All', // MISSING + btnReplace : 'Replace', // MISSING + btnReplaceAll : 'Replace All', // MISSING + btnUndo : 'Undo', // MISSING + noSuggestions : '- No suggestions -', // MISSING + progress : 'Spell check in progress...', // MISSING + noMispell : 'Spell check complete: No misspellings found', // MISSING + noChanges : 'Spell check complete: No words changed', // MISSING + oneChange : 'Spell check complete: One word changed', // MISSING + manyChanges : 'Spell check complete: %1 words changed', // MISSING + ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING + }, + + smiley : + { + toolbar : 'Smiley', // MISSING + title : 'Insert a Smiley', // MISSING + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Insert/Remove Numbered List', // MISSING + bulletedlist : 'Insert/Remove Bulleted List', // MISSING + indent : 'Increase Indent', // MISSING + outdent : 'Decrease Indent', // MISSING + + justify : + { + left : 'Align Left', // MISSING + center : 'Center', // MISSING + right : 'Align Right', // MISSING + block : 'Justify' // MISSING + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Paste', // MISSING + cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING + copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Paste from Word', // MISSING + title : 'Paste from Word', // MISSING + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Paste as plain text', // MISSING + title : 'Paste as Plain Text' // MISSING + }, + + templates : + { + button : 'Templates', // MISSING + title : 'Content Templates', // MISSING + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Please select the template to open in the editor', // MISSING + emptyListMsg : '(No templates defined)' // MISSING + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Styles', // MISSING + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Format', // MISSING + panelTitle : 'Paragraph Format', // MISSING + + tag_p : 'Normal', // MISSING + tag_pre : 'Formatted', // MISSING + tag_address : 'Address', // MISSING + tag_h1 : 'Heading 1', // MISSING + tag_h2 : 'Heading 2', // MISSING + tag_h3 : 'Heading 3', // MISSING + tag_h4 : 'Heading 4', // MISSING + tag_h5 : 'Heading 5', // MISSING + tag_h6 : 'Heading 6', // MISSING + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', // MISSING + voiceLabel : 'Font', // MISSING + panelTitle : 'Font Name' // MISSING + }, + + fontSize : + { + label : 'Size', // MISSING + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Font Size' // MISSING + }, + + colorButton : + { + textColorTitle : 'Text Color', // MISSING + bgColorTitle : 'Background Color', // MISSING + panelTitle : 'Colors', // MISSING + auto : 'Automatic', // MISSING + more : 'More Colors...' // MISSING + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Document Properties', // MISSING + title : 'Document Properties', // MISSING + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : 'Other...', // MISSING + docTitle : 'Page Title', // MISSING + charset : 'Character Set Encoding', // MISSING + charsetOther : 'Other Character Set Encoding', // MISSING + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Other Document Type Heading', // MISSING + xhtmlDec : 'Include XHTML Declarations', // MISSING + bgColor : 'Background Color', // MISSING + bgImage : 'Background Image URL', // MISSING + bgFixed : 'Non-scrolling (Fixed) Background', // MISSING + txtColor : 'Text Color', // MISSING + margin : 'Page Margins', // MISSING + marginTop : 'Top', // MISSING + marginLeft : 'Left', // MISSING + marginRight : 'Right', // MISSING + marginBottom : 'Bottom', // MISSING + metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING + metaDescription : 'Document Description', // MISSING + metaAuthor : 'Author', // MISSING + metaCopyright : 'Copyright', // MISSING + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/mn.js b/htdocs/includes/ckeditor/_source/lang/mn.js new file mode 100644 index 0000000000000000000000000000000000000000..f690c06754decc98f7ccbe535d73a7b96ad477ea --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/mn.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Mongolian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['mn'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Код', + newPage : 'Шинэ хуудас', + save : 'Хадгалах', + preview : 'Уридчлан харах', + cut : 'Хайчлах', + copy : 'Хуулах', + paste : 'Буулгах', + print : 'Хэвлэх', + underline : 'Доогуур нь зураастай болгох', + bold : 'Тод бүдүүн', + italic : 'Налуу', + selectAll : 'Бүгдийг нь сонгох', + removeFormat : 'Формат авч хаях', + strike : 'Дундуур нь зураастай болгох', + subscript : 'Суурь болгох', + superscript : 'Зэрэг болгох', + horizontalrule : 'Хөндлөн зураас оруулах', + pagebreak : 'Хуудас тусгаарлагч оруулах', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Линк авч хаях', + undo : 'Хүчингүй болгох', + redo : 'Өмнөх үйлдлээ сэргээх', + + // Common messages and labels. + common : + { + browseServer : 'Сервер харуулах', + url : 'URL', + protocol : 'Протокол', + upload : 'Хуулах', + uploadSubmit : 'Үүнийг сервэррүү илгээ', + image : 'Зураг', + flash : 'Флаш', + form : 'Форм', + checkbox : 'Чекбокс', + radio : 'Радио товч', + textField : 'Техт талбар', + textarea : 'Техт орчин', + hiddenField : 'Нууц талбар', + button : 'Товч', + select : 'Сонгогч талбар', + imageButton : 'Зурагтай товч', + notSet : '<Оноохгүй>', + id : 'Id', + name : 'Нэр', + langDir : 'Хэлний чиглэл', + langDirLtr : 'Зүүнээс баруун (LTR)', + langDirRtl : 'Баруунаас зүүн (RTL)', + langCode : 'Хэлний код', + longDescr : 'URL-ын тайлбар', + cssClass : 'Stylesheet классууд', + advisoryTitle : 'Зөвлөлдөх гарчиг', + cssStyle : 'Загвар', + ok : 'OK', + cancel : 'Болих', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Нэмэлт', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Өргөн', + height : 'Өндөр', + align : 'Эгнээ', + alignLeft : 'Зүүн', + alignRight : 'Баруун', + alignCenter : 'Төвд', + alignTop : 'Дээд талд', + alignMiddle : 'Дунд талд', + alignBottom : 'Доод талд', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Онцгой тэмдэгт оруулах', + title : 'Онцгой тэмдэгт сонгох', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Линк Оруулах/Засварлах', + other : '<other>', // MISSING + menu : 'Холбоос засварлах', + title : 'Линк', + info : 'Линкийн мэдээлэл', + target : 'Байрлал', + upload : 'Хуулах', + advanced : 'Нэмэлт', + type : 'Линкийн төрөл', + toUrl : 'URL', // MISSING + toAnchor : 'Энэ хуудасандах холбоос', + toEmail : 'E-Mail', + targetFrame : '<Агуулах хүрээ>', + targetPopup : '<popup цонх>', + targetFrameName : 'Очих фремын нэр', + targetPopupName : 'Popup цонхны нэр', + popupFeatures : 'Popup цонхны онцлог', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Статус хэсэг', + popupLocationBar: 'Location хэсэг', + popupToolbar : 'Багажны хэсэг', + popupMenuBar : 'Meню хэсэг', + popupFullScreen : 'Цонх дүүргэх (IE)', + popupScrollBars : 'Скрол хэсэгүүд', + popupDependent : 'Хамаатай (Netscape)', + popupLeft : 'Зүүн байрлал', + popupTop : 'Дээд байрлал', + id : 'Id', // MISSING + langDir : 'Хэлний чиглэл', + langDirLTR : 'Зүүнээс баруун (LTR)', + langDirRTL : 'Баруунаас зүүн (RTL)', + acccessKey : 'Холбох түлхүүр', + name : 'Нэр', + langCode : 'Хэлний чиглэл', + tabIndex : 'Tab индекс', + advisoryTitle : 'Зөвлөлдөх гарчиг', + advisoryContentType : 'Зөвлөлдөх төрлийн агуулга', + cssClasses : 'Stylesheet классууд', + charset : 'Тэмдэгт оноох нөөцөд холбогдсон', + styles : 'Загвар', + rel : 'Relationship', // MISSING + selectAnchor : 'Холбоос сонгох', + anchorName : 'Холбоосын нэрээр', + anchorId : 'Элемэнт Id-гаар', + emailAddress : 'E-Mail Хаяг', + emailSubject : 'Message гарчиг', + emailBody : 'Message-ийн агуулга', + noAnchors : '(Баримт бичиг холбоосгүй байна)', + noUrl : 'Линк URL-ээ төрөлжүүлнэ үү', + noEmail : 'Е-mail хаягаа төрөлжүүлнэ үү' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Холбоос Оруулах/Засварлах', + menu : 'Холбоос шинж чанар', + title : 'Холбоос шинж чанар', + name : 'Холбоос нэр', + errorName : 'Холбоос төрөл оруулна уу', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Хай мөн Дарж бич', + find : 'Хайх', + replace : 'Солих', + findWhat : 'Хайх үг/үсэг:', + replaceWith : 'Солих үг:', + notFoundMsg : 'Хайсан текст олсонгүй.', + findOptions : 'Find Options', // MISSING + matchCase : 'Тэнцэх төлөв', + matchWord : 'Тэнцэх бүтэн үг', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Бүгдийг нь Солих', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Хүснэгт', + title : 'Хүснэгт', + menu : 'Хүснэгт', + deleteTable : 'Хүснэгт устгах', + rows : 'Мөр', + columns : 'Багана', + border : 'Хүрээний хэмжээ', + widthPx : 'цэг', + widthPc : 'хувь', + widthUnit : 'width unit', // MISSING + cellSpace : 'Нүх хоорондын зай (spacing)', + cellPad : 'Нүх доторлох(padding)', + caption : 'Тайлбар', + summary : 'Тайлбар', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Нүх/зай', + insertBefore : 'Нүх/зай өмнө нь оруулах', + insertAfter : 'Нүх/зай дараа нь оруулах', + deleteCell : 'Нүх устгах', + merge : 'Нүх нэгтэх', + mergeRight : 'Баруун тийш нэгтгэх', + mergeDown : 'Доош нэгтгэх', + splitHorizontal : 'Нүх/зайг босоогоор нь тусгаарлах', + splitVertical : 'Нүх/зайг хөндлөнгөөр нь тусгаарлах', + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Мөр', + insertBefore : 'Мөр өмнө нь оруулах', + insertAfter : 'Мөр дараа нь оруулах', + deleteRow : 'Мөр устгах' + }, + + column : + { + menu : 'Багана', + insertBefore : 'Багана өмнө нь оруулах', + insertAfter : 'Багана дараа нь оруулах', + deleteColumn : 'Багана устгах' + } + }, + + // Button Dialog. + button : + { + title : 'Товчны шинж чанар', + text : 'Тэкст (Утга)', + type : 'Төрөл', + typeBtn : 'Товч', + typeSbm : 'Submit', + typeRst : 'Болих' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Чекбоксны шинж чанар', + radioTitle : 'Радио товчны шинж чанар', + value : 'Утга', + selected : 'Сонгогдсон' + }, + + // Form Dialog. + form : + { + title : 'Форм шинж чанар', + menu : 'Форм шинж чанар', + action : 'Үйлдэл', + method : 'Арга', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Согогч талбарын шинж чанар', + selectInfo : 'Мэдээлэл', + opAvail : 'Идвэхтэй сонголт', + value : 'Утга', + size : 'Хэмжээ', + lines : 'Мөр', + chkMulti : 'Олон сонголт зөвшөөрөх', + opText : 'Тэкст', + opValue : 'Утга', + btnAdd : 'Нэмэх', + btnModify : 'Өөрчлөх', + btnUp : 'Дээш', + btnDown : 'Доош', + btnSetValue : 'Сонгогдсан утга оноох', + btnDelete : 'Устгах' + }, + + // Textarea Dialog. + textarea : + { + title : 'Текст орчны шинж чанар', + cols : 'Багана', + rows : 'Мөр' + }, + + // Text Field Dialog. + textfield : + { + title : 'Текст талбарын шинж чанар', + name : 'Нэр', + value : 'Утга', + charWidth : 'Тэмдэгтын өргөн', + maxChars : 'Хамгийн их тэмдэгт', + type : 'Төрөл', + typeText : 'Текст', + typePass : 'Нууц үг' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Нууц талбарын шинж чанар', + name : 'Нэр', + value : 'Утга' + }, + + // Image Dialog. + image : + { + title : 'Зураг', + titleButton : 'Зурган товчны шинж чанар', + menu : 'Зураг', + infoTab : 'Зурагны мэдээлэл', + btnUpload : 'Үүнийг сервэррүү илгээ', + upload : 'Хуулах', + alt : 'Тайлбар текст', + lockRatio : 'Радио түгжих', + resetSize : 'хэмжээ дахин оноох', + border : 'Хүрээ', + hSpace : 'Хөндлөн зай', + vSpace : 'Босоо зай', + alertUrl : 'Зурагны URL-ын төрлийн сонгоно уу', + linkTab : 'Линк', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Флаш шинж чанар', + propertiesTab : 'Properties', // MISSING + title : 'Флаш шинж чанар', + chkPlay : 'Автоматаар тоглох', + chkLoop : 'Давтах', + chkMenu : 'Флаш цэс идвэхжүүлэх', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Өргөгтгөх', + scaleAll : 'Бүгдийг харуулах', + scaleNoBorder : 'Хүрээгүй', + scaleFit : 'Яг тааруулах', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs доод талд', + alignAbsMiddle : 'Abs Дунд талд', + alignBaseline : 'Baseline', + alignTextTop : 'Текст дээр', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Фонны өнгө', + hSpace : 'Хөндлөн зай', + vSpace : 'Босоо зай', + validateSrc : 'Линк URL-ээ төрөлжүүлнэ үү', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Үгийн дүрэх шалгах', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Толь бичиггүй', + changeTo : 'Өөрчлөх', + btnIgnore : 'Зөвшөөрөх', + btnIgnoreAll : 'Бүгдийг зөвшөөрөх', + btnReplace : 'Дарж бичих', + btnReplaceAll : 'Бүгдийг Дарж бичих', + btnUndo : 'Буцаах', + noSuggestions : '- Тайлбаргүй -', + progress : 'Дүрэм шалгаж байгаа үйл явц...', + noMispell : 'Дүрэм шалгаад дууссан: Алдаа олдсонгүй', + noChanges : 'Дүрэм шалгаад дууссан: үг өөрчлөгдөөгүй', + oneChange : 'Дүрэм шалгаад дууссан: 1 үг өөрчлөгдсөн', + manyChanges : 'Дүрэм шалгаад дууссан: %1 үг өөрчлөгдсөн', + ieSpellDownload : 'Дүрэм шалгагч суугаагүй байна. Татаж авахыг хүсч байна уу?' + }, + + smiley : + { + toolbar : 'Тодорхойлолт', + title : 'Тодорхойлолт оруулах', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Дугаарлагдсан жагсаалт', + bulletedlist : 'Цэгтэй жагсаалт', + indent : 'Догол мөр хасах', + outdent : 'Догол мөр нэмэх', + + justify : + { + left : 'Зүүн талд байрлуулах', + center : 'Төвд байрлуулах', + right : 'Баруун талд байрлуулах', + block : 'Блок хэлбэрээр байрлуулах' + }, + + blockquote : 'Хайрцаглах', + + clipboard : + { + title : 'Буулгах', + cutError : 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хайчлах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+X) товчны хослолыг ашиглана уу.', + copyError : 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хуулах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+C) товчны хослолыг ашиглана уу.', + pasteMsg : '(<strong>Ctrl/Cmd+V</strong>) товчийг ашиглан paste хийнэ үү. Мөн <strong>OK</strong> дар.', + securityMsg : 'Таны үзүүлэгч/browser/-н хамгаалалтын тохиргооноос болоод editor clipboard өгөгдөлрүү шууд хандах боломжгүй. Энэ цонход дахин paste хийхийг оролд.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Word-оос буулгах', + title : 'Word-оос буулгах', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Plain Text-ээс буулгах', + title : 'Plain Text-ээс буулгах' + }, + + templates : + { + button : 'Загварууд', + title : 'Загварын агуулга', + options : 'Template Options', // MISSING + insertOption : 'Одоогийн агууллагыг дарж бичих', + selectPromptMsg : 'Загварыг нээж editor-рүү сонгож оруулна уу<br />(Одоогийн агууллагыг устаж магадгүй):', + emptyListMsg : '(Загвар тодорхойлогдоогүй байна)' + }, + + showBlocks : 'Block-уудыг үзүүлэх', + + stylesCombo : + { + label : 'Загвар', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Формат', + panelTitle : 'Формат', + + tag_p : 'Хэвийн', + tag_pre : 'Formatted', + tag_address : 'Хаяг', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Paragraph (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Фонт', + voiceLabel : 'Font', // MISSING + panelTitle : 'Фонт' + }, + + fontSize : + { + label : 'Хэмжээ', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Хэмжээ' + }, + + colorButton : + { + textColorTitle : 'Фонтны өнгө', + bgColorTitle : 'Фонны өнгө', + panelTitle : 'Colors', // MISSING + auto : 'Автоматаар', + more : 'Нэмэлт өнгөнүүд...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Баримт бичиг шинж чанар', + title : 'Баримт бичиг шинж чанар', + design : 'Design', // MISSING + meta : 'Meta өгөгдөл', + chooseColor : 'Choose', // MISSING + other : '<other>', + docTitle : 'Хуудасны гарчиг', + charset : 'Encoding тэмдэгт', + charsetOther : 'Encoding-д өөр тэмдэгт оноох', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Төв европ', + charsetCT : 'Хятадын уламжлалт (Big5)', + charsetCR : 'Крил', + charsetGR : 'Гред', + charsetJP : 'Япон', + charsetKR : 'Солонгос', + charsetTR : 'Tурк', + charsetUN : 'Юникод (UTF-8)', + charsetWE : 'Баруун европ', + docType : 'Баримт бичгийн төрөл Heading', + docTypeOther : 'Бусад баримт бичгийн төрөл Heading', + xhtmlDec : 'XHTML агуулж зарлах', + bgColor : 'Фоно өнгө', + bgImage : 'Фоно зурагны URL', + bgFixed : 'Гүйдэггүй фоно', + txtColor : 'Фонтны өнгө', + margin : 'Хуудасны захын зай', + marginTop : 'Дээд тал', + marginLeft : 'Зүүн тал', + marginRight : 'Баруун тал', + marginBottom : 'Доод тал', + metaKeywords : 'Баримт бичгийн индекс түлхүүр үг (таслалаар тусгаарлагдана)', + metaDescription : 'Баримт бичгийн тайлбар', + metaAuthor : 'Зохиогч', + metaCopyright : 'Зохиогчийн эрх', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ms.js b/htdocs/includes/ckeditor/_source/lang/ms.js new file mode 100644 index 0000000000000000000000000000000000000000..99bd519eed42a86db0d59c0f98af58411c6b8d4b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ms.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Malay language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ms'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Sumber', + newPage : 'Helaian Baru', + save : 'Simpan', + preview : 'Prebiu', + cut : 'Potong', + copy : 'Salin', + paste : 'Tampal', + print : 'Cetak', + underline : 'Underline', + bold : 'Bold', + italic : 'Italic', + selectAll : 'Pilih Semua', + removeFormat : 'Buang Format', + strike : 'Strike Through', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Masukkan Garisan Membujur', + pagebreak : 'Insert Page Break for Printing', // MISSING + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Buang Sambungan', + undo : 'Batalkan', + redo : 'Ulangkan', + + // Common messages and labels. + common : + { + browseServer : 'Browse Server', + url : 'URL', + protocol : 'Protokol', + upload : 'Muat Naik', + uploadSubmit : 'Hantar ke Server', + image : 'Gambar', + flash : 'Flash', // MISSING + form : 'Borang', + checkbox : 'Checkbox', + radio : 'Butang Radio', + textField : 'Text Field', + textarea : 'Textarea', + hiddenField : 'Field Tersembunyi', + button : 'Butang', + select : 'Field Pilihan', + imageButton : 'Butang Bergambar', + notSet : '<tidak di set>', + id : 'Id', + name : 'Nama', + langDir : 'Arah Tulisan', + langDirLtr : 'Kiri ke Kanan (LTR)', + langDirRtl : 'Kanan ke Kiri (RTL)', + langCode : 'Kod Bahasa', + longDescr : 'Butiran Panjang URL', + cssClass : 'Kelas-kelas Stylesheet', + advisoryTitle : 'Tajuk Makluman', + cssStyle : 'Stail', + ok : 'OK', + cancel : 'Batal', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Advanced', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Lebar', + height : 'Tinggi', + align : 'Jajaran', + alignLeft : 'Kiri', + alignRight : 'Kanan', + alignCenter : 'Tengah', + alignTop : 'Atas', + alignMiddle : 'Pertengahan', + alignBottom : 'Bawah', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Masukkan Huruf Istimewa', + title : 'Sila pilih huruf istimewa', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Masukkan/Sunting Sambungan', + other : '<lain>', + menu : 'Sunting Sambungan', + title : 'Sambungan', + info : 'Butiran Sambungan', + target : 'Sasaran', + upload : 'Muat Naik', + advanced : 'Advanced', + type : 'Jenis Sambungan', + toUrl : 'URL', // MISSING + toAnchor : 'Pautan dalam muka surat ini', + toEmail : 'E-Mail', + targetFrame : '<bingkai>', + targetPopup : '<tetingkap popup>', + targetFrameName : 'Nama Bingkai Sasaran', + targetPopupName : 'Nama Tetingkap Popup', + popupFeatures : 'Ciri Tetingkap Popup', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Bar Status', + popupLocationBar: 'Bar Lokasi', + popupToolbar : 'Toolbar', + popupMenuBar : 'Bar Menu', + popupFullScreen : 'Skrin Penuh (IE)', + popupScrollBars : 'Bar-bar skrol', + popupDependent : 'Bergantungan (Netscape)', + popupLeft : 'Posisi Kiri', + popupTop : 'Posisi Atas', + id : 'Id', // MISSING + langDir : 'Arah Tulisan', + langDirLTR : 'Kiri ke Kanan (LTR)', + langDirRTL : 'Kanan ke Kiri (RTL)', + acccessKey : 'Kunci Akses', + name : 'Nama', + langCode : 'Arah Tulisan', + tabIndex : 'Indeks Tab ', + advisoryTitle : 'Tajuk Makluman', + advisoryContentType : 'Jenis Kandungan Makluman', + cssClasses : 'Kelas-kelas Stylesheet', + charset : 'Linked Resource Charset', + styles : 'Stail', + rel : 'Relationship', // MISSING + selectAnchor : 'Sila pilih pautan', + anchorName : 'dengan menggunakan nama pautan', + anchorId : 'dengan menggunakan ID elemen', + emailAddress : 'Alamat E-Mail', + emailSubject : 'Subjek Mesej', + emailBody : 'Isi Kandungan Mesej', + noAnchors : '(Tiada pautan terdapat dalam dokumen ini)', + noUrl : 'Sila taip sambungan URL', + noEmail : 'Sila taip alamat e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Masukkan/Sunting Pautan', + menu : 'Ciri-ciri Pautan', + title : 'Ciri-ciri Pautan', + name : 'Nama Pautan', + errorName : 'Sila taip nama pautan', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Cari', + replace : 'Ganti', + findWhat : 'Perkataan yang dicari:', + replaceWith : 'Diganti dengan:', + notFoundMsg : 'Text yang dicari tidak dijumpai.', + findOptions : 'Find Options', // MISSING + matchCase : 'Padanan case huruf', + matchWord : 'Padana Keseluruhan perkataan', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Ganti semua', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Jadual', + title : 'Ciri-ciri Jadual', + menu : 'Ciri-ciri Jadual', + deleteTable : 'Delete Table', // MISSING + rows : 'Barisan', + columns : 'Jaluran', + border : 'Saiz Border', + widthPx : 'piksel-piksel', + widthPc : 'peratus', + widthUnit : 'width unit', // MISSING + cellSpace : 'Ruangan Antara Sel', + cellPad : 'Tambahan Ruang Sel', + caption : 'Keterangan', + summary : 'Summary', // MISSING + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cell', // MISSING + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Buangkan Sel-sel', + merge : 'Cantumkan Sel-sel', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', // MISSING + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Buangkan Baris' + }, + + column : + { + menu : 'Column', // MISSING + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Buangkan Lajur' + } + }, + + // Button Dialog. + button : + { + title : 'Ciri-ciri Butang', + text : 'Teks (Nilai)', + type : 'Jenis', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Ciri-ciri Checkbox', + radioTitle : 'Ciri-ciri Butang Radio', + value : 'Nilai', + selected : 'Dipilih' + }, + + // Form Dialog. + form : + { + title : 'Ciri-ciri Borang', + menu : 'Ciri-ciri Borang', + action : 'Tindakan borang', + method : 'Cara borang dihantar', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Ciri-ciri Selection Field', + selectInfo : 'Select Info', // MISSING + opAvail : 'Pilihan sediada', + value : 'Nilai', + size : 'Saiz', + lines : 'garisan', + chkMulti : 'Benarkan pilihan pelbagai', + opText : 'Teks', + opValue : 'Nilai', + btnAdd : 'Tambah Pilihan', + btnModify : 'Ubah Pilihan', + btnUp : 'Naik ke atas', + btnDown : 'Turun ke bawah', + btnSetValue : 'Set sebagai nilai terpilih', + btnDelete : 'Padam' + }, + + // Textarea Dialog. + textarea : + { + title : 'Ciri-ciri Textarea', + cols : 'Lajur', + rows : 'Baris' + }, + + // Text Field Dialog. + textfield : + { + title : 'Ciri-ciri Text Field', + name : 'Nama', + value : 'Nilai', + charWidth : 'Lebar isian', + maxChars : 'Isian Maksimum', + type : 'Jenis', + typeText : 'Teks', + typePass : 'Kata Laluan' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Ciri-ciri Field Tersembunyi', + name : 'Nama', + value : 'Nilai' + }, + + // Image Dialog. + image : + { + title : 'Ciri-ciri Imej', + titleButton : 'Ciri-ciri Butang Bergambar', + menu : 'Ciri-ciri Imej', + infoTab : 'Info Imej', + btnUpload : 'Hantar ke Server', + upload : 'Muat Naik', + alt : 'Text Alternatif', + lockRatio : 'Tetapkan Nisbah', + resetSize : 'Saiz Set Semula', + border : 'Border', + hSpace : 'Ruang Melintang', + vSpace : 'Ruang Menegak', + alertUrl : 'Sila taip URL untuk fail gambar', + linkTab : 'Sambungan', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash Properties', // MISSING + propertiesTab : 'Properties', // MISSING + title : 'Flash Properties', // MISSING + chkPlay : 'Auto Play', // MISSING + chkLoop : 'Loop', // MISSING + chkMenu : 'Enable Flash Menu', // MISSING + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Scale', // MISSING + scaleAll : 'Show all', // MISSING + scaleNoBorder : 'No Border', // MISSING + scaleFit : 'Exact Fit', // MISSING + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Bawah Mutlak', + alignAbsMiddle : 'Pertengahan Mutlak', + alignBaseline : 'Garis Dasar', + alignTextTop : 'Atas Text', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Warna Latarbelakang', + hSpace : 'Ruang Melintang', + vSpace : 'Ruang Menegak', + validateSrc : 'Sila taip sambungan URL', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Semak Ejaan', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Tidak terdapat didalam kamus', + changeTo : 'Tukarkan kepada', + btnIgnore : 'Biar', + btnIgnoreAll : 'Biarkan semua', + btnReplace : 'Ganti', + btnReplaceAll : 'Gantikan Semua', + btnUndo : 'Batalkan', + noSuggestions : '- Tiada cadangan -', + progress : 'Pemeriksaan ejaan sedang diproses...', + noMispell : 'Pemeriksaan ejaan siap: Tiada salah ejaan', + noChanges : 'Pemeriksaan ejaan siap: Tiada perkataan diubah', + oneChange : 'Pemeriksaan ejaan siap: Satu perkataan telah diubah', + manyChanges : 'Pemeriksaan ejaan siap: %1 perkataan diubah', + ieSpellDownload : 'Pemeriksa ejaan tidak dipasang. Adakah anda mahu muat turun sekarang?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Masukkan Smiley', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Senarai bernombor', + bulletedlist : 'Senarai tidak bernombor', + indent : 'Tambahkan Inden', + outdent : 'Kurangkan Inden', + + justify : + { + left : 'Jajaran Kiri', + center : 'Jajaran Tengah', + right : 'Jajaran Kanan', + block : 'Jajaran Blok' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Tampal', + cutError : 'Keselamatan perisian browser anda tidak membenarkan operasi suntingan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+X).', + copyError : 'Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+C).', + pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Tampal dari Word', + title : 'Tampal dari Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Tampal sebagai text biasa', + title : 'Tampal sebagai text biasa' + }, + + templates : + { + button : 'Templat', + title : 'Templat Kandungan', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Sila pilih templat untuk dibuka oleh editor<br>(kandungan sebenar akan hilang):', + emptyListMsg : '(Tiada Templat Disimpan)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Stail', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normal', + tag_pre : 'Telah Diformat', + tag_address : 'Alamat', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Perenggan (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', // MISSING + panelTitle : 'Font' + }, + + fontSize : + { + label : 'Saiz', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Saiz' + }, + + colorButton : + { + textColorTitle : 'Warna Text', + bgColorTitle : 'Warna Latarbelakang', + panelTitle : 'Colors', // MISSING + auto : 'Otomatik', + more : 'Warna lain-lain...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Ciri-ciri dokumen', + title : 'Ciri-ciri dokumen', + design : 'Design', // MISSING + meta : 'Data Meta', + chooseColor : 'Choose', // MISSING + other : '<lain>', + docTitle : 'Tajuk Muka Surat', + charset : 'Enkod Set Huruf', + charsetOther : 'Enkod Set Huruf yang Lain', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Jenis Kepala Dokumen', + docTypeOther : 'Jenis Kepala Dokumen yang Lain', + xhtmlDec : 'Masukkan pemula kod XHTML', + bgColor : 'Warna Latarbelakang', + bgImage : 'URL Gambar Latarbelakang', + bgFixed : 'Imej Latarbelakang tanpa Skrol', + txtColor : 'Warna Text', + margin : 'Margin Muka Surat', + marginTop : 'Atas', + marginLeft : 'Kiri', + marginRight : 'Kanan', + marginBottom : 'Bawah', + metaKeywords : 'Kata Kunci Indeks Dokumen (dipisahkan oleh koma)', + metaDescription : 'Keterangan Dokumen', + metaAuthor : 'Penulis', + metaCopyright : 'Hakcipta', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/nb.js b/htdocs/includes/ckeditor/_source/lang/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..0c16cc8f24b9574a6f21d1274a674e2b6cc937ab --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/nb.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Norwegian Bokmål language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['nb'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rikteksteditor, %1', + editorHelp : 'Trykk ALT 0 for hjelp', + + // ARIA descriptions. + toolbars : 'Verktøylinjer for editor', + editor : 'Rikteksteditor', + + // Toolbar buttons without dialogs. + source : 'Kilde', + newPage : 'Ny side', + save : 'Lagre', + preview : 'Forhåndsvis', + cut : 'Klipp ut', + copy : 'Kopier', + paste : 'Lim inn', + print : 'Skriv ut', + underline : 'Understreking', + bold : 'Fet', + italic : 'Kursiv', + selectAll : 'Merk alt', + removeFormat : 'Fjern formatering', + strike : 'Gjennomstreking', + subscript : 'Senket skrift', + superscript : 'Hevet skrift', + horizontalrule : 'Sett inn horisontal linje', + pagebreak : 'Sett inn sideskift for utskrift', + pagebreakAlt : 'Sideskift', + unlink : 'Fjern lenke', + undo : 'Angre', + redo : 'Gjør om', + + // Common messages and labels. + common : + { + browseServer : 'Bla igjennom server', + url : 'URL', + protocol : 'Protokoll', + upload : 'Last opp', + uploadSubmit : 'Send det til serveren', + image : 'Bilde', + flash : 'Flash', + form : 'Skjema', + checkbox : 'Avmerkingsboks', + radio : 'Alternativknapp', + textField : 'Tekstboks', + textarea : 'Tekstområde', + hiddenField : 'Skjult felt', + button : 'Knapp', + select : 'Rullegardinliste', + imageButton : 'Bildeknapp', + notSet : '<ikke satt>', + id : 'Id', + name : 'Navn', + langDir : 'Språkretning', + langDirLtr : 'Venstre til høyre (VTH)', + langDirRtl : 'Høyre til venstre (HTV)', + langCode : 'Språkkode', + longDescr : 'Utvidet beskrivelse', + cssClass : 'Stilarkklasser', + advisoryTitle : 'Tittel', + cssStyle : 'Stil', + ok : 'OK', + cancel : 'Avbryt', + close : 'Lukk', + preview : 'Forhåndsvis', + generalTab : 'Generelt', + advancedTab : 'Avansert', + validateNumberFailed : 'Denne verdien er ikke et tall.', + confirmNewPage : 'Alle ulagrede endringer som er gjort i dette innholdet vil bli tapt. Er du sikker på at du vil laste en ny side?', + confirmCancel : 'Noen av valgene har blitt endret. Er du sikker på at du vil lukke dialogen?', + options : 'Valg', + target : 'Mål', + targetNew : 'Nytt vindu (_blank)', + targetTop : 'Hele vindu (_top)', + targetSelf : 'Samme vindu (_self)', + targetParent : 'Foreldrevindu (_parent)', + langDirLTR : 'Venstre til høyre (VTH)', + langDirRTL : 'Høyre til venstre (HTV)', + styles : 'Stil', + cssClasses : 'Stilarkklasser', + width : 'Bredde', + height : 'Høyde', + align : 'Juster', + alignLeft : 'Venstre', + alignRight : 'Høyre', + alignCenter : 'Midtjuster', + alignTop : 'Topp', + alignMiddle : 'Midten', + alignBottom : 'Bunn', + invalidHeight : 'Høyde må være et tall.', + invalidWidth : 'Bredde må være et tall.', + invalidCssLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig CSS-målingsenhet (px, %, in, cm, mm, em, ex, pt, eller pc).', + invalidHtmlLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig HTML-målingsenhet (px eller %).', + invalidInlineStyle : 'Verdi angitt for inline stil må bestå av en eller flere sett med formatet "navn : verdi", separert med semikolon', + cssLengthTooltip : 'Skriv inn et tall for en piksel-verdi eller et tall med en gyldig CSS-enhet (px, %, in, cm, mm, em, ex, pt, eller pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, utilgjenglig</span>' + }, + + contextmenu : + { + options : 'Alternativer for høyreklikkmeny' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Sett inn spesialtegn', + title : 'Velg spesialtegn', + options : 'Alternativer for spesialtegn' + }, + + // Link dialog. + link : + { + toolbar : 'Sett inn/Rediger lenke', + other : '<annen>', + menu : 'Rediger lenke', + title : 'Lenke', + info : 'Lenkeinfo', + target : 'Mål', + upload : 'Last opp', + advanced : 'Avansert', + type : 'Lenketype', + toUrl : 'URL', + toAnchor : 'Lenke til anker i teksten', + toEmail : 'E-post', + targetFrame : '<ramme>', + targetPopup : '<popup-vindu>', + targetFrameName : 'Målramme', + targetPopupName : 'Navn på popup-vindu', + popupFeatures : 'Egenskaper for popup-vindu', + popupResizable : 'Skalerbar', + popupStatusBar : 'Statuslinje', + popupLocationBar: 'Adresselinje', + popupToolbar : 'Verktøylinje', + popupMenuBar : 'Menylinje', + popupFullScreen : 'Fullskjerm (IE)', + popupScrollBars : 'Scrollbar', + popupDependent : 'Avhenging (Netscape)', + popupLeft : 'Venstre posisjon', + popupTop : 'Topp-posisjon', + id : 'Id', + langDir : 'Språkretning', + langDirLTR : 'Venstre til høyre (VTH)', + langDirRTL : 'Høyre til venstre (HTV)', + acccessKey : 'Aksessknapp', + name : 'Navn', + langCode : 'Språkkode', + tabIndex : 'Tabindeks', + advisoryTitle : 'Tittel', + advisoryContentType : 'Type', + cssClasses : 'Stilarkklasser', + charset : 'Lenket tegnsett', + styles : 'Stil', + rel : 'Relasjon (rel)', + selectAnchor : 'Velg et anker', + anchorName : 'Anker etter navn', + anchorId : 'Element etter ID', + emailAddress : 'E-postadresse', + emailSubject : 'Meldingsemne', + emailBody : 'Melding', + noAnchors : '(Ingen anker i dokumentet)', + noUrl : 'Vennligst skriv inn lenkens URL', + noEmail : 'Vennligst skriv inn e-postadressen' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Sett inn/Rediger anker', + menu : 'Egenskaper for anker', + title : 'Egenskaper for anker', + name : 'Ankernavn', + errorName : 'Vennligst skriv inn ankernavnet', + remove : 'Fjern anker' + }, + + // List style dialog + list: + { + numberedTitle : 'Egenskaper for nummerert liste', + bulletedTitle : 'Egenskaper for punktmerket liste', + type : 'Type', + start : 'Start', + validateStartNumber :'Starten på listen må være et heltall.', + circle : 'Sirkel', + disc : 'Disk', + square : 'Firkant', + none : 'Ingen', + notset : '<ikke satt>', + armenian : 'Armensk nummerering', + georgian : 'Georgisk nummerering (an, ban, gan, osv.)', + lowerRoman : 'Romertall, små (i, ii, iii, iv, v, osv.)', + upperRoman : 'Romertall, store (I, II, III, IV, V, osv.)', + lowerAlpha : 'Alfabetisk, små (a, b, c, d, e, osv.)', + upperAlpha : 'Alfabetisk, store (A, B, C, D, E, osv.)', + lowerGreek : 'Gresk, små (alpha, beta, gamma, osv.)', + decimal : 'Tall (1, 2, 3, osv.)', + decimalLeadingZero : 'Tall, med førstesiffer null (01, 02, 03, osv.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Søk og erstatt', + find : 'Søk', + replace : 'Erstatt', + findWhat : 'Søk etter:', + replaceWith : 'Erstatt med:', + notFoundMsg : 'Fant ikke søketeksten.', + findOptions : 'Søkealternativer', + matchCase : 'Skill mellom store og små bokstaver', + matchWord : 'Bare hele ord', + matchCyclic : 'Søk i hele dokumentet', + replaceAll : 'Erstatt alle', + replaceSuccessMsg : '%1 tilfelle(r) erstattet.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabell', + title : 'Egenskaper for tabell', + menu : 'Egenskaper for tabell', + deleteTable : 'Slett tabell', + rows : 'Rader', + columns : 'Kolonner', + border : 'Rammestørrelse', + widthPx : 'piksler', + widthPc : 'prosent', + widthUnit : 'Bredde-enhet', + cellSpace : 'Cellemarg', + cellPad : 'Cellepolstring', + caption : 'Tittel', + summary : 'Sammendrag', + headers : 'Overskrifter', + headersNone : 'Ingen', + headersColumn : 'Første kolonne', + headersRow : 'Første rad', + headersBoth : 'Begge', + invalidRows : 'Antall rader må være et tall større enn 0.', + invalidCols : 'Antall kolonner må være et tall større enn 0.', + invalidBorder : 'Rammestørrelse må være et tall.', + invalidWidth : 'Tabellbredde må være et tall.', + invalidHeight : 'Tabellhøyde må være et tall.', + invalidCellSpacing : 'Cellemarg må være et positivt tall.', + invalidCellPadding : 'Cellepolstring må være et positivt tall.', + + cell : + { + menu : 'Celle', + insertBefore : 'Sett inn celle før', + insertAfter : 'Sett inn celle etter', + deleteCell : 'Slett celler', + merge : 'Slå sammen celler', + mergeRight : 'Slå sammen høyre', + mergeDown : 'Slå sammen ned', + splitHorizontal : 'Del celle horisontalt', + splitVertical : 'Del celle vertikalt', + title : 'Celleegenskaper', + cellType : 'Celletype', + rowSpan : 'Radspenn', + colSpan : 'Kolonnespenn', + wordWrap : 'Tekstbrytning', + hAlign : 'Horisontal justering', + vAlign : 'Vertikal justering', + alignBaseline : 'Grunnlinje', + bgColor : 'Bakgrunnsfarge', + borderColor : 'Rammefarge', + data : 'Data', + header : 'Overskrift', + yes : 'Ja', + no : 'Nei', + invalidWidth : 'Cellebredde må være et tall.', + invalidHeight : 'Cellehøyde må være et tall.', + invalidRowSpan : 'Radspenn må være et heltall.', + invalidColSpan : 'Kolonnespenn må være et heltall.', + chooseColor : 'Velg' + }, + + row : + { + menu : 'Rader', + insertBefore : 'Sett inn rad før', + insertAfter : 'Sett inn rad etter', + deleteRow : 'Slett rader' + }, + + column : + { + menu : 'Kolonne', + insertBefore : 'Sett inn kolonne før', + insertAfter : 'Sett inn kolonne etter', + deleteColumn : 'Slett kolonner' + } + }, + + // Button Dialog. + button : + { + title : 'Egenskaper for knapp', + text : 'Tekst (verdi)', + type : 'Type', + typeBtn : 'Knapp', + typeSbm : 'Send', + typeRst : 'Nullstill' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Egenskaper for avmerkingsboks', + radioTitle : 'Egenskaper for alternativknapp', + value : 'Verdi', + selected : 'Valgt' + }, + + // Form Dialog. + form : + { + title : 'Egenskaper for skjema', + menu : 'Egenskaper for skjema', + action : 'Handling', + method : 'Metode', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Egenskaper for rullegardinliste', + selectInfo : 'Info', + opAvail : 'Tilgjenglige alternativer', + value : 'Verdi', + size : 'Størrelse', + lines : 'Linjer', + chkMulti : 'Tillat flervalg', + opText : 'Tekst', + opValue : 'Verdi', + btnAdd : 'Legg til', + btnModify : 'Endre', + btnUp : 'Opp', + btnDown : 'Ned', + btnSetValue : 'Sett som valgt', + btnDelete : 'Slett' + }, + + // Textarea Dialog. + textarea : + { + title : 'Egenskaper for tekstområde', + cols : 'Kolonner', + rows : 'Rader' + }, + + // Text Field Dialog. + textfield : + { + title : 'Egenskaper for tekstfelt', + name : 'Navn', + value : 'Verdi', + charWidth : 'Tegnbredde', + maxChars : 'Maks antall tegn', + type : 'Type', + typeText : 'Tekst', + typePass : 'Passord' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Egenskaper for skjult felt', + name : 'Navn', + value : 'Verdi' + }, + + // Image Dialog. + image : + { + title : 'Bildeegenskaper', + titleButton : 'Egenskaper for bildeknapp', + menu : 'Bildeegenskaper', + infoTab : 'Bildeinformasjon', + btnUpload : 'Send det til serveren', + upload : 'Last opp', + alt : 'Alternativ tekst', + lockRatio : 'Lås forhold', + resetSize : 'Tilbakestill størrelse', + border : 'Ramme', + hSpace : 'HMarg', + vSpace : 'VMarg', + alertUrl : 'Vennligst skriv bilde-urlen', + linkTab : 'Lenke', + button2Img : 'Vil du endre den valgte bildeknappen til et vanlig bilde?', + img2Button : 'Vil du endre det valgte bildet til en bildeknapp?', + urlMissing : 'Bildets adresse mangler.', + validateBorder : 'Ramme må være et heltall.', + validateHSpace : 'HMarg må være et heltall.', + validateVSpace : 'VMarg må være et heltall.' + }, + + // Flash Dialog + flash : + { + properties : 'Egenskaper for Flash-objekt', + propertiesTab : 'Egenskaper', + title : 'Flash-egenskaper', + chkPlay : 'Autospill', + chkLoop : 'Loop', + chkMenu : 'Slå på Flash-meny', + chkFull : 'Tillat fullskjerm', + scale : 'Skaler', + scaleAll : 'Vis alt', + scaleNoBorder : 'Ingen ramme', + scaleFit : 'Skaler til å passe', + access : 'Scripttilgang', + accessAlways : 'Alltid', + accessSameDomain: 'Samme domene', + accessNever : 'Aldri', + alignAbsBottom : 'Abs bunn', + alignAbsMiddle : 'Abs midten', + alignBaseline : 'Bunnlinje', + alignTextTop : 'Tekst topp', + quality : 'Kvalitet', + qualityBest : 'Best', + qualityHigh : 'Høy', + qualityAutoHigh : 'Auto høy', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto lav', + qualityLow : 'Lav', + windowModeWindow: 'Vindu', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Gjennomsiktig', + windowMode : 'Vindumodus', + flashvars : 'Variabler for flash', + bgcolor : 'Bakgrunnsfarge', + hSpace : 'HMarg', + vSpace : 'VMarg', + validateSrc : 'Vennligst skriv inn lenkens url.', + validateHSpace : 'HMarg må være et tall.', + validateVSpace : 'VMarg må være et tall.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Stavekontroll', + title : 'Stavekontroll', + notAvailable : 'Beklager, tjenesten er utilgjenglig nå.', + errorLoading : 'Feil under lasting av applikasjonstjenestetjener: %s.', + notInDic : 'Ikke i ordboken', + changeTo : 'Endre til', + btnIgnore : 'Ignorer', + btnIgnoreAll : 'Ignorer alle', + btnReplace : 'Erstatt', + btnReplaceAll : 'Erstatt alle', + btnUndo : 'Angre', + noSuggestions : '- Ingen forslag -', + progress : 'Stavekontroll pågår...', + noMispell : 'Stavekontroll fullført: ingen feilstavinger funnet', + noChanges : 'Stavekontroll fullført: ingen ord endret', + oneChange : 'Stavekontroll fullført: Ett ord endret', + manyChanges : 'Stavekontroll fullført: %1 ord endret', + ieSpellDownload : 'Stavekontroll er ikke installert. Vil du laste den ned nå?' + }, + + smiley : + { + toolbar : 'Smil', + title : 'Sett inn smil', + options : 'Alternativer for smil' + }, + + elementsPath : + { + eleLabel : 'Element-sti', + eleTitle : '%1 element' + }, + + numberedlist : 'Legg til/Fjern nummerert liste', + bulletedlist : 'Legg til/Fjern punktmerket liste', + indent : 'Øk innrykk', + outdent : 'Reduser innrykk', + + justify : + { + left : 'Venstrejuster', + center : 'Midtstill', + right : 'Høyrejuster', + block : 'Blokkjuster' + }, + + blockquote : 'Sitatblokk', + + clipboard : + { + title : 'Lim inn', + cutError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk snarveien (Ctrl/Cmd+X).', + copyError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snarveien (Ctrl/Cmd+C).', + pasteMsg : 'Vennligst lim inn i følgende boks med tastaturet (<STRONG>Ctrl/Cmd+V</STRONG>) og trykk <STRONG>OK</STRONG>.', + securityMsg : 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du må derfor lime det inn på nytt i dette vinduet.', + pasteArea : 'Innlimingsområde' + }, + + pastefromword : + { + confirmCleanup : 'Teksten du limer inn ser ut til å være kopiert fra Word. Vil du renske den før du limer den inn?', + toolbar : 'Lim inn fra Word', + title : 'Lim inn fra Word', + error : 'Det var ikke mulig å renske den innlimte teksten på grunn av en intern feil' + }, + + pasteText : + { + button : 'Lim inn som ren tekst', + title : 'Lim inn som ren tekst' + }, + + templates : + { + button : 'Maler', + title : 'Innholdsmaler', + options : 'Alternativer for mal', + insertOption : 'Erstatt gjeldende innhold', + selectPromptMsg : 'Velg malen du vil åpne i redigeringsverktøyet:', + emptyListMsg : '(Ingen maler definert)' + }, + + showBlocks : 'Vis blokker', + + stylesCombo : + { + label : 'Stil', + panelTitle : 'Stilformater', + panelTitle1 : 'Blokkstiler', + panelTitle2 : 'Inlinestiler', + panelTitle3 : 'Objektstiler' + }, + + format : + { + label : 'Format', + panelTitle : 'Avsnittsformat', + + tag_p : 'Normal', + tag_pre : 'Formatert', + tag_address : 'Adresse', + tag_h1 : 'Overskrift 1', + tag_h2 : 'Overskrift 2', + tag_h3 : 'Overskrift 3', + tag_h4 : 'Overskrift 4', + tag_h5 : 'Overskrift 5', + tag_h6 : 'Overskrift 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Sett inn Div Container', + toolbar : 'Sett inn Div Container', + cssClassInputLabel : 'Stilark-klasser', + styleSelectLabel : 'Stil', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Språkkode', + inlineStyleInputLabel : 'Inlinestiler', + advisoryTitleInputLabel : 'Tittel', + langDirLabel : 'Språkretning', + langDirLTRLabel : 'Venstre til høyre (VTH)', + langDirRTLLabel : 'Høyre til venstre (HTV)', + edit : 'Rediger Div', + remove : 'Fjern Div' + }, + + iframe : + { + title : 'Egenskaper for IFrame', + toolbar : 'IFrame', + noUrl : 'Vennligst skriv inn URL for iframe', + scrolling : 'Aktiver scrollefelt', + border : 'Viss ramme rundt iframe' + }, + + font : + { + label : 'Skrift', + voiceLabel : 'Font', + panelTitle : 'Skrift' + }, + + fontSize : + { + label : 'Størrelse', + voiceLabel : 'Font Størrelse', + panelTitle : 'Størrelse' + }, + + colorButton : + { + textColorTitle : 'Tekstfarge', + bgColorTitle : 'Bakgrunnsfarge', + panelTitle : 'Farger', + auto : 'Automatisk', + more : 'Flere farger...' + }, + + colors : + { + '000' : 'Svart', + '800000' : 'Rødbrun', + '8B4513' : 'Salbrun', + '2F4F4F' : 'Grønnsvart', + '008080' : 'Blågrønn', + '000080' : 'Marineblått', + '4B0082' : 'Indigo', + '696969' : 'Mørk grå', + 'B22222' : 'Mørkerød', + 'A52A2A' : 'Brun', + 'DAA520' : 'Lys brun', + '006400' : 'Mørk grønn', + '40E0D0' : 'Turkis', + '0000CD' : 'Medium blå', + '800080' : 'Purpur', + '808080' : 'Grå', + 'F00' : 'Rød', + 'FF8C00' : 'Mørk oransje', + 'FFD700' : 'Gull', + '008000' : 'Grønn', + '0FF' : 'Cyan', + '00F' : 'Blå', + 'EE82EE' : 'Fiolett', + 'A9A9A9' : 'Svak grå', + 'FFA07A' : 'Rosa-oransje', + 'FFA500' : 'Oransje', + 'FFFF00' : 'Gul', + '00FF00' : 'Lime', + 'AFEEEE' : 'Svak turkis', + 'ADD8E6' : 'Lys Blå', + 'DDA0DD' : 'Plomme', + 'D3D3D3' : 'Lys grå', + 'FFF0F5' : 'Svak lavendelrosa', + 'FAEBD7' : 'Antikk-hvit', + 'FFFFE0' : 'Lys gul', + 'F0FFF0' : 'Honningmelon', + 'F0FFFF' : 'Svakt asurblått', + 'F0F8FF' : 'Svak cyan', + 'E6E6FA' : 'Lavendel', + 'FFF' : 'Hvit' + }, + + scayt : + { + title : 'Stavekontroll mens du skriver', + opera_title : 'Ikke støttet av Opera', + enable : 'Slå på SCAYT', + disable : 'Slå av SCAYT', + about : 'Om SCAYT', + toggle : 'Veksle SCAYT', + options : 'Valg', + langs : 'Språk', + moreSuggestions : 'Flere forslag', + ignore : 'Ignorer', + ignoreAll : 'Ignorer Alle', + addWord : 'Legg til ord', + emptyDic : 'Ordboknavn bør ikke være tom.', + + optionsTab : 'Valg', + allCaps : 'Ikke kontroller ord med kun store bokstaver', + ignoreDomainNames : 'Ikke kontroller domenenavn', + mixedCase : 'Ikke kontroller ord med blandet små og store bokstaver', + mixedWithDigits : 'Ikke kontroller ord som inneholder tall', + + languagesTab : 'Språk', + + dictionariesTab : 'Ordbøker', + dic_field_name : 'Ordboknavn', + dic_create : 'Opprett', + dic_restore : 'Gjenopprett', + dic_delete : 'Slett', + dic_rename : 'Gi nytt navn', + dic_info : 'Brukerordboken lagres først i en informasjonskapsel på din maskin, men det er en begrensning på hvor mye som kan lagres her. Når ordboken blir for stor til å lagres i en informasjonskapsel, vil vi i stedet lagre ordboken på vår server. For å lagre din personlige ordbok på vår server, burde du velge et navn for ordboken din. Hvis du allerede har lagret en ordbok, vennligst skriv inn ordbokens navn og klikk på Gjenopprett-knappen.', + + aboutTab : 'Om' + }, + + about : + { + title : 'Om CKEditor', + dlgTitle : 'Om CKEditor', + help : 'Se $1 for hjelp.', + userGuide : 'CKEditors brukerveiledning', + moreInfo : 'For lisensieringsinformasjon, vennligst besøk vårt nettsted:', + copy : 'Copyright © $1. Alle rettigheter reservert.' + }, + + maximize : 'Maksimer', + minimize : 'Minimer', + + fakeobjects : + { + anchor : 'Anker', + flash : 'Flash-animasjon', + iframe : 'IFrame', + hiddenfield : 'Skjult felt', + unknown : 'Ukjent objekt' + }, + + resize : 'Dra for å skalere', + + colordialog : + { + title : 'Velg farge', + options : 'Alternativer for farge', + highlight : 'Merk', + selected : 'Valgt', + clear : 'Tøm' + }, + + toolbarCollapse : 'Skjul verktøylinje', + toolbarExpand : 'Vis verktøylinje', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Utklippstavle/Angre', + editing : 'Redigering', + forms : 'Skjema', + basicstyles : 'Basisstiler', + paragraph : 'Avsnitt', + links : 'Lenker', + insert : 'Innsetting', + styles : 'Stiler', + colors : 'Farger', + tools : 'Verktøy' + }, + + bidi : + { + ltr : 'Tekstretning fra venstre til høyre', + rtl : 'Tekstretning fra høyre til venstre' + }, + + docprops : + { + label : 'Dokumentegenskaper', + title : 'Dokumentegenskaper', + design : 'Design', + meta : 'Meta-data', + chooseColor : 'Velg', + other : '<annen>', + docTitle : 'Sidetittel', + charset : 'Tegnsett', + charsetOther : 'Annet tegnsett', + charsetASCII : 'ASCII', + charsetCE : 'Sentraleuropeisk', + charsetCT : 'Tradisonell kinesisk(Big5)', + charsetCR : 'Kyrillisk', + charsetGR : 'Gresk', + charsetJP : 'Japansk', + charsetKR : 'Koreansk', + charsetTR : 'Tyrkisk', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Vesteuropeisk', + docType : 'Dokumenttype header', + docTypeOther : 'Annet dokumenttype header', + xhtmlDec : 'Inkluder XHTML-deklarasjon', + bgColor : 'Bakgrunnsfarge', + bgImage : 'URL for bakgrunnsbilde', + bgFixed : 'Lås bakgrunnsbilde', + txtColor : 'Tekstfarge', + margin : 'Sidemargin', + marginTop : 'Topp', + marginLeft : 'Venstre', + marginRight : 'Høyre', + marginBottom : 'Bunn', + metaKeywords : 'Dokument nøkkelord (kommaseparert)', + metaDescription : 'Dokumentbeskrivelse', + metaAuthor : 'Forfatter', + metaCopyright : 'Kopirett', + previewHtml : '<p>Dette er en <strong>eksempeltekst</strong>. Du bruker <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/nl.js b/htdocs/includes/ckeditor/_source/lang/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..fd9eb7344362629a421ace1b03412097153f354c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/nl.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object for the + * Dutch language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['nl'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Werkbalken', + editor : 'Tekstverwerker', + + // Toolbar buttons without dialogs. + source : 'Code', + newPage : 'Nieuwe pagina', + save : 'Opslaan', + preview : 'Voorbeeld', + cut : 'Knippen', + copy : 'Kopiëren', + paste : 'Plakken', + print : 'Printen', + underline : 'Onderstreept', + bold : 'Vet', + italic : 'Cursief', + selectAll : 'Alles selecteren', + removeFormat : 'Opmaak verwijderen', + strike : 'Doorhalen', + subscript : 'Subscript', + superscript : 'Superscript', + horizontalrule : 'Horizontale lijn invoegen', + pagebreak : 'Pagina-einde invoegen', + pagebreakAlt : 'Pagina-einde', + unlink : 'Link verwijderen', + undo : 'Ongedaan maken', + redo : 'Opnieuw uitvoeren', + + // Common messages and labels. + common : + { + browseServer : 'Bladeren op server', + url : 'URL', + protocol : 'Protocol', + upload : 'Upload', + uploadSubmit : 'Naar server verzenden', + image : 'Afbeelding', + flash : 'Flash', + form : 'Formulier', + checkbox : 'Aanvinkvakje', + radio : 'Selectievakje', + textField : 'Tekstveld', + textarea : 'Tekstvak', + hiddenField : 'Verborgen veld', + button : 'Knop', + select : 'Selectieveld', + imageButton : 'Afbeeldingsknop', + notSet : '<niet ingevuld>', + id : 'Id', + name : 'Naam', + langDir : 'Schrijfrichting', + langDirLtr : 'Links naar rechts (LTR)', + langDirRtl : 'Rechts naar links (RTL)', + langCode : 'Taalcode', + longDescr : 'Lange URL-omschrijving', + cssClass : 'Stylesheet-klassen', + advisoryTitle : 'Adviserende titel', + cssStyle : 'Stijl', + ok : 'OK', + cancel : 'Annuleren', + close : 'Sluiten', + preview : 'Voorbeeld', + generalTab : 'Algemeen', + advancedTab : 'Geavanceerd', + validateNumberFailed : 'Deze waarde is geen geldig getal.', + confirmNewPage : 'Alle aangebrachte wijzigingen gaan verloren. Weet u zeker dat u een nieuwe pagina wilt openen?', + confirmCancel : 'Enkele opties zijn gewijzigd. Weet u zeker dat u dit dialoogvenster wilt sluiten?', + options : 'Opties', + target : 'Doelvenster', + targetNew : 'Nieuw venster (_blank)', + targetTop : 'Hele venster (_top)', + targetSelf : 'Zelfde venster (_self)', + targetParent : 'Origineel venster (_parent)', + langDirLTR : 'Links naar rechts (LTR)', + langDirRTL : 'Rechts naar links (RTL)', + styles : 'Stijl', + cssClasses : 'Stylesheet klassen', + width : 'Breedte', + height : 'Hoogte', + align : 'Uitlijning', + alignLeft : 'Links', + alignRight : 'Rechts', + alignCenter : 'Centreren', + alignTop : 'Boven', + alignMiddle : 'Midden', + alignBottom : 'Onder', + invalidHeight : 'De hoogte moet een getal zijn.', + invalidWidth : 'De breedte moet een getal zijn.', + invalidCssLength : 'Waarde in veld "%1" moet een positief nummer zijn, met of zonder een geldige CSS meeteenheid (px, %, in, cm, mm, em, ex, pt of pc).', + invalidHtmlLength : 'Waarde in veld "%1" moet een positief nummer zijn, met of zonder een geldige HTML meeteenheid (px of %).', + invalidInlineStyle : 'Waarde voor de online stijl moet bestaan uit een of meerdere tupels met het formaat "naam : waarde", gescheiden door puntkomma\'s.', + cssLengthTooltip : 'Geef een nummer in voor een waarde in pixels of geef een nummer in met een geldige CSS eenheid (px, %, in, cm, mm, em, ex, pt, of pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, niet beschikbaar</span>' + }, + + contextmenu : + { + options : 'Contextmenu opties' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Speciaal teken invoegen', + title : 'Selecteer speciaal teken', + options : 'Speciale tekens opties' + }, + + // Link dialog. + link : + { + toolbar : 'Link invoegen/wijzigen', + other : '<ander>', + menu : 'Link wijzigen', + title : 'Link', + info : 'Linkomschrijving', + target : 'Doelvenster', + upload : 'Upload', + advanced : 'Geavanceerd', + type : 'Linktype', + toUrl : 'URL', + toAnchor : 'Interne link in pagina', + toEmail : 'E-mail', + targetFrame : '<frame>', + targetPopup : '<popupvenster>', + targetFrameName : 'Naam doelframe', + targetPopupName : 'Naam popupvenster', + popupFeatures : 'Instellingen popupvenster', + popupResizable : 'Herschaalbaar', + popupStatusBar : 'Statusbalk', + popupLocationBar: 'Locatiemenu', + popupToolbar : 'Werkbalk', + popupMenuBar : 'Menubalk', + popupFullScreen : 'Volledig scherm (IE)', + popupScrollBars : 'Schuifbalken', + popupDependent : 'Afhankelijk (Netscape)', + popupLeft : 'Positie links', + popupTop : 'Positie boven', + id : 'Id', + langDir : 'Schrijfrichting', + langDirLTR : 'Links naar rechts (LTR)', + langDirRTL : 'Rechts naar links (RTL)', + acccessKey : 'Toegangstoets', + name : 'Naam', + langCode : 'Taalcode', + tabIndex : 'Tabvolgorde', + advisoryTitle : 'Adviserende titel', + advisoryContentType : 'Aanbevolen content-type', + cssClasses : 'Stylesheet-klassen', + charset : 'Karakterset van gelinkte bron', + styles : 'Stijl', + rel : 'Relatie', + selectAnchor : 'Kies een interne link', + anchorName : 'Op naam interne link', + anchorId : 'Op kenmerk interne link', + emailAddress : 'E-mailadres', + emailSubject : 'Onderwerp bericht', + emailBody : 'Inhoud bericht', + noAnchors : '(Geen interne links in document gevonden)', + noUrl : 'Geef de link van de URL', + noEmail : 'Geef een e-mailadres' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Interne link', + menu : 'Eigenschappen interne link', + title : 'Eigenschappen interne link', + name : 'Naam interne link', + errorName : 'Geef de naam van de interne link op', + remove : 'Interne link verwijderen' + }, + + // List style dialog + list: + { + numberedTitle : 'Eigenschappen genummerde lijst', + bulletedTitle : 'Eigenschappen lijst met opsommingstekens', + type : 'Type', + start : 'Start', + validateStartNumber :'Startnummer van de lijst moet een heel nummer zijn.', + circle : 'Cirkel', + disc : 'Schijf', + square : 'Vierkant', + none : 'Geen', + notset : '<niet gezet>', + armenian : 'Armeense nummering', + georgian : 'Georgische nummering (an, ban, gan, etc.)', + lowerRoman : 'Romeins kleine letters (i, ii, iii, iv, v, etc.)', + upperRoman : 'Romeinse hoofdletters (I, II, III, IV, V, etc.)', + lowerAlpha : 'Kleine letters (a, b, c, d, e, etc.)', + upperAlpha : 'Hoofdletters (A, B, C, D, E, etc.)', + lowerGreek : 'Grieks kleine letters (alpha, beta, gamma, etc.)', + decimal : 'Cijfers (1, 2, 3, etc.)', + decimalLeadingZero : 'Cijfers beginnen met nul (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Zoeken en vervangen', + find : 'Zoeken', + replace : 'Vervangen', + findWhat : 'Zoeken naar:', + replaceWith : 'Vervangen met:', + notFoundMsg : 'De opgegeven tekst is niet gevonden.', + findOptions : 'Zoekopties', + matchCase : 'Hoofdlettergevoelig', + matchWord : 'Hele woord moet voorkomen', + matchCyclic : 'Doorlopend zoeken', + replaceAll : 'Alles vervangen', + replaceSuccessMsg : '%1 resultaten vervangen.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabel', + title : 'Eigenschappen tabel', + menu : 'Eigenschappen tabel', + deleteTable : 'Tabel verwijderen', + rows : 'Rijen', + columns : 'Kolommen', + border : 'Breedte rand', + widthPx : 'pixels', + widthPc : 'procent', + widthUnit : 'eenheid breedte', + cellSpace : 'Afstand tussen cellen', + cellPad : 'Ruimte in de cel', + caption : 'Naam', + summary : 'Samenvatting', + headers : 'Koppen', + headersNone : 'Geen', + headersColumn : 'Eerste kolom', + headersRow : 'Eerste rij', + headersBoth : 'Beide', + invalidRows : 'Het aantal rijen moet een getal zijn groter dan 0.', + invalidCols : 'Het aantal kolommen moet een getal zijn groter dan 0.', + invalidBorder : 'De rand breedte moet een getal zijn.', + invalidWidth : 'De tabelbreedte moet een getal zijn.', + invalidHeight : 'De tabelhoogte moet een getal zijn.', + invalidCellSpacing : 'Afstand tussen cellen moet een getal zijn.', + invalidCellPadding : 'Ruimte in de cel moet een getal zijn.', + + cell : + { + menu : 'Cel', + insertBefore : 'Voeg cel in voor', + insertAfter : 'Voeg cel in achter', + deleteCell : 'Cellen verwijderen', + merge : 'Cellen samenvoegen', + mergeRight : 'Voeg samen naar rechts', + mergeDown : 'Voeg samen naar beneden', + splitHorizontal : 'Splits cellen horizontaal', + splitVertical : 'Splits cellen verticaal', + title : 'Cel eigenschappen', + cellType : 'Cel type', + rowSpan : 'Rijen samenvoegen', + colSpan : 'Kolommen samenvoegen', + wordWrap : 'Automatische terugloop', + hAlign : 'Horizontale uitlijning', + vAlign : 'Verticale uitlijning', + alignBaseline : 'Basislijn', + bgColor : 'Achtergrondkleur', + borderColor : 'Kleur rand', + data : 'Inhoud', + header : 'Kop', + yes : 'Ja', + no : 'Nee', + invalidWidth : 'De celbreedte moet een getal zijn.', + invalidHeight : 'De celhoogte moet een getal zijn.', + invalidRowSpan : 'Rijen samenvoegen moet een heel getal zijn.', + invalidColSpan : 'Kolommen samenvoegen moet een heel getal zijn.', + chooseColor : 'Kies' + }, + + row : + { + menu : 'Rij', + insertBefore : 'Voeg rij in voor', + insertAfter : 'Voeg rij in achter', + deleteRow : 'Rijen verwijderen' + }, + + column : + { + menu : 'Kolom', + insertBefore : 'Voeg kolom in voor', + insertAfter : 'Voeg kolom in achter', + deleteColumn : 'Kolommen verwijderen' + } + }, + + // Button Dialog. + button : + { + title : 'Eigenschappen knop', + text : 'Tekst (waarde)', + type : 'Soort', + typeBtn : 'Knop', + typeSbm : 'Versturen', + typeRst : 'Leegmaken' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Eigenschappen aanvinkvakje', + radioTitle : 'Eigenschappen selectievakje', + value : 'Waarde', + selected : 'Geselecteerd' + }, + + // Form Dialog. + form : + { + title : 'Eigenschappen formulier', + menu : 'Eigenschappen formulier', + action : 'Actie', + method : 'Methode', + encoding : 'Codering' + }, + + // Select Field Dialog. + select : + { + title : 'Eigenschappen selectieveld', + selectInfo : 'Informatie', + opAvail : 'Beschikbare opties', + value : 'Waarde', + size : 'Grootte', + lines : 'Regels', + chkMulti : 'Gecombineerde selecties toestaan', + opText : 'Tekst', + opValue : 'Waarde', + btnAdd : 'Toevoegen', + btnModify : 'Wijzigen', + btnUp : 'Omhoog', + btnDown : 'Omlaag', + btnSetValue : 'Als geselecteerde waarde instellen', + btnDelete : 'Verwijderen' + }, + + // Textarea Dialog. + textarea : + { + title : 'Eigenschappen tekstvak', + cols : 'Kolommen', + rows : 'Rijen' + }, + + // Text Field Dialog. + textfield : + { + title : 'Eigenschappen tekstveld', + name : 'Naam', + value : 'Waarde', + charWidth : 'Breedte (tekens)', + maxChars : 'Maximum aantal tekens', + type : 'Soort', + typeText : 'Tekst', + typePass : 'Wachtwoord' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Eigenschappen verborgen veld', + name : 'Naam', + value : 'Waarde' + }, + + // Image Dialog. + image : + { + title : 'Eigenschappen afbeelding', + titleButton : 'Eigenschappen afbeeldingsknop', + menu : 'Eigenschappen afbeelding', + infoTab : 'Informatie afbeelding', + btnUpload : 'Naar server verzenden', + upload : 'Upload', + alt : 'Alternatieve tekst', + lockRatio : 'Afmetingen vergrendelen', + resetSize : 'Afmetingen resetten', + border : 'Rand', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Geef de URL van de afbeelding', + linkTab : 'Link', + button2Img : 'Wilt u de geselecteerde afbeeldingsknop vervangen door een eenvoudige afbeelding?', + img2Button : 'Wilt u de geselecteerde afbeelding vervangen door een afbeeldingsknop?', + urlMissing : 'De URL naar de afbeelding ontbreekt.', + validateBorder : 'Rand moet een heel nummer zijn.', + validateHSpace : 'HSpace moet een heel nummer zijn.', + validateVSpace : 'VSpace moet een heel nummer zijn.' + }, + + // Flash Dialog + flash : + { + properties : 'Eigenschappen Flash', + propertiesTab : 'Eigenschappen', + title : 'Eigenschappen Flash', + chkPlay : 'Automatisch afspelen', + chkLoop : 'Herhalen', + chkMenu : 'Flashmenu\'s inschakelen', + chkFull : 'Schermvullend toestaan', + scale : 'Schaal', + scaleAll : 'Alles tonen', + scaleNoBorder : 'Geen rand', + scaleFit : 'Precies passend', + access : 'Script toegang', + accessAlways : 'Altijd', + accessSameDomain: 'Zelfde domeinnaam', + accessNever : 'Nooit', + alignAbsBottom : 'Absoluut-onder', + alignAbsMiddle : 'Absoluut-midden', + alignBaseline : 'Basislijn', + alignTextTop : 'Boven tekst', + quality : 'Kwaliteit', + qualityBest : 'Beste', + qualityHigh : 'Hoog', + qualityAutoHigh : 'Automatisch hoog', + qualityMedium : 'Gemiddeld', + qualityAutoLow : 'Automatisch laag', + qualityLow : 'Laag', + windowModeWindow: 'Venster', + windowModeOpaque: 'Ondoorzichtig', + windowModeTransparent : 'Doorzichtig', + windowMode : 'Venster modus', + flashvars : 'Variabelen voor Flash', + bgcolor : 'Achtergrondkleur', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'De URL mag niet leeg zijn.', + validateHSpace : 'De HSpace moet een getal zijn.', + validateVSpace : 'De VSpace moet een getal zijn.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Spellingscontrole', + title : 'Spellingscontrole', + notAvailable : 'Excuses, deze dienst is momenteel niet beschikbaar.', + errorLoading : 'Er is een fout opgetreden bij het laden van de dienst: %s.', + notInDic : 'Niet in het woordenboek', + changeTo : 'Wijzig in', + btnIgnore : 'Negeren', + btnIgnoreAll : 'Alles negeren', + btnReplace : 'Vervangen', + btnReplaceAll : 'Alles vervangen', + btnUndo : 'Ongedaan maken', + noSuggestions : '- Geen suggesties -', + progress : 'Bezig met spellingscontrole...', + noMispell : 'Klaar met spellingscontrole: geen fouten gevonden', + noChanges : 'Klaar met spellingscontrole: geen woorden aangepast', + oneChange : 'Klaar met spellingscontrole: één woord aangepast', + manyChanges : 'Klaar met spellingscontrole: %1 woorden aangepast', + ieSpellDownload : 'De spellingscontrole is niet geïnstalleerd. Wilt u deze nu downloaden?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Smiley invoegen', + options : 'Smiley opties' + }, + + elementsPath : + { + eleLabel : 'Elementenpad', + eleTitle : '%1 element' + }, + + numberedlist : 'Genummerde lijst', + bulletedlist : 'Opsomming', + indent : 'Inspringing vergroten', + outdent : 'Inspringing verkleinen', + + justify : + { + left : 'Links uitlijnen', + center : 'Centreren', + right : 'Rechts uitlijnen', + block : 'Uitvullen' + }, + + blockquote : 'Citaatblok', + + clipboard : + { + title : 'Plakken', + cutError : 'De beveiligingsinstelling van de browser verhinderen het automatisch knippen. Gebruik de sneltoets Ctrl/Cmd+X van het toetsenbord.', + copyError : 'De beveiligingsinstelling van de browser verhinderen het automatisch kopiëren. Gebruik de sneltoets Ctrl/Cmd+C van het toetsenbord.', + pasteMsg : 'Plak de tekst in het volgende vak gebruikmakend van uw toetsenbord (<strong>Ctrl/Cmd+V</strong>) en klik op OK.', + securityMsg : 'Door de beveiligingsinstellingen van uw browser is het niet mogelijk om direct vanuit het klembord in de editor te plakken. Middels opnieuw plakken in dit venster kunt u de tekst alsnog plakken in de editor.', + pasteArea : 'Plakgebied' + }, + + pastefromword : + { + confirmCleanup : 'De tekst die u plakte lijkt gekopieerd te zijn vanuit Word. Wilt u de tekst opschonen voordat deze geplakt wordt?', + toolbar : 'Plakken als Word-gegevens', + title : 'Plakken als Word-gegevens', + error : 'Het was niet mogelijk om de geplakte tekst op te schonen door een interne fout' + }, + + pasteText : + { + button : 'Plakken als platte tekst', + title : 'Plakken als platte tekst' + }, + + templates : + { + button : 'Sjablonen', + title : 'Inhoud sjablonen', + options : 'Template opties', + insertOption : 'Vervang de huidige inhoud', + selectPromptMsg : 'Selecteer het sjabloon dat in de editor geopend moet worden (de actuele inhoud gaat verloren):', + emptyListMsg : '(Geen sjablonen gedefinieerd)' + }, + + showBlocks : 'Toon blokken', + + stylesCombo : + { + label : 'Stijl', + panelTitle : 'Opmaakstijlen', + panelTitle1 : 'Blok stijlen', + panelTitle2 : 'Inline stijlen', + panelTitle3 : 'Object stijlen' + }, + + format : + { + label : 'Opmaak', + panelTitle : 'Opmaak', + + tag_p : 'Normaal', + tag_pre : 'Met opmaak', + tag_address : 'Adres', + tag_h1 : 'Kop 1', + tag_h2 : 'Kop 2', + tag_h3 : 'Kop 3', + tag_h4 : 'Kop 4', + tag_h5 : 'Kop 5', + tag_h6 : 'Kop 6', + tag_div : 'Normaal (DIV)' + }, + + div : + { + title : 'Div aanmaken', + toolbar : 'Div aanmaken', + cssClassInputLabel : 'Stylesheet klassen', + styleSelectLabel : 'Stijl', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Taalcode', + inlineStyleInputLabel : 'Inline stijl', + advisoryTitleInputLabel : 'Adviserende titel', + langDirLabel : 'Schrijfrichting', + langDirLTRLabel : 'Links naar rechts (LTR)', + langDirRTLLabel : 'Rechts naar links (RTL)', + edit : 'Div wijzigen', + remove : 'Div verwijderen' + }, + + iframe : + { + title : 'IFrame eigenschappen', + toolbar : 'IFrame', + noUrl : 'Geef de IFrame URL in', + scrolling : 'Scrollbalken inschakelen', + border : 'Framerand tonen' + }, + + font : + { + label : 'Lettertype', + voiceLabel : 'Lettertype', + panelTitle : 'Lettertype' + }, + + fontSize : + { + label : 'Lettergrootte', + voiceLabel : 'Lettergrootte', + panelTitle : 'Lettergrootte' + }, + + colorButton : + { + textColorTitle : 'Tekstkleur', + bgColorTitle : 'Achtergrondkleur', + panelTitle : 'Kleuren', + auto : 'Automatisch', + more : 'Meer kleuren...' + }, + + colors : + { + '000' : 'Zwart', + '800000' : 'Kastanjebruin', + '8B4513' : 'Chocoladebruin', + '2F4F4F' : 'Donkerleigrijs', + '008080' : 'Blauwgroen', + '000080' : 'Marine', + '4B0082' : 'Indigo', + '696969' : 'Donkergrijs', + 'B22222' : 'Baksteen', + 'A52A2A' : 'Bruin', + 'DAA520' : 'Donkergeel', + '006400' : 'Donkergroen', + '40E0D0' : 'Turquoise', + '0000CD' : 'Middenblauw', + '800080' : 'Paars', + '808080' : 'Grijs', + 'F00' : 'Rood', + 'FF8C00' : 'Donkeroranje', + 'FFD700' : 'Goud', + '008000' : 'Groen', + '0FF' : 'Cyaan', + '00F' : 'Blauw', + 'EE82EE' : 'Violet', + 'A9A9A9' : 'Donkergrijs', + 'FFA07A' : 'Lichtzalm', + 'FFA500' : 'Oranje', + 'FFFF00' : 'Geel', + '00FF00' : 'Felgroen', + 'AFEEEE' : 'Lichtturquoise', + 'ADD8E6' : 'Lichtblauw', + 'DDA0DD' : 'Pruim', + 'D3D3D3' : 'Lichtgrijs', + 'FFF0F5' : 'Linnen', + 'FAEBD7' : 'Ivoor', + 'FFFFE0' : 'Lichtgeel', + 'F0FFF0' : 'Honingdauw', + 'F0FFFF' : 'Azuur', + 'F0F8FF' : 'Licht hemelsblauw', + 'E6E6FA' : 'Lavendel', + 'FFF' : 'Wit' + }, + + scayt : + { + title : 'Controleer de spelling tijdens het typen', + opera_title : 'Niet ondersteund door Opera', + enable : 'SCAYT inschakelen', + disable : 'SCAYT uitschakelen', + about : 'Over SCAYT', + toggle : 'SCAYT in/uitschakelen', + options : 'Opties', + langs : 'Talen', + moreSuggestions : 'Meer suggesties', + ignore : 'Negeren', + ignoreAll : 'Alles negeren', + addWord : 'Woord toevoegen', + emptyDic : 'De naam van het woordenboek mag niet leeg zijn.', + + optionsTab : 'Opties', + allCaps : 'Negeer woorden helemaal in hoofdletters', + ignoreDomainNames : 'Negeer domeinnamen', + mixedCase : 'Negeer woorden met hoofd- en kleine letters', + mixedWithDigits : 'Negeer woorden met cijfers', + + languagesTab : 'Talen', + + dictionariesTab : 'Woordenboeken', + dic_field_name : 'Naam woordenboek', + dic_create : 'Aanmaken', + dic_restore : 'Terugzetten', + dic_delete : 'Verwijderen', + dic_rename : 'Hernoemen', + dic_info : 'Initieel wordt het gebruikerswoordenboek opgeslagen in een cookie. Cookies zijn echter beperkt in grootte. Zodra het gebruikerswoordenboek het punt bereikt waarop het niet meer in een cookie opgeslagen kan worden, dan wordt het woordenboek op de server opgeslagen. Om je persoonlijke woordenboek op je eigen server op te slaan, moet je een mapnaam opgeven. Indien je al een woordenboek hebt opgeslagen, typ dan de naam en klik op de Terugzetten knop.', + + aboutTab : 'Over' + }, + + about : + { + title : 'Over CKEditor', + dlgTitle : 'Over CKEditor', + help : 'Bekijk de $1 voor hulp.', + userGuide : 'CKEditor gebruiksaanwijzing', + moreInfo : 'Voor licentie informatie, bezoek onze website:', + copy : 'Copyright © $1. Alle rechten voorbehouden.' + }, + + maximize : 'Maximaliseren', + minimize : 'Minimaliseren', + + fakeobjects : + { + anchor : 'Interne link', + flash : 'Flash animatie', + iframe : 'IFrame', + hiddenfield : 'Verborgen veld', + unknown : 'Onbekend object' + }, + + resize : 'Sleep om te herschalen', + + colordialog : + { + title : 'Selecteer kleur', + options : 'Kleuropties', + highlight : 'Actief', + selected : 'Geselecteerde kleur', + clear : 'Wissen' + }, + + toolbarCollapse : 'Werkbalk inklappen', + toolbarExpand : 'Werkbalk uitklappen', + + toolbarGroups : + { + document : 'Document', + clipboard : 'Klembord/Ongedaan maken', + editing : 'Bewerken', + forms : 'Formulieren', + basicstyles : 'Basisstijlen', + paragraph : 'Paragraaf', + links : 'Links', + insert : 'Invoegen', + styles : 'Stijlen', + colors : 'Kleuren', + tools : 'Toepassingen' + }, + + bidi : + { + ltr : 'Schrijfrichting van links naar rechts', + rtl : 'Schrijfrichting van rechts naar links' + }, + + docprops : + { + label : 'Documenteigenschappen', + title : 'Documenteigenschappen', + design : 'Ontwerp', + meta : 'Meta tags', + chooseColor : 'Kies', + other : 'Anders...', + docTitle : 'Paginatitel', + charset : 'Tekencodering', + charsetOther : 'Andere tekencodering', + charsetASCII : 'ASCII', + charsetCE : 'Centraal Europees', + charsetCT : 'Traditioneel Chinees (Big5)', + charsetCR : 'Cyrillisch', + charsetGR : 'Grieks', + charsetJP : 'Japans', + charsetKR : 'Koreaans', + charsetTR : 'Turks', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'West Europees', + docType : 'Documenttype-definitie', + docTypeOther : 'Andere documenttype-definitie', + xhtmlDec : 'XHTML declaratie invoegen', + bgColor : 'Achtergrondkleur', + bgImage : 'Achtergrondafbeelding URL', + bgFixed : 'Niet-scrollend (gefixeerde) achtergrond', + txtColor : 'Tekstkleur', + margin : 'Pagina marges', + marginTop : 'Boven', + marginLeft : 'Links', + marginRight : 'Rechts', + marginBottom : 'Onder', + metaKeywords : 'Trefwoorden voor indexering (komma-gescheiden)', + metaDescription : 'Documentbeschrijving', + metaAuthor : 'Auteur', + metaCopyright : 'Auteursrechten', + previewHtml : '<p>Dit is <strong>voorbeeld tekst</strong>. Je gebruikt <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/no.js b/htdocs/includes/ckeditor/_source/lang/no.js new file mode 100644 index 0000000000000000000000000000000000000000..1e78aaff7fce4541b5dddbfd60444bedcfad9d04 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/no.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Norwegian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['no'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rikteksteditor, %1', + editorHelp : 'Trykk ALT 0 for hjelp', + + // ARIA descriptions. + toolbars : 'Verktøylinjer for editor', + editor : 'Rikteksteditor', + + // Toolbar buttons without dialogs. + source : 'Kilde', + newPage : 'Ny side', + save : 'Lagre', + preview : 'Forhåndsvis', + cut : 'Klipp ut', + copy : 'Kopier', + paste : 'Lim inn', + print : 'Skriv ut', + underline : 'Understreking', + bold : 'Fet', + italic : 'Kursiv', + selectAll : 'Merk alt', + removeFormat : 'Fjern formatering', + strike : 'Gjennomstreking', + subscript : 'Senket skrift', + superscript : 'Hevet skrift', + horizontalrule : 'Sett inn horisontal linje', + pagebreak : 'Sett inn sideskift for utskrift', + pagebreakAlt : 'Sideskift', + unlink : 'Fjern lenke', + undo : 'Angre', + redo : 'Gjør om', + + // Common messages and labels. + common : + { + browseServer : 'Bla igjennom server', + url : 'URL', + protocol : 'Protokoll', + upload : 'Last opp', + uploadSubmit : 'Send det til serveren', + image : 'Bilde', + flash : 'Flash', + form : 'Skjema', + checkbox : 'Avmerkingsboks', + radio : 'Alternativknapp', + textField : 'Tekstboks', + textarea : 'Tekstområde', + hiddenField : 'Skjult felt', + button : 'Knapp', + select : 'Rullegardinliste', + imageButton : 'Bildeknapp', + notSet : '<ikke satt>', + id : 'Id', + name : 'Navn', + langDir : 'Språkretning', + langDirLtr : 'Venstre til høyre (VTH)', + langDirRtl : 'Høyre til venstre (HTV)', + langCode : 'Språkkode', + longDescr : 'Utvidet beskrivelse', + cssClass : 'Stilarkklasser', + advisoryTitle : 'Tittel', + cssStyle : 'Stil', + ok : 'OK', + cancel : 'Avbryt', + close : 'Lukk', + preview : 'Forhåndsvis', + generalTab : 'Generelt', + advancedTab : 'Avansert', + validateNumberFailed : 'Denne verdien er ikke et tall.', + confirmNewPage : 'Alle ulagrede endringer som er gjort i dette innholdet vil bli tapt. Er du sikker på at du vil laste en ny side?', + confirmCancel : 'Noen av valgene har blitt endret. Er du sikker på at du vil lukke dialogen?', + options : 'Valg', + target : 'Mål', + targetNew : 'Nytt vindu (_blank)', + targetTop : 'Hele vindu (_top)', + targetSelf : 'Samme vindu (_self)', + targetParent : 'Foreldrevindu (_parent)', + langDirLTR : 'Venstre til høyre (VTH)', + langDirRTL : 'Høyre til venstre (HTV)', + styles : 'Stil', + cssClasses : 'Stilarkklasser', + width : 'Bredde', + height : 'Høyde', + align : 'Juster', + alignLeft : 'Venstre', + alignRight : 'Høyre', + alignCenter : 'Midtjuster', + alignTop : 'Topp', + alignMiddle : 'Midten', + alignBottom : 'Bunn', + invalidHeight : 'Høyde må være et tall.', + invalidWidth : 'Bredde må være et tall.', + invalidCssLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig CSS-målingsenhet (px, %, in, cm, mm, em, ex, pt, eller pc).', + invalidHtmlLength : 'Den angitte verdien for feltet "%1" må være et positivt tall med eller uten en gyldig HTML-målingsenhet (px eller %).', + invalidInlineStyle : 'Verdi angitt for inline stil må bestå av en eller flere sett med formatet "navn : verdi", separert med semikolon', + cssLengthTooltip : 'Skriv inn et tall for en piksel-verdi eller et tall med en gyldig CSS-enhet (px, %, in, cm, mm, em, ex, pt, eller pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, utilgjenglig</span>' + }, + + contextmenu : + { + options : 'Alternativer for høyreklikkmeny' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Sett inn spesialtegn', + title : 'Velg spesialtegn', + options : 'Alternativer for spesialtegn' + }, + + // Link dialog. + link : + { + toolbar : 'Sett inn/Rediger lenke', + other : '<annen>', + menu : 'Rediger lenke', + title : 'Lenke', + info : 'Lenkeinfo', + target : 'Mål', + upload : 'Last opp', + advanced : 'Avansert', + type : 'Lenketype', + toUrl : 'URL', + toAnchor : 'Lenke til anker i teksten', + toEmail : 'E-post', + targetFrame : '<ramme>', + targetPopup : '<popup-vindu>', + targetFrameName : 'Målramme', + targetPopupName : 'Navn på popup-vindu', + popupFeatures : 'Egenskaper for popup-vindu', + popupResizable : 'Skalerbar', + popupStatusBar : 'Statuslinje', + popupLocationBar: 'Adresselinje', + popupToolbar : 'Verktøylinje', + popupMenuBar : 'Menylinje', + popupFullScreen : 'Fullskjerm (IE)', + popupScrollBars : 'Scrollbar', + popupDependent : 'Avhenging (Netscape)', + popupLeft : 'Venstre posisjon', + popupTop : 'Topp-posisjon', + id : 'Id', + langDir : 'Språkretning', + langDirLTR : 'Venstre til høyre (VTH)', + langDirRTL : 'Høyre til venstre (HTV)', + acccessKey : 'Aksessknapp', + name : 'Navn', + langCode : 'Språkkode', + tabIndex : 'Tabindeks', + advisoryTitle : 'Tittel', + advisoryContentType : 'Type', + cssClasses : 'Stilarkklasser', + charset : 'Lenket tegnsett', + styles : 'Stil', + rel : 'Relasjon (rel)', + selectAnchor : 'Velg et anker', + anchorName : 'Anker etter navn', + anchorId : 'Element etter ID', + emailAddress : 'E-postadresse', + emailSubject : 'Meldingsemne', + emailBody : 'Melding', + noAnchors : '(Ingen anker i dokumentet)', + noUrl : 'Vennligst skriv inn lenkens URL', + noEmail : 'Vennligst skriv inn e-postadressen' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Sett inn/Rediger anker', + menu : 'Egenskaper for anker', + title : 'Egenskaper for anker', + name : 'Ankernavn', + errorName : 'Vennligst skriv inn ankernavnet', + remove : 'Fjern anker' + }, + + // List style dialog + list: + { + numberedTitle : 'Egenskaper for nummerert liste', + bulletedTitle : 'Egenskaper for punktmerket liste', + type : 'Type', + start : 'Start', + validateStartNumber :'Starten på listen må være et heltall.', + circle : 'Sirkel', + disc : 'Disk', + square : 'Firkant', + none : 'Ingen', + notset : '<ikke satt>', + armenian : 'Armensk nummerering', + georgian : 'Georgisk nummerering (an, ban, gan, osv.)', + lowerRoman : 'Romertall, små (i, ii, iii, iv, v, osv.)', + upperRoman : 'Romertall, store (I, II, III, IV, V, osv.)', + lowerAlpha : 'Alfabetisk, små (a, b, c, d, e, osv.)', + upperAlpha : 'Alfabetisk, store (A, B, C, D, E, osv.)', + lowerGreek : 'Gresk, små (alpha, beta, gamma, osv.)', + decimal : 'Tall (1, 2, 3, osv.)', + decimalLeadingZero : 'Tall, med førstesiffer null (01, 02, 03, osv.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Søk og erstatt', + find : 'Søk', + replace : 'Erstatt', + findWhat : 'Søk etter:', + replaceWith : 'Erstatt med:', + notFoundMsg : 'Fant ikke søketeksten.', + findOptions : 'Søkealternativer', + matchCase : 'Skill mellom store og små bokstaver', + matchWord : 'Bare hele ord', + matchCyclic : 'Søk i hele dokumentet', + replaceAll : 'Erstatt alle', + replaceSuccessMsg : '%1 tilfelle(r) erstattet.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabell', + title : 'Egenskaper for tabell', + menu : 'Egenskaper for tabell', + deleteTable : 'Slett tabell', + rows : 'Rader', + columns : 'Kolonner', + border : 'Rammestørrelse', + widthPx : 'piksler', + widthPc : 'prosent', + widthUnit : 'Bredde-enhet', + cellSpace : 'Cellemarg', + cellPad : 'Cellepolstring', + caption : 'Tittel', + summary : 'Sammendrag', + headers : 'Overskrifter', + headersNone : 'Ingen', + headersColumn : 'Første kolonne', + headersRow : 'Første rad', + headersBoth : 'Begge', + invalidRows : 'Antall rader må være et tall større enn 0.', + invalidCols : 'Antall kolonner må være et tall større enn 0.', + invalidBorder : 'Rammestørrelse må være et tall.', + invalidWidth : 'Tabellbredde må være et tall.', + invalidHeight : 'Tabellhøyde må være et tall.', + invalidCellSpacing : 'Cellemarg må være et positivt tall.', + invalidCellPadding : 'Cellepolstring må være et positivt tall.', + + cell : + { + menu : 'Celle', + insertBefore : 'Sett inn celle før', + insertAfter : 'Sett inn celle etter', + deleteCell : 'Slett celler', + merge : 'Slå sammen celler', + mergeRight : 'Slå sammen høyre', + mergeDown : 'Slå sammen ned', + splitHorizontal : 'Del celle horisontalt', + splitVertical : 'Del celle vertikalt', + title : 'Celleegenskaper', + cellType : 'Celletype', + rowSpan : 'Radspenn', + colSpan : 'Kolonnespenn', + wordWrap : 'Tekstbrytning', + hAlign : 'Horisontal justering', + vAlign : 'Vertikal justering', + alignBaseline : 'Grunnlinje', + bgColor : 'Bakgrunnsfarge', + borderColor : 'Rammefarge', + data : 'Data', + header : 'Overskrift', + yes : 'Ja', + no : 'Nei', + invalidWidth : 'Cellebredde må være et tall.', + invalidHeight : 'Cellehøyde må være et tall.', + invalidRowSpan : 'Radspenn må være et heltall.', + invalidColSpan : 'Kolonnespenn må være et heltall.', + chooseColor : 'Velg' + }, + + row : + { + menu : 'Rader', + insertBefore : 'Sett inn rad før', + insertAfter : 'Sett inn rad etter', + deleteRow : 'Slett rader' + }, + + column : + { + menu : 'Kolonne', + insertBefore : 'Sett inn kolonne før', + insertAfter : 'Sett inn kolonne etter', + deleteColumn : 'Slett kolonner' + } + }, + + // Button Dialog. + button : + { + title : 'Egenskaper for knapp', + text : 'Tekst (verdi)', + type : 'Type', + typeBtn : 'Knapp', + typeSbm : 'Send', + typeRst : 'Nullstill' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Egenskaper for avmerkingsboks', + radioTitle : 'Egenskaper for alternativknapp', + value : 'Verdi', + selected : 'Valgt' + }, + + // Form Dialog. + form : + { + title : 'Egenskaper for skjema', + menu : 'Egenskaper for skjema', + action : 'Handling', + method : 'Metode', + encoding : 'Encoding' + }, + + // Select Field Dialog. + select : + { + title : 'Egenskaper for rullegardinliste', + selectInfo : 'Info', + opAvail : 'Tilgjenglige alternativer', + value : 'Verdi', + size : 'Størrelse', + lines : 'Linjer', + chkMulti : 'Tillat flervalg', + opText : 'Tekst', + opValue : 'Verdi', + btnAdd : 'Legg til', + btnModify : 'Endre', + btnUp : 'Opp', + btnDown : 'Ned', + btnSetValue : 'Sett som valgt', + btnDelete : 'Slett' + }, + + // Textarea Dialog. + textarea : + { + title : 'Egenskaper for tekstområde', + cols : 'Kolonner', + rows : 'Rader' + }, + + // Text Field Dialog. + textfield : + { + title : 'Egenskaper for tekstfelt', + name : 'Navn', + value : 'Verdi', + charWidth : 'Tegnbredde', + maxChars : 'Maks antall tegn', + type : 'Type', + typeText : 'Tekst', + typePass : 'Passord' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Egenskaper for skjult felt', + name : 'Navn', + value : 'Verdi' + }, + + // Image Dialog. + image : + { + title : 'Bildeegenskaper', + titleButton : 'Egenskaper for bildeknapp', + menu : 'Bildeegenskaper', + infoTab : 'Bildeinformasjon', + btnUpload : 'Send det til serveren', + upload : 'Last opp', + alt : 'Alternativ tekst', + lockRatio : 'Lås forhold', + resetSize : 'Tilbakestill størrelse', + border : 'Ramme', + hSpace : 'HMarg', + vSpace : 'VMarg', + alertUrl : 'Vennligst skriv bilde-urlen', + linkTab : 'Lenke', + button2Img : 'Vil du endre den valgte bildeknappen til et vanlig bilde?', + img2Button : 'Vil du endre det valgte bildet til en bildeknapp?', + urlMissing : 'Bildets adresse mangler.', + validateBorder : 'Ramme må være et heltall.', + validateHSpace : 'HMarg må være et heltall.', + validateVSpace : 'VMarg må være et heltall.' + }, + + // Flash Dialog + flash : + { + properties : 'Egenskaper for Flash-objekt', + propertiesTab : 'Egenskaper', + title : 'Flash-egenskaper', + chkPlay : 'Autospill', + chkLoop : 'Loop', + chkMenu : 'Slå på Flash-meny', + chkFull : 'Tillat fullskjerm', + scale : 'Skaler', + scaleAll : 'Vis alt', + scaleNoBorder : 'Ingen ramme', + scaleFit : 'Skaler til å passe', + access : 'Scripttilgang', + accessAlways : 'Alltid', + accessSameDomain: 'Samme domene', + accessNever : 'Aldri', + alignAbsBottom : 'Abs bunn', + alignAbsMiddle : 'Abs midten', + alignBaseline : 'Bunnlinje', + alignTextTop : 'Tekst topp', + quality : 'Kvalitet', + qualityBest : 'Best', + qualityHigh : 'Høy', + qualityAutoHigh : 'Auto høy', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto lav', + qualityLow : 'Lav', + windowModeWindow: 'Vindu', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Gjennomsiktig', + windowMode : 'Vindumodus', + flashvars : 'Variabler for flash', + bgcolor : 'Bakgrunnsfarge', + hSpace : 'HMarg', + vSpace : 'VMarg', + validateSrc : 'Vennligst skriv inn lenkens url.', + validateHSpace : 'HMarg må være et tall.', + validateVSpace : 'VMarg må være et tall.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Stavekontroll', + title : 'Stavekontroll', + notAvailable : 'Beklager, tjenesten er utilgjenglig nå.', + errorLoading : 'Feil under lasting av applikasjonstjenestetjener: %s.', + notInDic : 'Ikke i ordboken', + changeTo : 'Endre til', + btnIgnore : 'Ignorer', + btnIgnoreAll : 'Ignorer alle', + btnReplace : 'Erstatt', + btnReplaceAll : 'Erstatt alle', + btnUndo : 'Angre', + noSuggestions : '- Ingen forslag -', + progress : 'Stavekontroll pågår...', + noMispell : 'Stavekontroll fullført: ingen feilstavinger funnet', + noChanges : 'Stavekontroll fullført: ingen ord endret', + oneChange : 'Stavekontroll fullført: Ett ord endret', + manyChanges : 'Stavekontroll fullført: %1 ord endret', + ieSpellDownload : 'Stavekontroll er ikke installert. Vil du laste den ned nå?' + }, + + smiley : + { + toolbar : 'Smil', + title : 'Sett inn smil', + options : 'Alternativer for smil' + }, + + elementsPath : + { + eleLabel : 'Element-sti', + eleTitle : '%1 element' + }, + + numberedlist : 'Legg til/Fjern nummerert liste', + bulletedlist : 'Legg til/Fjern punktmerket liste', + indent : 'Øk innrykk', + outdent : 'Reduser innrykk', + + justify : + { + left : 'Venstrejuster', + center : 'Midtstill', + right : 'Høyrejuster', + block : 'Blokkjuster' + }, + + blockquote : 'Sitatblokk', + + clipboard : + { + title : 'Lim inn', + cutError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk snarveien (Ctrl/Cmd+X).', + copyError : 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snarveien (Ctrl/Cmd+C).', + pasteMsg : 'Vennligst lim inn i følgende boks med tastaturet (<STRONG>Ctrl/Cmd+V</STRONG>) og trykk <STRONG>OK</STRONG>.', + securityMsg : 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du må derfor lime det inn på nytt i dette vinduet.', + pasteArea : 'Innlimingsområde' + }, + + pastefromword : + { + confirmCleanup : 'Teksten du limer inn ser ut til å være kopiert fra Word. Vil du renske den før du limer den inn?', + toolbar : 'Lim inn fra Word', + title : 'Lim inn fra Word', + error : 'Det var ikke mulig å renske den innlimte teksten på grunn av en intern feil' + }, + + pasteText : + { + button : 'Lim inn som ren tekst', + title : 'Lim inn som ren tekst' + }, + + templates : + { + button : 'Maler', + title : 'Innholdsmaler', + options : 'Alternativer for mal', + insertOption : 'Erstatt gjeldende innhold', + selectPromptMsg : 'Velg malen du vil åpne i redigeringsverktøyet:', + emptyListMsg : '(Ingen maler definert)' + }, + + showBlocks : 'Vis blokker', + + stylesCombo : + { + label : 'Stil', + panelTitle : 'Stilformater', + panelTitle1 : 'Blokkstiler', + panelTitle2 : 'Inlinestiler', + panelTitle3 : 'Objektstiler' + }, + + format : + { + label : 'Format', + panelTitle : 'Avsnittsformat', + + tag_p : 'Normal', + tag_pre : 'Formatert', + tag_address : 'Adresse', + tag_h1 : 'Overskrift 1', + tag_h2 : 'Overskrift 2', + tag_h3 : 'Overskrift 3', + tag_h4 : 'Overskrift 4', + tag_h5 : 'Overskrift 5', + tag_h6 : 'Overskrift 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Sett inn Div Container', + toolbar : 'Sett inn Div Container', + cssClassInputLabel : 'Stilark-klasser', + styleSelectLabel : 'Stil', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Språkkode', + inlineStyleInputLabel : 'Inlinestiler', + advisoryTitleInputLabel : 'Tittel', + langDirLabel : 'Språkretning', + langDirLTRLabel : 'Venstre til høyre (VTH)', + langDirRTLLabel : 'Høyre til venstre (HTV)', + edit : 'Rediger Div', + remove : 'Fjern Div' + }, + + iframe : + { + title : 'Egenskaper for IFrame', + toolbar : 'IFrame', + noUrl : 'Vennligst skriv inn URL for iframe', + scrolling : 'Aktiver scrollefelt', + border : 'Viss ramme rundt iframe' + }, + + font : + { + label : 'Skrift', + voiceLabel : 'Font', + panelTitle : 'Skrift' + }, + + fontSize : + { + label : 'Størrelse', + voiceLabel : 'Font Størrelse', + panelTitle : 'Størrelse' + }, + + colorButton : + { + textColorTitle : 'Tekstfarge', + bgColorTitle : 'Bakgrunnsfarge', + panelTitle : 'Farger', + auto : 'Automatisk', + more : 'Flere farger...' + }, + + colors : + { + '000' : 'Svart', + '800000' : 'Rødbrun', + '8B4513' : 'Salbrun', + '2F4F4F' : 'Grønnsvart', + '008080' : 'Blågrønn', + '000080' : 'Marineblått', + '4B0082' : 'Indigo', + '696969' : 'Mørk grå', + 'B22222' : 'Mørkerød', + 'A52A2A' : 'Brun', + 'DAA520' : 'Lys brun', + '006400' : 'Mørk grønn', + '40E0D0' : 'Turkis', + '0000CD' : 'Medium blå', + '800080' : 'Purpur', + '808080' : 'Grå', + 'F00' : 'Rød', + 'FF8C00' : 'Mørk oransje', + 'FFD700' : 'Gull', + '008000' : 'Grønn', + '0FF' : 'Cyan', + '00F' : 'Blå', + 'EE82EE' : 'Fiolett', + 'A9A9A9' : 'Svak grå', + 'FFA07A' : 'Rosa-oransje', + 'FFA500' : 'Oransje', + 'FFFF00' : 'Gul', + '00FF00' : 'Lime', + 'AFEEEE' : 'Svak turkis', + 'ADD8E6' : 'Lys Blå', + 'DDA0DD' : 'Plomme', + 'D3D3D3' : 'Lys grå', + 'FFF0F5' : 'Svak lavendelrosa', + 'FAEBD7' : 'Antikk-hvit', + 'FFFFE0' : 'Lys gul', + 'F0FFF0' : 'Honningmelon', + 'F0FFFF' : 'Svakt asurblått', + 'F0F8FF' : 'Svak cyan', + 'E6E6FA' : 'Lavendel', + 'FFF' : 'Hvit' + }, + + scayt : + { + title : 'Stavekontroll mens du skriver', + opera_title : 'Ikke støttet av Opera', + enable : 'Slå på SCAYT', + disable : 'Slå av SCAYT', + about : 'Om SCAYT', + toggle : 'Veksle SCAYT', + options : 'Valg', + langs : 'Språk', + moreSuggestions : 'Flere forslag', + ignore : 'Ignorer', + ignoreAll : 'Ignorer Alle', + addWord : 'Legg til ord', + emptyDic : 'Ordboknavn bør ikke være tom.', + + optionsTab : 'Valg', + allCaps : 'Ikke kontroller ord med kun store bokstaver', + ignoreDomainNames : 'Ikke kontroller domenenavn', + mixedCase : 'Ikke kontroller ord med blandet små og store bokstaver', + mixedWithDigits : 'Ikke kontroller ord som inneholder tall', + + languagesTab : 'Språk', + + dictionariesTab : 'Ordbøker', + dic_field_name : 'Ordboknavn', + dic_create : 'Opprett', + dic_restore : 'Gjenopprett', + dic_delete : 'Slett', + dic_rename : 'Gi nytt navn', + dic_info : 'Brukerordboken lagres først i en informasjonskapsel på din maskin, men det er en begrensning på hvor mye som kan lagres her. Når ordboken blir for stor til å lagres i en informasjonskapsel, vil vi i stedet lagre ordboken på vår server. For å lagre din personlige ordbok på vår server, burde du velge et navn for ordboken din. Hvis du allerede har lagret en ordbok, vennligst skriv inn ordbokens navn og klikk på Gjenopprett-knappen.', + + aboutTab : 'Om' + }, + + about : + { + title : 'Om CKEditor', + dlgTitle : 'Om CKEditor', + help : 'Se $1 for hjelp.', + userGuide : 'CKEditors brukerveiledning', + moreInfo : 'For lisensieringsinformasjon, vennligst besøk vårt nettsted:', + copy : 'Copyright © $1. Alle rettigheter reservert.' + }, + + maximize : 'Maksimer', + minimize : 'Minimer', + + fakeobjects : + { + anchor : 'Anker', + flash : 'Flash-animasjon', + iframe : 'IFrame', + hiddenfield : 'Skjult felt', + unknown : 'Ukjent objekt' + }, + + resize : 'Dra for å skalere', + + colordialog : + { + title : 'Velg farge', + options : 'Alternativer for farge', + highlight : 'Merk', + selected : 'Valgt', + clear : 'Tøm' + }, + + toolbarCollapse : 'Skjul verktøylinje', + toolbarExpand : 'Vis verktøylinje', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Utklippstavle/Angre', + editing : 'Redigering', + forms : 'Skjema', + basicstyles : 'Basisstiler', + paragraph : 'Avsnitt', + links : 'Lenker', + insert : 'Innsetting', + styles : 'Stiler', + colors : 'Farger', + tools : 'Verktøy' + }, + + bidi : + { + ltr : 'Tekstretning fra venstre til høyre', + rtl : 'Tekstretning fra høyre til venstre' + }, + + docprops : + { + label : 'Dokumentegenskaper', + title : 'Dokumentegenskaper', + design : 'Design', + meta : 'Meta-data', + chooseColor : 'Velg', + other : '<annen>', + docTitle : 'Sidetittel', + charset : 'Tegnsett', + charsetOther : 'Annet tegnsett', + charsetASCII : 'ASCII', + charsetCE : 'Sentraleuropeisk', + charsetCT : 'Tradisonell kinesisk(Big5)', + charsetCR : 'Kyrillisk', + charsetGR : 'Gresk', + charsetJP : 'Japansk', + charsetKR : 'Koreansk', + charsetTR : 'Tyrkisk', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Vesteuropeisk', + docType : 'Dokumenttype header', + docTypeOther : 'Annet dokumenttype header', + xhtmlDec : 'Inkluder XHTML-deklarasjon', + bgColor : 'Bakgrunnsfarge', + bgImage : 'URL for bakgrunnsbilde', + bgFixed : 'Lås bakgrunnsbilde', + txtColor : 'Tekstfarge', + margin : 'Sidemargin', + marginTop : 'Topp', + marginLeft : 'Venstre', + marginRight : 'Høyre', + marginBottom : 'Bunn', + metaKeywords : 'Dokument nøkkelord (kommaseparert)', + metaDescription : 'Dokumentbeskrivelse', + metaAuthor : 'Forfatter', + metaCopyright : 'Kopirett', + previewHtml : '<p>Dette er en <strong>eksempeltekst</strong>. Du bruker <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/pl.js b/htdocs/includes/ckeditor/_source/lang/pl.js new file mode 100644 index 0000000000000000000000000000000000000000..4354d0bf21c4ebdacad81e94597c20317985df6b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/pl.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object for the + * Polish language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['pl'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Paski narzędzi edytora', + editor : 'Edytor tekstu sformatowanego', + + // Toolbar buttons without dialogs. + source : 'Źródło dokumentu', + newPage : 'Nowa strona', + save : 'Zapisz', + preview : 'Podgląd', + cut : 'Wytnij', + copy : 'Kopiuj', + paste : 'Wklej', + print : 'Drukuj', + underline : 'Podkreślenie', + bold : 'Pogrubienie', + italic : 'Kursywa', + selectAll : 'Zaznacz wszystko', + removeFormat : 'Usuń formatowanie', + strike : 'Przekreślenie', + subscript : 'Indeks dolny', + superscript : 'Indeks górny', + horizontalrule : 'Wstaw poziomą linię', + pagebreak : 'Wstaw podział strony', + pagebreakAlt : 'Wstaw podział strony', + unlink : 'Usuń odnośnik', + undo : 'Cofnij', + redo : 'Ponów', + + // Common messages and labels. + common : + { + browseServer : 'Przeglądaj', + url : 'Adres URL', + protocol : 'Protokół', + upload : 'Wyślij', + uploadSubmit : 'Wyślij', + image : 'Obrazek', + flash : 'Flash', + form : 'Formularz', + checkbox : 'Pole wyboru (checkbox)', + radio : 'Przycisk opcji (radio)', + textField : 'Pole tekstowe', + textarea : 'Obszar tekstowy', + hiddenField : 'Pole ukryte', + button : 'Przycisk', + select : 'Lista wyboru', + imageButton : 'Przycisk graficzny', + notSet : '<nie ustawiono>', + id : 'Id', + name : 'Nazwa', + langDir : 'Kierunek tekstu', + langDirLtr : 'Od lewej do prawej (LTR)', + langDirRtl : 'Od prawej do lewej (RTL)', + langCode : 'Kod języka', + longDescr : 'Adres URL długiego opisu', + cssClass : 'Nazwa klasy CSS', + advisoryTitle : 'Opis obiektu docelowego', + cssStyle : 'Styl', + ok : 'OK', + cancel : 'Anuluj', + close : 'Zamknij', + preview : 'Podgląd', + generalTab : 'Ogólne', + advancedTab : 'Zaawansowane', + validateNumberFailed : 'Ta wartość nie jest liczbą.', + confirmNewPage : 'Wszystkie niezapisane zmiany zostaną utracone. Czy na pewno wczytać nową stronę?', + confirmCancel : 'Pewne opcje zostały zmienione. Czy na pewno zamknąć okno dialogowe?', + options : 'Opcje', + target : 'Obiekt docelowy', + targetNew : 'Nowe okno (_blank)', + targetTop : 'Okno najwyżej w hierarchii (_top)', + targetSelf : 'To samo okno (_self)', + targetParent : 'Okno nadrzędne (_parent)', + langDirLTR : 'Od lewej do prawej (LTR)', + langDirRTL : 'Od prawej do lewej (RTL)', + styles : 'Style', + cssClasses : 'Klasy arkusza stylów', + width : 'Szerokość', + height : 'Wysokość', + align : 'Wyrównaj', + alignLeft : 'Do lewej', + alignRight : 'Do prawej', + alignCenter : 'Do środka', + alignTop : 'Do góry', + alignMiddle : 'Do środka', + alignBottom : 'Do dołu', + invalidHeight : 'Wysokość musi być liczbą.', + invalidWidth : 'Szerokość musi być liczbą.', + invalidCssLength : 'Wartość podana dla pola "%1" musi być liczbą dodatnią bez jednostki lub z poprawną jednostką długości zgodną z CSS (px, %, in, cm, mm, em, ex, pt lub pc).', + invalidHtmlLength : 'Wartość podana dla pola "%1" musi być liczbą dodatnią bez jednostki lub z poprawną jednostką długości zgodną z HTML (px lub %).', + invalidInlineStyle : 'Wartość podana dla stylu musi składać się z jednej lub większej liczby krotek w formacie "nazwa : wartość", rozdzielonych średnikami.', + cssLengthTooltip : 'Wpisz liczbę dla wartości w pikselach lub liczbę wraz z jednostką długości zgodną z CSS (px, %, in, cm, mm, em, ex, pt lub pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, niedostępne</span>' + }, + + contextmenu : + { + options : 'Opcje menu kontekstowego' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Wstaw znak specjalny', + title : 'Wybierz znak specjalny', + options : 'Opcje znaków specjalnych' + }, + + // Link dialog. + link : + { + toolbar : 'Wstaw/edytuj odnośnik', + other : '<inny>', + menu : 'Edytuj odnośnik', + title : 'Odnośnik', + info : 'Informacje ', + target : 'Obiekt docelowy', + upload : 'Wyślij', + advanced : 'Zaawansowane', + type : 'Typ odnośnika', + toUrl : 'Adres URL', + toAnchor : 'Odnośnik wewnątrz strony (kotwica)', + toEmail : 'Adres e-mail', + targetFrame : '<ramka>', + targetPopup : '<wyskakujące okno>', + targetFrameName : 'Nazwa ramki docelowej', + targetPopupName : 'Nazwa wyskakującego okna', + popupFeatures : 'Właściwości wyskakującego okna', + popupResizable : 'Skalowalny', + popupStatusBar : 'Pasek statusu', + popupLocationBar: 'Pasek adresu', + popupToolbar : 'Pasek narzędzi', + popupMenuBar : 'Pasek menu', + popupFullScreen : 'Pełny ekran (IE)', + popupScrollBars : 'Paski przewijania', + popupDependent : 'Okno zależne (Netscape)', + popupLeft : 'Pozycja w poziomie', + popupTop : 'Pozycja w pionie', + id : 'Id', + langDir : 'Kierunek tekstu', + langDirLTR : 'Od lewej do prawej (LTR)', + langDirRTL : 'Od prawej do lewej (RTL)', + acccessKey : 'Klawisz dostępu', + name : 'Nazwa', + langCode : 'Kod języka', + tabIndex : 'Indeks kolejności', + advisoryTitle : 'Opis obiektu docelowego', + advisoryContentType : 'Typ MIME obiektu docelowego', + cssClasses : 'Nazwa klasy CSS', + charset : 'Kodowanie znaków obiektu docelowego', + styles : 'Styl', + rel : 'Relacja', + selectAnchor : 'Wybierz kotwicę', + anchorName : 'Wg nazwy', + anchorId : 'Wg identyfikatora', + emailAddress : 'Adres e-mail', + emailSubject : 'Temat', + emailBody : 'Treść', + noAnchors : '(W dokumencie nie zdefiniowano żadnych kotwic)', + noUrl : 'Podaj adres URL', + noEmail : 'Podaj adres e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Wstaw/edytuj kotwicę', + menu : 'Właściwości kotwicy', + title : 'Właściwości kotwicy', + name : 'Nazwa kotwicy', + errorName : 'Wpisz nazwę kotwicy', + remove : 'Usuń kotwicę' + }, + + // List style dialog + list: + { + numberedTitle : 'Właściwości list numerowanych', + bulletedTitle : 'Właściwości list wypunktowanych', + type : 'Typ punktora', + start : 'Początek', + validateStartNumber :'Listę musi rozpoczynać liczba całkowita.', + circle : 'Koło', + disc : 'Okrąg', + square : 'Kwadrat', + none : 'Brak', + notset : '<nie ustawiono>', + armenian : 'Numerowanie armeńskie', + georgian : 'Numerowanie gruzińskie (an, ban, gan itd.)', + lowerRoman : 'Małe cyfry rzymskie (i, ii, iii, iv, v itd.)', + upperRoman : 'Duże cyfry rzymskie (I, II, III, IV, V itd.)', + lowerAlpha : 'Małe litery (a, b, c, d, e itd.)', + upperAlpha : 'Duże litery (A, B, C, D, E itd.)', + lowerGreek : 'Małe litery greckie (alpha, beta, gamma itd.)', + decimal : 'Liczby (1, 2, 3 itd.)', + decimalLeadingZero : 'Liczby z początkowym zerem (01, 02, 03 itd.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Znajdź i zamień', + find : 'Znajdź', + replace : 'Zamień', + findWhat : 'Znajdź:', + replaceWith : 'Zastąp przez:', + notFoundMsg : 'Nie znaleziono szukanego hasła.', + findOptions : 'Opcje wyszukiwania', + matchCase : 'Uwzględnij wielkość liter', + matchWord : 'Całe słowa', + matchCyclic : 'Cykliczne dopasowanie', + replaceAll : 'Zamień wszystko', + replaceSuccessMsg : '%1 wystąpień zastąpionych.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabela', + title : 'Właściwości tabeli', + menu : 'Właściwości tabeli', + deleteTable : 'Usuń tabelę', + rows : 'Liczba wierszy', + columns : 'Liczba kolumn', + border : 'Grubość obramowania', + widthPx : 'piksele', + widthPc : '%', + widthUnit : 'jednostka szerokości', + cellSpace : 'Odstęp pomiędzy komórkami', + cellPad : 'Dopełnienie komórek', + caption : 'Tytuł', + summary : 'Podsumowanie', + headers : 'Nagłówki', + headersNone : 'Brak', + headersColumn : 'Pierwsza kolumna', + headersRow : 'Pierwszy wiersz', + headersBoth : 'Oba', + invalidRows : 'Liczba wierszy musi być większa niż 0.', + invalidCols : 'Liczba kolumn musi być większa niż 0.', + invalidBorder : 'Wartość obramowania musi być liczbą.', + invalidWidth : 'Szerokość tabeli musi być liczbą.', + invalidHeight : 'Wysokość tabeli musi być liczbą.', + invalidCellSpacing : 'Odstęp pomiędzy komórkami musi być liczbą dodatnią.', + invalidCellPadding : 'Dopełnienie komórek musi być liczbą dodatnią.', + + cell : + { + menu : 'Komórka', + insertBefore : 'Wstaw komórkę z lewej', + insertAfter : 'Wstaw komórkę z prawej', + deleteCell : 'Usuń komórki', + merge : 'Połącz komórki', + mergeRight : 'Połącz z komórką z prawej', + mergeDown : 'Połącz z komórką poniżej', + splitHorizontal : 'Podziel komórkę poziomo', + splitVertical : 'Podziel komórkę pionowo', + title : 'Właściwości komórki', + cellType : 'Typ komórki', + rowSpan : 'Scalenie wierszy', + colSpan : 'Scalenie komórek', + wordWrap : 'Zawijanie słów', + hAlign : 'Wyrównanie poziome', + vAlign : 'Wyrównanie pionowe', + alignBaseline : 'Linia bazowa', + bgColor : 'Kolor tła', + borderColor : 'Kolor obramowania', + data : 'Dane', + header : 'Nagłówek', + yes : 'Tak', + no : 'Nie', + invalidWidth : 'Szerokość komórki musi być liczbą.', + invalidHeight : 'Wysokość komórki musi być liczbą.', + invalidRowSpan : 'Scalenie wierszy musi być liczbą całkowitą.', + invalidColSpan : 'Scalenie komórek musi być liczbą całkowitą.', + chooseColor : 'Wybierz' + }, + + row : + { + menu : 'Wiersz', + insertBefore : 'Wstaw wiersz powyżej', + insertAfter : 'Wstaw wiersz poniżej', + deleteRow : 'Usuń wiersze' + }, + + column : + { + menu : 'Kolumna', + insertBefore : 'Wstaw kolumnę z lewej', + insertAfter : 'Wstaw kolumnę z prawej', + deleteColumn : 'Usuń kolumny' + } + }, + + // Button Dialog. + button : + { + title : 'Właściwości przycisku', + text : 'Tekst (Wartość)', + type : 'Typ', + typeBtn : 'Przycisk', + typeSbm : 'Wyślij', + typeRst : 'Wyczyść' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Właściwości pola wyboru (checkbox)', + radioTitle : 'Właściwości przycisku opcji (radio)', + value : 'Wartość', + selected : 'Zaznaczone' + }, + + // Form Dialog. + form : + { + title : 'Właściwości formularza', + menu : 'Właściwości formularza', + action : 'Akcja', + method : 'Metoda', + encoding : 'Kodowanie' + }, + + // Select Field Dialog. + select : + { + title : 'Właściwości listy wyboru', + selectInfo : 'Informacje', + opAvail : 'Dostępne opcje', + value : 'Wartość', + size : 'Rozmiar', + lines : 'wierszy', + chkMulti : 'Wielokrotny wybór', + opText : 'Tekst', + opValue : 'Wartość', + btnAdd : 'Dodaj', + btnModify : 'Zmień', + btnUp : 'Do góry', + btnDown : 'Do dołu', + btnSetValue : 'Ustaw jako zaznaczoną', + btnDelete : 'Usuń' + }, + + // Textarea Dialog. + textarea : + { + title : 'Właściwości obszaru tekstowego', + cols : 'Liczba kolumn', + rows : 'Liczba wierszy' + }, + + // Text Field Dialog. + textfield : + { + title : 'Właściwości pola tekstowego', + name : 'Nazwa', + value : 'Wartość', + charWidth : 'Szerokość w znakach', + maxChars : 'Szerokość maksymalna', + type : 'Typ', + typeText : 'Tekst', + typePass : 'Hasło' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Właściwości pola ukrytego', + name : 'Nazwa', + value : 'Wartość' + }, + + // Image Dialog. + image : + { + title : 'Właściwości obrazka', + titleButton : 'Właściwości przycisku graficznego', + menu : 'Właściwości obrazka', + infoTab : 'Informacje o obrazku', + btnUpload : 'Wyślij', + upload : 'Wyślij', + alt : 'Tekst zastępczy', + lockRatio : 'Zablokuj proporcje', + resetSize : 'Przywróć rozmiar', + border : 'Obramowanie', + hSpace : 'Odstęp poziomy', + vSpace : 'Odstęp pionowy', + alertUrl : 'Podaj adres obrazka.', + linkTab : 'Hiperłącze', + button2Img : 'Czy chcesz przekonwertować zaznaczony przycisk graficzny do zwykłego obrazka?', + img2Button : 'Czy chcesz przekonwertować zaznaczony obrazek do przycisku graficznego?', + urlMissing : 'Podaj adres URL obrazka.', + validateBorder : 'Wartość obramowania musi być liczbą całkowitą.', + validateHSpace : 'Wartość odstępu poziomego musi być liczbą całkowitą.', + validateVSpace : 'Wartość odstępu pionowego musi być liczbą całkowitą.' + }, + + // Flash Dialog + flash : + { + properties : 'Właściwości obiektu Flash', + propertiesTab : 'Właściwości', + title : 'Właściwości obiektu Flash', + chkPlay : 'Autoodtwarzanie', + chkLoop : 'Pętla', + chkMenu : 'Włącz menu', + chkFull : 'Zezwól na pełny ekran', + scale : 'Skaluj', + scaleAll : 'Pokaż wszystko', + scaleNoBorder : 'Bez obramowania', + scaleFit : 'Dokładne dopasowanie', + access : 'Dostęp skryptów', + accessAlways : 'Zawsze', + accessSameDomain: 'Ta sama domena', + accessNever : 'Nigdy', + alignAbsBottom : 'Do dołu', + alignAbsMiddle : 'Do środka w pionie', + alignBaseline : 'Do linii bazowej', + alignTextTop : 'Do góry tekstu', + quality : 'Jakość', + qualityBest : 'Najlepsza', + qualityHigh : 'Wysoka', + qualityAutoHigh : 'Auto wysoka', + qualityMedium : 'Średnia', + qualityAutoLow : 'Auto niska', + qualityLow : 'Niska', + windowModeWindow: 'Okno', + windowModeOpaque: 'Nieprzezroczyste', + windowModeTransparent : 'Przezroczyste', + windowMode : 'Tryb okna', + flashvars : 'Zmienne obiektu Flash', + bgcolor : 'Kolor tła', + hSpace : 'Odstęp poziomy', + vSpace : 'Odstęp pionowy', + validateSrc : 'Podaj adres URL', + validateHSpace : 'Odstęp poziomy musi być liczbą.', + validateVSpace : 'Odstęp pionowy musi być liczbą.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Sprawdź pisownię', + title : 'Sprawdź pisownię', + notAvailable : 'Przepraszamy, ale usługa jest obecnie niedostępna.', + errorLoading : 'Błąd wczytywania hosta aplikacji usługi: %s.', + notInDic : 'Słowa nie ma w słowniku', + changeTo : 'Zmień na', + btnIgnore : 'Ignoruj', + btnIgnoreAll : 'Ignoruj wszystkie', + btnReplace : 'Zmień', + btnReplaceAll : 'Zmień wszystkie', + btnUndo : 'Cofnij', + noSuggestions : '- Brak sugestii -', + progress : 'Trwa sprawdzanie...', + noMispell : 'Sprawdzanie zakończone: nie znaleziono błędów', + noChanges : 'Sprawdzanie zakończone: nie zmieniono żadnego słowa', + oneChange : 'Sprawdzanie zakończone: zmieniono jedno słowo', + manyChanges : 'Sprawdzanie zakończone: zmieniono %l słów', + ieSpellDownload : 'Słownik nie jest zainstalowany. Czy chcesz go pobrać?' + }, + + smiley : + { + toolbar : 'Emotikony', + title : 'Wstaw emotikona', + options : 'Opcje emotikonów' + }, + + elementsPath : + { + eleLabel : 'Ścieżka elementów', + eleTitle : 'element %1' + }, + + numberedlist : 'Lista numerowana', + bulletedlist : 'Lista wypunktowana', + indent : 'Zwiększ wcięcie', + outdent : 'Zmniejsz wcięcie', + + justify : + { + left : 'Wyrównaj do lewej', + center : 'Wyśrodkuj', + right : 'Wyrównaj do prawej', + block : 'Wyjustuj' + }, + + blockquote : 'Cytat', + + clipboard : + { + title : 'Wklej', + cutError : 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne wycinanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+X.', + copyError : 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne kopiowanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+C.', + pasteMsg : 'Wklej tekst w poniższym polu, używając skrótu klawiaturowego (<STRONG>Ctrl/Cmd+V</STRONG>), i kliknij <STRONG>OK</STRONG>.', + securityMsg : 'Zabezpieczenia przeglądarki uniemożliwiają wklejenie danych bezpośrednio do edytora. Proszę ponownie wkleić dane w tym oknie.', + pasteArea : 'Obszar wklejania' + }, + + pastefromword : + { + confirmCleanup : 'Tekst, który chcesz wkleić, prawdopodobnie pochodzi z programu Microsoft Word. Czy chcesz go wyczyścić przed wklejeniem?', + toolbar : 'Wklej z programu MS Word', + title : 'Wklej z programu MS Word', + error : 'Wyczyszczenie wklejonych danych nie było możliwe z powodu wystąpienia błędu.' + }, + + pasteText : + { + button : 'Wklej jako czysty tekst', + title : 'Wklej jako czysty tekst' + }, + + templates : + { + button : 'Szablony', + title : 'Szablony zawartości', + options : 'Opcje szablonów', + insertOption : 'Zastąp obecną zawartość', + selectPromptMsg : 'Wybierz szablon do otwarcia w edytorze<br>(obecna zawartość okna edytora zostanie utracona):', + emptyListMsg : '(Brak zdefiniowanych szablonów)' + }, + + showBlocks : 'Pokaż bloki', + + stylesCombo : + { + label : 'Styl', + panelTitle : 'Style formatujące', + panelTitle1 : 'Style blokowe', + panelTitle2 : 'Style liniowe', + panelTitle3 : 'Style obiektowe' + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normalny', + tag_pre : 'Tekst sformatowany', + tag_address : 'Adres', + tag_h1 : 'Nagłówek 1', + tag_h2 : 'Nagłówek 2', + tag_h3 : 'Nagłówek 3', + tag_h4 : 'Nagłówek 4', + tag_h5 : 'Nagłówek 5', + tag_h6 : 'Nagłówek 6', + tag_div : 'Normalny (DIV)' + }, + + div : + { + title : 'Utwórz pojemnik Div', + toolbar : 'Utwórz pojemnik Div', + cssClassInputLabel : 'Klasy arkusza stylów', + styleSelectLabel : 'Styl', + IdInputLabel : 'Id', + languageCodeInputLabel : 'Kod języka', + inlineStyleInputLabel : 'Style liniowe', + advisoryTitleInputLabel : 'Opis obiektu docelowego', + langDirLabel : 'Kierunek tekstu', + langDirLTRLabel : 'Od lewej do prawej (LTR)', + langDirRTLLabel : 'Od prawej do lewej (RTL)', + edit : 'Edytuj pojemnik Div', + remove : 'Usuń pojemnik Div' + }, + + iframe : + { + title : 'Właściwości elementu IFrame', + toolbar : 'IFrame', + noUrl : 'Podaj adres URL elementu IFrame', + scrolling : 'Włącz paski przewijania', + border : 'Pokaż obramowanie obiektu IFrame' + }, + + font : + { + label : 'Czcionka', + voiceLabel : 'Czcionka', + panelTitle : 'Czcionka' + }, + + fontSize : + { + label : 'Rozmiar', + voiceLabel : 'Rozmiar czcionki', + panelTitle : 'Rozmiar' + }, + + colorButton : + { + textColorTitle : 'Kolor tekstu', + bgColorTitle : 'Kolor tła', + panelTitle : 'Kolory', + auto : 'Automatycznie', + more : 'Więcej kolorów...' + }, + + colors : + { + '000' : 'Czarny', + '800000' : 'Kasztanowy', + '8B4513' : 'Czekoladowy', + '2F4F4F' : 'Ciemnografitowy', + '008080' : 'Morski', + '000080' : 'Granatowy', + '4B0082' : 'Indygo', + '696969' : 'Ciemnoszary', + 'B22222' : 'Czerwień żelazowa', + 'A52A2A' : 'Brązowy', + 'DAA520' : 'Ciemnozłoty', + '006400' : 'Ciemnozielony', + '40E0D0' : 'Turkusowy', + '0000CD' : 'Ciemnoniebieski', + '800080' : 'Purpurowy', + '808080' : 'Szary', + 'F00' : 'Czerwony', + 'FF8C00' : 'Ciemnopomarańczowy', + 'FFD700' : 'Złoty', + '008000' : 'Zielony', + '0FF' : 'Cyjan', + '00F' : 'Niebieski', + 'EE82EE' : 'Fioletowy', + 'A9A9A9' : 'Przygaszony szary', + 'FFA07A' : 'Łososiowy', + 'FFA500' : 'Pomarańczowy', + 'FFFF00' : 'Żółty', + '00FF00' : 'Limonkowy', + 'AFEEEE' : 'Bladoturkusowy', + 'ADD8E6' : 'Jasnoniebieski', + 'DDA0DD' : 'Śliwkowy', + 'D3D3D3' : 'Jasnoszary', + 'FFF0F5' : 'Jasnolawendowy', + 'FAEBD7' : 'Kremowobiały', + 'FFFFE0' : 'Jasnożółty', + 'F0FFF0' : 'Bladozielony', + 'F0FFFF' : 'Jasnolazurowy', + 'F0F8FF' : 'Jasnobłękitny', + 'E6E6FA' : 'Lawendowy', + 'FFF' : 'Biały' + }, + + scayt : + { + title : 'Sprawdź pisownię podczas pisania (SCAYT)', + opera_title : 'Funkcja nie jest obsługiwana przez przeglądarkę Opera', + enable : 'Włącz SCAYT', + disable : 'Wyłącz SCAYT', + about : 'Informacje o SCAYT', + toggle : 'Przełącz SCAYT', + options : 'Opcje', + langs : 'Języki', + moreSuggestions : 'Więcej sugestii', + ignore : 'Ignoruj', + ignoreAll : 'Ignoruj wszystkie', + addWord : 'Dodaj słowo', + emptyDic : 'Nazwa słownika nie może być pusta.', + + optionsTab : 'Opcje', + allCaps : 'Ignoruj wyrazy pisane dużymi literami', + ignoreDomainNames : 'Ignoruj nazwy domen', + mixedCase : 'Ignoruj wyrazy pisane dużymi i małymi literami', + mixedWithDigits : 'Ignoruj wyrazy zawierające cyfry', + + languagesTab : 'Języki', + + dictionariesTab : 'Słowniki', + dic_field_name : 'Nazwa słownika', + dic_create : 'Utwórz', + dic_restore : 'Przywróć', + dic_delete : 'Usuń', + dic_rename : 'Zmień nazwę', + dic_info : 'Początkowo słownik użytkownika przechowywany jest w cookie. Pliki cookie mają jednak ograniczoną pojemność. Jeśli słownik użytkownika przekroczy wielkość dopuszczalną dla pliku cookie, możliwe jest przechowanie go na naszym serwerze. W celu zapisania słownika na serwerze niezbędne jest nadanie mu nazwy. Jeśli słownik został już zapisany na serwerze, wystarczy podać jego nazwę i nacisnąć przycisk Przywróć.', + + aboutTab : 'Informacje o SCAYT' + }, + + about : + { + title : 'Informacje o programie CKEditor', + dlgTitle : 'Informacje o programie CKEditor', + help : 'Pomoc znajdziesz w $1.', + userGuide : 'podręczniku użytkownika programu CKEditor', + moreInfo : 'Informacje na temat licencji można znaleźć na naszej stronie:', + copy : 'Copyright © $1. Wszelkie prawa zastrzeżone.' + }, + + maximize : 'Maksymalizuj', + minimize : 'Minimalizuj', + + fakeobjects : + { + anchor : 'Kotwica', + flash : 'Animacja Flash', + iframe : 'IFrame', + hiddenfield : 'Pole ukryte', + unknown : 'Nieznany obiekt' + }, + + resize : 'Przeciągnij, aby zmienić rozmiar', + + colordialog : + { + title : 'Wybierz kolor', + options : 'Opcje koloru', + highlight : 'Zaznacz', + selected : 'Wybrany', + clear : 'Wyczyść' + }, + + toolbarCollapse : 'Zwiń pasek narzędzi', + toolbarExpand : 'Rozwiń pasek narzędzi', + + toolbarGroups : + { + document : 'Dokument', + clipboard : 'Schowek/Wstecz', + editing : 'Edycja', + forms : 'Formularze', + basicstyles : 'Style podstawowe', + paragraph : 'Akapit', + links : 'Hiperłącza', + insert : 'Wstawianie', + styles : 'Style', + colors : 'Kolory', + tools : 'Narzędzia' + }, + + bidi : + { + ltr : 'Kierunek tekstu od lewej strony do prawej', + rtl : 'Kierunek tekstu od prawej strony do lewej' + }, + + docprops : + { + label : 'Właściwości dokumentu', + title : 'Właściwości dokumentu', + design : 'Projekt strony', + meta : 'Znaczniki meta', + chooseColor : 'Wybierz', + other : 'Inne', + docTitle : 'Tytuł strony', + charset : 'Kodowanie znaków', + charsetOther : 'Inne kodowanie znaków', + charsetASCII : 'ASCII', + charsetCE : 'Środkowoeuropejskie', + charsetCT : 'Chińskie tradycyjne (Big5)', + charsetCR : 'Cyrylica', + charsetGR : 'Greckie', + charsetJP : 'Japońskie', + charsetKR : 'Koreańskie', + charsetTR : 'Tureckie', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Zachodnioeuropejskie', + docType : 'Definicja typu dokumentu', + docTypeOther : 'Inna definicja typu dokumentu', + xhtmlDec : 'Uwzględnij deklaracje XHTML', + bgColor : 'Kolor tła', + bgImage : 'Adres URL obrazka tła', + bgFixed : 'Tło nieruchome (nieprzewijające się)', + txtColor : 'Kolor tekstu', + margin : 'Marginesy strony', + marginTop : 'Górny', + marginLeft : 'Lewy', + marginRight : 'Prawy', + marginBottom : 'Dolny', + metaKeywords : 'Słowa kluczowe dokumentu (oddzielone przecinkami)', + metaDescription : 'Opis dokumentu', + metaAuthor : 'Autor', + metaCopyright : 'Prawa autorskie', + previewHtml : '<p>To jest <strong>przykładowy tekst</strong>. Korzystasz z programu <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/pt-br.js b/htdocs/includes/ckeditor/_source/lang/pt-br.js new file mode 100644 index 0000000000000000000000000000000000000000..4a2b5e997667a514688a287de7d712d4cc27739e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/pt-br.js @@ -0,0 +1,815 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** +* @fileOverview +*/ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['pt-br'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Editor de texto rico, %1', + editorHelp : 'Pressione ALT+0 para ajuda', + + // ARIA descriptions. + toolbars : 'Barra de Ferramentas do Editor', + editor : 'Editor de Texto', + + // Toolbar buttons without dialogs. + source : 'Código-Fonte', + newPage : 'Novo', + save : 'Salvar', + preview : 'Visualizar', + cut : 'Recortar', + copy : 'Copiar', + paste : 'Colar', + print : 'Imprimir', + underline : 'Sublinhado', + bold : 'Negrito', + italic : 'Itálico', + selectAll : 'Selecionar Tudo', + removeFormat : 'Remover Formatação', + strike : 'Tachado', + subscript : 'Subscrito', + superscript : 'Sobrescrito', + horizontalrule : 'Inserir Linha Horizontal', + pagebreak : 'Inserir Quebra de Página', + pagebreakAlt : 'Quebra de Página', + unlink : 'Remover Link', + undo : 'Desfazer', + redo : 'Refazer', + + // Common messages and labels. + common : + { + browseServer : 'Localizar no Servidor', + url : 'URL', + protocol : 'Protocolo', + upload : 'Enviar ao Servidor', + uploadSubmit : 'Enviar para o Servidor', + image : 'Imagem', + flash : 'Flash', + form : 'Formulário', + checkbox : 'Caixa de Seleção', + radio : 'Botão de Opção', + textField : 'Caixa de Texto', + textarea : 'Área de Texto', + hiddenField : 'Campo Oculto', + button : 'Botão', + select : 'Caixa de Listagem', + imageButton : 'Botão de Imagem', + notSet : '<não ajustado>', + id : 'Id', + name : 'Nome', + langDir : 'Direção do idioma', + langDirLtr : 'Esquerda para Direita (LTR)', + langDirRtl : 'Direita para Esquerda (RTL)', + langCode : 'Idioma', + longDescr : 'Descrição da URL', + cssClass : 'Classe de CSS', + advisoryTitle : 'Título', + cssStyle : 'Estilos', + ok : 'OK', + cancel : 'Cancelar', + close : 'Fechar', + preview : 'Visualizar', + generalTab : 'Geral', + advancedTab : 'Avançado', + validateNumberFailed : 'Este valor não é um número.', + confirmNewPage : 'Todas as mudanças não salvas serão perdidas. Tem certeza de que quer abrir uma nova página?', + confirmCancel : 'Algumas opções foram alteradas. Tem certeza de que quer fechar a caixa de diálogo?', + options : 'Opções', + target : 'Destino', + targetNew : 'Nova Janela (_blank)', + targetTop : 'Janela de Cima (_top)', + targetSelf : 'Mesma Janela (_self)', + targetParent : 'Janela Pai (_parent)', + langDirLTR : 'Esquerda para Direita (LTR)', + langDirRTL : 'Direita para Esquerda (RTL)', + styles : 'Estilo', + cssClasses : 'Classes', + width : 'Largura', + height : 'Altura', + align : 'Alinhamento', + alignLeft : 'Esquerda', + alignRight : 'Direita', + alignCenter : 'Centralizado', + alignTop : 'Superior', + alignMiddle : 'Centralizado', + alignBottom : 'Inferior', + invalidHeight : 'A altura tem que ser um número', + invalidWidth : 'A largura tem que ser um número.', + invalidCssLength : 'O valor do campo "%1" deve ser um número positivo opcionalmente seguido por uma válida unidade de medida de CSS (px, %, in, cm, mm, em, ex, pt, or pc).', + invalidHtmlLength : 'O valor do campo "%1" deve ser um número positivo opcionalmente seguido por uma válida unidade de medida de HTML (px or %).', + invalidInlineStyle : 'O valor válido para estilo deve conter uma ou mais tuplas no formato "nome : valor", separados por ponto e vírgula.', + cssLengthTooltip : 'Insira um número para valor em pixels ou um número seguido de uma válida unidade de medida de CSS (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, indisponível</span>' + }, + + contextmenu : + { + options : 'Opções Menu de Contexto' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Inserir Caractere Especial', + title : 'Selecione um Caractere Especial', + options : 'Opções de Caractere Especial' + }, + + // Link dialog. + link : + { + toolbar : 'Inserir/Editar Link', + other : '<outro>', + menu : 'Editar Link', + title : 'Editar Link', + info : 'Informações', + target : 'Destino', + upload : 'Enviar ao Servidor', + advanced : 'Avançado', + type : 'Tipo de hiperlink', + toUrl : 'URL', + toAnchor : 'Âncora nesta página', + toEmail : 'E-Mail', + targetFrame : '<frame>', + targetPopup : '<janela popup>', + targetFrameName : 'Nome do Frame de Destino', + targetPopupName : 'Nome da Janela Pop-up', + popupFeatures : 'Propriedades da Janela Pop-up', + popupResizable : 'Redimensionável', + popupStatusBar : 'Barra de Status', + popupLocationBar: 'Barra de Endereços', + popupToolbar : 'Barra de Ferramentas', + popupMenuBar : 'Barra de Menus', + popupFullScreen : 'Modo Tela Cheia (IE)', + popupScrollBars : 'Barras de Rolagem', + popupDependent : 'Dependente (Netscape)', + popupLeft : 'Esquerda', + popupTop : 'Topo', + id : 'Id', + langDir : 'Direção do idioma', + langDirLTR : 'Esquerda para Direita (LTR)', + langDirRTL : 'Direita para Esquerda (RTL)', + acccessKey : 'Chave de Acesso', + name : 'Nome', + langCode : 'Direção do idioma', + tabIndex : 'Índice de Tabulação', + advisoryTitle : 'Título', + advisoryContentType : 'Tipo de Conteúdo', + cssClasses : 'Classe de CSS', + charset : 'Charset do Link', + styles : 'Estilos', + rel : 'Tipo de Relação', + selectAnchor : 'Selecione uma âncora', + anchorName : 'Nome da âncora', + anchorId : 'Id da âncora', + emailAddress : 'Endereço E-Mail', + emailSubject : 'Assunto da Mensagem', + emailBody : 'Corpo da Mensagem', + noAnchors : '(Não há âncoras no documento)', + noUrl : 'Por favor, digite o endereço do Link', + noEmail : 'Por favor, digite o endereço de e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Inserir/Editar Âncora', + menu : 'Formatar Âncora', + title : 'Formatar Âncora', + name : 'Nome da Âncora', + errorName : 'Por favor, digite o nome da âncora', + remove : 'Remover Âncora' + }, + + // List style dialog + list: + { + numberedTitle : 'Propriedades da Lista Numerada', + bulletedTitle : 'Propriedades da Lista sem Numeros', + type : 'Tipo', + start : 'Início', + validateStartNumber :'O número inicial da lista deve ser um número inteiro.', + circle : 'Círculo', + disc : 'Disco', + square : 'Quadrado', + none : 'Nenhum', + notset : '<não definido>', + armenian : 'Numeração Armêna', + georgian : 'Numeração da Geórgia (an, ban, gan, etc.)', + lowerRoman : 'Numeração Romana minúscula (i, ii, iii, iv, v, etc.)', + upperRoman : 'Numeração Romana maiúscula (I, II, III, IV, V, etc.)', + lowerAlpha : 'Numeração Alfabética minúscula (a, b, c, d, e, etc.)', + upperAlpha : 'Numeração Alfabética Maiúscula (A, B, C, D, E, etc.)', + lowerGreek : 'Numeração Grega minúscula (alpha, beta, gamma, etc.)', + decimal : 'Numeração Decimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Numeração Decimal com zeros (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Localizar e Substituir', + find : 'Localizar', + replace : 'Substituir', + findWhat : 'Procurar por:', + replaceWith : 'Substituir por:', + notFoundMsg : 'O texto especificado não foi encontrado.', + findOptions : 'Opções', + matchCase : 'Coincidir Maiúsculas/Minúsculas', + matchWord : 'Coincidir a palavra inteira', + matchCyclic : 'Coincidir cíclico', + replaceAll : 'Substituir Tudo', + replaceSuccessMsg : '%1 ocorrência(s) substituída(s).' + }, + + // Table Dialog + table : + { + toolbar : 'Tabela', + title : 'Formatar Tabela', + menu : 'Formatar Tabela', + deleteTable : 'Apagar Tabela', + rows : 'Linhas', + columns : 'Colunas', + border : 'Borda', + widthPx : 'pixels', + widthPc : '%', + widthUnit : 'unidade largura', + cellSpace : 'Espaçamento', + cellPad : 'Margem interna', + caption : 'Legenda', + summary : 'Resumo', + headers : 'Cabeçalho', + headersNone : 'Nenhum', + headersColumn : 'Primeira coluna', + headersRow : 'Primeira linha', + headersBoth : 'Ambos', + invalidRows : 'O número de linhas tem que ser um número maior que 0.', + invalidCols : 'O número de colunas tem que ser um número maior que 0.', + invalidBorder : 'O tamanho da borda tem que ser um número.', + invalidWidth : 'A largura da tabela tem que ser um número.', + invalidHeight : 'A altura da tabela tem que ser um número.', + invalidCellSpacing : 'O espaçamento das células tem que ser um número.', + invalidCellPadding : 'A margem interna das células tem que ser um número.', + + cell : + { + menu : 'Célula', + insertBefore : 'Inserir célula a esquerda', + insertAfter : 'Inserir célula a direita', + deleteCell : 'Remover Células', + merge : 'Mesclar Células', + mergeRight : 'Mesclar com célula a direita', + mergeDown : 'Mesclar com célula abaixo', + splitHorizontal : 'Dividir célula horizontalmente', + splitVertical : 'Dividir célula verticalmente', + title : 'Propriedades da célula', + cellType : 'Tipo de célula', + rowSpan : 'Linhas cobertas', + colSpan : 'Colunas cobertas', + wordWrap : 'Quebra de palavra', + hAlign : 'Alinhamento horizontal', + vAlign : 'Alinhamento vertical', + alignBaseline : 'Patamar de alinhamento', + bgColor : 'Cor de fundo', + borderColor : 'Cor das bordas', + data : 'Dados', + header : 'Cabeçalho', + yes : 'Sim', + no : 'Não', + invalidWidth : 'A largura da célula tem que ser um número.', + invalidHeight : 'A altura da célula tem que ser um número.', + invalidRowSpan : 'Linhas cobertas tem que ser um número inteiro.', + invalidColSpan : 'Colunas cobertas tem que ser um número inteiro.', + chooseColor : 'Escolher' + }, + + row : + { + menu : 'Linha', + insertBefore : 'Inserir linha acima', + insertAfter : 'Inserir linha abaixo', + deleteRow : 'Remover Linhas' + }, + + column : + { + menu : 'Coluna', + insertBefore : 'Inserir coluna a esquerda', + insertAfter : 'Inserir coluna a direita', + deleteColumn : 'Remover Colunas' + } + }, + + // Button Dialog. + button : + { + title : 'Formatar Botão', + text : 'Texto (Valor)', + type : 'Tipo', + typeBtn : 'Botão', + typeSbm : 'Enviar', + typeRst : 'Limpar' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Formatar Caixa de Seleção', + radioTitle : 'Formatar Botão de Opção', + value : 'Valor', + selected : 'Selecionado' + }, + + // Form Dialog. + form : + { + title : 'Formatar Formulário', + menu : 'Formatar Formulário', + action : 'Ação', + method : 'Método', + encoding : 'Codificação' + }, + + // Select Field Dialog. + select : + { + title : 'Formatar Caixa de Listagem', + selectInfo : 'Informações', + opAvail : 'Opções disponíveis', + value : 'Valor', + size : 'Tamanho', + lines : 'linhas', + chkMulti : 'Permitir múltiplas seleções', + opText : 'Texto', + opValue : 'Valor', + btnAdd : 'Adicionar', + btnModify : 'Modificar', + btnUp : 'Para cima', + btnDown : 'Para baixo', + btnSetValue : 'Definir como selecionado', + btnDelete : 'Remover' + }, + + // Textarea Dialog. + textarea : + { + title : 'Formatar Área de Texto', + cols : 'Colunas', + rows : 'Linhas' + }, + + // Text Field Dialog. + textfield : + { + title : 'Formatar Caixa de Texto', + name : 'Nome', + value : 'Valor', + charWidth : 'Comprimento (em caracteres)', + maxChars : 'Número Máximo de Caracteres', + type : 'Tipo', + typeText : 'Texto', + typePass : 'Senha' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Formatar Campo Oculto', + name : 'Nome', + value : 'Valor' + }, + + // Image Dialog. + image : + { + title : 'Formatar Imagem', + titleButton : 'Formatar Botão de Imagem', + menu : 'Formatar Imagem', + infoTab : 'Informações da Imagem', + btnUpload : 'Enviar para o Servidor', + upload : 'Enviar', + alt : 'Texto Alternativo', + lockRatio : 'Travar Proporções', + resetSize : 'Redefinir para o Tamanho Original', + border : 'Borda', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Por favor, digite a URL da imagem.', + linkTab : 'Link', + button2Img : 'Deseja transformar o botão de imagem em uma imagem comum?', + img2Button : 'Deseja transformar a imagem em um botão de imagem?', + urlMissing : 'URL da imagem está faltando.', + validateBorder : 'A borda deve ser um número inteiro.', + validateHSpace : 'O HSpace deve ser um número inteiro.', + validateVSpace : 'O VSpace deve ser um número inteiro.' + }, + + // Flash Dialog + flash : + { + properties : 'Propriedades do Flash', + propertiesTab : 'Propriedades', + title : 'Propriedades do Flash', + chkPlay : 'Tocar Automaticamente', + chkLoop : 'Tocar Infinitamente', + chkMenu : 'Habilita Menu Flash', + chkFull : 'Permitir tela cheia', + scale : 'Escala', + scaleAll : 'Mostrar tudo', + scaleNoBorder : 'Sem Borda', + scaleFit : 'Escala Exata', + access : 'Acesso ao script', + accessAlways : 'Sempre', + accessSameDomain: 'Acessar Mesmo Domínio', + accessNever : 'Nunca', + alignAbsBottom : 'Inferior Absoluto', + alignAbsMiddle : 'Centralizado Absoluto', + alignBaseline : 'Baseline', + alignTextTop : 'Superior Absoluto', + quality : 'Qualidade', + qualityBest : 'Qualidade Melhor', + qualityHigh : 'Qualidade Alta', + qualityAutoHigh : 'Qualidade Alta Automática', + qualityMedium : 'Qualidade Média', + qualityAutoLow : 'Qualidade Baixa Automática', + qualityLow : 'Qualidade Baixa', + windowModeWindow: 'Janela', + windowModeOpaque: 'Opaca', + windowModeTransparent : 'Transparente', + windowMode : 'Modo da janela', + flashvars : 'Variáveis do Flash', + bgcolor : 'Cor do Plano de Fundo', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Por favor, digite o endereço do link', + validateHSpace : 'O HSpace tem que ser um número', + validateVSpace : 'O VSpace tem que ser um número.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Verificar Ortografia', + title : 'Corretor Ortográfico', + notAvailable : 'Desculpe, o serviço não está disponível no momento.', + errorLoading : 'Erro carregando servidor de aplicação: %s.', + notInDic : 'Não encontrada', + changeTo : 'Alterar para', + btnIgnore : 'Ignorar uma vez', + btnIgnoreAll : 'Ignorar Todas', + btnReplace : 'Alterar', + btnReplaceAll : 'Alterar Todas', + btnUndo : 'Desfazer', + noSuggestions : '-sem sugestões de ortografia-', + progress : 'Verificação ortográfica em andamento...', + noMispell : 'Verificação encerrada: Não foram encontrados erros de ortografia', + noChanges : 'Verificação ortográfica encerrada: Não houve alterações', + oneChange : 'Verificação ortográfica encerrada: Uma palavra foi alterada', + manyChanges : 'Verificação ortográfica encerrada: %1 palavras foram alteradas', + ieSpellDownload : 'A verificação ortográfica não foi instalada. Você gostaria de realizar o download agora?' + }, + + smiley : + { + toolbar : 'Emoticon', + title : 'Inserir Emoticon', + options : 'Opções de Emoticons' + }, + + elementsPath : + { + eleLabel : 'Caminho dos Elementos', + eleTitle : 'Elemento %1' + }, + + numberedlist : 'Lista numerada', + bulletedlist : 'Lista sem números', + indent : 'Aumentar Recuo', + outdent : 'Diminuir Recuo', + + justify : + { + left : 'Alinhar Esquerda', + center : 'Centralizar', + right : 'Alinhar Direita', + block : 'Justificado' + }, + + blockquote : 'Citação', + + clipboard : + { + title : 'Colar', + cutError : 'As configurações de segurança do seu navegador não permitem que o editor execute operações de recortar automaticamente. Por favor, utilize o teclado para recortar (Ctrl/Cmd+X).', + copyError : 'As configurações de segurança do seu navegador não permitem que o editor execute operações de copiar automaticamente. Por favor, utilize o teclado para copiar (Ctrl/Cmd+C).', + pasteMsg : 'Transfira o link usado na caixa usando o teclado com (<STRONG>Ctrl/Cmd+V</STRONG>) e <STRONG>OK</STRONG>.', + securityMsg : 'As configurações de segurança do seu navegador não permitem que o editor acesse os dados da área de transferência diretamente. Por favor cole o conteúdo manualmente nesta janela.', + pasteArea : 'Área para Colar' + }, + + pastefromword : + { + confirmCleanup : 'O texto que você deseja colar parece ter sido copiado do Word. Você gostaria de remover a formatação antes de colar?', + toolbar : 'Colar do Word', + title : 'Colar do Word', + error : 'Não foi possível limpar os dados colados devido a um erro interno' + }, + + pasteText : + { + button : 'Colar como Texto sem Formatação', + title : 'Colar como Texto sem Formatação' + }, + + templates : + { + button : 'Modelos de layout', + title : 'Modelo de layout de conteúdo', + options : 'Opções de Template', + insertOption : 'Substituir o conteúdo atual', + selectPromptMsg : 'Selecione um modelo de layout para ser aberto no editor<br>(o conteúdo atual será perdido):', + emptyListMsg : '(Não foram definidos modelos de layout)' + }, + + showBlocks : 'Mostrar blocos de código', + + stylesCombo : + { + label : 'Estilo', + panelTitle : 'Estilos de Formatação', + panelTitle1 : 'Estilos de bloco', + panelTitle2 : 'Estilos de texto corrido', + panelTitle3 : 'Estilos de objeto' + }, + + format : + { + label : 'Formatação', + panelTitle : 'Formatação', + + tag_p : 'Normal', + tag_pre : 'Formatado', + tag_address : 'Endereço', + tag_h1 : 'Título 1', + tag_h2 : 'Título 2', + tag_h3 : 'Título 3', + tag_h4 : 'Título 4', + tag_h5 : 'Título 5', + tag_h6 : 'Título 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Criar Container de DIV', + toolbar : 'Criar Container de DIV', + cssClassInputLabel : 'Classes de CSS', + styleSelectLabel : 'Estilo', + IdInputLabel : 'Id', + languageCodeInputLabel : 'Código de Idioma', + inlineStyleInputLabel : 'Estilo Inline', + advisoryTitleInputLabel : 'Título Consulta', + langDirLabel : 'Direção da Escrita', + langDirLTRLabel : 'Esquerda para Direita (LTR)', + langDirRTLLabel : 'Direita para Esquerda (RTL)', + edit : 'Editar Div', + remove : 'Remover Div' + }, + + iframe : + { + title : 'Propriedade do IFrame', + toolbar : 'IFrame', + noUrl : 'Insira a URL do iframe', + scrolling : 'Abilita scrollbars', + border : 'Mostra borda do iframe' + }, + + font : + { + label : 'Fonte', + voiceLabel : 'Fonte', + panelTitle : 'Fonte' + }, + + fontSize : + { + label : 'Tamanho', + voiceLabel : 'Tamanho da fonte', + panelTitle : 'Tamanho' + }, + + colorButton : + { + textColorTitle : 'Cor do Texto', + bgColorTitle : 'Cor do Plano de Fundo', + panelTitle : 'Cores', + auto : 'Automático', + more : 'Mais Cores...' + }, + + colors : + { + '000' : 'Preto', + '800000' : 'Foquete', + '8B4513' : 'Marrom 1', + '2F4F4F' : 'Cinza 1', + '008080' : 'Cerceta', + '000080' : 'Azul Marinho', + '4B0082' : 'Índigo', + '696969' : 'Cinza 2', + 'B22222' : 'Tijolo de Fogo', + 'A52A2A' : 'Marrom 2', + 'DAA520' : 'Vara Dourada', + '006400' : 'Verde Escuro', + '40E0D0' : 'Turquesa', + '0000CD' : 'Azul Médio', + '800080' : 'Roxo', + '808080' : 'Cinza 3', + 'F00' : 'Vermelho', + 'FF8C00' : 'Laranja Escuro', + 'FFD700' : 'Dourado', + '008000' : 'Verde', + '0FF' : 'Ciano', + '00F' : 'Azul', + 'EE82EE' : 'Violeta', + 'A9A9A9' : 'Cinza Escuro', + 'FFA07A' : 'Salmão Claro', + 'FFA500' : 'Laranja', + 'FFFF00' : 'Amarelo', + '00FF00' : 'Lima', + 'AFEEEE' : 'Turquesa Pálido', + 'ADD8E6' : 'Azul Claro', + 'DDA0DD' : 'Ameixa', + 'D3D3D3' : 'Cinza Claro', + 'FFF0F5' : 'Lavanda 1', + 'FAEBD7' : 'Branco Antiguidade', + 'FFFFE0' : 'Amarelo Claro', + 'F0FFF0' : 'Orvalho', + 'F0FFFF' : 'Azure', + 'F0F8FF' : 'Azul Alice', + 'E6E6FA' : 'Lavanda 2', + 'FFF' : 'Branco' + }, + + scayt : + { + title : 'Correção ortográfica durante a digitação', + opera_title : 'Não suportado no Opera', + enable : 'Habilitar correção ortográfica durante a digitação', + disable : 'Desabilitar correção ortográfica durante a digitação', + about : 'Sobre a correção ortográfica durante a digitação', + toggle : 'Ativar/desativar correção ortográfica durante a digitação', + options : 'Opções', + langs : 'Idiomas', + moreSuggestions : 'Mais sugestões', + ignore : 'Ignorar', + ignoreAll : 'Ignorar todas', + addWord : 'Adicionar palavra', + emptyDic : 'O nome do dicionário não deveria estar vazio.', + + optionsTab : 'Opções', + allCaps : 'Ignorar palavras maiúsculas', + ignoreDomainNames : 'Ignorar nomes de domínio', + mixedCase : 'Ignorar palavras com maiúsculas e minúsculas misturadas', + mixedWithDigits : 'Ignorar palavras com números', + + languagesTab : 'Idiomas', + + dictionariesTab : 'Dicionários', + dic_field_name : 'Nome do Dicionário', + dic_create : 'Criar', + dic_restore : 'Restaurar', + dic_delete : 'Excluir', + dic_rename : 'Renomear', + dic_info : 'Inicialmente, o dicionário do usuário fica armazenado em um Cookie. Porém, Cookies tem tamanho limitado, portanto quand o dicionário do usuário atingir o tamanho limite poderá ser armazenado no nosso servidor. Para armazenar seu dicionário pessoal no nosso servidor deverá especificar um nome para ele. Se já tiver um dicionário armazenado por favor especifique o seu nome e clique em Restaurar.', + + aboutTab : 'Sobre' + }, + + about : + { + title : 'Sobre o CKEditor', + dlgTitle : 'Sobre o CKEditor', + help : 'Verifique o $1 para obter ajuda.', + userGuide : 'Guia do Usuário do CKEditor', + moreInfo : 'Para informações sobre a licença por favor visite o nosso site:', + copy : 'Copyright © $1. Todos os direitos reservados.' + }, + + maximize : 'Maximizar', + minimize : 'Minimize', + + fakeobjects : + { + anchor : 'Âncora', + flash : 'Animação em Flash', + iframe : 'IFrame', + hiddenfield : 'Campo Oculto', + unknown : 'Objeto desconhecido' + }, + + resize : 'Arraste para redimensionar', + + colordialog : + { + title : 'Selecione uma Cor', + options : 'Opções de Cor', + highlight : 'Grifar', + selected : 'Cor Selecionada', + clear : 'Limpar' + }, + + toolbarCollapse : 'Diminuir Barra de Ferramentas', + toolbarExpand : 'Aumentar Barra de Ferramentas', + + toolbarGroups : + { + document : 'Documento', + clipboard : 'Clipboard/Desfazer', + editing : 'Edição', + forms : 'Formulários', + basicstyles : 'Estilos Básicos', + paragraph : 'Paragrafo', + links : 'Links', + insert : 'Inserir', + styles : 'Estilos', + colors : 'Cores', + tools : 'Ferramentas' + }, + + bidi : + { + ltr : 'Direção do texto da esquerda para a direita', + rtl : 'Direção do texto da direita para a esquerda' + }, + + docprops : + { + label : 'Propriedades Documento', + title : 'Propriedades Documento', + design : 'Design', + meta : 'Meta Dados', + chooseColor : 'Escolher', + other : '<outro>', + docTitle : 'Título da Página', + charset : 'Codificação de Caracteres', + charsetOther : 'Outra Codificação de Caracteres', + charsetASCII : 'ASCII', + charsetCE : 'Europa Central', + charsetCT : 'Chinês Tradicional (Big5)', + charsetCR : 'Cirílico', + charsetGR : 'Grego', + charsetJP : 'Japonês', + charsetKR : 'Coreano', + charsetTR : 'Turco', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Europa Ocidental', + docType : 'Cabeçalho Tipo de Documento', + docTypeOther : 'Outro Tipo de Documento', + xhtmlDec : 'Incluir Declarações XHTML', + bgColor : 'Cor do Plano de Fundo', + bgImage : 'URL da Imagem de Plano de Fundo', + bgFixed : 'Plano de Fundo Fixo', + txtColor : 'Cor do Texto', + margin : 'Margens da Página', + marginTop : 'Superior', + marginLeft : 'Inferior', + marginRight : 'Direita', + marginBottom : 'Inferior', + metaKeywords : 'Palavras-chave de Indexação do Documento (separadas por vírgula)', + metaDescription : 'Descrição do Documento', + metaAuthor : 'Autor', + metaCopyright : 'Direitos Autorais', + previewHtml : '<p>Este é um <strong>texto de exemplo</strong>. Você está usando <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/pt.js b/htdocs/includes/ckeditor/_source/lang/pt.js new file mode 100644 index 0000000000000000000000000000000000000000..a743867063f6941214e315bd55d41b1e06fa5e3f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/pt.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Portuguese language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['pt'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor de barras de ferramentas', + editor : 'Editor de texto enriquecido', + + // Toolbar buttons without dialogs. + source : 'Fonte', + newPage : 'Nova Página', + save : 'Guardar', + preview : 'Pré-visualizar', + cut : 'Cortar', + copy : 'Copiar', + paste : 'Colar', + print : 'Imprimir', + underline : 'Sublinhado', + bold : 'Negrito', + italic : 'Itálico', + selectAll : 'Seleccionar Tudo', + removeFormat : 'Eliminar Formato', + strike : 'Rasurado', + subscript : 'Superior à Linha', + superscript : 'Inferior à Linha', + horizontalrule : 'Inserir Linha Horizontal', + pagebreak : 'Inserir Quebra de Página', + pagebreakAlt : 'Quebra de página', + unlink : 'Eliminar Hiperligação', + undo : 'Anular', + redo : 'Repetir', + + // Common messages and labels. + common : + { + browseServer : 'Navegar no Servidor', + url : 'URL', + protocol : 'Protocolo', + upload : 'Carregar', + uploadSubmit : 'Enviar para o Servidor', + image : 'Imagem', + flash : 'Flash', + form : 'Formulário', + checkbox : 'Caixa de Verificação', + radio : 'Botão de Opção', + textField : 'Campo de Texto', + textarea : 'Área de Texto', + hiddenField : 'Campo Escondido', + button : 'Botão', + select : 'Caixa de Combinação', + imageButton : 'Botão de Imagem', + notSet : '<Não definido>', + id : 'Id', + name : 'Nome', + langDir : 'Orientação de idioma', + langDirLtr : 'Esquerda à Direita (LTR)', + langDirRtl : 'Direita a Esquerda (RTL)', + langCode : 'Código de Idioma', + longDescr : 'Descrição Completa do URL', + cssClass : 'Classes de Estilo de Folhas Classes', + advisoryTitle : 'Título', + cssStyle : 'Estilo', + ok : 'OK', + cancel : 'Cancelar', + close : 'Fechar', + preview : 'Pré-visualização', + generalTab : 'Geral', + advancedTab : 'Avançado', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Opções', + target : 'Alvo', + targetNew : 'Nova Janela (_blank)', + targetTop : 'Janela superior (_top)', + targetSelf : 'Mesma janela (_self)', + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Direita para Esquerda (RTL)', + styles : 'Estilo', + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Largura', + height : 'Altura', + align : 'Alinhamento', + alignLeft : 'Esquerda', + alignRight : 'Direita', + alignCenter : 'Centrado', + alignTop : 'Topo', + alignMiddle : 'Centro', + alignBottom : 'Fundo', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Menu de opções de contexto' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Inserir Caracter Especial', + title : 'Seleccione um caracter especial', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Inserir/Editar Hiperligação', + other : '<outro>', + menu : 'Editar Hiperligação', + title : 'Hiperligação', + info : 'Informação de Hiperligação', + target : 'Destino', + upload : 'Carregar', + advanced : 'Avançado', + type : 'Tipo de Hiperligação', + toUrl : 'URL', + toAnchor : 'Referência a esta página', + toEmail : 'E-Mail', + targetFrame : '<Frame>', + targetPopup : '<Janela de popup>', + targetFrameName : 'Nome do Frame Destino', + targetPopupName : 'Nome da Janela de Popup', + popupFeatures : 'Características de Janela de Popup', + popupResizable : 'Redimensionável', + popupStatusBar : 'Barra de Estado', + popupLocationBar: 'Barra de localização', + popupToolbar : 'Barra de Ferramentas', + popupMenuBar : 'Barra de Menu', + popupFullScreen : 'Janela Completa (IE)', + popupScrollBars : 'Barras de deslocamento', + popupDependent : 'Dependente (Netscape)', + popupLeft : 'Posição Esquerda', + popupTop : 'Posição Direita', + id : 'ID', + langDir : 'Orientação de idioma', + langDirLTR : 'Esquerda à Direita (LTR)', + langDirRTL : 'Direita a Esquerda (RTL)', + acccessKey : 'Chave de Acesso', + name : 'Nome', + langCode : 'Orientação de idioma', + tabIndex : 'Índice de Tubulação', + advisoryTitle : 'Título', + advisoryContentType : 'Tipo de Conteúdo', + cssClasses : 'Classes de Estilo de Folhas Classes', + charset : 'Fonte de caracteres vinculado', + styles : 'Estilo', + rel : 'Relação', + selectAnchor : 'Seleccionar una referência', + anchorName : 'Por Nome de Referência', + anchorId : 'Por ID de elemento', + emailAddress : 'Endereço de E-Mail', + emailSubject : 'Título de Mensagem', + emailBody : 'Corpo da Mensagem', + noAnchors : '(Não há referências disponíveis no documento)', + noUrl : 'Por favor introduza a hiperligação URL', + noEmail : 'Por favor introduza o endereço de e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : ' Inserir/Editar Âncora', + menu : 'Propriedades da Âncora', + title : 'Propriedades da Âncora', + name : 'Nome da Âncora', + errorName : 'Por favor, introduza o nome da âncora', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Tipo', + start : 'Iniciar', + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Círculo', + disc : 'Disco', + square : 'Quadrado', + none : 'Nenhum', + notset : '<not set>', + armenian : 'Numeração armênia', + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Procurar', + replace : 'Substituir', + findWhat : 'Texto a Procurar:', + replaceWith : 'Substituir por:', + notFoundMsg : 'O texto especificado não foi encontrado.', + findOptions : 'Find Options', // MISSING + matchCase : 'Maiúsculas/Minúsculas', + matchWord : 'Coincidir com toda a palavra', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Substituir Tudo', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Tabela', + title : 'Propriedades da Tabela', + menu : 'Propriedades da Tabela', + deleteTable : 'Eliminar Tabela', + rows : 'Linhas', + columns : 'Colunas', + border : 'Tamanho do Limite', + widthPx : 'pixeis', + widthPc : 'percentagem', + widthUnit : 'width unit', // MISSING + cellSpace : 'Esp. e/células', + cellPad : 'Esp. interior', + caption : 'Título', + summary : 'Sumário', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Célula', + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Eliminar Célula', + merge : 'Unir Células', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Linha', + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Eliminar Linhas' + }, + + column : + { + menu : 'Coluna', + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Eliminar Coluna' + } + }, + + // Button Dialog. + button : + { + title : 'Propriedades do Botão', + text : 'Texto (Valor)', + type : 'Tipo', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Propriedades da Caixa de Verificação', + radioTitle : 'Propriedades do Botão de Opção', + value : 'Valor', + selected : 'Seleccionado' + }, + + // Form Dialog. + form : + { + title : 'Propriedades do Formulário', + menu : 'Propriedades do Formulário', + action : 'Acção', + method : 'Método', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Propriedades da Caixa de Combinação', + selectInfo : 'Informação', + opAvail : 'Opções Possíveis', + value : 'Valor', + size : 'Tamanho', + lines : 'linhas', + chkMulti : 'Permitir selecções múltiplas', + opText : 'Texto', + opValue : 'Valor', + btnAdd : 'Adicionar', + btnModify : 'Modificar', + btnUp : 'Para cima', + btnDown : 'Para baixo', + btnSetValue : 'Definir um valor por defeito', + btnDelete : 'Apagar' + }, + + // Textarea Dialog. + textarea : + { + title : 'Propriedades da Área de Texto', + cols : 'Colunas', + rows : 'Linhas' + }, + + // Text Field Dialog. + textfield : + { + title : 'Propriedades do Campo de Texto', + name : 'Nome', + value : 'Valor', + charWidth : 'Tamanho do caracter', + maxChars : 'Nr. Máximo de Caracteres', + type : 'Tipo', + typeText : 'Texto', + typePass : 'Palavra-chave' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Propriedades do Campo Escondido', + name : 'Nome', + value : 'Valor' + }, + + // Image Dialog. + image : + { + title : 'Propriedades da Imagem', + titleButton : 'Propriedades do Botão de imagens', + menu : 'Propriedades da Imagem', + infoTab : 'Informação da Imagem', + btnUpload : 'Enviar para o Servidor', + upload : 'Carregar', + alt : 'Texto Alternativo', + lockRatio : 'Proporcional', + resetSize : 'Tamanho Original', + border : 'Limite', + hSpace : 'Esp.Horiz', + vSpace : 'Esp.Vert', + alertUrl : 'Por favor introduza o URL da imagem', + linkTab : 'Hiperligação', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Propriedades do Flash', + propertiesTab : 'Properties', // MISSING + title : 'Propriedades do Flash', + chkPlay : 'Reproduzir automaticamente', + chkLoop : 'Loop', + chkMenu : 'Permitir Menu do Flash', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Escala', + scaleAll : 'Mostrar tudo', + scaleNoBorder : 'Sem Limites', + scaleFit : 'Tamanho Exacto', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs inferior', + alignAbsMiddle : 'Abs centro', + alignBaseline : 'Linha de base', + alignTextTop : 'Topo do texto', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Cor de Fundo', + hSpace : 'Esp.Horiz', + vSpace : 'Esp.Vert', + validateSrc : 'Por favor introduza a hiperligação URL', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Verificação Ortográfica', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Não está num directório', + changeTo : 'Mudar para', + btnIgnore : 'Ignorar', + btnIgnoreAll : 'Ignorar Tudo', + btnReplace : 'Substituir', + btnReplaceAll : 'Substituir Tudo', + btnUndo : 'Anular', + noSuggestions : '- Sem sugestões -', + progress : 'Verificação ortográfica em progresso…', + noMispell : 'Verificação ortográfica completa: não foram encontrados erros', + noChanges : 'Verificação ortográfica completa: não houve alteração de palavras', + oneChange : 'Verificação ortográfica completa: uma palavra alterada', + manyChanges : 'Verificação ortográfica completa: %1 palavras alteradas', + ieSpellDownload : ' Verificação ortográfica não instalada. Quer descarregar agora?' + }, + + smiley : + { + toolbar : 'Emoticons', + title : 'Inserir um Emoticon', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Numeração', + bulletedlist : 'Marcas', + indent : 'Aumentar Avanço', + outdent : 'Diminuir Avanço', + + justify : + { + left : 'Alinhar à Esquerda', + center : 'Alinhar ao Centro', + right : 'Alinhar à Direita', + block : 'Justificado' + }, + + blockquote : 'Bloco de citação', + + clipboard : + { + title : 'Colar', + cutError : 'A configuração de segurança do navegador não permite a execução automática de operações de cortar. Por favor use o teclado (Ctrl/Cmd+X).', + copyError : 'A configuração de segurança do navegador não permite a execução automática de operações de copiar. Por favor use o teclado (Ctrl/Cmd+C).', + pasteMsg : 'Por favor, cole dentro da seguinte caixa usando o teclado (<STRONG>Ctrl/Cmd+V</STRONG>) e prima <STRONG>OK</STRONG>.', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Colar do Word', + title : 'Colar do Word', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Colar como Texto Simples', + title : 'Colar como Texto Simples' + }, + + templates : + { + button : 'Modelos', + title : 'Modelo de Conteúdo', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Por favor, seleccione o modelo a abrir no editor<br>(o conteúdo actual será perdido):', + emptyListMsg : '(Sem modelos definidos)' + }, + + showBlocks : 'Exibir blocos', + + stylesCombo : + { + label : 'Estilo', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Formato', + panelTitle : 'Formato', + + tag_p : 'Normal', + tag_pre : 'Formatado', + tag_address : 'Endereço', + tag_h1 : 'Título 1', + tag_h2 : 'Título 2', + tag_h3 : 'Título 3', + tag_h4 : 'Título 4', + tag_h5 : 'Título 5', + tag_h6 : 'Título 6', + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Tipo de Letra', + voiceLabel : 'Font', // MISSING + panelTitle : 'Tipo de Letra' + }, + + fontSize : + { + label : 'Tamanho', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Tamanho' + }, + + colorButton : + { + textColorTitle : 'Cor do Texto', + bgColorTitle : 'Cor de Fundo', + panelTitle : 'Colors', // MISSING + auto : 'Automático', + more : 'Mais Cores...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximizar', + minimize : 'Minimizar', + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Arraste para redimensionar', + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Colapsar Barra', + toolbarExpand : 'Expandir Barra', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Propriedades do Documento', + title : 'Propriedades do Documento', + design : 'Design', // MISSING + meta : 'Meta Data', + chooseColor : 'Choose', // MISSING + other : '<outro>', + docTitle : 'Título da Página', + charset : 'Codificação de Caracteres', + charsetOther : 'Outra Codificação de Caracteres', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Tipo de Cabeçalho do Documento', + docTypeOther : 'Outro Tipo de Cabeçalho do Documento', + xhtmlDec : 'Incluir Declarações XHTML', + bgColor : 'Cor de Fundo', + bgImage : 'Caminho para a Imagem de Fundo', + bgFixed : 'Fundo Fixo', + txtColor : 'Cor do Texto', + margin : 'Margem das Páginas', + marginTop : 'Topo', + marginLeft : 'Esquerda', + marginRight : 'Direita', + marginBottom : 'Fundo', + metaKeywords : 'Palavras de Indexação do Documento (separadas por virgula)', + metaDescription : 'Descrição do Documento', + metaAuthor : 'Autor', + metaCopyright : 'Direitos de Autor', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ro.js b/htdocs/includes/ckeditor/_source/lang/ro.js new file mode 100644 index 0000000000000000000000000000000000000000..b37298c0ff729d0974df72aadd99b90ef7ef1cea --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ro.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Romanian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ro'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editează bara de unelte', + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Sursa', + newPage : 'Pagină nouă', + save : 'Salvează', + preview : 'Previzualizare', + cut : 'Taie', + copy : 'Copiază', + paste : 'Adaugă', + print : 'Printează', + underline : 'Subliniat (underline)', + bold : 'Îngroşat (bold)', + italic : 'Înclinat (italic)', + selectAll : 'Selectează tot', + removeFormat : 'Înlătură formatarea', + strike : 'Tăiat (strike through)', + subscript : 'Indice (subscript)', + superscript : 'Putere (superscript)', + horizontalrule : 'Inserează linie orizontală', + pagebreak : 'Inserează separator de pagină (Page Break)', + pagebreakAlt : 'Page Break', + unlink : 'Înlătură link (legătură web)', + undo : 'Starea anterioară (undo)', + redo : 'Starea ulterioară (redo)', + + // Common messages and labels. + common : + { + browseServer : 'Răsfoieşte server', + url : 'URL', + protocol : 'Protocol', + upload : 'Încarcă', + uploadSubmit : 'Trimite la server', + image : 'Imagine', + flash : 'Flash', + form : 'Formular (Form)', + checkbox : 'Bifă (Checkbox)', + radio : 'Buton radio (RadioButton)', + textField : 'Câmp text (TextField)', + textarea : 'Suprafaţă text (Textarea)', + hiddenField : 'Câmp ascuns (HiddenField)', + button : 'Buton', + select : 'Câmp selecţie (SelectionField)', + imageButton : 'Buton imagine (ImageButton)', + notSet : '<nesetat>', + id : 'Id', + name : 'Nume', + langDir : 'Direcţia cuvintelor', + langDirLtr : 'stânga-dreapta (LTR)', + langDirRtl : 'dreapta-stânga (RTL)', + langCode : 'Codul limbii', + longDescr : 'Descrierea lungă URL', + cssClass : 'Clasele cu stilul paginii (CSS)', + advisoryTitle : 'Titlul consultativ', + cssStyle : 'Stil', + ok : 'OK', + cancel : 'Anulare', + close : 'Închide', + preview : 'Previzualizare', + generalTab : 'General', + advancedTab : 'Avansat', + validateNumberFailed : 'Această valoare nu este un număr.', + confirmNewPage : 'Orice modificări nesalvate ale acestui conținut, vor fi pierdute. Sigur doriți încărcarea unei noi pagini?', + confirmCancel : 'Câteva opțiuni au fost schimbate. Sigur doriți să închideți dialogul?', + options : 'Opțiuni', + target : 'Țintă', + targetNew : 'Fereastră nouă (_blank)', + targetTop : 'Topmost Window (_top)', + targetSelf : 'În aceeași fereastră (_self)', + targetParent : 'Parent Window (_parent)', + langDirLTR : 'Stânga spre Dreapta (LTR)', + langDirRTL : 'Dreapta spre Stânga (RTL)', + styles : 'Stil', + cssClasses : 'Stylesheet Classes', + width : 'Lăţime', + height : 'Înălţime', + align : 'Aliniere', + alignLeft : 'Mărește Bara', + alignRight : 'Dreapta', + alignCenter : 'Centru', + alignTop : 'Sus', + alignMiddle : 'Mijloc', + alignBottom : 'Jos', + invalidHeight : 'Înălțimea trebuie să fie un număr.', + invalidWidth : 'Lățimea trebuie să fie un număr.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Opțiuni Meniu Contextual' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Inserează caracter special', + title : 'Selectează caracter special', + options : 'Opțiuni caractere speciale' + }, + + // Link dialog. + link : + { + toolbar : 'Inserează/Editează link (legătură web)', + other : '<alt>', + menu : 'Editează Link', + title : 'Link (Legătură web)', + info : 'Informaţii despre link (Legătură web)', + target : 'Ţintă (Target)', + upload : 'Încarcă', + advanced : 'Avansat', + type : 'Tipul link-ului (al legăturii web)', + toUrl : 'URL', + toAnchor : 'Ancoră în această pagină', + toEmail : 'E-Mail', + targetFrame : '<frame>', + targetPopup : '<fereastra popup>', + targetFrameName : 'Numele frameului ţintă', + targetPopupName : 'Numele ferestrei popup', + popupFeatures : 'Proprietăţile ferestrei popup', + popupResizable : 'Redimensionabil', + popupStatusBar : 'Bara de status', + popupLocationBar: 'Bara de locaţie', + popupToolbar : 'Bara de opţiuni', + popupMenuBar : 'Bara de meniu', + popupFullScreen : 'Tot ecranul (Full Screen)(IE)', + popupScrollBars : 'Bare de derulare', + popupDependent : 'Dependent (Netscape)', + popupLeft : 'Poziţia la stânga', + popupTop : 'Poziţia la dreapta', + id : 'Id', + langDir : 'Direcţia cuvintelor', + langDirLTR : 'stânga-dreapta (LTR)', + langDirRTL : 'dreapta-stânga (RTL)', + acccessKey : 'Tasta de acces', + name : 'Nume', + langCode : 'Direcţia cuvintelor', + tabIndex : 'Indexul tabului', + advisoryTitle : 'Titlul consultativ', + advisoryContentType : 'Tipul consultativ al titlului', + cssClasses : 'Clasele cu stilul paginii (CSS)', + charset : 'Setul de caractere al resursei legate', + styles : 'Stil', + rel : 'Relație', + selectAnchor : 'Selectaţi o ancoră', + anchorName : 'după numele ancorei', + anchorId : 'după Id-ul elementului', + emailAddress : 'Adresă de e-mail', + emailSubject : 'Subiectul mesajului', + emailBody : 'Opțiuni Meniu Contextual', + noAnchors : '(Nicio ancoră disponibilă în document)', + noUrl : 'Vă rugăm să scrieţi URL-ul', + noEmail : 'Vă rugăm să scrieţi adresa de e-mail' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Inserează/Editează ancoră', + menu : 'Proprietăţi ancoră', + title : 'Proprietăţi ancoră', + name : 'Numele ancorei', + errorName : 'Vă rugăm scrieţi numele ancorei', + remove : 'Elimină ancora' + }, + + // List style dialog + list: + { + numberedTitle : 'Proprietățile listei numerotate', + bulletedTitle : 'Proprietățile listei cu simboluri', + type : 'Tip', + start : 'Start', + validateStartNumber :'Începutul listei trebuie să fie un număr întreg.', + circle : 'Cerc', + disc : 'Disc', + square : 'Pătrat', + none : 'Nimic', + notset : '<nesetat>', + armenian : 'Numerotare armeniană', + georgian : 'Numerotare georgiană (an, ban, gan, etc.)', + lowerRoman : 'Cifre romane mici (i, ii, iii, iv, v, etc.)', + upperRoman : 'Cifre romane mari (I, II, III, IV, V, etc.)', + lowerAlpha : 'Litere mici (a, b, c, d, e, etc.)', + upperAlpha : 'Litere mari (A, B, C, D, E, etc.)', + lowerGreek : 'Litere grecești mici (alpha, beta, gamma, etc.)', + decimal : 'Decimale (1, 2, 3, etc.)', + decimalLeadingZero : 'Decimale cu zero în față (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Găseşte şi înlocuieşte', + find : 'Găseşte', + replace : 'Înlocuieşte', + findWhat : 'Găseşte:', + replaceWith : 'Înlocuieşte cu:', + notFoundMsg : 'Textul specificat nu a fost găsit.', + findOptions : 'Find Options', // MISSING + matchCase : 'Deosebeşte majuscule de minuscule (Match case)', + matchWord : 'Doar cuvintele întregi', + matchCyclic : 'Potrivește ciclic', + replaceAll : 'Înlocuieşte tot', + replaceSuccessMsg : '%1 căutări înlocuite.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabel', + title : 'Proprietăţile tabelului', + menu : 'Proprietăţile tabelului', + deleteTable : 'Şterge tabel', + rows : 'Rânduri', + columns : 'Coloane', + border : 'Mărimea marginii', + widthPx : 'pixeli', + widthPc : 'procente', + widthUnit : 'unitate lățime', + cellSpace : 'Spaţiu între celule', + cellPad : 'Spaţiu în cadrul celulei', + caption : 'Titlu (Caption)', + summary : 'Rezumat', + headers : 'Antente', + headersNone : 'Nimic', + headersColumn : 'Prima coloană', + headersRow : 'Primul rând', + headersBoth : 'Ambele', + invalidRows : 'Numărul rândurilor trebuie să fie mai mare decât 0.', + invalidCols : 'Numărul coloanelor trebuie să fie mai mare decât 0.', + invalidBorder : 'Dimensiunea bordurii trebuie să aibe un număr.', + invalidWidth : 'Lățimea tabelului trebuie să fie un număr.', + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Spațierea celului trebuie să fie un număr pozitiv.', + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Celulă', + insertBefore : 'Inserează celulă înainte', + insertAfter : 'Inserează celulă după', + deleteCell : 'Şterge celule', + merge : 'Uneşte celule', + mergeRight : 'Uneşte la dreapta', + mergeDown : 'Uneşte jos', + splitHorizontal : 'Împarte celula pe orizontală', + splitVertical : 'Împarte celula pe verticală', + title : 'Proprietăți celulă', + cellType : 'Tipul celulei', + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Aliniament orizontal', + vAlign : 'Aliniament vertical', + alignBaseline : 'Baseline', // MISSING + bgColor : 'Culoare fundal', + borderColor : 'Culoare bordură', + data : 'Data', + header : 'Antet', + yes : 'Da', + no : 'Nu', + invalidWidth : 'Lățimea celulei trebuie să fie un număr.', + invalidHeight : 'Înălțimea celulei trebuie să fie un număr.', + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Alege' + }, + + row : + { + menu : 'Rând', + insertBefore : 'Inserează rând înainte', + insertAfter : 'Inserează rând după', + deleteRow : 'Şterge rânduri' + }, + + column : + { + menu : 'Coloană', + insertBefore : 'Inserează coloană înainte', + insertAfter : 'Inserează coloană după', + deleteColumn : 'Şterge celule' + } + }, + + // Button Dialog. + button : + { + title : 'Proprietăţi buton', + text : 'Text (Valoare)', + type : 'Tip', + typeBtn : 'Buton', + typeSbm : 'Trimite', + typeRst : 'Reset' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Proprietăţi bifă (Checkbox)', + radioTitle : 'Proprietăţi buton radio (Radio Button)', + value : 'Valoare', + selected : 'Selectat' + }, + + // Form Dialog. + form : + { + title : 'Proprietăţi formular (Form)', + menu : 'Proprietăţi formular (Form)', + action : 'Acţiune', + method : 'Metodă', + encoding : 'Encodare' + }, + + // Select Field Dialog. + select : + { + title : 'Proprietăţi câmp selecţie (Selection Field)', + selectInfo : 'Informaţii', + opAvail : 'Opţiuni disponibile', + value : 'Valoare', + size : 'Mărime', + lines : 'linii', + chkMulti : 'Permite selecţii multiple', + opText : 'Text', + opValue : 'Valoare', + btnAdd : 'Adaugă', + btnModify : 'Modifică', + btnUp : 'Sus', + btnDown : 'Jos', + btnSetValue : 'Setează ca valoare selectată', + btnDelete : 'Şterge' + }, + + // Textarea Dialog. + textarea : + { + title : 'Proprietăţi suprafaţă text (Textarea)', + cols : 'Coloane', + rows : 'Linii' + }, + + // Text Field Dialog. + textfield : + { + title : 'Proprietăţi câmp text (Text Field)', + name : 'Nume', + value : 'Valoare', + charWidth : 'Lărgimea caracterului', + maxChars : 'Caractere maxime', + type : 'Tip', + typeText : 'Text', + typePass : 'Parolă' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Proprietăţi câmp ascuns (Hidden Field)', + name : 'Nume', + value : 'Valoare' + }, + + // Image Dialog. + image : + { + title : 'Proprietăţile imaginii', + titleButton : 'Proprietăţi buton imagine (Image Button)', + menu : 'Proprietăţile imaginii', + infoTab : 'Informaţii despre imagine', + btnUpload : 'Trimite la server', + upload : 'Încarcă', + alt : 'Text alternativ', + lockRatio : 'Păstrează proporţiile', + resetSize : 'Resetează mărimea', + border : 'Margine', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Vă rugăm să scrieţi URL-ul imaginii', + linkTab : 'Link (Legătură web)', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Sursa URL a imaginii lipsește.', + validateBorder : 'Bordura trebuie să fie un număr întreg.', + validateHSpace : 'Hspace trebuie să fie un număr întreg.', + validateVSpace : 'Vspace trebuie să fie un număr întreg.' + }, + + // Flash Dialog + flash : + { + properties : 'Proprietăţile flashului', + propertiesTab : 'Proprietăți', + title : 'Proprietăţile flashului', + chkPlay : 'Rulează automat', + chkLoop : 'Repetă (Loop)', + chkMenu : 'Activează meniul flash', + chkFull : 'Permite pe tot ecranul', + scale : 'Scală', + scaleAll : 'Arată tot', + scaleNoBorder : 'Fără bordură (No border)', + scaleFit : 'Potriveşte', + access : 'Acces script', + accessAlways : 'Întotdeauna', + accessSameDomain: 'Același domeniu', + accessNever : 'Niciodată', + alignAbsBottom : 'Jos absolut (Abs Bottom)', + alignAbsMiddle : 'Mijloc absolut (Abs Middle)', + alignBaseline : 'Linia de jos (Baseline)', + alignTextTop : 'Text sus', + quality : 'Calitate', + qualityBest : 'Cea mai bună', + qualityHigh : 'Înaltă', + qualityAutoHigh : 'Auto înaltă', + qualityMedium : 'Medie', + qualityAutoLow : 'Auto Joasă', + qualityLow : 'Joasă', + windowModeWindow: 'Fereastră', + windowModeOpaque: 'Opacă', + windowModeTransparent : 'Transparentă', + windowMode : 'Mod fereastră', + flashvars : 'Variabile pentru flash', + bgcolor : 'Coloarea fundalului', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Vă rugăm să scrieţi URL-ul', + validateHSpace : 'Hspace trebuie să fie un număr.', + validateVSpace : 'VSpace trebuie să fie un număr' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Verifică scrierea textului', + title : 'Spell Check', // MISSING + notAvailable : 'Scuzați, dar serviciul nu este disponibil momentan.', + errorLoading : 'Eroare în lansarea aplicației service host %s.', + notInDic : 'Nu e în dicţionar', + changeTo : 'Schimbă în', + btnIgnore : 'Ignoră', + btnIgnoreAll : 'Ignoră toate', + btnReplace : 'Înlocuieşte', + btnReplaceAll : 'Înlocuieşte tot', + btnUndo : 'Starea anterioară (undo)', + noSuggestions : '- Fără sugestii -', + progress : 'Verificarea textului în desfăşurare...', + noMispell : 'Verificarea textului terminată: Nicio greşeală găsită', + noChanges : 'Verificarea textului terminată: Niciun cuvânt modificat', + oneChange : 'Verificarea textului terminată: Un cuvânt modificat', + manyChanges : 'Verificarea textului terminată: 1% cuvinte modificate', + ieSpellDownload : 'Unealta pentru verificat textul (Spell checker) neinstalată. Doriţi să o descărcaţi acum?' + }, + + smiley : + { + toolbar : 'Figură expresivă (Emoticon)', + title : 'Inserează o figură expresivă (Emoticon)', + options : 'Opțiuni figuri expresive' + }, + + elementsPath : + { + eleLabel : 'Calea elementelor', + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Inserează / Elimină Listă numerotată', + bulletedlist : 'Inserează / Elimină Listă cu puncte', + indent : 'Creşte indentarea', + outdent : 'Scade indentarea', + + justify : + { + left : 'Aliniere la stânga', + center : 'Aliniere centrală', + right : 'Aliniere la dreapta', + block : 'Aliniere în bloc (Block Justify)' + }, + + blockquote : 'Citat', + + clipboard : + { + title : 'Adaugă', + cutError : 'Setările de securitate ale navigatorului (browser) pe care îl folosiţi nu permit editorului să execute automat operaţiunea de tăiere. Vă rugăm folosiţi tastatura (Ctrl/Cmd+X).', + copyError : 'Setările de securitate ale navigatorului (browser) pe care îl folosiţi nu permit editorului să execute automat operaţiunea de copiere. Vă rugăm folosiţi tastatura (Ctrl/Cmd+C).', + pasteMsg : 'Vă rugăm adăugaţi în căsuţa următoare folosind tastatura (<strong>Ctrl/Cmd+V</strong>) şi apăsaţi OK', + securityMsg : 'Din cauza setărilor de securitate ale programului dvs. cu care navigaţi pe internet (browser), editorul nu poate accesa direct datele din clipboard. Va trebui să adăugaţi din nou datele în această fereastră.', + pasteArea : 'Suprafața de adăugare' + }, + + pastefromword : + { + confirmCleanup : 'Textul pe care doriți să-l lipiți este din Word. Doriți curățarea textului înante de a-l adăuga?', + toolbar : 'Adaugă din Word', + title : 'Adaugă din Word', + error : 'Nu a fost posibilă curățarea datelor adăugate datorită unei erori interne' + }, + + pasteText : + { + button : 'Adaugă ca text simplu (Plain Text)', + title : 'Adaugă ca text simplu (Plain Text)' + }, + + templates : + { + button : 'Template-uri (şabloane)', + title : 'Template-uri (şabloane) de conţinut', + options : 'Opțiuni șabloane', + insertOption : 'Înlocuieşte cuprinsul actual', + selectPromptMsg : 'Vă rugăm selectaţi template-ul (şablonul) ce se va deschide în editor<br>(conţinutul actual va fi pierdut):', + emptyListMsg : '(Niciun template (şablon) definit)' + }, + + showBlocks : 'Arată blocurile', + + stylesCombo : + { + label : 'Stil', + panelTitle : 'Formatarea stilurilor', + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Formatare', + panelTitle : 'Formatare', + + tag_p : 'Normal', + tag_pre : 'Formatat', + tag_address : 'Adresă', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Stil', + IdInputLabel : 'Id', + languageCodeInputLabel : 'Codul limbii', + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', // MISSING + panelTitle : 'Font' + }, + + fontSize : + { + label : 'Mărime', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Mărime' + }, + + colorButton : + { + textColorTitle : 'Culoarea textului', + bgColorTitle : 'Coloarea fundalului', + panelTitle : 'Colors', // MISSING + auto : 'Automatic', + more : 'Mai multe culori...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Mărește', + minimize : 'Micșorează', + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Trage pentru a redimensiona', + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Micșorează Bara', + toolbarExpand : 'Mărește Bara', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Proprietăţile documentului', + title : 'Proprietăţile documentului', + design : 'Design', // MISSING + meta : 'Meta Tags', // MISSING + chooseColor : 'Choose', // MISSING + other : '<alt>', + docTitle : 'Titlul paginii', + charset : 'Encoding setului de caractere', + charsetOther : 'Alt encoding al setului de caractere', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinezesc tradiţional (Big5)', + charsetCR : 'Chirilic', + charsetGR : 'Grecesc', + charsetJP : 'Japonez', + charsetKR : 'Corean', + charsetTR : 'Turcesc', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Vest european', + docType : 'Document Type Heading', // MISSING + docTypeOther : 'Alt Document Type Heading', + xhtmlDec : 'Include declaraţii XHTML', + bgColor : 'Culoarea fundalului (Background Color)', + bgImage : 'URL-ul imaginii din fundal (Background Image URL)', + bgFixed : 'Fundal neflotant, fix (Non-scrolling Background)', + txtColor : 'Culoarea textului', + margin : 'Marginile paginii', + marginTop : 'Sus', + marginLeft : 'Stânga', + marginRight : 'Dreapta', + marginBottom : 'Jos', + metaKeywords : 'Cuvinte cheie după care se va indexa documentul (separate prin virgulă)', + metaDescription : 'Descrierea documentului', + metaAuthor : 'Autor', + metaCopyright : 'Drepturi de autor', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ru.js b/htdocs/includes/ckeditor/_source/lang/ru.js new file mode 100644 index 0000000000000000000000000000000000000000..4b1ceb09ec8a92b7f6d707efd93e870d9cac824a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ru.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object for the + * Russian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ru'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Панели инструментов редактора', + editor : 'Визуальный редактор текста', + + // Toolbar buttons without dialogs. + source : 'Источник', + newPage : 'Новая страница', + save : 'Сохранить', + preview : 'Предварительный просмотр', + cut : 'Вырезать', + copy : 'Копировать', + paste : 'Вставить', + print : 'Печать', + underline : 'Подчеркнутый', + bold : 'Полужирный', + italic : 'Курсив', + selectAll : 'Выделить все', + removeFormat : 'Убрать форматирование', + strike : 'Зачеркнутый', + subscript : 'Подстрочный индекс', + superscript : 'Надстрочный индекс', + horizontalrule : 'Вставить горизонтальную линию', + pagebreak : 'Вставить разрыв страницы для печати', + pagebreakAlt : 'Разрыв страницы', + unlink : 'Убрать ссылку', + undo : 'Отменить', + redo : 'Повторить', + + // Common messages and labels. + common : + { + browseServer : 'Выбор на сервере', + url : 'Ссылка', + protocol : 'Протокол', + upload : 'Загрузка', + uploadSubmit : 'Загрузить на сервер', + image : 'Изображение', + flash : 'Flash', + form : 'Форма', + checkbox : 'Флаговая кнопка', + radio : 'Кнопка выбора', + textField : 'Текстовое поле', + textarea : 'Многострочное текстовое поле', + hiddenField : 'Скрытое поле', + button : 'Кнопка', + select : 'Список выбора', + imageButton : 'Изображение-кнопка', + notSet : '<не указано>', + id : 'Идентификатор', + name : 'Имя', + langDir : 'Направление текста', + langDirLtr : 'Слева направо (LTR)', + langDirRtl : 'Справа налево (RTL)', + langCode : 'Код языка', + longDescr : 'Длинное описание ссылки', + cssClass : 'Класс CSS', + advisoryTitle : 'Заголовок', + cssStyle : 'Стиль', + ok : 'ОК', + cancel : 'Отмена', + close : 'Закрыть', + preview : 'Предпросмотр', + generalTab : 'Основное', + advancedTab : 'Дополнительно', + validateNumberFailed : 'Это значение не является числом.', + confirmNewPage : 'Несохранённые изменения будут потеряны! Вы действительно желаете перейти на другую страницу?', + confirmCancel : 'Некоторые параметры были изменены. Вы уверены, что желаете закрыть без сохранения?', + options : 'Параметры', + target : 'Цель', + targetNew : 'Новое окно (_blank)', + targetTop : 'Главное окно (_top)', + targetSelf : 'Текущее окно (_self)', + targetParent : 'Родительское окно (_parent)', + langDirLTR : 'Слева направо (LTR)', + langDirRTL : 'Справа налево (RTL)', + styles : 'Стиль', + cssClasses : 'Классы CSS', + width : 'Ширина', + height : 'Высота', + align : 'Выравнивание', + alignLeft : 'По левому краю', + alignRight : 'По правому краю', + alignCenter : 'По центру', + alignTop : 'По верху', + alignMiddle : 'По середине', + alignBottom : 'По низу', + invalidHeight : 'Высота задается числом.', + invalidWidth : 'Ширина задается числом.', + invalidCssLength : 'Значение, указанное в поле "%1", должно быть положительным целым числом. Допускается указание единиц меры CSS (px, %, in, cm, mm, em, ex, pt или pc).', + invalidHtmlLength : 'Значение, указанное в поле "%1", должно быть положительным целым числом. Допускается указание единиц меры HTML (px или %).', + invalidInlineStyle : 'Значение, указанное для стиля элемента, должно состоять из одной или нескольких пар данных в формате "параметр : значение", разделённых точкой с запятой.', + cssLengthTooltip : 'Введите значение в пикселях, либо число с корректной единицей меры CSS (px, %, in, cm, mm, em, ex, pt или pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, недоступно</span>' + }, + + contextmenu : + { + options : 'Параметры контекстного меню' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Вставить специальный символ', + title : 'Выберите специальный символ', + options : 'Выбор специального символа' + }, + + // Link dialog. + link : + { + toolbar : 'Вставить/Редактировать ссылку', + other : '<другой>', + menu : 'Редактировать ссылку', + title : 'Ссылка', + info : 'Информация о ссылке', + target : 'Цель', + upload : 'Загрузка', + advanced : 'Дополнительно', + type : 'Тип ссылки', + toUrl : 'Ссылка', + toAnchor : 'Ссылка на якорь в тексте', + toEmail : 'Email', + targetFrame : '<фрейм>', + targetPopup : '<всплывающее окно>', + targetFrameName : 'Имя целевого фрейма', + targetPopupName : 'Имя всплывающего окна', + popupFeatures : 'Параметры всплывающего окна', + popupResizable : 'Изменяемый размер', + popupStatusBar : 'Строка состояния', + popupLocationBar: 'Панель адреса', + popupToolbar : 'Панель инструментов', + popupMenuBar : 'Панель меню', + popupFullScreen : 'Полноэкранное (IE)', + popupScrollBars : 'Полосы прокрутки', + popupDependent : 'Зависимое (Netscape)', + popupLeft : 'Отступ слева', + popupTop : 'Отступ сверху', + id : 'Идентификатор', + langDir : 'Направление текста', + langDirLTR : 'Слева направо (LTR)', + langDirRTL : 'Справа налево (RTL)', + acccessKey : 'Клавиша доступа', + name : 'Имя', + langCode : 'Код языка', + tabIndex : 'Последовательность перехода', + advisoryTitle : 'Заголовок', + advisoryContentType : 'Тип содержимого', + cssClasses : 'Классы CSS', + charset : 'Кодировка ресурса', + styles : 'Стиль', + rel : 'Отношение', + selectAnchor : 'Выберите якорь', + anchorName : 'По имени', + anchorId : 'По идентификатору', + emailAddress : 'Email адрес', + emailSubject : 'Тема сообщения', + emailBody : 'Текст сообщения', + noAnchors : '(В документе нет ни одного якоря)', + noUrl : 'Пожалуйста, введите ссылку', + noEmail : 'Пожалуйста, введите email адрес' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Вставить / редактировать якорь', + menu : 'Изменить якорь', + title : 'Свойства якоря', + name : 'Имя якоря', + errorName : 'Пожалуйста, введите имя якоря', + remove : 'Удалить якорь' + }, + + // List style dialog + list: + { + numberedTitle : 'Свойства нумерованного списка', + bulletedTitle : 'Свойства маркированного списка', + type : 'Тип', + start : 'Начиная с', + validateStartNumber :'Первый номер списка должен быть задан обычным целым числом.', + circle : 'Круг', + disc : 'Окружность', + square : 'Квадрат', + none : 'Нет', + notset : '<не указано>', + armenian : 'Армянская нумерация', + georgian : 'Грузинская нумерация (ани, бани, гани, и т.д.)', + lowerRoman : 'Строчные римские (i, ii, iii, iv, v, и т.д.)', + upperRoman : 'Заглавные римские (I, II, III, IV, V, и т.д.)', + lowerAlpha : 'Строчные латинские (a, b, c, d, e, и т.д.)', + upperAlpha : 'Заглавные латинские (A, B, C, D, E, и т.д.)', + lowerGreek : 'Строчные греческие (альфа, бета, гамма, и т.д.)', + decimal : 'Десятичные (1, 2, 3, и т.д.)', + decimalLeadingZero : 'Десятичные с ведущим нулём (01, 02, 03, и т.д.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Поиск и замена', + find : 'Найти', + replace : 'Заменить', + findWhat : 'Найти:', + replaceWith : 'Заменить на:', + notFoundMsg : 'Искомый текст не найден.', + findOptions : 'Опции поиска', + matchCase : 'Учитывать регистр', + matchWord : 'Только слово целиком', + matchCyclic : 'По всему тексту', + replaceAll : 'Заменить всё', + replaceSuccessMsg : 'Успешно заменено %1 раз(а).' + }, + + // Table Dialog + table : + { + toolbar : 'Таблица', + title : 'Свойства таблицы', + menu : 'Свойства таблицы', + deleteTable : 'Удалить таблицу', + rows : 'Строки', + columns : 'Колонки', + border : 'Размер границ', + widthPx : 'пикселей', + widthPc : 'процентов', + widthUnit : 'единица измерения', + cellSpace : 'Внешний отступ ячеек', + cellPad : 'Внутренний отступ ячеек', + caption : 'Заголовок', + summary : 'Итоги', + headers : 'Заголовки', + headersNone : 'Без заголовков', + headersColumn : 'Левая колонка', + headersRow : 'Верхняя строка', + headersBoth : 'Сверху и слева', + invalidRows : 'Количество строк должно быть больше 0.', + invalidCols : 'Количество столбцов должно быть больше 0.', + invalidBorder : 'Размер границ должен быть числом.', + invalidWidth : 'Ширина таблицы должна быть числом.', + invalidHeight : 'Высота таблицы должна быть числом.', + invalidCellSpacing : 'Внешний отступ ячеек (cellspacing) должен быть числом.', + invalidCellPadding : 'Внутренний отступ ячеек (cellpadding) должен быть числом.', + + cell : + { + menu : 'Ячейка', + insertBefore : 'Вставить ячейку слева', + insertAfter : 'Вставить ячейку справа', + deleteCell : 'Удалить ячейки', + merge : 'Объединить ячейки', + mergeRight : 'Объединить с правой', + mergeDown : 'Объединить с нижней', + splitHorizontal : 'Разделить ячейку по горизонтали', + splitVertical : 'Разделить ячейку по вертикали', + title : 'Свойства ячейки', + cellType : 'Тип ячейки', + rowSpan : 'Объединяет строк', + colSpan : 'Объединяет колонок', + wordWrap : 'Перенос по словам', + hAlign : 'Горизонтальное выравнивание', + vAlign : 'Вертикальное выравнивание', + alignBaseline : 'По базовой линии', + bgColor : 'Цвет фона', + borderColor : 'Цвет границ', + data : 'Данные', + header : 'Заголовок', + yes : 'Да', + no : 'Нет', + invalidWidth : 'Ширина ячейки должна быть числом.', + invalidHeight : 'Высота ячейки должна быть числом.', + invalidRowSpan : 'Количество объединяемых строк должно быть задано числом.', + invalidColSpan : 'Количество объединяемых колонок должно быть задано числом.', + chooseColor : 'Выберите' + }, + + row : + { + menu : 'Строка', + insertBefore : 'Вставить строку сверху', + insertAfter : 'Вставить строку снизу', + deleteRow : 'Удалить строки' + }, + + column : + { + menu : 'Колонка', + insertBefore : 'Вставить колонку слева', + insertAfter : 'Вставить колонку справа', + deleteColumn : 'Удалить колонки' + } + }, + + // Button Dialog. + button : + { + title : 'Свойства кнопки', + text : 'Текст (Значение)', + type : 'Тип', + typeBtn : 'Кнопка', + typeSbm : 'Отправка', + typeRst : 'Сброс' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Свойства флаговой кнопки', + radioTitle : 'Свойства кнопки выбора', + value : 'Значение', + selected : 'Выбрано' + }, + + // Form Dialog. + form : + { + title : 'Свойства формы', + menu : 'Свойства формы', + action : 'Действие', + method : 'Метод', + encoding : 'Кодировка' + }, + + // Select Field Dialog. + select : + { + title : 'Свойства списка выбора', + selectInfo : 'Информация о списке выбора', + opAvail : 'Доступные варианты', + value : 'Значение', + size : 'Размер', + lines : 'строк(и)', + chkMulti : 'Разрешить выбор нескольких вариантов', + opText : 'Текст', + opValue : 'Значение', + btnAdd : 'Добавить', + btnModify : 'Изменить', + btnUp : 'Поднять', + btnDown : 'Опустить', + btnSetValue : 'Пометить как выбранное', + btnDelete : 'Удалить' + }, + + // Textarea Dialog. + textarea : + { + title : 'Свойства многострочного текстового поля', + cols : 'Колонок', + rows : 'Строк' + }, + + // Text Field Dialog. + textfield : + { + title : 'Свойства текстового поля', + name : 'Имя', + value : 'Значение', + charWidth : 'Ширина поля (в символах)', + maxChars : 'Макс. количество символов', + type : 'Тип содержимого', + typeText : 'Текст', + typePass : 'Пароль' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Свойства скрытого поля', + name : 'Имя', + value : 'Значение' + }, + + // Image Dialog. + image : + { + title : 'Свойства изображения', + titleButton : 'Свойства изображения-кнопки', + menu : 'Свойства изображения', + infoTab : 'Данные об изображении', + btnUpload : 'Загрузить на сервер', + upload : 'Загрузить', + alt : 'Альтернативный текст', + lockRatio : 'Сохранять пропорции', + resetSize : 'Вернуть обычные размеры', + border : 'Граница', + hSpace : 'Гориз. отступ', + vSpace : 'Вертик. отступ', + alertUrl : 'Пожалуйста, введите ссылку на изображение', + linkTab : 'Ссылка', + button2Img : 'Вы желаете преобразовать это изображение-кнопку в обычное изображение?', + img2Button : 'Вы желаете преобразовать это обычное изображение в изображение-кнопку?', + urlMissing : 'Не указана ссылка на изображение.', + validateBorder : 'Размер границ должен быть задан числом.', + validateHSpace : 'Горизонтальный отступ должен быть задан числом.', + validateVSpace : 'Вертикальный отступ должен быть задан числом.' + }, + + // Flash Dialog + flash : + { + properties : 'Свойства Flash', + propertiesTab : 'Свойства', + title : 'Свойства Flash', + chkPlay : 'Автоматическое воспроизведение', + chkLoop : 'Повторять', + chkMenu : 'Включить меню Flash', + chkFull : 'Разрешить полноэкранный режим', + scale : 'Масштабировать', + scaleAll : 'Пропорционально', + scaleNoBorder : 'Заходить за границы', + scaleFit : 'Заполнять', + access : 'Доступ к скриптам', + accessAlways : 'Всегда', + accessSameDomain: 'В том же домене', + accessNever : 'Никогда', + alignAbsBottom : 'По низу текста', + alignAbsMiddle : 'По середине текста', + alignBaseline : 'По базовой линии', + alignTextTop : 'По верху текста', + quality : 'Качество', + qualityBest : 'Лучшее', + qualityHigh : 'Высокое', + qualityAutoHigh : 'Запуск на высоком', + qualityMedium : 'Среднее', + qualityAutoLow : 'Запуск на низком', + qualityLow : 'Низкое', + windowModeWindow: 'Обычный', + windowModeOpaque: 'Непрозрачный', + windowModeTransparent : 'Прозрачный', + windowMode : 'Взаимодействие с окном', + flashvars : 'Переменные для Flash', + bgcolor : 'Цвет фона', + hSpace : 'Гориз. отступ', + vSpace : 'Вертик. отступ', + validateSrc : 'Вы должны ввести ссылку', + validateHSpace : 'Горизонтальный отступ задается числом.', + validateVSpace : 'Вертикальный отступ задается числом.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Проверить орфографию', + title : 'Проверка орфографии', + notAvailable : 'Извините, но в данный момент сервис недоступен.', + errorLoading : 'Произошла ошибка при подключении к серверу проверки орфографии: %s.', + notInDic : 'Отсутствует в словаре', + changeTo : 'Изменить на', + btnIgnore : 'Пропустить', + btnIgnoreAll : 'Пропустить всё', + btnReplace : 'Заменить', + btnReplaceAll : 'Заменить всё', + btnUndo : 'Отменить', + noSuggestions : '- Варианты отсутствуют -', + progress : 'Орфография проверяется...', + noMispell : 'Проверка орфографии завершена. Ошибок не найдено', + noChanges : 'Проверка орфографии завершена. Не изменено ни одного слова', + oneChange : 'Проверка орфографии завершена. Изменено одно слово', + manyChanges : 'Проверка орфографии завершена. Изменено слов: %1', + ieSpellDownload : 'Модуль проверки орфографии не установлен. Хотите скачать его?' + }, + + smiley : + { + toolbar : 'Смайлы', + title : 'Вставить смайл', + options : 'Выбор смайла' + }, + + elementsPath : + { + eleLabel : 'Путь элементов', + eleTitle : 'Элемент %1' + }, + + numberedlist : 'Вставить / удалить нумерованный список', + bulletedlist : 'Вставить / удалить маркированный список', + indent : 'Увеличить отступ', + outdent : 'Уменьшить отступ', + + justify : + { + left : 'По левому краю', + center : 'По центру', + right : 'По правому краю', + block : 'По ширине' + }, + + blockquote : 'Цитата', + + clipboard : + { + title : 'Вставить', + cutError : 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).', + copyError : 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).', + pasteMsg : 'Пожалуйста, вставьте текст в зону ниже, используя клавиатуру (<strong>Ctrl/Cmd+V</strong>) и нажмите кнопку "OK".', + securityMsg : 'Настройки безопасности вашего браузера не разрешают редактору напрямую обращаться к буферу обмена. Вы должны вставить текст снова в это окно.', + pasteArea : 'Зона для вставки' + }, + + pastefromword : + { + confirmCleanup : 'Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?', + toolbar : 'Вставить из Word', + title : 'Вставить из Word', + error : 'Невозможно очистить вставленные данные из-за внутренней ошибки' + }, + + pasteText : + { + button : 'Вставить только текст', + title : 'Вставить только текст' + }, + + templates : + { + button : 'Шаблоны', + title : 'Шаблоны содержимого', + options : 'Параметры шаблона', + insertOption : 'Заменить текущее содержимое', + selectPromptMsg : 'Пожалуйста, выберите, какой шаблон следует открыть в редакторе', + emptyListMsg : '(не определено ни одного шаблона)' + }, + + showBlocks : 'Отображать блоки', + + stylesCombo : + { + label : 'Стили', + panelTitle : 'Стили форматирования', + panelTitle1 : 'Стили блока', + panelTitle2 : 'Стили элемента', + panelTitle3 : 'Стили объекта' + }, + + format : + { + label : 'Форматирование', + panelTitle : 'Форматирование', + + tag_p : 'Обычное', + tag_pre : 'Моноширинное', + tag_address : 'Адрес', + tag_h1 : 'Заголовок 1', + tag_h2 : 'Заголовок 2', + tag_h3 : 'Заголовок 3', + tag_h4 : 'Заголовок 4', + tag_h5 : 'Заголовок 5', + tag_h6 : 'Заголовок 6', + tag_div : 'Обычное (div)' + }, + + div : + { + title : 'Создать Div-контейнер', + toolbar : 'Создать Div-контейнер', + cssClassInputLabel : 'Классы CSS', + styleSelectLabel : 'Стиль', + IdInputLabel : 'Идентификатор', + languageCodeInputLabel : 'Код языка', + inlineStyleInputLabel : 'Стиль элемента', + advisoryTitleInputLabel : 'Заголовок', + langDirLabel : 'Направление текста', + langDirLTRLabel : 'Слева направо (LTR)', + langDirRTLLabel : 'Справа налево (RTL)', + edit : 'Редактировать контейнер', + remove : 'Удалить контейнер' + }, + + iframe : + { + title : 'Свойства iFrame', + toolbar : 'iFrame', + noUrl : 'Пожалуйста, введите ссылку фрейма', + scrolling : 'Отображать полосы прокрутки', + border : 'Показать границы фрейма' + }, + + font : + { + label : 'Шрифт', + voiceLabel : 'Шрифт', + panelTitle : 'Шрифт' + }, + + fontSize : + { + label : 'Размер', + voiceLabel : 'Размер шрифта', + panelTitle : 'Размер шрифта' + }, + + colorButton : + { + textColorTitle : 'Цвет текста', + bgColorTitle : 'Цвет фона', + panelTitle : 'Цвета', + auto : 'Автоматически', + more : 'Ещё цвета...' + }, + + colors : + { + '000' : 'Чёрный', + '800000' : 'Бордовый', + '8B4513' : 'Кожано-коричневый', + '2F4F4F' : 'Темный синевато-серый', + '008080' : 'Сине-зелёный', + '000080' : 'Тёмно-синий', + '4B0082' : 'Индиго', + '696969' : 'Тёмно-серый', + 'B22222' : 'Кирпичный', + 'A52A2A' : 'Коричневый', + 'DAA520' : 'Золотисто-берёзовый', + '006400' : 'Темно-зелёный', + '40E0D0' : 'Бирюзовый', + '0000CD' : 'Умеренно синий', + '800080' : 'Пурпурный', + '808080' : 'Серый', + 'F00' : 'Красный', + 'FF8C00' : 'Темно-оранжевый', + 'FFD700' : 'Золотистый', + '008000' : 'Зелёный', + '0FF' : 'Васильковый', + '00F' : 'Синий', + 'EE82EE' : 'Фиолетовый', + 'A9A9A9' : 'Тускло-серый', + 'FFA07A' : 'Светло-лососевый', + 'FFA500' : 'Оранжевый', + 'FFFF00' : 'Жёлтый', + '00FF00' : 'Лайма', + 'AFEEEE' : 'Бледно-синий', + 'ADD8E6' : 'Свелто-голубой', + 'DDA0DD' : 'Сливовый', + 'D3D3D3' : 'Светло-серый', + 'FFF0F5' : 'Розово-лавандовый', + 'FAEBD7' : 'Античный белый', + 'FFFFE0' : 'Светло-жёлтый', + 'F0FFF0' : 'Медвяной росы', + 'F0FFFF' : 'Лазурный', + 'F0F8FF' : 'Бледно-голубой', + 'E6E6FA' : 'Лавандовый', + 'FFF' : 'Белый' + }, + + scayt : + { + title : 'Проверка орфографии по мере ввода (SCAYT)', + opera_title : 'Не поддерживается Opera', + enable : 'Включить SCAYT', + disable : 'Отключить SCAYT', + about : 'О SCAYT', + toggle : 'Переключить SCAYT', + options : 'Настройки', + langs : 'Языки', + moreSuggestions : 'Ещё варианты', + ignore : 'Пропустить', + ignoreAll : 'Пропустить всё', + addWord : 'Добавить слово', + emptyDic : 'Вы должны указать название словаря.', + + optionsTab : 'Параметры', + allCaps : 'Игнорировать слова из заглавных букв', + ignoreDomainNames : 'Игнорировать доменные имена', + mixedCase : 'Игнорировать слова из букв в разном регистре', + mixedWithDigits : 'Игнорировать слова, содержащие цифры', + + languagesTab : 'Языки', + + dictionariesTab : 'Словари', + dic_field_name : 'Название словаря', + dic_create : 'Создать', + dic_restore : 'Восстановить', + dic_delete : 'Удалить', + dic_rename : 'Переименовать', + dic_info : 'Изначально, пользовательский словарь хранится в cookie, которые ограничены в размере. Когда словарь пользователя вырастает до размеров, что его невозможно хранить в cookie, он переносится на хранение на наш сервер. Чтобы сохранить ваш словарь на нашем сервере, вам следует указать название вашего словаря. Если у вас уже был словарь, который вы сохраняли на нашем сервере, то укажите здесь его название и нажмите кнопку Восстановить.', + + aboutTab : 'О SCAYT' + }, + + about : + { + title : 'О CKEditor', + dlgTitle : 'О CKEditor', + help : '$1 содержит подробную справку по использованию.', + userGuide : 'Руководство пользователя CKEditor', + moreInfo : 'Для получения информации о лицензии, пожалуйста, перейдите на наш сайт:', + copy : 'Copyright © $1. Все права защищены.' + }, + + maximize : 'Развернуть', + minimize : 'Свернуть', + + fakeobjects : + { + anchor : 'Якорь', + flash : 'Flash анимация', + iframe : 'iFrame', + hiddenfield : 'Скрытое поле', + unknown : 'Неизвестный объект' + }, + + resize : 'Перетащите для изменения размера', + + colordialog : + { + title : 'Выберите цвет', + options : 'Настройки цвета', + highlight : 'Под курсором', + selected : 'Выбранный цвет', + clear : 'Очистить' + }, + + toolbarCollapse : 'Свернуть панель инструментов', + toolbarExpand : 'Развернуть панель инструментов', + + toolbarGroups : + { + document : 'Документ', + clipboard : 'Буфер обмена / Отмена действий', + editing : 'Корректировка', + forms : 'Формы', + basicstyles : 'Простые стили', + paragraph : 'Абзац', + links : 'Ссылки', + insert : 'Вставка', + styles : 'Стили', + colors : 'Цвета', + tools : 'Инструменты' + }, + + bidi : + { + ltr : 'Направление текста слева направо', + rtl : 'Направление текста справа налево' + }, + + docprops : + { + label : 'Свойства документа', + title : 'Свойства документа', + design : 'Дизайн', + meta : 'Метаданные', + chooseColor : 'Выберите', + other : 'Другой ...', + docTitle : 'Заголовок страницы', + charset : 'Кодировка набора символов', + charsetOther : 'Другая кодировка набора символов', + charsetASCII : 'ASCII', + charsetCE : 'Центрально-европейская', + charsetCT : 'Китайская традиционная (Big5)', + charsetCR : 'Кириллица', + charsetGR : 'Греческая', + charsetJP : 'Японская', + charsetKR : 'Корейская', + charsetTR : 'Турецкая', + charsetUN : 'Юникод (UTF-8)', + charsetWE : 'Западно-европейская', + docType : 'Заголовок типа документа', + docTypeOther : 'Другой заголовок типа документа', + xhtmlDec : 'Включить объявления XHTML', + bgColor : 'Цвет фона', + bgImage : 'Ссылка на фоновое изображение', + bgFixed : 'Фон прикреплён (не проматывается)', + txtColor : 'Цвет текста', + margin : 'Отступы страницы', + marginTop : 'Верхний', + marginLeft : 'Левый', + marginRight : 'Правый', + marginBottom : 'Нижний', + metaKeywords : 'Ключевые слова документа (через запятую)', + metaDescription : 'Описание документа', + metaAuthor : 'Автор', + metaCopyright : 'Авторские права', + previewHtml : '<p>Это <strong>пример</strong> текста, написанного с помощью <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/sk.js b/htdocs/includes/ckeditor/_source/lang/sk.js new file mode 100644 index 0000000000000000000000000000000000000000..e3df7bc2bf6c755b236d1392ac914e652b373b30 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/sk.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Slovak language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['sk'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Zdroj', + newPage : 'Nová stránka', + save : 'Uložiť', + preview : 'Náhľad', + cut : 'Vystrihnúť', + copy : 'Kopírovať', + paste : 'Vložiť', + print : 'Tlač', + underline : 'Podčiarknuté', + bold : 'Tučné', + italic : 'Kurzíva', + selectAll : 'Vybrať všetko', + removeFormat : 'Odstrániť formátovanie', + strike : 'Prečiarknuté', + subscript : 'Dolný index', + superscript : 'Horný index', + horizontalrule : 'Vložiť vodorovnú čiaru', + pagebreak : 'Vložiť oddeľovač stránky', + pagebreakAlt : 'Zalomenie strany', + unlink : 'Odstrániť odkaz', + undo : 'Späť', + redo : 'Znovu', + + // Common messages and labels. + common : + { + browseServer : 'Prechádzať server', + url : 'URL', + protocol : 'Protokol', + upload : 'Odoslať', + uploadSubmit : 'Odoslať na server', + image : 'Obrázok', + flash : 'Flash', + form : 'Formulár', + checkbox : 'Zaškrtávacie políčko', + radio : 'Prepínač', + textField : 'Textové pole', + textarea : 'Textová oblasť', + hiddenField : 'Skryté pole', + button : 'Tlačidlo', + select : 'Rozbaľovací zoznam', + imageButton : 'Obrázkové tlačidlo', + notSet : '<nenastavené>', + id : 'Id', + name : 'Meno', + langDir : 'Orientácia jazyka', + langDirLtr : 'Zľava doprava (LTR)', + langDirRtl : 'Sprava doľava (RTL)', + langCode : 'Kód jazyka', + longDescr : 'Dlhý popis URL', + cssClass : 'Trieda štýlu', + advisoryTitle : 'Pomocný titulok', + cssStyle : 'Štýl', + ok : 'OK', + cancel : 'Zrušiť', + close : 'Zatvorit', + preview : 'Náhľad', + generalTab : 'Hlavné', + advancedTab : 'Rozšírené', + validateNumberFailed : 'Hodnota nieje číslo.', + confirmNewPage : 'Prajete si načítat novú stránku? Všetky neuložené zmeny budú stratené. ', + confirmCancel : 'Niektore možnosti boli zmenené. Naozaj chcete zavrieť okno?', + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Šírka', + height : 'Výška', + align : 'Zarovnanie', + alignLeft : 'Vľavo', + alignRight : 'Vpravo', + alignCenter : 'Na stred', + alignTop : 'Nahor', + alignMiddle : 'Na stred', + alignBottom : 'Dole', + invalidHeight : 'Výška musí byť číslo.', + invalidWidth : 'Šírka musí byť číslo.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Vložiť špeciálne znaky', + title : 'Výber špeciálneho znaku', + options : 'Možnosti špecíalneho znaku' + }, + + // Link dialog. + link : + { + toolbar : 'Vložiť/zmeniť odkaz', + other : '<iný>', + menu : 'Zmeniť odkaz', + title : 'Odkaz', + info : 'Informácie o odkaze', + target : 'Cieľ', + upload : 'Odoslať', + advanced : 'Rozšírené', + type : 'Typ odkazu', + toUrl : 'URL', // MISSING + toAnchor : 'Kotva v tejto stránke', + toEmail : 'E-Mail', + targetFrame : '<rámec>', + targetPopup : '<vyskakovacie okno>', + targetFrameName : 'Meno rámu cieľa', + targetPopupName : 'Názov vyskakovacieho okna', + popupFeatures : 'Vlastnosti vyskakovacieho okna', + popupResizable : 'Meniteľná veľkosť', + popupStatusBar : 'Stavový riadok', + popupLocationBar: 'Panel umiestnenia', + popupToolbar : 'Panel nástrojov', + popupMenuBar : 'Panel ponuky', + popupFullScreen : 'Celá obrazovka (IE)', + popupScrollBars : 'Posuvníky', + popupDependent : 'Závislosť (Netscape)', + popupLeft : 'Ľavý okraj', + popupTop : 'Horný okraj', + id : 'Id', // MISSING + langDir : 'Orientácia jazyka', + langDirLTR : 'Zľava doprava (LTR)', + langDirRTL : 'Sprava doľava (RTL)', + acccessKey : 'Prístupový kľúč', + name : 'Meno', + langCode : 'Orientácia jazyka', + tabIndex : 'Poradie prvku', + advisoryTitle : 'Pomocný titulok', + advisoryContentType : 'Pomocný typ obsahu', + cssClasses : 'Trieda štýlu', + charset : 'Priradená znaková sada', + styles : 'Štýl', + rel : 'Relationship', // MISSING + selectAnchor : 'Vybrať kotvu', + anchorName : 'Podľa mena kotvy', + anchorId : 'Podľa Id objektu', + emailAddress : 'E-Mailová adresa', + emailSubject : 'Predmet správy', + emailBody : 'Telo správy', + noAnchors : '(V stránke nie je definovaná žiadna kotva)', + noUrl : 'Zadajte prosím URL odkazu', + noEmail : 'Zadajte prosím e-mailovú adresu' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Vložiť/zmeniť kotvu', + menu : 'Vlastnosti kotvy', + title : 'Vlastnosti kotvy', + name : 'Meno kotvy', + errorName : 'Zadajte prosím meno kotvy', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Vlastnosti číselného zoznamu', + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Druh', + start : 'Začiatok', + validateStartNumber :'Začiatočné číslo číselného zoznamu musí byť celé číslo.', + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Nájsť a nahradiť', + find : 'Hľadať', + replace : 'Nahradiť', + findWhat : 'Čo hľadať:', + replaceWith : 'Čím nahradiť:', + notFoundMsg : 'Hľadaný text nebol nájdený.', + findOptions : 'Find Options', // MISSING + matchCase : 'Rozlišovať malé/veľké písmená', + matchWord : 'Len celé slová', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Nahradiť všetko', + replaceSuccessMsg : '%1 výskyt(ov) nahradených.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabuľka', + title : 'Vlastnosti tabuľky', + menu : 'Vlastnosti tabuľky', + deleteTable : 'Vymazať tabuľku', + rows : 'Riadky', + columns : 'Stĺpce', + border : 'Ohraničenie', + widthPx : 'pixelov', + widthPc : 'percent', + widthUnit : 'width unit', // MISSING + cellSpace : 'Vzdialenosť buniek', + cellPad : 'Odsadenie obsahu', + caption : 'Popis', + summary : 'Prehľad', + headers : 'Hlavička', + headersNone : 'Žiadne', + headersColumn : 'Prvý stĺpec', + headersRow : 'Prvý riadok', + headersBoth : 'Obe', + invalidRows : 'Počet riadkov musí byť číslo väčšie ako 0.', + invalidCols : 'Počet stĺpcov musí byť číslo väčšie ako 0.', + invalidBorder : 'Širka rámu musí byť celé číslo.', + invalidWidth : 'Širka tabuľky musí byť číslo.', + invalidHeight : 'Výška tabuľky musí byť číslo.', + invalidCellSpacing : 'Medzera mädzi bunkami (spacing) musí byť číslo.', + invalidCellPadding : 'Odsadenie v bunkách (padding) musí byť číslo.', + + cell : + { + menu : 'Bunka', + insertBefore : 'Vložiť bunku pred', + insertAfter : 'Vložiť bunku za', + deleteCell : 'Vymazať bunky', + merge : 'Zlúčiť bunky', + mergeRight : 'Zlúčiť doprava', + mergeDown : 'Zlúčiť dole', + splitHorizontal : 'Rozdeliť bunky horizontálne', + splitVertical : 'Rozdeliť bunky vertikálne', + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Riadok', + insertBefore : 'Vložiť riadok za', + insertAfter : 'Vložiť riadok pred', + deleteRow : 'Vymazať riadok' + }, + + column : + { + menu : 'Stĺpec', + insertBefore : 'Vložiť stĺpec za', + insertAfter : 'Vložiť stĺpec pred', + deleteColumn : 'Zmazať stĺpec' + } + }, + + // Button Dialog. + button : + { + title : 'Vlastnosti tlačidla', + text : 'Text', + type : 'Typ', + typeBtn : 'Tlačidlo', + typeSbm : 'Odoslať', + typeRst : 'Vymazať' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Vlastnosti zaškrtávacieho políčka', + radioTitle : 'Vlastnosti prepínača', + value : 'Hodnota', + selected : 'Vybrané' + }, + + // Form Dialog. + form : + { + title : 'Vlastnosti formulára', + menu : 'Vlastnosti formulára', + action : 'Akcie', + method : 'Metóda', + encoding : 'Kódovanie' + }, + + // Select Field Dialog. + select : + { + title : 'Vlastnosti rozbaľovacieho zoznamu', + selectInfo : 'Info', + opAvail : 'Dostupné možnosti', + value : 'Hodnota', + size : 'Veľkosť', + lines : 'riadkov', + chkMulti : 'Povoliť viacnásobný výber', + opText : 'Text', + opValue : 'Hodnota', + btnAdd : 'Pridať', + btnModify : 'Zmeniť', + btnUp : 'Hore', + btnDown : 'Dole', + btnSetValue : 'Nastaviť ako vybranú hodnotu', + btnDelete : 'Zmazať' + }, + + // Textarea Dialog. + textarea : + { + title : 'Vlastnosti textovej oblasti', + cols : 'Stĺpce', + rows : 'Riadky' + }, + + // Text Field Dialog. + textfield : + { + title : 'Vlastnosti textového poľa', + name : 'Názov', + value : 'Hodnota', + charWidth : 'Šírka pola (znakov)', + maxChars : 'Maximálny počet znakov', + type : 'Typ', + typeText : 'Text', + typePass : 'Heslo' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Vlastnosti skrytého poľa', + name : 'Názov', + value : 'Hodnota' + }, + + // Image Dialog. + image : + { + title : 'Vlastnosti obrázku', + titleButton : 'Vlastnosti obrázkového tlačidla', + menu : 'Vlastnosti obrázku', + infoTab : 'Informácie o obrázku', + btnUpload : 'Odoslať na server', + upload : 'Odoslať', + alt : 'Alternatívny text', + lockRatio : 'Zámok', + resetSize : 'Pôvodná veľkosť', + border : 'Okraje', + hSpace : 'H-medzera', + vSpace : 'V-medzera', + alertUrl : 'Zadajte prosím URL obrázku', + linkTab : 'Odkaz', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Vlastnosti Flashu', + propertiesTab : 'Properties', // MISSING + title : 'Vlastnosti Flashu', + chkPlay : 'Automatické prehrávanie', + chkLoop : 'Opakovanie', + chkMenu : 'Povoliť Flash Menu', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Mierka', + scaleAll : 'Zobraziť mierku', + scaleNoBorder : 'Bez okrajov', + scaleFit : 'Roztiahnuť na celé', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Úplne dole', + alignAbsMiddle : 'Do stredu', + alignBaseline : 'Na základňu', + alignTextTop : 'Na horný okraj textu', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Farba pozadia', + hSpace : 'H-medzera', + vSpace : 'V-medzera', + validateSrc : 'Zadajte prosím URL odkazu', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Kontrola pravopisu', + title : 'Spell Check', // MISSING + notAvailable : 'Služba práve nieje dostupná.', + errorLoading : 'Chyba pri načítaní slovníka z adresy: %s.', + notInDic : 'Nie je v slovníku', + changeTo : 'Zmeniť na', + btnIgnore : 'Ignorovať', + btnIgnoreAll : 'Ignorovať všetko', + btnReplace : 'Prepísat', + btnReplaceAll : 'Prepísat všetko', + btnUndo : 'Späť', + noSuggestions : '- Žiadny návrh -', + progress : 'Prebieha kontrola pravopisu...', + noMispell : 'Kontrola pravopisu dokončená: bez chýb', + noChanges : 'Kontrola pravopisu dokončená: žiadne slová nezmenené', + oneChange : 'Kontrola pravopisu dokončená: zmenené jedno slovo', + manyChanges : 'Kontrola pravopisu dokončená: zmenených %1 slov', + ieSpellDownload : 'Kontrola pravopisu nie je naištalovaná. Chcete ju hneď stiahnuť?' + }, + + smiley : + { + toolbar : 'Smajlíky', + title : 'Vkladanie smajlíkov', + options : 'Možnosti smajlíkov' + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Číslovanie', + bulletedlist : 'Odrážky', + indent : 'Zväčšiť odsadenie', + outdent : 'Zmenšiť odsadenie', + + justify : + { + left : 'Zarovnať vľavo', + center : 'Zarovnať na stred', + right : 'Zarovnať vpravo', + block : 'Zarovnať do bloku' + }, + + blockquote : 'Citácia', + + clipboard : + { + title : 'Vložiť', + cutError : 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru spustiť funkciu pre vystrihnutie zvoleného textu do schránky. Prosím vystrihnite zvolený text do schránky pomocou klávesnice (Ctrl/Cmd+X).', + copyError : 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru spustiť funkciu pre kopírovanie zvoleného textu do schránky. Prosím skopírujte zvolený text do schránky pomocou klávesnice (Ctrl/Cmd+C).', + pasteMsg : 'Prosím vložte nasledovný rámček použitím klávesnice (<STRONG>Ctrl/Cmd+V</STRONG>) a stlačte <STRONG>OK</STRONG>.', + securityMsg : 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru pristupovať priamo k datám v schránke. Musíte ich vložiť znovu do tohto okna.', + pasteArea : 'Vložiť pole' + }, + + pastefromword : + { + confirmCleanup : 'Vkladaný text vyzerá byť skopírovaný z Wordu. Chcete ho automaticky vyčistiť pred vkladaním?', + toolbar : 'Vložiť z Wordu', + title : 'Vložiť z Wordu', + error : 'Nastala chyba pri čistení údajov. Nie je možné vyčistiť vložené údaje.' + }, + + pasteText : + { + button : 'Vložiť ako čistý text', + title : 'Vložiť ako čistý text' + }, + + templates : + { + button : 'Šablóny', + title : 'Šablóny obsahu', + options : 'Vlastnosti šablóny', + insertOption : 'Nahradiť aktuálny obsah', + selectPromptMsg : 'Prosím vyberte šablóny na otvorenie v editore<br>(súšasný obsah bude stratený):', + emptyListMsg : '(žiadne šablóny nenájdené)' + }, + + showBlocks : 'Ukázať bloky', + + stylesCombo : + { + label : 'Štýl', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Formát', + panelTitle : 'Formát', + + tag_p : 'Normálny', + tag_pre : 'Formátovaný', + tag_address : 'Adresa', + tag_h1 : 'Nadpis 1', + tag_h2 : 'Nadpis 2', + tag_h3 : 'Nadpis 3', + tag_h4 : 'Nadpis 4', + tag_h5 : 'Nadpis 5', + tag_h6 : 'Nadpis 6', + tag_div : 'Odsek (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame - vlastnosti', + toolbar : 'IFrame', // MISSING + noUrl : 'Vložte URL pre iframe', + scrolling : 'Povoliť skrolovanie', + border : 'Zobraziť orámovanie' + }, + + font : + { + label : 'Písmo', + voiceLabel : 'Font', // MISSING + panelTitle : 'Písmo' + }, + + fontSize : + { + label : 'Veľkosť', + voiceLabel : 'Veľkosť písma', + panelTitle : 'Veľkosť' + }, + + colorButton : + { + textColorTitle : 'Farba textu', + bgColorTitle : 'Farba pozadia', + panelTitle : 'Farby', + auto : 'Automaticky', + more : 'Viac farieb...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximalizovať', + minimize : 'Minimalizovať', + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Vlastnosti dokumentu', + title : 'Vlastnosti dokumentu', + design : 'Design', // MISSING + meta : 'Meta Data', + chooseColor : 'Choose', // MISSING + other : '<iný>', + docTitle : 'Titulok', + charset : 'Kódová stránka', + charsetOther : 'Iná kódová stránka', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Stredoeurópske', + charsetCT : 'Čínština tradičná (Big5)', + charsetCR : 'Cyrillika', + charsetGR : 'Gréčtina', + charsetJP : 'Japončina', + charsetKR : 'Korejčina', + charsetTR : 'Turečtina', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Západná európa', + docType : 'Typ záhlavia dokumentu', + docTypeOther : 'Iný typ záhlavia dokumentu', + xhtmlDec : 'Obsahuje deklarácie XHTML', + bgColor : 'Farba pozadia', + bgImage : 'URL adresa obrázku na pozadí', + bgFixed : 'Fixné pozadie', + txtColor : 'Farba textu', + margin : 'Okraje stránky', + marginTop : 'Horný', + marginLeft : 'Ľavý', + marginRight : 'Pravý', + marginBottom : 'Dolný', + metaKeywords : 'Kľúčové slová pre indexovanie (oddelené čiarkou)', + metaDescription : 'Popis stránky', + metaAuthor : 'Autor', + metaCopyright : 'Autorské práva', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/sl.js b/htdocs/includes/ckeditor/_source/lang/sl.js new file mode 100644 index 0000000000000000000000000000000000000000..f9ee711025f63dc9269c135e5ae6b1dffbc1825d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/sl.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Slovenian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['sl'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Izvorna koda', + newPage : 'Nova stran', + save : 'Shrani', + preview : 'Predogled', + cut : 'Izreži', + copy : 'Kopiraj', + paste : 'Prilepi', + print : 'Natisni', + underline : 'Podčrtano', + bold : 'Krepko', + italic : 'Ležeče', + selectAll : 'Izberi vse', + removeFormat : 'Odstrani oblikovanje', + strike : 'Prečrtano', + subscript : 'Podpisano', + superscript : 'Nadpisano', + horizontalrule : 'Vstavi vodoravno črto', + pagebreak : 'Vstavi prelom strani', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Odstrani povezavo', + undo : 'Razveljavi', + redo : 'Ponovi', + + // Common messages and labels. + common : + { + browseServer : 'Prebrskaj na strežniku', + url : 'URL', + protocol : 'Protokol', + upload : 'Prenesi', + uploadSubmit : 'Pošlji na strežnik', + image : 'Slika', + flash : 'Flash', + form : 'Obrazec', + checkbox : 'Potrditveno polje', + radio : 'Izbirno polje', + textField : 'Vnosno polje', + textarea : 'Vnosno območje', + hiddenField : 'Skrito polje', + button : 'Gumb', + select : 'Spustni seznam', + imageButton : 'Gumb s sliko', + notSet : '<ni postavljen>', + id : 'Id', + name : 'Ime', + langDir : 'Smer jezika', + langDirLtr : 'Od leve proti desni (LTR)', + langDirRtl : 'Od desne proti levi (RTL)', + langCode : 'Oznaka jezika', + longDescr : 'Dolg opis URL-ja', + cssClass : 'Razred stilne predloge', + advisoryTitle : 'Predlagani naslov', + cssStyle : 'Slog', + ok : 'V redu', + cancel : 'Prekliči', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'Splošno', + advancedTab : 'Napredno', + validateNumberFailed : 'Ta vrednost ni število.', + confirmNewPage : 'Vse neshranjene spremembe te vsebine bodo izgubljene. Ali gotovo želiš naložiti novo stran?', + confirmCancel : 'Nekaj možnosti je bilo spremenjenih. Ali gotovo želiš zapreti okno?', + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Širina', + height : 'Višina', + align : 'Poravnava', + alignLeft : 'Levo', + alignRight : 'Desno', + alignCenter : 'Sredinsko', + alignTop : 'Na vrh', + alignMiddle : 'V sredino', + alignBottom : 'Na dno', + invalidHeight : 'Višina mora biti število.', + invalidWidth : 'Širina mora biti število.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, nedosegljiv</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Vstavi posebni znak', + title : 'Izberi posebni znak', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Vstavi/uredi povezavo', + other : '<drug>', + menu : 'Uredi povezavo', + title : 'Povezava', + info : 'Podatki o povezavi', + target : 'Cilj', + upload : 'Prenesi', + advanced : 'Napredno', + type : 'Vrsta povezave', + toUrl : 'URL', // MISSING + toAnchor : 'Zaznamek na tej strani', + toEmail : 'Elektronski naslov', + targetFrame : '<okvir>', + targetPopup : '<pojavno okno>', + targetFrameName : 'Ime ciljnega okvirja', + targetPopupName : 'Ime pojavnega okna', + popupFeatures : 'Značilnosti pojavnega okna', + popupResizable : 'Spremenljive velikosti', + popupStatusBar : 'Vrstica stanja', + popupLocationBar: 'Naslovna vrstica', + popupToolbar : 'Orodna vrstica', + popupMenuBar : 'Menijska vrstica', + popupFullScreen : 'Celozaslonska slika (IE)', + popupScrollBars : 'Drsniki', + popupDependent : 'Podokno (Netscape)', + popupLeft : 'Lega levo', + popupTop : 'Lega na vrhu', + id : 'Id', + langDir : 'Smer jezika', + langDirLTR : 'Od leve proti desni (LTR)', + langDirRTL : 'Od desne proti levi (RTL)', + acccessKey : 'Vstopno geslo', + name : 'Ime', + langCode : 'Smer jezika', + tabIndex : 'Številka tabulatorja', + advisoryTitle : 'Predlagani naslov', + advisoryContentType : 'Predlagani tip vsebine (content-type)', + cssClasses : 'Razred stilne predloge', + charset : 'Kodna tabela povezanega vira', + styles : 'Slog', + rel : 'Relationship', // MISSING + selectAnchor : 'Izberi zaznamek', + anchorName : 'Po imenu zaznamka', + anchorId : 'Po ID-ju elementa', + emailAddress : 'Elektronski naslov', + emailSubject : 'Predmet sporočila', + emailBody : 'Vsebina sporočila', + noAnchors : '(V tem dokumentu ni zaznamkov)', + noUrl : 'Vnesite URL povezave', + noEmail : 'Vnesite elektronski naslov' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Vstavi/uredi zaznamek', + menu : 'Lastnosti zaznamka', + title : 'Lastnosti zaznamka', + name : 'Ime zaznamka', + errorName : 'Prosim vnesite ime zaznamka', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Najdi in zamenjaj', + find : 'Najdi', + replace : 'Zamenjaj', + findWhat : 'Najdi:', + replaceWith : 'Zamenjaj z:', + notFoundMsg : 'Navedeno besedilo ni bilo najdeno.', + findOptions : 'Find Options', // MISSING + matchCase : 'Razlikuj velike in male črke', + matchWord : 'Samo cele besede', + matchCyclic : 'Primerjaj znake v cirilici', + replaceAll : 'Zamenjaj vse', + replaceSuccessMsg : '%1 pojavitev je bilo zamenjano.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabela', + title : 'Lastnosti tabele', + menu : 'Lastnosti tabele', + deleteTable : 'Izbriši tabelo', + rows : 'Vrstice', + columns : 'Stolpci', + border : 'Velikost obrobe', + widthPx : 'pik', + widthPc : 'procentov', + widthUnit : 'width unit', // MISSING + cellSpace : 'Razmik med celicami', + cellPad : 'Polnilo med celicami', + caption : 'Naslov', + summary : 'Povzetek', + headers : 'Glave', + headersNone : 'Brez', + headersColumn : 'Prvi stolpec', + headersRow : 'Prva vrstica', + headersBoth : 'Oboje', + invalidRows : 'Število vrstic mora biti večje od 0.', + invalidCols : 'Število stolpcev mora biti večje od 0.', + invalidBorder : 'Širina obrobe mora biti število.', + invalidWidth : 'Širina tabele mora biti število.', + invalidHeight : 'Višina tabele mora biti število.', + invalidCellSpacing : 'Razmik med celicami mora biti število.', + invalidCellPadding : 'Zamik celic mora biti število', + + cell : + { + menu : 'Celica', + insertBefore : 'Vstavi celico pred', + insertAfter : 'Vstavi celico za', + deleteCell : 'Izbriši celice', + merge : 'Združi celice', + mergeRight : 'Združi desno', + mergeDown : 'Druži navzdol', + splitHorizontal : 'Razdeli celico vodoravno', + splitVertical : 'Razdeli celico navpično', + title : 'Lastnosti celice', + cellType : 'Vrsta celice', + rowSpan : 'Razpon vrstic', + colSpan : 'Razpon stolpcev', + wordWrap : 'Prelom besedila', + hAlign : 'Vodoravna poravnava', + vAlign : 'Navpična poravnava', + alignBaseline : 'Osnovnica', + bgColor : 'Barva ozadja', + borderColor : 'Barva obrobe', + data : 'Podatki', + header : 'Glava', + yes : 'Da', + no : 'Ne', + invalidWidth : 'Širina celice mora biti število.', + invalidHeight : 'Višina celice mora biti število.', + invalidRowSpan : 'Razpon vrstic mora biti celo število.', + invalidColSpan : 'Razpon stolpcev mora biti celo število.', + chooseColor : 'Izberi' + }, + + row : + { + menu : 'Vrstica', + insertBefore : 'Vstavi vrstico pred', + insertAfter : 'Vstavi vrstico za', + deleteRow : 'Izbriši vrstice' + }, + + column : + { + menu : 'Stolpec', + insertBefore : 'Vstavi stolpec pred', + insertAfter : 'Vstavi stolpec za', + deleteColumn : 'Izbriši stolpce' + } + }, + + // Button Dialog. + button : + { + title : 'Lastnosti gumba', + text : 'Besedilo (Vrednost)', + type : 'Tip', + typeBtn : 'Gumb', + typeSbm : 'Potrdi', + typeRst : 'Ponastavi' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Lastnosti potrditvenega polja', + radioTitle : 'Lastnosti izbirnega polja', + value : 'Vrednost', + selected : 'Izbrano' + }, + + // Form Dialog. + form : + { + title : 'Lastnosti obrazca', + menu : 'Lastnosti obrazca', + action : 'Akcija', + method : 'Metoda', + encoding : 'Kodiranje znakov' + }, + + // Select Field Dialog. + select : + { + title : 'Lastnosti spustnega seznama', + selectInfo : 'Podatki', + opAvail : 'Razpoložljive izbire', + value : 'Vrednost', + size : 'Velikost', + lines : 'vrstic', + chkMulti : 'Dovoli izbor večih vrstic', + opText : 'Besedilo', + opValue : 'Vrednost', + btnAdd : 'Dodaj', + btnModify : 'Spremeni', + btnUp : 'Gor', + btnDown : 'Dol', + btnSetValue : 'Postavi kot privzeto izbiro', + btnDelete : 'Izbriši' + }, + + // Textarea Dialog. + textarea : + { + title : 'Lastnosti vnosnega območja', + cols : 'Stolpcev', + rows : 'Vrstic' + }, + + // Text Field Dialog. + textfield : + { + title : 'Lastnosti vnosnega polja', + name : 'Ime', + value : 'Vrednost', + charWidth : 'Dolžina', + maxChars : 'Največje število znakov', + type : 'Tip', + typeText : 'Besedilo', + typePass : 'Geslo' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Lastnosti skritega polja', + name : 'Ime', + value : 'Vrednost' + }, + + // Image Dialog. + image : + { + title : 'Lastnosti slike', + titleButton : 'Lastnosti gumba s sliko', + menu : 'Lastnosti slike', + infoTab : 'Podatki o sliki', + btnUpload : 'Pošlji na strežnik', + upload : 'Pošlji', + alt : 'Nadomestno besedilo', + lockRatio : 'Zakleni razmerje', + resetSize : 'Ponastavi velikost', + border : 'Obroba', + hSpace : 'Vodoravni razmik', + vSpace : 'Navpični razmik', + alertUrl : 'Vnesite URL slike', + linkTab : 'Povezava', + button2Img : 'Želiš pretvoriti izbrani gumb s sliko v preprosto sliko?', + img2Button : 'Želiš pretvoriti izbrano sliko v gumb s sliko?', + urlMissing : 'Manjka vir (URL) slike.', + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Lastnosti Flash', + propertiesTab : 'Lastnosti', + title : 'Lastnosti Flash', + chkPlay : 'Samodejno predvajaj', + chkLoop : 'Ponavljanje', + chkMenu : 'Omogoči Flash Meni', + chkFull : 'Dovoli celozaslonski način', + scale : 'Povečava', + scaleAll : 'Pokaži vse', + scaleNoBorder : 'Brez obrobe', + scaleFit : 'Natančno prileganje', + access : 'Dostop skript', + accessAlways : 'Vedno', + accessSameDomain: 'Samo ista domena', + accessNever : 'Nikoli', + alignAbsBottom : 'Popolnoma na dno', + alignAbsMiddle : 'Popolnoma v sredino', + alignBaseline : 'Na osnovno črto', + alignTextTop : 'Besedilo na vrh', + quality : 'Kakovost', + qualityBest : 'Najvišja', + qualityHigh : 'Visoka', + qualityAutoHigh : 'Samodejno visoka', + qualityMedium : 'Srednja', + qualityAutoLow : 'Samodejno nizka', + qualityLow : 'Nizka', + windowModeWindow: 'Okno', + windowModeOpaque: 'Motno', + windowModeTransparent : 'Prosojno', + windowMode : 'Vrsta okna', + flashvars : 'Spremenljivke za Flash', + bgcolor : 'Barva ozadja', + hSpace : 'Vodoravni razmik', + vSpace : 'Navpični razmik', + validateSrc : 'Vnesite URL povezave', + validateHSpace : 'Vodoravni razmik mora biti število.', + validateVSpace : 'Navpični razmik mora biti število.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Preveri črkovanje', + title : 'Črkovalnik', + notAvailable : 'Oprostite, storitev trenutno ni dosegljiva.', + errorLoading : 'Napaka pri nalaganju storitve programa na naslovu %s.', + notInDic : 'Ni v slovarju', + changeTo : 'Spremeni v', + btnIgnore : 'Prezri', + btnIgnoreAll : 'Prezri vse', + btnReplace : 'Zamenjaj', + btnReplaceAll : 'Zamenjaj vse', + btnUndo : 'Razveljavi', + noSuggestions : '- Ni predlogov -', + progress : 'Preverjanje črkovanja se izvaja...', + noMispell : 'Črkovanje je končano: Brez napak', + noChanges : 'Črkovanje je končano: Nobena beseda ni bila spremenjena', + oneChange : 'Črkovanje je končano: Spremenjena je bila ena beseda', + manyChanges : 'Črkovanje je končano: Spremenjenih je bilo %1 besed', + ieSpellDownload : 'Črkovalnik ni nameščen. Ali ga želite prenesti sedaj?' + }, + + smiley : + { + toolbar : 'Smeško', + title : 'Vstavi smeška', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' + }, + + numberedlist : 'Oštevilčen seznam', + bulletedlist : 'Označen seznam', + indent : 'Povečaj zamik', + outdent : 'Zmanjšaj zamik', + + justify : + { + left : 'Leva poravnava', + center : 'Sredinska poravnava', + right : 'Desna poravnava', + block : 'Obojestranska poravnava' + }, + + blockquote : 'Citat', + + clipboard : + { + title : 'Prilepi', + cutError : 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega izrezovanja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+X).', + copyError : 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega kopiranja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+C).', + pasteMsg : 'Prosim prilepite v sleči okvir s pomočjo tipkovnice (<STRONG>Ctrl/Cmd+V</STRONG>) in pritisnite <STRONG>V redu</STRONG>.', + securityMsg : 'Zaradi varnostnih nastavitev vašega brskalnika urejevalnik ne more neposredno dostopati do odložišča. Vsebino odložišča ponovno prilepite v to okno.', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Prilepi iz Worda', + title : 'Prilepi iz Worda', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Prilepi kot golo besedilo', + title : 'Prilepi kot golo besedilo' + }, + + templates : + { + button : 'Predloge', + title : 'Vsebinske predloge', + options : 'Template Options', // MISSING + insertOption : 'Zamenjaj trenutno vsebino', + selectPromptMsg : 'Izberite predlogo, ki jo želite odpreti v urejevalniku<br>(trenutna vsebina bo izgubljena):', + emptyListMsg : '(Ni pripravljenih predlog)' + }, + + showBlocks : 'Prikaži ograde', + + stylesCombo : + { + label : 'Slog', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Slogi odstavkov', + panelTitle2 : 'Slogi besedila', + panelTitle3 : 'Slogi objektov' + }, + + format : + { + label : 'Oblika', + panelTitle : 'Oblika', + + tag_p : 'Navaden', + tag_pre : 'Oblikovan', + tag_address : 'Napis', + tag_h1 : 'Naslov 1', + tag_h2 : 'Naslov 2', + tag_h3 : 'Naslov 3', + tag_h4 : 'Naslov 4', + tag_h5 : 'Naslov 5', + tag_h6 : 'Naslov 6', + tag_div : 'Navaden (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Pisava', + voiceLabel : 'Pisava', + panelTitle : 'Pisava' + }, + + fontSize : + { + label : 'Velikost', + voiceLabel : 'Velikost', + panelTitle : 'Velikost' + }, + + colorButton : + { + textColorTitle : 'Barva besedila', + bgColorTitle : 'Barva ozadja', + panelTitle : 'Colors', // MISSING + auto : 'Samodejno', + more : 'Več barv...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Črkovanje med tipkanjem', + opera_title : 'Not supported by Opera', // MISSING + enable : 'Omogoči SCAYT', + disable : 'Onemogoči SCAYT', + about : 'O storitvi SCAYT', + toggle : 'Preklopi SCAYT', + options : 'Možnosti', + langs : 'Jeziki', + moreSuggestions : 'Več predlogov', + ignore : 'Prezri', + ignoreAll : 'Prezri vse', + addWord : 'Dodaj besedo', + emptyDic : 'Ime slovarja ne more biti prazno.', + + optionsTab : 'Možnosti', + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Jeziki', + + dictionariesTab : 'Slovarji', + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'O storitvi' + }, + + about : + { + title : 'O programu CKEditor', + dlgTitle : 'O programu CKEditor', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'Za informacijo o licenci prostim obiščite našo spletno stran:', + copy : 'Copyright © $1. Vse pravice pridržane.' + }, + + maximize : 'Maksimiraj', + minimize : 'Minimiraj', + + fakeobjects : + { + anchor : 'Sidro', + flash : 'Flash animacija', + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Neznan objekt' + }, + + resize : 'Potegni za spremembo velikosti', + + colordialog : + { + title : 'Izberi barvo', + options : 'Color Options', // MISSING + highlight : 'Poudarjeno', + selected : 'Izbrano', + clear : 'Počisti' + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Lastnosti dokumenta', + title : 'Lastnosti dokumenta', + design : 'Design', // MISSING + meta : 'Meta podatki', + chooseColor : 'Izberi', + other : '<drug>', + docTitle : 'Naslov strani', + charset : 'Kodna tabela', + charsetOther : 'Druga kodna tabela', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Srednjeevropsko', + charsetCT : 'Tradicionalno Kitajsko (Big5)', + charsetCR : 'Cirilica', + charsetGR : 'Grško', + charsetJP : 'Japonsko', + charsetKR : 'Korejsko', + charsetTR : 'Turško', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Zahodnoevropsko', + docType : 'Glava tipa dokumenta', + docTypeOther : 'Druga glava tipa dokumenta', + xhtmlDec : 'Vstavi XHTML deklaracije', + bgColor : 'Barva ozadja', + bgImage : 'URL slike za ozadje', + bgFixed : 'Nepremično ozadje', + txtColor : 'Barva besedila', + margin : 'Zamiki strani', + marginTop : 'Na vrhu', + marginLeft : 'Levo', + marginRight : 'Desno', + marginBottom : 'Spodaj', + metaKeywords : 'Ključne besede (ločene z vejicami)', + metaDescription : 'Opis strani', + metaAuthor : 'Avtor', + metaCopyright : 'Avtorske pravice', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/sr-latn.js b/htdocs/includes/ckeditor/_source/lang/sr-latn.js new file mode 100644 index 0000000000000000000000000000000000000000..93c5d53fe9abac8c062bd9a0dc859686df56214b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/sr-latn.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Serbian (Latin) language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['sr-latn'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Kôd', + newPage : 'Nova stranica', + save : 'Sačuvaj', + preview : 'Izgled stranice', + cut : 'Iseci', + copy : 'Kopiraj', + paste : 'Zalepi', + print : 'Štampa', + underline : 'Podvučeno', + bold : 'Podebljano', + italic : 'Kurziv', + selectAll : 'Označi sve', + removeFormat : 'Ukloni formatiranje', + strike : 'Precrtano', + subscript : 'Indeks', + superscript : 'Stepen', + horizontalrule : 'Unesi horizontalnu liniju', + pagebreak : 'Insert Page Break for Printing', // MISSING + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Ukloni link', + undo : 'Poni�ti akciju', + redo : 'Ponovi akciju', + + // Common messages and labels. + common : + { + browseServer : 'Pretraži server', + url : 'URL', + protocol : 'Protokol', + upload : 'Pošalji', + uploadSubmit : 'Pošalji na server', + image : 'Slika', + flash : 'Fleš', + form : 'Forma', + checkbox : 'Polje za potvrdu', + radio : 'Radio-dugme', + textField : 'Tekstualno polje', + textarea : 'Zona teksta', + hiddenField : 'Skriveno polje', + button : 'Dugme', + select : 'Izborno polje', + imageButton : 'Dugme sa slikom', + notSet : '<nije postavljeno>', + id : 'Id', + name : 'Naziv', + langDir : 'Smer jezika', + langDirLtr : 'S leva na desno (LTR)', + langDirRtl : 'S desna na levo (RTL)', + langCode : 'Kôd jezika', + longDescr : 'Pun opis URL', + cssClass : 'Stylesheet klase', + advisoryTitle : 'Advisory naslov', + cssStyle : 'Stil', + ok : 'OK', + cancel : 'Otkaži', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Napredni tagovi', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Širina', + height : 'Visina', + align : 'Ravnanje', + alignLeft : 'Levo', + alignRight : 'Desno', + alignCenter : 'Sredina', + alignTop : 'Vrh', + alignMiddle : 'Sredina', + alignBottom : 'Dole', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Unesi specijalni karakter', + title : 'Odaberite specijalni karakter', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Unesi/izmeni link', + other : '<остало>', + menu : 'Izmeni link', + title : 'Link', + info : 'Link Info', + target : 'Meta', + upload : 'Pošalji', + advanced : 'Napredni tagovi', + type : 'Vrsta linka', + toUrl : 'URL', // MISSING + toAnchor : 'Sidro na ovoj stranici', + toEmail : 'E-Mail', + targetFrame : '<okvir>', + targetPopup : '<popup prozor>', + targetFrameName : 'Naziv odredišnog frejma', + targetPopupName : 'Naziv popup prozora', + popupFeatures : 'Mogućnosti popup prozora', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Statusna linija', + popupLocationBar: 'Lokacija', + popupToolbar : 'Toolbar', + popupMenuBar : 'Kontekstni meni', + popupFullScreen : 'Prikaz preko celog ekrana (IE)', + popupScrollBars : 'Scroll bar', + popupDependent : 'Zavisno (Netscape)', + popupLeft : 'Od leve ivice ekrana (px)', + popupTop : 'Od vrha ekrana (px)', + id : 'Id', // MISSING + langDir : 'Smer jezika', + langDirLTR : 'S leva na desno (LTR)', + langDirRTL : 'S desna na levo (RTL)', + acccessKey : 'Pristupni taster', + name : 'Naziv', + langCode : 'Smer jezika', + tabIndex : 'Tab indeks', + advisoryTitle : 'Advisory naslov', + advisoryContentType : 'Advisory vrsta sadržaja', + cssClasses : 'Stylesheet klase', + charset : 'Linked Resource Charset', + styles : 'Stil', + rel : 'Relationship', // MISSING + selectAnchor : 'Odaberi sidro', + anchorName : 'Po nazivu sidra', + anchorId : 'Po Id-ju elementa', + emailAddress : 'E-Mail adresa', + emailSubject : 'Naslov', + emailBody : 'Sadržaj poruke', + noAnchors : '(Nema dostupnih sidra)', + noUrl : 'Unesite URL linka', + noEmail : 'Otkucajte adresu elektronske pote' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Unesi/izmeni sidro', + menu : 'Osobine sidra', + title : 'Osobine sidra', + name : 'Ime sidra', + errorName : 'Unesite ime sidra', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Pretraga', + replace : 'Zamena', + findWhat : 'Pronadi:', + replaceWith : 'Zameni sa:', + notFoundMsg : 'Traženi tekst nije pronađen.', + findOptions : 'Find Options', // MISSING + matchCase : 'Razlikuj mala i velika slova', + matchWord : 'Uporedi cele reci', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Zameni sve', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Tabela', + title : 'Osobine tabele', + menu : 'Osobine tabele', + deleteTable : 'Delete Table', // MISSING + rows : 'Redova', + columns : 'Kolona', + border : 'Veličina okvira', + widthPx : 'piksela', + widthPc : 'procenata', + widthUnit : 'width unit', // MISSING + cellSpace : 'Ćelijski prostor', + cellPad : 'Razmak ćelija', + caption : 'Naslov tabele', + summary : 'Summary', // MISSING + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cell', // MISSING + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Obriši ćelije', + merge : 'Spoj celije', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', // MISSING + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Obriši redove' + }, + + column : + { + menu : 'Column', // MISSING + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Obriši kolone' + } + }, + + // Button Dialog. + button : + { + title : 'Osobine dugmeta', + text : 'Tekst (vrednost)', + type : 'Tip', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Osobine polja za potvrdu', + radioTitle : 'Osobine radio-dugmeta', + value : 'Vrednost', + selected : 'Označeno' + }, + + // Form Dialog. + form : + { + title : 'Osobine forme', + menu : 'Osobine forme', + action : 'Akcija', + method : 'Metoda', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Osobine izbornog polja', + selectInfo : 'Info', + opAvail : 'Dostupne opcije', + value : 'Vrednost', + size : 'Veličina', + lines : 'linija', + chkMulti : 'Dozvoli višestruku selekciju', + opText : 'Tekst', + opValue : 'Vrednost', + btnAdd : 'Dodaj', + btnModify : 'Izmeni', + btnUp : 'Gore', + btnDown : 'Dole', + btnSetValue : 'Podesi kao označenu vrednost', + btnDelete : 'Obriši' + }, + + // Textarea Dialog. + textarea : + { + title : 'Osobine zone teksta', + cols : 'Broj kolona', + rows : 'Broj redova' + }, + + // Text Field Dialog. + textfield : + { + title : 'Osobine tekstualnog polja', + name : 'Naziv', + value : 'Vrednost', + charWidth : 'Širina (karaktera)', + maxChars : 'Maksimalno karaktera', + type : 'Tip', + typeText : 'Tekst', + typePass : 'Lozinka' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Osobine skrivenog polja', + name : 'Naziv', + value : 'Vrednost' + }, + + // Image Dialog. + image : + { + title : 'Osobine slika', + titleButton : 'Osobine dugmeta sa slikom', + menu : 'Osobine slika', + infoTab : 'Info slike', + btnUpload : 'Pošalji na server', + upload : 'Pošalji', + alt : 'Alternativni tekst', + lockRatio : 'Zaključaj odnos', + resetSize : 'Resetuj veličinu', + border : 'Okvir', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Unesite URL slike', + linkTab : 'Link', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Osobine fleša', + propertiesTab : 'Properties', // MISSING + title : 'Osobine fleša', + chkPlay : 'Automatski start', + chkLoop : 'Ponavljaj', + chkMenu : 'Uključi fleš meni', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Skaliraj', + scaleAll : 'Prikaži sve', + scaleNoBorder : 'Bez ivice', + scaleFit : 'Popuni površinu', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs dole', + alignAbsMiddle : 'Abs sredina', + alignBaseline : 'Bazno', + alignTextTop : 'Vrh teksta', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Boja pozadine', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Unesite URL linka', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Proveri spelovanje', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Nije u rečniku', + changeTo : 'Izmeni', + btnIgnore : 'Ignoriši', + btnIgnoreAll : 'Ignoriši sve', + btnReplace : 'Zameni', + btnReplaceAll : 'Zameni sve', + btnUndo : 'Vrati akciju', + noSuggestions : '- Bez sugestija -', + progress : 'Provera spelovanja u toku...', + noMispell : 'Provera spelovanja završena: greške nisu pronadene', + noChanges : 'Provera spelovanja završena: Nije izmenjena nijedna rec', + oneChange : 'Provera spelovanja završena: Izmenjena je jedna reč', + manyChanges : 'Provera spelovanja završena: %1 reč(i) je izmenjeno', + ieSpellDownload : 'Provera spelovanja nije instalirana. Da li želite da je skinete sa Interneta?' + }, + + smiley : + { + toolbar : 'Smajli', + title : 'Unesi smajlija', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Nabrojiva lista', + bulletedlist : 'Nenabrojiva lista', + indent : 'Uvećaj levu marginu', + outdent : 'Smanji levu marginu', + + justify : + { + left : 'Levo ravnanje', + center : 'Centriran tekst', + right : 'Desno ravnanje', + block : 'Obostrano ravnanje' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Zalepi', + cutError : 'Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog isecanja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+X).', + copyError : 'Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+C).', + pasteMsg : 'Molimo Vas da zalepite unutar donje povrine koristeći tastaturnu prečicu (<STRONG>Ctrl/Cmd+V</STRONG>) i da pritisnete <STRONG>OK</STRONG>.', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Zalepi iz Worda', + title : 'Zalepi iz Worda', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Zalepi kao čist tekst', + title : 'Zalepi kao čist tekst' + }, + + templates : + { + button : 'Obrasci', + title : 'Obrasci za sadržaj', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Molimo Vas da odaberete obrazac koji ce biti primenjen na stranicu (trenutni sadržaj ce biti obrisan):', + emptyListMsg : '(Nema definisanih obrazaca)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Stil', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Format', + panelTitle : 'Format', + + tag_p : 'Normal', + tag_pre : 'Formatirano', + tag_address : 'Adresa', + tag_h1 : 'Naslov 1', + tag_h2 : 'Naslov 2', + tag_h3 : 'Naslov 3', + tag_h4 : 'Naslov 4', + tag_h5 : 'Naslov 5', + tag_h6 : 'Naslov 6', + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Font', + voiceLabel : 'Font', // MISSING + panelTitle : 'Font' + }, + + fontSize : + { + label : 'Veličina fonta', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Veličina fonta' + }, + + colorButton : + { + textColorTitle : 'Boja teksta', + bgColorTitle : 'Boja pozadine', + panelTitle : 'Colors', // MISSING + auto : 'Automatski', + more : 'Više boja...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Osobine dokumenta', + title : 'Osobine dokumenta', + design : 'Design', // MISSING + meta : 'Metapodaci', + chooseColor : 'Choose', // MISSING + other : '<остало>', + docTitle : 'Naslov stranice', + charset : 'Kodiranje skupa karaktera', + charsetOther : 'Ostala kodiranja skupa karaktera', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Zaglavlje tipa dokumenta', + docTypeOther : 'Ostala zaglavlja tipa dokumenta', + xhtmlDec : 'Ukljuci XHTML deklaracije', + bgColor : 'Boja pozadine', + bgImage : 'URL pozadinske slike', + bgFixed : 'Fiksirana pozadina', + txtColor : 'Boja teksta', + margin : 'Margine stranice', + marginTop : 'Gornja', + marginLeft : 'Leva', + marginRight : 'Desna', + marginBottom : 'Donja', + metaKeywords : 'Ključne reci za indeksiranje dokumenta (razdvojene zarezima)', + metaDescription : 'Opis dokumenta', + metaAuthor : 'Autor', + metaCopyright : 'Autorska prava', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/sr.js b/htdocs/includes/ckeditor/_source/lang/sr.js new file mode 100644 index 0000000000000000000000000000000000000000..4c13de76e7c78d8707337092c391aa8cb1764939 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/sr.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Serbian (Cyrillic) language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['sr'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'Kôд', + newPage : 'Нова страница', + save : 'Сачувај', + preview : 'Изглед странице', + cut : 'Исеци', + copy : 'Копирај', + paste : 'Залепи', + print : 'Штампа', + underline : 'Подвучено', + bold : 'Подебљано', + italic : 'Курзив', + selectAll : 'Означи све', + removeFormat : 'Уклони форматирање', + strike : 'Прецртано', + subscript : 'Индекс', + superscript : 'Степен', + horizontalrule : 'Унеси хоризонталну линију', + pagebreak : 'Insert Page Break for Printing', // MISSING + pagebreakAlt : 'Page Break', // MISSING + unlink : 'Уклони линк', + undo : 'Поништи акцију', + redo : 'Понови акцију', + + // Common messages and labels. + common : + { + browseServer : 'Претражи сервер', + url : 'УРЛ', + protocol : 'Протокол', + upload : 'Пошаљи', + uploadSubmit : 'Пошаљи на сервер', + image : 'Слика', + flash : 'Флеш елемент', + form : 'Форма', + checkbox : 'Поље за потврду', + radio : 'Радио-дугме', + textField : 'Текстуално поље', + textarea : 'Зона текста', + hiddenField : 'Скривено поље', + button : 'Дугме', + select : 'Изборно поље', + imageButton : 'Дугме са сликом', + notSet : '<није постављено>', + id : 'Ид', + name : 'Назив', + langDir : 'Смер језика', + langDirLtr : 'С лева на десно (LTR)', + langDirRtl : 'С десна на лево (RTL)', + langCode : 'Kôд језика', + longDescr : 'Пун опис УРЛ', + cssClass : 'Stylesheet класе', + advisoryTitle : 'Advisory наслов', + cssStyle : 'Стил', + ok : 'OK', + cancel : 'Oткажи', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'Напредни тагови', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'Ширина', + height : 'Висина', + align : 'Равнање', + alignLeft : 'Лево', + alignRight : 'Десно', + alignCenter : 'Средина', + alignTop : 'Врх', + alignMiddle : 'Средина', + alignBottom : 'Доле', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Унеси специјални карактер', + title : 'Одаберите специјални карактер', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'Унеси/измени линк', + other : '<other>', // MISSING + menu : 'Промени линк', + title : 'Линк', + info : 'Линк инфо', + target : 'Meтa', + upload : 'Пошаљи', + advanced : 'Напредни тагови', + type : 'Врста линка', + toUrl : 'URL', // MISSING + toAnchor : 'Сидро на овој страници', + toEmail : 'Eлектронска пошта', + targetFrame : '<оквир>', + targetPopup : '<искачући прозор>', + targetFrameName : 'Назив одредишног фрејма', + targetPopupName : 'Назив искачућег прозора', + popupFeatures : 'Могућности искачућег прозора', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'Статусна линија', + popupLocationBar: 'Локација', + popupToolbar : 'Toolbar', + popupMenuBar : 'Контекстни мени', + popupFullScreen : 'Приказ преко целог екрана (ИE)', + popupScrollBars : 'Скрол бар', + popupDependent : 'Зависно (Netscape)', + popupLeft : 'Од леве ивице екрана (пиксела)', + popupTop : 'Од врха екрана (пиксела)', + id : 'Id', // MISSING + langDir : 'Смер језика', + langDirLTR : 'С лева на десно (LTR)', + langDirRTL : 'С десна на лево (RTL)', + acccessKey : 'Приступни тастер', + name : 'Назив', + langCode : 'Смер језика', + tabIndex : 'Таб индекс', + advisoryTitle : 'Advisory наслов', + advisoryContentType : 'Advisory врста садржаја', + cssClasses : 'Stylesheet класе', + charset : 'Linked Resource Charset', + styles : 'Стил', + rel : 'Relationship', // MISSING + selectAnchor : 'Одабери сидро', + anchorName : 'По називу сидра', + anchorId : 'Пo Ид-jу елемента', + emailAddress : 'Адреса електронске поште', + emailSubject : 'Наслов', + emailBody : 'Садржај поруке', + noAnchors : '(Нема доступних сидра)', + noUrl : 'Унесите УРЛ линка', + noEmail : 'Откуцајте адресу електронске поште' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Унеси/измени сидро', + menu : 'Особине сидра', + title : 'Особине сидра', + name : 'Име сидра', + errorName : 'Молимо Вас да унесете име сидра', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'Претрага', + replace : 'Замена', + findWhat : 'Пронађи:', + replaceWith : 'Замени са:', + notFoundMsg : 'Тражени текст није пронађен.', + findOptions : 'Find Options', // MISSING + matchCase : 'Разликуј велика и мала слова', + matchWord : 'Упореди целе речи', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'Замени све', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'Табела', + title : 'Особине табеле', + menu : 'Особине табеле', + deleteTable : 'Delete Table', // MISSING + rows : 'Редова', + columns : 'Kолона', + border : 'Величина оквира', + widthPx : 'пиксела', + widthPc : 'процената', + widthUnit : 'width unit', // MISSING + cellSpace : 'Ћелијски простор', + cellPad : 'Размак ћелија', + caption : 'Наслов табеле', + summary : 'Summary', // MISSING + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'Cell', // MISSING + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'Обриши ћелије', + merge : 'Спој ћелије', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'Row', // MISSING + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'Обриши редове' + }, + + column : + { + menu : 'Column', // MISSING + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'Обриши колоне' + } + }, + + // Button Dialog. + button : + { + title : 'Особине дугмета', + text : 'Текст (вредност)', + type : 'Tип', + typeBtn : 'Button', // MISSING + typeSbm : 'Submit', // MISSING + typeRst : 'Reset' // MISSING + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Особине поља за потврду', + radioTitle : 'Особине радио-дугмета', + value : 'Вредност', + selected : 'Означено' + }, + + // Form Dialog. + form : + { + title : 'Особине форме', + menu : 'Особине форме', + action : 'Aкција', + method : 'Mетода', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'Особине изборног поља', + selectInfo : 'Инфо', + opAvail : 'Доступне опције', + value : 'Вредност', + size : 'Величина', + lines : 'линија', + chkMulti : 'Дозволи вишеструку селекцију', + opText : 'Текст', + opValue : 'Вредност', + btnAdd : 'Додај', + btnModify : 'Измени', + btnUp : 'Горе', + btnDown : 'Доле', + btnSetValue : 'Подеси као означену вредност', + btnDelete : 'Обриши' + }, + + // Textarea Dialog. + textarea : + { + title : 'Особине зоне текста', + cols : 'Број колона', + rows : 'Број редова' + }, + + // Text Field Dialog. + textfield : + { + title : 'Особине текстуалног поља', + name : 'Назив', + value : 'Вредност', + charWidth : 'Ширина (карактера)', + maxChars : 'Максимално карактера', + type : 'Тип', + typeText : 'Текст', + typePass : 'Лозинка' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Особине скривеног поља', + name : 'Назив', + value : 'Вредност' + }, + + // Image Dialog. + image : + { + title : 'Особине слика', + titleButton : 'Особине дугмета са сликом', + menu : 'Особине слика', + infoTab : 'Инфо слике', + btnUpload : 'Пошаљи на сервер', + upload : 'Пошаљи', + alt : 'Алтернативни текст', + lockRatio : 'Закључај однос', + resetSize : 'Ресетуј величину', + border : 'Оквир', + hSpace : 'HSpace', + vSpace : 'VSpace', + alertUrl : 'Унесите УРЛ слике', + linkTab : 'Линк', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Особине Флеша', + propertiesTab : 'Properties', // MISSING + title : 'Особине флеша', + chkPlay : 'Аутоматски старт', + chkLoop : 'Понављај', + chkMenu : 'Укључи флеш мени', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'Скалирај', + scaleAll : 'Прикажи све', + scaleNoBorder : 'Без ивице', + scaleFit : 'Попуни површину', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'Abs доле', + alignAbsMiddle : 'Abs средина', + alignBaseline : 'Базно', + alignTextTop : 'Врх текста', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'Боја позадине', + hSpace : 'HSpace', + vSpace : 'VSpace', + validateSrc : 'Унесите УРЛ линка', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Провери спеловање', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'Није у речнику', + changeTo : 'Измени', + btnIgnore : 'Игнориши', + btnIgnoreAll : 'Игнориши све', + btnReplace : 'Замени', + btnReplaceAll : 'Замени све', + btnUndo : 'Врати акцију', + noSuggestions : '- Без сугестија -', + progress : 'Провера спеловања у току...', + noMispell : 'Провера спеловања завршена: грешке нису пронађене', + noChanges : 'Провера спеловања завршена: Није измењена ниједна реч', + oneChange : 'Провера спеловања завршена: Измењена је једна реч', + manyChanges : 'Провера спеловања завршена: %1 реч(и) је измењено', + ieSpellDownload : 'Провера спеловања није инсталирана. Да ли желите да је скинете са Интернета?' + }, + + smiley : + { + toolbar : 'Смајли', + title : 'Унеси смајлија', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'Набројиву листу', + bulletedlist : 'Ненабројива листа', + indent : 'Увећај леву маргину', + outdent : 'Смањи леву маргину', + + justify : + { + left : 'Лево равнање', + center : 'Центриран текст', + right : 'Десно равнање', + block : 'Обострано равнање' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'Залепи', + cutError : 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+X).', + copyError : 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+C).', + pasteMsg : 'Молимо Вас да залепите унутар доње површине користећи тастатурну пречицу (<STRONG>Ctrl/Cmd+V</STRONG>) и да притиснете <STRONG>OK</STRONG>.', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'Залепи из Worda', + title : 'Залепи из Worda', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'Залепи као чист текст', + title : 'Залепи као чист текст' + }, + + templates : + { + button : 'Обрасци', + title : 'Обрасци за садржај', + options : 'Template Options', // MISSING + insertOption : 'Replace actual contents', // MISSING + selectPromptMsg : 'Молимо Вас да одаберете образац који ће бити примењен на страницу (тренутни садржај ће бити обрисан):', + emptyListMsg : '(Нема дефинисаних образаца)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'Стил', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'Формат', + panelTitle : 'Формат', + + tag_p : 'Normal', + tag_pre : 'Formatirano', + tag_address : 'Adresa', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Normal (DIV)' // MISSING + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'Фонт', + voiceLabel : 'Font', // MISSING + panelTitle : 'Фонт' + }, + + fontSize : + { + label : 'Величина фонта', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'Величина фонта' + }, + + colorButton : + { + textColorTitle : 'Боја текста', + bgColorTitle : 'Боја позадине', + panelTitle : 'Colors', // MISSING + auto : 'Аутоматски', + more : 'Више боја...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'Особине документа', + title : 'Особине документа', + design : 'Design', // MISSING + meta : 'Метаподаци', + chooseColor : 'Choose', // MISSING + other : '<other>', + docTitle : 'Наслов странице', + charset : 'Кодирање скупа карактера', + charsetOther : 'Остала кодирања скупа карактера', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'Заглавље типа документа', + docTypeOther : 'Остала заглавља типа документа', + xhtmlDec : 'Улључи XHTML декларације', + bgColor : 'Боја позадине', + bgImage : 'УРЛ позадинске слике', + bgFixed : 'Фиксирана позадина', + txtColor : 'Боја текста', + margin : 'Маргине странице', + marginTop : 'Горња', + marginLeft : 'Лева', + marginRight : 'Десна', + marginBottom : 'Доња', + metaKeywords : 'Кључне речи за индексирање документа (раздвојене зарезом)', + metaDescription : 'Опис документа', + metaAuthor : 'Аутор', + metaCopyright : 'Ауторска права', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/sv.js b/htdocs/includes/ckeditor/_source/lang/sv.js new file mode 100644 index 0000000000000000000000000000000000000000..2956480b001967c77b2296d3a4eff23a860f4b22 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/sv.js @@ -0,0 +1,815 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** +* @fileOverview +*/ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['sv'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', + + // Toolbar buttons without dialogs. + source : 'Källa', + newPage : 'Ny sida', + save : 'Spara', + preview : 'Förhandsgranska', + cut : 'Klipp ut', + copy : 'Kopiera', + paste : 'Klistra in', + print : 'Skriv ut', + underline : 'Understruken', + bold : 'Fet', + italic : 'Kursiv', + selectAll : 'Markera allt', + removeFormat : 'Radera formatering', + strike : 'Genomstruken', + subscript : 'Nedsänkta tecken', + superscript : 'Upphöjda tecken', + horizontalrule : 'Infoga horisontal linje', + pagebreak : 'Infoga sidbrytning', + pagebreakAlt : 'Sidbrytning', + unlink : 'Radera länk', + undo : 'Ångra', + redo : 'Gör om', + + // Common messages and labels. + common : + { + browseServer : 'Bläddra på server', + url : 'URL', + protocol : 'Protokoll', + upload : 'Ladda upp', + uploadSubmit : 'Skicka till server', + image : 'Bild', + flash : 'Flash', + form : 'Formulär', + checkbox : 'Kryssruta', + radio : 'Alternativknapp', + textField : 'Textfält', + textarea : 'Textruta', + hiddenField : 'Dolt fält', + button : 'Knapp', + select : 'Flervalslista', + imageButton : 'Bildknapp', + notSet : '<ej angivet>', + id : 'Id', + name : 'Namn', + langDir : 'Språkriktning', + langDirLtr : 'Vänster till Höger (VTH)', + langDirRtl : 'Höger till Vänster (HTV)', + langCode : 'Språkkod', + longDescr : 'URL-beskrivning', + cssClass : 'Stilmall', + advisoryTitle : 'Titel', + cssStyle : 'Stilmall', + ok : 'OK', + cancel : 'Avbryt', + close : 'Stäng', + preview : 'Förhandsgranska', + generalTab : 'Allmänt', + advancedTab : 'Avancerad', + validateNumberFailed : 'Värdet är inte ett nummer.', + confirmNewPage : 'Alla ändringar i innehållet kommer att förloras. Är du säker på att du vill ladda en ny sida?', + confirmCancel : 'Några av de alternativ har ändrats. Är du säker på att stänga dialogrutan?', + options : 'Alternativ', + target : 'Mål', + targetNew : 'Nytt fönster (_blank)', + targetTop : 'Översta fönstret (_top)', + targetSelf : 'Samma fönster (_self)', + targetParent : 'Föregående fönster (_parent)', + langDirLTR : 'Vänster till höger (LTR)', + langDirRTL : 'Höger till vänster (RTL)', + styles : 'Stil', + cssClasses : 'Stilmallar', + width : 'Bredd', + height : 'Höjd', + align : 'Justering', + alignLeft : 'Vänster', + alignRight : 'Höger', + alignCenter : 'Centrerad', + alignTop : 'Överkant', + alignMiddle : 'Mitten', + alignBottom : 'Nederkant', + invalidHeight : 'Höjd måste vara ett nummer.', + invalidWidth : 'Bredd måste vara ett nummer.', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, Ej tillgänglig</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Klistra in utökat tecken', + title : 'Välj utökat tecken', + options : 'Special Character Options' + }, + + // Link dialog. + link : + { + toolbar : 'Infoga/Redigera länk', + other : '<annan>', + menu : 'Redigera länk', + title : 'Länk', + info : 'Länkinformation', + target : 'Mål', + upload : 'Ladda upp', + advanced : 'Avancerad', + type : 'Länktyp', + toUrl : 'URL', + toAnchor : 'Ankare i sidan', + toEmail : 'E-post', + targetFrame : '<ram>', + targetPopup : '<popup-fönster>', + targetFrameName : 'Målets ramnamn', + targetPopupName : 'Popup-fönstrets namn', + popupFeatures : 'Popup-fönstrets egenskaper', + popupResizable : 'Resizable', + popupStatusBar : 'Statusfält', + popupLocationBar: 'Adressfält', + popupToolbar : 'Verktygsfält', + popupMenuBar : 'Menyfält', + popupFullScreen : 'Helskärm (endast IE)', + popupScrollBars : 'Scrolllista', + popupDependent : 'Beroende (endast Netscape)', + popupLeft : 'Position från vänster', + popupTop : 'Position från sidans topp', + id : 'Id', + langDir : 'Språkriktning', + langDirLTR : 'Vänster till höger (VTH)', + langDirRTL : 'Höger till vänster (HTV)', + acccessKey : 'Behörighetsnyckel', + name : 'Namn', + langCode : 'Språkriktning', + tabIndex : 'Tabindex', + advisoryTitle : 'Titel', + advisoryContentType : 'Innehållstyp', + cssClasses : 'Stylesheet class', + charset : 'Teckenuppställning', + styles : 'Stilmall', + rel : 'Relationship', // MISSING + selectAnchor : 'Välj ett ankare', + anchorName : 'efter ankarnamn', + anchorId : 'efter objektid', + emailAddress : 'E-postadress', + emailSubject : 'Ämne', + emailBody : 'Innehåll', + noAnchors : '(Inga ankare kunde hittas)', + noUrl : 'Var god ange länkens URL', + noEmail : 'Var god ange E-postadress' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Infoga/Redigera ankarlänk', + menu : 'Egenskaper för ankarlänk', + title : 'Egenskaper för ankarlänk', + name : 'Ankarnamn', + errorName : 'Var god ange ett ankarnamn', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Egenskaper för punktlista', + bulletedTitle : 'Egenskaper för punktlista', + type : 'Typ', + start : 'Start', + validateStartNumber :'List start number must be a whole number.', + circle : 'Cirkel', + disc : 'Disk', + square : 'Fyrkant', + none : 'Ingen', + notset : '<ej angiven>', + armenian : 'Armenisk numrering', + georgian : 'Georgisk numrering (an, ban, gan, etc.)', + lowerRoman : 'Romerska gemener (i, ii, iii, iv, v, etc.)', + upperRoman : 'Romerska versaler (I, II, III, IV, V, etc.)', + lowerAlpha : 'Alpha gemener (a, b, c, d, e, etc.)', + upperAlpha : 'Alpha versaler (A, B, C, D, E, etc.)', + lowerGreek : 'Grekiska gemener (alpha, beta, gamma, etc.)', + decimal : 'Decimal (1, 2, 3, etc.)', + decimalLeadingZero : 'Decimal nolla (01, 02, 03, etc.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Sök och ersätt', + find : 'Sök', + replace : 'Ersätt', + findWhat : 'Sök efter:', + replaceWith : 'Ersätt med:', + notFoundMsg : 'Angiven text kunde ej hittas.', + findOptions : 'Find Options', // MISSING + matchCase : 'Skiftläge', + matchWord : 'Inkludera hela ord', + matchCyclic : 'Matcha cykliska', + replaceAll : 'Ersätt alla', + replaceSuccessMsg : '%1 förekomst(er) ersatta.' + }, + + // Table Dialog + table : + { + toolbar : 'Tabell', + title : 'Tabellegenskaper', + menu : 'Tabellegenskaper', + deleteTable : 'Radera tabell', + rows : 'Rader', + columns : 'Kolumner', + border : 'Kantstorlek', + widthPx : 'pixlar', + widthPc : 'procent', + widthUnit : 'enhet bredd', + cellSpace : 'Cellavstånd', + cellPad : 'Cellutfyllnad', + caption : 'Rubrik', + summary : 'Sammanfattning', + headers : 'Ruberiker', + headersNone : 'Ingen', + headersColumn : 'Första kolumnen', + headersRow : 'Första raden', + headersBoth : 'Båda', + invalidRows : 'Antal rader måste vara större än 0.', + invalidCols : 'Antal kolumner måste vara ett nummer större än 0.', + invalidBorder : 'Ram måste vara ett nummer.', + invalidWidth : 'Tabell måste vara ett nummer.', + invalidHeight : 'Tabellens höjd måste vara ett nummer.', + invalidCellSpacing : 'Luft i cell måste vara ett nummer.', + invalidCellPadding : 'Luft i cell måste vara ett nummer.', + + cell : + { + menu : 'Cell', + insertBefore : 'Lägg till cell före', + insertAfter : 'Lägg till cell efter', + deleteCell : 'Radera celler', + merge : 'Sammanfoga celler', + mergeRight : 'Sammanfoga höger', + mergeDown : 'Sammanfoga ner', + splitHorizontal : 'Dela cell horisontellt', + splitVertical : 'Dela cell vertikalt', + title : 'Egenskaper för cell', + cellType : 'Celltyp', + rowSpan : 'Rad spann', + colSpan : 'Kolumnen spann', + wordWrap : 'Radbrytning', + hAlign : 'Horisontell justering', + vAlign : 'Vertikal justering', + alignBaseline : 'Baslinje', + bgColor : 'Bakgrundsfärg', + borderColor : 'Ramfärg', + data : 'Data', + header : 'Rubrik', + yes : 'Ja', + no : 'Nej', + invalidWidth : 'Cellens bredd måste vara ett nummer.', + invalidHeight : 'Cellens höjd måste vara ett nummer.', + invalidRowSpan : 'Radutvidgning måste vara ett heltal.', + invalidColSpan : 'Kolumn måste vara ett heltal.', + chooseColor : 'Välj' + }, + + row : + { + menu : 'Rad', + insertBefore : 'Lägg till Rad Före', + insertAfter : 'Lägg till rad efter', + deleteRow : 'Radera rad' + }, + + column : + { + menu : 'Kolumn', + insertBefore : 'Lägg till kolumn före', + insertAfter : 'Lägg till kolumn efter', + deleteColumn : 'Radera kolumn' + } + }, + + // Button Dialog. + button : + { + title : 'Egenskaper för knapp', + text : 'Text (värde)', + type : 'Typ', + typeBtn : 'Knapp', + typeSbm : 'Skicka', + typeRst : 'Återställ' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Egenskaper för kryssruta', + radioTitle : 'Egenskaper för alternativknapp', + value : 'Värde', + selected : 'Vald' + }, + + // Form Dialog. + form : + { + title : 'Egenskaper för formulär', + menu : 'Egenskaper för formulär', + action : 'Funktion', + method : 'Metod', + encoding : 'Kodning' + }, + + // Select Field Dialog. + select : + { + title : 'Egenskaper för flervalslista', + selectInfo : 'Information', + opAvail : 'Befintliga val', + value : 'Värde', + size : 'Storlek', + lines : 'Linjer', + chkMulti : 'Tillåt flerval', + opText : 'Text', + opValue : 'Värde', + btnAdd : 'Lägg till', + btnModify : 'Redigera', + btnUp : 'Upp', + btnDown : 'Ner', + btnSetValue : 'Markera som valt värde', + btnDelete : 'Radera' + }, + + // Textarea Dialog. + textarea : + { + title : 'Egenskaper för textruta', + cols : 'Kolumner', + rows : 'Rader' + }, + + // Text Field Dialog. + textfield : + { + title : 'Egenskaper för textfält', + name : 'Namn', + value : 'Värde', + charWidth : 'Teckenbredd', + maxChars : 'Max antal tecken', + type : 'Typ', + typeText : 'Text', + typePass : 'Lösenord' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Egenskaper för dolt fält', + name : 'Namn', + value : 'Värde' + }, + + // Image Dialog. + image : + { + title : 'Bildegenskaper', + titleButton : 'Egenskaper för bildknapp', + menu : 'Bildegenskaper', + infoTab : 'Bildinformation', + btnUpload : 'Skicka till server', + upload : 'Ladda upp', + alt : 'Alternativ text', + lockRatio : 'Lås höjd/bredd förhållanden', + resetSize : 'Återställ storlek', + border : 'Kant', + hSpace : 'Horis. marginal', + vSpace : 'Vert. marginal', + alertUrl : 'Var god och ange bildens URL', + linkTab : 'Länk', + button2Img : 'Vill du omvandla den valda bildknappen på en enkel bild?', + img2Button : 'Vill du omvandla den valda bildknappen på en enkel bild?', + urlMissing : 'Bildkällans URL saknas.', + validateBorder : 'Kantlinje måste vara ett heltal.', + validateHSpace : 'HSpace måste vara ett heltal.', + validateVSpace : 'VSpace måste vara ett heltal.' + }, + + // Flash Dialog + flash : + { + properties : 'Flashegenskaper', + propertiesTab : 'Egenskaper', + title : 'Flashegenskaper', + chkPlay : 'Automatisk uppspelning', + chkLoop : 'Upprepa/Loopa', + chkMenu : 'Aktivera Flashmeny', + chkFull : 'Tillåt helskärm', + scale : 'Skala', + scaleAll : 'Visa allt', + scaleNoBorder : 'Ingen ram', + scaleFit : 'Exakt passning', + access : 'Script-tillgång', + accessAlways : 'Alltid', + accessSameDomain: 'Samma domän', + accessNever : 'Aldrig', + alignAbsBottom : 'Absolut nederkant', + alignAbsMiddle : 'Absolut centrering', + alignBaseline : 'Baslinje', + alignTextTop : 'Text överkant', + quality : 'Kvalitet', + qualityBest : 'Bäst', + qualityHigh : 'Hög', + qualityAutoHigh : 'Auto Hög', + qualityMedium : 'Medium', + qualityAutoLow : 'Auto Låg', + qualityLow : 'Låg', + windowModeWindow: 'Fönster', + windowModeOpaque: 'Opaque', + windowModeTransparent : 'Transparent', + windowMode : 'Fönsterläge', + flashvars : 'Variabler för Flash', + bgcolor : 'Bakgrundsfärg', + hSpace : 'Horis. marginal', + vSpace : 'Vert. marginal', + validateSrc : 'Var god ange länkens URL', + validateHSpace : 'HSpace måste vara ett nummer.', + validateVSpace : 'VSpace måste vara ett nummer.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Stavningskontroll', + title : 'Kontrollera stavning', + notAvailable : 'Tyvärr är tjänsten ej tillgänglig nu', + errorLoading : 'Tjänsten är ej tillgänglig: %s.', + notInDic : 'Saknas i ordlistan', + changeTo : 'Ändra till', + btnIgnore : 'Ignorera', + btnIgnoreAll : 'Ignorera alla', + btnReplace : 'Ersätt', + btnReplaceAll : 'Ersätt alla', + btnUndo : 'Ångra', + noSuggestions : '- Förslag saknas -', + progress : 'Stavningskontroll pågår...', + noMispell : 'Stavningskontroll slutförd: Inga stavfel påträffades.', + noChanges : 'Stavningskontroll slutförd: Inga ord rättades.', + oneChange : 'Stavningskontroll slutförd: Ett ord rättades.', + manyChanges : 'Stavningskontroll slutförd: %1 ord rättades.', + ieSpellDownload : 'Stavningskontrollen är ej installerad. Vill du göra det nu?' + }, + + smiley : + { + toolbar : 'Smiley', + title : 'Infoga smiley', + options : 'Smileyinställningar' + }, + + elementsPath : + { + eleLabel : 'Elementets sökväg', + eleTitle : '%1 element' + }, + + numberedlist : 'Numrerad lista', + bulletedlist : 'Punktlista', + indent : 'Öka indrag', + outdent : 'Minska indrag', + + justify : + { + left : 'Vänsterjustera', + center : 'Centrera', + right : 'Högerjustera', + block : 'Justera till marginaler' + }, + + blockquote : 'Blockcitat', + + clipboard : + { + title : 'Klistra in', + cutError : 'Säkerhetsinställningar i Er webläsare tillåter inte åtgården Klipp ut. Använd (Ctrl/Cmd+X) istället.', + copyError : 'Säkerhetsinställningar i Er webläsare tillåter inte åtgården Kopiera. Använd (Ctrl/Cmd+C) istället', + pasteMsg : 'Var god och klistra in Er text i rutan nedan genom att använda (<STRONG>Ctrl/Cmd+V</STRONG>) klicka sen på <STRONG>OK</STRONG>.', + securityMsg : 'På grund av din webbläsares säkerhetsinställningar kan verktyget inte få åtkomst till urklippsdatan. Var god och använd detta fönster istället.', + pasteArea : 'Paste Area' + }, + + pastefromword : + { + confirmCleanup : 'Texten du vill klistra in verkar vara kopierad från Word. Vill du rensa innan du klistrar?', + toolbar : 'Klistra in från Word', + title : 'Klistra in från Word', + error : 'Det var inte möjligt att städa upp den inklistrade data på grund av ett internt fel' + }, + + pasteText : + { + button : 'Klistra in som vanlig text', + title : 'Klistra in som vanlig text' + }, + + templates : + { + button : 'Sidmallar', + title : 'Sidmallar', + options : 'Inställningar för mall', + insertOption : 'Ersätt aktuellt innehåll', + selectPromptMsg : 'Var god välj en mall att använda med editorn<br>(allt nuvarande innehåll raderas):', + emptyListMsg : '(Ingen mall är vald)' + }, + + showBlocks : 'Visa block', + + stylesCombo : + { + label : 'Anpassad stil', + panelTitle : 'Formatmallar', + panelTitle1 : 'Blockstil', + panelTitle2 : 'Inbäddad stil', + panelTitle3 : 'Objektets stil' + }, + + format : + { + label : 'Teckenformat', + panelTitle : 'Teckenformat', + + tag_p : 'Normal', + tag_pre : 'Formaterad', + tag_address : 'Adress', + tag_h1 : 'Rubrik 1', + tag_h2 : 'Rubrik 2', + tag_h3 : 'Rubrik 3', + tag_h4 : 'Rubrik 4', + tag_h5 : 'Rubrik 5', + tag_h6 : 'Rubrik 6', + tag_div : 'Normal (DIV)' + }, + + div : + { + title : 'Skapa Div container', + toolbar : 'Skapa Div container', + cssClassInputLabel : 'Stilmallar', + styleSelectLabel : 'Stil', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Språkkod', + inlineStyleInputLabel : 'Inline Style', + advisoryTitleInputLabel : 'Rådgivande titel', + langDirLabel : 'Språkriktning', + langDirLTRLabel : 'Vänster till Höger (LTR)', + langDirRTLLabel : 'Höger till vänster (RTL)', + edit : 'Redigera Div', + remove : 'Ta bort Div' + }, + + iframe : + { + title : 'iFrame Egenskaper', + toolbar : 'iFrame', + noUrl : 'Skriv in URL för iFrame', + scrolling : 'Aktivera rullningslister', + border : 'Visa ramkant' + }, + + font : + { + label : 'Typsnitt', + voiceLabel : 'Typsnitt', + panelTitle : 'Typsnitt' + }, + + fontSize : + { + label : 'Storlek', + voiceLabel : 'Teckenstorlek', + panelTitle : 'Storlek' + }, + + colorButton : + { + textColorTitle : 'Textfärg', + bgColorTitle : 'Bakgrundsfärg', + panelTitle : 'Färger', + auto : 'Automatisk', + more : 'Fler färger...' + }, + + colors : + { + '000' : 'Svart', + '800000' : 'Rödbrun', + '8B4513' : 'Mörkbrun', + '2F4F4F' : 'Skiffergrå', + '008080' : 'Kricka', + '000080' : 'Marinblå', + '4B0082' : 'Indigo', + '696969' : 'Mörkgrå', + 'B22222' : 'Tegelsten', + 'A52A2A' : 'Brun', + 'DAA520' : 'Mörk guld', + '006400' : 'Mörkgrön', + '40E0D0' : 'Turkos', + '0000CD' : 'Medium blå', + '800080' : 'Lila', + '808080' : 'Grå', + 'F00' : 'Röd', + 'FF8C00' : 'Mörkorange', + 'FFD700' : 'Guld', + '008000' : 'Grön', + '0FF' : 'Turkos', + '00F' : 'Blå', + 'EE82EE' : 'Violett', + 'A9A9A9' : 'Matt grå', + 'FFA07A' : 'Laxrosa', + 'FFA500' : 'Orange', + 'FFFF00' : 'Gul', + '00FF00' : 'Lime', + 'AFEEEE' : 'Ljusturkos', + 'ADD8E6' : 'Ljusblå', + 'DDA0DD' : 'Plommon', + 'D3D3D3' : 'Ljusgrå', + 'FFF0F5' : 'Ljus lavender', + 'FAEBD7' : 'Antikvit', + 'FFFFE0' : 'Ljusgul', + 'F0FFF0' : 'Honung', + 'F0FFFF' : 'Azurblå', + 'F0F8FF' : 'Aliceblå', + 'E6E6FA' : 'Lavender', + 'FFF' : 'Vit' + }, + + scayt : + { + title : 'Stavningskontroll medan du skriver', + opera_title : 'Stöds ej av Opera', + enable : 'Aktivera SCAYT', + disable : 'Inaktivera SCAYT', + about : 'Om SCAYT', + toggle : 'Växla SCAYT', + options : 'Inställningar', + langs : 'Språk', + moreSuggestions : 'Fler förslag', + ignore : 'Ignorera', + ignoreAll : 'Ignorera alla', + addWord : 'Lägg till ord', + emptyDic : 'Ordlistans namn får ej vara tomt.', + + optionsTab : 'Inställningar', + allCaps : 'Ignorera alla ord med enbart versaler', + ignoreDomainNames : 'Ignorera domännamn', + mixedCase : 'Ignorera ord med blandat shiftläge', + mixedWithDigits : 'Ignorera ord med nummer', + + languagesTab : 'Språk', + + dictionariesTab : 'Ordlistor', + dic_field_name : 'Ordlistans namn', + dic_create : 'Skapa', + dic_restore : 'Återställ', + dic_delete : 'Ta bort', + dic_rename : 'Byt namn', + dic_info : 'Inledningsvis lagras ordlistan i en cookie. När ordlista växer till en punkt där det inte kan lagras i en cookie, lagras den på vår server. För att lagra din personliga ordlista på vår server du ska ange ett namn för din ordbok. Om du redan har en lagrad ordbok, skriv namnet och klicka på knappen Återställ.', + + aboutTab : 'Om' + }, + + about : + { + title : 'Om CKEditor', + dlgTitle : 'Om CKEditor', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'För information av licenciering besök vår hemsida:', + copy : 'Copyright © $1. Alla rättigheter reserverade.' + }, + + maximize : 'Maximera', + minimize : 'Minimera', + + fakeobjects : + { + anchor : 'Ankare', + flash : 'Flashanimation', + iframe : 'iFrame', + hiddenfield : 'Gömt fält', + unknown : 'Okänt objekt' + }, + + resize : 'Dra för att ändra storlek', + + colordialog : + { + title : 'Välj färg', + options : 'Färgalternativ', + highlight : 'Markera', + selected : 'Vald färg', + clear : 'Rensa' + }, + + toolbarCollapse : 'Dölj verktygsfält', + toolbarExpand : 'Visa verktygsfält', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text riktning från vänster till höger', + rtl : 'Text riktning från höger till vänster' + }, + + docprops : + { + label : 'Dokumentegenskaper', + title : 'Dokumentegenskaper', + design : 'Design', // MISSING + meta : 'Metadata', + chooseColor : 'Välj', + other : '<annan>', + docTitle : 'Sidtitel', + charset : 'Teckenuppsättningar', + charsetOther : 'Övriga teckenuppsättningar', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central Europa', + charsetCT : 'Traditionell Kinesisk (Big5)', + charsetCR : 'Kyrillisk', + charsetGR : 'Grekiska', + charsetJP : 'Japanska', + charsetKR : 'Koreanska', + charsetTR : 'Turkiska', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Väst Europa', + docType : 'Sidhuvud', + docTypeOther : 'Övriga sidhuvuden', + xhtmlDec : 'Inkludera XHTML deklaration', + bgColor : 'Bakgrundsfärg', + bgImage : 'Bakgrundsbildens URL', + bgFixed : 'Fast bakgrund', + txtColor : 'Textfärg', + margin : 'Sidmarginal', + marginTop : 'Topp', + marginLeft : 'Vänster', + marginRight : 'Höger', + marginBottom : 'Botten', + metaKeywords : 'Sidans nyckelord', + metaDescription : 'Sidans beskrivning', + metaAuthor : 'Författare', + metaCopyright : 'Upphovsrätt', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/th.js b/htdocs/includes/ckeditor/_source/lang/th.js new file mode 100644 index 0000000000000000000000000000000000000000..5ca33a154abe9d5f10836f0e56ebbcdc7e9a7fce --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/th.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Thai language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['th'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Editor toolbars', // MISSING + editor : 'Rich Text Editor', // MISSING + + // Toolbar buttons without dialogs. + source : 'ดูรหัส HTML', + newPage : 'สร้างหน้าเอกสารใหม่', + save : 'บันทึก', + preview : 'ดูหน้าเอกสารตัวอย่าง', + cut : 'ตัด', + copy : 'สำเนา', + paste : 'วาง', + print : 'สั่งพิมพ์', + underline : 'ตัวขีดเส้นใต้', + bold : 'ตัวหนา', + italic : 'ตัวเอียง', + selectAll : 'เลือกทั้งหมด', + removeFormat : 'ล้างรูปแบบ', + strike : 'ตัวขีดเส้นทับ', + subscript : 'ตัวห้อย', + superscript : 'ตัวยก', + horizontalrule : 'แทรกเส้นคั่นบรรทัด', + pagebreak : 'แทรกตัวแบ่งหน้า Page Break', + pagebreakAlt : 'Page Break', // MISSING + unlink : 'ลบ ลิงค์', + undo : 'ยกเลิกคำสั่ง', + redo : 'ทำซ้ำคำสั่ง', + + // Common messages and labels. + common : + { + browseServer : 'เปิดหน้าต่างจัดการไฟล์อัพโหลด', + url : 'ที่อยู่อ้างอิง URL', + protocol : 'โปรโตคอล', + upload : 'อัพโหลดไฟล์', + uploadSubmit : 'อัพโหลดไฟล์ไปเก็บไว้ที่เครื่องแม่ข่าย (เซิร์ฟเวอร์)', + image : 'รูปภาพ', + flash : 'ไฟล์ Flash', + form : 'แบบฟอร์ม', + checkbox : 'เช็คบ๊อก', + radio : 'เรดิโอบัตตอน', + textField : 'เท็กซ์ฟิลด์', + textarea : 'เท็กซ์แอเรีย', + hiddenField : 'ฮิดเดนฟิลด์', + button : 'ปุ่ม', + select : 'แถบตัวเลือก', + imageButton : 'ปุ่มแบบรูปภาพ', + notSet : '<ไม่ระบุ>', + id : 'ไอดี', + name : 'ชื่อ', + langDir : 'การเขียน-อ่านภาษา', + langDirLtr : 'จากซ้ายไปขวา (LTR)', + langDirRtl : 'จากขวามาซ้าย (RTL)', + langCode : 'รหัสภาษา', + longDescr : 'คำอธิบายประกอบ URL', + cssClass : 'คลาสของไฟล์กำหนดลักษณะการแสดงผล', + advisoryTitle : 'คำเกริ่นนำ', + cssStyle : 'ลักษณะการแสดงผล', + ok : 'ตกลง', + cancel : 'ยกเลิก', + close : 'Close', // MISSING + preview : 'Preview', // MISSING + generalTab : 'General', // MISSING + advancedTab : 'ขั้นสูง', + validateNumberFailed : 'This value is not a number.', // MISSING + confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING + confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING + options : 'Options', // MISSING + target : 'Target', // MISSING + targetNew : 'New Window (_blank)', // MISSING + targetTop : 'Topmost Window (_top)', // MISSING + targetSelf : 'Same Window (_self)', // MISSING + targetParent : 'Parent Window (_parent)', // MISSING + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : 'ความกว้าง', + height : 'ความสูง', + align : 'การจัดวาง', + alignLeft : 'ชิดซ้าย', + alignRight : 'ชิดขวา', + alignCenter : 'กึ่งกลาง', + alignTop : 'บนสุด', + alignMiddle : 'กึ่งกลางแนวตั้ง', + alignBottom : 'ชิดด้านล่าง', + invalidHeight : 'Height must be a number.', // MISSING + invalidWidth : 'Width must be a number.', // MISSING + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : 'แทรกตัวอักษรพิเศษ', + title : 'แทรกตัวอักษรพิเศษ', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : 'แทรก/แก้ไข ลิงค์', + other : '<อื่น ๆ>', + menu : 'แก้ไข ลิงค์', + title : 'ลิงค์เชื่อมโยงเว็บ อีเมล์ รูปภาพ หรือไฟล์อื่นๆ', + info : 'รายละเอียด', + target : 'การเปิดหน้าลิงค์', + upload : 'อัพโหลดไฟล์', + advanced : 'ขั้นสูง', + type : 'ประเภทของลิงค์', + toUrl : 'URL', // MISSING + toAnchor : 'จุดเชื่อมโยง (Anchor)', + toEmail : 'ส่งอีเมล์ (E-Mail)', + targetFrame : '<เปิดในเฟรม>', + targetPopup : '<เปิดหน้าจอเล็ก (Pop-up)>', + targetFrameName : 'ชื่อทาร์เก็ตเฟรม', + targetPopupName : 'ระบุชื่อหน้าจอเล็ก (Pop-up)', + popupFeatures : 'คุณสมบัติของหน้าจอเล็ก (Pop-up)', + popupResizable : 'Resizable', // MISSING + popupStatusBar : 'แสดงแถบสถานะ', + popupLocationBar: 'แสดงที่อยู่ของไฟล์', + popupToolbar : 'แสดงแถบเครื่องมือ', + popupMenuBar : 'แสดงแถบเมนู', + popupFullScreen : 'แสดงเต็มหน้าจอ (IE5.5++ เท่านั้น)', + popupScrollBars : 'แสดงแถบเลื่อน', + popupDependent : 'แสดงเต็มหน้าจอ (Netscape)', + popupLeft : 'พิกัดซ้าย (Left Position)', + popupTop : 'พิกัดบน (Top Position)', + id : 'Id', // MISSING + langDir : 'การเขียน-อ่านภาษา', + langDirLTR : 'จากซ้ายไปขวา (LTR)', + langDirRTL : 'จากขวามาซ้าย (RTL)', + acccessKey : 'แอคเซส คีย์', + name : 'ชื่อ', + langCode : 'การเขียน-อ่านภาษา', + tabIndex : 'ลำดับของ แท็บ', + advisoryTitle : 'คำเกริ่นนำ', + advisoryContentType : 'ชนิดของคำเกริ่นนำ', + cssClasses : 'คลาสของไฟล์กำหนดลักษณะการแสดงผล', + charset : 'ลิงค์เชื่อมโยงไปยังชุดตัวอักษร', + styles : 'ลักษณะการแสดงผล', + rel : 'Relationship', // MISSING + selectAnchor : 'ระบุข้อมูลของจุดเชื่อมโยง (Anchor)', + anchorName : 'ชื่อ', + anchorId : 'ไอดี', + emailAddress : 'อีเมล์ (E-Mail)', + emailSubject : 'หัวเรื่อง', + emailBody : 'ข้อความ', + noAnchors : '(ยังไม่มีจุดเชื่อมโยงภายในหน้าเอกสารนี้)', + noUrl : 'กรุณาระบุที่อยู่อ้างอิงออนไลน์ (URL)', + noEmail : 'กรุณาระบุอีเมล์ (E-mail)' + }, + + // Anchor dialog + anchor : + { + toolbar : 'แทรก/แก้ไข Anchor', + menu : 'รายละเอียด Anchor', + title : 'รายละเอียด Anchor', + name : 'ชื่อ Anchor', + errorName : 'กรุณาระบุชื่อของ Anchor', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Find and Replace', // MISSING + find : 'ค้นหา', + replace : 'ค้นหาและแทนที่', + findWhat : 'ค้นหาคำว่า:', + replaceWith : 'แทนที่ด้วย:', + notFoundMsg : 'ไม่พบคำที่ค้นหา.', + findOptions : 'Find Options', // MISSING + matchCase : 'ตัวโหญ่-เล็ก ต้องตรงกัน', + matchWord : 'ต้องตรงกันทุกคำ', + matchCyclic : 'Match cyclic', // MISSING + replaceAll : 'แทนที่ทั้งหมดที่พบ', + replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING + }, + + // Table Dialog + table : + { + toolbar : 'ตาราง', + title : 'คุณสมบัติของ ตาราง', + menu : 'คุณสมบัติของ ตาราง', + deleteTable : 'ลบตาราง', + rows : 'แถว', + columns : 'สดมน์', + border : 'ขนาดเส้นขอบ', + widthPx : 'จุดสี', + widthPc : 'เปอร์เซ็น', + widthUnit : 'width unit', // MISSING + cellSpace : 'ระยะแนวนอนน', + cellPad : 'ระยะแนวตั้ง', + caption : 'หัวเรื่องของตาราง', + summary : 'สรุปความ', + headers : 'Headers', // MISSING + headersNone : 'None', // MISSING + headersColumn : 'First column', // MISSING + headersRow : 'First Row', // MISSING + headersBoth : 'Both', // MISSING + invalidRows : 'Number of rows must be a number greater than 0.', // MISSING + invalidCols : 'Number of columns must be a number greater than 0.', // MISSING + invalidBorder : 'Border size must be a number.', // MISSING + invalidWidth : 'Table width must be a number.', // MISSING + invalidHeight : 'Table height must be a number.', // MISSING + invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING + invalidCellPadding : 'Cell padding must be a positive number.', // MISSING + + cell : + { + menu : 'ช่องตาราง', + insertBefore : 'Insert Cell Before', // MISSING + insertAfter : 'Insert Cell After', // MISSING + deleteCell : 'ลบช่อง', + merge : 'ผสานช่อง', + mergeRight : 'Merge Right', // MISSING + mergeDown : 'Merge Down', // MISSING + splitHorizontal : 'Split Cell Horizontally', // MISSING + splitVertical : 'Split Cell Vertically', // MISSING + title : 'Cell Properties', // MISSING + cellType : 'Cell Type', // MISSING + rowSpan : 'Rows Span', // MISSING + colSpan : 'Columns Span', // MISSING + wordWrap : 'Word Wrap', // MISSING + hAlign : 'Horizontal Alignment', // MISSING + vAlign : 'Vertical Alignment', // MISSING + alignBaseline : 'Baseline', // MISSING + bgColor : 'Background Color', // MISSING + borderColor : 'Border Color', // MISSING + data : 'Data', // MISSING + header : 'Header', // MISSING + yes : 'Yes', // MISSING + no : 'No', // MISSING + invalidWidth : 'Cell width must be a number.', // MISSING + invalidHeight : 'Cell height must be a number.', // MISSING + invalidRowSpan : 'Rows span must be a whole number.', // MISSING + invalidColSpan : 'Columns span must be a whole number.', // MISSING + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : 'แถว', + insertBefore : 'Insert Row Before', // MISSING + insertAfter : 'Insert Row After', // MISSING + deleteRow : 'ลบแถว' + }, + + column : + { + menu : 'คอลัมน์', + insertBefore : 'Insert Column Before', // MISSING + insertAfter : 'Insert Column After', // MISSING + deleteColumn : 'ลบสดมน์' + } + }, + + // Button Dialog. + button : + { + title : 'รายละเอียดของ ปุ่ม', + text : 'ข้อความ (ค่าตัวแปร)', + type : 'ข้อความ', + typeBtn : 'Button', + typeSbm : 'Submit', + typeRst : 'Reset' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'คุณสมบัติของ เช็คบ๊อก', + radioTitle : 'คุณสมบัติของ เรดิโอบัตตอน', + value : 'ค่าตัวแปร', + selected : 'เลือกเป็นค่าเริ่มต้น' + }, + + // Form Dialog. + form : + { + title : 'คุณสมบัติของ แบบฟอร์ม', + menu : 'คุณสมบัติของ แบบฟอร์ม', + action : 'แอคชั่น', + method : 'เมธอด', + encoding : 'Encoding' // MISSING + }, + + // Select Field Dialog. + select : + { + title : 'คุณสมบัติของ แถบตัวเลือก', + selectInfo : 'อินโฟ', + opAvail : 'รายการตัวเลือก', + value : 'ค่าตัวแปร', + size : 'ขนาด', + lines : 'บรรทัด', + chkMulti : 'เลือกหลายค่าได้', + opText : 'ข้อความ', + opValue : 'ค่าตัวแปร', + btnAdd : 'เพิ่ม', + btnModify : 'แก้ไข', + btnUp : 'บน', + btnDown : 'ล่าง', + btnSetValue : 'เลือกเป็นค่าเริ่มต้น', + btnDelete : 'ลบ' + }, + + // Textarea Dialog. + textarea : + { + title : 'คุณสมบัติของ เท็กแอเรีย', + cols : 'สดมภ์', + rows : 'แถว' + }, + + // Text Field Dialog. + textfield : + { + title : 'คุณสมบัติของ เท็กซ์ฟิลด์', + name : 'ชื่อ', + value : 'ค่าตัวแปร', + charWidth : 'ความกว้าง', + maxChars : 'จำนวนตัวอักษรสูงสุด', + type : 'ชนิด', + typeText : 'ข้อความ', + typePass : 'รหัสผ่าน' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'คุณสมบัติของ ฮิดเดนฟิลด์', + name : 'ชื่อ', + value : 'ค่าตัวแปร' + }, + + // Image Dialog. + image : + { + title : 'คุณสมบัติของ รูปภาพ', + titleButton : 'คุณสมบัติของ ปุ่มแบบรูปภาพ', + menu : 'คุณสมบัติของ รูปภาพ', + infoTab : 'ข้อมูลของรูปภาพ', + btnUpload : 'อัพโหลดไฟล์ไปเก็บไว้ที่เครื่องแม่ข่าย (เซิร์ฟเวอร์)', + upload : 'อัพโหลดไฟล์', + alt : 'คำประกอบรูปภาพ', + lockRatio : 'กำหนดอัตราส่วน กว้าง-สูง แบบคงที่', + resetSize : 'กำหนดรูปเท่าขนาดจริง', + border : 'ขนาดขอบรูป', + hSpace : 'ระยะแนวนอน', + vSpace : 'ระยะแนวตั้ง', + alertUrl : 'กรุณาระบุที่อยู่อ้างอิงออนไลน์ของไฟล์รูปภาพ (URL)', + linkTab : 'ลิ้งค์', + button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING + img2Button : 'Do you want to transform the selected image on a image button?', // MISSING + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'คุณสมบัติของไฟล์ Flash', + propertiesTab : 'Properties', // MISSING + title : 'คุณสมบัติของไฟล์ Flash', + chkPlay : 'เล่นอัตโนมัติ Auto Play', + chkLoop : 'เล่นวนรอบ Loop', + chkMenu : 'ให้ใช้งานเมนูของ Flash', + chkFull : 'Allow Fullscreen', // MISSING + scale : 'อัตราส่วน Scale', + scaleAll : 'แสดงให้เห็นทั้งหมด Show all', + scaleNoBorder : 'ไม่แสดงเส้นขอบ No Border', + scaleFit : 'แสดงให้พอดีกับพื้นที่ Exact Fit', + access : 'Script Access', // MISSING + accessAlways : 'Always', // MISSING + accessSameDomain: 'Same domain', // MISSING + accessNever : 'Never', // MISSING + alignAbsBottom : 'ชิดด้านล่างสุด', + alignAbsMiddle : 'กึ่งกลาง', + alignBaseline : 'ชิดบรรทัด', + alignTextTop : 'ใต้ตัวอักษร', + quality : 'Quality', // MISSING + qualityBest : 'Best', // MISSING + qualityHigh : 'High', // MISSING + qualityAutoHigh : 'Auto High', // MISSING + qualityMedium : 'Medium', // MISSING + qualityAutoLow : 'Auto Low', // MISSING + qualityLow : 'Low', // MISSING + windowModeWindow: 'Window', // MISSING + windowModeOpaque: 'Opaque', // MISSING + windowModeTransparent : 'Transparent', // MISSING + windowMode : 'Window mode', // MISSING + flashvars : 'Variables for Flash', // MISSING + bgcolor : 'สีพื้นหลัง', + hSpace : 'ระยะแนวนอน', + vSpace : 'ระยะแนวตั้ง', + validateSrc : 'กรุณาระบุที่อยู่อ้างอิงออนไลน์ (URL)', + validateHSpace : 'HSpace must be a number.', // MISSING + validateVSpace : 'VSpace must be a number.' // MISSING + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'ตรวจการสะกดคำ', + title : 'Spell Check', // MISSING + notAvailable : 'Sorry, but service is unavailable now.', // MISSING + errorLoading : 'Error loading application service host: %s.', // MISSING + notInDic : 'ไม่พบในดิกชันนารี', + changeTo : 'แก้ไขเป็น', + btnIgnore : 'ยกเว้น', + btnIgnoreAll : 'ยกเว้นทั้งหมด', + btnReplace : 'แทนที่', + btnReplaceAll : 'แทนที่ทั้งหมด', + btnUndo : 'ยกเลิก', + noSuggestions : '- ไม่มีคำแนะนำใดๆ -', + progress : 'กำลังตรวจสอบคำสะกด...', + noMispell : 'ตรวจสอบคำสะกดเสร็จสิ้น: ไม่พบคำสะกดผิด', + noChanges : 'ตรวจสอบคำสะกดเสร็จสิ้น: ไม่มีการแก้คำใดๆ', + oneChange : 'ตรวจสอบคำสะกดเสร็จสิ้น: แก้ไข1คำ', + manyChanges : 'ตรวจสอบคำสะกดเสร็จสิ้น:: แก้ไข %1 คำ', + ieSpellDownload : 'ไม่ได้ติดตั้งระบบตรวจสอบคำสะกด. ต้องการติดตั้งไหมครับ?' + }, + + smiley : + { + toolbar : 'รูปสื่ออารมณ์', + title : 'แทรกสัญลักษณ์สื่ออารมณ์', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 element' // MISSING + }, + + numberedlist : 'ลำดับรายการแบบตัวเลข', + bulletedlist : 'ลำดับรายการแบบสัญลักษณ์', + indent : 'เพิ่มระยะย่อหน้า', + outdent : 'ลดระยะย่อหน้า', + + justify : + { + left : 'จัดชิดซ้าย', + center : 'จัดกึ่งกลาง', + right : 'จัดชิดขวา', + block : 'จัดพอดีหน้ากระดาษ' + }, + + blockquote : 'Block Quote', // MISSING + + clipboard : + { + title : 'วาง', + cutError : 'ไม่สามารถตัดข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว X พร้อมกัน).', + copyError : 'ไม่สามารถสำเนาข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว C พร้อมกัน).', + pasteMsg : 'กรุณาใช้คีย์บอร์ดเท่านั้น โดยกดปุ๋ม (<strong>Ctrl/Cmd และ V</strong>)พร้อมๆกัน และกด <strong>OK</strong>.', + securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + toolbar : 'วางสำเนาจากตัวอักษรเวิร์ด', + title : 'วางสำเนาจากตัวอักษรเวิร์ด', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : 'วางแบบตัวอักษรธรรมดา', + title : 'วางแบบตัวอักษรธรรมดา' + }, + + templates : + { + button : 'เทมเพลต', + title : 'เทมเพลตของส่วนเนื้อหาเว็บไซต์', + options : 'Template Options', // MISSING + insertOption : 'แทนที่เนื้อหาเว็บไซต์ที่เลือก', + selectPromptMsg : 'กรุณาเลือก เทมเพลต เพื่อนำไปแก้ไขในอีดิตเตอร์<br />(เนื้อหาส่วนนี้จะหายไป):', + emptyListMsg : '(ยังไม่มีการกำหนดเทมเพลต)' + }, + + showBlocks : 'Show Blocks', // MISSING + + stylesCombo : + { + label : 'ลักษณะ', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : 'Block Styles', // MISSING + panelTitle2 : 'Inline Styles', // MISSING + panelTitle3 : 'Object Styles' // MISSING + }, + + format : + { + label : 'รูปแบบ', + panelTitle : 'รูปแบบ', + + tag_p : 'Normal', + tag_pre : 'Formatted', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Paragraph (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : 'แบบอักษร', + voiceLabel : 'Font', // MISSING + panelTitle : 'แบบอักษร' + }, + + fontSize : + { + label : 'ขนาด', + voiceLabel : 'Font Size', // MISSING + panelTitle : 'ขนาด' + }, + + colorButton : + { + textColorTitle : 'สีตัวอักษร', + bgColorTitle : 'สีพื้นหลัง', + panelTitle : 'Colors', // MISSING + auto : 'สีอัตโนมัติ', + more : 'เลือกสีอื่นๆ...' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : 'Spell Check As You Type', // MISSING + opera_title : 'Not supported by Opera', // MISSING + enable : 'Enable SCAYT', // MISSING + disable : 'Disable SCAYT', // MISSING + about : 'About SCAYT', // MISSING + toggle : 'Toggle SCAYT', // MISSING + options : 'Options', // MISSING + langs : 'Languages', // MISSING + moreSuggestions : 'More suggestions', // MISSING + ignore : 'Ignore', // MISSING + ignoreAll : 'Ignore All', // MISSING + addWord : 'Add Word', // MISSING + emptyDic : 'Dictionary name should not be empty.', // MISSING + + optionsTab : 'Options', // MISSING + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : 'Languages', // MISSING + + dictionariesTab : 'Dictionaries', // MISSING + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : 'About' // MISSING + }, + + about : + { + title : 'About CKEditor', // MISSING + dlgTitle : 'About CKEditor', // MISSING + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : 'For licensing information please visit our web site:', // MISSING + copy : 'Copyright © $1. All rights reserved.' // MISSING + }, + + maximize : 'Maximize', // MISSING + minimize : 'Minimize', // MISSING + + fakeobjects : + { + anchor : 'Anchor', // MISSING + flash : 'Flash Animation', // MISSING + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : 'Unknown Object' // MISSING + }, + + resize : 'Drag to resize', // MISSING + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : 'Collapse Toolbar', // MISSING + toolbarExpand : 'Expand Toolbar', // MISSING + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : 'คุณสมบัติของเอกสาร', + title : 'คุณสมบัติของเอกสาร', + design : 'Design', // MISSING + meta : 'ข้อมูลสำหรับเสิร์ชเอนจิ้น', + chooseColor : 'Choose', // MISSING + other : '<อื่น ๆ>', + docTitle : 'ชื่อไตเติ้ล', + charset : 'ชุดตัวอักษร', + charsetOther : 'ชุดตัวอักษรอื่นๆ', + charsetASCII : 'ASCII', // MISSING + charsetCE : 'Central European', // MISSING + charsetCT : 'Chinese Traditional (Big5)', // MISSING + charsetCR : 'Cyrillic', // MISSING + charsetGR : 'Greek', // MISSING + charsetJP : 'Japanese', // MISSING + charsetKR : 'Korean', // MISSING + charsetTR : 'Turkish', // MISSING + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : 'Western European', // MISSING + docType : 'ประเภทของเอกสาร', + docTypeOther : 'ประเภทเอกสารอื่นๆ', + xhtmlDec : 'รวมเอา XHTML Declarations ไว้ด้วย', + bgColor : 'สีพื้นหลัง', + bgImage : 'ที่อยู่อ้างอิงออนไลน์ของรูปพื้นหลัง (Image URL)', + bgFixed : 'พื้นหลังแบบไม่มีแถบเลื่อน', + txtColor : 'สีตัวอักษร', + margin : 'ระยะขอบของหน้าเอกสาร', + marginTop : 'ด้านบน', + marginLeft : 'ด้านซ้าย', + marginRight : 'ด้านขวา', + marginBottom : 'ด้านล่าง', + metaKeywords : 'คำสำคัญอธิบายเอกสาร (คั่นคำด้วย คอมม่า)', + metaDescription : 'ประโยคอธิบายเกี่ยวกับเอกสาร', + metaAuthor : 'ผู้สร้างเอกสาร', + metaCopyright : 'สงวนลิขสิทธิ์', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/tr.js b/htdocs/includes/ckeditor/_source/lang/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..0db6a1df7619058980cfcd14930b9e6e0537b4e2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/tr.js @@ -0,0 +1,815 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** +* @fileOverview +*/ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['tr'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Araç çubukları Editörü', + editor : 'Zengin Metin Editörü', + + // Toolbar buttons without dialogs. + source : 'Kaynak', + newPage : 'Yeni Sayfa', + save : 'Kaydet', + preview : 'Ön İzleme', + cut : 'Kes', + copy : 'Kopyala', + paste : 'Yapıştır', + print : 'Yazdır', + underline : 'Altı Çizgili', + bold : 'Kalın', + italic : 'İtalik', + selectAll : 'Tümünü Seç', + removeFormat : 'Biçimi Kaldır', + strike : 'Üstü Çizgili', + subscript : 'Alt Simge', + superscript : 'Üst Simge', + horizontalrule : 'Yatay Satır Ekle', + pagebreak : 'Sayfa Sonu Ekle', + pagebreakAlt : 'Sayfa Sonu', + unlink : 'Köprü Kaldır', + undo : 'Geri Al', + redo : 'Tekrarla', + + // Common messages and labels. + common : + { + browseServer : 'Sunucuyu Gez', + url : 'URL', + protocol : 'Protokol', + upload : 'Karşıya Yükle', + uploadSubmit : 'Sunucuya Yolla', + image : 'Resim', + flash : 'Flash', + form : 'Form', + checkbox : 'Onay Kutusu', + radio : 'Seçenek Düğmesi', + textField : 'Metin Girişi', + textarea : 'Çok Satırlı Metin', + hiddenField : 'Gizli Veri', + button : 'Düğme', + select : 'Seçim Menüsü', + imageButton : 'Resimli Düğme', + notSet : '<tanımlanmamış>', + id : 'Kimlik', + name : 'Ad', + langDir : 'Dil Yönü', + langDirLtr : 'Soldan Sağa (LTR)', + langDirRtl : 'Sağdan Sola (RTL)', + langCode : 'Dil Kodlaması', + longDescr : 'Uzun Tanımlı URL', + cssClass : 'Biçem Sayfası Sınıfları', + advisoryTitle : 'Danışma Başlığı', + cssStyle : 'Biçem', + ok : 'Tamam', + cancel : 'İptal', + close : 'Kapat', + preview : 'Ön gösterim', + generalTab : 'Genel', + advancedTab : 'Gelişmiş', + validateNumberFailed : 'Bu değer sayı değildir.', + confirmNewPage : 'İceriğiniz kayıt edilmediğinden dolayı kaybolacaktır. Yeni bir sayfa yüklemek istediğinize eminsiniz?', + confirmCancel : 'Bazı seçenekler değişmiştir. Dialog penceresini kapatmak istediğinize eminmisiniz?', + options : 'Seçenekler', + target : 'Hedef', + targetNew : 'Yeni Pencere (_blank)', + targetTop : 'Enüst Pencere (_top)', + targetSelf : 'Aynı Pencere (_self)', + targetParent : 'Ana Pencere (_parent)', + langDirLTR : 'Soldan Sağa (LTR)', + langDirRTL : 'Sağdan Sola (RTL)', + styles : 'Stil', + cssClasses : 'Stil sayfası Sınıfı', + width : 'Genişlik', + height : 'Yükseklik', + align : 'Hizalama', + alignLeft : 'Sol', + alignRight : 'Sağ', + alignCenter : 'Merkez', + alignTop : 'Tepe', + alignMiddle : 'Orta', + alignBottom : 'Alt', + invalidHeight : 'Yükseklik sayı olmalıdır.', + invalidWidth : 'Genişlik bir sayı olmalıdır.', + invalidCssLength : 'Belirttiğiniz sayı "%1" alanı için pozitif bir sayı CSS birim değeri olmalıdır (px, %, in, cm, mm, em, ex, pt, veya pc).', + invalidHtmlLength : 'Belirttiğiniz sayı "%1" alanı için pozitif bir sayı HTML birim değeri olmalıdır (px veya %).', + invalidInlineStyle : 'Noktalı virgülle ayrılmış: "değer adı," inline stil için belirtilen değer biçiminde bir veya daha fazla dizilerden oluşmalıdır.', + cssLengthTooltip : 'Pikseller için bir numara girin veya geçerli bir CSS numarası (px, %, in, cm, mm, em, ex, pt, veya pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, hazır değildir</span>' + }, + + contextmenu : + { + options : 'İçerik Menüsü Seçenekleri' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Özel Karakter Ekle', + title : 'Özel Karakter Seç', + options : 'Özel Karakter Seçenekleri' + }, + + // Link dialog. + link : + { + toolbar : 'Link Ekle/Düzenle', + other : '<diğer>', + menu : 'Link Düzenle', + title : 'Link', + info : 'Link Bilgisi', + target : 'Hedef', + upload : 'Karşıya Yükle', + advanced : 'Gelişmiş', + type : 'Link Türü', + toUrl : 'URL', + toAnchor : 'Bu sayfada çapa', + toEmail : 'E-Posta', + targetFrame : '<çerçeve>', + targetPopup : '<yeni açılan pencere>', + targetFrameName : 'Hedef Çerçeve Adı', + targetPopupName : 'Yeni Açılan Pencere Adı', + popupFeatures : 'Yeni Açılan Pencere Özellikleri', + popupResizable : 'Resizable', + popupStatusBar : 'Durum Çubuğu', + popupLocationBar: 'Yer Çubuğu', + popupToolbar : 'Araç Çubuğu', + popupMenuBar : 'Menü Çubuğu', + popupFullScreen : 'Tam Ekran (IE)', + popupScrollBars : 'Kaydırma Çubukları', + popupDependent : 'Bağımlı (Netscape)', + popupLeft : 'Sola Göre Konum', + popupTop : 'Yukarıya Göre Konum', + id : 'Id', + langDir : 'Dil Yönü', + langDirLTR : 'Soldan Sağa (LTR)', + langDirRTL : 'Sağdan Sola (RTL)', + acccessKey : 'Erişim Tuşu', + name : 'Ad', + langCode : 'Dil Yönü', + tabIndex : 'Sekme İndeksi', + advisoryTitle : 'Danışma Başlığı', + advisoryContentType : 'Danışma İçerik Türü', + cssClasses : 'Biçem Sayfası Sınıfları', + charset : 'Bağlı Kaynak Karakter Gurubu', + styles : 'Biçem', + rel : 'İlişki', + selectAnchor : 'Bağlantı Seç', + anchorName : 'Bağlantı Adı ile', + anchorId : 'Eleman Kimlik Numarası ile', + emailAddress : 'E-Posta Adresi', + emailSubject : 'İleti Konusu', + emailBody : 'İleti Gövdesi', + noAnchors : '(Bu belgede hiç çapa yok)', + noUrl : 'Lütfen Link URL\'sini yazın', + noEmail : 'Lütfen E-posta adresini yazın' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Bağlantı Ekle/Düzenle', + menu : 'Bağlantı Özellikleri', + title : 'Bağlantı Özellikleri', + name : 'Bağlantı Adı', + errorName : 'Lütfen bağlantı için ad giriniz', + remove : 'Bağlantıyı Kaldır' + }, + + // List style dialog + list: + { + numberedTitle : 'Sayılandırılmış Liste Özellikleri', + bulletedTitle : 'Simgeli Liste Özellikleri', + type : 'Tipi', + start : 'Başla', + validateStartNumber :'Liste başlangıcı tam sayı olmalıdır.', + circle : 'Daire', + disc : 'Disk', + square : 'Kare', + none : 'Yok', + notset : '<ayarlanmamış>', + armenian : 'Ermenice sayılandırma', + georgian : 'Gürcüce numaralandırma (an, ban, gan, vs.)', + lowerRoman : 'Küçük Roman (i, ii, iii, iv, v, vs.)', + upperRoman : 'Büyük Roman (I, II, III, IV, V, vs.)', + lowerAlpha : 'Küçük Alpha (a, b, c, d, e, vs.)', + upperAlpha : 'Büyük Alpha (A, B, C, D, E, vs.)', + lowerGreek : 'Küçük Greek (alpha, beta, gamma, vs.)', + decimal : 'Ondalık (1, 2, 3, vs.)', + decimalLeadingZero : 'Başı sıfırlı ondalık (01, 02, 03, vs.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Bul ve Değiştir', + find : 'Bul', + replace : 'Değiştir', + findWhat : 'Aranan:', + replaceWith : 'Bununla değiştir:', + notFoundMsg : 'Belirtilen yazı bulunamadı.', + findOptions : 'Seçenekleri Bul', + matchCase : 'Büyük/küçük harf duyarlı', + matchWord : 'Kelimenin tamamı uysun', + matchCyclic : 'Eşleşen döngü', + replaceAll : 'Tümünü Değiştir', + replaceSuccessMsg : '%1 bulunanlardan değiştirildi.' + }, + + // Table Dialog + table : + { + toolbar : 'Tablo', + title : 'Tablo Özellikleri', + menu : 'Tablo Özellikleri', + deleteTable : 'Tabloyu Sil', + rows : 'Satırlar', + columns : 'Sütunlar', + border : 'Kenar Kalınlığı', + widthPx : 'piksel', + widthPc : 'yüzde', + widthUnit : 'genişlik birimi', + cellSpace : 'Izgara kalınlığı', + cellPad : 'Izgara yazı arası', + caption : 'Başlık', + summary : 'Özet', + headers : 'Başlıklar', + headersNone : 'Yok', + headersColumn : 'İlk Sütun', + headersRow : 'İlk Satır', + headersBoth : 'Her İkisi', + invalidRows : 'Satır sayısı 0 sayısından büyük olmalıdır.', + invalidCols : 'Sütün sayısı 0 sayısından büyük olmalıdır.', + invalidBorder : 'Çerceve büyüklüklüğü sayı olmalıdır.', + invalidWidth : 'Tablo genişliği sayı olmalıdır.', + invalidHeight : 'Tablo yüksekliği sayı olmalıdır.', + invalidCellSpacing : 'Hücre boşluğu (spacing) sayı olmalıdır.', + invalidCellPadding : 'Hücre aralığı (padding) sayı olmalıdır.', + + cell : + { + menu : 'Hücre', + insertBefore : 'Hücre Ekle - Önce', + insertAfter : 'Hücre Ekle - Sonra', + deleteCell : 'Hücre Sil', + merge : 'Hücreleri Birleştir', + mergeRight : 'Birleştir - Sağdaki İle ', + mergeDown : 'Birleştir - Aşağıdaki İle ', + splitHorizontal : 'Hücreyi Yatay Böl', + splitVertical : 'Hücreyi Dikey Böl', + title : 'Hücre Özellikleri', + cellType : 'Hücre Tipi', + rowSpan : 'Satırlar Mesafesi (Span)', + colSpan : 'Sütünlar Mesafesi (Span)', + wordWrap : 'Kelime Kaydırma', + hAlign : 'Düşey Hizalama', + vAlign : 'Yataş Hizalama', + alignBaseline : 'Tabana', + bgColor : 'Arkaplan Rengi', + borderColor : 'Çerçeve Rengi', + data : 'Veri', + header : 'Başlık', + yes : 'Evet', + no : 'Hayır', + invalidWidth : 'Hücre genişliği sayı olmalıdır.', + invalidHeight : 'Hücre yüksekliği sayı olmalıdır.', + invalidRowSpan : 'Satırların mesafesi tam sayı olmalıdır.', + invalidColSpan : 'Sütünların mesafesi tam sayı olmalıdır.', + chooseColor : 'Seçiniz' + }, + + row : + { + menu : 'Satır', + insertBefore : 'Satır Ekle - Önce', + insertAfter : 'Satır Ekle - Sonra', + deleteRow : 'Satır Sil' + }, + + column : + { + menu : 'Sütun', + insertBefore : 'Kolon Ekle - Önce', + insertAfter : 'Kolon Ekle - Sonra', + deleteColumn : 'Sütun Sil' + } + }, + + // Button Dialog. + button : + { + title : 'Düğme Özellikleri', + text : 'Metin (Değer)', + type : 'Tip', + typeBtn : 'Düğme', + typeSbm : 'Gönder', + typeRst : 'Sıfırla' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Onay Kutusu Özellikleri', + radioTitle : 'Seçenek Düğmesi Özellikleri', + value : 'Değer', + selected : 'Seçili' + }, + + // Form Dialog. + form : + { + title : 'Form Özellikleri', + menu : 'Form Özellikleri', + action : 'İşlem', + method : 'Yöntem', + encoding : 'Kodlama' + }, + + // Select Field Dialog. + select : + { + title : 'Seçim Menüsü Özellikleri', + selectInfo : 'Bilgi', + opAvail : 'Mevcut Seçenekler', + value : 'Değer', + size : 'Boyut', + lines : 'satır', + chkMulti : 'Çoklu seçime izin ver', + opText : 'Metin', + opValue : 'Değer', + btnAdd : 'Ekle', + btnModify : 'Düzenle', + btnUp : 'Yukarı', + btnDown : 'Aşağı', + btnSetValue : 'Seçili değer olarak ata', + btnDelete : 'Sil' + }, + + // Textarea Dialog. + textarea : + { + title : 'Çok Satırlı Metin Özellikleri', + cols : 'Sütunlar', + rows : 'Satırlar' + }, + + // Text Field Dialog. + textfield : + { + title : 'Metin Girişi Özellikleri', + name : 'Ad', + value : 'Değer', + charWidth : 'Karakter Genişliği', + maxChars : 'En Fazla Karakter', + type : 'Tür', + typeText : 'Metin', + typePass : 'Şifre' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Gizli Veri Özellikleri', + name : 'Ad', + value : 'Değer' + }, + + // Image Dialog. + image : + { + title : 'Resim Özellikleri', + titleButton : 'Resimli Düğme Özellikleri', + menu : 'Resim Özellikleri', + infoTab : 'Resim Bilgisi', + btnUpload : 'Sunucuya Yolla', + upload : 'Karşıya Yükle', + alt : 'Alternatif Yazı', + lockRatio : 'Oranı Kilitle', + resetSize : 'Boyutu Başa Döndür', + border : 'Kenar', + hSpace : 'Yatay Boşluk', + vSpace : 'Dikey Boşluk', + alertUrl : 'Lütfen resmin URL\'sini yazınız', + linkTab : 'Köprü', + button2Img : 'Seçili resim butonunu basit resime çevirmek istermisiniz?', + img2Button : 'Seçili olan resimi, resimli butona çevirmek istermisiniz?', + urlMissing : 'Resmin URL kaynağı eksiktir.', + validateBorder : 'Çerçeve tam sayı olmalıdır.', + validateHSpace : 'HSpace tam sayı olmalıdır.', + validateVSpace : 'VSpace tam sayı olmalıdır.' + }, + + // Flash Dialog + flash : + { + properties : 'Flash Özellikleri', + propertiesTab : 'Özellikler', + title : 'Flash Özellikleri', + chkPlay : 'Otomatik Oynat', + chkLoop : 'Döngü', + chkMenu : 'Flash Menüsünü Kullan', + chkFull : 'Tam ekrana İzinver', + scale : 'Boyutlandır', + scaleAll : 'Hepsini Göster', + scaleNoBorder : 'Kenar Yok', + scaleFit : 'Tam Sığdır', + access : 'Kod İzni', + accessAlways : 'Herzaman', + accessSameDomain: 'Aynı domain', + accessNever : 'Asla', + alignAbsBottom : 'Tam Altı', + alignAbsMiddle : 'Tam Ortası', + alignBaseline : 'Taban Çizgisi', + alignTextTop : 'Yazı Tepeye', + quality : 'Kalite', + qualityBest : 'En iyi', + qualityHigh : 'Yüksek', + qualityAutoHigh : 'Otomatik Yükseklik', + qualityMedium : 'Orta', + qualityAutoLow : 'Otomatik Düşüklük', + qualityLow : 'Düşük', + windowModeWindow: 'Pencere', + windowModeOpaque: 'Opak', + windowModeTransparent : 'Şeffaf', + windowMode : 'Pencere modu', + flashvars : 'Flash Değerleri', + bgcolor : 'Arka Renk', + hSpace : 'Yatay Boşluk', + vSpace : 'Dikey Boşluk', + validateSrc : 'Lütfen köprü URL\'sini yazın', + validateHSpace : 'HSpace sayı olmalıdır.', + validateVSpace : 'VSpace sayı olmalıdır.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Yazım Denetimi', + title : 'Yazımı Denetle', + notAvailable : 'Üzügünüz, bu servis şuanda hizmet dışıdır.', + errorLoading : 'Uygulamada yüklerken hata oluştu: %s.', + notInDic : 'Sözlükte Yok', + changeTo : 'Şuna değiştir:', + btnIgnore : 'Yoksay', + btnIgnoreAll : 'Tümünü Yoksay', + btnReplace : 'Değiştir', + btnReplaceAll : 'Tümünü Değiştir', + btnUndo : 'Geri Al', + noSuggestions : '- Öneri Yok -', + progress : 'Yazım denetimi işlemde...', + noMispell : 'Yazım denetimi tamamlandı: Yanlış yazıma rastlanmadı', + noChanges : 'Yazım denetimi tamamlandı: Hiçbir kelime değiştirilmedi', + oneChange : 'Yazım denetimi tamamlandı: Bir kelime değiştirildi', + manyChanges : 'Yazım denetimi tamamlandı: %1 kelime değiştirildi', + ieSpellDownload : 'Yazım denetimi yüklenmemiş. Şimdi yüklemek ister misiniz?' + }, + + smiley : + { + toolbar : 'İfade', + title : 'İfade Ekle', + options : 'İfade Seçenekleri' + }, + + elementsPath : + { + eleLabel : 'Elementlerin yolu', + eleTitle : '%1 elementi' + }, + + numberedlist : 'Numaralı Liste', + bulletedlist : 'Simgeli Liste', + indent : 'Sekme Arttır', + outdent : 'Sekme Azalt', + + justify : + { + left : 'Sola Dayalı', + center : 'Ortalanmış', + right : 'Sağa Dayalı', + block : 'İki Kenara Yaslanmış' + }, + + blockquote : 'Blok Oluştur', + + clipboard : + { + title : 'Yapıştır', + cutError : 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kesme işlemine izin vermiyor. İşlem için (Ctrl/Cmd+X) tuşlarını kullanın.', + copyError : 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kopyalama işlemine izin vermiyor. İşlem için (Ctrl/Cmd+C) tuşlarını kullanın.', + pasteMsg : 'Lütfen aşağıdaki kutunun içine yapıştırın. (<STRONG>Ctrl/Cmd+V</STRONG>) ve <STRONG>Tamam</STRONG> butonunu tıklayın.', + securityMsg : 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin direkt olarak panoya erişimine izin vermiyor. Bu pencere içine tekrar yapıştırmalısınız..', + pasteArea : 'Yapıştırma Alanı' + }, + + pastefromword : + { + confirmCleanup : 'Yapıştırmaya çalıştığınız metin Word\'den kopyalanmıştır. Yapıştırmadan önce silmek istermisiniz?', + toolbar : 'Word\'den Yapıştır', + title : 'Word\'den Yapıştır', + error : 'Yapıştırmadaki veri bilgisi hata düzelene kadar silinmeyecektir' + }, + + pasteText : + { + button : 'Düz Metin Olarak Yapıştır', + title : 'Düz Metin Olarak Yapıştır' + }, + + templates : + { + button : 'Şablonlar', + title : 'İçerik Şablonları', + options : 'Şablon Seçenekleri', + insertOption : 'Mevcut içerik ile değiştir', + selectPromptMsg : 'Düzenleyicide açmak için lütfen bir şablon seçin.<br>(hali hazırdaki içerik kaybolacaktır.):', + emptyListMsg : '(Belirli bir şablon seçilmedi)' + }, + + showBlocks : 'Blokları Göster', + + stylesCombo : + { + label : 'Biçem', + panelTitle : 'Stilleri Düzenliyor', + panelTitle1 : 'Blok Stilleri', + panelTitle2 : 'Inline Stilleri', + panelTitle3 : 'Nesne Stilleri' + }, + + format : + { + label : 'Biçim', + panelTitle : 'Biçim', + + tag_p : 'Normal', + tag_pre : 'Biçimli', + tag_address : 'Adres', + tag_h1 : 'Başlık 1', + tag_h2 : 'Başlık 2', + tag_h3 : 'Başlık 3', + tag_h4 : 'Başlık 4', + tag_h5 : 'Başlık 5', + tag_h6 : 'Başlık 6', + tag_div : 'Paragraf (DIV)' + }, + + div : + { + title : 'Div İçeriği Oluştur', + toolbar : 'Div İçeriği Oluştur', + cssClassInputLabel : 'Stilltipi Sınıfı', + styleSelectLabel : 'Stil', + IdInputLabel : 'Id', + languageCodeInputLabel : ' Dil Kodu', + inlineStyleInputLabel : 'Inline Stili', + advisoryTitleInputLabel : 'Tavsiye Başlığı', + langDirLabel : 'Dil Yönü', + langDirLTRLabel : 'Soldan sağa (LTR)', + langDirRTLLabel : 'Sağdan sola (RTL)', + edit : 'Div Düzenle', + remove : 'Div Kaldır' + }, + + iframe : + { + title : 'IFrame Özellikleri', + toolbar : 'IFrame', + noUrl : 'Lütfen IFrame köprü (URL) bağlantısını yazın', + scrolling : 'Kaydırma çubuklarını aktif et', + border : 'Çerceve sınırlarını göster' + }, + + font : + { + label : 'Yazı Türü', + voiceLabel : 'Font', + panelTitle : 'Yazı Türü' + }, + + fontSize : + { + label : 'Boyut', + voiceLabel : 'Font Size', + panelTitle : 'Boyut' + }, + + colorButton : + { + textColorTitle : 'Yazı Rengi', + bgColorTitle : 'Arka Renk', + panelTitle : 'Renkler', + auto : 'Otomatik', + more : 'Diğer renkler...' + }, + + colors : + { + '000' : 'Siyah', + '800000' : 'Kestane', + '8B4513' : 'Koyu Kahverengi', + '2F4F4F' : 'Koyu Kurşuni Gri', + '008080' : 'Teal', + '000080' : 'Mavi', + '4B0082' : 'Çivit Mavisi', + '696969' : 'Silik Gri', + 'B22222' : 'Ateş Tuğlası', + 'A52A2A' : 'Kahverengi', + 'DAA520' : 'Altun Sırık', + '006400' : 'Koyu Yeşil', + '40E0D0' : 'Turkuaz', + '0000CD' : 'Orta Mavi', + '800080' : 'Pembe', + '808080' : 'Gri', + 'F00' : 'Kırmızı', + 'FF8C00' : 'Koyu Portakal', + 'FFD700' : 'Altın', + '008000' : 'Yeşil', + '0FF' : 'Ciyan', + '00F' : 'Mavi', + 'EE82EE' : 'Menekşe', + 'A9A9A9' : 'Koyu Gri', + 'FFA07A' : 'Açık Sarımsı', + 'FFA500' : 'Portakal', + 'FFFF00' : 'Sarı', + '00FF00' : 'Açık Yeşil', + 'AFEEEE' : 'Sönük Turkuaz', + 'ADD8E6' : 'Açık Mavi', + 'DDA0DD' : 'Mor', + 'D3D3D3' : 'Açık Gri', + 'FFF0F5' : 'Eflatun Pembe', + 'FAEBD7' : 'Antik Beyaz', + 'FFFFE0' : 'Açık Sarı', + 'F0FFF0' : 'Balsarısı', + 'F0FFFF' : 'Gök Mavisi', + 'F0F8FF' : 'Reha Mavi', + 'E6E6FA' : 'Eflatun', + 'FFF' : 'Beyaz' + }, + + scayt : + { + title : 'Girmiş olduğunuz kelime denetimi', + opera_title : 'Opera tarafından desteklenmemektedir', + enable : 'SCAYT\'ı etkinleştir', + disable : 'SCAYT\'ı pasifleştir', + about : 'SCAYT\'ı hakkında', + toggle : 'SCAYT\'ı değiştir', + options : 'Seçenekler', + langs : 'Diller', + moreSuggestions : 'Daha fazla öneri', + ignore : 'Yoksay', + ignoreAll : 'Tümünü Yoksay', + addWord : 'Kelime Ekle', + emptyDic : 'Sözlük adı boş olamaz.', + + optionsTab : 'Seçenekler', + allCaps : 'Tüm büyük küçük kelimeleri yoksay', + ignoreDomainNames : 'Domain adlarını yoksay', + mixedCase : 'Karışık büyüklük ile Sözcükler yoksay', + mixedWithDigits : 'Sayılarla Kelimeler yoksay', + + languagesTab : 'Diller', + + dictionariesTab : 'Sözlükler', + dic_field_name : 'Sözlük adı', + dic_create : 'Oluştur', + dic_restore : 'Geri al', + dic_delete : 'Sil', + dic_rename : 'Yeniden adlandır', + dic_info : 'Başlangıçta Kullanıcı Sözlüğü bir çerezde saklanır. Ancak, Çerezler boyutu sınırlıdır. Kullanıcı Sözlüğü, çerezin içinde saklanamayacağı bir noktada, bizim sunucularımızın içindeki sözlükte saklanabilir. Bizim sunucu üzerinde kişisel Sözlük saklamanız için, Sözlüğe bir ad belirtmelisiniz. Eğer zaten bir saklı Sözlük varsa, lütfen adını yazın ve Geri Yükle düğmesini tıklayın.', + + aboutTab : 'Hakkında' + }, + + about : + { + title : 'CKEditor Hakkında', + dlgTitle : 'CKEditor Hakkında', + help : 'Yardım için $1 kontrol edin.', + userGuide : 'CKEditor Kullanıcı Kılavuzu', + moreInfo : 'Lisanslama hakkında daha fazla bilgi almak için lütfen sitemizi ziyaret edin:', + copy : 'Copyright © $1. Tüm hakları saklıdır.' + }, + + maximize : 'Büyült', + minimize : 'Küçült', + + fakeobjects : + { + anchor : 'Bağlantı', + flash : 'Flash Animasyonu', + iframe : 'IFrame', + hiddenfield : 'Gizli Alan', + unknown : 'Bilinmeyen Nesne' + }, + + resize : 'Boyutlandırmak için sürükle', + + colordialog : + { + title : 'Renk seç', + options : 'Renk Seçenekleri', + highlight : 'İşaretle', + selected : 'Seçilmiş', + clear : 'Temizle' + }, + + toolbarCollapse : 'Araç çubuklarını topla', + toolbarExpand : 'Araç çubuklarını aç', + + toolbarGroups : + { + document : 'Belge', + clipboard : 'Pano/Geri al', + editing : 'Düzenleme', + forms : 'Formlar', + basicstyles : 'Temel Stiller', + paragraph : 'Paragraf', + links : 'Bağlantılar', + insert : 'Ekle', + styles : 'Stiller', + colors : 'Renkler', + tools : 'Araçlar' + }, + + bidi : + { + ltr : 'Metin yönü soldan sağa', + rtl : 'Metin yönü sağdan sola' + }, + + docprops : + { + label : 'Belge Özellikleri', + title : 'Belge Özellikleri', + design : 'Dizayn', + meta : 'Tanım Bilgisi (Meta)', + chooseColor : 'Seçiniz', + other : '<diğer>', + docTitle : 'Sayfa Başlığı', + charset : 'Karakter Kümesi Kodlaması', + charsetOther : 'Diğer Karakter Kümesi Kodlaması', + charsetASCII : 'ASCII', + charsetCE : 'Orta Avrupa', + charsetCT : 'Geleneksel Çince (Big5)', + charsetCR : 'Kiril', + charsetGR : 'Yunanca', + charsetJP : 'Japonca', + charsetKR : 'Korece', + charsetTR : 'Türkçe', + charsetUN : 'Evrensel Kod (UTF-8)', + charsetWE : 'Batı Avrupa', + docType : 'Belge Türü Başlığı', + docTypeOther : 'Diğer Belge Türü Başlığı', + xhtmlDec : 'XHTML Bildirimlerini Dahil Et', + bgColor : 'Arka Plan Rengi', + bgImage : 'Arka Plan Resim URLsi', + bgFixed : 'Sabit Arka Plan', + txtColor : 'Yazı Rengi', + margin : 'Kenar Boşlukları', + marginTop : 'Tepe', + marginLeft : 'Sol', + marginRight : 'Sağ', + marginBottom : 'Alt', + metaKeywords : 'Belge Dizinleme Anahtar Kelimeleri (virgülle ayrılmış)', + metaDescription : 'Belge Tanımı', + metaAuthor : 'Yazar', + metaCopyright : 'Telif', + previewHtml : '<p>Bu bir <strong>örnek metindir</strong>. <a href="javascript:void(0)">CKEditor</a> kullanıyorsunuz.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/ug.js b/htdocs/includes/ckeditor/_source/lang/ug.js new file mode 100644 index 0000000000000000000000000000000000000000..b2f91195df188d60440f67170bd0974d986ef5e4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/ug.js @@ -0,0 +1,815 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** +* @fileOverview +*/ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['ug'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'rtl', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'قورال بالداق', + editor : 'تەھرىرلىگۈچ', + + // Toolbar buttons without dialogs. + source : 'مەنبە', + newPage : 'يېڭى بەت', + save : 'ساقلا', + preview : 'ئالدىن كۆزەت', + cut : 'كەس', + copy : 'نەشر ھوقۇقىغا ئىگە بەلگىسى', + paste : 'چاپلا', + print : 'باس ', + underline : 'ئاستى سىزىق', + bold : 'توم', + italic : 'يانتۇ', + selectAll : 'ھەممىنى تاللا', + removeFormat : 'پىچىمنى چىقىرىۋەت', + strike : 'ئۆچۈرۈش سىزىقى', + subscript : 'تۆۋەن ئىندېكس', + superscript : 'يۇقىرى ئىندېكس', + horizontalrule : 'توغرا سىزىق قىستۇر', + pagebreak : 'بەت ئايرىغۇچ قىستۇر', + pagebreakAlt : 'بەت ئايرىغۇچ', + unlink : 'ئۇلانما بىكار قىل', + undo : 'يېنىۋال', + redo : 'قايتىلا ', + + // Common messages and labels. + common : + { + browseServer : 'كۆرسىتىش مۇلازىمېتىر', + url : 'ئەسلى ھۆججەت', + protocol : 'كېلىشىم', + upload : 'يۈكلە', + uploadSubmit : 'مۇلازىمېتىرغا يۈكلە', + image : 'سۈرەت', + flash : 'Flash', + form : 'جەدۋەل', + checkbox : 'كۆپ تاللاش رامكىسى', + radio : 'يەككە تاللاش توپچىسى', + textField : 'يەككە قۇر تېكىست', + textarea : 'كۆپ قۇر تېكىست', + hiddenField : 'يوشۇرۇن دائىرە', + button : 'توپچا', + select : 'تىزىم/تىزىملىك', + imageButton : 'سۈرەت دائىرە', + notSet : '‹تەڭشەلمىگەن›', + id : 'ID', + name : 'ئات', + langDir : 'تىل يۆنىلىشى', + langDirLtr : 'سولدىن ئوڭغا (LTR)', + langDirRtl : 'ئوڭدىن سولغا (RTL)', + langCode : 'تىل كودى', + longDescr : 'تەپسىلىي چۈشەندۈرۈش ئادرېسى', + cssClass : 'ئۇسلۇب خىلىنىڭ ئاتى', + advisoryTitle : 'ماۋزۇ', + cssStyle : 'قۇر ئىچىدىكى ئۇسلۇبى', + ok : 'جەزملە', + cancel : 'ۋاز كەچ', + close : 'تاقا', + preview : 'ئالدىن كۆزەت', + generalTab : 'ئادەتتىكى', + advancedTab : 'ئالىي', + validateNumberFailed : 'سان پىچىمىدا كىرگۈزۈش زۆرۈر', + confirmNewPage : 'نۆۋەتتىكى پۈتۈك مەزمۇنى ساقلانمىدى، يېڭى پۈتۈك قۇرامسىز؟', + confirmCancel : 'قىسمەن ئۆزگەرتىش ساقلانمىدى، بۇ سۆزلەشكۈنى تاقامسىز؟', + options : 'تاللانما', + target : 'نىشان كۆزنەك', + targetNew : 'يېڭى كۆزنەك (_blank)', + targetTop : 'پۈتۈن بەت (_top)', + targetSelf : 'مەزكۇر كۆزنەك (_self)', + targetParent : 'ئاتا كۆزنەك (_parent)', + langDirLTR : 'سولدىن ئوڭغا (LTR)', + langDirRTL : 'ئوڭدىن سولغا (RTL)', + styles : 'ئۇسلۇبلار', + cssClasses : 'ئۇسلۇب خىللىرى', + width : 'كەڭلىك', + height : 'ئېگىزلىك', + align : 'توغرىلىنىشى', + alignLeft : 'سول', + alignRight : 'ئوڭ', + alignCenter : 'ئوتتۇرا', + alignTop : 'ئۈستى', + alignMiddle : 'ئوتتۇرا', + alignBottom : 'ئاستى', + invalidHeight : 'ئېگىزلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر', + invalidWidth : 'كەڭلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر', + invalidCssLength : 'بۇ سۆز بۆلىكى چوقۇم مۇۋاپىق بولغان CSS ئۇزۇنلۇق قىممىتى بولۇشى زۆرۈر، بىرلىكى (px, %, in, cm, mm, em, ex, pt ياكى pc)', + invalidHtmlLength : 'بۇ سۆز بۆلىكى چوقۇم بىرىكمە HTML ئۇزۇنلۇق قىممىتى بولۇشى كېرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px ياكى %)', + invalidInlineStyle : 'ئىچكى باغلانما ئۇسلۇبى چوقۇم چېكىتلىك پەش بىلەن ئايرىلغان بىر ياكى كۆپ «خاسلىق ئاتى:خاسلىق قىممىتى» پىچىمىدا بولۇشى لازىم', + cssLengthTooltip : 'بۇ سۆز بۆلىكى بىرىكمە CSS ئۇزۇنلۇق قىممىتى بولۇشى كېرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px, %, in, cm, mm, em, ex, pt ياكى pc)', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class=\\\\"cke_accessibility\\\\">، ئىشلەتكىلى بولمايدۇ</span>' + }, + + contextmenu : + { + options : 'قىسقا يول تىزىملىك تاللانمىسى' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'ئالاھىدە ھەرپ قىستۇر', + title : 'ئالاھىدە ھەرپ تاللاڭ', + options : 'ئالاھىدە ھەرپ تاللانمىسى' + }, + + // Link dialog. + link : + { + toolbar : 'ئۇلانما قىستۇر/تەھرىرلە', + other : '‹باشقا›', + menu : 'ئۇلانما تەھرىر', + title : 'ئۇلانما', + info : 'ئۇلانما ئۇچۇرى', + target : 'نىشان', + upload : 'يۈكلە', + advanced : 'ئالىي', + type : 'ئۇلانما تىپى', + toUrl : 'ئادرېس', + toAnchor : 'بەت ئىچىدىكى لەڭگەرلىك نۇقتا ئۇلانمىسى', + toEmail : 'ئېلخەت', + targetFrame : '‹كاندۇك›', + targetPopup : '‹قاڭقىش كۆزنەك›', + targetFrameName : 'نىشان كاندۇك ئاتى', + targetPopupName : 'قاڭقىش كۆزنەك ئاتى', + popupFeatures : 'قاڭقىش كۆزنەك خاسلىقى', + popupResizable : 'چوڭلۇقى ئۆزگەرتىشچان', + popupStatusBar : 'ھالەت بالداق', + popupLocationBar: 'ئادرېس بالداق', + popupToolbar : 'قورال بالداق', + popupMenuBar : 'تىزىملىك بالداق', + popupFullScreen : 'پۈتۈن ئېكران (IE)', + popupScrollBars : 'دومىلىما سۈرگۈچ', + popupDependent : 'تەۋە (NS)', + popupLeft : 'سول', + popupTop : 'ئوڭ', + id : 'ID', + langDir : 'تىل يۆنىلىشى', + langDirLTR : 'سولدىن ئوڭغا (LTR)', + langDirRTL : 'ئوڭدىن سولغا (RTL)', + acccessKey : 'زىيارەت كۇنۇپكا', + name : 'ئات', + langCode : 'تىل كودى', + tabIndex : 'Tab تەرتىپى', + advisoryTitle : 'ماۋزۇ', + advisoryContentType : 'مەزمۇن تىپى', + cssClasses : 'ئۇسلۇب خىلى ئاتى', + charset : 'ھەرپ كودلىنىشى', + styles : 'قۇر ئىچىدىكى ئۇسلۇبى', + rel : 'باغلىنىش', + selectAnchor : 'بىر لەڭگەرلىك نۇقتا تاللاڭ', + anchorName : 'لەڭگەرلىك نۇقتا ئاتى بويىچە', + anchorId : 'لەڭگەرلىك نۇقتا ID سى بويىچە', + emailAddress : 'ئادرېس', + emailSubject : 'ماۋزۇ', + emailBody : 'مەزمۇن', + noAnchors : '(بۇ پۈتۈكتە ئىشلەتكىلى بولىدىغان لەڭگەرلىك نۇقتا يوق)', + noUrl : 'ئۇلانما ئادرېسىنى كىرگۈزۈڭ', + noEmail : 'ئېلخەت ئادرېسىنى كىرگۈزۈڭ' + }, + + // Anchor dialog + anchor : + { + toolbar : 'لەڭگەرلىك نۇقتا ئۇلانمىسى قىستۇر/تەھرىرلە', + menu : 'لەڭگەرلىك نۇقتا ئۇلانما خاسلىقى', + title : 'لەڭگەرلىك نۇقتا ئۇلانما خاسلىقى', + name : 'لەڭگەرلىك نۇقتا ئاتى', + errorName : 'لەڭگەرلىك نۇقتا ئاتىنى كىرگۈزۈڭ', + remove : 'لەڭگەرلىك نۇقتا ئۆچۈر' + }, + + // List style dialog + list: + { + numberedTitle : 'تەرتىپ نومۇر تىزىم خاسلىقى', + bulletedTitle : 'تۈر بەلگە تىزىم خاسلىقى', + type : 'بەلگە تىپى', + start : 'باشلىنىش نومۇرى', + validateStartNumber :'تىزىم باشلىنىش تەرتىپ نومۇرى چوقۇم پۈتۈن سان پىچىمىدا بولۇشى لازىم', + circle : 'بوش چەمبەر', + disc : 'تولدۇرۇلغان چەمبەر', + square : 'تولدۇرۇلغان تۆت چاسا', + none : 'بەلگە يوق', + notset : '‹تەڭشەلمىگەن›', + armenian : 'قەدىمكى ئەرمىنىيە تەرتىپ نومۇرى شەكلى', + georgian : 'قەدىمكى جورجىيە تەرتىپ نومۇرى شەكلى (an, ban, gan قاتارلىق)', + lowerRoman : 'كىچىك ھەرپلىك رىم رەقىمى (i, ii, iii, iv, v قاتارلىق)', + upperRoman : 'چوڭ ھەرپلىك رىم رەقىمى (I, II, III, IV, V قاتارلىق)', + lowerAlpha : 'ئىنگلىزچە كىچىك ھەرپ (a, b, c, d, e قاتارلىق)', + upperAlpha : 'ئىنگلىزچە چوڭ ھەرپ (A, B, C, D, E قاتارلىق)', + lowerGreek : 'گرېكچە كىچىك ھەرپ (alpha, beta, gamma قاتارلىق)', + decimal : 'سان (1, 2, 3 قاتارلىق)', + decimalLeadingZero : 'نۆلدىن باشلانغان سان بەلگە (01, 02, 03 قاتارلىق)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'ئىزدەپ ئالماشتۇر', + find : 'ئىزدە', + replace : 'ئالماشتۇر', + findWhat : 'ئىزدە:', + replaceWith : 'ئالماشتۇر:', + notFoundMsg : 'بەلگىلەنگەن تېكىستنى تاپالمىدى', + findOptions : 'ئىزدەش تاللانمىسى', + matchCase : 'چوڭ كىچىك ھەرپنى پەرقلەندۈر', + matchWord : 'پۈتۈن سۆز ماسلىشىش', + matchCyclic : 'ئايلانما ماسلىشىش', + replaceAll : 'ھەممىنى ئالماشتۇر', + replaceSuccessMsg : 'جەمئى %1 جايدىكى ئالماشتۇرۇش تاماملاندى' + }, + + // Table Dialog + table : + { + toolbar : 'جەدۋەل', + title : 'جەدۋەل خاسلىقى', + menu : 'جەدۋەل خاسلىقى', + deleteTable : 'جەدۋەل ئۆچۈر', + rows : 'قۇر سانى', + columns : 'ئىستون سانى', + border : 'گىرۋەك', + widthPx : 'پىكسېل', + widthPc : 'پىرسەنت', + widthUnit : 'كەڭلىك بىرلىكى', + cellSpace : 'ئارىلىق', + cellPad : 'يان ئارىلىق', + caption : 'ماۋزۇ', + summary : 'ئۈزۈندە', + headers : 'ماۋزۇ كاتەكچە', + headersNone : 'يوق', + headersColumn : 'بىرىنچى ئىستون', + headersRow : 'بىرىنچى قۇر', + headersBoth : 'بىرىنچى ئىستون ۋە بىرىنچى قۇر', + invalidRows : 'بەلگىلەنگەن ئىستون سانى چوقۇم نۆلدىن چوڭ بولىدۇ', + invalidCols : 'بەلگىلەنگەن قۇر سانى چوقۇم نۆلدىن چوڭ بولىدۇ', + invalidBorder : 'گىرۋەك توملۇقى چوقۇم سان بولىدۇ', + invalidWidth : 'جەدۋەل كەڭلىكى چوقۇم سان بولىدۇ', + invalidHeight : 'جەدۋەل ئېگىزلىكى چوقۇم سان بولىدۇ', + invalidCellSpacing : 'كاتەكچە ئارىلىقى چوقۇم سان بولىدۇ', + invalidCellPadding : 'كاتەكچىگە چوقۇم سان تولدۇرۇلىدۇ', + + cell : + { + menu : 'كاتەكچە', + insertBefore : 'سولغا كاتەكچە قىستۇر', + insertAfter : 'ئوڭغا كاتەكچە قىستۇر', + deleteCell : 'كەتەكچە ئۆچۈر', + merge : 'كاتەكچە بىرلەشتۈر', + mergeRight : 'كاتەكچىنى ئوڭغا بىرلەشتۈر', + mergeDown : 'كاتەكچىنى ئاستىغا بىرلەشتۈر', + splitHorizontal : 'كاتەكچىنى توغرىسىغا بىرلەشتۈر', + splitVertical : 'كاتەكچىنى بويىغا بىرلەشتۈر', + title : 'كاتەكچە خاسلىقى', + cellType : 'كاتەكچە تىپى', + rowSpan : 'بويىغا چات ئارىسى قۇر سانى', + colSpan : 'توغرىسىغا چات ئارىسى ئىستون سانى', + wordWrap : 'ئۆزلۈكىدىن قۇر قاتلا', + hAlign : 'توغرىسىغا توغرىلا', + vAlign : 'بويىغا توغرىلا', + alignBaseline : 'ئاساسىي سىزىق', + bgColor : 'تەگلىك رەڭگى', + borderColor : 'گىرۋەك رەڭگى', + data : 'سانلىق مەلۇمات', + header : 'جەدۋەل باشى', + yes : 'ھەئە', + no : 'ياق', + invalidWidth : 'كاتەكچە كەڭلىكى چوقۇم سان بولىدۇ', + invalidHeight : 'كاتەكچە ئېگىزلىكى چوقۇم سان بولىدۇ', + invalidRowSpan : 'قۇر چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ ', + invalidColSpan : 'ئىستون چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ', + chooseColor : 'تاللاڭ' + }, + + row : + { + menu : 'قۇر', + insertBefore : 'ئۈستىگە قۇر قىستۇر', + insertAfter : 'ئاستىغا قۇر قىستۇر', + deleteRow : 'قۇر ئۆچۈر' + }, + + column : + { + menu : 'ئىستون', + insertBefore : 'سولغا ئىستون قىستۇر', + insertAfter : 'ئوڭغا ئىستون قىستۇر', + deleteColumn : 'ئىستون ئۆچۈر' + } + }, + + // Button Dialog. + button : + { + title : 'توپچا خاسلىقى', + text : 'بەلگە (قىممەت)', + type : 'تىپى', + typeBtn : 'توپچا', + typeSbm : 'تاپشۇر', + typeRst : 'ئەسلىگە قايتۇر' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'كۆپ تاللاش خاسلىقى', + radioTitle : 'تاق تاللاش توپچا خاسلىقى', + value : 'تاللىغان قىممەت', + selected : 'تاللانغان' + }, + + // Form Dialog. + form : + { + title : 'جەدۋەل خاسلىقى', + menu : 'جەدۋەل خاسلىقى', + action : 'مەشغۇلات', + method : 'ئۇسۇل', + encoding : 'جەدۋەل كودلىنىشى' + }, + + // Select Field Dialog. + select : + { + title : 'جەدۋەل/تىزىم خاسلىقى', + selectInfo : 'ئۇچۇر تاللاڭ', + opAvail : 'تاللاش تۈرلىرى', + value : 'قىممەت', + size : 'ئېگىزلىكى', + lines : 'قۇر', + chkMulti : 'كۆپ تاللاشچان', + opText : 'تاللانما تېكىستى', + opValue : 'تاللانما قىممىتى', + btnAdd : 'قوش', + btnModify : 'ئۆزگەرت', + btnUp : 'ئۈستىگە', + btnDown : 'ئاستىغا', + btnSetValue : 'دەسلەپكى تاللانما قىممىتىگە تەڭشە', + btnDelete : 'ئۆچۈر' + }, + + // Textarea Dialog. + textarea : + { + title : ' كۆپ قۇرلۇق تېكىست خاسلىقى', + cols : 'ھەرپ كەڭلىكى', + rows : 'قۇر سانى' + }, + + // Text Field Dialog. + textfield : + { + title : 'تاق قۇرلۇق تېكىست خاسلىقى', + name : 'ئات', + value : 'دەسلەپكى قىممىتى', + charWidth : 'ھەرپ كەڭلىكى', + maxChars : 'ئەڭ كۆپ ھەرپ سانى', + type : 'تىپى', + typeText : 'تېكىست', + typePass : 'ئىم' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'يوشۇرۇن دائىرە خاسلىقى', + name : 'ئات', + value : 'دەسلەپكى قىممىتى' + }, + + // Image Dialog. + image : + { + title : 'سۈرەت خاسلىقى', + titleButton : 'سۈرەت دائىرە خاسلىقى', + menu : 'سۈرەت خاسلىقى', + infoTab : 'سۈرەت', + btnUpload : 'مۇلازىمېتىرغا يۈكلە', + upload : 'يۈكلە', + alt : 'تېكىست ئالماشتۇر', + lockRatio : 'نىسبەتنى قۇلۇپلا', + resetSize : 'ئەسلى چوڭلۇق', + border : 'گىرۋەك چوڭلۇقى', + hSpace : 'توغرىسىغا ئارىلىقى', + vSpace : 'بويىغا ئارىلىقى', + alertUrl : 'سۈرەت ئادرېسىنى كىرگۈزۈڭ', + linkTab : 'ئۇلانما', + button2Img : 'نۆۋەتتىكى توپچىنى سۈرەتكە ئۆزگەرتەمسىز؟', + img2Button : 'نۆۋەتتىكى سۈرەتنى توپچىغا ئۆزگەرتەمسىز؟', + urlMissing : 'سۈرەتنىڭ ئەسلى ھۆججەت ئادرېسى كەم', + validateBorder : 'گىرۋەك چوڭلۇقى چوقۇم سان بولىدۇ', + validateHSpace : 'توغرىسىغا ئارىلىق چوقۇم پۈتۈن سان بولىدۇ', + validateVSpace : 'بويىغا ئارىلىق چوقۇم پۈتۈن سان بولىدۇ' + }, + + // Flash Dialog + flash : + { + properties : 'Flash خاسلىق', + propertiesTab : 'خاسلىق', + title : 'ماۋزۇ', + chkPlay : 'ئۆزلۈكىدىن چال', + chkLoop : 'دەۋرىي', + chkMenu : 'Flash تىزىملىكنى قوزغات', + chkFull : 'پۈتۈن ئېكراننى قوزغات', + scale : 'نىسبىتى', + scaleAll : 'ھەممىنى كۆرسەت', + scaleNoBorder : 'گىرۋەك يوق', + scaleFit : 'قەتئىي ماسلىشىش', + access : 'قوليازما زىيارەتكە يول قوي', + accessAlways : 'ھەمىشە', + accessSameDomain: 'ئوخشاش دائىرىدە', + accessNever : 'ھەرگىز', + alignAbsBottom : 'مۇتلەق ئاستى', + alignAbsMiddle : 'مۇتلەق ئوتتۇرا', + alignBaseline : 'ئاساسىي سىزىق', + alignTextTop : 'تېكىست ئۈستىدە', + quality : 'سۈپەت', + qualityBest : 'ئەڭ ياخشى', + qualityHigh : 'يۇقىرى', + qualityAutoHigh : 'يۇقىرى (ئاپتوماتىك)', + qualityMedium : 'ئوتتۇرا (ئاپتوماتىك)', + qualityAutoLow : 'تۆۋەن (ئاپتوماتىك)', + qualityLow : 'تۆۋەن', + windowModeWindow: 'كۆزنەك گەۋدىسى', + windowModeOpaque: 'خىرە', + windowModeTransparent : 'سۈزۈك', + windowMode : 'كۆزنەك ھالىتى', + flashvars : 'Flash ئۆزگەرگۈچى', + bgcolor : 'تەگلىك رەڭگى', + hSpace : 'توغرىسىغا ئارىلىق', + vSpace : 'بويىغا ئارىلىق', + validateSrc : 'ئەسلى ھۆججەت ئادرېسىنى كىرگۈزۈڭ', + validateHSpace : 'توغرىسىغا ئارىلىق چوقۇم سان بولىدۇ', + validateVSpace : 'بويىغا ئارىلىق چوقۇم سان بولىدۇ' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'ئىملا تەكشۈر', + title : 'ئىملا تەكشۈر', + notAvailable : 'كەچۈرۈڭ، مۇلازىمېتىرنى ۋاقتىنچە ئىشلەتكىلى بولمايدۇ', + errorLoading : 'لازىملىق مۇلازىمېتىرنى يۈكلىگەندە خاتالىق كۆرۈلدى: %s.', + notInDic : 'لۇغەتتە يوق', + changeTo : 'ئۆزگەرت', + btnIgnore : 'پەرۋا قىلما', + btnIgnoreAll : 'ھەممىگە پەرۋا قىلما', + btnReplace : 'ئالماشتۇر', + btnReplaceAll : 'ھەممىنى ئالماشتۇر', + btnUndo : 'يېنىۋال', + noSuggestions : '-تەكلىپ يوق-', + progress : 'ئىملا تەكشۈرۈۋاتىدۇ…', + noMispell : 'ئىملا تەكشۈرۈش تامام: ئىملا خاتالىقى بايقالمىدى', + noChanges : 'ئىملا تەكشۈرۈش تامام: ھېچقانداق سۆزنى ئۆزگەرتمىدى', + oneChange : 'ئىملا تەكشۈرۈش تامام: بىر سۆزنى ئۆزگەرتتى', + manyChanges : 'ئىملا تەكشۈرۈش تامام: %1 سۆزنى ئۆزگەرتتى', + ieSpellDownload : 'ئىملا تەكشۈرۈش قىستۇرمىسى تېخى ئورنىتىلمىغان، ھازىرلا چۈشۈرەمسىز؟' + }, + + smiley : + { + toolbar : 'چىراي ئىپادە', + title : 'چىراي ئىپادە سىنبەلگە قىستۇر', + options : 'چىراي ئىپادە سىنبەلگە تاللانمىسى' + }, + + elementsPath : + { + eleLabel : 'ئېلېمېنت يولى', + eleTitle : '%1 ئېلېمېنت' + }, + + numberedlist : 'تەرتىپ نومۇر تىزىمى', + bulletedlist : 'تۈر بەلگە تىزىمى', + indent : 'تارايت', + outdent : 'كەڭەيت', + + justify : + { + left : 'سولغا توغرىلا', + center : 'ئوتتۇرىغا توغرىلا', + right : 'ئوڭغا توغرىلا', + block : 'ئىككى تەرەپتىن توغرىلا' + }, + + blockquote : 'بۆلەك نەقىل', + + clipboard : + { + title : 'چاپلا', + cutError : 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كەس مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+X) ئارقىلىق تاماملاڭ', + copyError : 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كۆچۈر مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+C) ئارقىلىق تاماملاڭ', + pasteMsg : 'ھەرپتاختا تېز كۇنۇپكا (<STRONG>Ctrl/Cmd+V</STRONG>) نى ئىشلىتىپ مەزمۇننى تۆۋەندىكى رامكىغا كۆچۈرۈڭ، ئاندىن <STRONG>جەزملە</STRONG>نى بېسىڭ', + securityMsg : 'توركۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى سەۋەبىدىن بۇ تەھرىرلىگۈچ چاپلاش تاختىسىدىكى مەزمۇننى بىۋاستە زىيارەت قىلالمايدۇ، بۇ كۆزنەكتە قايتا بىر قېتىم چاپلىشىڭىز كېرەك.', + pasteArea : 'چاپلاش دائىرىسى' + }, + + pastefromword : + { + confirmCleanup : 'سىز چاپلىماقچى بولغان مەزمۇن MS Word تىن كەلگەندەك قىلىدۇ، MS Word پىچىمىنى تازىلىۋەتكەندىن كېيىن ئاندىن چاپلامدۇ؟', + toolbar : 'MS Word تىن چاپلا', + title : 'MS Word تىن چاپلا', + error : 'ئىچكى خاتالىق سەۋەبىدىن چاپلايدىغان سانلىق مەلۇماتنى تازىلىيالمايدۇ' + }, + + pasteText : + { + button : 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا', + title : 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا' + }, + + templates : + { + button : 'قېلىپ', + title : 'مەزمۇن قېلىپى', + options : 'قېلىپ تاللانمىسى', + insertOption : 'نۆۋەتتىكى مەزمۇننى ئالماشتۇر', + selectPromptMsg : 'تەھرىرلىگۈچنىڭ مەزمۇن قېلىپىنى تاللاڭ:', + emptyListMsg : '(قېلىپ يوق)' + }, + + showBlocks : 'بۆلەكنى كۆرسەت', + + stylesCombo : + { + label : 'ئۇسلۇب', + panelTitle : 'ئۇسلۇب', + panelTitle1 : 'بۆلەك دەرىجىسىدىكى ئېلېمېنت ئۇسلۇبى', + panelTitle2 : 'ئىچكى باغلانما ئېلېمېنت ئۇسلۇبى', + panelTitle3 : 'نەڭ (Object) ئېلېمېنت ئۇسلۇبى' + }, + + format : + { + label : 'پىچىم', + panelTitle : 'پىچىم', + + tag_p : 'ئادەتتىكى', + tag_pre : 'تىزىلغان پىچىم', + tag_address : 'ئادرېس', + tag_h1 : 'ماۋزۇ 1', + tag_h2 : 'ماۋزۇ 2', + tag_h3 : 'ماۋزۇ 3', + tag_h4 : 'ماۋزۇ 4', + tag_h5 : 'ماۋزۇ 5', + tag_h6 : 'ماۋزۇ 6', + tag_div : 'ئابزاس (DIV)' + }, + + div : + { + title : 'DIV قاچا قۇر', + toolbar : 'DIV قاچا قۇر', + cssClassInputLabel : 'ئۇسلۇب تىپىنىڭ ئاتى', + styleSelectLabel : 'ئۇسلۇب', + IdInputLabel : 'ID', + languageCodeInputLabel : 'تىل كودى', + inlineStyleInputLabel : 'قۇر ئىچىدىكى ئۇسلۇبى', + advisoryTitleInputLabel : 'ماۋزۇ', + langDirLabel : 'تىل يۆنىلىشى', + langDirLTRLabel : 'سولدىن ئوڭغا (LTR)', + langDirRTLLabel : 'ئوڭدىن سولغا (RTL)', + edit : 'DIV تەھرىر', + remove : 'DIV چىقىرىۋەت' + }, + + iframe : + { + title : 'IFrame خاسلىق', + toolbar : 'IFrame ', + noUrl : 'كاندۇكنىڭ ئادرېسى(Url)نى كىرگۈزۈڭ', + scrolling : 'دومىلىما سۈرگۈچكە يول قوي', + border : 'كاندۇك گىرۋەكلىرىنى كۆرسەت' + }, + + font : + { + label : 'خەت نۇسخا', + voiceLabel : 'خەت نۇسخا', + panelTitle : 'خەت نۇسخا' + }, + + fontSize : + { + label : 'چوڭلۇقى', + voiceLabel : 'خەت چوڭلۇقى', + panelTitle : 'چوڭلۇقى' + }, + + colorButton : + { + textColorTitle : 'تېكىست رەڭگى', + bgColorTitle : 'تەگلىك رەڭگى', + panelTitle : 'رەڭ', + auto : 'ئۆزلۈكىدىن', + more : 'باشقا رەڭ' + }, + + colors : + { + '000' : 'قارا', + '800000' : 'قىزغۇچ سېرىق', + '8B4513' : 'توق قوڭۇر', + '2F4F4F' : 'قارامتۇل يېشىل', + '008080' : 'كۆكۈش يېشىل', + '000080' : 'قارامتۇل كۆك', + '4B0082' : 'كۆكۈش كۈلرەڭ', + '696969' : 'قارامتۇل كۈلرەڭ', + 'B22222' : 'خىش قىزىل', + 'A52A2A' : 'قوڭۇر', + 'DAA520' : 'ئالتۇن سېرىق', + '006400' : 'توق يېشىل', + '40E0D0' : 'كۆكۈچ يېشىل', + '0000CD' : 'ئوتتۇراھال كۆك', + '800080' : 'بىنەپشە', + '808080' : 'كۈلرەڭ', + 'F00' : 'قىزىل', + 'FF8C00' : 'توق قىزغۇچ سېرىق', + 'FFD700' : 'ئالتۇن', + '008000' : 'يېشىل', + '0FF' : 'يېشىل كۆك', + '00F' : 'كۆك', + 'EE82EE' : 'قىزغۇچ بىنەپشە', + 'A9A9A9' : 'توق كۈلرەڭ', + 'FFA07A' : 'كاۋا چېچىكى سېرىق', + 'FFA500' : 'قىزغۇچ سېرىق', + 'FFFF00' : 'سېرىق', + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'سۇس ھاۋا رەڭ', + 'ADD8E6' : 'ئوچۇق كۆك', + 'DDA0DD' : 'قىزغۇچ بىنەپشە', + 'D3D3D3' : 'سۇس كۆكۈچ كۈلرەڭ', + 'FFF0F5' : 'سۇس قىزغۇچ بىنەپشە', + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'سۇس سېرىق', + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'ئاسمان كۆكى', + 'F0F8FF' : 'سۇس كۆك', + 'E6E6FA' : 'سۇس بىنەپشە', + 'FFF' : 'ئاق' + }, + + scayt : + { + title : 'شۇئان ئىملا تەكشۈر', + opera_title : 'Opera توركۆرگۈنى قوللىمايدۇ', + enable : 'شۇئان ئىملا تەكشۈرۈشنى قوزغات', + disable : 'شۇئان ئىملا تەكشۈرۈشنى چەكلە', + about : 'شۇئان ئىملا تەكشۈرۈش ھەققىدە', + toggle : 'شۇئان ئىملا تەكشۈرۈشنى ۋاقىتلىق توختات/قوزغات', + options : 'تاللانما', + langs : 'تىل', + moreSuggestions : 'تېخىمۇ كۆپ ئىملا تەۋسىيەسى', + ignore : 'پەرۋا قىلما', + ignoreAll : 'ھەممىسىگە پەرۋا قىلما', + addWord : 'سۆز قوش', + emptyDic : 'لۇغەت ئاتى بوش قالمايدۇ', + + optionsTab : 'تاللانما', + allCaps : 'چوڭ ھەرپتە يېزىلغان ھەممە سۆزگە پەرۋا قىلما', + ignoreDomainNames : 'دائىرە ئاتىغا پەرۋا قىلما', + mixedCase : 'چوڭ كىچىك ھەرپ بىلەن ئارىلاش يېزىلغان سۆزگە پەرۋا قىلما', + mixedWithDigits : 'سان بار سۆزگە پەرۋا قىلما', + + languagesTab : 'تىل', + + dictionariesTab : 'لۇغەت', + dic_field_name : 'لۇغەت ئاتى', + dic_create : 'قۇر', + dic_restore : 'ئەسلىگە كەلتۈر', + dic_delete : 'ئۆچۈر', + dic_rename : 'ئات ئۆزگەرت', + dic_info : 'باشلىنىشتا ئىشلەتكۈچى لۇغىتى Cookie غا ساقلىنىدۇ ئەمما Cookie نىڭ سىغىمى چەكلىك بولغاچقا، ئىشلەتكۈچى لۇغىتى كۆپىيىپ Cookie چەكلىمىسىدىن ئېشىپ كەتكەندە ساقلىغىلى بولمايدۇ، بۇ چاغدا لۇغىتىڭىزنى مۇلازىمېتىرىمىزغا ساقلىسىڭىز بولىدۇ. شەخسىي لۇغىتىڭىزنى مۇلازىمېتىرىمىزغا ساقلىماقچى بولسىڭىز لۇغىتىڭىزگە ئاتتىن بىرنى قويۇڭ، ئەگەر مۇلازىمتېرىمىزدا سىزنىڭ لۇغىتىڭىزدىن بىرسى بولسا لۇغەت ئاتىنى كىرگۈزۈپ ئەسلىگە قايتۇر توپچىسىنى بېسىڭ.', + + aboutTab : 'ھەققىدە' + }, + + about : + { + title : 'CKEditor ھەققىدە', + dlgTitle : 'CKEditor ھەققىدە', + help : '$1 نى زىيارەت قىلىپ ياردەمگە ئېرىشىڭ', + userGuide : 'CKEditor ئىشلەتكۈچى قوللانمىسى', + moreInfo : 'تور تۇرايىمىزنى زىيارەت قىلىپ كېلىشىمگە ئائىت تېخىمۇ كۆپ ئۇچۇرغا ئېرىشىڭ', + copy : 'Copyright © $1. نەشر ھوقۇقىغا ئىگە' + }, + + maximize : 'چوڭايت', + minimize : 'كىچىكلەت', + + fakeobjects : + { + anchor : 'لەڭگەرلىك نۇقتا', + flash : 'Flash جانلاندۇرۇم', + iframe : 'IFrame', + hiddenfield : 'يوشۇرۇن دائىرە', + unknown : 'يوچۇن نەڭ' + }, + + resize : 'چوڭلۇقىنى ئۆزگەرت', + + colordialog : + { + title : 'رەڭ تاللاڭ', + options : 'رەڭ تاللانمىسى', + highlight : 'يورۇت', + selected : 'رەڭ تاللاڭ', + clear : 'تازىلا' + }, + + toolbarCollapse : 'قورال بالداقنى قاتلا', + toolbarExpand : 'قورال بالداقنى ياي', + + toolbarGroups : + { + document : 'پۈتۈك', + clipboard : 'چاپلاش تاختىسى/يېنىۋال', + editing : 'تەھرىر', + forms : 'جەدۋەل', + basicstyles : 'ئاساسىي ئۇسلۇب', + paragraph : 'ئابزاس', + links : 'ئۇلانما', + insert : 'قىستۇر', + styles : 'ئۇسلۇب', + colors : 'رەڭ', + tools : 'قورال' + }, + + bidi : + { + ltr : 'تېكىست يۆنىلىشى سولدىن ئوڭغا', + rtl : 'تېكىست يۆنىلىشى ئوڭدىن سولغا' + }, + + docprops : + { + label : 'بەت خاسلىقى', + title : 'بەت خاسلىقى', + design : 'لايىھە', + meta : 'مېتا سانلىق مەلۇمات', + chooseColor : 'تاللاڭ', + other : 'باشقا', + docTitle : 'بەت ماۋزۇسى', + charset : 'ھەرپ كودلىنىشى', + charsetOther : 'باشقا ھەرپ كودلىنىشى', + charsetASCII : 'ASCII', + charsetCE : 'ئوتتۇرا ياۋرۇپا', + charsetCT : 'مۇرەككەپ خەنزۇچە (Big5)', + charsetCR : 'سىلاۋيانچە', + charsetGR : 'گىرېكچە', + charsetJP : 'ياپونچە', + charsetKR : 'كۆرىيەچە', + charsetTR : 'تۈركچە', + charsetUN : 'يۇنىكود (UTF-8)', + charsetWE : 'غەربىي ياۋرۇپا', + docType : 'پۈتۈك تىپى', + docTypeOther : 'باشقا پۈتۈك تىپى', + xhtmlDec : 'XHTML ئېنىقلىمىسىنى ئۆز ئىچىگە ئالىدۇ', + bgColor : 'تەگلىك رەڭگى', + bgImage : 'تەگلىك سۈرەت', + bgFixed : 'تەگلىك سۈرەتنى دومىلاتما', + txtColor : 'تېكىست رەڭگى', + margin : 'بەت گىرۋەك', + marginTop : 'ئۈستى', + marginLeft : 'سول', + marginRight : 'ئوڭ', + marginBottom : 'ئاستى', + metaKeywords : 'بەت يۈزى ئىندېكىس ھالقىلىق سۆزى (ئىنگلىزچە پەش [,] بىلەن ئايرىلىدۇ)', + metaDescription : 'بەت يۈزى چۈشەندۈرۈشى', + metaAuthor : 'يازغۇچى', + metaCopyright : 'نەشر ھوقۇقى', + previewHtml : '<p>بۇ بىر قىسىم <strong>كۆرسەتمىگە ئىشلىتىدىغان تېكىست </strong>سىز نۆۋەتتە <a href=\\\\"javascript:void(0)\\\\">CKEditor</a>.نى ئىشلىتىۋاتىسىز.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/uk.js b/htdocs/includes/ckeditor/_source/lang/uk.js new file mode 100644 index 0000000000000000000000000000000000000000..6684523d7918b9b78c1f1b18fcba4e0ea5ec8888 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/uk.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Ukrainian language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['uk'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : 'Панель інструментів редактора', + editor : 'Текстовий редактор', + + // Toolbar buttons without dialogs. + source : 'Джерело', + newPage : 'Нова сторінка', + save : 'Зберегти', + preview : 'Попередній перегляд', + cut : 'Вирізати', + copy : 'Копіювати', + paste : 'Вставити', + print : 'Друк', + underline : 'Підкреслений', + bold : 'Жирний', + italic : 'Курсив', + selectAll : 'Виділити все', + removeFormat : 'Очистити форматування', + strike : 'Закреслений', + subscript : 'Нижній індекс', + superscript : 'Верхній індекс', + horizontalrule : 'Горизонтальна лінія', + pagebreak : 'Вставити розрив сторінки', + pagebreakAlt : 'Розрив Сторінки', + unlink : 'Видалити посилання', + undo : 'Повернути', + redo : 'Повторити', + + // Common messages and labels. + common : + { + browseServer : 'Огляд', + url : 'URL', + protocol : 'Протокол', + upload : 'Надіслати', + uploadSubmit : 'Надіслати на сервер', + image : 'Зображення', + flash : 'Flash', + form : 'Форма', + checkbox : 'Галочка', + radio : 'Кнопка вибору', + textField : 'Текстове поле', + textarea : 'Текстова область', + hiddenField : 'Приховане поле', + button : 'Кнопка', + select : 'Список', + imageButton : 'Кнопка із зображенням', + notSet : '<не визначено>', + id : 'Ідентифікатор', + name : 'Ім\'я', + langDir : 'Напрямок мови', + langDirLtr : 'Зліва направо (LTR)', + langDirRtl : 'Справа наліво (RTL)', + langCode : 'Код мови', + longDescr : 'Довгий опис URL', + cssClass : 'Клас CSS', + advisoryTitle : 'Заголовок', + cssStyle : 'Стиль CSS', + ok : 'ОК', + cancel : 'Скасувати', + close : 'Закрити', + preview : 'Попередній перегляд', + generalTab : 'Основне', + advancedTab : 'Додаткове', + validateNumberFailed : 'Значення не є цілим числом.', + confirmNewPage : 'Всі незбережені зміни будуть втрачені. Ви впевнені, що хочете завантажити нову сторінку?', + confirmCancel : 'Деякі опції змінено. Закрити вікно без збереження змін?', + options : 'Опції', + target : 'Ціль', + targetNew : 'Нове вікно (_blank)', + targetTop : 'Поточне вікно (_top)', + targetSelf : 'Поточний фрейм/вікно (_self)', + targetParent : 'Батьківський фрейм/вікно (_parent)', + langDirLTR : 'Зліва направо (LTR)', + langDirRTL : 'Справа наліво (RTL)', + styles : 'Стиль CSS', + cssClasses : 'Клас CSS', + width : 'Ширина', + height : 'Висота', + align : 'Вирівнювання', + alignLeft : 'По лівому краю', + alignRight : 'По правому краю', + alignCenter : 'По центру', + alignTop : 'По верхньому краю', + alignMiddle : 'По середині', + alignBottom : 'По нижньому краю', + invalidHeight : 'Висота повинна бути цілим числом.', + invalidWidth : 'Ширина повинна бути цілим числом.', + invalidCssLength : 'Значення, вказане для "%1" в полі повинно бути позитивним числом або без дійсного виміру CSS блоку (px, %, in, cm, mm, em, ex, pt, or pc).', + invalidHtmlLength : 'Значення, вказане для "%1" в полі повинно бути позитивним числом або без дійсного виміру HTML блоку (px or %).', + invalidInlineStyle : 'Значення, вказане для вбудованого стилю повинне складатися з одного чи кількох кортежів у форматі "ім\'я : значення", розділених крапкою з комою.', + cssLengthTooltip : 'Введіть номер значення в пікселях або число з дійсною одиниці CSS (px, %, in, cm, mm, em, ex, pt, or pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, не доступне</span>' + }, + + contextmenu : + { + options : 'Опції контекстного меню' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Спеціальний символ', + title : 'Оберіть спеціальний символ', + options : 'Опції' + }, + + // Link dialog. + link : + { + toolbar : 'Вставити/Редагувати посилання', + other : '<інший>', + menu : 'Вставити посилання', + title : 'Посилання', + info : 'Інформація посилання', + target : 'Ціль', + upload : 'Надіслати', + advanced : 'Додаткове', + type : 'Тип посилання', + toUrl : 'URL', + toAnchor : 'Якір на цю сторінку', + toEmail : 'Ел. пошта', + targetFrame : '<фрейм>', + targetPopup : '<випливаюче вікно>', + targetFrameName : 'Ім\'я цільового фрейму', + targetPopupName : 'Ім\'я випливаючого вікна', + popupFeatures : 'Властивості випливаючого вікна', + popupResizable : 'Масштабоване', + popupStatusBar : 'Рядок статусу', + popupLocationBar: 'Панель локації', + popupToolbar : 'Панель інструментів', + popupMenuBar : 'Панель меню', + popupFullScreen : 'Повний екран (IE)', + popupScrollBars : 'Стрічки прокрутки', + popupDependent : 'Залежний (Netscape)', + popupLeft : 'Позиція зліва', + popupTop : 'Позиція зверху', + id : 'Ідентифікатор', + langDir : 'Напрямок мови', + langDirLTR : 'Зліва направо (LTR)', + langDirRTL : 'Справа наліво (RTL)', + acccessKey : 'Гаряча клавіша', + name : 'Ім\'я', + langCode : 'Код мови', + tabIndex : 'Послідовність переходу', + advisoryTitle : 'Заголовок', + advisoryContentType : 'Тип вмісту', + cssClasses : 'Клас CSS', + charset : 'Кодування', + styles : 'Стиль CSS', + rel : 'Зв\'язок', + selectAnchor : 'Оберіть якір', + anchorName : 'За ім\'ям елементу', + anchorId : 'За ідентифікатором елементу', + emailAddress : 'Адреса ел. пошти', + emailSubject : 'Тема листа', + emailBody : 'Тіло повідомлення', + noAnchors : '(В цьому документі немає якорів)', + noUrl : 'Будь ласка, вкажіть URL посилання', + noEmail : 'Будь ласка, вкажіть адрес ел. пошти' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Вставити/Редагувати якір', + menu : 'Властивості якоря', + title : 'Властивості якоря', + name : 'Ім\'я якоря', + errorName : 'Будь ласка, вкажіть ім\'я якоря', + remove : 'Прибрати якір' + }, + + // List style dialog + list: + { + numberedTitle : 'Опції нумерованого списку', + bulletedTitle : 'Опції маркованого списку', + type : 'Тип', + start : 'Почати з...', + validateStartNumber :'Початковий номер списку повинен бути цілим числом.', + circle : 'Кільце', + disc : 'Кружечок', + square : 'Квадратик', + none : 'Нема', + notset : '<не вказано>', + armenian : 'Вірменська нумерація', + georgian : 'Грузинська нумерація (an, ban, gan і т.д.)', + lowerRoman : 'Малі римські (i, ii, iii, iv, v і т.д.)', + upperRoman : 'Великі римські (I, II, III, IV, V і т.д.)', + lowerAlpha : 'Малі лат. букви (a, b, c, d, e і т.д.)', + upperAlpha : 'Великі лат. букви (A, B, C, D, E і т.д.)', + lowerGreek : 'Малі гр. букви (альфа, бета, гамма і т.д.)', + decimal : 'Десяткові (1, 2, 3 і т.д.)', + decimalLeadingZero : 'Десяткові з нулем (01, 02, 03 і т.д.)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Знайти і замінити', + find : 'Пошук', + replace : 'Заміна', + findWhat : 'Шукати:', + replaceWith : 'Замінити на:', + notFoundMsg : 'Вказаний текст не знайдено.', + findOptions : 'Параметри Пошуку', + matchCase : 'Враховувати регістр', + matchWord : 'Збіг цілих слів', + matchCyclic : 'Циклічна заміна', + replaceAll : 'Замінити все', + replaceSuccessMsg : '%1 співпадінь(ня) замінено.' + }, + + // Table Dialog + table : + { + toolbar : 'Таблиця', + title : 'Властивості таблиці', + menu : 'Властивості таблиці', + deleteTable : 'Видалити таблицю', + rows : 'Рядки', + columns : 'Стовбці', + border : 'Розмір рамки', + widthPx : 'пікселів', + widthPc : 'відсотків', + widthUnit : 'Одиниці вимір.', + cellSpace : 'Проміжок', + cellPad : 'Внутр. відступ', + caption : 'Заголовок таблиці', + summary : 'Детальний опис заголовку таблиці', + headers : 'Заголовки стовбців/рядків', + headersNone : 'Без заголовків', + headersColumn : 'Стовбці', + headersRow : 'Рядки', + headersBoth : 'Стовбці і рядки', + invalidRows : 'Кількість рядків повинна бути більшою 0.', + invalidCols : 'Кількість стовбців повинна бути більшою 0.', + invalidBorder : 'Розмір рамки повинен бути цілим числом.', + invalidWidth : 'Ширина таблиці повинна бути цілим числом.', + invalidHeight : 'Висота таблиці повинна бути цілим числом.', + invalidCellSpacing : 'Проміжок між комірками повинен бути цілим числом.', + invalidCellPadding : 'Внутр. відступ комірки повинен бути цілим числом.', + + cell : + { + menu : 'Комірки', + insertBefore : 'Вставити комірку перед', + insertAfter : 'Вставити комірку після', + deleteCell : 'Видалити комірки', + merge : 'Об\'єднати комірки', + mergeRight : 'Об\'єднати справа', + mergeDown : 'Об\'єднати донизу', + splitHorizontal : 'Розділити комірку по горизонталі', + splitVertical : 'Розділити комірку по вертикалі', + title : 'Властивості комірки', + cellType : 'Тип комірки', + rowSpan : 'Об\'єднання рядків', + colSpan : 'Об\'єднання стовпців', + wordWrap : 'Автоперенесення тексту', + hAlign : 'Гориз. вирівнювання', + vAlign : 'Верт. вирівнювання', + alignBaseline : 'По базовій лінії', + bgColor : 'Колір фону', + borderColor : 'Колір рамки', + data : 'Дані', + header : 'Заголовок', + yes : 'Так', + no : 'Ні', + invalidWidth : 'Ширина комірки повинна бути цілим числом.', + invalidHeight : 'Висота комірки повинна бути цілим числом.', + invalidRowSpan : 'Кількість об\'єднуваних рядків повинна бути цілим числом.', + invalidColSpan : 'Кількість об\'єднуваних стовбців повинна бути цілим числом.', + chooseColor : 'Обрати' + }, + + row : + { + menu : 'Рядки', + insertBefore : 'Вставити рядок перед', + insertAfter : 'Вставити рядок після', + deleteRow : 'Видалити рядки' + }, + + column : + { + menu : 'Стовбці', + insertBefore : 'Вставити стовбець перед', + insertAfter : 'Вставити стовбець після', + deleteColumn : 'Видалити стовбці' + } + }, + + // Button Dialog. + button : + { + title : 'Властивості кнопки', + text : 'Значення', + type : 'Тип', + typeBtn : 'Кнопка (button)', + typeSbm : 'Надіслати (submit)', + typeRst : 'Очистити (reset)' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Властивості галочки', + radioTitle : 'Властивості кнопки вибору', + value : 'Значення', + selected : 'Обрана' + }, + + // Form Dialog. + form : + { + title : 'Властивості форми', + menu : 'Властивості форми', + action : 'Дія', + method : 'Метод', + encoding : 'Кодування' + }, + + // Select Field Dialog. + select : + { + title : 'Властивості списку', + selectInfo : 'Інфо', + opAvail : 'Доступні варіанти', + value : 'Значення', + size : 'Кількість', + lines : 'видимих позицій у списку', + chkMulti : 'Список з мультивибором', + opText : 'Текст', + opValue : 'Значення', + btnAdd : 'Добавити', + btnModify : 'Змінити', + btnUp : 'Вгору', + btnDown : 'Вниз', + btnSetValue : 'Встановити як обране значення', + btnDelete : 'Видалити' + }, + + // Textarea Dialog. + textarea : + { + title : 'Властивості текстової області', + cols : 'Стовбці', + rows : 'Рядки' + }, + + // Text Field Dialog. + textfield : + { + title : 'Властивості текстового поля', + name : 'Ім\'я', + value : 'Значення', + charWidth : 'Ширина', + maxChars : 'Макс. к-ть символів', + type : 'Тип', + typeText : 'Текст', + typePass : 'Пароль' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Властивості прихованого поля', + name : 'Ім\'я', + value : 'Значення' + }, + + // Image Dialog. + image : + { + title : 'Властивості зображення', + titleButton : 'Властивості кнопки із зображенням', + menu : 'Властивості зображення', + infoTab : 'Інформація про зображення', + btnUpload : 'Надіслати на сервер', + upload : 'Надіслати', + alt : 'Альтернативний текст', + lockRatio : 'Зберегти пропорції', + resetSize : 'Очистити поля розмірів', + border : 'Рамка', + hSpace : 'Гориз. відступ', + vSpace : 'Верт. відступ', + alertUrl : 'Будь ласка, вкажіть URL зображення', + linkTab : 'Посилання', + button2Img : 'Бажаєте перетворити обрану кнопку-зображення на просте зображення?', + img2Button : 'Бажаєте перетворити обране зображення на кнопку-зображення?', + urlMissing : 'Вкажіть URL зображення.', + validateBorder : 'Ширина рамки повинна бути цілим числом.', + validateHSpace : 'Гориз. відступ повинен бути цілим числом.', + validateVSpace : 'Верт. відступ повинен бути цілим числом.' + }, + + // Flash Dialog + flash : + { + properties : 'Властивості Flash', + propertiesTab : 'Властивості', + title : 'Властивості Flash', + chkPlay : 'Автопрогравання', + chkLoop : 'Циклічно', + chkMenu : 'Дозволити меню Flash', + chkFull : 'Дозволити повноекранний перегляд', + scale : 'Масштаб', + scaleAll : 'Показати все', + scaleNoBorder : 'Без рамки', + scaleFit : 'Поч. розмір', + access : 'Доступ до скрипта', + accessAlways : 'Завжди', + accessSameDomain: 'З того ж домена', + accessNever : 'Ніколи', + alignAbsBottom : 'По нижньому краю (abs)', + alignAbsMiddle : 'По середині (abs)', + alignBaseline : 'По базовій лінії', + alignTextTop : 'Текст по верхньому краю', + quality : 'Якість', + qualityBest : 'Відмінна', + qualityHigh : 'Висока', + qualityAutoHigh : 'Автом. відмінна', + qualityMedium : 'Середня', + qualityAutoLow : 'Автом. низька', + qualityLow : 'Низька', + windowModeWindow: 'Вікно', + windowModeOpaque: 'Непрозорість', + windowModeTransparent : 'Прозорість', + windowMode : 'Віконний режим', + flashvars : 'Змінні Flash', + bgcolor : 'Колір фону', + hSpace : 'Гориз. відступ', + vSpace : 'Верт. відступ', + validateSrc : 'Будь ласка, вкажіть URL посилання', + validateHSpace : 'Гориз. відступ повинен бути цілим числом.', + validateVSpace : 'Верт. відступ повинен бути цілим числом.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Перевірити орфографію', + title : 'Перевірка орфографії', + notAvailable : 'Вибачте, але сервіс наразі недоступний.', + errorLoading : 'Помилка завантаження : %s.', + notInDic : 'Немає в словнику', + changeTo : 'Замінити на', + btnIgnore : 'Пропустити', + btnIgnoreAll : 'Пропустити все', + btnReplace : 'Замінити', + btnReplaceAll : 'Замінити все', + btnUndo : 'Назад', + noSuggestions : '- немає варіантів -', + progress : 'Виконується перевірка орфографії...', + noMispell : 'Перевірку орфографії завершено: помилок не знайдено', + noChanges : 'Перевірку орфографії завершено: жодне слово не змінено', + oneChange : 'Перевірку орфографії завершено: змінено одне слово', + manyChanges : 'Перевірку орфографії завершено: 1% слів(ова) змінено', + ieSpellDownload : 'Модуль перевірки орфографії не встановлено. Бажаєте завантажити його зараз?' + }, + + smiley : + { + toolbar : 'Смайлик', + title : 'Вставити смайлик', + options : 'Опції смайликів' + }, + + elementsPath : + { + eleLabel : 'Шлях', + eleTitle : '%1 елемент' + }, + + numberedlist : 'Нумерований список', + bulletedlist : 'Маркірований список', + indent : 'Збільшити відступ', + outdent : 'Зменшити відступ', + + justify : + { + left : 'По лівому краю', + center : 'По центру', + right : 'По правому краю', + block : 'По ширині' + }, + + blockquote : 'Цитата', + + clipboard : + { + title : 'Вставити', + cutError : 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції вирізування. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+X)', + copyError : 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції копіювання. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+C).', + pasteMsg : 'Будь ласка, вставте інформацію з буфера обміну в цю область, користуючись комбінацією клавіш (<STRONG>Ctrl/Cmd+V</STRONG>), та натисніть <STRONG>OK</STRONG>.', + securityMsg : 'Редактор не може отримати прямий доступ до буферу обміну у зв\'язку з налаштуваннями Вашого браузера. Вам потрібно вставити інформацію в це вікно.', + pasteArea : 'Область вставки' + }, + + pastefromword : + { + confirmCleanup : 'Текст, що Ви намагаєтесь вставити, схожий на скопійований з Word. Бажаєте очистити його форматування перед вставлянням?', + toolbar : 'Вставити з Word', + title : 'Вставити з Word', + error : 'Неможливо очистити форматування через внутрішню помилку.' + }, + + pasteText : + { + button : 'Вставити тільки текст', + title : 'Вставити тільки текст' + }, + + templates : + { + button : 'Шаблони', + title : 'Шаблони змісту', + options : 'Опції шаблону', + insertOption : 'Замінити поточний вміст', + selectPromptMsg : 'Оберіть, будь ласка, шаблон для відкриття в редакторі<br>(поточний зміст буде втрачено):', + emptyListMsg : '(Не знайдено жодного шаблону)' + }, + + showBlocks : 'Показувати блоки', + + stylesCombo : + { + label : 'Стиль', + panelTitle : 'Стилі форматування', + panelTitle1 : 'Блочні стилі', + panelTitle2 : 'Рядкові стилі', + panelTitle3 : 'Об\'єктні стилі' + }, + + format : + { + label : 'Форматування', + panelTitle : 'Форматування параграфа', + + tag_p : 'Нормальний', + tag_pre : 'Форматований', + tag_address : 'Адреса', + tag_h1 : 'Заголовок 1', + tag_h2 : 'Заголовок 2', + tag_h3 : 'Заголовок 3', + tag_h4 : 'Заголовок 4', + tag_h5 : 'Заголовок 5', + tag_h6 : 'Заголовок 6', + tag_div : 'Нормальний (div)' + }, + + div : + { + title : 'Створити блок-контейнер', + toolbar : 'Створити блок-контейнер', + cssClassInputLabel : 'Клас CSS', + styleSelectLabel : 'Стиль CSS', + IdInputLabel : 'Ідентифікатор', + languageCodeInputLabel : 'Код мови', + inlineStyleInputLabel : 'Вписаний стиль', + advisoryTitleInputLabel : 'Зміст випливаючої підказки', + langDirLabel : 'Напрямок мови', + langDirLTRLabel : 'Зліва направо (LTR)', + langDirRTLLabel : 'Справа наліво (RTL)', + edit : 'Редагувати блок', + remove : 'Видалити блок' + }, + + iframe : + { + title : 'Налаштування для IFrame', + toolbar : 'IFrame', + noUrl : 'Будь ласка введіть посилання для IFrame', + scrolling : 'Увімкнути прокрутку', + border : 'Показати рамки фрейму' + }, + + font : + { + label : 'Шрифт', + voiceLabel : 'Шрифт', + panelTitle : 'Шрифт' + }, + + fontSize : + { + label : 'Розмір', + voiceLabel : 'Розмір шрифту', + panelTitle : 'Розмір' + }, + + colorButton : + { + textColorTitle : 'Колір тексту', + bgColorTitle : 'Колір фону', + panelTitle : 'Кольори', + auto : 'Авто', + more : 'Кольори...' + }, + + colors : + { + '000' : 'Чорний', + '800000' : 'Бордовий', + '8B4513' : 'Коричневий', + '2F4F4F' : 'Темний сіро-зелений', + '008080' : 'Морської хвилі', + '000080' : 'Сливовий', + '4B0082' : 'Індиго', + '696969' : 'Темносірий', + 'B22222' : 'Темночервоний', + 'A52A2A' : 'Каштановий', + 'DAA520' : 'Бежевий', + '006400' : 'Темнозелений', + '40E0D0' : 'Бірюзовий', + '0000CD' : 'Темносиній', + '800080' : 'Пурпурний', + '808080' : 'Сірий', + 'F00' : 'Червоний', + 'FF8C00' : 'Темнооранжевий', + 'FFD700' : 'Жовтий', + '008000' : 'Зелений', + '0FF' : 'Синьо-зелений', + '00F' : 'Синій', + 'EE82EE' : 'Фіолетовий', + 'A9A9A9' : 'Світлосірий', + 'FFA07A' : 'Рожевий', + 'FFA500' : 'Оранжевий', + 'FFFF00' : 'Яскравожовтий', + '00FF00' : 'Салатовий', + 'AFEEEE' : 'Світлобірюзовий', + 'ADD8E6' : 'Блакитний', + 'DDA0DD' : 'Світлофіолетовий', + 'D3D3D3' : 'Сріблястий', + 'FFF0F5' : 'Світлорожевий', + 'FAEBD7' : 'Світлооранжевий', + 'FFFFE0' : 'Світложовтий', + 'F0FFF0' : 'Світлозелений', + 'F0FFFF' : 'Світлий синьо-зелений', + 'F0F8FF' : 'Світлоблакитний', + 'E6E6FA' : 'Лавандовий', + 'FFF' : 'Білий' + }, + + scayt : + { + title : 'Перефірка орфографії по мірі набору', + opera_title : 'Не підтримується в Opera', + enable : 'Ввімкнути SCAYT', + disable : 'Вимкнути SCAYT', + about : 'Про SCAYT', + toggle : 'Перемкнути SCAYT', + options : 'Опції', + langs : 'Мови', + moreSuggestions : 'Більше варіантів', + ignore : 'Пропустити', + ignoreAll : 'Пропустити всі', + addWord : 'Додати слово', + emptyDic : 'Назва словника повинна бути вказана.', + + optionsTab : 'Опції', + allCaps : 'Пропустити прописні слова', + ignoreDomainNames : 'Пропустити доменні назви', + mixedCase : 'Пропустити слова зі змішаним регістром', + mixedWithDigits : 'Пропустити слова, що містять цифри', + + languagesTab : 'Мови', + + dictionariesTab : 'Словники', + dic_field_name : 'Назва словника', + dic_create : 'Створити', + dic_restore : 'Відновити', + dic_delete : 'Видалити', + dic_rename : 'Перейменувати', + dic_info : 'Як правило, користувацькі словники зберігаються у cookie-файлах. Однак, cookie-файли мають обмеження на розмір. Якщо користувацький словник зростає в обсязі настільки, що вже не може бути збережений у cookie-файлі, тоді його можна зберегти на нашому сервері. Щоб зберегти Ваш персональний словник на нашому сервері необхідно вказати назву словника. Якщо Ви вже зберігали словник на сервері, будь ласка, вкажіть назву збереженого словника і натисніть кнопку Відновити.', + + aboutTab : 'Про SCAYT' + }, + + about : + { + title : 'Про CKEditor', + dlgTitle : 'Про CKEditor', + help : 'Перевірте $1 для допомоги.', + userGuide : 'Інструкція Користувача для CKEditor', + moreInfo : 'Щодо інформації з ліцензування завітайте на наш сайт:', + copy : 'Copyright © $1. Всі права застережено.' + }, + + maximize : 'Максимізувати', + minimize : 'Мінімізувати', + + fakeobjects : + { + anchor : 'Якір', + flash : 'Flash-анімація', + iframe : 'IFrame', + hiddenfield : 'Приховані Поля', + unknown : 'Невідомий об\'єкт' + }, + + resize : 'Потягніть для зміни розмірів', + + colordialog : + { + title : 'Обрати колір', + options : 'Опції кольорів', + highlight : 'Колір, на який вказує курсор', + selected : 'Обраний колір', + clear : 'Очистити' + }, + + toolbarCollapse : 'Згорнути панель інструментів', + toolbarExpand : 'Розгорнути панель інструментів', + + toolbarGroups : + { + document : 'Документ', + clipboard : 'Буфер обміну / Скасувати', + editing : 'Редагування', + forms : 'Форми', + basicstyles : 'Основний Стиль', + paragraph : 'Параграф', + links : 'Посилання', + insert : 'Вставити', + styles : 'Стилі', + colors : 'Кольори', + tools : 'Інструменти' + }, + + bidi : + { + ltr : 'Напрямок тексту зліва направо', + rtl : 'Напрямок тексту справа наліво' + }, + + docprops : + { + label : 'Властивості документа', + title : 'Властивості документа', + design : 'Дизайн', + meta : 'Мета дані', + chooseColor : 'Обрати', + other : '<інший>', + docTitle : 'Заголовок сторінки', + charset : 'Кодування набору символів', + charsetOther : 'Інше кодування набору символів', + charsetASCII : 'ASCII', + charsetCE : 'Центрально-європейська', + charsetCT : 'Китайська традиційна (Big5)', + charsetCR : 'Кирилиця', + charsetGR : 'Грецька', + charsetJP : 'Японська', + charsetKR : 'Корейська', + charsetTR : 'Турецька', + charsetUN : 'Юнікод (UTF-8)', + charsetWE : 'Західно-европейская', + docType : 'Заголовок типу документу', + docTypeOther : 'Інший заголовок типу документу', + xhtmlDec : 'Ввімкнути XHTML оголошення', + bgColor : 'Колір тла', + bgImage : 'URL зображення тла', + bgFixed : 'Тло без прокрутки', + txtColor : 'Колір тексту', + margin : 'Відступи сторінки', + marginTop : 'Верхній', + marginLeft : 'Лівий', + marginRight : 'Правий', + marginBottom : 'Нижній', + metaKeywords : 'Ключові слова документа (розділені комами)', + metaDescription : 'Опис документа', + metaAuthor : 'Автор', + metaCopyright : 'Авторські права', + previewHtml : '<p>Це приклад<strong>тексту</strong>. Ви використовуєте<a href="javascript:void(0)"> CKEditor </a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/vi.js b/htdocs/includes/ckeditor/_source/lang/vi.js new file mode 100644 index 0000000000000000000000000000000000000000..f712bef4cfdb331732c824a826f94232555be149 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/vi.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Vietnamese language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['vi'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'trái-qua-phải', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Trình soạn thảo phong phú, %1', + editorHelp : 'Nhấn ALT + 0 để được giúp đỡ', + + // ARIA descriptions. + toolbars : 'Thanh công cụ', + editor : 'Bộ soạn thảo', + + // Toolbar buttons without dialogs. + source : 'Mã HTML', + newPage : 'Trang mới', + save : 'Lưu', + preview : 'Xem trước', + cut : 'Cắt', + copy : 'Sao chép', + paste : 'Dán', + print : 'In', + underline : 'Gạch chân', + bold : 'Đậm', + italic : 'Nghiêng', + selectAll : 'Chọn tất cả', + removeFormat : 'Xoá định dạng', + strike : 'Gạch xuyên ngang', + subscript : 'Chỉ số dưới', + superscript : 'Chỉ số trên', + horizontalrule : 'Chèn đường phân cách ngang', + pagebreak : 'Chèn ngắt trang', + pagebreakAlt : 'Ngắt trang', + unlink : 'Xoá liên kết', + undo : 'Khôi phục thao tác', + redo : 'Làm lại thao tác', + + // Common messages and labels. + common : + { + browseServer : 'Duyệt trên máy chủ', + url : 'URL', + protocol : 'Giao thức', + upload : 'Tải lên', + uploadSubmit : 'Tải lên máy chủ', + image : 'Hình ảnh', + flash : 'Flash', + form : 'Biểu mẫu', + checkbox : 'Nút kiểm', + radio : 'Nút chọn', + textField : 'Trường văn bản', + textarea : 'Vùng văn bản', + hiddenField : 'Trường ẩn', + button : 'Nút', + select : 'Ô chọn', + imageButton : 'Nút hình ảnh', + notSet : '<không thiết lập>', + id : 'Định danh', + name : 'Tên', + langDir : 'Hướng ngôn ngữ', + langDirLtr : 'Trái sang phải (LTR)', + langDirRtl : 'Phải sang trái (RTL)', + langCode : 'Mã ngôn ngữ', + longDescr : 'Mô tả URL', + cssClass : 'Lớp Stylesheet', + advisoryTitle : 'Nhan đề hướng dẫn', + cssStyle : 'Kiểu (style)', + ok : 'Đồng ý', + cancel : 'Bỏ qua', + close : 'Đóng', + preview : 'Xem trước', + generalTab : 'Tab chung', + advancedTab : 'Tab mở rộng', + validateNumberFailed : 'Giá trị này không phải là số.', + confirmNewPage : 'Mọi thay đổi không được lưu lại, nội dung này sẽ bị mất. Bạn có chắc chắn muốn tải một trang mới?', + confirmCancel : 'Một vài tùy chọn đã bị thay đổi. Bạn có chắc chắn muốn đóng hộp thoại?', + options : 'Tùy chọn', + target : 'Đích đến', + targetNew : 'Cửa sổ mới (_blank)', + targetTop : 'Cửa sổ trên cùng (_top)', + targetSelf : 'Tại trang (_self)', + targetParent : 'Cửa sổ cha (_parent)', + langDirLTR : 'Trái sang phải (LTR)', + langDirRTL : 'Phải sang trái (RTL)', + styles : 'Kiểu', + cssClasses : 'Lớp CSS', + width : 'Chiều rộng', + height : 'chiều cao', + align : 'Vị trí', + alignLeft : 'Trái', + alignRight : 'Phải', + alignCenter : 'Giữa', + alignTop : 'Trên', + alignMiddle : 'Giữa', + alignBottom : 'Dưới', + invalidHeight : 'Chiều cao phải là số nguyên.', + invalidWidth : 'Chiều rộng phải là số nguyên.', + invalidCssLength : 'Giá trị quy định cho trường "%1" phải là một số dương có hoặc không có một đơn vị đo CSS hợp lệ (px, %, in, cm, mm, em, ex, pt, hoặc pc).', + invalidHtmlLength : 'Giá trị quy định cho trường "%1" phải là một số dương có hoặc không có một đơn vị đo HTML hợp lệ (px hoặc %).', + invalidInlineStyle : 'Giá trị quy định cho kiểu nội tuyến phải bao gồm một hoặc nhiều dữ liệu với định dạng "tên:giá trị", cách nhau bằng dấu chấm phẩy.', + cssLengthTooltip : 'Nhập một giá trị theo pixel hoặc một số với một đơn vị CSS hợp lệ (px, %, in, cm, mm, em, ex, pt, hoặc pc).', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, không có</span>' + }, + + contextmenu : + { + options : 'Tùy chọn menu bổ xung' + }, + + // Special char dialog. + specialChar : + { + toolbar : 'Chèn ký tự đặc biệt', + title : 'Hãy chọn ký tự đặc biệt', + options : 'Tùy chọn các ký tự đặc biệt' + }, + + // Link dialog. + link : + { + toolbar : 'Chèn/Sửa liên kết', + other : '<khác>', + menu : 'Sửa liên kết', + title : 'Liên kết', + info : 'Thông tin liên kết', + target : 'Đích', + upload : 'Tải lên', + advanced : 'Mở rộng', + type : 'Kiểu liên kết', + toUrl : 'URL', + toAnchor : 'Neo trong trang này', + toEmail : 'Thư điện tử', + targetFrame : '<khung>', + targetPopup : '<cửa sổ popup>', + targetFrameName : 'Tên khung đích', + targetPopupName : 'Tên cửa sổ Popup', + popupFeatures : 'Đặc điểm của cửa sổ Popup', + popupResizable : 'Có thể thay đổi kích cỡ', + popupStatusBar : 'Thanh trạng thái', + popupLocationBar: 'Thanh vị trí', + popupToolbar : 'Thanh công cụ', + popupMenuBar : 'Thanh Menu', + popupFullScreen : 'Toàn màn hình (IE)', + popupScrollBars : 'Thanh cuộn', + popupDependent : 'Phụ thuộc (Netscape)', + popupLeft : 'Vị trí bên trái', + popupTop : 'Vị trí phía trên', + id : 'Định danh', + langDir : 'Hướng ngôn ngữ', + langDirLTR : 'Trái sang phải (LTR)', + langDirRTL : 'Phải sang trái (RTL)', + acccessKey : 'Phím hỗ trợ truy cập', + name : 'Tên', + langCode : 'Mã ngôn ngữ', + tabIndex : 'Chỉ số của Tab', + advisoryTitle : 'Nhan đề hướng dẫn', + advisoryContentType : 'Nội dung hướng dẫn', + cssClasses : 'Lớp Stylesheet', + charset : 'Bảng mã của tài nguyên được liên kết đến', + styles : 'Kiểu (style)', + rel : 'Quan hệ', + selectAnchor : 'Chọn một điểm neo', + anchorName : 'Theo tên điểm neo', + anchorId : 'Theo định danh thành phần', + emailAddress : 'Thư điện tử', + emailSubject : 'Tiêu đề thông điệp', + emailBody : 'Nội dung thông điệp', + noAnchors : '(Không có điểm neo nào trong tài liệu)', + noUrl : 'Hãy đưa vào đường dẫn liên kết (URL)', + noEmail : 'Hãy đưa vào địa chỉ thư điện tử' + }, + + // Anchor dialog + anchor : + { + toolbar : 'Chèn/Sửa điểm neo', + menu : 'Thuộc tính điểm neo', + title : 'Thuộc tính điểm neo', + name : 'Tên của điểm neo', + errorName : 'Hãy nhập vào tên của điểm neo', + remove : 'Xóa neo' + }, + + // List style dialog + list: + { + numberedTitle : 'Thuộc tính danh sách có thứ tự', + bulletedTitle : 'Thuộc tính danh sách không thứ tự', + type : 'Kiểu loại', + start : 'Bắt đầu', + validateStartNumber :'Số bắt đầu danh sách phải là một số nguyên.', + circle : 'Khuyên tròn', + disc : 'Hình đĩa', + square : 'Hình vuông', + none : 'Không gì cả', + notset : '<không thiết lập>', + armenian : 'Số theo kiểu Armenian', + georgian : 'Số theo kiểu Georgian (an, ban, gan...)', + lowerRoman : 'Số La Mã kiểu thường (i, ii, iii, iv, v...)', + upperRoman : 'Số La Mã kiểu HOA (I, II, III, IV, V...)', + lowerAlpha : 'Kiểu abc thường (a, b, c, d, e...)', + upperAlpha : 'Kiểu ABC HOA (A, B, C, D, E...)', + lowerGreek : 'Kiểu Hy Lạp (alpha, beta, gamma...)', + decimal : 'Kiểu số (1, 2, 3 ...)', + decimalLeadingZero : 'Kiểu số (01, 02, 03...)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : 'Tìm kiếm và thay thế', + find : 'Tìm kiếm', + replace : 'Thay thế', + findWhat : 'Tìm chuỗi:', + replaceWith : 'Thay bằng:', + notFoundMsg : 'Không tìm thấy chuỗi cần tìm.', + findOptions : 'Tìm tùy chọn', + matchCase : 'Phân biệt chữ hoa/thường', + matchWord : 'Giống toàn bộ từ', + matchCyclic : 'Giống một phần', + replaceAll : 'Thay thế tất cả', + replaceSuccessMsg : '%1 vị trí đã được thay thế.' + }, + + // Table Dialog + table : + { + toolbar : 'Bảng', + title : 'Thuộc tính bảng', + menu : 'Thuộc tính bảng', + deleteTable : 'Xóa bảng', + rows : 'Số hàng', + columns : 'Số cột', + border : 'Kích thước đường viền', + widthPx : 'Điểm ảnh (px)', + widthPc : 'Phần trăm (%)', + widthUnit : 'Đơn vị', + cellSpace : 'Khoảng cách giữa các ô', + cellPad : 'Khoảng đệm giữ ô và nội dung', + caption : 'Đầu đề', + summary : 'Tóm lược', + headers : 'Đầu đề', + headersNone : 'Không có', + headersColumn : 'Cột đầu tiên', + headersRow : 'Hàng đầu tiên', + headersBoth : 'Cả hai', + invalidRows : 'Số lượng hàng phải là một số lớn hơn 0.', + invalidCols : 'Số lượng cột phải là một số lớn hơn 0.', + invalidBorder : 'Kích cỡ của đường biên phải là một số nguyên.', + invalidWidth : 'Chiều rộng của bảng phải là một số nguyên.', + invalidHeight : 'Chiều cao của bảng phải là một số nguyên.', + invalidCellSpacing : 'Khoảng cách giữa các ô phải là một số nguyên.', + invalidCellPadding : 'Khoảng đệm giữa ô và nội dung phải là một số nguyên.', + + cell : + { + menu : 'Ô', + insertBefore : 'Chèn ô Phía trước', + insertAfter : 'Chèn ô Phía sau', + deleteCell : 'Xoá ô', + merge : 'Kết hợp ô', + mergeRight : 'Kết hợp sang phải', + mergeDown : 'Kết hợp xuống dưới', + splitHorizontal : 'Phân tách ô theo chiều ngang', + splitVertical : 'Phân tách ô theo chiều dọc', + title : 'Thuộc tính của ô', + cellType : 'Kiểu của ô', + rowSpan : 'Kết hợp hàng', + colSpan : 'Kết hợp cột', + wordWrap : 'Chữ liền hàng', + hAlign : 'Canh lề ngang', + vAlign : 'Canh lề dọc', + alignBaseline : 'Đường cơ sở', + bgColor : 'Màu nền', + borderColor : 'Màu viền', + data : 'Dữ liệu', + header : 'Đầu đề', + yes : 'Có', + no : 'Không', + invalidWidth : 'Chiều rộng của ô phải là một số nguyên.', + invalidHeight : 'Chiều cao của ô phải là một số nguyên.', + invalidRowSpan : 'Số hàng kết hợp phải là một số nguyên.', + invalidColSpan : 'Số cột kết hợp phải là một số nguyên.', + chooseColor : 'Chọn màu' + }, + + row : + { + menu : 'Hàng', + insertBefore : 'Chèn hàng phía trước', + insertAfter : 'Chèn hàng phía sau', + deleteRow : 'Xoá hàng' + }, + + column : + { + menu : 'Cột', + insertBefore : 'Chèn cột phía trước', + insertAfter : 'Chèn cột phía sau', + deleteColumn : 'Xoá cột' + } + }, + + // Button Dialog. + button : + { + title : 'Thuộc tính của nút', + text : 'Chuỗi hiển thị (giá trị)', + type : 'Kiểu', + typeBtn : 'Nút bấm', + typeSbm : 'Nút gửi', + typeRst : 'Nút nhập lại' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : 'Thuộc tính nút kiểm', + radioTitle : 'Thuộc tính nút chọn', + value : 'Giá trị', + selected : 'Được chọn' + }, + + // Form Dialog. + form : + { + title : 'Thuộc tính biểu mẫu', + menu : 'Thuộc tính biểu mẫu', + action : 'Hành động', + method : 'Phương thức', + encoding : 'Bảng mã' + }, + + // Select Field Dialog. + select : + { + title : 'Thuộc tính ô chọn', + selectInfo : 'Thông tin', + opAvail : 'Các tùy chọn có thể sử dụng', + value : 'Giá trị', + size : 'Kích cỡ', + lines : 'dòng', + chkMulti : 'Cho phép chọn nhiều', + opText : 'Văn bản', + opValue : 'Giá trị', + btnAdd : 'Thêm', + btnModify : 'Thay đổi', + btnUp : 'Lên', + btnDown : 'Xuống', + btnSetValue : 'Giá trị được chọn', + btnDelete : 'Nút xoá' + }, + + // Textarea Dialog. + textarea : + { + title : 'Thuộc tính vùng văn bản', + cols : 'Số cột', + rows : 'Số hàng' + }, + + // Text Field Dialog. + textfield : + { + title : 'Thuộc tính trường văn bản', + name : 'Tên', + value : 'Giá trị', + charWidth : 'Độ rộng của ký tự', + maxChars : 'Số ký tự tối đa', + type : 'Kiểu', + typeText : 'Ký tự', + typePass : 'Mật khẩu' + }, + + // Hidden Field Dialog. + hidden : + { + title : 'Thuộc tính trường ẩn', + name : 'Tên', + value : 'Giá trị' + }, + + // Image Dialog. + image : + { + title : 'Thuộc tính của ảnh', + titleButton : 'Thuộc tính nút của ảnh', + menu : 'Thuộc tính của ảnh', + infoTab : 'Thông tin của ảnh', + btnUpload : 'Tải lên máy chủ', + upload : 'Tải lên', + alt : 'Chú thích ảnh', + lockRatio : 'Giữ nguyên tỷ lệ', + resetSize : 'Kích thước gốc', + border : 'Đường viền', + hSpace : 'Khoảng đệm ngang', + vSpace : 'Khoảng đệm dọc', + alertUrl : 'Hãy đưa vào đường dẫn của ảnh', + linkTab : 'Tab liên kết', + button2Img : 'Bạn có muốn chuyển nút bấm bằng ảnh được chọn thành ảnh?', + img2Button : 'Bạn có muốn chuyển đổi ảnh được chọn thành nút bấm bằng ảnh?', + urlMissing : 'Thiếu đường dẫn hình ảnh', + validateBorder : 'Chiều rộng của đường viền phải là một số nguyên dương', + validateHSpace : 'Khoảng đệm ngang phải là một số nguyên dương', + validateVSpace : 'Khoảng đệm dọc phải là một số nguyên dương' + }, + + // Flash Dialog + flash : + { + properties : 'Thuộc tính Flash', + propertiesTab : 'Thuộc tính', + title : 'Thuộc tính Flash', + chkPlay : 'Tự động chạy', + chkLoop : 'Lặp', + chkMenu : 'Cho phép bật menu của Flash', + chkFull : 'Cho phép toàn màn hình', + scale : 'Tỷ lệ', + scaleAll : 'Hiển thị tất cả', + scaleNoBorder : 'Không đường viền', + scaleFit : 'Vừa vặn', + access : 'Truy cập mã', + accessAlways : 'Luôn luôn', + accessSameDomain: 'Cùng tên miền', + accessNever : 'Không bao giờ', + alignAbsBottom : 'Dưới tuyệt đối', + alignAbsMiddle : 'Giữa tuyệt đối', + alignBaseline : 'Đường cơ sở', + alignTextTop : 'Phía trên chữ', + quality : 'Chất lượng', + qualityBest : 'Tốt nhất', + qualityHigh : 'Cao', + qualityAutoHigh : 'Cao tự động', + qualityMedium : 'Trung bình', + qualityAutoLow : 'Thấp tự động', + qualityLow : 'Thấp', + windowModeWindow: 'Cửa sổ', + windowModeOpaque: 'Mờ đục', + windowModeTransparent : 'Trong suốt', + windowMode : 'Chế độ cửa sổ', + flashvars : 'Các biến số dành cho Flash', + bgcolor : 'Màu nền', + hSpace : 'Khoảng đệm ngang', + vSpace : 'Khoảng đệm dọc', + validateSrc : 'Hãy đưa vào đường dẫn liên kết', + validateHSpace : 'Khoảng đệm ngang phải là số nguyên.', + validateVSpace : 'Khoảng đệm dọc phải là số nguyên.' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : 'Kiểm tra chính tả', + title : 'Kiểm tra chính tả', + notAvailable : 'Xin lỗi, dịch vụ này hiện tại không có.', + errorLoading : 'Lỗi khi đang nạp dịch vụ ứng dụng: %s.', + notInDic : 'Không có trong từ điển', + changeTo : 'Chuyển thành', + btnIgnore : 'Bỏ qua', + btnIgnoreAll : 'Bỏ qua tất cả', + btnReplace : 'Thay thế', + btnReplaceAll : 'Thay thế tất cả', + btnUndo : 'Phục hồi lại', + noSuggestions : '- Không đưa ra gợi ý về từ -', + progress : 'Đang tiến hành kiểm tra chính tả...', + noMispell : 'Hoàn tất kiểm tra chính tả: Không có lỗi chính tả', + noChanges : 'Hoàn tất kiểm tra chính tả: Không có từ nào được thay đổi', + oneChange : 'Hoàn tất kiểm tra chính tả: Một từ đã được thay đổi', + manyChanges : 'Hoàn tất kiểm tra chính tả: %1 từ đã được thay đổi', + ieSpellDownload : 'Chức năng kiểm tra chính tả chưa được cài đặt. Bạn có muốn tải về ngay bây giờ?' + }, + + smiley : + { + toolbar : 'Hình biểu lộ cảm xúc (mặt cười)', + title : 'Chèn hình biểu lộ cảm xúc (mặt cười)', + options : 'Tùy chọn hình biểu lộ cảm xúc' + }, + + elementsPath : + { + eleLabel : 'Nhãn thành phần', + eleTitle : '%1 thành phần' + }, + + numberedlist : 'Chèn/Xoá Danh sách có thứ tự', + bulletedlist : 'Chèn/Xoá Danh sách không thứ tự', + indent : 'Dịch vào trong', + outdent : 'Dịch ra ngoài', + + justify : + { + left : 'Canh trái', + center : 'Canh giữa', + right : 'Canh phải', + block : 'Canh đều' + }, + + blockquote : 'Khối trích dẫn', + + clipboard : + { + title : 'Dán', + cutError : 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh cắt. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+X).', + copyError : 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh sao chép. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+C).', + pasteMsg : 'Hãy dán nội dung vào trong khung bên dưới, sử dụng tổ hợp phím (<STRONG>Ctrl/Cmd+V</STRONG>) và nhấn vào nút <STRONG>Đồng ý</STRONG>.', + securityMsg : 'Do thiết lập bảo mật của trình duyệt nên trình biên tập không thể truy cập trực tiếp vào nội dung đã sao chép. Bạn cần phải dán lại nội dung vào cửa sổ này.', + pasteArea : 'Khu vực dán' + }, + + pastefromword : + { + confirmCleanup : 'Văn bản bạn muốn dán có kèm định dạng của Word. Bạn có muốn loại bỏ định dạng Word trước khi dán?', + toolbar : 'Dán với định dạng Word', + title : 'Dán với định dạng Word', + error : 'Không thể để làm sạch các dữ liệu dán do một lỗi nội bộ' + }, + + pasteText : + { + button : 'Dán theo định dạng văn bản thuần', + title : 'Dán theo định dạng văn bản thuần' + }, + + templates : + { + button : 'Mẫu dựng sẵn', + title : 'Nội dung Mẫu dựng sẵn', + options : 'Tùy chọn mẫu dựng sẵn', + insertOption : 'Thay thế nội dung hiện tại', + selectPromptMsg : 'Hãy chọn mẫu dựng sẵn để mở trong trình biên tập<br>(nội dung hiện tại sẽ bị mất):', + emptyListMsg : '(Không có mẫu dựng sẵn nào được định nghĩa)' + }, + + showBlocks : 'Hiển thị các khối', + + stylesCombo : + { + label : 'Kiểu', + panelTitle : 'Phong cách định dạng', + panelTitle1 : 'Kiểu khối', + panelTitle2 : 'Kiểu trực tiếp', + panelTitle3 : 'Kiểu đối tượng' + }, + + format : + { + label : 'Định dạng', + panelTitle : 'Định dạng', + + tag_p : 'Bình thường (P)', + tag_pre : 'Đã thiết lập', + tag_address : 'Address', + tag_h1 : 'Heading 1', + tag_h2 : 'Heading 2', + tag_h3 : 'Heading 3', + tag_h4 : 'Heading 4', + tag_h5 : 'Heading 5', + tag_h6 : 'Heading 6', + tag_div : 'Bình thường (DIV)' + }, + + div : + { + title : 'Tạo khối các thành phần', + toolbar : 'Tạo khối các thành phần', + cssClassInputLabel : 'Các lớp CSS', + styleSelectLabel : 'Kiểu (style)', + IdInputLabel : 'Định danh (id)', + languageCodeInputLabel : 'Mã ngôn ngữ', + inlineStyleInputLabel : 'Kiểu nội dòng', + advisoryTitleInputLabel : 'Nhan đề hướng dẫn', + langDirLabel : 'Hướng ngôn ngữ', + langDirLTRLabel : 'Trái sang phải (LTR)', + langDirRTLLabel : 'Phải qua trái (RTL)', + edit : 'Chỉnh sửa', + remove : 'Xóa bỏ' + }, + + iframe : + { + title : 'Thuộc tính iframe', + toolbar : 'Iframe', + noUrl : 'Vui lòng nhập địa chỉ iframe', + scrolling : 'Kích hoạt thanh cuộn', + border : 'Hiển thị viền khung' + }, + + font : + { + label : 'Phông', + voiceLabel : 'Phông', + panelTitle : 'Phông' + }, + + fontSize : + { + label : 'Cỡ chữ', + voiceLabel : 'Kích cỡ phông', + panelTitle : 'Cỡ chữ' + }, + + colorButton : + { + textColorTitle : 'Màu chữ', + bgColorTitle : 'Màu nền', + panelTitle : 'Màu sắc', + auto : 'Tự động', + more : 'Màu khác...' + }, + + colors : + { + '000' : 'Đen', + '800000' : 'Maroon', + '8B4513' : 'Saddle Brown', + '2F4F4F' : 'Dark Slate Gray', + '008080' : 'Teal', + '000080' : 'Navy', + '4B0082' : 'Indigo', + '696969' : 'Dark Gray', + 'B22222' : 'Fire Brick', + 'A52A2A' : 'Nâu', + 'DAA520' : 'Golden Rod', + '006400' : 'Dark Green', + '40E0D0' : 'Turquoise', + '0000CD' : 'Medium Blue', + '800080' : 'Purple', + '808080' : 'Xám', + 'F00' : 'Đỏ', + 'FF8C00' : 'Dark Orange', + 'FFD700' : 'Vàng', + '008000' : 'Xanh lá cây', + '0FF' : 'Cyan', + '00F' : 'Xanh da trời', + 'EE82EE' : 'Tím', + 'A9A9A9' : 'Xám tối', + 'FFA07A' : 'Light Salmon', + 'FFA500' : 'Màu cam', + 'FFFF00' : 'Vàng', + '00FF00' : 'Lime', + 'AFEEEE' : 'Pale Turquoise', + 'ADD8E6' : 'Light Blue', + 'DDA0DD' : 'Plum', + 'D3D3D3' : 'Light Grey', + 'FFF0F5' : 'Lavender Blush', + 'FAEBD7' : 'Antique White', + 'FFFFE0' : 'Light Yellow', + 'F0FFF0' : 'Honeydew', + 'F0FFFF' : 'Azure', + 'F0F8FF' : 'Alice Blue', + 'E6E6FA' : 'Lavender', + 'FFF' : 'Trắng' + }, + + scayt : + { + title : 'Kiểm tra chính tả ngay khi gõ chữ (SCAYT)', + opera_title : 'Không hỗ trợ trên trình duyệt Opera', + enable : 'Bật SCAYT', + disable : 'Tắt SCAYT', + about : 'Thông tin về SCAYT', + toggle : 'Bật tắt SCAYT', + options : 'Tùy chọn', + langs : 'Ngôn ngữ', + moreSuggestions : 'Đề xuất thêm', + ignore : 'Bỏ qua', + ignoreAll : 'Bỏ qua tất cả', + addWord : 'Thêm từ', + emptyDic : 'Tên của từ điển không được để trống.', + + optionsTab : 'Tùy chọn', + allCaps : 'Không phân biệt chữ HOA chữ thường', + ignoreDomainNames : 'Bỏ qua tên miền', + mixedCase : 'Không phân biệt loại chữ', + mixedWithDigits : 'Không phân biệt chữ và số', + + languagesTab : 'Tab ngôn ngữ', + + dictionariesTab : 'Từ điển', + dic_field_name : 'Tên từ điển', + dic_create : 'Tạo', + dic_restore : 'Phục hồi', + dic_delete : 'Xóa', + dic_rename : 'Thay tên', + dic_info : 'Ban đầu, từ điển người dùng được lưu trữ trong một cookie. Tuy nhiên, kích thước cookie bị giới hạn. Khi người sử dụng từ điển phát triển đến điểm không thể được lưu trữ trong cookie, từ điển sẽ được lưu trữ trên máy chủ của chúng tôi. Để lưu trữ từ điển cá nhân của bạn trên máy chủ của chúng tôi, bạn nên xác định một tên cho từ điển của bạn. Nếu bạn đã có một cuốn từ điển được lưu trữ, xin vui lòng gõ tên của nó và nhấn vào nút Khôi phục.', + + aboutTab : 'Thông tin' + }, + + about : + { + title : 'Thông tin về CKEditor', + dlgTitle : 'Thông tin về CKEditor', + help : 'Kiểm tra $1 để được giúp đỡ.', + userGuide : 'Hướng dẫn sử dụng CKEditor', + moreInfo : 'Vui lòng ghé thăm trang web của chúng tôi để có thông tin về giấy phép:', + copy : 'Bản quyền © $1. Giữ toàn quyền.' + }, + + maximize : 'Phóng to tối đa', + minimize : 'Thu nhỏ', + + fakeobjects : + { + anchor : 'Điểm neo', + flash : 'Flash', + iframe : 'IFrame', + hiddenfield : 'Trường ẩn', + unknown : 'Đối tượng không rõ ràng' + }, + + resize : 'Kéo rê để thay đổi kích cỡ', + + colordialog : + { + title : 'Chọn màu', + options : 'Tùy chọn màu', + highlight : 'Màu chọn', + selected : 'Màu đã chọn', + clear : 'Xóa bỏ' + }, + + toolbarCollapse : 'Thu gọn thanh công cụ', + toolbarExpand : 'Mở rộng thnah công cụ', + + toolbarGroups : + { + document : 'Tài liệu', + clipboard : 'Clipboard/Undo', + editing : 'Chỉnh sửa', + forms : 'Bảng biểu', + basicstyles : 'Kiểu cơ bản', + paragraph : 'Đoạn', + links : 'Liên kết', + insert : 'Chèn', + styles : 'Kiểu', + colors : 'Màu sắc', + tools : 'Công cụ' + }, + + bidi : + { + ltr : 'Văn bản hướng từ trái sang phải', + rtl : 'Văn bản hướng từ phải sang trái' + }, + + docprops : + { + label : 'Thuộc tính Tài liệu', + title : 'Thuộc tính Tài liệu', + design : 'Thiết kế', + meta : 'Siêu dữ liệu', + chooseColor : 'Chọn màu', + other : '<khác>', + docTitle : 'Tiêu đề Trang', + charset : 'Bảng mã ký tự', + charsetOther : 'Bảng mã ký tự khác', + charsetASCII : 'ASCII', + charsetCE : 'Trung Âu', + charsetCT : 'Tiếng Trung Quốc (Big5)', + charsetCR : 'Tiếng Kirin', + charsetGR : 'Tiếng Hy Lạp', + charsetJP : 'Tiếng Nhật', + charsetKR : 'Tiếng Hàn', + charsetTR : 'Tiếng Thổ Nhĩ Kỳ', + charsetUN : 'Unicode (UTF-8)', + charsetWE : 'Tây Âu', + docType : 'Kiểu Đề mục Tài liệu', + docTypeOther : 'Kiểu Đề mục Tài liệu khác', + xhtmlDec : 'Bao gồm cả định nghĩa XHTML', + bgColor : 'Màu nền', + bgImage : 'URL của Hình ảnh nền', + bgFixed : 'Không cuộn nền', + txtColor : 'Màu chữ', + margin : 'Đường biên của Trang', + marginTop : 'Trên', + marginLeft : 'Trái', + marginRight : 'Phải', + marginBottom : 'Dưới', + metaKeywords : 'Các từ khóa chỉ mục tài liệu (phân cách bởi dấu phẩy)', + metaDescription : 'Mô tả tài liệu', + metaAuthor : 'Tác giả', + metaCopyright : 'Bản quyền', + previewHtml : '<p>Đây là một số <strong>văn bản mẫu</strong>. Bạn đang sử dụng <a href="javascript:void(0)">CKEditor</a>.</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/zh-cn.js b/htdocs/includes/ckeditor/_source/lang/zh-cn.js new file mode 100644 index 0000000000000000000000000000000000000000..d396e9626d34e5eff49d7fb513702f29e93722f6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/zh-cn.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Chinese Simplified language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['zh-cn'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : '富文本编辑器,%1', + editorHelp : '按 ALT+0 获得帮助', + + // ARIA descriptions. + toolbars : '工具栏', + editor : '所见即所得编辑器', + + // Toolbar buttons without dialogs. + source : '源码', + newPage : '新建', + save : '保存', + preview : '预览', + cut : '剪切', + copy : '复制', + paste : '粘贴', + print : '打印', + underline : '下划线', + bold : '加粗', + italic : '倾斜', + selectAll : '全选', + removeFormat : '清除格式', + strike : '删除线', + subscript : '下标', + superscript : '上标', + horizontalrule : '插入水平线', + pagebreak : '插入分页符', + pagebreakAlt : '分页符', + unlink : '取消超链接', + undo : '撤消', + redo : '重做', + + // Common messages and labels. + common : + { + browseServer : '浏览服务器', + url : '源文件', + protocol : '协议', + upload : '上传', + uploadSubmit : '上传到服务器上', + image : '图象', + flash : 'Flash', + form : '表单', + checkbox : '复选框', + radio : '单选按钮', + textField : '单行文本', + textarea : '多行文本', + hiddenField : '隐藏域', + button : '按钮', + select : '列表/菜单', + imageButton : '图像域', + notSet : '<没有设置>', + id : 'ID', + name : '名称', + langDir : '语言方向', + langDirLtr : '从左到右 (LTR)', + langDirRtl : '从右到左 (RTL)', + langCode : '语言代码', + longDescr : '详细说明地址', + cssClass : '样式类名称', + advisoryTitle : '标题', + cssStyle : '行内样式', + ok : '确定', + cancel : '取消', + close : '关闭', + preview : '预览', + generalTab : '常规', + advancedTab : '高级', + validateNumberFailed : '需要输入数字格式', + confirmNewPage : '当前文档内容未保存,是否确认新建文档?', + confirmCancel : '部分修改尚未保存,是否确认关闭对话框?', + options : '选项', + target : '目标窗口', + targetNew : '新窗口 (_blank)', + targetTop : '整页 (_top)', + targetSelf : '本窗口 (_self)', + targetParent : '父窗口 (_parent)', + langDirLTR : '从左到右 (LTR)', + langDirRTL : '从右到左 (RTL)', + styles : '样式', + cssClasses : '样式类', + width : '宽度', + height : '高度', + align : '对齐方式', + alignLeft : '左对齐', + alignRight : '右对齐', + alignCenter : '居中', + alignTop : '顶端', + alignMiddle : '居中', + alignBottom : '底部', + invalidHeight : '高度必须为数字格式', + invalidWidth : '宽度必须为数字格式', + invalidCssLength : '该字段必须为合式的CSS长度值,包括单位(px, %, in, cm, mm, em, ex, pt 或 pc)', + invalidHtmlLength : '该字段必须为合式的HTML长度值,包括单位(px 或 %)', + invalidInlineStyle : '内联样式必须为格式是以分号分隔的一个或多个“属性名 : 属性值”', + cssLengthTooltip : '该字段必须为合式的CSS长度值,包括单位(px, %, in, cm, mm, em, ex, pt 或 pc)', + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, 不可用</span>' + }, + + contextmenu : + { + options : '快捷菜单选项' + }, + + // Special char dialog. + specialChar : + { + toolbar : '插入特殊符号', + title : '选择特殊符号', + options : '特殊符号选项' + }, + + // Link dialog. + link : + { + toolbar : '插入/编辑超链接', + other : '<其他>', + menu : '编辑超链接', + title : '超链接', + info : '超链接信息', + target : '目标', + upload : '上传', + advanced : '高级', + type : '超链接类型', + toUrl : '地址', + toAnchor : '页内锚点链接', + toEmail : '电子邮件', + targetFrame : '<框架>', + targetPopup : '<弹出窗口>', + targetFrameName : '目标框架名称', + targetPopupName : '弹出窗口名称', + popupFeatures : '弹出窗口属性', + popupResizable : '可缩放', + popupStatusBar : '状态栏', + popupLocationBar: '地址栏', + popupToolbar : '工具栏', + popupMenuBar : '菜单栏', + popupFullScreen : '全屏 (IE)', + popupScrollBars : '滚动条', + popupDependent : '依附 (NS)', + popupLeft : '左', + popupTop : '右', + id : 'ID', + langDir : '语言方向', + langDirLTR : '从左到右 (LTR)', + langDirRTL : '从右到左 (RTL)', + acccessKey : '访问键', + name : '名称', + langCode : '语言代码', + tabIndex : 'Tab 键次序', + advisoryTitle : '标题', + advisoryContentType : '内容类型', + cssClasses : '样式类名称', + charset : '字符编码', + styles : '行内样式', + rel : '关联', + selectAnchor : '选择一个锚点', + anchorName : '按锚点名称', + anchorId : '按锚点 ID', + emailAddress : '地址', + emailSubject : '主题', + emailBody : '内容', + noAnchors : '(此文档没有可用的锚点)', + noUrl : '请输入超链接地址', + noEmail : '请输入电子邮件地址' + }, + + // Anchor dialog + anchor : + { + toolbar : '插入/编辑锚点链接', + menu : '锚点链接属性', + title : '锚点链接属性', + name : '锚点名称', + errorName : '请输入锚点名称', + remove : '删除锚点' + }, + + // List style dialog + list: + { + numberedTitle : '编号列表属性', + bulletedTitle : '项目列表属性', + type : '标记类型', + start : '开始序号', + validateStartNumber :'列表开始序号必须为整数格式', + circle : '空心圆', + disc : '实心圆', + square : '实心方块', + none : '无标记', + notset : '<没有设置>', + armenian : '传统的亚美尼亚编号方式', + georgian : '传统的乔治亚编号方式(an, ban, gan, 等)', + lowerRoman : '小写罗马数字(i, ii, iii, iv, v, 等)', + upperRoman : '大写罗马数字(I, II, III, IV, V, 等)', + lowerAlpha : '小写英文字母(a, b, c, d, e, 等)', + upperAlpha : '大写英文字母(A, B, C, D, E, 等)', + lowerGreek : '小写希腊字母(alpha, beta, gamma, 等)', + decimal : '数字 (1, 2, 3, 等)', + decimalLeadingZero : '0开头的数字标记(01, 02, 03, 等)' + }, + + // Find And Replace Dialog + findAndReplace : + { + title : '查找和替换', + find : '查找', + replace : '替换', + findWhat : '查找:', + replaceWith : '替换:', + notFoundMsg : '指定文本没有找到', + findOptions : '查找选项', + matchCase : '区分大小写', + matchWord : '全字匹配', + matchCyclic : '循环匹配', + replaceAll : '全部替换', + replaceSuccessMsg : '共完成 %1 处替换.' + }, + + // Table Dialog + table : + { + toolbar : '表格', + title : '表格属性', + menu : '表格属性', + deleteTable : '删除表格', + rows : '行数', + columns : '列数', + border : '边框', + widthPx : '像素', + widthPc : '百分比', + widthUnit : '宽度单位', + cellSpace : '间距', + cellPad : '边距', + caption : '标题', + summary : '摘要', + headers : '标题单元格', + headersNone : '无', + headersColumn : '第一列', + headersRow : '第一行', + headersBoth : '第一列和第一行', + invalidRows : '指定的列数必须大于零', + invalidCols : '指定的行数必须大于零', + invalidBorder : '边框粗细必须为数字格式', + invalidWidth : '表格宽度必须为数字格式', + invalidHeight : '表格高度必须为数字格式', + invalidCellSpacing : '单元格间距必须为数字格式', + invalidCellPadding : '单元格填充必须为数字格式', + + cell : + { + menu : '单元格', + insertBefore : '在左侧插入单元格', + insertAfter : '在右侧插入单元格', + deleteCell : '删除单元格', + merge : '合并单元格', + mergeRight : '向右合并单元格', + mergeDown : '向下合并单元格', + splitHorizontal : '水平拆分单元格', + splitVertical : '垂直拆分单元格', + title : '单元格属性', + cellType : '单元格类型', + rowSpan : '纵跨行数', + colSpan : '横跨列数', + wordWrap : '自动换行', + hAlign : '水平对齐', + vAlign : '垂直对齐', + alignBaseline : '基线', + bgColor : '背景颜色', + borderColor : '边框颜色', + data : '数据', + header : '表头', + yes : '是', + no : '否', + invalidWidth : '单元格宽度必须为数字格式', + invalidHeight : '单元格高度必须为数字格式', + invalidRowSpan : '行跨度必须为整数格式', + invalidColSpan : '列跨度必须为整数格式', + chooseColor : '选择' + }, + + row : + { + menu : '行', + insertBefore : '在上方插入行', + insertAfter : '在下方插入行', + deleteRow : '删除行' + }, + + column : + { + menu : '列', + insertBefore : '在左侧插入列', + insertAfter : '在右侧插入列', + deleteColumn : '删除列' + } + }, + + // Button Dialog. + button : + { + title : '按钮属性', + text : '标签(值)', + type : '类型', + typeBtn : '按钮', + typeSbm : '提交', + typeRst : '重设' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : '复选框属性', + radioTitle : '单选按钮属性', + value : '选定值', + selected : '已勾选' + }, + + // Form Dialog. + form : + { + title : '表单属性', + menu : '表单属性', + action : '动作', + method : '方法', + encoding : '表单编码' + }, + + // Select Field Dialog. + select : + { + title : '菜单/列表属性', + selectInfo : '选择信息', + opAvail : '可选项', + value : '值', + size : '高度', + lines : '行', + chkMulti : '允许多选', + opText : '选项文本', + opValue : '选项值', + btnAdd : '添加', + btnModify : '修改', + btnUp : '上移', + btnDown : '下移', + btnSetValue : '设为初始选定', + btnDelete : '删除' + }, + + // Textarea Dialog. + textarea : + { + title : '多行文本属性', + cols : '字符宽度', + rows : '行数' + }, + + // Text Field Dialog. + textfield : + { + title : '单行文本属性', + name : '名称', + value : '初始值', + charWidth : '字符宽度', + maxChars : '最多字符数', + type : '类型', + typeText : '文本', + typePass : '密码' + }, + + // Hidden Field Dialog. + hidden : + { + title : '隐藏域属性', + name : '名称', + value : '初始值' + }, + + // Image Dialog. + image : + { + title : '图象属性', + titleButton : '图像域属性', + menu : '图象属性', + infoTab : '图象', + btnUpload : '上传到服务器上', + upload : '上传', + alt : '替换文本', + lockRatio : '锁定比例', + resetSize : '原始尺寸', + border : '边框大小', + hSpace : '水平间距', + vSpace : '垂直间距', + alertUrl : '请输入图象地址', + linkTab : '链接', + button2Img : '确定要把当前按钮改变为图像吗?', + img2Button : '确定要把当前图像改变为按钮吗?', + urlMissing : '缺少图像源文件地址', + validateBorder : '边框大小必须为整数格式', + validateHSpace : '水平间距必须为整数格式', + validateVSpace : '垂直间距必须为整数格式' + }, + + // Flash Dialog + flash : + { + properties : 'Flash 属性', + propertiesTab : '属性', + title : '标题', + chkPlay : '自动播放', + chkLoop : '循环', + chkMenu : '启用 Flash 菜单', + chkFull : '启用全屏', + scale : '缩放', + scaleAll : '全部显示', + scaleNoBorder : '无边框', + scaleFit : '严格匹配', + access : '允许脚本访问', + accessAlways : '总是', + accessSameDomain: '同域', + accessNever : '从不', + alignAbsBottom : '绝对底部', + alignAbsMiddle : '绝对居中', + alignBaseline : '基线', + alignTextTop : '文本上方', + quality : '质量', + qualityBest : '最好', + qualityHigh : '高', + qualityAutoHigh : '高(自动)', + qualityMedium : '中(自动)', + qualityAutoLow : '低(自动)', + qualityLow : '低', + windowModeWindow: '窗体', + windowModeOpaque: '不透明', + windowModeTransparent : '透明', + windowMode : '窗体模式', + flashvars : 'Flash 变量', + bgcolor : '背景颜色', + hSpace : '水平间距', + vSpace : '垂直间距', + validateSrc : '请输入源文件地址', + validateHSpace : '水平间距必须为数字格式', + validateVSpace : '垂直间距必须为数字格式' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : '拼写检查', + title : '拼写检查', + notAvailable : '抱歉, 服务目前暂不可用', + errorLoading : '加载应该服务主机时出错: %s.', + notInDic : '没有在字典里', + changeTo : '更改为', + btnIgnore : '忽略', + btnIgnoreAll : '全部忽略', + btnReplace : '替换', + btnReplaceAll : '全部替换', + btnUndo : '撤消', + noSuggestions : '- 没有建议 -', + progress : '正在进行拼写检查...', + noMispell : '拼写检查完成: 没有发现拼写错误', + noChanges : '拼写检查完成: 没有更改任何单词', + oneChange : '拼写检查完成: 更改了一个单词', + manyChanges : '拼写检查完成: 更改了 %1 个单词', + ieSpellDownload : '拼写检查插件还没安装, 你是否想现在就下载?' + }, + + smiley : + { + toolbar : '表情符', + title : '插入表情图标', + options : '表情图标选项' + }, + + elementsPath : + { + eleLabel : '元素路径', + eleTitle : '%1 元素' + }, + + numberedlist : '编号列表', + bulletedlist : '项目列表', + indent : '增加缩进量', + outdent : '减少缩进量', + + justify : + { + left : '左对齐', + center : '居中', + right : '右对齐', + block : '两端对齐' + }, + + blockquote : '块引用', + + clipboard : + { + title : '粘贴', + cutError : '您的浏览器安全设置不允许编辑器自动执行剪切操作, 请使用键盘快捷键(Ctrl/Cmd+X)来完成', + copyError : '您的浏览器安全设置不允许编辑器自动执行复制操作, 请使用键盘快捷键(Ctrl/Cmd+C)来完成', + pasteMsg : '请使用键盘快捷键(<STRONG>Ctrl/Cmd+V</STRONG>)把内容粘贴到下面的方框里,再按 <STRONG>确定</STRONG>', + securityMsg : '因为你的浏览器的安全设置原因, 本编辑器不能直接访问你的剪贴板内容, 你需要在本窗口重新粘贴一次', + pasteArea : '粘贴区域' + }, + + pastefromword : + { + confirmCleanup : '您要粘贴的内容好像是来自 MS Word, 是否要清除 MS Word 格式后再粘贴?', + toolbar : '从 MS Word 粘贴', + title : '从 MS Word 粘贴', + error : '由于内部错误无法清理要粘贴的数据' + }, + + pasteText : + { + button : '粘贴为无格式文本', + title : '粘贴为无格式文本' + }, + + templates : + { + button : '模板', + title : '内容模板', + options : '模板选项', + insertOption : '替换当前内容', + selectPromptMsg : '请选择编辑器内容模板:', + emptyListMsg : '(没有模板)' + }, + + showBlocks : '显示区块', + + stylesCombo : + { + label : '样式', + panelTitle : '样式', + panelTitle1 : '块级元素样式', + panelTitle2 : '内联元素样式', + panelTitle3 : '对象元素样式' + }, + + format : + { + label : '格式', + panelTitle : '格式', + + tag_p : '普通', + tag_pre : '已编排格式', + tag_address : '地址', + tag_h1 : '标题 1', + tag_h2 : '标题 2', + tag_h3 : '标题 3', + tag_h4 : '标题 4', + tag_h5 : '标题 5', + tag_h6 : '标题 6', + tag_div : '段落(DIV)' + }, + + div : + { + title : '创建 DIV 容器', + toolbar : '创建 DIV 容器', + cssClassInputLabel : '样式类名称', + styleSelectLabel : '样式', + IdInputLabel : 'ID', + languageCodeInputLabel : '语言代码', + inlineStyleInputLabel : '行内样式', + advisoryTitleInputLabel : '标题', + langDirLabel : '语言方向', + langDirLTRLabel : '从左到右 (LTR)', + langDirRTLLabel : '从右到左 (RTL)', + edit : '编辑 DIV', + remove : '移除 DIV' + }, + + iframe : + { + title : 'IFrame 属性', + toolbar : 'IFrame', + noUrl : '请输入框架的 URL', + scrolling : '允许滚动条', + border : '显示框架边框' + }, + + font : + { + label : '字体', + voiceLabel : '字体', + panelTitle : '字体' + }, + + fontSize : + { + label : '大小', + voiceLabel : '文字大小', + panelTitle : '大小' + }, + + colorButton : + { + textColorTitle : '文本颜色', + bgColorTitle : '背景颜色', + panelTitle : '颜色', + auto : '自动', + more : '其它颜色...' + }, + + colors : + { + '000' : '黑', + '800000' : '褐红', + '8B4513' : '深褐', + '2F4F4F' : '墨绿', + '008080' : '绿松石', + '000080' : '海军蓝', + '4B0082' : '靛蓝', + '696969' : '暗灰', + 'B22222' : '砖红', + 'A52A2A' : '褐', + 'DAA520' : '金黄', + '006400' : '深绿', + '40E0D0' : '蓝绿', + '0000CD' : '中蓝', + '800080' : '紫', + '808080' : '灰', + 'F00' : '红', + 'FF8C00' : '深橙', + 'FFD700' : '金', + '008000' : '绿', + '0FF' : '青', + '00F' : '蓝', + 'EE82EE' : '紫罗兰', + 'A9A9A9' : '深灰', + 'FFA07A' : '亮橙', + 'FFA500' : '橙', + 'FFFF00' : '黄', + '00FF00' : '水绿', + 'AFEEEE' : '粉蓝', + 'ADD8E6' : '亮蓝', + 'DDA0DD' : '梅红', + 'D3D3D3' : '淡灰', + 'FFF0F5' : '淡紫红', + 'FAEBD7' : '古董白', + 'FFFFE0' : '淡黄', + 'F0FFF0' : '蜜白', + 'F0FFFF' : '天蓝', + 'F0F8FF' : '淡蓝', + 'E6E6FA' : '淡紫', + 'FFF' : '白' + }, + + scayt : + { + title : '即时拼写检查', + opera_title : '不支持 Opera 浏览器', + enable : '启用即时拼写检查', + disable : '禁用即时拼写检查', + about : '关于即时拼写检查', + toggle : '暂停/启用即时拼写检查', + options : '选项', + langs : '语言', + moreSuggestions : '更多拼写建议', + ignore : '忽略', + ignoreAll : '全部忽略', + addWord : '添加单词', + emptyDic : '字典名不应为空.', + + optionsTab : '选项', + allCaps : '忽略所有大写单词', + ignoreDomainNames : '忽略域名', + mixedCase : '忽略大小写混合的单词', + mixedWithDigits : '忽略带数字的单词', + + languagesTab : '语言', + + dictionariesTab : '字典', + dic_field_name : '字典名称', + dic_create : '创建', + dic_restore : '还原', + dic_delete : '删除', + dic_rename : '重命名', + dic_info : '一开始用户词典储存在 Cookie 中, 但是 Cookies 的容量是有限的, 当用户词典增长到超出 Cookie 限制时就无法再储存了, 这时您可以将词典储存到我们的服务器上. 要把您的个人词典到储存到我们的服务器上的话, 需要为您的词典指定一个名称, 如果您在我们的服务器上已经有储存有一个词典, 请输入词典名称并按还原按钮.', + + aboutTab : '关于' + }, + + about : + { + title : '关于CKEditor', + dlgTitle : '关于CKEditor', + help : '请访问 $1 以获取帮助.', + userGuide : 'CKEditor 用户向导', + moreInfo : '访问我们的网站以获取更多关于协议的信息', + copy : 'Copyright © $1. 版权所有。' + }, + + maximize : '全屏', + minimize : '最小化', + + fakeobjects : + { + anchor : '锚点', + flash : 'Flash 动画', + iframe : 'IFrame', + hiddenfield : '隐藏域', + unknown : '未知对象' + }, + + resize : '拖拽以改变尺寸', + + colordialog : + { + title : '选择颜色', + options : '颜色选项', + highlight : '高亮', + selected : '选择颜色', + clear : '清除' + }, + + toolbarCollapse : '折叠工具栏', + toolbarExpand : '展开工具栏', + + toolbarGroups : + { + document : '文档', + clipboard : '剪贴板/撤销', + editing : '编辑', + forms : '表单', + basicstyles : '基本格式', + paragraph : '段落', + links : '链接', + insert : '插入', + styles : '样式', + colors : '颜色', + tools : '工具' + }, + + bidi : + { + ltr : '文字方向为从左至右', + rtl : '文字方向为从右至左' + }, + + docprops : + { + label : '页面属性', + title : '页面属性', + design : '设计', + meta : 'Meta 数据', + chooseColor : '选择', + other : '<其他>', + docTitle : '页面标题', + charset : '字符编码', + charsetOther : '其它字符编码', + charsetASCII : 'ASCII', + charsetCE : '中欧', + charsetCT : '繁体中文 (Big5)', + charsetCR : '西里尔文', + charsetGR : '希腊文', + charsetJP : '日文', + charsetKR : '韩文', + charsetTR : '土耳其文', + charsetUN : 'Unicode (UTF-8)', + charsetWE : '西欧', + docType : '文档类型', + docTypeOther : '其它文档类型', + xhtmlDec : '包含 XHTML 声明', + bgColor : '背景颜色', + bgImage : '背景图像', + bgFixed : '不滚动背景图像', + txtColor : '文本颜色', + margin : '页面边距', + marginTop : '上', + marginLeft : '左', + marginRight : '右', + marginBottom : '下', + metaKeywords : '页面索引关键字 (用半角逗号[,]分隔)', + metaDescription : '页面说明', + metaAuthor : '作者', + metaCopyright : '版权', + previewHtml : '<p>这是一些<strong>演示用文字</strong>。你当前正在使用<a href="javascript:void(0)">CKEditor</a>。</p>' + } +}; diff --git a/htdocs/includes/ckeditor/_source/lang/zh.js b/htdocs/includes/ckeditor/_source/lang/zh.js new file mode 100644 index 0000000000000000000000000000000000000000..569aefc01d7885df6611417d91e69f26c6381448 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/lang/zh.js @@ -0,0 +1,816 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.lang} object, for the + * Chinese Traditional language. + */ + +/**#@+ + @type String + @example +*/ + +/** + * Contains the dictionary of language entries. + * @namespace + */ +CKEDITOR.lang['zh'] = +{ + /** + * The language reading direction. Possible values are "rtl" for + * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right + * languages (like English). + * @default 'ltr' + */ + dir : 'ltr', + + /* + * Screenreader titles. Please note that screenreaders are not always capable + * of reading non-English words. So be careful while translating it. + */ + editorTitle : 'Rich text editor, %1', // MISSING + editorHelp : 'Press ALT 0 for help', // MISSING + + // ARIA descriptions. + toolbars : '編輯器工具欄', + editor : '富文本編輯器', + + // Toolbar buttons without dialogs. + source : '原始碼', + newPage : '開新檔案', + save : '儲存', + preview : '預覽', + cut : '剪下', + copy : '複製', + paste : '貼上', + print : '列印', + underline : '底線', + bold : '粗體', + italic : '斜體', + selectAll : '全選', + removeFormat : '清除格式', + strike : '刪除線', + subscript : '下標', + superscript : '上標', + horizontalrule : '插入水平線', + pagebreak : '插入分頁符號', + pagebreakAlt : '分頁符號', + unlink : '移除超連結', + undo : '復原', + redo : '重複', + + // Common messages and labels. + common : + { + browseServer : '瀏覽伺服器端', + url : 'URL', + protocol : '通訊協定', + upload : '上傳', + uploadSubmit : '上傳至伺服器', + image : '影像', + flash : 'Flash', + form : '表單', + checkbox : '核取方塊', + radio : '選項按鈕', + textField : '文字方塊', + textarea : '文字區域', + hiddenField : '隱藏欄位', + button : '按鈕', + select : '清單/選單', + imageButton : '影像按鈕', + notSet : '<尚未設定>', + id : 'ID', + name : '名稱', + langDir : '語言方向', + langDirLtr : '由左而右 (LTR)', + langDirRtl : '由右而左 (RTL)', + langCode : '語言代碼', + longDescr : '詳細 URL', + cssClass : '樣式表類別', + advisoryTitle : '標題', + cssStyle : '樣式', + ok : '確定', + cancel : '取消', + close : '关闭', + preview : '预览', + generalTab : '一般', + advancedTab : '進階', + validateNumberFailed : '需要輸入數字格式', + confirmNewPage : '現存的修改尚未儲存,要開新檔案?', + confirmCancel : '部份選項尚未儲存,要關閉對話盒?', + options : '选项', + target : '目标', + targetNew : '新窗口(_blank)', + targetTop : '整页(_top)', + targetSelf : '本窗口(_self)', + targetParent : '父窗口(_parent)', + langDirLTR : 'Left to Right (LTR)', // MISSING + langDirRTL : 'Right to Left (RTL)', // MISSING + styles : 'Style', // MISSING + cssClasses : 'Stylesheet Classes', // MISSING + width : '寬度', + height : '高度', + align : '對齊', + alignLeft : '靠左對齊', + alignRight : '靠右對齊', + alignCenter : '置中', + alignTop : '靠上對齊', + alignMiddle : '置中對齊', + alignBottom : '靠下對齊', + invalidHeight : '高度必須為數字格式', + invalidWidth : '寬度必須為數字格式', + invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING + invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING + cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING + + // Put the voice-only part of the label in the span. + unavailable : '%1<span class="cke_accessibility">, 已關閉</span>' + }, + + contextmenu : + { + options : 'Context Menu Options' // MISSING + }, + + // Special char dialog. + specialChar : + { + toolbar : '插入特殊符號', + title : '請選擇特殊符號', + options : 'Special Character Options' // MISSING + }, + + // Link dialog. + link : + { + toolbar : '插入/編輯超連結', + other : '<其他>', + menu : '編輯超連結', + title : '超連結', + info : '超連結資訊', + target : '目標', + upload : '上傳', + advanced : '進階', + type : '超連接類型', + toUrl : 'URL', // MISSING + toAnchor : '本頁錨點', + toEmail : '電子郵件', + targetFrame : '<框架>', + targetPopup : '<快顯視窗>', + targetFrameName : '目標框架名稱', + targetPopupName : '快顯視窗名稱', + popupFeatures : '快顯視窗屬性', + popupResizable : '可縮放', + popupStatusBar : '狀態列', + popupLocationBar: '網址列', + popupToolbar : '工具列', + popupMenuBar : '選單列', + popupFullScreen : '全螢幕 (IE)', + popupScrollBars : '捲軸', + popupDependent : '從屬 (NS)', + popupLeft : '左', + popupTop : '右', + id : 'ID', + langDir : '語言方向', + langDirLTR : '由左而右 (LTR)', + langDirRTL : '由右而左 (RTL)', + acccessKey : '存取鍵', + name : '名稱', + langCode : '語言方向', + tabIndex : '定位順序', + advisoryTitle : '標題', + advisoryContentType : '內容類型', + cssClasses : '樣式表類別', + charset : '連結資源之編碼', + styles : '樣式', + rel : 'Relationship', // MISSING + selectAnchor : '請選擇錨點', + anchorName : '依錨點名稱', + anchorId : '依元件 ID', + emailAddress : '電子郵件', + emailSubject : '郵件主旨', + emailBody : '郵件內容', + noAnchors : '(本文件尚無可用之錨點)', + noUrl : '請輸入欲連結的 URL', + noEmail : '請輸入電子郵件位址' + }, + + // Anchor dialog + anchor : + { + toolbar : '插入/編輯錨點', + menu : '錨點屬性', + title : '錨點屬性', + name : '錨點名稱', + errorName : '請輸入錨點名稱', + remove : 'Remove Anchor' // MISSING + }, + + // List style dialog + list: + { + numberedTitle : 'Numbered List Properties', // MISSING + bulletedTitle : 'Bulleted List Properties', // MISSING + type : 'Type', // MISSING + start : 'Start', // MISSING + validateStartNumber :'List start number must be a whole number.', // MISSING + circle : 'Circle', // MISSING + disc : 'Disc', // MISSING + square : 'Square', // MISSING + none : 'None', // MISSING + notset : '<not set>', // MISSING + armenian : 'Armenian numbering', // MISSING + georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING + lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING + upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING + lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING + upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING + lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING + decimal : 'Decimal (1, 2, 3, etc.)', // MISSING + decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING + }, + + // Find And Replace Dialog + findAndReplace : + { + title : '尋找與取代', + find : '尋找', + replace : '取代', + findWhat : '尋找:', + replaceWith : '取代:', + notFoundMsg : '未找到指定的文字。', + findOptions : 'Find Options', // MISSING + matchCase : '大小寫須相符', + matchWord : '全字相符', + matchCyclic : '循環搜索', + replaceAll : '全部取代', + replaceSuccessMsg : '共完成 %1 次取代' + }, + + // Table Dialog + table : + { + toolbar : '表格', + title : '表格屬性', + menu : '表格屬性', + deleteTable : '刪除表格', + rows : '列數', + columns : '欄數', + border : '邊框', + widthPx : '像素', + widthPc : '百分比', + widthUnit : 'width unit', // MISSING + cellSpace : '間距', + cellPad : '內距', + caption : '標題', + summary : '摘要', + headers : '標題', + headersNone : '無標題', + headersColumn : '第一欄', + headersRow : '第一列', + headersBoth : '第一欄和第一列', + invalidRows : '必須有一或更多的列', + invalidCols : '必須有一或更多的欄', + invalidBorder : '邊框大小必須為數字格式', + invalidWidth : '表格寬度必須為數字格式', + invalidHeight : '表格高度必須為數字格式', + invalidCellSpacing : '儲存格間距必須為數字格式', + invalidCellPadding : '儲存格內距必須為數字格式', + + cell : + { + menu : '儲存格', + insertBefore : '向左插入儲存格', + insertAfter : '向右插入儲存格', + deleteCell : '刪除儲存格', + merge : '合併儲存格', + mergeRight : '向右合併儲存格', + mergeDown : '向下合併儲存格', + splitHorizontal : '橫向分割儲存格', + splitVertical : '縱向分割儲存格', + title : '儲存格屬性', + cellType : '儲存格類別', + rowSpan : '儲存格列數', + colSpan : '儲存格欄數', + wordWrap : '自動換行', + hAlign : '水平對齊', + vAlign : '垂直對齊', + alignBaseline : '基線對齊', + bgColor : '背景顏色', + borderColor : '邊框顏色', + data : '數據', + header : '標題', + yes : '是', + no : '否', + invalidWidth : '儲存格寬度必須為數字格式', + invalidHeight : '儲存格高度必須為數字格式', + invalidRowSpan : '儲存格列數必須為整數格式', + invalidColSpan : '儲存格欄數度必須為整數格式', + chooseColor : 'Choose' // MISSING + }, + + row : + { + menu : '列', + insertBefore : '向上插入列', + insertAfter : '向下插入列', + deleteRow : '刪除列' + }, + + column : + { + menu : '欄', + insertBefore : '向左插入欄', + insertAfter : '向右插入欄', + deleteColumn : '刪除欄' + } + }, + + // Button Dialog. + button : + { + title : '按鈕屬性', + text : '顯示文字 (值)', + type : '類型', + typeBtn : '按鈕 (Button)', + typeSbm : '送出 (Submit)', + typeRst : '重設 (Reset)' + }, + + // Checkbox and Radio Button Dialogs. + checkboxAndRadio : + { + checkboxTitle : '核取方塊屬性', + radioTitle : '選項按鈕屬性', + value : '選取值', + selected : '已選取' + }, + + // Form Dialog. + form : + { + title : '表單屬性', + menu : '表單屬性', + action : '動作', + method : '方法', + encoding : '表單編碼' + }, + + // Select Field Dialog. + select : + { + title : '清單/選單屬性', + selectInfo : '資訊', + opAvail : '可用選項', + value : '值', + size : '大小', + lines : '行', + chkMulti : '可多選', + opText : '顯示文字', + opValue : '選取值', + btnAdd : '新增', + btnModify : '修改', + btnUp : '上移', + btnDown : '下移', + btnSetValue : '設為預設值', + btnDelete : '刪除' + }, + + // Textarea Dialog. + textarea : + { + title : '文字區域屬性', + cols : '字元寬度', + rows : '列數' + }, + + // Text Field Dialog. + textfield : + { + title : '文字方塊屬性', + name : '名稱', + value : '值', + charWidth : '字元寬度', + maxChars : '最多字元數', + type : '類型', + typeText : '文字', + typePass : '密碼' + }, + + // Hidden Field Dialog. + hidden : + { + title : '隱藏欄位屬性', + name : '名稱', + value : '值' + }, + + // Image Dialog. + image : + { + title : '影像屬性', + titleButton : '影像按鈕屬性', + menu : '影像屬性', + infoTab : '影像資訊', + btnUpload : '上傳至伺服器', + upload : '上傳', + alt : '替代文字', + lockRatio : '等比例', + resetSize : '重設為原大小', + border : '邊框', + hSpace : '水平距離', + vSpace : '垂直距離', + alertUrl : '請輸入影像 URL', + linkTab : '超連結', + button2Img : '要把影像按鈕改成影像嗎?', + img2Button : '要把影像改成影像按鈕嗎?', + urlMissing : 'Image source URL is missing.', // MISSING + validateBorder : 'Border must be a whole number.', // MISSING + validateHSpace : 'HSpace must be a whole number.', // MISSING + validateVSpace : 'VSpace must be a whole number.' // MISSING + }, + + // Flash Dialog + flash : + { + properties : 'Flash 屬性', + propertiesTab : '屬性', + title : 'Flash 屬性', + chkPlay : '自動播放', + chkLoop : '重複', + chkMenu : '開啟選單', + chkFull : '啟動全螢幕顯示', + scale : '縮放', + scaleAll : '全部顯示', + scaleNoBorder : '無邊框', + scaleFit : '精確符合', + access : '允許腳本訪問', + accessAlways : '永遠', + accessSameDomain: '相同域名', + accessNever : '永不', + alignAbsBottom : '絕對下方', + alignAbsMiddle : '絕對中間', + alignBaseline : '基準線', + alignTextTop : '文字上方', + quality : '質素', + qualityBest : '最好', + qualityHigh : '高', + qualityAutoHigh : '高(自動)', + qualityMedium : '中(自動)', + qualityAutoLow : '低(自動)', + qualityLow : '低', + windowModeWindow: '視窗', + windowModeOpaque: '不透明', + windowModeTransparent : '透明', + windowMode : '視窗模式', + flashvars : 'Flash 變數', + bgcolor : '背景顏色', + hSpace : '水平距離', + vSpace : '垂直距離', + validateSrc : '請輸入欲連結的 URL', + validateHSpace : '水平間距必須為數字格式', + validateVSpace : '垂直間距必須為數字格式' + }, + + // Speller Pages Dialog + spellCheck : + { + toolbar : '拼字檢查', + title : '拼字檢查', + notAvailable : '抱歉,服務目前暫不可用', + errorLoading : '無法聯系侍服器: %s.', + notInDic : '不在字典中', + changeTo : '更改為', + btnIgnore : '忽略', + btnIgnoreAll : '全部忽略', + btnReplace : '取代', + btnReplaceAll : '全部取代', + btnUndo : '復原', + noSuggestions : '- 無建議值 -', + progress : '進行拼字檢查中…', + noMispell : '拼字檢查完成:未發現拼字錯誤', + noChanges : '拼字檢查完成:未更改任何單字', + oneChange : '拼字檢查完成:更改了 1 個單字', + manyChanges : '拼字檢查完成:更改了 %1 個單字', + ieSpellDownload : '尚未安裝拼字檢查元件。您是否想要現在下載?' + }, + + smiley : + { + toolbar : '表情符號', + title : '插入表情符號', + options : 'Smiley Options' // MISSING + }, + + elementsPath : + { + eleLabel : 'Elements path', // MISSING + eleTitle : '%1 元素' + }, + + numberedlist : '編號清單', + bulletedlist : '項目清單', + indent : '增加縮排', + outdent : '減少縮排', + + justify : + { + left : '靠左對齊', + center : '置中', + right : '靠右對齊', + block : '左右對齊' + }, + + blockquote : '引用文字', + + clipboard : + { + title : '貼上', + cutError : '瀏覽器的安全性設定不允許編輯器自動執行剪下動作。請使用快捷鍵 (Ctrl/Cmd+X) 剪下。', + copyError : '瀏覽器的安全性設定不允許編輯器自動執行複製動作。請使用快捷鍵 (Ctrl/Cmd+C) 複製。', + pasteMsg : '請使用快捷鍵 (<strong>Ctrl/Cmd+V</strong>) 貼到下方區域中並按下 <strong>確定</strong>', + securityMsg : '因為瀏覽器的安全性設定,本編輯器無法直接存取您的剪貼簿資料,請您自行在本視窗進行貼上動作。', + pasteArea : 'Paste Area' // MISSING + }, + + pastefromword : + { + confirmCleanup : '您想貼上的文字似乎是自 Word 複製而來,請問您是否要先清除 Word 的格式後再行貼上?', + toolbar : '自 Word 貼上', + title : '自 Word 貼上', + error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING + }, + + pasteText : + { + button : '貼為純文字格式', + title : '貼為純文字格式' + }, + + templates : + { + button : '樣版', + title : '內容樣版', + options : 'Template Options', // MISSING + insertOption : '取代原有內容', + selectPromptMsg : '請選擇欲開啟的樣版<br> (原有的內容將會被清除):', + emptyListMsg : '(無樣版)' + }, + + showBlocks : '顯示區塊', + + stylesCombo : + { + label : '樣式', + panelTitle : 'Formatting Styles', // MISSING + panelTitle1 : '塊級元素樣式', + panelTitle2 : '內聯元素樣式', + panelTitle3 : '物件元素樣式' + }, + + format : + { + label : '格式', + panelTitle : '格式', + + tag_p : '一般', + tag_pre : '已格式化', + tag_address : '位址', + tag_h1 : '標題 1', + tag_h2 : '標題 2', + tag_h3 : '標題 3', + tag_h4 : '標題 4', + tag_h5 : '標題 5', + tag_h6 : '標題 6', + tag_div : '一般 (DIV)' + }, + + div : + { + title : 'Create Div Container', // MISSING + toolbar : 'Create Div Container', // MISSING + cssClassInputLabel : 'Stylesheet Classes', // MISSING + styleSelectLabel : 'Style', // MISSING + IdInputLabel : 'Id', // MISSING + languageCodeInputLabel : ' Language Code', // MISSING + inlineStyleInputLabel : 'Inline Style', // MISSING + advisoryTitleInputLabel : 'Advisory Title', // MISSING + langDirLabel : 'Language Direction', // MISSING + langDirLTRLabel : 'Left to Right (LTR)', // MISSING + langDirRTLLabel : 'Right to Left (RTL)', // MISSING + edit : 'Edit Div', // MISSING + remove : 'Remove Div' // MISSING + }, + + iframe : + { + title : 'IFrame Properties', // MISSING + toolbar : 'IFrame', // MISSING + noUrl : 'Please type the iframe URL', // MISSING + scrolling : 'Enable scrollbars', // MISSING + border : 'Show frame border' // MISSING + }, + + font : + { + label : '字體', + voiceLabel : '字體', + panelTitle : '字體' + }, + + fontSize : + { + label : '大小', + voiceLabel : '文字大小', + panelTitle : '大小' + }, + + colorButton : + { + textColorTitle : '文字顏色', + bgColorTitle : '背景顏色', + panelTitle : 'Colors', // MISSING + auto : '自動', + more : '更多顏色…' + }, + + colors : + { + '000' : 'Black', // MISSING + '800000' : 'Maroon', // MISSING + '8B4513' : 'Saddle Brown', // MISSING + '2F4F4F' : 'Dark Slate Gray', // MISSING + '008080' : 'Teal', // MISSING + '000080' : 'Navy', // MISSING + '4B0082' : 'Indigo', // MISSING + '696969' : 'Dark Gray', // MISSING + 'B22222' : 'Fire Brick', // MISSING + 'A52A2A' : 'Brown', // MISSING + 'DAA520' : 'Golden Rod', // MISSING + '006400' : 'Dark Green', // MISSING + '40E0D0' : 'Turquoise', // MISSING + '0000CD' : 'Medium Blue', // MISSING + '800080' : 'Purple', // MISSING + '808080' : 'Gray', // MISSING + 'F00' : 'Red', // MISSING + 'FF8C00' : 'Dark Orange', // MISSING + 'FFD700' : 'Gold', // MISSING + '008000' : 'Green', // MISSING + '0FF' : 'Cyan', // MISSING + '00F' : 'Blue', // MISSING + 'EE82EE' : 'Violet', // MISSING + 'A9A9A9' : 'Dim Gray', // MISSING + 'FFA07A' : 'Light Salmon', // MISSING + 'FFA500' : 'Orange', // MISSING + 'FFFF00' : 'Yellow', // MISSING + '00FF00' : 'Lime', // MISSING + 'AFEEEE' : 'Pale Turquoise', // MISSING + 'ADD8E6' : 'Light Blue', // MISSING + 'DDA0DD' : 'Plum', // MISSING + 'D3D3D3' : 'Light Grey', // MISSING + 'FFF0F5' : 'Lavender Blush', // MISSING + 'FAEBD7' : 'Antique White', // MISSING + 'FFFFE0' : 'Light Yellow', // MISSING + 'F0FFF0' : 'Honeydew', // MISSING + 'F0FFFF' : 'Azure', // MISSING + 'F0F8FF' : 'Alice Blue', // MISSING + 'E6E6FA' : 'Lavender', // MISSING + 'FFF' : 'White' // MISSING + }, + + scayt : + { + title : '即時拼寫檢查', + opera_title : 'Not supported by Opera', // MISSING + enable : '啟用即時拼寫檢查', + disable : '關閉即時拼寫檢查', + about : '關於即時拼寫檢查', + toggle : '啟用/關閉即時拼寫檢查', + options : '選項', + langs : '語言', + moreSuggestions : '更多拼寫建議', + ignore : '忽略', + ignoreAll : '全部忽略', + addWord : '添加單詞', + emptyDic : '字典名不應為空.', + + optionsTab : '選項', + allCaps : 'Ignore All-Caps Words', // MISSING + ignoreDomainNames : 'Ignore Domain Names', // MISSING + mixedCase : 'Ignore Words with Mixed Case', // MISSING + mixedWithDigits : 'Ignore Words with Numbers', // MISSING + + languagesTab : '語言', + + dictionariesTab : '字典', + dic_field_name : 'Dictionary name', // MISSING + dic_create : 'Create', // MISSING + dic_restore : 'Restore', // MISSING + dic_delete : 'Delete', // MISSING + dic_rename : 'Rename', // MISSING + dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING + + aboutTab : '關於' + }, + + about : + { + title : '關於 CKEditor', + dlgTitle : '關於 CKEditor', + help : 'Check $1 for help.', // MISSING + userGuide : 'CKEditor User\'s Guide', // MISSING + moreInfo : '訪問我們的網站以獲取更多關於協議的信息', + copy : 'Copyright © $1. All rights reserved.' + }, + + maximize : '最大化', + minimize : '最小化', + + fakeobjects : + { + anchor : '錨點', + flash : 'Flash 動畫', + iframe : 'IFrame', // MISSING + hiddenfield : 'Hidden Field', // MISSING + unknown : '不明物件' + }, + + resize : '拖拽改變大小', + + colordialog : + { + title : 'Select color', // MISSING + options : 'Color Options', // MISSING + highlight : 'Highlight', // MISSING + selected : 'Selected Color', // MISSING + clear : 'Clear' // MISSING + }, + + toolbarCollapse : '折叠工具栏', + toolbarExpand : '展开工具栏', + + toolbarGroups : + { + document : 'Document', // MISSING + clipboard : 'Clipboard/Undo', // MISSING + editing : 'Editing', // MISSING + forms : 'Forms', // MISSING + basicstyles : 'Basic Styles', // MISSING + paragraph : 'Paragraph', // MISSING + links : 'Links', // MISSING + insert : 'Insert', // MISSING + styles : 'Styles', // MISSING + colors : 'Colors', // MISSING + tools : 'Tools' // MISSING + }, + + bidi : + { + ltr : 'Text direction from left to right', // MISSING + rtl : 'Text direction from right to left' // MISSING + }, + + docprops : + { + label : '文件屬性', + title : '文件屬性', + design : 'Design', // MISSING + meta : 'Meta 資料', + chooseColor : 'Choose', // MISSING + other : '<其他>', + docTitle : '頁面標題', + charset : '字元編碼', + charsetOther : '其他字元編碼', + charsetASCII : 'ASCII', // MISSING + charsetCE : '中歐語系', + charsetCT : '正體中文 (Big5)', + charsetCR : '斯拉夫文', + charsetGR : '希臘文', + charsetJP : '日文', + charsetKR : '韓文', + charsetTR : '土耳其文', + charsetUN : 'Unicode (UTF-8)', // MISSING + charsetWE : '西歐語系', + docType : '文件類型', + docTypeOther : '其他文件類型', + xhtmlDec : '包含 XHTML 定義', + bgColor : '背景顏色', + bgImage : '背景影像', + bgFixed : '浮水印', + txtColor : '文字顏色', + margin : '頁面邊界', + marginTop : '上', + marginLeft : '左', + marginRight : '右', + marginBottom : '下', + metaKeywords : '文件索引關鍵字 (用半形逗號[,]分隔)', + metaDescription : '文件說明', + metaAuthor : '作者', + metaCopyright : '版權所有', + previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING + } +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js new file mode 100644 index 0000000000000000000000000000000000000000..15bee48d4b00899a5b271b802acc3377f781d0f8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js @@ -0,0 +1,222 @@ +/* +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 ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/_translationstatus.txt b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/_translationstatus.txt new file mode 100644 index 0000000000000000000000000000000000000000..7a490f98ecab86413112dc80cbb3fb9a0855d64a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/_translationstatus.txt @@ -0,0 +1,25 @@ +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license + +cs.js Found: 30 Missing: 0 +cy.js Found: 30 Missing: 0 +da.js Found: 12 Missing: 18 +de.js Found: 30 Missing: 0 +el.js Found: 25 Missing: 5 +eo.js Found: 30 Missing: 0 +fa.js Found: 30 Missing: 0 +fi.js Found: 30 Missing: 0 +fr.js Found: 30 Missing: 0 +gu.js Found: 12 Missing: 18 +he.js Found: 30 Missing: 0 +it.js Found: 30 Missing: 0 +mk.js Found: 5 Missing: 25 +nb.js Found: 30 Missing: 0 +nl.js Found: 30 Missing: 0 +no.js Found: 30 Missing: 0 +pt-br.js Found: 30 Missing: 0 +ro.js Found: 6 Missing: 24 +tr.js Found: 30 Missing: 0 +ug.js Found: 27 Missing: 3 +vi.js Found: 6 Missing: 24 +zh-cn.js Found: 30 Missing: 0 diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/cs.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/cs.js new file mode 100644 index 0000000000000000000000000000000000000000..711a675bf5549f0440cac9ac2101c09c7b29e9a5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/cs.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/cy.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/cy.js new file mode 100644 index 0000000000000000000000000000000000000000..e9d6362cf17976c646077804de7da873bfd286fe --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/cy.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/da.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/da.js new file mode 100644 index 0000000000000000000000000000000000000000..70eaaa2943f6077eec614387d8839f86f41fbb0d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/da.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/de.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/de.js new file mode 100644 index 0000000000000000000000000000000000000000..2feea16c4dab5bce60e28c98be252f4c8ec07f9e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/de.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/el.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/el.js new file mode 100644 index 0000000000000000000000000000000000000000..4d3c852ac5c9da0f055772bab78941a29203433d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/el.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/en.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/en.js new file mode 100644 index 0000000000000000000000000000000000000000..7a7860881e2507241ac63670ce5d589509bc2305 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/en.js @@ -0,0 +1,108 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/eo.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..58af07ec5f931e45e231e48bd36632c2ee08edd6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/eo.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fa.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fa.js new file mode 100644 index 0000000000000000000000000000000000000000..bbec6bf4ecc739b50d5c9ad13412550463236e69 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fa.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fi.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..718b046eaada90669230bef6699e99b16e51a1f2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fi.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fr.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..05251418c96897a7bdcc2467f6ad018bad698fa3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/fr.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/gu.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/gu.js new file mode 100644 index 0000000000000000000000000000000000000000..9fd170c6957b186005cc37acd091ac30042bfb63 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/gu.js @@ -0,0 +1,89 @@ +/* +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 + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/he.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/he.js new file mode 100644 index 0000000000000000000000000000000000000000..7161e4dc4d886700deb98815e1c9f7dd624bf0b6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/he.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/it.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/it.js new file mode 100644 index 0000000000000000000000000000000000000000..848d03ff0dadf304f979e5fc0e5be90013a035bd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/it.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/mk.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/mk.js new file mode 100644 index 0000000000000000000000000000000000000000..36d1aba18a15ca4801f1584c95ccabf9d6b00226 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/mk.js @@ -0,0 +1,89 @@ +/* +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 + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/nb.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..dc4966be12ad4bc48e1ef6d429f417789731d1f8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/nb.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/nl.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..61b2989feceb1d146e259037a137dc36d30f3990 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/nl.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/no.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/no.js new file mode 100644 index 0000000000000000000000000000000000000000..8fe719ef4df3bb9348044bf1bf0ae506e2605227 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/no.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/pt-br.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/pt-br.js new file mode 100644 index 0000000000000000000000000000000000000000..997760d2b810549923ad76a9956c5396249102d6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/pt-br.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/ro.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/ro.js new file mode 100644 index 0000000000000000000000000000000000000000..b0a30e648c586f718bafbe2182ae190a0985a11a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/ro.js @@ -0,0 +1,89 @@ +/* +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 + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/tr.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..34c1a463e65071057b68886f94f24b212d24da16 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/tr.js @@ -0,0 +1,89 @@ +/* +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' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/ug.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/ug.js new file mode 100644 index 0000000000000000000000000000000000000000..6e9a84af72086eb392c9dd4d74ef0e8575cdd8e8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/ug.js @@ -0,0 +1,89 @@ +/* +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} نى بېسىڭ' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/vi.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/vi.js new file mode 100644 index 0000000000000000000000000000000000000000..c045369e93ad94702384f1d724364de18eb9c08c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/vi.js @@ -0,0 +1,89 @@ +/* +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 + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/zh-cn.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/zh-cn.js new file mode 100644 index 0000000000000000000000000000000000000000..a595f6fe55531a1c52c3cc4f51190d39d5229fa7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/lang/zh-cn.js @@ -0,0 +1,89 @@ +/* +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}' + } + ] + } + ] + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/a11yhelp/plugin.js b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..be3377d0f126a81f6283d04ab51979ea7b680882 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/a11yhelp/plugin.js @@ -0,0 +1,49 @@ +/* +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, 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' ); + } + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/about/dialogs/about.js b/htdocs/includes/ckeditor/_source/plugins/about/dialogs/about.js new file mode 100644 index 0000000000000000000000000000000000000000..53b4b0ac520b991dbc4cdd84f59ada08e4c60d43 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/about/dialogs/about.js @@ -0,0 +1,76 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'about', function( editor ) +{ + var lang = editor.lang.about; + + return { + title : CKEDITOR.env.ie ? lang.dlgTitle : lang.title, + minWidth : 390, + minHeight : 230, + contents : [ + { + id : 'tab1', + label : '', + title : '', + expand : true, + padding : 0, + elements : + [ + { + type : 'html', + html : + '<style type="text/css">' + + '.cke_about_container' + + '{' + + 'color:#000 !important;' + + 'padding:10px 10px 0;' + + 'margin-top:5px' + + '}' + + '.cke_about_container p' + + '{' + + 'margin: 0 0 10px;' + + '}' + + '.cke_about_container .cke_about_logo' + + '{' + + 'height:81px;' + + 'background-color:#fff;' + + 'background-image:url(' + CKEDITOR.plugins.get( 'about' ).path + 'dialogs/logo_ckeditor.png);' + + 'background-position:center; ' + + 'background-repeat:no-repeat;' + + 'margin-bottom:10px;' + + '}' + + '.cke_about_container a' + + '{' + + 'cursor:pointer !important;' + + 'color:blue !important;' + + 'text-decoration:underline !important;' + + '}' + + '</style>' + + '<div class="cke_about_container">' + + '<div class="cke_about_logo"></div>' + + '<p>' + + 'CKEditor ' + CKEDITOR.version + ' (revision ' + CKEDITOR.revision + ')<br>' + + '<a href="http://ckeditor.com/">http://ckeditor.com</a>' + + '</p>' + + '<p>' + + lang.help.replace( '$1', '<a href="http://docs.cksource.com/CKEditor_3.x/Users_Guide/Quick_Reference">' + lang.userGuide + '</a>' ) + + '</p>' + + '<p>' + + lang.moreInfo + '<br>' + + '<a href="http://ckeditor.com/license">http://ckeditor.com/license</a>' + + '</p>' + + '<p>' + + lang.copy.replace( '$1', '<a href="http://cksource.com/">CKSource</a> - Frederico Knabben' ) + + '</p>' + + '</div>' + } + ] + } + ], + buttons : [ CKEDITOR.dialog.cancelButton ] + }; +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png b/htdocs/includes/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png new file mode 100644 index 0000000000000000000000000000000000000000..ad0190218c15869fc273b2b5b8e476405bcdab97 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/about/plugin.js b/htdocs/includes/ckeditor/_source/plugins/about/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..40eae7eeb1042ac4eb0b5a42e454010af7e3be44 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/about/plugin.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'about', +{ + requires : [ 'dialog' ], + init : function( editor ) + { + var command = editor.addCommand( 'about', new CKEDITOR.dialogCommand( 'about' ) ); + command.modes = { wysiwyg:1, source:1 }; + command.canUndo = false; + command.readOnly = 1; + + editor.ui.addButton( 'About', + { + label : editor.lang.about.title, + command : 'about' + }); + + CKEDITOR.dialog.add( 'about', this.path + 'dialogs/about.js' ); + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/adobeair/plugin.js b/htdocs/includes/ckeditor/_source/plugins/adobeair/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..065cde074af68c50224bf725a33473c5180164fd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/adobeair/plugin.js @@ -0,0 +1,228 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var eventNameList = [ 'click', 'keydown', 'mousedown', 'keypress', 'mouseover', 'mouseout' ]; + + // Inline event callbacks assigned via innerHTML/outerHTML, such as + // onclick/onmouseover, are ignored in AIR. + // Use DOM2 event listeners to substitue inline handlers instead. + function convertInlineHandlers( container ) + { + // TODO: document.querySelectorAll is not supported in AIR. + var children = container.getElementsByTag( '*' ), + count = children.count(), + child; + + for ( var i = 0; i < count; i++ ) + { + child = children.getItem( i ); + + (function( node ) + { + for ( var j = 0; j < eventNameList.length; j++ ) + { + (function( eventName ) + { + var inlineEventHandler = node.getAttribute( 'on' + eventName ); + if ( node.hasAttribute( 'on' + eventName ) ) + { + node.removeAttribute( 'on' + eventName ); + node.on( eventName, function( evt ) + { + var callFunc = /(return\s*)?CKEDITOR\.tools\.callFunction\(([^)]+)\)/.exec( inlineEventHandler ), + hasReturn = callFunc && callFunc[ 1 ], + callFuncArgs = callFunc && callFunc[ 2 ].split( ',' ), + preventDefault = /return false;/.test( inlineEventHandler ); + + if ( callFuncArgs ) + { + var nums = callFuncArgs.length, + argName; + + for ( var i = 0; i < nums; i++ ) + { + // Trim spaces around param. + callFuncArgs[ i ] = argName = CKEDITOR.tools.trim( callFuncArgs[ i ] ); + + // String form param. + var strPattern = argName.match( /^(["'])([^"']*?)\1$/ ); + if ( strPattern ) + { + callFuncArgs[ i ] = strPattern[ 2 ]; + continue; + } + + // Integer form param. + if ( argName.match( /\d+/ ) ) + { + callFuncArgs[ i ] = parseInt( argName, 10 ); + continue; + } + + // Speical variables. + switch( argName ) + { + case 'this' : + callFuncArgs[ i ] = node.$; + break; + case 'event' : + callFuncArgs[ i ] = evt.data.$; + break; + case 'null' : + callFuncArgs [ i ] = null; + break; + } + } + + var retval = CKEDITOR.tools.callFunction.apply( window, callFuncArgs ); + if ( hasReturn && retval === false ) + preventDefault = 1; + } + + if ( preventDefault ) + evt.data.preventDefault(); + }); + } + })( eventNameList[ j ] ); + } + })( child ); + } + } + + CKEDITOR.plugins.add( 'adobeair', + { + init : function( editor ) + { + if ( !CKEDITOR.env.air ) + return; + + // Body doesn't get default margin on AIR. + editor.addCss( 'body { padding: 8px }' ); + + editor.on( 'uiReady', function() + { + convertInlineHandlers( editor.container ); + + if ( editor.sharedSpaces ) + { + for ( var space in editor.sharedSpaces ) + convertInlineHandlers( editor.sharedSpaces[ space ] ); + } + + editor.on( 'elementsPathUpdate', function( evt ) { convertInlineHandlers( evt.data.space ); } ); + }); + + editor.on( 'contentDom', function() + { + // Hyperlinks are enabled in editable documents in Adobe + // AIR. Prevent their click behavior. + editor.document.on( 'click', function( ev ) + { + ev.data.preventDefault( true ); + }); + }); + } + }); + + CKEDITOR.ui.on( 'ready', function( evt ) + { + var ui = evt.data; + // richcombo, panelbutton and menu + if ( ui._.panel ) + { + var panel = ui._.panel._.panel, + holder; + + ( function() + { + // Adding dom event listeners off-line are not supported in AIR, + // waiting for panel iframe loaded. + if ( !panel.isLoaded ) + { + setTimeout( arguments.callee, 30 ); + return; + } + holder = panel._.holder; + convertInlineHandlers( holder ); + })(); + } + else if ( ui instanceof CKEDITOR.dialog ) + convertInlineHandlers( ui._.element ); + }); +})(); + +CKEDITOR.dom.document.prototype.write = CKEDITOR.tools.override( CKEDITOR.dom.document.prototype.write, + function( original_write ) + { + function appendElement( parent, tagName, fullTag, text ) + { + var node = parent.append( tagName ), + attrs = CKEDITOR.htmlParser.fragment.fromHtml( fullTag ).children[ 0 ].attributes; + attrs && node.setAttributes( attrs ); + text && node.append( parent.getDocument().createText( text ) ); + } + + return function( html, mode ) + { + // document.write() or document.writeln() fail silently after + // the page load event in Adobe AIR. + // DOM manipulation could be used instead. + if ( this.getBody() ) + { + // We're taking the below extra work only because innerHTML + // on <html> element doesn't work as expected. + var doc = this, + head = this.getHead(); + + // Create style nodes for inline css. ( <style> content doesn't applied when setting via innerHTML ) + html = html.replace( /(<style[^>]*>)([\s\S]*?)<\/style>/gi, + function ( match, startTag, styleText ) + { + appendElement( head, 'style', startTag, styleText ); + return ''; + }); + + html = html.replace( /<base\b[^>]*\/>/i, + function( match ) + { + appendElement( head, 'base', match ); + return ''; + }); + + html = html.replace( /<title>([\s\S]*)<\/title>/i, + function( match, title ) + { + doc.$.title = title; + return ''; + }); + + // Move the rest of head stuff. + html = html.replace( /<head>([\s\S]*)<\/head>/i, + function( headHtml ) + { + // Inject the <head> HTML inside a <div>. + // Do that before getDocumentHead because WebKit moves + // <link css> elements to the <head> at this point. + var div = new CKEDITOR.dom.element( 'div', doc ); + div.setHtml( headHtml ); + // Move the <div> nodes to <head>. + div.moveChildren( head ); + return ''; + }); + + html.replace( /(<body[^>]*>)([\s\S]*)(?=$|<\/body>)/i, + function( match, startTag, innerHTML ) + { + doc.getBody().setHtml( innerHTML ); + var attrs = CKEDITOR.htmlParser.fragment.fromHtml( startTag ).children[ 0 ].attributes; + attrs && doc.getBody().setAttributes( attrs ); + }); + } + else + original_write.apply( this, arguments ); + }; + }); diff --git a/htdocs/includes/ckeditor/_source/plugins/ajax/plugin.js b/htdocs/includes/ckeditor/_source/plugins/ajax/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..1c032a9336ae41f2caa0a42559db074d7ba7b10d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/ajax/plugin.js @@ -0,0 +1,152 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.ajax} object, which holds ajax methods for + * data loading. + */ + +(function() +{ + CKEDITOR.plugins.add( 'ajax', + { + requires : [ 'xml' ] + }); + + /** + * Ajax methods for data loading. + * @namespace + * @example + */ + CKEDITOR.ajax = (function() + { + var createXMLHttpRequest = function() + { + // In IE, using the native XMLHttpRequest for local files may throw + // "Access is Denied" errors. + if ( !CKEDITOR.env.ie || location.protocol != 'file:' ) + try { return new XMLHttpRequest(); } catch(e) {} + + try { return new ActiveXObject( 'Msxml2.XMLHTTP' ); } catch (e) {} + try { return new ActiveXObject( 'Microsoft.XMLHTTP' ); } catch (e) {} + + return null; + }; + + var checkStatus = function( xhr ) + { + // HTTP Status Codes: + // 2xx : Success + // 304 : Not Modified + // 0 : Returned when running locally (file://) + // 1223 : IE may change 204 to 1223 (see http://dev.jquery.com/ticket/1450) + + return ( xhr.readyState == 4 && + ( ( xhr.status >= 200 && xhr.status < 300 ) || + xhr.status == 304 || + xhr.status === 0 || + xhr.status == 1223 ) ); + }; + + var getResponseText = function( xhr ) + { + if ( checkStatus( xhr ) ) + return xhr.responseText; + return null; + }; + + var getResponseXml = function( xhr ) + { + if ( checkStatus( xhr ) ) + { + var xml = xhr.responseXML; + return new CKEDITOR.xml( xml && xml.firstChild ? xml : xhr.responseText ); + } + return null; + }; + + var load = function( url, callback, getResponseFn ) + { + var async = !!callback; + + var xhr = createXMLHttpRequest(); + + if ( !xhr ) + return null; + + xhr.open( 'GET', url, async ); + + if ( async ) + { + // TODO: perform leak checks on this closure. + /** @ignore */ + xhr.onreadystatechange = function() + { + if ( xhr.readyState == 4 ) + { + callback( getResponseFn( xhr ) ); + xhr = null; + } + }; + } + + xhr.send(null); + + return async ? '' : getResponseFn( xhr ); + }; + + return /** @lends CKEDITOR.ajax */ { + + /** + * Loads data from an URL as plain text. + * @param {String} url The URL from which load data. + * @param {Function} [callback] A callback function to be called on + * data load. If not provided, the data will be loaded + * synchronously. + * @returns {String} The loaded data. For asynchronous requests, an + * empty string. For invalid requests, null. + * @example + * // Load data synchronously. + * var data = CKEDITOR.ajax.load( 'somedata.txt' ); + * alert( data ); + * @example + * // Load data asynchronously. + * var data = CKEDITOR.ajax.load( 'somedata.txt', function( data ) + * { + * alert( data ); + * } ); + */ + load : function( url, callback ) + { + return load( url, callback, getResponseText ); + }, + + /** + * Loads data from an URL as XML. + * @param {String} url The URL from which load data. + * @param {Function} [callback] A callback function to be called on + * data load. If not provided, the data will be loaded + * synchronously. + * @returns {CKEDITOR.xml} An XML object holding the loaded data. For asynchronous requests, an + * empty string. For invalid requests, null. + * @example + * // Load XML synchronously. + * var xml = CKEDITOR.ajax.loadXml( 'somedata.xml' ); + * alert( xml.getInnerXml( '//' ) ); + * @example + * // Load XML asynchronously. + * var data = CKEDITOR.ajax.loadXml( 'somedata.xml', function( xml ) + * { + * alert( xml.getInnerXml( '//' ) ); + * } ); + */ + loadXml : function( url, callback ) + { + return load( url, callback, getResponseXml ); + } + }; + })(); + +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/autogrow/plugin.js b/htdocs/includes/ckeditor/_source/plugins/autogrow/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..fdbb5786787cdc09b567d3386743ca1b3d5d25fe --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/autogrow/plugin.js @@ -0,0 +1,141 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file AutoGrow plugin + */ +(function(){ + + // Actual content height, figured out by appending check the last element's document position. + function contentHeight( scrollable ) + { + var overflowY = scrollable.getStyle( 'overflow-y' ); + + var doc = scrollable.getDocument(); + // Create a temporary marker element. + var marker = CKEDITOR.dom.element.createFromHtml( '<span style="margin:0;padding:0;border:0;clear:both;width:1px;height:1px;display:block;">' + ( CKEDITOR.env.webkit ? ' ' : '' ) + '</span>', doc ); + doc[ CKEDITOR.env.ie? 'getBody' : 'getDocumentElement']().append( marker ); + + var height = marker.getDocumentPosition( doc ).y + marker.$.offsetHeight; + marker.remove(); + scrollable.setStyle( 'overflow-y', overflowY ); + return height; + } + + var resizeEditor = function( editor ) + { + if ( !editor.window ) + return; + + var doc = editor.document, + iframe = new CKEDITOR.dom.element( doc.getWindow().$.frameElement ), + body = doc.getBody(), + htmlElement = doc.getDocumentElement(), + currentHeight = editor.window.getViewPaneSize().height, + // Quirks mode overflows body, standards overflows document element + scrollable = doc.$.compatMode == 'BackCompat' ? body : htmlElement, + newHeight = contentHeight( scrollable ); + + // Additional space specified by user. + newHeight += ( editor.config.autoGrow_bottomSpace || 0 ); + + var min = editor.config.autoGrow_minHeight != undefined ? editor.config.autoGrow_minHeight : 200, + max = editor.config.autoGrow_maxHeight || Infinity; + + newHeight = Math.max( newHeight, min ); + newHeight = Math.min( newHeight, max ); + + if ( newHeight != currentHeight ) + { + newHeight = editor.fire( 'autoGrow', { currentHeight : currentHeight, newHeight : newHeight } ).newHeight; + editor.resize( editor.container.getStyle( 'width' ), newHeight, true ); + } + + if ( scrollable.$.scrollHeight > scrollable.$.clientHeight && newHeight < max ) + scrollable.setStyle( 'overflow-y', 'hidden' ); + else + scrollable.removeStyle( 'overflow-y' ); + + + }; + + CKEDITOR.plugins.add( 'autogrow', + { + init : function( editor ) + { + editor.addCommand( 'autogrow', { exec : resizeEditor, modes : { wysiwyg:1 }, readOnly: 1, canUndo: false, editorFocus: false } ); + + var eventsList = { contentDom:1, key:1, selectionChange:1, insertElement:1, mode:1 }; + editor.config.autoGrow_onStartup && ( eventsList[ 'instanceReady' ] = 1 ); + for ( var eventName in eventsList ) + { + editor.on( eventName, function( evt ) + { + var maximize = editor.getCommand( 'maximize' ); + // Some time is required for insertHtml, and it gives other events better performance as well. + if ( evt.editor.mode == 'wysiwyg' && + // Disable autogrow when the editor is maximized .(#6339) + ( !maximize || maximize.state != CKEDITOR.TRISTATE_ON ) ) + { + setTimeout( function() + { + resizeEditor( evt.editor ); + // Second pass to make correction upon + // the first resize, e.g. scrollbar. + resizeEditor( evt.editor ); + }, 100 ); + } + }); + } + } + }); +})(); +/** + * The minimum height that the editor can reach using the AutoGrow feature. + * @name CKEDITOR.config.autoGrow_minHeight + * @type Number + * @default <code>200</code> + * @since 3.4 + * @example + * config.autoGrow_minHeight = 300; + */ + +/** + * The maximum height that the editor can reach using the AutoGrow feature. Zero means unlimited. + * @name CKEDITOR.config.autoGrow_maxHeight + * @type Number + * @default <code>0</code> + * @since 3.4 + * @example + * config.autoGrow_maxHeight = 400; + */ + + /** + * Whether to have the auto grow happen on editor creation. + * @name CKEDITOR.config.autoGrow_onStartup + * @type Boolean + * @default false + * @since 3.6.2 + * @example + * config.autoGrow_onStartup = true; + */ + +/** + * Fired when the AutoGrow plugin is about to change the size of the editor. + * @name CKEDITOR.editor#autogrow + * @event + * @param {Number} data.currentHeight The current height of the editor (before resizing). + * @param {Number} data.newHeight The new height of the editor (after resizing). It can be changed + * to determine a different height value to be used instead. + */ + + +/** + * Extra height in pixel to leave between the bottom boundary of content with document size when auto resizing. + * @name CKEDITOR.config.autoGrow_bottomSpace + * @type Number + * @default 0 + * @since 3.6.2 + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/basicstyles/plugin.js b/htdocs/includes/ckeditor/_source/plugins/basicstyles/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..b3f64fbbe754a76d86cea09336841214a4ca0678 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/basicstyles/plugin.js @@ -0,0 +1,129 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'basicstyles', +{ + 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, styleDefiniton ) + { + var style = new CKEDITOR.style( styleDefiniton ); + + editor.attachStyleStateChange( style, function( state ) + { + !editor.readOnly && editor.getCommand( commandName ).setState( state ); + }); + + editor.addCommand( commandName, new CKEDITOR.styleCommand( style ) ); + + editor.ui.addButton( buttonName, + { + label : buttonLabel, + command : commandName + }); + }; + + var config = editor.config, + lang = editor.lang; + + addButtonCommand( 'Bold' , lang.bold , 'bold' , config.coreStyles_bold ); + addButtonCommand( 'Italic' , lang.italic , 'italic' , config.coreStyles_italic ); + addButtonCommand( 'Underline' , lang.underline , 'underline' , config.coreStyles_underline ); + addButtonCommand( 'Strike' , lang.strike , 'strike' , config.coreStyles_strike ); + addButtonCommand( 'Subscript' , lang.subscript , 'subscript' , config.coreStyles_subscript ); + addButtonCommand( 'Superscript' , lang.superscript , 'superscript' , config.coreStyles_superscript ); + } +}); + +// Basic Inline Styles. + +/** + * The style definition that applies the <strong>bold</strong> style to the text. + * @type Object + * @default <code>{ element : 'strong', overrides : 'b' }</code> + * @example + * config.coreStyles_bold = { element : 'b', overrides : 'strong' }; + * @example + * config.coreStyles_bold = + * { + * element : 'span', + * attributes : { 'class' : 'Bold' } + * }; + */ +CKEDITOR.config.coreStyles_bold = { element : 'strong', overrides : 'b' }; + +/** + * The style definition that applies the <em>italics</em> style to the text. + * @type Object + * @default <code>{ element : 'em', overrides : 'i' }</code> + * @example + * config.coreStyles_italic = { element : 'i', overrides : 'em' }; + * @example + * CKEDITOR.config.coreStyles_italic = + * { + * element : 'span', + * attributes : { 'class' : 'Italic' } + * }; + */ +CKEDITOR.config.coreStyles_italic = { element : 'em', overrides : 'i' }; + +/** + * The style definition that applies the <u>underline</u> style to the text. + * @type Object + * @default <code>{ element : 'u' }</code> + * @example + * CKEDITOR.config.coreStyles_underline = + * { + * element : 'span', + * attributes : { 'class' : 'Underline' } + * }; + */ +CKEDITOR.config.coreStyles_underline = { element : 'u' }; + +/** + * The style definition that applies the <strike>strike-through</strike> style to the text. + * @type Object + * @default <code>{ element : 'strike' }</code> + * @example + * CKEDITOR.config.coreStyles_strike = + * { + * element : 'span', + * attributes : { 'class' : 'StrikeThrough' }, + * overrides : 'strike' + * }; + */ +CKEDITOR.config.coreStyles_strike = { element : 'strike' }; + +/** + * The style definition that applies the subscript style to the text. + * @type Object + * @default <code>{ element : 'sub' }</code> + * @example + * CKEDITOR.config.coreStyles_subscript = + * { + * element : 'span', + * attributes : { 'class' : 'Subscript' }, + * overrides : 'sub' + * }; + */ +CKEDITOR.config.coreStyles_subscript = { element : 'sub' }; + +/** + * The style definition that applies the superscript style to the text. + * @type Object + * @default <code>{ element : 'sup' }</code> + * @example + * CKEDITOR.config.coreStyles_superscript = + * { + * element : 'span', + * attributes : { 'class' : 'Superscript' }, + * overrides : 'sup' + * }; + */ +CKEDITOR.config.coreStyles_superscript = { element : 'sup' }; diff --git a/htdocs/includes/ckeditor/_source/plugins/bbcode/plugin.js b/htdocs/includes/ckeditor/_source/plugins/bbcode/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..fa8bc1a9ffd67f8f5fcb6601ebc79ba5ccf73966 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/bbcode/plugin.js @@ -0,0 +1,931 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + CKEDITOR.on( 'dialogDefinition', function( ev ) + { + var tab, name = ev.data.name, + definition = ev.data.definition; + + if ( name == 'link' ) + { + definition.removeContents( 'target' ); + definition.removeContents( 'upload' ); + definition.removeContents( 'advanced' ); + tab = definition.getContents( 'info' ); + tab.remove( 'emailSubject' ); + tab.remove( 'emailBody' ); + } + else if ( name == 'image' ) + { + definition.removeContents( 'advanced' ); + tab = definition.getContents( 'Link' ); + tab.remove( 'cmbTarget' ); + tab = definition.getContents( 'info' ); + tab.remove( 'txtAlt' ); + tab.remove( 'basic' ); + } + }); + + var bbcodeMap = { 'b' : 'strong', 'u': 'u', 'i' : 'em', 'color' : 'span', 'size' : 'span', 'quote' : 'blockquote', 'code' : 'code', 'url' : 'a', 'email' : 'span', 'img' : 'span', '*' : 'li', 'list' : 'ol' }, + convertMap = { 'strong' : 'b' , 'b' : 'b', 'u': 'u', 'em' : 'i', 'i': 'i', 'code' : 'code', 'li' : '*' }, + tagnameMap = { 'strong' : 'b', 'em' : 'i', 'u' : 'u', 'li' : '*', 'ul' : 'list', 'ol' : 'list', 'code' : 'code', 'a' : 'link', 'img' : 'img', 'blockquote' : 'quote' }, + stylesMap = { 'color' : 'color', 'size' : 'font-size' }, + attributesMap = { 'url' : 'href', 'email' : 'mailhref', 'quote': 'cite', 'list' : 'listType' }; + + // List of block-like tags. + var dtd = CKEDITOR.dtd, + blockLikeTags = CKEDITOR.tools.extend( { table:1 }, dtd.$block, dtd.$listItem, dtd.$tableContent, dtd.$list ); + + var semicolonFixRegex = /\s*(?:;\s*|$)/; + function serializeStyleText( stylesObject ) + { + var styleText = ''; + for ( var style in stylesObject ) + { + var styleVal = stylesObject[ style ], + text = ( style + ':' + styleVal ).replace( semicolonFixRegex, ';' ); + + styleText += text; + } + return styleText; + } + + function parseStyleText( styleText ) + { + var retval = {}; + ( styleText || '' ) + .replace( /"/g, '"' ) + .replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, function( match, name, value ) + { + retval[ name.toLowerCase() ] = value; + } ); + return retval; + } + + function RGBToHex( cssStyle ) + { + return cssStyle.replace( /(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi, function( match, red, green, blue ) + { + red = parseInt( red, 10 ).toString( 16 ); + green = parseInt( green, 10 ).toString( 16 ); + blue = parseInt( blue, 10 ).toString( 16 ); + var color = [red, green, blue] ; + + // Add padding zeros if the hex value is less than 0x10. + for ( var i = 0 ; i < color.length ; i++ ) + color[i] = String( '0' + color[i] ).slice( -2 ) ; + + return '#' + color.join( '' ) ; + }); + } + + // Maintain the map of smiley-to-description. + var smileyMap = {"smiley":":)","sad":":(","wink":";)","laugh":":D","cheeky":":P","blush":":*)","surprise":":-o","indecision":":|","angry":">:(","angel":"o:)","cool":"8-)","devil":">:-)","crying":";(","kiss":":-*" }, + smileyReverseMap = {}, + smileyRegExp = []; + + // Build regexp for the list of smiley text. + for ( var i in smileyMap ) + { + smileyReverseMap[ smileyMap[ i ] ] = i; + smileyRegExp.push( smileyMap[ i ].replace( /\(|\)|\:|\/|\*|\-|\|/g, function( match ) { return '\\' + match; } ) ); + } + + smileyRegExp = new RegExp( smileyRegExp.join( '|' ), 'g' ); + + var decodeHtml = ( function () + { + var regex = [], + entities = + { + nbsp : '\u00A0', // IE | FF + shy : '\u00AD', // IE + gt : '\u003E', // IE | FF | -- | Opera + lt : '\u003C' // IE | FF | Safari | Opera + }; + + for ( var entity in entities ) + regex.push( entity ); + + regex = new RegExp( '&(' + regex.join( '|' ) + ');', 'g' ); + + return function( html ) + { + return html.replace( regex, function( match, entity ) + { + return entities[ entity ]; + }); + }; + })(); + + CKEDITOR.BBCodeParser = function() + { + this._ = + { + bbcPartsRegex : /(?:\[([^\/\]=]*?)(?:=([^\]]*?))?\])|(?:\[\/([a-z]{1,16})\])/ig + }; + }; + + CKEDITOR.BBCodeParser.prototype = + { + parse : function( bbcode ) + { + var parts, + part, + lastIndex = 0; + + while ( ( parts = this._.bbcPartsRegex.exec( bbcode ) ) ) + { + var tagIndex = parts.index; + if ( tagIndex > lastIndex ) + { + var text = bbcode.substring( lastIndex, tagIndex ); + this.onText( text, 1 ); + } + + lastIndex = this._.bbcPartsRegex.lastIndex; + + /* + "parts" is an array with the following items: + 0 : The entire match for opening/closing tags and line-break; + 1 : line-break; + 2 : open of tag excludes option; + 3 : tag option; + 4 : close of tag; + */ + + part = ( parts[ 1 ] || parts[ 3 ] || '' ).toLowerCase(); + // Unrecognized tags should be delivered as a simple text (#7860). + if ( part && !bbcodeMap[ part ] ) + { + this.onText( parts[ 0 ] ); + continue; + } + + // Opening tag + if ( parts[ 1 ] ) + { + var tagName = bbcodeMap[ part ], + attribs = {}, + styles = {}, + optionPart = parts[ 2 ]; + + if ( optionPart ) + { + if ( part == 'list' ) + { + if ( !isNaN( optionPart ) ) + optionPart = 'decimal'; + else if ( /^[a-z]+$/.test( optionPart ) ) + optionPart = 'lower-alpha'; + else if ( /^[A-Z]+$/.test( optionPart ) ) + optionPart = 'upper-alpha'; + } + + if ( stylesMap[ part ] ) + { + // Font size represents percentage. + if ( part == 'size' ) + optionPart += '%'; + + styles[ stylesMap[ part ] ] = optionPart; + attribs.style = serializeStyleText( styles ); + } + else if ( attributesMap[ part ] ) + attribs[ attributesMap[ part ] ] = optionPart; + } + + // Two special handling - image and email, protect them + // as "span" with an attribute marker. + if ( part == 'email' || part == 'img' ) + attribs[ 'bbcode' ] = part; + + this.onTagOpen( tagName, attribs, CKEDITOR.dtd.$empty[ tagName ] ); + } + // Closing tag + else if ( parts[ 3 ] ) + this.onTagClose( bbcodeMap[ part ] ); + } + + if ( bbcode.length > lastIndex ) + this.onText( bbcode.substring( lastIndex, bbcode.length ), 1 ); + } + }; + + /** + * Creates a {@link CKEDITOR.htmlParser.fragment} from an HTML string. + * @param {String} source The HTML to be parsed, filling the fragment. + * @param {Number} [fixForBody=false] Wrap body with specified element if needed. + * @returns CKEDITOR.htmlParser.fragment The fragment created. + * @example + * var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' ); + * alert( fragment.children[0].name ); "b" + * alert( fragment.children[1].value ); " Text" + */ + CKEDITOR.htmlParser.fragment.fromBBCode = function( source ) + { + var parser = new CKEDITOR.BBCodeParser(), + fragment = new CKEDITOR.htmlParser.fragment(), + pendingInline = [], + pendingBrs = 0, + currentNode = fragment, + returnPoint; + + function checkPending( newTagName ) + { + if ( pendingInline.length > 0 ) + { + for ( var i = 0 ; i < pendingInline.length ; i++ ) + { + var pendingElement = pendingInline[ i ], + pendingName = pendingElement.name, + pendingDtd = CKEDITOR.dtd[ pendingName ], + currentDtd = currentNode.name && CKEDITOR.dtd[ currentNode.name ]; + + if ( ( !currentDtd || currentDtd[ pendingName ] ) && ( !newTagName || !pendingDtd || pendingDtd[ newTagName ] || !CKEDITOR.dtd[ newTagName ] ) ) + { + // Get a clone for the pending element. + pendingElement = pendingElement.clone(); + + // Add it to the current node and make it the current, + // so the new element will be added inside of it. + pendingElement.parent = currentNode; + currentNode = pendingElement; + + // Remove the pending element (back the index by one + // to properly process the next entry). + pendingInline.splice( i, 1 ); + i--; + } + } + } + } + + function checkPendingBrs( tagName, closing ) + { + var len = currentNode.children.length, + previous = len > 0 && currentNode.children[ len - 1 ], + lineBreakParent = !previous && BBCodeWriter.getRule( tagnameMap[ currentNode.name ], 'breakAfterOpen' ), + lineBreakPrevious = previous && previous.type == CKEDITOR.NODE_ELEMENT && BBCodeWriter.getRule( tagnameMap[ previous.name ], 'breakAfterClose' ), + lineBreakCurrent = tagName && BBCodeWriter.getRule( tagnameMap[ tagName ], closing ? 'breakBeforeClose' : 'breakBeforeOpen' ); + + if ( pendingBrs && ( lineBreakParent || lineBreakPrevious || lineBreakCurrent ) ) + pendingBrs--; + + // 1. Either we're at the end of block, where it requires us to compensate the br filler + // removing logic (from htmldataprocessor). + // 2. Or we're at the end of pseudo block, where it requires us to compensate + // the bogus br effect. + if ( pendingBrs && tagName in blockLikeTags ) + pendingBrs++; + + while ( pendingBrs && pendingBrs-- ) + currentNode.children.push( previous = new CKEDITOR.htmlParser.element( 'br' ) ); + } + + function addElement( node, target ) + { + checkPendingBrs( node.name, 1 ); + + target = target || currentNode || fragment; + + var len = target.children.length, + previous = len > 0 && target.children[ len - 1 ] || null; + + node.previous = previous; + node.parent = target; + + target.children.push( node ); + + if ( node.returnPoint ) + { + currentNode = node.returnPoint; + delete node.returnPoint; + } + } + + parser.onTagOpen = function( tagName, attributes, selfClosing ) + { + var element = new CKEDITOR.htmlParser.element( tagName, attributes ); + + // This is a tag to be removed if empty, so do not add it immediately. + if ( CKEDITOR.dtd.$removeEmpty[ tagName ] ) + { + pendingInline.push( element ); + return; + } + + var currentName = currentNode.name; + + var currentDtd = currentName + && ( CKEDITOR.dtd[ currentName ] + || ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ); + + // If the element cannot be child of the current element. + if ( currentDtd && !currentDtd[ tagName ] ) + { + var reApply = false, + addPoint; // New position to start adding nodes. + + // If the element name is the same as the current element name, + // then just close the current one and append the new one to the + // parent. This situation usually happens with <p>, <li>, <dt> and + // <dd>, specially in IE. Do not enter in this if block in this case. + if ( tagName == currentName ) + addElement( currentNode, currentNode.parent ); + else if ( tagName in CKEDITOR.dtd.$listItem ) + { + parser.onTagOpen( 'ul', {} ); + addPoint = currentNode; + reApply = true; + } + else + { + addElement( currentNode, currentNode.parent ); + + // The current element is an inline element, which + // cannot hold the new one. Put it in the pending list, + // and try adding the new one after it. + pendingInline.unshift( currentNode ); + reApply = true; + } + + if ( addPoint ) + currentNode = addPoint; + // Try adding it to the return point, or the parent element. + else + currentNode = currentNode.returnPoint || currentNode.parent; + + if ( reApply ) + { + parser.onTagOpen.apply( this, arguments ); + return; + } + } + + checkPending( tagName ); + checkPendingBrs( tagName ); + + element.parent = currentNode; + element.returnPoint = returnPoint; + returnPoint = 0; + + if ( element.isEmpty ) + addElement( element ); + else + currentNode = element; + }; + + parser.onTagClose = function( tagName ) + { + // Check if there is any pending tag to be closed. + for ( var i = pendingInline.length - 1 ; i >= 0 ; i-- ) + { + // If found, just remove it from the list. + if ( tagName == pendingInline[ i ].name ) + { + pendingInline.splice( i, 1 ); + return; + } + } + + var pendingAdd = [], + newPendingInline = [], + candidate = currentNode; + + while ( candidate.type && candidate.name != tagName ) + { + // If this is an inline element, add it to the pending list, if we're + // really closing one of the parents element later, they will continue + // after it. + if ( !candidate._.isBlockLike ) + newPendingInline.unshift( candidate ); + + // This node should be added to it's parent at this point. But, + // it should happen only if the closing tag is really closing + // one of the nodes. So, for now, we just cache it. + pendingAdd.push( candidate ); + + candidate = candidate.parent; + } + + if ( candidate.type ) + { + // Add all elements that have been found in the above loop. + for ( i = 0 ; i < pendingAdd.length ; i++ ) + { + var node = pendingAdd[ i ]; + addElement( node, node.parent ); + } + + currentNode = candidate; + + + addElement( candidate, candidate.parent ); + + // The parent should start receiving new nodes now, except if + // addElement changed the currentNode. + if ( candidate == currentNode ) + currentNode = currentNode.parent; + + pendingInline = pendingInline.concat( newPendingInline ); + } + }; + + parser.onText = function( text ) + { + var currentDtd = CKEDITOR.dtd[ currentNode.name ]; + if ( !currentDtd || currentDtd[ '#' ] ) + { + checkPendingBrs(); + checkPending(); + + text.replace(/([\r\n])|[^\r\n]*/g, function( piece, lineBreak ) + { + if ( lineBreak !== undefined && lineBreak.length ) + pendingBrs++; + else if ( piece.length ) + { + var lastIndex = 0; + + // Create smiley from text emotion. + piece.replace( smileyRegExp, function( match, index ) + { + addElement( new CKEDITOR.htmlParser.text( piece.substring( lastIndex, index ) ), currentNode ); + addElement( new CKEDITOR.htmlParser.element( 'smiley', { 'desc': smileyReverseMap[ match ] } ), currentNode ); + lastIndex = index + match.length; + }); + + if ( lastIndex != piece.length ) + addElement( new CKEDITOR.htmlParser.text( piece.substring( lastIndex, piece.length ) ), currentNode ); + } + }); + } + }; + + // Parse it. + parser.parse( CKEDITOR.tools.htmlEncode( source ) ); + + // Close all hanging nodes. + while ( currentNode.type ) + { + var parent = currentNode.parent, + node = currentNode; + + addElement( node, parent ); + currentNode = parent; + } + + return fragment; + }; + + CKEDITOR.htmlParser.BBCodeWriter = CKEDITOR.tools.createClass( + { + $ : function() + { + this._ = + { + output : [], + rules : [] + }; + + // List and list item. + this.setRules( 'list', + { + breakBeforeOpen : 1, + breakAfterOpen : 1, + breakBeforeClose : 1, + breakAfterClose : 1 + } ); + + this.setRules( '*', + { + breakBeforeOpen : 1, + breakAfterOpen : 0, + breakBeforeClose : 1, + breakAfterClose : 0 + } ); + + this.setRules( 'quote', + { + breakBeforeOpen : 1, + breakAfterOpen : 0, + breakBeforeClose : 0, + breakAfterClose : 1 + } ); + }, + + proto : + { + /** + * Sets formatting rules for a given tag. The possible rules are: + * <ul> + * <li><b>breakBeforeOpen</b>: break line before the opener tag for this element.</li> + * <li><b>breakAfterOpen</b>: break line after the opener tag for this element.</li> + * <li><b>breakBeforeClose</b>: break line before the closer tag for this element.</li> + * <li><b>breakAfterClose</b>: break line after the closer tag for this element.</li> + * </ul> + * + * All rules default to "false". Each call to the function overrides + * already present rules, leaving the undefined untouched. + * + * @param {String} tagName The tag name to which set the rules. + * @param {Object} rules An object containing the element rules. + * @example + * // Break line before and after "img" tags. + * writer.setRules( 'list', + * { + * breakBeforeOpen : true + * breakAfterOpen : true + * }); + */ + setRules : function( tagName, rules ) + { + var currentRules = this._.rules[ tagName ]; + + if ( currentRules ) + CKEDITOR.tools.extend( currentRules, rules, true ); + else + this._.rules[ tagName ] = rules; + }, + + getRule : function( tagName, ruleName ) + { + return this._.rules[ tagName ] && this._.rules[ tagName ][ ruleName ]; + }, + + openTag : function( tag, attributes ) + { + if ( tag in bbcodeMap ) + { + if ( this.getRule( tag, 'breakBeforeOpen' ) ) + this.lineBreak( 1 ); + + this.write( '[', tag ); + var option = attributes.option; + option && this.write( '=', option ); + this.write( ']' ); + + if ( this.getRule( tag, 'breakAfterOpen' ) ) + this.lineBreak( 1 ); + } + else if ( tag == 'br' ) + this._.output.push( '\n' ); + }, + + openTagClose : function() { }, + attribute : function() { }, + + closeTag : function( tag ) + { + if ( tag in bbcodeMap ) + { + if ( this.getRule( tag, 'breakBeforeClose' ) ) + this.lineBreak( 1 ); + + tag != '*' && this.write( '[/', tag, ']' ); + + if ( this.getRule( tag, 'breakAfterClose' ) ) + this.lineBreak( 1 ); + } + }, + + text : function( text ) + { + this.write( text ); + }, + + /** + * Writes a comment. + * @param {String} comment The comment text. + * @example + * // Writes "<!-- My comment -->". + * writer.comment( ' My comment ' ); + */ + comment : function() {}, + + /* + * Output line-break for formatting. + */ + lineBreak : function() + { + // Avoid line break when: + // 1) Previous tag already put one. + // 2) We're at output start. + if ( !this._.hasLineBreak && this._.output.length ) + { + this.write( '\n' ); + this._.hasLineBreak = 1; + } + }, + + write : function() + { + this._.hasLineBreak = 0; + var data = Array.prototype.join.call( arguments, '' ); + this._.output.push( data ); + }, + + reset : function() + { + this._.output = []; + this._.hasLineBreak = 0; + }, + + getHtml : function( reset ) + { + var bbcode = this._.output.join( '' ); + + if ( reset ) + this.reset(); + + return decodeHtml ( bbcode ); + } + } + }); + + var BBCodeWriter = new CKEDITOR.htmlParser.BBCodeWriter(); + + CKEDITOR.plugins.add( 'bbcode', + { + requires : [ 'htmldataprocessor', 'entities' ], + beforeInit : function( editor ) + { + // Adapt some critical editor configuration for better support + // of BBCode environment. + var config = editor.config; + CKEDITOR.tools.extend( config, + { + enterMode : CKEDITOR.ENTER_BR, + basicEntities: false, + entities : false, + fillEmptyBlocks : false + }, true ); + }, + init : function( editor ) + { + var config = editor.config; + + function BBCodeToHtml( code ) + { + var fragment = CKEDITOR.htmlParser.fragment.fromBBCode( code ), + writer = new CKEDITOR.htmlParser.basicWriter(); + + fragment.writeHtml( writer, dataFilter ); + return writer.getHtml( true ); + } + + var dataFilter = new CKEDITOR.htmlParser.filter(); + dataFilter.addRules( + { + elements : + { + 'blockquote' : function( element ) + { + var quoted = new CKEDITOR.htmlParser.element( 'div' ); + quoted.children = element.children; + element.children = [ quoted ]; + var citeText = element.attributes.cite; + if ( citeText ) + { + var cite = new CKEDITOR.htmlParser.element( 'cite' ); + cite.add( new CKEDITOR.htmlParser.text( citeText.replace( /^"|"$/g, '' ) ) ); + delete element.attributes.cite; + element.children.unshift( cite ); + } + }, + 'span' : function( element ) + { + var bbcode; + if ( ( bbcode = element.attributes.bbcode ) ) + { + if ( bbcode == 'img' ) + { + element.name = 'img'; + element.attributes.src = element.children[ 0 ].value; + element.children = []; + } + else if ( bbcode == 'email' ) + { + element.name = 'a'; + element.attributes.href = 'mailto:' + element.children[ 0 ].value; + } + + delete element.attributes.bbcode; + } + }, + 'ol' : function ( element ) + { + if ( element.attributes.listType ) + { + if ( element.attributes.listType != 'decimal' ) + element.attributes.style = 'list-style-type:' + element.attributes.listType; + } + else + element.name = 'ul'; + + delete element.attributes.listType; + }, + a : function( element ) + { + if ( !element.attributes.href ) + element.attributes.href = element.children[ 0 ].value; + }, + 'smiley' : function( element ) + { + element.name = 'img'; + + var description = element.attributes.desc, + image = config.smiley_images[ CKEDITOR.tools.indexOf( config.smiley_descriptions, description ) ], + src = CKEDITOR.tools.htmlEncode( config.smiley_path + image ); + + element.attributes = + { + src : src, + 'data-cke-saved-src' : src, + title : description, + alt : description + }; + } + } + } ); + + editor.dataProcessor.htmlFilter.addRules( + { + elements : + { + $ : function( element ) + { + var attributes = element.attributes, + style = parseStyleText( attributes.style ), + value; + + var tagName = element.name; + if ( tagName in convertMap ) + tagName = convertMap[ tagName ]; + else if ( tagName == 'span' ) + { + if ( ( value = style.color ) ) + { + tagName = 'color'; + value = RGBToHex( value ); + } + else if ( ( value = style[ 'font-size' ] ) ) + { + var percentValue = value.match( /(\d+)%$/ ); + if ( percentValue ) + { + value = percentValue[ 1 ]; + tagName = 'size'; + } + } + } + else if ( tagName == 'ol' || tagName == 'ul' ) + { + if ( ( value = style[ 'list-style-type'] ) ) + { + switch ( value ) + { + case 'lower-alpha': + value = 'a'; + break; + case 'upper-alpha': + value = 'A'; + break; + } + } + else if ( tagName == 'ol' ) + value = 1; + + tagName = 'list'; + } + else if ( tagName == 'blockquote' ) + { + try + { + var cite = element.children[ 0 ], + quoted = element.children[ 1 ], + citeText = cite.name == 'cite' && cite.children[ 0 ].value; + + if ( citeText ) + { + value = '"' + citeText + '"'; + element.children = quoted.children; + } + + } + catch( er ) + { + } + + tagName = 'quote'; + } + else if ( tagName == 'a' ) + { + if ( ( value = attributes.href ) ) + { + if ( value.indexOf( 'mailto:' ) !== -1 ) + { + tagName = 'email'; + // [email] should have a single text child with email address. + element.children = [ new CKEDITOR.htmlParser.text( value.replace( 'mailto:', '' ) ) ]; + value = ''; + } + else + { + var singleton = element.children.length == 1 && element.children[ 0 ]; + if ( singleton + && singleton.type == CKEDITOR.NODE_TEXT + && singleton.value == value ) + value = ''; + + tagName = 'url'; + } + } + } + else if ( tagName == 'img' ) + { + element.isEmpty = 0; + + // Translate smiley (image) to text emotion. + var src = attributes[ 'data-cke-saved-src' ]; + if ( src && src.indexOf( editor.config.smiley_path ) != -1 ) + return new CKEDITOR.htmlParser.text( smileyMap[ attributes.alt ] ); + else + element.children = [ new CKEDITOR.htmlParser.text( src ) ]; + } + + element.name = tagName; + value && ( element.attributes.option = value ); + + return null; + }, + + // Remove any bogus br from the end of a pseudo block, + // e.g. <div>some text<br /><p>paragraph</p></div> + br : function( element ) + { + var next = element.next; + if ( next && next.name in blockLikeTags ) + return false; + } + } + }, 1 ); + + editor.dataProcessor.writer = BBCodeWriter; + + editor.on( 'beforeSetMode', function( evt ) + { + evt.removeListener(); + var wysiwyg = editor._.modes[ 'wysiwyg' ]; + wysiwyg.loadData = CKEDITOR.tools.override( wysiwyg.loadData, function( org ) + { + return function( data ) + { + return ( org.call( this, BBCodeToHtml( data ) ) ); + }; + } ); + } ); + }, + + afterInit : function( editor ) + { + var filters; + if ( editor._.elementsPath ) + { + // Eliminate irrelevant elements from displaying, e.g body and p. + if ( ( filters = editor._.elementsPath.filters ) ) + filters.push( function( element ) + { + var htmlName = element.getName(), + name = tagnameMap[ htmlName ] || false; + + // Specialized anchor presents as email. + if ( name == 'link' && element.getAttribute( 'href' ).indexOf( 'mailto:' ) === 0 ) + name = 'email'; + // Styled span could be either size or color. + else if ( htmlName == 'span' ) + { + if ( element.getStyle( 'font-size' ) ) + name = 'size'; + else if ( element.getStyle( 'color' ) ) + name = 'color'; + } + else if ( name == 'img' ) + { + var src = element.data( 'cke-saved-src' ); + if ( src && src.indexOf( editor.config.smiley_path ) === 0 ) + name = 'smiley'; + } + + return name; + }); + } + } + } ); + +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/bidi/plugin.js b/htdocs/includes/ckeditor/_source/plugins/bidi/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..72f1041b6f5be8d660cfc4acb8e7ebf3edce97a7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/bidi/plugin.js @@ -0,0 +1,334 @@ +/* +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. + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/blockquote/plugin.js b/htdocs/includes/ckeditor/_source/plugins/blockquote/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..f17aec268e26ea7b093e5a3f908fa751fd80f8c6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/blockquote/plugin.js @@ -0,0 +1,305 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Blockquote. + */ + +(function() +{ + function getState( editor, path ) + { + var firstBlock = path.block || path.blockLimit; + + if ( !firstBlock || firstBlock.getName() == 'body' ) + return CKEDITOR.TRISTATE_OFF; + + // See if the first block has a blockquote parent. + if ( firstBlock.getAscendant( 'blockquote', true ) ) + return CKEDITOR.TRISTATE_ON; + + return CKEDITOR.TRISTATE_OFF; + } + + function onSelectionChange( evt ) + { + var editor = evt.editor; + if ( editor.readOnly ) + return; + + var command = editor.getCommand( 'blockquote' ); + command.state = getState( editor, evt.data.path ); + command.fire( 'state' ); + } + + function noBlockLeft( bqBlock ) + { + for ( var i = 0, length = bqBlock.getChildCount(), child ; i < length && ( child = bqBlock.getChild( i ) ) ; i++ ) + { + if ( child.type == CKEDITOR.NODE_ELEMENT && child.isBlockBoundary() ) + return false; + } + return true; + } + + var commandObject = + { + exec : function( editor ) + { + var state = editor.getCommand( 'blockquote' ).state, + selection = editor.getSelection(), + range = selection && selection.getRanges( true )[0]; + + if ( !range ) + return; + + var bookmarks = selection.createBookmarks(); + + // Kludge for #1592: if the bookmark nodes are in the beginning of + // blockquote, then move them to the nearest block element in the + // blockquote. + if ( CKEDITOR.env.ie ) + { + var bookmarkStart = bookmarks[0].startNode, + bookmarkEnd = bookmarks[0].endNode, + cursor; + + if ( bookmarkStart && bookmarkStart.getParent().getName() == 'blockquote' ) + { + cursor = bookmarkStart; + while ( ( cursor = cursor.getNext() ) ) + { + if ( cursor.type == CKEDITOR.NODE_ELEMENT && + cursor.isBlockBoundary() ) + { + bookmarkStart.move( cursor, true ); + break; + } + } + } + + if ( bookmarkEnd + && bookmarkEnd.getParent().getName() == 'blockquote' ) + { + cursor = bookmarkEnd; + while ( ( cursor = cursor.getPrevious() ) ) + { + if ( cursor.type == CKEDITOR.NODE_ELEMENT && + cursor.isBlockBoundary() ) + { + bookmarkEnd.move( cursor ); + break; + } + } + } + } + + var iterator = range.createIterator(), + block; + iterator.enlargeBr = editor.config.enterMode != CKEDITOR.ENTER_BR; + + if ( state == CKEDITOR.TRISTATE_OFF ) + { + var paragraphs = []; + while ( ( block = iterator.getNextParagraph() ) ) + paragraphs.push( block ); + + // If no paragraphs, create one from the current selection position. + if ( paragraphs.length < 1 ) + { + var para = editor.document.createElement( editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ), + firstBookmark = bookmarks.shift(); + range.insertNode( para ); + para.append( new CKEDITOR.dom.text( '\ufeff', editor.document ) ); + range.moveToBookmark( firstBookmark ); + range.selectNodeContents( para ); + range.collapse( true ); + firstBookmark = range.createBookmark(); + paragraphs.push( para ); + bookmarks.unshift( firstBookmark ); + } + + // Make sure all paragraphs have the same parent. + var commonParent = paragraphs[0].getParent(), + tmp = []; + for ( var i = 0 ; i < paragraphs.length ; i++ ) + { + block = paragraphs[i]; + commonParent = commonParent.getCommonAncestor( block.getParent() ); + } + + // The common parent must not be the following tags: table, tbody, tr, ol, ul. + var denyTags = { table : 1, tbody : 1, tr : 1, ol : 1, ul : 1 }; + while ( denyTags[ commonParent.getName() ] ) + commonParent = commonParent.getParent(); + + // Reconstruct the block list to be processed such that all resulting blocks + // satisfy parentNode.equals( commonParent ). + var lastBlock = null; + while ( paragraphs.length > 0 ) + { + block = paragraphs.shift(); + while ( !block.getParent().equals( commonParent ) ) + block = block.getParent(); + if ( !block.equals( lastBlock ) ) + tmp.push( block ); + lastBlock = block; + } + + // If any of the selected blocks is a blockquote, remove it to prevent + // nested blockquotes. + while ( tmp.length > 0 ) + { + block = tmp.shift(); + if ( block.getName() == 'blockquote' ) + { + var docFrag = new CKEDITOR.dom.documentFragment( editor.document ); + while ( block.getFirst() ) + { + docFrag.append( block.getFirst().remove() ); + paragraphs.push( docFrag.getLast() ); + } + + docFrag.replace( block ); + } + else + paragraphs.push( block ); + } + + // Now we have all the blocks to be included in a new blockquote node. + var bqBlock = editor.document.createElement( 'blockquote' ); + bqBlock.insertBefore( paragraphs[0] ); + while ( paragraphs.length > 0 ) + { + block = paragraphs.shift(); + bqBlock.append( block ); + } + } + else if ( state == CKEDITOR.TRISTATE_ON ) + { + var moveOutNodes = [], + database = {}; + + while ( ( block = iterator.getNextParagraph() ) ) + { + var bqParent = null, + bqChild = null; + while ( block.getParent() ) + { + if ( block.getParent().getName() == 'blockquote' ) + { + bqParent = block.getParent(); + bqChild = block; + break; + } + block = block.getParent(); + } + + // Remember the blocks that were recorded down in the moveOutNodes array + // to prevent duplicates. + if ( bqParent && bqChild && !bqChild.getCustomData( 'blockquote_moveout' ) ) + { + moveOutNodes.push( bqChild ); + CKEDITOR.dom.element.setMarker( database, bqChild, 'blockquote_moveout', true ); + } + } + + CKEDITOR.dom.element.clearAllMarkers( database ); + + var movedNodes = [], + processedBlockquoteBlocks = []; + + database = {}; + while ( moveOutNodes.length > 0 ) + { + var node = moveOutNodes.shift(); + bqBlock = node.getParent(); + + // If the node is located at the beginning or the end, just take it out + // without splitting. Otherwise, split the blockquote node and move the + // paragraph in between the two blockquote nodes. + if ( !node.getPrevious() ) + node.remove().insertBefore( bqBlock ); + else if ( !node.getNext() ) + node.remove().insertAfter( bqBlock ); + else + { + node.breakParent( node.getParent() ); + processedBlockquoteBlocks.push( node.getNext() ); + } + + // Remember the blockquote node so we can clear it later (if it becomes empty). + if ( !bqBlock.getCustomData( 'blockquote_processed' ) ) + { + processedBlockquoteBlocks.push( bqBlock ); + CKEDITOR.dom.element.setMarker( database, bqBlock, 'blockquote_processed', true ); + } + + movedNodes.push( node ); + } + + CKEDITOR.dom.element.clearAllMarkers( database ); + + // Clear blockquote nodes that have become empty. + for ( i = processedBlockquoteBlocks.length - 1 ; i >= 0 ; i-- ) + { + bqBlock = processedBlockquoteBlocks[i]; + if ( noBlockLeft( bqBlock ) ) + bqBlock.remove(); + } + + if ( editor.config.enterMode == CKEDITOR.ENTER_BR ) + { + var firstTime = true; + while ( movedNodes.length ) + { + node = movedNodes.shift(); + + if ( node.getName() == 'div' ) + { + docFrag = new CKEDITOR.dom.documentFragment( editor.document ); + var needBeginBr = firstTime && node.getPrevious() && + !( node.getPrevious().type == CKEDITOR.NODE_ELEMENT && node.getPrevious().isBlockBoundary() ); + if ( needBeginBr ) + docFrag.append( editor.document.createElement( 'br' ) ); + + var needEndBr = node.getNext() && + !( node.getNext().type == CKEDITOR.NODE_ELEMENT && node.getNext().isBlockBoundary() ); + while ( node.getFirst() ) + node.getFirst().remove().appendTo( docFrag ); + + if ( needEndBr ) + docFrag.append( editor.document.createElement( 'br' ) ); + + docFrag.replace( node ); + firstTime = false; + } + } + } + } + + selection.selectBookmarks( bookmarks ); + editor.focus(); + } + }; + + CKEDITOR.plugins.add( 'blockquote', + { + init : function( editor ) + { + editor.addCommand( 'blockquote', commandObject ); + + editor.ui.addButton( 'Blockquote', + { + label : editor.lang.blockquote, + command : 'blockquote' + } ); + + editor.on( 'selectionChange', onSelectionChange ); + }, + + requires : [ 'domiterator' ] + } ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/button/plugin.js b/htdocs/includes/ckeditor/_source/plugins/button/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..af95b697d4fa1d51390d0608990e1375328e852e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/button/plugin.js @@ -0,0 +1,290 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'button', +{ + beforeInit : function( editor ) + { + editor.ui.addHandler( CKEDITOR.UI_BUTTON, CKEDITOR.ui.button.handler ); + } +}); + +/** + * Button UI element. + * @constant + * @example + */ +CKEDITOR.UI_BUTTON = 'button'; + +/** + * Represents a button UI element. This class should not be called directly. To + * create new buttons use {@link CKEDITOR.ui.prototype.addButton} instead. + * @constructor + * @param {Object} definition The button definition. + * @example + */ +CKEDITOR.ui.button = function( definition ) +{ + // Copy all definition properties to this object. + CKEDITOR.tools.extend( this, definition, + // Set defaults. + { + title : definition.label, + className : definition.className || ( definition.command && 'cke_button_' + definition.command ) || '', + click : definition.click || function( editor ) + { + editor.execCommand( definition.command ); + } + }); + + this._ = {}; +}; + +/** + * Transforms a button definition in a {@link CKEDITOR.ui.button} instance. + * @type Object + * @example + */ +CKEDITOR.ui.button.handler = +{ + create : function( definition ) + { + return new CKEDITOR.ui.button( definition ); + } +}; + +( function() +{ +CKEDITOR.ui.button.prototype = +{ + /** + * Renders the button. + * @param {CKEDITOR.editor} editor The editor instance which this button is + * to be used by. + * @param {Array} output The output array to which append the HTML relative + * to this button. + * @example + */ + render : function( editor, output ) + { + var env = CKEDITOR.env, + id = this._.id = CKEDITOR.tools.getNextId(), + classes = '', + command = this.command, // Get the command name. + clickFn; + + this._.editor = editor; + + var instance = + { + id : id, + button : this, + editor : editor, + focus : function() + { + var element = CKEDITOR.document.getById( id ); + element.focus(); + }, + execute : function() + { + // IE 6 needs some time before execution (#7922) + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) + CKEDITOR.tools.setTimeout( function(){ this.button.click( editor ); }, 0, this ); + else + this.button.click( editor ); + } + }; + + var keydownFn = CKEDITOR.tools.addFunction( function( ev ) + { + if ( instance.onkey ) + { + ev = new CKEDITOR.dom.event( ev ); + return ( instance.onkey( instance, ev.getKeystroke() ) !== false ); + } + }); + + var focusFn = CKEDITOR.tools.addFunction( function( ev ) + { + var retVal; + + if ( instance.onfocus ) + retVal = ( instance.onfocus( instance, new CKEDITOR.dom.event( ev ) ) !== false ); + + // FF2: prevent focus event been bubbled up to editor container, which caused unexpected editor focus. + if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) + ev.preventBubble(); + return retVal; + }); + + instance.clickFn = clickFn = CKEDITOR.tools.addFunction( instance.execute, instance ); + + + // Indicate a mode sensitive button. + if ( this.modes ) + { + var modeStates = {}; + + function updateState() + { + // "this" is a CKEDITOR.ui.button instance. + + var mode = editor.mode; + + if ( mode ) + { + // Restore saved button state. + var state = this.modes[ mode ] ? modeStates[ mode ] != undefined ? modeStates[ mode ] : + CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; + + this.setState( editor.readOnly && !this.readOnly ? CKEDITOR.TRISTATE_DISABLED : state ); + } + } + + editor.on( 'beforeModeUnload', function() + { + if ( editor.mode && this._.state != CKEDITOR.TRISTATE_DISABLED ) + modeStates[ editor.mode ] = this._.state; + }, this ); + + editor.on( 'mode', updateState, this); + + // If this button is sensitive to readOnly state, update it accordingly. + !this.readOnly && editor.on( 'readOnly', updateState, this); + } + else if ( command ) + { + // Get the command instance. + command = editor.getCommand( command ); + + if ( command ) + { + command.on( 'state', function() + { + this.setState( command.state ); + }, this); + + classes += 'cke_' + ( + command.state == CKEDITOR.TRISTATE_ON ? 'on' : + command.state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' : + 'off' ); + } + } + + if ( !command ) + classes += 'cke_off'; + + if ( this.className ) + classes += ' ' + this.className; + + output.push( + '<span class="cke_button' + ( this.icon && this.icon.indexOf( '.png' ) == -1 ? ' cke_noalphafix' : '' ) + '">', + '<a id="', id, '"' + + ' class="', classes, '"', + env.gecko && env.version >= 10900 && !env.hc ? '' : '" href="javascript:void(\''+ ( this.title || '' ).replace( "'", '' )+ '\')"', + ' title="', this.title, '"' + + ' tabindex="-1"' + + ' hidefocus="true"' + + ' role="button"' + + ' aria-labelledby="' + id + '_label"' + + ( this.hasArrow ? ' aria-haspopup="true"' : '' ) ); + + // Some browsers don't cancel key events in the keydown but in the + // keypress. + // TODO: Check if really needed for Gecko+Mac. + if ( env.opera || ( env.gecko && 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 ( env.gecko ) + { + output.push( + ' onblur="this.style.cssText = this.style.cssText;"' ); + } + + output.push( + ' onkeydown="return CKEDITOR.tools.callFunction(', keydownFn, ', event);"' + + ' onfocus="return CKEDITOR.tools.callFunction(', focusFn,', event);" ' + + ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 + '="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + + '<span class="cke_icon"' ); + + if ( this.icon ) + { + var offset = ( this.iconOffset || 0 ) * -16; + output.push( ' style="background-image:url(', CKEDITOR.getUrl( this.icon ), ');background-position:0 ' + offset + 'px;"' ); + } + + output.push( + '> </span>' + + '<span id="', id, '_label" class="cke_label">', this.label, '</span>' ); + + if ( this.hasArrow ) + { + output.push( + '<span class="cke_buttonarrow">' + // BLACK DOWN-POINTING TRIANGLE + + ( CKEDITOR.env.hc ? '▼' : ' ' ) + + '</span>' ); + } + + output.push( + '</a>', + '</span>' ); + + if ( this.onRender ) + this.onRender(); + + return instance; + }, + + setState : function( state ) + { + if ( this._.state == state ) + return false; + + this._.state = state; + + var element = CKEDITOR.document.getById( this._.id ); + + if ( element ) + { + element.setState( state ); + state == CKEDITOR.TRISTATE_DISABLED ? + element.setAttribute( 'aria-disabled', true ) : + element.removeAttribute( 'aria-disabled' ); + + state == CKEDITOR.TRISTATE_ON ? + element.setAttribute( 'aria-pressed', true ) : + element.removeAttribute( 'aria-pressed' ); + + return true; + } + else + return false; + } +}; + +})(); + +/** + * Adds a button definition to the UI elements list. + * @param {String} name The button name. + * @param {Object} definition The button definition. + * @example + * editorInstance.ui.addButton( 'MyBold', + * { + * label : 'My Bold', + * command : 'bold' + * }); + */ +CKEDITOR.ui.prototype.addButton = function( name, definition ) +{ + this.add( name, CKEDITOR.UI_BUTTON, definition ); +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/clipboard/dialogs/paste.js b/htdocs/includes/ckeditor/_source/plugins/clipboard/dialogs/paste.js new file mode 100644 index 0000000000000000000000000000000000000000..cec04d387972a8038b569a67f25b6bb6e3b734d8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/clipboard/dialogs/paste.js @@ -0,0 +1,223 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'paste', function( editor ) +{ + var lang = editor.lang.clipboard; + var isCustomDomain = CKEDITOR.env.isCustomDomain(); + + function onPasteFrameLoad( win ) + { + var doc = new CKEDITOR.dom.document( win.document ), + docElement = doc.$; + + var script = doc.getById( 'cke_actscrpt' ); + script && script.remove(); + + CKEDITOR.env.ie ? + docElement.body.contentEditable = "true" : + docElement.designMode = "on"; + + // IE before version 8 will leave cursor blinking inside the document after + // editor blurred unless we clean up the selection. (#4716) + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) + { + doc.getWindow().on( 'blur', function() + { + docElement.selection.empty(); + } ); + } + + doc.on( "keydown", function( e ) + { + var domEvent = e.data, + key = domEvent.getKeystroke(), + processed; + + switch( key ) + { + case 27 : + this.hide(); + processed = 1; + break; + + case 9 : + case CKEDITOR.SHIFT + 9 : + this.changeFocus( 1 ); + processed = 1; + } + + processed && domEvent.preventDefault(); + }, this ); + + editor.fire( 'ariaWidget', new CKEDITOR.dom.element( win.frameElement ) ); + } + + return { + title : lang.title, + + minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 370 : 350, + minHeight : CKEDITOR.env.quirks ? 250 : 245, + onShow : function() + { + // FIREFOX BUG: Force the browser to render the dialog to make the to-be- + // inserted iframe editable. (#3366) + this.parts.dialog.$.offsetHeight; + + this.setupContent(); + }, + + onHide : function() + { + if ( CKEDITOR.env.ie ) + this.getParentEditor().document.getBody().$.contentEditable = 'true'; + }, + + onLoad : function() + { + if ( ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) && editor.lang.dir == 'rtl' ) + this.parts.contents.setStyle( 'overflow', 'hidden' ); + }, + + onOk : function() + { + this.commitContent(); + }, + + contents : [ + { + id : 'general', + label : editor.lang.common.generalTab, + elements : [ + { + type : 'html', + id : 'securityMsg', + html : '<div style="white-space:normal;width:340px;">' + lang.securityMsg + '</div>' + }, + { + type : 'html', + id : 'pasteMsg', + html : '<div style="white-space:normal;width:340px;">'+lang.pasteMsg +'</div>' + }, + { + type : 'html', + id : 'editing_area', + style : 'width: 100%; height: 100%;', + html : '', + focus : function() + { + var win = this.getInputElement().$.contentWindow; + + // #3291 : JAWS needs the 500ms delay to detect that the editor iframe + // iframe is no longer editable. So that it will put the focus into the + // Paste from Word dialog's editable area instead. + setTimeout( function() + { + win.focus(); + }, 500 ); + }, + setup : function() + { + var dialog = this.getDialog(); + var htmlToLoad = + '<html dir="' + editor.config.contentsLangDirection + '"' + + ' lang="' + ( editor.config.contentsLanguage || editor.langCode ) + '">' + + '<head><style>body { margin: 3px; height: 95%; } </style></head><body>' + + '<script id="cke_actscrpt" type="text/javascript">' + + 'window.parent.CKEDITOR.tools.callFunction( ' + CKEDITOR.tools.addFunction( onPasteFrameLoad, dialog ) + ', this );' + + '</script></body>' + + '</html>'; + + var src = + CKEDITOR.env.air ? + 'javascript:void(0)' : + isCustomDomain ? + 'javascript:void((function(){' + + 'document.open();' + + 'document.domain=\'' + document.domain + '\';' + + 'document.close();' + + '})())"' + : + ''; + + var iframe = CKEDITOR.dom.element.createFromHtml( + '<iframe' + + ' class="cke_pasteframe"' + + ' frameborder="0" ' + + ' allowTransparency="true"' + + ' src="' + src + '"' + + ' role="region"' + + ' aria-label="' + lang.pasteArea + '"' + + ' aria-describedby="' + dialog.getContentElement( 'general', 'pasteMsg' ).domId + '"' + + ' aria-multiple="true"' + + '></iframe>' ); + + iframe.on( 'load', function( e ) + { + e.removeListener(); + + var doc = iframe.getFrameDocument(); + doc.write( htmlToLoad ); + + if ( CKEDITOR.env.air ) + onPasteFrameLoad.call( this, doc.getWindow().$ ); + }, dialog ); + + iframe.setCustomData( 'dialog', dialog ); + + var container = this.getElement(); + container.setHtml( '' ); + container.append( iframe ); + + // IE need a redirect on focus to make + // the cursor blinking inside iframe. (#5461) + if ( CKEDITOR.env.ie ) + { + var focusGrabber = CKEDITOR.dom.element.createFromHtml( '<span tabindex="-1" style="position:absolute;" role="presentation"></span>' ); + focusGrabber.on( 'focus', function() + { + iframe.$.contentWindow.focus(); + }); + container.append( focusGrabber ); + + // Override focus handler on field. + this.focus = function() + { + focusGrabber.focus(); + this.fire( 'focus' ); + }; + } + + this.getInputElement = function(){ return iframe; }; + + // Force container to scale in IE. + if ( CKEDITOR.env.ie ) + { + container.setStyle( 'display', 'block' ); + container.setStyle( 'height', ( iframe.$.offsetHeight + 2 ) + 'px' ); + } + }, + commit : function( data ) + { + var container = this.getElement(), + editor = this.getDialog().getParentEditor(), + body = this.getInputElement().getFrameDocument().getBody(), + bogus = body.getBogus(), + html; + bogus && bogus.remove(); + + // Saving the contents so changes until paste is complete will not take place (#7500) + html = body.getHtml(); + + setTimeout( function(){ + editor.fire( 'paste', { 'html' : html } ); + }, 0 ); + } + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/clipboard/plugin.js b/htdocs/includes/ckeditor/_source/plugins/clipboard/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..6c21f5512a3454a76c4592a3b6451097edc241b2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/clipboard/plugin.js @@ -0,0 +1,509 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Clipboard support + */ + +(function() +{ + // Tries to execute any of the paste, cut or copy commands in IE. Returns a + // boolean indicating that the operation succeeded. + var execIECommand = function( editor, command ) + { + var doc = editor.document, + body = doc.getBody(); + + var enabled = false; + var onExec = function() + { + enabled = true; + }; + + // The following seems to be the only reliable way to detect that + // clipboard commands are enabled in IE. It will fire the + // onpaste/oncut/oncopy events only if the security settings allowed + // the command to execute. + body.on( command, onExec ); + + // IE6/7: document.execCommand has problem to paste into positioned element. + ( CKEDITOR.env.version > 7 ? doc.$ : doc.$.selection.createRange() ) [ 'execCommand' ]( command ); + + body.removeListener( command, onExec ); + + return enabled; + }; + + // Attempts to execute the Cut and Copy operations. + var tryToCutCopy = + CKEDITOR.env.ie ? + function( editor, type ) + { + return execIECommand( editor, type ); + } + : // !IE. + function( editor, type ) + { + try + { + // Other browsers throw an error if the command is disabled. + return editor.document.$.execCommand( type, false, null ); + } + catch( e ) + { + return false; + } + }; + + // A class that represents one of the cut or copy commands. + var cutCopyCmd = function( type ) + { + this.type = type; + this.canUndo = this.type == 'cut'; // We can't undo copy to clipboard. + this.startDisabled = true; + }; + + cutCopyCmd.prototype = + { + exec : function( editor, data ) + { + this.type == 'cut' && fixCut( editor ); + + var success = tryToCutCopy( editor, this.type ); + + if ( !success ) + alert( editor.lang.clipboard[ this.type + 'Error' ] ); // Show cutError or copyError. + + return success; + } + }; + + // Paste command. + var pasteCmd = + { + canUndo : false, + + exec : + CKEDITOR.env.ie ? + function( editor ) + { + // Prevent IE from pasting at the begining of the document. + editor.focus(); + + if ( !editor.document.getBody().fire( 'beforepaste' ) + && !execIECommand( editor, 'paste' ) ) + { + editor.fire( 'pasteDialog' ); + return false; + } + } + : + function( editor ) + { + try + { + if ( !editor.document.getBody().fire( 'beforepaste' ) + && !editor.document.$.execCommand( 'Paste', false, null ) ) + { + throw 0; + } + } + catch ( e ) + { + setTimeout( function() + { + editor.fire( 'pasteDialog' ); + }, 0 ); + return false; + } + } + }; + + // Listens for some clipboard related keystrokes, so they get customized. + var onKey = function( event ) + { + if ( this.mode != 'wysiwyg' ) + return; + + switch ( event.data.keyCode ) + { + // Paste + case CKEDITOR.CTRL + 86 : // CTRL+V + case CKEDITOR.SHIFT + 45 : // SHIFT+INS + + var body = this.document.getBody(); + + // 1. Opera just misses the "paste" event. + // 2. Firefox's "paste" event comes too late to have the plain + // text paste bin to work. + if ( CKEDITOR.env.opera || CKEDITOR.env.gecko ) + body.fire( 'paste' ); + return; + + // Cut + case CKEDITOR.CTRL + 88 : // CTRL+X + case CKEDITOR.SHIFT + 46 : // SHIFT+DEL + + // Save Undo snapshot. + var editor = this; + this.fire( 'saveSnapshot' ); // Save before paste + setTimeout( function() + { + editor.fire( 'saveSnapshot' ); // Save after paste + }, 0 ); + } + }; + + function cancel( evt ) { evt.cancel(); } + + // Allow to peek clipboard content by redirecting the + // pasting content into a temporary bin and grab the content of it. + function getClipboardData( evt, mode, callback ) + { + var doc = this.document; + + // Avoid recursions on 'paste' event or consequent paste too fast. (#5730) + if ( doc.getById( 'cke_pastebin' ) ) + return; + + // If the browser supports it, get the data directly + if ( mode == 'text' && evt.data && evt.data.$.clipboardData ) + { + // evt.data.$.clipboardData.types contains all the flavours in Mac's Safari, but not on windows. + var plain = evt.data.$.clipboardData.getData( 'text/plain' ); + if ( plain ) + { + evt.data.preventDefault(); + callback( plain ); + return; + } + } + + var sel = this.getSelection(), + range = new CKEDITOR.dom.range( doc ); + + // Create container to paste into + var pastebin = new CKEDITOR.dom.element( mode == 'text' ? 'textarea' : CKEDITOR.env.webkit ? 'body' : 'div', doc ); + pastebin.setAttribute( 'id', 'cke_pastebin' ); + // Safari requires a filler node inside the div to have the content pasted into it. (#4882) + CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) ); + doc.getBody().append( pastebin ); + + pastebin.setStyles( + { + position : 'absolute', + // Position the bin exactly at the position of the selected element + // to avoid any subsequent document scroll. + top : sel.getStartElement().getDocumentPosition().y + 'px', + width : '1px', + height : '1px', + overflow : 'hidden' + }); + + // It's definitely a better user experience if we make the paste-bin pretty unnoticed + // by pulling it off the screen. + pastebin.setStyle( this.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-1000px' ); + + var bms = sel.createBookmarks(); + + this.on( 'selectionChange', cancel, null, null, 0 ); + + // Turn off design mode temporarily before give focus to the paste bin. + if ( mode == 'text' ) + pastebin.$.focus(); + else + { + range.setStartAt( pastebin, CKEDITOR.POSITION_AFTER_START ); + range.setEndAt( pastebin, CKEDITOR.POSITION_BEFORE_END ); + range.select( true ); + } + + var editor = this; + // Wait a while and grab the pasted contents + window.setTimeout( function() + { + // Restore properly the document focus. (#5684, #8849) + editor.document.getBody().focus(); + + editor.removeListener( 'selectionChange', cancel ); + + // IE7: selection must go before removing paste bin. (#8691) + if ( CKEDITOR.env.ie7Compat ) + { + sel.selectBookmarks( bms ); + pastebin.remove(); + } + // Webkit: selection must go after removing paste bin. (#8921) + else + { + pastebin.remove(); + sel.selectBookmarks( bms ); + } + + // Grab the HTML contents. + // We need to look for a apple style wrapper on webkit it also adds + // a div wrapper if you copy/paste the body of the editor. + // Remove hidden div and restore selection. + var bogusSpan; + pastebin = ( CKEDITOR.env.webkit + && ( bogusSpan = pastebin.getFirst() ) + && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ? + bogusSpan : pastebin ); + + callback( pastebin[ 'get' + ( mode == 'text' ? 'Value' : 'Html' ) ]() ); + }, 0 ); + } + + // Cutting off control type element in IE standards breaks the selection entirely. (#4881) + function fixCut( editor ) + { + if ( !CKEDITOR.env.ie || CKEDITOR.env.quirks ) + return; + + var sel = editor.getSelection(); + var control; + if( ( sel.getType() == CKEDITOR.SELECTION_ELEMENT ) && ( control = sel.getSelectedElement() ) ) + { + var range = sel.getRanges()[ 0 ]; + var dummy = editor.document.createText( '' ); + dummy.insertBefore( control ); + range.setStartBefore( dummy ); + range.setEndAfter( control ); + sel.selectRanges( [ range ] ); + + // Clear up the fix if the paste wasn't succeeded. + setTimeout( function() + { + // Element still online? + if ( control.getParent() ) + { + dummy.remove(); + sel.selectElement( control ); + } + }, 0 ); + } + } + + var depressBeforeEvent, + inReadOnly; + function stateFromNamedCommand( command, editor ) + { + var retval; + + if ( inReadOnly && command in { Paste : 1, Cut : 1 } ) + return CKEDITOR.TRISTATE_DISABLED; + + if ( command == 'Paste' ) + { + // IE Bug: queryCommandEnabled('paste') fires also 'beforepaste(copy/cut)', + // guard to distinguish from the ordinary sources (either + // keyboard paste or execCommand) (#4874). + CKEDITOR.env.ie && ( depressBeforeEvent = 1 ); + try + { + // Always return true for Webkit (which always returns false). + retval = editor.document.$.queryCommandEnabled( command ) || CKEDITOR.env.webkit; + } + catch( er ) {} + depressBeforeEvent = 0; + } + // Cut, Copy - check if the selection is not empty + else + { + var sel = editor.getSelection(), + ranges = sel && sel.getRanges(); + retval = sel && !( ranges.length == 1 && ranges[ 0 ].collapsed ); + } + + return retval ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; + } + + function setToolbarStates() + { + if ( this.mode != 'wysiwyg' ) + return; + + var pasteState = stateFromNamedCommand( 'Paste', this ); + + this.getCommand( 'cut' ).setState( stateFromNamedCommand( 'Cut', this ) ); + this.getCommand( 'copy' ).setState( stateFromNamedCommand( 'Copy', this ) ); + this.getCommand( 'paste' ).setState( pasteState ); + this.fire( 'pasteState', pasteState ); + } + + // Register the plugin. + CKEDITOR.plugins.add( 'clipboard', + { + requires : [ 'dialog', 'htmldataprocessor' ], + init : function( editor ) + { + // Inserts processed data into the editor at the end of the + // events chain. + editor.on( 'paste', function( evt ) + { + var data = evt.data; + if ( data[ 'html' ] ) + editor.insertHtml( data[ 'html' ] ); + else if ( data[ 'text' ] ) + editor.insertText( data[ 'text' ] ); + + setTimeout( function () { editor.fire( 'afterPaste' ); }, 0 ); + + }, null, null, 1000 ); + + editor.on( 'pasteDialog', function( evt ) + { + setTimeout( function() + { + // Open default paste dialog. + editor.openDialog( 'paste' ); + }, 0 ); + }); + + editor.on( 'pasteState', function( evt ) + { + editor.getCommand( 'paste' ).setState( evt.data ); + }); + + function addButtonCommand( buttonName, commandName, command, ctxMenuOrder ) + { + var lang = editor.lang[ commandName ]; + + editor.addCommand( commandName, command ); + editor.ui.addButton( buttonName, + { + label : lang, + command : commandName + }); + + // If the "menu" plugin is loaded, register the menu item. + if ( editor.addMenuItems ) + { + editor.addMenuItem( commandName, + { + label : lang, + command : commandName, + group : 'clipboard', + order : ctxMenuOrder + }); + } + } + + addButtonCommand( 'Cut', 'cut', new cutCopyCmd( 'cut' ), 1 ); + addButtonCommand( 'Copy', 'copy', new cutCopyCmd( 'copy' ), 4 ); + addButtonCommand( 'Paste', 'paste', pasteCmd, 8 ); + + CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) ); + + editor.on( 'key', onKey, editor ); + + // We'll be catching all pasted content in one line, regardless of whether the + // it's introduced by a document command execution (e.g. toolbar buttons) or + // user paste behaviors. (e.g. Ctrl-V) + editor.on( 'contentDom', function() + { + var body = editor.document.getBody(); + + // Intercept the paste before it actually takes place. + body.on( !CKEDITOR.env.ie ? 'paste' : 'beforepaste', function( evt ) + { + if ( depressBeforeEvent ) + return; + + // Dismiss the (wrong) 'beforepaste' event fired on toolbar menu open. + var domEvent = evt.data && evt.data.$; + if ( CKEDITOR.env.ie && domEvent && !domEvent.ctrlKey ) + return; + + // Fire 'beforePaste' event so clipboard flavor get customized + // by other plugins. + var eventData = { mode : 'html' }; + editor.fire( 'beforePaste', eventData ); + + getClipboardData.call( editor, evt, eventData.mode, function ( data ) + { + // The very last guard to make sure the + // paste has successfully happened. + if ( !( data = CKEDITOR.tools.trim( data.replace( /<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,'' ) ) ) ) + return; + + var dataTransfer = {}; + dataTransfer[ eventData.mode ] = data; + editor.fire( 'paste', dataTransfer ); + } ); + }); + + if ( CKEDITOR.env.ie ) + { + // Dismiss the (wrong) 'beforepaste' event fired on context menu open. (#7953) + body.on( 'contextmenu', function() + { + depressBeforeEvent = 1; + // Important: The following timeout will be called only after menu closed. + setTimeout( function() { depressBeforeEvent = 0; }, 0 ); + } ); + + // Handle IE's late coming "paste" event when pasting from + // browser toolbar/context menu. + body.on( 'paste', function( evt ) + { + if ( !editor.document.getById( 'cke_pastebin' ) ) + { + // Prevent native paste. + evt.data.preventDefault(); + + depressBeforeEvent = 0; + // Resort to the paste command. + pasteCmd.exec( editor ); + } + } ); + } + + body.on( 'beforecut', function() { !depressBeforeEvent && fixCut( editor ); } ); + + body.on( 'mouseup', function(){ setTimeout( function(){ setToolbarStates.call( editor ); }, 0 ); }, editor ); + body.on( 'keyup', setToolbarStates, editor ); + }); + + // For improved performance, we're checking the readOnly state on selectionChange instead of hooking a key event for that. + editor.on( 'selectionChange', function( evt ) + { + inReadOnly = evt.data.selection.getRanges()[ 0 ].checkReadOnly(); + setToolbarStates.call( editor ); + }); + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element, selection ) + { + var readOnly = selection.getRanges()[ 0 ].checkReadOnly(); + return { + cut : stateFromNamedCommand( 'Cut', editor ), + copy : stateFromNamedCommand( 'Copy', editor ), + paste : stateFromNamedCommand( 'Paste', editor ) + }; + }); + } + } + }); +})(); + +/** + * Fired when a clipboard operation is about to be taken into the editor. + * Listeners can manipulate the data to be pasted before having it effectively + * inserted into the document. + * @name CKEDITOR.editor#paste + * @since 3.1 + * @event + * @param {String} [data.html] The HTML data to be pasted. If not available, e.data.text will be defined. + * @param {String} [data.text] The plain text data to be pasted, available when plain text operations are to used. If not available, e.data.html will be defined. + */ + +/** + * Internal event to open the Paste dialog + * @name CKEDITOR.editor#pasteDialog + * @event + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/colorbutton/plugin.js b/htdocs/includes/ckeditor/_source/plugins/colorbutton/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..7cc0604d78df61501cc0bc7f8159165087437683 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/colorbutton/plugin.js @@ -0,0 +1,300 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "colorbutton" plugin that makes it possible to assign + * text and background colors to editor contents. + * + */ +CKEDITOR.plugins.add( 'colorbutton', +{ + requires : [ 'panelbutton', 'floatpanel', 'styles' ], + + init : function( editor ) + { + var config = editor.config, + lang = editor.lang.colorButton; + + var clickFn; + + if ( !CKEDITOR.env.hc ) + { + addButton( 'TextColor', 'fore', lang.textColorTitle ); + addButton( 'BGColor', 'back', lang.bgColorTitle ); + } + + function addButton( name, type, title ) + { + var colorBoxId = CKEDITOR.tools.getNextId() + '_colorBox'; + editor.ui.add( name, CKEDITOR.UI_PANELBUTTON, + { + label : title, + title : title, + className : 'cke_button_' + name.toLowerCase(), + modes : { wysiwyg : 1 }, + + panel : + { + css : editor.skin.editor.css, + attributes : { role : 'listbox', 'aria-label' : lang.panelTitle } + }, + + onBlock : function( panel, block ) + { + block.autoSize = true; + block.element.addClass( 'cke_colorblock' ); + block.element.setHtml( renderColors( panel, type, colorBoxId ) ); + // The block should not have scrollbars (#5933, #6056) + block.element.getDocument().getBody().setStyle( 'overflow', 'hidden' ); + + CKEDITOR.ui.fire( 'ready', this ); + + var keys = block.keys; + var rtl = editor.lang.dir == 'rtl'; + keys[ rtl ? 37 : 39 ] = 'next'; // ARROW-RIGHT + keys[ 40 ] = 'next'; // ARROW-DOWN + keys[ 9 ] = 'next'; // TAB + keys[ rtl ? 39 : 37 ] = 'prev'; // ARROW-LEFT + keys[ 38 ] = 'prev'; // ARROW-UP + keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB + keys[ 32 ] = 'click'; // SPACE + }, + + // The automatic colorbox should represent the real color (#6010) + onOpen : function() + { + var selection = editor.getSelection(), + block = selection && selection.getStartElement(), + path = new CKEDITOR.dom.elementPath( block ), + color; + + // Find the closest block element. + block = path.block || path.blockLimit || editor.document.getBody(); + + // The background color might be transparent. In that case, look up the color in the DOM tree. + do + { + color = block && block.getComputedStyle( type == 'back' ? 'background-color' : 'color' ) || 'transparent'; + } + while ( type == 'back' && color == 'transparent' && block && ( block = block.getParent() ) ); + + // The box should never be transparent. + if ( !color || color == 'transparent' ) + color = '#ffffff'; + + this._.panel._.iframe.getFrameDocument().getById( colorBoxId ).setStyle( 'background-color', color ); + } + }); + } + + + function renderColors( panel, type, colorBoxId ) + { + var output = [], + colors = config.colorButton_colors.split( ',' ); + + var clickFn = CKEDITOR.tools.addFunction( function( color, type ) + { + if ( color == '?' ) + { + var applyColorStyle = arguments.callee; + function onColorDialogClose( evt ) + { + this.removeListener( 'ok', onColorDialogClose ); + this.removeListener( 'cancel', onColorDialogClose ); + + evt.name == 'ok' && applyColorStyle( this.getContentElement( 'picker', 'selectedColor' ).getValue(), type ); + } + + editor.openDialog( 'colordialog', function() + { + this.on( 'ok', onColorDialogClose ); + this.on( 'cancel', onColorDialogClose ); + } ); + + return; + } + + editor.focus(); + + panel.hide( false ); + + editor.fire( 'saveSnapshot' ); + + // Clean up any conflicting style within the range. + new CKEDITOR.style( config['colorButton_' + type + 'Style'], { color : 'inherit' } ).remove( editor.document ); + + if ( color ) + { + var colorStyle = config['colorButton_' + type + 'Style']; + + colorStyle.childRule = type == 'back' ? + function( element ) + { + // It's better to apply background color as the innermost style. (#3599) + // Except for "unstylable elements". (#6103) + return isUnstylable( element ); + } + : + function( element ) + { + // Fore color style must be applied inside links instead of around it. (#4772,#6908) + return !( element.is( 'a' ) || element.getElementsByTag( 'a' ).count() ) || isUnstylable( element ); + }; + + new CKEDITOR.style( colorStyle, { color : color } ).apply( editor.document ); + } + + editor.fire( 'saveSnapshot' ); + }); + + // Render the "Automatic" button. + output.push( + '<a class="cke_colorauto" _cke_focus=1 hidefocus=true' + + ' title="', lang.auto, '"' + + ' onclick="CKEDITOR.tools.callFunction(', clickFn, ',null,\'', type, '\');return false;"' + + ' href="javascript:void(\'', lang.auto, '\')"' + + ' role="option">' + + '<table role="presentation" cellspacing=0 cellpadding=0 width="100%">' + + '<tr>' + + '<td>' + + '<span class="cke_colorbox" id="', colorBoxId, '"></span>' + + '</td>' + + '<td colspan=7 align=center>', + lang.auto, + '</td>' + + '</tr>' + + '</table>' + + '</a>' + + '<table role="presentation" cellspacing=0 cellpadding=0 width="100%">' ); + + // Render the color boxes. + for ( var i = 0 ; i < colors.length ; i++ ) + { + if ( ( i % 8 ) === 0 ) + output.push( '</tr><tr>' ); + + var parts = colors[ i ].split( '/' ), + colorName = parts[ 0 ], + colorCode = parts[ 1 ] || colorName; + + // The data can be only a color code (without #) or colorName + color code + // If only a color code is provided, then the colorName is the color with the hash + // Convert the color from RGB to RRGGBB for better compatibility with IE and <font>. See #5676 + if (!parts[1]) + colorName = '#' + colorName.replace( /^(.)(.)(.)$/, '$1$1$2$2$3$3' ); + + var colorLabel = editor.lang.colors[ colorCode ] || colorCode; + output.push( + '<td>' + + '<a class="cke_colorbox" _cke_focus=1 hidefocus=true' + + ' title="', colorLabel, '"' + + ' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'', colorName, '\',\'', type, '\'); return false;"' + + ' href="javascript:void(\'', colorLabel, '\')"' + + ' role="option">' + + '<span class="cke_colorbox" style="background-color:#', colorCode, '"></span>' + + '</a>' + + '</td>' ); + } + + // Render the "More Colors" button. + if ( config.colorButton_enableMore === undefined || config.colorButton_enableMore ) + { + output.push( + '</tr>' + + '<tr>' + + '<td colspan=8 align=center>' + + '<a class="cke_colormore" _cke_focus=1 hidefocus=true' + + ' title="', lang.more, '"' + + ' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'?\',\'', type, '\');return false;"' + + ' href="javascript:void(\'', lang.more, '\')"', + ' role="option">', + lang.more, + '</a>' + + '</td>' ); // tr is later in the code. + } + + output.push( '</tr></table>' ); + + return output.join( '' ); + } + + function isUnstylable( ele ) + { + return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' ); + } + } +}); + +/** + * Whether to enable the <strong>More Colors</strong> button in the color selectors. + * @name CKEDITOR.config.colorButton_enableMore + * @default <code>true</code> + * @type Boolean + * @example + * config.colorButton_enableMore = false; + */ + +/** + * Defines the colors to be displayed in the color selectors. This is a string + * containing hexadecimal notation for HTML colors, without the "#" prefix. + * <br /><br /> + * Since 3.3: A color name may optionally be defined by prefixing the entries with + * a name and the slash character. For example, "FontColor1/FF9900" will be + * displayed as the color #FF9900 in the selector, but will be output as "FontColor1". + * @name CKEDITOR.config.colorButton_colors + * @type String + * @default <code>'000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF'</code> + * @example + * // Brazil colors only. + * config.colorButton_colors = '00923E,F8C100,28166F'; + * @example + * config.colorButton_colors = 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00' + */ +CKEDITOR.config.colorButton_colors = + '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,' + + 'B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,' + + 'F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,' + + 'FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,' + + 'FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF'; + +/** + * Stores the style definition that applies the text foreground color. + * @name CKEDITOR.config.colorButton_foreStyle + * @type Object + * @default (see example) + * @example + * // This is actually the default value. + * config.colorButton_foreStyle = + * { + * element : 'span', + * styles : { 'color' : '#(color)' } + * }; + */ +CKEDITOR.config.colorButton_foreStyle = + { + element : 'span', + styles : { 'color' : '#(color)' }, + overrides : [ { element : 'font', attributes : { 'color' : null } } ] + }; + +/** + * Stores the style definition that applies the text background color. + * @name CKEDITOR.config.colorButton_backStyle + * @type Object + * @default (see example) + * @example + * // This is actually the default value. + * config.colorButton_backStyle = + * { + * element : 'span', + * styles : { 'background-color' : '#(color)' } + * }; + */ +CKEDITOR.config.colorButton_backStyle = + { + element : 'span', + styles : { 'background-color' : '#(color)' } + }; diff --git a/htdocs/includes/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js b/htdocs/includes/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js new file mode 100644 index 0000000000000000000000000000000000000000..a8e83f5daa8f711e286be1693024fd0c3af8a401 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js @@ -0,0 +1,387 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'colordialog', function( editor ) + { + // Define some shorthands. + var $el = CKEDITOR.dom.element, + $doc = CKEDITOR.document, + lang = editor.lang.colordialog; + + // Reference the dialog. + var dialog; + + var spacer = + { + type : 'html', + html : ' ' + }; + + var selected; + + function clearSelected() + { + $doc.getById( selHiColorId ).removeStyle( 'background-color' ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' ); + selected && selected.removeAttribute( 'aria-selected' ); + selected = null; + } + + function updateSelected( evt ) + { + var target = evt.data.getTarget(), + color; + + if ( target.getName() == 'td' && + ( color = target.getChild( 0 ).getHtml() ) ) + { + selected = target; + selected.setAttribute( 'aria-selected', true ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color ); + } + } + + // Basing black-white decision off of luma scheme using the Rec. 709 version + function whiteOrBlack( color ) + { + color = color.replace( /^#/, '' ); + for ( var i = 0, rgb = []; i <= 2; i++ ) + rgb[i] = parseInt( color.substr( i * 2, 2 ), 16 ); + var luma = (0.2126 * rgb[0]) + (0.7152 * rgb[1]) + (0.0722 * rgb[2]); + return '#' + ( luma >= 165 ? '000' : 'fff' ); + } + + // Distinguish focused and hover states. + var focused, hovered; + + // Apply highlight style. + function updateHighlight( event ) + { + // Convert to event. + !event.name && ( event = new CKEDITOR.event( event ) ); + + var isFocus = !(/mouse/).test( event.name ), + target = event.data.getTarget(), + color; + + if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) + { + removeHighlight( event ); + + isFocus ? focused = target : hovered = target; + + // Apply outline style to show focus. + if ( isFocus ) + { + target.setStyle( 'border-color', whiteOrBlack( color ) ); + target.setStyle( 'border-style', 'dotted' ); + } + + $doc.getById( hicolorId ).setStyle( 'background-color', color ); + $doc.getById( hicolorTextId ).setHtml( color ); + } + } + + function clearHighlight() + { + var color = focused.getChild( 0 ).getHtml(); + focused.setStyle( 'border-color', color ); + focused.setStyle( 'border-style', 'solid' ); + $doc.getById( hicolorId ).removeStyle( 'background-color' ); + $doc.getById( hicolorTextId ).setHtml( ' ' ); + focused = null; + } + + // Remove previously focused style. + function removeHighlight( event ) + { + var isFocus = !(/mouse/).test( event.name ), + target = isFocus && focused; + + if ( target ) + { + var color = target.getChild( 0 ).getHtml(); + target.setStyle( 'border-color', color ); + target.setStyle( 'border-style', 'solid' ); + } + + if ( ! ( focused || hovered ) ) + { + $doc.getById( hicolorId ).removeStyle( 'background-color' ); + $doc.getById( hicolorTextId ).setHtml( ' ' ); + } + } + + function onKeyStrokes( evt ) + { + var domEvt = evt.data; + + var element = domEvt.getTarget(); + var relative, nodeToMove; + var keystroke = domEvt.getKeystroke(), + rtl = editor.lang.dir == 'rtl'; + + switch ( keystroke ) + { + // UP-ARROW + case 38 : + // relative is TR + if ( ( relative = element.getParent().getPrevious() ) ) + { + nodeToMove = relative.getChild( [ element.getIndex() ] ); + nodeToMove.focus(); + } + domEvt.preventDefault(); + break; + // DOWN-ARROW + case 40 : + // relative is TR + if ( ( relative = element.getParent().getNext() ) ) + { + nodeToMove = relative.getChild( [ element.getIndex() ] ); + if ( nodeToMove && nodeToMove.type == 1 ) + { + nodeToMove.focus(); + } + } + domEvt.preventDefault(); + break; + + // SPACE + // ENTER + case 32 : + case 13 : + updateSelected( evt ); + domEvt.preventDefault(); + break; + + // RIGHT-ARROW + case rtl ? 37 : 39 : + // relative is TD + if ( ( nodeToMove = element.getNext() ) ) + { + if ( nodeToMove.type == 1 ) + { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + } + // relative is TR + else if ( ( relative = element.getParent().getNext() ) ) + { + nodeToMove = relative.getChild( [ 0 ] ); + if ( nodeToMove && nodeToMove.type == 1 ) + { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + } + break; + + // LEFT-ARROW + case rtl ? 39 : 37 : + // relative is TD + if ( ( nodeToMove = element.getPrevious() ) ) + { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + // relative is TR + else if ( ( relative = element.getParent().getPrevious() ) ) + { + nodeToMove = relative.getLast(); + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + break; + default : + // Do not stop not handled events. + return; + } + } + + function createColorTable() + { + table = CKEDITOR.dom.element.createFromHtml + ( + '<table tabIndex="-1" aria-label="' + lang.options + '"' + + ' role="grid" style="border-collapse:separate;" cellspacing="0">' + + '<caption class="cke_voice_label">' + lang.options + '</caption>' + + '<tbody role="presentation"></tbody></table>' + ); + + table.on( 'mouseover', updateHighlight ); + table.on( 'mouseout', removeHighlight ); + + // Create the base colors array. + var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ]; + + // This function combines two ranges of three values from the color array into a row. + function appendColorRow( rangeA, rangeB ) + { + for ( var i = rangeA ; i < rangeA + 3 ; i++ ) + { + var row = new $el( table.$.insertRow( -1 ) ); + row.setAttribute( 'role', 'row' ); + + for ( var j = rangeB ; j < rangeB + 3 ; j++ ) + { + for ( var n = 0 ; n < 6 ; n++ ) + { + appendColorCell( row.$, '#' + aColors[j] + aColors[n] + aColors[i] ); + } + } + } + } + + // This function create a single color cell in the color table. + function appendColorCell( targetRow, color ) + { + var cell = new $el( targetRow.insertCell( -1 ) ); + cell.setAttribute( 'class', 'ColorCell' ); + cell.setAttribute( 'tabIndex', -1 ); + cell.setAttribute( 'role', 'gridcell' ); + + cell.on( 'keydown', onKeyStrokes ); + cell.on( 'click', updateSelected ); + cell.on( 'focus', updateHighlight ); + cell.on( 'blur', removeHighlight ); + + cell.setStyle( 'background-color', color ); + cell.setStyle( 'border', '1px solid ' + color ); + + cell.setStyle( 'width', '14px' ); + cell.setStyle( 'height', '14px' ); + + var colorLabel = numbering( 'color_table_cell' ); + cell.setAttribute( 'aria-labelledby',colorLabel ); + cell.append( CKEDITOR.dom.element.createFromHtml( '<span id="' + colorLabel + '" class="cke_voice_label">' + color + '</span>', CKEDITOR.document ) ); + } + + appendColorRow( 0, 0 ); + appendColorRow( 3, 0 ); + appendColorRow( 0, 3 ); + appendColorRow( 3, 3 ); + + // Create the last row. + var oRow = new $el( table.$.insertRow( -1 ) ) ; + oRow.setAttribute( 'role', 'row' ); + + // Create the gray scale colors cells. + for ( var n = 0 ; n < 6 ; n++ ) + { + appendColorCell( oRow.$, '#' + aColors[n] + aColors[n] + aColors[n] ) ; + } + + // Fill the row with black cells. + for ( var i = 0 ; i < 12 ; i++ ) + { + appendColorCell( oRow.$, '#000000' ) ; + } + } + + var numbering = function( id ) + { + return CKEDITOR.tools.getNextId() + '_' + id; + }, + hicolorId = numbering( 'hicolor' ), + hicolorTextId = numbering( 'hicolortext' ), + selHiColorId = numbering( 'selhicolor' ), + table; + + createColorTable(); + + return { + title : lang.title, + minWidth : 360, + minHeight : 220, + onLoad : function() + { + // Update reference. + dialog = this; + }, + onHide : function() + { + clearSelected(); + clearHighlight(); + }, + contents : [ + { + id : 'picker', + label : lang.title, + accessKey : 'I', + elements : + [ + { + type : 'hbox', + padding : 0, + widths : [ '70%', '10%', '30%' ], + children : + [ + { + type : 'html', + html : '<div></div>', + onLoad : function() + { + CKEDITOR.document.getById( this.domId ).append( table ); + }, + focus : function() + { + // Restore the previously focused cell, + // otherwise put the initial focus on the first table cell. + ( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).focus(); + } + }, + spacer, + { + type : 'vbox', + padding : 0, + widths : [ '70%', '5%', '25%' ], + children : + [ + { + type : 'html', + html : '<span>' + lang.highlight +'</span>\ + <div id="' + hicolorId + '" style="border: 1px solid; height: 74px; width: 74px;"></div>\ + <div id="' + hicolorTextId + '"> </div><span>' + lang.selected + '</span>\ + <div id="' + selHiColorId + '" style="border: 1px solid; height: 20px; width: 74px;"></div>' + }, + { + type : 'text', + label : lang.selected, + labelStyle: 'display:none', + id : 'selectedColor', + style : 'width: 74px', + onChange : function() + { + // Try to update color preview with new value. If fails, then set it no none. + try + { + $doc.getById( selHiColorId ).setStyle( 'background-color', this.getValue() ); + } + catch ( e ) + { + clearSelected(); + } + } + }, + spacer, + { + type : 'button', + id : 'clear', + style : 'margin-top: 5px', + label : lang.clear, + onClick : clearSelected + } + ] + } + ] + } + ] + } + ] + }; + } + ); diff --git a/htdocs/includes/ckeditor/_source/plugins/colordialog/plugin.js b/htdocs/includes/ckeditor/_source/plugins/colordialog/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..b76aed2cd1aa208788f0b97e71ee37b19140e737 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/colordialog/plugin.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.colordialog = +{ + requires : [ 'dialog' ], + init : function( editor ) + { + editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) ); + CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); + } +}; + +CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog ); diff --git a/htdocs/includes/ckeditor/_source/plugins/contextmenu/plugin.js b/htdocs/includes/ckeditor/_source/plugins/contextmenu/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..5d95080dca5f43f19c5512e848119acf292cfe05 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/contextmenu/plugin.js @@ -0,0 +1,179 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'contextmenu', +{ + requires : [ 'menu' ], + + // Make sure the base class (CKEDITOR.menu) is loaded before it (#3318). + onLoad : function() + { + CKEDITOR.plugins.contextMenu = CKEDITOR.tools.createClass( + { + base : CKEDITOR.menu, + + $ : function( editor ) + { + this.base.call( this, editor, + { + panel: + { + className : editor.skinClass + ' cke_contextmenu', + attributes : + { + 'aria-label' : editor.lang.contextmenu.options + } + } + }); + }, + + proto : + { + addTarget : function( element, nativeContextMenuOnCtrl ) + { + // Opera doesn't support 'contextmenu' event, we have duo approaches employed here: + // 1. Inherit the 'button override' hack we introduced in v2 (#4530), while this require the Opera browser + // option 'Allow script to detect context menu/right click events' to be always turned on. + // 2. Considering the fact that ctrl/meta key is not been occupied + // for multiple range selecting (like Gecko), we use this key + // combination as a fallback for triggering context-menu. (#4530) + if ( CKEDITOR.env.opera && !( 'oncontextmenu' in document.body )) + { + var contextMenuOverrideButton; + element.on( 'mousedown', function( evt ) + { + evt = evt.data; + if ( evt.$.button != 2 ) + { + if ( evt.getKeystroke() == CKEDITOR.CTRL + 1 ) + element.fire( 'contextmenu', evt ); + return; + } + + if ( nativeContextMenuOnCtrl + && ( CKEDITOR.env.mac ? evt.$.metaKey : evt.$.ctrlKey ) ) + return; + + var target = evt.getTarget(); + + if ( !contextMenuOverrideButton ) + { + var ownerDoc = target.getDocument(); + contextMenuOverrideButton = ownerDoc.createElement( 'input' ) ; + contextMenuOverrideButton.$.type = 'button' ; + ownerDoc.getBody().append( contextMenuOverrideButton ) ; + } + + contextMenuOverrideButton.setAttribute( 'style', 'position:absolute;top:' + ( evt.$.clientY - 2 ) + + 'px;left:' + ( evt.$.clientX - 2 ) + + 'px;width:5px;height:5px;opacity:0.01' ); + + } ); + + element.on( 'mouseup', function ( evt ) + { + if ( contextMenuOverrideButton ) + { + contextMenuOverrideButton.remove(); + contextMenuOverrideButton = undefined; + // Simulate 'contextmenu' event. + element.fire( 'contextmenu', evt.data ); + } + } ); + } + + element.on( 'contextmenu', function( event ) + { + var domEvent = event.data; + + if ( nativeContextMenuOnCtrl && + // Safari on Windows always show 'ctrlKey' as true in 'contextmenu' event, + // which make this property unreliable. (#4826) + ( CKEDITOR.env.webkit ? holdCtrlKey : ( CKEDITOR.env.mac ? domEvent.$.metaKey : domEvent.$.ctrlKey ) ) ) + return; + + + // Cancel the browser context menu. + domEvent.preventDefault(); + + var offsetParent = domEvent.getTarget().getDocument().getDocumentElement(), + offsetX = domEvent.$.clientX, + offsetY = domEvent.$.clientY; + + CKEDITOR.tools.setTimeout( function() + { + this.open( offsetParent, null, offsetX, offsetY ); + + // IE needs a short while to allow selection change before opening menu. (#7908) + }, CKEDITOR.env.ie? 200 : 0, this ); + }, + this ); + + if ( CKEDITOR.env.opera ) + { + // 'contextmenu' event triggered by Windows menu key is unpreventable, + // cancel the key event itself. (#6534) + element.on( 'keypress' , function ( evt ) + { + var domEvent = evt.data; + + if ( domEvent.$.keyCode === 0 ) + domEvent.preventDefault(); + }); + } + + if ( CKEDITOR.env.webkit ) + { + var holdCtrlKey, + onKeyDown = function( event ) + { + holdCtrlKey = CKEDITOR.env.mac ? event.data.$.metaKey : event.data.$.ctrlKey ; + }, + resetOnKeyUp = function() + { + holdCtrlKey = 0; + }; + + element.on( 'keydown', onKeyDown ); + element.on( 'keyup', resetOnKeyUp ); + element.on( 'contextmenu', resetOnKeyUp ); + } + }, + + open : function( offsetParent, corner, offsetX, offsetY ) + { + this.editor.focus(); + offsetParent = offsetParent || CKEDITOR.document.getDocumentElement(); + this.show( offsetParent, corner, offsetX, offsetY ); + } + } + }); + }, + + beforeInit : function( editor ) + { + editor.contextMenu = new CKEDITOR.plugins.contextMenu( editor ); + + editor.addCommand( 'contextMenu', + { + exec : function() + { + editor.contextMenu.open( editor.document.getBody() ); + } + }); + } +}); + +/** + * Whether to show the browser native context menu when the <em>Ctrl</em> or + * <em>Meta</em> (Mac) key is pressed on opening the context menu with the + * right mouse button click or the <em>Menu</em> key. + * @name CKEDITOR.config.browserContextMenuOnCtrl + * @since 3.0.2 + * @type Boolean + * @default <code>true</code> + * @example + * config.browserContextMenuOnCtrl = false; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/_translationstatus.txt b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/_translationstatus.txt new file mode 100644 index 0000000000000000000000000000000000000000..abb983211d11bee3687e3d03afd397dcf530e6d3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/_translationstatus.txt @@ -0,0 +1,28 @@ +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license + +bg.js Found: 5 Missing: 0 +cs.js Found: 5 Missing: 0 +cy.js Found: 5 Missing: 0 +da.js Found: 5 Missing: 0 +de.js Found: 5 Missing: 0 +el.js Found: 5 Missing: 0 +eo.js Found: 5 Missing: 0 +et.js Found: 5 Missing: 0 +fa.js Found: 5 Missing: 0 +fi.js Found: 5 Missing: 0 +fr.js Found: 5 Missing: 0 +gu.js Found: 5 Missing: 0 +he.js Found: 5 Missing: 0 +hr.js Found: 5 Missing: 0 +it.js Found: 5 Missing: 0 +nb.js Found: 5 Missing: 0 +nl.js Found: 5 Missing: 0 +no.js Found: 5 Missing: 0 +pl.js Found: 5 Missing: 0 +pt-br.js Found: 5 Missing: 0 +tr.js Found: 5 Missing: 0 +ug.js Found: 5 Missing: 0 +uk.js Found: 5 Missing: 0 +vi.js Found: 5 Missing: 0 +zh-cn.js Found: 5 Missing: 0 diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/bg.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/bg.js new file mode 100644 index 0000000000000000000000000000000000000000..c524dedf4abba0b85616510f0fd50d0a53a992d9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/bg.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'bg', +{ + devTools : + { + title : 'Информация за елемента', + dialogName : 'Име на диалоговия прозорец', + tabName : 'Име на таб', + elementId : 'ID на елемента', + elementType : 'Тип на елемента' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/cs.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/cs.js new file mode 100644 index 0000000000000000000000000000000000000000..41050c86e7313aeeee60a01eefc6e6b7d62d96f9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/cs.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'cs', +{ + devTools : + { + title : 'Informace o prvku', + dialogName : 'Název dialogového okna', + tabName : 'Název karty', + elementId : 'ID prvku', + elementType : 'Typ prvku' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/cy.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/cy.js new file mode 100644 index 0000000000000000000000000000000000000000..eb65ec75cff2f4e4f2d0fffac667feaaa60e964b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/cy.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'cy', +{ + devTools : + { + title : 'Gwybodaeth am yr Elfen', + dialogName : 'Enw ffenestr y deialog', + tabName : 'Enw\'r tab', + elementId : 'ID yr Elfen', + elementType : 'Math yr elfen' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/da.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/da.js new file mode 100644 index 0000000000000000000000000000000000000000..90279c32c3ad2f53d85acb2736c924e9945916c1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/da.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'da', +{ + devTools : + { + title : 'Information på elementet', + dialogName : 'Dialogboks', + tabName : 'Tab beskrivelse', + elementId : 'ID på element', + elementType : 'Type af element' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/de.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/de.js new file mode 100644 index 0000000000000000000000000000000000000000..c958ef9fd020dcbd81980c44b7ce57bf7c8691c3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/de.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'de', +{ + devTools : + { + title : 'Elementinformation', + dialogName : 'Dialogfenstername', + tabName : 'Reitername', + elementId : 'Element ID', + elementType : 'Elementtyp' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/el.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/el.js new file mode 100644 index 0000000000000000000000000000000000000000..9e7223cfa2f001c4ad614dd97c1b2e2eb31d040c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/el.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'el', +{ + devTools : + { + title : 'Πληροφορίες Στοιχείου', + dialogName : 'Όνομα παραθύρου διαλόγου', + tabName : 'Όνομα καρτέλας', + elementId : 'ID Στοιχείου', + elementType : 'Τύπος στοιχείου' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/en.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/en.js new file mode 100644 index 0000000000000000000000000000000000000000..ec2771a3ad5cb425a50bc7e15d168cd8e374dce6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/en.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'en', +{ + devTools : + { + title : 'Element Information', + dialogName : 'Dialog window name', + tabName : 'Tab name', + elementId : 'Element ID', + elementType : 'Element type' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/eo.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..15bcebac82af92a1fa6f98282dc9d2206299775d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/eo.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'eo', +{ + devTools : + { + title : 'Informo pri la elemento', + dialogName : 'Nomo de la dialogfenestro', + tabName : 'Langetnomo', + elementId : 'ID de la elemento', + elementType : 'Tipo de la elemento' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/et.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/et.js new file mode 100644 index 0000000000000000000000000000000000000000..6ca4ef9ffc495cab81214e388ed8d5ca2f00f5b2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/et.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'et', +{ + devTools : + { + title : 'Elemendi andmed', + dialogName : 'Dialoogiakna nimi', + tabName : 'Saki nimi', + elementId : 'Elemendi ID', + elementType : 'Elemendi liik' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fa.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fa.js new file mode 100644 index 0000000000000000000000000000000000000000..4184d14e3536e91195a763e1f1b61d3824e8ff4d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fa.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'fa', +{ + devTools : + { + title : 'اطلاعات عنصر', + dialogName : 'نام پنجره محاورهای', + tabName : 'نام برگه', + elementId : 'ID عنصر', + elementType : 'نوع عنصر' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fi.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..c415660fb04eccdabe33df51e85141baf8bbf783 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fi.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'fi', +{ + devTools : + { + title : 'Elementin tiedot', + dialogName : 'Dialogi-ikkunan nimi', + tabName : 'Välilehden nimi', + elementId : 'Elementin ID', + elementType : 'Elementin tyyppi' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fr.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..2eab122f22eaed10a06b41f1e20e07856aeb15b4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/fr.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'fr', +{ + devTools : + { + title : 'Information sur l\'élément', + dialogName : 'Nom de la fenêtre de dialogue', + tabName : 'Nom de l\'onglet', + elementId : 'ID de l\'élément', + elementType : 'Type de l\'élément' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/gu.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/gu.js new file mode 100644 index 0000000000000000000000000000000000000000..cea92823bfcd78d29fe4fe414d4787859b387cf7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/gu.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'gu', +{ + devTools : + { + title : 'પ્રાથમિક માહિતી', + dialogName : 'વિન્ડોનું નામ', + tabName : 'ટેબનું નામ', + elementId : 'પ્રાથમિક આઈડી', + elementType : 'પ્રાથમિક પ્રકાર' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/he.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/he.js new file mode 100644 index 0000000000000000000000000000000000000000..b61f3c74b484a6c4f07d311da3eab97af83eb2e2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/he.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'he', +{ + devTools : + { + title : 'מידע על האלמנט', + dialogName : 'שם הדיאלוג', + tabName : 'שם הטאב', + elementId : 'ID של האלמנט', + elementType : 'סוג האלמנט' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/hr.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/hr.js new file mode 100644 index 0000000000000000000000000000000000000000..a4e5d1ba6fd583043c83ba100a4a7bd6af57598e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/hr.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'hr', +{ + devTools : + { + title : 'Informacije elementa', + dialogName : 'Naziv prozora za dijalog', + tabName : 'Naziva jahača', + elementId : 'ID elementa', + elementType : 'Vrsta elementa' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/it.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/it.js new file mode 100644 index 0000000000000000000000000000000000000000..27c01eda7d57d22398de4ab88061293413ad975a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/it.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'it', +{ + devTools : + { + title : 'Informazioni elemento', + dialogName : 'Nome finestra di dialogo', + tabName : 'Nome Tab', + elementId : 'ID Elemento', + elementType : 'Tipo elemento' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/nb.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..1df7af1da772493601192710717f25d73c097f2b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/nb.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'nb', +{ + devTools : + { + title : 'Elementinformasjon', + dialogName : 'Navn på dialogvindu', + tabName : 'Navn på fane', + elementId : 'Element-ID', + elementType : 'Elementtype' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/nl.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..2c674fc483488f3b66d86768239c61292bd1c483 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/nl.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'nl', +{ + devTools : + { + title : 'Elementinformatie', + dialogName : 'Naam dialoogvenster', + tabName : 'Tabnaam', + elementId : 'Element ID', + elementType : 'Elementtype' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/no.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/no.js new file mode 100644 index 0000000000000000000000000000000000000000..0d51dbfe0832cd45c1e008c80b53f2d472568f75 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/no.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'no', +{ + devTools : + { + title : 'Elementinformasjon', + dialogName : 'Navn på dialogvindu', + tabName : 'Navn på fane', + elementId : 'Element-ID', + elementType : 'Elementtype' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/pl.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/pl.js new file mode 100644 index 0000000000000000000000000000000000000000..10996842fb8b71b45ae70f444da64996da729869 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/pl.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'pl', +{ + devTools : + { + title : 'Informacja o elemencie', + dialogName : 'Nazwa okna dialogowego', + tabName : 'Nazwa zakładki', + elementId : 'ID elementu', + elementType : 'Typ elementu' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/pt-br.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/pt-br.js new file mode 100644 index 0000000000000000000000000000000000000000..8e0992f3d639b9db9a6d1cb571a91b3bf87154ff --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/pt-br.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'pt-br', +{ + devTools : + { + title : 'Informação do Elemento', + dialogName : 'Nome da janela de diálogo', + tabName : 'Nome da aba', + elementId : 'ID do elemento', + elementType : 'Tipo do elemento' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/tr.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..9940638cda466017a3c38b13130203096c1ac0ca --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/tr.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'tr', +{ + devTools : + { + title : 'Eleman Bilgisi', + dialogName : 'İletişim pencere ismi', + tabName : 'Sekme adı', + elementId : 'Eleman ID', + elementType : 'Eleman türü' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/ug.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/ug.js new file mode 100644 index 0000000000000000000000000000000000000000..5b1be624bbc4c97dd5e392b20e5b40382c7787d4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/ug.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'ug', +{ + devTools : + { + title : 'ئېلېمېنت ئۇچۇرى', + dialogName : 'سۆزلەشكۈ كۆزنەك ئاتى', + tabName : 'Tab ئاتى', + elementId : 'ئېلېمېنت كىملىكى', + elementType : 'ئېلېمېنت تىپى' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/uk.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/uk.js new file mode 100644 index 0000000000000000000000000000000000000000..21c4f29723a8c3adf501d5849474447138d12074 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/uk.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'uk', +{ + devTools : + { + title : 'Відомості про Елемент', + dialogName : 'Заголовок діалогового вікна', + tabName : 'Назва вкладки', + elementId : 'Ідентифікатор Елемента', + elementType : 'Тип Елемента' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/vi.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/vi.js new file mode 100644 index 0000000000000000000000000000000000000000..9470587b7e4924460921c5c7d19bc9a7c991baea --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/vi.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'vi', +{ + devTools : + { + title : 'Thông tin thành ph', + dialogName : 'Tên hộp tho', + tabName : 'Tên th', + elementId : 'Mã thành ph', + elementType : 'Loại thành ph' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/lang/zh-cn.js b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/zh-cn.js new file mode 100644 index 0000000000000000000000000000000000000000..d06ceb21f2049ad3828f85358dfd22ba0f90c422 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/lang/zh-cn.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'devtools', 'zh-cn', +{ + devTools : + { + title : '元素信息', + dialogName : '对话框窗口名称', + tabName : 'Tab 名称', + elementId : '元素 ID', + elementType : '元素类型' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/devtools/plugin.js b/htdocs/includes/ckeditor/_source/plugins/devtools/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..074503a8ecb1081ea7ecbb0432f964f46cdac362 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/devtools/plugin.js @@ -0,0 +1,173 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'devtools', +{ + lang : [ 'en', 'bg', 'cs', 'cy', 'da', 'de', 'el', 'eo', 'et', 'fa', 'fi', 'fr', 'gu', 'he', 'hr', 'it', 'nb', 'nl', 'no', 'pl', 'pt-br', 'tr', 'ug', 'uk', 'vi', 'zh-cn' ], + + init : function( editor ) + { + editor._.showDialogDefinitionTooltips = 1; + }, + onLoad : function() + { + CKEDITOR.document.appendStyleText( CKEDITOR.config.devtools_styles || + '#cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff }' + + '#cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; }' + + '#cke_tooltip ul { padding: 0pt; list-style-type: none; }' ); + } +}); + +(function() +{ + function defaultCallback( editor, dialog, element, tabName ) + { + var lang = editor.lang.devTools, + link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' + + ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) + + '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>', + str = + '<h2>' + lang.title + '</h2>' + + '<ul>' + + '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' + + '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>'; + + if ( element ) + str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>'; + + str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>'; + + return str + '</ul>'; + } + + function showTooltip( callback, el, editor, dialog, obj, tabName ) + { + var pos = el.getDocumentPosition(), + styles = { 'z-index' : CKEDITOR.dialog._.currentZIndex + 10, top : ( pos.y + el.getSize( 'height' ) ) + 'px' }; + + tooltip.setHtml( callback( editor, dialog, obj, tabName ) ); + tooltip.show(); + + // Translate coordinate for RTL. + if ( editor.lang.dir == 'rtl' ) + { + var viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(); + styles.right = ( viewPaneSize.width - pos.x - el.getSize( 'width' ) ) + 'px'; + } + else + styles.left = pos.x + 'px'; + + tooltip.setStyles( styles ); + } + + var tooltip; + CKEDITOR.on( 'reset', function() + { + tooltip && tooltip.remove(); + tooltip = null; + }); + + CKEDITOR.on( 'dialogDefinition', function( evt ) + { + var editor = evt.editor; + if ( editor._.showDialogDefinitionTooltips ) + { + if ( !tooltip ) + { + tooltip = CKEDITOR.dom.element.createFromHtml( '<div id="cke_tooltip" tabindex="-1" style="position: absolute"></div>', CKEDITOR.document ); + tooltip.hide(); + tooltip.on( 'mouseover', function(){ this.show(); } ); + tooltip.on( 'mouseout', function(){ this.hide(); } ); + tooltip.appendTo( CKEDITOR.document.getBody() ); + } + + var dialog = evt.data.definition.dialog, + callback = editor.config.devtools_textCallback || defaultCallback; + + dialog.on( 'load', function() + { + var tabs = dialog.parts.tabs.getChildren(), tab; + for ( var i = 0, len = tabs.count(); i < len; i++ ) + { + tab = tabs.getItem( i ); + tab.on( 'mouseover', function() + { + var id = this.$.id; + showTooltip( callback, this, editor, dialog, null, id.substring( 4, id.lastIndexOf( '_' ) ) ); + }); + tab.on( 'mouseout', function() + { + tooltip.hide(); + }); + } + + dialog.foreach( function( obj ) + { + if ( obj.type in { hbox : 1, vbox : 1 } ) + return; + + var el = obj.getElement(); + if ( el ) + { + el.on( 'mouseover', function() + { + showTooltip( callback, this, editor, dialog, obj, dialog._.currentTabId ); + }); + el.on( 'mouseout', function() + { + tooltip.hide(); + }); + } + }); + }); + } + }); +})(); + +/** + * A function that returns the text to be displayed inside the Developer Tools tooltip when hovering over a dialog UI element. + * There are 4 parameters that are being passed into the function: editor, dialog window, element, tab name. + * @name editor.config.devtools_textCallback + * @since 3.6 + * @type Function + * @default (see example) + * @example + * // This is actually the default value. + * // Show dialog window name, tab ID, and element ID. + * config.devtools_textCallback = function( editor, dialog, element, tabName ) + * { + * var lang = editor.lang.devTools, + * link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' + + * ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) + + * '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>', + * str = + * '<h2>' + lang.title + '</h2>' + + * '<ul>' + + * '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' + + * '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>'; + * + * if ( element ) + * str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>'; + * + * str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>'; + * + * return str + '</ul>'; + * } + */ + +/** + * A setting that stores CSS rules to be injected into the page with styles to be applied to the tooltip element. + * @name CKEDITOR.config.devtools_styles + * @since 3.6 + * @type String + * @default (see example) + * @example + * // This is actually the default value. + * CKEDITOR.config.devtools_styles = " + * #cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff } + * #cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; } + * #cke_tooltip ul { padding: 0pt; list-style-type: none; } + * "; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/dialog/dialogDefinition.js b/htdocs/includes/ckeditor/_source/plugins/dialog/dialogDefinition.js new file mode 100644 index 0000000000000000000000000000000000000000..3d36d0468c734ceba7e4608f4019a6e4a5ce98c7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/dialog/dialogDefinition.js @@ -0,0 +1,1166 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the "virtual" dialog, dialog content and dialog button + * definition classes. + */ + +/** + * The definition of a dialog window. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialogs. + * </div> + * @name CKEDITOR.dialog.definition + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * CKEDITOR.dialog.add( 'testOnly', function( editor ) + * { + * return { + * title : 'Test Dialog', + * resizable : CKEDITOR.DIALOG_RESIZE_BOTH, + * minWidth : 500, + * minHeight : 400, + * contents : [ + * { + * id : 'tab1', + * label : 'First Tab', + * title : 'First Tab Title', + * accessKey : 'Q', + * elements : [ + * { + * type : 'text', + * label : 'Test Text 1', + * id : 'testText1', + * 'default' : 'hello world!' + * } + * ] + * } + * ] + * }; + * }); + */ + +/** + * The dialog title, displayed in the dialog's header. Required. + * @name CKEDITOR.dialog.definition.prototype.title + * @field + * @type String + * @example + */ + +/** + * How the dialog can be resized, must be one of the four contents defined below. + * <br /><br /> + * <strong>CKEDITOR.DIALOG_RESIZE_NONE</strong><br /> + * <strong>CKEDITOR.DIALOG_RESIZE_WIDTH</strong><br /> + * <strong>CKEDITOR.DIALOG_RESIZE_HEIGHT</strong><br /> + * <strong>CKEDITOR.DIALOG_RESIZE_BOTH</strong><br /> + * @name CKEDITOR.dialog.definition.prototype.resizable + * @field + * @type Number + * @default CKEDITOR.DIALOG_RESIZE_NONE + * @example + */ + +/** + * The minimum width of the dialog, in pixels. + * @name CKEDITOR.dialog.definition.prototype.minWidth + * @field + * @type Number + * @default 600 + * @example + */ + +/** + * The minimum height of the dialog, in pixels. + * @name CKEDITOR.dialog.definition.prototype.minHeight + * @field + * @type Number + * @default 400 + * @example + */ + + +/** + * The initial width of the dialog, in pixels. + * @name CKEDITOR.dialog.definition.prototype.width + * @field + * @type Number + * @default @CKEDITOR.dialog.definition.prototype.minWidth + * @since 3.5.3 + * @example + */ + +/** + * The initial height of the dialog, in pixels. + * @name CKEDITOR.dialog.definition.prototype.height + * @field + * @type Number + * @default @CKEDITOR.dialog.definition.prototype.minHeight + * @since 3.5.3 + * @example + */ + +/** + * The buttons in the dialog, defined as an array of + * {@link CKEDITOR.dialog.definition.button} objects. + * @name CKEDITOR.dialog.definition.prototype.buttons + * @field + * @type Array + * @default [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ] + * @example + */ + +/** + * The contents in the dialog, defined as an array of + * {@link CKEDITOR.dialog.definition.content} objects. Required. + * @name CKEDITOR.dialog.definition.prototype.contents + * @field + * @type Array + * @example + */ + +/** + * The function to execute when OK is pressed. + * @name CKEDITOR.dialog.definition.prototype.onOk + * @field + * @type Function + * @example + */ + +/** + * The function to execute when Cancel is pressed. + * @name CKEDITOR.dialog.definition.prototype.onCancel + * @field + * @type Function + * @example + */ + +/** + * The function to execute when the dialog is displayed for the first time. + * @name CKEDITOR.dialog.definition.prototype.onLoad + * @field + * @type Function + * @example + */ + +/** + * The function to execute when the dialog is loaded (executed every time the dialog is opened). + * @name CKEDITOR.dialog.definition.prototype.onShow + * @field + * @type Function + * @example + */ + +/** + * <div class="notapi">This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog content pages.</div> + * @name CKEDITOR.dialog.definition.content + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + */ + +/** + * The id of the content page. + * @name CKEDITOR.dialog.definition.content.prototype.id + * @field + * @type String + * @example + */ + +/** + * The tab label of the content page. + * @name CKEDITOR.dialog.definition.content.prototype.label + * @field + * @type String + * @example + */ + +/** + * The popup message of the tab label. + * @name CKEDITOR.dialog.definition.content.prototype.title + * @field + * @type String + * @example + */ + +/** + * The CTRL hotkey for switching to the tab. + * @name CKEDITOR.dialog.definition.content.prototype.accessKey + * @field + * @type String + * @example + * contentDefinition.accessKey = 'Q'; // Switch to this page when CTRL-Q is pressed. + */ + +/** + * The UI elements contained in this content page, defined as an array of + * {@link CKEDITOR.dialog.definition.uiElement} objects. + * @name CKEDITOR.dialog.definition.content.prototype.elements + * @field + * @type Array + * @example + */ + +/** + * The definition of user interface element (textarea, radio etc). + * <div class="notapi">This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog UI elements.</div> + * @name CKEDITOR.dialog.definition.uiElement + * @constructor + * @see CKEDITOR.ui.dialog.uiElement + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + */ + +/** + * The id of the UI element. + * @name CKEDITOR.dialog.definition.uiElement.prototype.id + * @field + * @type String + * @example + */ + +/** + * The type of the UI element. Required. + * @name CKEDITOR.dialog.definition.uiElement.prototype.type + * @field + * @type String + * @example + */ + +/** + * The popup label of the UI element. + * @name CKEDITOR.dialog.definition.uiElement.prototype.title + * @field + * @type String + * @example + */ + +/** + * CSS class names to append to the UI element. + * @name CKEDITOR.dialog.definition.uiElement.prototype.className + * @field + * @type String + * @example + */ + +/** + * Inline CSS classes to append to the UI element. + * @name CKEDITOR.dialog.definition.uiElement.prototype.style + * @field + * @type String + * @example + */ + +/** + * Horizontal alignment (in container) of the UI element. + * @name CKEDITOR.dialog.definition.uiElement.prototype.align + * @field + * @type String + * @example + */ + +/** + * Function to execute the first time the UI element is displayed. + * @name CKEDITOR.dialog.definition.uiElement.prototype.onLoad + * @field + * @type Function + * @example + */ + +/** + * Function to execute whenever the UI element's parent dialog is displayed. + * @name CKEDITOR.dialog.definition.uiElement.prototype.onShow + * @field + * @type Function + * @example + */ + +/** + * Function to execute whenever the UI element's parent dialog is closed. + * @name CKEDITOR.dialog.definition.uiElement.prototype.onHide + * @field + * @type Function + * @example + */ + +/** + * Function to execute whenever the UI element's parent dialog's {@link CKEDITOR.dialog.definition.setupContent} method is executed. + * It usually takes care of the respective UI element as a standalone element. + * @name CKEDITOR.dialog.definition.uiElement.prototype.setup + * @field + * @type Function + * @example + */ + +/** + * Function to execute whenever the UI element's parent dialog's {@link CKEDITOR.dialog.definition.commitContent} method is executed. + * It usually takes care of the respective UI element as a standalone element. + * @name CKEDITOR.dialog.definition.uiElement.prototype.commit + * @field + * @type Function + * @example + */ + +// ----- hbox ----- + +/** + * Horizontal layout box for dialog UI elements, auto-expends to available width of container. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create horizontal layouts. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.hbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * @name CKEDITOR.dialog.definition.hbox + * @extends CKEDITOR.dialog.definition.uiElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'hbox',</b> + * widths : [ '25%', '25%', '50%' ], + * children : + * [ + * { + * type : 'text', + * id : 'id1', + * width : '40px', + * }, + * { + * type : 'text', + * id : 'id2', + * width : '40px', + * }, + * { + * type : 'text', + * id : 'id3' + * } + * ] + * } + */ + +/** + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * @name CKEDITOR.dialog.definition.hbox.prototype.children + * @field + * @type Array + * @example + */ + +/** + * (Optional) The widths of child cells. + * @name CKEDITOR.dialog.definition.hbox.prototype.widths + * @field + * @type Array + * @example + */ + +/** + * (Optional) The height of the layout. + * @name CKEDITOR.dialog.definition.hbox.prototype.height + * @field + * @type Number + * @example + */ + +/** + * The CSS styles to apply to this element. + * @name CKEDITOR.dialog.definition.hbox.prototype.styles + * @field + * @type String + * @example + */ + +/** + * (Optional) The padding width inside child cells. Example: 0, 1. + * @name CKEDITOR.dialog.definition.hbox.prototype.padding + * @field + * @type Number + * @example + */ + +/** + * (Optional) The alignment of the whole layout. Example: center, top. + * @name CKEDITOR.dialog.definition.hbox.prototype.align + * @field + * @type String + * @example + */ + +// ----- vbox ----- + +/** + * Vertical layout box for dialog UI elements. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create vertical layouts. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.vbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * <style type="text/css">.details .detailList {display:none;} </style> + * @name CKEDITOR.dialog.definition.vbox + * @extends CKEDITOR.dialog.definition.uiElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'vbox',</b> + * align : 'right', + * width : '200px', + * children : + * [ + * { + * type : 'text', + * id : 'age', + * label : 'Age' + * }, + * { + * type : 'text', + * id : 'sex', + * label : 'Sex' + * }, + * { + * type : 'text', + * id : 'nationality', + * label : 'Nationality' + * } + * ] + * } + */ + +/** + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * @name CKEDITOR.dialog.definition.vbox.prototype.children + * @field + * @type Array + * @example + */ + +/** + * (Optional) The width of the layout. + * @name CKEDITOR.dialog.definition.vbox.prototype.width + * @field + * @type Array + * @example + */ + +/** + * (Optional) The heights of individual cells. + * @name CKEDITOR.dialog.definition.vbox.prototype.heights + * @field + * @type Number + * @example + */ + +/** + * The CSS styles to apply to this element. + * @name CKEDITOR.dialog.definition.vbox.prototype.styles + * @field + * @type String + * @example + */ + +/** + * (Optional) The padding width inside child cells. Example: 0, 1. + * @name CKEDITOR.dialog.definition.vbox.prototype.padding + * @field + * @type Number + * @example + */ + +/** + * (Optional) The alignment of the whole layout. Example: center, top. + * @name CKEDITOR.dialog.definition.vbox.prototype.align + * @field + * @type String + * @example + */ + +/** + * (Optional) Whether the layout should expand vertically to fill its container. + * @name CKEDITOR.dialog.definition.vbox.prototype.expand + * @field + * @type Boolean + * @example + */ + +// ----- labeled element ------ + +/** + * The definition of labeled user interface element (textarea, textInput etc). + * <div class="notapi">This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog UI elements.</div> + * @name CKEDITOR.dialog.definition.labeledElement + * @extends CKEDITOR.dialog.definition.uiElement + * @constructor + * @see CKEDITOR.ui.dialog.labeledElement + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + */ + +/** + * The label of the UI element. + * @name CKEDITOR.dialog.definition.labeledElement.prototype.label + * @type String + * @field + * @example + * { + * type : 'text', + * label : 'My Label ' + * } + */ + +/** + * (Optional) Specify the layout of the label. Set to 'horizontal' for horizontal layout. + * The default layout is vertical. + * @name CKEDITOR.dialog.definition.labeledElement.prototype.labelLayout + * @type String + * @field + * @example + * { + * type : 'text', + * label : 'My Label ', + * <strong> labelLayout : 'horizontal',</strong> + * } + */ + +/** + * (Optional) Applies only to horizontal layouts: a two elements array of lengths to specify the widths of the +* label and the content element. See also {@link CKEDITOR.dialog.definition.labeledElement#labelLayout}. + * @name CKEDITOR.dialog.definition.labeledElement.prototype.widths + * @type Array + * @field + * @example + * { + * type : 'text', + * label : 'My Label ', + * labelLayout : 'horizontal', + * <strong> widths : [100, 200],</strong> + * } + */ + +/** + * Specify the inline style of the uiElement label. + * @name CKEDITOR.dialog.definition.labeledElement.prototype.labelStyle + * @type String + * @field + * @example + * { + * type : 'text', + * label : 'My Label ', + * <strong> labelStyle : 'color: red',</strong> + * } + */ + + +/** + * Specify the inline style of the input element. + * @name CKEDITOR.dialog.definition.labeledElement.prototype.inputStyle + * @type String + * @since 3.6.1 + * @field + * @example + * { + * type : 'text', + * label : 'My Label ', + * <strong> inputStyle : 'text-align:center',</strong> + * } + */ + +/** + * Specify the inline style of the input element container . + * @name CKEDITOR.dialog.definition.labeledElement.prototype.controlStyle + * @type String + * @since 3.6.1 + * @field + * @example + * { + * type : 'text', + * label : 'My Label ', + * <strong> controlStyle : 'width:3em',</strong> + * } + */ + + +// ----- button ------ + +/** + * The definition of a button. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create buttons. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.button} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.button + * @extends CKEDITOR.dialog.definition.uiElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'button',</b> + * id : 'buttonId', + * label : 'Click me', + * title : 'My title', + * onClick : function() { + * // this = CKEDITOR.ui.dialog.button + * alert( 'Clicked: ' + this.id ); + * } + * } + */ + +/** + * Whether the button is disabled. + * @name CKEDITOR.dialog.definition.button.prototype.disabled + * @type Boolean + * @field + * @example + */ + +/** + * The label of the UI element. + * @name CKEDITOR.dialog.definition.button.prototype.label + * @type String + * @field + * @example + */ + +// ----- checkbox ------ + +/** + * The definition of a checkbox element. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create groups of checkbox buttons. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.checkbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.checkbox + * @extends CKEDITOR.dialog.definition.uiElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'checkbox',</b> + * id : 'agree', + * label : 'I agree', + * 'default' : 'checked', + * onClick : function() { + * // this = CKEDITOR.ui.dialog.checkbox + * alert( 'Checked: ' + this.getValue() ); + * } + * } + */ + +/** + * (Optional) The validation function. + * @name CKEDITOR.dialog.definition.checkbox.prototype.validate + * @field + * @type Function + * @example + */ + +/** + * The label of the UI element. + * @name CKEDITOR.dialog.definition.checkbox.prototype.label + * @type String + * @field + * @example + */ + +/** + * The default state. + * @name CKEDITOR.dialog.definition.checkbox.prototype.default + * @type String + * @field + * @default + * '' (unchecked) + * @example + */ + +// ----- file ----- + +/** + * The definition of a file upload input. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create file upload elements. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.file} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.file + * @extends CKEDITOR.dialog.definition.labeledElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'file'</b>, + * id : 'upload', + * label : 'Select file from your computer', + * size : 38 + * }, + * { + * type : 'fileButton', + * id : 'fileId', + * label : 'Upload file', + * 'for' : [ 'tab1', 'upload' ] + * filebrowser : { + * onSelect : function( fileUrl, data ) { + * alert( 'Successfully uploaded: ' + fileUrl ); + * } + * } + * } + */ + +/** + * (Optional) The validation function. + * @name CKEDITOR.dialog.definition.file.prototype.validate + * @field + * @type Function + * @example + */ + +/** + * (Optional) The action attribute of the form element associated with this file upload input. + * If empty, CKEditor will use path to server connector for currently opened folder. + * @name CKEDITOR.dialog.definition.file.prototype.action + * @type String + * @field + * @example + */ + +/** + * The size of the UI element. + * @name CKEDITOR.dialog.definition.file.prototype.size + * @type Number + * @field + * @example + */ + +// ----- fileButton ----- + +/** + * The definition of a button for submitting the file in a file upload input. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create a button for submitting the file in a file upload input. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.fileButton} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.fileButton + * @extends CKEDITOR.dialog.definition.uiElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type : 'file', + * id : 'upload', + * label : 'Select file from your computer', + * size : 38 + * }, + * { + * <b>type : 'fileButton'</b>, + * id : 'fileId', + * label : 'Upload file', + * 'for' : [ 'tab1', 'upload' ] + * filebrowser : { + * onSelect : function( fileUrl, data ) { + * alert( 'Successfully uploaded: ' + fileUrl ); + * } + * } + * } + */ + +/** + * (Optional) The validation function. + * @name CKEDITOR.dialog.definition.fileButton.prototype.validate + * @field + * @type Function + * @example + */ + +/** + * The label of the UI element. + * @name CKEDITOR.dialog.definition.fileButton.prototype.label + * @type String + * @field + * @example + */ + +/** + * The instruction for CKEditor how to deal with file upload. + * By default, the file and fileButton elements will not work "as expected" if this attribute is not set. + * @name CKEDITOR.dialog.definition.fileButton.prototype.filebrowser + * @type String|Object + * @field + * @example + * // Update field with id 'txtUrl' in the 'tab1' tab when file is uploaded. + * filebrowser : 'tab1:txtUrl' + * + * // Call custom onSelect function when file is successfully uploaded. + * filebrowser : { + * onSelect : function( fileUrl, data ) { + * alert( 'Successfully uploaded: ' + fileUrl ); + * } + * } + */ + +/** + * An array that contains pageId and elementId of the file upload input element for which this button is created. + * @name CKEDITOR.dialog.definition.fileButton.prototype.for + * @type String + * @field + * @example + * [ pageId, elementId ] + */ + +// ----- html ----- + +/** + * The definition of a raw HTML element. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create elements made from raw HTML code. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.html} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.<br /> + * To access HTML elements use {@link CKEDITOR.dom.document#getById} + * @name CKEDITOR.dialog.definition.html + * @extends CKEDITOR.dialog.definition.uiElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example 1: + * { + * <b>type : 'html',</b> + * html : '<h3>This is some sample HTML content.</h3>' + * } + * @example + * // Example 2: + * // Complete sample with document.getById() call when the "Ok" button is clicked. + * var dialogDefinition = + * { + * title : 'Sample dialog', + * minWidth : 300, + * minHeight : 200, + * onOk : function() { + * // "this" is now a CKEDITOR.dialog object. + * var document = this.getElement().getDocument(); + * // document = CKEDITOR.dom.document + * var element = <b>document.getById( 'myDiv' );</b> + * if ( element ) + * alert( element.getHtml() ); + * }, + * contents : [ + * { + * id : 'tab1', + * label : '', + * title : '', + * elements : + * [ + * { + * <b>type : 'html',</b> + * html : '<b><div id="myDiv">Sample <b>text</b>.</div></b><div id="otherId">Another div.</div>' + * }, + * ] + * } + * ], + * buttons : [ CKEDITOR.dialog.cancelButton, CKEDITOR.dialog.okButton ] + * }; + */ + +/** + * (Required) HTML code of this element. + * @name CKEDITOR.dialog.definition.html.prototype.html + * @type String + * @field + * @example + */ + +// ----- radio ------ + +/** + * The definition of a radio group. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create groups of radio buttons. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.radio} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.radio + * @extends CKEDITOR.dialog.definition.labeledElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'radio',</b> + * id : 'country', + * label : 'Which country is bigger', + * items : [ [ 'France', 'FR' ], [ 'Germany', 'DE' ] ] , + * style : 'color:green', + * 'default' : 'DE', + * onClick : function() { + * // this = CKEDITOR.ui.dialog.radio + * alert( 'Current value: ' + this.getValue() ); + * } + * } + */ + +/** + * The default value. + * @name CKEDITOR.dialog.definition.radio.prototype.default + * @type String + * @field + * @example + */ + +/** + * (Optional) The validation function. + * @name CKEDITOR.dialog.definition.radio.prototype.validate + * @field + * @type Function + * @example + */ + +/** + * An array of options. Each option is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' is missing, then the value would be assumed to be the same as the description. + * @name CKEDITOR.dialog.definition.radio.prototype.items + * @field + * @type Array + * @example + */ + +// ----- selectElement ------ + +/** + * The definition of a select element. + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create select elements. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.select} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.select + * @extends CKEDITOR.dialog.definition.labeledElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'select',</b> + * id : 'sport', + * label : 'Select your favourite sport', + * items : [ [ 'Basketball' ], [ 'Baseball' ], [ 'Hockey' ], [ 'Football' ] ], + * 'default' : 'Football', + * onChange : function( api ) { + * // this = CKEDITOR.ui.dialog.select + * alert( 'Current value: ' + this.getValue() ); + * } + * } + */ + +/** + * The default value. + * @name CKEDITOR.dialog.definition.select.prototype.default + * @type String + * @field + * @example + */ + +/** + * (Optional) The validation function. + * @name CKEDITOR.dialog.definition.select.prototype.validate + * @field + * @type Function + * @example + */ + +/** + * An array of options. Each option is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' is missing, then the value would be assumed to be the same as the description. + * @name CKEDITOR.dialog.definition.select.prototype.items + * @field + * @type Array + * @example + */ + +/** + * (Optional) Set this to true if you'd like to have a multiple-choice select box. + * @name CKEDITOR.dialog.definition.select.prototype.multiple + * @type Boolean + * @field + * @example + * @default false + */ + +/** + * (Optional) The number of items to display in the select box. + * @name CKEDITOR.dialog.definition.select.prototype.size + * @type Number + * @field + * @example + */ + +// ----- textInput ----- + +/** + * The definition of a text field (single line). + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create text fields. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textInput} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.textInput + * @extends CKEDITOR.dialog.definition.labeledElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * { + * <b>type : 'text',</b> + * id : 'name', + * label : 'Your name', + * 'default' : '', + * validate : function() { + * if ( !this.getValue() ) + * { + * api.openMsgDialog( '', 'Name cannot be empty.' ); + * return false; + * } + * } + * } + */ + +/** + * The default value. + * @name CKEDITOR.dialog.definition.textInput.prototype.default + * @type String + * @field + * @example + */ + +/** + * (Optional) The maximum length. + * @name CKEDITOR.dialog.definition.textInput.prototype.maxLength + * @type Number + * @field + * @example + */ + +/** + * (Optional) The size of the input field. + * @name CKEDITOR.dialog.definition.textInput.prototype.size + * @type Number + * @field + * @example + */ + +/** + * (Optional) The validation function. + * @name CKEDITOR.dialog.definition.textInput.prototype.validate + * @field + * @type Function + * @example + */ + +// ----- textarea ------ + +/** + * The definition of a text field (multiple lines). + * <div class="notapi"> + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create textarea. + * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textarea} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * </div> + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}. + * @name CKEDITOR.dialog.definition.textarea + * @extends CKEDITOR.dialog.definition.labeledElement + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * <b>type : 'textarea',</b> + * id : 'message', + * label : 'Your comment', + * 'default' : '', + * validate : function() { + * if ( this.getValue().length < 5 ) + * { + * api.openMsgDialog( 'The comment is too short.' ); + * return false; + * } + * } + * } + */ + +/** + * The number of rows. + * @name CKEDITOR.dialog.definition.textarea.prototype.rows + * @type Number + * @field + * @example + */ + +/** + * The number of columns. + * @name CKEDITOR.dialog.definition.textarea.prototype.cols + * @type Number + * @field + * @example + */ + +/** + * (Optional) The validation function. + * @name CKEDITOR.dialog.definition.textarea.prototype.validate + * @field + * @type Function + * @example + */ + +/** + * The default value. + * @name CKEDITOR.dialog.definition.textarea.prototype.default + * @type String + * @field + * @example + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/dialog/plugin.js b/htdocs/includes/ckeditor/_source/plugins/dialog/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..db371c4d95f873dbeab160349fc358390acf7478 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/dialog/plugin.js @@ -0,0 +1,3322 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The floating dialog plugin. + */ + +/** + * No resize for this dialog. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_NONE = 0; + +/** + * Only allow horizontal resizing for this dialog, disable vertical resizing. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_WIDTH = 1; + +/** + * Only allow vertical resizing for this dialog, disable horizontal resizing. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_HEIGHT = 2; + +/* + * Allow the dialog to be resized in both directions. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_BOTH = 3; + +(function() +{ + var cssLength = CKEDITOR.tools.cssLength; + function isTabVisible( tabId ) + { + return !!this._.tabs[ tabId ][ 0 ].$.offsetHeight; + } + + function getPreviousVisibleTab() + { + var tabId = this._.currentTabId, + length = this._.tabIdList.length, + tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId ) + length; + + for ( var i = tabIndex - 1 ; i > tabIndex - length ; i-- ) + { + if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) ) + return this._.tabIdList[ i % length ]; + } + + return null; + } + + function getNextVisibleTab() + { + var tabId = this._.currentTabId, + length = this._.tabIdList.length, + tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId ); + + for ( var i = tabIndex + 1 ; i < tabIndex + length ; i++ ) + { + if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) ) + return this._.tabIdList[ i % length ]; + } + + return null; + } + + + function clearOrRecoverTextInputValue( container, isRecover ) + { + var inputs = container.$.getElementsByTagName( 'input' ); + for ( var i = 0, length = inputs.length; i < length ; i++ ) + { + var item = new CKEDITOR.dom.element( inputs[ i ] ); + + if ( item.getAttribute( 'type' ).toLowerCase() == 'text' ) + { + if ( isRecover ) + { + item.setAttribute( 'value', item.getCustomData( 'fake_value' ) || '' ); + item.removeCustomData( 'fake_value' ); + } + else + { + item.setCustomData( 'fake_value', item.getAttribute( 'value' ) ); + item.setAttribute( 'value', '' ); + } + } + } + } + + // Handle dialog element validation state UI changes. + function handleFieldValidated( isValid, msg ) + { + var input = this.getInputElement(); + if ( input ) + { + isValid ? input.removeAttribute( 'aria-invalid' ) + : input.setAttribute( 'aria-invalid', true ); + } + + if ( !isValid ) + { + if ( this.select ) + this.select(); + else + this.focus(); + } + + msg && alert( msg ); + + this.fire( 'validated', { valid : isValid, msg : msg } ); + } + + function resetField() + { + var input = this.getInputElement(); + input && input.removeAttribute( 'aria-invalid' ); + } + + + /** + * This is the base class for runtime dialog objects. An instance of this + * class represents a single named dialog for a single editor instance. + * @param {Object} editor The editor which created the dialog. + * @param {String} dialogName The dialog's registered name. + * @constructor + * @example + * var dialogObj = new CKEDITOR.dialog( editor, 'smiley' ); + */ + CKEDITOR.dialog = function( editor, dialogName ) + { + // Load the dialog definition. + var definition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ], + defaultDefinition = CKEDITOR.tools.clone( defaultDialogDefinition ), + buttonsOrder = editor.config.dialog_buttonsOrder || 'OS', + dir = editor.lang.dir, + tabsToRemove = {}, + i, + processed, stopPropagation; + + if ( ( buttonsOrder == 'OS' && CKEDITOR.env.mac ) || // The buttons in MacOS Apps are in reverse order (#4750) + ( buttonsOrder == 'rtl' && dir == 'ltr' ) || + ( buttonsOrder == 'ltr' && dir == 'rtl' ) ) + defaultDefinition.buttons.reverse(); + + + // Completes the definition with the default values. + definition = CKEDITOR.tools.extend( definition( editor ), defaultDefinition ); + + // Clone a functionally independent copy for this dialog. + definition = CKEDITOR.tools.clone( definition ); + + // Create a complex definition object, extending it with the API + // functions. + definition = new definitionObject( this, definition ); + + var doc = CKEDITOR.document; + + var themeBuilt = editor.theme.buildDialog( editor ); + + // Initialize some basic parameters. + this._ = + { + editor : editor, + element : themeBuilt.element, + name : dialogName, + contentSize : { width : 0, height : 0 }, + size : { width : 0, height : 0 }, + contents : {}, + buttons : {}, + accessKeyMap : {}, + + // Initialize the tab and page map. + tabs : {}, + tabIdList : [], + currentTabId : null, + currentTabIndex : null, + pageCount : 0, + lastTab : null, + tabBarMode : false, + + // Initialize the tab order array for input widgets. + focusList : [], + currentFocusIndex : 0, + hasFocus : false + }; + + this.parts = themeBuilt.parts; + + CKEDITOR.tools.setTimeout( function() + { + editor.fire( 'ariaWidget', this.parts.contents ); + }, + 0, this ); + + // Set the startup styles for the dialog, avoiding it enlarging the + // page size on the dialog creation. + var startStyles = { + position : CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed', + top : 0, + visibility : 'hidden' + }; + + startStyles[ dir == 'rtl' ? 'right' : 'left' ] = 0; + this.parts.dialog.setStyles( startStyles ); + + + // Call the CKEDITOR.event constructor to initialize this instance. + CKEDITOR.event.call( this ); + + // Fire the "dialogDefinition" event, making it possible to customize + // the dialog definition. + this.definition = definition = CKEDITOR.fire( 'dialogDefinition', + { + name : dialogName, + definition : definition + } + , editor ).definition; + + // Cache tabs that should be removed. + if ( !( 'removeDialogTabs' in editor._ ) && editor.config.removeDialogTabs ) + { + var removeContents = editor.config.removeDialogTabs.split( ';' ); + + for ( i = 0; i < removeContents.length; i++ ) + { + var parts = removeContents[ i ].split( ':' ); + if ( parts.length == 2 ) + { + var removeDialogName = parts[ 0 ]; + if ( !tabsToRemove[ removeDialogName ] ) + tabsToRemove[ removeDialogName ] = []; + tabsToRemove[ removeDialogName ].push( parts[ 1 ] ); + } + } + editor._.removeDialogTabs = tabsToRemove; + } + + // Remove tabs of this dialog. + if ( editor._.removeDialogTabs && ( tabsToRemove = editor._.removeDialogTabs[ dialogName ] ) ) + { + for ( i = 0; i < tabsToRemove.length; i++ ) + definition.removeContents( tabsToRemove[ i ] ); + } + + // Initialize load, show, hide, ok and cancel events. + if ( definition.onLoad ) + this.on( 'load', definition.onLoad ); + + if ( definition.onShow ) + this.on( 'show', definition.onShow ); + + if ( definition.onHide ) + this.on( 'hide', definition.onHide ); + + if ( definition.onOk ) + { + this.on( 'ok', function( evt ) + { + // Dialog confirm might probably introduce content changes (#5415). + editor.fire( 'saveSnapshot' ); + setTimeout( function () { editor.fire( 'saveSnapshot' ); }, 0 ); + if ( definition.onOk.call( this, evt ) === false ) + evt.data.hide = false; + }); + } + + if ( definition.onCancel ) + { + this.on( 'cancel', function( evt ) + { + if ( definition.onCancel.call( this, evt ) === false ) + evt.data.hide = false; + }); + } + + var me = this; + + // Iterates over all items inside all content in the dialog, calling a + // function for each of them. + var iterContents = function( func ) + { + var contents = me._.contents, + stop = false; + + for ( var i in contents ) + { + for ( var j in contents[i] ) + { + stop = func.call( this, contents[i][j] ); + if ( stop ) + return; + } + } + }; + + this.on( 'ok', function( evt ) + { + iterContents( function( item ) + { + if ( item.validate ) + { + var retval = item.validate( this ), + invalid = typeof ( retval ) == 'string' || retval === false; + + if ( invalid ) + { + evt.data.hide = false; + evt.stop(); + } + + handleFieldValidated.call( item, !invalid, typeof retval == 'string' ? retval : undefined ); + return invalid; + } + }); + }, this, null, 0 ); + + this.on( 'cancel', function( evt ) + { + iterContents( function( item ) + { + if ( item.isChanged() ) + { + if ( !confirm( editor.lang.common.confirmCancel ) ) + evt.data.hide = false; + return true; + } + }); + }, this, null, 0 ); + + this.parts.close.on( 'click', function( evt ) + { + if ( this.fire( 'cancel', { hide : true } ).hide !== false ) + this.hide(); + evt.data.preventDefault(); + }, this ); + + // Sort focus list according to tab order definitions. + function setupFocus() + { + var focusList = me._.focusList; + focusList.sort( function( a, b ) + { + // Mimics browser tab order logics; + if ( a.tabIndex != b.tabIndex ) + return b.tabIndex - a.tabIndex; + // Sort is not stable in some browsers, + // fall-back the comparator to 'focusIndex'; + else + return a.focusIndex - b.focusIndex; + }); + + var size = focusList.length; + for ( var i = 0; i < size; i++ ) + focusList[ i ].focusIndex = i; + } + + function changeFocus( offset ) + { + var focusList = me._.focusList; + offset = offset || 0; + + if ( focusList.length < 1 ) + return; + + var current = me._.currentFocusIndex; + + // Trigger the 'blur' event of any input element before anything, + // since certain UI updates may depend on it. + try + { + focusList[ current ].getInputElement().$.blur(); + } + catch( e ){} + + var startIndex = ( current + offset + focusList.length ) % focusList.length, + currentIndex = startIndex; + while ( offset && !focusList[ currentIndex ].isFocusable() ) + { + currentIndex = ( currentIndex + offset + focusList.length ) % focusList.length; + if ( currentIndex == startIndex ) + break; + } + + focusList[ currentIndex ].focus(); + + // Select whole field content. + if ( focusList[ currentIndex ].type == 'text' ) + focusList[ currentIndex ].select(); + } + + this.changeFocus = changeFocus; + + + function keydownHandler( evt ) + { + // If I'm not the top dialog, ignore. + if ( me != CKEDITOR.dialog._.currentTop ) + return; + + var keystroke = evt.data.getKeystroke(), + rtl = editor.lang.dir == 'rtl', + button; + + processed = stopPropagation = 0; + + if ( keystroke == 9 || keystroke == CKEDITOR.SHIFT + 9 ) + { + var shiftPressed = ( keystroke == CKEDITOR.SHIFT + 9 ); + + // Handling Tab and Shift-Tab. + if ( me._.tabBarMode ) + { + // Change tabs. + var nextId = shiftPressed ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ); + me.selectPage( nextId ); + me._.tabs[ nextId ][ 0 ].focus(); + } + else + { + // Change the focus of inputs. + changeFocus( shiftPressed ? -1 : 1 ); + } + + processed = 1; + } + else if ( keystroke == CKEDITOR.ALT + 121 && !me._.tabBarMode && me.getPageCount() > 1 ) + { + // Alt-F10 puts focus into the current tab item in the tab bar. + me._.tabBarMode = true; + me._.tabs[ me._.currentTabId ][ 0 ].focus(); + processed = 1; + } + else if ( ( keystroke == 37 || keystroke == 39 ) && me._.tabBarMode ) + { + // Arrow keys - used for changing tabs. + nextId = ( keystroke == ( rtl ? 39 : 37 ) ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ) ); + me.selectPage( nextId ); + me._.tabs[ nextId ][ 0 ].focus(); + processed = 1; + } + else if ( ( keystroke == 13 || keystroke == 32 ) && me._.tabBarMode ) + { + this.selectPage( this._.currentTabId ); + this._.tabBarMode = false; + this._.currentFocusIndex = -1; + changeFocus( 1 ); + processed = 1; + } + // If user presses enter key in a text box, it implies clicking OK for the dialog. + else if ( keystroke == 13 /*ENTER*/ ) + { + // Don't do that for a target that handles ENTER. + var target = evt.data.getTarget(); + if ( !target.is( 'a', 'button', 'select' ) && ( !target.is( 'input' ) || target.$.type != 'button' ) ) + { + button = this.getButton( 'ok' ); + button && CKEDITOR.tools.setTimeout( button.click, 0, button ); + processed = 1; + } + stopPropagation = 1; // Always block the propagation (#4269) + } + else if ( keystroke == 27 /*ESC*/ ) + { + button = this.getButton( 'cancel' ); + + // If there's a Cancel button, click it, else just fire the cancel event and hide the dialog. + if ( button ) + CKEDITOR.tools.setTimeout( button.click, 0, button ); + else + { + if ( this.fire( 'cancel', { hide : true } ).hide !== false ) + this.hide(); + } + stopPropagation = 1; // Always block the propagation (#4269) + } + else + return; + + keypressHandler( evt ); + } + + function keypressHandler( evt ) + { + if ( processed ) + evt.data.preventDefault(1); + else if ( stopPropagation ) + evt.data.stopPropagation(); + } + + var dialogElement = this._.element; + // Add the dialog keyboard handlers. + this.on( 'show', function() + { + dialogElement.on( 'keydown', keydownHandler, this ); + + // Some browsers instead, don't cancel key events in the keydown, but in the + // keypress. So we must do a longer trip in those cases. (#4531,#8985) + if ( CKEDITOR.env.opera || CKEDITOR.env.gecko ) + dialogElement.on( 'keypress', keypressHandler, this ); + + } ); + this.on( 'hide', function() + { + dialogElement.removeListener( 'keydown', keydownHandler ); + if ( CKEDITOR.env.opera || CKEDITOR.env.gecko ) + dialogElement.removeListener( 'keypress', keypressHandler ); + + // Reset fields state when closing dialog. + iterContents( function( item ) { resetField.apply( item ); } ); + } ); + this.on( 'iframeAdded', function( evt ) + { + var doc = new CKEDITOR.dom.document( evt.data.iframe.$.contentWindow.document ); + doc.on( 'keydown', keydownHandler, this, null, 0 ); + } ); + + // Auto-focus logic in dialog. + this.on( 'show', function() + { + // Setup tabIndex on showing the dialog instead of on loading + // to allow dynamic tab order happen in dialog definition. + setupFocus(); + + if ( editor.config.dialog_startupFocusTab + && me._.pageCount > 1 ) + { + me._.tabBarMode = true; + me._.tabs[ me._.currentTabId ][ 0 ].focus(); + } + else if ( !this._.hasFocus ) + { + this._.currentFocusIndex = -1; + + // Decide where to put the initial focus. + if ( definition.onFocus ) + { + var initialFocus = definition.onFocus.call( this ); + // Focus the field that the user specified. + initialFocus && initialFocus.focus(); + } + // Focus the first field in layout order. + else + changeFocus( 1 ); + + /* + * IE BUG: If the initial focus went into a non-text element (e.g. button), + * then IE would still leave the caret inside the editing area. + */ + if ( this._.editor.mode == 'wysiwyg' && CKEDITOR.env.ie ) + { + var $selection = editor.document.$.selection, + $range = $selection.createRange(); + + if ( $range ) + { + if ( $range.parentElement && $range.parentElement().ownerDocument == editor.document.$ + || $range.item && $range.item( 0 ).ownerDocument == editor.document.$ ) + { + var $myRange = document.body.createTextRange(); + $myRange.moveToElementText( this.getElement().getFirst().$ ); + $myRange.collapse( true ); + $myRange.select(); + } + } + } + } + }, this, null, 0xffffffff ); + + // IE6 BUG: Text fields and text areas are only half-rendered the first time the dialog appears in IE6 (#2661). + // This is still needed after [2708] and [2709] because text fields in hidden TR tags are still broken. + if ( CKEDITOR.env.ie6Compat ) + { + this.on( 'load', function( evt ) + { + var outer = this.getElement(), + inner = outer.getFirst(); + inner.remove(); + inner.appendTo( outer ); + }, this ); + } + + initDragAndDrop( this ); + initResizeHandles( this ); + + // Insert the title. + ( new CKEDITOR.dom.text( definition.title, CKEDITOR.document ) ).appendTo( this.parts.title ); + + // Insert the tabs and contents. + for ( i = 0 ; i < definition.contents.length ; i++ ) + { + var page = definition.contents[i]; + page && this.addPage( page ); + } + + this.parts[ 'tabs' ].on( 'click', function( evt ) + { + var target = evt.data.getTarget(); + // If we aren't inside a tab, bail out. + if ( target.hasClass( 'cke_dialog_tab' ) ) + { + // Get the ID of the tab, without the 'cke_' prefix and the unique number suffix. + var id = target.$.id; + this.selectPage( id.substring( 4, id.lastIndexOf( '_' ) ) ); + + if ( this._.tabBarMode ) + { + this._.tabBarMode = false; + this._.currentFocusIndex = -1; + changeFocus( 1 ); + } + evt.data.preventDefault(); + } + }, this ); + + // Insert buttons. + var buttonsHtml = [], + buttons = CKEDITOR.dialog._.uiElementBuilders.hbox.build( this, + { + type : 'hbox', + className : 'cke_dialog_footer_buttons', + widths : [], + children : definition.buttons + }, buttonsHtml ).getChild(); + this.parts.footer.setHtml( buttonsHtml.join( '' ) ); + + for ( i = 0 ; i < buttons.length ; i++ ) + this._.buttons[ buttons[i].id ] = buttons[i]; + }; + + // Focusable interface. Use it via dialog.addFocusable. + function Focusable( dialog, element, index ) + { + this.element = element; + this.focusIndex = index; + // TODO: support tabIndex for focusables. + this.tabIndex = 0; + this.isFocusable = function() + { + return !element.getAttribute( 'disabled' ) && element.isVisible(); + }; + this.focus = function() + { + dialog._.currentFocusIndex = this.focusIndex; + this.element.focus(); + }; + // Bind events + element.on( 'keydown', function( e ) + { + if ( e.data.getKeystroke() in { 32:1, 13:1 } ) + this.fire( 'click' ); + } ); + element.on( 'focus', function() + { + this.fire( 'mouseover' ); + } ); + element.on( 'blur', function() + { + this.fire( 'mouseout' ); + } ); + } + + CKEDITOR.dialog.prototype = + { + destroy : function() + { + this.hide(); + this._.element.remove(); + }, + + /** + * Resizes the dialog. + * @param {Number} width The width of the dialog in pixels. + * @param {Number} height The height of the dialog in pixels. + * @function + * @example + * dialogObj.resize( 800, 640 ); + */ + resize : (function() + { + return function( width, height ) + { + if ( this._.contentSize && this._.contentSize.width == width && this._.contentSize.height == height ) + return; + + CKEDITOR.dialog.fire( 'resize', + { + dialog : this, + skin : this._.editor.skinName, + width : width, + height : height + }, this._.editor ); + + this.fire( 'resize', + { + skin : this._.editor.skinName, + width : width, + height : height + }, this._.editor ); + + // Update dialog position when dimension get changed in RTL. + if ( this._.editor.lang.dir == 'rtl' && this._.position ) + this._.position.x = CKEDITOR.document.getWindow().getViewPaneSize().width - + this._.contentSize.width - parseInt( this._.element.getFirst().getStyle( 'right' ), 10 ); + + this._.contentSize = { width : width, height : height }; + }; + })(), + + /** + * Gets the current size of the dialog in pixels. + * @returns {Object} An object with "width" and "height" properties. + * @example + * var width = dialogObj.getSize().width; + */ + getSize : function() + { + var element = this._.element.getFirst(); + return { width : element.$.offsetWidth || 0, height : element.$.offsetHeight || 0}; + }, + + /** + * Moves the dialog to an (x, y) coordinate relative to the window. + * @function + * @param {Number} x The target x-coordinate. + * @param {Number} y The target y-coordinate. + * @param {Boolean} save Flag indicate whether the dialog position should be remembered on next open up. + * @example + * dialogObj.move( 10, 40 ); + */ + move : (function() + { + var isFixed; + return function( x, y, save ) + { + // The dialog may be fixed positioned or absolute positioned. Ask the + // browser what is the current situation first. + var element = this._.element.getFirst(), + rtl = this._.editor.lang.dir == 'rtl'; + + if ( isFixed === undefined ) + isFixed = element.getComputedStyle( 'position' ) == 'fixed'; + + if ( isFixed && this._.position && this._.position.x == x && this._.position.y == y ) + return; + + // Save the current position. + this._.position = { x : x, y : y }; + + // If not fixed positioned, add scroll position to the coordinates. + if ( !isFixed ) + { + var scrollPosition = CKEDITOR.document.getWindow().getScrollPosition(); + x += scrollPosition.x; + y += scrollPosition.y; + } + + // Translate coordinate for RTL. + if ( rtl ) + { + var dialogSize = this.getSize(), + viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(); + x = viewPaneSize.width - dialogSize.width - x; + } + + var styles = { 'top' : ( y > 0 ? y : 0 ) + 'px' }; + styles[ rtl ? 'right' : 'left' ] = ( x > 0 ? x : 0 ) + 'px'; + + element.setStyles( styles ); + + save && ( this._.moved = 1 ); + }; + })(), + + /** + * Gets the dialog's position in the window. + * @returns {Object} An object with "x" and "y" properties. + * @example + * var dialogX = dialogObj.getPosition().x; + */ + getPosition : function(){ return CKEDITOR.tools.extend( {}, this._.position ); }, + + /** + * Shows the dialog box. + * @example + * dialogObj.show(); + */ + show : function() + { + // Insert the dialog's element to the root document. + var element = this._.element; + var definition = this.definition; + if ( !( element.getParent() && element.getParent().equals( CKEDITOR.document.getBody() ) ) ) + element.appendTo( CKEDITOR.document.getBody() ); + else + element.setStyle( 'display', 'block' ); + + // FIREFOX BUG: Fix vanishing caret for Firefox 2 or Gecko 1.8. + if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) + { + var dialogElement = this.parts.dialog; + dialogElement.setStyle( 'position', 'absolute' ); + setTimeout( function() + { + dialogElement.setStyle( 'position', 'fixed' ); + }, 0 ); + } + + + // First, set the dialog to an appropriate size. + this.resize( this._.contentSize && this._.contentSize.width || definition.width || definition.minWidth, + this._.contentSize && this._.contentSize.height || definition.height || definition.minHeight ); + + // Reset all inputs back to their default value. + this.reset(); + + // Select the first tab by default. + this.selectPage( this.definition.contents[0].id ); + + // Set z-index. + if ( CKEDITOR.dialog._.currentZIndex === null ) + CKEDITOR.dialog._.currentZIndex = this._.editor.config.baseFloatZIndex; + this._.element.getFirst().setStyle( 'z-index', CKEDITOR.dialog._.currentZIndex += 10 ); + + // Maintain the dialog ordering and dialog cover. + if ( CKEDITOR.dialog._.currentTop === null ) + { + CKEDITOR.dialog._.currentTop = this; + this._.parentDialog = null; + showCover( this._.editor ); + + } + else + { + this._.parentDialog = CKEDITOR.dialog._.currentTop; + var parentElement = this._.parentDialog.getElement().getFirst(); + parentElement.$.style.zIndex -= Math.floor( this._.editor.config.baseFloatZIndex / 2 ); + CKEDITOR.dialog._.currentTop = this; + } + + element.on( 'keydown', accessKeyDownHandler ); + element.on( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler ); + + // Reset the hasFocus state. + this._.hasFocus = false; + + CKEDITOR.tools.setTimeout( function() + { + this.layout(); + this.parts.dialog.setStyle( 'visibility', '' ); + + // Execute onLoad for the first show. + this.fireOnce( 'load', {} ); + CKEDITOR.ui.fire( 'ready', this ); + + this.fire( 'show', {} ); + this._.editor.fire( 'dialogShow', this ); + + // Save the initial values of the dialog. + this.foreach( function( contentObj ) { contentObj.setInitValue && contentObj.setInitValue(); } ); + + }, + 100, this ); + }, + + /** + * Rearrange the dialog to its previous position or the middle of the window. + * @since 3.5 + */ + layout : function() + { + var viewSize = CKEDITOR.document.getWindow().getViewPaneSize(), + dialogSize = this.getSize(); + + this.move( this._.moved ? this._.position.x : ( viewSize.width - dialogSize.width ) / 2, + this._.moved ? this._.position.y : ( viewSize.height - dialogSize.height ) / 2 ); + }, + + /** + * Executes a function for each UI element. + * @param {Function} fn Function to execute for each UI element. + * @returns {CKEDITOR.dialog} The current dialog object. + */ + foreach : function( fn ) + { + for ( var i in this._.contents ) + { + for ( var j in this._.contents[i] ) + fn.call( this, this._.contents[i][j] ); + } + return this; + }, + + /** + * Resets all input values in the dialog. + * @example + * dialogObj.reset(); + * @returns {CKEDITOR.dialog} The current dialog object. + */ + reset : (function() + { + var fn = function( widget ){ if ( widget.reset ) widget.reset( 1 ); }; + return function(){ this.foreach( fn ); return this; }; + })(), + + + /** + * Calls the {@link CKEDITOR.dialog.definition.uiElement#setup} method of each of the UI elements, with the arguments passed through it. + * It is usually being called when the dialog is opened, to put the initial value inside the field. + * @example + * dialogObj.setupContent(); + * @example + * var timestamp = ( new Date() ).valueOf(); + * dialogObj.setupContent( timestamp ); + */ + setupContent : function() + { + var args = arguments; + this.foreach( function( widget ) + { + if ( widget.setup ) + widget.setup.apply( widget, args ); + }); + }, + + /** + * Calls the {@link CKEDITOR.dialog.definition.uiElement#commit} method of each of the UI elements, with the arguments passed through it. + * It is usually being called when the user confirms the dialog, to process the values. + * @example + * dialogObj.commitContent(); + * @example + * var timestamp = ( new Date() ).valueOf(); + * dialogObj.commitContent( timestamp ); + */ + commitContent : function() + { + var args = arguments; + this.foreach( function( widget ) + { + // Make sure IE triggers "change" event on last focused input before closing the dialog. (#7915) + if ( CKEDITOR.env.ie && this._.currentFocusIndex == widget.focusIndex ) + widget.getInputElement().$.blur(); + + if ( widget.commit ) + widget.commit.apply( widget, args ); + }); + }, + + /** + * Hides the dialog box. + * @example + * dialogObj.hide(); + */ + hide : function() + { + if ( !this.parts.dialog.isVisible() ) + return; + + this.fire( 'hide', {} ); + this._.editor.fire( 'dialogHide', this ); + // Reset the tab page. + this.selectPage( this._.tabIdList[ 0 ] ); + var element = this._.element; + element.setStyle( 'display', 'none' ); + this.parts.dialog.setStyle( 'visibility', 'hidden' ); + // Unregister all access keys associated with this dialog. + unregisterAccessKey( this ); + + // Close any child(top) dialogs first. + while( CKEDITOR.dialog._.currentTop != this ) + CKEDITOR.dialog._.currentTop.hide(); + + // Maintain dialog ordering and remove cover if needed. + if ( !this._.parentDialog ) + hideCover(); + else + { + var parentElement = this._.parentDialog.getElement().getFirst(); + parentElement.setStyle( 'z-index', parseInt( parentElement.$.style.zIndex, 10 ) + Math.floor( this._.editor.config.baseFloatZIndex / 2 ) ); + } + CKEDITOR.dialog._.currentTop = this._.parentDialog; + + // Deduct or clear the z-index. + if ( !this._.parentDialog ) + { + CKEDITOR.dialog._.currentZIndex = null; + + // Remove access key handlers. + element.removeListener( 'keydown', accessKeyDownHandler ); + element.removeListener( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler ); + + var editor = this._.editor; + editor.focus(); + + if ( editor.mode == 'wysiwyg' && CKEDITOR.env.ie ) + { + var selection = editor.getSelection(); + selection && selection.unlock( true ); + } + } + else + CKEDITOR.dialog._.currentZIndex -= 10; + + delete this._.parentDialog; + // Reset the initial values of the dialog. + this.foreach( function( contentObj ) { contentObj.resetInitValue && contentObj.resetInitValue(); } ); + }, + + /** + * Adds a tabbed page into the dialog. + * @param {Object} contents Content definition. + * @example + */ + addPage : function( contents ) + { + var pageHtml = [], + titleHtml = contents.label ? ' title="' + CKEDITOR.tools.htmlEncode( contents.label ) + '"' : '', + elements = contents.elements, + vbox = CKEDITOR.dialog._.uiElementBuilders.vbox.build( this, + { + type : 'vbox', + className : 'cke_dialog_page_contents', + children : contents.elements, + expand : !!contents.expand, + padding : contents.padding, + style : contents.style || 'width: 100%;height:100%' + }, pageHtml ); + + // Create the HTML for the tab and the content block. + var page = CKEDITOR.dom.element.createFromHtml( pageHtml.join( '' ) ); + page.setAttribute( 'role', 'tabpanel' ); + + var env = CKEDITOR.env; + var tabId = 'cke_' + contents.id + '_' + CKEDITOR.tools.getNextNumber(), + tab = CKEDITOR.dom.element.createFromHtml( [ + '<a class="cke_dialog_tab"', + ( this._.pageCount > 0 ? ' cke_last' : 'cke_first' ), + titleHtml, + ( !!contents.hidden ? ' style="display:none"' : '' ), + ' id="', tabId, '"', + env.gecko && env.version >= 10900 && !env.hc ? '' : ' href="javascript:void(0)"', + ' tabIndex="-1"', + ' hidefocus="true"', + ' role="tab">', + contents.label, + '</a>' + ].join( '' ) ); + + page.setAttribute( 'aria-labelledby', tabId ); + + // Take records for the tabs and elements created. + this._.tabs[ contents.id ] = [ tab, page ]; + this._.tabIdList.push( contents.id ); + !contents.hidden && this._.pageCount++; + this._.lastTab = tab; + this.updateStyle(); + + var contentMap = this._.contents[ contents.id ] = {}, + cursor, + children = vbox.getChild(); + + while ( ( cursor = children.shift() ) ) + { + contentMap[ cursor.id ] = cursor; + if ( typeof( cursor.getChild ) == 'function' ) + children.push.apply( children, cursor.getChild() ); + } + + // Attach the DOM nodes. + + page.setAttribute( 'name', contents.id ); + page.appendTo( this.parts.contents ); + + tab.unselectable(); + this.parts.tabs.append( tab ); + + // Add access key handlers if access key is defined. + if ( contents.accessKey ) + { + registerAccessKey( this, this, 'CTRL+' + contents.accessKey, + tabAccessKeyDown, tabAccessKeyUp ); + this._.accessKeyMap[ 'CTRL+' + contents.accessKey ] = contents.id; + } + }, + + /** + * Activates a tab page in the dialog by its id. + * @param {String} id The id of the dialog tab to be activated. + * @example + * dialogObj.selectPage( 'tab_1' ); + */ + selectPage : function( id ) + { + if ( this._.currentTabId == id ) + return; + + // Returning true means that the event has been canceled + if ( this.fire( 'selectPage', { page : id, currentPage : this._.currentTabId } ) === true ) + return; + + // Hide the non-selected tabs and pages. + for ( var i in this._.tabs ) + { + var tab = this._.tabs[i][0], + page = this._.tabs[i][1]; + if ( i != id ) + { + tab.removeClass( 'cke_dialog_tab_selected' ); + page.hide(); + } + page.setAttribute( 'aria-hidden', i != id ); + } + + var selected = this._.tabs[ id ]; + selected[ 0 ].addClass( 'cke_dialog_tab_selected' ); + + // [IE] an invisible input[type='text'] will enlarge it's width + // if it's value is long when it shows, so we clear it's value + // before it shows and then recover it (#5649) + if ( CKEDITOR.env.ie6Compat || CKEDITOR.env.ie7Compat ) + { + clearOrRecoverTextInputValue( selected[ 1 ] ); + selected[ 1 ].show(); + setTimeout( function() + { + clearOrRecoverTextInputValue( selected[ 1 ], 1 ); + }, 0 ); + } + else + selected[ 1 ].show(); + + this._.currentTabId = id; + this._.currentTabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, id ); + }, + + // Dialog state-specific style updates. + updateStyle : function() + { + // If only a single page shown, a different style is used in the central pane. + this.parts.dialog[ ( this._.pageCount === 1 ? 'add' : 'remove' ) + 'Class' ]( 'cke_single_page' ); + }, + + /** + * Hides a page's tab away from the dialog. + * @param {String} id The page's Id. + * @example + * dialog.hidePage( 'tab_3' ); + */ + hidePage : function( id ) + { + var tab = this._.tabs[id] && this._.tabs[id][0]; + if ( !tab || this._.pageCount == 1 || !tab.isVisible() ) + return; + // Switch to other tab first when we're hiding the active tab. + else if ( id == this._.currentTabId ) + this.selectPage( getPreviousVisibleTab.call( this ) ); + + tab.hide(); + this._.pageCount--; + this.updateStyle(); + }, + + /** + * Unhides a page's tab. + * @param {String} id The page's Id. + * @example + * dialog.showPage( 'tab_2' ); + */ + showPage : function( id ) + { + var tab = this._.tabs[id] && this._.tabs[id][0]; + if ( !tab ) + return; + tab.show(); + this._.pageCount++; + this.updateStyle(); + }, + + /** + * Gets the root DOM element of the dialog. + * @returns {CKEDITOR.dom.element} The <span> element containing this dialog. + * @example + * var dialogElement = dialogObj.getElement().getFirst(); + * dialogElement.setStyle( 'padding', '5px' ); + */ + getElement : function() + { + return this._.element; + }, + + /** + * Gets the name of the dialog. + * @returns {String} The name of this dialog. + * @example + * var dialogName = dialogObj.getName(); + */ + getName : function() + { + return this._.name; + }, + + /** + * Gets a dialog UI element object from a dialog page. + * @param {String} pageId id of dialog page. + * @param {String} elementId id of UI element. + * @example + * dialogObj.getContentElement( 'tabId', 'elementId' ).setValue( 'Example' ); + * @returns {CKEDITOR.ui.dialog.uiElement} The dialog UI element. + */ + getContentElement : function( pageId, elementId ) + { + var page = this._.contents[ pageId ]; + return page && page[ elementId ]; + }, + + /** + * Gets the value of a dialog UI element. + * @param {String} pageId id of dialog page. + * @param {String} elementId id of UI element. + * @example + * alert( dialogObj.getValueOf( 'tabId', 'elementId' ) ); + * @returns {Object} The value of the UI element. + */ + getValueOf : function( pageId, elementId ) + { + return this.getContentElement( pageId, elementId ).getValue(); + }, + + /** + * Sets the value of a dialog UI element. + * @param {String} pageId id of the dialog page. + * @param {String} elementId id of the UI element. + * @param {Object} value The new value of the UI element. + * @example + * dialogObj.setValueOf( 'tabId', 'elementId', 'Example' ); + */ + setValueOf : function( pageId, elementId, value ) + { + return this.getContentElement( pageId, elementId ).setValue( value ); + }, + + /** + * Gets the UI element of a button in the dialog's button row. + * @param {String} id The id of the button. + * @example + * @returns {CKEDITOR.ui.dialog.button} The button object. + */ + getButton : function( id ) + { + return this._.buttons[ id ]; + }, + + /** + * Simulates a click to a dialog button in the dialog's button row. + * @param {String} id The id of the button. + * @example + * @returns The return value of the dialog's "click" event. + */ + click : function( id ) + { + return this._.buttons[ id ].click(); + }, + + /** + * Disables a dialog button. + * @param {String} id The id of the button. + * @example + */ + disableButton : function( id ) + { + return this._.buttons[ id ].disable(); + }, + + /** + * Enables a dialog button. + * @param {String} id The id of the button. + * @example + */ + enableButton : function( id ) + { + return this._.buttons[ id ].enable(); + }, + + /** + * Gets the number of pages in the dialog. + * @returns {Number} Page count. + */ + getPageCount : function() + { + return this._.pageCount; + }, + + /** + * Gets the editor instance which opened this dialog. + * @returns {CKEDITOR.editor} Parent editor instances. + */ + getParentEditor : function() + { + return this._.editor; + }, + + /** + * Gets the element that was selected when opening the dialog, if any. + * @returns {CKEDITOR.dom.element} The element that was selected, or null. + */ + getSelectedElement : function() + { + return this.getParentEditor().getSelection().getSelectedElement(); + }, + + /** + * Adds element to dialog's focusable list. + * + * @param {CKEDITOR.dom.element} element + * @param {Number} [index] + */ + addFocusable: function( element, index ) { + if ( typeof index == 'undefined' ) + { + index = this._.focusList.length; + this._.focusList.push( new Focusable( this, element, index ) ); + } + else + { + this._.focusList.splice( index, 0, new Focusable( this, element, index ) ); + for ( var i = index + 1 ; i < this._.focusList.length ; i++ ) + this._.focusList[ i ].focusIndex++; + } + } + }; + + CKEDITOR.tools.extend( CKEDITOR.dialog, + /** + * @lends CKEDITOR.dialog + */ + { + /** + * Registers a dialog. + * @param {String} name The dialog's name. + * @param {Function|String} dialogDefinition + * A function returning the dialog's definition, or the URL to the .js file holding the function. + * The function should accept an argument "editor" which is the current editor instance, and + * return an object conforming to {@link CKEDITOR.dialog.definition}. + * @see CKEDITOR.dialog.definition + * @example + * // Full sample plugin, which does not only register a dialog window but also adds an item to the context menu. + * // To open the dialog window, choose "Open dialog" in the context menu. + * CKEDITOR.plugins.add( 'myplugin', + * { + * init: function( editor ) + * { + * editor.addCommand( 'mydialog',new CKEDITOR.dialogCommand( 'mydialog' ) ); + * + * if ( editor.contextMenu ) + * { + * editor.addMenuGroup( 'mygroup', 10 ); + * editor.addMenuItem( 'My Dialog', + * { + * label : 'Open dialog', + * command : 'mydialog', + * group : 'mygroup' + * }); + * editor.contextMenu.addListener( function( element ) + * { + * return { 'My Dialog' : CKEDITOR.TRISTATE_OFF }; + * }); + * } + * + * <strong>CKEDITOR.dialog.add</strong>( 'mydialog', function( api ) + * { + * // CKEDITOR.dialog.definition + * var <strong>dialogDefinition</strong> = + * { + * title : 'Sample dialog', + * minWidth : 390, + * minHeight : 130, + * contents : [ + * { + * id : 'tab1', + * label : 'Label', + * title : 'Title', + * expand : true, + * padding : 0, + * elements : + * [ + * { + * type : 'html', + * html : '<p>This is some sample HTML content.</p>' + * }, + * { + * type : 'textarea', + * id : 'textareaId', + * rows : 4, + * cols : 40 + * } + * ] + * } + * ], + * buttons : [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ], + * onOk : function() { + * // "this" is now a CKEDITOR.dialog object. + * // Accessing dialog elements: + * var textareaObj = this.<strong>getContentElement</strong>( 'tab1', 'textareaId' ); + * alert( "You have entered: " + textareaObj.getValue() ); + * } + * }; + * + * return dialogDefinition; + * } ); + * } + * } ); + * + * CKEDITOR.replace( 'editor1', { extraPlugins : 'myplugin' } ); + */ + add : function( name, dialogDefinition ) + { + // Avoid path registration from multiple instances override definition. + if ( !this._.dialogDefinitions[name] + || typeof dialogDefinition == 'function' ) + this._.dialogDefinitions[name] = dialogDefinition; + }, + + exists : function( name ) + { + return !!this._.dialogDefinitions[ name ]; + }, + + getCurrent : function() + { + return CKEDITOR.dialog._.currentTop; + }, + + /** + * The default OK button for dialogs. Fires the "ok" event and closes the dialog if the event succeeds. + * @static + * @field + * @example + * @type Function + */ + okButton : (function() + { + var retval = function( editor, override ) + { + override = override || {}; + return CKEDITOR.tools.extend( { + id : 'ok', + type : 'button', + label : editor.lang.common.ok, + 'class' : 'cke_dialog_ui_button_ok', + onClick : function( evt ) + { + var dialog = evt.data.dialog; + if ( dialog.fire( 'ok', { hide : true } ).hide !== false ) + dialog.hide(); + } + }, override, true ); + }; + retval.type = 'button'; + retval.override = function( override ) + { + return CKEDITOR.tools.extend( function( editor ){ return retval( editor, override ); }, + { type : 'button' }, true ); + }; + return retval; + })(), + + /** + * The default cancel button for dialogs. Fires the "cancel" event and closes the dialog if no UI element value changed. + * @static + * @field + * @example + * @type Function + */ + cancelButton : (function() + { + var retval = function( editor, override ) + { + override = override || {}; + return CKEDITOR.tools.extend( { + id : 'cancel', + type : 'button', + label : editor.lang.common.cancel, + 'class' : 'cke_dialog_ui_button_cancel', + onClick : function( evt ) + { + var dialog = evt.data.dialog; + if ( dialog.fire( 'cancel', { hide : true } ).hide !== false ) + dialog.hide(); + } + }, override, true ); + }; + retval.type = 'button'; + retval.override = function( override ) + { + return CKEDITOR.tools.extend( function( editor ){ return retval( editor, override ); }, + { type : 'button' }, true ); + }; + return retval; + })(), + + /** + * Registers a dialog UI element. + * @param {String} typeName The name of the UI element. + * @param {Function} builder The function to build the UI element. + * @example + */ + addUIElement : function( typeName, builder ) + { + this._.uiElementBuilders[ typeName ] = builder; + } + }); + + CKEDITOR.dialog._ = + { + uiElementBuilders : {}, + + dialogDefinitions : {}, + + currentTop : null, + + currentZIndex : null + }; + + // "Inherit" (copy actually) from CKEDITOR.event. + CKEDITOR.event.implementOn( CKEDITOR.dialog ); + CKEDITOR.event.implementOn( CKEDITOR.dialog.prototype, true ); + + var defaultDialogDefinition = + { + resizable : CKEDITOR.DIALOG_RESIZE_BOTH, + minWidth : 600, + minHeight : 400, + buttons : [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ] + }; + + // Tool function used to return an item from an array based on its id + // property. + var getById = function( array, id, recurse ) + { + for ( var i = 0, item ; ( item = array[ i ] ) ; i++ ) + { + if ( item.id == id ) + return item; + if ( recurse && item[ recurse ] ) + { + var retval = getById( item[ recurse ], id, recurse ) ; + if ( retval ) + return retval; + } + } + return null; + }; + + // Tool function used to add an item into an array. + var addById = function( array, newItem, nextSiblingId, recurse, nullIfNotFound ) + { + if ( nextSiblingId ) + { + for ( var i = 0, item ; ( item = array[ i ] ) ; i++ ) + { + if ( item.id == nextSiblingId ) + { + array.splice( i, 0, newItem ); + return newItem; + } + + if ( recurse && item[ recurse ] ) + { + var retval = addById( item[ recurse ], newItem, nextSiblingId, recurse, true ); + if ( retval ) + return retval; + } + } + + if ( nullIfNotFound ) + return null; + } + + array.push( newItem ); + return newItem; + }; + + // Tool function used to remove an item from an array based on its id. + var removeById = function( array, id, recurse ) + { + for ( var i = 0, item ; ( item = array[ i ] ) ; i++ ) + { + if ( item.id == id ) + return array.splice( i, 1 ); + if ( recurse && item[ recurse ] ) + { + var retval = removeById( item[ recurse ], id, recurse ); + if ( retval ) + return retval; + } + } + return null; + }; + + /** + * This class is not really part of the API. It is the "definition" property value + * passed to "dialogDefinition" event handlers. + * @constructor + * @name CKEDITOR.dialog.definitionObject + * @extends CKEDITOR.dialog.definition + * @example + * CKEDITOR.on( 'dialogDefinition', function( evt ) + * { + * var definition = evt.data.definition; + * var content = definition.getContents( 'page1' ); + * ... + * } ); + */ + var definitionObject = function( dialog, dialogDefinition ) + { + // TODO : Check if needed. + this.dialog = dialog; + + // Transform the contents entries in contentObjects. + var contents = dialogDefinition.contents; + for ( var i = 0, content ; ( content = contents[i] ) ; i++ ) + contents[ i ] = content && new contentObject( dialog, content ); + + CKEDITOR.tools.extend( this, dialogDefinition ); + }; + + definitionObject.prototype = + /** @lends CKEDITOR.dialog.definitionObject.prototype */ + { + /** + * Gets a content definition. + * @param {String} id The id of the content definition. + * @returns {CKEDITOR.dialog.definition.content} The content definition + * matching id. + */ + getContents : function( id ) + { + return getById( this.contents, id ); + }, + + /** + * Gets a button definition. + * @param {String} id The id of the button definition. + * @returns {CKEDITOR.dialog.definition.button} The button definition + * matching id. + */ + getButton : function( id ) + { + return getById( this.buttons, id ); + }, + + /** + * Adds a content definition object under this dialog definition. + * @param {CKEDITOR.dialog.definition.content} contentDefinition The + * content definition. + * @param {String} [nextSiblingId] The id of an existing content + * definition which the new content definition will be inserted + * before. Omit if the new content definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.definition.content} The inserted content + * definition. + */ + addContents : function( contentDefinition, nextSiblingId ) + { + return addById( this.contents, contentDefinition, nextSiblingId ); + }, + + /** + * Adds a button definition object under this dialog definition. + * @param {CKEDITOR.dialog.definition.button} buttonDefinition The + * button definition. + * @param {String} [nextSiblingId] The id of an existing button + * definition which the new button definition will be inserted + * before. Omit if the new button definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.definition.button} The inserted button + * definition. + */ + addButton : function( buttonDefinition, nextSiblingId ) + { + return addById( this.buttons, buttonDefinition, nextSiblingId ); + }, + + /** + * Removes a content definition from this dialog definition. + * @param {String} id The id of the content definition to be removed. + * @returns {CKEDITOR.dialog.definition.content} The removed content + * definition. + */ + removeContents : function( id ) + { + removeById( this.contents, id ); + }, + + /** + * Removes a button definition from the dialog definition. + * @param {String} id The id of the button definition to be removed. + * @returns {CKEDITOR.dialog.definition.button} The removed button + * definition. + */ + removeButton : function( id ) + { + removeById( this.buttons, id ); + } + }; + + /** + * This class is not really part of the API. It is the template of the + * objects representing content pages inside the + * CKEDITOR.dialog.definitionObject. + * @constructor + * @name CKEDITOR.dialog.definition.contentObject + * @example + * CKEDITOR.on( 'dialogDefinition', function( evt ) + * { + * var definition = evt.data.definition; + * var content = definition.getContents( 'page1' ); + * content.remove( 'textInput1' ); + * ... + * } ); + */ + function contentObject( dialog, contentDefinition ) + { + this._ = + { + dialog : dialog + }; + + CKEDITOR.tools.extend( this, contentDefinition ); + } + + contentObject.prototype = + /** @lends CKEDITOR.dialog.definition.contentObject.prototype */ + { + /** + * Gets a UI element definition under the content definition. + * @param {String} id The id of the UI element definition. + * @returns {CKEDITOR.dialog.definition.uiElement} + */ + get : function( id ) + { + return getById( this.elements, id, 'children' ); + }, + + /** + * Adds a UI element definition to the content definition. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition The + * UI elemnet definition to be added. + * @param {String} nextSiblingId The id of an existing UI element + * definition which the new UI element definition will be inserted + * before. Omit if the new button definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.definition.uiElement} The element + * definition inserted. + */ + add : function( elementDefinition, nextSiblingId ) + { + return addById( this.elements, elementDefinition, nextSiblingId, 'children' ); + }, + + /** + * Removes a UI element definition from the content definition. + * @param {String} id The id of the UI element definition to be + * removed. + * @returns {CKEDITOR.dialog.definition.uiElement} The element + * definition removed. + * @example + */ + remove : function( id ) + { + removeById( this.elements, id, 'children' ); + } + }; + + function initDragAndDrop( dialog ) + { + var lastCoords = null, + abstractDialogCoords = null, + element = dialog.getElement().getFirst(), + editor = dialog.getParentEditor(), + magnetDistance = editor.config.dialog_magnetDistance, + margins = editor.skin.margins || [ 0, 0, 0, 0 ]; + + if ( typeof magnetDistance == 'undefined' ) + magnetDistance = 20; + + function mouseMoveHandler( evt ) + { + var dialogSize = dialog.getSize(), + viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(), + x = evt.data.$.screenX, + y = evt.data.$.screenY, + dx = x - lastCoords.x, + dy = y - lastCoords.y, + realX, realY; + + lastCoords = { x : x, y : y }; + abstractDialogCoords.x += dx; + abstractDialogCoords.y += dy; + + if ( abstractDialogCoords.x + margins[3] < magnetDistance ) + realX = - margins[3]; + else if ( abstractDialogCoords.x - margins[1] > viewPaneSize.width - dialogSize.width - magnetDistance ) + realX = viewPaneSize.width - dialogSize.width + ( editor.lang.dir == 'rtl' ? 0 : margins[1] ); + else + realX = abstractDialogCoords.x; + + if ( abstractDialogCoords.y + margins[0] < magnetDistance ) + realY = - margins[0]; + else if ( abstractDialogCoords.y - margins[2] > viewPaneSize.height - dialogSize.height - magnetDistance ) + realY = viewPaneSize.height - dialogSize.height + margins[2]; + else + realY = abstractDialogCoords.y; + + dialog.move( realX, realY, 1 ); + + evt.data.preventDefault(); + } + + function mouseUpHandler( evt ) + { + CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler ); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.removeListener( 'mousemove', mouseMoveHandler ); + coverDoc.removeListener( 'mouseup', mouseUpHandler ); + } + } + + dialog.parts.title.on( 'mousedown', function( evt ) + { + lastCoords = { x : evt.data.$.screenX, y : evt.data.$.screenY }; + + CKEDITOR.document.on( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.on( 'mouseup', mouseUpHandler ); + abstractDialogCoords = dialog.getPosition(); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.on( 'mousemove', mouseMoveHandler ); + coverDoc.on( 'mouseup', mouseUpHandler ); + } + + evt.data.preventDefault(); + }, dialog ); + } + + function initResizeHandles( dialog ) + { + var def = dialog.definition, + resizable = def.resizable; + + if ( resizable == CKEDITOR.DIALOG_RESIZE_NONE ) + return; + + var editor = dialog.getParentEditor(); + var wrapperWidth, wrapperHeight, + viewSize, origin, startSize, + dialogCover; + + var mouseDownFn = CKEDITOR.tools.addFunction( function( $event ) + { + startSize = dialog.getSize(); + + var content = dialog.parts.contents, + iframeDialog = content.$.getElementsByTagName( 'iframe' ).length; + + // Shim to help capturing "mousemove" over iframe. + if ( iframeDialog ) + { + dialogCover = CKEDITOR.dom.element.createFromHtml( '<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>' ); + content.append( dialogCover ); + } + + // Calculate the offset between content and chrome size. + wrapperHeight = startSize.height - dialog.parts.contents.getSize( 'height', ! ( CKEDITOR.env.gecko || CKEDITOR.env.opera || CKEDITOR.env.ie && CKEDITOR.env.quirks ) ); + wrapperWidth = startSize.width - dialog.parts.contents.getSize( 'width', 1 ); + + origin = { x : $event.screenX, y : $event.screenY }; + + viewSize = CKEDITOR.document.getWindow().getViewPaneSize(); + + CKEDITOR.document.on( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.on( 'mouseup', mouseUpHandler ); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.on( 'mousemove', mouseMoveHandler ); + coverDoc.on( 'mouseup', mouseUpHandler ); + } + + $event.preventDefault && $event.preventDefault(); + }); + + // Prepend the grip to the dialog. + dialog.on( 'load', function() + { + var direction = ''; + if ( resizable == CKEDITOR.DIALOG_RESIZE_WIDTH ) + direction = ' cke_resizer_horizontal'; + else if ( resizable == CKEDITOR.DIALOG_RESIZE_HEIGHT ) + direction = ' cke_resizer_vertical'; + var resizer = CKEDITOR.dom.element.createFromHtml( '<div' + + ' class="cke_resizer' + direction + ' cke_resizer_' + editor.lang.dir + '"' + + ' title="' + CKEDITOR.tools.htmlEncode( editor.lang.resize ) + '"' + + ' onmousedown="CKEDITOR.tools.callFunction(' + mouseDownFn + ', event )"></div>' ); + dialog.parts.footer.append( resizer, 1 ); + }); + editor.on( 'destroy', function() { CKEDITOR.tools.removeFunction( mouseDownFn ); } ); + + function mouseMoveHandler( evt ) + { + var rtl = editor.lang.dir == 'rtl', + dx = ( evt.data.$.screenX - origin.x ) * ( rtl ? -1 : 1 ), + dy = evt.data.$.screenY - origin.y, + width = startSize.width, + height = startSize.height, + internalWidth = width + dx * ( dialog._.moved ? 1 : 2 ), + internalHeight = height + dy * ( dialog._.moved ? 1 : 2 ), + element = dialog._.element.getFirst(), + right = rtl && element.getComputedStyle( 'right' ), + position = dialog.getPosition(); + + if ( position.y + internalHeight > viewSize.height ) + internalHeight = viewSize.height - position.y; + + if ( ( rtl ? right : position.x ) + internalWidth > viewSize.width ) + internalWidth = viewSize.width - ( rtl ? right : position.x ); + + // Make sure the dialog will not be resized to the wrong side when it's in the leftmost position for RTL. + if ( ( resizable == CKEDITOR.DIALOG_RESIZE_WIDTH || resizable == CKEDITOR.DIALOG_RESIZE_BOTH ) ) + width = Math.max( def.minWidth || 0, internalWidth - wrapperWidth ); + + if ( resizable == CKEDITOR.DIALOG_RESIZE_HEIGHT || resizable == CKEDITOR.DIALOG_RESIZE_BOTH ) + height = Math.max( def.minHeight || 0, internalHeight - wrapperHeight ); + + dialog.resize( width, height ); + + if ( !dialog._.moved ) + dialog.layout(); + + evt.data.preventDefault(); + } + + function mouseUpHandler() + { + CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler ); + CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler ); + + if ( dialogCover ) + { + dialogCover.remove(); + dialogCover = null; + } + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.removeListener( 'mouseup', mouseUpHandler ); + coverDoc.removeListener( 'mousemove', mouseMoveHandler ); + } + } + } + + var resizeCover; + // Caching resuable covers and allowing only one cover + // on screen. + var covers = {}, + currentCover; + + function cancelEvent( ev ) + { + ev.data.preventDefault(1); + } + + function showCover( editor ) + { + var win = CKEDITOR.document.getWindow(); + var config = editor.config, + backgroundColorStyle = config.dialog_backgroundCoverColor || 'white', + backgroundCoverOpacity = config.dialog_backgroundCoverOpacity, + baseFloatZIndex = config.baseFloatZIndex, + coverKey = CKEDITOR.tools.genKey( + backgroundColorStyle, + backgroundCoverOpacity, + baseFloatZIndex ), + coverElement = covers[ coverKey ]; + + if ( !coverElement ) + { + var html = [ + '<div tabIndex="-1" style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ), + '; z-index: ', baseFloatZIndex, + '; top: 0px; left: 0px; ', + ( !CKEDITOR.env.ie6Compat ? 'background-color: ' + backgroundColorStyle : '' ), + '" class="cke_dialog_background_cover">' + ]; + + if ( CKEDITOR.env.ie6Compat ) + { + // Support for custom document.domain in IE. + var isCustomDomain = CKEDITOR.env.isCustomDomain(), + iframeHtml = '<html><body style=\\\'background-color:' + backgroundColorStyle + ';\\\'></body></html>'; + + html.push( + '<iframe' + + ' hidefocus="true"' + + ' frameborder="0"' + + ' id="cke_dialog_background_iframe"' + + ' src="javascript:' ); + + html.push( 'void((function(){' + + 'document.open();' + + ( isCustomDomain ? 'document.domain=\'' + document.domain + '\';' : '' ) + + 'document.write( \'' + iframeHtml + '\' );' + + 'document.close();' + + '})())' ); + + html.push( + '"' + + ' style="' + + 'position:absolute;' + + 'left:0;' + + 'top:0;' + + 'width:100%;' + + 'height: 100%;' + + 'progid:DXImageTransform.Microsoft.Alpha(opacity=0)">' + + '</iframe>' ); + } + + html.push( '</div>' ); + + coverElement = CKEDITOR.dom.element.createFromHtml( html.join( '' ) ); + coverElement.setOpacity( backgroundCoverOpacity != undefined ? backgroundCoverOpacity : 0.5 ); + + coverElement.on( 'keydown', cancelEvent ); + coverElement.on( 'keypress', cancelEvent ); + coverElement.on( 'keyup', cancelEvent ); + + coverElement.appendTo( CKEDITOR.document.getBody() ); + covers[ coverKey ] = coverElement; + } + else + coverElement. show(); + + currentCover = coverElement; + var resizeFunc = function() + { + var size = win.getViewPaneSize(); + coverElement.setStyles( + { + width : size.width + 'px', + height : size.height + 'px' + } ); + }; + + var scrollFunc = function() + { + var pos = win.getScrollPosition(), + cursor = CKEDITOR.dialog._.currentTop; + coverElement.setStyles( + { + left : pos.x + 'px', + top : pos.y + 'px' + }); + + if ( cursor ) + { + do + { + var dialogPos = cursor.getPosition(); + cursor.move( dialogPos.x, dialogPos.y ); + } while ( ( cursor = cursor._.parentDialog ) ); + } + }; + + resizeCover = resizeFunc; + win.on( 'resize', resizeFunc ); + resizeFunc(); + // Using Safari/Mac, focus must be kept where it is (#7027) + if ( !( CKEDITOR.env.mac && CKEDITOR.env.webkit ) ) + coverElement.focus(); + + if ( CKEDITOR.env.ie6Compat ) + { + // IE BUG: win.$.onscroll assignment doesn't work.. it must be window.onscroll. + // So we need to invent a really funny way to make it work. + var myScrollHandler = function() + { + scrollFunc(); + arguments.callee.prevScrollHandler.apply( this, arguments ); + }; + win.$.setTimeout( function() + { + myScrollHandler.prevScrollHandler = window.onscroll || function(){}; + window.onscroll = myScrollHandler; + }, 0 ); + scrollFunc(); + } + } + + function hideCover() + { + if ( !currentCover ) + return; + + var win = CKEDITOR.document.getWindow(); + currentCover.hide(); + win.removeListener( 'resize', resizeCover ); + + if ( CKEDITOR.env.ie6Compat ) + { + win.$.setTimeout( function() + { + var prevScrollHandler = window.onscroll && window.onscroll.prevScrollHandler; + window.onscroll = prevScrollHandler || null; + }, 0 ); + } + resizeCover = null; + } + + function removeCovers() + { + for ( var coverId in covers ) + covers[ coverId ].remove(); + covers = {}; + } + + var accessKeyProcessors = {}; + + var accessKeyDownHandler = function( evt ) + { + var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey, + alt = evt.data.$.altKey, + shift = evt.data.$.shiftKey, + key = String.fromCharCode( evt.data.$.keyCode ), + keyProcessor = accessKeyProcessors[( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '') + ( shift ? 'SHIFT+' : '' ) + key]; + + if ( !keyProcessor || !keyProcessor.length ) + return; + + keyProcessor = keyProcessor[keyProcessor.length - 1]; + keyProcessor.keydown && keyProcessor.keydown.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); + evt.data.preventDefault(); + }; + + var accessKeyUpHandler = function( evt ) + { + var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey, + alt = evt.data.$.altKey, + shift = evt.data.$.shiftKey, + key = String.fromCharCode( evt.data.$.keyCode ), + keyProcessor = accessKeyProcessors[( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '') + ( shift ? 'SHIFT+' : '' ) + key]; + + if ( !keyProcessor || !keyProcessor.length ) + return; + + keyProcessor = keyProcessor[keyProcessor.length - 1]; + if ( keyProcessor.keyup ) + { + keyProcessor.keyup.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); + evt.data.preventDefault(); + } + }; + + var registerAccessKey = function( uiElement, dialog, key, downFunc, upFunc ) + { + var procList = accessKeyProcessors[key] || ( accessKeyProcessors[key] = [] ); + procList.push( { + uiElement : uiElement, + dialog : dialog, + key : key, + keyup : upFunc || uiElement.accessKeyUp, + keydown : downFunc || uiElement.accessKeyDown + } ); + }; + + var unregisterAccessKey = function( obj ) + { + for ( var i in accessKeyProcessors ) + { + var list = accessKeyProcessors[i]; + for ( var j = list.length - 1 ; j >= 0 ; j-- ) + { + if ( list[j].dialog == obj || list[j].uiElement == obj ) + list.splice( j, 1 ); + } + if ( list.length === 0 ) + delete accessKeyProcessors[i]; + } + }; + + var tabAccessKeyUp = function( dialog, key ) + { + if ( dialog._.accessKeyMap[key] ) + dialog.selectPage( dialog._.accessKeyMap[key] ); + }; + + var tabAccessKeyDown = function( dialog, key ) + { + }; + + (function() + { + CKEDITOR.ui.dialog = + { + /** + * The base class of all dialog UI elements. + * @constructor + * @param {CKEDITOR.dialog} dialog Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition Element + * definition. Accepted fields: + * <ul> + * <li><strong>id</strong> (Required) The id of the UI element. See {@link + * CKEDITOR.dialog#getContentElement}</li> + * <li><strong>type</strong> (Required) The type of the UI element. The + * value to this field specifies which UI element class will be used to + * generate the final widget.</li> + * <li><strong>title</strong> (Optional) The popup tooltip for the UI + * element.</li> + * <li><strong>hidden</strong> (Optional) A flag that tells if the element + * should be initially visible.</li> + * <li><strong>className</strong> (Optional) Additional CSS class names + * to add to the UI element. Separated by space.</li> + * <li><strong>style</strong> (Optional) Additional CSS inline styles + * to add to the UI element. A semicolon (;) is required after the last + * style declaration.</li> + * <li><strong>accessKey</strong> (Optional) The alphanumeric access key + * for this element. Access keys are automatically prefixed by CTRL.</li> + * <li><strong>on*</strong> (Optional) Any UI element definition field that + * starts with <em>on</em> followed immediately by a capital letter and + * probably more letters is an event handler. Event handlers may be further + * divided into registered event handlers and DOM event handlers. Please + * refer to {@link CKEDITOR.ui.dialog.uiElement#registerEvents} and + * {@link CKEDITOR.ui.dialog.uiElement#eventProcessors} for more + * information.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to be added to the dialog's content area. + * @param {Function|String} nodeNameArg + * A function returning a string, or a simple string for the node name for + * the root DOM node. Default is 'div'. + * @param {Function|Object} stylesArg + * A function returning an object, or a simple object for CSS styles applied + * to the DOM node. Default is empty object. + * @param {Function|Object} attributesArg + * A fucntion returning an object, or a simple object for attributes applied + * to the DOM node. Default is empty object. + * @param {Function|String} contentsArg + * A function returning a string, or a simple string for the HTML code inside + * the root DOM node. Default is empty string. + * @example + */ + uiElement : function( dialog, elementDefinition, htmlList, nodeNameArg, stylesArg, attributesArg, contentsArg ) + { + if ( arguments.length < 4 ) + return; + + var nodeName = ( nodeNameArg.call ? nodeNameArg( elementDefinition ) : nodeNameArg ) || 'div', + html = [ '<', nodeName, ' ' ], + styles = ( stylesArg && stylesArg.call ? stylesArg( elementDefinition ) : stylesArg ) || {}, + attributes = ( attributesArg && attributesArg.call ? attributesArg( elementDefinition ) : attributesArg ) || {}, + innerHTML = ( contentsArg && contentsArg.call ? contentsArg.call( this, dialog, elementDefinition ) : contentsArg ) || '', + domId = this.domId = attributes.id || CKEDITOR.tools.getNextId() + '_uiElement', + id = this.id = elementDefinition.id, + i; + + // Set the id, a unique id is required for getElement() to work. + attributes.id = domId; + + // Set the type and definition CSS class names. + var classes = {}; + if ( elementDefinition.type ) + classes[ 'cke_dialog_ui_' + elementDefinition.type ] = 1; + if ( elementDefinition.className ) + classes[ elementDefinition.className ] = 1; + if ( elementDefinition.disabled ) + classes[ 'cke_disabled' ] = 1; + + var attributeClasses = ( attributes['class'] && attributes['class'].split ) ? attributes['class'].split( ' ' ) : []; + for ( i = 0 ; i < attributeClasses.length ; i++ ) + { + if ( attributeClasses[i] ) + classes[ attributeClasses[i] ] = 1; + } + var finalClasses = []; + for ( i in classes ) + finalClasses.push( i ); + attributes['class'] = finalClasses.join( ' ' ); + + // Set the popup tooltop. + if ( elementDefinition.title ) + attributes.title = elementDefinition.title; + + // Write the inline CSS styles. + var styleStr = ( elementDefinition.style || '' ).split( ';' ); + + // Element alignment support. + if ( elementDefinition.align ) + { + var align = elementDefinition.align; + styles[ 'margin-left' ] = align == 'left' ? 0 : 'auto'; + styles[ 'margin-right' ] = align == 'right' ? 0 : 'auto'; + } + + for ( i in styles ) + styleStr.push( i + ':' + styles[i] ); + if ( elementDefinition.hidden ) + styleStr.push( 'display:none' ); + for ( i = styleStr.length - 1 ; i >= 0 ; i-- ) + { + if ( styleStr[i] === '' ) + styleStr.splice( i, 1 ); + } + if ( styleStr.length > 0 ) + attributes.style = ( attributes.style ? ( attributes.style + '; ' ) : '' ) + styleStr.join( '; ' ); + + // Write the attributes. + for ( i in attributes ) + html.push( i + '="' + CKEDITOR.tools.htmlEncode( attributes[i] ) + '" '); + + // Write the content HTML. + html.push( '>', innerHTML, '</', nodeName, '>' ); + + // Add contents to the parent HTML array. + htmlList.push( html.join( '' ) ); + + ( this._ || ( this._ = {} ) ).dialog = dialog; + + // Override isChanged if it is defined in element definition. + if ( typeof( elementDefinition.isChanged ) == 'boolean' ) + this.isChanged = function(){ return elementDefinition.isChanged; }; + if ( typeof( elementDefinition.isChanged ) == 'function' ) + this.isChanged = elementDefinition.isChanged; + + // Overload 'get(set)Value' on definition. + if ( typeof( elementDefinition.setValue ) == 'function' ) + { + this.setValue = CKEDITOR.tools.override( this.setValue, function( org ) + { + return function( val ){ org.call( this, elementDefinition.setValue.call( this, val ) ); }; + } ); + } + + if ( typeof( elementDefinition.getValue ) == 'function' ) + { + this.getValue = CKEDITOR.tools.override( this.getValue, function( org ) + { + return function(){ return elementDefinition.getValue.call( this, org.call( this ) ); }; + } ); + } + + // Add events. + CKEDITOR.event.implementOn( this ); + + this.registerEvents( elementDefinition ); + if ( this.accessKeyUp && this.accessKeyDown && elementDefinition.accessKey ) + registerAccessKey( this, dialog, 'CTRL+' + elementDefinition.accessKey ); + + var me = this; + dialog.on( 'load', function() + { + var input = me.getInputElement(); + if ( input ) + { + var focusClass = me.type in { 'checkbox' : 1, 'ratio' : 1 } && CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? 'cke_dialog_ui_focused' : ''; + input.on( 'focus', function() + { + dialog._.tabBarMode = false; + dialog._.hasFocus = true; + me.fire( 'focus' ); + focusClass && this.addClass( focusClass ); + + }); + + input.on( 'blur', function() + { + me.fire( 'blur' ); + focusClass && this.removeClass( focusClass ); + }); + } + } ); + + // Register the object as a tab focus if it can be included. + if ( this.keyboardFocusable ) + { + this.tabIndex = elementDefinition.tabIndex || 0; + + this.focusIndex = dialog._.focusList.push( this ) - 1; + this.on( 'focus', function() + { + dialog._.currentFocusIndex = me.focusIndex; + } ); + } + + // Completes this object with everything we have in the + // definition. + CKEDITOR.tools.extend( this, elementDefinition ); + }, + + /** + * Horizontal layout box for dialog UI elements, auto-expends to available width of container. + * @constructor + * @extends CKEDITOR.ui.dialog.uiElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this + * container. + * @param {Array} childHtmlList + * Array of HTML code that correspond to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList + * Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>widths</strong> (Optional) The widths of child cells.</li> + * <li><strong>height</strong> (Optional) The height of the layout.</li> + * <li><strong>padding</strong> (Optional) The padding width inside child + * cells.</li> + * <li><strong>align</strong> (Optional) The alignment of the whole layout + * </li> + * </ul> + * @example + */ + hbox : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) + { + if ( arguments.length < 4 ) + return; + + this._ || ( this._ = {} ); + + var children = this._.children = childObjList, + widths = elementDefinition && elementDefinition.widths || null, + height = elementDefinition && elementDefinition.height || null, + styles = {}, + i; + /** @ignore */ + var innerHTML = function() + { + var html = [ '<tbody><tr class="cke_dialog_ui_hbox">' ]; + for ( i = 0 ; i < childHtmlList.length ; i++ ) + { + var className = 'cke_dialog_ui_hbox_child', + styles = []; + if ( i === 0 ) + className = 'cke_dialog_ui_hbox_first'; + if ( i == childHtmlList.length - 1 ) + className = 'cke_dialog_ui_hbox_last'; + html.push( '<td class="', className, '" role="presentation" ' ); + if ( widths ) + { + if ( widths[i] ) + styles.push( 'width:' + cssLength( widths[i] ) ); + } + else + styles.push( 'width:' + Math.floor( 100 / childHtmlList.length ) + '%' ); + if ( height ) + styles.push( 'height:' + cssLength( height ) ); + if ( elementDefinition && elementDefinition.padding != undefined ) + styles.push( 'padding:' + cssLength( elementDefinition.padding ) ); + // In IE Quirks alignment has to be done on table cells. (#7324) + if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && children[ i ].align ) + styles.push( 'text-align:' + children[ i ].align ); + if ( styles.length > 0 ) + html.push( 'style="' + styles.join('; ') + '" ' ); + html.push( '>', childHtmlList[i], '</td>' ); + } + html.push( '</tr></tbody>' ); + return html.join( '' ); + }; + + var attribs = { role : 'presentation' }; + elementDefinition && elementDefinition.align && ( attribs.align = elementDefinition.align ); + + CKEDITOR.ui.dialog.uiElement.call( + this, + dialog, + elementDefinition || { type : 'hbox' }, + htmlList, + 'table', + styles, + attribs, + innerHTML ); + }, + + /** + * Vertical layout box for dialog UI elements. + * @constructor + * @extends CKEDITOR.ui.dialog.hbox + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this + * container. + * @param {Array} childHtmlList + * Array of HTML code that correspond to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList + * Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>width</strong> (Optional) The width of the layout.</li> + * <li><strong>heights</strong> (Optional) The heights of individual cells. + * </li> + * <li><strong>align</strong> (Optional) The alignment of the layout.</li> + * <li><strong>padding</strong> (Optional) The padding width inside child + * cells.</li> + * <li><strong>expand</strong> (Optional) Whether the layout should expand + * vertically to fill its container.</li> + * </ul> + * @example + */ + vbox : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) + { + if ( arguments.length < 3 ) + return; + + this._ || ( this._ = {} ); + + var children = this._.children = childObjList, + width = elementDefinition && elementDefinition.width || null, + heights = elementDefinition && elementDefinition.heights || null; + /** @ignore */ + var innerHTML = function() + { + var html = [ '<table role="presentation" cellspacing="0" border="0" ' ]; + html.push( 'style="' ); + if ( elementDefinition && elementDefinition.expand ) + html.push( 'height:100%;' ); + html.push( 'width:' + cssLength( width || '100%' ), ';' ); + html.push( '"' ); + html.push( 'align="', CKEDITOR.tools.htmlEncode( + ( elementDefinition && elementDefinition.align ) || ( dialog.getParentEditor().lang.dir == 'ltr' ? 'left' : 'right' ) ), '" ' ); + + html.push( '><tbody>' ); + for ( var i = 0 ; i < childHtmlList.length ; i++ ) + { + var styles = []; + html.push( '<tr><td role="presentation" ' ); + if ( width ) + styles.push( 'width:' + cssLength( width || '100%' ) ); + if ( heights ) + styles.push( 'height:' + cssLength( heights[i] ) ); + else if ( elementDefinition && elementDefinition.expand ) + styles.push( 'height:' + Math.floor( 100 / childHtmlList.length ) + '%' ); + if ( elementDefinition && elementDefinition.padding != undefined ) + styles.push( 'padding:' + cssLength( elementDefinition.padding ) ); + // In IE Quirks alignment has to be done on table cells. (#7324) + if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && children[ i ].align ) + styles.push( 'text-align:' + children[ i ].align ); + if ( styles.length > 0 ) + html.push( 'style="', styles.join( '; ' ), '" ' ); + html.push( ' class="cke_dialog_ui_vbox_child">', childHtmlList[i], '</td></tr>' ); + } + html.push( '</tbody></table>' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition || { type : 'vbox' }, htmlList, 'div', null, { role : 'presentation' }, innerHTML ); + } + }; + })(); + + CKEDITOR.ui.dialog.uiElement.prototype = + { + /** + * Gets the root DOM element of this dialog UI object. + * @returns {CKEDITOR.dom.element} Root DOM element of UI object. + * @example + * uiElement.getElement().hide(); + */ + getElement : function() + { + return CKEDITOR.document.getById( this.domId ); + }, + + /** + * Gets the DOM element that the user inputs values. + * This function is used by setValue(), getValue() and focus(). It should + * be overrided in child classes where the input element isn't the root + * element. + * @returns {CKEDITOR.dom.element} The element where the user input values. + * @example + * var rawValue = textInput.getInputElement().$.value; + */ + getInputElement : function() + { + return this.getElement(); + }, + + /** + * Gets the parent dialog object containing this UI element. + * @returns {CKEDITOR.dialog} Parent dialog object. + * @example + * var dialog = uiElement.getDialog(); + */ + getDialog : function() + { + return this._.dialog; + }, + + /** + * Sets the value of this dialog UI object. + * @param {Object} value The new value. + * @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + * uiElement.setValue( 'Dingo' ); + */ + setValue : function( value, noChangeEvent ) + { + this.getInputElement().setValue( value ); + !noChangeEvent && this.fire( 'change', { value : value } ); + return this; + }, + + /** + * Gets the current value of this dialog UI object. + * @returns {Object} The current value. + * @example + * var myValue = uiElement.getValue(); + */ + getValue : function() + { + return this.getInputElement().getValue(); + }, + + /** + * Tells whether the UI object's value has changed. + * @returns {Boolean} true if changed, false if not changed. + * @example + * if ( uiElement.isChanged() ) + * confirm( 'Value changed! Continue?' ); + */ + isChanged : function() + { + // Override in input classes. + return false; + }, + + /** + * Selects the parent tab of this element. Usually called by focus() or overridden focus() methods. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + * focus : function() + * { + * this.selectParentTab(); + * // do something else. + * } + */ + selectParentTab : function() + { + var element = this.getInputElement(), + cursor = element, + tabId; + while ( ( cursor = cursor.getParent() ) && cursor.$.className.search( 'cke_dialog_page_contents' ) == -1 ) + { /*jsl:pass*/ } + + // Some widgets don't have parent tabs (e.g. OK and Cancel buttons). + if ( !cursor ) + return this; + + tabId = cursor.getAttribute( 'name' ); + // Avoid duplicate select. + if ( this._.dialog._.currentTabId != tabId ) + this._.dialog.selectPage( tabId ); + return this; + }, + + /** + * Puts the focus to the UI object. Switches tabs if the UI object isn't in the active tab page. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + * uiElement.focus(); + */ + focus : function() + { + this.selectParentTab().getInputElement().focus(); + return this; + }, + + /** + * Registers the on* event handlers defined in the element definition. + * The default behavior of this function is: + * <ol> + * <li> + * If the on* event is defined in the class's eventProcesors list, + * then the registration is delegated to the corresponding function + * in the eventProcessors list. + * </li> + * <li> + * If the on* event is not defined in the eventProcessors list, then + * register the event handler under the corresponding DOM event of + * the UI element's input DOM element (as defined by the return value + * of {@link CKEDITOR.ui.dialog.uiElement#getInputElement}). + * </li> + * </ol> + * This function is only called at UI element instantiation, but can + * be overridded in child classes if they require more flexibility. + * @param {CKEDITOR.dialog.definition.uiElement} definition The UI element + * definition. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + */ + registerEvents : function( definition ) + { + var regex = /^on([A-Z]\w+)/, + match; + + var registerDomEvent = function( uiElement, dialog, eventName, func ) + { + dialog.on( 'load', function() + { + uiElement.getInputElement().on( eventName, func, uiElement ); + }); + }; + + for ( var i in definition ) + { + if ( !( match = i.match( regex ) ) ) + continue; + if ( this.eventProcessors[i] ) + this.eventProcessors[i].call( this, this._.dialog, definition[i] ); + else + registerDomEvent( this, this._.dialog, match[1].toLowerCase(), definition[i] ); + } + + return this; + }, + + /** + * The event processor list used by + * {@link CKEDITOR.ui.dialog.uiElement#getInputElement} at UI element + * instantiation. The default list defines three on* events: + * <ol> + * <li>onLoad - Called when the element's parent dialog opens for the + * first time</li> + * <li>onShow - Called whenever the element's parent dialog opens.</li> + * <li>onHide - Called whenever the element's parent dialog closes.</li> + * </ol> + * @field + * @type Object + * @example + * // This connects the 'click' event in CKEDITOR.ui.dialog.button to onClick + * // handlers in the UI element's definitions. + * CKEDITOR.ui.dialog.button.eventProcessors = CKEDITOR.tools.extend( {}, + * CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, + * { onClick : function( dialog, func ) { this.on( 'click', func ); } }, + * true ); + */ + eventProcessors : + { + onLoad : function( dialog, func ) + { + dialog.on( 'load', func, this ); + }, + + onShow : function( dialog, func ) + { + dialog.on( 'show', func, this ); + }, + + onHide : function( dialog, func ) + { + dialog.on( 'hide', func, this ); + } + }, + + /** + * The default handler for a UI element's access key down event, which + * tries to put focus to the UI element.<br /> + * Can be overridded in child classes for more sophisticaed behavior. + * @param {CKEDITOR.dialog} dialog The parent dialog object. + * @param {String} key The key combination pressed. Since access keys + * are defined to always include the CTRL key, its value should always + * include a 'CTRL+' prefix. + * @example + */ + accessKeyDown : function( dialog, key ) + { + this.focus(); + }, + + /** + * The default handler for a UI element's access key up event, which + * does nothing.<br /> + * Can be overridded in child classes for more sophisticated behavior. + * @param {CKEDITOR.dialog} dialog The parent dialog object. + * @param {String} key The key combination pressed. Since access keys + * are defined to always include the CTRL key, its value should always + * include a 'CTRL+' prefix. + * @example + */ + accessKeyUp : function( dialog, key ) + { + }, + + /** + * Disables a UI element. + * @example + */ + disable : function() + { + var element = this.getElement(), + input = this.getInputElement(); + input.setAttribute( 'disabled', 'true' ); + element.addClass( 'cke_disabled' ); + }, + + /** + * Enables a UI element. + * @example + */ + enable : function() + { + var element = this.getElement(), + input = this.getInputElement(); + input.removeAttribute( 'disabled' ); + element.removeClass( 'cke_disabled' ); + }, + + /** + * Determines whether an UI element is enabled or not. + * @returns {Boolean} Whether the UI element is enabled. + * @example + */ + isEnabled : function() + { + return !this.getElement().hasClass( 'cke_disabled' ); + }, + + /** + * Determines whether an UI element is visible or not. + * @returns {Boolean} Whether the UI element is visible. + * @example + */ + isVisible : function() + { + return this.getInputElement().isVisible(); + }, + + /** + * Determines whether an UI element is focus-able or not. + * Focus-able is defined as being both visible and enabled. + * @returns {Boolean} Whether the UI element can be focused. + * @example + */ + isFocusable : function() + { + if ( !this.isEnabled() || !this.isVisible() ) + return false; + return true; + } + }; + + CKEDITOR.ui.dialog.hbox.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement, + /** + * @lends CKEDITOR.ui.dialog.hbox.prototype + */ + { + /** + * Gets a child UI element inside this container. + * @param {Array|Number} indices An array or a single number to indicate the child's + * position in the container's descendant tree. Omit to get all the children in an array. + * @returns {Array|CKEDITOR.ui.dialog.uiElement} Array of all UI elements in the container + * if no argument given, or the specified UI element if indices is given. + * @example + * var checkbox = hbox.getChild( [0,1] ); + * checkbox.setValue( true ); + */ + getChild : function( indices ) + { + // If no arguments, return a clone of the children array. + if ( arguments.length < 1 ) + return this._.children.concat(); + + // If indices isn't array, make it one. + if ( !indices.splice ) + indices = [ indices ]; + + // Retrieve the child element according to tree position. + if ( indices.length < 2 ) + return this._.children[ indices[0] ]; + else + return ( this._.children[ indices[0] ] && this._.children[ indices[0] ].getChild ) ? + this._.children[ indices[0] ].getChild( indices.slice( 1, indices.length ) ) : + null; + } + }, true ); + + CKEDITOR.ui.dialog.vbox.prototype = new CKEDITOR.ui.dialog.hbox(); + + + + (function() + { + var commonBuilder = { + build : function( dialog, elementDefinition, output ) + { + var children = elementDefinition.children, + child, + childHtmlList = [], + childObjList = []; + for ( var i = 0 ; ( i < children.length && ( child = children[i] ) ) ; i++ ) + { + var childHtml = []; + childHtmlList.push( childHtml ); + childObjList.push( CKEDITOR.dialog._.uiElementBuilders[ child.type ].build( dialog, child, childHtml ) ); + } + return new CKEDITOR.ui.dialog[elementDefinition.type]( dialog, childObjList, childHtmlList, output, elementDefinition ); + } + }; + + CKEDITOR.dialog.addUIElement( 'hbox', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'vbox', commonBuilder ); + })(); + + /** + * Generic dialog command. It opens a specific dialog when executed. + * @constructor + * @augments CKEDITOR.commandDefinition + * @param {string} dialogName The name of the dialog to open when executing + * this command. + * @example + * // Register the "link" command, which opens the "link" dialog. + * editor.addCommand( 'link', <b>new CKEDITOR.dialogCommand( 'link' )</b> ); + */ + CKEDITOR.dialogCommand = function( dialogName ) + { + this.dialogName = dialogName; + }; + + CKEDITOR.dialogCommand.prototype = + { + /** @ignore */ + exec : function( editor ) + { + // Special treatment for Opera. (#8031) + CKEDITOR.env.opera ? + CKEDITOR.tools.setTimeout( function() { editor.openDialog( this.dialogName ); }, 0, this ) + : editor.openDialog( this.dialogName ); + }, + + // Dialog commands just open a dialog ui, thus require no undo logic, + // undo support should dedicate to specific dialog implementation. + canUndo: false, + + editorFocus : CKEDITOR.env.ie || CKEDITOR.env.webkit + }; + + (function() + { + var notEmptyRegex = /^([a]|[^a])+$/, + integerRegex = /^\d*$/, + numberRegex = /^\d*(?:\.\d+)?$/, + htmlLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/, + cssLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i, + inlineStyleRegex = /^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/; + + CKEDITOR.VALIDATE_OR = 1; + CKEDITOR.VALIDATE_AND = 2; + + CKEDITOR.dialog.validate = + { + functions : function() + { + var args = arguments; + return function() + { + /** + * It's important for validate functions to be able to accept the value + * as argument in addition to this.getValue(), so that it is possible to + * combine validate functions together to make more sophisticated + * validators. + */ + var value = this && this.getValue ? this.getValue() : args[ 0 ]; + + var msg = undefined, + relation = CKEDITOR.VALIDATE_AND, + functions = [], i; + + for ( i = 0 ; i < args.length ; i++ ) + { + if ( typeof( args[i] ) == 'function' ) + functions.push( args[i] ); + else + break; + } + + if ( i < args.length && typeof( args[i] ) == 'string' ) + { + msg = args[i]; + i++; + } + + if ( i < args.length && typeof( args[i]) == 'number' ) + relation = args[i]; + + var passed = ( relation == CKEDITOR.VALIDATE_AND ? true : false ); + for ( i = 0 ; i < functions.length ; i++ ) + { + if ( relation == CKEDITOR.VALIDATE_AND ) + passed = passed && functions[i]( value ); + else + passed = passed || functions[i]( value ); + } + + return !passed ? msg : true; + }; + }, + + regex : function( regex, msg ) + { + /* + * Can be greatly shortened by deriving from functions validator if code size + * turns out to be more important than performance. + */ + return function() + { + var value = this && this.getValue ? this.getValue() : arguments[0]; + return !regex.test( value ) ? msg : true; + }; + }, + + notEmpty : function( msg ) + { + return this.regex( notEmptyRegex, msg ); + }, + + integer : function( msg ) + { + return this.regex( integerRegex, msg ); + }, + + 'number' : function( msg ) + { + return this.regex( numberRegex, msg ); + }, + + 'cssLength' : function( msg ) + { + return this.functions( function( val ){ return cssLengthRegex.test( CKEDITOR.tools.trim( val ) ); }, msg ); + }, + + 'htmlLength' : function( msg ) + { + return this.functions( function( val ){ return htmlLengthRegex.test( CKEDITOR.tools.trim( val ) ); }, msg ); + }, + + 'inlineStyle' : function( msg ) + { + return this.functions( function( val ){ return inlineStyleRegex.test( CKEDITOR.tools.trim( val ) ); }, msg ); + }, + + equals : function( value, msg ) + { + return this.functions( function( val ){ return val == value; }, msg ); + }, + + notEqual : function( value, msg ) + { + return this.functions( function( val ){ return val != value; }, msg ); + } + }; + + CKEDITOR.on( 'instanceDestroyed', function( evt ) + { + // Remove dialog cover on last instance destroy. + if ( CKEDITOR.tools.isEmpty( CKEDITOR.instances ) ) + { + var currentTopDialog; + while ( ( currentTopDialog = CKEDITOR.dialog._.currentTop ) ) + currentTopDialog.hide(); + removeCovers(); + } + + var dialogs = evt.editor._.storedDialogs; + for ( var name in dialogs ) + dialogs[ name ].destroy(); + + }); + + })(); + + // Extend the CKEDITOR.editor class with dialog specific functions. + CKEDITOR.tools.extend( CKEDITOR.editor.prototype, + /** @lends CKEDITOR.editor.prototype */ + { + /** + * Loads and opens a registered dialog. + * @param {String} dialogName The registered name of the dialog. + * @param {Function} callback The function to be invoked after dialog instance created. + * @see CKEDITOR.dialog.add + * @example + * CKEDITOR.instances.editor1.openDialog( 'smiley' ); + * @returns {CKEDITOR.dialog} The dialog object corresponding to the dialog displayed. null if the dialog name is not registered. + */ + openDialog : function( dialogName, callback ) + { + if ( this.mode == 'wysiwyg' && CKEDITOR.env.ie ) + { + var selection = this.getSelection(); + selection && selection.lock(); + } + + var dialogDefinitions = CKEDITOR.dialog._.dialogDefinitions[ dialogName ], + dialogSkin = this.skin.dialog; + + if ( CKEDITOR.dialog._.currentTop === null ) + showCover( this ); + + // If the dialogDefinition is already loaded, open it immediately. + if ( typeof dialogDefinitions == 'function' && dialogSkin._isLoaded ) + { + var storedDialogs = this._.storedDialogs || + ( this._.storedDialogs = {} ); + + var dialog = storedDialogs[ dialogName ] || + ( storedDialogs[ dialogName ] = new CKEDITOR.dialog( this, dialogName ) ); + + callback && callback.call( dialog, dialog ); + dialog.show(); + + return dialog; + } + else if ( dialogDefinitions == 'failed' ) + { + hideCover(); + throw new Error( '[CKEDITOR.dialog.openDialog] Dialog "' + dialogName + '" failed when loading definition.' ); + } + + var me = this; + + function onDialogFileLoaded( success ) + { + var dialogDefinition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ], + skin = me.skin.dialog; + + // Check if both skin part and definition is loaded. + if ( !skin._isLoaded || loadDefinition && typeof success == 'undefined' ) + return; + + // In case of plugin error, mark it as loading failed. + if ( typeof dialogDefinition != 'function' ) + CKEDITOR.dialog._.dialogDefinitions[ dialogName ] = 'failed'; + + me.openDialog( dialogName, callback ); + } + + if ( typeof dialogDefinitions == 'string' ) + { + var loadDefinition = 1; + CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( dialogDefinitions ), onDialogFileLoaded, null, 0, 1 ); + } + + CKEDITOR.skins.load( this, 'dialog', onDialogFileLoaded ); + + return null; + } + }); +})(); + +CKEDITOR.plugins.add( 'dialog', + { + requires : [ 'dialogui' ] + }); + +// Dialog related configurations. + +/** + * The color of the dialog background cover. It should be a valid CSS color + * string. + * @name CKEDITOR.config.dialog_backgroundCoverColor + * @type String + * @default 'white' + * @example + * config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; + */ + +/** + * The opacity of the dialog background cover. It should be a number within the + * range [0.0, 1.0]. + * @name CKEDITOR.config.dialog_backgroundCoverOpacity + * @type Number + * @default 0.5 + * @example + * config.dialog_backgroundCoverOpacity = 0.7; + */ + +/** + * If the dialog has more than one tab, put focus into the first tab as soon as dialog is opened. + * @name CKEDITOR.config.dialog_startupFocusTab + * @type Boolean + * @default false + * @example + * config.dialog_startupFocusTab = true; + */ + +/** + * The distance of magnetic borders used in moving and resizing dialogs, + * measured in pixels. + * @name CKEDITOR.config.dialog_magnetDistance + * @type Number + * @default 20 + * @example + * config.dialog_magnetDistance = 30; + */ + +/** + * The guideline to follow when generating the dialog buttons. There are 3 possible options: + * <ul> + * <li>'OS' - the buttons will be displayed in the default order of the user's OS;</li> + * <li>'ltr' - for Left-To-Right order;</li> + * <li>'rtl' - for Right-To-Left order.</li> + * </ul> + * @name CKEDITOR.config.dialog_buttonsOrder + * @type String + * @default 'OS' + * @since 3.5 + * @example + * config.dialog_buttonsOrder = 'rtl'; + */ + +/** + * The dialog contents to removed. It's a string composed by dialog name and tab name with a colon between them. + * Separate each pair with semicolon (see example). + * <b>Note: All names are case-sensitive.</b> + * <b>Note: Be cautious when specifying dialog tabs that are mandatory, like "info", dialog functionality might be broken because of this!</b> + * @name CKEDITOR.config.removeDialogTabs + * @type String + * @since 3.5 + * @default '' + * @example + * config.removeDialogTabs = 'flash:advanced;image:Link'; + */ + +/** + * Fired when a dialog definition is about to be used to create a dialog into + * an editor instance. This event makes it possible to customize the definition + * before creating it. + * <p>Note that this event is called only the first time a specific dialog is + * opened. Successive openings will use the cached dialog, and this event will + * not get fired.</p> + * @name CKEDITOR#dialogDefinition + * @event + * @param {CKEDITOR.dialog.definition} data The dialog defination that + * is being loaded. + * @param {CKEDITOR.editor} editor The editor instance that will use the + * dialog. + */ + +/** + * Fired when a tab is going to be selected in a dialog + * @name CKEDITOR.dialog#selectPage + * @event + * @param {String} page The id of the page that it's gonna be selected. + * @param {String} currentPage The id of the current page. + */ + +/** + * Fired when the user tries to dismiss a dialog + * @name CKEDITOR.dialog#cancel + * @event + * @param {Boolean} hide Whether the event should proceed or not. + */ + +/** + * Fired when the user tries to confirm a dialog + * @name CKEDITOR.dialog#ok + * @event + * @param {Boolean} hide Whether the event should proceed or not. + */ + +/** + * Fired when a dialog is shown + * @name CKEDITOR.dialog#show + * @event + */ + +/** + * Fired when a dialog is shown + * @name CKEDITOR.editor#dialogShow + * @event + */ + +/** + * Fired when a dialog is hidden + * @name CKEDITOR.dialog#hide + * @event + */ + +/** + * Fired when a dialog is hidden + * @name CKEDITOR.editor#dialogHide + * @event + */ + +/** + * Fired when a dialog is being resized. The event is fired on + * both the 'CKEDITOR.dialog' object and the dialog instance + * since 3.5.3, previously it's available only in the global object. + * @name CKEDITOR.dialog#resize + * @since 3.5 + * @event + * @param {CKEDITOR.dialog} dialog The dialog being resized (if + * it's fired on the dialog itself, this parameter isn't sent). + * @param {String} skin The skin name. + * @param {Number} width The new width. + * @param {Number} height The new height. + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/dialogadvtab/plugin.js b/htdocs/includes/ckeditor/_source/plugins/dialogadvtab/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..d369be7772172f613af21a7d321897743f12c4d4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/dialogadvtab/plugin.js @@ -0,0 +1,208 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + +function setupAdvParams( element ) +{ + var attrName = this.att; + + var value = element && element.hasAttribute( attrName ) && element.getAttribute( attrName ) || ''; + + if ( value !== undefined ) + this.setValue( value ); +} + +function commitAdvParams() +{ + // Dialogs may use different parameters in the commit list, so, by + // definition, we take the first CKEDITOR.dom.element available. + var element; + + for ( var i = 0 ; i < arguments.length ; i++ ) + { + if ( arguments[ i ] instanceof CKEDITOR.dom.element ) + { + element = arguments[ i ]; + break; + } + } + + if ( element ) + { + var attrName = this.att, + value = this.getValue(); + + if ( value ) + element.setAttribute( attrName, value ); + else + element.removeAttribute( attrName, value ); + } +} + +CKEDITOR.plugins.add( 'dialogadvtab', +{ + /** + * + * @param tabConfig + * id, dir, classes, styles + */ + createAdvancedTab : function( editor, tabConfig ) + { + if ( !tabConfig ) + tabConfig = { id:1, dir:1, classes:1, styles:1 }; + + var lang = editor.lang.common; + + var result = + { + id : 'advanced', + label : lang.advancedTab, + title : lang.advancedTab, + elements : + [ + { + type : 'vbox', + padding : 1, + children : [] + } + ] + }; + + var contents = []; + + if ( tabConfig.id || tabConfig.dir ) + { + if ( tabConfig.id ) + { + contents.push( + { + id : 'advId', + att : 'id', + type : 'text', + label : lang.id, + setup : setupAdvParams, + commit : commitAdvParams + }); + } + + if ( tabConfig.dir ) + { + contents.push( + { + id : 'advLangDir', + att : 'dir', + type : 'select', + label : lang.langDir, + 'default' : '', + style : 'width:100%', + items : + [ + [ lang.notSet, '' ], + [ lang.langDirLTR, 'ltr' ], + [ lang.langDirRTL, 'rtl' ] + ], + setup : setupAdvParams, + commit : commitAdvParams + }); + } + + result.elements[ 0 ].children.push( + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : [].concat( contents ) + }); + } + + if ( tabConfig.styles || tabConfig.classes ) + { + contents = []; + + if ( tabConfig.styles ) + { + contents.push( + { + id : 'advStyles', + att : 'style', + type : 'text', + label : lang.styles, + 'default' : '', + + validate : CKEDITOR.dialog.validate.inlineStyle( lang.invalidInlineStyle ), + onChange : function(){}, + + getStyle : function( name, defaultValue ) + { + var match = this.getValue().match( new RegExp( name + '\\s*:\\s*([^;]*)', 'i') ); + return match ? match[ 1 ] : defaultValue; + }, + + updateStyle : function( name, value ) + { + var styles = this.getValue(); + + // Remove the current value. + if ( styles ) + { + styles = styles + .replace( new RegExp( '\\s*' + name + '\s*:[^;]*(?:$|;\s*)', 'i' ), '' ) + .replace( /^[;\s]+/, '' ) + .replace( /\s+$/, '' ); + } + + if ( value ) + { + styles && !(/;\s*$/).test( styles ) && ( styles += '; ' ); + styles += name + ': ' + value; + } + + this.setValue( styles, 1 ); + + }, + + setup : setupAdvParams, + + commit : commitAdvParams + + }); + } + + if ( tabConfig.classes ) + { + contents.push( + { + type : 'hbox', + widths : [ '45%', '55%' ], + children : + [ + { + id : 'advCSSClasses', + att : 'class', + type : 'text', + label : lang.cssClasses, + 'default' : '', + setup : setupAdvParams, + commit : commitAdvParams + + } + ] + }); + } + + result.elements[ 0 ].children.push( + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : [].concat( contents ) + }); + } + + return result; + } +}); + +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/dialogui/plugin.js b/htdocs/includes/ckeditor/_source/plugins/dialogui/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..29db79c0f10f28ea5f2926358877708925ee6af1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/dialogui/plugin.js @@ -0,0 +1,1532 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** @fileoverview The "dialogui" plugin. */ + +CKEDITOR.plugins.add( 'dialogui' ); + +(function() +{ + var initPrivateObject = function( elementDefinition ) + { + this._ || ( this._ = {} ); + this._['default'] = this._.initValue = elementDefinition['default'] || ''; + this._.required = elementDefinition[ 'required' ] || false; + var args = [ this._ ]; + for ( var i = 1 ; i < arguments.length ; i++ ) + args.push( arguments[i] ); + args.push( true ); + CKEDITOR.tools.extend.apply( CKEDITOR.tools, args ); + return this._; + }, + textBuilder = + { + build : function( dialog, elementDefinition, output ) + { + return new CKEDITOR.ui.dialog.textInput( dialog, elementDefinition, output ); + } + }, + commonBuilder = + { + build : function( dialog, elementDefinition, output ) + { + return new CKEDITOR.ui.dialog[elementDefinition.type]( dialog, elementDefinition, output ); + } + }, + containerBuilder = + { + build : function( dialog, elementDefinition, output ) + { + var children = elementDefinition.children, + child, + childHtmlList = [], + childObjList = []; + for ( var i = 0 ; ( i < children.length && ( child = children[i] ) ) ; i++ ) + { + var childHtml = []; + childHtmlList.push( childHtml ); + childObjList.push( CKEDITOR.dialog._.uiElementBuilders[ child.type ].build( dialog, child, childHtml ) ); + } + return new CKEDITOR.ui.dialog[ elementDefinition.type ]( dialog, childObjList, childHtmlList, output, elementDefinition ); + } + }, + commonPrototype = + { + isChanged : function() + { + return this.getValue() != this.getInitValue(); + }, + + reset : function( noChangeEvent ) + { + this.setValue( this.getInitValue(), noChangeEvent ); + }, + + setInitValue : function() + { + this._.initValue = this.getValue(); + }, + + resetInitValue : function() + { + this._.initValue = this._['default']; + }, + + getInitValue : function() + { + return this._.initValue; + } + }, + commonEventProcessors = CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, + { + onChange : function( dialog, func ) + { + if ( !this._.domOnChangeRegistered ) + { + dialog.on( 'load', function() + { + this.getInputElement().on( 'change', function() + { + // Make sure 'onchange' doesn't get fired after dialog closed. (#5719) + if ( !dialog.parts.dialog.isVisible() ) + return; + + this.fire( 'change', { value : this.getValue() } ); + }, this ); + }, this ); + this._.domOnChangeRegistered = true; + } + + this.on( 'change', func ); + } + }, true ), + eventRegex = /^on([A-Z]\w+)/, + cleanInnerDefinition = function( def ) + { + // An inner UI element should not have the parent's type, title or events. + for ( var i in def ) + { + if ( eventRegex.test( i ) || i == 'title' || i == 'type' ) + delete def[i]; + } + return def; + }; + + CKEDITOR.tools.extend( CKEDITOR.ui.dialog, + /** @lends CKEDITOR.ui.dialog */ + { + /** + * Base class for all dialog elements with a textual label on the left. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.uiElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>label</strong> (Required) The label string.</li> + * <li><strong>labelLayout</strong> (Optional) Put 'horizontal' here if the + * label element is to be layed out horizontally. Otherwise a vertical + * layout will be used.</li> + * <li><strong>widths</strong> (Optional) This applies only for horizontal + * layouts - an 2-element array of lengths to specify the widths of the + * label and the content element.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + * @param {Function} contentHtml + * A function returning the HTML code string to be added inside the content + * cell. + */ + labeledElement : function( dialog, elementDefinition, htmlList, contentHtml ) + { + if ( arguments.length < 4 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ); + _.labelId = CKEDITOR.tools.getNextId() + '_label'; + var children = this._.children = []; + /** @ignore */ + var innerHTML = function() + { + var html = [], + requiredClass = elementDefinition.required ? ' cke_required' : '' ; + if ( elementDefinition.labelLayout != 'horizontal' ) + html.push( '<label class="cke_dialog_ui_labeled_label' + requiredClass + '" ', + ' id="'+ _.labelId + '"', + ( _.inputId? ' for="' + _.inputId + '"' : '' ), + ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) +'>', + elementDefinition.label, + '</label>', + '<div class="cke_dialog_ui_labeled_content"' + ( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ) + ' role="presentation">', + contentHtml.call( this, dialog, elementDefinition ), + '</div>' ); + else + { + var hboxDefinition = { + type : 'hbox', + widths : elementDefinition.widths, + padding : 0, + children : + [ + { + type : 'html', + html : '<label class="cke_dialog_ui_labeled_label' + requiredClass + '"' + + ' id="' + _.labelId + '"' + + ' for="' + _.inputId + '"' + + ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) +'>' + + CKEDITOR.tools.htmlEncode( elementDefinition.label ) + + '</span>' + }, + { + type : 'html', + html : '<span class="cke_dialog_ui_labeled_content"' + ( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ) + '>' + + contentHtml.call( this, dialog, elementDefinition ) + + '</span>' + } + ] + }; + CKEDITOR.dialog._.uiElementBuilders.hbox.build( dialog, hboxDefinition, html ); + } + return html.join( '' ); + }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'div', null, { role : 'presentation' }, innerHTML ); + }, + + /** + * A text input with a label. This UI element class represents both the + * single-line text inputs and password inputs in dialog boxes. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.labeledElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>default</strong> (Optional) The default value.</li> + * <li><strong>validate</strong> (Optional) The validation function. </li> + * <li><strong>maxLength</strong> (Optional) The maximum length of text box + * contents.</li> + * <li><strong>size</strong> (Optional) The size of the text box. This is + * usually overridden by the size defined by the skin, however.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + textInput : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + var domId = this._.inputId = CKEDITOR.tools.getNextId() + '_textInput', + attributes = { 'class' : 'cke_dialog_ui_input_' + elementDefinition.type, id : domId, type : elementDefinition.type }, + i; + + // Set the validator, if any. + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + // Set the max length and size. + if ( elementDefinition.maxLength ) + attributes.maxlength = elementDefinition.maxLength; + if ( elementDefinition.size ) + attributes.size = elementDefinition.size; + + if ( elementDefinition.inputStyle ) + attributes.style = elementDefinition.inputStyle; + + /** @ignore */ + var innerHTML = function() + { + // IE BUG: Text input fields in IE at 100% would exceed a <td> or inline + // container's width, so need to wrap it inside a <div>. + var html = [ '<div class="cke_dialog_ui_input_', elementDefinition.type, '" role="presentation"' ]; + + if ( elementDefinition.width ) + html.push( 'style="width:'+ elementDefinition.width +'" ' ); + + html.push( '><input ' ); + + attributes[ 'aria-labelledby' ] = this._.labelId; + this._.required && ( attributes[ 'aria-required' ] = this._.required ); + for ( var i in attributes ) + html.push( i + '="' + attributes[i] + '" ' ); + html.push( ' /></div>' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A text area with a label on the top or left. + * @constructor + * @extends CKEDITOR.ui.dialog.labeledElement + * @example + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>rows</strong> (Optional) The number of rows displayed. + * Defaults to 5 if not defined.</li> + * <li><strong>cols</strong> (Optional) The number of cols displayed. + * Defaults to 20 if not defined. Usually overridden by skins.</li> + * <li><strong>default</strong> (Optional) The default value.</li> + * <li><strong>validate</strong> (Optional) The validation function. </li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + textarea : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + var me = this, + domId = this._.inputId = CKEDITOR.tools.getNextId() + '_textarea', + attributes = {}; + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + // Generates the essential attributes for the textarea tag. + attributes.rows = elementDefinition.rows || 5; + attributes.cols = elementDefinition.cols || 20; + + if ( typeof elementDefinition.inputStyle != 'undefined' ) + attributes.style = elementDefinition.inputStyle; + + + /** @ignore */ + var innerHTML = function() + { + attributes[ 'aria-labelledby' ] = this._.labelId; + this._.required && ( attributes[ 'aria-required' ] = this._.required ); + var html = [ '<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea class="cke_dialog_ui_input_textarea" id="', domId, '" ' ]; + for ( var i in attributes ) + html.push( i + '="' + CKEDITOR.tools.htmlEncode( attributes[i] ) + '" ' ); + html.push( '>', CKEDITOR.tools.htmlEncode( me._['default'] ), '</textarea></div>' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A single checkbox with a label on the right. + * @constructor + * @extends CKEDITOR.ui.dialog.uiElement + * @example + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>checked</strong> (Optional) Whether the checkbox is checked + * on instantiation. Defaults to false.</li> + * <li><strong>validate</strong> (Optional) The validation function.</li> + * <li><strong>label</strong> (Optional) The checkbox label.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + checkbox : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition, { 'default' : !!elementDefinition[ 'default' ] } ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + /** @ignore */ + var innerHTML = function() + { + var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition, + { + id : elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextId() + '_checkbox' + }, true ), + html = []; + + var labelId = CKEDITOR.tools.getNextId() + '_label'; + var attributes = { 'class' : 'cke_dialog_ui_checkbox_input', type : 'checkbox', 'aria-labelledby' : labelId }; + cleanInnerDefinition( myDefinition ); + if ( elementDefinition[ 'default' ] ) + attributes.checked = 'checked'; + + if ( typeof myDefinition.inputStyle != 'undefined' ) + myDefinition.style = myDefinition.inputStyle; + + _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes ); + html.push( ' <label id="', labelId, '" for="', attributes.id, '"' + ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>', + CKEDITOR.tools.htmlEncode( elementDefinition.label ), + '</label>' ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'span', null, null, innerHTML ); + }, + + /** + * A group of radio buttons. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.labeledElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>default</strong> (Required) The default value.</li> + * <li><strong>validate</strong> (Optional) The validation function.</li> + * <li><strong>items</strong> (Required) An array of options. Each option + * is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' + * is missing, then the value would be assumed to be the same as the + * description.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + radio : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3) + return; + + initPrivateObject.call( this, elementDefinition ); + if ( !this._['default'] ) + this._['default'] = this._.initValue = elementDefinition.items[0][1]; + if ( elementDefinition.validate ) + this.validate = elementDefinition.valdiate; + var children = [], me = this; + + /** @ignore */ + var innerHTML = function() + { + var inputHtmlList = [], html = [], + commonAttributes = { 'class' : 'cke_dialog_ui_radio_item', 'aria-labelledby' : this._.labelId }, + commonName = elementDefinition.id ? elementDefinition.id + '_radio' : CKEDITOR.tools.getNextId() + '_radio'; + for ( var i = 0 ; i < elementDefinition.items.length ; i++ ) + { + var item = elementDefinition.items[i], + title = item[2] !== undefined ? item[2] : item[0], + value = item[1] !== undefined ? item[1] : item[0], + inputId = CKEDITOR.tools.getNextId() + '_radio_input', + labelId = inputId + '_label', + inputDefinition = CKEDITOR.tools.extend( {}, elementDefinition, + { + id : inputId, + title : null, + type : null + }, true ), + labelDefinition = CKEDITOR.tools.extend( {}, inputDefinition, + { + title : title + }, true ), + inputAttributes = + { + type : 'radio', + 'class' : 'cke_dialog_ui_radio_input', + name : commonName, + value : value, + 'aria-labelledby' : labelId + }, + inputHtml = []; + if ( me._['default'] == value ) + inputAttributes.checked = 'checked'; + cleanInnerDefinition( inputDefinition ); + cleanInnerDefinition( labelDefinition ); + + if ( typeof inputDefinition.inputStyle != 'undefined' ) + inputDefinition.style = inputDefinition.inputStyle; + + children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); + inputHtml.push( ' ' ); + new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtml, 'label', null, { id : labelId, 'for' : inputAttributes.id }, + item[0] ); + inputHtmlList.push( inputHtml.join( '' ) ); + } + new CKEDITOR.ui.dialog.hbox( dialog, children, inputHtmlList, html ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + this._.children = children; + }, + + /** + * A button with a label inside. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.uiElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>label</strong> (Required) The button label.</li> + * <li><strong>disabled</strong> (Optional) Set to true if you want the + * button to appear in disabled state.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + button : function( dialog, elementDefinition, htmlList ) + { + if ( !arguments.length ) + return; + + if ( typeof elementDefinition == 'function' ) + elementDefinition = elementDefinition( dialog.getParentEditor() ); + + initPrivateObject.call( this, elementDefinition, { disabled : elementDefinition.disabled || false } ); + + // Add OnClick event to this input. + CKEDITOR.event.implementOn( this ); + + var me = this; + + // Register an event handler for processing button clicks. + dialog.on( 'load', function( eventInfo ) + { + var element = this.getElement(); + + (function() + { + element.on( 'click', function( evt ) + { + me.fire( 'click', { dialog : me.getDialog() } ); + evt.data.preventDefault(); + } ); + + element.on( 'keydown', function( evt ) + { + if ( evt.data.getKeystroke() in { 32:1 } ) + { + me.click(); + evt.data.preventDefault(); + } + } ); + })(); + + element.unselectable(); + }, this ); + + var outerDefinition = CKEDITOR.tools.extend( {}, elementDefinition ); + delete outerDefinition.style; + + var labelId = CKEDITOR.tools.getNextId() + '_label'; + CKEDITOR.ui.dialog.uiElement.call( + this, + dialog, + outerDefinition, + htmlList, + 'a', + null, + { + style : elementDefinition.style, + href : 'javascript:void(0)', + title : elementDefinition.label, + hidefocus : 'true', + 'class' : elementDefinition['class'], + role : 'button', + 'aria-labelledby' : labelId + }, + '<span id="' + labelId + '" class="cke_dialog_ui_button">' + + CKEDITOR.tools.htmlEncode( elementDefinition.label ) + + '</span>' ); + }, + + /** + * A select box. + * @extends CKEDITOR.ui.dialog.uiElement + * @example + * @constructor + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>default</strong> (Required) The default value.</li> + * <li><strong>validate</strong> (Optional) The validation function.</li> + * <li><strong>items</strong> (Required) An array of options. Each option + * is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' + * is missing, then the value would be assumed to be the same as the + * description.</li> + * <li><strong>multiple</strong> (Optional) Set this to true if you'd like + * to have a multiple-choice select box.</li> + * <li><strong>size</strong> (Optional) The number of items to display in + * the select box.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + select : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + _.inputId = CKEDITOR.tools.getNextId() + '_select'; + /** @ignore */ + var innerHTML = function() + { + var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition, + { + id : elementDefinition.id ? elementDefinition.id + '_select' : CKEDITOR.tools.getNextId() + '_select' + }, true ), + html = [], + innerHTML = [], + attributes = { 'id' : _.inputId, 'class' : 'cke_dialog_ui_input_select', 'aria-labelledby' : this._.labelId }; + + // Add multiple and size attributes from element definition. + if ( elementDefinition.size != undefined ) + attributes.size = elementDefinition.size; + if ( elementDefinition.multiple != undefined ) + attributes.multiple = elementDefinition.multiple; + + cleanInnerDefinition( myDefinition ); + for ( var i = 0, item ; i < elementDefinition.items.length && ( item = elementDefinition.items[i] ) ; i++ ) + { + innerHTML.push( '<option value="', + CKEDITOR.tools.htmlEncode( item[1] !== undefined ? item[1] : item[0] ).replace( /"/g, '"' ), '" /> ', + CKEDITOR.tools.htmlEncode( item[0] ) ); + } + + if ( typeof myDefinition.inputStyle != 'undefined' ) + myDefinition.style = myDefinition.inputStyle; + + _.select = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'select', null, attributes, innerHTML.join( '' ) ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A file upload input. + * @extends CKEDITOR.ui.dialog.labeledElement + * @example + * @constructor + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>validate</strong> (Optional) The validation function.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + file : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + if ( elementDefinition['default'] === undefined ) + elementDefinition['default'] = ''; + + var _ = CKEDITOR.tools.extend( initPrivateObject.call( this, elementDefinition ), { definition : elementDefinition, buttons : [] } ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + /** @ignore */ + var innerHTML = function() + { + _.frameId = CKEDITOR.tools.getNextId() + '_fileInput'; + + // Support for custom document.domain in IE. + var isCustomDomain = CKEDITOR.env.isCustomDomain(); + + var html = [ + '<iframe' + + ' frameborder="0"' + + ' allowtransparency="0"' + + ' class="cke_dialog_ui_input_file"' + + ' role="presentation"' + + ' id="', _.frameId, '"' + + ' title="', elementDefinition.label, '"' + + ' src="javascript:void(' ]; + + html.push( + isCustomDomain ? + '(function(){' + + 'document.open();' + + 'document.domain=\'' + document.domain + '\';' + + 'document.close();' + + '})()' + : + '0' ); + + html.push( + ')">' + + '</iframe>' ); + + return html.join( '' ); + }; + + // IE BUG: Parent container does not resize to contain the iframe automatically. + dialog.on( 'load', function() + { + var iframe = CKEDITOR.document.getById( _.frameId ), + contentDiv = iframe.getParent(); + contentDiv.addClass( 'cke_dialog_ui_input_file' ); + } ); + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A button for submitting the file in a file upload input. + * @extends CKEDITOR.ui.dialog.button + * @example + * @constructor + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>for</strong> (Required) The file input's page and element Id + * to associate to, in a 2-item array format: [ 'page_id', 'element_id' ]. + * </li> + * <li><strong>validate</strong> (Optional) The validation function.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + fileButton : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ), + me = this; + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition ); + var onClick = myDefinition.onClick; + myDefinition.className = ( myDefinition.className ? myDefinition.className + ' ' : '' ) + 'cke_dialog_ui_button'; + myDefinition.onClick = function( evt ) + { + var target = elementDefinition[ 'for' ]; // [ pageId, elementId ] + if ( !onClick || onClick.call( this, evt ) !== false ) + { + dialog.getContentElement( target[0], target[1] ).submit(); + this.disable(); + } + }; + + dialog.on( 'load', function() + { + dialog.getContentElement( elementDefinition[ 'for' ][0], elementDefinition[ 'for' ][1] )._.buttons.push( me ); + } ); + + CKEDITOR.ui.dialog.button.call( this, dialog, myDefinition, htmlList ); + }, + + html : (function() + { + var myHtmlRe = /^\s*<[\w:]+\s+([^>]*)?>/, + theirHtmlRe = /^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/, + emptyTagRe = /\/$/; + /** + * A dialog element made from raw HTML code. + * @extends CKEDITOR.ui.dialog.uiElement + * @name CKEDITOR.ui.dialog.html + * @param {CKEDITOR.dialog} dialog Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition Element definition. + * Accepted fields: + * <ul> + * <li><strong>html</strong> (Required) HTML code of this element.</li> + * </ul> + * @param {Array} htmlList List of HTML code to be added to the dialog's content area. + * @example + * @constructor + */ + return function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + var myHtmlList = [], + myHtml, + theirHtml = elementDefinition.html, + myMatch, theirMatch; + + // If the HTML input doesn't contain any tags at the beginning, add a <span> tag around it. + if ( theirHtml.charAt( 0 ) != '<' ) + theirHtml = '<span>' + theirHtml + '</span>'; + + // Look for focus function in definition. + var focus = elementDefinition.focus; + if ( focus ) + { + var oldFocus = this.focus; + this.focus = function() + { + oldFocus.call( this ); + typeof focus == 'function' && focus.call( this ); + this.fire( 'focus' ); + }; + if ( elementDefinition.isFocusable ) + { + var oldIsFocusable = this.isFocusable; + this.isFocusable = oldIsFocusable; + } + this.keyboardFocusable = true; + } + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, myHtmlList, 'span', null, null, '' ); + + // Append the attributes created by the uiElement call to the real HTML. + myHtml = myHtmlList.join( '' ); + myMatch = myHtml.match( myHtmlRe ); + theirMatch = theirHtml.match( theirHtmlRe ) || [ '', '', '' ]; + + if ( emptyTagRe.test( theirMatch[1] ) ) + { + theirMatch[1] = theirMatch[1].slice( 0, -1 ); + theirMatch[2] = '/' + theirMatch[2]; + } + + htmlList.push( [ theirMatch[1], ' ', myMatch[1] || '', theirMatch[2] ].join( '' ) ); + }; + })(), + + /** + * Form fieldset for grouping dialog UI elements. + * @constructor + * @extends CKEDITOR.ui.dialog.uiElement + * @param {CKEDITOR.dialog} dialog Parent dialog object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this + * container. + * @param {Array} childHtmlList + * Array of HTML code that correspond to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList + * Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>label</strong> (Optional) The legend of the this fieldset.</li> + * <li><strong>children</strong> (Required) An array of dialog field definitions which will be grouped inside this fieldset. </li> + * </ul> + */ + fieldset : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) + { + var legendLabel = elementDefinition.label; + /** @ignore */ + var innerHTML = function() + { + var html = []; + legendLabel && html.push( '<legend' + + ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + + '>' + legendLabel + '</legend>' ); + for ( var i = 0; i < childHtmlList.length; i++ ) + html.push( childHtmlList[ i ] ); + return html.join( '' ); + }; + + this._ = { children : childObjList }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'fieldset', null, null, innerHTML ); + } + + }, true ); + + CKEDITOR.ui.dialog.html.prototype = new CKEDITOR.ui.dialog.uiElement; + + CKEDITOR.ui.dialog.labeledElement.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement, + /** @lends CKEDITOR.ui.dialog.labeledElement.prototype */ + { + /** + * Sets the label text of the element. + * @param {String} label The new label text. + * @returns {CKEDITOR.ui.dialog.labeledElement} The current labeled element. + * @example + */ + setLabel : function( label ) + { + var node = CKEDITOR.document.getById( this._.labelId ); + if ( node.getChildCount() < 1 ) + ( new CKEDITOR.dom.text( label, CKEDITOR.document ) ).appendTo( node ); + else + node.getChild( 0 ).$.nodeValue = label; + return this; + }, + + /** + * Retrieves the current label text of the elment. + * @returns {String} The current label text. + * @example + */ + getLabel : function() + { + var node = CKEDITOR.document.getById( this._.labelId ); + if ( !node || node.getChildCount() < 1 ) + return ''; + else + return node.getChild( 0 ).getText(); + }, + + /** + * Defines the onChange event for UI element definitions. + * @field + * @type Object + * @example + */ + eventProcessors : commonEventProcessors + }, true ); + + CKEDITOR.ui.dialog.button.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement, + /** @lends CKEDITOR.ui.dialog.button.prototype */ + { + /** + * Simulates a click to the button. + * @example + * @returns {Object} Return value of the 'click' event. + */ + click : function() + { + if ( !this._.disabled ) + return this.fire( 'click', { dialog : this._.dialog } ); + this.getElement().$.blur(); + return false; + }, + + /** + * Enables the button. + * @example + */ + enable : function() + { + this._.disabled = false; + var element = this.getElement(); + element && element.removeClass( 'cke_disabled' ); + }, + + /** + * Disables the button. + * @example + */ + disable : function() + { + this._.disabled = true; + this.getElement().addClass( 'cke_disabled' ); + }, + + isVisible : function() + { + return this.getElement().getFirst().isVisible(); + }, + + isEnabled : function() + { + return !this._.disabled; + }, + + /** + * Defines the onChange event and onClick for button element definitions. + * @field + * @type Object + * @example + */ + eventProcessors : CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, + { + /** @ignore */ + onClick : function( dialog, func ) + { + this.on( 'click', function() + { + // Some browsers (Chrome, IE8, IE7 compat mode) don't move + // focus to clicked button. Force this. + this.getElement().focus(); + func.apply( this, arguments ); + }); + } + }, true ), + + /** + * Handler for the element's access key up event. Simulates a click to + * the button. + * @example + */ + accessKeyUp : function() + { + this.click(); + }, + + /** + * Handler for the element's access key down event. Simulates a mouse + * down to the button. + * @example + */ + accessKeyDown : function() + { + this.focus(); + }, + + keyboardFocusable : true + }, true ); + + CKEDITOR.ui.dialog.textInput.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement, + /** @lends CKEDITOR.ui.dialog.textInput.prototype */ + { + /** + * Gets the text input DOM element under this UI object. + * @example + * @returns {CKEDITOR.dom.element} The DOM element of the text input. + */ + getInputElement : function() + { + return CKEDITOR.document.getById( this._.inputId ); + }, + + /** + * Puts focus into the text input. + * @example + */ + focus : function() + { + var me = this.selectParentTab(); + + // GECKO BUG: setTimeout() is needed to workaround invisible selections. + setTimeout( function() + { + var element = me.getInputElement(); + element && element.$.focus(); + }, 0 ); + }, + + /** + * Selects all the text in the text input. + * @example + */ + select : function() + { + var me = this.selectParentTab(); + + // GECKO BUG: setTimeout() is needed to workaround invisible selections. + setTimeout( function() + { + var e = me.getInputElement(); + if ( e ) + { + e.$.focus(); + e.$.select(); + } + }, 0 ); + }, + + /** + * Handler for the text input's access key up event. Makes a select() + * call to the text input. + * @example + */ + accessKeyUp : function() + { + this.select(); + }, + + /** + * Sets the value of this text input object. + * @param {Object} value The new value. + * @returns {CKEDITOR.ui.dialog.textInput} The current UI element. + * @example + * uiElement.setValue( 'Blamo' ); + */ + setValue : function( value ) + { + !value && ( value = '' ); + return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply( this, arguments ); + }, + + keyboardFocusable : true + }, commonPrototype, true ); + + CKEDITOR.ui.dialog.textarea.prototype = new CKEDITOR.ui.dialog.textInput(); + + CKEDITOR.ui.dialog.select.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement, + /** @lends CKEDITOR.ui.dialog.select.prototype */ + { + /** + * Gets the DOM element of the select box. + * @returns {CKEDITOR.dom.element} The <select> element of this UI + * element. + * @example + */ + getInputElement : function() + { + return this._.select.getElement(); + }, + + /** + * Adds an option to the select box. + * @param {String} label Option label. + * @param {String} value (Optional) Option value, if not defined it'll be + * assumed to be the same as the label. + * @param {Number} index (Optional) Position of the option to be inserted + * to. If not defined the new option will be inserted to the end of list. + * @example + * @returns {CKEDITOR.ui.dialog.select} The current select UI element. + */ + add : function( label, value, index ) + { + var option = new CKEDITOR.dom.element( 'option', this.getDialog().getParentEditor().document ), + selectElement = this.getInputElement().$; + option.$.text = label; + option.$.value = ( value === undefined || value === null ) ? label : value; + if ( index === undefined || index === null ) + { + if ( CKEDITOR.env.ie ) + selectElement.add( option.$ ); + else + selectElement.add( option.$, null ); + } + else + selectElement.add( option.$, index ); + return this; + }, + + /** + * Removes an option from the selection list. + * @param {Number} index Index of the option to be removed. + * @example + * @returns {CKEDITOR.ui.dialog.select} The current select UI element. + */ + remove : function( index ) + { + var selectElement = this.getInputElement().$; + selectElement.remove( index ); + return this; + }, + + /** + * Clears all options out of the selection list. + * @returns {CKEDITOR.ui.dialog.select} The current select UI element. + */ + clear : function() + { + var selectElement = this.getInputElement().$; + while ( selectElement.length > 0 ) + selectElement.remove( 0 ); + return this; + }, + + keyboardFocusable : true + }, commonPrototype, true ); + + CKEDITOR.ui.dialog.checkbox.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement, + /** @lends CKEDITOR.ui.dialog.checkbox.prototype */ + { + /** + * Gets the checkbox DOM element. + * @example + * @returns {CKEDITOR.dom.element} The DOM element of the checkbox. + */ + getInputElement : function() + { + return this._.checkbox.getElement(); + }, + + /** + * Sets the state of the checkbox. + * @example + * @param {Boolean} true to tick the checkbox, false to untick it. + * @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element. + */ + setValue : function( checked, noChangeEvent ) + { + this.getInputElement().$.checked = checked; + !noChangeEvent && this.fire( 'change', { value : checked } ); + }, + + /** + * Gets the state of the checkbox. + * @example + * @returns {Boolean} true means the checkbox is ticked, false means it's not ticked. + */ + getValue : function() + { + return this.getInputElement().$.checked; + }, + + /** + * Handler for the access key up event. Toggles the checkbox. + * @example + */ + accessKeyUp : function() + { + this.setValue( !this.getValue() ); + }, + + /** + * Defines the onChange event for UI element definitions. + * @field + * @type Object + * @example + */ + eventProcessors : + { + onChange : function( dialog, func ) + { + if ( !CKEDITOR.env.ie ) + return commonEventProcessors.onChange.apply( this, arguments ); + else + { + dialog.on( 'load', function() + { + var element = this._.checkbox.getElement(); + element.on( 'propertychange', function( evt ) + { + evt = evt.data.$; + if ( evt.propertyName == 'checked' ) + this.fire( 'change', { value : element.$.checked } ); + }, this ); + }, this ); + this.on( 'change', func ); + } + return null; + } + }, + + keyboardFocusable : true + }, commonPrototype, true ); + + CKEDITOR.ui.dialog.radio.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement, + /** @lends CKEDITOR.ui.dialog.radio.prototype */ + { + /** + * Checks one of the radio buttons in this button group. + * @example + * @param {String} value The value of the button to be chcked. + * @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element. + */ + setValue : function( value, noChangeEvent ) + { + var children = this._.children, + item; + for ( var i = 0 ; ( i < children.length ) && ( item = children[i] ) ; i++ ) + item.getElement().$.checked = ( item.getValue() == value ); + !noChangeEvent && this.fire( 'change', { value : value } ); + }, + + /** + * Gets the value of the currently checked radio button. + * @example + * @returns {String} The currently checked button's value. + */ + getValue : function() + { + var children = this._.children; + for ( var i = 0 ; i < children.length ; i++ ) + { + if ( children[i].getElement().$.checked ) + return children[i].getValue(); + } + return null; + }, + + /** + * Handler for the access key up event. Focuses the currently + * selected radio button, or the first radio button if none is + * selected. + * @example + */ + accessKeyUp : function() + { + var children = this._.children, i; + for ( i = 0 ; i < children.length ; i++ ) + { + if ( children[i].getElement().$.checked ) + { + children[i].getElement().focus(); + return; + } + } + children[0].getElement().focus(); + }, + + /** + * Defines the onChange event for UI element definitions. + * @field + * @type Object + * @example + */ + eventProcessors : + { + onChange : function( dialog, func ) + { + if ( !CKEDITOR.env.ie ) + return commonEventProcessors.onChange.apply( this, arguments ); + else + { + dialog.on( 'load', function() + { + var children = this._.children, me = this; + for ( var i = 0 ; i < children.length ; i++ ) + { + var element = children[i].getElement(); + element.on( 'propertychange', function( evt ) + { + evt = evt.data.$; + if ( evt.propertyName == 'checked' && this.$.checked ) + me.fire( 'change', { value : this.getAttribute( 'value' ) } ); + } ); + } + }, this ); + this.on( 'change', func ); + } + return null; + } + }, + + keyboardFocusable : true + }, commonPrototype, true ); + + CKEDITOR.ui.dialog.file.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement, + commonPrototype, + /** @lends CKEDITOR.ui.dialog.file.prototype */ + { + /** + * Gets the <input> element of this file input. + * @returns {CKEDITOR.dom.element} The file input element. + * @example + */ + getInputElement : function() + { + var frameDocument = CKEDITOR.document.getById( this._.frameId ).getFrameDocument(); + return frameDocument.$.forms.length > 0 ? + new CKEDITOR.dom.element( frameDocument.$.forms[0].elements[0] ) : + this.getElement(); + }, + + /** + * Uploads the file in the file input. + * @returns {CKEDITOR.ui.dialog.file} This object. + * @example + */ + submit : function() + { + this.getInputElement().getParent().$.submit(); + return this; + }, + + /** + * Get the action assigned to the form. + * @returns {String} The value of the action. + * @example + */ + getAction : function() + { + return this.getInputElement().getParent().$.action; + }, + + /** + * The events must be applied on the inner input element, and + * that must be done when the iframe & form has been loaded + */ + registerEvents : function( definition ) + { + var regex = /^on([A-Z]\w+)/, + match; + + var registerDomEvent = function( uiElement, dialog, eventName, func ) + { + uiElement.on( 'formLoaded', function() + { + uiElement.getInputElement().on( eventName, func, uiElement ); + }); + }; + + for ( var i in definition ) + { + if ( !( match = i.match( regex ) ) ) + continue; + + if ( this.eventProcessors[i] ) + this.eventProcessors[i].call( this, this._.dialog, definition[i] ); + else + registerDomEvent( this, this._.dialog, match[1].toLowerCase(), definition[i] ); + } + + return this; + }, + + /** + * Redraws the file input and resets the file path in the file input. + * The redraw logic is necessary because non-IE browsers tend to clear + * the <iframe> containing the file input after closing the dialog. + * @example + */ + reset : function() + { + var _ = this._, + frameElement = CKEDITOR.document.getById( _.frameId ), + frameDocument = frameElement.getFrameDocument(), + elementDefinition = _.definition, + buttons = _.buttons, + callNumber = this.formLoadedNumber, + unloadNumber = this.formUnloadNumber, + langDir = _.dialog._.editor.lang.dir, + langCode = _.dialog._.editor.langCode; + + // The callback function for the iframe, but we must call tools.addFunction only once + // so we store the function number in this.formLoadedNumber + if ( !callNumber ) + { + callNumber = this.formLoadedNumber = CKEDITOR.tools.addFunction( + function() + { + // Now we can apply the events to the input type=file + this.fire( 'formLoaded' ) ; + }, this ) ; + + // Remove listeners attached to the content of the iframe (the file input) + unloadNumber = this.formUnloadNumber = CKEDITOR.tools.addFunction( + function() + { + this.getInputElement().clearCustomData(); + }, this ) ; + + this.getDialog()._.editor.on( 'destroy', function() + { + CKEDITOR.tools.removeFunction( callNumber ); + CKEDITOR.tools.removeFunction( unloadNumber ); + } ); + } + + function generateFormField() + { + frameDocument.$.open(); + + // Support for custom document.domain in IE. + if ( CKEDITOR.env.isCustomDomain() ) + frameDocument.$.domain = document.domain; + + var size = ''; + if ( elementDefinition.size ) + size = elementDefinition.size - ( CKEDITOR.env.ie ? 7 : 0 ); // "Browse" button is bigger in IE. + + var inputId = _.frameId + '_input'; + + frameDocument.$.write( [ '<html dir="' + langDir + '" lang="' + langCode + '"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">', + '<form enctype="multipart/form-data" method="POST" dir="' + langDir + '" lang="' + langCode + '" action="', + CKEDITOR.tools.htmlEncode( elementDefinition.action ), + '">', + // Replicate the field label inside of iframe. + '<label id="', _.labelId, '" for="', inputId, '" style="display:none">', + CKEDITOR.tools.htmlEncode( elementDefinition.label ), + '</label>', + '<input id="', inputId, '" aria-labelledby="', _.labelId,'" type="file" name="', + CKEDITOR.tools.htmlEncode( elementDefinition.id || 'cke_upload' ), + '" size="', + CKEDITOR.tools.htmlEncode( size > 0 ? size : "" ), + '" />', + '</form>', + '</body></html>', + '<script>window.parent.CKEDITOR.tools.callFunction(' + callNumber + ');', + 'window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction(' + unloadNumber + ')}</script>' ].join( '' ) ); + + frameDocument.$.close(); + + for ( var i = 0 ; i < buttons.length ; i++ ) + buttons[i].enable(); + } + + // #3465: Wait for the browser to finish rendering the dialog first. + if ( CKEDITOR.env.gecko ) + setTimeout( generateFormField, 500 ); + else + generateFormField(); + }, + + getValue : function() + { + return this.getInputElement().$.value || ''; + }, + + /*** + * The default value of input type="file" is an empty string, but during initialization + * of this UI element, the iframe still isn't ready so it can't be read from that object + * Setting it manually prevents later issues about the current value ("") being different + * of the initial value (undefined as it asked for .value of a div) + */ + setInitValue : function() + { + this._.initValue = ''; + }, + + /** + * Defines the onChange event for UI element definitions. + * @field + * @type Object + * @example + */ + eventProcessors : + { + onChange : function( dialog, func ) + { + // If this method is called several times (I'm not sure about how this can happen but the default + // onChange processor includes this protection) + // In order to reapply to the new element, the property is deleted at the beggining of the registerEvents method + if ( !this._.domOnChangeRegistered ) + { + // By listening for the formLoaded event, this handler will get reapplied when a new + // form is created + this.on( 'formLoaded', function() + { + this.getInputElement().on( 'change', function(){ this.fire( 'change', { value : this.getValue() } ); }, this ); + }, this ); + this._.domOnChangeRegistered = true; + } + + this.on( 'change', func ); + } + }, + + keyboardFocusable : true + }, true ); + + CKEDITOR.ui.dialog.fileButton.prototype = new CKEDITOR.ui.dialog.button; + + CKEDITOR.ui.dialog.fieldset.prototype = CKEDITOR.tools.clone( CKEDITOR.ui.dialog.hbox.prototype ); + + CKEDITOR.dialog.addUIElement( 'text', textBuilder ); + CKEDITOR.dialog.addUIElement( 'password', textBuilder ); + CKEDITOR.dialog.addUIElement( 'textarea', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'checkbox', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'radio', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'button', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'select', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'file', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'fileButton', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'html', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'fieldset', containerBuilder ); +})(); + +/** + * Fired when the value of the uiElement is changed + * @name CKEDITOR.ui.dialog.uiElement#change + * @event + */ + +/** + * Fired when the inner frame created by the element is ready. + * Each time the button is used or the dialog is loaded a new + * form might be created. + * @name CKEDITOR.ui.dialog.fileButton#formLoaded + * @event + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/div/dialogs/div.js b/htdocs/includes/ckeditor/_source/plugins/div/dialogs/div.js new file mode 100644 index 0000000000000000000000000000000000000000..37e1e976f4c9116ee07d421b751ccf34bf79d799 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/div/dialogs/div.js @@ -0,0 +1,535 @@ +/* + * Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.html or http://ckeditor.com/license + */ + +(function() +{ + + /** + * Add to collection with DUP examination. + * @param {Object} collection + * @param {Object} element + * @param {Object} database + */ + function addSafely( collection, element, database ) + { + // 1. IE doesn't support customData on text nodes; + // 2. Text nodes never get chance to appear twice; + if ( !element.is || !element.getCustomData( 'block_processed' ) ) + { + element.is && CKEDITOR.dom.element.setMarker( database, element, 'block_processed', true ); + collection.push( element ); + } + } + + function getNonEmptyChildren( element ) + { + var retval = []; + var children = element.getChildren(); + for ( var i = 0 ; i < children.count() ; i++ ) + { + var child = children.getItem( i ); + if ( ! ( child.type === CKEDITOR.NODE_TEXT + && ( /^[ \t\n\r]+$/ ).test( child.getText() ) ) ) + retval.push( child ); + } + return retval; + } + + + /** + * Dialog reused by both 'creatediv' and 'editdiv' commands. + * @param {Object} editor + * @param {String} command The command name which indicate what the current command is. + */ + function divDialog( editor, command ) + { + // Definition of elements at which div operation should stopped. + var divLimitDefinition = ( function(){ + + // Customzie from specialize blockLimit elements + var definition = CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$blockLimit ); + + // Exclude 'div' itself. + delete definition.div; + + // Exclude 'td' and 'th' when 'wrapping table' + if ( editor.config.div_wrapTable ) + { + delete definition.td; + delete definition.th; + } + return definition; + })(); + + // DTD of 'div' element + var dtd = CKEDITOR.dtd.div; + + /** + * Get the first div limit element on the element's path. + * @param {Object} element + */ + function getDivLimitElement( element ) + { + var pathElements = new CKEDITOR.dom.elementPath( element ).elements; + var divLimit; + for ( var i = 0; i < pathElements.length ; i++ ) + { + if ( pathElements[ i ].getName() in divLimitDefinition ) + { + divLimit = pathElements[ i ]; + break; + } + } + return divLimit; + } + + /** + * Init all fields' setup/commit function. + * @memberof divDialog + */ + function setupFields() + { + this.foreach( function( field ) + { + // Exclude layout container elements + if ( /^(?!vbox|hbox)/.test( field.type ) ) + { + if ( !field.setup ) + { + // Read the dialog fields values from the specified + // element attributes. + field.setup = function( element ) + { + field.setValue( element.getAttribute( field.id ) || '' ); + }; + } + if ( !field.commit ) + { + // Set element attributes assigned by the dialog + // fields. + field.commit = function( element ) + { + var fieldValue = this.getValue(); + // ignore default element attribute values + if ( 'dir' == field.id && element.getComputedStyle( 'direction' ) == fieldValue ) + return; + + if ( fieldValue ) + element.setAttribute( field.id, fieldValue ); + else + element.removeAttribute( field.id ); + }; + } + } + } ); + } + + /** + * Wrapping 'div' element around appropriate blocks among the selected ranges. + * @param {Object} editor + */ + function createDiv( editor ) + { + // new adding containers OR detected pre-existed containers. + var containers = []; + // node markers store. + var database = {}; + // All block level elements which contained by the ranges. + var containedBlocks = [], block; + + // Get all ranges from the selection. + var selection = editor.document.getSelection(), + ranges = selection.getRanges(); + var bookmarks = selection.createBookmarks(); + var i, iterator; + + // Calcualte a default block tag if we need to create blocks. + var blockTag = editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p'; + + // collect all included elements from dom-iterator + for ( i = 0 ; i < ranges.length ; i++ ) + { + iterator = ranges[ i ].createIterator(); + while ( ( block = iterator.getNextParagraph() ) ) + { + // include contents of blockLimit elements. + if ( block.getName() in divLimitDefinition ) + { + var j, childNodes = block.getChildren(); + for ( j = 0 ; j < childNodes.count() ; j++ ) + addSafely( containedBlocks, childNodes.getItem( j ) , database ); + } + else + { + // Bypass dtd disallowed elements. + while ( !dtd[ block.getName() ] && block.getName() != 'body' ) + block = block.getParent(); + addSafely( containedBlocks, block, database ); + } + } + } + + CKEDITOR.dom.element.clearAllMarkers( database ); + + var blockGroups = groupByDivLimit( containedBlocks ); + var ancestor, blockEl, divElement; + + for ( i = 0 ; i < blockGroups.length ; i++ ) + { + var currentNode = blockGroups[ i ][ 0 ]; + + // Calculate the common parent node of all contained elements. + ancestor = currentNode.getParent(); + for ( j = 1 ; j < blockGroups[ i ].length; j++ ) + ancestor = ancestor.getCommonAncestor( blockGroups[ i ][ j ] ); + + divElement = new CKEDITOR.dom.element( 'div', editor.document ); + + // Normalize the blocks in each group to a common parent. + for ( j = 0; j < blockGroups[ i ].length ; j++ ) + { + currentNode = blockGroups[ i ][ j ]; + + while ( !currentNode.getParent().equals( ancestor ) ) + currentNode = currentNode.getParent(); + + // This could introduce some duplicated elements in array. + blockGroups[ i ][ j ] = currentNode; + } + + // Wrapped blocks counting + var fixedBlock = null; + for ( j = 0 ; j < blockGroups[ i ].length ; j++ ) + { + currentNode = blockGroups[ i ][ j ]; + + // Avoid DUP elements introduced by grouping. + if ( !( currentNode.getCustomData && currentNode.getCustomData( 'block_processed' ) ) ) + { + currentNode.is && CKEDITOR.dom.element.setMarker( database, currentNode, 'block_processed', true ); + + // Establish new container, wrapping all elements in this group. + if ( !j ) + divElement.insertBefore( currentNode ); + + divElement.append( currentNode ); + } + } + + CKEDITOR.dom.element.clearAllMarkers( database ); + containers.push( divElement ); + } + + selection.selectBookmarks( bookmarks ); + return containers; + } + + function getDiv( editor ) + { + var path = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() ), + blockLimit = path.blockLimit, + div = blockLimit && blockLimit.getAscendant( 'div', true ); + return div; + } + /** + * Divide a set of nodes to different groups by their path's blocklimit element. + * Note: the specified nodes should be in source order naturally, which mean they are supposed to producea by following class: + * * CKEDITOR.dom.range.Iterator + * * CKEDITOR.dom.domWalker + * @return {Array []} the grouped nodes + */ + function groupByDivLimit( nodes ) + { + var groups = [], + lastDivLimit = null, + path, block; + for ( var i = 0 ; i < nodes.length ; i++ ) + { + block = nodes[i]; + var limit = getDivLimitElement( block ); + if ( !limit.equals( lastDivLimit ) ) + { + lastDivLimit = limit ; + groups.push( [] ) ; + } + groups[ groups.length - 1 ].push( block ) ; + } + return groups; + } + + // Synchronous field values to other impacted fields is required, e.g. div styles + // change should also alter inline-style text. + function commitInternally( targetFields ) + { + var dialog = this.getDialog(), + element = dialog._element && dialog._element.clone() + || new CKEDITOR.dom.element( 'div', editor.document ); + + // Commit this field and broadcast to target fields. + this.commit( element, true ); + + targetFields = [].concat( targetFields ); + var length = targetFields.length, field; + for ( var i = 0; i < length; i++ ) + { + field = dialog.getContentElement.apply( dialog, targetFields[ i ].split( ':' ) ); + field && field.setup && field.setup( element, true ); + } + } + + + // Registered 'CKEDITOR.style' instances. + var styles = {} ; + /** + * Hold a collection of created block container elements. + */ + var containers = []; + /** + * @type divDialog + */ + return { + title : editor.lang.div.title, + minWidth : 400, + minHeight : 165, + contents : + [ + { + id :'info', + label :editor.lang.common.generalTab, + title :editor.lang.common.generalTab, + elements : + [ + { + type :'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + id :'elementStyle', + type :'select', + style :'width: 100%;', + label :editor.lang.div.styleSelectLabel, + 'default' : '', + // Options are loaded dynamically. + items : + [ + [ editor.lang.common.notSet , '' ] + ], + onChange : function() + { + commitInternally.call( this, [ 'info:class', 'advanced:dir', 'advanced:style' ] ); + }, + setup : function( element ) + { + for ( var name in styles ) + styles[ name ].checkElementRemovable( element, true ) && this.setValue( name ); + }, + commit: function( element ) + { + var styleName; + if ( ( styleName = this.getValue() ) ) + { + var style = styles[ styleName ]; + var customData = element.getCustomData( 'elementStyle' ) || ''; + + style.applyToObject( element ); + element.setCustomData( 'elementStyle', customData + style._.definition.attributes.style ); + } + } + }, + { + id :'class', + type :'text', + label :editor.lang.common.cssClass, + 'default' : '' + } + ] + } + ] + }, + { + id :'advanced', + label :editor.lang.common.advancedTab, + title :editor.lang.common.advancedTab, + elements : + [ + { + type :'vbox', + padding :1, + children : + [ + { + type :'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + type :'text', + id :'id', + label :editor.lang.common.id, + 'default' : '' + }, + { + type :'text', + id :'lang', + label :editor.lang.link.langCode, + 'default' : '' + } + ] + }, + { + type :'hbox', + children : + [ + { + type :'text', + id :'style', + style :'width: 100%;', + label :editor.lang.common.cssStyle, + 'default' : '', + commit : function( element ) + { + // Merge with 'elementStyle', which is of higher priority. + var merged = this.getValue() + ( element.getCustomData( 'elementStyle' ) || '' ); + element.setAttribute( 'style', merged ); + } + } + ] + }, + { + type :'hbox', + children : + [ + { + type :'text', + id :'title', + style :'width: 100%;', + label :editor.lang.common.advisoryTitle, + 'default' : '' + } + ] + }, + { + type :'select', + id :'dir', + style :'width: 100%;', + label :editor.lang.common.langDir, + 'default' : '', + items : + [ + [ editor.lang.common.notSet , '' ], + [ + editor.lang.common.langDirLtr, + 'ltr' + ], + [ + editor.lang.common.langDirRtl, + 'rtl' + ] + ] + } + ] + } + ] + } + ], + onLoad : function() + { + setupFields.call( this ); + + // Preparing for the 'elementStyle' field. + var dialog = this, + stylesField = this.getContentElement( 'info', 'elementStyle' ); + + // Reuse the 'stylescombo' plugin's styles definition. + editor.getStylesSet( function( stylesDefinitions ) + { + var styleName; + + if ( stylesDefinitions ) + { + // Digg only those styles that apply to 'div'. + for ( var i = 0 ; i < stylesDefinitions.length ; i++ ) + { + var styleDefinition = stylesDefinitions[ i ]; + if ( styleDefinition.element && styleDefinition.element == 'div' ) + { + styleName = styleDefinition.name; + styles[ styleName ] = new CKEDITOR.style( styleDefinition ); + + // Populate the styles field options with style name. + stylesField.items.push( [ styleName, styleName ] ); + stylesField.add( styleName, styleName ); + } + } + } + + // We should disable the content element + // it if no options are available at all. + stylesField[ stylesField.items.length > 1 ? 'enable' : 'disable' ](); + + // Now setup the field value manually. + setTimeout( function() { stylesField.setup( dialog._element ); }, 0 ); + } ); + }, + onShow : function() + { + // Whether always create new container regardless of existed + // ones. + if ( command == 'editdiv' ) + { + // Try to discover the containers that already existed in + // ranges + var div = getDiv( editor ); + // update dialog field values + div && this.setupContent( this._element = div ); + } + }, + onOk : function() + { + if ( command == 'editdiv' ) + containers = [ this._element ]; + else + containers = createDiv( editor, true ); + + // Update elements attributes + var size = containers.length; + for ( var i = 0; i < size; i++ ) + { + this.commitContent( containers[ i ] ); + + // Remove empty 'style' attribute. + !containers[ i ].getAttribute( 'style' ) && containers[ i ].removeAttribute( 'style' ); + } + + this.hide(); + }, + onHide : function() + { + // Remove style only when editing existing DIV. (#6315) + if ( command == 'editdiv' ) + this._element.removeCustomData( 'elementStyle' ); + delete this._element; + } + }; + } + + CKEDITOR.dialog.add( 'creatediv', function( editor ) + { + return divDialog( editor, 'creatediv' ); + } ); + CKEDITOR.dialog.add( 'editdiv', function( editor ) + { + return divDialog( editor, 'editdiv' ); + } ); +} )(); + +/* + * @name CKEDITOR.config.div_wrapTable + * Whether to wrap the whole table instead of indivisual cells when created 'div' in table cell. + * @type Boolean + * @default false + * @example config.div_wrapTable = true; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/div/plugin.js b/htdocs/includes/ckeditor/_source/plugins/div/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..a1caf4d51659398edcb238820a15c7edd011e59b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/div/plugin.js @@ -0,0 +1,121 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "div" plugin. It wraps the selected block level elements with a 'div' element with specified styles and attributes. + * + */ + +(function() +{ + CKEDITOR.plugins.add( 'div', + { + requires : [ 'editingblock', 'dialog', 'domiterator', 'styles' ], + + init : function( editor ) + { + var lang = editor.lang.div; + + editor.addCommand( 'creatediv', new CKEDITOR.dialogCommand( 'creatediv' ) ); + editor.addCommand( 'editdiv', new CKEDITOR.dialogCommand( 'editdiv' ) ); + editor.addCommand( 'removediv', + { + exec : function( editor ) + { + var selection = editor.getSelection(), + ranges = selection && selection.getRanges(), + range, + bookmarks = selection.createBookmarks(), + walker, + toRemove = []; + + function findDiv( node ) + { + var path = new CKEDITOR.dom.elementPath( node ), + blockLimit = path.blockLimit, + div = blockLimit.is( 'div' ) && blockLimit; + + if ( div && !div.data( 'cke-div-added' ) ) + { + toRemove.push( div ); + div.data( 'cke-div-added' ); + } + } + + for ( var i = 0 ; i < ranges.length ; i++ ) + { + range = ranges[ i ]; + if ( range.collapsed ) + findDiv( selection.getStartElement() ); + else + { + walker = new CKEDITOR.dom.walker( range ); + walker.evaluator = findDiv; + walker.lastForward(); + } + } + + for ( i = 0 ; i < toRemove.length ; i++ ) + toRemove[ i ].remove( true ); + + selection.selectBookmarks( bookmarks ); + } + } ); + + editor.ui.addButton( 'CreateDiv', + { + label : lang.toolbar, + command :'creatediv' + } ); + + if ( editor.addMenuItems ) + { + editor.addMenuItems( + { + editdiv : + { + label : lang.edit, + command : 'editdiv', + group : 'div', + order : 1 + }, + + removediv: + { + label : lang.remove, + command : 'removediv', + group : 'div', + order : 5 + } + } ); + + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element, selection ) + { + if ( !element || element.isReadOnly() ) + return null; + + var elementPath = new CKEDITOR.dom.elementPath( element ), + blockLimit = elementPath.blockLimit; + + if ( blockLimit && blockLimit.getAscendant( 'div', true ) ) + { + return { + editdiv : CKEDITOR.TRISTATE_OFF, + removediv : CKEDITOR.TRISTATE_OFF + }; + } + + return null; + } ); + } + } + + CKEDITOR.dialog.add( 'creatediv', this.path + 'dialogs/div.js' ); + CKEDITOR.dialog.add( 'editdiv', this.path + 'dialogs/div.js' ); + } + } ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/docprops/dialogs/docprops.js b/htdocs/includes/ckeditor/_source/plugins/docprops/dialogs/docprops.js new file mode 100644 index 0000000000000000000000000000000000000000..d2012aba808069b75227c71c34372bf81f6091b7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/docprops/dialogs/docprops.js @@ -0,0 +1,674 @@ +/* +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%' ); + } + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/docprops/plugin.js b/htdocs/includes/ckeditor/_source/plugins/docprops/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..b9e0315af33bff9b9f2a03d4dd141dc66378bc0e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/docprops/plugin.js @@ -0,0 +1,22 @@ +/* +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' + }); + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/domiterator/plugin.js b/htdocs/includes/ckeditor/_source/plugins/domiterator/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..f68f7c09d3533b72bba37a4f69a5364872a160c4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/domiterator/plugin.js @@ -0,0 +1,366 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file DOM iterator, which iterates over list items, lines and paragraphs. + */ + +CKEDITOR.plugins.add( 'domiterator' ); + +(function() +{ + /** + * @name CKEDITOR.dom.iterator + */ + function iterator( range ) + { + if ( arguments.length < 1 ) + return; + + this.range = range; + this.forceBrBreak = 0; + + // Whether include <br>s into the enlarged range.(#3730). + this.enlargeBr = 1; + this.enforceRealBlocks = 0; + + this._ || ( this._ = {} ); + } + + var beginWhitespaceRegex = /^[\r\n\t ]+$/, + // Ignore bookmark nodes.(#3783) + bookmarkGuard = CKEDITOR.dom.walker.bookmark( false, true ), + whitespacesGuard = CKEDITOR.dom.walker.whitespaces( true ), + skipGuard = function( node ) { return bookmarkGuard( node ) && whitespacesGuard( node ); }; + + // Get a reference for the next element, bookmark nodes are skipped. + function getNextSourceNode( node, startFromSibling, lastNode ) + { + var next = node.getNextSourceNode( startFromSibling, null, lastNode ); + while ( !bookmarkGuard( next ) ) + next = next.getNextSourceNode( startFromSibling, null, lastNode ); + return next; + } + + iterator.prototype = { + getNextParagraph : function( blockTag ) + { + // The block element to be returned. + var block; + + // The range object used to identify the paragraph contents. + var range; + + // Indicats that the current element in the loop is the last one. + var isLast; + + // Indicate at least one of the range boundaries is inside a preformat block. + var touchPre; + + // Instructs to cleanup remaining BRs. + var removePreviousBr, removeLastBr; + + // This is the first iteration. Let's initialize it. + if ( !this._.started ) + { + range = this.range.clone(); + + // Shrink the range to exclude harmful "noises" (#4087, #4450, #5435). + range.shrink( CKEDITOR.NODE_ELEMENT, true ); + + touchPre = range.endContainer.hasAscendant( 'pre', true ) + || range.startContainer.hasAscendant( 'pre', true ); + + range.enlarge( this.forceBrBreak && !touchPre || !this.enlargeBr ? + CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS : CKEDITOR.ENLARGE_BLOCK_CONTENTS ); + + if ( !range.collapsed ) + { + var walker = new CKEDITOR.dom.walker( range.clone() ), + ignoreBookmarkTextEvaluator = CKEDITOR.dom.walker.bookmark( true, true ); + // Avoid anchor inside bookmark inner text. + walker.evaluator = ignoreBookmarkTextEvaluator; + this._.nextNode = walker.next(); + // TODO: It's better to have walker.reset() used here. + walker = new CKEDITOR.dom.walker( range.clone() ); + walker.evaluator = ignoreBookmarkTextEvaluator; + var lastNode = walker.previous(); + this._.lastNode = lastNode.getNextSourceNode( true ); + + // We may have an empty text node at the end of block due to [3770]. + // If that node is the lastNode, it would cause our logic to leak to the + // next block.(#3887) + if ( this._.lastNode && + this._.lastNode.type == CKEDITOR.NODE_TEXT && + !CKEDITOR.tools.trim( this._.lastNode.getText() ) && + this._.lastNode.getParent().isBlockBoundary() ) + { + var testRange = new CKEDITOR.dom.range( range.document ); + testRange.moveToPosition( this._.lastNode, CKEDITOR.POSITION_AFTER_END ); + if ( testRange.checkEndOfBlock() ) + { + var path = new CKEDITOR.dom.elementPath( testRange.endContainer ); + var lastBlock = path.block || path.blockLimit; + this._.lastNode = lastBlock.getNextSourceNode( true ); + } + } + + // Probably the document end is reached, we need a marker node. + if ( !this._.lastNode ) + { + this._.lastNode = this._.docEndMarker = range.document.createText( '' ); + this._.lastNode.insertAfter( lastNode ); + } + + // Let's reuse this variable. + range = null; + } + + this._.started = 1; + } + + var currentNode = this._.nextNode; + lastNode = this._.lastNode; + + this._.nextNode = null; + while ( currentNode ) + { + // closeRange indicates that a paragraph boundary has been found, + // so the range can be closed. + var closeRange = 0, + parentPre = currentNode.hasAscendant( 'pre' ); + + // includeNode indicates that the current node is good to be part + // of the range. By default, any non-element node is ok for it. + var includeNode = ( currentNode.type != CKEDITOR.NODE_ELEMENT ), + continueFromSibling = 0; + + // If it is an element node, let's check if it can be part of the + // range. + if ( !includeNode ) + { + var nodeName = currentNode.getName(); + + if ( currentNode.isBlockBoundary( this.forceBrBreak && + !parentPre && { br : 1 } ) ) + { + // <br> boundaries must be part of the range. It will + // happen only if ForceBrBreak. + if ( nodeName == 'br' ) + includeNode = 1; + else if ( !range && !currentNode.getChildCount() && nodeName != 'hr' ) + { + // If we have found an empty block, and haven't started + // the range yet, it means we must return this block. + block = currentNode; + isLast = currentNode.equals( lastNode ); + break; + } + + // The range must finish right before the boundary, + // including possibly skipped empty spaces. (#1603) + if ( range ) + { + range.setEndAt( currentNode, CKEDITOR.POSITION_BEFORE_START ); + + // The found boundary must be set as the next one at this + // point. (#1717) + if ( nodeName != 'br' ) + this._.nextNode = currentNode; + } + + closeRange = 1; + } + else + { + // If we have child nodes, let's check them. + if ( currentNode.getFirst() ) + { + // If we don't have a range yet, let's start it. + if ( !range ) + { + range = new CKEDITOR.dom.range( this.range.document ); + range.setStartAt( currentNode, CKEDITOR.POSITION_BEFORE_START ); + } + + currentNode = currentNode.getFirst(); + continue; + } + includeNode = 1; + } + } + else if ( currentNode.type == CKEDITOR.NODE_TEXT ) + { + // Ignore normal whitespaces (i.e. not including or + // other unicode whitespaces) before/after a block node. + if ( beginWhitespaceRegex.test( currentNode.getText() ) ) + includeNode = 0; + } + + // The current node is good to be part of the range and we are + // starting a new range, initialize it first. + if ( includeNode && !range ) + { + range = new CKEDITOR.dom.range( this.range.document ); + range.setStartAt( currentNode, CKEDITOR.POSITION_BEFORE_START ); + } + + // The last node has been found. + isLast = ( ( !closeRange || includeNode ) && currentNode.equals( lastNode ) ); + + // If we are in an element boundary, let's check if it is time + // to close the range, otherwise we include the parent within it. + if ( range && !closeRange ) + { + while ( !currentNode.getNext( skipGuard ) && !isLast ) + { + var parentNode = currentNode.getParent(); + + if ( parentNode.isBlockBoundary( this.forceBrBreak + && !parentPre && { br : 1 } ) ) + { + closeRange = 1; + includeNode = 0; + isLast = isLast || ( parentNode.equals( lastNode) ); + // Make sure range includes bookmarks at the end of the block. (#7359) + range.setEndAt( parentNode, CKEDITOR.POSITION_BEFORE_END ); + break; + } + + currentNode = parentNode; + includeNode = 1; + isLast = ( currentNode.equals( lastNode ) ); + continueFromSibling = 1; + } + } + + // Now finally include the node. + if ( includeNode ) + range.setEndAt( currentNode, CKEDITOR.POSITION_AFTER_END ); + + currentNode = getNextSourceNode ( currentNode, continueFromSibling, lastNode ); + isLast = !currentNode; + + // We have found a block boundary. Let's close the range and move out of the + // loop. + if ( isLast || ( closeRange && range ) ) + break; + } + + // Now, based on the processed range, look for (or create) the block to be returned. + if ( !block ) + { + // If no range has been found, this is the end. + if ( !range ) + { + this._.docEndMarker && this._.docEndMarker.remove(); + this._.nextNode = null; + return null; + } + + var startPath = new CKEDITOR.dom.elementPath( range.startContainer ); + var startBlockLimit = startPath.blockLimit, + checkLimits = { div : 1, th : 1, td : 1 }; + block = startPath.block; + + if ( !block + && !this.enforceRealBlocks + && checkLimits[ startBlockLimit.getName() ] + && range.checkStartOfBlock() + && range.checkEndOfBlock() ) + block = startBlockLimit; + else if ( !block || ( this.enforceRealBlocks && block.getName() == 'li' ) ) + { + // Create the fixed block. + block = this.range.document.createElement( blockTag || 'p' ); + + // Move the contents of the temporary range to the fixed block. + range.extractContents().appendTo( block ); + block.trim(); + + // Insert the fixed block into the DOM. + range.insertNode( block ); + + removePreviousBr = removeLastBr = true; + } + else if ( block.getName() != 'li' ) + { + // If the range doesn't includes the entire contents of the + // block, we must split it, isolating the range in a dedicated + // block. + if ( !range.checkStartOfBlock() || !range.checkEndOfBlock() ) + { + // The resulting block will be a clone of the current one. + block = block.clone( false ); + + // Extract the range contents, moving it to the new block. + range.extractContents().appendTo( block ); + block.trim(); + + // Split the block. At this point, the range will be in the + // right position for our intents. + var splitInfo = range.splitBlock(); + + removePreviousBr = !splitInfo.wasStartOfBlock; + removeLastBr = !splitInfo.wasEndOfBlock; + + // Insert the new block into the DOM. + range.insertNode( block ); + } + } + else if ( !isLast ) + { + // LIs are returned as is, with all their children (due to the + // nested lists). But, the next node is the node right after + // the current range, which could be an <li> child (nested + // lists) or the next sibling <li>. + + this._.nextNode = ( block.equals( lastNode ) ? null : getNextSourceNode( range.getBoundaryNodes().endNode, 1, lastNode ) ); + } + } + + if ( removePreviousBr ) + { + var previousSibling = block.getPrevious(); + if ( previousSibling && previousSibling.type == CKEDITOR.NODE_ELEMENT ) + { + if ( previousSibling.getName() == 'br' ) + previousSibling.remove(); + else if ( previousSibling.getLast() && previousSibling.getLast().$.nodeName.toLowerCase() == 'br' ) + previousSibling.getLast().remove(); + } + } + + if ( removeLastBr ) + { + var lastChild = block.getLast(); + if ( lastChild && lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.getName() == 'br' ) + { + // Take care not to remove the block expanding <br> in non-IE browsers. + if ( CKEDITOR.env.ie + || lastChild.getPrevious( bookmarkGuard ) + || lastChild.getNext( bookmarkGuard ) ) + lastChild.remove(); + } + } + + // Get a reference for the next element. This is important because the + // above block can be removed or changed, so we can rely on it for the + // next interation. + if ( !this._.nextNode ) + { + this._.nextNode = ( isLast || block.equals( lastNode ) || !lastNode ) ? null : + getNextSourceNode( block, 1, lastNode ); + } + + return block; + } + }; + + CKEDITOR.dom.range.prototype.createIterator = function() + { + return new iterator( this ); + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/editingblock/plugin.js b/htdocs/includes/ckeditor/_source/plugins/editingblock/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..abe0b710663dc6a44a5ef904f759d2256eddc956 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/editingblock/plugin.js @@ -0,0 +1,278 @@ +/* +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. + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/elementspath/plugin.js b/htdocs/includes/ckeditor/_source/plugins/elementspath/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..1fb54350f89c76931befc792a5a0c4504b79d3c1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/elementspath/plugin.js @@ -0,0 +1,218 @@ +/* +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"> </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 + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/enterkey/plugin.js b/htdocs/includes/ckeditor/_source/plugins/enterkey/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..dac6fb293e8e6ca88a88028fbbfb0741fcc1fcf4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/enterkey/plugin.js @@ -0,0 +1,433 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + CKEDITOR.plugins.add( 'enterkey', + { + requires : [ 'keystrokes', 'indent' ], + + init : function( editor ) + { + editor.addCommand( 'enter', { + modes : { wysiwyg:1 }, + editorFocus : false, + exec : function( editor ){ enter( editor ); } + }); + + editor.addCommand( 'shiftEnter', { + modes : { wysiwyg:1 }, + editorFocus : false, + exec : function( editor ){ shiftEnter( editor ); } + }); + + var keystrokes = editor.keystrokeHandler.keystrokes; + keystrokes[ 13 ] = 'enter'; + keystrokes[ CKEDITOR.SHIFT + 13 ] = 'shiftEnter'; + } + }); + + CKEDITOR.plugins.enterkey = + { + enterBlock : function( editor, mode, range, forceMode ) + { + // Get the range for the current selection. + range = range || getRange( editor ); + + // We may not have valid ranges to work on, like when inside a + // contenteditable=false element. + if ( !range ) + return; + + var doc = range.document; + + var atBlockStart = range.checkStartOfBlock(), + atBlockEnd = range.checkEndOfBlock(), + path = new CKEDITOR.dom.elementPath( range.startContainer ), + block = path.block; + + if ( atBlockStart && atBlockEnd ) + { + // Exit the list when we're inside an empty list item block. (#5376) + if ( block && ( block.is( 'li' ) || block.getParent().is( 'li' ) ) ) + { + editor.execCommand( 'outdent' ); + return; + } + + if ( block && block.getParent().is( 'blockquote' ) ) + { + block.breakParent( block.getParent() ); + + // If we were at the start of <blockquote>, there will be an empty element before it now. + if ( !block.getPrevious().getFirst( CKEDITOR.dom.walker.invisible(1) ) ) + block.getPrevious().remove(); + + // If we were at the end of <blockquote>, there will be an empty element after it now. + if ( !block.getNext().getFirst( CKEDITOR.dom.walker.invisible(1) ) ) + block.getNext().remove(); + + range.moveToElementEditStart( block ); + range.select(); + return; + } + } + // Don't split <pre> if we're in the middle of it, act as shift enter key. + else if ( block && block.is( 'pre' ) ) + { + if ( !atBlockEnd ) + { + enterBr( editor, mode, range, forceMode ); + return; + } + } + // Don't split caption blocks. (#7944) + else if ( block && CKEDITOR.dtd.$captionBlock[ block.getName() ] ) + { + enterBr( editor, mode, range, forceMode ); + return; + } + + // Determine the block element to be used. + var blockTag = ( mode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); + + // Split the range. + var splitInfo = range.splitBlock( blockTag ); + + if ( !splitInfo ) + return; + + // Get the current blocks. + var previousBlock = splitInfo.previousBlock, + nextBlock = splitInfo.nextBlock; + + var isStartOfBlock = splitInfo.wasStartOfBlock, + isEndOfBlock = splitInfo.wasEndOfBlock; + + var node; + + // If this is a block under a list item, split it as well. (#1647) + if ( nextBlock ) + { + node = nextBlock.getParent(); + if ( node.is( 'li' ) ) + { + nextBlock.breakParent( node ); + nextBlock.move( nextBlock.getNext(), 1 ); + } + } + else if ( previousBlock && ( node = previousBlock.getParent() ) && node.is( 'li' ) ) + { + previousBlock.breakParent( node ); + node = previousBlock.getNext(); + range.moveToElementEditStart( node ); + previousBlock.move( previousBlock.getPrevious() ); + } + + // If we have both the previous and next blocks, it means that the + // boundaries were on separated blocks, or none of them where on the + // block limits (start/end). + if ( !isStartOfBlock && !isEndOfBlock ) + { + // If the next block is an <li> with another list tree as the first + // child, we'll need to append a filler (<br>/NBSP) or the list item + // wouldn't be editable. (#1420) + if ( nextBlock.is( 'li' ) + && ( node = nextBlock.getFirst( CKEDITOR.dom.walker.invisible( true ) ) ) + && node.is && node.is( 'ul', 'ol' ) ) + ( CKEDITOR.env.ie ? doc.createText( '\xa0' ) : doc.createElement( 'br' ) ).insertBefore( node ); + + // Move the selection to the end block. + if ( nextBlock ) + range.moveToElementEditStart( nextBlock ); + } + else + { + var newBlock, + newBlockDir; + + if ( previousBlock ) + { + // Do not enter this block if it's a header tag, or we are in + // a Shift+Enter (#77). Create a new block element instead + // (later in the code). + if ( previousBlock.is( 'li' ) || + ! ( headerTagRegex.test( previousBlock.getName() ) || previousBlock.is( 'pre' ) ) ) + { + // Otherwise, duplicate the previous block. + newBlock = previousBlock.clone(); + } + } + else if ( nextBlock ) + newBlock = nextBlock.clone(); + + if ( !newBlock ) + { + // We have already created a new list item. (#6849) + if ( node && node.is( 'li' ) ) + newBlock = node; + else + { + newBlock = doc.createElement( blockTag ); + if ( previousBlock && ( newBlockDir = previousBlock.getDirection() ) ) + newBlock.setAttribute( 'dir', newBlockDir ); + } + } + // Force the enter block unless we're talking of a list item. + else if ( forceMode && !newBlock.is( 'li' ) ) + newBlock.renameNode( blockTag ); + + // Recreate the inline elements tree, which was available + // before hitting enter, so the same styles will be available in + // the new block. + var elementPath = splitInfo.elementPath; + if ( elementPath ) + { + for ( var i = 0, len = elementPath.elements.length ; i < len ; i++ ) + { + var element = elementPath.elements[ i ]; + + if ( element.equals( elementPath.block ) || element.equals( elementPath.blockLimit ) ) + break; + + if ( CKEDITOR.dtd.$removeEmpty[ element.getName() ] ) + { + element = element.clone(); + newBlock.moveChildren( element ); + newBlock.append( element ); + } + } + } + + if ( !CKEDITOR.env.ie ) + newBlock.appendBogus(); + + if ( !newBlock.getParent() ) + range.insertNode( newBlock ); + + // list item start number should not be duplicated (#7330), but we need + // to remove the attribute after it's onto the DOM tree because of old IEs (#7581). + newBlock.is( 'li' ) && newBlock.removeAttribute( 'value' ); + + // This is tricky, but to make the new block visible correctly + // we must select it. + // The previousBlock check has been included because it may be + // empty if we have fixed a block-less space (like ENTER into an + // empty table cell). + if ( CKEDITOR.env.ie && isStartOfBlock && ( !isEndOfBlock || !previousBlock.getChildCount() ) ) + { + // Move the selection to the new block. + range.moveToElementEditStart( isEndOfBlock ? previousBlock : newBlock ); + range.select(); + } + + // Move the selection to the new block. + range.moveToElementEditStart( isStartOfBlock && !isEndOfBlock ? nextBlock : newBlock ); + } + + if ( !CKEDITOR.env.ie ) + { + if ( nextBlock ) + { + // If we have split the block, adds a temporary span at the + // range position and scroll relatively to it. + var tmpNode = doc.createElement( 'span' ); + + // We need some content for Safari. + tmpNode.setHtml( ' ' ); + + range.insertNode( tmpNode ); + tmpNode.scrollIntoView(); + range.deleteContents(); + } + else + { + // We may use the above scroll logic for the new block case + // too, but it gives some weird result with Opera. + newBlock.scrollIntoView(); + } + } + + range.select(); + }, + + enterBr : function( editor, mode, range, forceMode ) + { + // Get the range for the current selection. + range = range || getRange( editor ); + + // We may not have valid ranges to work on, like when inside a + // contenteditable=false element. + if ( !range ) + return; + + var doc = range.document; + + // Determine the block element to be used. + var blockTag = ( mode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); + + var isEndOfBlock = range.checkEndOfBlock(); + + var elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() ); + + var startBlock = elementPath.block, + startBlockTag = startBlock && elementPath.block.getName(); + + var isPre = false; + + if ( !forceMode && startBlockTag == 'li' ) + { + enterBlock( editor, mode, range, forceMode ); + return; + } + + // If we are at the end of a header block. + if ( !forceMode && isEndOfBlock && headerTagRegex.test( startBlockTag ) ) + { + var newBlock, + newBlockDir; + + if ( ( newBlockDir = startBlock.getDirection() ) ) + { + newBlock = doc.createElement( 'div' ); + newBlock.setAttribute( 'dir', newBlockDir ); + newBlock.insertAfter( startBlock ); + range.setStart( newBlock, 0 ); + } + else + { + // Insert a <br> after the current paragraph. + doc.createElement( 'br' ).insertAfter( startBlock ); + + // A text node is required by Gecko only to make the cursor blink. + if ( CKEDITOR.env.gecko ) + doc.createText( '' ).insertAfter( startBlock ); + + // IE has different behaviors regarding position. + range.setStartAt( startBlock.getNext(), CKEDITOR.env.ie ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_START ); + } + } + else + { + var lineBreak; + + isPre = ( startBlockTag == 'pre' ); + + // Gecko prefers <br> as line-break inside <pre> (#4711). + if ( isPre && !CKEDITOR.env.gecko ) + lineBreak = doc.createText( CKEDITOR.env.ie ? '\r' : '\n' ); + else + lineBreak = doc.createElement( 'br' ); + + range.deleteContents(); + range.insertNode( lineBreak ); + + // IE has different behavior regarding position. + if ( CKEDITOR.env.ie ) + range.setStartAt( lineBreak, CKEDITOR.POSITION_AFTER_END ); + else + { + // A text node is required by Gecko only to make the cursor blink. + // We need some text inside of it, so the bogus <br> is properly + // created. + doc.createText( '\ufeff' ).insertAfter( lineBreak ); + + // If we are at the end of a block, we must be sure the bogus node is available in that block. + if ( isEndOfBlock ) + lineBreak.getParent().appendBogus(); + + // Now we can remove the text node contents, so the caret doesn't + // stop on it. + lineBreak.getNext().$.nodeValue = ''; + + range.setStartAt( lineBreak.getNext(), CKEDITOR.POSITION_AFTER_START ); + + // Scroll into view, for non IE. + var dummy = null; + + // BR is not positioned in Opera and Webkit. + if ( !CKEDITOR.env.gecko ) + { + dummy = doc.createElement( 'span' ); + // We need have some contents for Webkit to position it + // under parent node. ( #3681) + dummy.setHtml(' '); + } + else + dummy = doc.createElement( 'br' ); + + dummy.insertBefore( lineBreak.getNext() ); + dummy.scrollIntoView(); + dummy.remove(); + } + } + + // This collapse guarantees the cursor will be blinking. + range.collapse( true ); + + range.select( isPre ); + } + }; + + var plugin = CKEDITOR.plugins.enterkey, + enterBr = plugin.enterBr, + enterBlock = plugin.enterBlock, + headerTagRegex = /^h[1-6]$/; + + function shiftEnter( editor ) + { + // Only effective within document. + if ( editor.mode != 'wysiwyg' ) + return false; + + // On SHIFT+ENTER: + // 1. We want to enforce the mode to be respected, instead + // of cloning the current block. (#77) + return enter( editor, editor.config.shiftEnterMode, 1 ); + } + + function enter( editor, mode, forceMode ) + { + forceMode = editor.config.forceEnterMode || forceMode; + + // Only effective within document. + if ( editor.mode != 'wysiwyg' ) + return false; + + if ( !mode ) + mode = editor.config.enterMode; + + // Use setTimout so the keys get cancelled immediatelly. + setTimeout( function() + { + editor.fire( 'saveSnapshot' ); // Save undo step. + + if ( mode == CKEDITOR.ENTER_BR ) + enterBr( editor, mode, null, forceMode ); + else + enterBlock( editor, mode, null, forceMode ); + + editor.fire( 'saveSnapshot' ); + + }, 0 ); + + return true; + } + + function getRange( editor ) + { + // Get the selection ranges. + var ranges = editor.getSelection().getRanges( true ); + + // Delete the contents of all ranges except the first one. + for ( var i = ranges.length - 1 ; i > 0 ; i-- ) + { + ranges[ i ].deleteContents(); + } + + // Return the first range. + return ranges[ 0 ]; + } +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/entities/plugin.js b/htdocs/includes/ckeditor/_source/plugins/entities/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..5729831f31f2483ab83822ccf6cef32a14d52a2b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/entities/plugin.js @@ -0,0 +1,254 @@ +/* +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. 1, ISO 8859-1) + * to HTML entities. The list of entities can be found in the + * <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.2.1">W3C HTML 4.01 Specification, section 24.2.1</a>. + * @name CKEDITOR.config.entities_latin + * @type Boolean + * @default <code>true</code> + * @example + * config.entities_latin = false; + */ +CKEDITOR.config.entities_latin = true; + +/** + * Whether to convert some symbols, mathematical symbols, and Greek letters to + * HTML entities. This may be more relevant for users typing text written in Greek. + * The list of entities can be found in the + * <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.3.1">W3C HTML 4.01 Specification, section 24.3.1</a>. + * @name CKEDITOR.config.entities_greek + * @type Boolean + * @default <code>true</code> + * @example + * config.entities_greek = false; + */ +CKEDITOR.config.entities_greek = true; + +/** + * Whether to convert all remaining characters not included in the ASCII + * character table to their relative decimal numeric representation of HTML entity. + * When set to <code>force</code>, it will convert all entities into this format. + * For example the phrase "This is Chinese: 汉语." is output + * as "This is Chinese: &#27721;&#35821;." + * @name CKEDITOR.config.entities_processNumerical + * @type Boolean|String + * @default <code>false</code> + * @example + * config.entities_processNumerical = true; + * config.entities_processNumerical = 'force'; //Converts from " " into " "; + */ + +/** + * A comma separated list of additional entities to be used. Entity names + * or numbers must be used in a form that excludes the "&" prefix and the ";" ending. + * @name CKEDITOR.config.entities_additional + * @default <code>'#39'</code> (The single quote (') character.) + * @type String + * @example + * config.entities_additional = '#1049'; // Adds Cyrillic capital letter Short I (Й). + */ +CKEDITOR.config.entities_additional = '#39'; diff --git a/htdocs/includes/ckeditor/_source/plugins/fakeobjects/plugin.js b/htdocs/includes/ckeditor/_source/plugins/fakeobjects/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..5da98a1fd333d7b49764cfed380f33d4b1be5cc5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/fakeobjects/plugin.js @@ -0,0 +1,181 @@ +/* +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; + }; + +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/filebrowser/plugin.js b/htdocs/includes/ckeditor/_source/plugins/filebrowser/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..d35432741f11d9045906d237b31e6de795fa4d5b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/filebrowser/plugin.js @@ -0,0 +1,533 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "filebrowser" plugin that adds support for file uploads and + * browsing. + * + * When a file is uploaded or selected inside the file browser, its URL is + * inserted automatically into a field defined in the <code>filebrowser</code> + * attribute. In order to specify a field that should be updated, pass the tab ID and + * the element ID, separated with a colon.<br /><br /> + * + * <strong>Example 1: (Browse)</strong> + * + * <pre> + * { + * type : 'button', + * id : 'browse', + * filebrowser : 'tabId:elementId', + * label : editor.lang.common.browseServer + * } + * </pre> + * + * If you set the <code>filebrowser</code> attribute for an element other than + * the <code>fileButton</code>, the <code>Browse</code> action will be triggered.<br /><br /> + * + * <strong>Example 2: (Quick Upload)</strong> + * + * <pre> + * { + * type : 'fileButton', + * id : 'uploadButton', + * filebrowser : 'tabId:elementId', + * label : editor.lang.common.uploadSubmit, + * 'for' : [ 'upload', 'upload' ] + * } + * </pre> + * + * If you set the <code>filebrowser</code> attribute for a <code>fileButton</code> + * element, the <code>QuickUpload</code> action will be executed.<br /><br /> + * + * The filebrowser plugin also supports more advanced configuration performed through + * a JavaScript object. + * + * The following settings are supported: + * + * <ul> + * <li><code>action</code> – <code>Browse</code> or <code>QuickUpload</code>.</li> + * <li><code>target</code> – the field to update in the <code><em>tabId:elementId</em></code> format.</li> + * <li><code>params</code> – additional arguments to be passed to the server connector (optional).</li> + * <li><code>onSelect</code> – a function to execute when the file is selected/uploaded (optional).</li> + * <li><code>url</code> – the URL to be called (optional).</li> + * </ul> + * + * <strong>Example 3: (Quick Upload)</strong> + * + * <pre> + * { + * type : 'fileButton', + * label : editor.lang.common.uploadSubmit, + * id : 'buttonId', + * filebrowser : + * { + * action : 'QuickUpload', // required + * target : 'tab1:elementId', // required + * params : // optional + * { + * type : 'Files', + * currentFolder : '/folder/' + * }, + * onSelect : function( fileUrl, errorMessage ) // optional + * { + * // Do not call the built-in selectFuntion. + * // return false; + * } + * }, + * 'for' : [ 'tab1', 'myFile' ] + * } + * </pre> + * + * Suppose you have a file element with an ID of <code>myFile</code>, a text + * field with an ID of <code>elementId</code> and a <code>fileButton</code>. + * If the <code>filebowser.url</code> attribute is not specified explicitly, + * the form action will be set to <code>filebrowser[<em>DialogWindowName</em>]UploadUrl</code> + * or, if not specified, to <code>filebrowserUploadUrl</code>. Additional parameters + * from the <code>params</code> object will be added to the query string. It is + * possible to create your own <code>uploadHandler</code> and cancel the built-in + * <code>updateTargetElement</code> command.<br /><br /> + * + * <strong>Example 4: (Browse)</strong> + * + * <pre> + * { + * type : 'button', + * id : 'buttonId', + * label : editor.lang.common.browseServer, + * filebrowser : + * { + * action : 'Browse', + * url : '/ckfinder/ckfinder.html&type=Images', + * target : 'tab1:elementId' + * } + * } + * </pre> + * + * In this example, when the button is pressed, the file browser will be opened in a + * popup window. If you do not specify the <code>filebrowser.url</code> attribute, + * <code>filebrowser[<em>DialogName</em>]BrowseUrl</code> or + * <code>filebrowserBrowseUrl</code> will be used. After selecting a file in the file + * browser, an element with an ID of <code>elementId</code> will be updated. Just + * like in the third example, a custom <code>onSelect</code> function may be defined. + */ +( function() +{ + /* + * Adds (additional) arguments to given url. + * + * @param {String} + * url The url. + * @param {Object} + * params Additional parameters. + */ + function addQueryString( url, params ) + { + var queryString = []; + + if ( !params ) + return url; + else + { + for ( var i in params ) + queryString.push( i + "=" + encodeURIComponent( params[ i ] ) ); + } + + return url + ( ( url.indexOf( "?" ) != -1 ) ? "&" : "?" ) + queryString.join( "&" ); + } + + /* + * Make a string's first character uppercase. + * + * @param {String} + * str String. + */ + function ucFirst( str ) + { + str += ''; + var f = str.charAt( 0 ).toUpperCase(); + return f + str.substr( 1 ); + } + + /* + * The onlick function assigned to the 'Browse Server' button. Opens the + * file browser and updates target field when file is selected. + * + * @param {CKEDITOR.event} + * evt The event object. + */ + function browseServer( evt ) + { + var dialog = this.getDialog(); + var editor = dialog.getParentEditor(); + + editor._.filebrowserSe = this; + + var width = editor.config[ 'filebrowser' + ucFirst( dialog.getName() ) + 'WindowWidth' ] + || editor.config.filebrowserWindowWidth || '80%'; + var height = editor.config[ 'filebrowser' + ucFirst( dialog.getName() ) + 'WindowHeight' ] + || editor.config.filebrowserWindowHeight || '70%'; + + var params = this.filebrowser.params || {}; + params.CKEditor = editor.name; + params.CKEditorFuncNum = editor._.filebrowserFn; + if ( !params.langCode ) + params.langCode = editor.langCode; + + var url = addQueryString( this.filebrowser.url, params ); + // TODO: V4: Remove backward compatibility (#8163). + editor.popup( url, width, height, editor.config.filebrowserWindowFeatures || editor.config.fileBrowserWindowFeatures ); + } + + /* + * The onlick function assigned to the 'Upload' button. Makes the final + * decision whether form is really submitted and updates target field when + * file is uploaded. + * + * @param {CKEDITOR.event} + * evt The event object. + */ + function uploadFile( evt ) + { + var dialog = this.getDialog(); + var editor = dialog.getParentEditor(); + + editor._.filebrowserSe = this; + + // If user didn't select the file, stop the upload. + if ( !dialog.getContentElement( this[ 'for' ][ 0 ], this[ 'for' ][ 1 ] ).getInputElement().$.value ) + return false; + + if ( !dialog.getContentElement( this[ 'for' ][ 0 ], this[ 'for' ][ 1 ] ).getAction() ) + return false; + + return true; + } + + /* + * Setups the file element. + * + * @param {CKEDITOR.ui.dialog.file} + * fileInput The file element used during file upload. + * @param {Object} + * filebrowser Object containing filebrowser settings assigned to + * the fileButton associated with this file element. + */ + function setupFileElement( editor, fileInput, filebrowser ) + { + var params = filebrowser.params || {}; + params.CKEditor = editor.name; + params.CKEditorFuncNum = editor._.filebrowserFn; + if ( !params.langCode ) + params.langCode = editor.langCode; + + fileInput.action = addQueryString( filebrowser.url, params ); + fileInput.filebrowser = filebrowser; + } + + /* + * Traverse through the content definition and attach filebrowser to + * elements with 'filebrowser' attribute. + * + * @param String + * dialogName Dialog name. + * @param {CKEDITOR.dialog.definitionObject} + * definition Dialog definition. + * @param {Array} + * elements Array of {@link CKEDITOR.dialog.definition.content} + * objects. + */ + function attachFileBrowser( editor, dialogName, definition, elements ) + { + var element, fileInput; + + for ( var i in elements ) + { + element = elements[ i ]; + + if ( element.type == 'hbox' || element.type == 'vbox' || element.type == 'fieldset' ) + attachFileBrowser( editor, dialogName, definition, element.children ); + + if ( !element.filebrowser ) + continue; + + if ( typeof element.filebrowser == 'string' ) + { + var fb = + { + action : ( element.type == 'fileButton' ) ? 'QuickUpload' : 'Browse', + target : element.filebrowser + }; + element.filebrowser = fb; + } + + if ( element.filebrowser.action == 'Browse' ) + { + var url = element.filebrowser.url; + if ( url === undefined ) + { + url = editor.config[ 'filebrowser' + ucFirst( dialogName ) + 'BrowseUrl' ]; + if ( url === undefined ) + url = editor.config.filebrowserBrowseUrl; + } + + if ( url ) + { + element.onClick = browseServer; + element.filebrowser.url = url; + element.hidden = false; + } + } + else if ( element.filebrowser.action == 'QuickUpload' && element[ 'for' ] ) + { + url = element.filebrowser.url; + if ( url === undefined ) + { + url = editor.config[ 'filebrowser' + ucFirst( dialogName ) + 'UploadUrl' ]; + if ( url === undefined ) + url = editor.config.filebrowserUploadUrl; + } + + if ( url ) + { + var onClick = element.onClick; + element.onClick = function( evt ) + { + // "element" here means the definition object, so we need to find the correct + // button to scope the event call + var sender = evt.sender; + if ( onClick && onClick.call( sender, evt ) === false ) + return false; + + return uploadFile.call( sender, evt ); + }; + + element.filebrowser.url = url; + element.hidden = false; + setupFileElement( editor, definition.getContents( element[ 'for' ][ 0 ] ).get( element[ 'for' ][ 1 ] ), element.filebrowser ); + } + } + } + } + + /* + * Updates the target element with the url of uploaded/selected file. + * + * @param {String} + * url The url of a file. + */ + function updateTargetElement( url, sourceElement ) + { + var dialog = sourceElement.getDialog(); + var targetElement = sourceElement.filebrowser.target || null; + + // If there is a reference to targetElement, update it. + if ( targetElement ) + { + var target = targetElement.split( ':' ); + var element = dialog.getContentElement( target[ 0 ], target[ 1 ] ); + if ( element ) + { + element.setValue( url ); + dialog.selectPage( target[ 0 ] ); + } + } + } + + /* + * Returns true if filebrowser is configured in one of the elements. + * + * @param {CKEDITOR.dialog.definitionObject} + * definition Dialog definition. + * @param String + * tabId The tab id where element(s) can be found. + * @param String + * elementId The element id (or ids, separated with a semicolon) to check. + */ + function isConfigured( definition, tabId, elementId ) + { + if ( elementId.indexOf( ";" ) !== -1 ) + { + var ids = elementId.split( ";" ); + for ( var i = 0 ; i < ids.length ; i++ ) + { + if ( isConfigured( definition, tabId, ids[i] ) ) + return true; + } + return false; + } + + var elementFileBrowser = definition.getContents( tabId ).get( elementId ).filebrowser; + return ( elementFileBrowser && elementFileBrowser.url ); + } + + function setUrl( fileUrl, data ) + { + var dialog = this._.filebrowserSe.getDialog(), + targetInput = this._.filebrowserSe[ 'for' ], + onSelect = this._.filebrowserSe.filebrowser.onSelect; + + if ( targetInput ) + dialog.getContentElement( targetInput[ 0 ], targetInput[ 1 ] ).reset(); + + if ( typeof data == 'function' && data.call( this._.filebrowserSe ) === false ) + return; + + if ( onSelect && onSelect.call( this._.filebrowserSe, fileUrl, data ) === false ) + return; + + // The "data" argument may be used to pass the error message to the editor. + if ( typeof data == 'string' && data ) + alert( data ); + + if ( fileUrl ) + updateTargetElement( fileUrl, this._.filebrowserSe ); + } + + CKEDITOR.plugins.add( 'filebrowser', + { + init : function( editor, pluginPath ) + { + editor._.filebrowserFn = CKEDITOR.tools.addFunction( setUrl, editor ); + editor.on( 'destroy', function () { CKEDITOR.tools.removeFunction( this._.filebrowserFn ); } ); + } + } ); + + CKEDITOR.on( 'dialogDefinition', function( evt ) + { + var definition = evt.data.definition, + element; + // Associate filebrowser to elements with 'filebrowser' attribute. + for ( var i in definition.contents ) + { + if ( ( element = definition.contents[ i ] ) ) + { + attachFileBrowser( evt.editor, evt.data.name, definition, element.elements ); + if ( element.hidden && element.filebrowser ) + { + element.hidden = !isConfigured( definition, element[ 'id' ], element.filebrowser ); + } + } + } + } ); + +} )(); + +/** + * The location of an external file browser that should be launched when the <strong>Browse Server</strong> + * button is pressed. If configured, the <strong>Browse Server</strong> button will appear in the + * <strong>Link</strong>, <strong>Image</strong>, and <strong>Flash</strong> dialog windows. + * @see The <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)">File Browser/Uploader</a> documentation. + * @name CKEDITOR.config.filebrowserBrowseUrl + * @since 3.0 + * @type String + * @default <code>''</code> (empty string = disabled) + * @example + * config.filebrowserBrowseUrl = '/browser/browse.php'; + */ + +/** + * The location of the script that handles file uploads. + * If set, the <strong>Upload</strong> tab will appear in the <strong>Link</strong>, <strong>Image</strong>, + * and <strong>Flash</strong> dialog windows. + * @name CKEDITOR.config.filebrowserUploadUrl + * @see The <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)">File Browser/Uploader</a> documentation. + * @since 3.0 + * @type String + * @default <code>''</code> (empty string = disabled) + * @example + * config.filebrowserUploadUrl = '/uploader/upload.php'; + */ + +/** + * The location of an external file browser that should be launched when the <strong>Browse Server</strong> + * button is pressed in the <strong>Image</strong> dialog window. + * If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserBrowseUrl}</code>. + * @name CKEDITOR.config.filebrowserImageBrowseUrl + * @since 3.0 + * @type String + * @default <code>''</code> (empty string = disabled) + * @example + * config.filebrowserImageBrowseUrl = '/browser/browse.php?type=Images'; + */ + +/** + * The location of an external file browser that should be launched when the <strong>Browse Server</strong> + * button is pressed in the <strong>Flash</strong> dialog window. + * If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserBrowseUrl}</code>. + * @name CKEDITOR.config.filebrowserFlashBrowseUrl + * @since 3.0 + * @type String + * @default <code>''</code> (empty string = disabled) + * @example + * config.filebrowserFlashBrowseUrl = '/browser/browse.php?type=Flash'; + */ + +/** + * The location of the script that handles file uploads in the <strong>Image</strong> dialog window. + * If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserUploadUrl}</code>. + * @name CKEDITOR.config.filebrowserImageUploadUrl + * @since 3.0 + * @type String + * @default <code>''</code> (empty string = disabled) + * @example + * config.filebrowserImageUploadUrl = '/uploader/upload.php?type=Images'; + */ + +/** + * The location of the script that handles file uploads in the <strong>Flash</strong> dialog window. + * If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserUploadUrl}</code>. + * @name CKEDITOR.config.filebrowserFlashUploadUrl + * @since 3.0 + * @type String + * @default <code>''</code> (empty string = disabled) + * @example + * config.filebrowserFlashUploadUrl = '/uploader/upload.php?type=Flash'; + */ + +/** + * The location of an external file browser that should be launched when the <strong>Browse Server</strong> + * button is pressed in the <strong>Link</strong> tab of the <strong>Image</strong> dialog window. + * If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserBrowseUrl}</code>. + * @name CKEDITOR.config.filebrowserImageBrowseLinkUrl + * @since 3.2 + * @type String + * @default <code>''</code> (empty string = disabled) + * @example + * config.filebrowserImageBrowseLinkUrl = '/browser/browse.php'; + */ + +/** + * The features to use in the file browser popup window. + * @name CKEDITOR.config.filebrowserWindowFeatures + * @since 3.4.1 + * @type String + * @default <code>'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes'</code> + * @example + * config.filebrowserWindowFeatures = 'resizable=yes,scrollbars=no'; + */ + +/** + * The width of the file browser popup window. It can be a number denoting a value in + * pixels or a percent string. + * @name CKEDITOR.config.filebrowserWindowWidth + * @type Number|String + * @default <code>'80%'</code> + * @example + * config.filebrowserWindowWidth = 750; + * @example + * config.filebrowserWindowWidth = '50%'; + */ + +/** + * The height of the file browser popup window. It can be a number denoting a value in + * pixels or a percent string. + * @name CKEDITOR.config.filebrowserWindowHeight + * @type Number|String + * @default <code>'70%'</code> + * @example + * config.filebrowserWindowHeight = 580; + * @example + * config.filebrowserWindowHeight = '50%'; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/find/dialogs/find.js b/htdocs/includes/ckeditor/_source/plugins/find/dialogs/find.js new file mode 100644 index 0000000000000000000000000000000000000000..5f8c34214a2c11e7f2bab3f90692fddc2ff927f5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/find/dialogs/find.js @@ -0,0 +1,922 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var isReplace; + + function findEvaluator( node ) + { + return node.type == CKEDITOR.NODE_TEXT && node.getLength() > 0 && ( !isReplace || !node.isReadOnly() ); + } + + /** + * Elements which break characters been considered as sequence. + */ + function nonCharactersBoundary( node ) + { + return !( node.type == CKEDITOR.NODE_ELEMENT && node.isBlockBoundary( + CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$empty, CKEDITOR.dtd.$nonEditable ) ) ); + } + + /** + * Get the cursor object which represent both current character and it's dom + * position thing. + */ + var cursorStep = function() + { + return { + textNode : this.textNode, + offset : this.offset, + character : this.textNode ? + this.textNode.getText().charAt( this.offset ) : null, + hitMatchBoundary : this._.matchBoundary + }; + }; + + var pages = [ 'find', 'replace' ], + fieldsMapping = [ + [ 'txtFindFind', 'txtFindReplace' ], + [ 'txtFindCaseChk', 'txtReplaceCaseChk' ], + [ 'txtFindWordChk', 'txtReplaceWordChk' ], + [ 'txtFindCyclic', 'txtReplaceCyclic' ] ]; + + /** + * Synchronize corresponding filed values between 'replace' and 'find' pages. + * @param {String} currentPageId The page id which receive values. + */ + function syncFieldsBetweenTabs( currentPageId ) + { + var sourceIndex, targetIndex, + sourceField, targetField; + + sourceIndex = currentPageId === 'find' ? 1 : 0; + targetIndex = 1 - sourceIndex; + var i, l = fieldsMapping.length; + for ( i = 0 ; i < l ; i++ ) + { + sourceField = this.getContentElement( pages[ sourceIndex ], + fieldsMapping[ i ][ sourceIndex ] ); + targetField = this.getContentElement( pages[ targetIndex ], + fieldsMapping[ i ][ targetIndex ] ); + + targetField.setValue( sourceField.getValue() ); + } + } + + var findDialog = function( editor, startupPage ) + { + // Style object for highlights: (#5018) + // 1. Defined as full match style to avoid compromising ordinary text color styles. + // 2. Must be apply onto inner-most text to avoid conflicting with ordinary text color styles visually. + var highlightStyle = new CKEDITOR.style( + CKEDITOR.tools.extend( { attributes : { 'data-cke-highlight': 1 }, fullMatch : 1, ignoreReadonly : 1, childRule : function(){ return 0; } }, + editor.config.find_highlight, true ) ); + + /** + * Iterator which walk through the specified range char by char. By + * default the walking will not stop at the character boundaries, until + * the end of the range is encountered. + * @param { CKEDITOR.dom.range } range + * @param {Boolean} matchWord Whether the walking will stop at character boundary. + */ + var characterWalker = function( range , matchWord ) + { + var self = this; + var walker = + new CKEDITOR.dom.walker( range ); + walker.guard = matchWord ? nonCharactersBoundary : function( node ) + { + !nonCharactersBoundary( node ) && ( self._.matchBoundary = true ); + }; + walker[ 'evaluator' ] = findEvaluator; + walker.breakOnFalse = 1; + + if ( range.startContainer.type == CKEDITOR.NODE_TEXT ) + { + this.textNode = range.startContainer; + this.offset = range.startOffset - 1; + } + + this._ = { + matchWord : matchWord, + walker : walker, + matchBoundary : false + }; + }; + + characterWalker.prototype = { + next : function() + { + return this.move(); + }, + + back : function() + { + return this.move( true ); + }, + + move : function( rtl ) + { + var currentTextNode = this.textNode; + // Already at the end of document, no more character available. + if ( currentTextNode === null ) + return cursorStep.call( this ); + + this._.matchBoundary = false; + + // There are more characters in the text node, step forward. + if ( currentTextNode + && rtl + && this.offset > 0 ) + { + this.offset--; + return cursorStep.call( this ); + } + else if ( currentTextNode + && this.offset < currentTextNode.getLength() - 1 ) + { + this.offset++; + return cursorStep.call( this ); + } + else + { + currentTextNode = null; + // At the end of the text node, walking foward for the next. + while ( !currentTextNode ) + { + currentTextNode = + this._.walker[ rtl ? 'previous' : 'next' ].call( this._.walker ); + + // Stop searching if we're need full word match OR + // already reach document end. + if ( this._.matchWord && !currentTextNode + || this._.walker._.end ) + break; + } + // Found a fresh text node. + this.textNode = currentTextNode; + if ( currentTextNode ) + this.offset = rtl ? currentTextNode.getLength() - 1 : 0; + else + this.offset = 0; + } + + return cursorStep.call( this ); + } + + }; + + /** + * A range of cursors which represent a trunk of characters which try to + * match, it has the same length as the pattern string. + */ + var characterRange = function( characterWalker, rangeLength ) + { + this._ = { + walker : characterWalker, + cursors : [], + rangeLength : rangeLength, + highlightRange : null, + isMatched : 0 + }; + }; + + characterRange.prototype = { + /** + * Translate this range to {@link CKEDITOR.dom.range} + */ + toDomRange : function() + { + var range = new CKEDITOR.dom.range( editor.document ); + var cursors = this._.cursors; + if ( cursors.length < 1 ) + { + var textNode = this._.walker.textNode; + if ( textNode ) + range.setStartAfter( textNode ); + else + return null; + } + else + { + var first = cursors[0], + last = cursors[ cursors.length - 1 ]; + + range.setStart( first.textNode, first.offset ); + range.setEnd( last.textNode, last.offset + 1 ); + } + + return range; + }, + /** + * Reflect the latest changes from dom range. + */ + updateFromDomRange : function( domRange ) + { + var cursor, + walker = new characterWalker( domRange ); + this._.cursors = []; + do + { + cursor = walker.next(); + if ( cursor.character ) + this._.cursors.push( cursor ); + } + while ( cursor.character ); + this._.rangeLength = this._.cursors.length; + }, + + setMatched : function() + { + this._.isMatched = true; + }, + + clearMatched : function() + { + this._.isMatched = false; + }, + + isMatched : function() + { + return this._.isMatched; + }, + + /** + * Hightlight the current matched chunk of text. + */ + highlight : function() + { + // Do not apply if nothing is found. + if ( this._.cursors.length < 1 ) + return; + + // Remove the previous highlight if there's one. + if ( this._.highlightRange ) + this.removeHighlight(); + + // Apply the highlight. + var range = this.toDomRange(), + bookmark = range.createBookmark(); + highlightStyle.applyToRange( range ); + range.moveToBookmark( bookmark ); + this._.highlightRange = range; + + // Scroll the editor to the highlighted area. + var element = range.startContainer; + if ( element.type != CKEDITOR.NODE_ELEMENT ) + element = element.getParent(); + element.scrollIntoView(); + + // Update the character cursors. + this.updateFromDomRange( range ); + }, + + /** + * Remove highlighted find result. + */ + removeHighlight : function() + { + if ( !this._.highlightRange ) + return; + + var bookmark = this._.highlightRange.createBookmark(); + highlightStyle.removeFromRange( this._.highlightRange ); + this._.highlightRange.moveToBookmark( bookmark ); + this.updateFromDomRange( this._.highlightRange ); + this._.highlightRange = null; + }, + + isReadOnly : function() + { + if ( !this._.highlightRange ) + return 0; + + return this._.highlightRange.startContainer.isReadOnly(); + }, + + moveBack : function() + { + var retval = this._.walker.back(), + cursors = this._.cursors; + + if ( retval.hitMatchBoundary ) + this._.cursors = cursors = []; + + cursors.unshift( retval ); + if ( cursors.length > this._.rangeLength ) + cursors.pop(); + + return retval; + }, + + moveNext : function() + { + var retval = this._.walker.next(), + cursors = this._.cursors; + + // Clear the cursors queue if we've crossed a match boundary. + if ( retval.hitMatchBoundary ) + this._.cursors = cursors = []; + + cursors.push( retval ); + if ( cursors.length > this._.rangeLength ) + cursors.shift(); + + return retval; + }, + + getEndCharacter : function() + { + var cursors = this._.cursors; + if ( cursors.length < 1 ) + return null; + + return cursors[ cursors.length - 1 ].character; + }, + + getNextCharacterRange : function( maxLength ) + { + var lastCursor, + nextRangeWalker, + cursors = this._.cursors; + + if ( ( lastCursor = cursors[ cursors.length - 1 ] ) && lastCursor.textNode ) + nextRangeWalker = new characterWalker( getRangeAfterCursor( lastCursor ) ); + // In case it's an empty range (no cursors), figure out next range from walker (#4951). + else + nextRangeWalker = this._.walker; + + return new characterRange( nextRangeWalker, maxLength ); + }, + + getCursors : function() + { + return this._.cursors; + } + }; + + + // The remaining document range after the character cursor. + function getRangeAfterCursor( cursor , inclusive ) + { + var range = new CKEDITOR.dom.range(); + range.setStart( cursor.textNode, + ( inclusive ? cursor.offset : cursor.offset + 1 ) ); + range.setEndAt( editor.document.getBody(), + CKEDITOR.POSITION_BEFORE_END ); + return range; + } + + // The document range before the character cursor. + function getRangeBeforeCursor( cursor ) + { + var range = new CKEDITOR.dom.range(); + range.setStartAt( editor.document.getBody(), + CKEDITOR.POSITION_AFTER_START ); + range.setEnd( cursor.textNode, cursor.offset ); + return range; + } + + var KMP_NOMATCH = 0, + KMP_ADVANCED = 1, + KMP_MATCHED = 2; + /** + * Examination the occurrence of a word which implement KMP algorithm. + */ + var kmpMatcher = function( pattern, ignoreCase ) + { + var overlap = [ -1 ]; + if ( ignoreCase ) + pattern = pattern.toLowerCase(); + for ( var i = 0 ; i < pattern.length ; i++ ) + { + overlap.push( overlap[i] + 1 ); + while ( overlap[ i + 1 ] > 0 + && pattern.charAt( i ) != pattern + .charAt( overlap[ i + 1 ] - 1 ) ) + overlap[ i + 1 ] = overlap[ overlap[ i + 1 ] - 1 ] + 1; + } + + this._ = { + overlap : overlap, + state : 0, + ignoreCase : !!ignoreCase, + pattern : pattern + }; + }; + + kmpMatcher.prototype = + { + feedCharacter : function( c ) + { + if ( this._.ignoreCase ) + c = c.toLowerCase(); + + while ( true ) + { + if ( c == this._.pattern.charAt( this._.state ) ) + { + this._.state++; + if ( this._.state == this._.pattern.length ) + { + this._.state = 0; + return KMP_MATCHED; + } + return KMP_ADVANCED; + } + else if ( !this._.state ) + return KMP_NOMATCH; + else + this._.state = this._.overlap[ this._.state ]; + } + + return null; + }, + + reset : function() + { + this._.state = 0; + } + }; + + var wordSeparatorRegex = + /[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/; + + var isWordSeparator = function( c ) + { + if ( !c ) + return true; + var code = c.charCodeAt( 0 ); + return ( code >= 9 && code <= 0xd ) + || ( code >= 0x2000 && code <= 0x200a ) + || wordSeparatorRegex.test( c ); + }; + + var finder = { + searchRange : null, + matchRange : null, + find : function( pattern, matchCase, matchWord, matchCyclic, highlightMatched, cyclicRerun ) + { + if ( !this.matchRange ) + this.matchRange = + new characterRange( + new characterWalker( this.searchRange ), + pattern.length ); + else + { + this.matchRange.removeHighlight(); + this.matchRange = this.matchRange.getNextCharacterRange( pattern.length ); + } + + var matcher = new kmpMatcher( pattern, !matchCase ), + matchState = KMP_NOMATCH, + character = '%'; + + while ( character !== null ) + { + this.matchRange.moveNext(); + while ( ( character = this.matchRange.getEndCharacter() ) ) + { + matchState = matcher.feedCharacter( character ); + if ( matchState == KMP_MATCHED ) + break; + if ( this.matchRange.moveNext().hitMatchBoundary ) + matcher.reset(); + } + + if ( matchState == KMP_MATCHED ) + { + if ( matchWord ) + { + var cursors = this.matchRange.getCursors(), + tail = cursors[ cursors.length - 1 ], + head = cursors[ 0 ]; + + var rangeBefore = getRangeBeforeCursor( head ), + rangeAfter = getRangeAfterCursor( tail ); + + // The word boundary checks requires to trim the text nodes. (#9036) + rangeBefore.trim(); + rangeAfter.trim(); + + var headWalker = new characterWalker( rangeBefore, true ), + tailWalker = new characterWalker( rangeAfter, true ); + + if ( ! ( isWordSeparator( headWalker.back().character ) + && isWordSeparator( tailWalker.next().character ) ) ) + continue; + } + this.matchRange.setMatched(); + if ( highlightMatched !== false ) + this.matchRange.highlight(); + return true; + } + } + + this.matchRange.clearMatched(); + this.matchRange.removeHighlight(); + // Clear current session and restart with the default search + // range. + // Re-run the finding once for cyclic.(#3517) + if ( matchCyclic && !cyclicRerun ) + { + this.searchRange = getSearchRange( 1 ); + this.matchRange = null; + return arguments.callee.apply( this, + Array.prototype.slice.call( arguments ).concat( [ true ] ) ); + } + + return false; + }, + + /** + * Record how much replacement occurred toward one replacing. + */ + replaceCounter : 0, + + replace : function( dialog, pattern, newString, matchCase, matchWord, + matchCyclic , isReplaceAll ) + { + isReplace = 1; + + // Successiveness of current replace/find. + var result = 0; + + // 1. Perform the replace when there's already a match here. + // 2. Otherwise perform the find but don't replace it immediately. + if ( this.matchRange && this.matchRange.isMatched() + && !this.matchRange._.isReplaced && !this.matchRange.isReadOnly() ) + { + // Turn off highlight for a while when saving snapshots. + this.matchRange.removeHighlight(); + var domRange = this.matchRange.toDomRange(); + var text = editor.document.createText( newString ); + if ( !isReplaceAll ) + { + // Save undo snaps before and after the replacement. + var selection = editor.getSelection(); + selection.selectRanges( [ domRange ] ); + editor.fire( 'saveSnapshot' ); + } + domRange.deleteContents(); + domRange.insertNode( text ); + if ( !isReplaceAll ) + { + selection.selectRanges( [ domRange ] ); + editor.fire( 'saveSnapshot' ); + } + this.matchRange.updateFromDomRange( domRange ); + if ( !isReplaceAll ) + this.matchRange.highlight(); + this.matchRange._.isReplaced = true; + this.replaceCounter++; + result = 1; + } + else + result = this.find( pattern, matchCase, matchWord, matchCyclic, !isReplaceAll ); + + isReplace = 0; + + return result; + } + }; + + /** + * The range in which find/replace happened, receive from user + * selection prior. + */ + function getSearchRange( isDefault ) + { + var searchRange, + sel = editor.getSelection(), + body = editor.document.getBody(); + if ( sel && !isDefault ) + { + searchRange = sel.getRanges()[ 0 ].clone(); + searchRange.collapse( true ); + } + else + { + searchRange = new CKEDITOR.dom.range(); + searchRange.setStartAt( body, CKEDITOR.POSITION_AFTER_START ); + } + searchRange.setEndAt( body, CKEDITOR.POSITION_BEFORE_END ); + return searchRange; + } + + var lang = editor.lang.findAndReplace; + return { + title : lang.title, + resizable : CKEDITOR.DIALOG_RESIZE_NONE, + minWidth : 350, + minHeight : 170, + buttons : [ CKEDITOR.dialog.cancelButton ], // Cancel button only. + contents : [ + { + id : 'find', + label : lang.find, + title : lang.find, + accessKey : '', + elements : [ + { + type : 'hbox', + widths : [ '230px', '90px' ], + children : + [ + { + type : 'text', + id : 'txtFindFind', + label : lang.findWhat, + isChanged : false, + labelLayout : 'horizontal', + accessKey : 'F' + }, + { + type : 'button', + id : 'btnFind', + align : 'left', + style : 'width:100%', + label : lang.find, + onClick : function() + { + var dialog = this.getDialog(); + if ( !finder.find( dialog.getValueOf( 'find', 'txtFindFind' ), + dialog.getValueOf( 'find', 'txtFindCaseChk' ), + dialog.getValueOf( 'find', 'txtFindWordChk' ), + dialog.getValueOf( 'find', 'txtFindCyclic' ) ) ) + alert( lang + .notFoundMsg ); + } + } + ] + }, + { + type : 'fieldset', + label : CKEDITOR.tools.htmlEncode( lang.findOptions ), + style : 'margin-top:29px', + children : + [ + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'checkbox', + id : 'txtFindCaseChk', + isChanged : false, + label : lang.matchCase + }, + { + type : 'checkbox', + id : 'txtFindWordChk', + isChanged : false, + label : lang.matchWord + }, + { + type : 'checkbox', + id : 'txtFindCyclic', + isChanged : false, + 'default' : true, + label : lang.matchCyclic + } + ] + } + ] + } + ] + }, + { + id : 'replace', + label : lang.replace, + accessKey : 'M', + elements : [ + { + type : 'hbox', + widths : [ '230px', '90px' ], + children : + [ + { + type : 'text', + id : 'txtFindReplace', + label : lang.findWhat, + isChanged : false, + labelLayout : 'horizontal', + accessKey : 'F' + }, + { + type : 'button', + id : 'btnFindReplace', + align : 'left', + style : 'width:100%', + label : lang.replace, + onClick : function() + { + var dialog = this.getDialog(); + if ( !finder.replace( dialog, + dialog.getValueOf( 'replace', 'txtFindReplace' ), + dialog.getValueOf( 'replace', 'txtReplace' ), + dialog.getValueOf( 'replace', 'txtReplaceCaseChk' ), + dialog.getValueOf( 'replace', 'txtReplaceWordChk' ), + dialog.getValueOf( 'replace', 'txtReplaceCyclic' ) ) ) + alert( lang + .notFoundMsg ); + } + } + ] + }, + { + type : 'hbox', + widths : [ '230px', '90px' ], + children : + [ + { + type : 'text', + id : 'txtReplace', + label : lang.replaceWith, + isChanged : false, + labelLayout : 'horizontal', + accessKey : 'R' + }, + { + type : 'button', + id : 'btnReplaceAll', + align : 'left', + style : 'width:100%', + label : lang.replaceAll, + isChanged : false, + onClick : function() + { + var dialog = this.getDialog(); + var replaceNums; + + finder.replaceCounter = 0; + + // Scope to full document. + finder.searchRange = getSearchRange( 1 ); + if ( finder.matchRange ) + { + finder.matchRange.removeHighlight(); + finder.matchRange = null; + } + editor.fire( 'saveSnapshot' ); + while ( finder.replace( dialog, + dialog.getValueOf( 'replace', 'txtFindReplace' ), + dialog.getValueOf( 'replace', 'txtReplace' ), + dialog.getValueOf( 'replace', 'txtReplaceCaseChk' ), + dialog.getValueOf( 'replace', 'txtReplaceWordChk' ), + false, true ) ) + { /*jsl:pass*/ } + + if ( finder.replaceCounter ) + { + alert( lang.replaceSuccessMsg.replace( /%1/, finder.replaceCounter ) ); + editor.fire( 'saveSnapshot' ); + } + else + alert( lang.notFoundMsg ); + } + } + ] + }, + { + type : 'fieldset', + label : CKEDITOR.tools.htmlEncode( lang.findOptions ), + children : + [ + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'checkbox', + id : 'txtReplaceCaseChk', + isChanged : false, + label : lang.matchCase + }, + { + type : 'checkbox', + id : 'txtReplaceWordChk', + isChanged : false, + label : lang.matchWord + }, + { + type : 'checkbox', + id : 'txtReplaceCyclic', + isChanged : false, + 'default' : true, + label : lang.matchCyclic + } + ] + } + ] + } + ] + } + ], + onLoad : function() + { + var dialog = this; + + // Keep track of the current pattern field in use. + var patternField, wholeWordChkField; + + // Ignore initial page select on dialog show + var isUserSelect = 0; + this.on( 'hide', function() + { + isUserSelect = 0; + }); + this.on( 'show', function() + { + isUserSelect = 1; + }); + + this.selectPage = CKEDITOR.tools.override( this.selectPage, function( originalFunc ) + { + return function( pageId ) + { + originalFunc.call( dialog, pageId ); + + var currPage = dialog._.tabs[ pageId ]; + var patternFieldInput, patternFieldId, wholeWordChkFieldId; + patternFieldId = pageId === 'find' ? 'txtFindFind' : 'txtFindReplace'; + wholeWordChkFieldId = pageId === 'find' ? 'txtFindWordChk' : 'txtReplaceWordChk'; + + patternField = dialog.getContentElement( pageId, + patternFieldId ); + wholeWordChkField = dialog.getContentElement( pageId, + wholeWordChkFieldId ); + + // Prepare for check pattern text filed 'keyup' event + if ( !currPage.initialized ) + { + patternFieldInput = CKEDITOR.document + .getById( patternField._.inputId ); + currPage.initialized = true; + } + + // Synchronize fields on tab switch. + if ( isUserSelect ) + syncFieldsBetweenTabs.call( this, pageId ); + }; + } ); + + }, + onShow : function() + { + // Establish initial searching start position. + finder.searchRange = getSearchRange(); + + // Fill in the find field with selected text. + var selectedText = this.getParentEditor().getSelection().getSelectedText(), + patternFieldId = ( startupPage == 'find' ? 'txtFindFind' : 'txtFindReplace' ); + + var field = this.getContentElement( startupPage, patternFieldId ); + field.setValue( selectedText ); + field.select(); + + this.selectPage( startupPage ); + + this[ ( startupPage == 'find' && this._.editor.readOnly? 'hide' : 'show' ) + 'Page' ]( 'replace'); + }, + onHide : function() + { + var range; + if ( finder.matchRange && finder.matchRange.isMatched() ) + { + finder.matchRange.removeHighlight(); + editor.focus(); + + range = finder.matchRange.toDomRange(); + if ( range ) + editor.getSelection().selectRanges( [ range ] ); + } + + // Clear current session before dialog close + delete finder.matchRange; + }, + onFocus : function() + { + if ( startupPage == 'replace' ) + return this.getContentElement( 'replace', 'txtFindReplace' ); + else + return this.getContentElement( 'find', 'txtFindFind' ); + } + }; + }; + + CKEDITOR.dialog.add( 'find', function( editor ) + { + return findDialog( editor, 'find' ); + }); + + CKEDITOR.dialog.add( 'replace', function( editor ) + { + return findDialog( editor, 'replace' ); + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/find/plugin.js b/htdocs/includes/ckeditor/_source/plugins/find/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..5eaa41f460692eadbfcdffde055af7cfe23ba5f9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/find/plugin.js @@ -0,0 +1,48 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'find', +{ + requires : [ 'dialog' ], + init : function( editor ) + { + var forms = CKEDITOR.plugins.find; + editor.ui.addButton( 'Find', + { + label : editor.lang.findAndReplace.find, + command : 'find' + }); + var findCommand = editor.addCommand( 'find', new CKEDITOR.dialogCommand( 'find' ) ); + findCommand.canUndo = false; + findCommand.readOnly = 1; + + editor.ui.addButton( 'Replace', + { + label : editor.lang.findAndReplace.replace, + command : 'replace' + }); + var replaceCommand = editor.addCommand( 'replace', new CKEDITOR.dialogCommand( 'replace' ) ); + replaceCommand.canUndo = false; + + CKEDITOR.dialog.add( 'find', this.path + 'dialogs/find.js' ); + CKEDITOR.dialog.add( 'replace', this.path + 'dialogs/find.js' ); + }, + + requires : [ 'styles' ] +} ); + +/** + * Defines the style to be used to highlight results with the find dialog. + * @type Object + * @default { element : 'span', styles : { 'background-color' : '#004', 'color' : '#fff' } } + * @example + * // Highlight search results with blue on yellow. + * config.find_highlight = + * { + * element : 'span', + * styles : { 'background-color' : '#ff0', 'color' : '#00f' } + * }; + */ +CKEDITOR.config.find_highlight = { element : 'span', styles : { 'background-color' : '#004', 'color' : '#fff' } }; diff --git a/htdocs/includes/ckeditor/_source/plugins/flash/dialogs/flash.js b/htdocs/includes/ckeditor/_source/plugins/flash/dialogs/flash.js new file mode 100644 index 0000000000000000000000000000000000000000..7b7649d7175b5702c3814ac1c5f0db82c1118629 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/flash/dialogs/flash.js @@ -0,0 +1,665 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + /* + * It is possible to set things in three different places. + * 1. As attributes in the object tag. + * 2. As param tags under the object tag. + * 3. As attributes in the embed tag. + * It is possible for a single attribute to be present in more than one place. + * So let's define a mapping between a sementic attribute and its syntactic + * equivalents. + * Then we'll set and retrieve attribute values according to the mapping, + * instead of having to check and set each syntactic attribute every time. + * + * Reference: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701 + */ + var ATTRTYPE_OBJECT = 1, + ATTRTYPE_PARAM = 2, + ATTRTYPE_EMBED = 4; + + var attributesMap = + { + id : [ { type : ATTRTYPE_OBJECT, name : 'id' } ], + classid : [ { type : ATTRTYPE_OBJECT, name : 'classid' } ], + codebase : [ { type : ATTRTYPE_OBJECT, name : 'codebase'} ], + pluginspage : [ { type : ATTRTYPE_EMBED, name : 'pluginspage' } ], + src : [ { type : ATTRTYPE_PARAM, name : 'movie' }, { type : ATTRTYPE_EMBED, name : 'src' }, { type : ATTRTYPE_OBJECT, name : 'data' } ], + name : [ { type : ATTRTYPE_EMBED, name : 'name' } ], + align : [ { type : ATTRTYPE_OBJECT, name : 'align' } ], + 'class' : [ { type : ATTRTYPE_OBJECT, name : 'class' }, { type : ATTRTYPE_EMBED, name : 'class'} ], + width : [ { type : ATTRTYPE_OBJECT, name : 'width' }, { type : ATTRTYPE_EMBED, name : 'width' } ], + height : [ { type : ATTRTYPE_OBJECT, name : 'height' }, { type : ATTRTYPE_EMBED, name : 'height' } ], + hSpace : [ { type : ATTRTYPE_OBJECT, name : 'hSpace' }, { type : ATTRTYPE_EMBED, name : 'hSpace' } ], + vSpace : [ { type : ATTRTYPE_OBJECT, name : 'vSpace' }, { type : ATTRTYPE_EMBED, name : 'vSpace' } ], + style : [ { type : ATTRTYPE_OBJECT, name : 'style' }, { type : ATTRTYPE_EMBED, name : 'style' } ], + type : [ { type : ATTRTYPE_EMBED, name : 'type' } ] + }; + + var names = [ 'play', 'loop', 'menu', 'quality', 'scale', 'salign', 'wmode', 'bgcolor', 'base', 'flashvars', 'allowScriptAccess', + 'allowFullScreen' ]; + for ( var i = 0 ; i < names.length ; i++ ) + attributesMap[ names[i] ] = [ { type : ATTRTYPE_EMBED, name : names[i] }, { type : ATTRTYPE_PARAM, name : names[i] } ]; + names = [ 'allowFullScreen', 'play', 'loop', 'menu' ]; + for ( i = 0 ; i < names.length ; i++ ) + attributesMap[ names[i] ][0]['default'] = attributesMap[ names[i] ][1]['default'] = true; + + var defaultToPixel = CKEDITOR.tools.cssLength; + + function loadValue( objectNode, embedNode, paramMap ) + { + var attributes = attributesMap[ this.id ]; + if ( !attributes ) + return; + + var isCheckbox = ( this instanceof CKEDITOR.ui.dialog.checkbox ); + for ( var i = 0 ; i < attributes.length ; i++ ) + { + var attrDef = attributes[ i ]; + switch ( attrDef.type ) + { + case ATTRTYPE_OBJECT: + if ( !objectNode ) + continue; + if ( objectNode.getAttribute( attrDef.name ) !== null ) + { + var value = objectNode.getAttribute( attrDef.name ); + if ( isCheckbox ) + this.setValue( value.toLowerCase() == 'true' ); + else + this.setValue( value ); + return; + } + else if ( isCheckbox ) + this.setValue( !!attrDef[ 'default' ] ); + break; + case ATTRTYPE_PARAM: + if ( !objectNode ) + continue; + if ( attrDef.name in paramMap ) + { + value = paramMap[ attrDef.name ]; + if ( isCheckbox ) + this.setValue( value.toLowerCase() == 'true' ); + else + this.setValue( value ); + return; + } + else if ( isCheckbox ) + this.setValue( !!attrDef[ 'default' ] ); + break; + case ATTRTYPE_EMBED: + if ( !embedNode ) + continue; + if ( embedNode.getAttribute( attrDef.name ) ) + { + value = embedNode.getAttribute( attrDef.name ); + if ( isCheckbox ) + this.setValue( value.toLowerCase() == 'true' ); + else + this.setValue( value ); + return; + } + else if ( isCheckbox ) + this.setValue( !!attrDef[ 'default' ] ); + } + } + } + + function commitValue( objectNode, embedNode, paramMap ) + { + var attributes = attributesMap[ this.id ]; + if ( !attributes ) + return; + + var isRemove = ( this.getValue() === '' ), + isCheckbox = ( this instanceof CKEDITOR.ui.dialog.checkbox ); + + for ( var i = 0 ; i < attributes.length ; i++ ) + { + var attrDef = attributes[i]; + switch ( attrDef.type ) + { + case ATTRTYPE_OBJECT: + // Avoid applying the data attribute when not needed (#7733) + if ( !objectNode || ( attrDef.name == 'data' && embedNode && !objectNode.hasAttribute( 'data' ) ) ) + continue; + var value = this.getValue(); + if ( isRemove || isCheckbox && value === attrDef[ 'default' ] ) + objectNode.removeAttribute( attrDef.name ); + else + objectNode.setAttribute( attrDef.name, value ); + break; + case ATTRTYPE_PARAM: + if ( !objectNode ) + continue; + value = this.getValue(); + if ( isRemove || isCheckbox && value === attrDef[ 'default' ] ) + { + if ( attrDef.name in paramMap ) + paramMap[ attrDef.name ].remove(); + } + else + { + if ( attrDef.name in paramMap ) + paramMap[ attrDef.name ].setAttribute( 'value', value ); + else + { + var param = CKEDITOR.dom.element.createFromHtml( '<cke:param></cke:param>', objectNode.getDocument() ); + param.setAttributes( { name : attrDef.name, value : value } ); + if ( objectNode.getChildCount() < 1 ) + param.appendTo( objectNode ); + else + param.insertBefore( objectNode.getFirst() ); + } + } + break; + case ATTRTYPE_EMBED: + if ( !embedNode ) + continue; + value = this.getValue(); + if ( isRemove || isCheckbox && value === attrDef[ 'default' ]) + embedNode.removeAttribute( attrDef.name ); + else + embedNode.setAttribute( attrDef.name, value ); + } + } + } + + CKEDITOR.dialog.add( 'flash', function( editor ) + { + var makeObjectTag = !editor.config.flashEmbedTagOnly, + makeEmbedTag = editor.config.flashAddEmbedTag || editor.config.flashEmbedTagOnly; + + var previewPreloader, + previewAreaHtml = '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>' + + '<div id="cke_FlashPreviewLoader' + CKEDITOR.tools.getNextNumber() + '" style="display:none"><div class="loading"> </div></div>' + + '<div id="cke_FlashPreviewBox' + CKEDITOR.tools.getNextNumber() + '" class="FlashPreviewBox"></div></div>'; + + return { + title : editor.lang.flash.title, + minWidth : 420, + minHeight : 310, + onShow : function() + { + // Clear previously saved elements. + this.fakeImage = this.objectNode = this.embedNode = null; + previewPreloader = new CKEDITOR.dom.element( 'embed', editor.document ); + + // Try to detect any embed or object tag that has Flash parameters. + var fakeImage = this.getSelectedElement(); + if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'flash' ) + { + this.fakeImage = fakeImage; + + var realElement = editor.restoreRealElement( fakeImage ), + objectNode = null, embedNode = null, paramMap = {}; + if ( realElement.getName() == 'cke:object' ) + { + objectNode = realElement; + var embedList = objectNode.getElementsByTag( 'embed', 'cke' ); + if ( embedList.count() > 0 ) + embedNode = embedList.getItem( 0 ); + var paramList = objectNode.getElementsByTag( 'param', 'cke' ); + for ( var i = 0, length = paramList.count() ; i < length ; i++ ) + { + var item = paramList.getItem( i ), + name = item.getAttribute( 'name' ), + value = item.getAttribute( 'value' ); + paramMap[ name ] = value; + } + } + else if ( realElement.getName() == 'cke:embed' ) + embedNode = realElement; + + this.objectNode = objectNode; + this.embedNode = embedNode; + + this.setupContent( objectNode, embedNode, paramMap, fakeImage ); + } + }, + onOk : function() + { + // If there's no selected object or embed, create one. Otherwise, reuse the + // selected object and embed nodes. + var objectNode = null, + embedNode = null, + paramMap = null; + if ( !this.fakeImage ) + { + if ( makeObjectTag ) + { + objectNode = CKEDITOR.dom.element.createFromHtml( '<cke:object></cke:object>', editor.document ); + var attributes = { + classid : 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000', + codebase : 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' + }; + objectNode.setAttributes( attributes ); + } + if ( makeEmbedTag ) + { + embedNode = CKEDITOR.dom.element.createFromHtml( '<cke:embed></cke:embed>', editor.document ); + embedNode.setAttributes( + { + type : 'application/x-shockwave-flash', + pluginspage : 'http://www.macromedia.com/go/getflashplayer' + } ); + if ( objectNode ) + embedNode.appendTo( objectNode ); + } + } + else + { + objectNode = this.objectNode; + embedNode = this.embedNode; + } + + // Produce the paramMap if there's an object tag. + if ( objectNode ) + { + paramMap = {}; + var paramList = objectNode.getElementsByTag( 'param', 'cke' ); + for ( var i = 0, length = paramList.count() ; i < length ; i++ ) + paramMap[ paramList.getItem( i ).getAttribute( 'name' ) ] = paramList.getItem( i ); + } + + // A subset of the specified attributes/styles + // should also be applied on the fake element to + // have better visual effect. (#5240) + var extraStyles = {}, extraAttributes = {}; + this.commitContent( objectNode, embedNode, paramMap, extraStyles, extraAttributes ); + + // Refresh the fake image. + var newFakeImage = editor.createFakeElement( objectNode || embedNode, 'cke_flash', 'flash', true ); + newFakeImage.setAttributes( extraAttributes ); + newFakeImage.setStyles( extraStyles ); + if ( this.fakeImage ) + { + newFakeImage.replace( this.fakeImage ); + editor.getSelection().selectElement( newFakeImage ); + } + else + editor.insertElement( newFakeImage ); + }, + + onHide : function() + { + if ( this.preview ) + this.preview.setHtml(''); + }, + + contents : [ + { + id : 'info', + label : editor.lang.common.generalTab, + accessKey : 'I', + elements : + [ + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'hbox', + widths : [ '280px', '110px' ], + align : 'right', + children : + [ + { + id : 'src', + type : 'text', + label : editor.lang.common.url, + required : true, + validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.flash.validateSrc ), + setup : loadValue, + commit : commitValue, + onLoad : function() + { + var dialog = this.getDialog(), + updatePreview = function( src ){ + // Query the preloader to figure out the url impacted by based href. + previewPreloader.setAttribute( 'src', src ); + dialog.preview.setHtml( '<embed height="100%" width="100%" src="' + + CKEDITOR.tools.htmlEncode( previewPreloader.getAttribute( 'src' ) ) + + '" type="application/x-shockwave-flash"></embed>' ); + }; + // Preview element + dialog.preview = dialog.getContentElement( 'info', 'preview' ).getElement().getChild( 3 ); + + // Sync on inital value loaded. + this.on( 'change', function( evt ){ + + if ( evt.data && evt.data.value ) + updatePreview( evt.data.value ); + } ); + // Sync when input value changed. + this.getInputElement().on( 'change', function( evt ){ + + updatePreview( this.getValue() ); + }, this ); + } + }, + { + type : 'button', + id : 'browse', + filebrowser : 'info:src', + hidden : true, + // v-align with the 'src' field. + // TODO: We need something better than a fixed size here. + style : 'display:inline-block;margin-top:10px;', + label : editor.lang.common.browseServer + } + ] + } + ] + }, + { + type : 'hbox', + widths : [ '25%', '25%', '25%', '25%', '25%' ], + children : + [ + { + type : 'text', + id : 'width', + style : 'width:95px', + label : editor.lang.common.width, + validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength.replace( '%1', editor.lang.common.width ) ), + setup : loadValue, + commit : commitValue + }, + { + type : 'text', + id : 'height', + style : 'width:95px', + label : editor.lang.common.height, + validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength.replace( '%1', editor.lang.common.height ) ), + setup : loadValue, + commit : commitValue + }, + { + type : 'text', + id : 'hSpace', + style : 'width:95px', + label : editor.lang.flash.hSpace, + validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateHSpace ), + setup : loadValue, + commit : commitValue + }, + { + type : 'text', + id : 'vSpace', + style : 'width:95px', + label : editor.lang.flash.vSpace, + validate : CKEDITOR.dialog.validate.integer( editor.lang.flash.validateVSpace ), + setup : loadValue, + commit : commitValue + } + ] + }, + + { + type : 'vbox', + children : + [ + { + type : 'html', + id : 'preview', + style : 'width:95%;', + html : previewAreaHtml + } + ] + } + ] + }, + { + id : 'Upload', + hidden : true, + filebrowser : 'uploadButton', + label : editor.lang.common.upload, + elements : + [ + { + type : 'file', + id : 'upload', + label : editor.lang.common.upload, + size : 38 + }, + { + type : 'fileButton', + id : 'uploadButton', + label : editor.lang.common.uploadSubmit, + filebrowser : 'info:src', + 'for' : [ 'Upload', 'upload' ] + } + ] + }, + { + id : 'properties', + label : editor.lang.flash.propertiesTab, + elements : + [ + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + id : 'scale', + type : 'select', + label : editor.lang.flash.scale, + 'default' : '', + style : 'width : 100%;', + items : + [ + [ editor.lang.common.notSet , ''], + [ editor.lang.flash.scaleAll, 'showall' ], + [ editor.lang.flash.scaleNoBorder, 'noborder' ], + [ editor.lang.flash.scaleFit, 'exactfit' ] + ], + setup : loadValue, + commit : commitValue + }, + { + id : 'allowScriptAccess', + type : 'select', + label : editor.lang.flash.access, + 'default' : '', + style : 'width : 100%;', + items : + [ + [ editor.lang.common.notSet , ''], + [ editor.lang.flash.accessAlways, 'always' ], + [ editor.lang.flash.accessSameDomain, 'samedomain' ], + [ editor.lang.flash.accessNever, 'never' ] + ], + setup : loadValue, + commit : commitValue + } + ] + }, + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + id : 'wmode', + type : 'select', + label : editor.lang.flash.windowMode, + 'default' : '', + style : 'width : 100%;', + items : + [ + [ editor.lang.common.notSet , '' ], + [ editor.lang.flash.windowModeWindow, 'window' ], + [ editor.lang.flash.windowModeOpaque, 'opaque' ], + [ editor.lang.flash.windowModeTransparent, 'transparent' ] + ], + setup : loadValue, + commit : commitValue + }, + { + id : 'quality', + type : 'select', + label : editor.lang.flash.quality, + 'default' : 'high', + style : 'width : 100%;', + items : + [ + [ editor.lang.common.notSet , '' ], + [ editor.lang.flash.qualityBest, 'best' ], + [ editor.lang.flash.qualityHigh, 'high' ], + [ editor.lang.flash.qualityAutoHigh, 'autohigh' ], + [ editor.lang.flash.qualityMedium, 'medium' ], + [ editor.lang.flash.qualityAutoLow, 'autolow' ], + [ editor.lang.flash.qualityLow, 'low' ] + ], + setup : loadValue, + commit : commitValue + } + ] + }, + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + id : 'align', + type : 'select', + label : editor.lang.common.align, + 'default' : '', + style : 'width : 100%;', + items : + [ + [ editor.lang.common.notSet , ''], + [ editor.lang.common.alignLeft , 'left'], + [ editor.lang.flash.alignAbsBottom , 'absBottom'], + [ editor.lang.flash.alignAbsMiddle , 'absMiddle'], + [ editor.lang.flash.alignBaseline , 'baseline'], + [ editor.lang.common.alignBottom , 'bottom'], + [ editor.lang.common.alignMiddle , 'middle'], + [ editor.lang.common.alignRight , 'right'], + [ editor.lang.flash.alignTextTop , 'textTop'], + [ editor.lang.common.alignTop , 'top'] + ], + setup : loadValue, + commit : function( objectNode, embedNode, paramMap, extraStyles, extraAttributes ) + { + var value = this.getValue(); + commitValue.apply( this, arguments ); + value && ( extraAttributes.align = value ); + } + }, + { + type : 'html', + html : '<div></div>' + } + ] + }, + { + type : 'fieldset', + label : CKEDITOR.tools.htmlEncode( editor.lang.flash.flashvars ), + children : + [ + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'checkbox', + id : 'menu', + label : editor.lang.flash.chkMenu, + 'default' : true, + setup : loadValue, + commit : commitValue + }, + { + type : 'checkbox', + id : 'play', + label : editor.lang.flash.chkPlay, + 'default' : true, + setup : loadValue, + commit : commitValue + }, + { + type : 'checkbox', + id : 'loop', + label : editor.lang.flash.chkLoop, + 'default' : true, + setup : loadValue, + commit : commitValue + }, + { + type : 'checkbox', + id : 'allowFullScreen', + label : editor.lang.flash.chkFull, + 'default' : true, + setup : loadValue, + commit : commitValue + } + ] + } + ] + } + ] + }, + { + id : 'advanced', + label : editor.lang.common.advancedTab, + elements : + [ + { + type : 'hbox', + children : + [ + { + type : 'text', + id : 'id', + label : editor.lang.common.id, + setup : loadValue, + commit : commitValue + } + ] + }, + { + type : 'hbox', + widths : [ '45%', '55%' ], + children : + [ + { + type : 'text', + id : 'bgcolor', + label : editor.lang.flash.bgcolor, + setup : loadValue, + commit : commitValue + }, + { + type : 'text', + id : 'class', + label : editor.lang.common.cssClass, + setup : loadValue, + commit : commitValue + } + ] + }, + { + type : 'text', + id : 'style', + validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), + label : editor.lang.common.cssStyle, + setup : loadValue, + commit : commitValue + } + ] + } + ] + }; + } ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/flash/images/placeholder.png b/htdocs/includes/ckeditor/_source/plugins/flash/images/placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..0bc6caa7a6abca57d3f1e1376fbd5067d5cd66d0 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/flash/images/placeholder.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/flash/plugin.js b/htdocs/includes/ckeditor/_source/plugins/flash/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..a0185129be2ed3adb7f8cd9008c3ae29793ea8b2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/flash/plugin.js @@ -0,0 +1,154 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var flashFilenameRegex = /\.swf(?:$|\?)/i; + + function isFlashEmbed( element ) + { + var attributes = element.attributes; + + return ( attributes.type == 'application/x-shockwave-flash' || flashFilenameRegex.test( attributes.src || '' ) ); + } + + function createFakeElement( editor, realElement ) + { + return editor.createFakeParserElement( realElement, 'cke_flash', 'flash', true ); + } + + CKEDITOR.plugins.add( 'flash', + { + init : function( editor ) + { + editor.addCommand( 'flash', new CKEDITOR.dialogCommand( 'flash' ) ); + editor.ui.addButton( 'Flash', + { + label : editor.lang.common.flash, + command : 'flash' + }); + CKEDITOR.dialog.add( 'flash', this.path + 'dialogs/flash.js' ); + + editor.addCss( + 'img.cke_flash' + + '{' + + 'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/placeholder.png' ) + ');' + + 'background-position: center center;' + + 'background-repeat: no-repeat;' + + 'border: 1px solid #a9a9a9;' + + 'width: 80px;' + + 'height: 80px;' + + '}' + ); + + // If the "menu" plugin is loaded, register the menu items. + if ( editor.addMenuItems ) + { + editor.addMenuItems( + { + flash : + { + label : editor.lang.flash.properties, + command : 'flash', + group : 'flash' + } + }); + } + + editor.on( 'doubleclick', function( evt ) + { + var element = evt.data.element; + + if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'flash' ) + evt.data.dialog = 'flash'; + }); + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element, selection ) + { + if ( element && element.is( 'img' ) && !element.isReadOnly() + && element.data( 'cke-real-element-type' ) == 'flash' ) + return { flash : CKEDITOR.TRISTATE_OFF }; + }); + } + }, + + afterInit : function( editor ) + { + var dataProcessor = editor.dataProcessor, + dataFilter = dataProcessor && dataProcessor.dataFilter; + + if ( dataFilter ) + { + dataFilter.addRules( + { + elements : + { + 'cke:object' : function( element ) + { + var attributes = element.attributes, + classId = attributes.classid && String( attributes.classid ).toLowerCase(); + + if ( !classId && !isFlashEmbed( element ) ) + { + // Look for the inner <embed> + for ( var i = 0 ; i < element.children.length ; i++ ) + { + if ( element.children[ i ].name == 'cke:embed' ) + { + if ( !isFlashEmbed( element.children[ i ] ) ) + return null; + + return createFakeElement( editor, element ); + } + } + return null; + } + + return createFakeElement( editor, element ); + }, + + 'cke:embed' : function( element ) + { + if ( !isFlashEmbed( element ) ) + return null; + + return createFakeElement( editor, element ); + } + } + }, + 5); + } + }, + + requires : [ 'fakeobjects' ] + }); +})(); + +CKEDITOR.tools.extend( CKEDITOR.config, +{ + /** + * Save as EMBED tag only. This tag is unrecommended. + * @type Boolean + * @default false + */ + flashEmbedTagOnly : false, + + /** + * Add EMBED tag as alternative: <object><embed></embed></object> + * @type Boolean + * @default false + */ + flashAddEmbedTag : true, + + /** + * Use embedTagOnly and addEmbedTag values on edit. + * @type Boolean + * @default false + */ + flashConvertOnEdit : false +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/floatpanel/plugin.js b/htdocs/includes/ckeditor/_source/plugins/floatpanel/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..7e9af39d01731ec4ad51cb4fc9ab38b67f01e033 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/floatpanel/plugin.js @@ -0,0 +1,476 @@ +/* +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 = {} ); + + } ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/font/plugin.js b/htdocs/includes/ckeditor/_source/plugins/font/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..268f2ee07f48e4b561224b7a79b5624246ff30c5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/font/plugin.js @@ -0,0 +1,234 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + function addCombo( editor, comboName, styleType, lang, entries, defaultLabel, styleDefinition ) + { + var config = editor.config; + + // Gets the list of fonts from the settings. + var names = entries.split( ';' ), + values = []; + + // Create style objects for all fonts. + var styles = {}; + for ( var i = 0 ; i < names.length ; i++ ) + { + var parts = names[ i ]; + + if ( parts ) + { + parts = parts.split( '/' ); + + var vars = {}, + name = names[ i ] = parts[ 0 ]; + + vars[ styleType ] = values[ i ] = parts[ 1 ] || name; + + styles[ name ] = new CKEDITOR.style( styleDefinition, vars ); + styles[ name ]._.definition.name = name; + } + else + names.splice( i--, 1 ); + } + + editor.ui.addRichCombo( comboName, + { + label : lang.label, + title : lang.panelTitle, + className : 'cke_' + ( styleType == 'size' ? 'fontSize' : 'font' ), + panel : + { + css : editor.skin.editor.css.concat( config.contentsCss ), + multiSelect : false, + attributes : { 'aria-label' : lang.panelTitle } + }, + + init : function() + { + this.startGroup( lang.panelTitle ); + + for ( var i = 0 ; i < names.length ; i++ ) + { + var name = names[ i ]; + + // Add the tag entry to the panel list. + this.add( name, styles[ name ].buildPreview(), name ); + } + }, + + onClick : function( value ) + { + editor.focus(); + editor.fire( 'saveSnapshot' ); + + var style = styles[ value ]; + + if ( this.getValue() == value ) + style.remove( editor.document ); + else + style.apply( editor.document ); + + editor.fire( 'saveSnapshot' ); + }, + + onRender : function() + { + editor.on( 'selectionChange', function( ev ) + { + var currentValue = this.getValue(); + + var elementPath = ev.data.path, + elements = elementPath.elements; + + // For each element into the elements path. + for ( var i = 0, element ; i < elements.length ; i++ ) + { + element = elements[i]; + + // Check if the element is removable by any of + // the styles. + for ( var value in styles ) + { + if ( styles[ value ].checkElementMatch( element, true ) ) + { + if ( value != currentValue ) + this.setValue( value ); + return; + } + } + } + + // If no styles match, just empty it. + this.setValue( '', defaultLabel ); + }, + this); + } + }); + } + + CKEDITOR.plugins.add( 'font', + { + requires : [ 'richcombo', 'styles' ], + + init : function( editor ) + { + var config = editor.config; + + addCombo( editor, 'Font', 'family', editor.lang.font, config.font_names, config.font_defaultLabel, config.font_style ); + addCombo( editor, 'FontSize', 'size', editor.lang.fontSize, config.fontSize_sizes, config.fontSize_defaultLabel, config.fontSize_style ); + } + }); +})(); + +/** + * The list of fonts names to be displayed in the Font combo in the toolbar. + * Entries are separated by semi-colons (;), while it's possible to have more + * than one font for each entry, in the HTML way (separated by comma). + * + * A display name may be optionally defined by prefixing the entries with the + * name and the slash character. For example, "Arial/Arial, Helvetica, sans-serif" + * will be displayed as "Arial" in the list, but will be outputted as + * "Arial, Helvetica, sans-serif". + * @type String + * @example + * config.font_names = + * 'Arial/Arial, Helvetica, sans-serif;' + + * 'Times New Roman/Times New Roman, Times, serif;' + + * 'Verdana'; + * @example + * config.font_names = 'Arial;Times New Roman;Verdana'; + */ +CKEDITOR.config.font_names = + 'Arial/Arial, Helvetica, sans-serif;' + + 'Comic Sans MS/Comic Sans MS, cursive;' + + 'Courier New/Courier New, Courier, monospace;' + + 'Georgia/Georgia, serif;' + + 'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' + + 'Tahoma/Tahoma, Geneva, sans-serif;' + + 'Times New Roman/Times New Roman, Times, serif;' + + 'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' + + 'Verdana/Verdana, Geneva, sans-serif'; + +/** + * The text to be displayed in the Font combo is none of the available values + * matches the current cursor position or text selection. + * @type String + * @example + * // If the default site font is Arial, we may making it more explicit to the end user. + * config.font_defaultLabel = 'Arial'; + */ +CKEDITOR.config.font_defaultLabel = ''; + +/** + * The style definition to be used to apply the font in the text. + * @type Object + * @example + * // This is actually the default value for it. + * config.font_style = + * { + * element : 'span', + * styles : { 'font-family' : '#(family)' }, + * overrides : [ { element : 'font', attributes : { 'face' : null } } ] + * }; + */ +CKEDITOR.config.font_style = + { + element : 'span', + styles : { 'font-family' : '#(family)' }, + overrides : [ { element : 'font', attributes : { 'face' : null } } ] + }; + +/** + * The list of fonts size to be displayed in the Font Size combo in the + * toolbar. Entries are separated by semi-colons (;). + * + * Any kind of "CSS like" size can be used, like "12px", "2.3em", "130%", + * "larger" or "x-small". + * + * A display name may be optionally defined by prefixing the entries with the + * name and the slash character. For example, "Bigger Font/14px" will be + * displayed as "Bigger Font" in the list, but will be outputted as "14px". + * @type String + * @default '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px' + * @example + * config.fontSize_sizes = '16/16px;24/24px;48/48px;'; + * @example + * config.fontSize_sizes = '12px;2.3em;130%;larger;x-small'; + * @example + * config.fontSize_sizes = '12 Pixels/12px;Big/2.3em;30 Percent More/130%;Bigger/larger;Very Small/x-small'; + */ +CKEDITOR.config.fontSize_sizes = + '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px'; + +/** + * The text to be displayed in the Font Size combo is none of the available + * values matches the current cursor position or text selection. + * @type String + * @example + * // If the default site font size is 12px, we may making it more explicit to the end user. + * config.fontSize_defaultLabel = '12px'; + */ +CKEDITOR.config.fontSize_defaultLabel = ''; + +/** + * The style definition to be used to apply the font size in the text. + * @type Object + * @example + * // This is actually the default value for it. + * config.fontSize_style = + * { + * element : 'span', + * styles : { 'font-size' : '#(size)' }, + * overrides : [ { element : 'font', attributes : { 'size' : null } } ] + * }; + */ +CKEDITOR.config.fontSize_style = + { + element : 'span', + styles : { 'font-size' : '#(size)' }, + overrides : [ { element : 'font', attributes : { 'size' : null } } ] + }; diff --git a/htdocs/includes/ckeditor/_source/plugins/format/plugin.js b/htdocs/includes/ckeditor/_source/plugins/format/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..6488e75b25a9bf239983d6f321af9f601bb50f2f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/format/plugin.js @@ -0,0 +1,197 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'format', +{ + requires : [ 'richcombo', 'styles' ], + + init : function( editor ) + { + var config = editor.config, + lang = editor.lang.format; + + // Gets the list of tags from the settings. + var tags = config.format_tags.split( ';' ); + + // Create style objects for all defined styles. + var styles = {}; + for ( var i = 0 ; i < tags.length ; i++ ) + { + var tag = tags[ i ]; + styles[ tag ] = new CKEDITOR.style( config[ 'format_' + tag ] ); + styles[ tag ]._.enterMode = editor.config.enterMode; + } + + editor.ui.addRichCombo( 'Format', + { + label : lang.label, + title : lang.panelTitle, + className : 'cke_format', + panel : + { + css : editor.skin.editor.css.concat( config.contentsCss ), + multiSelect : false, + attributes : { 'aria-label' : lang.panelTitle } + }, + + init : function() + { + this.startGroup( lang.panelTitle ); + + for ( var tag in styles ) + { + var label = lang[ 'tag_' + tag ]; + + // Add the tag entry to the panel list. + this.add( tag, styles[tag].buildPreview( label ), label ); + } + }, + + onClick : function( value ) + { + editor.focus(); + editor.fire( 'saveSnapshot' ); + + var style = styles[ value ], + elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() ); + + style[ style.checkActive( elementPath ) ? 'remove' : 'apply' ]( editor.document ); + + // Save the undo snapshot after all changes are affected. (#4899) + setTimeout( function() + { + editor.fire( 'saveSnapshot' ); + }, 0 ); + }, + + onRender : function() + { + editor.on( 'selectionChange', function( ev ) + { + var currentTag = this.getValue(); + + var elementPath = ev.data.path; + + for ( var tag in styles ) + { + if ( styles[ tag ].checkActive( elementPath ) ) + { + if ( tag != currentTag ) + this.setValue( tag, editor.lang.format[ 'tag_' + tag ] ); + return; + } + } + + // If no styles match, just empty it. + this.setValue( '' ); + }, + this); + } + }); + } +}); + +/** + * A list of semi colon separated style names (by default tags) representing + * the style definition for each entry to be displayed in the Format combo in + * the toolbar. Each entry must have its relative definition configuration in a + * setting named "format_(tagName)". For example, the "p" entry has its + * definition taken from config.format_p. + * @type String + * @default 'p;h1;h2;h3;h4;h5;h6;pre;address;div' + * @example + * config.format_tags = 'p;h2;h3;pre' + */ +CKEDITOR.config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre;address;div'; + +/** + * The style definition to be used to apply the "Normal" format. + * @type Object + * @default { element : 'p' } + * @example + * config.format_p = { element : 'p', attributes : { 'class' : 'normalPara' } }; + */ +CKEDITOR.config.format_p = { element : 'p' }; + +/** + * The style definition to be used to apply the "Normal (DIV)" format. + * @type Object + * @default { element : 'div' } + * @example + * config.format_div = { element : 'div', attributes : { 'class' : 'normalDiv' } }; + */ +CKEDITOR.config.format_div = { element : 'div' }; + +/** + * The style definition to be used to apply the "Formatted" format. + * @type Object + * @default { element : 'pre' } + * @example + * config.format_pre = { element : 'pre', attributes : { 'class' : 'code' } }; + */ +CKEDITOR.config.format_pre = { element : 'pre' }; + +/** + * The style definition to be used to apply the "Address" format. + * @type Object + * @default { element : 'address' } + * @example + * config.format_address = { element : 'address', attributes : { 'class' : 'styledAddress' } }; + */ +CKEDITOR.config.format_address = { element : 'address' }; + +/** + * The style definition to be used to apply the "Heading 1" format. + * @type Object + * @default { element : 'h1' } + * @example + * config.format_h1 = { element : 'h1', attributes : { 'class' : 'contentTitle1' } }; + */ +CKEDITOR.config.format_h1 = { element : 'h1' }; + +/** + * The style definition to be used to apply the "Heading 1" format. + * @type Object + * @default { element : 'h2' } + * @example + * config.format_h2 = { element : 'h2', attributes : { 'class' : 'contentTitle2' } }; + */ +CKEDITOR.config.format_h2 = { element : 'h2' }; + +/** + * The style definition to be used to apply the "Heading 1" format. + * @type Object + * @default { element : 'h3' } + * @example + * config.format_h3 = { element : 'h3', attributes : { 'class' : 'contentTitle3' } }; + */ +CKEDITOR.config.format_h3 = { element : 'h3' }; + +/** + * The style definition to be used to apply the "Heading 1" format. + * @type Object + * @default { element : 'h4' } + * @example + * config.format_h4 = { element : 'h4', attributes : { 'class' : 'contentTitle4' } }; + */ +CKEDITOR.config.format_h4 = { element : 'h4' }; + +/** + * The style definition to be used to apply the "Heading 1" format. + * @type Object + * @default { element : 'h5' } + * @example + * config.format_h5 = { element : 'h5', attributes : { 'class' : 'contentTitle5' } }; + */ +CKEDITOR.config.format_h5 = { element : 'h5' }; + +/** + * The style definition to be used to apply the "Heading 1" format. + * @type Object + * @default { element : 'h6' } + * @example + * config.format_h6 = { element : 'h6', attributes : { 'class' : 'contentTitle6' } }; + */ +CKEDITOR.config.format_h6 = { element : 'h6' }; diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/button.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/button.js new file mode 100644 index 0000000000000000000000000000000000000000..abb6b8a326c0f1c16e3cd6f45ebffe90879dc65e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/button.js @@ -0,0 +1,118 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'button', function( editor ) +{ + function commitAttributes( element ) + { + var val = this.getValue(); + if ( val ) + { + element.attributes[ this.id ] = val; + if ( this.id == 'name' ) + element.attributes[ 'data-cke-saved-name' ] = val; + } + else + { + delete element.attributes[ this.id ]; + if ( this.id == 'name' ) + delete element.attributes[ 'data-cke-saved-name' ]; + } + } + + return { + title : editor.lang.button.title, + minWidth : 350, + minHeight : 150, + onShow : function() + { + delete this.button; + var element = this.getParentEditor().getSelection().getSelectedElement(); + if ( element && element.is( 'input' ) ) + { + var type = element.getAttribute( 'type' ); + if ( type in { button:1, reset:1, submit:1 } ) + { + this.button = element; + this.setupContent( element ); + } + } + }, + onOk : function() + { + var editor = this.getParentEditor(), + element = this.button, + isInsertMode = !element; + + var fake = element ? CKEDITOR.htmlParser.fragment.fromHtml( element.getOuterHtml() ).children[ 0 ] + : new CKEDITOR.htmlParser.element( 'input' ); + this.commitContent( fake ); + + var writer = new CKEDITOR.htmlParser.basicWriter(); + fake.writeHtml( writer ); + var newElement = CKEDITOR.dom.element.createFromHtml( writer.getHtml(), editor.document ); + + if ( isInsertMode ) + editor.insertElement( newElement ); + else + { + newElement.replace( element ); + editor.getSelection().selectElement( newElement ); + } + }, + contents : [ + { + id : 'info', + label : editor.lang.button.title, + title : editor.lang.button.title, + elements : [ + { + id : 'name', + type : 'text', + label : editor.lang.common.name, + 'default' : '', + setup : function( element ) + { + this.setValue( + element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + }, + commit : commitAttributes + }, + { + id : 'value', + type : 'text', + label : editor.lang.button.text, + accessKey : 'V', + 'default' : '', + setup : function( element ) + { + this.setValue( element.getAttribute( 'value' ) || '' ); + }, + commit : commitAttributes + }, + { + id : 'type', + type : 'select', + label : editor.lang.button.type, + 'default' : 'button', + accessKey : 'T', + items : + [ + [ editor.lang.button.typeBtn, 'button' ], + [ editor.lang.button.typeSbm, 'submit' ], + [ editor.lang.button.typeRst, 'reset' ] + ], + setup : function( element ) + { + this.setValue( element.getAttribute( 'type' ) || '' ); + }, + commit : commitAttributes + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/checkbox.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/checkbox.js new file mode 100644 index 0000000000000000000000000000000000000000..5a440465ed06584ff61d3683692dfd24c9189546 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/checkbox.js @@ -0,0 +1,153 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'checkbox', function( editor ) +{ + return { + title : editor.lang.checkboxAndRadio.checkboxTitle, + minWidth : 350, + minHeight : 140, + onShow : function() + { + delete this.checkbox; + + var element = this.getParentEditor().getSelection().getSelectedElement(); + + if ( element && element.getAttribute( 'type' ) == 'checkbox' ) + { + this.checkbox = element; + this.setupContent( element ); + } + }, + onOk : function() + { + var editor, + element = this.checkbox, + isInsertMode = !element; + + if ( isInsertMode ) + { + editor = this.getParentEditor(); + element = editor.document.createElement( 'input' ); + element.setAttribute( 'type', 'checkbox' ); + editor.insertElement( element ); + } + this.commitContent( { element : element } ); + }, + contents : [ + { + id : 'info', + label : editor.lang.checkboxAndRadio.checkboxTitle, + title : editor.lang.checkboxAndRadio.checkboxTitle, + startupFocus : 'txtName', + elements : [ + { + id : 'txtName', + type : 'text', + label : editor.lang.common.name, + 'default' : '', + accessKey : 'N', + setup : function( element ) + { + this.setValue( + element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + }, + commit : function( data ) + { + var element = data.element; + + // IE failed to update 'name' property on input elements, protect it now. + if ( this.getValue() ) + element.data( 'cke-saved-name', this.getValue() ); + else + { + element.data( 'cke-saved-name', false ); + element.removeAttribute( 'name' ); + } + } + }, + { + id : 'txtValue', + type : 'text', + label : editor.lang.checkboxAndRadio.value, + 'default' : '', + accessKey : 'V', + setup : function( element ) + { + var value = element.getAttribute( 'value' ); + // IE Return 'on' as default attr value. + this.setValue( CKEDITOR.env.ie && value == 'on' ? '' : value ); + }, + commit : function( data ) + { + var element = data.element, + value = this.getValue(); + + if ( value && !( CKEDITOR.env.ie && value == 'on' ) ) + element.setAttribute( 'value', value ); + else + { + if ( CKEDITOR.env.ie ) + { + // Remove attribute 'value' of checkbox (#4721). + var checkbox = new CKEDITOR.dom.element( 'input', element.getDocument() ); + element.copyAttributes( checkbox, { value: 1 } ); + checkbox.replace( element ); + editor.getSelection().selectElement( checkbox ); + data.element = checkbox; + } + else + element.removeAttribute( 'value' ); + } + } + }, + { + id : 'cmbSelected', + type : 'checkbox', + label : editor.lang.checkboxAndRadio.selected, + 'default' : '', + accessKey : 'S', + value : "checked", + setup : function( element ) + { + this.setValue( element.getAttribute( 'checked' ) ); + }, + commit : function( data ) + { + var element = data.element; + + if ( CKEDITOR.env.ie ) + { + var isElementChecked = !!element.getAttribute( 'checked' ), + isChecked = !!this.getValue(); + + if ( isElementChecked != isChecked ) + { + var replace = CKEDITOR.dom.element.createFromHtml( '<input type="checkbox"' + + ( isChecked ? ' checked="checked"' : '' ) + + '/>', editor.document ); + + element.copyAttributes( replace, { type : 1, checked : 1 } ); + replace.replace( element ); + editor.getSelection().selectElement( replace ); + data.element = replace; + } + } + else + { + var value = this.getValue(); + if ( value ) + element.setAttribute( 'checked', 'checked' ); + else + element.removeAttribute( 'checked' ); + } + } + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/form.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/form.js new file mode 100644 index 0000000000000000000000000000000000000000..c637ab36db8e85d2ddf83f2212e5447f6368c04d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/form.js @@ -0,0 +1,177 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'form', function( editor ) +{ + var autoAttributes = + { + action : 1, + id : 1, + method : 1, + enctype : 1, + target : 1 + }; + + return { + title : editor.lang.form.title, + minWidth : 350, + minHeight : 200, + onShow : function() + { + delete this.form; + + var element = this.getParentEditor().getSelection().getStartElement(); + var form = element && element.getAscendant( 'form', true ); + if ( form ) + { + this.form = form; + this.setupContent( form ); + } + }, + onOk : function() + { + var editor, + element = this.form, + isInsertMode = !element; + + if ( isInsertMode ) + { + editor = this.getParentEditor(); + element = editor.document.createElement( 'form' ); + !CKEDITOR.env.ie && element.append( editor.document.createElement( 'br' ) ); + } + + if ( isInsertMode ) + editor.insertElement( element ); + this.commitContent( element ); + }, + onLoad : function() + { + function autoSetup( element ) + { + this.setValue( element.getAttribute( this.id ) || '' ); + } + + function autoCommit( element ) + { + if ( this.getValue() ) + element.setAttribute( this.id, this.getValue() ); + else + element.removeAttribute( this.id ); + } + + this.foreach( function( contentObj ) + { + if ( autoAttributes[ contentObj.id ] ) + { + contentObj.setup = autoSetup; + contentObj.commit = autoCommit; + } + } ); + }, + contents : [ + { + id : 'info', + label : editor.lang.form.title, + title : editor.lang.form.title, + elements : [ + { + id : 'txtName', + type : 'text', + label : editor.lang.common.name, + 'default' : '', + accessKey : 'N', + setup : function( element ) + { + this.setValue( element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.data( 'cke-saved-name', this.getValue() ); + else + { + element.data( 'cke-saved-name', false ); + element.removeAttribute( 'name' ); + } + } + }, + { + id : 'action', + type : 'text', + label : editor.lang.form.action, + 'default' : '', + accessKey : 'T' + }, + { + type : 'hbox', + widths : [ '45%', '55%' ], + children : + [ + { + id : 'id', + type : 'text', + label : editor.lang.common.id, + 'default' : '', + accessKey : 'I' + }, + { + id : 'enctype', + type : 'select', + label : editor.lang.form.encoding, + style : 'width:100%', + accessKey : 'E', + 'default' : '', + items : + [ + [ '' ], + [ 'text/plain' ], + [ 'multipart/form-data' ], + [ 'application/x-www-form-urlencoded' ] + ] + } + ] + }, + { + type : 'hbox', + widths : [ '45%', '55%' ], + children : + [ + { + id : 'target', + type : 'select', + label : editor.lang.common.target, + style : 'width:100%', + accessKey : 'M', + 'default' : '', + items : + [ + [ editor.lang.common.notSet, '' ], + [ editor.lang.common.targetNew, '_blank' ], + [ editor.lang.common.targetTop, '_top' ], + [ editor.lang.common.targetSelf, '_self' ], + [ editor.lang.common.targetParent, '_parent' ] + ] + }, + { + id : 'method', + type : 'select', + label : editor.lang.form.method, + accessKey : 'M', + 'default' : 'GET', + items : + [ + [ 'GET', 'get' ], + [ 'POST', 'post' ] + ] + } + ] + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js new file mode 100644 index 0000000000000000000000000000000000000000..2f629a916a1624643219e6c7984e6b0671c0b117 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js @@ -0,0 +1,100 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'hiddenfield', function( editor ) +{ + return { + title : editor.lang.hidden.title, + hiddenField : null, + minWidth : 350, + minHeight : 110, + onShow : function() + { + delete this.hiddenField; + + var editor = this.getParentEditor(), + selection = editor.getSelection(), + element = selection.getSelectedElement(); + + if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' ) == 'hiddenfield' ) + { + this.hiddenField = element; + element = editor.restoreRealElement( this.hiddenField ); + this.setupContent( element ); + selection.selectElement( this.hiddenField ); + } + }, + onOk : function() + { + var name = this.getValueOf( 'info', '_cke_saved_name' ), + value = this.getValueOf( 'info', 'value' ), + editor = this.getParentEditor(), + element = CKEDITOR.env.ie && !( CKEDITOR.document.$.documentMode >= 8 ) ? + editor.document.createElement( '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' ) + : editor.document.createElement( 'input' ); + + element.setAttribute( 'type', 'hidden' ); + this.commitContent( element ); + var fakeElement = editor.createFakeElement( element, 'cke_hidden', 'hiddenfield' ); + if ( !this.hiddenField ) + editor.insertElement( fakeElement ); + else + { + fakeElement.replace( this.hiddenField ); + editor.getSelection().selectElement( fakeElement ); + } + return true; + }, + contents : [ + { + id : 'info', + label : editor.lang.hidden.title, + title : editor.lang.hidden.title, + elements : [ + { + id : '_cke_saved_name', + type : 'text', + label : editor.lang.hidden.name, + 'default' : '', + accessKey : 'N', + setup : function( element ) + { + this.setValue( + element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.setAttribute( 'name', this.getValue() ); + else + { + element.removeAttribute( 'name' ); + } + } + }, + { + id : 'value', + type : 'text', + label : editor.lang.hidden.value, + 'default' : '', + accessKey : 'V', + setup : function( element ) + { + this.setValue( element.getAttribute( 'value' ) || '' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.setAttribute( 'value', this.getValue() ); + else + element.removeAttribute( 'value' ); + } + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/radio.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/radio.js new file mode 100644 index 0000000000000000000000000000000000000000..9ea06733e156b18af21aedc3414c2bea8cd5b5b2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/radio.js @@ -0,0 +1,135 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'radio', function( editor ) +{ + return { + title : editor.lang.checkboxAndRadio.radioTitle, + minWidth : 350, + minHeight : 140, + onShow : function() + { + delete this.radioButton; + + var element = this.getParentEditor().getSelection().getSelectedElement(); + if ( element && element.getName() == 'input' && element.getAttribute( 'type' ) == 'radio' ) + { + this.radioButton = element; + this.setupContent( element ); + } + }, + onOk : function() + { + var editor, + element = this.radioButton, + isInsertMode = !element; + + if ( isInsertMode ) + { + editor = this.getParentEditor(); + element = editor.document.createElement( 'input' ); + element.setAttribute( 'type', 'radio' ); + } + + if ( isInsertMode ) + editor.insertElement( element ); + this.commitContent( { element : element } ); + }, + contents : [ + { + id : 'info', + label : editor.lang.checkboxAndRadio.radioTitle, + title : editor.lang.checkboxAndRadio.radioTitle, + elements : [ + { + id : 'name', + type : 'text', + label : editor.lang.common.name, + 'default' : '', + accessKey : 'N', + setup : function( element ) + { + this.setValue( + element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + }, + commit : function( data ) + { + var element = data.element; + + if ( this.getValue() ) + element.data( 'cke-saved-name', this.getValue() ); + else + { + element.data( 'cke-saved-name', false ); + element.removeAttribute( 'name' ); + } + } + }, + { + id : 'value', + type : 'text', + label : editor.lang.checkboxAndRadio.value, + 'default' : '', + accessKey : 'V', + setup : function( element ) + { + this.setValue( element.getAttribute( 'value' ) || '' ); + }, + commit : function( data ) + { + var element = data.element; + + if ( this.getValue() ) + element.setAttribute( 'value', this.getValue() ); + else + element.removeAttribute( 'value' ); + } + }, + { + id : 'checked', + type : 'checkbox', + label : editor.lang.checkboxAndRadio.selected, + 'default' : '', + accessKey : 'S', + value : "checked", + setup : function( element ) + { + this.setValue( element.getAttribute( 'checked' ) ); + }, + commit : function( data ) + { + var element = data.element; + + if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera ) ) + { + if ( this.getValue() ) + element.setAttribute( 'checked', 'checked' ); + else + element.removeAttribute( 'checked' ); + } + else + { + var isElementChecked = element.getAttribute( 'checked' ); + var isChecked = !!this.getValue(); + + if ( isElementChecked != isChecked ) + { + var replace = CKEDITOR.dom.element.createFromHtml( '<input type="radio"' + + ( isChecked ? ' checked="checked"' : '' ) + + '></input>', editor.document ); + element.copyAttributes( replace, { type : 1, checked : 1 } ); + replace.replace( element ); + editor.getSelection().selectElement( replace ); + data.element = replace; + } + } + } + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/select.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/select.js new file mode 100644 index 0000000000000000000000000000000000000000..0117ec9cff9f511750241293d8a099cb2abe2b47 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/select.js @@ -0,0 +1,558 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'select', function( editor ) +{ + // Add a new option to a SELECT object (combo or list). + function addOption( combo, optionText, optionValue, documentObject, index ) + { + combo = getSelect( combo ); + var oOption; + if ( documentObject ) + oOption = documentObject.createElement( "OPTION" ); + else + oOption = document.createElement( "OPTION" ); + + if ( combo && oOption && oOption.getName() == 'option' ) + { + if ( CKEDITOR.env.ie ) { + if ( !isNaN( parseInt( index, 10) ) ) + combo.$.options.add( oOption.$, index ); + else + combo.$.options.add( oOption.$ ); + + oOption.$.innerHTML = optionText.length > 0 ? optionText : ''; + oOption.$.value = optionValue; + } + else + { + if ( index !== null && index < combo.getChildCount() ) + combo.getChild( index < 0 ? 0 : index ).insertBeforeMe( oOption ); + else + combo.append( oOption ); + + oOption.setText( optionText.length > 0 ? optionText : '' ); + oOption.setValue( optionValue ); + } + } + else + return false; + + return oOption; + } + // Remove all selected options from a SELECT object. + function removeSelectedOptions( combo ) + { + combo = getSelect( combo ); + + // Save the selected index + var iSelectedIndex = getSelectedIndex( combo ); + + // Remove all selected options. + for ( var i = combo.getChildren().count() - 1 ; i >= 0 ; i-- ) + { + if ( combo.getChild( i ).$.selected ) + combo.getChild( i ).remove(); + } + + // Reset the selection based on the original selected index. + setSelectedIndex( combo, iSelectedIndex ); + } + //Modify option from a SELECT object. + function modifyOption( combo, index, title, value ) + { + combo = getSelect( combo ); + if ( index < 0 ) + return false; + var child = combo.getChild( index ); + child.setText( title ); + child.setValue( value ); + return child; + } + function removeAllOptions( combo ) + { + combo = getSelect( combo ); + while ( combo.getChild( 0 ) && combo.getChild( 0 ).remove() ) + { /*jsl:pass*/ } + } + // Moves the selected option by a number of steps (also negative). + function changeOptionPosition( combo, steps, documentObject ) + { + combo = getSelect( combo ); + var iActualIndex = getSelectedIndex( combo ); + if ( iActualIndex < 0 ) + return false; + + var iFinalIndex = iActualIndex + steps; + iFinalIndex = ( iFinalIndex < 0 ) ? 0 : iFinalIndex; + iFinalIndex = ( iFinalIndex >= combo.getChildCount() ) ? combo.getChildCount() - 1 : iFinalIndex; + + if ( iActualIndex == iFinalIndex ) + return false; + + var oOption = combo.getChild( iActualIndex ), + sText = oOption.getText(), + sValue = oOption.getValue(); + + oOption.remove(); + + oOption = addOption( combo, sText, sValue, ( !documentObject ) ? null : documentObject, iFinalIndex ); + setSelectedIndex( combo, iFinalIndex ); + return oOption; + } + function getSelectedIndex( combo ) + { + combo = getSelect( combo ); + return combo ? combo.$.selectedIndex : -1; + } + function setSelectedIndex( combo, index ) + { + combo = getSelect( combo ); + if ( index < 0 ) + return null; + var count = combo.getChildren().count(); + combo.$.selectedIndex = ( index >= count ) ? ( count - 1 ) : index; + return combo; + } + function getOptions( combo ) + { + combo = getSelect( combo ); + return combo ? combo.getChildren() : false; + } + function getSelect( obj ) + { + if ( obj && obj.domId && obj.getInputElement().$ ) // Dialog element. + return obj.getInputElement(); + else if ( obj && obj.$ ) + return obj; + return false; + } + + return { + title : editor.lang.select.title, + minWidth : CKEDITOR.env.ie ? 460 : 395, + minHeight : CKEDITOR.env.ie ? 320 : 300, + onShow : function() + { + delete this.selectBox; + this.setupContent( 'clear' ); + var element = this.getParentEditor().getSelection().getSelectedElement(); + if ( element && element.getName() == "select" ) + { + this.selectBox = element; + this.setupContent( element.getName(), element ); + + // Load Options into dialog. + var objOptions = getOptions( element ); + for ( var i = 0 ; i < objOptions.count() ; i++ ) + this.setupContent( 'option', objOptions.getItem( i ) ); + } + }, + onOk : function() + { + var editor = this.getParentEditor(), + element = this.selectBox, + isInsertMode = !element; + + if ( isInsertMode ) + element = editor.document.createElement( 'select' ); + this.commitContent( element ); + + if ( isInsertMode ) + { + editor.insertElement( element ); + if ( CKEDITOR.env.ie ) + { + var sel = editor.getSelection(), + bms = sel.createBookmarks(); + setTimeout(function() + { + sel.selectBookmarks( bms ); + }, 0 ); + } + } + }, + contents : [ + { + id : 'info', + label : editor.lang.select.selectInfo, + title : editor.lang.select.selectInfo, + accessKey : '', + elements : [ + { + id : 'txtName', + type : 'text', + widths : [ '25%','75%' ], + labelLayout : 'horizontal', + label : editor.lang.common.name, + 'default' : '', + accessKey : 'N', + style : 'width:350px', + setup : function( name, element ) + { + if ( name == 'clear' ) + this.setValue( this[ 'default' ] || '' ); + else if ( name == 'select' ) + { + this.setValue( + element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + } + }, + commit : function( element ) + { + if ( this.getValue() ) + element.data( 'cke-saved-name', this.getValue() ); + else + { + element.data( 'cke-saved-name', false ); + element.removeAttribute( 'name' ); + } + } + }, + { + id : 'txtValue', + type : 'text', + widths : [ '25%','75%' ], + labelLayout : 'horizontal', + label : editor.lang.select.value, + style : 'width:350px', + 'default' : '', + className : 'cke_disabled', + onLoad : function() + { + this.getInputElement().setAttribute( 'readOnly', true ); + }, + setup : function( name, element ) + { + if ( name == 'clear' ) + this.setValue( '' ); + else if ( name == 'option' && element.getAttribute( 'selected' ) ) + this.setValue( element.$.value ); + } + }, + { + type : 'hbox', + widths : [ '175px', '170px' ], + children : + [ + { + id : 'txtSize', + type : 'text', + labelLayout : 'horizontal', + label : editor.lang.select.size, + 'default' : '', + accessKey : 'S', + style : 'width:175px', + validate: function() + { + var func = CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ); + return ( ( this.getValue() === '' ) || func.apply( this ) ); + }, + setup : function( name, element ) + { + if ( name == 'select' ) + this.setValue( element.getAttribute( 'size' ) || '' ); + if ( CKEDITOR.env.webkit ) + this.getInputElement().setStyle( 'width', '86px' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.setAttribute( 'size', this.getValue() ); + else + element.removeAttribute( 'size' ); + } + }, + { + type : 'html', + html : '<span>' + CKEDITOR.tools.htmlEncode( editor.lang.select.lines ) + '</span>' + } + ] + }, + { + type : 'html', + html : '<span>' + CKEDITOR.tools.htmlEncode( editor.lang.select.opAvail ) + '</span>' + }, + { + type : 'hbox', + widths : [ '115px', '115px' ,'100px' ], + children : + [ + { + type : 'vbox', + children : + [ + { + id : 'txtOptName', + type : 'text', + label : editor.lang.select.opText, + style : 'width:115px', + setup : function( name, element ) + { + if ( name == 'clear' ) + this.setValue( "" ); + } + }, + { + type : 'select', + id : 'cmbName', + label : '', + title : '', + size : 5, + style : 'width:115px;height:75px', + items : [], + onChange : function() + { + var dialog = this.getDialog(), + values = dialog.getContentElement( 'info', 'cmbValue' ), + optName = dialog.getContentElement( 'info', 'txtOptName' ), + optValue = dialog.getContentElement( 'info', 'txtOptValue' ), + iIndex = getSelectedIndex( this ); + + setSelectedIndex( values, iIndex ); + optName.setValue( this.getValue() ); + optValue.setValue( values.getValue() ); + }, + setup : function( name, element ) + { + if ( name == 'clear' ) + removeAllOptions( this ); + else if ( name == 'option' ) + addOption( this, element.getText(), element.getText(), + this.getDialog().getParentEditor().document ); + }, + commit : function( element ) + { + var dialog = this.getDialog(), + optionsNames = getOptions( this ), + optionsValues = getOptions( dialog.getContentElement( 'info', 'cmbValue' ) ), + selectValue = dialog.getContentElement( 'info', 'txtValue' ).getValue(); + + removeAllOptions( element ); + + for ( var i = 0 ; i < optionsNames.count() ; i++ ) + { + var oOption = addOption( element, optionsNames.getItem( i ).getValue(), + optionsValues.getItem( i ).getValue(), dialog.getParentEditor().document ); + if ( optionsValues.getItem( i ).getValue() == selectValue ) + { + oOption.setAttribute( 'selected', 'selected' ); + oOption.selected = true; + } + } + } + } + ] + }, + { + type : 'vbox', + children : + [ + { + id : 'txtOptValue', + type : 'text', + label : editor.lang.select.opValue, + style : 'width:115px', + setup : function( name, element ) + { + if ( name == 'clear' ) + this.setValue( "" ); + } + }, + { + type : 'select', + id : 'cmbValue', + label : '', + size : 5, + style : 'width:115px;height:75px', + items : [], + onChange : function() + { + var dialog = this.getDialog(), + names = dialog.getContentElement( 'info', 'cmbName' ), + optName = dialog.getContentElement( 'info', 'txtOptName' ), + optValue = dialog.getContentElement( 'info', 'txtOptValue' ), + iIndex = getSelectedIndex( this ); + + setSelectedIndex( names, iIndex ); + optName.setValue( names.getValue() ); + optValue.setValue( this.getValue() ); + }, + setup : function( name, element ) + { + if ( name == 'clear' ) + removeAllOptions( this ); + else if ( name == 'option' ) + { + var oValue = element.getValue(); + addOption( this, oValue, oValue, + this.getDialog().getParentEditor().document ); + if ( element.getAttribute( 'selected' ) == 'selected' ) + this.getDialog().getContentElement( 'info', 'txtValue' ).setValue( oValue ); + } + } + } + ] + }, + { + type : 'vbox', + padding : 5, + children : + [ + { + type : 'button', + id : 'btnAdd', + style : '', + label : editor.lang.select.btnAdd, + title : editor.lang.select.btnAdd, + style : 'width:100%;', + onClick : function() + { + //Add new option. + var dialog = this.getDialog(), + parentEditor = dialog.getParentEditor(), + optName = dialog.getContentElement( 'info', 'txtOptName' ), + optValue = dialog.getContentElement( 'info', 'txtOptValue' ), + names = dialog.getContentElement( 'info', 'cmbName' ), + values = dialog.getContentElement( 'info', 'cmbValue' ); + + addOption(names, optName.getValue(), optName.getValue(), dialog.getParentEditor().document ); + addOption(values, optValue.getValue(), optValue.getValue(), dialog.getParentEditor().document ); + + optName.setValue( "" ); + optValue.setValue( "" ); + } + }, + { + type : 'button', + id : 'btnModify', + label : editor.lang.select.btnModify, + title : editor.lang.select.btnModify, + style : 'width:100%;', + onClick : function() + { + //Modify selected option. + var dialog = this.getDialog(), + optName = dialog.getContentElement( 'info', 'txtOptName' ), + optValue = dialog.getContentElement( 'info', 'txtOptValue' ), + names = dialog.getContentElement( 'info', 'cmbName' ), + values = dialog.getContentElement( 'info', 'cmbValue' ), + iIndex = getSelectedIndex( names ); + + if ( iIndex >= 0 ) + { + modifyOption( names, iIndex, optName.getValue(), optName.getValue() ); + modifyOption( values, iIndex, optValue.getValue(), optValue.getValue() ); + } + } + }, + { + type : 'button', + id : 'btnUp', + style : 'width:100%;', + label : editor.lang.select.btnUp, + title : editor.lang.select.btnUp, + onClick : function() + { + //Move up. + var dialog = this.getDialog(), + names = dialog.getContentElement( 'info', 'cmbName' ), + values = dialog.getContentElement( 'info', 'cmbValue' ); + + changeOptionPosition( names, -1, dialog.getParentEditor().document ); + changeOptionPosition( values, -1, dialog.getParentEditor().document ); + } + }, + { + type : 'button', + id : 'btnDown', + style : 'width:100%;', + label : editor.lang.select.btnDown, + title : editor.lang.select.btnDown, + onClick : function() + { + //Move down. + var dialog = this.getDialog(), + names = dialog.getContentElement( 'info', 'cmbName' ), + values = dialog.getContentElement( 'info', 'cmbValue' ); + + changeOptionPosition( names, 1, dialog.getParentEditor().document ); + changeOptionPosition( values, 1, dialog.getParentEditor().document ); + } + } + ] + } + ] + }, + { + type : 'hbox', + widths : [ '40%', '20%', '40%' ], + children : + [ + { + type : 'button', + id : 'btnSetValue', + label : editor.lang.select.btnSetValue, + title : editor.lang.select.btnSetValue, + onClick : function() + { + //Set as default value. + var dialog = this.getDialog(), + values = dialog.getContentElement( 'info', 'cmbValue' ), + txtValue = dialog.getContentElement( 'info', 'txtValue' ); + txtValue.setValue( values.getValue() ); + } + }, + { + type : 'button', + id : 'btnDelete', + label : editor.lang.select.btnDelete, + title : editor.lang.select.btnDelete, + onClick : function() + { + // Delete option. + var dialog = this.getDialog(), + names = dialog.getContentElement( 'info', 'cmbName' ), + values = dialog.getContentElement( 'info', 'cmbValue' ), + optName = dialog.getContentElement( 'info', 'txtOptName' ), + optValue = dialog.getContentElement( 'info', 'txtOptValue' ); + + removeSelectedOptions( names ); + removeSelectedOptions( values ); + + optName.setValue( "" ); + optValue.setValue( "" ); + } + }, + { + id : 'chkMulti', + type : 'checkbox', + label : editor.lang.select.chkMulti, + 'default' : '', + accessKey : 'M', + value : "checked", + setup : function( name, element ) + { + if ( name == 'select' ) + this.setValue( element.getAttribute( 'multiple' ) ); + if ( CKEDITOR.env.webkit ) + this.getElement().getParent().setStyle( 'vertical-align', 'middle' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.setAttribute( 'multiple', this.getValue() ); + else + element.removeAttribute( 'multiple' ); + } + } + ] + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/textarea.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/textarea.js new file mode 100644 index 0000000000000000000000000000000000000000..cae945dd59ccfcaf55456d3b63de27449d5e51ae --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/textarea.js @@ -0,0 +1,135 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'textarea', function( editor ) +{ + return { + title : editor.lang.textarea.title, + minWidth : 350, + minHeight : 220, + onShow : function() + { + delete this.textarea; + + var element = this.getParentEditor().getSelection().getSelectedElement(); + if ( element && element.getName() == "textarea" ) + { + this.textarea = element; + this.setupContent( element ); + } + }, + onOk : function() + { + var editor, + element = this.textarea, + isInsertMode = !element; + + if ( isInsertMode ) + { + editor = this.getParentEditor(); + element = editor.document.createElement( 'textarea' ); + } + this.commitContent( element ); + + if ( isInsertMode ) + editor.insertElement( element ); + }, + contents : [ + { + id : 'info', + label : editor.lang.textarea.title, + title : editor.lang.textarea.title, + elements : [ + { + id : '_cke_saved_name', + type : 'text', + label : editor.lang.common.name, + 'default' : '', + accessKey : 'N', + setup : function( element ) + { + this.setValue( + element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.data( 'cke-saved-name', this.getValue() ); + else + { + element.data( 'cke-saved-name', false ); + element.removeAttribute( 'name' ); + } + } + }, + { + type : 'hbox', + widths:['50%','50%'], + children:[ + { + id : 'cols', + type : 'text', + label : editor.lang.textarea.cols, + 'default' : '', + accessKey : 'C', + style : 'width:50px', + validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ), + setup : function( element ) + { + var value = element.hasAttribute( 'cols' ) && element.getAttribute( 'cols' ); + this.setValue( value || '' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.setAttribute( 'cols', this.getValue() ); + else + element.removeAttribute( 'cols' ); + } + }, + { + id : 'rows', + type : 'text', + label : editor.lang.textarea.rows, + 'default' : '', + accessKey : 'R', + style : 'width:50px', + validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ), + setup : function( element ) + { + var value = element.hasAttribute( 'rows' ) && element.getAttribute( 'rows' ); + this.setValue( value || '' ); + }, + commit : function( element ) + { + if ( this.getValue() ) + element.setAttribute( 'rows', this.getValue() ); + else + element.removeAttribute( 'rows' ); + } + } + ] + }, + { + id : 'value', + type : 'textarea', + label : editor.lang.textfield.value, + 'default' : '', + setup : function( element ) + { + this.setValue( element.$.defaultValue ); + }, + commit : function( element ) + { + element.$.value = element.$.defaultValue = this.getValue() ; + } + } + + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/textfield.js b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/textfield.js new file mode 100644 index 0000000000000000000000000000000000000000..877edb8ad21d4428410d38f2204c1342c2fb8007 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/dialogs/textfield.js @@ -0,0 +1,199 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add( 'textfield', function( editor ) +{ + var autoAttributes = + { + value : 1, + size : 1, + maxLength : 1 + }; + + var acceptedTypes = + { + text : 1, + password : 1 + }; + + return { + title : editor.lang.textfield.title, + minWidth : 350, + minHeight : 150, + onShow : function() + { + delete this.textField; + + var element = this.getParentEditor().getSelection().getSelectedElement(); + if ( element && element.getName() == "input" && + ( acceptedTypes[ element.getAttribute( 'type' ) ] || !element.getAttribute( 'type' ) ) ) + { + this.textField = element; + this.setupContent( element ); + } + }, + onOk : function() + { + var editor, + element = this.textField, + isInsertMode = !element; + + if ( isInsertMode ) + { + editor = this.getParentEditor(); + element = editor.document.createElement( 'input' ); + element.setAttribute( 'type', 'text' ); + } + + if ( isInsertMode ) + editor.insertElement( element ); + this.commitContent( { element : element } ); + }, + onLoad : function() + { + var autoSetup = function( element ) + { + var value = element.hasAttribute( this.id ) && element.getAttribute( this.id ); + this.setValue( value || '' ); + }; + + var autoCommit = function( data ) + { + var element = data.element; + var value = this.getValue(); + + if ( value ) + element.setAttribute( this.id, value ); + else + element.removeAttribute( this.id ); + }; + + this.foreach( function( contentObj ) + { + if ( autoAttributes[ contentObj.id ] ) + { + contentObj.setup = autoSetup; + contentObj.commit = autoCommit; + } + } ); + }, + contents : [ + { + id : 'info', + label : editor.lang.textfield.title, + title : editor.lang.textfield.title, + elements : [ + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + id : '_cke_saved_name', + type : 'text', + label : editor.lang.textfield.name, + 'default' : '', + accessKey : 'N', + setup : function( element ) + { + this.setValue( + element.data( 'cke-saved-name' ) || + element.getAttribute( 'name' ) || + '' ); + }, + commit : function( data ) + { + var element = data.element; + + if ( this.getValue() ) + element.data( 'cke-saved-name', this.getValue() ); + else + { + element.data( 'cke-saved-name', false ); + element.removeAttribute( 'name' ); + } + } + }, + { + id : 'value', + type : 'text', + label : editor.lang.textfield.value, + 'default' : '', + accessKey : 'V' + } + ] + }, + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + id : 'size', + type : 'text', + label : editor.lang.textfield.charWidth, + 'default' : '', + accessKey : 'C', + style : 'width:50px', + validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ) + }, + { + id : 'maxLength', + type : 'text', + label : editor.lang.textfield.maxChars, + 'default' : '', + accessKey : 'M', + style : 'width:50px', + validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ) + } + ], + onLoad : function() + { + // Repaint the style for IE7 (#6068) + if ( CKEDITOR.env.ie7Compat ) + this.getElement().setStyle( 'zoom', '100%' ); + } + }, + { + id : 'type', + type : 'select', + label : editor.lang.textfield.type, + 'default' : 'text', + accessKey : 'M', + items : + [ + [ editor.lang.textfield.typeText, 'text' ], + [ editor.lang.textfield.typePass, 'password' ] + ], + setup : function( element ) + { + this.setValue( element.getAttribute( 'type' ) ); + }, + commit : function( data ) + { + var element = data.element; + + if ( CKEDITOR.env.ie ) + { + var elementType = element.getAttribute( 'type' ); + var myType = this.getValue(); + + if ( elementType != myType ) + { + var replace = CKEDITOR.dom.element.createFromHtml( '<input type="' + myType + '"></input>', editor.document ); + element.copyAttributes( replace, { type : 1 } ); + replace.replace( element ); + editor.getSelection().selectElement( replace ); + data.element = replace; + } + } + else + element.setAttribute( 'type', this.getValue() ); + } + } + ] + } + ] + }; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/images/hiddenfield.gif b/htdocs/includes/ckeditor/_source/plugins/forms/images/hiddenfield.gif new file mode 100644 index 0000000000000000000000000000000000000000..953f643b60032c36ac92590950577c336f133512 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/forms/images/hiddenfield.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/forms/plugin.js b/htdocs/includes/ckeditor/_source/plugins/forms/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..233fe91104c65ee62b8ff825e2058d5bd2ad05cd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/forms/plugin.js @@ -0,0 +1,289 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Forms Plugin + */ + +CKEDITOR.plugins.add( 'forms', +{ + requires : [ 'dialog' ], + init : function( editor ) + { + var lang = editor.lang; + + editor.addCss( + 'form' + + '{' + + 'border: 1px dotted #FF0000;' + + 'padding: 2px;' + + '}\n' ); + + editor.addCss( + 'img.cke_hidden' + + '{' + + 'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/hiddenfield.gif' ) + ');' + + 'background-position: center center;' + + 'background-repeat: no-repeat;' + + 'border: 1px solid #a9a9a9;' + + 'width: 16px !important;' + + 'height: 16px !important;' + + '}' ); + + // All buttons use the same code to register. So, to avoid + // duplications, let's use this tool function. + var addButtonCommand = function( buttonName, commandName, dialogFile ) + { + editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) ); + + editor.ui.addButton( buttonName, + { + label : lang.common[ buttonName.charAt(0).toLowerCase() + buttonName.slice(1) ], + command : commandName + }); + CKEDITOR.dialog.add( commandName, dialogFile ); + }; + + var dialogPath = this.path + 'dialogs/'; + addButtonCommand( 'Form', 'form', dialogPath + 'form.js' ); + addButtonCommand( 'Checkbox', 'checkbox', dialogPath + 'checkbox.js' ); + addButtonCommand( 'Radio', 'radio', dialogPath + 'radio.js' ); + addButtonCommand( 'TextField', 'textfield', dialogPath + 'textfield.js' ); + addButtonCommand( 'Textarea', 'textarea', dialogPath + 'textarea.js' ); + addButtonCommand( 'Select', 'select', dialogPath + 'select.js' ); + addButtonCommand( 'Button', 'button', dialogPath + 'button.js' ); + addButtonCommand( 'ImageButton', 'imagebutton', CKEDITOR.plugins.getPath('image') + 'dialogs/image.js' ); + addButtonCommand( 'HiddenField', 'hiddenfield', dialogPath + 'hiddenfield.js' ); + + // If the "menu" plugin is loaded, register the menu items. + if ( editor.addMenuItems ) + { + editor.addMenuItems( + { + form : + { + label : lang.form.menu, + command : 'form', + group : 'form' + }, + + checkbox : + { + label : lang.checkboxAndRadio.checkboxTitle, + command : 'checkbox', + group : 'checkbox' + }, + + radio : + { + label : lang.checkboxAndRadio.radioTitle, + command : 'radio', + group : 'radio' + }, + + textfield : + { + label : lang.textfield.title, + command : 'textfield', + group : 'textfield' + }, + + hiddenfield : + { + label : lang.hidden.title, + command : 'hiddenfield', + group : 'hiddenfield' + }, + + imagebutton : + { + label : lang.image.titleButton, + command : 'imagebutton', + group : 'imagebutton' + }, + + button : + { + label : lang.button.title, + command : 'button', + group : 'button' + }, + + select : + { + label : lang.select.title, + command : 'select', + group : 'select' + }, + + textarea : + { + label : lang.textarea.title, + command : 'textarea', + group : 'textarea' + } + }); + } + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element ) + { + if ( element && element.hasAscendant( 'form', true ) && !element.isReadOnly() ) + return { form : CKEDITOR.TRISTATE_OFF }; + }); + + editor.contextMenu.addListener( function( element ) + { + if ( element && !element.isReadOnly() ) + { + var name = element.getName(); + + if ( name == 'select' ) + return { select : CKEDITOR.TRISTATE_OFF }; + + if ( name == 'textarea' ) + return { textarea : CKEDITOR.TRISTATE_OFF }; + + if ( name == 'input' ) + { + switch( element.getAttribute( 'type' ) ) + { + case 'button' : + case 'submit' : + case 'reset' : + return { button : CKEDITOR.TRISTATE_OFF }; + + case 'checkbox' : + return { checkbox : CKEDITOR.TRISTATE_OFF }; + + case 'radio' : + return { radio : CKEDITOR.TRISTATE_OFF }; + + case 'image' : + return { imagebutton : CKEDITOR.TRISTATE_OFF }; + + default : + return { textfield : CKEDITOR.TRISTATE_OFF }; + } + } + + if ( name == 'img' && element.data( 'cke-real-element-type' ) == 'hiddenfield' ) + return { hiddenfield : CKEDITOR.TRISTATE_OFF }; + } + }); + } + + editor.on( 'doubleclick', function( evt ) + { + var element = evt.data.element; + + if ( element.is( 'form' ) ) + evt.data.dialog = 'form'; + else if ( element.is( 'select' ) ) + evt.data.dialog = 'select'; + else if ( element.is( 'textarea' ) ) + evt.data.dialog = 'textarea'; + else if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'hiddenfield' ) + evt.data.dialog = 'hiddenfield'; + else if ( element.is( 'input' ) ) + { + switch ( element.getAttribute( 'type' ) ) + { + case 'button' : + case 'submit' : + case 'reset' : + evt.data.dialog = 'button'; + break; + case 'checkbox' : + evt.data.dialog = 'checkbox'; + break; + case 'radio' : + evt.data.dialog = 'radio'; + break; + case 'image' : + evt.data.dialog = 'imagebutton'; + break; + default : + evt.data.dialog = 'textfield'; + break; + } + } + }); + }, + + afterInit : function( editor ) + { + var dataProcessor = editor.dataProcessor, + htmlFilter = dataProcessor && dataProcessor.htmlFilter, + dataFilter = dataProcessor && dataProcessor.dataFilter; + + // Cleanup certain IE form elements default values. + if ( CKEDITOR.env.ie ) + { + htmlFilter && htmlFilter.addRules( + { + elements : + { + input : function( input ) + { + var attrs = input.attributes, + type = attrs.type; + // Old IEs don't provide type for Text inputs #5522 + if ( !type ) + attrs.type = 'text'; + if ( type == 'checkbox' || type == 'radio' ) + attrs.value == 'on' && delete attrs.value; + } + } + } ); + } + + if ( dataFilter ) + { + dataFilter.addRules( + { + elements : + { + input : function( element ) + { + if ( element.attributes.type == 'hidden' ) + return editor.createFakeParserElement( element, 'cke_hidden', 'hiddenfield' ); + } + } + } ); + } + }, + requires : [ 'image', 'fakeobjects' ] +} ); + +if ( CKEDITOR.env.ie ) +{ + CKEDITOR.dom.element.prototype.hasAttribute = CKEDITOR.tools.override( CKEDITOR.dom.element.prototype.hasAttribute, + function( original ) + { + return function( name ) + { + var $attr = this.$.attributes.getNamedItem( name ); + + if ( this.getName() == 'input' ) + { + switch ( name ) + { + case 'class' : + return this.$.className.length > 0; + case 'checked' : + return !!this.$.checked; + case 'value' : + var type = this.getAttribute( 'type' ); + return type == 'checkbox' || type == 'radio' ? this.$.value != 'on' : this.$.value; + } + } + + return original.apply( this, arguments ); + }; + }); +} diff --git a/htdocs/includes/ckeditor/_source/plugins/horizontalrule/plugin.js b/htdocs/includes/ckeditor/_source/plugins/horizontalrule/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..bdf94531af42effcefd1327ba6c4568544bfb09a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/horizontalrule/plugin.js @@ -0,0 +1,37 @@ +/* +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 + }); + } + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/htmldataprocessor/plugin.js b/htdocs/includes/ckeditor/_source/plugins/htmldataprocessor/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..ecf87ed45212310349d1f2696abad5e95bdd39b4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/htmldataprocessor/plugin.js @@ -0,0 +1,600 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + // Regex to scan for at the end of blocks, which are actually placeholders. + // Safari transforms the to \xa0. (#4172) + var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/; + + var protectedSourceMarker = '{cke_protected}'; + + // Return the last non-space child node of the block (#4344). + function lastNoneSpaceChild( block ) + { + var lastIndex = block.children.length, + last = block.children[ lastIndex - 1 ]; + while ( last && last.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.trim( last.value ) ) + last = block.children[ --lastIndex ]; + return last; + } + + function trimFillers( block, fromSource ) + { + // If the current node is a block, and if we're converting from source or + // we're not in IE then search for and remove any tailing BR node. + // + // Also, any at the end of blocks are fillers, remove them as well. + // (#2886) + var children = block.children, lastChild = lastNoneSpaceChild( block ); + if ( lastChild ) + { + if ( ( fromSource || !CKEDITOR.env.ie ) && lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br' ) + children.pop(); + if ( lastChild.type == CKEDITOR.NODE_TEXT && tailNbspRegex.test( lastChild.value ) ) + children.pop(); + } + } + + function blockNeedsExtension( block, fromSource, extendEmptyBlock ) + { + if( !fromSource && ( !extendEmptyBlock || + typeof extendEmptyBlock == 'function' && ( extendEmptyBlock( block ) === false ) ) ) + return false; + + // 1. For IE version >=8, empty blocks are displayed correctly themself in wysiwiyg; + // 2. For the rest, at least table cell and list item need no filler space. + // (#6248) + if ( fromSource && CKEDITOR.env.ie && + ( document.documentMode > 7 + || block.name in CKEDITOR.dtd.tr + || block.name in CKEDITOR.dtd.$listItem ) ) + return false; + + var lastChild = lastNoneSpaceChild( block ); + + return !lastChild || lastChild && + ( lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br' + // Some of the controls in form needs extension too, + // to move cursor at the end of the form. (#4791) + || block.name == 'form' && lastChild.name == 'input' ); + } + + function getBlockExtension( isOutput, emptyBlockFiller ) + { + return function( node ) + { + trimFillers( node, !isOutput ); + + if ( blockNeedsExtension( node, !isOutput, emptyBlockFiller ) ) + { + if ( isOutput || CKEDITOR.env.ie ) + node.add( new CKEDITOR.htmlParser.text( '\xa0' ) ); + else + node.add( new CKEDITOR.htmlParser.element( 'br', {} ) ); + } + }; + } + + var dtd = CKEDITOR.dtd; + + // Define orders of table elements. + var tableOrder = [ 'caption', 'colgroup', 'col', 'thead', 'tfoot', 'tbody' ]; + + // Find out the list of block-like tags that can contain <br>. + var blockLikeTags = CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent ); + for ( var i in blockLikeTags ) + { + if ( ! ( 'br' in dtd[i] ) ) + delete blockLikeTags[i]; + } + // We just avoid filler in <pre> right now. + // TODO: Support filler for <pre>, line break is also occupy line height. + delete blockLikeTags.pre; + var defaultDataFilterRules = + { + elements : {}, + attributeNames : + [ + // Event attributes (onXYZ) must not be directly set. They can become + // active in the editing area (IE|WebKit). + [ ( /^on/ ), 'data-cke-pa-on' ] + ] + }; + + var defaultDataBlockFilterRules = { elements : {} }; + + for ( i in blockLikeTags ) + defaultDataBlockFilterRules.elements[ i ] = getBlockExtension(); + + var defaultHtmlFilterRules = + { + elementNames : + [ + // Remove the "cke:" namespace prefix. + [ ( /^cke:/ ), '' ], + + // Ignore <?xml:namespace> tags. + [ ( /^\?xml:namespace$/ ), '' ] + ], + + attributeNames : + [ + // Attributes saved for changes and protected attributes. + [ ( /^data-cke-(saved|pa)-/ ), '' ], + + // All "data-cke-" attributes are to be ignored. + [ ( /^data-cke-.*/ ), '' ], + + [ 'hidefocus', '' ] + ], + + elements : + { + $ : function( element ) + { + var attribs = element.attributes; + + if ( attribs ) + { + // Elements marked as temporary are to be ignored. + if ( attribs[ 'data-cke-temp' ] ) + return false; + + // Remove duplicated attributes - #3789. + var attributeNames = [ 'name', 'href', 'src' ], + savedAttributeName; + for ( var i = 0 ; i < attributeNames.length ; i++ ) + { + savedAttributeName = 'data-cke-saved-' + attributeNames[ i ]; + savedAttributeName in attribs && ( delete attribs[ attributeNames[ i ] ] ); + } + } + + return element; + }, + + // The contents of table should be in correct order (#4809). + table : function( element ) + { + var children = element.children; + children.sort( function ( node1, node2 ) + { + return node1.type == CKEDITOR.NODE_ELEMENT && node2.type == node1.type ? + CKEDITOR.tools.indexOf( tableOrder, node1.name ) > CKEDITOR.tools.indexOf( tableOrder, node2.name ) ? 1 : -1 : 0; + } ); + }, + + embed : function( element ) + { + var parent = element.parent; + + // If the <embed> is child of a <object>, copy the width + // and height attributes from it. + if ( parent && parent.name == 'object' ) + { + var parentWidth = parent.attributes.width, + parentHeight = parent.attributes.height; + parentWidth && ( element.attributes.width = parentWidth ); + parentHeight && ( element.attributes.height = parentHeight ); + } + }, + // Restore param elements into self-closing. + param : function( param ) + { + param.children = []; + param.isEmpty = true; + return param; + }, + + // Remove empty link but not empty anchor.(#3829) + a : function( element ) + { + if ( !( element.children.length || + element.attributes.name || + element.attributes[ 'data-cke-saved-name' ] ) ) + { + return false; + } + }, + + // Remove dummy span in webkit. + span: function( element ) + { + if ( element.attributes[ 'class' ] == 'Apple-style-span' ) + delete element.name; + }, + + // Empty <pre> in IE is reported with filler node ( ). + pre : function( element ) { CKEDITOR.env.ie && trimFillers( element ); }, + + html : function( element ) + { + delete element.attributes.contenteditable; + delete element.attributes[ 'class' ]; + }, + + body : function( element ) + { + delete element.attributes.spellcheck; + delete element.attributes.contenteditable; + }, + + style : function( element ) + { + var child = element.children[ 0 ]; + child && child.value && ( child.value = CKEDITOR.tools.trim( child.value )); + + if ( !element.attributes.type ) + element.attributes.type = 'text/css'; + }, + + title : function( element ) + { + var titleText = element.children[ 0 ]; + titleText && ( titleText.value = element.attributes[ 'data-cke-title' ] || '' ); + } + }, + + attributes : + { + 'class' : function( value, element ) + { + // Remove all class names starting with "cke_". + return CKEDITOR.tools.ltrim( value.replace( /(?:^|\s+)cke_[^\s]*/g, '' ) ) || false; + } + } + }; + + if ( CKEDITOR.env.ie ) + { + // IE outputs style attribute in capital letters. We should convert + // them back to lower case, while not hurting the values (#5930) + defaultHtmlFilterRules.attributes.style = function( value, element ) + { + return value.replace( /(^|;)([^\:]+)/g, function( match ) + { + return match.toLowerCase(); + }); + }; + } + + function protectReadOnly( element ) + { + var attrs = element.attributes; + + // We should flag that the element was locked by our code so + // it'll be editable by the editor functions (#6046). + if ( attrs.contenteditable != "false" ) + attrs[ 'data-cke-editable' ] = attrs.contenteditable ? 'true' : 1; + + attrs.contenteditable = "false"; + } + function unprotectReadyOnly( element ) + { + var attrs = element.attributes; + switch( attrs[ 'data-cke-editable' ] ) + { + case 'true': attrs.contenteditable = 'true'; break; + case '1': delete attrs.contenteditable; break; + } + } + // Disable form elements editing mode provided by some browers. (#5746) + for ( i in { input : 1, textarea : 1 } ) + { + defaultDataFilterRules.elements[ i ] = protectReadOnly; + defaultHtmlFilterRules.elements[ i ] = unprotectReadyOnly; + } + + var protectElementRegex = /<(a|area|img|input)\b([^>]*)>/gi, + protectAttributeRegex = /\b(on\w+|href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi; + + var protectElementsRegex = /(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi, + encodedElementsRegex = /<cke:encoded>([^<]*)<\/cke:encoded>/gi; + + var protectElementNamesRegex = /(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi, + unprotectElementNamesRegex = /(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi; + + var protectSelfClosingRegex = /<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi; + + function protectAttributes( html ) + { + return html.replace( protectElementRegex, function( element, tag, attributes ) + { + return '<' + tag + attributes.replace( protectAttributeRegex, function( fullAttr, attrName ) + { + // Avoid corrupting the inline event attributes (#7243). + // We should not rewrite the existed protected attributes, e.g. clipboard content from editor. (#5218) + if ( !( /^on/ ).test( attrName ) && attributes.indexOf( 'data-cke-saved-' + attrName ) == -1 ) + return ' data-cke-saved-' + fullAttr + ' data-cke-' + CKEDITOR.rnd + '-' + fullAttr; + + return fullAttr; + }) + '>'; + }); + } + + function protectElements( html ) + { + return html.replace( protectElementsRegex, function( match ) + { + return '<cke:encoded>' + encodeURIComponent( match ) + '</cke:encoded>'; + }); + } + + function unprotectElements( html ) + { + return html.replace( encodedElementsRegex, function( match, encoded ) + { + return decodeURIComponent( encoded ); + }); + } + + function protectElementsNames( html ) + { + return html.replace( protectElementNamesRegex, '$1cke:$2'); + } + + function unprotectElementNames( html ) + { + return html.replace( unprotectElementNamesRegex, '$1$2' ); + } + + function protectSelfClosingElements( html ) + { + return html.replace( protectSelfClosingRegex, '<cke:$1$2></cke:$1>' ); + } + + function protectPreFormatted( html ) + { + return html.replace( /(<pre\b[^>]*>)(\r\n|\n)/g, '$1$2$2' ); + } + + function protectRealComments( html ) + { + return html.replace( /<!--(?!{cke_protected})[\s\S]+?-->/g, function( match ) + { + return '<!--' + protectedSourceMarker + + '{C}' + + encodeURIComponent( match ).replace( /--/g, '%2D%2D' ) + + '-->'; + }); + } + + function unprotectRealComments( html ) + { + return html.replace( /<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g, function( match, data ) + { + return decodeURIComponent( data ); + }); + } + + function unprotectSource( html, editor ) + { + var store = editor._.dataStore; + + return html.replace( /<!--\{cke_protected\}([\s\S]+?)-->/g, function( match, data ) + { + return decodeURIComponent( data ); + }).replace( /\{cke_protected_(\d+)\}/g, function( match, id ) + { + return store && store[ id ] || ''; + }); + } + + function protectSource( data, editor ) + { + var protectedHtml = [], + protectRegexes = editor.config.protectedSource, + store = editor._.dataStore || ( editor._.dataStore = { id : 1 } ), + tempRegex = /<\!--\{cke_temp(comment)?\}(\d*?)-->/g; + + var regexes = + [ + // Script tags will also be forced to be protected, otherwise + // IE will execute them. + ( /<script[\s\S]*?<\/script>/gi ), + + // <noscript> tags (get lost in IE and messed up in FF). + /<noscript[\s\S]*?<\/noscript>/gi + ] + .concat( protectRegexes ); + + // First of any other protection, we must protect all comments + // to avoid loosing them (of course, IE related). + // Note that we use a different tag for comments, as we need to + // transform them when applying filters. + data = data.replace( (/<!--[\s\S]*?-->/g), function( match ) + { + return '<!--{cke_tempcomment}' + ( protectedHtml.push( match ) - 1 ) + '-->'; + }); + + for ( var i = 0 ; i < regexes.length ; i++ ) + { + data = data.replace( regexes[i], function( match ) + { + match = match.replace( tempRegex, // There could be protected source inside another one. (#3869). + function( $, isComment, id ) + { + return protectedHtml[ id ]; + } + ); + + // Avoid protecting over protected, e.g. /\{.*?\}/ + return ( /cke_temp(comment)?/ ).test( match ) ? match + : '<!--{cke_temp}' + ( protectedHtml.push( match ) - 1 ) + '-->'; + }); + } + data = data.replace( tempRegex, function( $, isComment, id ) + { + return '<!--' + protectedSourceMarker + + ( isComment ? '{C}' : '' ) + + encodeURIComponent( protectedHtml[ id ] ).replace( /--/g, '%2D%2D' ) + + '-->'; + } + ); + + // Different protection pattern is used for those that + // live in attributes to avoid from being HTML encoded. + return data.replace( /(['"]).*?\1/g, function ( match ) + { + return match.replace( /<!--\{cke_protected\}([\s\S]+?)-->/g, function( match, data ) + { + store[ store.id ] = decodeURIComponent( data ); + return '{cke_protected_'+ ( store.id++ ) + '}'; + }); + }); + } + + CKEDITOR.plugins.add( 'htmldataprocessor', + { + requires : [ 'htmlwriter' ], + + init : function( editor ) + { + var dataProcessor = editor.dataProcessor = new CKEDITOR.htmlDataProcessor( editor ); + + dataProcessor.writer.forceSimpleAmpersand = editor.config.forceSimpleAmpersand; + + dataProcessor.dataFilter.addRules( defaultDataFilterRules ); + dataProcessor.dataFilter.addRules( defaultDataBlockFilterRules ); + dataProcessor.htmlFilter.addRules( defaultHtmlFilterRules ); + + var defaultHtmlBlockFilterRules = { elements : {} }; + for ( i in blockLikeTags ) + defaultHtmlBlockFilterRules.elements[ i ] = getBlockExtension( true, editor.config.fillEmptyBlocks ); + + dataProcessor.htmlFilter.addRules( defaultHtmlBlockFilterRules ); + }, + + onLoad : function() + { + ! ( 'fillEmptyBlocks' in CKEDITOR.config ) && ( CKEDITOR.config.fillEmptyBlocks = 1 ); + } + }); + + CKEDITOR.htmlDataProcessor = function( editor ) + { + this.editor = editor; + + this.writer = new CKEDITOR.htmlWriter(); + this.dataFilter = new CKEDITOR.htmlParser.filter(); + this.htmlFilter = new CKEDITOR.htmlParser.filter(); + }; + + CKEDITOR.htmlDataProcessor.prototype = + { + toHtml : function( data, fixForBody ) + { + // The source data is already HTML, but we need to clean + // it up and apply the filter. + + data = protectSource( data, this.editor ); + + // Before anything, we must protect the URL attributes as the + // browser may changing them when setting the innerHTML later in + // the code. + data = protectAttributes( data ); + + // Protect elements than can't be set inside a DIV. E.g. IE removes + // style tags from innerHTML. (#3710) + data = protectElements( data ); + + // Certain elements has problem to go through DOM operation, protect + // them by prefixing 'cke' namespace. (#3591) + data = protectElementsNames( data ); + + // All none-IE browsers ignore self-closed custom elements, + // protecting them into open-close. (#3591) + data = protectSelfClosingElements( data ); + + // Compensate one leading line break after <pre> open as browsers + // eat it up. (#5789) + data = protectPreFormatted( data ); + + // Call the browser to help us fixing a possibly invalid HTML + // structure. + var div = new CKEDITOR.dom.element( 'div' ); + + // Add fake character to workaround IE comments bug. (#3801) + div.setHtml( 'a' + data ); + data = div.getHtml().substr( 1 ); + + // Restore shortly protected attribute names. + data = data.replace( new RegExp( ' data-cke-' + CKEDITOR.rnd + '-', 'ig' ), ' ' ); + + // Unprotect "some" of the protected elements at this point. + data = unprotectElementNames( data ); + + data = unprotectElements( data ); + + // Restore the comments that have been protected, in this way they + // can be properly filtered. + data = unprotectRealComments( data ); + + // Now use our parser to make further fixes to the structure, as + // well as apply the filter. + var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data, fixForBody ), + writer = new CKEDITOR.htmlParser.basicWriter(); + + fragment.writeHtml( writer, this.dataFilter ); + data = writer.getHtml( true ); + + // Protect the real comments again. + data = protectRealComments( data ); + + return data; + }, + + toDataFormat : function( html, fixForBody ) + { + var writer = this.writer, + fragment = CKEDITOR.htmlParser.fragment.fromHtml( html, fixForBody ); + + writer.reset(); + + fragment.writeHtml( writer, this.htmlFilter ); + + var data = writer.getHtml( true ); + + // Restore those non-HTML protected source. (#4475,#4880) + data = unprotectRealComments( data ); + data = unprotectSource( data, this.editor ); + + return data; + } + }; +})(); + +/** + * Whether to force using "&" instead of "&amp;" in elements attributes + * values, it's not recommended to change this setting for compliance with the + * W3C XHTML 1.0 standards (<a href="http://www.w3.org/TR/xhtml1/#C_12">C.12, XHTML 1.0</a>). + * @name CKEDITOR.config.forceSimpleAmpersand + * @name CKEDITOR.config.forceSimpleAmpersand + * @type Boolean + * @default false + * @example + * config.forceSimpleAmpersand = false; + */ + +/** + * Whether a filler text (non-breaking space entity - ) will be inserted into empty block elements in HTML output, + * this is used to render block elements properly with line-height; When a function is instead specified, + * it'll be passed a {@link CKEDITOR.htmlParser.element} to decide whether adding the filler text + * by expecting a boolean return value. + * @name CKEDITOR.config.fillEmptyBlocks + * @since 3.5 + * @type Boolean + * @default true + * @example + * config.fillEmptyBlocks = false; // Prevent filler nodes in all empty blocks. + * + * // Prevent filler node only in float cleaners. + * config.fillEmptyBlocks = function( element ) + * { + * if ( element.attributes[ 'class' ].indexOf ( 'clear-both' ) != -1 ) + * return false; + * } + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/htmlwriter/plugin.js b/htdocs/includes/ckeditor/_source/plugins/htmlwriter/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..32acfb08bced8f3d6cc26964068ba5c74f23758c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/htmlwriter/plugin.js @@ -0,0 +1,319 @@ +/* +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() ); "<p class="MyClass">Hello</p>" + */ +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 " />" + * @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 "<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 ">". + * writer.openTagClose( 'p', false ); + * @example + * // Writes " />". + * 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( /&/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 "</p>". + * 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 "<!-- My comment -->". + * 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; + } + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/iframe/dialogs/iframe.js b/htdocs/includes/ckeditor/_source/plugins/iframe/dialogs/iframe.js new file mode 100644 index 0000000000000000000000000000000000000000..4c97c668e3dfe0c5fc71b08501716afdf2e56d6f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/iframe/dialogs/iframe.js @@ -0,0 +1,229 @@ +/* +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 }) + ] + }; + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/iframe/images/placeholder.png b/htdocs/includes/ckeditor/_source/plugins/iframe/images/placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..b40c7b20fc2984e0c9bf8dac94ab1873ab17dc4d Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/iframe/images/placeholder.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/iframe/plugin.js b/htdocs/includes/ckeditor/_source/plugins/iframe/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..23fb764e97c6aafb2d2a63efcd368a2a361e5f14 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/iframe/plugin.js @@ -0,0 +1,87 @@ +/* +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 ); + } + } + }); + } + } + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/iframedialog/plugin.js b/htdocs/includes/ckeditor/_source/plugins/iframedialog/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..61ee60523eac311a0502fbee9e02f42cda044214 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/iframedialog/plugin.js @@ -0,0 +1,188 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Plugin for making iframe based dialogs. + */ + +CKEDITOR.plugins.add( 'iframedialog', +{ + requires : [ 'dialog' ], + onLoad : function() + { + /** + * An iframe base dialog. + * @param {String} name Name of the dialog + * @param {String} title Title of the dialog + * @param {Number} minWidth Minimum width of the dialog + * @param {Number} minHeight Minimum height of the dialog + * @param {Function} [onContentLoad] Function called when the iframe has been loaded. + * If it isn't specified, the inner frame is notified of the dialog events ('load', + * 'resize', 'ok' and 'cancel') on a function called 'onDialogEvent' + * @param {Object} [userDefinition] Additional properties for the dialog definition + * @example + */ + CKEDITOR.dialog.addIframe = function( name, title, src, minWidth, minHeight, onContentLoad, userDefinition ) + { + var element = + { + type : 'iframe', + src : src, + width : '100%', + height : '100%' + }; + + if ( typeof( onContentLoad ) == 'function' ) + element.onContentLoad = onContentLoad; + else + element.onContentLoad = function() + { + var element = this.getElement(), + childWindow = element.$.contentWindow; + + // If the inner frame has defined a "onDialogEvent" function, setup listeners + if ( childWindow.onDialogEvent ) + { + var dialog = this.getDialog(), + notifyEvent = function(e) + { + return childWindow.onDialogEvent(e); + }; + + dialog.on( 'ok', notifyEvent ); + dialog.on( 'cancel', notifyEvent ); + dialog.on( 'resize', notifyEvent ); + + // Clear listeners + dialog.on( 'hide', function(e) + { + dialog.removeListener( 'ok', notifyEvent ); + dialog.removeListener( 'cancel', notifyEvent ); + dialog.removeListener( 'resize', notifyEvent ); + + e.removeListener(); + } ); + + // Notify child iframe of load: + childWindow.onDialogEvent( { + name : 'load', + sender : this, + editor : dialog._.editor + } ); + } + }; + + var definition = + { + title : title, + minWidth : minWidth, + minHeight : minHeight, + contents : + [ + { + id : 'iframe', + label : title, + expand : true, + elements : [ element ] + } + ] + }; + + for ( var i in userDefinition ) + definition[i] = userDefinition[i]; + + this.add( name, function(){ return definition; } ); + }; + + (function() + { + /** + * An iframe element. + * @extends CKEDITOR.ui.dialog.uiElement + * @example + * @constructor + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * <ul> + * <li><strong>src</strong> (Required) The src field of the iframe. </li> + * <li><strong>width</strong> (Required) The iframe's width.</li> + * <li><strong>height</strong> (Required) The iframe's height.</li> + * <li><strong>onContentLoad</strong> (Optional) A function to be executed + * after the iframe's contents has finished loading.</li> + * </ul> + * @param {Array} htmlList + * List of HTML code to output to. + */ + var iframeElement = function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + var _ = ( this._ || ( this._ = {} ) ), + contentLoad = elementDefinition.onContentLoad && CKEDITOR.tools.bind( elementDefinition.onContentLoad, this ), + cssWidth = CKEDITOR.tools.cssLength( elementDefinition.width ), + cssHeight = CKEDITOR.tools.cssLength( elementDefinition.height ); + _.frameId = CKEDITOR.tools.getNextId() + '_iframe'; + + // IE BUG: Parent container does not resize to contain the iframe automatically. + dialog.on( 'load', function() + { + var iframe = CKEDITOR.document.getById( _.frameId ), + parentContainer = iframe.getParent(); + + parentContainer.setStyles( + { + width : cssWidth, + height : cssHeight + } ); + } ); + + var attributes = + { + src : '%2', + id : _.frameId, + frameborder : 0, + allowtransparency : true + }; + var myHtml = []; + + if ( typeof( elementDefinition.onContentLoad ) == 'function' ) + attributes.onload = 'CKEDITOR.tools.callFunction(%1);'; + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, myHtml, 'iframe', + { + width : cssWidth, + height : cssHeight + }, attributes, '' ); + + // Put a placeholder for the first time. + htmlList.push( '<div style="width:' + cssWidth + ';height:' + cssHeight + ';" id="' + this.domId + '"></div>' ); + + // Iframe elements should be refreshed whenever it is shown. + myHtml = myHtml.join( '' ); + dialog.on( 'show', function() + { + var iframe = CKEDITOR.document.getById( _.frameId ), + parentContainer = iframe.getParent(), + callIndex = CKEDITOR.tools.addFunction( contentLoad ), + html = myHtml.replace( '%1', callIndex ).replace( '%2', CKEDITOR.tools.htmlEncode( elementDefinition.src ) ); + parentContainer.setHtml( html ); + } ); + }; + + iframeElement.prototype = new CKEDITOR.ui.dialog.uiElement; + + CKEDITOR.dialog.addUIElement( 'iframe', + { + build : function( dialog, elementDefinition, output ) + { + return new iframeElement( dialog, elementDefinition, output ); + } + } ); + })(); + } +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/image/dialogs/image.js b/htdocs/includes/ckeditor/_source/plugins/image/dialogs/image.js new file mode 100644 index 0000000000000000000000000000000000000000..992d700c061695f55b6b4af641ba6cd87c886ea6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/image/dialogs/image.js @@ -0,0 +1,1406 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var imageDialog = function( editor, dialogType ) + { + // Load image preview. + var IMAGE = 1, + LINK = 2, + PREVIEW = 4, + CLEANUP = 8, + regexGetSize = /^\s*(\d+)((px)|\%)?\s*$/i, + regexGetSizeOrEmpty = /(^\s*(\d+)((px)|\%)?\s*$)|^$/i, + pxLengthRegex = /^\d+px$/; + + var onSizeChange = function() + { + var value = this.getValue(), // This = input element. + dialog = this.getDialog(), + aMatch = value.match( regexGetSize ); // Check value + if ( aMatch ) + { + if ( aMatch[2] == '%' ) // % is allowed - > unlock ratio. + switchLockRatio( dialog, false ); // Unlock. + value = aMatch[1]; + } + + // Only if ratio is locked + if ( dialog.lockRatio ) + { + var oImageOriginal = dialog.originalElement; + if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) + { + if ( this.id == 'txtHeight' ) + { + if ( value && value != '0' ) + value = Math.round( oImageOriginal.$.width * ( value / oImageOriginal.$.height ) ); + if ( !isNaN( value ) ) + dialog.setValueOf( 'info', 'txtWidth', value ); + } + else //this.id = txtWidth. + { + if ( value && value != '0' ) + value = Math.round( oImageOriginal.$.height * ( value / oImageOriginal.$.width ) ); + if ( !isNaN( value ) ) + dialog.setValueOf( 'info', 'txtHeight', value ); + } + } + } + updatePreview( dialog ); + }; + + var updatePreview = function( dialog ) + { + //Don't load before onShow. + if ( !dialog.originalElement || !dialog.preview ) + return 1; + + // Read attributes and update imagePreview; + dialog.commitContent( PREVIEW, dialog.preview ); + return 0; + }; + + // Custom commit dialog logic, where we're intended to give inline style + // field (txtdlgGenStyle) higher priority to avoid overwriting styles contribute + // by other fields. + function commitContent() + { + var args = arguments; + var inlineStyleField = this.getContentElement( 'advanced', 'txtdlgGenStyle' ); + inlineStyleField && inlineStyleField.commit.apply( inlineStyleField, args ); + + this.foreach( function( widget ) + { + if ( widget.commit && widget.id != 'txtdlgGenStyle' ) + widget.commit.apply( widget, args ); + }); + } + + // Avoid recursions. + var incommit; + + // Synchronous field values to other impacted fields is required, e.g. border + // size change should alter inline-style text as well. + function commitInternally( targetFields ) + { + if ( incommit ) + return; + + incommit = 1; + + var dialog = this.getDialog(), + element = dialog.imageElement; + if ( element ) + { + // Commit this field and broadcast to target fields. + this.commit( IMAGE, element ); + + targetFields = [].concat( targetFields ); + var length = targetFields.length, + field; + for ( var i = 0; i < length; i++ ) + { + field = dialog.getContentElement.apply( dialog, targetFields[ i ].split( ':' ) ); + // May cause recursion. + field && field.setup( IMAGE, element ); + } + } + + incommit = 0; + } + + var switchLockRatio = function( dialog, value ) + { + if ( !dialog.getContentElement( 'info', 'ratioLock' ) ) + return null; + + var oImageOriginal = dialog.originalElement; + + // Dialog may already closed. (#5505) + if( !oImageOriginal ) + return null; + + // Check image ratio and original image ratio, but respecting user's preference. + if ( value == 'check' ) + { + if ( !dialog.userlockRatio && oImageOriginal.getCustomData( 'isReady' ) == 'true' ) + { + var width = dialog.getValueOf( 'info', 'txtWidth' ), + height = dialog.getValueOf( 'info', 'txtHeight' ), + originalRatio = oImageOriginal.$.width * 1000 / oImageOriginal.$.height, + thisRatio = width * 1000 / height; + dialog.lockRatio = false; // Default: unlock ratio + + if ( !width && !height ) + dialog.lockRatio = true; + else if ( !isNaN( originalRatio ) && !isNaN( thisRatio ) ) + { + if ( Math.round( originalRatio ) == Math.round( thisRatio ) ) + dialog.lockRatio = true; + } + } + } + else if ( value != undefined ) + dialog.lockRatio = value; + else + { + dialog.userlockRatio = 1; + dialog.lockRatio = !dialog.lockRatio; + } + + var ratioButton = CKEDITOR.document.getById( btnLockSizesId ); + if ( dialog.lockRatio ) + ratioButton.removeClass( 'cke_btn_unlocked' ); + else + ratioButton.addClass( 'cke_btn_unlocked' ); + + ratioButton.setAttribute( 'aria-checked', dialog.lockRatio ); + + // Ratio button hc presentation - WHITE SQUARE / BLACK SQUARE + if ( CKEDITOR.env.hc ) + { + var icon = ratioButton.getChild( 0 ); + icon.setHtml( dialog.lockRatio ? CKEDITOR.env.ie ? '\u25A0': '\u25A3' : CKEDITOR.env.ie ? '\u25A1' : '\u25A2' ); + } + + return dialog.lockRatio; + }; + + var resetSize = function( dialog ) + { + var oImageOriginal = dialog.originalElement; + if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) + { + var widthField = dialog.getContentElement( 'info', 'txtWidth' ), + heightField = dialog.getContentElement( 'info', 'txtHeight' ); + widthField && widthField.setValue( oImageOriginal.$.width ); + heightField && heightField.setValue( oImageOriginal.$.height ); + } + updatePreview( dialog ); + }; + + var setupDimension = function( type, element ) + { + if ( type != IMAGE ) + return; + + function checkDimension( size, defaultValue ) + { + var aMatch = size.match( regexGetSize ); + if ( aMatch ) + { + if ( aMatch[2] == '%' ) // % is allowed. + { + aMatch[1] += '%'; + switchLockRatio( dialog, false ); // Unlock ratio + } + return aMatch[1]; + } + return defaultValue; + } + + var dialog = this.getDialog(), + value = '', + dimension = this.id == 'txtWidth' ? 'width' : 'height', + size = element.getAttribute( dimension ); + + if ( size ) + value = checkDimension( size, value ); + value = checkDimension( element.getStyle( dimension ), value ); + + this.setValue( value ); + }; + + var previewPreloader; + + var onImgLoadEvent = function() + { + // Image is ready. + var original = this.originalElement; + original.setCustomData( 'isReady', 'true' ); + original.removeListener( 'load', onImgLoadEvent ); + original.removeListener( 'error', onImgLoadErrorEvent ); + original.removeListener( 'abort', onImgLoadErrorEvent ); + + // Hide loader + CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' ); + + // New image -> new domensions + if ( !this.dontResetSize ) + resetSize( this ); + + if ( this.firstLoad ) + CKEDITOR.tools.setTimeout( function(){ switchLockRatio( this, 'check' ); }, 0, this ); + + this.firstLoad = false; + this.dontResetSize = false; + }; + + var onImgLoadErrorEvent = function() + { + // Error. Image is not loaded. + var original = this.originalElement; + original.removeListener( 'load', onImgLoadEvent ); + original.removeListener( 'error', onImgLoadErrorEvent ); + original.removeListener( 'abort', onImgLoadErrorEvent ); + + // Set Error image. + var noimage = CKEDITOR.getUrl( editor.skinPath + 'images/noimage.png' ); + + if ( this.preview ) + this.preview.setAttribute( 'src', noimage ); + + // Hide loader + CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' ); + switchLockRatio( this, false ); // Unlock. + }; + + var numbering = function( id ) + { + return CKEDITOR.tools.getNextId() + '_' + id; + }, + btnLockSizesId = numbering( 'btnLockSizes' ), + btnResetSizeId = numbering( 'btnResetSize' ), + imagePreviewLoaderId = numbering( 'ImagePreviewLoader' ), + previewLinkId = numbering( 'previewLink' ), + previewImageId = numbering( 'previewImage' ); + + return { + title : editor.lang.image[ dialogType == 'image' ? 'title' : 'titleButton' ], + minWidth : 420, + minHeight : 360, + onShow : function() + { + this.imageElement = false; + this.linkElement = false; + + // Default: create a new element. + this.imageEditMode = false; + this.linkEditMode = false; + + this.lockRatio = true; + this.userlockRatio = 0; + this.dontResetSize = false; + this.firstLoad = true; + this.addLink = false; + + var editor = this.getParentEditor(), + sel = editor.getSelection(), + element = sel && sel.getSelectedElement(), + link = element && element.getAscendant( 'a' ); + + //Hide loader. + CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' ); + // Create the preview before setup the dialog contents. + previewPreloader = new CKEDITOR.dom.element( 'img', editor.document ); + this.preview = CKEDITOR.document.getById( previewImageId ); + + // Copy of the image + this.originalElement = editor.document.createElement( 'img' ); + this.originalElement.setAttribute( 'alt', '' ); + this.originalElement.setCustomData( 'isReady', 'false' ); + + if ( link ) + { + this.linkElement = link; + this.linkEditMode = true; + + // Look for Image element. + var linkChildren = link.getChildren(); + if ( linkChildren.count() == 1 ) // 1 child. + { + var childTagName = linkChildren.getItem( 0 ).getName(); + if ( childTagName == 'img' || childTagName == 'input' ) + { + this.imageElement = linkChildren.getItem( 0 ); + if ( this.imageElement.getName() == 'img' ) + this.imageEditMode = 'img'; + else if ( this.imageElement.getName() == 'input' ) + this.imageEditMode = 'input'; + } + } + // Fill out all fields. + if ( dialogType == 'image' ) + this.setupContent( LINK, link ); + } + + if ( element && element.getName() == 'img' && !element.data( 'cke-realelement' ) + || element && element.getName() == 'input' && element.getAttribute( 'type' ) == 'image' ) + { + this.imageEditMode = element.getName(); + this.imageElement = element; + } + + if ( this.imageEditMode ) + { + // Use the original element as a buffer from since we don't want + // temporary changes to be committed, e.g. if the dialog is canceled. + this.cleanImageElement = this.imageElement; + this.imageElement = this.cleanImageElement.clone( true, true ); + + // Fill out all fields. + this.setupContent( IMAGE, this.imageElement ); + } + else + this.imageElement = editor.document.createElement( 'img' ); + + // Refresh LockRatio button + switchLockRatio ( this, true ); + + // Dont show preview if no URL given. + if ( !CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtUrl' ) ) ) + { + this.preview.removeAttribute( 'src' ); + this.preview.setStyle( 'display', 'none' ); + } + }, + onOk : function() + { + // Edit existing Image. + if ( this.imageEditMode ) + { + var imgTagName = this.imageEditMode; + + // Image dialog and Input element. + if ( dialogType == 'image' && imgTagName == 'input' && confirm( editor.lang.image.button2Img ) ) + { + // Replace INPUT-> IMG + imgTagName = 'img'; + this.imageElement = editor.document.createElement( 'img' ); + this.imageElement.setAttribute( 'alt', '' ); + editor.insertElement( this.imageElement ); + } + // ImageButton dialog and Image element. + else if ( dialogType != 'image' && imgTagName == 'img' && confirm( editor.lang.image.img2Button )) + { + // Replace IMG -> INPUT + imgTagName = 'input'; + this.imageElement = editor.document.createElement( 'input' ); + this.imageElement.setAttributes( + { + type : 'image', + alt : '' + } + ); + editor.insertElement( this.imageElement ); + } + else + { + // Restore the original element before all commits. + this.imageElement = this.cleanImageElement; + delete this.cleanImageElement; + } + } + else // Create a new image. + { + // Image dialog -> create IMG element. + if ( dialogType == 'image' ) + this.imageElement = editor.document.createElement( 'img' ); + else + { + this.imageElement = editor.document.createElement( 'input' ); + this.imageElement.setAttribute ( 'type' ,'image' ); + } + this.imageElement.setAttribute( 'alt', '' ); + } + + // Create a new link. + if ( !this.linkEditMode ) + this.linkElement = editor.document.createElement( 'a' ); + + // Set attributes. + this.commitContent( IMAGE, this.imageElement ); + this.commitContent( LINK, this.linkElement ); + + // Remove empty style attribute. + if ( !this.imageElement.getAttribute( 'style' ) ) + this.imageElement.removeAttribute( 'style' ); + + // Insert a new Image. + if ( !this.imageEditMode ) + { + if ( this.addLink ) + { + //Insert a new Link. + if ( !this.linkEditMode ) + { + editor.insertElement( this.linkElement ); + this.linkElement.append( this.imageElement, false ); + } + else //Link already exists, image not. + editor.insertElement( this.imageElement ); + } + else + editor.insertElement( this.imageElement ); + } + else // Image already exists. + { + //Add a new link element. + if ( !this.linkEditMode && this.addLink ) + { + editor.insertElement( this.linkElement ); + this.imageElement.appendTo( this.linkElement ); + } + //Remove Link, Image exists. + else if ( this.linkEditMode && !this.addLink ) + { + editor.getSelection().selectElement( this.linkElement ); + editor.insertElement( this.imageElement ); + } + } + }, + onLoad : function() + { + if ( dialogType != 'image' ) + this.hidePage( 'Link' ); //Hide Link tab. + var doc = this._.element.getDocument(); + + if ( this.getContentElement( 'info', 'ratioLock' ) ) + { + this.addFocusable( doc.getById( btnResetSizeId ), 5 ); + this.addFocusable( doc.getById( btnLockSizesId ), 5 ); + } + + this.commitContent = commitContent; + }, + onHide : function() + { + if ( this.preview ) + this.commitContent( CLEANUP, this.preview ); + + if ( this.originalElement ) + { + this.originalElement.removeListener( 'load', onImgLoadEvent ); + this.originalElement.removeListener( 'error', onImgLoadErrorEvent ); + this.originalElement.removeListener( 'abort', onImgLoadErrorEvent ); + this.originalElement.remove(); + this.originalElement = false; // Dialog is closed. + } + + delete this.imageElement; + }, + contents : [ + { + id : 'info', + label : editor.lang.image.infoTab, + accessKey : 'I', + elements : + [ + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'hbox', + widths : [ '280px', '110px' ], + align : 'right', + children : + [ + { + id : 'txtUrl', + type : 'text', + label : editor.lang.common.url, + required: true, + onChange : function() + { + var dialog = this.getDialog(), + newUrl = this.getValue(); + + //Update original image + if ( newUrl.length > 0 ) //Prevent from load before onShow + { + dialog = this.getDialog(); + var original = dialog.originalElement; + + dialog.preview.removeStyle( 'display' ); + + original.setCustomData( 'isReady', 'false' ); + // Show loader + var loader = CKEDITOR.document.getById( imagePreviewLoaderId ); + if ( loader ) + loader.setStyle( 'display', '' ); + + original.on( 'load', onImgLoadEvent, dialog ); + original.on( 'error', onImgLoadErrorEvent, dialog ); + original.on( 'abort', onImgLoadErrorEvent, dialog ); + original.setAttribute( 'src', newUrl ); + + // Query the preloader to figure out the url impacted by based href. + previewPreloader.setAttribute( 'src', newUrl ); + dialog.preview.setAttribute( 'src', previewPreloader.$.src ); + updatePreview( dialog ); + } + // Dont show preview if no URL given. + else if ( dialog.preview ) + { + dialog.preview.removeAttribute( 'src' ); + dialog.preview.setStyle( 'display', 'none' ); + } + }, + setup : function( type, element ) + { + if ( type == IMAGE ) + { + var url = element.data( 'cke-saved-src' ) || element.getAttribute( 'src' ); + var field = this; + + this.getDialog().dontResetSize = true; + + field.setValue( url ); // And call this.onChange() + // Manually set the initial value.(#4191) + field.setInitValue(); + } + }, + commit : function( type, element ) + { + if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) + { + element.data( 'cke-saved-src', this.getValue() ); + element.setAttribute( 'src', this.getValue() ); + } + else if ( type == CLEANUP ) + { + element.setAttribute( 'src', '' ); // If removeAttribute doesn't work. + element.removeAttribute( 'src' ); + } + }, + validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.image.urlMissing ) + }, + { + type : 'button', + id : 'browse', + // v-align with the 'txtUrl' field. + // TODO: We need something better than a fixed size here. + style : 'display:inline-block;margin-top:10px;', + align : 'center', + label : editor.lang.common.browseServer, + hidden : true, + filebrowser : 'info:txtUrl' + } + ] + } + ] + }, + { + id : 'txtAlt', + type : 'text', + label : editor.lang.image.alt, + accessKey : 'T', + 'default' : '', + onChange : function() + { + updatePreview( this.getDialog() ); + }, + setup : function( type, element ) + { + if ( type == IMAGE ) + this.setValue( element.getAttribute( 'alt' ) ); + }, + commit : function( type, element ) + { + if ( type == IMAGE ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'alt', this.getValue() ); + } + else if ( type == PREVIEW ) + { + element.setAttribute( 'alt', this.getValue() ); + } + else if ( type == CLEANUP ) + { + element.removeAttribute( 'alt' ); + } + } + }, + { + type : 'hbox', + children : + [ + { + id : 'basic', + type : 'vbox', + children : + [ + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + type : 'vbox', + padding : 1, + children : + [ + { + type : 'text', + width: '40px', + id : 'txtWidth', + label : editor.lang.common.width, + onKeyUp : onSizeChange, + onChange : function() + { + commitInternally.call( this, 'advanced:txtdlgGenStyle' ); + }, + validate : function() + { + var aMatch = this.getValue().match( regexGetSizeOrEmpty ), + isValid = !!( aMatch && parseInt( aMatch[1], 10 ) !== 0 ); + if ( !isValid ) + alert( editor.lang.common.invalidWidth ); + return isValid; + }, + setup : setupDimension, + commit : function( type, element, internalCommit ) + { + var value = this.getValue(); + if ( type == IMAGE ) + { + if ( value ) + element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) ); + else + element.removeStyle( 'width' ); + + !internalCommit && element.removeAttribute( 'width' ); + } + else if ( type == PREVIEW ) + { + var aMatch = value.match( regexGetSize ); + if ( !aMatch ) + { + var oImageOriginal = this.getDialog().originalElement; + if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) + element.setStyle( 'width', oImageOriginal.$.width + 'px'); + } + else + element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) ); + } + else if ( type == CLEANUP ) + { + element.removeAttribute( 'width' ); + element.removeStyle( 'width' ); + } + } + }, + { + type : 'text', + id : 'txtHeight', + width: '40px', + label : editor.lang.common.height, + onKeyUp : onSizeChange, + onChange : function() + { + commitInternally.call( this, 'advanced:txtdlgGenStyle' ); + }, + validate : function() + { + var aMatch = this.getValue().match( regexGetSizeOrEmpty ), + isValid = !!( aMatch && parseInt( aMatch[1], 10 ) !== 0 ); + if ( !isValid ) + alert( editor.lang.common.invalidHeight ); + return isValid; + }, + setup : setupDimension, + commit : function( type, element, internalCommit ) + { + var value = this.getValue(); + if ( type == IMAGE ) + { + if ( value ) + element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) ); + else + element.removeStyle( 'height' ); + + !internalCommit && element.removeAttribute( 'height' ); + } + else if ( type == PREVIEW ) + { + var aMatch = value.match( regexGetSize ); + if ( !aMatch ) + { + var oImageOriginal = this.getDialog().originalElement; + if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) + element.setStyle( 'height', oImageOriginal.$.height + 'px' ); + } + else + element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) ); + } + else if ( type == CLEANUP ) + { + element.removeAttribute( 'height' ); + element.removeStyle( 'height' ); + } + } + } + ] + }, + { + id : 'ratioLock', + type : 'html', + style : 'margin-top:30px;width:40px;height:40px;', + onLoad : function() + { + // Activate Reset button + var resetButton = CKEDITOR.document.getById( btnResetSizeId ), + ratioButton = CKEDITOR.document.getById( btnLockSizesId ); + if ( resetButton ) + { + resetButton.on( 'click', function( evt ) + { + resetSize( this ); + evt.data && evt.data.preventDefault(); + }, this.getDialog() ); + resetButton.on( 'mouseover', function() + { + this.addClass( 'cke_btn_over' ); + }, resetButton ); + resetButton.on( 'mouseout', function() + { + this.removeClass( 'cke_btn_over' ); + }, resetButton ); + } + // Activate (Un)LockRatio button + if ( ratioButton ) + { + ratioButton.on( 'click', function(evt) + { + var locked = switchLockRatio( this ), + oImageOriginal = this.originalElement, + width = this.getValueOf( 'info', 'txtWidth' ); + + if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' && width ) + { + var height = oImageOriginal.$.height / oImageOriginal.$.width * width; + if ( !isNaN( height ) ) + { + this.setValueOf( 'info', 'txtHeight', Math.round( height ) ); + updatePreview( this ); + } + } + evt.data && evt.data.preventDefault(); + }, this.getDialog() ); + ratioButton.on( 'mouseover', function() + { + this.addClass( 'cke_btn_over' ); + }, ratioButton ); + ratioButton.on( 'mouseout', function() + { + this.removeClass( 'cke_btn_over' ); + }, ratioButton ); + } + }, + html : '<div>'+ + '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.lockRatio + + '" class="cke_btn_locked" id="' + btnLockSizesId + '" role="checkbox"><span class="cke_icon"></span><span class="cke_label">' + editor.lang.image.lockRatio + '</span></a>' + + '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.resetSize + + '" class="cke_btn_reset" id="' + btnResetSizeId + '" role="button"><span class="cke_label">' + editor.lang.image.resetSize + '</span></a>'+ + '</div>' + } + ] + }, + { + type : 'vbox', + padding : 1, + children : + [ + { + type : 'text', + id : 'txtBorder', + width: '60px', + label : editor.lang.image.border, + 'default' : '', + onKeyUp : function() + { + updatePreview( this.getDialog() ); + }, + onChange : function() + { + commitInternally.call( this, 'advanced:txtdlgGenStyle' ); + }, + validate : CKEDITOR.dialog.validate.integer( editor.lang.image.validateBorder ), + setup : function( type, element ) + { + if ( type == IMAGE ) + { + var value, + borderStyle = element.getStyle( 'border-width' ); + borderStyle = borderStyle && borderStyle.match( /^(\d+px)(?: \1 \1 \1)?$/ ); + value = borderStyle && parseInt( borderStyle[ 1 ], 10 ); + isNaN ( parseInt( value, 10 ) ) && ( value = element.getAttribute( 'border' ) ); + this.setValue( value ); + } + }, + commit : function( type, element, internalCommit ) + { + var value = parseInt( this.getValue(), 10 ); + if ( type == IMAGE || type == PREVIEW ) + { + if ( !isNaN( value ) ) + { + element.setStyle( 'border-width', CKEDITOR.tools.cssLength( value ) ); + element.setStyle( 'border-style', 'solid' ); + } + else if ( !value && this.isChanged() ) + { + element.removeStyle( 'border-width' ); + element.removeStyle( 'border-style' ); + element.removeStyle( 'border-color' ); + } + + if ( !internalCommit && type == IMAGE ) + element.removeAttribute( 'border' ); + } + else if ( type == CLEANUP ) + { + element.removeAttribute( 'border' ); + element.removeStyle( 'border-width' ); + element.removeStyle( 'border-style' ); + element.removeStyle( 'border-color' ); + } + } + }, + { + type : 'text', + id : 'txtHSpace', + width: '60px', + label : editor.lang.image.hSpace, + 'default' : '', + onKeyUp : function() + { + updatePreview( this.getDialog() ); + }, + onChange : function() + { + commitInternally.call( this, 'advanced:txtdlgGenStyle' ); + }, + validate : CKEDITOR.dialog.validate.integer( editor.lang.image.validateHSpace ), + setup : function( type, element ) + { + if ( type == IMAGE ) + { + var value, + marginLeftPx, + marginRightPx, + marginLeftStyle = element.getStyle( 'margin-left' ), + marginRightStyle = element.getStyle( 'margin-right' ); + + marginLeftStyle = marginLeftStyle && marginLeftStyle.match( pxLengthRegex ); + marginRightStyle = marginRightStyle && marginRightStyle.match( pxLengthRegex ); + marginLeftPx = parseInt( marginLeftStyle, 10 ); + marginRightPx = parseInt( marginRightStyle, 10 ); + + value = ( marginLeftPx == marginRightPx ) && marginLeftPx; + isNaN( parseInt( value, 10 ) ) && ( value = element.getAttribute( 'hspace' ) ); + + this.setValue( value ); + } + }, + commit : function( type, element, internalCommit ) + { + var value = parseInt( this.getValue(), 10 ); + if ( type == IMAGE || type == PREVIEW ) + { + if ( !isNaN( value ) ) + { + element.setStyle( 'margin-left', CKEDITOR.tools.cssLength( value ) ); + element.setStyle( 'margin-right', CKEDITOR.tools.cssLength( value ) ); + } + else if ( !value && this.isChanged( ) ) + { + element.removeStyle( 'margin-left' ); + element.removeStyle( 'margin-right' ); + } + + if ( !internalCommit && type == IMAGE ) + element.removeAttribute( 'hspace' ); + } + else if ( type == CLEANUP ) + { + element.removeAttribute( 'hspace' ); + element.removeStyle( 'margin-left' ); + element.removeStyle( 'margin-right' ); + } + } + }, + { + type : 'text', + id : 'txtVSpace', + width : '60px', + label : editor.lang.image.vSpace, + 'default' : '', + onKeyUp : function() + { + updatePreview( this.getDialog() ); + }, + onChange : function() + { + commitInternally.call( this, 'advanced:txtdlgGenStyle' ); + }, + validate : CKEDITOR.dialog.validate.integer( editor.lang.image.validateVSpace ), + setup : function( type, element ) + { + if ( type == IMAGE ) + { + var value, + marginTopPx, + marginBottomPx, + marginTopStyle = element.getStyle( 'margin-top' ), + marginBottomStyle = element.getStyle( 'margin-bottom' ); + + marginTopStyle = marginTopStyle && marginTopStyle.match( pxLengthRegex ); + marginBottomStyle = marginBottomStyle && marginBottomStyle.match( pxLengthRegex ); + marginTopPx = parseInt( marginTopStyle, 10 ); + marginBottomPx = parseInt( marginBottomStyle, 10 ); + + value = ( marginTopPx == marginBottomPx ) && marginTopPx; + isNaN ( parseInt( value, 10 ) ) && ( value = element.getAttribute( 'vspace' ) ); + this.setValue( value ); + } + }, + commit : function( type, element, internalCommit ) + { + var value = parseInt( this.getValue(), 10 ); + if ( type == IMAGE || type == PREVIEW ) + { + if ( !isNaN( value ) ) + { + element.setStyle( 'margin-top', CKEDITOR.tools.cssLength( value ) ); + element.setStyle( 'margin-bottom', CKEDITOR.tools.cssLength( value ) ); + } + else if ( !value && this.isChanged( ) ) + { + element.removeStyle( 'margin-top' ); + element.removeStyle( 'margin-bottom' ); + } + + if ( !internalCommit && type == IMAGE ) + element.removeAttribute( 'vspace' ); + } + else if ( type == CLEANUP ) + { + element.removeAttribute( 'vspace' ); + element.removeStyle( 'margin-top' ); + element.removeStyle( 'margin-bottom' ); + } + } + }, + { + id : 'cmbAlign', + type : 'select', + widths : [ '35%','65%' ], + style : 'width:90px', + label : editor.lang.common.align, + 'default' : '', + items : + [ + [ editor.lang.common.notSet , ''], + [ editor.lang.common.alignLeft , 'left'], + [ editor.lang.common.alignRight , 'right'] + // Backward compatible with v2 on setup when specified as attribute value, + // while these values are no more available as select options. + // [ editor.lang.image.alignAbsBottom , 'absBottom'], + // [ editor.lang.image.alignAbsMiddle , 'absMiddle'], + // [ editor.lang.image.alignBaseline , 'baseline'], + // [ editor.lang.image.alignTextTop , 'text-top'], + // [ editor.lang.image.alignBottom , 'bottom'], + // [ editor.lang.image.alignMiddle , 'middle'], + // [ editor.lang.image.alignTop , 'top'] + ], + onChange : function() + { + updatePreview( this.getDialog() ); + commitInternally.call( this, 'advanced:txtdlgGenStyle' ); + }, + setup : function( type, element ) + { + if ( type == IMAGE ) + { + var value = element.getStyle( 'float' ); + switch( value ) + { + // Ignore those unrelated values. + case 'inherit': + case 'none': + value = ''; + } + + !value && ( value = ( element.getAttribute( 'align' ) || '' ).toLowerCase() ); + this.setValue( value ); + } + }, + commit : function( type, element, internalCommit ) + { + var value = this.getValue(); + if ( type == IMAGE || type == PREVIEW ) + { + if ( value ) + element.setStyle( 'float', value ); + else + element.removeStyle( 'float' ); + + if ( !internalCommit && type == IMAGE ) + { + value = ( element.getAttribute( 'align' ) || '' ).toLowerCase(); + switch( value ) + { + // we should remove it only if it matches "left" or "right", + // otherwise leave it intact. + case 'left': + case 'right': + element.removeAttribute( 'align' ); + } + } + } + else if ( type == CLEANUP ) + element.removeStyle( 'float' ); + + } + } + ] + } + ] + }, + { + type : 'vbox', + height : '250px', + children : + [ + { + type : 'html', + id : 'htmlPreview', + style : 'width:95%;', + html : '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>'+ + '<div id="' + imagePreviewLoaderId + '" class="ImagePreviewLoader" style="display:none"><div class="loading"> </div></div>'+ + '<div class="ImagePreviewBox"><table><tr><td>'+ + '<a href="javascript:void(0)" target="_blank" onclick="return false;" id="' + previewLinkId + '">'+ + '<img id="' + previewImageId + '" alt="" /></a>' + + ( editor.config.image_previewText || + 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. '+ + 'Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, '+ + 'nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.' ) + + '</td></tr></table></div></div>' + } + ] + } + ] + } + ] + }, + { + id : 'Link', + label : editor.lang.link.title, + padding : 0, + elements : + [ + { + id : 'txtUrl', + type : 'text', + label : editor.lang.common.url, + style : 'width: 100%', + 'default' : '', + setup : function( type, element ) + { + if ( type == LINK ) + { + var href = element.data( 'cke-saved-href' ); + if ( !href ) + href = element.getAttribute( 'href' ); + this.setValue( href ); + } + }, + commit : function( type, element ) + { + if ( type == LINK ) + { + if ( this.getValue() || this.isChanged() ) + { + var url = decodeURI( this.getValue() ); + element.data( 'cke-saved-href', url ); + element.setAttribute( 'href', url ); + + if ( this.getValue() || !editor.config.image_removeLinkByEmptyURL ) + this.getDialog().addLink = true; + } + } + } + }, + { + type : 'button', + id : 'browse', + filebrowser : + { + action : 'Browse', + target: 'Link:txtUrl', + url: editor.config.filebrowserImageBrowseLinkUrl + }, + style : 'float:right', + hidden : true, + label : editor.lang.common.browseServer + }, + { + id : 'cmbTarget', + type : 'select', + label : editor.lang.common.target, + 'default' : '', + items : + [ + [ editor.lang.common.notSet , ''], + [ editor.lang.common.targetNew , '_blank'], + [ editor.lang.common.targetTop , '_top'], + [ editor.lang.common.targetSelf , '_self'], + [ editor.lang.common.targetParent , '_parent'] + ], + setup : function( type, element ) + { + if ( type == LINK ) + this.setValue( element.getAttribute( 'target' ) || '' ); + }, + commit : function( type, element ) + { + if ( type == LINK ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'target', this.getValue() ); + } + } + } + ] + }, + { + id : 'Upload', + hidden : true, + filebrowser : 'uploadButton', + label : editor.lang.image.upload, + elements : + [ + { + type : 'file', + id : 'upload', + label : editor.lang.image.btnUpload, + style: 'height:40px', + size : 38 + }, + { + type : 'fileButton', + id : 'uploadButton', + filebrowser : 'info:txtUrl', + label : editor.lang.image.btnUpload, + 'for' : [ 'Upload', 'upload' ] + } + ] + }, + { + id : 'advanced', + label : editor.lang.common.advancedTab, + elements : + [ + { + type : 'hbox', + widths : [ '50%', '25%', '25%' ], + children : + [ + { + type : 'text', + id : 'linkId', + label : editor.lang.common.id, + setup : function( type, element ) + { + if ( type == IMAGE ) + this.setValue( element.getAttribute( 'id' ) ); + }, + commit : function( type, element ) + { + if ( type == IMAGE ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'id', this.getValue() ); + } + } + }, + { + id : 'cmbLangDir', + type : 'select', + style : 'width : 100px;', + label : editor.lang.common.langDir, + 'default' : '', + items : + [ + [ editor.lang.common.notSet, '' ], + [ editor.lang.common.langDirLtr, 'ltr' ], + [ editor.lang.common.langDirRtl, 'rtl' ] + ], + setup : function( type, element ) + { + if ( type == IMAGE ) + this.setValue( element.getAttribute( 'dir' ) ); + }, + commit : function( type, element ) + { + if ( type == IMAGE ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'dir', this.getValue() ); + } + } + }, + { + type : 'text', + id : 'txtLangCode', + label : editor.lang.common.langCode, + 'default' : '', + setup : function( type, element ) + { + if ( type == IMAGE ) + this.setValue( element.getAttribute( 'lang' ) ); + }, + commit : function( type, element ) + { + if ( type == IMAGE ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'lang', this.getValue() ); + } + } + } + ] + }, + { + type : 'text', + id : 'txtGenLongDescr', + label : editor.lang.common.longDescr, + setup : function( type, element ) + { + if ( type == IMAGE ) + this.setValue( element.getAttribute( 'longDesc' ) ); + }, + commit : function( type, element ) + { + if ( type == IMAGE ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'longDesc', this.getValue() ); + } + } + }, + { + type : 'hbox', + widths : [ '50%', '50%' ], + children : + [ + { + type : 'text', + id : 'txtGenClass', + label : editor.lang.common.cssClass, + 'default' : '', + setup : function( type, element ) + { + if ( type == IMAGE ) + this.setValue( element.getAttribute( 'class' ) ); + }, + commit : function( type, element ) + { + if ( type == IMAGE ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'class', this.getValue() ); + } + } + }, + { + type : 'text', + id : 'txtGenTitle', + label : editor.lang.common.advisoryTitle, + 'default' : '', + onChange : function() + { + updatePreview( this.getDialog() ); + }, + setup : function( type, element ) + { + if ( type == IMAGE ) + this.setValue( element.getAttribute( 'title' ) ); + }, + commit : function( type, element ) + { + if ( type == IMAGE ) + { + if ( this.getValue() || this.isChanged() ) + element.setAttribute( 'title', this.getValue() ); + } + else if ( type == PREVIEW ) + { + element.setAttribute( 'title', this.getValue() ); + } + else if ( type == CLEANUP ) + { + element.removeAttribute( 'title' ); + } + } + } + ] + }, + { + type : 'text', + id : 'txtdlgGenStyle', + label : editor.lang.common.cssStyle, + validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), + 'default' : '', + setup : function( type, element ) + { + if ( type == IMAGE ) + { + var genStyle = element.getAttribute( 'style' ); + if ( !genStyle && element.$.style.cssText ) + genStyle = element.$.style.cssText; + this.setValue( genStyle ); + + var height = element.$.style.height, + width = element.$.style.width, + aMatchH = ( height ? height : '' ).match( regexGetSize ), + aMatchW = ( width ? width : '').match( regexGetSize ); + + this.attributesInStyle = + { + height : !!aMatchH, + width : !!aMatchW + }; + } + }, + onChange : function () + { + commitInternally.call( this, + [ 'info:cmbFloat', 'info:cmbAlign', + 'info:txtVSpace', 'info:txtHSpace', + 'info:txtBorder', + 'info:txtWidth', 'info:txtHeight' ] ); + updatePreview( this ); + }, + commit : function( type, element ) + { + if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) + { + element.setAttribute( 'style', this.getValue() ); + } + } + } + ] + } + ] + }; + }; + + CKEDITOR.dialog.add( 'image', function( editor ) + { + return imageDialog( editor, 'image' ); + }); + + CKEDITOR.dialog.add( 'imagebutton', function( editor ) + { + return imageDialog( editor, 'imagebutton' ); + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/image/plugin.js b/htdocs/includes/ckeditor/_source/plugins/image/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..acc555446b6598f0ef8e1a04f5b64b34ea054a37 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/image/plugin.js @@ -0,0 +1,166 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Image plugin + */ + +(function() +{ + +CKEDITOR.plugins.add( 'image', +{ + requires: [ 'dialog' ], + + init : function( editor ) + { + var pluginName = 'image'; + + // Register the dialog. + CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/image.js' ); + + // Register the command. + editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) ); + + // Register the toolbar button. + editor.ui.addButton( 'Image', + { + label : editor.lang.common.image, + command : pluginName + }); + + editor.on( 'doubleclick', function( evt ) + { + var element = evt.data.element; + + if ( element.is( 'img' ) && !element.data( 'cke-realelement' ) && !element.isReadOnly() ) + evt.data.dialog = 'image'; + }); + + // If the "menu" plugin is loaded, register the menu items. + if ( editor.addMenuItems ) + { + editor.addMenuItems( + { + image : + { + label : editor.lang.image.menu, + command : 'image', + group : 'image' + } + }); + } + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element, selection ) + { + if ( getSelectedImage( editor, element ) ) + return { image : CKEDITOR.TRISTATE_OFF }; + }); + } + }, + afterInit : function( editor ) + { + // Customize the behavior of the alignment commands. (#7430) + setupAlignCommand( 'left' ); + setupAlignCommand( 'right' ); + setupAlignCommand( 'center' ); + setupAlignCommand( 'block' ); + + function setupAlignCommand( value ) + { + var command = editor.getCommand( 'justify' + value ); + if ( command ) + { + if ( value == 'left' || value == 'right' ) + { + command.on( 'exec', function( evt ) + { + var img = getSelectedImage( editor ), align; + if ( img ) + { + align = getImageAlignment( img ); + if ( align == value ) + { + img.removeStyle( 'float' ); + + // Remove "align" attribute when necessary. + if ( value == getImageAlignment( img ) ) + img.removeAttribute( 'align' ); + } + else + img.setStyle( 'float', value ); + + evt.cancel(); + } + }); + } + + command.on( 'refresh', function( evt ) + { + var img = getSelectedImage( editor ), align; + if ( img ) + { + align = getImageAlignment( img ); + + this.setState( + ( align == value ) ? CKEDITOR.TRISTATE_ON : + ( value == 'right' || value == 'left' ) ? CKEDITOR.TRISTATE_OFF : + CKEDITOR.TRISTATE_DISABLED ); + + evt.cancel(); + } + }); + } + } + } +}); + +function getSelectedImage( editor, element ) +{ + if ( !element ) + { + var sel = editor.getSelection(); + element = ( sel.getType() == CKEDITOR.SELECTION_ELEMENT ) && sel.getSelectedElement(); + } + + if ( element && element.is( 'img' ) && !element.data( 'cke-realelement' ) && !element.isReadOnly() ) + return element; +} + +function getImageAlignment( element ) +{ + var align = element.getStyle( 'float' ); + + if ( align == 'inherit' || align == 'none' ) + align = 0; + + if ( !align ) + align = element.getAttribute( 'align' ); + + return align; +} + +})(); + +/** + * Whether to remove links when emptying the link URL field in the image dialog. + * @type Boolean + * @default true + * @example + * config.image_removeLinkByEmptyURL = false; + */ +CKEDITOR.config.image_removeLinkByEmptyURL = true; + +/** + * Padding text to set off the image in preview area. + * @name CKEDITOR.config.image_previewText + * @type String + * @default "Lorem ipsum dolor..." placehoder text. + * @example + * config.image_previewText = CKEDITOR.tools.repeat( '___ ', 100 ); + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/indent/plugin.js b/htdocs/includes/ckeditor/_source/plugins/indent/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..7b28c773c845ac89928617ffcd20a6fd2958ab14 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/indent/plugin.js @@ -0,0 +1,464 @@ +/* +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']; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/justify/plugin.js b/htdocs/includes/ckeditor/_source/plugins/justify/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..1b3aaa5ec303079598f61a10c336d0d288d94e41 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/justify/plugin.js @@ -0,0 +1,251 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Justify commands. + */ + +(function() +{ + function getAlignment( element, useComputedState ) + { + useComputedState = useComputedState === undefined || useComputedState; + + var align; + if ( useComputedState ) + align = element.getComputedStyle( 'text-align' ); + else + { + while ( !element.hasAttribute || !( element.hasAttribute( 'align' ) || element.getStyle( 'text-align' ) ) ) + { + var parent = element.getParent(); + if ( !parent ) + break; + element = parent; + } + align = element.getStyle( 'text-align' ) || element.getAttribute( 'align' ) || ''; + } + + // Sometimes computed values doesn't tell. + align && ( align = align.replace( /(?:-(?:moz|webkit)-)?(?:start|auto)/i, '' ) ); + + !align && useComputedState && ( align = element.getComputedStyle( 'direction' ) == 'rtl' ? 'right' : 'left' ); + + return align; + } + + function onSelectionChange( evt ) + { + if ( evt.editor.readOnly ) + return; + + evt.editor.getCommand( this.name ).refresh( evt.data.path ); + } + + function justifyCommand( editor, name, value ) + { + this.editor = editor; + this.name = name; + this.value = value; + + var classes = editor.config.justifyClasses; + if ( classes ) + { + switch ( value ) + { + case 'left' : + this.cssClassName = classes[0]; + break; + case 'center' : + this.cssClassName = classes[1]; + break; + case 'right' : + this.cssClassName = classes[2]; + break; + case 'justify' : + this.cssClassName = classes[3]; + break; + } + + this.cssClassRegex = new RegExp( '(?:^|\\s+)(?:' + classes.join( '|' ) + ')(?=$|\\s)' ); + } + } + + function onDirChanged( e ) + { + var editor = e.editor; + + var range = new CKEDITOR.dom.range( editor.document ); + range.setStartBefore( e.data.node ); + range.setEndAfter( e.data.node ); + + var walker = new CKEDITOR.dom.walker( range ), + node; + + while ( ( node = walker.next() ) ) + { + if ( node.type == CKEDITOR.NODE_ELEMENT ) + { + // A child with the defined dir is to be ignored. + if ( !node.equals( e.data.node ) && node.getDirection() ) + { + range.setStartAfter( node ); + walker = new CKEDITOR.dom.walker( range ); + continue; + } + + // Switch the alignment. + var classes = editor.config.justifyClasses; + if ( classes ) + { + // The left align class. + if ( node.hasClass( classes[ 0 ] ) ) + { + node.removeClass( classes[ 0 ] ); + node.addClass( classes[ 2 ] ); + } + // The right align class. + else if ( node.hasClass( classes[ 2 ] ) ) + { + node.removeClass( classes[ 2 ] ); + node.addClass( classes[ 0 ] ); + } + } + + // Always switch CSS margins. + var style = 'text-align'; + var align = node.getStyle( style ); + + if ( align == 'left' ) + node.setStyle( style, 'right' ); + else if ( align == 'right' ) + node.setStyle( style, 'left' ); + } + } + } + + justifyCommand.prototype = { + exec : function( editor ) + { + var selection = editor.getSelection(), + enterMode = editor.config.enterMode; + + if ( !selection ) + return; + + var bookmarks = selection.createBookmarks(), + ranges = selection.getRanges( true ); + + var cssClassName = this.cssClassName, + iterator, + block; + + var useComputedState = editor.config.useComputedState; + useComputedState = useComputedState === undefined || useComputedState; + + for ( var i = ranges.length - 1 ; i >= 0 ; i-- ) + { + iterator = ranges[ i ].createIterator(); + iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR; + + while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) ) + { + block.removeAttribute( 'align' ); + block.removeStyle( 'text-align' ); + + // Remove any of the alignment classes from the className. + var className = cssClassName && ( block.$.className = + CKEDITOR.tools.ltrim( block.$.className.replace( this.cssClassRegex, '' ) ) ); + + var apply = + ( this.state == CKEDITOR.TRISTATE_OFF ) && + ( !useComputedState || ( getAlignment( block, true ) != this.value ) ); + + if ( cssClassName ) + { + // Append the desired class name. + if ( apply ) + block.addClass( cssClassName ); + else if ( !className ) + block.removeAttribute( 'class' ); + } + else if ( apply ) + block.setStyle( 'text-align', this.value ); + } + + } + + editor.focus(); + editor.forceNextSelectionCheck(); + selection.selectBookmarks( bookmarks ); + }, + + refresh : function( path ) + { + var firstBlock = path.block || path.blockLimit; + + this.setState( firstBlock.getName() != 'body' && + getAlignment( firstBlock, this.editor.config.useComputedState ) == this.value ? + CKEDITOR.TRISTATE_ON : + CKEDITOR.TRISTATE_OFF ); + } + }; + + CKEDITOR.plugins.add( 'justify', + { + init : function( editor ) + { + var left = new justifyCommand( editor, 'justifyleft', 'left' ), + center = new justifyCommand( editor, 'justifycenter', 'center' ), + right = new justifyCommand( editor, 'justifyright', 'right' ), + justify = new justifyCommand( editor, 'justifyblock', 'justify' ); + + editor.addCommand( 'justifyleft', left ); + editor.addCommand( 'justifycenter', center ); + editor.addCommand( 'justifyright', right ); + editor.addCommand( 'justifyblock', justify ); + + editor.ui.addButton( 'JustifyLeft', + { + label : editor.lang.justify.left, + command : 'justifyleft' + } ); + editor.ui.addButton( 'JustifyCenter', + { + label : editor.lang.justify.center, + command : 'justifycenter' + } ); + editor.ui.addButton( 'JustifyRight', + { + label : editor.lang.justify.right, + command : 'justifyright' + } ); + editor.ui.addButton( 'JustifyBlock', + { + label : editor.lang.justify.block, + command : 'justifyblock' + } ); + + editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, left ) ); + editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, right ) ); + editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, center ) ); + editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, justify ) ); + editor.on( 'dirChanged', onDirChanged ); + }, + + requires : [ 'domiterator' ] + }); +})(); + + /** + * List of classes to use for aligning the contents. If it's null, no classes will be used + * and instead the corresponding CSS values will be used. The array should contain 4 members, in the following order: left, center, right, justify. + * @name CKEDITOR.config.justifyClasses + * @type Array + * @default null + * @example + * // Use the classes 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify' + * config.justifyClasses = [ 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify' ]; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/keystrokes/plugin.js b/htdocs/includes/ckeditor/_source/plugins/keystrokes/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..d0dc82e1cb7900950b5e0f33a373de4b3180f54f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/keystrokes/plugin.js @@ -0,0 +1,225 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +// Register a plugin named "sample". +CKEDITOR.plugins.add( 'keystrokes', +{ + beforeInit : function( editor ) + { + /** + * Controls keystrokes typing in this editor instance. + * @name CKEDITOR.editor.prototype.keystrokeHandler + * @type CKEDITOR.keystrokeHandler + * @example + */ + editor.keystrokeHandler = new CKEDITOR.keystrokeHandler( editor ); + + editor.specialKeys = {}; + }, + + init : function( editor ) + { + var keystrokesConfig = editor.config.keystrokes, + blockedConfig = editor.config.blockedKeystrokes; + + var keystrokes = editor.keystrokeHandler.keystrokes, + blockedKeystrokes = editor.keystrokeHandler.blockedKeystrokes; + + for ( var i = 0 ; i < keystrokesConfig.length ; i++ ) + keystrokes[ keystrokesConfig[i][0] ] = keystrokesConfig[i][1]; + + for ( i = 0 ; i < blockedConfig.length ; i++ ) + blockedKeystrokes[ blockedConfig[i] ] = 1; + } +}); + +/** + * Controls keystrokes typing in an editor instance. + * @constructor + * @param {CKEDITOR.editor} editor The editor instance. + * @example + */ +CKEDITOR.keystrokeHandler = function( editor ) +{ + if ( editor.keystrokeHandler ) + return editor.keystrokeHandler; + + /** + * List of keystrokes associated to commands. Each entry points to the + * command to be executed. + * @type Object + * @example + */ + this.keystrokes = {}; + + /** + * List of keystrokes that should be blocked if not defined at + * {@link keystrokes}. In this way it is possible to block the default + * browser behavior for those keystrokes. + * @type Object + * @example + */ + this.blockedKeystrokes = {}; + + this._ = + { + editor : editor + }; + + return this; +}; + +(function() +{ + var cancel; + + var onKeyDown = function( event ) + { + // The DOM event object is passed by the "data" property. + event = event.data; + + var keyCombination = event.getKeystroke(); + var command = this.keystrokes[ keyCombination ]; + var editor = this._.editor; + + cancel = ( editor.fire( 'key', { keyCode : keyCombination } ) === true ); + + if ( !cancel ) + { + if ( command ) + { + var data = { from : 'keystrokeHandler' }; + cancel = ( editor.execCommand( command, data ) !== false ); + } + + if ( !cancel ) + { + var handler = editor.specialKeys[ keyCombination ]; + cancel = ( handler && handler( editor ) === true ); + + if ( !cancel ) + cancel = !!this.blockedKeystrokes[ keyCombination ]; + } + } + + if ( cancel ) + event.preventDefault( true ); + + return !cancel; + }; + + var onKeyPress = function( event ) + { + if ( cancel ) + { + cancel = false; + event.data.preventDefault( true ); + } + }; + + CKEDITOR.keystrokeHandler.prototype = + { + /** + * Attaches this keystroke handle to a DOM object. Keystrokes typed + ** over this object will get handled by this keystrokeHandler. + * @param {CKEDITOR.dom.domObject} domObject The DOM object to attach + * to. + * @example + */ + attach : function( domObject ) + { + // For most browsers, it is enough to listen to the keydown event + // only. + domObject.on( 'keydown', onKeyDown, this ); + + // Some browsers instead, don't cancel key events in the keydown, but in the + // keypress. So we must do a longer trip in those cases. + if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) ) + domObject.on( 'keypress', onKeyPress, this ); + } + }; +})(); + +/** + * A list of keystrokes to be blocked if not defined in the {@link CKEDITOR.config.keystrokes} + * setting. In this way it is possible to block the default browser behavior + * for those keystrokes. + * @type Array + * @default (see example) + * @example + * // This is actually the default value. + * config.blockedKeystrokes = + * [ + * CKEDITOR.CTRL + 66 /*B*/, + * CKEDITOR.CTRL + 73 /*I*/, + * CKEDITOR.CTRL + 85 /*U*/ + * ]; + */ +CKEDITOR.config.blockedKeystrokes = +[ + CKEDITOR.CTRL + 66 /*B*/, + CKEDITOR.CTRL + 73 /*I*/, + CKEDITOR.CTRL + 85 /*U*/ +]; + +/** + * A list associating keystrokes to editor commands. Each element in the list + * is an array where the first item is the keystroke, and the second is the + * name of the command to be executed. + * @type Array + * @default (see example) + * @example + * // This is actually the default value. + * config.keystrokes = + * [ + * [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ], + * [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ], + * + * [ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], + * + * [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ], + * [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ], + * [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ], + * + * [ CKEDITOR.CTRL + 76 /*L*/, 'link' ], + * + * [ CKEDITOR.CTRL + 66 /*B*/, 'bold' ], + * [ CKEDITOR.CTRL + 73 /*I*/, 'italic' ], + * [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ], + * + * [ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ] + * ]; + */ +CKEDITOR.config.keystrokes = +[ + [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ], + [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ], + + [ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], + [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], + + [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ], + [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ], + [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ], + + [ CKEDITOR.CTRL + 76 /*L*/, 'link' ], + + [ CKEDITOR.CTRL + 66 /*B*/, 'bold' ], + [ CKEDITOR.CTRL + 73 /*I*/, 'italic' ], + [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ], + + [ CKEDITOR.ALT + ( CKEDITOR.env.ie || CKEDITOR.env.webkit ? 189 : 109 ) /*-*/, 'toolbarCollapse' ], + [ CKEDITOR.ALT + 48 /*0*/, 'a11yHelp' ] +]; + +/** + * Fired when any keyboard key (or combination) is pressed into the editing area. + * @name CKEDITOR.editor#key + * @event + * @param {Number} data.keyCode A number representing the key code (or + * combination). It is the sum of the current key code and the + * {@link CKEDITOR.CTRL}, {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT} + * constants, if those are pressed. + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/link/dialogs/anchor.js b/htdocs/includes/ckeditor/_source/plugins/link/dialogs/anchor.js new file mode 100644 index 0000000000000000000000000000000000000000..c9b54c53ac9c3470e9587dc66d330c5295f5f82c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/link/dialogs/anchor.js @@ -0,0 +1,144 @@ +/* +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 = + { + 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; + } + } + ] + } + ] + }; +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/link/dialogs/link.js b/htdocs/includes/ckeditor/_source/plugins/link/dialogs/link.js new file mode 100644 index 0000000000000000000000000000000000000000..238113a5584bb90085675f08e9b6db4538ef779d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/link/dialogs/link.js @@ -0,0 +1,1427 @@ +/* +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 ( 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)'; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/link/images/anchor.gif b/htdocs/includes/ckeditor/_source/plugins/link/images/anchor.gif new file mode 100644 index 0000000000000000000000000000000000000000..5aa797b2240a432d9f3f1d166ed5542eaf684937 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/link/images/anchor.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/link/plugin.js b/htdocs/includes/ckeditor/_source/plugins/link/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..7cf714432953b72999139b2835eb78e88ff8b4ee --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/link/plugin.js @@ -0,0 +1,373 @@ +/* +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 +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/list/plugin.js b/htdocs/includes/ckeditor/_source/plugins/list/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..373f9142bc2e4d722832c53d9a8c7e36bc072ba4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/list/plugin.js @@ -0,0 +1,1038 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Insert and remove numbered and bulleted lists. + */ + +(function() +{ + var listNodeNames = { ol : 1, ul : 1 }, + emptyTextRegex = /^[\n\r\t ]*$/; + + var whitespaces = CKEDITOR.dom.walker.whitespaces(), + bookmarks = CKEDITOR.dom.walker.bookmark(), + nonEmpty = function( node ){ return !( whitespaces( node ) || bookmarks( node ) );}, + blockBogus = CKEDITOR.dom.walker.bogus(); + + function cleanUpDirection( element ) + { + var dir, parent, parentDir; + if ( ( dir = element.getDirection() ) ) + { + parent = element.getParent(); + while ( parent && !( parentDir = parent.getDirection() ) ) + parent = parent.getParent(); + + if ( dir == parentDir ) + element.removeAttribute( 'dir' ); + } + } + + // Inheirt inline styles from another element. + function inheirtInlineStyles( parent, el ) + { + var style = parent.getAttribute( 'style' ); + + // Put parent styles before child styles. + style && el.setAttribute( 'style', + style.replace( /([^;])$/, '$1;' ) + + ( el.getAttribute( 'style' ) || '' ) ); + } + + CKEDITOR.plugins.list = { + /* + * Convert a DOM list tree into a data structure that is easier to + * manipulate. This operation should be non-intrusive in the sense that it + * does not change the DOM tree, with the exception that it may add some + * markers to the list item nodes when database is specified. + */ + listToArray : function( listNode, database, baseArray, baseIndentLevel, grandparentNode ) + { + if ( !listNodeNames[ listNode.getName() ] ) + return []; + + if ( !baseIndentLevel ) + baseIndentLevel = 0; + if ( !baseArray ) + baseArray = []; + + // Iterate over all list items to and look for inner lists. + for ( var i = 0, count = listNode.getChildCount() ; i < count ; i++ ) + { + var listItem = listNode.getChild( i ); + + // Fixing malformed nested lists by moving it into a previous list item. (#6236) + if( listItem.type == CKEDITOR.NODE_ELEMENT && listItem.getName() in CKEDITOR.dtd.$list ) + CKEDITOR.plugins.list.listToArray( listItem, database, baseArray, baseIndentLevel + 1 ); + + // It may be a text node or some funny stuff. + if ( listItem.$.nodeName.toLowerCase() != 'li' ) + continue; + + var itemObj = { 'parent' : listNode, indent : baseIndentLevel, element : listItem, contents : [] }; + if ( !grandparentNode ) + { + itemObj.grandparent = listNode.getParent(); + if ( itemObj.grandparent && itemObj.grandparent.$.nodeName.toLowerCase() == 'li' ) + itemObj.grandparent = itemObj.grandparent.getParent(); + } + else + itemObj.grandparent = grandparentNode; + + if ( database ) + CKEDITOR.dom.element.setMarker( database, listItem, 'listarray_index', baseArray.length ); + baseArray.push( itemObj ); + + for ( var j = 0, itemChildCount = listItem.getChildCount(), child; j < itemChildCount ; j++ ) + { + child = listItem.getChild( j ); + if ( child.type == CKEDITOR.NODE_ELEMENT && listNodeNames[ child.getName() ] ) + // Note the recursion here, it pushes inner list items with + // +1 indentation in the correct order. + CKEDITOR.plugins.list.listToArray( child, database, baseArray, baseIndentLevel + 1, itemObj.grandparent ); + else + itemObj.contents.push( child ); + } + } + return baseArray; + }, + + // Convert our internal representation of a list back to a DOM forest. + arrayToList : function( listArray, database, baseIndex, paragraphMode, dir ) + { + if ( !baseIndex ) + baseIndex = 0; + if ( !listArray || listArray.length < baseIndex + 1 ) + return null; + var i, + doc = listArray[ baseIndex ].parent.getDocument(), + retval = new CKEDITOR.dom.documentFragment( doc ), + rootNode = null, + currentIndex = baseIndex, + indentLevel = Math.max( listArray[ baseIndex ].indent, 0 ), + currentListItem = null, + orgDir, + block, + paragraphName = ( paragraphMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); + while ( 1 ) + { + var item = listArray[ currentIndex ], + itemGrandParent = item.grandparent; + + orgDir = item.element.getDirection( 1 ); + + if ( item.indent == indentLevel ) + { + if ( !rootNode || listArray[ currentIndex ].parent.getName() != rootNode.getName() ) + { + rootNode = listArray[ currentIndex ].parent.clone( false, 1 ); + dir && rootNode.setAttribute( 'dir', dir ); + retval.append( rootNode ); + } + currentListItem = rootNode.append( item.element.clone( 0, 1 ) ); + + if ( orgDir != rootNode.getDirection( 1 ) ) + currentListItem.setAttribute( 'dir', orgDir ); + + for ( i = 0 ; i < item.contents.length ; i++ ) + currentListItem.append( item.contents[i].clone( 1, 1 ) ); + currentIndex++; + } + else if ( item.indent == Math.max( indentLevel, 0 ) + 1 ) + { + // Maintain original direction (#6861). + var currDir = listArray[ currentIndex - 1 ].element.getDirection( 1 ), + listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode, + currDir != orgDir ? orgDir: null ); + + // If the next block is an <li> with another list tree as the first + // child, we'll need to append a filler (<br>/NBSP) or the list item + // wouldn't be editable. (#6724) + if ( !currentListItem.getChildCount() && CKEDITOR.env.ie && !( doc.$.documentMode > 7 )) + currentListItem.append( doc.createText( '\xa0' ) ); + currentListItem.append( listData.listNode ); + currentIndex = listData.nextIndex; + } + else if ( item.indent == -1 && !baseIndex && itemGrandParent ) + { + if ( listNodeNames[ itemGrandParent.getName() ] ) + { + currentListItem = item.element.clone( false, true ); + if ( orgDir != itemGrandParent.getDirection( 1 ) ) + currentListItem.setAttribute( 'dir', orgDir ); + } + else + currentListItem = new CKEDITOR.dom.documentFragment( doc ); + + // Migrate all children to the new container, + // apply the proper text direction. + var dirLoose = itemGrandParent.getDirection( 1 ) != orgDir, + li = item.element, + className = li.getAttribute( 'class' ), + style = li.getAttribute( 'style' ); + + var needsBlock = currentListItem.type == + CKEDITOR.NODE_DOCUMENT_FRAGMENT && + ( paragraphMode != CKEDITOR.ENTER_BR || dirLoose || + style || className ); + + var child, count = item.contents.length; + for ( i = 0 ; i < count; i++ ) + { + child = item.contents[ i ]; + + if ( child.type == CKEDITOR.NODE_ELEMENT && child.isBlockBoundary() ) + { + // Apply direction on content blocks. + if ( dirLoose && !child.getDirection() ) + child.setAttribute( 'dir', orgDir ); + + inheirtInlineStyles( li, child ); + + className && child.addClass( className ); + } + else if ( needsBlock ) + { + // Establish new block to hold text direction and styles. + if ( !block ) + { + block = doc.createElement( paragraphName ); + dirLoose && block.setAttribute( 'dir', orgDir ); + } + + // Copy over styles to new block; + style && block.setAttribute( 'style', style ); + className && block.setAttribute( 'class', className ); + + block.append( child.clone( 1, 1 ) ); + } + + currentListItem.append( block || child.clone( 1, 1 ) ); + } + + if ( currentListItem.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT + && currentIndex != listArray.length - 1 ) + { + var last = currentListItem.getLast(); + if ( last && last.type == CKEDITOR.NODE_ELEMENT + && last.getAttribute( 'type' ) == '_moz' ) + { + last.remove(); + } + + if ( !( last = currentListItem.getLast( nonEmpty ) + && last.type == CKEDITOR.NODE_ELEMENT + && last.getName() in CKEDITOR.dtd.$block ) ) + { + currentListItem.append( doc.createElement( 'br' ) ); + } + } + + var currentListItemName = currentListItem.$.nodeName.toLowerCase(); + if ( !CKEDITOR.env.ie && ( currentListItemName == 'div' || currentListItemName == 'p' ) ) + currentListItem.appendBogus(); + retval.append( currentListItem ); + rootNode = null; + currentIndex++; + } + else + return null; + + block = null; + + if ( listArray.length <= currentIndex || Math.max( listArray[ currentIndex ].indent, 0 ) < indentLevel ) + break; + } + + if ( database ) + { + var currentNode = retval.getFirst(), + listRoot = listArray[ 0 ].parent; + + while ( currentNode ) + { + if ( currentNode.type == CKEDITOR.NODE_ELEMENT ) + { + // Clear marker attributes for the new list tree made of cloned nodes, if any. + CKEDITOR.dom.element.clearMarkers( database, currentNode ); + + // Clear redundant direction attribute specified on list items. + if ( currentNode.getName() in CKEDITOR.dtd.$listItem ) + cleanUpDirection( currentNode ); + } + + currentNode = currentNode.getNextSourceNode(); + } + } + + return { listNode : retval, nextIndex : currentIndex }; + } + }; + + function onSelectionChange( evt ) + { + if ( evt.editor.readOnly ) + return null; + + var path = evt.data.path, + blockLimit = path.blockLimit, + elements = path.elements, + element, + i; + + // Grouping should only happen under blockLimit.(#3940). + for ( i = 0 ; i < elements.length && ( element = elements[ i ] ) + && !element.equals( blockLimit ); i++ ) + { + if ( listNodeNames[ elements[ i ].getName() ] ) + return this.setState( this.type == elements[ i ].getName() ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); + } + + return this.setState( CKEDITOR.TRISTATE_OFF ); + } + + function changeListType( editor, groupObj, database, listsCreated ) + { + // This case is easy... + // 1. Convert the whole list into a one-dimensional array. + // 2. Change the list type by modifying the array. + // 3. Recreate the whole list by converting the array to a list. + // 4. Replace the original list with the recreated list. + var listArray = CKEDITOR.plugins.list.listToArray( groupObj.root, database ), + selectedListItems = []; + + for ( var i = 0 ; i < groupObj.contents.length ; i++ ) + { + var itemNode = groupObj.contents[i]; + itemNode = itemNode.getAscendant( 'li', true ); + if ( !itemNode || itemNode.getCustomData( 'list_item_processed' ) ) + continue; + selectedListItems.push( itemNode ); + CKEDITOR.dom.element.setMarker( database, itemNode, 'list_item_processed', true ); + } + + var root = groupObj.root, + doc = root.getDocument(), + listNode, + newListNode; + + for ( i = 0 ; i < selectedListItems.length ; i++ ) + { + var listIndex = selectedListItems[i].getCustomData( 'listarray_index' ); + listNode = listArray[ listIndex ].parent; + + // Switch to new list node for this particular item. + if ( !listNode.is( this.type ) ) + { + newListNode = doc.createElement( this.type ); + // Copy all attributes, except from 'start' and 'type'. + listNode.copyAttributes( newListNode, { start : 1, type : 1 } ); + // The list-style-type property should be ignored. + newListNode.removeStyle( 'list-style-type' ); + listArray[ listIndex ].parent = newListNode; + } + } + + var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode ); + var child, length = newList.listNode.getChildCount(); + for ( i = 0 ; i < length && ( child = newList.listNode.getChild( i ) ) ; i++ ) + { + if ( child.getName() == this.type ) + listsCreated.push( child ); + } + newList.listNode.replace( groupObj.root ); + } + + var headerTagRegex = /^h[1-6]$/; + + function createList( editor, groupObj, listsCreated ) + { + var contents = groupObj.contents, + doc = groupObj.root.getDocument(), + listContents = []; + + // It is possible to have the contents returned by DomRangeIterator to be the same as the root. + // e.g. when we're running into table cells. + // In such a case, enclose the childNodes of contents[0] into a <div>. + if ( contents.length == 1 && contents[0].equals( groupObj.root ) ) + { + var divBlock = doc.createElement( 'div' ); + contents[0].moveChildren && contents[0].moveChildren( divBlock ); + contents[0].append( divBlock ); + contents[0] = divBlock; + } + + // Calculate the common parent node of all content blocks. + var commonParent = groupObj.contents[0].getParent(); + for ( var i = 0 ; i < contents.length ; i++ ) + commonParent = commonParent.getCommonAncestor( contents[i].getParent() ); + + var useComputedState = editor.config.useComputedState, + listDir, explicitDirection; + + useComputedState = useComputedState === undefined || useComputedState; + + // We want to insert things that are in the same tree level only, so calculate the contents again + // by expanding the selected blocks to the same tree level. + for ( i = 0 ; i < contents.length ; i++ ) + { + var contentNode = contents[i], + parentNode; + while ( ( parentNode = contentNode.getParent() ) ) + { + if ( parentNode.equals( commonParent ) ) + { + listContents.push( contentNode ); + + // Determine the lists's direction. + if ( !explicitDirection && contentNode.getDirection() ) + explicitDirection = 1; + + var itemDir = contentNode.getDirection( useComputedState ); + + if ( listDir !== null ) + { + // If at least one LI have a different direction than current listDir, we can't have listDir. + if ( listDir && listDir != itemDir ) + listDir = null; + else + listDir = itemDir; + } + + break; + } + contentNode = parentNode; + } + } + + if ( listContents.length < 1 ) + return; + + // Insert the list to the DOM tree. + var insertAnchor = listContents[ listContents.length - 1 ].getNext(), + listNode = doc.createElement( this.type ); + + listsCreated.push( listNode ); + + var contentBlock, listItem; + + while ( listContents.length ) + { + contentBlock = listContents.shift(); + listItem = doc.createElement( 'li' ); + + // Preserve preformat block and heading structure when converting to list item. (#5335) (#5271) + if ( contentBlock.is( 'pre' ) || headerTagRegex.test( contentBlock.getName() ) ) + contentBlock.appendTo( listItem ); + else + { + contentBlock.copyAttributes( listItem ); + // Remove direction attribute after it was merged into list root. (#7657) + if ( listDir && contentBlock.getDirection() ) + { + listItem.removeStyle( 'direction' ); + listItem.removeAttribute( 'dir' ); + } + contentBlock.moveChildren( listItem ); + contentBlock.remove(); + } + + listItem.appendTo( listNode ); + } + + // Apply list root dir only if it has been explicitly declared. + if ( listDir && explicitDirection ) + listNode.setAttribute( 'dir', listDir ); + + if ( insertAnchor ) + listNode.insertBefore( insertAnchor ); + else + listNode.appendTo( commonParent ); + } + + function removeList( editor, groupObj, database ) + { + // This is very much like the change list type operation. + // Except that we're changing the selected items' indent to -1 in the list array. + var listArray = CKEDITOR.plugins.list.listToArray( groupObj.root, database ), + selectedListItems = []; + + for ( var i = 0 ; i < groupObj.contents.length ; i++ ) + { + var itemNode = groupObj.contents[i]; + itemNode = itemNode.getAscendant( 'li', true ); + if ( !itemNode || itemNode.getCustomData( 'list_item_processed' ) ) + continue; + selectedListItems.push( itemNode ); + CKEDITOR.dom.element.setMarker( database, itemNode, 'list_item_processed', true ); + } + + var lastListIndex = null; + for ( i = 0 ; i < selectedListItems.length ; i++ ) + { + var listIndex = selectedListItems[i].getCustomData( 'listarray_index' ); + listArray[listIndex].indent = -1; + lastListIndex = listIndex; + } + + // After cutting parts of the list out with indent=-1, we still have to maintain the array list + // model's nextItem.indent <= currentItem.indent + 1 invariant. Otherwise the array model of the + // list cannot be converted back to a real DOM list. + for ( i = lastListIndex + 1 ; i < listArray.length ; i++ ) + { + if ( listArray[i].indent > listArray[i-1].indent + 1 ) + { + var indentOffset = listArray[i-1].indent + 1 - listArray[i].indent; + var oldIndent = listArray[i].indent; + while ( listArray[i] && listArray[i].indent >= oldIndent ) + { + listArray[i].indent += indentOffset; + i++; + } + i--; + } + } + + var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode, + groupObj.root.getAttribute( 'dir' ) ); + + // Compensate <br> before/after the list node if the surrounds are non-blocks.(#3836) + var docFragment = newList.listNode, boundaryNode, siblingNode; + function compensateBrs( isStart ) + { + if ( ( boundaryNode = docFragment[ isStart ? 'getFirst' : 'getLast' ]() ) + && !( boundaryNode.is && boundaryNode.isBlockBoundary() ) + && ( siblingNode = groupObj.root[ isStart ? 'getPrevious' : 'getNext' ] + ( CKEDITOR.dom.walker.whitespaces( true ) ) ) + && !( siblingNode.is && siblingNode.isBlockBoundary( { br : 1 } ) ) ) + editor.document.createElement( 'br' )[ isStart ? 'insertBefore' : 'insertAfter' ]( boundaryNode ); + } + compensateBrs( true ); + compensateBrs(); + + docFragment.replace( groupObj.root ); + } + + function listCommand( name, type ) + { + this.name = name; + this.type = type; + } + + var elementType = CKEDITOR.dom.walker.nodeType( CKEDITOR.NODE_ELEMENT ); + + // Merge child nodes with direction preserved. (#7448) + function mergeChildren( from, into, refNode, forward ) + { + var child, itemDir; + while ( ( child = from[ forward ? 'getLast' : 'getFirst' ]( elementType ) ) ) + { + if ( ( itemDir = child.getDirection( 1 ) ) !== into.getDirection( 1 ) ) + child.setAttribute( 'dir', itemDir ); + + child.remove(); + + refNode ? + child[ forward ? 'insertBefore' : 'insertAfter' ]( refNode ) : + into.append( child, forward ); + } + } + + listCommand.prototype = { + exec : function( editor ) + { + var doc = editor.document, + config = editor.config, + selection = editor.getSelection(), + ranges = selection && selection.getRanges( true ); + + // There should be at least one selected range. + if ( !ranges || ranges.length < 1 ) + return; + + // Midas lists rule #1 says we can create a list even in an empty document. + // But DOM iterator wouldn't run if the document is really empty. + // So create a paragraph if the document is empty and we're going to create a list. + if ( this.state == CKEDITOR.TRISTATE_OFF ) + { + var body = doc.getBody(); + if ( !body.getFirst( nonEmpty ) ) + { + config.enterMode == CKEDITOR.ENTER_BR ? + body.appendBogus() : + ranges[ 0 ].fixBlock( 1, config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); + + selection.selectRanges( ranges ); + } + // Maybe a single range there enclosing the whole list, + // turn on the list state manually(#4129). + else + { + var range = ranges.length == 1 && ranges[ 0 ], + enclosedNode = range && range.getEnclosedNode(); + if ( enclosedNode && enclosedNode.is + && this.type == enclosedNode.getName() ) + this.setState( CKEDITOR.TRISTATE_ON ); + } + } + + var bookmarks = selection.createBookmarks( true ); + + // Group the blocks up because there are many cases where multiple lists have to be created, + // or multiple lists have to be cancelled. + var listGroups = [], + database = {}, + rangeIterator = ranges.createIterator(), + index = 0; + + while ( ( range = rangeIterator.getNextRange() ) && ++index ) + { + var boundaryNodes = range.getBoundaryNodes(), + startNode = boundaryNodes.startNode, + endNode = boundaryNodes.endNode; + + if ( startNode.type == CKEDITOR.NODE_ELEMENT && startNode.getName() == 'td' ) + range.setStartAt( boundaryNodes.startNode, CKEDITOR.POSITION_AFTER_START ); + + if ( endNode.type == CKEDITOR.NODE_ELEMENT && endNode.getName() == 'td' ) + range.setEndAt( boundaryNodes.endNode, CKEDITOR.POSITION_BEFORE_END ); + + var iterator = range.createIterator(), + block; + + iterator.forceBrBreak = ( this.state == CKEDITOR.TRISTATE_OFF ); + + while ( ( block = iterator.getNextParagraph() ) ) + { + // Avoid duplicate blocks get processed across ranges. + if( block.getCustomData( 'list_block' ) ) + continue; + else + CKEDITOR.dom.element.setMarker( database, block, 'list_block', 1 ); + + var path = new CKEDITOR.dom.elementPath( block ), + pathElements = path.elements, + pathElementsCount = pathElements.length, + listNode = null, + processedFlag = 0, + blockLimit = path.blockLimit, + element; + + // First, try to group by a list ancestor. + for ( var i = pathElementsCount - 1; i >= 0 && ( element = pathElements[ i ] ); i-- ) + { + if ( listNodeNames[ element.getName() ] + && blockLimit.contains( element ) ) // Don't leak outside block limit (#3940). + { + // If we've encountered a list inside a block limit + // The last group object of the block limit element should + // no longer be valid. Since paragraphs after the list + // should belong to a different group of paragraphs before + // the list. (Bug #1309) + blockLimit.removeCustomData( 'list_group_object_' + index ); + + var groupObj = element.getCustomData( 'list_group_object' ); + if ( groupObj ) + groupObj.contents.push( block ); + else + { + groupObj = { root : element, contents : [ block ] }; + listGroups.push( groupObj ); + CKEDITOR.dom.element.setMarker( database, element, 'list_group_object', groupObj ); + } + processedFlag = 1; + break; + } + } + + if ( processedFlag ) + continue; + + // No list ancestor? Group by block limit, but don't mix contents from different ranges. + var root = blockLimit; + if ( root.getCustomData( 'list_group_object_' + index ) ) + root.getCustomData( 'list_group_object_' + index ).contents.push( block ); + else + { + groupObj = { root : root, contents : [ block ] }; + CKEDITOR.dom.element.setMarker( database, root, 'list_group_object_' + index, groupObj ); + listGroups.push( groupObj ); + } + } + } + + // Now we have two kinds of list groups, groups rooted at a list, and groups rooted at a block limit element. + // We either have to build lists or remove lists, for removing a list does not makes sense when we are looking + // at the group that's not rooted at lists. So we have three cases to handle. + var listsCreated = []; + while ( listGroups.length > 0 ) + { + groupObj = listGroups.shift(); + if ( this.state == CKEDITOR.TRISTATE_OFF ) + { + if ( listNodeNames[ groupObj.root.getName() ] ) + changeListType.call( this, editor, groupObj, database, listsCreated ); + else + createList.call( this, editor, groupObj, listsCreated ); + } + else if ( this.state == CKEDITOR.TRISTATE_ON && listNodeNames[ groupObj.root.getName() ] ) + removeList.call( this, editor, groupObj, database ); + } + + // For all new lists created, merge into adjacent, same type lists. + for ( i = 0 ; i < listsCreated.length ; i++ ) + mergeListSiblings( listsCreated[ i ] ); + + // Clean up, restore selection and update toolbar button states. + CKEDITOR.dom.element.clearAllMarkers( database ); + selection.selectBookmarks( bookmarks ); + editor.focus(); + } + }; + + // Merge list adjacent, of same type lists. + function mergeListSiblings( listNode ) + { + var mergeSibling; + ( mergeSibling = function( rtl ) + { + var sibling = listNode[ rtl ? 'getPrevious' : 'getNext' ]( nonEmpty ); + if ( sibling && sibling.type == CKEDITOR.NODE_ELEMENT && + sibling.is( listNode.getName() ) ) + { + // Move children order by merge direction.(#3820) + mergeChildren( listNode, sibling, null, !rtl ); + + listNode.remove(); + listNode = sibling; + } + } )(); + mergeSibling( 1 ); + } + + var dtd = CKEDITOR.dtd; + var tailNbspRegex = /[\t\r\n ]*(?: |\xa0)$/; + + function indexOfFirstChildElement( element, tagNameList ) + { + var child, + children = element.children, + length = children.length; + + for ( var i = 0 ; i < length ; i++ ) + { + child = children[ i ]; + if ( child.name && ( child.name in tagNameList ) ) + return i; + } + + return length; + } + + function getExtendNestedListFilter( isHtmlFilter ) + { + // An element filter function that corrects nested list start in an empty + // list item for better displaying/outputting. (#3165) + return function( listItem ) + { + var children = listItem.children, + firstNestedListIndex = indexOfFirstChildElement( listItem, dtd.$list ), + firstNestedList = children[ firstNestedListIndex ], + nodeBefore = firstNestedList && firstNestedList.previous, + tailNbspmatch; + + if ( nodeBefore + && ( nodeBefore.name && nodeBefore.name == 'br' + || nodeBefore.value && ( tailNbspmatch = nodeBefore.value.match( tailNbspRegex ) ) ) ) + { + var fillerNode = nodeBefore; + + // Always use 'nbsp' as filler node if we found a nested list appear + // in front of a list item. + if ( !( tailNbspmatch && tailNbspmatch.index ) && fillerNode == children[ 0 ] ) + children[ 0 ] = ( isHtmlFilter || CKEDITOR.env.ie ) ? + new CKEDITOR.htmlParser.text( '\xa0' ) : + new CKEDITOR.htmlParser.element( 'br', {} ); + + // Otherwise the filler is not needed anymore. + else if ( fillerNode.name == 'br' ) + children.splice( firstNestedListIndex - 1, 1 ); + else + fillerNode.value = fillerNode.value.replace( tailNbspRegex, '' ); + } + + }; + } + + var defaultListDataFilterRules = { elements : {} }; + for ( var i in dtd.$listItem ) + defaultListDataFilterRules.elements[ i ] = getExtendNestedListFilter(); + + var defaultListHtmlFilterRules = { elements : {} }; + for ( i in dtd.$listItem ) + defaultListHtmlFilterRules.elements[ i ] = getExtendNestedListFilter( true ); + + // Check if node is block element that recieves text. + function isTextBlock( node ) + { + return node.type == CKEDITOR.NODE_ELEMENT && + ( node.getName() in CKEDITOR.dtd.$block || + node.getName() in CKEDITOR.dtd.$listItem ) && + CKEDITOR.dtd[ node.getName() ][ '#' ]; + } + + // Merge the visual line content at the cursor range into the block. + function joinNextLineToCursor( editor, cursor, nextCursor ) + { + editor.fire( 'saveSnapshot' ); + + // Merge with previous block's content. + nextCursor.enlarge( CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ); + var frag = nextCursor.extractContents(); + + cursor.trim( false, true ); + var bm = cursor.createBookmark(); + + // Kill original bogus; + var currentPath = new CKEDITOR.dom.elementPath( cursor.startContainer ); + var currentLi = currentPath.lastElement.getAscendant( 'li', 1 ); + + var bogus = currentPath.block.getBogus(); + bogus && bogus.remove(); + + // Kill the tail br in extracted. + var last = frag.getLast(); + if ( last && last.type == CKEDITOR.NODE_ELEMENT && last.is( 'br' ) ) + last.remove(); + + // Insert fragment at the range position. + var nextNode = cursor.startContainer.getChild( cursor.startOffset ); + if ( nextNode ) + frag.insertBefore( nextNode ); + else + cursor.startContainer.append( frag ); + + var nextPath = new CKEDITOR.dom.elementPath( nextCursor.startContainer ); + var nextLi = nextCursor.startContainer.getAscendant( 'li', 1 ); + + // Move the sub list nested in the next list item. + if ( nextLi ) + { + var sublist = getSubList( nextLi ); + if ( sublist ) + { + // If next line is in the sub list of the current list item. + if ( currentLi.contains( nextLi ) ) + { + mergeChildren( sublist, nextLi.getParent(), nextLi ); + sublist.remove(); + } + // Migrate the sub list to current list item. + else + currentLi.append( sublist ); + } + } + + // Remove any remaining empty path blocks at next line after merging. + while ( nextCursor.checkStartOfBlock() && + nextCursor.checkEndOfBlock() ) + { + nextPath = new CKEDITOR.dom.elementPath( nextCursor.startContainer ); + var nextBlock = nextPath.block, parent; + + // Check if also to remove empty list. + if ( nextBlock.is( 'li' ) ) + { + parent = nextBlock.getParent(); + if ( nextBlock.equals( parent.getLast( nonEmpty ) ) + && nextBlock.equals( parent.getFirst( nonEmpty ) ) ) + nextBlock = parent; + } + + nextCursor.moveToPosition( nextBlock, CKEDITOR.POSITION_BEFORE_START ); + nextBlock.remove(); + } + + // Check if need to further merge with the list resides after the merged block. (#9080) + var walkerRng = nextCursor.clone(), body = editor.document.getBody(); + walkerRng.setEndAt( body, CKEDITOR.POSITION_BEFORE_END ); + var walker = new CKEDITOR.dom.walker( walkerRng ); + walker.evaluator = function( node ) { return nonEmpty( node ) && !blockBogus( node ); }; + var next = walker.next(); + if ( next && next.type == CKEDITOR.NODE_ELEMENT && next.getName() in CKEDITOR.dtd.$list ) + mergeListSiblings( next ); + + cursor.moveToBookmark( bm ); + + // Make fresh selection. + cursor.select(); + + editor.selectionChange( 1 ); + editor.fire( 'saveSnapshot' ); + } + + function getSubList( li ) + { + var last = li.getLast( nonEmpty ); + return last && last.type == CKEDITOR.NODE_ELEMENT && last.getName() in listNodeNames ? last : null; + } + + CKEDITOR.plugins.add( 'list', + { + init : function( editor ) + { + // Register commands. + var numberedListCommand = editor.addCommand( 'numberedlist', new listCommand( 'numberedlist', 'ol' ) ), + bulletedListCommand = editor.addCommand( 'bulletedlist', new listCommand( 'bulletedlist', 'ul' ) ); + + // Register the toolbar button. + editor.ui.addButton( 'NumberedList', + { + label : editor.lang.numberedlist, + command : 'numberedlist' + } ); + editor.ui.addButton( 'BulletedList', + { + label : editor.lang.bulletedlist, + command : 'bulletedlist' + } ); + + // Register the state changing handlers. + editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, numberedListCommand ) ); + editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, bulletedListCommand ) ); + + // Handled backspace/del key to join list items. (#8248,#9080) + editor.on( 'key', function( evt ) + { + var key = evt.data.keyCode; + + // DEl/BACKSPACE + if ( editor.mode == 'wysiwyg' && key in { 8 : 1, 46 : 1 } ) + { + var sel = editor.getSelection(), + range = sel.getRanges()[ 0 ]; + + if ( !range.collapsed ) + return; + + var isBackspace = key == 8; + var body = editor.document.getBody(); + var walker = new CKEDITOR.dom.walker( range.clone() ); + walker.evaluator = function( node ) { return nonEmpty( node ) && !blockBogus( node ); }; + + var cursor = range.clone(); + + if ( isBackspace ) + { + var previous, joinWith; + + var path = new CKEDITOR.dom.elementPath( range.startContainer ); + + // Join a sub list's first line, with the previous visual line in parent. + if ( ( previous = path.contains( listNodeNames ) ) && + range.checkBoundaryOfElement( previous, CKEDITOR.START ) && + ( previous = previous.getParent() ) && previous.is( 'li' ) && + ( previous = getSubList( previous ) ) ) + { + joinWith = previous; + previous = previous.getPrevious( nonEmpty ); + // Place cursor before the nested list. + cursor.moveToPosition( + previous && blockBogus( previous ) ? previous : joinWith, + CKEDITOR.POSITION_BEFORE_START ); + } + // Join any line following a list, with the last visual line of the list. + else + { + walker.range.setStartAt( body, CKEDITOR.POSITION_AFTER_START ); + walker.range.setEnd( range.startContainer, range.startOffset ); + previous = walker.previous(); + + if ( previous && previous.type == CKEDITOR.NODE_ELEMENT && + ( previous.getName() in listNodeNames || previous.is( 'li' ) ) ) + { + if ( !previous.is( 'li' ) ) + { + walker.range.selectNodeContents( previous ); + walker.reset(); + walker.evaluator = isTextBlock; + previous = walker.previous(); + } + + joinWith = previous; + // Place cursor at the end of previous block. + cursor.moveToElementEditEnd( joinWith ); + } + } + + if ( joinWith ) + { + joinNextLineToCursor( editor, cursor, range ); + evt.cancel(); + } + } + else + { + var li = range.startContainer.getAscendant( 'li', 1 ); + if ( li ) + { + walker.range.setEndAt( body, CKEDITOR.POSITION_BEFORE_END ); + + var last = li.getLast( nonEmpty ); + var block = last && isTextBlock( last ) ? last : li; + + // Indicate cursor at the visual end of an list item. + var isAtEnd = 0; + + var next = walker.next(); + + // When list item contains a sub list. + if ( next && next.type == CKEDITOR.NODE_ELEMENT && + next.getName() in listNodeNames + && next.equals( last ) ) + { + isAtEnd = 1; + + // Move to the first item in sub list. + next = walker.next(); + } + // Right at the end of list item. + else if ( range.checkBoundaryOfElement( block, CKEDITOR.END ) ) + isAtEnd = 1; + + + if ( isAtEnd && next ) + { + // Put cursor range there. + var nextLine = range.clone(); + nextLine.moveToElementEditStart( next ); + + joinNextLineToCursor( editor, cursor, nextLine ); + evt.cancel(); + } + } + } + + // The backspace/del could potentially put cursor at a bad position, + // being it handled or not, check immediately the selection to have it fixed. + setTimeout( function() { editor.selectionChange( 1 ); } ); + } + } ); + }, + + afterInit : function ( editor ) + { + var dataProcessor = editor.dataProcessor; + if ( dataProcessor ) + { + dataProcessor.dataFilter.addRules( defaultListDataFilterRules ); + dataProcessor.htmlFilter.addRules( defaultListHtmlFilterRules ); + } + }, + + requires : [ 'domiterator' ] + } ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/listblock/plugin.js b/htdocs/includes/ckeditor/_source/plugins/listblock/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..c505f0eefa158d3d7ba9949d542bfb03e3ecb505 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/listblock/plugin.js @@ -0,0 +1,260 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'listblock', +{ + requires : [ 'panel' ], + + onLoad : function() + { + CKEDITOR.ui.panel.prototype.addListBlock = function( name, definition ) + { + return this.addBlock( name, new CKEDITOR.ui.listBlock( this.getHolderElement(), definition ) ); + }; + + CKEDITOR.ui.listBlock = CKEDITOR.tools.createClass( + { + base : CKEDITOR.ui.panel.block, + + $ : function( blockHolder, blockDefinition ) + { + blockDefinition = blockDefinition || {}; + + var attribs = blockDefinition.attributes || ( blockDefinition.attributes = {} ); + ( this.multiSelect = !!blockDefinition.multiSelect ) && + ( attribs[ 'aria-multiselectable' ] = true ); + // Provide default role of 'listbox'. + !attribs.role && ( attribs.role = 'listbox' ); + + // Call the base contructor. + this.base.apply( this, arguments ); + + var keys = this.keys; + keys[ 40 ] = 'next'; // ARROW-DOWN + keys[ 9 ] = 'next'; // TAB + keys[ 38 ] = 'prev'; // ARROW-UP + keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB + keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE + CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (#8041). + + this._.pendingHtml = []; + this._.items = {}; + this._.groups = {}; + }, + + _ : + { + close : function() + { + if ( this._.started ) + { + this._.pendingHtml.push( '</ul>' ); + delete this._.started; + } + }, + + getClick : function() + { + if ( !this._.click ) + { + this._.click = CKEDITOR.tools.addFunction( function( value ) + { + var marked = true; + + if ( this.multiSelect ) + marked = this.toggle( value ); + else + this.mark( value ); + + if ( this.onClick ) + this.onClick( value, marked ); + }, + this ); + } + return this._.click; + } + }, + + proto : + { + add : function( value, html, title ) + { + var pendingHtml = this._.pendingHtml, + id = CKEDITOR.tools.getNextId(); + + if ( !this._.started ) + { + pendingHtml.push( '<ul role="presentation" class=cke_panel_list>' ); + this._.started = 1; + this._.size = this._.size || 0; + } + + this._.items[ value ] = id; + + pendingHtml.push( + '<li id=', id, ' class=cke_panel_listItem role=presentation>' + + '<a id="', id, '_option" _cke_focus=1 hidefocus=true' + + ' title="', title || value, '"' + + ' href="javascript:void(\'', value, '\')" ' + + ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 + '="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;"', + ' role="option">', + html || value, + '</a>' + + '</li>' ); + }, + + startGroup : function( title ) + { + this._.close(); + + var id = CKEDITOR.tools.getNextId(); + + this._.groups[ title ] = id; + + this._.pendingHtml.push( '<h1 role="presentation" id=', id, ' class=cke_panel_grouptitle>', title, '</h1>' ); + }, + + commit : function() + { + this._.close(); + this.element.appendHtml( this._.pendingHtml.join( '' ) ); + delete this._.size; + + this._.pendingHtml = []; + }, + + toggle : function( value ) + { + var isMarked = this.isMarked( value ); + + if ( isMarked ) + this.unmark( value ); + else + this.mark( value ); + + return !isMarked; + }, + + hideGroup : function( groupTitle ) + { + var group = this.element.getDocument().getById( this._.groups[ groupTitle ] ), + list = group && group.getNext(); + + if ( group ) + { + group.setStyle( 'display', 'none' ); + + if ( list && list.getName() == 'ul' ) + list.setStyle( 'display', 'none' ); + } + }, + + hideItem : function( value ) + { + this.element.getDocument().getById( this._.items[ value ] ).setStyle( 'display', 'none' ); + }, + + showAll : function() + { + var items = this._.items, + groups = this._.groups, + doc = this.element.getDocument(); + + for ( var value in items ) + { + doc.getById( items[ value ] ).setStyle( 'display', '' ); + } + + for ( var title in groups ) + { + var group = doc.getById( groups[ title ] ), + list = group.getNext(); + + group.setStyle( 'display', '' ); + + if ( list && list.getName() == 'ul' ) + list.setStyle( 'display', '' ); + } + }, + + mark : function( value ) + { + if ( !this.multiSelect ) + this.unmarkAll(); + + var itemId = this._.items[ value ], + item = this.element.getDocument().getById( itemId ); + item.addClass( 'cke_selected' ); + + this.element.getDocument().getById( itemId + '_option' ).setAttribute( 'aria-selected', true ); + this.onMark && this.onMark( item ); + }, + + unmark : function( value ) + { + var doc = this.element.getDocument(), + itemId = this._.items[ value ], + item = doc.getById( itemId ); + + item.removeClass( 'cke_selected' ); + doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' ); + + this.onUnmark && this.onUnmark( item ); + }, + + unmarkAll : function() + { + var items = this._.items, + doc = this.element.getDocument(); + + for ( var value in items ) + { + var itemId = items[ value ]; + + doc.getById( itemId ).removeClass( 'cke_selected' ); + doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' ); + } + + this.onUnmark && this.onUnmark(); + }, + + isMarked : function( value ) + { + return this.element.getDocument().getById( this._.items[ value ] ).hasClass( 'cke_selected' ); + }, + + focus : function( value ) + { + this._.focusIndex = -1; + + if ( value ) + { + var selected = this.element.getDocument().getById( this._.items[ value ] ).getFirst(); + + var links = this.element.getElementsByTag( 'a' ), + link, + i = -1; + + while ( ( link = links.getItem( ++i ) ) ) + { + if ( link.equals( selected ) ) + { + this._.focusIndex = i; + break; + } + } + + setTimeout( function() + { + selected.focus(); + }, + 0 ); + } + } + } + }); + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js b/htdocs/includes/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js new file mode 100644 index 0000000000000000000000000000000000000000..5b776ed4dd407a4392a99531fc61fb6fffca1f23 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js @@ -0,0 +1,225 @@ +/* + * 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' ); + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/liststyle/plugin.js b/htdocs/includes/ckeditor/_source/plugins/liststyle/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..e99b339b7dab95f8494c3c14d9b9bbada305c570 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/liststyle/plugin.js @@ -0,0 +1,66 @@ +/* +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 ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/maximize/plugin.js b/htdocs/includes/ckeditor/_source/plugins/maximize/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..9e9676a3af539e3e2843f300a49a0fe056d3f1a2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/maximize/plugin.js @@ -0,0 +1,353 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + function protectFormStyles( formElement ) + { + if ( !formElement || formElement.type != CKEDITOR.NODE_ELEMENT || formElement.getName() != 'form' ) + return []; + + var hijackRecord = [], + hijackNames = [ 'style', 'className' ]; + for ( var i = 0 ; i < hijackNames.length ; i++ ) + { + var name = hijackNames[i]; + var $node = formElement.$.elements.namedItem( name ); + if ( $node ) + { + var hijackNode = new CKEDITOR.dom.element( $node ); + hijackRecord.push( [ hijackNode, hijackNode.nextSibling ] ); + hijackNode.remove(); + } + } + + return hijackRecord; + } + + function restoreFormStyles( formElement, hijackRecord ) + { + if ( !formElement || formElement.type != CKEDITOR.NODE_ELEMENT || formElement.getName() != 'form' ) + return; + + if ( hijackRecord.length > 0 ) + { + for ( var i = hijackRecord.length - 1 ; i >= 0 ; i-- ) + { + var node = hijackRecord[i][0]; + var sibling = hijackRecord[i][1]; + if ( sibling ) + node.insertBefore( sibling ); + else + node.appendTo( formElement ); + } + } + } + + function saveStyles( element, isInsideEditor ) + { + var data = protectFormStyles( element ); + var retval = {}; + + var $element = element.$; + + if ( !isInsideEditor ) + { + retval[ 'class' ] = $element.className || ''; + $element.className = ''; + } + + retval.inline = $element.style.cssText || ''; + if ( !isInsideEditor ) // Reset any external styles that might interfere. (#2474) + $element.style.cssText = 'position: static; overflow: visible'; + + restoreFormStyles( data ); + return retval; + } + + function restoreStyles( element, savedStyles ) + { + var data = protectFormStyles( element ); + var $element = element.$; + if ( 'class' in savedStyles ) + $element.className = savedStyles[ 'class' ]; + if ( 'inline' in savedStyles ) + $element.style.cssText = savedStyles.inline; + restoreFormStyles( data ); + } + + function refreshCursor( editor ) + { + // Refresh all editor instances on the page (#5724). + var all = CKEDITOR.instances; + for ( var i in all ) + { + var one = all[ i ]; + if ( one.mode == 'wysiwyg' && !one.readOnly ) + { + var body = one.document.getBody(); + // Refresh 'contentEditable' otherwise + // DOM lifting breaks design mode. (#5560) + body.setAttribute( 'contentEditable', false ); + body.setAttribute( 'contentEditable', true ); + } + } + + if ( editor.focusManager.hasFocus ) + { + editor.toolbox.focus(); + editor.focus(); + } + } + + /** + * Adding an iframe shim to this element, OR removing the existing one if already applied. + * Note: This will only affect IE version below 7. + */ + function createIframeShim( element ) + { + if ( !CKEDITOR.env.ie || CKEDITOR.env.version > 6 ) + return null; + + var shim = CKEDITOR.dom.element.createFromHtml( '<iframe frameborder="0" tabindex="-1"' + + ' src="javascript:' + + 'void((function(){' + + 'document.open();' + + ( CKEDITOR.env.isCustomDomain() ? 'document.domain=\'' + this.getDocument().$.domain + '\';' : '' ) + + 'document.close();' + + '})())"' + + ' style="display:block;position:absolute;z-index:-1;' + + 'progid:DXImageTransform.Microsoft.Alpha(opacity=0);' + + '"></iframe>' ); + return element.append( shim, true ); + } + + CKEDITOR.plugins.add( 'maximize', + { + init : function( editor ) + { + var lang = editor.lang; + var mainDocument = CKEDITOR.document, + mainWindow = mainDocument.getWindow(); + + // Saved selection and scroll position for the editing area. + var savedSelection, + savedScroll; + + // Saved scroll position for the outer window. + var outerScroll; + + var shim; + + // Saved resize handler function. + function resizeHandler() + { + var viewPaneSize = mainWindow.getViewPaneSize(); + shim && shim.setStyles( { width : viewPaneSize.width + 'px', height : viewPaneSize.height + 'px' } ); + editor.resize( viewPaneSize.width, viewPaneSize.height, null, true ); + } + + // Retain state after mode switches. + var savedState = CKEDITOR.TRISTATE_OFF; + + editor.addCommand( 'maximize', + { + // Disabled on iOS (#8307). + modes : { wysiwyg : !CKEDITOR.env.iOS, source : !CKEDITOR.env.iOS }, + readOnly : 1, + editorFocus : false, + exec : function() + { + var container = editor.container.getChild( 1 ); + var contents = editor.getThemeSpace( 'contents' ); + + // Save current selection and scroll position in editing area. + if ( editor.mode == 'wysiwyg' ) + { + var selection = editor.getSelection(); + savedSelection = selection && selection.getRanges(); + savedScroll = mainWindow.getScrollPosition(); + } + else + { + var $textarea = editor.textarea.$; + savedSelection = !CKEDITOR.env.ie && [ $textarea.selectionStart, $textarea.selectionEnd ]; + savedScroll = [ $textarea.scrollLeft, $textarea.scrollTop ]; + } + + if ( this.state == CKEDITOR.TRISTATE_OFF ) // Go fullscreen if the state is off. + { + // Add event handler for resizing. + mainWindow.on( 'resize', resizeHandler ); + + // Save the scroll bar position. + outerScroll = mainWindow.getScrollPosition(); + + // Save and reset the styles for the entire node tree. + var currentNode = editor.container; + while ( ( currentNode = currentNode.getParent() ) ) + { + currentNode.setCustomData( 'maximize_saved_styles', saveStyles( currentNode ) ); + currentNode.setStyle( 'z-index', editor.config.baseFloatZIndex - 1 ); + } + contents.setCustomData( 'maximize_saved_styles', saveStyles( contents, true ) ); + container.setCustomData( 'maximize_saved_styles', saveStyles( container, true ) ); + + // Hide scroll bars. + var styles = + { + overflow : CKEDITOR.env.webkit ? '' : 'hidden', // #6896 + width : 0, + height : 0 + }; + + mainDocument.getDocumentElement().setStyles( styles ); + !CKEDITOR.env.gecko && mainDocument.getDocumentElement().setStyle( 'position', 'fixed' ); + !( CKEDITOR.env.gecko && CKEDITOR.env.quirks ) && mainDocument.getBody().setStyles( styles ); + + // Scroll to the top left (IE needs some time for it - #4923). + CKEDITOR.env.ie ? + setTimeout( function() { mainWindow.$.scrollTo( 0, 0 ); }, 0 ) : + mainWindow.$.scrollTo( 0, 0 ); + + // Resize and move to top left. + // Special treatment for FF Quirks (#7284) + container.setStyle( 'position', CKEDITOR.env.gecko && CKEDITOR.env.quirks ? 'fixed' : 'absolute' ); + container.$.offsetLeft; // SAFARI BUG: See #2066. + container.setStyles( + { + 'z-index' : editor.config.baseFloatZIndex - 1, + left : '0px', + top : '0px' + } ); + + shim = createIframeShim( container ); // IE6 select element penetration when maximized. (#4459) + + // Add cke_maximized class before resize handle since that will change things sizes (#5580) + container.addClass( 'cke_maximized' ); + + resizeHandler(); + + // Still not top left? Fix it. (Bug #174) + var offset = container.getDocumentPosition(); + container.setStyles( + { + left : ( -1 * offset.x ) + 'px', + top : ( -1 * offset.y ) + 'px' + } ); + + // Fixing positioning editor chrome in Firefox break design mode. (#5149) + CKEDITOR.env.gecko && refreshCursor( editor ); + + } + else if ( this.state == CKEDITOR.TRISTATE_ON ) // Restore from fullscreen if the state is on. + { + // Remove event handler for resizing. + mainWindow.removeListener( 'resize', resizeHandler ); + + // Restore CSS styles for the entire node tree. + var editorElements = [ contents, container ]; + for ( var i = 0 ; i < editorElements.length ; i++ ) + { + restoreStyles( editorElements[i], editorElements[i].getCustomData( 'maximize_saved_styles' ) ); + editorElements[i].removeCustomData( 'maximize_saved_styles' ); + } + + currentNode = editor.container; + while ( ( currentNode = currentNode.getParent() ) ) + { + restoreStyles( currentNode, currentNode.getCustomData( 'maximize_saved_styles' ) ); + currentNode.removeCustomData( 'maximize_saved_styles' ); + } + + // Restore the window scroll position. + CKEDITOR.env.ie ? + setTimeout( function() { mainWindow.$.scrollTo( outerScroll.x, outerScroll.y ); }, 0 ) : + mainWindow.$.scrollTo( outerScroll.x, outerScroll.y ); + + // Remove cke_maximized class. + container.removeClass( 'cke_maximized' ); + + // Webkit requires a re-layout on editor chrome. (#6695) + if ( CKEDITOR.env.webkit ) + { + container.setStyle( 'display', 'inline' ); + setTimeout( function(){ container.setStyle( 'display', 'block' ); }, 0 ); + } + + if ( shim ) + { + shim.remove(); + shim = null; + } + + // Emit a resize event, because this time the size is modified in + // restoreStyles. + editor.fire( 'resize' ); + } + + this.toggleState(); + + // Toggle button label. + var button = this.uiItems[ 0 ]; + // Only try to change the button if it exists (#6166) + if( button ) + { + var label = ( this.state == CKEDITOR.TRISTATE_OFF ) + ? lang.maximize : lang.minimize; + var buttonNode = editor.element.getDocument().getById( button._.id ); + buttonNode.getChild( 1 ).setHtml( label ); + buttonNode.setAttribute( 'title', label ); + buttonNode.setAttribute( 'href', 'javascript:void("' + label + '");' ); + } + + // Restore selection and scroll position in editing area. + if ( editor.mode == 'wysiwyg' ) + { + if ( savedSelection ) + { + // Fixing positioning editor chrome in Firefox break design mode. (#5149) + CKEDITOR.env.gecko && refreshCursor( editor ); + + editor.getSelection().selectRanges(savedSelection); + var element = editor.getSelection().getStartElement(); + element && element.scrollIntoView( true ); + } + + else + mainWindow.$.scrollTo( savedScroll.x, savedScroll.y ); + } + else + { + if ( savedSelection ) + { + $textarea.selectionStart = savedSelection[0]; + $textarea.selectionEnd = savedSelection[1]; + } + $textarea.scrollLeft = savedScroll[0]; + $textarea.scrollTop = savedScroll[1]; + } + + savedSelection = savedScroll = null; + savedState = this.state; + }, + canUndo : false + } ); + + editor.ui.addButton( 'Maximize', + { + label : lang.maximize, + command : 'maximize' + } ); + + // Restore the command state after mode change, unless it has been changed to disabled (#6467) + editor.on( 'mode', function() + { + var command = editor.getCommand( 'maximize' ); + command.setState( command.state == CKEDITOR.TRISTATE_DISABLED ? CKEDITOR.TRISTATE_DISABLED : savedState ); + }, null, null, 100 ); + } + } ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/menu/plugin.js b/htdocs/includes/ckeditor/_source/plugins/menu/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..265604c15d6fd865239fdf18491e8c22a3cf4c9e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/menu/plugin.js @@ -0,0 +1,542 @@ +/* +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'; diff --git a/htdocs/includes/ckeditor/_source/plugins/menubutton/plugin.js b/htdocs/includes/ckeditor/_source/plugins/menubutton/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..1bb6599ca3d11c20fb1df3d26a4c0c691cb3dbdc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/menubutton/plugin.js @@ -0,0 +1,98 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'menubutton', +{ + requires : [ 'button', 'menu' ], + beforeInit : function( editor ) + { + editor.ui.addHandler( CKEDITOR.UI_MENUBUTTON, CKEDITOR.ui.menuButton.handler ); + } +}); + +/** + * Button UI element. + * @constant + * @example + */ +CKEDITOR.UI_MENUBUTTON = 'menubutton'; + +(function() +{ + var clickFn = function( editor ) + { + var _ = this._; + + // Do nothing if this button is disabled. + if ( _.state === CKEDITOR.TRISTATE_DISABLED ) + return; + + _.previousState = _.state; + + // Check if we already have a menu for it, otherwise just create it. + var menu = _.menu; + if ( !menu ) + { + menu = _.menu = new CKEDITOR.menu( editor, + { + panel: + { + className : editor.skinClass + ' cke_contextmenu', + attributes : { 'aria-label' : editor.lang.common.options } + } + }); + + menu.onHide = CKEDITOR.tools.bind( function() + { + this.setState( this.modes && this.modes[ editor.mode ] ? _.previousState : CKEDITOR.TRISTATE_DISABLED ); + }, + this ); + + // Initialize the menu items at this point. + if ( this.onMenu ) + menu.addListener( this.onMenu ); + } + + if ( _.on ) + { + menu.hide(); + return; + } + + this.setState( CKEDITOR.TRISTATE_ON ); + + menu.show( CKEDITOR.document.getById( this._.id ), 4 ); + }; + + + CKEDITOR.ui.menuButton = CKEDITOR.tools.createClass( + { + base : CKEDITOR.ui.button, + + $ : function( definition ) + { + // We don't want the panel definition in this object. + var panelDefinition = definition.panel; + delete definition.panel; + + this.base( definition ); + + this.hasArrow = true; + + this.click = clickFn; + }, + + statics : + { + handler : + { + create : function( definition ) + { + return new CKEDITOR.ui.menuButton( definition ); + } + } + } + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/newpage/plugin.js b/htdocs/includes/ckeditor/_source/plugins/newpage/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..ab188745c58aff0aed2e3f7374bacca48a27ce14 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/newpage/plugin.js @@ -0,0 +1,55 @@ +/* +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 = '<p>Type your text here.</p>'; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif b/htdocs/includes/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif new file mode 100644 index 0000000000000000000000000000000000000000..8d1cffd64af72709b1180b3b0a51bbfe30bcb8c6 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/pagebreak/plugin.js b/htdocs/includes/ckeditor/_source/plugins/pagebreak/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..3b54b681ba7089205eb13d4ab8d32222f1cb76e0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/pagebreak/plugin.js @@ -0,0 +1,164 @@ +/* +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;"> </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' ); + } +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/panel/plugin.js b/htdocs/includes/ckeditor/_source/plugins/panel/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..6dc1616402e6e52889faacb606c7692f475f4017 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/panel/plugin.js @@ -0,0 +1,396 @@ +/* +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 + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/panelbutton/plugin.js b/htdocs/includes/ckeditor/_source/plugins/panelbutton/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..078b398cfebbf92ce0252e9fb729cdf2544173e2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/panelbutton/plugin.js @@ -0,0 +1,144 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'panelbutton', +{ + requires : [ 'button' ], + onLoad : function() + { + function clickFn( editor ) + { + var _ = this._; + + if ( _.state == CKEDITOR.TRISTATE_DISABLED ) + return; + + this.createPanel( editor ); + + if ( _.on ) + { + _.panel.hide(); + return; + } + + _.panel.showBlock( this._.id, this.document.getById( this._.id ), 4 ); + } + + CKEDITOR.ui.panelButton = CKEDITOR.tools.createClass( + { + base : CKEDITOR.ui.button, + + $ : function( definition ) + { + // We don't want the panel definition in this object. + var panelDefinition = definition.panel; + delete definition.panel; + + this.base( definition ); + + this.document = ( panelDefinition + && panelDefinition.parent + && panelDefinition.parent.getDocument() ) + || CKEDITOR.document; + + panelDefinition.block = + { + attributes : panelDefinition.attributes + }; + + this.hasArrow = true; + + this.click = clickFn; + + this._ = + { + panelDefinition : panelDefinition + }; + }, + + statics : + { + handler : + { + create : function( definition ) + { + return new CKEDITOR.ui.panelButton( definition ); + } + } + }, + + proto : + { + createPanel : function( editor ) + { + var _ = this._; + + if ( _.panel ) + return; + + var panelDefinition = this._.panelDefinition || {}, + panelBlockDefinition = this._.panelDefinition.block, + panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(), + panel = this._.panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ), + block = panel.addBlock( _.id, panelBlockDefinition ), + me = this; + + panel.onShow = function() + { + if ( me.className ) + this.element.getFirst().addClass( me.className + '_panel' ); + + me.setState( CKEDITOR.TRISTATE_ON ); + + _.on = 1; + + if ( me.onOpen ) + me.onOpen(); + }; + + panel.onHide = function( preventOnClose ) + { + if ( me.className ) + this.element.getFirst().removeClass( me.className + '_panel' ); + + me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + + _.on = 0; + + if ( !preventOnClose && me.onClose ) + me.onClose(); + }; + + panel.onEscape = function() + { + panel.hide(); + me.document.getById( _.id ).focus(); + }; + + if ( this.onBlock ) + this.onBlock( panel, block ); + + block.onHide = function() + { + _.on = 0; + me.setState( CKEDITOR.TRISTATE_OFF ); + }; + } + } + }); + + }, + beforeInit : function( editor ) + { + editor.ui.addHandler( CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton.handler ); + } +}); + +/** + * Button UI element. + * @constant + * @example + */ +CKEDITOR.UI_PANELBUTTON = 'panelbutton'; diff --git a/htdocs/includes/ckeditor/_source/plugins/pastefromword/filter/default.js b/htdocs/includes/ckeditor/_source/plugins/pastefromword/filter/default.js new file mode 100644 index 0000000000000000000000000000000000000000..353e4bfc5e1442a98e42d290f7ca3e5e429d6f51 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/pastefromword/filter/default.js @@ -0,0 +1,1367 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var fragmentPrototype = CKEDITOR.htmlParser.fragment.prototype, + elementPrototype = CKEDITOR.htmlParser.element.prototype; + + fragmentPrototype.onlyChild = elementPrototype.onlyChild = function() + { + var children = this.children, + count = children.length, + firstChild = ( count == 1 ) && children[ 0 ]; + return firstChild || null; + }; + + elementPrototype.removeAnyChildWithName = function( tagName ) + { + var children = this.children, + childs = [], + child; + + for ( var i = 0; i < children.length; i++ ) + { + child = children[ i ]; + if ( !child.name ) + continue; + + if ( child.name == tagName ) + { + childs.push( child ); + children.splice( i--, 1 ); + } + childs = childs.concat( child.removeAnyChildWithName( tagName ) ); + } + return childs; + }; + + elementPrototype.getAncestor = function( tagNameRegex ) + { + var parent = this.parent; + while ( parent && !( parent.name && parent.name.match( tagNameRegex ) ) ) + parent = parent.parent; + return parent; + }; + + fragmentPrototype.firstChild = elementPrototype.firstChild = function( evaluator ) + { + var child; + + for ( var i = 0 ; i < this.children.length ; i++ ) + { + child = this.children[ i ]; + if ( evaluator( child ) ) + return child; + else if ( child.name ) + { + child = child.firstChild( evaluator ); + if ( child ) + return child; + } + } + + return null; + }; + + // Adding a (set) of styles to the element's 'style' attributes. + elementPrototype.addStyle = function( name, value, isPrepend ) + { + var styleText, addingStyleText = ''; + // name/value pair. + if ( typeof value == 'string' ) + addingStyleText += name + ':' + value + ';'; + else + { + // style literal. + if ( typeof name == 'object' ) + { + for ( var style in name ) + { + if ( name.hasOwnProperty( style ) ) + addingStyleText += style + ':' + name[ style ] + ';'; + } + } + // raw style text form. + else + addingStyleText += name; + + isPrepend = value; + } + + if ( !this.attributes ) + this.attributes = {}; + + styleText = this.attributes.style || ''; + + styleText = ( isPrepend ? + [ addingStyleText, styleText ] + : [ styleText, addingStyleText ] ).join( ';' ); + + this.attributes.style = styleText.replace( /^;|;(?=;)/, '' ); + }; + + /** + * Return the DTD-valid parent tag names of the specified one. + * @param tagName + */ + CKEDITOR.dtd.parentOf = function( tagName ) + { + var result = {}; + for ( var tag in this ) + { + if ( tag.indexOf( '$' ) == -1 && this[ tag ][ tagName ] ) + result[ tag ] = 1; + } + return result; + }; + + // 1. move consistent list item styles up to list root. + // 2. clear out unnecessary list item numbering. + function postProcessList( list ) + { + var children = list.children, + child, + attrs, + count = list.children.length, + match, + mergeStyle, + styleTypeRegexp = /list-style-type:(.*?)(?:;|$)/, + stylesFilter = CKEDITOR.plugins.pastefromword.filters.stylesFilter; + + attrs = list.attributes; + if ( styleTypeRegexp.exec( attrs.style ) ) + return; + + for ( var i = 0; i < count; i++ ) + { + child = children[ i ]; + + if ( child.attributes.value && Number( child.attributes.value ) == i + 1 ) + delete child.attributes.value; + + match = styleTypeRegexp.exec( child.attributes.style ); + + if ( match ) + { + if ( match[ 1 ] == mergeStyle || !mergeStyle ) + mergeStyle = match[ 1 ]; + else + { + mergeStyle = null; + break; + } + } + } + + if ( mergeStyle ) + { + for ( i = 0; i < count; i++ ) + { + attrs = children[ i ].attributes; + attrs.style && ( attrs.style = stylesFilter( [ [ 'list-style-type'] ] )( attrs.style ) || '' ); + } + + list.addStyle( 'list-style-type', mergeStyle ); + } + } + + var cssLengthRelativeUnit = /^([.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz){1}?/i; + var emptyMarginRegex = /^(?:\b0[^\s]*\s*){1,4}$/; // e.g. 0px 0pt 0px + var romanLiternalPattern = '^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$', + lowerRomanLiteralRegex = new RegExp( romanLiternalPattern ), + upperRomanLiteralRegex = new RegExp( romanLiternalPattern.toUpperCase() ); + + var orderedPatterns = { 'decimal' : /\d+/, 'lower-roman': lowerRomanLiteralRegex, 'upper-roman': upperRomanLiteralRegex, 'lower-alpha' : /^[a-z]+$/, 'upper-alpha': /^[A-Z]+$/ }, + unorderedPatterns = { 'disc' : /[l\u00B7\u2002]/, 'circle' : /[\u006F\u00D8]/,'square' : /[\u006E\u25C6]/}, + listMarkerPatterns = { 'ol' : orderedPatterns, 'ul' : unorderedPatterns }, + romans = [ [1000, 'M'], [900, 'CM'], [500, 'D'], [400, 'CD'], [100, 'C'], [90, 'XC'], [50, 'L'], [40, 'XL'], [10, 'X'], [9, 'IX'], [5, 'V'], [4, 'IV'], [1, 'I'] ], + alpahbets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + + // Convert roman numbering back to decimal. + function fromRoman( str ) + { + str = str.toUpperCase(); + var l = romans.length, retVal = 0; + for ( var i = 0; i < l; ++i ) + { + for ( var j = romans[i], k = j[1].length; str.substr( 0, k ) == j[1]; str = str.substr( k ) ) + retVal += j[ 0 ]; + } + return retVal; + } + + // Convert alphabet numbering back to decimal. + function fromAlphabet( str ) + { + str = str.toUpperCase(); + var l = alpahbets.length, retVal = 1; + for ( var x = 1; str.length > 0; x *= l ) + { + retVal += alpahbets.indexOf( str.charAt( str.length - 1 ) ) * x; + str = str.substr( 0, str.length - 1 ); + } + return retVal; + } + + var listBaseIndent = 0, + previousListItemMargin = null, + previousListId; + + var plugin = ( CKEDITOR.plugins.pastefromword = + { + utils : + { + // Create a <cke:listbullet> which indicate an list item type. + createListBulletMarker : function ( bullet, bulletText ) + { + var marker = new CKEDITOR.htmlParser.element( 'cke:listbullet' ); + marker.attributes = { 'cke:listsymbol' : bullet[ 0 ] }; + marker.add( new CKEDITOR.htmlParser.text( bulletText ) ); + return marker; + }, + + isListBulletIndicator : function( element ) + { + var styleText = element.attributes && element.attributes.style; + if ( /mso-list\s*:\s*Ignore/i.test( styleText ) ) + return true; + }, + + isContainingOnlySpaces : function( element ) + { + var text; + return ( ( text = element.onlyChild() ) + && ( /^(:?\s| )+$/ ).test( text.value ) ); + }, + + resolveList : function( element ) + { + // <cke:listbullet> indicate a list item. + var attrs = element.attributes, + listMarker; + + if ( ( listMarker = element.removeAnyChildWithName( 'cke:listbullet' ) ) + && listMarker.length + && ( listMarker = listMarker[ 0 ] ) ) + { + element.name = 'cke:li'; + + if ( attrs.style ) + { + attrs.style = plugin.filters.stylesFilter( + [ + // Text-indent is not representing list item level any more. + [ 'text-indent' ], + [ 'line-height' ], + // First attempt is to resolve indent level from on a constant margin increment. + [ ( /^margin(:?-left)?$/ ), null, function( margin ) + { + // Deal with component/short-hand form. + var values = margin.split( ' ' ); + margin = CKEDITOR.tools.convertToPx( values[ 3 ] || values[ 1 ] || values [ 0 ] ); + + // Figure out the indent unit by checking the first time of incrementation. + if ( !listBaseIndent && previousListItemMargin !== null && margin > previousListItemMargin ) + listBaseIndent = margin - previousListItemMargin; + + previousListItemMargin = margin; + + attrs[ 'cke:indent' ] = listBaseIndent && ( Math.ceil( margin / listBaseIndent ) + 1 ) || 1; + } ], + // The best situation: "mso-list:l0 level1 lfo2" tells the belonged list root, list item indentation, etc. + [ ( /^mso-list$/ ), null, function( val ) + { + val = val.split( ' ' ); + var listId = Number( val[ 0 ].match( /\d+/ ) ), + indent = Number( val[ 1 ].match( /\d+/ ) ); + + if ( indent == 1 ) + { + listId !== previousListId && ( attrs[ 'cke:reset' ] = 1 ); + previousListId = listId; + } + attrs[ 'cke:indent' ] = indent; + } ] + ] )( attrs.style, element ) || ''; + } + + // First level list item might be presented without a margin. + + + // In case all above doesn't apply. + if ( !attrs[ 'cke:indent' ] ) + { + previousListItemMargin = 0; + attrs[ 'cke:indent' ] = 1; + } + + // Inherit attributes from bullet. + CKEDITOR.tools.extend( attrs, listMarker.attributes ); + return true; + } + // Current list disconnected. + else + previousListId = previousListItemMargin = listBaseIndent = null; + + return false; + }, + + // Providing a shorthand style then retrieve one or more style component values. + getStyleComponents : ( function() + { + var calculator = CKEDITOR.dom.element.createFromHtml( + '<div style="position:absolute;left:-9999px;top:-9999px;"></div>', + CKEDITOR.document ); + CKEDITOR.document.getBody().append( calculator ); + + return function( name, styleValue, fetchList ) + { + calculator.setStyle( name, styleValue ); + var styles = {}, + count = fetchList.length; + for ( var i = 0; i < count; i++ ) + styles[ fetchList[ i ] ] = calculator.getStyle( fetchList[ i ] ); + + return styles; + }; + } )(), + + listDtdParents : CKEDITOR.dtd.parentOf( 'ol' ) + }, + + filters : + { + // Transform a normal list into flat list items only presentation. + // E.g. <ul><li>level1<ol><li>level2</li></ol></li> => + // <cke:li cke:listtype="ul" cke:indent="1">level1</cke:li> + // <cke:li cke:listtype="ol" cke:indent="2">level2</cke:li> + flattenList : function( element, level ) + { + level = typeof level == 'number' ? level : 1; + + var attrs = element.attributes, + listStyleType; + + // All list items are of the same type. + switch ( attrs.type ) + { + case 'a' : + listStyleType = 'lower-alpha'; + break; + case '1' : + listStyleType = 'decimal'; + break; + // TODO: Support more list style type from MS-Word. + } + + var children = element.children, + child; + + for ( var i = 0; i < children.length; i++ ) + { + child = children[ i ]; + + if ( child.name in CKEDITOR.dtd.$listItem ) + { + var attributes = child.attributes, + listItemChildren = child.children, + count = listItemChildren.length, + last = listItemChildren[ count - 1 ]; + + // Move out nested list. + if ( last.name in CKEDITOR.dtd.$list ) + { + element.add( last, i + 1 ); + + // Remove the parent list item if it's just a holder. + if ( !--listItemChildren.length ) + children.splice( i--, 1 ); + } + + child.name = 'cke:li'; + + // Inherit numbering from list root on the first list item. + attrs.start && !i && ( attributes.value = attrs.start ); + + plugin.filters.stylesFilter( + [ + [ 'tab-stops', null, function( val ) + { + var margin = val.split( ' ' )[ 1 ].match( cssLengthRelativeUnit ); + margin && ( previousListItemMargin = CKEDITOR.tools.convertToPx( margin[ 0 ] ) ); + } ], + ( level == 1 ? [ 'mso-list', null, function( val ) + { + val = val.split( ' ' ); + var listId = Number( val[ 0 ].match( /\d+/ ) ); + listId !== previousListId && ( attributes[ 'cke:reset' ] = 1 ); + previousListId = listId; + } ] : null ) + ] )( attributes.style ); + + attributes[ 'cke:indent' ] = level; + attributes[ 'cke:listtype' ] = element.name; + attributes[ 'cke:list-style-type' ] = listStyleType; + } + // Flatten sub list. + else if ( child.name in CKEDITOR.dtd.$list ) + { + // Absorb sub list children. + arguments.callee.apply( this, [ child, level + 1 ] ); + children = children.slice( 0, i ).concat( child.children ).concat( children.slice( i + 1 ) ); + element.children = []; + for ( var j = 0, num = children.length; j < num ; j++ ) + element.add( children[ j ] ); + } + } + + delete element.name; + + // We're loosing tag name here, signalize this element as a list. + attrs[ 'cke:list' ] = 1; + }, + + /** + * Try to collect all list items among the children and establish one + * or more HTML list structures for them. + * @param element + */ + assembleList : function( element ) + { + var children = element.children, child, + listItem, // The current processing cke:li element. + listItemAttrs, + listItemIndent, // Indent level of current list item. + lastIndent, + lastListItem, // The previous one just been added to the list. + list, // Current staging list and it's parent list if any. + openedLists = [], + previousListStyleType, + previousListType; + + // Properties of the list item are to be resolved from the list bullet. + var bullet, + listType, + listStyleType, + itemNumeric; + + for ( var i = 0; i < children.length; i++ ) + { + child = children[ i ]; + + if ( 'cke:li' == child.name ) + { + child.name = 'li'; + listItem = child; + listItemAttrs = listItem.attributes; + bullet = listItemAttrs[ 'cke:listsymbol' ]; + bullet = bullet && bullet.match( /^(?:[(]?)([^\s]+?)([.)]?)$/ ); + listType = listStyleType = itemNumeric = null; + + if ( listItemAttrs[ 'cke:ignored' ] ) + { + children.splice( i--, 1 ); + continue; + } + + + // This's from a new list root. + listItemAttrs[ 'cke:reset' ] && ( list = lastIndent = lastListItem = null ); + + // List item indent level might come from a real list indentation or + // been resolved from a pseudo list item's margin value, even get + // no indentation at all. + listItemIndent = Number( listItemAttrs[ 'cke:indent' ] ); + + // We're moving out of the current list, cleaning up. + if ( listItemIndent != lastIndent ) + previousListType = previousListStyleType = null; + + // List type and item style are already resolved. + if ( !bullet ) + { + listType = listItemAttrs[ 'cke:listtype' ] || 'ol'; + listStyleType = listItemAttrs[ 'cke:list-style-type' ]; + } + else + { + // Probably share the same list style type with previous list item, + // give it priority to avoid ambiguous between C(Alpha) and C.(Roman). + if ( previousListType && listMarkerPatterns[ previousListType ] [ previousListStyleType ].test( bullet[ 1 ] ) ) + { + listType = previousListType; + listStyleType = previousListStyleType; + } + else + { + for ( var type in listMarkerPatterns ) + { + for ( var style in listMarkerPatterns[ type ] ) + { + if ( listMarkerPatterns[ type ][ style ].test( bullet[ 1 ] ) ) + { + // Small numbering has higher priority, when dealing with ambiguous + // between C(Alpha) and C.(Roman). + if ( type == 'ol' && ( /alpha|roman/ ).test( style ) ) + { + var num = /roman/.test( style ) ? fromRoman( bullet[ 1 ] ) : fromAlphabet( bullet[ 1 ] ); + if ( !itemNumeric || num < itemNumeric ) + { + itemNumeric = num; + listType = type; + listStyleType = style; + } + } + else + { + listType = type; + listStyleType = style; + break; + } + } + } + } + } + + // Simply use decimal/disc for the rest forms of unrepresentable + // numerals, e.g. Chinese..., but as long as there a second part + // included, it has a bigger chance of being a order list ;) + !listType && ( listType = bullet[ 2 ] ? 'ol' : 'ul' ); + } + + previousListType = listType; + previousListStyleType = listStyleType || ( listType == 'ol' ? 'decimal' : 'disc' ); + if ( listStyleType && listStyleType != ( listType == 'ol' ? 'decimal' : 'disc' ) ) + listItem.addStyle( 'list-style-type', listStyleType ); + + // Figure out start numbering. + if ( listType == 'ol' && bullet ) + { + switch ( listStyleType ) + { + case 'decimal' : + itemNumeric = Number( bullet[ 1 ] ); + break; + case 'lower-roman': + case 'upper-roman': + itemNumeric = fromRoman( bullet[ 1 ] ); + break; + case 'lower-alpha': + case 'upper-alpha': + itemNumeric = fromAlphabet( bullet[ 1 ] ); + break; + } + + // Always create the numbering, swipe out unnecessary ones later. + listItem.attributes.value = itemNumeric; + } + + // Start the list construction. + if ( !list ) + { + openedLists.push( list = new CKEDITOR.htmlParser.element( listType ) ); + list.add( listItem ); + children[ i ] = list; + } + else + { + if ( listItemIndent > lastIndent ) + { + openedLists.push( list = new CKEDITOR.htmlParser.element( listType ) ); + list.add( listItem ); + lastListItem.add( list ); + } + else if ( listItemIndent < lastIndent ) + { + // There might be a negative gap between two list levels. (#4944) + var diff = lastIndent - listItemIndent, + parent; + while ( diff-- && ( parent = list.parent ) ) + list = parent.parent; + + list.add( listItem ); + } + else + list.add( listItem ); + + children.splice( i--, 1 ); + } + + lastListItem = listItem; + lastIndent = listItemIndent; + } + else if ( list ) + list = lastIndent = lastListItem = null; + } + + for ( i = 0; i < openedLists.length; i++ ) + postProcessList( openedLists[ i ] ); + + list = lastIndent = lastListItem = previousListId = previousListItemMargin = listBaseIndent = null; + }, + + /** + * A simple filter which always rejecting. + */ + falsyFilter : function( value ) + { + return false; + }, + + /** + * A filter dedicated on the 'style' attribute filtering, e.g. dropping/replacing style properties. + * @param styles {Array} in form of [ styleNameRegexp, styleValueRegexp, + * newStyleValue/newStyleGenerator, newStyleName ] where only the first + * parameter is mandatory. + * @param whitelist {Boolean} Whether the {@param styles} will be considered as a white-list. + */ + stylesFilter : function( styles, whitelist ) + { + return function( styleText, element ) + { + var rules = []; + // html-encoded quote might be introduced by 'font-family' + // from MS-Word which confused the following regexp. e.g. + //'font-family: "Lucida, Console"' + ( styleText || '' ) + .replace( /"/g, '"' ) + .replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, + function( match, name, value ) + { + name = name.toLowerCase(); + name == 'font-family' && ( value = value.replace( /["']/g, '' ) ); + + var namePattern, + valuePattern, + newValue, + newName; + for ( var i = 0 ; i < styles.length; i++ ) + { + if ( styles[ i ] ) + { + namePattern = styles[ i ][ 0 ]; + valuePattern = styles[ i ][ 1 ]; + newValue = styles[ i ][ 2 ]; + newName = styles[ i ][ 3 ]; + + if ( name.match( namePattern ) + && ( !valuePattern || value.match( valuePattern ) ) ) + { + name = newName || name; + whitelist && ( newValue = newValue || value ); + + if ( typeof newValue == 'function' ) + newValue = newValue( value, element, name ); + + // Return an couple indicate both name and value + // changed. + if ( newValue && newValue.push ) + name = newValue[ 0 ], newValue = newValue[ 1 ]; + + if ( typeof newValue == 'string' ) + rules.push( [ name, newValue ] ); + return; + } + } + } + + !whitelist && rules.push( [ name, value ] ); + + }); + + for ( var i = 0 ; i < rules.length ; i++ ) + rules[ i ] = rules[ i ].join( ':' ); + return rules.length ? + ( rules.join( ';' ) + ';' ) : false; + }; + }, + + /** + * Migrate the element by decorate styles on it. + * @param styleDefiniton + * @param variables + */ + elementMigrateFilter : function ( styleDefiniton, variables ) + { + return function( element ) + { + var styleDef = + variables ? + new CKEDITOR.style( styleDefiniton, variables )._.definition + : styleDefiniton; + element.name = styleDef.element; + CKEDITOR.tools.extend( element.attributes, CKEDITOR.tools.clone( styleDef.attributes ) ); + element.addStyle( CKEDITOR.style.getStyleText( styleDef ) ); + }; + }, + + /** + * Migrate styles by creating a new nested stylish element. + * @param styleDefinition + */ + styleMigrateFilter : function( styleDefinition, variableName ) + { + + var elementMigrateFilter = this.elementMigrateFilter; + return function( value, element ) + { + // Build an stylish element first. + var styleElement = new CKEDITOR.htmlParser.element( null ), + variables = {}; + + variables[ variableName ] = value; + elementMigrateFilter( styleDefinition, variables )( styleElement ); + // Place the new element inside the existing span. + styleElement.children = element.children; + element.children = [ styleElement ]; + }; + }, + + /** + * A filter which remove cke-namespaced-attribute on + * all none-cke-namespaced elements. + * @param value + * @param element + */ + bogusAttrFilter : function( value, element ) + { + if ( element.name.indexOf( 'cke:' ) == -1 ) + return false; + }, + + /** + * A filter which will be used to apply inline css style according the stylesheet + * definition rules, is generated lazily when filtering. + */ + applyStyleFilter : null + + }, + + getRules : function( editor ) + { + var dtd = CKEDITOR.dtd, + blockLike = CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent ), + config = editor.config, + filters = this.filters, + falsyFilter = filters.falsyFilter, + stylesFilter = filters.stylesFilter, + elementMigrateFilter = filters.elementMigrateFilter, + styleMigrateFilter = CKEDITOR.tools.bind( this.filters.styleMigrateFilter, this.filters ), + createListBulletMarker = this.utils.createListBulletMarker, + flattenList = filters.flattenList, + assembleList = filters.assembleList, + isListBulletIndicator = this.utils.isListBulletIndicator, + containsNothingButSpaces = this.utils.isContainingOnlySpaces, + resolveListItem = this.utils.resolveList, + convertToPx = function( value ) + { + value = CKEDITOR.tools.convertToPx( value ); + return isNaN( value ) ? value : value + 'px'; + }, + getStyleComponents = this.utils.getStyleComponents, + listDtdParents = this.utils.listDtdParents, + removeFontStyles = config.pasteFromWordRemoveFontStyles !== false, + removeStyles = config.pasteFromWordRemoveStyles !== false; + + return { + + elementNames : + [ + // Remove script, meta and link elements. + [ ( /meta|link|script/ ), '' ] + ], + + root : function( element ) + { + element.filterChildren(); + assembleList( element ); + }, + + elements : + { + '^' : function( element ) + { + // Transform CSS style declaration to inline style. + var applyStyleFilter; + if ( CKEDITOR.env.gecko && ( applyStyleFilter = filters.applyStyleFilter ) ) + applyStyleFilter( element ); + }, + + $ : function( element ) + { + var tagName = element.name || '', + attrs = element.attributes; + + // Convert length unit of width/height on blocks to + // a more editor-friendly way (px). + if ( tagName in blockLike + && attrs.style ) + { + attrs.style = stylesFilter( + [ [ ( /^(:?width|height)$/ ), null, convertToPx ] ] )( attrs.style ) || ''; + } + + // Processing headings. + if ( tagName.match( /h\d/ ) ) + { + element.filterChildren(); + // Is the heading actually a list item? + if ( resolveListItem( element ) ) + return; + + // Adapt heading styles to editor's convention. + elementMigrateFilter( config[ 'format_' + tagName ] )( element ); + } + // Remove inline elements which contain only empty spaces. + else if ( tagName in dtd.$inline ) + { + element.filterChildren(); + if ( containsNothingButSpaces( element ) ) + delete element.name; + } + // Remove element with ms-office namespace, + // with it's content preserved, e.g. 'o:p'. + else if ( tagName.indexOf( ':' ) != -1 + && tagName.indexOf( 'cke' ) == -1 ) + { + element.filterChildren(); + + // Restore image real link from vml. + if ( tagName == 'v:imagedata' ) + { + var href = element.attributes[ 'o:href' ]; + if ( href ) + element.attributes.src = href; + element.name = 'img'; + return; + } + delete element.name; + } + + // Assembling list items into a whole list. + if ( tagName in listDtdParents ) + { + element.filterChildren(); + assembleList( element ); + } + }, + + // We'll drop any style sheet, but Firefox conclude + // certain styles in a single style element, which are + // required to be changed into inline ones. + 'style' : function( element ) + { + if ( CKEDITOR.env.gecko ) + { + // Grab only the style definition section. + var styleDefSection = element.onlyChild().value.match( /\/\* Style Definitions \*\/([\s\S]*?)\/\*/ ), + styleDefText = styleDefSection && styleDefSection[ 1 ], + rules = {}; // Storing the parsed result. + + if ( styleDefText ) + { + styleDefText + // Remove line-breaks. + .replace(/[\n\r]/g,'') + // Extract selectors and style properties. + .replace( /(.+?)\{(.+?)\}/g, + function( rule, selectors, styleBlock ) + { + selectors = selectors.split( ',' ); + var length = selectors.length, selector; + for ( var i = 0; i < length; i++ ) + { + // Assume MS-Word mostly generate only simple + // selector( [Type selector][Class selector]). + CKEDITOR.tools.trim( selectors[ i ] ) + .replace( /^(\w+)(\.[\w-]+)?$/g, + function( match, tagName, className ) + { + tagName = tagName || '*'; + className = className.substring( 1, className.length ); + + // Reject MS-Word Normal styles. + if ( className.match( /MsoNormal/ ) ) + return; + + if ( !rules[ tagName ] ) + rules[ tagName ] = {}; + if ( className ) + rules[ tagName ][ className ] = styleBlock; + else + rules[ tagName ] = styleBlock; + } ); + } + }); + + filters.applyStyleFilter = function( element ) + { + var name = rules[ '*' ] ? '*' : element.name, + className = element.attributes && element.attributes[ 'class' ], + style; + if ( name in rules ) + { + style = rules[ name ]; + if ( typeof style == 'object' ) + style = style[ className ]; + // Maintain style rules priorities. + style && element.addStyle( style, true ); + } + }; + } + } + return false; + }, + + 'p' : function( element ) + { + // This's a fall-back approach to recognize list item in FF3.6, + // as it's not perfect as not all list style (e.g. "heading list") is shipped + // with this pattern. (#6662) + if ( /MsoListParagraph/.exec( element.attributes[ 'class' ] ) ) + { + var bulletText = element.firstChild( function( node ) + { + return node.type == CKEDITOR.NODE_TEXT && !containsNothingButSpaces( node.parent ); + }); + var bullet = bulletText && bulletText.parent, + bulletAttrs = bullet && bullet.attributes; + bulletAttrs && !bulletAttrs.style && ( bulletAttrs.style = 'mso-list: Ignore;' ); + } + + element.filterChildren(); + + // Is the paragraph actually a list item? + if ( resolveListItem( element ) ) + return; + + // Adapt paragraph formatting to editor's convention + // according to enter-mode. + if ( config.enterMode == CKEDITOR.ENTER_BR ) + { + // We suffer from attribute/style lost in this situation. + delete element.name; + element.add( new CKEDITOR.htmlParser.element( 'br' ) ); + } + else + elementMigrateFilter( config[ 'format_' + ( config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ] )( element ); + }, + + 'div' : function( element ) + { + // Aligned table with no text surrounded is represented by a wrapper div, from which + // table cells inherit as text-align styles, which is wrong. + // Instead we use a clear-float div after the table to properly achieve the same layout. + var singleChild = element.onlyChild(); + if ( singleChild && singleChild.name == 'table' ) + { + var attrs = element.attributes; + singleChild.attributes = CKEDITOR.tools.extend( singleChild.attributes, attrs ); + attrs.style && singleChild.addStyle( attrs.style ); + + var clearFloatDiv = new CKEDITOR.htmlParser.element( 'div' ); + clearFloatDiv.addStyle( 'clear' ,'both' ); + element.add( clearFloatDiv ); + delete element.name; + } + }, + + 'td' : function ( element ) + { + // 'td' in 'thead' is actually <th>. + if ( element.getAncestor( 'thead') ) + element.name = 'th'; + }, + + // MS-Word sometimes present list as a mixing of normal list + // and pseudo-list, normalize the previous ones into pseudo form. + 'ol' : flattenList, + 'ul' : flattenList, + 'dl' : flattenList, + + 'font' : function( element ) + { + // Drop the font tag if it comes from list bullet text. + if ( isListBulletIndicator( element.parent ) ) + { + delete element.name; + return; + } + + element.filterChildren(); + + var attrs = element.attributes, + styleText = attrs.style, + parent = element.parent; + + if ( 'font' == parent.name ) // Merge nested <font> tags. + { + CKEDITOR.tools.extend( parent.attributes, + element.attributes ); + styleText && parent.addStyle( styleText ); + delete element.name; + } + // Convert the merged into a span with all attributes preserved. + else + { + styleText = styleText || ''; + // IE's having those deprecated attributes, normalize them. + if ( attrs.color ) + { + attrs.color != '#000000' && ( styleText += 'color:' + attrs.color + ';' ); + delete attrs.color; + } + if ( attrs.face ) + { + styleText += 'font-family:' + attrs.face + ';'; + delete attrs.face; + } + // TODO: Mapping size in ranges of xx-small, + // x-small, small, medium, large, x-large, xx-large. + if ( attrs.size ) + { + styleText += 'font-size:' + + ( attrs.size > 3 ? 'large' + : ( attrs.size < 3 ? 'small' : 'medium' ) ) + ';'; + delete attrs.size; + } + + element.name = 'span'; + element.addStyle( styleText ); + } + }, + + 'span' : function( element ) + { + // Remove the span if it comes from list bullet text. + if ( isListBulletIndicator( element.parent ) ) + return false; + + element.filterChildren(); + if ( containsNothingButSpaces( element ) ) + { + delete element.name; + return null; + } + + // List item bullet type is supposed to be indicated by + // the text of a span with style 'mso-list : Ignore' or an image. + if ( isListBulletIndicator( element ) ) + { + var listSymbolNode = element.firstChild( function( node ) + { + return node.value || node.name == 'img'; + }); + + var listSymbol = listSymbolNode && ( listSymbolNode.value || 'l.' ), + listType = listSymbol && listSymbol.match( /^(?:[(]?)([^\s]+?)([.)]?)$/ ); + + if ( listType ) + { + var marker = createListBulletMarker( listType, listSymbol ); + // Some non-existed list items might be carried by an inconsequential list, indicate by "mso-hide:all/display:none", + // those are to be removed later, now mark it with "cke:ignored". + var ancestor = element.getAncestor( 'span' ); + if ( ancestor && (/ mso-hide:\s*all|display:\s*none /).test( ancestor.attributes.style ) ) + marker.attributes[ 'cke:ignored' ] = 1; + return marker; + } + } + + // Update the src attribute of image element with href. + var children = element.children, + attrs = element.attributes, + styleText = attrs && attrs.style, + firstChild = children && children[ 0 ]; + + // Assume MS-Word mostly carry font related styles on <span>, + // adapting them to editor's convention. + if ( styleText ) + { + attrs.style = stylesFilter( + [ + // Drop 'inline-height' style which make lines overlapping. + [ 'line-height' ], + [ ( /^font-family$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'font_style' ], 'family' ) : null ] , + [ ( /^font-size$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'fontSize_style' ], 'size' ) : null ] , + [ ( /^color$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'colorButton_foreStyle' ], 'color' ) : null ] , + [ ( /^background-color$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'colorButton_backStyle' ], 'color' ) : null ] + ] )( styleText, element ) || ''; + } + + return null; + }, + + // Migrate basic style formats to editor configured ones. + 'b' : elementMigrateFilter( config[ 'coreStyles_bold' ] ), + 'i' : elementMigrateFilter( config[ 'coreStyles_italic' ] ), + 'u' : elementMigrateFilter( config[ 'coreStyles_underline' ] ), + 's' : elementMigrateFilter( config[ 'coreStyles_strike' ] ), + 'sup' : elementMigrateFilter( config[ 'coreStyles_superscript' ] ), + 'sub' : elementMigrateFilter( config[ 'coreStyles_subscript' ] ), + // Editor doesn't support anchor with content currently (#3582), + // drop such anchors with content preserved. + 'a' : function( element ) + { + var attrs = element.attributes; + if ( attrs && !attrs.href && attrs.name ) + delete element.name; + else if ( CKEDITOR.env.webkit && attrs.href && attrs.href.match( /file:\/\/\/[\S]+#/i ) ) + attrs.href = attrs.href.replace( /file:\/\/\/[^#]+/i,'' ); + }, + 'cke:listbullet' : function( element ) + { + if ( element.getAncestor( /h\d/ ) && !config.pasteFromWordNumberedHeadingToList ) + delete element.name; + } + }, + + attributeNames : + [ + // Remove onmouseover and onmouseout events (from MS Word comments effect) + [ ( /^onmouse(:?out|over)/ ), '' ], + // Onload on image element. + [ ( /^onload$/ ), '' ], + // Remove office and vml attribute from elements. + [ ( /(?:v|o):\w+/ ), '' ], + // Remove lang/language attributes. + [ ( /^lang/ ), '' ] + ], + + attributes : + { + 'style' : stylesFilter( + removeStyles ? + // Provide a white-list of styles that we preserve, those should + // be the ones that could later be altered with editor tools. + [ + // Leave list-style-type + [ ( /^list-style-type$/ ), null ], + + // Preserve margin-left/right which used as default indent style in the editor. + [ ( /^margin$|^margin-(?!bottom|top)/ ), null, function( value, element, name ) + { + if ( element.name in { p : 1, div : 1 } ) + { + var indentStyleName = config.contentsLangDirection == 'ltr' ? + 'margin-left' : 'margin-right'; + + // Extract component value from 'margin' shorthand. + if ( name == 'margin' ) + { + value = getStyleComponents( name, value, + [ indentStyleName ] )[ indentStyleName ]; + } + else if ( name != indentStyleName ) + return null; + + if ( value && !emptyMarginRegex.test( value ) ) + return [ indentStyleName, value ]; + } + + return null; + } ], + + // Preserve clear float style. + [ ( /^clear$/ ) ], + + [ ( /^border.*|margin.*|vertical-align|float$/ ), null, + function( value, element ) + { + if ( element.name == 'img' ) + return value; + } ], + + [ (/^width|height$/ ), null, + function( value, element ) + { + if ( element.name in { table : 1, td : 1, th : 1, img : 1 } ) + return value; + } ] + ] : + // Otherwise provide a black-list of styles that we remove. + [ + [ ( /^mso-/ ) ], + // Fixing color values. + [ ( /-color$/ ), null, function( value ) + { + if ( value == 'transparent' ) + return false; + if ( CKEDITOR.env.gecko ) + return value.replace( /-moz-use-text-color/g, 'transparent' ); + } ], + // Remove empty margin values, e.g. 0.00001pt 0em 0pt + [ ( /^margin$/ ), emptyMarginRegex ], + [ 'text-indent', '0cm' ], + [ 'page-break-before' ], + [ 'tab-stops' ], + [ 'display', 'none' ], + removeFontStyles ? [ ( /font-?/ ) ] : null + ], removeStyles ), + + // Prefer width styles over 'width' attributes. + 'width' : function( value, element ) + { + if ( element.name in dtd.$tableContent ) + return false; + }, + // Prefer border styles over table 'border' attributes. + 'border' : function( value, element ) + { + if ( element.name in dtd.$tableContent ) + return false; + }, + + // Only Firefox carry style sheet from MS-Word, which + // will be applied by us manually. For other browsers + // the css className is useless. + 'class' : falsyFilter, + + // MS-Word always generate 'background-color' along with 'bgcolor', + // simply drop the deprecated attributes. + 'bgcolor' : falsyFilter, + + // Deprecate 'valign' attribute in favor of 'vertical-align'. + 'valign' : removeStyles ? falsyFilter : function( value, element ) + { + element.addStyle( 'vertical-align', value ); + return false; + } + }, + + // Fore none-IE, some useful data might be buried under these IE-conditional + // comments where RegExp were the right approach to dig them out where usual approach + // is transform it into a fake element node which hold the desired data. + comment : + !CKEDITOR.env.ie ? + function( value, node ) + { + var imageInfo = value.match( /<img.*?>/ ), + listInfo = value.match( /^\[if !supportLists\]([\s\S]*?)\[endif\]$/ ); + + // Seek for list bullet indicator. + if ( listInfo ) + { + // Bullet symbol could be either text or an image. + var listSymbol = listInfo[ 1 ] || ( imageInfo && 'l.' ), + listType = listSymbol && listSymbol.match( />(?:[(]?)([^\s]+?)([.)]?)</ ); + return createListBulletMarker( listType, listSymbol ); + } + + // Reveal the <img> element in conditional comments for Firefox. + if ( CKEDITOR.env.gecko && imageInfo ) + { + var img = CKEDITOR.htmlParser.fragment.fromHtml( imageInfo[ 0 ] ).children[ 0 ], + previousComment = node.previous, + // Try to dig the real image link from vml markup from previous comment text. + imgSrcInfo = previousComment && previousComment.value.match( /<v:imagedata[^>]*o:href=['"](.*?)['"]/ ), + imgSrc = imgSrcInfo && imgSrcInfo[ 1 ]; + + // Is there a real 'src' url to be used? + imgSrc && ( img.attributes.src = imgSrc ); + return img; + } + + return false; + } + : falsyFilter + }; + } + }); + + // The paste processor here is just a reduced copy of html data processor. + var pasteProcessor = function() + { + this.dataFilter = new CKEDITOR.htmlParser.filter(); + }; + + pasteProcessor.prototype = + { + toHtml : function( data ) + { + var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data, false ), + writer = new CKEDITOR.htmlParser.basicWriter(); + + fragment.writeHtml( writer, this.dataFilter ); + return writer.getHtml( true ); + } + }; + + CKEDITOR.cleanWord = function( data, editor ) + { + // Firefox will be confused by those downlevel-revealed IE conditional + // comments, fixing them first( convert it to upperlevel-revealed one ). + // e.g. <![if !vml]>...<![endif]> + if ( CKEDITOR.env.gecko ) + data = data.replace( /(<!--\[if[^<]*?\])-->([\S\s]*?)<!--(\[endif\]-->)/gi, '$1$2$3' ); + + var dataProcessor = new pasteProcessor(), + dataFilter = dataProcessor.dataFilter; + + // These rules will have higher priorities than default ones. + dataFilter.addRules( CKEDITOR.plugins.pastefromword.getRules( editor ) ); + + // Allow extending data filter rules. + editor.fire( 'beforeCleanWord', { filter : dataFilter } ); + + try + { + data = dataProcessor.toHtml( data, false ); + } + catch ( e ) + { + alert( editor.lang.pastefromword.error ); + } + + /* Below post processing those things that are unable to delivered by filter rules. */ + + // Remove 'cke' namespaced attribute used in filter rules as marker. + data = data.replace( /cke:.*?".*?"/g, '' ); + + // Remove empty style attribute. + data = data.replace( /style=""/g, '' ); + + // Remove the dummy spans ( having no inline style ). + data = data.replace( /<span>/g, '' ); + + return data; + }; +})(); + +/** + * Whether to ignore all font related formatting styles, including: + * <ul> <li>font size;</li> + * <li>font family;</li> + * <li>font foreground/background color.</li></ul> + * @name CKEDITOR.config.pasteFromWordRemoveFontStyles + * @since 3.1 + * @type Boolean + * @default true + * @example + * config.pasteFromWordRemoveFontStyles = false; + */ + +/** + * Whether to transform MS Word outline numbered headings into lists. + * @name CKEDITOR.config.pasteFromWordNumberedHeadingToList + * @since 3.1 + * @type Boolean + * @default false + * @example + * config.pasteFromWordNumberedHeadingToList = true; + */ + +/** + * Whether to remove element styles that can't be managed with the editor. Note + * that this doesn't handle the font specific styles, which depends on the + * {@link CKEDITOR.config.pasteFromWordRemoveFontStyles} setting instead. + * @name CKEDITOR.config.pasteFromWordRemoveStyles + * @since 3.1 + * @type Boolean + * @default true + * @example + * config.pasteFromWordRemoveStyles = false; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/pastefromword/plugin.js b/htdocs/includes/ckeditor/_source/plugins/pastefromword/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..5686c303e7ea9d840196b4d0a26060f1ce68876a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/pastefromword/plugin.js @@ -0,0 +1,141 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +(function() +{ + function forceHtmlMode( evt ) { evt.data.mode = 'html'; } + + CKEDITOR.plugins.add( 'pastefromword', + { + init : function( editor ) + { + + // Flag indicate this command is actually been asked instead of a generic + // pasting. + var forceFromWord = 0; + var resetFromWord = function( evt ) + { + evt && evt.removeListener(); + editor.removeListener( 'beforePaste', forceHtmlMode ); + forceFromWord && setTimeout( function() { forceFromWord = 0; }, 0 ); + }; + + // Features bring by this command beside the normal process: + // 1. No more bothering of user about the clean-up. + // 2. Perform the clean-up even if content is not from MS-Word. + // (e.g. from a MS-Word similar application.) + editor.addCommand( 'pastefromword', + { + canUndo : false, + exec : function() + { + // Ensure the received data format is HTML and apply content filtering. (#6718) + forceFromWord = 1; + editor.on( 'beforePaste', forceHtmlMode ); + + if ( editor.execCommand( 'paste', 'html' ) === false ) + { + editor.on( 'dialogShow', function ( evt ) + { + evt.removeListener(); + evt.data.on( 'cancel', resetFromWord ); + }); + + editor.on( 'dialogHide', function( evt ) + { + evt.data.removeListener( 'cancel', resetFromWord ); + } ); + } + + editor.on( 'afterPaste', resetFromWord ); + } + }); + + // Register the toolbar button. + editor.ui.addButton( 'PasteFromWord', + { + label : editor.lang.pastefromword.toolbar, + command : 'pastefromword' + }); + + editor.on( 'pasteState', function( evt ) + { + editor.getCommand( 'pastefromword' ).setState( evt.data ); + }); + + editor.on( 'paste', function( evt ) + { + var data = evt.data, + mswordHtml; + + // MS-WORD format sniffing. + if ( ( mswordHtml = data[ 'html' ] ) + && ( forceFromWord || ( /(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/ ).test( mswordHtml ) ) ) + { + var isLazyLoad = this.loadFilterRules( function() + { + // Event continuation with the original data. + if ( isLazyLoad ) + editor.fire( 'paste', data ); + else if ( !editor.config.pasteFromWordPromptCleanup + || ( forceFromWord || confirm( editor.lang.pastefromword.confirmCleanup ) ) ) + { + data[ 'html' ] = CKEDITOR.cleanWord( mswordHtml, editor ); + } + }); + + // The cleanup rules are to be loaded, we should just cancel + // this event. + isLazyLoad && evt.cancel(); + } + }, this ); + }, + + loadFilterRules : function( callback ) + { + + var isLoaded = CKEDITOR.cleanWord; + + if ( isLoaded ) + callback(); + else + { + var filterFilePath = CKEDITOR.getUrl( + CKEDITOR.config.pasteFromWordCleanupFile + || ( this.path + 'filter/default.js' ) ); + + // Load with busy indicator. + CKEDITOR.scriptLoader.load( filterFilePath, callback, null, true ); + } + + return !isLoaded; + }, + + requires : [ 'clipboard' ] + }); +})(); + +/** + * Whether to prompt the user about the clean up of content being pasted from + * MS Word. + * @name CKEDITOR.config.pasteFromWordPromptCleanup + * @since 3.1 + * @type Boolean + * @default undefined + * @example + * config.pasteFromWordPromptCleanup = true; + */ + +/** + * The file that provides the MS Word cleanup function for pasting operations. + * Note: This is a global configuration shared by all editor instances present + * in the page. + * @name CKEDITOR.config.pasteFromWordCleanupFile + * @since 3.1 + * @type String + * @default 'default' + * @example + * // Load from 'pastefromword' plugin 'filter' sub folder (custom.js file). + * CKEDITOR.config.pasteFromWordCleanupFile = 'custom'; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js b/htdocs/includes/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js new file mode 100644 index 0000000000000000000000000000000000000000..025683763b299a9133c8044af54f54b88e78aa6f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js @@ -0,0 +1,67 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + CKEDITOR.dialog.add( 'pastetext', function( editor ) + { + return { + title : editor.lang.pasteText.title, + + minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350, + minHeight : 240, + + onShow : function(){ this.setupContent(); }, + onOk : function(){ this.commitContent(); }, + + contents : + [ + { + label : editor.lang.common.generalTab, + id : 'general', + elements : + [ + { + type : 'html', + id : 'pasteMsg', + html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>' + }, + { + type : 'textarea', + id : 'content', + className : 'cke_pastetext', + + onLoad : function() + { + var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(), + input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 ); + + input.setAttribute( 'aria-labelledby', label.$.id ); + input.setStyle( 'direction', editor.config.contentsLangDirection ); + }, + + focus : function() + { + this.getElement().focus(); + }, + setup : function() + { + this.setValue( '' ); + }, + commit : function() + { + var value = this.getValue(); + setTimeout( function() + { + editor.fire( 'paste', { 'text' : value } ); + }, 0 ); + } + } + ] + } + ] + }; + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/pastetext/plugin.js b/htdocs/includes/ckeditor/_source/plugins/pastetext/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..33eb8cdcb8588c8787cce88d1eca20395a66f103 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/pastetext/plugin.js @@ -0,0 +1,98 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Paste as plain text plugin + */ + +(function() +{ + // The pastetext command definition. + var pasteTextCmd = + { + exec : function( editor ) + { + var clipboardText = CKEDITOR.tools.tryThese( + function() + { + var clipboardText = window.clipboardData.getData( 'Text' ); + if ( !clipboardText ) + throw 0; + return clipboardText; + } + // Any other approach that's working... + ); + + if ( !clipboardText ) // Clipboard access privilege is not granted. + { + editor.openDialog( 'pastetext' ); + return false; + } + else + editor.fire( 'paste', { 'text' : clipboardText } ); + + return true; + } + }; + + // Register the plugin. + CKEDITOR.plugins.add( 'pastetext', + { + init : function( editor ) + { + var commandName = 'pastetext', + command = editor.addCommand( commandName, pasteTextCmd ); + + editor.ui.addButton( 'PasteText', + { + label : editor.lang.pasteText.button, + command : commandName + }); + + CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/pastetext.js' ) ); + + if ( editor.config.forcePasteAsPlainText ) + { + // Intercept the default pasting process. + editor.on( 'beforeCommandExec', function ( evt ) + { + var mode = evt.data.commandData; + // Do NOT overwrite if HTML format is explicitly requested. + if ( evt.data.name == 'paste' && mode != 'html' ) + { + editor.execCommand( 'pastetext' ); + evt.cancel(); + } + }, null, null, 0 ); + + editor.on( 'beforePaste', function( evt ) + { + evt.data.mode = 'text'; + }); + } + + editor.on( 'pasteState', function( evt ) + { + editor.getCommand( 'pastetext' ).setState( evt.data ); + }); + }, + + requires : [ 'clipboard' ] + }); + +})(); + + +/** + * Whether to force all pasting operations to insert on plain text into the + * editor, loosing any formatting information possibly available in the source + * text. + * <strong>Note:</strong> paste from word is not affected by this configuration. + * @name CKEDITOR.config.forcePasteAsPlainText + * @type Boolean + * @default false + * @example + * config.forcePasteAsPlainText = true; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js new file mode 100644 index 0000000000000000000000000000000000000000..94c8c9e2a57b5cf24f32c4af4aae49c6ed785c04 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.html or http://ckeditor.com/license + */ + +(function() +{ + function placeholderDialog( editor, isEdit ) + { + + var lang = editor.lang.placeholder, + generalLabel = editor.lang.common.generalTab; + return { + title : lang.title, + minWidth : 300, + minHeight : 80, + contents : + [ + { + id : 'info', + label : generalLabel, + title : generalLabel, + elements : + [ + { + id : 'text', + type : 'text', + style : 'width: 100%;', + label : lang.text, + 'default' : '', + required : true, + validate : CKEDITOR.dialog.validate.notEmpty( lang.textMissing ), + setup : function( element ) + { + if ( isEdit ) + this.setValue( element.getText().slice( 2, -2 ) ); + }, + commit : function( element ) + { + var text = '[[' + this.getValue() + ']]'; + // The placeholder must be recreated. + CKEDITOR.plugins.placeholder.createPlaceholder( editor, element, text ); + } + } + ] + } + ], + onShow : function() + { + if ( isEdit ) + this._element = CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor ); + + this.setupContent( this._element ); + }, + onOk : function() + { + this.commitContent( this._element ); + delete this._element; + } + }; + } + + CKEDITOR.dialog.add( 'createplaceholder', function( editor ) + { + return placeholderDialog( editor ); + }); + CKEDITOR.dialog.add( 'editplaceholder', function( editor ) + { + return placeholderDialog( editor, 1 ); + }); +} )(); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/_translationstatus.txt b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/_translationstatus.txt new file mode 100644 index 0000000000000000000000000000000000000000..0485f8e8b00402a20870f4ac34f8debe9ec5b753 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/_translationstatus.txt @@ -0,0 +1,27 @@ +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license + +bg.js Found: 5 Missing: 0 +cs.js Found: 5 Missing: 0 +cy.js Found: 5 Missing: 0 +da.js Found: 5 Missing: 0 +de.js Found: 5 Missing: 0 +el.js Found: 5 Missing: 0 +eo.js Found: 5 Missing: 0 +et.js Found: 5 Missing: 0 +fa.js Found: 5 Missing: 0 +fi.js Found: 5 Missing: 0 +fr.js Found: 5 Missing: 0 +he.js Found: 5 Missing: 0 +hr.js Found: 5 Missing: 0 +it.js Found: 5 Missing: 0 +nb.js Found: 5 Missing: 0 +nl.js Found: 5 Missing: 0 +no.js Found: 5 Missing: 0 +pl.js Found: 5 Missing: 0 +pt-br.js Found: 5 Missing: 0 +tr.js Found: 5 Missing: 0 +ug.js Found: 5 Missing: 0 +uk.js Found: 5 Missing: 0 +vi.js Found: 4 Missing: 1 +zh-cn.js Found: 5 Missing: 0 diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/bg.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/bg.js new file mode 100644 index 0000000000000000000000000000000000000000..96a088ad2f70766f6efe8d02285a2109070eba18 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/bg.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'bg', +{ + placeholder : + { + title : 'Настройки на контейнера', + toolbar : 'Нов контейнер', + text : 'Текст за контейнера', + edit : 'Промяна на контейнер', + textMissing : 'Контейнера трябва да съдържа текст.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/cs.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/cs.js new file mode 100644 index 0000000000000000000000000000000000000000..afa353789d4c44a078d0d7bd28db50733b908123 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/cs.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'cs', +{ + placeholder : + { + title : 'Vlastnosti vyhrazeného prostoru', + toolbar : 'Vytvořit vyhrazený prostor', + text : 'Vyhrazený text', + edit : 'Upravit vyhrazený prostor', + textMissing : 'Vyhrazený prostor musí obsahovat text.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/cy.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/cy.js new file mode 100644 index 0000000000000000000000000000000000000000..1ac1e033c3682e9ec2d211e29d73f855bf256cc1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/cy.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'cy', +{ + placeholder : + { + title : 'Priodweddau\'r Daliwr Geiriau', + toolbar : 'Creu Daliwr Geiriau', + text : 'Testun y Daliwr Geiriau', + edit : 'Golygu\'r Dailwr Geiriau', + textMissing : 'Mae\'n rhaid i\'r daliwr geiriau gynnwys testun.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/da.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/da.js new file mode 100644 index 0000000000000000000000000000000000000000..e5cdd30b2b7ef3ae478ac4d9cfc64b1c22dd5e5a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/da.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'da', +{ + placeholder : + { + title : 'Egenskaber for pladsholder', + toolbar : 'Opret pladsholder', + text : 'Tekst til pladsholder', + edit : 'Redigér pladsholder', + textMissing : 'Pladsholder skal indeholde tekst' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/de.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/de.js new file mode 100644 index 0000000000000000000000000000000000000000..4d91ba46d5d44a66eebd72391725e706a8229fc3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/de.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'de', +{ + placeholder : + { + title : 'Platzhalter Einstellungen', + toolbar : 'Platzhalter erstellen', + text : 'Platzhalter Text', + edit : 'Platzhalter bearbeiten', + textMissing : 'Der Platzhalter muss einen Text beinhalten.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/el.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/el.js new file mode 100644 index 0000000000000000000000000000000000000000..315674b1fc55d2cd5b45a2662c5bba971f965569 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/el.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'el', +{ + placeholder : + { + title : 'Ιδιότητες Υποκατάστατου Κειμένου', + toolbar : 'Δημιουργία Υποκατάσταστου Κειμένου', + text : 'Υποκαθιστόμενο Κείμενο', + edit : 'Επεξεργασία Υποκατάσταστου Κειμένου', + textMissing : 'Πρέπει να υπάρχει υποκαθιστόμενο κείμενο.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/en.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/en.js new file mode 100644 index 0000000000000000000000000000000000000000..060850c4929f328090af2b0acc34f02bb9feb2d0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/en.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'en', +{ + placeholder : + { + title : 'Placeholder Properties', + toolbar : 'Create Placeholder', + text : 'Placeholder Text', + edit : 'Edit Placeholder', + textMissing : 'The placeholder must contain text.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/eo.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..1cafa604e34eefdce821a1b294d4660eeca7cd64 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/eo.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'eo', +{ + placeholder : + { + title : 'Atributoj de la rezervita spaco', + toolbar : 'Krei la rezervitan spacon', + text : 'Texto de la rezervita spaco', + edit : 'Modifi la rezervitan spacon', + textMissing : 'La rezervita spaco devas enteni tekston.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/et.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/et.js new file mode 100644 index 0000000000000000000000000000000000000000..1b7dd9882f2ed6151cd544019a36f624bb6f3db9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/et.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'et', +{ + placeholder : + { + title : 'Kohahoidja omadused', + toolbar : 'Kohahoidja loomine', + text : 'Kohahoidja tekst', + edit : 'Kohahoidja muutmine', + textMissing : 'Kohahoidja peab sisaldama teksti.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fa.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fa.js new file mode 100644 index 0000000000000000000000000000000000000000..61545981d673b157a5423ec6492f38f95d84ef3e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fa.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'fa', +{ + placeholder : + { + title : 'ویژگیهای محل نگهداری', + toolbar : 'ایجاد یک محل نگهداری', + text : 'متن محل نگهداری', + edit : 'ویرایش محل نگهداری', + textMissing : 'محل نگهداری باید محتوی متن باشد.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fi.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..598cfca647e02649a695b026913d423ad9e10fc0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fi.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'fi', +{ + placeholder : + { + title : 'Paikkamerkin ominaisuudet', + toolbar : 'Luo paikkamerkki', + text : 'Paikkamerkin teksti', + edit : 'Muokkaa paikkamerkkiä', + textMissing : 'Paikkamerkin täytyy sisältää tekstiä' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fr.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..b8876194be3e8aa5ab963afaf918a692ee314c22 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/fr.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'fr', +{ + placeholder : + { + title : 'Propriétés de l\'Espace réservé', + toolbar : 'Créer l\'Espace réservé', + text : 'Texte de l\'Espace réservé', + edit : 'Modifier l\'Espace réservé', + textMissing : 'L\'Espace réservé doit contenir du texte.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/he.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/he.js new file mode 100644 index 0000000000000000000000000000000000000000..5dfc09f34552a2764ac0a6aa569e8f21ad961bff --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/he.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'he', +{ + placeholder : + { + title : 'מאפייני שומר מקום', + toolbar : 'צור שומר מקום', + text : 'תוכן שומר המקום', + edit : 'ערוך שומר מקום', + textMissing : 'שומר המקום חייב להכיל טקסט.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/hr.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/hr.js new file mode 100644 index 0000000000000000000000000000000000000000..7156ab32c53ff6fdba896703942cd03ce2b757e9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/hr.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'hr', +{ + placeholder : + { + title : 'Svojstva rezerviranog mjesta', + toolbar : 'Napravi rezervirano mjesto', + text : 'Tekst rezerviranog mjesta', + edit : 'Uredi rezervirano mjesto', + textMissing : 'Rezervirano mjesto mora sadržavati tekst.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/it.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/it.js new file mode 100644 index 0000000000000000000000000000000000000000..920657a20b1424b2c78cffadd74dc4216e580494 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/it.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'it', +{ + placeholder : + { + title : 'Proprietà segnaposto', + toolbar : 'Crea segnaposto', + text : 'Testo segnaposto', + edit : 'Modifica segnaposto', + textMissing : 'Il segnaposto deve contenere del testo.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/nb.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..d8917841be7a11f52217eceae1909fa096863c51 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/nb.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'nb', +{ + placeholder : + { + title : 'Egenskaper for plassholder', + toolbar : 'Opprett plassholder', + text : 'Tekst for plassholder', + edit : 'Rediger plassholder', + textMissing : 'Plassholderen må inneholde tekst.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/nl.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..558504a6546a1df5538fe3543cafed75f5015074 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/nl.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'nl', +{ + placeholder : + { + title : 'Eigenschappen placeholder', + toolbar : 'Placeholder aanmaken', + text : 'Placeholder tekst', + edit : 'Placeholder wijzigen', + textMissing : 'De placeholder moet tekst bevatten.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/no.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/no.js new file mode 100644 index 0000000000000000000000000000000000000000..f258ee30d6a4fc33958922a514e6ba8c0ae5f29d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/no.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'no', +{ + placeholder : + { + title : 'Egenskaper for plassholder', + toolbar : 'Opprett plassholder', + text : 'Tekst for plassholder', + edit : 'Rediger plassholder', + textMissing : 'Plassholderen må inneholde tekst.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/pl.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/pl.js new file mode 100644 index 0000000000000000000000000000000000000000..94c53904da8ddaf568d6d1f288ed24e25dcffd95 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/pl.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'pl', +{ + placeholder : + { + title : 'Właściwości wypełniacza', + toolbar : 'Utwórz wypełniacz', + text : 'Tekst wypełnienia', + edit : 'Edytuj wypełnienie', + textMissing : 'Wypełnienie musi posiadać jakiś tekst.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/pt-br.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/pt-br.js new file mode 100644 index 0000000000000000000000000000000000000000..67e8af7742c8e8e325aae43e422a8f7c3af1a270 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/pt-br.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'pt-br', +{ + placeholder : + { + title : 'Propriedades do Espaço Reservado', + toolbar : 'Criar Espaço Reservado', + text : 'Texto do Espaço Reservado', + edit : 'Editar Espaço Reservado', + textMissing : 'O espaço reservado deve conter texto.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/tr.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..117da131263e9996676f2a06c3e09b5de8d5d99a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/tr.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'tr', +{ + placeholder : + { + title : 'Yer tutucu özellikleri', + toolbar : 'Yer tutucu oluşturun', + text : 'Yer tutucu metini', + edit : 'Yer tutucuyu düzenle', + textMissing : 'Yer tutucu metin içermelidir.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/ug.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/ug.js new file mode 100644 index 0000000000000000000000000000000000000000..fb6e8a4156e899c650420c8f3785a116c916e156 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/ug.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'ug', +{ + placeholder : + { + title : 'ئورۇن بەلگە خاسلىقى', + toolbar : 'ئورۇن بەلگە قۇر', + text : 'ئورۇن بەلگە تېكىستى', + edit : 'ئورۇن بەلگە تەھرىر', + textMissing : 'ئورۇن بەلگىسىدە چوقۇم تېكىست بولۇشى لازىم' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/uk.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/uk.js new file mode 100644 index 0000000000000000000000000000000000000000..c7620f7e5e8251b54bdcac470727385b6c1384ba --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/uk.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'uk', +{ + placeholder : + { + title : 'Налаштування Заповнювача', + toolbar : 'Створити Заповнювач', + text : 'Текст Заповнювача', + edit : 'Редагувати Заповнювач', + textMissing : 'Заповнювач повинен містити текст.' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/vi.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/vi.js new file mode 100644 index 0000000000000000000000000000000000000000..89df19ca85ec84996f2b5db5f9a1f6796f7f6b8c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/vi.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'vi', +{ + placeholder : + { + title : 'Thuộc tính đặt chỗ', + toolbar : 'Tạo đặt chỗ', + text : 'Văn bản đặt chỗ', + edit : 'Chỉnh sửa ', + textMissing : 'The placeholder must contain text.' // MISSING + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/zh-cn.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/zh-cn.js new file mode 100644 index 0000000000000000000000000000000000000000..adf72192822d02f26753a81d6e724f795a309073 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/lang/zh-cn.js @@ -0,0 +1,16 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'placeholder', 'zh-cn', +{ + placeholder : + { + title : '占位符属性', + toolbar : '创建占位符', + text : '占位符文字', + edit : '编辑占位符', + textMissing : '占位符必需包含有文字' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/placeholder.gif b/htdocs/includes/ckeditor/_source/plugins/placeholder/placeholder.gif new file mode 100644 index 0000000000000000000000000000000000000000..c07078c176ea25623746d36bf111fab9b9765195 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/placeholder/placeholder.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/placeholder/plugin.js b/htdocs/includes/ckeditor/_source/plugins/placeholder/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..1d5df8c51f537fe2bf6e9eb325c125b6fbd3bbdc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/placeholder/plugin.js @@ -0,0 +1,171 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "placeholder" plugin. + * + */ + +(function() +{ + var placeholderReplaceRegex = /\[\[[^\]]+\]\]/g; + CKEDITOR.plugins.add( 'placeholder', + { + requires : [ 'dialog' ], + lang : [ 'bg', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'it', 'nb', 'nl', 'no', 'pl', 'pt-br', 'tr', 'ug', 'uk', 'vi', 'zh-cn' ], + init : function( editor ) + { + var lang = editor.lang.placeholder; + + editor.addCommand( 'createplaceholder', new CKEDITOR.dialogCommand( 'createplaceholder' ) ); + editor.addCommand( 'editplaceholder', new CKEDITOR.dialogCommand( 'editplaceholder' ) ); + + editor.ui.addButton( 'CreatePlaceholder', + { + label : lang.toolbar, + command :'createplaceholder', + icon : this.path + 'placeholder.gif' + }); + + if ( editor.addMenuItems ) + { + editor.addMenuGroup( 'placeholder', 20 ); + editor.addMenuItems( + { + editplaceholder : + { + label : lang.edit, + command : 'editplaceholder', + group : 'placeholder', + order : 1, + icon : this.path + 'placeholder.gif' + } + } ); + + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element, selection ) + { + if ( !element || !element.data( 'cke-placeholder' ) ) + return null; + + return { editplaceholder : CKEDITOR.TRISTATE_OFF }; + } ); + } + } + + editor.on( 'doubleclick', function( evt ) + { + if ( CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor ) ) + evt.data.dialog = 'editplaceholder'; + }); + + editor.addCss( + '.cke_placeholder' + + '{' + + 'background-color: #ffff00;' + + ( CKEDITOR.env.gecko ? 'cursor: default;' : '' ) + + '}' + ); + + editor.on( 'contentDom', function() + { + editor.document.getBody().on( 'resizestart', function( evt ) + { + if ( editor.getSelection().getSelectedElement().data( 'cke-placeholder' ) ) + evt.data.preventDefault(); + }); + }); + + CKEDITOR.dialog.add( 'createplaceholder', this.path + 'dialogs/placeholder.js' ); + CKEDITOR.dialog.add( 'editplaceholder', this.path + 'dialogs/placeholder.js' ); + }, + afterInit : function( editor ) + { + var dataProcessor = editor.dataProcessor, + dataFilter = dataProcessor && dataProcessor.dataFilter, + htmlFilter = dataProcessor && dataProcessor.htmlFilter; + + if ( dataFilter ) + { + dataFilter.addRules( + { + text : function( text ) + { + return text.replace( placeholderReplaceRegex, function( match ) + { + return CKEDITOR.plugins.placeholder.createPlaceholder( editor, null, match, 1 ); + }); + } + }); + } + + if ( htmlFilter ) + { + htmlFilter.addRules( + { + elements : + { + 'span' : function( element ) + { + if ( element.attributes && element.attributes[ 'data-cke-placeholder' ] ) + delete element.name; + } + } + }); + } + } + }); +})(); + +CKEDITOR.plugins.placeholder = +{ + createPlaceholder : function( editor, oldElement, text, isGet ) + { + var element = new CKEDITOR.dom.element( 'span', editor.document ); + element.setAttributes( + { + contentEditable : 'false', + 'data-cke-placeholder' : 1, + 'class' : 'cke_placeholder' + } + ); + + text && element.setText( text ); + + if ( isGet ) + return element.getOuterHtml(); + + if ( oldElement ) + { + if ( CKEDITOR.env.ie ) + { + element.insertAfter( oldElement ); + // Some time is required for IE before the element is removed. + setTimeout( function() + { + oldElement.remove(); + element.focus(); + }, 10 ); + } + else + element.replace( oldElement ); + } + else + editor.insertElement( element ); + + return null; + }, + + getSelectedPlaceHoder : function( editor ) + { + var range = editor.getSelection().getRanges()[ 0 ]; + range.shrink( CKEDITOR.SHRINK_TEXT ); + var node = range.startContainer; + while( node && !( node.type == CKEDITOR.NODE_ELEMENT && node.data( 'cke-placeholder' ) ) ) + node = node.getParent(); + return node; + } +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/popup/plugin.js b/htdocs/includes/ckeditor/_source/plugins/popup/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..70fb75e155f2945be2d7a62109ba5f6d5dbf81cb --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/popup/plugin.js @@ -0,0 +1,69 @@ +/* +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; + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/preview/plugin.js b/htdocs/includes/ckeditor/_source/plugins/preview/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..da2e1fc1a18b460a264dde8274018d80c89c6791 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/preview/plugin.js @@ -0,0 +1,125 @@ +/* +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>)/, '$& — ' + 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 + }); + } + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/preview/preview.html b/htdocs/includes/ckeditor/_source/plugins/preview/preview.html new file mode 100644 index 0000000000000000000000000000000000000000..d6c4937c1c1d89e3f585596b2dca4b3d2f6eeaea --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/preview/preview.html @@ -0,0 +1,10 @@ +<script> + +var doc = document; +doc.open(); +doc.write( window.opener._cke_htmlToLoad ); +doc.close(); + +delete window.opener._cke_htmlToLoad; + +</script> diff --git a/htdocs/includes/ckeditor/_source/plugins/print/plugin.js b/htdocs/includes/ckeditor/_source/plugins/print/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..5f277707832d6117abe64aa39ebb9cf247368b26 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/print/plugin.js @@ -0,0 +1,42 @@ +/* +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. +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/removeformat/plugin.js b/htdocs/includes/ckeditor/_source/plugins/removeformat/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..d031a65f5646cb665f89784ec316525a8ccde80a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/removeformat/plugin.js @@ -0,0 +1,185 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'removeformat', +{ + requires : [ 'selection' ], + + init : function( editor ) + { + editor.addCommand( 'removeFormat', CKEDITOR.plugins.removeformat.commands.removeformat ); + editor.ui.addButton( 'RemoveFormat', + { + label : editor.lang.removeFormat, + command : 'removeFormat' + }); + + editor._.removeFormat = { filters: [] }; + } +}); + +CKEDITOR.plugins.removeformat = +{ + commands : + { + removeformat : + { + exec : function( editor ) + { + var tagsRegex = editor._.removeFormatRegex || + ( editor._.removeFormatRegex = new RegExp( '^(?:' + editor.config.removeFormatTags.replace( /,/g,'|' ) + ')$', 'i' ) ); + + var removeAttributes = editor._.removeAttributes || + ( editor._.removeAttributes = editor.config.removeFormatAttributes.split( ',' ) ); + + var filter = CKEDITOR.plugins.removeformat.filter; + var ranges = editor.getSelection().getRanges( 1 ), + iterator = ranges.createIterator(), + range; + + while ( ( range = iterator.getNextRange() ) ) + { + if ( ! range.collapsed ) + range.enlarge( CKEDITOR.ENLARGE_ELEMENT ); + + // Bookmark the range so we can re-select it after processing. + var bookmark = range.createBookmark(), + // The style will be applied within the bookmark boundaries. + startNode = bookmark.startNode, + endNode = bookmark.endNode, + currentNode; + + // We need to check the selection boundaries (bookmark spans) to break + // the code in a way that we can properly remove partially selected nodes. + // For example, removing a <b> style from + // <b>This is [some text</b> to show <b>the] problem</b> + // ... where [ and ] represent the selection, must result: + // <b>This is </b>[some text to show the]<b> problem</b> + // The strategy is simple, we just break the partial nodes before the + // removal logic, having something that could be represented this way: + // <b>This is </b>[<b>some text</b> to show <b>the</b>]<b> problem</b> + + var breakParent = function( node ) + { + // Let's start checking the start boundary. + var path = new CKEDITOR.dom.elementPath( node ), + pathElements = path.elements; + + for ( var i = 1, pathElement ; pathElement = pathElements[ i ] ; i++ ) + { + if ( pathElement.equals( path.block ) || pathElement.equals( path.blockLimit ) ) + break; + + // If this element can be removed (even partially). + if ( tagsRegex.test( pathElement.getName() ) && filter( editor, pathElement ) ) + node.breakParent( pathElement ); + } + }; + + breakParent( startNode ); + if ( endNode ) + { + breakParent( endNode ); + + // Navigate through all nodes between the bookmarks. + currentNode = startNode.getNextSourceNode( true, CKEDITOR.NODE_ELEMENT ); + + while ( currentNode ) + { + // If we have reached the end of the selection, stop looping. + if ( currentNode.equals( endNode ) ) + break; + + // Cache the next node to be processed. Do it now, because + // currentNode may be removed. + var nextNode = currentNode.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT ); + + // This node must not be a fake element. + if ( !( currentNode.getName() == 'img' + && currentNode.data( 'cke-realelement' ) ) + && filter( editor, currentNode ) ) + { + // Remove elements nodes that match with this style rules. + if ( tagsRegex.test( currentNode.getName() ) ) + currentNode.remove( 1 ); + else + { + currentNode.removeAttributes( removeAttributes ); + editor.fire( 'removeFormatCleanup', currentNode ); + } + } + + currentNode = nextNode; + } + } + + range.moveToBookmark( bookmark ); + } + + editor.getSelection().selectRanges( ranges ); + } + } + }, + + /** + * Perform the remove format filters on the passed element. + * @param {CKEDITOR.editor} editor + * @param {CKEDITOR.dom.element} element + */ + filter : function ( editor, element ) + { + var filters = editor._.removeFormat.filters; + for ( var i = 0; i < filters.length; i++ ) + { + if ( filters[ i ]( element ) === false ) + return false; + } + return true; + } +}; + +/** + * Add to a collection of functions to decide whether a specific + * element should be considered as formatting element and thus + * could be removed during <b>removeFormat</b> command, + * Note: Only available with the existence of 'removeformat' plugin. + * @since 3.3 + * @param {Function} func The function to be called, which will be passed a {CKEDITOR.dom.element} element to test. + * @example + * // Don't remove empty span + * editor.addRemoveFormatFilter.push( function( element ) + * { + * return !( element.is( 'span' ) && CKEDITOR.tools.isEmpty( element.getAttributes() ) ); + * }); + */ +CKEDITOR.editor.prototype.addRemoveFormatFilter = function( func ) +{ + this._.removeFormat.filters.push( func ); +}; + +/** + * A comma separated list of elements to be removed when executing the "remove + " format" command. Note that only inline elements are allowed. + * @type String + * @default 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' + * @example + */ +CKEDITOR.config.removeFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var'; + +/** + * A comma separated list of elements attributes to be removed when executing + * the "remove format" command. + * @type String + * @default 'class,style,lang,width,height,align,hspace,valign' + * @example + */ +CKEDITOR.config.removeFormatAttributes = 'class,style,lang,width,height,align,hspace,valign'; + +/** + * Fired after an element was cleaned by the removeFormat plugin. + * @name CKEDITOR.editor#removeFormatCleanup + * @event + * @param {Object} data.element The element that was cleaned up. + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/resize/plugin.js b/htdocs/includes/ckeditor/_source/plugins/resize/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..3fbec77c64201da06be73542e0a780bb814d00e7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/resize/plugin.js @@ -0,0 +1,169 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'resize', +{ + init : function( editor ) + { + var config = editor.config; + + // Resize in the same direction of chrome, + // which is identical to dir of editor element. (#6614) + var resizeDir = editor.element.getDirection( 1 ); + + !config.resize_dir && ( config.resize_dir = 'both' ); + ( config.resize_maxWidth == undefined ) && ( config.resize_maxWidth = 3000 ); + ( config.resize_maxHeight == undefined ) && ( config.resize_maxHeight = 3000 ); + ( config.resize_minWidth == undefined ) && ( config.resize_minWidth = 750 ); + ( config.resize_minHeight == undefined ) && ( config.resize_minHeight = 250 ); + + if ( config.resize_enabled !== false ) + { + var container = null, + origin, + startSize, + resizeHorizontal = ( config.resize_dir == 'both' || config.resize_dir == 'horizontal' ) && + ( config.resize_minWidth != config.resize_maxWidth ), + resizeVertical = ( config.resize_dir == 'both' || config.resize_dir == 'vertical' ) && + ( config.resize_minHeight != config.resize_maxHeight ); + + function dragHandler( evt ) + { + var dx = evt.data.$.screenX - origin.x, + dy = evt.data.$.screenY - origin.y, + width = startSize.width, + height = startSize.height, + internalWidth = width + dx * ( resizeDir == 'rtl' ? -1 : 1 ), + internalHeight = height + dy; + + if ( resizeHorizontal ) + width = Math.max( config.resize_minWidth, Math.min( internalWidth, config.resize_maxWidth ) ); + + if ( resizeVertical ) + height = Math.max( config.resize_minHeight, Math.min( internalHeight, config.resize_maxHeight ) ); + + // DO NOT impose fixed size with single direction resize. (#6308) + editor.resize( resizeHorizontal ? width : null, height ); + } + + function dragEndHandler ( evt ) + { + CKEDITOR.document.removeListener( 'mousemove', dragHandler ); + CKEDITOR.document.removeListener( 'mouseup', dragEndHandler ); + + if ( editor.document ) + { + editor.document.removeListener( 'mousemove', dragHandler ); + editor.document.removeListener( 'mouseup', dragEndHandler ); + } + } + + var mouseDownFn = CKEDITOR.tools.addFunction( function( $event ) + { + if ( !container ) + container = editor.getResizable(); + + startSize = { width : container.$.offsetWidth || 0, height : container.$.offsetHeight || 0 }; + origin = { x : $event.screenX, y : $event.screenY }; + + config.resize_minWidth > startSize.width && ( config.resize_minWidth = startSize.width ); + config.resize_minHeight > startSize.height && ( config.resize_minHeight = startSize.height ); + + CKEDITOR.document.on( 'mousemove', dragHandler ); + CKEDITOR.document.on( 'mouseup', dragEndHandler ); + + if ( editor.document ) + { + editor.document.on( 'mousemove', dragHandler ); + editor.document.on( 'mouseup', dragEndHandler ); + } + }); + + editor.on( 'destroy', function() { CKEDITOR.tools.removeFunction( mouseDownFn ); } ); + + editor.on( 'themeSpace', function( event ) + { + if ( event.data.space == 'bottom' ) + { + var direction = ''; + if ( resizeHorizontal && !resizeVertical ) + direction = ' cke_resizer_horizontal'; + if ( !resizeHorizontal && resizeVertical ) + direction = ' cke_resizer_vertical'; + + var resizerHtml = + '<div' + + ' class="cke_resizer' + direction + ' cke_resizer_' + resizeDir + '"' + + ' title="' + CKEDITOR.tools.htmlEncode( editor.lang.resize ) + '"' + + ' onmousedown="CKEDITOR.tools.callFunction(' + mouseDownFn + ', event)"' + + '></div>'; + + // Always sticks the corner of botttom space. + resizeDir == 'ltr' && direction == 'ltr' ? + event.data.html += resizerHtml : + event.data.html = resizerHtml + event.data.html; + } + }, editor, null, 100 ); + } + } +} ); + +/** + * The minimum editor width, in pixels, when resizing the editor interface by using the resize handle. + * Note: It falls back to editor's actual width if it is smaller than the default value. + * @name CKEDITOR.config.resize_minWidth + * @type Number + * @default 750 + * @example + * config.resize_minWidth = 500; + */ + +/** + * The minimum editor height, in pixels, when resizing the editor interface by using the resize handle. + * Note: It falls back to editor's actual height if it is smaller than the default value. + * @name CKEDITOR.config.resize_minHeight + * @type Number + * @default 250 + * @example + * config.resize_minHeight = 600; + */ + +/** + * The maximum editor width, in pixels, when resizing the editor interface by using the resize handle. + * @name CKEDITOR.config.resize_maxWidth + * @type Number + * @default 3000 + * @example + * config.resize_maxWidth = 750; + */ + +/** + * The maximum editor height, in pixels, when resizing the editor interface by using the resize handle. + * @name CKEDITOR.config.resize_maxHeight + * @type Number + * @default 3000 + * @example + * config.resize_maxHeight = 600; + */ + +/** + * Whether to enable the resizing feature. If this feature is disabled, the resize handle will not be visible. + * @name CKEDITOR.config.resize_enabled + * @type Boolean + * @default true + * @example + * config.resize_enabled = false; + */ + +/** + * The dimensions for which the editor resizing is enabled. Possible values + * are <code>both</code>, <code>vertical</code>, and <code>horizontal</code>. + * @name CKEDITOR.config.resize_dir + * @type String + * @default 'both' + * @since 3.3 + * @example + * config.resize_dir = 'vertical'; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/richcombo/plugin.js b/htdocs/includes/ckeditor/_source/plugins/richcombo/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..791dede82afbe9de98baeca93f22530c881fc0f6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/richcombo/plugin.js @@ -0,0 +1,381 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'richcombo', +{ + requires : [ 'floatpanel', 'listblock', 'button' ], + + beforeInit : function( editor ) + { + editor.ui.addHandler( CKEDITOR.UI_RICHCOMBO, CKEDITOR.ui.richCombo.handler ); + } +}); + +/** + * Button UI element. + * @constant + * @example + */ +CKEDITOR.UI_RICHCOMBO = 'richcombo'; + +CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass( +{ + $ : function( definition ) + { + // Copy all definition properties to this object. + CKEDITOR.tools.extend( this, definition, + // Set defaults. + { + title : definition.label, + modes : { wysiwyg : 1 } + }); + + // We don't want the panel definition in this object. + var panelDefinition = this.panel || {}; + delete this.panel; + + this.id = CKEDITOR.tools.getNextNumber(); + + this.document = ( panelDefinition + && panelDefinition.parent + && panelDefinition.parent.getDocument() ) + || CKEDITOR.document; + + panelDefinition.className = ( panelDefinition.className || '' ) + ' cke_rcombopanel'; + panelDefinition.block = + { + multiSelect : panelDefinition.multiSelect, + attributes : panelDefinition.attributes + }; + + this._ = + { + panelDefinition : panelDefinition, + items : {}, + state : CKEDITOR.TRISTATE_OFF + }; + }, + + statics : + { + handler : + { + create : function( definition ) + { + return new CKEDITOR.ui.richCombo( definition ); + } + } + }, + + proto : + { + renderHtml : function( editor ) + { + var output = []; + this.render( editor, output ); + return output.join( '' ); + }, + + /** + * Renders the combo. + * @param {CKEDITOR.editor} editor The editor instance which this button is + * to be used by. + * @param {Array} output The output array to which append the HTML relative + * to this button. + * @example + */ + render : function( editor, output ) + { + var env = CKEDITOR.env; + + var id = 'cke_' + this.id; + var clickFn = CKEDITOR.tools.addFunction( function( $element ) + { + var _ = this._; + + if ( _.state == CKEDITOR.TRISTATE_DISABLED ) + return; + + this.createPanel( editor ); + + if ( _.on ) + { + _.panel.hide(); + return; + } + + this.commit(); + var value = this.getValue(); + if ( value ) + _.list.mark( value ); + else + _.list.unmarkAll(); + + _.panel.showBlock( this.id, new CKEDITOR.dom.element( $element ), 4 ); + }, + this ); + + var instance = { + id : id, + combo : this, + focus : function() + { + var element = CKEDITOR.document.getById( id ).getChild( 1 ); + element.focus(); + }, + clickFn : clickFn + }; + + function updateState() + { + var state = this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; + this.setState( editor.readOnly && !this.readOnly ? CKEDITOR.TRISTATE_DISABLED : state ); + this.setValue( '' ); + } + + editor.on( 'mode', updateState, this ); + // If this combo is sensitive to readOnly state, update it accordingly. + !this.readOnly && editor.on( 'readOnly', updateState, this); + + var keyDownFn = CKEDITOR.tools.addFunction( function( ev, element ) + { + ev = new CKEDITOR.dom.event( ev ); + + var keystroke = ev.getKeystroke(); + switch ( keystroke ) + { + case 13 : // ENTER + case 32 : // SPACE + case 40 : // ARROW-DOWN + // Show panel + CKEDITOR.tools.callFunction( clickFn, element ); + break; + default : + // Delegate the default behavior to toolbar button key handling. + instance.onkey( instance, keystroke ); + } + + // Avoid subsequent focus grab on editor document. + ev.preventDefault(); + }); + + var focusFn = CKEDITOR.tools.addFunction( function() { instance.onfocus && instance.onfocus(); } ); + + // For clean up + instance.keyDownFn = keyDownFn; + + output.push( + '<span class="cke_rcombo" role="presentation">', + '<span id=', id ); + + if ( this.className ) + output.push( ' class="', this.className, ' cke_off"'); + + output.push( + ' role="presentation">', + '<span id="' + id+ '_label" class=cke_label>', this.label, '</span>', + '<a hidefocus=true title="', this.title, '" tabindex="-1"', + env.gecko && env.version >= 10900 && !env.hc ? '' : ' href="javascript:void(\'' + this.label + '\')"', + ' role="button" aria-labelledby="', id , '_label" aria-describedby="', id, '_text" aria-haspopup="true"' ); + + // Some browsers don't cancel key events in the keydown but in the + // keypress. + // TODO: Check if really needed for Gecko+Mac. + if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) ) + { + output.push( + ' onkeypress="return false;"' ); + } + + // With Firefox, we need to force it to redraw, otherwise it + // will remain in the focus state. + if ( CKEDITOR.env.gecko ) + { + output.push( + ' onblur="this.style.cssText = this.style.cssText;"' ); + } + + output.push( + ' onkeydown="CKEDITOR.tools.callFunction( ', keyDownFn, ', event, this );"' + + ' onfocus="return CKEDITOR.tools.callFunction(', focusFn, ', event);" ' + + ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 + '="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + + '<span>' + + '<span id="' + id + '_text" class="cke_text cke_inline_label">' + this.label + '</span>' + + '</span>' + + '<span class=cke_openbutton><span class=cke_icon>' + ( CKEDITOR.env.hc ? '▼' : CKEDITOR.env.air ? ' ' : '' ) + '</span></span>' + // BLACK DOWN-POINTING TRIANGLE + '</a>' + + '</span>' + + '</span>' ); + + if ( this.onRender ) + this.onRender(); + + return instance; + }, + + createPanel : function( editor ) + { + if ( this._.panel ) + return; + + var panelDefinition = this._.panelDefinition, + panelBlockDefinition = this._.panelDefinition.block, + panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(), + panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ), + list = panel.addListBlock( this.id, panelBlockDefinition ), + me = this; + + panel.onShow = function() + { + if ( me.className ) + this.element.getFirst().addClass( me.className + '_panel' ); + + me.setState( CKEDITOR.TRISTATE_ON ); + + list.focus( !me.multiSelect && me.getValue() ); + + me._.on = 1; + + if ( me.onOpen ) + me.onOpen(); + }; + + panel.onHide = function( preventOnClose ) + { + if ( me.className ) + this.element.getFirst().removeClass( me.className + '_panel' ); + + me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + + me._.on = 0; + + if ( !preventOnClose && me.onClose ) + me.onClose(); + }; + + panel.onEscape = function() + { + panel.hide(); + }; + + list.onClick = function( value, marked ) + { + // Move the focus to the main windows, otherwise it will stay + // into the floating panel, even if invisible, and Safari and + // Opera will go a bit crazy. + me.document.getWindow().focus(); + + if ( me.onClick ) + me.onClick.call( me, value, marked ); + + if ( marked ) + me.setValue( value, me._.items[ value ] ); + else + me.setValue( '' ); + + panel.hide( false ); + }; + + this._.panel = panel; + this._.list = list; + + panel.getBlock( this.id ).onHide = function() + { + me._.on = 0; + me.setState( CKEDITOR.TRISTATE_OFF ); + }; + + if ( this.init ) + this.init(); + }, + + setValue : function( value, text ) + { + this._.value = value; + + var textElement = this.document.getById( 'cke_' + this.id + '_text' ); + if ( textElement ) + { + if ( !( value || text ) ) + { + text = this.label; + textElement.addClass( 'cke_inline_label' ); + } + else + textElement.removeClass( 'cke_inline_label' ); + + textElement.setHtml( typeof text != 'undefined' ? text : value ); + } + }, + + getValue : function() + { + return this._.value || ''; + }, + + unmarkAll : function() + { + this._.list.unmarkAll(); + }, + + mark : function( value ) + { + this._.list.mark( value ); + }, + + hideItem : function( value ) + { + this._.list.hideItem( value ); + }, + + hideGroup : function( groupTitle ) + { + this._.list.hideGroup( groupTitle ); + }, + + showAll : function() + { + this._.list.showAll(); + }, + + add : function( value, html, text ) + { + this._.items[ value ] = text || value; + this._.list.add( value, html, text ); + }, + + startGroup : function( title ) + { + this._.list.startGroup( title ); + }, + + commit : function() + { + if ( !this._.committed ) + { + this._.list.commit(); + this._.committed = 1; + CKEDITOR.ui.fire( 'ready', this ); + } + this._.committed = 1; + }, + + setState : function( state ) + { + if ( this._.state == state ) + return; + + this.document.getById( 'cke_' + this.id ).setState( state ); + + this._.state = state; + } + } +}); + +CKEDITOR.ui.prototype.addRichCombo = function( name, definition ) +{ + this.add( name, CKEDITOR.UI_RICHCOMBO, definition ); +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/save/plugin.js b/htdocs/includes/ckeditor/_source/plugins/save/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..50bb16841f67cf075c6606169a42fe5072880c55 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/save/plugin.js @@ -0,0 +1,56 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileSave plugin. + */ + +(function() +{ + var saveCmd = + { + modes : { wysiwyg:1, source:1 }, + readOnly : 1, + + exec : function( editor ) + { + var $form = editor.element.$.form; + + if ( $form ) + { + try + { + $form.submit(); + } + catch( e ) + { + // If there's a button named "submit" then the form.submit + // function is masked and can't be called in IE/FF, so we + // call the click() method of that button. + if ( $form.submit.click ) + $form.submit.click(); + } + } + } + }; + + var pluginName = 'save'; + + // Register a plugin named "save". + CKEDITOR.plugins.add( pluginName, + { + init : function( editor ) + { + var command = editor.addCommand( pluginName, saveCmd ); + command.modes = { wysiwyg : !!( editor.element.$.form ) }; + + editor.ui.addButton( 'Save', + { + label : editor.lang.save, + command : pluginName + }); + } + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/scayt/dialogs/options.js b/htdocs/includes/ckeditor/_source/plugins/scayt/dialogs/options.js new file mode 100644 index 0000000000000000000000000000000000000000..f60eee90528f0b78dc86b90dd7c121615a5ac881 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/scayt/dialogs/options.js @@ -0,0 +1,537 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'scaytcheck', function( editor ) +{ + var firstLoad = true, + captions, + doc = CKEDITOR.document, + editorName = editor.name, + tags = CKEDITOR.plugins.scayt.getUiTabs( editor ), + i, + contents = [], + userDicActive = 0, + dic_buttons = [ + // [0] contains buttons for creating + "dic_create_" + editorName + ",dic_restore_" + editorName, + // [1] contains buton for manipulation + "dic_rename_" + editorName + ",dic_delete_" + editorName + ], + optionsIds = [ 'mixedCase', 'mixedWithDigits', 'allCaps', 'ignoreDomainNames' ]; + + // common operations + + function getBOMAllOptions() + { + if (typeof document.forms["optionsbar_" + editorName] != "undefined") + return document.forms["optionsbar_" + editorName]["options"]; + return []; + } + function getBOMAllLangs() + { + if (typeof document.forms["languagesbar_" + editorName] != "undefined") + return document.forms["languagesbar_" + editorName]["scayt_lang"]; + return []; + } + + function setCheckedValue( radioObj, newValue ) + { + if ( !radioObj ) + return; + var radioLength = radioObj.length; + if ( radioLength == undefined ) + { + radioObj.checked = radioObj.value == newValue.toString(); + return; + } + for ( var i = 0; i < radioLength; i++ ) + { + radioObj[i].checked = false; + if ( radioObj[i].value == newValue.toString() ) + radioObj[i].checked = true; + } + } + + var lang = editor.lang.scayt; + var tags_contents = [ + { + id : 'options', + label : lang.optionsTab, + elements : [ + { + type : 'html', + id : 'options', + html : '<form name="optionsbar_' + editorName + '"><div class="inner_options">' + + ' <div class="messagebox"></div>' + + ' <div style="display:none;">' + + ' <input type="checkbox" name="options" id="allCaps_' + editorName + '" />' + + ' <label for="allCaps" id="label_allCaps_' + editorName + '"></label>' + + ' </div>' + + ' <div style="display:none;">' + + ' <input name="options" type="checkbox" id="ignoreDomainNames_' + editorName + '" />' + + ' <label for="ignoreDomainNames" id="label_ignoreDomainNames_' + editorName + '"></label>' + + ' </div>' + + ' <div style="display:none;">' + + ' <input name="options" type="checkbox" id="mixedCase_' + editorName + '" />' + + ' <label for="mixedCase" id="label_mixedCase_' + editorName + '"></label>' + + ' </div>' + + ' <div style="display:none;">' + + ' <input name="options" type="checkbox" id="mixedWithDigits_' + editorName + '" />' + + ' <label for="mixedWithDigits" id="label_mixedWithDigits_' + editorName + '"></label>' + + ' </div>' + + '</div></form>' + } + ] + }, + { + id : 'langs', + label : lang.languagesTab, + elements : [ + { + type : 'html', + id : 'langs', + html : '<form name="languagesbar_' + editorName + '"><div class="inner_langs">' + + ' <div class="messagebox"></div> ' + + ' <div style="float:left;width:45%;margin-left:5px;" id="scayt_lcol_' + editorName + '" ></div>' + + ' <div style="float:left;width:45%;margin-left:15px;" id="scayt_rcol_' + editorName + '"></div>' + + '</div></form>' + } + ] + }, + { + id : 'dictionaries', + label : lang.dictionariesTab, + elements : [ + { + type : 'html', + style: '', + id : 'dictionaries', + html : '<form name="dictionarybar_' + editorName + '"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">' + + ' <div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message_' + editorName + '"> </div>' + + ' <div style="margin:5px auto; width:80%;white-space:normal;"> ' + + ' <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>'+ + ' <span class="cke_dialog_ui_labeled_content" >'+ + ' <div class="cke_dialog_ui_input_text">'+ + ' <input id="dic_name_' + editorName + '" type="text" class="cke_dialog_ui_input_text"/>'+ + ' </div></span></div>'+ + ' <div style="margin:5px auto; width:80%;white-space:normal;">'+ + ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_create_' + editorName + '">'+ + ' </a>' + + ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_delete_' + editorName + '">'+ + ' </a>' + + ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_rename_' + editorName + '">'+ + ' </a>' + + ' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_restore_' + editorName + '">'+ + ' </a>' + + ' </div>' + + ' <div style="margin:5px auto; width:95%;white-space:normal;" id="dic_info_' + editorName + '"></div>' + + '</div></form>' + } + ] + }, + { + id : 'about', + label : lang.aboutTab, + elements : [ + { + type : 'html', + id : 'about', + style : 'margin: 5px 5px;', + html : '<div id="scayt_about_' + editorName + '"></div>' + } + ] + } + ]; + + var dialogDefiniton = { + title : lang.title, + minWidth : 360, + minHeight : 220, + onShow : function() + { + var dialog = this; + dialog.data = editor.fire( 'scaytDialog', {} ); + dialog.options = dialog.data.scayt_control.option(); + dialog.chosed_lang = dialog.sLang = dialog.data.scayt_control.sLang; + + if ( !dialog.data || !dialog.data.scayt || !dialog.data.scayt_control ) + { + alert( 'Error loading application service' ); + dialog.hide(); + return; + } + + var stop = 0; + if ( firstLoad ) + { + dialog.data.scayt.getCaption( editor.langCode || 'en', function( caps ) + { + if ( stop++ > 0 ) // Once only + return; + captions = caps; + init_with_captions.apply( dialog ); + reload.apply( dialog ); + firstLoad = false; + }); + } + else + reload.apply( dialog ); + + dialog.selectPage( dialog.data.tab ); + }, + onOk : function() + { + var scayt_control = this.data.scayt_control; + scayt_control.option( this.options ); + // Setup language if it was changed. + var csLang = this.chosed_lang; + scayt_control.setLang( csLang ); + scayt_control.refresh(); + }, + onCancel: function() + { + var o = getBOMAllOptions(); + for ( var i in o ) + o[i].checked = false; + + setCheckedValue( getBOMAllLangs(), "" ); + }, + contents : contents + }; + + var scayt_control = CKEDITOR.plugins.scayt.getScayt( editor ); + + for ( i = 0; i < tags.length; i++ ) + { + if ( tags[ i ] == 1 ) + contents[ contents.length ] = tags_contents[ i ]; + } + if ( tags[2] == 1 ) + userDicActive = 1; + + var init_with_captions = function() + { + var dialog = this, + lang_list = dialog.data.scayt.getLangList(), + buttonCaptions = [ 'dic_create', 'dic_delete', 'dic_rename', 'dic_restore' ], + buttonIds = [], + langList = [], + labels = optionsIds, + i; + + // Add buttons titles + if ( userDicActive ) + { + for ( i = 0; i < buttonCaptions.length; i++ ) + { + buttonIds[ i ] = buttonCaptions[ i ] + "_" + editorName; + doc.getById( buttonIds[ i ] ).setHtml( '<span class="cke_dialog_ui_button">' + captions[ 'button_' + buttonCaptions[ i ]] +'</span>' ); + } + doc.getById( 'dic_info_' + editorName ).setHtml( captions[ 'dic_info' ] ); + } + + // Fill options and dictionary labels. + if ( tags[0] == 1 ) + { + for ( i in labels ) + { + var labelCaption = 'label_' + labels[ i ], + labelId = labelCaption + '_' + editorName, + labelElement = doc.getById( labelId ); + + if ( 'undefined' != typeof labelElement + && 'undefined' != typeof captions[ labelCaption ] + && 'undefined' != typeof dialog.options[labels[ i ]] ) + { + labelElement.setHtml( captions[ labelCaption ] ); + var labelParent = labelElement.getParent(); + labelParent.$.style.display = "block"; + } + } + } + + var about = '<p><img src="' + window.scayt.getAboutInfo().logoURL + '" /></p>' + + '<p>' + captions[ 'version' ] + window.scayt.getAboutInfo().version.toString() + '</p>' + + '<p>' + captions[ 'about_throwt_copy' ] + '</p>'; + + doc.getById( 'scayt_about_' + editorName ).setHtml( about ); + + // Create languages tab. + var createOption = function( option, list ) + { + var label = doc.createElement( 'label' ); + label.setAttribute( 'for', 'cke_option' + option ); + label.setHtml( list[ option ] ); + + if ( dialog.sLang == option ) // Current. + dialog.chosed_lang = option; + + var div = doc.createElement( 'div' ); + var radio = CKEDITOR.dom.element.createFromHtml( '<input id="cke_option' + + option + '" type="radio" ' + + ( dialog.sLang == option ? 'checked="checked"' : '' ) + + ' value="' + option + '" name="scayt_lang" />' ); + + radio.on( 'click', function() + { + this.$.checked = true; + dialog.chosed_lang = option; + }); + + div.append( radio ); + div.append( label ); + + return { + lang : list[ option ], + code : option, + radio : div + }; + }; + + if ( tags[1] ==1 ) + { + for ( i in lang_list.rtl ) + langList[ langList.length ] = createOption( i, lang_list.ltr ); + + for ( i in lang_list.ltr ) + langList[ langList.length ] = createOption( i, lang_list.ltr ); + + langList.sort( function( lang1, lang2 ) + { + return ( lang2.lang > lang1.lang ) ? -1 : 1 ; + }); + + var fieldL = doc.getById( 'scayt_lcol_' + editorName ), + fieldR = doc.getById( 'scayt_rcol_' + editorName ); + for ( i=0; i < langList.length; i++ ) + { + var field = ( i < langList.length / 2 ) ? fieldL : fieldR; + field.append( langList[ i ].radio ); + } + } + + // user dictionary handlers + var dic = {}; + dic.dic_create = function( el, dic_name , dic_buttons ) + { + // comma separated button's ids include repeats if exists + var all_buttons = dic_buttons[0] + ',' + dic_buttons[1]; + + var err_massage = captions["err_dic_create"]; + var suc_massage = captions["succ_dic_create"]; + + window.scayt.createUserDictionary( dic_name, + function( arg ) + { + hide_dic_buttons ( all_buttons ); + display_dic_buttons ( dic_buttons[1] ); + suc_massage = suc_massage.replace("%s" , arg.dname ); + dic_success_message (suc_massage); + }, + function( arg ) + { + err_massage = err_massage.replace("%s" ,arg.dname ); + dic_error_message ( err_massage + "( "+ (arg.message || "") +")"); + }); + + }; + + dic.dic_rename = function( el, dic_name ) + { + // + // try to rename dictionary + var err_massage = captions["err_dic_rename"] || ""; + var suc_massage = captions["succ_dic_rename"] || ""; + window.scayt.renameUserDictionary( dic_name, + function( arg ) + { + suc_massage = suc_massage.replace("%s" , arg.dname ); + set_dic_name( dic_name ); + dic_success_message ( suc_massage ); + }, + function( arg ) + { + err_massage = err_massage.replace("%s" , arg.dname ); + set_dic_name( dic_name ); + dic_error_message( err_massage + "( " + ( arg.message || "" ) + " )" ); + }); + }; + + dic.dic_delete = function( el, dic_name , dic_buttons ) + { + var all_buttons = dic_buttons[0] + ',' + dic_buttons[1]; + var err_massage = captions["err_dic_delete"]; + var suc_massage = captions["succ_dic_delete"]; + + // try to delete dictionary + window.scayt.deleteUserDictionary( + function( arg ) + { + suc_massage = suc_massage.replace("%s" , arg.dname ); + hide_dic_buttons ( all_buttons ); + display_dic_buttons ( dic_buttons[0] ); + set_dic_name( "" ); // empty input field + dic_success_message( suc_massage ); + }, + function( arg ) + { + err_massage = err_massage.replace("%s" , arg.dname ); + dic_error_message(err_massage); + }); + }; + + dic.dic_restore = dialog.dic_restore || function( el, dic_name , dic_buttons ) + { + // try to restore existing dictionary + var all_buttons = dic_buttons[0] + ',' + dic_buttons[1]; + var err_massage = captions["err_dic_restore"]; + var suc_massage = captions["succ_dic_restore"]; + + window.scayt.restoreUserDictionary(dic_name, + function( arg ) + { + suc_massage = suc_massage.replace("%s" , arg.dname ); + hide_dic_buttons ( all_buttons ); + display_dic_buttons(dic_buttons[1]); + dic_success_message( suc_massage ); + }, + function( arg ) + { + err_massage = err_massage.replace("%s" , arg.dname ); + dic_error_message( err_massage ); + }); + }; + + function onDicButtonClick( ev ) + { + var dic_name = doc.getById('dic_name_' + editorName).getValue(); + if ( !dic_name ) + { + dic_error_message(" Dictionary name should not be empty. "); + return false; + } + try{ + var el = ev.data.getTarget().getParent(); + var id = /(dic_\w+)_[\w\d]+/.exec(el.getId())[1]; + dic[ id ].apply( null, [ el, dic_name, dic_buttons ] ); + } + catch(err) + { + dic_error_message(" Dictionary error. "); + } + + return true; + } + + // ** bind event listeners + var arr_buttons = ( dic_buttons[0] + ',' + dic_buttons[1] ).split( ',' ), + l; + + for ( i = 0, l = arr_buttons.length ; i < l ; i += 1 ) + { + var dic_button = doc.getById(arr_buttons[i]); + if ( dic_button ) + dic_button.on( 'click', onDicButtonClick, this ); + } + }; + + var reload = function() + { + var dialog = this; + // for enabled options tab + if ( tags[0] == 1 ){ + var opto = getBOMAllOptions(); + + // Animate options. + for ( var k=0,l = opto.length; k<l;k++ ) + { + + var i = opto[k].id; + var checkbox = doc.getById( i ); + + if ( checkbox ) + { + opto[k].checked = false; + //alert (opto[k].removeAttribute) + if ( dialog.options[ i.split("_")[0] ] == 1 ) + { + opto[k].checked = true; + } + + + // Bind events. Do it only once. + if ( firstLoad ) + { + checkbox.on( 'click', function() + { + dialog.options[ this.getId().split("_")[0] ] = this.$.checked ? 1 : 0 ; + }); + } + } + } + } + + //for enabled languages tab + if ( tags[1] == 1 ) + { + var domLang = doc.getById("cke_option" + dialog.sLang); + setCheckedValue( domLang.$,dialog.sLang ); + } + + // * user dictionary + if ( userDicActive ) + { + window.scayt.getNameUserDictionary( + function( o ) + { + var dic_name = o.dname; + hide_dic_buttons( dic_buttons[0] + ',' + dic_buttons[1] ); + if ( dic_name ) + { + doc.getById( 'dic_name_' + editorName ).setValue(dic_name); + display_dic_buttons( dic_buttons[1] ); + } + else + display_dic_buttons( dic_buttons[0] ); + + }, + function() + { + doc.getById( 'dic_name_' + editorName ).setValue(""); + }); + dic_success_message(""); + } + + }; + + function dic_error_message( m ) + { + doc.getById('dic_message_' + editorName).setHtml('<span style="color:red;">' + m + '</span>' ); + } + function dic_success_message( m ) + { + doc.getById('dic_message_' + editorName).setHtml('<span style="color:blue;">' + m + '</span>') ; + } + function display_dic_buttons( sIds ) + { + sIds = String( sIds ); + var aIds = sIds.split(','); + for ( var i=0, l = aIds.length; i < l ; i+=1) + doc.getById( aIds[i] ).$.style.display = "inline"; + } + function hide_dic_buttons( sIds ) + { + sIds = String( sIds ); + var aIds = sIds.split(','); + for ( var i = 0, l = aIds.length; i < l ; i += 1 ) + doc.getById( aIds[i] ).$.style.display = "none"; + } + function set_dic_name( dic_name ) + { + doc.getById('dic_name_' + editorName).$.value= dic_name; + } + + return dialogDefiniton; +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/scayt/dialogs/toolbar.css b/htdocs/includes/ckeditor/_source/plugins/scayt/dialogs/toolbar.css new file mode 100644 index 0000000000000000000000000000000000000000..ecabdac9d2d738c4b69bb33d10a95c6bd8ffc152 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/scayt/dialogs/toolbar.css @@ -0,0 +1,71 @@ +a +{ + text-decoration:none; + padding: 2px 4px 4px 6px; + display : block; + border-width: 1px; + border-style: solid; + margin : 0px; +} + +a.cke_scayt_toogle:hover, +a.cke_scayt_toogle:focus, +a.cke_scayt_toogle:active +{ + border-color: #316ac5; + background-color: #dff1ff; + color : #000; + cursor: pointer; + margin : 0px; +} +a.cke_scayt_toogle { + color : #316ac5; + border-color: #fff; +} +.scayt_enabled a.cke_scayt_item { + color : #316ac5; + border-color: #fff; + margin : 0px; +} +.scayt_disabled a.cke_scayt_item { + color : gray; + border-color : #fff; +} +.scayt_enabled a.cke_scayt_item:hover, +.scayt_enabled a.cke_scayt_item:focus, +.scayt_enabled a.cke_scayt_item:active +{ + border-color: #316ac5; + background-color: #dff1ff; + color : #000; + cursor: pointer; +} +.scayt_disabled a.cke_scayt_item:hover, +.scayt_disabled a.cke_scayt_item:focus, +.scayt_disabled a.cke_scayt_item:active +{ + border-color: gray; + background-color: #dff1ff; + color : gray; + cursor: no-drop; +} +.cke_scayt_set_on, .cke_scayt_set_off +{ + display: none; +} +.scayt_enabled .cke_scayt_set_on +{ + display: none; +} +.scayt_disabled .cke_scayt_set_on +{ + display: inline; +} +.scayt_disabled .cke_scayt_set_off +{ + display: none; +} +.scayt_enabled .cke_scayt_set_off +{ + display: inline; +} diff --git a/htdocs/includes/ckeditor/_source/plugins/scayt/plugin.js b/htdocs/includes/ckeditor/_source/plugins/scayt/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..336fb3ab7ed85bfe1af818992db70581290cff33 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/scayt/plugin.js @@ -0,0 +1,973 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Spell Check As You Type (SCAYT). + * Button name : Scayt. + */ + +(function() +{ + var commandName = 'scaytcheck', + openPage = ''; + + // Checks if a value exists in an array + function in_array( needle, haystack ) + { + var found = 0, + key; + for ( key in haystack ) + { + if ( haystack[ key ] == needle ) + { + found = 1; + break; + } + } + return found; + } + + var onEngineLoad = function() + { + var editor = this; + + var createInstance = function() // Create new instance every time Document is created. + { + var config = editor.config; + // Initialise Scayt instance. + var oParams = {}; + // Get the iframe. + oParams.srcNodeRef = editor.document.getWindow().$.frameElement; + // syntax : AppName.AppVersion@AppRevision + oParams.assocApp = 'CKEDITOR.' + CKEDITOR.version + '@' + CKEDITOR.revision; + oParams.customerid = config.scayt_customerid || '1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2'; + oParams.customDictionaryIds = config.scayt_customDictionaryIds || ''; + oParams.userDictionaryName = config.scayt_userDictionaryName || ''; + oParams.sLang = config.scayt_sLang || 'en_US'; + + // Introduce SCAYT onLoad callback. (#5632) + oParams.onLoad = function() + { + // Draw down word marker to avoid being covered by background-color style.(#5466) + if ( !( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) ) + this.addStyle( this.selectorCss(), 'padding-bottom: 2px !important;' ); + + // Call scayt_control.focus when SCAYT loaded + // and only if editor has focus and scayt control creates at first time (#5720) + if ( editor.focusManager.hasFocus && !plugin.isControlRestored( editor ) ) + this.focus(); + + }; + + oParams.onBeforeChange = function() + { + if ( plugin.getScayt( editor ) && !editor.checkDirty() ) + setTimeout( function(){ editor.resetDirty(); }, 0 ); + }; + + var scayt_custom_params = window.scayt_custom_params; + if ( typeof scayt_custom_params == 'object' ) + { + for ( var k in scayt_custom_params ) + oParams[ k ] = scayt_custom_params[ k ]; + } + // needs for restoring a specific scayt control settings + if ( plugin.getControlId( editor ) ) + oParams.id = plugin.getControlId( editor ); + + var scayt_control = new window.scayt( oParams ); + + scayt_control.afterMarkupRemove.push( function( node ) + { + ( new CKEDITOR.dom.element( node, scayt_control.document ) ).mergeSiblings(); + } ); + + // Copy config. + var lastInstance = plugin.instances[ editor.name ]; + if ( lastInstance ) + { + scayt_control.sLang = lastInstance.sLang; + scayt_control.option( lastInstance.option() ); + scayt_control.paused = lastInstance.paused; + } + + plugin.instances[ editor.name ] = scayt_control; + + try { + scayt_control.setDisabled( plugin.isPaused( editor ) === false ); + } catch (e) {} + + editor.fire( 'showScaytState' ); + }; + + editor.on( 'contentDom', createInstance ); + editor.on( 'contentDomUnload', function() + { + // Remove scripts. + var scripts = CKEDITOR.document.getElementsByTag( 'script' ), + scaytIdRegex = /^dojoIoScript(\d+)$/i, + scaytSrcRegex = /^https?:\/\/svc\.webspellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i; + + for ( var i=0; i < scripts.count(); i++ ) + { + var script = scripts.getItem( i ), + id = script.getId(), + src = script.getAttribute( 'src' ); + + if ( id && src && id.match( scaytIdRegex ) && src.match( scaytSrcRegex )) + script.remove(); + } + }); + + editor.on( 'beforeCommandExec', function( ev ) // Disable SCAYT before Source command execution. + { + if ( ( ev.data.name == 'source' || ev.data.name == 'newpage' ) && editor.mode == 'wysiwyg' ) + { + var scayt_instance = plugin.getScayt( editor ); + if ( scayt_instance ) + { + plugin.setPaused( editor, !scayt_instance.disabled ); + // store a control id for restore a specific scayt control settings + plugin.setControlId( editor, scayt_instance.id ); + scayt_instance.destroy( true ); + delete plugin.instances[ editor.name ]; + } + } + // Catch on source mode switch off (#5720) + else if ( ev.data.name == 'source' && editor.mode == 'source' ) + plugin.markControlRestore( editor ); + }); + + editor.on( 'afterCommandExec', function( ev ) + { + if ( !plugin.isScaytEnabled( editor ) ) + return; + + if ( editor.mode == 'wysiwyg' && ( ev.data.name == 'undo' || ev.data.name == 'redo' ) ) + window.setTimeout( function() { plugin.getScayt( editor ).refresh(); }, 10 ); + }); + + editor.on( 'destroy', function( ev ) + { + var editor = ev.editor, + scayt_instance = plugin.getScayt( editor ); + + // SCAYT instance might already get destroyed by mode switch (#5744). + if ( !scayt_instance ) + return; + + delete plugin.instances[ editor.name ]; + // store a control id for restore a specific scayt control settings + plugin.setControlId( editor, scayt_instance.id ); + scayt_instance.destroy( true ); + }); + + // Listen to data manipulation to reflect scayt markup. + editor.on( 'afterSetData', function() + { + if ( plugin.isScaytEnabled( editor ) ) { + window.setTimeout( function() + { + var instance = plugin.getScayt( editor ); + instance && instance.refresh(); + }, 10 ); + } + }); + + // Reload spell-checking for current word after insertion completed. + editor.on( 'insertElement', function() + { + var scayt_instance = plugin.getScayt( editor ); + if ( plugin.isScaytEnabled( editor ) ) + { + // Unlock the selection before reload, SCAYT will take + // care selection update. + if ( CKEDITOR.env.ie ) + editor.getSelection().unlock( true ); + + // Return focus to the editor and refresh SCAYT markup (#5573). + window.setTimeout( function() + { + scayt_instance.focus(); + scayt_instance.refresh(); + }, 10 ); + } + }, this, null, 50 ); + + editor.on( 'insertHtml', function() + { + var scayt_instance = plugin.getScayt( editor ); + if ( plugin.isScaytEnabled( editor ) ) + { + // Unlock the selection before reload, SCAYT will take + // care selection update. + if ( CKEDITOR.env.ie ) + editor.getSelection().unlock( true ); + + // Return focus to the editor (#5573) + // Refresh SCAYT markup + window.setTimeout( function() + { + scayt_instance.focus(); + scayt_instance.refresh(); + }, 10 ); + } + }, this, null, 50 ); + + editor.on( 'scaytDialog', function( ev ) // Communication with dialog. + { + ev.data.djConfig = window.djConfig; + ev.data.scayt_control = plugin.getScayt( editor ); + ev.data.tab = openPage; + ev.data.scayt = window.scayt; + }); + + var dataProcessor = editor.dataProcessor, + htmlFilter = dataProcessor && dataProcessor.htmlFilter; + + if ( htmlFilter ) + { + htmlFilter.addRules( + { + elements : + { + span : function( element ) + { + if ( element.attributes[ 'data-scayt_word' ] + && element.attributes[ 'data-scaytid' ] ) + { + delete element.name; // Write children, but don't write this node. + return element; + } + } + } + } + ); + } + + // Override Image.equals method avoid CK snapshot module to add SCAYT markup to snapshots. (#5546) + var undoImagePrototype = CKEDITOR.plugins.undo.Image.prototype; + undoImagePrototype.equals = CKEDITOR.tools.override( undoImagePrototype.equals, function( org ) + { + return function( otherImage ) + { + var thisContents = this.contents, + otherContents = otherImage.contents; + var scayt_instance = plugin.getScayt( this.editor ); + // Making the comparison based on content without SCAYT word markers. + if ( scayt_instance && plugin.isScaytReady( this.editor ) ) + { + // scayt::reset might return value undefined. (#5742) + this.contents = scayt_instance.reset( thisContents ) || ''; + otherImage.contents = scayt_instance.reset( otherContents ) || ''; + } + + var retval = org.apply( this, arguments ); + + this.contents = thisContents; + otherImage.contents = otherContents; + return retval; + }; + }); + + if ( editor.document ) + createInstance(); + }; + +CKEDITOR.plugins.scayt = + { + engineLoaded : false, + instances : {}, + // Data storage for SCAYT control, based on editor instances + controlInfo : {}, + setControlInfo : function( editor, o ) + { + if ( editor && editor.name && typeof ( this.controlInfo[ editor.name ] ) != 'object' ) + this.controlInfo[ editor.name ] = {}; + + for ( var infoOpt in o ) + this.controlInfo[ editor.name ][ infoOpt ] = o[ infoOpt ]; + }, + isControlRestored : function( editor ) + { + if ( editor && + editor.name && + this.controlInfo[ editor.name ] ) + { + return this.controlInfo[ editor.name ].restored ; + } + return false; + }, + markControlRestore : function( editor ) + { + this.setControlInfo( editor, { restored:true } ); + }, + setControlId: function( editor, id ) + { + this.setControlInfo( editor, { id:id } ); + }, + getControlId: function( editor ) + { + if ( editor && + editor.name && + this.controlInfo[ editor.name ] && + this.controlInfo[ editor.name ].id ) + { + return this.controlInfo[ editor.name ].id; + } + return null; + }, + setPaused: function( editor , bool ) + { + this.setControlInfo( editor, { paused:bool } ); + }, + isPaused: function( editor ) + { + if ( editor && + editor.name && + this.controlInfo[editor.name] ) + { + return this.controlInfo[editor.name].paused; + } + return undefined; + }, + getScayt : function( editor ) + { + return this.instances[ editor.name ]; + }, + isScaytReady : function( editor ) + { + return this.engineLoaded === true && + 'undefined' !== typeof window.scayt && this.getScayt( editor ); + }, + isScaytEnabled : function( editor ) + { + var scayt_instance = this.getScayt( editor ); + return ( scayt_instance ) ? scayt_instance.disabled === false : false; + }, + getUiTabs : function( editor ) + { + var uiTabs = []; + + // read UI tabs value from config + var configUiTabs = editor.config.scayt_uiTabs || "1,1,1"; + + // convert string to array + configUiTabs = configUiTabs.split( ',' ); + + // "About us" should be always shown for standard config + configUiTabs[3] = "1"; + + for ( var i = 0; i < 4; i++ ) { + uiTabs[i] = (typeof window.scayt != "undefined" && typeof window.scayt.uiTags != "undefined") + ? (parseInt(configUiTabs[i],10) && window.scayt.uiTags[i]) + : parseInt(configUiTabs[i],10); + } + return uiTabs; + }, + loadEngine : function( editor ) + { + // SCAYT doesn't work with Firefox2, Opera and AIR. + if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 || CKEDITOR.env.opera || CKEDITOR.env.air ) + return editor.fire( 'showScaytState' ); + + if ( this.engineLoaded === true ) + return onEngineLoad.apply( editor ); // Add new instance. + else if ( this.engineLoaded == -1 ) // We are waiting. + return CKEDITOR.on( 'scaytReady', function(){ onEngineLoad.apply( editor ); } ); // Use function(){} to avoid rejection as duplicate. + + CKEDITOR.on( 'scaytReady', onEngineLoad, editor ); + CKEDITOR.on( 'scaytReady', function() + { + this.engineLoaded = true; + }, + this, + null, + 0 + ); // First to run. + + this.engineLoaded = -1; // Loading in progress. + + // compose scayt url + var protocol = document.location.protocol; + // Default to 'http' for unknown. + protocol = protocol.search( /https?:/) != -1? protocol : 'http:'; + var baseUrl = 'svc.webspellchecker.net/scayt26/loader__base.js'; + + var scaytUrl = editor.config.scayt_srcUrl || ( protocol + '//' + baseUrl ); + var scaytConfigBaseUrl = plugin.parseUrl( scaytUrl ).path + '/'; + + if( window.scayt == undefined ) + { + CKEDITOR._djScaytConfig = + { + baseUrl: scaytConfigBaseUrl, + addOnLoad: + [ + function() + { + CKEDITOR.fireOnce( 'scaytReady' ); + } + ], + isDebug: false + }; + // Append javascript code. + CKEDITOR.document.getHead().append( + CKEDITOR.document.createElement( 'script', + { + attributes : + { + type : 'text/javascript', + async : 'true', + src : scaytUrl + } + }) + ); + } + else + CKEDITOR.fireOnce( 'scaytReady' ); + + return null; + }, + parseUrl : function ( data ) + { + var match; + if ( data.match && ( match = data.match(/(.*)[\/\\](.*?\.\w+)$/) ) ) + return { path: match[1], file: match[2] }; + else + return data; + } + }; + + var plugin = CKEDITOR.plugins.scayt; + + // Context menu constructing. + var addButtonCommand = function( editor, buttonName, buttonLabel, commandName, command, menugroup, menuOrder ) + { + editor.addCommand( commandName, command ); + + // If the "menu" plugin is loaded, register the menu item. + editor.addMenuItem( commandName, + { + label : buttonLabel, + command : commandName, + group : menugroup, + order : menuOrder + }); + }; + + var commandDefinition = + { + preserveState : true, + editorFocus : false, + canUndo : false, + + exec: function( editor ) + { + if ( plugin.isScaytReady( editor ) ) + { + var isEnabled = plugin.isScaytEnabled( editor ); + + this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON ); + + var scayt_control = plugin.getScayt( editor ); + // the place where the status of editor focus should be restored + // after there will be ability to store its state before SCAYT button click + // if (storedFocusState is focused ) + // scayt_control.focus(); + // + // now focus is set certainly + scayt_control.focus(); + scayt_control.setDisabled( isEnabled ); + } + else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time + { + this.setState( CKEDITOR.TRISTATE_DISABLED ); + plugin.loadEngine( editor ); + } + } + }; + + // Add scayt plugin. + CKEDITOR.plugins.add( 'scayt', + { + requires : [ 'menubutton' ], + + beforeInit : function( editor ) + { + var items_order = editor.config.scayt_contextMenuItemsOrder + || 'suggest|moresuggest|control', + items_order_str = ""; + + items_order = items_order.split( '|' ); + + if ( items_order && items_order.length ) + { + for ( var pos = 0 ; pos < items_order.length ; pos++ ) + items_order_str += 'scayt_' + items_order[ pos ] + ( items_order.length != parseInt( pos, 10 ) + 1 ? ',' : '' ); + } + + // Put it on top of all context menu items (#5717) + editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups; + }, + + init : function( editor ) + { + // Delete span[data-scaytid] when text pasting in editor (#6921) + var dataFilter = editor.dataProcessor && editor.dataProcessor.dataFilter; + var dataFilterRules = + { + elements : + { + span : function( element ) + { + var attrs = element.attributes; + if ( attrs && attrs[ 'data-scaytid' ] ) + delete element.name; + } + } + }; + dataFilter && dataFilter.addRules( dataFilterRules ); + + var moreSuggestions = {}, + mainSuggestions = {}; + + // Scayt command. + var command = editor.addCommand( commandName, commandDefinition ); + + // Add Options dialog. + CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/options.js' ) ); + + var uiTabs = plugin.getUiTabs( editor ); + + var menuGroup = 'scaytButton'; + editor.addMenuGroup( menuGroup ); + // combine menu items to render + var uiMenuItems = {}; + + var lang = editor.lang.scayt; + + // always added + uiMenuItems.scaytToggle = + { + label : lang.enable, + command : commandName, + group : menuGroup + }; + + if ( uiTabs[0] == 1 ) + uiMenuItems.scaytOptions = + { + label : lang.options, + group : menuGroup, + onClick : function() + { + openPage = 'options'; + editor.openDialog( commandName ); + } + }; + + if ( uiTabs[1] == 1 ) + uiMenuItems.scaytLangs = + { + label : lang.langs, + group : menuGroup, + onClick : function() + { + openPage = 'langs'; + editor.openDialog( commandName ); + } + }; + if ( uiTabs[2] == 1 ) + uiMenuItems.scaytDict = + { + label : lang.dictionariesTab, + group : menuGroup, + onClick : function() + { + openPage = 'dictionaries'; + editor.openDialog( commandName ); + } + }; + // always added + uiMenuItems.scaytAbout = + { + label : editor.lang.scayt.about, + group : menuGroup, + onClick : function() + { + openPage = 'about'; + editor.openDialog( commandName ); + } + }; + + editor.addMenuItems( uiMenuItems ); + + editor.ui.add( 'Scayt', CKEDITOR.UI_MENUBUTTON, + { + label : lang.title, + title : CKEDITOR.env.opera ? lang.opera_title : lang.title, + className : 'cke_button_scayt', + modes : { wysiwyg : 1 }, + onRender: function() + { + command.on( 'state', function() + { + this.setState( command.state ); + }, + this); + }, + onMenu : function() + { + var isEnabled = plugin.isScaytEnabled( editor ); + + editor.getMenuItem( 'scaytToggle' ).label = lang[ isEnabled ? 'disable' : 'enable' ]; + + var uiTabs = plugin.getUiTabs( editor ); + + return { + scaytToggle : CKEDITOR.TRISTATE_OFF, + scaytOptions : isEnabled && uiTabs[0] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + scaytLangs : isEnabled && uiTabs[1] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + scaytDict : isEnabled && uiTabs[2] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + scaytAbout : isEnabled && uiTabs[3] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED + }; + } + }); + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu && editor.addMenuItems ) + { + editor.contextMenu.addListener( function( element, selection ) + { + if ( !plugin.isScaytEnabled( editor ) + || selection.getRanges()[ 0 ].checkReadOnly() ) + return null; + + var scayt_control = plugin.getScayt( editor ), + node = scayt_control.getScaytNode(); + + if ( !node ) + return null; + + var word = scayt_control.getWord( node ); + + if ( !word ) + return null; + + var sLang = scayt_control.getLang(), + _r = {}, + items_suggestion = window.scayt.getSuggestion( word, sLang ); + if ( !items_suggestion || !items_suggestion.length ) + return null; + // Remove unused commands and menuitems + for ( var m in moreSuggestions ) + { + delete editor._.menuItems[ m ]; + delete editor._.commands[ m ]; + } + for ( m in mainSuggestions ) + { + delete editor._.menuItems[ m ]; + delete editor._.commands[ m ]; + } + moreSuggestions = {}; // Reset items. + mainSuggestions = {}; + + var moreSuggestionsUnable = editor.config.scayt_moreSuggestions || 'on'; + var moreSuggestionsUnableAdded = false; + + var maxSuggestions = editor.config.scayt_maxSuggestions; + ( typeof maxSuggestions != 'number' ) && ( maxSuggestions = 5 ); + !maxSuggestions && ( maxSuggestions = items_suggestion.length ); + + var contextCommands = editor.config.scayt_contextCommands || 'all'; + contextCommands = contextCommands.split( '|' ); + + for ( var i = 0, l = items_suggestion.length; i < l; i += 1 ) + { + var commandName = 'scayt_suggestion_' + items_suggestion[i].replace( ' ', '_' ); + var exec = ( function( el, s ) + { + return { + exec: function() + { + scayt_control.replace( el, s ); + } + }; + })( node, items_suggestion[i] ); + + if ( i < maxSuggestions ) + { + addButtonCommand( editor, 'button_' + commandName, items_suggestion[i], + commandName, exec, 'scayt_suggest', i + 1 ); + _r[ commandName ] = CKEDITOR.TRISTATE_OFF; + mainSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF; + } + else if ( moreSuggestionsUnable == 'on' ) + { + addButtonCommand( editor, 'button_' + commandName, items_suggestion[i], + commandName, exec, 'scayt_moresuggest', i + 1 ); + moreSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF; + moreSuggestionsUnableAdded = true; + } + } + + if ( moreSuggestionsUnableAdded ) + { + // Register the More suggestions group; + editor.addMenuItem( 'scayt_moresuggest', + { + label : lang.moreSuggestions, + group : 'scayt_moresuggest', + order : 10, + getItems : function() + { + return moreSuggestions; + } + }); + mainSuggestions[ 'scayt_moresuggest' ] = CKEDITOR.TRISTATE_OFF; + } + + if ( in_array( 'all', contextCommands ) || in_array( 'ignore', contextCommands) ) + { + var ignore_command = { + exec: function(){ + scayt_control.ignore( node ); + } + }; + addButtonCommand( editor, 'ignore', lang.ignore, 'scayt_ignore', ignore_command, 'scayt_control', 1 ); + mainSuggestions[ 'scayt_ignore' ] = CKEDITOR.TRISTATE_OFF; + } + + if ( in_array( 'all', contextCommands ) || in_array( 'ignoreall', contextCommands ) ) + { + var ignore_all_command = { + exec: function(){ + scayt_control.ignoreAll( node ); + } + }; + addButtonCommand(editor, 'ignore_all', lang.ignoreAll, 'scayt_ignore_all', ignore_all_command, 'scayt_control', 2); + mainSuggestions['scayt_ignore_all'] = CKEDITOR.TRISTATE_OFF; + } + + if ( in_array( 'all', contextCommands ) || in_array( 'add', contextCommands ) ) + { + var addword_command = { + exec: function(){ + window.scayt.addWordToUserDictionary( node ); + } + }; + addButtonCommand(editor, 'add_word', lang.addWord, 'scayt_add_word', addword_command, 'scayt_control', 3); + mainSuggestions['scayt_add_word'] = CKEDITOR.TRISTATE_OFF; + } + + if ( scayt_control.fireOnContextMenu ) + scayt_control.fireOnContextMenu( editor ); + + return mainSuggestions; + }); + } + + var showInitialState = function() + { + editor.removeListener( 'showScaytState', showInitialState ); + + if ( !CKEDITOR.env.opera && !CKEDITOR.env.air ) + command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); + else + command.setState( CKEDITOR.TRISTATE_DISABLED ); + }; + + editor.on( 'showScaytState', showInitialState ); + + if ( CKEDITOR.env.opera || CKEDITOR.env.air ) + { + editor.on( 'instanceReady', function() + { + showInitialState(); + }); + } + + // Start plugin + if ( editor.config.scayt_autoStartup ) + { + editor.on( 'instanceReady', function() + { + plugin.loadEngine( editor ); + }); + } + }, + + afterInit : function( editor ) + { + // Prevent word marker line from displaying in elements path and been removed when cleaning format. (#3570) (#4125) + var elementsPathFilters, + scaytFilter = function( element ) + { + if ( element.hasAttribute( 'data-scaytid' ) ) + return false; + }; + + if ( editor._.elementsPath && ( elementsPathFilters = editor._.elementsPath.filters ) ) + elementsPathFilters.push( scaytFilter ); + + editor.addRemoveFormatFilter && editor.addRemoveFormatFilter( scaytFilter ); + + } + }); +})(); + +/** + * If enabled (set to <code>true</code>), turns on SCAYT automatically + * after loading the editor. + * @name CKEDITOR.config.scayt_autoStartup + * @type Boolean + * @default <code>false</code> + * @example + * config.scayt_autoStartup = true; + */ + +/** + * Defines the number of SCAYT suggestions to show in the main context menu. + * Possible values are: + * <ul> + * <li><code>0</code> (zero) – All suggestions are displayed in the main context menu.</li> + * <li>Positive number – The maximum number of suggestions to show in the context + * menu. Other entries will be shown in the "More Suggestions" sub-menu.</li> + * <li>Negative number – No suggestions are shown in the main context menu. All + * entries will be listed in the the "Suggestions" sub-menu.</li> + * </ul> + * @name CKEDITOR.config.scayt_maxSuggestions + * @type Number + * @default <code>5</code> + * @example + * // Display only three suggestions in the main context menu. + * config.scayt_maxSuggestions = 3; + * @example + * // Do not show the suggestions directly. + * config.scayt_maxSuggestions = -1; + */ + +/** + * Sets the customer ID for SCAYT. Required for migration from free, + * ad-supported version to paid, ad-free version. + * @name CKEDITOR.config.scayt_customerid + * @type String + * @default <code>''</code> + * @example + * // Load SCAYT using my customer ID. + * config.scayt_customerid = 'your-encrypted-customer-id'; + */ + +/** + * Enables/disables the "More Suggestions" sub-menu in the context menu. + * Possible values are <code>on</code> and <code>off</code>. + * @name CKEDITOR.config.scayt_moreSuggestions + * @type String + * @default <code>'on'</code> + * @example + * // Disables the "More Suggestions" sub-menu. + * config.scayt_moreSuggestions = 'off'; + */ + +/** + * Customizes the display of SCAYT context menu commands ("Add Word", "Ignore" + * and "Ignore All"). This must be a string with one or more of the following + * words separated by a pipe character ("|"): + * <ul> + * <li><code>off</code> – disables all options.</li> + * <li><code>all</code> – enables all options.</li> + * <li><code>ignore</code> – enables the "Ignore" option.</li> + * <li><code>ignoreall</code> – enables the "Ignore All" option.</li> + * <li><code>add</code> – enables the "Add Word" option.</li> + * </ul> + * @name CKEDITOR.config.scayt_contextCommands + * @type String + * @default <code>'all'</code> + * @example + * // Show only "Add Word" and "Ignore All" in the context menu. + * config.scayt_contextCommands = 'add|ignoreall'; + */ + +/** + * Sets the default spell checking language for SCAYT. Possible values are: + * <code>en_US</code>, <code>en_GB</code>, <code>pt_BR</code>, <code>da_DK</code>, + * <code>nl_NL</code>, <code>en_CA</code>, <code>fi_FI</code>, <code>fr_FR</code>, + * <code>fr_CA</code>, <code>de_DE</code>, <code>el_GR</code>, <code>it_IT</code>, + * <code>nb_NO</code>, <code>pt_PT</code>, <code>es_ES</code>, <code>sv_SE</code>. + * @name CKEDITOR.config.scayt_sLang + * @type String + * @default <code>'en_US'</code> + * @example + * // Sets SCAYT to German. + * config.scayt_sLang = 'de_DE'; + */ + +/** + * Sets the visibility of particular tabs in the SCAYT dialog window and toolbar + * button. This setting must contain a <code>1</code> (enabled) or <code>0</code> + * (disabled) value for each of the following entries, in this precise order, + * separated by a comma (","): "Options", "Languages", and "Dictionary". + * @name CKEDITOR.config.scayt_uiTabs + * @type String + * @default <code>'1,1,1'</code> + * @example + * // Hides the "Languages" tab. + * config.scayt_uiTabs = '1,0,1'; + */ + + +/** + * Sets the URL to SCAYT core. Required to switch to the licensed version of SCAYT application. + * Further details available at + * <a href="http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck"> + * http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck</a>. + * @name CKEDITOR.config.scayt_srcUrl + * @type String + * @default <code>''</code> + * @example + * config.scayt_srcUrl = "http://my-host/spellcheck/lf/scayt/scayt.js"; + */ + +/** + * Links SCAYT to custom dictionaries. This is a string containing dictionary IDs + * separared by commas (","). Available only for the licensed version. + * Further details at + * <a href="http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed"> + * http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed</a>. + * @name CKEDITOR.config.scayt_customDictionaryIds + * @type String + * @default <code>''</code> + * @example + * config.scayt_customDictionaryIds = '3021,3456,3478"'; + */ + +/** + * Makes it possible to activate a custom dictionary in SCAYT. The user + * dictionary name must be used. Available only for the licensed version. + * @name CKEDITOR.config.scayt_userDictionaryName + * @type String + * @default <code>''</code> + * @example + * config.scayt_userDictionaryName = 'MyDictionary'; + */ + +/** + * Defines the order SCAYT context menu items by groups. + * This must be a string with one or more of the following + * words separated by a pipe character ("|"): + * <ul> + * <li><code>suggest</code> – main suggestion word list,</li> + * <li><code>moresuggest</code> – more suggestions word list,</li> + * <li><code>control</code> – SCAYT commands, such as "Ignore" and "Add Word".</li> + * </ul> + * + * @name CKEDITOR.config.scayt_contextMenuItemsOrder + * @type String + * @default <code>'suggest|moresuggest|control'</code> + * @example + * config.scayt_contextMenuItemsOrder = 'moresuggest|control|suggest'; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/selection/plugin.js b/htdocs/includes/ckeditor/_source/plugins/selection/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..3a0a181d2954b6a2d96b8c64f326da8480b884fd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/selection/plugin.js @@ -0,0 +1,1869 @@ +/* +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 isInlineCt( node ) + { + return node && node.type == CKEDITOR.NODE_ELEMENT + && node.getName() in CKEDITOR.dtd.$removeEmpty; + } + + function singletonBlock( node ) + { + var body = range.document.getBody(); + return !node.is( 'body' ) && body.getChildCount() == 1; + } + + var start = range.startContainer, + offset = range.startOffset; + + if ( start.type == CKEDITOR.NODE_TEXT ) + return false; + + // 1. Empty inline element. <span>^</span> + // 2. Adjoin to inline element. <p><strong>text</strong>^</p> + // 3. The only empty block in document. <body><p>^</p></body> (#7222) + return !CKEDITOR.tools.trim( start.getHtml() ) ? isInlineCt( start ) || singletonBlock( start ) + : isInlineCt( start.getChild( offset - 1 ) ) || isInlineCt( start.getChild( offset ) ); + } + + 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, + 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 focus the editor when + // clicking at the region below body (on html element) content, we emulate + // the normal behavior on old IEs. (#1659, #7932) + if ( ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) + && doc.$.compatMode != 'BackCompat' ) + { + 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( + textRng.compareEndPoints( 'StartToStart', rngEnd ) < 0 ? + 'EndToEnd' : + 'StartToStart', + rngEnd ); + + // Update selection with new range. + textRng.select(); + } + } + + evt = evt.data.$; + + // We're sure that the click happens at the region + // below body, but not on scrollbar. + if ( evt.y < html.$.clientHeight + && evt.y > body.$.offsetTop + body.$.clientHeight + && evt.x < html.$.clientWidth ) + { + // Start to build the text range. + var textRng = body.$.createTextRange(); + moveRangeToPoint( textRng, evt.x, evt.y ); + + html.on( 'mousemove', onHover ); + + html.on( 'mouseup', function( evt ) + { + html.removeListener( 'mousemove', onHover ); + evt.removeListener(); + + // Make it in effect on mouse up. (#9022) + textRng.select(); + } ); + } + }); + } + + // It's much simpler for IE8, we just need to reselect the reported range. + if ( CKEDITOR.env.ie8 ) + { + html.on( 'mouseup', function( evt ) + { + // 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. + if ( evt.data.getTarget().getName() == 'html' ) + { + 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; + } + + savedRange = nativeSel && sel.getRanges()[ 0 ]; + + 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 ) + { + 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, 10 ); + } + }); + + // 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(); + } + }; +})(); + +( function() +{ + var notWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), + 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></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( '' ); // 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 ] ); + }; +} )(); diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_address.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_address.png new file mode 100644 index 0000000000000000000000000000000000000000..1ee67aa245f0120d51f2f38edaee70f14b10570e Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_address.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_blockquote.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_blockquote.png new file mode 100644 index 0000000000000000000000000000000000000000..cae3aec621af5da1a22171d6c955a06d45e03344 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_blockquote.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_div.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_div.png new file mode 100644 index 0000000000000000000000000000000000000000..c71f397880c27eec92878c76a39ba29fdc8c79c0 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_div.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h1.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h1.png new file mode 100644 index 0000000000000000000000000000000000000000..3a64347350e5a48d2702f2fc4d436dfb5524b3a8 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h1.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h2.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h2.png new file mode 100644 index 0000000000000000000000000000000000000000..8062ebe8e4b80bfae9dba6f1cbc84b7c2b555976 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h2.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h3.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h3.png new file mode 100644 index 0000000000000000000000000000000000000000..5b6a4030284aace8cfa05e67b37966b86355b2aa Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h3.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h4.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h4.png new file mode 100644 index 0000000000000000000000000000000000000000..6c7f7951d492342590e22863facc85e94e0b79e1 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h4.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h5.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h5.png new file mode 100644 index 0000000000000000000000000000000000000000..e153de09988a289dff08d61d489c3c7338b593c9 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h5.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h6.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h6.png new file mode 100644 index 0000000000000000000000000000000000000000..c8d993a9d238e58a8116cc24120c3769f6e239fa Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_h6.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_p.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_p.png new file mode 100644 index 0000000000000000000000000000000000000000..4e6035d209b9821cb749ae4dfae48b560cd5e385 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_p.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_pre.png b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_pre.png new file mode 100644 index 0000000000000000000000000000000000000000..d11a0fffbe66e209b8db4b1ef18ce95960743114 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/showblocks/images/block_pre.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/showblocks/plugin.js b/htdocs/includes/ckeditor/_source/plugins/showblocks/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..de951246045b5c553b8aaf86b571427069c6ead6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/showblocks/plugin.js @@ -0,0 +1,160 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "showblocks" plugin. Enable it will make all block level + * elements being decorated with a border and the element name + * displayed on the left-right corner. + */ + +(function() +{ + var cssTemplate = '.%2 p,'+ + '.%2 div,'+ + '.%2 pre,'+ + '.%2 address,'+ + '.%2 blockquote,'+ + '.%2 h1,'+ + '.%2 h2,'+ + '.%2 h3,'+ + '.%2 h4,'+ + '.%2 h5,'+ + '.%2 h6'+ + '{'+ + 'background-repeat: no-repeat;'+ + 'background-position: top %3;'+ + 'border: 1px dotted gray;'+ + 'padding-top: 8px;'+ + 'padding-%3: 8px;'+ + '}'+ + + '.%2 p'+ + '{'+ + '%1p.png);'+ + '}'+ + + '.%2 div'+ + '{'+ + '%1div.png);'+ + '}'+ + + '.%2 pre'+ + '{'+ + '%1pre.png);'+ + '}'+ + + '.%2 address'+ + '{'+ + '%1address.png);'+ + '}'+ + + '.%2 blockquote'+ + '{'+ + '%1blockquote.png);'+ + '}'+ + + '.%2 h1'+ + '{'+ + '%1h1.png);'+ + '}'+ + + '.%2 h2'+ + '{'+ + '%1h2.png);'+ + '}'+ + + '.%2 h3'+ + '{'+ + '%1h3.png);'+ + '}'+ + + '.%2 h4'+ + '{'+ + '%1h4.png);'+ + '}'+ + + '.%2 h5'+ + '{'+ + '%1h5.png);'+ + '}'+ + + '.%2 h6'+ + '{'+ + '%1h6.png);'+ + '}'; + + var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g, backgroundPositionRegex = /%3/g; + + var commandDefinition = + { + readOnly : 1, + preserveState : true, + editorFocus : false, + + exec : function ( editor ) + { + this.toggleState(); + this.refresh( editor ); + }, + + refresh : function( editor ) + { + if ( editor.document ) + { + var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass'; + editor.document.getBody()[ funcName ]( 'cke_show_blocks' ); + } + } + }; + + CKEDITOR.plugins.add( 'showblocks', + { + requires : [ 'wysiwygarea' ], + + init : function( editor ) + { + var command = editor.addCommand( 'showblocks', commandDefinition ); + command.canUndo = false; + + if ( editor.config.startupOutlineBlocks ) + command.setState( CKEDITOR.TRISTATE_ON ); + + editor.addCss( cssTemplate + .replace( cssTemplateRegex, 'background-image: url(' + CKEDITOR.getUrl( this.path ) + 'images/block_' ) + .replace( cssClassRegex, 'cke_show_blocks ' ) + .replace( backgroundPositionRegex, editor.lang.dir == 'rtl' ? 'right' : 'left' ) ); + + editor.ui.addButton( 'ShowBlocks', + { + label : editor.lang.showBlocks, + command : 'showblocks' + }); + + // Refresh the command on setData. + editor.on( 'mode', function() + { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + }); + + // Refresh the command on setData. + editor.on( 'contentDom', function() + { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + }); + } + }); +} )(); + +/** + * Whether to automaticaly enable the "show block" command when the editor + * loads. (StartupShowBlocks in FCKeditor) + * @name CKEDITOR.config.startupOutlineBlocks + * @type Boolean + * @default false + * @example + * config.startupOutlineBlocks = true; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/showborders/plugin.js b/htdocs/includes/ckeditor/_source/plugins/showborders/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..846a12b6460866267279335a3fa51592d77efae3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/showborders/plugin.js @@ -0,0 +1,207 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "show border" plugin. The command display visible outline + * border line around all table elements if table doesn't have a none-zero 'border' attribute specified. + */ + +(function() +{ + var showBorderClassName = 'cke_show_border', + cssStyleText, + cssTemplate = + // TODO: For IE6, we don't have child selector support, + // where nested table cells could be incorrect. + ( CKEDITOR.env.ie6Compat ? + [ + '.%1 table.%2,', + '.%1 table.%2 td, .%1 table.%2 th', + '{', + 'border : #d3d3d3 1px dotted', + '}' + ] : + [ + '.%1 table.%2,', + '.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,', + '.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,', + '.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,', + '.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th', + '{', + 'border : #d3d3d3 1px dotted', + '}' + ] ).join( '' ); + + cssStyleText = cssTemplate.replace( /%2/g, showBorderClassName ).replace( /%1/g, 'cke_show_borders ' ); + + var commandDefinition = + { + preserveState : true, + editorFocus : false, + readOnly: 1, + + exec : function ( editor ) + { + this.toggleState(); + this.refresh( editor ); + }, + + refresh : function( editor ) + { + if ( editor.document ) + { + var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass'; + editor.document.getBody()[ funcName ]( 'cke_show_borders' ); + } + } + }; + + CKEDITOR.plugins.add( 'showborders', + { + requires : [ 'wysiwygarea' ], + modes : { 'wysiwyg' : 1 }, + + init : function( editor ) + { + + var command = editor.addCommand( 'showborders', commandDefinition ); + command.canUndo = false; + + if ( editor.config.startupShowBorders !== false ) + command.setState( CKEDITOR.TRISTATE_ON ); + + editor.addCss( cssStyleText ); + + // Refresh the command on setData. + editor.on( 'mode', function() + { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + }, null, null, 100 ); + + // Refresh the command on wysiwyg frame reloads. + editor.on( 'contentDom', function() + { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + }); + + editor.on( 'removeFormatCleanup', function( evt ) + { + var element = evt.data; + if ( editor.getCommand( 'showborders' ).state == CKEDITOR.TRISTATE_ON && + element.is( 'table' ) && ( !element.hasAttribute( 'border' ) || parseInt( element.getAttribute( 'border' ), 10 ) <= 0 ) ) + element.addClass( showBorderClassName ); + }); + }, + + afterInit : function( editor ) + { + var dataProcessor = editor.dataProcessor, + dataFilter = dataProcessor && dataProcessor.dataFilter, + htmlFilter = dataProcessor && dataProcessor.htmlFilter; + + if ( dataFilter ) + { + dataFilter.addRules( + { + elements : + { + 'table' : function( element ) + { + var attributes = element.attributes, + cssClass = attributes[ 'class' ], + border = parseInt( attributes.border, 10 ); + + if ( ( !border || border <= 0 ) && ( !cssClass || cssClass.indexOf( showBorderClassName ) == -1 ) ) + attributes[ 'class' ] = ( cssClass || '' ) + ' ' + showBorderClassName; + } + } + } ); + } + + if ( htmlFilter ) + { + htmlFilter.addRules( + { + elements : + { + 'table' : function( table ) + { + var attributes = table.attributes, + cssClass = attributes[ 'class' ]; + + cssClass && ( attributes[ 'class' ] = + cssClass.replace( showBorderClassName, '' ) + .replace( /\s{2}/, ' ' ) + .replace( /^\s+|\s+$/, '' ) ); + } + } + } ); + } + } + }); + + // Table dialog must be aware of it. + CKEDITOR.on( 'dialogDefinition', function( ev ) + { + var dialogName = ev.data.name; + + if ( dialogName == 'table' || dialogName == 'tableProperties' ) + { + var dialogDefinition = ev.data.definition, + infoTab = dialogDefinition.getContents( 'info' ), + borderField = infoTab.get( 'txtBorder' ), + originalCommit = borderField.commit; + + borderField.commit = CKEDITOR.tools.override( originalCommit, function( org ) + { + return function( data, selectedTable ) + { + org.apply( this, arguments ); + var value = parseInt( this.getValue(), 10 ); + selectedTable[ ( !value || value <= 0 ) ? 'addClass' : 'removeClass' ]( showBorderClassName ); + }; + } ); + + var advTab = dialogDefinition.getContents( 'advanced' ), + classField = advTab && advTab.get( 'advCSSClasses' ); + + if ( classField ) + { + classField.setup = CKEDITOR.tools.override( classField.setup, function( originalSetup ) + { + return function() + { + originalSetup.apply( this, arguments ); + this.setValue( this.getValue().replace( /cke_show_border/, '' ) ); + }; + }); + + classField.commit = CKEDITOR.tools.override( classField.commit, function( originalCommit ) + { + return function( data, element ) + { + originalCommit.apply( this, arguments ); + + if ( !parseInt( element.getAttribute( 'border' ), 10 ) ) + element.addClass( 'cke_show_border' ); + }; + }); + } + } + }); + +} )(); + +/** + * Whether to automatically enable the "show borders" command when the editor loads. + * (ShowBorders in FCKeditor) + * @name CKEDITOR.config.startupShowBorders + * @type Boolean + * @default true + * @example + * config.startupShowBorders = false; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/dialogs/smiley.js b/htdocs/includes/ckeditor/_source/plugins/smiley/dialogs/smiley.js new file mode 100644 index 0000000000000000000000000000000000000000..eec2732f021b787f4a549354a5ea685f86b37205 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/smiley/dialogs/smiley.js @@ -0,0 +1,224 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'smiley', function( editor ) +{ + var config = editor.config, + lang = editor.lang.smiley, + images = config.smiley_images, + columns = config.smiley_columns || 8, + i; + + /** + * Simulate "this" of a dialog for non-dialog events. + * @type {CKEDITOR.dialog} + */ + var dialog; + var onClick = function( evt ) + { + var target = evt.data.getTarget(), + targetName = target.getName(); + + if ( targetName == 'a' ) + target = target.getChild( 0 ); + else if ( targetName != 'img' ) + return; + + var src = target.getAttribute( 'cke_src' ), + title = target.getAttribute( 'title' ); + + var img = editor.document.createElement( 'img', + { + attributes : + { + src : src, + 'data-cke-saved-src' : src, + title : title, + alt : title, + width : target.$.width, + height : target.$.height + } + }); + + editor.insertElement( img ); + + dialog.hide(); + evt.data.preventDefault(); + }; + + var onKeydown = CKEDITOR.tools.addFunction( function( ev, element ) + { + ev = new CKEDITOR.dom.event( ev ); + element = new CKEDITOR.dom.element( element ); + 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(); + } + 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.focus(); + } + ev.preventDefault(); + break; + // ENTER + // SPACE + case 32 : + onClick( { data: ev } ); + ev.preventDefault(); + break; + + // RIGHT-ARROW + case rtl ? 37 : 39 : + // TAB + case 9 : + // relative is TD + if ( ( relative = element.getParent().getNext() ) ) + { + nodeToMove = relative.getChild( 0 ); + nodeToMove.focus(); + ev.preventDefault(true); + } + // relative is TR + else if ( ( relative = element.getParent().getParent().getNext() ) ) + { + nodeToMove = relative.getChild( [0, 0] ); + if ( nodeToMove ) + nodeToMove.focus(); + ev.preventDefault(true); + } + break; + + // LEFT-ARROW + case rtl ? 39 : 37 : + // SHIFT + TAB + case CKEDITOR.SHIFT + 9 : + // relative is TD + if ( ( relative = element.getParent().getPrevious() ) ) + { + nodeToMove = relative.getChild( 0 ); + nodeToMove.focus(); + ev.preventDefault(true); + } + // relative is TR + else if ( ( relative = element.getParent().getParent().getPrevious() ) ) + { + nodeToMove = relative.getLast().getChild( 0 ); + nodeToMove.focus(); + ev.preventDefault(true); + } + break; + default : + // Do not stop not handled events. + return; + } + }); + + // Build the HTML for the smiley images table. + var labelId = CKEDITOR.tools.getNextId() + '_smiley_emtions_label'; + var html = + [ + '<div>' + + '<span id="' + labelId + '" class="cke_voice_label">' + lang.options +'</span>', + '<table role="listbox" aria-labelledby="' + labelId + '" style="width:100%;height:100%" cellspacing="2" cellpadding="2"', + CKEDITOR.env.ie && CKEDITOR.env.quirks ? ' style="position:absolute;"' : '', + '><tbody>' + ]; + + var size = images.length; + for ( i = 0 ; i < size ; i++ ) + { + if ( i % columns === 0 ) + html.push( '<tr>' ); + + var smileyLabelId = 'cke_smile_label_' + i + '_' + CKEDITOR.tools.getNextNumber(); + html.push( + '<td class="cke_dark_background cke_centered" style="vertical-align: middle;">' + + '<a href="javascript:void(0)" role="option"', + ' aria-posinset="' + ( i +1 ) + '"', + ' aria-setsize="' + size + '"', + ' aria-labelledby="' + smileyLabelId + '"', + ' class="cke_smile cke_hand" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ', onKeydown, ', event, this );">', + '<img class="cke_hand" title="', config.smiley_descriptions[i], '"' + + ' cke_src="', CKEDITOR.tools.htmlEncode( config.smiley_path + images[ i ] ), '" alt="', config.smiley_descriptions[i], '"', + ' src="', CKEDITOR.tools.htmlEncode( config.smiley_path + images[ i ] ), '"', + // IE BUG: Below is a workaround to an IE image loading bug to ensure the image sizes are correct. + ( CKEDITOR.env.ie ? ' onload="this.setAttribute(\'width\', 2); this.removeAttribute(\'width\');" ' : '' ), + '>' + + '<span id="' + smileyLabelId + '" class="cke_voice_label">' +config.smiley_descriptions[ i ] + '</span>' + + '</a>', + '</td>' ); + + if ( i % columns == columns - 1 ) + html.push( '</tr>' ); + } + + if ( i < columns - 1 ) + { + for ( ; i < columns - 1 ; i++ ) + html.push( '<td></td>' ); + html.push( '</tr>' ); + } + + html.push( '</tbody></table></div>' ); + + var smileySelector = + { + type : 'html', + id : 'smileySelector', + html : html.join( '' ), + onLoad : function( event ) + { + dialog = event.sender; + }, + focus : function() + { + var self = this; + // IE need a while to move the focus (#6539). + setTimeout( function () + { + var firstSmile = self.getElement().getElementsByTag( 'a' ).getItem( 0 ); + firstSmile.focus(); + }, 0 ); + }, + onClick : onClick, + style : 'width: 100%; border-collapse: separate;' + }; + + return { + title : editor.lang.smiley.title, + minWidth : 270, + minHeight : 120, + contents : [ + { + id : 'tab1', + label : '', + title : '', + expand : true, + padding : 0, + elements : [ + smileySelector + ] + } + ], + buttons : [ CKEDITOR.dialog.cancelButton ] + }; +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/angel_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/angel_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..2cf4894758f019612996cb5bd2a716e2a81ec1fc Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/angel_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/angry_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/angry_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..40b52d3a77882c88197787fadaa201826fb95c1f Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/angry_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/broken_heart.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/broken_heart.gif new file mode 100644 index 0000000000000000000000000000000000000000..b6d0166a47735697f12678ffb1a08a1a7200968b Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/broken_heart.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/confused_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/confused_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..a52db7a4e5c61690dfd5e8485ef9eb0af1d69a68 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/confused_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/cry_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/cry_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..1ef6ba4fb5c4b06e3a9162a55c92623f547e8a09 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/cry_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/devil_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/devil_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..bfb25077de87204f3edacb9c492a329c80c9b5b5 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/devil_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..d9cedc56bdb0cdd234679cceabafc9256bc2852c Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/envelope.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/envelope.gif new file mode 100644 index 0000000000000000000000000000000000000000..94e0b1fa59d04474bad8443fdc072c41f1fc905e Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/envelope.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/heart.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/heart.gif new file mode 100644 index 0000000000000000000000000000000000000000..680ae2fc1c73a1ede67a748912235a0026279ddd Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/heart.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/kiss.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/kiss.gif new file mode 100644 index 0000000000000000000000000000000000000000..70e52551417b6d1c551a5217f837e71674118695 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/kiss.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/lightbulb.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/lightbulb.gif new file mode 100644 index 0000000000000000000000000000000000000000..d44c2ffe6a0ac0f4fdb9bd8bb2921d931ed6b8e9 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/lightbulb.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/omg_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/omg_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..ab7ea69968a82a3fc73b0a6b513928a244e3282d Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/omg_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/regular_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/regular_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..e5bc34be362f6774593dda685a0e6b6ddd963dfd Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/regular_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/sad_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/sad_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..ae4cf1e35ba6d509111883da5ecabe3e4b0a4e7a Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/sad_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/shades_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/shades_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..b4540175035281da7afa2b185641392121bde669 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/shades_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/teeth_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/teeth_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..7d734d15486da5ebf1286f634eac6773e7e6e297 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/teeth_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/thumbs_down.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/thumbs_down.gif new file mode 100644 index 0000000000000000000000000000000000000000..90b9978c094ab81dccd07022255ff4fd31c35f96 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/thumbs_down.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/thumbs_up.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/thumbs_up.gif new file mode 100644 index 0000000000000000000000000000000000000000..b6332848df0540a77f8c192a6174186e94f0a258 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/thumbs_up.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/tounge_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/tounge_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..b2e657fa323f04ac09ecbe2900ad1351c1e2367f Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/tounge_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..77098821c622975362f3afbc4e83a515f88dc814 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/images/wink_smile.gif b/htdocs/includes/ckeditor/_source/plugins/smiley/images/wink_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..b21029548f7d4b48f9a0237e7e89a075750a4abf Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/smiley/images/wink_smile.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/smiley/plugin.js b/htdocs/includes/ckeditor/_source/plugins/smiley/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..9156be8400351a92352ab469da1f9932f706ca0c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/smiley/plugin.js @@ -0,0 +1,94 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'smiley', +{ + requires : [ 'dialog' ], + + init : function( editor ) + { + editor.config.smiley_path = editor.config.smiley_path || ( this.path + 'images/' ); + editor.addCommand( 'smiley', new CKEDITOR.dialogCommand( 'smiley' ) ); + editor.ui.addButton( 'Smiley', + { + label : editor.lang.smiley.toolbar, + command : 'smiley' + }); + CKEDITOR.dialog.add( 'smiley', this.path + 'dialogs/smiley.js' ); + } +} ); + +/** + * The base path used to build the URL for the smiley images. It must end with + * a slash. + * @name CKEDITOR.config.smiley_path + * @type String + * @default <code><em>CKEDITOR.basePath</em> + 'plugins/smiley/images/'</code> + * @example + * config.smiley_path = 'http://www.example.com/images/smileys/'; + * @example + * config.smiley_path = '/images/smileys/'; + */ + +/** + * The file names for the smileys to be displayed. These files must be + * contained inside the URL path defined with the + * {@link CKEDITOR.config.smiley_path} setting. + * @type Array + * @default (see example) + * @example + * // This is actually the default value. + * config.smiley_images = [ + * 'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif', + * 'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif', + * 'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif', + * 'broken_heart.gif','kiss.gif','envelope.gif']; + */ +CKEDITOR.config.smiley_images = [ + 'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif', + 'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif', + 'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif', + 'broken_heart.gif','kiss.gif','envelope.gif']; + +/** + * The description to be used for each of the smileys defined in the + * {@link CKEDITOR.config.smiley_images} setting. Each entry in this array list + * must match its relative pair in the {@link CKEDITOR.config.smiley_images} + * setting. + * @type Array + * @default The textual descriptions of smiley. + * @example + * // Default settings. + * config.smiley_descriptions = + * [ + * 'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise', + * 'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no', + * 'yes', 'heart', 'broken heart', 'kiss', 'mail' + * ]; + * @example + * // Use textual emoticons as description. + * config.smiley_descriptions = + * [ + * ':)', ':(', ';)', ':D', ':/', ':P', ':*)', ':-o', + * ':|', '>:(', 'o:)', '8-)', '>:-)', ';(', '', '', '', + * '', '', ':-*', '' + * ]; + */ +CKEDITOR.config.smiley_descriptions = + [ + 'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise', + 'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no', + 'yes', 'heart', 'broken heart', 'kiss', 'mail' + ]; + +/** + * The number of columns to be generated by the smilies matrix. + * @name CKEDITOR.config.smiley_columns + * @type Number + * @default 8 + * @since 3.3.2 + * @example + * config.smiley_columns = 6; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/sourcearea/plugin.js b/htdocs/includes/ckeditor/_source/plugins/sourcearea/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..91430fe4724a8017c7d73a0482aa04a948e098c6 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/sourcearea/plugin.js @@ -0,0 +1,209 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "sourcearea" plugin. It registers the "source" editing + * mode, which displays the raw data being edited in the editor. + */ + +CKEDITOR.plugins.add( 'sourcearea', +{ + requires : [ 'editingblock' ], + + init : function( editor ) + { + var sourcearea = CKEDITOR.plugins.sourcearea, + win = CKEDITOR.document.getWindow(); + + editor.on( 'editingBlockReady', function() + { + var textarea, + onResize; + + editor.addMode( 'source', + { + load : function( holderElement, data ) + { + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) + holderElement.setStyle( 'position', 'relative' ); + + // Create the source area <textarea>. + editor.textarea = textarea = new CKEDITOR.dom.element( 'textarea' ); + textarea.setAttributes( + { + dir : 'ltr', + tabIndex : CKEDITOR.env.webkit ? -1 : editor.tabIndex, + 'role' : 'textbox', + 'aria-label' : editor.lang.editorTitle.replace( '%1', editor.name ) + }); + textarea.addClass( 'cke_source' ); + textarea.addClass( 'cke_enable_context_menu' ); + + editor.readOnly && textarea.setAttribute( 'readOnly', 'readonly' ); + + var styles = + { + // IE7 has overflow the <textarea> from wrapping table cell. + width : CKEDITOR.env.ie7Compat ? '99%' : '100%', + height : '100%', + resize : 'none', + outline : 'none', + 'text-align' : 'left' + }; + + // Having to make <textarea> fixed sized to conque the following bugs: + // 1. The textarea height/width='100%' doesn't constraint to the 'td' in IE6/7. + // 2. Unexpected vertical-scrolling behavior happens whenever focus is moving out of editor + // if text content within it has overflowed. (#4762) + if ( CKEDITOR.env.ie ) + { + onResize = function() + { + // Holder rectange size is stretched by textarea, + // so hide it just for a moment. + textarea.hide(); + textarea.setStyle( 'height', holderElement.$.clientHeight + 'px' ); + textarea.setStyle( 'width', holderElement.$.clientWidth + 'px' ); + // When we have proper holder size, show textarea again. + textarea.show(); + }; + + editor.on( 'resize', onResize ); + win.on( 'resize', onResize ); + setTimeout( onResize, 0 ); + } + + // Reset the holder element and append the + // <textarea> to it. + holderElement.setHtml( '' ); + holderElement.append( textarea ); + textarea.setStyles( styles ); + + editor.fire( 'ariaWidget', textarea ); + + textarea.on( 'blur', function() + { + editor.focusManager.blur(); + }); + + textarea.on( 'focus', function() + { + editor.focusManager.focus(); + }); + + // The editor data "may be dirty" after this point. + editor.mayBeDirty = true; + + // Set the <textarea> value. + this.loadData( data ); + + var keystrokeHandler = editor.keystrokeHandler; + if ( keystrokeHandler ) + keystrokeHandler.attach( textarea ); + + setTimeout( function() + { + editor.mode = 'source'; + editor.fire( 'mode', { previousMode : editor._.previousMode } ); + }, + ( CKEDITOR.env.gecko || CKEDITOR.env.webkit ) ? 100 : 0 ); + }, + + loadData : function( data ) + { + textarea.setValue( data ); + editor.fire( 'dataReady' ); + }, + + getData : function() + { + return textarea.getValue(); + }, + + getSnapshotData : function() + { + return textarea.getValue(); + }, + + unload : function( holderElement ) + { + textarea.clearCustomData(); + editor.textarea = textarea = null; + + if ( onResize ) + { + editor.removeListener( 'resize', onResize ); + win.removeListener( 'resize', onResize ); + } + + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) + holderElement.removeStyle( 'position' ); + }, + + focus : function() + { + textarea.focus(); + } + }); + }); + + editor.on( 'readOnly', function() + { + if ( editor.mode == 'source' ) + { + if ( editor.readOnly ) + editor.textarea.setAttribute( 'readOnly', 'readonly' ); + else + editor.textarea.removeAttribute( 'readOnly' ); + } + }); + + editor.addCommand( 'source', sourcearea.commands.source ); + + if ( editor.ui.addButton ) + { + editor.ui.addButton( 'Source', + { + label : editor.lang.source, + command : 'source' + }); + } + + editor.on( 'mode', function() + { + editor.getCommand( 'source' ).setState( + editor.mode == 'source' ? + CKEDITOR.TRISTATE_ON : + CKEDITOR.TRISTATE_OFF ); + }); + } +}); + +/** + * Holds the definition of commands an UI elements included with the sourcearea + * plugin. + * @example + */ +CKEDITOR.plugins.sourcearea = +{ + commands : + { + source : + { + modes : { wysiwyg:1, source:1 }, + editorFocus : false, + readOnly : 1, + exec : function( editor ) + { + if ( editor.mode == 'wysiwyg' ) + editor.fire( 'saveSnapshot' ); + editor.getCommand( 'source' ).setState( CKEDITOR.TRISTATE_DISABLED ); + editor.setMode( editor.mode == 'source' ? 'wysiwyg' : 'source' ); + }, + + canUndo : false + } + } +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js new file mode 100644 index 0000000000000000000000000000000000000000..ff2fded93d43bac30a6fa9469b45b168d554197f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js @@ -0,0 +1,350 @@ +/* +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( ' ' ); + dialog.getContentElement( 'info', 'htmlPreview' ).getElement().setHtml( ' ' ); + 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 : + // TAB + case 9 : + // 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 : + // SHIFT + TAB + case CKEDITOR.SHIFT + 9 : + // 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>' ) ; + + 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"> ' ); + + 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> </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> </div>' + } + ] + } + ] + } + ] + } + ] + } + ] + }; +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/_translationstatus.txt b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/_translationstatus.txt new file mode 100644 index 0000000000000000000000000000000000000000..82369b2e699da73cb968f88494dc09e281ce1a02 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/_translationstatus.txt @@ -0,0 +1,22 @@ +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license + +cs.js Found: 118 Missing: 0 +cy.js Found: 118 Missing: 0 +de.js Found: 118 Missing: 0 +el.js Found: 16 Missing: 102 +eo.js Found: 118 Missing: 0 +et.js Found: 31 Missing: 87 +fa.js Found: 24 Missing: 94 +fi.js Found: 23 Missing: 95 +fr.js Found: 118 Missing: 0 +he.js Found: 1 Missing: 117 +hr.js Found: 23 Missing: 95 +it.js Found: 118 Missing: 0 +nb.js Found: 118 Missing: 0 +nl.js Found: 118 Missing: 0 +no.js Found: 118 Missing: 0 +pt-br.js Found: 118 Missing: 0 +tr.js Found: 118 Missing: 0 +ug.js Found: 39 Missing: 79 +zh-cn.js Found: 118 Missing: 0 diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/cs.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/cs.js new file mode 100644 index 0000000000000000000000000000000000000000..9e30089e9d8b035e7ab010fca4e664e7dd4464e3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/cs.js @@ -0,0 +1,126 @@ +/* +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á' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/cy.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/cy.js new file mode 100644 index 0000000000000000000000000000000000000000..df549f8c8d403e78526f8132a8251d54d23aa06f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/cy.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/de.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/de.js new file mode 100644 index 0000000000000000000000000000000000000000..01c88cf35b91cb79cc9b3aad397d266d40340491 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/de.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/el.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/el.js new file mode 100644 index 0000000000000000000000000000000000000000..59f35994aa9ed8d50e0f21ac4848f9fdc2352f09 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/el.js @@ -0,0 +1,126 @@ +/* +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 +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/en.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/en.js new file mode 100644 index 0000000000000000000000000000000000000000..97e2ad543951c75100fb79132a8f7870d06248c1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/en.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/eo.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..1ea237170fd896b9f0af7643a6694e78bdb93bdc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/eo.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/et.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/et.js new file mode 100644 index 0000000000000000000000000000000000000000..833852f083ee51d1cf431a5fda36517ed88e9cbf --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/et.js @@ -0,0 +1,126 @@ +/* +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 +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fa.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fa.js new file mode 100644 index 0000000000000000000000000000000000000000..a97a23e3926a65c070a3bf0406cb3561b11b53f4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fa.js @@ -0,0 +1,126 @@ +/* +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: 'تقریبا برابر با' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fi.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..cbf23a76e88578ff32f44ade5dad488d90b47bf9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fi.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fr.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..c22adf7549ff2b553f7f22ecbed58722f3ccb751 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/fr.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/he.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/he.js new file mode 100644 index 0000000000000000000000000000000000000000..0f106ba60989bd7a73127b708b6d7a04c57d6485 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/he.js @@ -0,0 +1,126 @@ +/* +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 +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/hr.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/hr.js new file mode 100644 index 0000000000000000000000000000000000000000..545713902565d3a8cffd9cc25d3a232b54757919 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/hr.js @@ -0,0 +1,126 @@ +/* +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 +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/it.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/it.js new file mode 100644 index 0000000000000000000000000000000000000000..3ac66e2a988a0b0b81a604a9ca59981bb913c3b1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/it.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/nb.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..6690663c5673a58598b2091626f4dca0fd4e0588 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/nb.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/nl.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..b986328112ebb5faa36742275d1d76d2a03f3738 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/nl.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/no.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/no.js new file mode 100644 index 0000000000000000000000000000000000000000..f732e6da10abdb22e7201fd7114f8b9a4efddbd1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/no.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/pt-br.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/pt-br.js new file mode 100644 index 0000000000000000000000000000000000000000..673101c631c514aacaa299ed33b5c191acfe2700 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/pt-br.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/tr.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..b5615ec2adf93e6da9bbe3703b21a745f5f4d44d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/tr.js @@ -0,0 +1,126 @@ +/* +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' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/ug.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/ug.js new file mode 100644 index 0000000000000000000000000000000000000000..4d53f548467a0f92f3d074e6f22d879bfc5f210d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/ug.js @@ -0,0 +1,126 @@ +/* +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: 'تەخمىنەن تەڭ' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/zh-cn.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/zh-cn.js new file mode 100644 index 0000000000000000000000000000000000000000..293d4613cd9ab6ff98501f430e412aefbd9bfe80 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/lang/zh-cn.js @@ -0,0 +1,126 @@ +/* +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: '约等于' +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/specialchar/plugin.js b/htdocs/includes/ckeditor/_source/plugins/specialchar/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..ba862b899e117f7c299471355b77f67f3d1be7c9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/specialchar/plugin.js @@ -0,0 +1,72 @@ +/* +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 = [ '"', '’', [ '&custom;', 'Custom label' ] ]; + * config.specialChars = config.specialChars.concat( [ '"', [ '’', 'Custom label' ] ] ); + */ +CKEDITOR.config.specialChars = + [ + '!','"','#','$','%','&',"'",'(',')','*','+','-','.','/', + '0','1','2','3','4','5','6','7','8','9',':',';', + '<','=','>','?','@', + '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', + '{','|','}','~', + "€", "‘", "’", "“", "”", "–", "—", "¡", "¢", "£", "¤", "¥", "¦", "§", "¨", "©", "ª", "«", "¬", "®", "¯", "°", "²", "³", "´", "µ", "¶", "·", "¸", "¹", "º", "»", "¼", "½", "¾", "¿", "À", "Á", "Â", "Ã", "Ä", "Å", "Æ", "Ç", "È", "É", "Ê", "Ë", "Ì", "Í", "Î", "Ï", "Ð", "Ñ", "Ò", "Ó", "Ô", "Õ", "Ö", "×", "Ø", "Ù", "Ú", "Û", "Ü", "Ý", "Þ", "ß", "à", "á", "â", "ã", "ä", "å", "æ", "ç", "è", "é", "ê", "ë", "ì", "í", "î", "ï", "ð", "ñ", "ò", "ó", "ô", "õ", "ö", "÷", "ø", "ù", "ú", "û", "ü", "ý", "þ", "ÿ", "Œ", "œ", "Ŵ", "Ŷ", "ŵ", "ŷ", "‚", "‛", "„", "…", "™", "►", "•", "→", "⇒", "⇔", "♦", "≈" + ]; diff --git a/htdocs/includes/ckeditor/_source/plugins/styles/plugin.js b/htdocs/includes/ckeditor/_source/plugins/styles/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..26519c6bbc3b913b517b2da7173a600ada590256 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/styles/plugin.js @@ -0,0 +1,1718 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'styles', +{ + requires : [ 'selection' ], + init : function( editor ) + { + // This doesn't look like correct, but it's the safest way to proper + // pass the disableReadonlyStyling configuration to the style system + // without having to change any method signature in the API. (#6103) + editor.on( 'contentDom', function() + { + editor.document.setCustomData( 'cke_includeReadonly', !editor.config.disableReadonlyStyling ); + }); + } +}); + +/** + * Registers a function to be called whenever the selection position changes in the + * editing area. The current state is passed to the function. The possible + * states are {@link CKEDITOR.TRISTATE_ON} and {@link CKEDITOR.TRISTATE_OFF}. + * @param {CKEDITOR.style} style The style to be watched. + * @param {Function} callback The function to be called. + * @example + * // Create a style object for the <b> element. + * var style = new CKEDITOR.style( { element : 'b' } ); + * var editor = CKEDITOR.instances.editor1; + * editor.attachStyleStateChange( style, function( state ) + * { + * if ( state == CKEDITOR.TRISTATE_ON ) + * alert( 'The current state for the B element is ON' ); + * else + * alert( 'The current state for the B element is OFF' ); + * }); + */ +CKEDITOR.editor.prototype.attachStyleStateChange = function( style, callback ) +{ + // Try to get the list of attached callbacks. + var styleStateChangeCallbacks = this._.styleStateChangeCallbacks; + + // If it doesn't exist, it means this is the first call. So, let's create + // all the structure to manage the style checks and the callback calls. + if ( !styleStateChangeCallbacks ) + { + // Create the callbacks array. + styleStateChangeCallbacks = this._.styleStateChangeCallbacks = []; + + // Attach to the selectionChange event, so we can check the styles at + // that point. + this.on( 'selectionChange', function( ev ) + { + // Loop throw all registered callbacks. + for ( var i = 0 ; i < styleStateChangeCallbacks.length ; i++ ) + { + var callback = styleStateChangeCallbacks[ i ]; + + // Check the current state for the style defined for that + // callback. + var currentState = callback.style.checkActive( ev.data.path ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF; + + // Call the callback function, passing the current + // state to it. + callback.fn.call( this, currentState ); + } + }); + } + + // Save the callback info, so it can be checked on the next occurrence of + // selectionChange. + styleStateChangeCallbacks.push( { style : style, fn : callback } ); +}; + +CKEDITOR.STYLE_BLOCK = 1; +CKEDITOR.STYLE_INLINE = 2; +CKEDITOR.STYLE_OBJECT = 3; + +(function() +{ + var blockElements = { address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1 }, + objectElements = { a:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1 }; + + var semicolonFixRegex = /\s*(?:;\s*|$)/, + varRegex = /#\((.+?)\)/g; + + var notBookmark = CKEDITOR.dom.walker.bookmark( 0, 1 ), + nonWhitespaces = CKEDITOR.dom.walker.whitespaces( 1 ); + + CKEDITOR.style = function( styleDefinition, variablesValues ) + { + if ( variablesValues ) + { + styleDefinition = CKEDITOR.tools.clone( styleDefinition ); + + replaceVariables( styleDefinition.attributes, variablesValues ); + replaceVariables( styleDefinition.styles, variablesValues ); + } + + var element = this.element = styleDefinition.element ? + ( typeof styleDefinition.element == 'string' ? styleDefinition.element.toLowerCase() : styleDefinition.element ) + : '*'; + + this.type = + blockElements[ element ] ? + CKEDITOR.STYLE_BLOCK + : objectElements[ element ] ? + CKEDITOR.STYLE_OBJECT + : + CKEDITOR.STYLE_INLINE; + + // If the 'element' property is an object with a set of possible element, it will be applied like an object style: only to existing elements + if ( typeof this.element == 'object' ) + this.type = CKEDITOR.STYLE_OBJECT; + + this._ = + { + definition : styleDefinition + }; + }; + + CKEDITOR.style.prototype = + { + apply : function( document ) + { + applyStyle.call( this, document, false ); + }, + + remove : function( document ) + { + applyStyle.call( this, document, true ); + }, + + applyToRange : function( range ) + { + return ( this.applyToRange = + this.type == CKEDITOR.STYLE_INLINE ? + applyInlineStyle + : this.type == CKEDITOR.STYLE_BLOCK ? + applyBlockStyle + : this.type == CKEDITOR.STYLE_OBJECT ? + applyObjectStyle + : null ).call( this, range ); + }, + + removeFromRange : function( range ) + { + return ( this.removeFromRange = + this.type == CKEDITOR.STYLE_INLINE ? + removeInlineStyle + : this.type == CKEDITOR.STYLE_BLOCK ? + removeBlockStyle + : this.type == CKEDITOR.STYLE_OBJECT ? + removeObjectStyle + : null ).call( this, range ); + }, + + applyToObject : function( element ) + { + setupElement( element, this ); + }, + + /** + * Get the style state inside an element path. Returns "true" if the + * element is active in the path. + */ + checkActive : function( elementPath ) + { + switch ( this.type ) + { + case CKEDITOR.STYLE_BLOCK : + return this.checkElementRemovable( elementPath.block || elementPath.blockLimit, true ); + + case CKEDITOR.STYLE_OBJECT : + case CKEDITOR.STYLE_INLINE : + + var elements = elementPath.elements; + + for ( var i = 0, element ; i < elements.length ; i++ ) + { + element = elements[ i ]; + + if ( this.type == CKEDITOR.STYLE_INLINE + && ( element == elementPath.block || element == elementPath.blockLimit ) ) + continue; + + if( this.type == CKEDITOR.STYLE_OBJECT ) + { + var name = element.getName(); + if ( !( typeof this.element == 'string' ? name == this.element : name in this.element ) ) + continue; + } + + if ( this.checkElementRemovable( element, true ) ) + return true; + } + } + return false; + }, + + /** + * Whether this style can be applied at the element path. + * @param elementPath + */ + checkApplicable : function( elementPath ) + { + switch ( this.type ) + { + case CKEDITOR.STYLE_INLINE : + case CKEDITOR.STYLE_BLOCK : + break; + + case CKEDITOR.STYLE_OBJECT : + return elementPath.lastElement.getAscendant( this.element, true ); + } + + return true; + }, + + // Check if the element matches the current style definition. + checkElementMatch : function( element, fullMatch ) + { + var def = this._.definition; + + if ( !element || !def.ignoreReadonly && element.isReadOnly() ) + return false; + + var attribs, + name = element.getName(); + + // If the element name is the same as the style name. + if ( typeof this.element == 'string' ? name == this.element : name in this.element ) + { + // If no attributes are defined in the element. + if ( !fullMatch && !element.hasAttributes() ) + return true; + + attribs = getAttributesForComparison( def ); + + if ( attribs._length ) + { + for ( var attName in attribs ) + { + if ( attName == '_length' ) + continue; + + var elementAttr = element.getAttribute( attName ) || ''; + + // Special treatment for 'style' attribute is required. + if ( attName == 'style' ? + compareCssText( attribs[ attName ], normalizeCssText( elementAttr, false ) ) + : attribs[ attName ] == elementAttr ) + { + if ( !fullMatch ) + return true; + } + else if ( fullMatch ) + return false; + } + if ( fullMatch ) + return true; + } + else + return true; + } + + return false; + }, + + // Checks if an element, or any of its attributes, is removable by the + // current style definition. + checkElementRemovable : function( element, fullMatch ) + { + // Check element matches the style itself. + if ( this.checkElementMatch( element, fullMatch ) ) + return true; + + // Check if the element matches the style overrides. + var override = getOverrides( this )[ element.getName() ] ; + if ( override ) + { + var attribs, attName; + + // If no attributes have been defined, remove the element. + if ( !( attribs = override.attributes ) ) + return true; + + for ( var i = 0 ; i < attribs.length ; i++ ) + { + attName = attribs[i][0]; + var actualAttrValue = element.getAttribute( attName ); + if ( actualAttrValue ) + { + var attValue = attribs[i][1]; + + // Remove the attribute if: + // - The override definition value is null; + // - The override definition value is a string that + // matches the attribute value exactly. + // - The override definition value is a regex that + // has matches in the attribute value. + if ( attValue === null || + ( typeof attValue == 'string' && actualAttrValue == attValue ) || + attValue.test( actualAttrValue ) ) + return true; + } + } + } + return false; + }, + + // Builds the preview HTML based on the styles definition. + buildPreview : function( label ) + { + var styleDefinition = this._.definition, + html = [], + elementName = styleDefinition.element; + + // Avoid <bdo> in the preview. + if ( elementName == 'bdo' ) + elementName = 'span'; + + html = [ '<', elementName ]; + + // Assign all defined attributes. + var attribs = styleDefinition.attributes; + if ( attribs ) + { + for ( var att in attribs ) + { + html.push( ' ', att, '="', attribs[ att ], '"' ); + } + } + + // Assign the style attribute. + var cssStyle = CKEDITOR.style.getStyleText( styleDefinition ); + if ( cssStyle ) + html.push( ' style="', cssStyle, '"' ); + + html.push( '>', ( label || styleDefinition.name ), '</', elementName, '>' ); + + return html.join( '' ); + } + }; + + // Build the cssText based on the styles definition. + CKEDITOR.style.getStyleText = function( styleDefinition ) + { + // If we have already computed it, just return it. + var stylesDef = styleDefinition._ST; + if ( stylesDef ) + return stylesDef; + + stylesDef = styleDefinition.styles; + + // Builds the StyleText. + var stylesText = ( styleDefinition.attributes && styleDefinition.attributes[ 'style' ] ) || '', + specialStylesText = ''; + + if ( stylesText.length ) + stylesText = stylesText.replace( semicolonFixRegex, ';' ); + + for ( var style in stylesDef ) + { + var styleVal = stylesDef[ style ], + text = ( style + ':' + styleVal ).replace( semicolonFixRegex, ';' ); + + // Some browsers don't support 'inherit' property value, leave them intact. (#5242) + if ( styleVal == 'inherit' ) + specialStylesText += text; + else + stylesText += text; + } + + // Browsers make some changes to the style when applying them. So, here + // we normalize it to the browser format. + if ( stylesText.length ) + stylesText = normalizeCssText( stylesText ); + + stylesText += specialStylesText; + + // Return it, saving it to the next request. + return ( styleDefinition._ST = stylesText ); + }; + + // Gets the parent element which blocks the styling for an element. This + // can be done through read-only elements (contenteditable=false) or + // elements with the "data-nostyle" attribute. + function getUnstylableParent( element ) + { + var unstylable, + editable; + + while ( ( element = element.getParent() ) ) + { + if ( element.getName() == 'body' ) + break; + + if ( element.getAttribute( 'data-nostyle' ) ) + unstylable = element; + else if ( !editable ) + { + var contentEditable = element.getAttribute( 'contentEditable' ); + + if ( contentEditable == 'false' ) + unstylable = element; + else if ( contentEditable == 'true' ) + editable = 1; + } + } + + return unstylable; + } + + function applyInlineStyle( range ) + { + var document = range.document; + + if ( range.collapsed ) + { + // Create the element to be inserted in the DOM. + var collapsedElement = getElement( this, document ); + + // Insert the empty element into the DOM at the range position. + range.insertNode( collapsedElement ); + + // Place the selection right inside the empty element. + range.moveToPosition( collapsedElement, CKEDITOR.POSITION_BEFORE_END ); + + return; + } + + var elementName = this.element; + var def = this._.definition; + var isUnknownElement; + + // Indicates that fully selected read-only elements are to be included in the styling range. + var ignoreReadonly = def.ignoreReadonly, + includeReadonly = ignoreReadonly || def.includeReadonly; + + // If the read-only inclusion is not available in the definition, try + // to get it from the document data. + if ( includeReadonly == undefined ) + includeReadonly = document.getCustomData( 'cke_includeReadonly' ); + + // Get the DTD definition for the element. Defaults to "span". + var dtd = CKEDITOR.dtd[ elementName ] || ( isUnknownElement = true, CKEDITOR.dtd.span ); + + // Expand the range. + range.enlarge( CKEDITOR.ENLARGE_ELEMENT, 1 ); + range.trim(); + + // Get the first node to be processed and the last, which concludes the + // processing. + var boundaryNodes = range.createBookmark(), + firstNode = boundaryNodes.startNode, + lastNode = boundaryNodes.endNode; + + var currentNode = firstNode; + + var styleRange; + + if ( !ignoreReadonly ) + { + // Check if the boundaries are inside non stylable elements. + var firstUnstylable = getUnstylableParent( firstNode ), + lastUnstylable = getUnstylableParent( lastNode ); + + // If the first element can't be styled, we'll start processing right + // after its unstylable root. + if ( firstUnstylable ) + currentNode = firstUnstylable.getNextSourceNode( true ); + + // If the last element can't be styled, we'll stop processing on its + // unstylable root. + if ( lastUnstylable ) + lastNode = lastUnstylable; + } + + // Do nothing if the current node now follows the last node to be processed. + if ( currentNode.getPosition( lastNode ) == CKEDITOR.POSITION_FOLLOWING ) + currentNode = 0; + + while ( currentNode ) + { + var applyStyle = false; + + if ( currentNode.equals( lastNode ) ) + { + currentNode = null; + applyStyle = true; + } + else + { + var nodeType = currentNode.type; + var nodeName = nodeType == CKEDITOR.NODE_ELEMENT ? currentNode.getName() : null; + var nodeIsReadonly = nodeName && ( currentNode.getAttribute( 'contentEditable' ) == 'false' ); + var nodeIsNoStyle = nodeName && currentNode.getAttribute( 'data-nostyle' ); + + if ( nodeName && currentNode.data( 'cke-bookmark' ) ) + { + currentNode = currentNode.getNextSourceNode( true ); + continue; + } + + // Check if the current node can be a child of the style element. + if ( !nodeName || ( dtd[ nodeName ] + && !nodeIsNoStyle + && ( !nodeIsReadonly || includeReadonly ) + && ( currentNode.getPosition( lastNode ) | CKEDITOR.POSITION_PRECEDING | CKEDITOR.POSITION_IDENTICAL | CKEDITOR.POSITION_IS_CONTAINED ) == ( CKEDITOR.POSITION_PRECEDING + CKEDITOR.POSITION_IDENTICAL + CKEDITOR.POSITION_IS_CONTAINED ) + && ( !def.childRule || def.childRule( currentNode ) ) ) ) + { + var currentParent = currentNode.getParent(); + + // Check if the style element can be a child of the current + // node parent or if the element is not defined in the DTD. + if ( currentParent + && ( ( currentParent.getDtd() || CKEDITOR.dtd.span )[ elementName ] || isUnknownElement ) + && ( !def.parentRule || def.parentRule( currentParent ) ) ) + { + // This node will be part of our range, so if it has not + // been started, place its start right before the node. + // In the case of an element node, it will be included + // only if it is entirely inside the range. + if ( !styleRange && ( !nodeName || !CKEDITOR.dtd.$removeEmpty[ nodeName ] || ( currentNode.getPosition( lastNode ) | CKEDITOR.POSITION_PRECEDING | CKEDITOR.POSITION_IDENTICAL | CKEDITOR.POSITION_IS_CONTAINED ) == ( CKEDITOR.POSITION_PRECEDING + CKEDITOR.POSITION_IDENTICAL + CKEDITOR.POSITION_IS_CONTAINED ) ) ) + { + styleRange = new CKEDITOR.dom.range( document ); + styleRange.setStartBefore( currentNode ); + } + + // Non element nodes, readonly elements, or empty + // elements can be added completely to the range. + if ( nodeType == CKEDITOR.NODE_TEXT || nodeIsReadonly || ( nodeType == CKEDITOR.NODE_ELEMENT && !currentNode.getChildCount() ) ) + { + var includedNode = currentNode; + var parentNode; + + // This node is about to be included completelly, but, + // if this is the last node in its parent, we must also + // check if the parent itself can be added completelly + // to the range, otherwise apply the style immediately. + while ( ( applyStyle = !includedNode.getNext( notBookmark ) ) + && ( parentNode = includedNode.getParent(), dtd[ parentNode.getName() ] ) + && ( parentNode.getPosition( firstNode ) | CKEDITOR.POSITION_FOLLOWING | CKEDITOR.POSITION_IDENTICAL | CKEDITOR.POSITION_IS_CONTAINED ) == ( CKEDITOR.POSITION_FOLLOWING + CKEDITOR.POSITION_IDENTICAL + CKEDITOR.POSITION_IS_CONTAINED ) + && ( !def.childRule || def.childRule( parentNode ) ) ) + { + includedNode = parentNode; + } + + styleRange.setEndAfter( includedNode ); + + } + } + else + applyStyle = true; + } + else + applyStyle = true; + + // Get the next node to be processed. + currentNode = currentNode.getNextSourceNode( nodeIsNoStyle || nodeIsReadonly ); + } + + // Apply the style if we have something to which apply it. + if ( applyStyle && styleRange && !styleRange.collapsed ) + { + // Build the style element, based on the style object definition. + var styleNode = getElement( this, document ), + styleHasAttrs = styleNode.hasAttributes(); + + // Get the element that holds the entire range. + var parent = styleRange.getCommonAncestor(); + + var removeList = { + styles : {}, + attrs : {}, + // Styles cannot be removed. + blockedStyles : {}, + // Attrs cannot be removed. + blockedAttrs : {} + }; + + var attName, styleName, value; + + // Loop through the parents, removing the redundant attributes + // from the element to be applied. + while ( styleNode && parent ) + { + if ( parent.getName() == elementName ) + { + for ( attName in def.attributes ) + { + if ( removeList.blockedAttrs[ attName ] || !( value = parent.getAttribute( styleName ) ) ) + continue; + + if ( styleNode.getAttribute( attName ) == value ) + removeList.attrs[ attName ] = 1; + else + removeList.blockedAttrs[ attName ] = 1; + } + + for ( styleName in def.styles ) + { + if ( removeList.blockedStyles[ styleName ] || !( value = parent.getStyle( styleName ) ) ) + continue; + + if ( styleNode.getStyle( styleName ) == value ) + removeList.styles[ styleName ] = 1; + else + removeList.blockedStyles[ styleName ] = 1; + } + } + + parent = parent.getParent(); + } + + for ( attName in removeList.attrs ) + styleNode.removeAttribute( attName ); + + for ( styleName in removeList.styles ) + styleNode.removeStyle( styleName ); + + if ( styleHasAttrs && !styleNode.hasAttributes() ) + styleNode = null; + + if ( styleNode ) + { + // Move the contents of the range to the style element. + styleRange.extractContents().appendTo( styleNode ); + + // Here we do some cleanup, removing all duplicated + // elements from the style element. + removeFromInsideElement( this, styleNode ); + + // Insert it into the range position (it is collapsed after + // extractContents. + styleRange.insertNode( styleNode ); + + // Let's merge our new style with its neighbors, if possible. + styleNode.mergeSiblings(); + + // As the style system breaks text nodes constantly, let's normalize + // things for performance. + // With IE, some paragraphs get broken when calling normalize() + // repeatedly. Also, for IE, we must normalize body, not documentElement. + // IE is also known for having a "crash effect" with normalize(). + // We should try to normalize with IE too in some way, somewhere. + if ( !CKEDITOR.env.ie ) + styleNode.$.normalize(); + } + // Style already inherit from parents, left just to clear up any internal overrides. (#5931) + else + { + styleNode = new CKEDITOR.dom.element( 'span' ); + styleRange.extractContents().appendTo( styleNode ); + styleRange.insertNode( styleNode ); + removeFromInsideElement( this, styleNode ); + styleNode.remove( true ); + } + + // Style applied, let's release the range, so it gets + // re-initialization in the next loop. + styleRange = null; + } + } + + // Remove the bookmark nodes. + range.moveToBookmark( boundaryNodes ); + + // Minimize the result range to exclude empty text nodes. (#5374) + range.shrink( CKEDITOR.SHRINK_TEXT ); + } + + function removeInlineStyle( range ) + { + /* + * Make sure our range has included all "collpased" parent inline nodes so + * that our operation logic can be simpler. + */ + range.enlarge( CKEDITOR.ENLARGE_ELEMENT, 1 ); + + var bookmark = range.createBookmark(), + startNode = bookmark.startNode; + + if ( range.collapsed ) + { + + var startPath = new CKEDITOR.dom.elementPath( startNode.getParent() ), + // The topmost element in elementspatch which we should jump out of. + boundaryElement; + + + for ( var i = 0, element ; i < startPath.elements.length + && ( element = startPath.elements[i] ) ; i++ ) + { + /* + * 1. If it's collaped inside text nodes, try to remove the style from the whole element. + * + * 2. Otherwise if it's collapsed on element boundaries, moving the selection + * outside the styles instead of removing the whole tag, + * also make sure other inner styles were well preserverd.(#3309) + */ + if ( element == startPath.block || element == startPath.blockLimit ) + break; + + if ( this.checkElementRemovable( element ) ) + { + var isStart; + + if ( range.collapsed && ( + range.checkBoundaryOfElement( element, CKEDITOR.END ) || + ( isStart = range.checkBoundaryOfElement( element, CKEDITOR.START ) ) ) ) + { + boundaryElement = element; + boundaryElement.match = isStart ? 'start' : 'end'; + } + else + { + /* + * Before removing the style node, there may be a sibling to the style node + * that's exactly the same to the one to be removed. To the user, it makes + * no difference that they're separate entities in the DOM tree. So, merge + * them before removal. + */ + element.mergeSiblings(); + if ( element.getName() == this.element ) + removeFromElement( this, element ); + else + removeOverrides( element, getOverrides( this )[ element.getName() ] ); + } + } + } + + // Re-create the style tree after/before the boundary element, + // the replication start from bookmark start node to define the + // new range. + if ( boundaryElement ) + { + var clonedElement = startNode; + for ( i = 0 ;; i++ ) + { + var newElement = startPath.elements[ i ]; + if ( newElement.equals( boundaryElement ) ) + break; + // Avoid copying any matched element. + else if ( newElement.match ) + continue; + else + newElement = newElement.clone(); + newElement.append( clonedElement ); + clonedElement = newElement; + } + clonedElement[ boundaryElement.match == 'start' ? + 'insertBefore' : 'insertAfter' ]( boundaryElement ); + } + } + else + { + /* + * Now our range isn't collapsed. Lets walk from the start node to the end + * node via DFS and remove the styles one-by-one. + */ + var endNode = bookmark.endNode, + me = this; + + /* + * Find out the style ancestor that needs to be broken down at startNode + * and endNode. + */ + function breakNodes() + { + var startPath = new CKEDITOR.dom.elementPath( startNode.getParent() ), + endPath = new CKEDITOR.dom.elementPath( endNode.getParent() ), + breakStart = null, + breakEnd = null; + for ( var i = 0 ; i < startPath.elements.length ; i++ ) + { + var element = startPath.elements[ i ]; + + if ( element == startPath.block || element == startPath.blockLimit ) + break; + + if ( me.checkElementRemovable( element ) ) + breakStart = element; + } + for ( i = 0 ; i < endPath.elements.length ; i++ ) + { + element = endPath.elements[ i ]; + + if ( element == endPath.block || element == endPath.blockLimit ) + break; + + if ( me.checkElementRemovable( element ) ) + breakEnd = element; + } + + if ( breakEnd ) + endNode.breakParent( breakEnd ); + if ( breakStart ) + startNode.breakParent( breakStart ); + } + breakNodes(); + + // Now, do the DFS walk. + var currentNode = startNode; + while ( !currentNode.equals( endNode ) ) + { + /* + * Need to get the next node first because removeFromElement() can remove + * the current node from DOM tree. + */ + var nextNode = currentNode.getNextSourceNode(); + if ( currentNode.type == CKEDITOR.NODE_ELEMENT && this.checkElementRemovable( currentNode ) ) + { + // Remove style from element or overriding element. + if ( currentNode.getName() == this.element ) + removeFromElement( this, currentNode ); + else + removeOverrides( currentNode, getOverrides( this )[ currentNode.getName() ] ); + + /* + * removeFromElement() may have merged the next node with something before + * the startNode via mergeSiblings(). In that case, the nextNode would + * contain startNode and we'll have to call breakNodes() again and also + * reassign the nextNode to something after startNode. + */ + if ( nextNode.type == CKEDITOR.NODE_ELEMENT && nextNode.contains( startNode ) ) + { + breakNodes(); + nextNode = startNode.getNext(); + } + } + currentNode = nextNode; + } + } + + range.moveToBookmark( bookmark ); + } + + function applyObjectStyle( range ) + { + var root = range.getCommonAncestor( true, true ), + element = root.getAscendant( this.element, true ); + element && !element.isReadOnly() && setupElement( element, this ); + } + + function removeObjectStyle( range ) + { + var root = range.getCommonAncestor( true, true ), + element = root.getAscendant( this.element, true ); + + if ( !element ) + return; + + var style = this, + def = style._.definition, + attributes = def.attributes; + + // Remove all defined attributes. + if ( attributes ) + { + for ( var att in attributes ) + { + element.removeAttribute( att, attributes[ att ] ); + } + } + + // Assign all defined styles. + if ( def.styles ) + { + for ( var i in def.styles ) + { + if ( !def.styles.hasOwnProperty( i ) ) + continue; + + element.removeStyle( i ); + } + } + } + + function applyBlockStyle( range ) + { + // Serializible bookmarks is needed here since + // elements may be merged. + var bookmark = range.createBookmark( true ); + + var iterator = range.createIterator(); + iterator.enforceRealBlocks = true; + + // make recognize <br /> tag as a separator in ENTER_BR mode (#5121) + if ( this._.enterMode ) + iterator.enlargeBr = ( this._.enterMode != CKEDITOR.ENTER_BR ); + + var block; + var doc = range.document; + var previousPreBlock; + + while ( ( block = iterator.getNextParagraph() ) ) // Only one = + { + if ( !block.isReadOnly() ) + { + var newBlock = getElement( this, doc, block ); + replaceBlock( block, newBlock ); + } + } + + range.moveToBookmark( bookmark ); + } + + function removeBlockStyle( range ) + { + // Serializible bookmarks is needed here since + // elements may be merged. + var bookmark = range.createBookmark( 1 ); + + var iterator = range.createIterator(); + iterator.enforceRealBlocks = true; + iterator.enlargeBr = this._.enterMode != CKEDITOR.ENTER_BR; + + var block; + while ( ( block = iterator.getNextParagraph() ) ) + { + if ( this.checkElementRemovable( block ) ) + { + // <pre> get special treatment. + if ( block.is( 'pre' ) ) + { + var newBlock = this._.enterMode == CKEDITOR.ENTER_BR ? + null : range.document.createElement( + this._.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); + + newBlock && block.copyAttributes( newBlock ); + replaceBlock( block, newBlock ); + } + else + removeFromElement( this, block, 1 ); + } + } + + range.moveToBookmark( bookmark ); + } + + // Replace the original block with new one, with special treatment + // for <pre> blocks to make sure content format is well preserved, and merging/splitting adjacent + // when necessary.(#3188) + function replaceBlock( block, newBlock ) + { + // Block is to be removed, create a temp element to + // save contents. + var removeBlock = !newBlock; + if ( removeBlock ) + { + newBlock = block.getDocument().createElement( 'div' ); + block.copyAttributes( newBlock ); + } + + var newBlockIsPre = newBlock && newBlock.is( 'pre' ); + var blockIsPre = block.is( 'pre' ); + + var isToPre = newBlockIsPre && !blockIsPre; + var isFromPre = !newBlockIsPre && blockIsPre; + + if ( isToPre ) + newBlock = toPre( block, newBlock ); + else if ( isFromPre ) + // Split big <pre> into pieces before start to convert. + newBlock = fromPres( removeBlock ? + [ block.getHtml() ] : splitIntoPres( block ), newBlock ); + else + block.moveChildren( newBlock ); + + newBlock.replace( block ); + + if ( newBlockIsPre ) + { + // Merge previous <pre> blocks. + mergePre( newBlock ); + } + else if ( removeBlock ) + removeNoAttribsElement( newBlock ); + } + + /** + * Merge a <pre> block with a previous sibling if available. + */ + function mergePre( preBlock ) + { + var previousBlock; + if ( !( ( previousBlock = preBlock.getPrevious( nonWhitespaces ) ) + && previousBlock.is + && previousBlock.is( 'pre') ) ) + return; + + // Merge the previous <pre> block contents into the current <pre> + // block. + // + // Another thing to be careful here is that currentBlock might contain + // a '\n' at the beginning, and previousBlock might contain a '\n' + // towards the end. These new lines are not normally displayed but they + // become visible after merging. + var mergedHtml = replace( previousBlock.getHtml(), /\n$/, '' ) + '\n\n' + + replace( preBlock.getHtml(), /^\n/, '' ) ; + + // Krugle: IE normalizes innerHTML from <pre>, breaking whitespaces. + if ( CKEDITOR.env.ie ) + preBlock.$.outerHTML = '<pre>' + mergedHtml + '</pre>'; + else + preBlock.setHtml( mergedHtml ); + + previousBlock.remove(); + } + + /** + * Split into multiple <pre> blocks separated by double line-break. + * @param preBlock + */ + function splitIntoPres( preBlock ) + { + // Exclude the ones at header OR at tail, + // and ignore bookmark content between them. + var duoBrRegex = /(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi, + blockName = preBlock.getName(), + splitedHtml = replace( preBlock.getOuterHtml(), + duoBrRegex, + function( match, charBefore, bookmark ) + { + return charBefore + '</pre>' + bookmark + '<pre>'; + } ); + + var pres = []; + splitedHtml.replace( /<pre\b.*?>([\s\S]*?)<\/pre>/gi, function( match, preContent ){ + pres.push( preContent ); + } ); + return pres; + } + + // Wrapper function of String::replace without considering of head/tail bookmarks nodes. + function replace( str, regexp, replacement ) + { + var headBookmark = '', + tailBookmark = ''; + + str = str.replace( /(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi, + function( str, m1, m2 ){ + m1 && ( headBookmark = m1 ); + m2 && ( tailBookmark = m2 ); + return ''; + } ); + return headBookmark + str.replace( regexp, replacement ) + tailBookmark; + } + + /** + * Converting a list of <pre> into blocks with format well preserved. + */ + function fromPres( preHtmls, newBlock ) + { + var docFrag; + if ( preHtmls.length > 1 ) + docFrag = new CKEDITOR.dom.documentFragment( newBlock.getDocument() ); + + for ( var i = 0 ; i < preHtmls.length ; i++ ) + { + var blockHtml = preHtmls[ i ]; + + // 1. Trim the first and last line-breaks immediately after and before <pre>, + // they're not visible. + blockHtml = blockHtml.replace( /(\r\n|\r)/g, '\n' ) ; + blockHtml = replace( blockHtml, /^[ \t]*\n/, '' ) ; + blockHtml = replace( blockHtml, /\n$/, '' ) ; + // 2. Convert spaces or tabs at the beginning or at the end to + blockHtml = replace( blockHtml, /^[ \t]+|[ \t]+$/g, function( match, offset, s ) + { + if ( match.length == 1 ) // one space, preserve it + return ' ' ; + else if ( !offset ) // beginning of block + return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' '; + else // end of block + return ' ' + CKEDITOR.tools.repeat( ' ', match.length - 1 ); + } ) ; + + // 3. Convert \n to <BR>. + // 4. Convert contiguous (i.e. non-singular) spaces or tabs to + blockHtml = blockHtml.replace( /\n/g, '<br>' ) ; + blockHtml = blockHtml.replace( /[ \t]{2,}/g, + function ( match ) + { + return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' ' ; + } ) ; + + if ( docFrag ) + { + var newBlockClone = newBlock.clone(); + newBlockClone.setHtml( blockHtml ); + docFrag.append( newBlockClone ); + } + else + newBlock.setHtml( blockHtml ); + } + + return docFrag || newBlock; + } + + /** + * Converting from a non-PRE block to a PRE block in formatting operations. + */ + function toPre( block, newBlock ) + { + var bogus = block.getBogus(); + bogus && bogus.remove(); + + // First trim the block content. + var preHtml = block.getHtml(); + + // 1. Trim head/tail spaces, they're not visible. + preHtml = replace( preHtml, /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g, '' ); + // 2. Delete ANSI whitespaces immediately before and after <BR> because + // they are not visible. + preHtml = preHtml.replace( /[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi, '$1' ); + // 3. Compress other ANSI whitespaces since they're only visible as one + // single space previously. + // 4. Convert to spaces since is no longer needed in <PRE>. + preHtml = preHtml.replace( /([ \t\n\r]+| )/g, ' ' ); + // 5. Convert any <BR /> to \n. This must not be done earlier because + // the \n would then get compressed. + preHtml = preHtml.replace( /<br\b[^>]*>/gi, '\n' ); + + // Krugle: IE normalizes innerHTML to <pre>, breaking whitespaces. + if ( CKEDITOR.env.ie ) + { + var temp = block.getDocument().createElement( 'div' ); + temp.append( newBlock ); + newBlock.$.outerHTML = '<pre>' + preHtml + '</pre>'; + newBlock.copyAttributes( temp.getFirst() ); + newBlock = temp.getFirst().remove(); + } + else + newBlock.setHtml( preHtml ); + + return newBlock; + } + + // Removes a style from an element itself, don't care about its subtree. + function removeFromElement( style, element ) + { + var def = style._.definition, + attributes = def.attributes, + styles = def.styles, + overrides = getOverrides( style )[ element.getName() ], + // If the style is only about the element itself, we have to remove the element. + removeEmpty = CKEDITOR.tools.isEmpty( attributes ) && CKEDITOR.tools.isEmpty( styles ); + + // Remove definition attributes/style from the elemnt. + for ( var attName in attributes ) + { + // The 'class' element value must match (#1318). + if ( ( attName == 'class' || style._.definition.fullMatch ) + && element.getAttribute( attName ) != normalizeProperty( attName, attributes[ attName ] ) ) + continue; + removeEmpty = element.hasAttribute( attName ); + element.removeAttribute( attName ); + } + + for ( var styleName in styles ) + { + // Full match style insist on having fully equivalence. (#5018) + if ( style._.definition.fullMatch + && element.getStyle( styleName ) != normalizeProperty( styleName, styles[ styleName ], true ) ) + continue; + + removeEmpty = removeEmpty || !!element.getStyle( styleName ); + element.removeStyle( styleName ); + } + + // Remove overrides, but don't remove the element if it's a block element + removeOverrides( element, overrides, blockElements[ element.getName() ] ) ; + + if ( removeEmpty ) + { + !CKEDITOR.dtd.$block[ element.getName() ] || style._.enterMode == CKEDITOR.ENTER_BR && !element.hasAttributes() ? + removeNoAttribsElement( element ) : + element.renameNode( style._.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); + } + } + + // Removes a style from inside an element. + function removeFromInsideElement( style, element ) + { + var def = style._.definition, + attribs = def.attributes, + styles = def.styles, + overrides = getOverrides( style ), + innerElements = element.getElementsByTag( style.element ); + + for ( var i = innerElements.count(); --i >= 0 ; ) + removeFromElement( style, innerElements.getItem( i ) ); + + // Now remove any other element with different name that is + // defined to be overriden. + for ( var overrideElement in overrides ) + { + if ( overrideElement != style.element ) + { + innerElements = element.getElementsByTag( overrideElement ) ; + for ( i = innerElements.count() - 1 ; i >= 0 ; i-- ) + { + var innerElement = innerElements.getItem( i ); + removeOverrides( innerElement, overrides[ overrideElement ] ) ; + } + } + } + } + + /** + * Remove overriding styles/attributes from the specific element. + * Note: Remove the element if no attributes remain. + * @param {Object} element + * @param {Object} overrides + * @param {Boolean} Don't remove the element + */ + function removeOverrides( element, overrides, dontRemove ) + { + var attributes = overrides && overrides.attributes ; + + if ( attributes ) + { + for ( var i = 0 ; i < attributes.length ; i++ ) + { + var attName = attributes[i][0], actualAttrValue ; + + if ( ( actualAttrValue = element.getAttribute( attName ) ) ) + { + var attValue = attributes[i][1] ; + + // Remove the attribute if: + // - The override definition value is null ; + // - The override definition valie is a string that + // matches the attribute value exactly. + // - The override definition value is a regex that + // has matches in the attribute value. + if ( attValue === null || + ( attValue.test && attValue.test( actualAttrValue ) ) || + ( typeof attValue == 'string' && actualAttrValue == attValue ) ) + element.removeAttribute( attName ) ; + } + } + } + + if ( !dontRemove ) + removeNoAttribsElement( element ); + } + + // If the element has no more attributes, remove it. + function removeNoAttribsElement( element ) + { + // If no more attributes remained in the element, remove it, + // leaving its children. + if ( !element.hasAttributes() ) + { + if ( CKEDITOR.dtd.$block[ element.getName() ] ) + { + var previous = element.getPrevious( nonWhitespaces ), + next = element.getNext( nonWhitespaces ); + + if ( previous && ( previous.type == CKEDITOR.NODE_TEXT || !previous.isBlockBoundary( { br : 1 } ) ) ) + element.append( 'br', 1 ); + if ( next && ( next.type == CKEDITOR.NODE_TEXT || !next.isBlockBoundary( { br : 1 } ) ) ) + element.append( 'br' ); + + element.remove( true ); + } + else + { + // Removing elements may open points where merging is possible, + // so let's cache the first and last nodes for later checking. + var firstChild = element.getFirst(); + var lastChild = element.getLast(); + + element.remove( true ); + + if ( firstChild ) + { + // Check the cached nodes for merging. + firstChild.type == CKEDITOR.NODE_ELEMENT && firstChild.mergeSiblings(); + + if ( lastChild && !firstChild.equals( lastChild ) + && lastChild.type == CKEDITOR.NODE_ELEMENT ) + lastChild.mergeSiblings(); + } + + } + } + } + + function getElement( style, targetDocument, element ) + { + var el, + def = style._.definition, + elementName = style.element; + + // The "*" element name will always be a span for this function. + if ( elementName == '*' ) + elementName = 'span'; + + // Create the element. + el = new CKEDITOR.dom.element( elementName, targetDocument ); + + // #6226: attributes should be copied before the new ones are applied + if ( element ) + element.copyAttributes( el ); + + el = setupElement( el, style ); + + // Avoid ID duplication. + if ( targetDocument.getCustomData( 'doc_processing_style' ) && el.hasAttribute( 'id' ) ) + el.removeAttribute( 'id' ); + else + targetDocument.setCustomData( 'doc_processing_style', 1 ); + + return el; + } + + function setupElement( el, style ) + { + var def = style._.definition, + attributes = def.attributes, + styles = CKEDITOR.style.getStyleText( def ); + + // Assign all defined attributes. + if ( attributes ) + { + for ( var att in attributes ) + { + el.setAttribute( att, attributes[ att ] ); + } + } + + // Assign all defined styles. + if( styles ) + el.setAttribute( 'style', styles ); + + return el; + } + + function replaceVariables( list, variablesValues ) + { + for ( var item in list ) + { + list[ item ] = list[ item ].replace( varRegex, function( match, varName ) + { + return variablesValues[ varName ]; + }); + } + } + + // Returns an object that can be used for style matching comparison. + // Attributes names and values are all lowercased, and the styles get + // merged with the style attribute. + function getAttributesForComparison( styleDefinition ) + { + // If we have already computed it, just return it. + var attribs = styleDefinition._AC; + if ( attribs ) + return attribs; + + attribs = {}; + + var length = 0; + + // Loop through all defined attributes. + var styleAttribs = styleDefinition.attributes; + if ( styleAttribs ) + { + for ( var styleAtt in styleAttribs ) + { + length++; + attribs[ styleAtt ] = styleAttribs[ styleAtt ]; + } + } + + // Includes the style definitions. + var styleText = CKEDITOR.style.getStyleText( styleDefinition ); + if ( styleText ) + { + if ( !attribs[ 'style' ] ) + length++; + attribs[ 'style' ] = styleText; + } + + // Appends the "length" information to the object. + attribs._length = length; + + // Return it, saving it to the next request. + return ( styleDefinition._AC = attribs ); + } + + /** + * Get the the collection used to compare the elements and attributes, + * defined in this style overrides, with other element. All information in + * it is lowercased. + * @param {CKEDITOR.style} style + */ + function getOverrides( style ) + { + if ( style._.overrides ) + return style._.overrides; + + var overrides = ( style._.overrides = {} ), + definition = style._.definition.overrides; + + if ( definition ) + { + // The override description can be a string, object or array. + // Internally, well handle arrays only, so transform it if needed. + if ( !CKEDITOR.tools.isArray( definition ) ) + definition = [ definition ]; + + // Loop through all override definitions. + for ( var i = 0 ; i < definition.length ; i++ ) + { + var override = definition[i]; + var elementName; + var overrideEl; + var attrs; + + // If can be a string with the element name. + if ( typeof override == 'string' ) + elementName = override.toLowerCase(); + // Or an object. + else + { + elementName = override.element ? override.element.toLowerCase() : style.element; + attrs = override.attributes; + } + + // We can have more than one override definition for the same + // element name, so we attempt to simply append information to + // it if it already exists. + overrideEl = overrides[ elementName ] || ( overrides[ elementName ] = {} ); + + if ( attrs ) + { + // The returning attributes list is an array, because we + // could have different override definitions for the same + // attribute name. + var overrideAttrs = ( overrideEl.attributes = overrideEl.attributes || new Array() ); + for ( var attName in attrs ) + { + // Each item in the attributes array is also an array, + // where [0] is the attribute name and [1] is the + // override value. + overrideAttrs.push( [ attName.toLowerCase(), attrs[ attName ] ] ); + } + } + } + } + + return overrides; + } + + // Make the comparison of attribute value easier by standardizing it. + function normalizeProperty( name, value, isStyle ) + { + var temp = new CKEDITOR.dom.element( 'span' ); + temp [ isStyle ? 'setStyle' : 'setAttribute' ]( name, value ); + return temp[ isStyle ? 'getStyle' : 'getAttribute' ]( name ); + } + + // Make the comparison of style text easier by standardizing it. + function normalizeCssText( unparsedCssText, nativeNormalize ) + { + var styleText; + if ( nativeNormalize !== false ) + { + // Injects the style in a temporary span object, so the browser parses it, + // retrieving its final format. + var temp = new CKEDITOR.dom.element( 'span' ); + temp.setAttribute( 'style', unparsedCssText ); + styleText = temp.getAttribute( 'style' ) || ''; + } + else + styleText = unparsedCssText; + + // Normalize font-family property, ignore quotes and being case insensitive. (#7322) + // http://www.w3.org/TR/css3-fonts/#font-family-the-font-family-property + styleText = styleText.replace( /(font-family:)(.*?)(?=;|$)/, function ( match, prop, val ) + { + var names = val.split( ',' ); + for ( var i = 0; i < names.length; i++ ) + names[ i ] = CKEDITOR.tools.trim( names[ i ].replace( /["']/g, '' ) ); + return prop + names.join( ',' ); + }); + + // Shrinking white-spaces around colon and semi-colon (#4147). + // Compensate tail semi-colon. + return styleText.replace( /\s*([;:])\s*/, '$1' ) + .replace( /([^\s;])$/, '$1;') + // Trimming spaces after comma(#4107), + // remove quotations(#6403), + // mostly for differences on "font-family". + .replace( /,\s+/g, ',' ) + .replace( /\"/g,'' ) + .toLowerCase(); + } + + // Turn inline style text properties into one hash. + function parseStyleText( styleText ) + { + var retval = {}; + styleText + .replace( /"/g, '"' ) + .replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, function( match, name, value ) + { + retval[ name ] = value; + } ); + return retval; + } + + /** + * Compare two bunch of styles, with the speciality that value 'inherit' + * is treated as a wildcard which will match any value. + * @param {Object|String} source + * @param {Object|String} target + */ + function compareCssText( source, target ) + { + typeof source == 'string' && ( source = parseStyleText( source ) ); + typeof target == 'string' && ( target = parseStyleText( target ) ); + for( var name in source ) + { + if ( !( name in target && + ( target[ name ] == source[ name ] + || source[ name ] == 'inherit' + || target[ name ] == 'inherit' ) ) ) + { + return false; + } + } + return true; + } + + function applyStyle( document, remove ) + { + var selection = document.getSelection(), + // Bookmark the range so we can re-select it after processing. + bookmarks = selection.createBookmarks( 1 ), + ranges = selection.getRanges(), + func = remove ? this.removeFromRange : this.applyToRange, + range; + + var iterator = ranges.createIterator(); + while ( ( range = iterator.getNextRange() ) ) + func.call( this, range ); + + if ( bookmarks.length == 1 && bookmarks[ 0 ].collapsed ) + { + selection.selectRanges( ranges ); + document.getById( bookmarks[ 0 ].startNode ).remove(); + } + else + selection.selectBookmarks( bookmarks ); + + document.removeCustomData( 'doc_processing_style' ); + } +})(); + +CKEDITOR.styleCommand = function( style ) +{ + this.style = style; +}; + +CKEDITOR.styleCommand.prototype.exec = function( editor ) +{ + editor.focus(); + + var doc = editor.document; + + if ( doc ) + { + if ( this.state == CKEDITOR.TRISTATE_OFF ) + this.style.apply( doc ); + else if ( this.state == CKEDITOR.TRISTATE_ON ) + this.style.remove( doc ); + } + + return !!doc; +}; + +/** + * Manages styles registration and loading. See also {@link CKEDITOR.config.stylesSet}. + * @namespace + * @augments CKEDITOR.resourceManager + * @constructor + * @since 3.2 + * @example + * // The set of styles for the <b>Styles</b> combo + * CKEDITOR.stylesSet.add( 'default', + * [ + * // Block Styles + * { name : 'Blue Title' , element : 'h3', styles : { 'color' : 'Blue' } }, + * { name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } }, + * + * // Inline Styles + * { name : 'Marker: Yellow' , element : 'span', styles : { 'background-color' : 'Yellow' } }, + * { name : 'Marker: Green' , element : 'span', styles : { 'background-color' : 'Lime' } }, + * + * // Object Styles + * { + * name : 'Image on Left', + * element : 'img', + * attributes : + * { + * 'style' : 'padding: 5px; margin-right: 5px', + * 'border' : '2', + * 'align' : 'left' + * } + * } + * ]); + */ +CKEDITOR.stylesSet = new CKEDITOR.resourceManager( '', 'stylesSet' ); + +// Backward compatibility (#5025). +CKEDITOR.addStylesSet = CKEDITOR.tools.bind( CKEDITOR.stylesSet.add, CKEDITOR.stylesSet ); +CKEDITOR.loadStylesSet = function( name, url, callback ) + { + CKEDITOR.stylesSet.addExternal( name, url, '' ); + CKEDITOR.stylesSet.load( name, callback ); + }; + + +/** + * Gets the current styleSet for this instance + * @param {Function} callback The function to be called with the styles data. + * @example + * editor.getStylesSet( function( stylesDefinitions ) {} ); + */ +CKEDITOR.editor.prototype.getStylesSet = function( callback ) +{ + if ( !this._.stylesDefinitions ) + { + var editor = this, + // Respect the backwards compatible definition entry + configStyleSet = editor.config.stylesCombo_stylesSet || editor.config.stylesSet || 'default'; + + // #5352 Allow to define the styles directly in the config object + if ( configStyleSet instanceof Array ) + { + editor._.stylesDefinitions = configStyleSet; + callback( configStyleSet ); + return; + } + + var partsStylesSet = configStyleSet.split( ':' ), + styleSetName = partsStylesSet[ 0 ], + externalPath = partsStylesSet[ 1 ], + pluginPath = CKEDITOR.plugins.registered.styles.path; + + CKEDITOR.stylesSet.addExternal( styleSetName, + externalPath ? + partsStylesSet.slice( 1 ).join( ':' ) : + pluginPath + 'styles/' + styleSetName + '.js', '' ); + + CKEDITOR.stylesSet.load( styleSetName, function( stylesSet ) + { + editor._.stylesDefinitions = stylesSet[ styleSetName ]; + callback( editor._.stylesDefinitions ); + } ) ; + } + else + callback( this._.stylesDefinitions ); +}; + +/** + * Indicates that fully selected read-only elements will be included when + * applying the style (for inline styles only). + * @name CKEDITOR.style.includeReadonly + * @type Boolean + * @default false + * @since 3.5 + */ + + /** + * Disables inline styling on read-only elements. + * @name CKEDITOR.config.disableReadonlyStyling + * @type Boolean + * @default false + * @since 3.5 + */ + +/** + * The "styles definition set" to use in the editor. They will be used in the + * styles combo and the Style selector of the div container. <br> + * The styles may be defined in the page containing the editor, or can be + * loaded on demand from an external file. In the second case, if this setting + * contains only a name, the styles definition file will be loaded from the + * "styles" folder inside the styles plugin folder. + * Otherwise, this setting has the "name:url" syntax, making it + * possible to set the URL from which loading the styles file.<br> + * Previously this setting was available as config.stylesCombo_stylesSet<br> + * @name CKEDITOR.config.stylesSet + * @type String|Array + * @default 'default' + * @since 3.3 + * @example + * // Load from the styles' styles folder (mystyles.js file). + * config.stylesSet = 'mystyles'; + * @example + * // Load from a relative URL. + * config.stylesSet = 'mystyles:/editorstyles/styles.js'; + * @example + * // Load from a full URL. + * config.stylesSet = 'mystyles:http://www.example.com/editorstyles/styles.js'; + * @example + * // Load from a list of definitions. + * config.stylesSet = [ + * { name : 'Strong Emphasis', element : 'strong' }, + * { name : 'Emphasis', element : 'em' }, ... ]; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/styles/styles/default.js b/htdocs/includes/ckeditor/_source/plugins/styles/styles/default.js new file mode 100644 index 0000000000000000000000000000000000000000..4859ea5a17481e830ae500a5c771bd58b84edccc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/styles/styles/default.js @@ -0,0 +1,88 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.stylesSet.add( 'default', +[ + /* Block Styles */ + + // These styles are already available in the "Format" combo, so they are + // not needed here by default. You may enable them to avoid placing the + // "Format" combo in the toolbar, maintaining the same features. + /* + { name : 'Paragraph' , element : 'p' }, + { name : 'Heading 1' , element : 'h1' }, + { name : 'Heading 2' , element : 'h2' }, + { name : 'Heading 3' , element : 'h3' }, + { name : 'Heading 4' , element : 'h4' }, + { name : 'Heading 5' , element : 'h5' }, + { name : 'Heading 6' , element : 'h6' }, + { name : 'Preformatted Text', element : 'pre' }, + { name : 'Address' , element : 'address' }, + */ + + { name : 'Blue Title' , element : 'h3', styles : { 'color' : 'Blue' } }, + { name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } }, + + /* Inline Styles */ + + // These are core styles available as toolbar buttons. You may opt enabling + // some of them in the Styles combo, removing them from the toolbar. + /* + { name : 'Strong' , element : 'strong', overrides : 'b' }, + { name : 'Emphasis' , element : 'em' , overrides : 'i' }, + { name : 'Underline' , element : 'u' }, + { name : 'Strikethrough' , element : 'strike' }, + { name : 'Subscript' , element : 'sub' }, + { name : 'Superscript' , element : 'sup' }, + */ + + { name : 'Marker: Yellow' , element : 'span', styles : { 'background-color' : 'Yellow' } }, + { name : 'Marker: Green' , element : 'span', styles : { 'background-color' : 'Lime' } }, + + { name : 'Big' , element : 'big' }, + { name : 'Small' , element : 'small' }, + { name : 'Typewriter' , element : 'tt' }, + + { name : 'Computer Code' , element : 'code' }, + { name : 'Keyboard Phrase' , element : 'kbd' }, + { name : 'Sample Text' , element : 'samp' }, + { name : 'Variable' , element : 'var' }, + + { name : 'Deleted Text' , element : 'del' }, + { name : 'Inserted Text' , element : 'ins' }, + + { name : 'Cited Work' , element : 'cite' }, + { name : 'Inline Quotation' , element : 'q' }, + + { name : 'Language: RTL' , element : 'span', attributes : { 'dir' : 'rtl' } }, + { name : 'Language: LTR' , element : 'span', attributes : { 'dir' : 'ltr' } }, + + /* Object Styles */ + + { + name : 'Image on Left', + element : 'img', + attributes : + { + 'style' : 'padding: 5px; margin-right: 5px', + 'border' : '2', + 'align' : 'left' + } + }, + + { + name : 'Image on Right', + element : 'img', + attributes : + { + 'style' : 'padding: 5px; margin-left: 5px', + 'border' : '2', + 'align' : 'right' + } + }, + + { name : 'Borderless Table', element : 'table', styles: { 'border-style': 'hidden', 'background-color' : '#E6E6FA' } }, + { name : 'Square Bulleted List', element : 'ul', styles : { 'list-style-type' : 'square' } } +]); diff --git a/htdocs/includes/ckeditor/_source/plugins/stylescombo/plugin.js b/htdocs/includes/ckeditor/_source/plugins/stylescombo/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..f69060281a777324447fa736f9e3ddb8d104d466 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/stylescombo/plugin.js @@ -0,0 +1,218 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + CKEDITOR.plugins.add( 'stylescombo', + { + requires : [ 'richcombo', 'styles' ], + + init : function( editor ) + { + var config = editor.config, + lang = editor.lang.stylesCombo, + styles = {}, + stylesList = [], + combo; + + function loadStylesSet( callback ) + { + editor.getStylesSet( function( stylesDefinitions ) + { + if ( !stylesList.length ) + { + var style, + styleName; + + // Put all styles into an Array. + for ( var i = 0, count = stylesDefinitions.length ; i < count ; i++ ) + { + var styleDefinition = stylesDefinitions[ i ]; + + styleName = styleDefinition.name; + + style = styles[ styleName ] = new CKEDITOR.style( styleDefinition ); + style._name = styleName; + style._.enterMode = config.enterMode; + + stylesList.push( style ); + } + + // Sorts the Array, so the styles get grouped by type. + stylesList.sort( sortStyles ); + } + + callback && callback(); + }); + } + + editor.ui.addRichCombo( 'Styles', + { + label : lang.label, + title : lang.panelTitle, + className : 'cke_styles', + + panel : + { + css : editor.skin.editor.css.concat( config.contentsCss ), + multiSelect : true, + attributes : { 'aria-label' : lang.panelTitle } + }, + + init : function() + { + combo = this; + + loadStylesSet( function() + { + var style, + styleName, + lastType, + type, + i, + count; + + // Loop over the Array, adding all items to the + // combo. + for ( i = 0, count = stylesList.length ; i < count ; i++ ) + { + style = stylesList[ i ]; + styleName = style._name; + type = style.type; + + if ( type != lastType ) + { + combo.startGroup( lang[ 'panelTitle' + String( type ) ] ); + lastType = type; + } + + combo.add( + styleName, + style.type == CKEDITOR.STYLE_OBJECT ? styleName : style.buildPreview(), + styleName ); + } + + combo.commit(); + + }); + }, + + onClick : function( value ) + { + editor.focus(); + editor.fire( 'saveSnapshot' ); + + var style = styles[ value ], + selection = editor.getSelection(), + elementPath = new CKEDITOR.dom.elementPath( selection.getStartElement() ); + + style[ style.checkActive( elementPath ) ? 'remove' : 'apply' ]( editor.document ); + + editor.fire( 'saveSnapshot' ); + }, + + onRender : function() + { + editor.on( 'selectionChange', function( ev ) + { + var currentValue = this.getValue(), + elementPath = ev.data.path, + elements = elementPath.elements; + + // For each element into the elements path. + for ( var i = 0, count = elements.length, element ; i < count ; i++ ) + { + element = elements[i]; + + // Check if the element is removable by any of + // the styles. + for ( var value in styles ) + { + if ( styles[ value ].checkElementRemovable( element, true ) ) + { + if ( value != currentValue ) + this.setValue( value ); + return; + } + } + } + + // If no styles match, just empty it. + this.setValue( '' ); + }, + this); + }, + + onOpen : function() + { + if ( CKEDITOR.env.ie || CKEDITOR.env.webkit ) + editor.focus(); + + var selection = editor.getSelection(), + element = selection.getSelectedElement(), + elementPath = new CKEDITOR.dom.elementPath( element || selection.getStartElement() ), + counter = [ 0, 0, 0, 0 ]; + + this.showAll(); + this.unmarkAll(); + for ( var name in styles ) + { + var style = styles[ name ], + type = style.type; + + if ( style.checkActive( elementPath ) ) + this.mark( name ); + else if ( type == CKEDITOR.STYLE_OBJECT && !style.checkApplicable( elementPath ) ) + { + this.hideItem( name ); + counter[ type ]--; + } + + counter[ type ]++; + } + + if ( !counter[ CKEDITOR.STYLE_BLOCK ] ) + this.hideGroup( lang[ 'panelTitle' + String( CKEDITOR.STYLE_BLOCK ) ] ); + + if ( !counter[ CKEDITOR.STYLE_INLINE ] ) + this.hideGroup( lang[ 'panelTitle' + String( CKEDITOR.STYLE_INLINE ) ] ); + + if ( !counter[ CKEDITOR.STYLE_OBJECT ] ) + this.hideGroup( lang[ 'panelTitle' + String( CKEDITOR.STYLE_OBJECT ) ] ); + }, + + // Force a reload of the data + reset: function() + { + if ( combo ) + { + delete combo._.panel; + delete combo._.list; + combo._.committed = 0; + combo._.items = {}; + combo._.state = CKEDITOR.TRISTATE_OFF; + } + styles = {}; + stylesList = []; + loadStylesSet(); + } + }); + + editor.on( 'instanceReady', function() { loadStylesSet(); } ); + } + }); + + function sortStyles( styleA, styleB ) + { + var typeA = styleA.type, + typeB = styleB.type; + + return typeA == typeB ? 0 : + typeA == CKEDITOR.STYLE_OBJECT ? -1 : + typeB == CKEDITOR.STYLE_OBJECT ? 1 : + typeB == CKEDITOR.STYLE_BLOCK ? 1 : + -1; + } +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/stylesheetparser/plugin.js b/htdocs/includes/ckeditor/_source/plugins/stylesheetparser/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..8f0adfe988db1ece06e8f7b7c615a173551f3e41 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/stylesheetparser/plugin.js @@ -0,0 +1,148 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @stylesheetParser plugin. + */ + +(function() +{ + // We want to extract only the elements with classes defined in the stylesheets: + function parseClasses( aRules, skipSelectors, validSelectors ) + { + // aRules are just the different rules in the style sheets + // We want to merge them and them split them by commas, so we end up with only + // the selectors + var s = aRules.join(' '); + // Remove selectors splitting the elements, leave only the class selector (.) + s = s.replace( /(,|>|\+|~)/g, ' ' ); + // Remove attribute selectors: table[border="0"] + s = s.replace( /\[[^\]]*/g, '' ); + // Remove Ids: div#main + s = s.replace( /#[^\s]*/g, '' ); + // Remove pseudo-selectors and pseudo-elements: :hover :nth-child(2n+1) ::before + s = s.replace( /\:{1,2}[^\s]*/g, '' ); + + s = s.replace( /\s+/g, ' ' ); + + var aSelectors = s.split( ' ' ), + aClasses = []; + + for ( var i = 0; i < aSelectors.length ; i++ ) + { + var selector = aSelectors[ i ]; + + if ( validSelectors.test( selector ) && !skipSelectors.test( selector ) ) + { + // If we still don't know about this one, add it + if ( CKEDITOR.tools.indexOf( aClasses, selector ) == -1 ) + aClasses.push( selector ); + } + } + + return aClasses; + } + + function LoadStylesCSS( theDoc, skipSelectors, validSelectors ) + { + var styles = [], + // It will hold all the rules of the applied stylesheets (except those internal to CKEditor) + aRules = [], + i; + + for ( i = 0; i < theDoc.styleSheets.length; i++ ) + { + var sheet = theDoc.styleSheets[ i ], + node = sheet.ownerNode || sheet.owningElement; + + // Skip the internal stylesheets + if ( node.getAttribute( 'data-cke-temp' ) ) + continue; + + // Exclude stylesheets injected by extensions + if ( sheet.href && sheet.href.substr(0, 9) == 'chrome://' ) + continue; + + var sheetRules = sheet.cssRules || sheet.rules; + for ( var j = 0; j < sheetRules.length; j++ ) + aRules.push( sheetRules[ j ].selectorText ); + } + + var aClasses = parseClasses( aRules, skipSelectors, validSelectors ); + + // Add each style to our "Styles" collection. + for ( i = 0; i < aClasses.length; i++ ) + { + var oElement = aClasses[ i ].split( '.' ), + element = oElement[ 0 ].toLowerCase(), + sClassName = oElement[ 1 ]; + + styles.push( { + name : element + '.' + sClassName, + element : element, + attributes : {'class' : sClassName} + }); + } + + return styles; + } + + // Register a plugin named "stylesheetparser". + CKEDITOR.plugins.add( 'stylesheetparser', + { + requires: [ 'styles' ], + onLoad : function() + { + var obj = CKEDITOR.editor.prototype; + obj.getStylesSet = CKEDITOR.tools.override( obj.getStylesSet, function( org ) + { + return function( callback ) + { + var self = this; + org.call( this, function( definitions ) + { + // Rules that must be skipped + var skipSelectors = self.config.stylesheetParser_skipSelectors || ( /(^body\.|^\.)/i ), + // Rules that are valid + validSelectors = self.config.stylesheetParser_validSelectors || ( /\w+\.\w+/ ); + + callback( ( self._.stylesDefinitions = definitions.concat( LoadStylesCSS( self.document.$, skipSelectors, validSelectors ) ) ) ); + }); + }; + }); + + } + }); +})(); + + +/** + * A regular expression that defines whether a CSS rule will be + * skipped by the Stylesheet Parser plugin. A CSS rule matching + * the regular expression will be ignored and will not be available + * in the Styles drop-down list. + * @name CKEDITOR.config.stylesheetParser_skipSelectors + * @type RegExp + * @default /(^body\.|^\.)/i + * @since 3.6 + * @see CKEDITOR.config.stylesheetParser_validSelectors + * @example + * // Ignore rules for body and caption elements, classes starting with "high", and any class defined for no specific element. + * config.stylesheetParser_skipSelectors = /(^body\.|^caption\.|\.high|^\.)/i; + */ + + /** + * A regular expression that defines which CSS rules will be used + * by the Stylesheet Parser plugin. A CSS rule matching the regular + * expression will be available in the Styles drop-down list. + * @name CKEDITOR.config.stylesheetParser_validSelectors + * @type RegExp + * @default /\w+\.\w+/ + * @since 3.6 + * @see CKEDITOR.config.stylesheetParser_skipSelectors + * @example + * // Only add rules for p and span elements. + * config.stylesheetParser_validSelectors = /\^(p|span)\.\w+/; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/tab/plugin.js b/htdocs/includes/ckeditor/_source/plugins/tab/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..b8070f69d4f94aa000c3fd2ffcae3608e9da127b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/tab/plugin.js @@ -0,0 +1,367 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var meta = + { + editorFocus : false, + modes : { wysiwyg:1, source:1 } + }; + + var blurCommand = + { + exec : function( editor ) + { + editor.container.focusNext( true, editor.tabIndex ); + } + }; + + var blurBackCommand = + { + exec : function( editor ) + { + editor.container.focusPrevious( true, editor.tabIndex ); + } + }; + + function selectNextCellCommand( backward ) + { + return { + editorFocus : false, + canUndo : false, + modes : { wysiwyg : 1 }, + exec : function( editor ) + { + if ( editor.focusManager.hasFocus ) + { + var sel = editor.getSelection(), + ancestor = sel.getCommonAncestor(), + cell; + + if ( ( cell = ( ancestor.getAscendant( 'td', true ) || ancestor.getAscendant( 'th', true ) ) ) ) + { + var resultRange = new CKEDITOR.dom.range( editor.document ), + next = CKEDITOR.tools.tryThese( function() + { + var row = cell.getParent(), + next = row.$.cells[ cell.$.cellIndex + ( backward ? - 1 : 1 ) ]; + + // Invalid any empty value. + next.parentNode.parentNode; + return next; + }, + function() + { + var row = cell.getParent(), + table = row.getAscendant( 'table' ), + nextRow = table.$.rows[ row.$.rowIndex + ( backward ? - 1 : 1 ) ]; + + return nextRow.cells[ backward? nextRow.cells.length -1 : 0 ]; + }); + + // Clone one more row at the end of table and select the first newly established cell. + if ( ! ( next || backward ) ) + { + var table = cell.getAscendant( 'table' ).$, + cells = cell.getParent().$.cells; + + var newRow = new CKEDITOR.dom.element( table.insertRow( -1 ), editor.document ); + + for ( var i = 0, count = cells.length ; i < count; i++ ) + { + var newCell = newRow.append( new CKEDITOR.dom.element( + cells[ i ], editor.document ).clone( false, false ) ); + !CKEDITOR.env.ie && newCell.appendBogus(); + } + + resultRange.moveToElementEditStart( newRow ); + } + else if ( next ) + { + next = new CKEDITOR.dom.element( next ); + resultRange.moveToElementEditStart( next ); + // Avoid selecting empty block makes the cursor blind. + if ( !( resultRange.checkStartOfBlock() && resultRange.checkEndOfBlock() ) ) + resultRange.selectNodeContents( next ); + } + else + return true; + + resultRange.select( true ); + return true; + } + } + return false; + } + }; + } + + CKEDITOR.plugins.add( 'tab', + { + requires : [ 'keystrokes' ], + + init : function( editor ) + { + var tabTools = editor.config.enableTabKeyTools !== false, + tabSpaces = editor.config.tabSpaces || 0, + tabText = ''; + + while ( tabSpaces-- ) + tabText += '\xa0'; + + if ( tabText ) + { + editor.on( 'key', function( ev ) + { + if ( ev.data.keyCode == 9 ) // TAB + { + editor.insertHtml( tabText ); + ev.cancel(); + } + }); + } + + if ( tabTools ) + { + editor.on( 'key', function( ev ) + { + if ( ev.data.keyCode == 9 && editor.execCommand( 'selectNextCell' ) || // TAB + ev.data.keyCode == ( CKEDITOR.SHIFT + 9 ) && editor.execCommand( 'selectPreviousCell' ) ) // SHIFT+TAB + ev.cancel(); + }); + } + + if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko ) + { + editor.on( 'key', function( ev ) + { + var keyCode = ev.data.keyCode; + + if ( keyCode == 9 && !tabText ) // TAB + { + ev.cancel(); + editor.execCommand( 'blur' ); + } + + if ( keyCode == ( CKEDITOR.SHIFT + 9 ) ) // SHIFT+TAB + { + editor.execCommand( 'blurBack' ); + ev.cancel(); + } + }); + } + + editor.addCommand( 'blur', CKEDITOR.tools.extend( blurCommand, meta ) ); + editor.addCommand( 'blurBack', CKEDITOR.tools.extend( blurBackCommand, meta ) ); + editor.addCommand( 'selectNextCell', selectNextCellCommand() ); + editor.addCommand( 'selectPreviousCell', selectNextCellCommand( true ) ); + } + }); +})(); + +/** + * Moves the UI focus to the element following this element in the tabindex + * order. + * @example + * var element = CKEDITOR.document.getById( 'example' ); + * element.focusNext(); + */ +CKEDITOR.dom.element.prototype.focusNext = function( ignoreChildren, indexToUse ) +{ + var $ = this.$, + curTabIndex = ( indexToUse === undefined ? this.getTabIndex() : indexToUse ), + passedCurrent, enteredCurrent, + elected, electedTabIndex, + element, elementTabIndex; + + if ( curTabIndex <= 0 ) + { + // If this element has tabindex <= 0 then we must simply look for any + // element following it containing tabindex=0. + + element = this.getNextSourceNode( ignoreChildren, CKEDITOR.NODE_ELEMENT ); + + while ( element ) + { + if ( element.isVisible() && element.getTabIndex() === 0 ) + { + elected = element; + break; + } + + element = element.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT ); + } + } + else + { + // If this element has tabindex > 0 then we must look for: + // 1. An element following this element with the same tabindex. + // 2. The first element in source other with the lowest tabindex + // that is higher than this element tabindex. + // 3. The first element with tabindex=0. + + element = this.getDocument().getBody().getFirst(); + + while ( ( element = element.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT ) ) ) + { + if ( !passedCurrent ) + { + if ( !enteredCurrent && element.equals( this ) ) + { + enteredCurrent = true; + + // Ignore this element, if required. + if ( ignoreChildren ) + { + if ( !( element = element.getNextSourceNode( true, CKEDITOR.NODE_ELEMENT ) ) ) + break; + passedCurrent = 1; + } + } + else if ( enteredCurrent && !this.contains( element ) ) + passedCurrent = 1; + } + + if ( !element.isVisible() || ( elementTabIndex = element.getTabIndex() ) < 0 ) + continue; + + if ( passedCurrent && elementTabIndex == curTabIndex ) + { + elected = element; + break; + } + + if ( elementTabIndex > curTabIndex && ( !elected || !electedTabIndex || elementTabIndex < electedTabIndex ) ) + { + elected = element; + electedTabIndex = elementTabIndex; + } + else if ( !elected && elementTabIndex === 0 ) + { + elected = element; + electedTabIndex = elementTabIndex; + } + } + } + + if ( elected ) + elected.focus(); +}; + +/** + * Moves the UI focus to the element before this element in the tabindex order. + * @example + * var element = CKEDITOR.document.getById( 'example' ); + * element.focusPrevious(); + */ +CKEDITOR.dom.element.prototype.focusPrevious = function( ignoreChildren, indexToUse ) +{ + var $ = this.$, + curTabIndex = ( indexToUse === undefined ? this.getTabIndex() : indexToUse ), + passedCurrent, enteredCurrent, + elected, + electedTabIndex = 0, + elementTabIndex; + + var element = this.getDocument().getBody().getLast(); + + while ( ( element = element.getPreviousSourceNode( false, CKEDITOR.NODE_ELEMENT ) ) ) + { + if ( !passedCurrent ) + { + if ( !enteredCurrent && element.equals( this ) ) + { + enteredCurrent = true; + + // Ignore this element, if required. + if ( ignoreChildren ) + { + if ( !( element = element.getPreviousSourceNode( true, CKEDITOR.NODE_ELEMENT ) ) ) + break; + passedCurrent = 1; + } + } + else if ( enteredCurrent && !this.contains( element ) ) + passedCurrent = 1; + } + + if ( !element.isVisible() || ( elementTabIndex = element.getTabIndex() ) < 0 ) + continue; + + if ( curTabIndex <= 0 ) + { + // If this element has tabindex <= 0 then we must look for: + // 1. An element before this one containing tabindex=0. + // 2. The last element with the highest tabindex. + + if ( passedCurrent && elementTabIndex === 0 ) + { + elected = element; + break; + } + + if ( elementTabIndex > electedTabIndex ) + { + elected = element; + electedTabIndex = elementTabIndex; + } + } + else + { + // If this element has tabindex > 0 we must look for: + // 1. An element preceeding this one, with the same tabindex. + // 2. The last element in source other with the highest tabindex + // that is lower than this element tabindex. + + if ( passedCurrent && elementTabIndex == curTabIndex ) + { + elected = element; + break; + } + + if ( elementTabIndex < curTabIndex && ( !elected || elementTabIndex > electedTabIndex ) ) + { + elected = element; + electedTabIndex = elementTabIndex; + } + } + } + + if ( elected ) + elected.focus(); +}; + +/** + * Intructs the editor to add a number of spaces (&nbsp;) to the text when + * hitting the TAB key. If set to zero, the TAB key will be used to move the + * cursor focus to the next element in the page, out of the editor focus. + * @name CKEDITOR.config.tabSpaces + * @type Number + * @default 0 + * @example + * config.tabSpaces = 4; + */ + +/** + * Allow context-sensitive tab key behaviors, including the following scenarios: + * <h5>When selection is anchored inside <b>table cells</b>:</h5> + * <ul> + * <li>If TAB is pressed, select the contents of the "next" cell. If in the last cell in the table, add a new row to it and focus its first cell.</li> + * <li>If SHIFT+TAB is pressed, select the contents of the "previous" cell. Do nothing when it's in the first cell.</li> + * </ul> + * @name CKEDITOR.config.enableTabKeyTools + * @type Boolean + * @default true + * @example + * config.enableTabKeyTools = false; + */ + +// If the TAB key is not supposed to be enabled for navigation, the following +// settings could be used alternatively: +// config.keystrokes.push( +// [ CKEDITOR.ALT + 38 /*Arrow Up*/, 'selectPreviousCell' ], +// [ CKEDITOR.ALT + 40 /*Arrow Down*/, 'selectNextCell' ] +// ); diff --git a/htdocs/includes/ckeditor/_source/plugins/table/dialogs/table.js b/htdocs/includes/ckeditor/_source/plugins/table/dialogs/table.js new file mode 100644 index 0000000000000000000000000000000000000000..d4bfb8937430e05b5ec5159340657c68528cf78d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/table/dialogs/table.js @@ -0,0 +1,618 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var defaultToPixel = CKEDITOR.tools.cssLength; + + var commitValue = function( data ) + { + var id = this.id; + if ( !data.info ) + data.info = {}; + data.info[id] = this.getValue(); + }; + + function tableColumns( table ) + { + var cols = 0, maxCols = 0; + for ( var i = 0, row, rows = table.$.rows.length; i < rows; i++ ) + { + row = table.$.rows[ i ], cols = 0; + for ( var j = 0, cell, cells = row.cells.length; j < cells; j++ ) + { + cell = row.cells[ j ]; + cols += cell.colSpan; + } + + cols > maxCols && ( maxCols = cols ); + } + + return maxCols; + } + + + // Whole-positive-integer validator. + function validatorNum( msg ) + { + return function() + { + var value = this.getValue(), + pass = !!( CKEDITOR.dialog.validate.integer()( value ) && value > 0 ); + + if ( !pass ) + { + alert( msg ); + this.select(); + } + + return pass; + }; + } + + function tableDialog( editor, command ) + { + var makeElement = function( name ) + { + return new CKEDITOR.dom.element( name, editor.document ); + }; + + var dialogadvtab = editor.plugins.dialogadvtab; + + return { + title : editor.lang.table.title, + minWidth : 310, + minHeight : CKEDITOR.env.ie ? 310 : 280, + + onLoad : function() + { + var dialog = this; + + var styles = dialog.getContentElement( 'advanced', 'advStyles' ); + + if ( styles ) + { + styles.on( 'change', function( evt ) + { + // Synchronize width value. + var width = this.getStyle( 'width', '' ), + txtWidth = dialog.getContentElement( 'info', 'txtWidth' ); + + txtWidth && txtWidth.setValue( width, true ); + + // Synchronize height value. + var height = this.getStyle( 'height', '' ), + txtHeight = dialog.getContentElement( 'info', 'txtHeight' ); + + txtHeight && txtHeight.setValue( height, true ); + }); + } + }, + + onShow : function() + { + // Detect if there's a selected table. + var selection = editor.getSelection(), + ranges = selection.getRanges(), + selectedTable = null; + + var rowsInput = this.getContentElement( 'info', 'txtRows' ), + colsInput = this.getContentElement( 'info', 'txtCols' ), + widthInput = this.getContentElement( 'info', 'txtWidth' ), + heightInput = this.getContentElement( 'info', 'txtHeight' ); + + if ( command == 'tableProperties' ) + { + if ( ( selectedTable = selection.getSelectedElement() ) ) + selectedTable = selectedTable.getAscendant( 'table', true ); + else if ( ranges.length > 0 ) + { + // Webkit could report the following range on cell selection (#4948): + // <table><tr><td>[ </td></tr></table>] + if ( CKEDITOR.env.webkit ) + ranges[ 0 ].shrink( CKEDITOR.NODE_ELEMENT ); + + var rangeRoot = ranges[0].getCommonAncestor( true ); + selectedTable = rangeRoot.getAscendant( 'table', true ); + } + + // Save a reference to the selected table, and push a new set of default values. + this._.selectedElement = selectedTable; + } + + // Enable or disable the row, cols, width fields. + if ( selectedTable ) + { + this.setupContent( selectedTable ); + rowsInput && rowsInput.disable(); + colsInput && colsInput.disable(); + } + else + { + rowsInput && rowsInput.enable(); + colsInput && colsInput.enable(); + } + + // Call the onChange method for the widht and height fields so + // they get reflected into the Advanced tab. + widthInput && widthInput.onChange(); + heightInput && heightInput.onChange(); + }, + onOk : function() + { + var selection = editor.getSelection(), + bms = this._.selectedElement && selection.createBookmarks(); + + var table = this._.selectedElement || makeElement( 'table' ), + me = this, + data = {}; + + this.commitContent( data, table ); + + if ( data.info ) + { + var info = data.info; + + // Generate the rows and cols. + if ( !this._.selectedElement ) + { + var tbody = table.append( makeElement( 'tbody' ) ), + rows = parseInt( info.txtRows, 10 ) || 0, + cols = parseInt( info.txtCols, 10 ) || 0; + + for ( var i = 0 ; i < rows ; i++ ) + { + var row = tbody.append( makeElement( 'tr' ) ); + for ( var j = 0 ; j < cols ; j++ ) + { + var cell = row.append( makeElement( 'td' ) ); + if ( !CKEDITOR.env.ie ) + cell.append( makeElement( 'br' ) ); + } + } + } + + // Modify the table headers. Depends on having rows and cols generated + // correctly so it can't be done in commit functions. + + // Should we make a <thead>? + var headers = info.selHeaders; + if ( !table.$.tHead && ( headers == 'row' || headers == 'both' ) ) + { + var thead = new CKEDITOR.dom.element( table.$.createTHead() ); + tbody = table.getElementsByTag( 'tbody' ).getItem( 0 ); + var theRow = tbody.getElementsByTag( 'tr' ).getItem( 0 ); + + // Change TD to TH: + for ( i = 0 ; i < theRow.getChildCount() ; i++ ) + { + var th = theRow.getChild( i ); + // Skip bookmark nodes. (#6155) + if ( th.type == CKEDITOR.NODE_ELEMENT && !th.data( 'cke-bookmark' ) ) + { + th.renameNode( 'th' ); + th.setAttribute( 'scope', 'col' ); + } + } + thead.append( theRow.remove() ); + } + + if ( table.$.tHead !== null && !( headers == 'row' || headers == 'both' ) ) + { + // Move the row out of the THead and put it in the TBody: + thead = new CKEDITOR.dom.element( table.$.tHead ); + tbody = table.getElementsByTag( 'tbody' ).getItem( 0 ); + + var previousFirstRow = tbody.getFirst(); + while ( thead.getChildCount() > 0 ) + { + theRow = thead.getFirst(); + for ( i = 0; i < theRow.getChildCount() ; i++ ) + { + var newCell = theRow.getChild( i ); + if ( newCell.type == CKEDITOR.NODE_ELEMENT ) + { + newCell.renameNode( 'td' ); + newCell.removeAttribute( 'scope' ); + } + } + theRow.insertBefore( previousFirstRow ); + } + thead.remove(); + } + + // Should we make all first cells in a row TH? + if ( !this.hasColumnHeaders && ( headers == 'col' || headers == 'both' ) ) + { + for ( row = 0 ; row < table.$.rows.length ; row++ ) + { + newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] ); + newCell.renameNode( 'th' ); + newCell.setAttribute( 'scope', 'row' ); + } + } + + // Should we make all first TH-cells in a row make TD? If 'yes' we do it the other way round :-) + if ( ( this.hasColumnHeaders ) && !( headers == 'col' || headers == 'both' ) ) + { + for ( i = 0 ; i < table.$.rows.length ; i++ ) + { + row = new CKEDITOR.dom.element( table.$.rows[i] ); + if ( row.getParent().getName() == 'tbody' ) + { + newCell = new CKEDITOR.dom.element( row.$.cells[0] ); + newCell.renameNode( 'td' ); + newCell.removeAttribute( 'scope' ); + } + } + } + + // Set the width and height. + info.txtHeight ? table.setStyle( 'height', info.txtHeight ) : table.removeStyle( 'height' ); + info.txtWidth ? table.setStyle( 'width', info.txtWidth ) : table.removeStyle( 'width' ); + + if ( !table.getAttribute( 'style' ) ) + table.removeAttribute( 'style' ); + } + + // Insert the table element if we're creating one. + if ( !this._.selectedElement ) + { + editor.insertElement( table ); + // Override the default cursor position after insertElement to place + // cursor inside the first cell (#7959), IE needs a while. + setTimeout( function() + { + var firstCell = new CKEDITOR.dom.element( table.$.rows[ 0 ].cells[ 0 ] ); + var range = new CKEDITOR.dom.range( editor.document ); + range.moveToPosition( firstCell, CKEDITOR.POSITION_AFTER_START ); + range.select( 1 ); + }, 0 ); + } + // Properly restore the selection, (#4822) but don't break + // because of this, e.g. updated table caption. + else + try { selection.selectBookmarks( bms ); } catch( er ){} + }, + contents : [ + { + id : 'info', + label : editor.lang.table.title, + elements : + [ + { + type : 'hbox', + widths : [ null, null ], + styles : [ 'vertical-align:top' ], + children : + [ + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'text', + id : 'txtRows', + 'default' : 3, + label : editor.lang.table.rows, + required : true, + controlStyle : 'width:5em', + validate : validatorNum( editor.lang.table.invalidRows ), + setup : function( selectedElement ) + { + this.setValue( selectedElement.$.rows.length ); + }, + commit : commitValue + }, + { + type : 'text', + id : 'txtCols', + 'default' : 2, + label : editor.lang.table.columns, + required : true, + controlStyle : 'width:5em', + validate : validatorNum( editor.lang.table.invalidCols ), + setup : function( selectedTable ) + { + this.setValue( tableColumns( selectedTable ) ); + }, + commit : commitValue + }, + { + type : 'html', + html : ' ' + }, + { + type : 'select', + id : 'selHeaders', + 'default' : '', + label : editor.lang.table.headers, + items : + [ + [ editor.lang.table.headersNone, '' ], + [ editor.lang.table.headersRow, 'row' ], + [ editor.lang.table.headersColumn, 'col' ], + [ editor.lang.table.headersBoth, 'both' ] + ], + setup : function( selectedTable ) + { + // Fill in the headers field. + var dialog = this.getDialog(); + dialog.hasColumnHeaders = true; + + // Check if all the first cells in every row are TH + for ( var row = 0 ; row < selectedTable.$.rows.length ; row++ ) + { + // If just one cell isn't a TH then it isn't a header column + var headCell = selectedTable.$.rows[row].cells[0]; + if ( headCell && headCell.nodeName.toLowerCase() != 'th' ) + { + dialog.hasColumnHeaders = false; + break; + } + } + + // Check if the table contains <thead>. + if ( ( selectedTable.$.tHead !== null) ) + this.setValue( dialog.hasColumnHeaders ? 'both' : 'row' ); + else + this.setValue( dialog.hasColumnHeaders ? 'col' : '' ); + }, + commit : commitValue + }, + { + type : 'text', + id : 'txtBorder', + 'default' : 1, + label : editor.lang.table.border, + controlStyle : 'width:3em', + validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidBorder ), + setup : function( selectedTable ) + { + this.setValue( selectedTable.getAttribute( 'border' ) || '' ); + }, + commit : function( data, selectedTable ) + { + if ( this.getValue() ) + selectedTable.setAttribute( 'border', this.getValue() ); + else + selectedTable.removeAttribute( 'border' ); + } + }, + { + id : 'cmbAlign', + type : 'select', + 'default' : '', + label : editor.lang.common.align, + items : + [ + [ editor.lang.common.notSet , ''], + [ editor.lang.common.alignLeft , 'left'], + [ editor.lang.common.alignCenter , 'center'], + [ editor.lang.common.alignRight , 'right'] + ], + setup : function( selectedTable ) + { + this.setValue( selectedTable.getAttribute( 'align' ) || '' ); + }, + commit : function( data, selectedTable ) + { + if ( this.getValue() ) + selectedTable.setAttribute( 'align', this.getValue() ); + else + selectedTable.removeAttribute( 'align' ); + } + } + ] + }, + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'hbox', + widths : [ '5em' ], + children : + [ + { + type : 'text', + id : 'txtWidth', + controlStyle : 'width:5em', + label : editor.lang.common.width, + title : editor.lang.common.cssLengthTooltip, + 'default' : 500, + getValue : defaultToPixel, + validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.width ) ), + onChange : function() + { + var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' ); + styles && styles.updateStyle( 'width', this.getValue() ); + }, + setup : function( selectedTable ) + { + var val = selectedTable.getStyle( 'width' ); + val && this.setValue( val ); + }, + commit : commitValue + } + ] + }, + { + type : 'hbox', + widths : [ '5em' ], + children : + [ + { + type : 'text', + id : 'txtHeight', + controlStyle : 'width:5em', + label : editor.lang.common.height, + title : editor.lang.common.cssLengthTooltip, + 'default' : '', + getValue : defaultToPixel, + validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.height ) ), + onChange : function() + { + var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' ); + styles && styles.updateStyle( 'height', this.getValue() ); + }, + + setup : function( selectedTable ) + { + var val = selectedTable.getStyle( 'height' ); + val && this.setValue( val ); + }, + commit : commitValue + } + ] + }, + { + type : 'html', + html : ' ' + }, + { + type : 'text', + id : 'txtCellSpace', + controlStyle : 'width:3em', + label : editor.lang.table.cellSpace, + 'default' : 1, + validate : CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellSpacing ), + setup : function( selectedTable ) + { + this.setValue( selectedTable.getAttribute( 'cellSpacing' ) || '' ); + }, + commit : function( data, selectedTable ) + { + if ( this.getValue() ) + selectedTable.setAttribute( 'cellSpacing', this.getValue() ); + else + selectedTable.removeAttribute( 'cellSpacing' ); + } + }, + { + type : 'text', + id : 'txtCellPad', + controlStyle : 'width:3em', + label : editor.lang.table.cellPad, + 'default' : 1, + validate : CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellPadding ), + setup : function( selectedTable ) + { + this.setValue( selectedTable.getAttribute( 'cellPadding' ) || '' ); + }, + commit : function( data, selectedTable ) + { + if ( this.getValue() ) + selectedTable.setAttribute( 'cellPadding', this.getValue() ); + else + selectedTable.removeAttribute( 'cellPadding' ); + } + } + ] + } + ] + }, + { + type : 'html', + align : 'right', + html : '' + }, + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'text', + id : 'txtCaption', + label : editor.lang.table.caption, + setup : function( selectedTable ) + { + this.enable(); + + var nodeList = selectedTable.getElementsByTag( 'caption' ); + if ( nodeList.count() > 0 ) + { + var caption = nodeList.getItem( 0 ); + var firstElementChild = caption.getFirst( CKEDITOR.dom.walker.nodeType( CKEDITOR.NODE_ELEMENT ) ); + + if ( firstElementChild && !firstElementChild.equals( caption.getBogus() ) ) + { + this.disable(); + this.setValue( caption.getText() ); + return; + } + + caption = CKEDITOR.tools.trim( caption.getText() ); + this.setValue( caption ); + } + }, + commit : function( data, table ) + { + if ( !this.isEnabled() ) + return; + + var caption = this.getValue(), + captionElement = table.getElementsByTag( 'caption' ); + if ( caption ) + { + if ( captionElement.count() > 0 ) + { + captionElement = captionElement.getItem( 0 ); + captionElement.setHtml( '' ); + } + else + { + captionElement = new CKEDITOR.dom.element( 'caption', editor.document ); + if ( table.getChildCount() ) + captionElement.insertBefore( table.getFirst() ); + else + captionElement.appendTo( table ); + } + captionElement.append( new CKEDITOR.dom.text( caption, editor.document ) ); + } + else if ( captionElement.count() > 0 ) + { + for ( var i = captionElement.count() - 1 ; i >= 0 ; i-- ) + captionElement.getItem( i ).remove(); + } + } + }, + { + type : 'text', + id : 'txtSummary', + label : editor.lang.table.summary, + setup : function( selectedTable ) + { + this.setValue( selectedTable.getAttribute( 'summary' ) || '' ); + }, + commit : function( data, selectedTable ) + { + if ( this.getValue() ) + selectedTable.setAttribute( 'summary', this.getValue() ); + else + selectedTable.removeAttribute( 'summary' ); + } + } + ] + } + ] + }, + dialogadvtab && dialogadvtab.createAdvancedTab( editor ) + ] + }; + } + + CKEDITOR.dialog.add( 'table', function( editor ) + { + return tableDialog( editor, 'table' ); + } ); + CKEDITOR.dialog.add( 'tableProperties', function( editor ) + { + return tableDialog( editor, 'tableProperties' ); + } ); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/table/plugin.js b/htdocs/includes/ckeditor/_source/plugins/table/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..4bc5992b959052029b44be6ed439037c4f2df6d4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/table/plugin.js @@ -0,0 +1,79 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'table', +{ + requires : [ 'dialog' ], + init : function( editor ) + { + var table = CKEDITOR.plugins.table, + lang = editor.lang.table; + + editor.addCommand( 'table', new CKEDITOR.dialogCommand( 'table' ) ); + editor.addCommand( 'tableProperties', new CKEDITOR.dialogCommand( 'tableProperties' ) ); + + editor.ui.addButton( 'Table', + { + label : lang.toolbar, + command : 'table' + }); + + CKEDITOR.dialog.add( 'table', this.path + 'dialogs/table.js' ); + CKEDITOR.dialog.add( 'tableProperties', this.path + 'dialogs/table.js' ); + + // If the "menu" plugin is loaded, register the menu items. + if ( editor.addMenuItems ) + { + editor.addMenuItems( + { + table : + { + label : lang.menu, + command : 'tableProperties', + group : 'table', + order : 5 + }, + + tabledelete : + { + label : lang.deleteTable, + command : 'tableDelete', + group : 'table', + order : 1 + } + } ); + } + + editor.on( 'doubleclick', function( evt ) + { + var element = evt.data.element; + + if ( element.is( 'table' ) ) + evt.data.dialog = 'tableProperties'; + }); + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element, selection ) + { + if ( !element || element.isReadOnly() ) + return null; + + var isTable = element.hasAscendant( 'table', 1 ); + + if ( isTable ) + { + return { + tabledelete : CKEDITOR.TRISTATE_OFF, + table : CKEDITOR.TRISTATE_OFF + }; + } + + return null; + } ); + } + } +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/tableresize/plugin.js b/htdocs/includes/ckeditor/_source/plugins/tableresize/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..a28ab12360c602bab2d1a0850b3e54f2d7f4ee2d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/tableresize/plugin.js @@ -0,0 +1,443 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var pxUnit = CKEDITOR.tools.cssLength, + needsIEHacks = CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks || CKEDITOR.env.version < 7 ); + + function getWidth( el ) + { + return CKEDITOR.env.ie ? el.$.clientWidth : parseInt( el.getComputedStyle( 'width' ), 10 ); + } + + function getBorderWidth( element, side ) + { + var computed = element.getComputedStyle( 'border-' + side + '-width' ), + borderMap = + { + thin: '0px', + medium: '1px', + thick: '2px' + }; + + if ( computed.indexOf( 'px' ) < 0 ) + { + // look up keywords + if ( computed in borderMap && element.getComputedStyle( 'border-style' ) != 'none' ) + computed = borderMap[ computed ]; + else + computed = 0; + } + + return parseInt( computed, 10 ); + } + + // Gets the table row that contains the most columns. + function getMasterPillarRow( table ) + { + var $rows = table.$.rows, + maxCells = 0, cellsCount, + $elected, $tr; + + for ( var i = 0, len = $rows.length ; i < len; i++ ) + { + $tr = $rows[ i ]; + cellsCount = $tr.cells.length; + + if ( cellsCount > maxCells ) + { + maxCells = cellsCount; + $elected = $tr; + } + } + + return $elected; + } + + function buildTableColumnPillars( table ) + { + var pillars = [], + pillarIndex = -1, + rtl = ( table.getComputedStyle( 'direction' ) == 'rtl' ); + + // Get the raw row element that cointains the most columns. + var $tr = getMasterPillarRow( table ); + + // Get the tbody element and position, which will be used to set the + // top and bottom boundaries. + var tbody = new CKEDITOR.dom.element( table.$.tBodies[ 0 ] ), + tbodyPosition = tbody.getDocumentPosition(); + + // Loop thorugh all cells, building pillars after each one of them. + for ( var i = 0, len = $tr.cells.length ; i < len ; i++ ) + { + // Both the current cell and the successive one will be used in the + // pillar size calculation. + var td = new CKEDITOR.dom.element( $tr.cells[ i ] ), + nextTd = $tr.cells[ i + 1 ] && new CKEDITOR.dom.element( $tr.cells[ i + 1 ] ); + + pillarIndex += td.$.colSpan || 1; + + // Calculate the pillar boundary positions. + var pillarLeft, pillarRight, pillarWidth; + + var x = td.getDocumentPosition().x; + + // Calculate positions based on the current cell. + rtl ? + pillarRight = x + getBorderWidth( td, 'left' ) : + pillarLeft = x + td.$.offsetWidth - getBorderWidth( td, 'right' ); + + // Calculate positions based on the next cell, if available. + if ( nextTd ) + { + x = nextTd.getDocumentPosition().x; + + rtl ? + pillarLeft = x + nextTd.$.offsetWidth - getBorderWidth( nextTd, 'right' ) : + pillarRight = x + getBorderWidth( nextTd, 'left' ); + } + // Otherwise calculate positions based on the table (for last cell). + else + { + x = table.getDocumentPosition().x; + + rtl ? + pillarLeft = x : + pillarRight = x + table.$.offsetWidth; + } + + pillarWidth = Math.max( pillarRight - pillarLeft, 3 ); + + // The pillar should reflects exactly the shape of the hovered + // column border line. + pillars.push( { + table : table, + index : pillarIndex, + x : pillarLeft, + y : tbodyPosition.y, + width : pillarWidth, + height : tbody.$.offsetHeight, + rtl : rtl } ); + } + + return pillars; + } + + function getPillarAtPosition( pillars, positionX ) + { + for ( var i = 0, len = pillars.length ; i < len ; i++ ) + { + var pillar = pillars[ i ]; + + if ( positionX >= pillar.x && positionX <= ( pillar.x + pillar.width ) ) + return pillar; + } + + return null; + } + + function cancel( evt ) + { + ( evt.data || evt ).preventDefault(); + } + + function columnResizer( editor ) + { + var pillar, + document, + resizer, + isResizing, + startOffset, + currentShift; + + var leftSideCells, rightSideCells, leftShiftBoundary, rightShiftBoundary; + + function detach() + { + pillar = null; + currentShift = 0; + isResizing = 0; + + document.removeListener( 'mouseup', onMouseUp ); + resizer.removeListener( 'mousedown', onMouseDown ); + resizer.removeListener( 'mousemove', onMouseMove ); + + document.getBody().setStyle( 'cursor', 'auto' ); + + // Hide the resizer (remove it on IE7 - #5890). + needsIEHacks ? resizer.remove() : resizer.hide(); + } + + function resizeStart() + { + // Before starting to resize, figure out which cells to change + // and the boundaries of this resizing shift. + + var columnIndex = pillar.index, + map = CKEDITOR.tools.buildTableMap( pillar.table ), + leftColumnCells = [], + rightColumnCells = [], + leftMinSize = Number.MAX_VALUE, + rightMinSize = leftMinSize, + rtl = pillar.rtl; + + for ( var i = 0, len = map.length ; i < len ; i++ ) + { + var row = map[ i ], + leftCell = row[ columnIndex + ( rtl ? 1 : 0 ) ], + rightCell = row[ columnIndex + ( rtl ? 0 : 1 ) ]; + + leftCell = leftCell && new CKEDITOR.dom.element( leftCell ); + rightCell = rightCell && new CKEDITOR.dom.element( rightCell ); + + if ( !leftCell || !rightCell || !leftCell.equals( rightCell ) ) + { + leftCell && ( leftMinSize = Math.min( leftMinSize, getWidth( leftCell ) ) ); + rightCell && ( rightMinSize = Math.min( rightMinSize, getWidth( rightCell ) ) ); + + leftColumnCells.push( leftCell ); + rightColumnCells.push( rightCell ); + } + } + + // Cache the list of cells to be resized. + leftSideCells = leftColumnCells; + rightSideCells = rightColumnCells; + + // Cache the resize limit boundaries. + leftShiftBoundary = pillar.x - leftMinSize; + rightShiftBoundary = pillar.x + rightMinSize; + + resizer.setOpacity( 0.5 ); + startOffset = parseInt( resizer.getStyle( 'left' ), 10 ); + currentShift = 0; + isResizing = 1; + + resizer.on( 'mousemove', onMouseMove ); + + // Prevent the native drag behavior otherwise 'mousemove' won't fire. + document.on( 'dragstart', cancel ); + } + + function resizeEnd() + { + isResizing = 0; + + resizer.setOpacity( 0 ); + + currentShift && resizeColumn(); + + var table = pillar.table; + setTimeout( function () { table.removeCustomData( '_cke_table_pillars' ); }, 0 ); + + document.removeListener( 'dragstart', cancel ); + } + + function resizeColumn() + { + var rtl = pillar.rtl, + cellsCount = rtl ? rightSideCells.length : leftSideCells.length; + + // Perform the actual resize to table cells, only for those by side of the pillar. + for ( var i = 0 ; i < cellsCount ; i++ ) + { + var leftCell = leftSideCells[ i ], + rightCell = rightSideCells[ i ], + table = pillar.table; + + // Defer the resizing to avoid any interference among cells. + CKEDITOR.tools.setTimeout( + function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift ) + { + leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 0 ) ) ); + rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 0 ) ) ); + + // If we're in the last cell, we need to resize the table as well + if ( tableWidth ) + table.setStyle( 'width', pxUnit( tableWidth + sizeShift * ( rtl ? -1 : 1 ) ) ); + } + , 0, + this, [ + leftCell, leftCell && getWidth( leftCell ), + rightCell, rightCell && getWidth( rightCell ), + ( !leftCell || !rightCell ) && ( getWidth( table ) + getBorderWidth( table, 'left' ) + getBorderWidth( table, 'right' ) ), + currentShift ] ); + } + } + + function onMouseDown( evt ) + { + cancel( evt ); + + resizeStart(); + + document.on( 'mouseup', onMouseUp, this ); + } + + function onMouseUp( evt ) + { + evt.removeListener(); + + resizeEnd(); + } + + function onMouseMove( evt ) + { + move( evt.data.$.clientX ); + } + + document = editor.document; + + resizer = CKEDITOR.dom.element.createFromHtml( + '<div data-cke-temp=1 contenteditable=false unselectable=on '+ + 'style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;' + + 'padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', document ); + + // Except on IE6/7 (#5890), place the resizer after body to prevent it + // from being editable. + if ( !needsIEHacks ) + document.getDocumentElement().append( resizer ); + + this.attachTo = function( targetPillar ) + { + // Accept only one pillar at a time. + if ( isResizing ) + return; + + // On IE6/7, we append the resizer everytime we need it. (#5890) + if ( needsIEHacks ) + { + document.getBody().append( resizer ); + currentShift = 0; + } + + pillar = targetPillar; + + resizer.setStyles( + { + width: pxUnit( targetPillar.width ), + height : pxUnit( targetPillar.height ), + left : pxUnit( targetPillar.x ), + top : pxUnit( targetPillar.y ) + }); + + // In IE6/7, it's not possible to have custom cursors for floating + // elements in an editable document. Show the resizer in that case, + // to give the user a visual clue. + needsIEHacks && resizer.setOpacity( 0.25 ); + + resizer.on( 'mousedown', onMouseDown, this ); + + document.getBody().setStyle( 'cursor', 'col-resize' ); + + // Display the resizer to receive events but don't show it, + // only change the cursor to resizable shape. + resizer.show(); + }; + + var move = this.move = function( posX ) + { + if ( !pillar ) + return 0; + + if ( !isResizing && ( posX < pillar.x || posX > ( pillar.x + pillar.width ) ) ) + { + detach(); + return 0; + } + + var resizerNewPosition = posX - Math.round( resizer.$.offsetWidth / 2 ); + + if ( isResizing ) + { + if ( resizerNewPosition == leftShiftBoundary || resizerNewPosition == rightShiftBoundary ) + return 1; + + resizerNewPosition = Math.max( resizerNewPosition, leftShiftBoundary ); + resizerNewPosition = Math.min( resizerNewPosition, rightShiftBoundary ); + + currentShift = resizerNewPosition - startOffset; + } + + resizer.setStyle( 'left', pxUnit( resizerNewPosition ) ); + + return 1; + }; + } + + function clearPillarsCache( evt ) + { + var target = evt.data.getTarget(); + + if ( evt.name == 'mouseout' ) + { + // Bypass interal mouse move. + if ( !target.is ( 'table' ) ) + return; + + var dest = new CKEDITOR.dom.element( evt.data.$.relatedTarget || evt.data.$.toElement ); + while( dest && dest.$ && !dest.equals( target ) && !dest.is( 'body' ) ) + dest = dest.getParent(); + if ( !dest || dest.equals( target ) ) + return; + } + + target.getAscendant( 'table', 1 ).removeCustomData( '_cke_table_pillars' ); + evt.removeListener(); + } + + CKEDITOR.plugins.add( 'tableresize', + { + requires : [ 'tabletools' ], + init : function( editor ) + { + editor.on( 'contentDom', function() + { + var resizer; + + editor.document.getBody().on( 'mousemove', function( evt ) + { + evt = evt.data; + + // If we're already attached to a pillar, simply move the + // resizer. + if ( resizer && resizer.move( evt.$.clientX ) ) + { + cancel( evt ); + return; + } + + // Considering table, tr, td, tbody but nothing else. + var target = evt.getTarget(), + table, + pillars; + + if ( !target.is( 'table' ) && !target.getAscendant( 'tbody', 1 ) ) + return; + + table = target.getAscendant( 'table', 1 ); + + if ( !( pillars = table.getCustomData( '_cke_table_pillars' ) ) ) + { + // Cache table pillars calculation result. + table.setCustomData( '_cke_table_pillars', ( pillars = buildTableColumnPillars( table ) ) ); + table.on( 'mouseout', clearPillarsCache ); + table.on( 'mousedown', clearPillarsCache ); + } + + var pillar = getPillarAtPosition( pillars, evt.$.clientX ); + if ( pillar ) + { + !resizer && ( resizer = new columnResizer( editor ) ); + resizer.attachTo( pillar ); + } + }); + }); + } + }); + +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js b/htdocs/includes/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js new file mode 100644 index 0000000000000000000000000000000000000000..d3ed5cec3fee627829c2531a29b44cb379a90168 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js @@ -0,0 +1,520 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'cellProperties', function( editor ) + { + var langTable = editor.lang.table, + langCell = langTable.cell, + langCommon = editor.lang.common, + validate = CKEDITOR.dialog.validate, + widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/, + heightPattern = /^(\d+(?:\.\d+)?)px$/, + bind = CKEDITOR.tools.bind, + spacer = { type : 'html', html : ' ' }, + rtl = editor.lang.dir == 'rtl'; + + /** + * + * @param dialogName + * @param callback [ childDialog ] + */ + function getDialogValue( dialogName, callback ) + { + var onOk = function() + { + releaseHandlers( this ); + callback( this, this._.parentDialog ); + this._.parentDialog.changeFocus(); + }; + var onCancel = function() + { + releaseHandlers( this ); + this._.parentDialog.changeFocus(); + }; + var releaseHandlers = function( dialog ) + { + dialog.removeListener( 'ok', onOk ); + dialog.removeListener( 'cancel', onCancel ); + }; + var bindToDialog = function( dialog ) + { + dialog.on( 'ok', onOk ); + dialog.on( 'cancel', onCancel ); + }; + editor.execCommand( dialogName ); + if ( editor._.storedDialogs.colordialog ) + bindToDialog( editor._.storedDialogs.colordialog ); + else + { + CKEDITOR.on( 'dialogDefinition', function( e ) + { + if ( e.data.name != dialogName ) + return; + + var definition = e.data.definition; + + e.removeListener(); + definition.onLoad = CKEDITOR.tools.override( definition.onLoad, function( orginal ) + { + return function() + { + bindToDialog( this ); + definition.onLoad = orginal; + if ( typeof orginal == 'function' ) + orginal.call( this ); + }; + } ); + }); + } + } + + return { + title : langCell.title, + minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks? 450 : 410, + minHeight : CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks )? 230 : 220, + contents : [ + { + id : 'info', + label : langCell.title, + accessKey : 'I', + elements : + [ + { + type : 'hbox', + widths : [ '40%', '5%', '40%' ], + children : + [ + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'hbox', + widths : [ '70%', '30%' ], + children : + [ + { + type : 'text', + id : 'width', + width: '100px', + label : langCommon.width, + validate : validate[ 'number' ]( langCell.invalidWidth ), + + // Extra labelling of width unit type. + onLoad : function() + { + var widthType = this.getDialog().getContentElement( 'info', 'widthType' ), + labelElement = widthType.getElement(), + inputElement = this.getInputElement(), + ariaLabelledByAttr = inputElement.getAttribute( 'aria-labelledby' ); + + inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) ); + }, + + setup : function( element ) + { + var widthAttr = parseInt( element.getAttribute( 'width' ), 10 ), + widthStyle = parseInt( element.getStyle( 'width' ), 10 ); + + !isNaN( widthAttr ) && this.setValue( widthAttr ); + !isNaN( widthStyle ) && this.setValue( widthStyle ); + }, + commit : function( element ) + { + var value = parseInt( this.getValue(), 10 ), + unit = this.getDialog().getValueOf( 'info', 'widthType' ); + + if ( !isNaN( value ) ) + element.setStyle( 'width', value + unit ); + else + element.removeStyle( 'width' ); + + element.removeAttribute( 'width' ); + }, + 'default' : '' + }, + { + type : 'select', + id : 'widthType', + label : editor.lang.table.widthUnit, + labelStyle: 'visibility:hidden', + 'default' : 'px', + items : + [ + [ langTable.widthPx, 'px' ], + [ langTable.widthPc, '%' ] + ], + setup : function( selectedCell ) + { + var widthMatch = widthPattern.exec( selectedCell.getStyle( 'width' ) || selectedCell.getAttribute( 'width' ) ); + if ( widthMatch ) + this.setValue( widthMatch[2] ); + } + } + ] + }, + { + type : 'hbox', + widths : [ '70%', '30%' ], + children : + [ + { + type : 'text', + id : 'height', + label : langCommon.height, + width: '100px', + 'default' : '', + validate : validate[ 'number' ]( langCell.invalidHeight ), + + // Extra labelling of height unit type. + onLoad : function() + { + var heightType = this.getDialog().getContentElement( 'info', 'htmlHeightType' ), + labelElement = heightType.getElement(), + inputElement = this.getInputElement(), + ariaLabelledByAttr = inputElement.getAttribute( 'aria-labelledby' ); + + inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) ); + }, + + setup : function( element ) + { + var heightAttr = parseInt( element.getAttribute( 'height' ), 10 ), + heightStyle = parseInt( element.getStyle( 'height' ), 10 ); + + !isNaN( heightAttr ) && this.setValue( heightAttr ); + !isNaN( heightStyle ) && this.setValue( heightStyle ); + }, + commit : function( element ) + { + var value = parseInt( this.getValue(), 10 ); + + if ( !isNaN( value ) ) + element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) ); + else + element.removeStyle( 'height' ); + + element.removeAttribute( 'height' ); + } + }, + { + id : 'htmlHeightType', + type : 'html', + html : '<br />'+ langTable.widthPx + } + ] + }, + spacer, + { + type : 'select', + id : 'wordWrap', + label : langCell.wordWrap, + 'default' : 'yes', + items : + [ + [ langCell.yes, 'yes' ], + [ langCell.no, 'no' ] + ], + setup : function( element ) + { + var wordWrapAttr = element.getAttribute( 'noWrap' ), + wordWrapStyle = element.getStyle( 'white-space' ); + + if ( wordWrapStyle == 'nowrap' || wordWrapAttr ) + this.setValue( 'no' ); + }, + commit : function( element ) + { + if ( this.getValue() == 'no' ) + element.setStyle( 'white-space', 'nowrap' ); + else + element.removeStyle( 'white-space' ); + + element.removeAttribute( 'noWrap' ); + } + }, + spacer, + { + type : 'select', + id : 'hAlign', + label : langCell.hAlign, + 'default' : '', + items : + [ + [ langCommon.notSet, '' ], + [ langCommon.alignLeft, 'left' ], + [ langCommon.alignCenter, 'center' ], + [ langCommon.alignRight, 'right' ] + ], + setup : function( element ) + { + var alignAttr = element.getAttribute( 'align' ), + textAlignStyle = element.getStyle( 'text-align'); + + this.setValue( textAlignStyle || alignAttr || '' ); + }, + commit : function( selectedCell ) + { + var value = this.getValue(); + + if ( value ) + selectedCell.setStyle( 'text-align', value ); + else + selectedCell.removeStyle( 'text-align' ); + + selectedCell.removeAttribute( 'align' ); + } + }, + { + type : 'select', + id : 'vAlign', + label : langCell.vAlign, + 'default' : '', + items : + [ + [ langCommon.notSet, '' ], + [ langCommon.alignTop, 'top' ], + [ langCommon.alignMiddle, 'middle' ], + [ langCommon.alignBottom, 'bottom' ], + [ langCell.alignBaseline, 'baseline' ] + ], + setup : function( element ) + { + var vAlignAttr = element.getAttribute( 'vAlign' ), + vAlignStyle = element.getStyle( 'vertical-align' ); + + switch( vAlignStyle ) + { + // Ignore all other unrelated style values.. + case 'top': + case 'middle': + case 'bottom': + case 'baseline': + break; + default: + vAlignStyle = ''; + } + + this.setValue( vAlignStyle || vAlignAttr || '' ); + }, + commit : function( element ) + { + var value = this.getValue(); + + if ( value ) + element.setStyle( 'vertical-align', value ); + else + element.removeStyle( 'vertical-align' ); + + element.removeAttribute( 'vAlign' ); + } + } + ] + }, + spacer, + { + type : 'vbox', + padding : 0, + children : + [ + { + type : 'select', + id : 'cellType', + label : langCell.cellType, + 'default' : 'td', + items : + [ + [ langCell.data, 'td' ], + [ langCell.header, 'th' ] + ], + setup : function( selectedCell ) + { + this.setValue( selectedCell.getName() ); + }, + commit : function( selectedCell ) + { + selectedCell.renameNode( this.getValue() ); + } + }, + spacer, + { + type : 'text', + id : 'rowSpan', + label : langCell.rowSpan, + 'default' : '', + validate : validate.integer( langCell.invalidRowSpan ), + setup : function( selectedCell ) + { + var attrVal = parseInt( selectedCell.getAttribute( 'rowSpan' ), 10 ); + if ( attrVal && attrVal != 1 ) + this.setValue( attrVal ); + }, + commit : function( selectedCell ) + { + var value = parseInt( this.getValue(), 10 ); + if ( value && value != 1 ) + selectedCell.setAttribute( 'rowSpan', this.getValue() ); + else + selectedCell.removeAttribute( 'rowSpan' ); + } + }, + { + type : 'text', + id : 'colSpan', + label : langCell.colSpan, + 'default' : '', + validate : validate.integer( langCell.invalidColSpan ), + setup : function( element ) + { + var attrVal = parseInt( element.getAttribute( 'colSpan' ), 10 ); + if ( attrVal && attrVal != 1 ) + this.setValue( attrVal ); + }, + commit : function( selectedCell ) + { + var value = parseInt( this.getValue(), 10 ); + if ( value && value != 1 ) + selectedCell.setAttribute( 'colSpan', this.getValue() ); + else + selectedCell.removeAttribute( 'colSpan' ); + } + }, + spacer, + { + type : 'hbox', + padding : 0, + widths : [ '60%', '40%' ], + children : + [ + { + type : 'text', + id : 'bgColor', + label : langCell.bgColor, + 'default' : '', + setup : function( element ) + { + var bgColorAttr = element.getAttribute( 'bgColor' ), + bgColorStyle = element.getStyle( 'background-color' ); + + this.setValue( bgColorStyle || bgColorAttr ); + }, + commit : function( selectedCell ) + { + var value = this.getValue(); + + if ( value ) + selectedCell.setStyle( 'background-color', this.getValue() ); + else + selectedCell.removeStyle( 'background-color' ); + + selectedCell.removeAttribute( 'bgColor'); + } + }, + { + type : 'button', + id : 'bgColorChoose', + "class" : 'colorChooser', + label : langCell.chooseColor, + onLoad : function() + { + // Stick the element to the bottom (#5587) + this.getElement().getParent().setStyle( 'vertical-align', 'bottom' ); + }, + onClick : function() + { + var self = this; + getDialogValue( 'colordialog', function( colorDialog ) + { + self.getDialog().getContentElement( 'info', 'bgColor' ).setValue( + colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue() + ); + } ); + } + } + ] + }, + spacer, + { + type : 'hbox', + padding : 0, + widths : [ '60%', '40%' ], + children : + [ + { + type : 'text', + id : 'borderColor', + label : langCell.borderColor, + 'default' : '', + setup : function( element ) + { + var borderColorAttr = element.getAttribute( 'borderColor' ), + borderColorStyle = element.getStyle( 'border-color' ); + + this.setValue( borderColorStyle || borderColorAttr ); + }, + commit : function( selectedCell ) + { + var value = this.getValue(); + if ( value ) + selectedCell.setStyle( 'border-color', this.getValue() ); + else + selectedCell.removeStyle( 'border-color' ); + + selectedCell.removeAttribute( 'borderColor'); + } + }, + { + type : 'button', + id : 'borderColorChoose', + "class" : 'colorChooser', + label : langCell.chooseColor, + style : ( rtl ? 'margin-right' : 'margin-left' ) + ': 10px', + onLoad : function() + { + // Stick the element to the bottom (#5587) + this.getElement().getParent().setStyle( 'vertical-align', 'bottom' ); + }, + onClick : function() + { + var self = this; + getDialogValue( 'colordialog', function( colorDialog ) + { + self.getDialog().getContentElement( 'info', 'borderColor' ).setValue( + colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue() + ); + } ); + } + } + ] + } + ] + } + ] + } + ] + } + ], + onShow : function() + { + this.cells = CKEDITOR.plugins.tabletools.getSelectedCells( + this._.editor.getSelection() ); + this.setupContent( this.cells[ 0 ] ); + }, + onOk : function() + { + var selection = this._.editor.getSelection(), + bookmarks = selection.createBookmarks(); + + var cells = this.cells; + for ( var i = 0 ; i < cells.length ; i++ ) + this.commitContent( cells[ i ] ); + + this._.editor.forceNextSelectionCheck(); + selection.selectBookmarks( bookmarks ); + this._.editor.selectionChange(); + } + }; + } ); diff --git a/htdocs/includes/ckeditor/_source/plugins/tabletools/plugin.js b/htdocs/includes/ckeditor/_source/plugins/tabletools/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..3c4fd01c3e453f15243129669e69133593010098 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/tabletools/plugin.js @@ -0,0 +1,1187 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + var cellNodeRegex = /^(?:td|th)$/; + + function getSelectedCells( selection ) + { + var ranges = selection.getRanges(); + var retval = []; + var database = {}; + + function moveOutOfCellGuard( node ) + { + // Apply to the first cell only. + if ( retval.length > 0 ) + return; + + // If we are exiting from the first </td>, then the td should definitely be + // included. + if ( node.type == CKEDITOR.NODE_ELEMENT && cellNodeRegex.test( node.getName() ) + && !node.getCustomData( 'selected_cell' ) ) + { + CKEDITOR.dom.element.setMarker( database, node, 'selected_cell', true ); + retval.push( node ); + } + } + + for ( var i = 0 ; i < ranges.length ; i++ ) + { + var range = ranges[ i ]; + + if ( range.collapsed ) + { + // Walker does not handle collapsed ranges yet - fall back to old API. + var startNode = range.getCommonAncestor(); + var nearestCell = startNode.getAscendant( 'td', true ) || startNode.getAscendant( 'th', true ); + if ( nearestCell ) + retval.push( nearestCell ); + } + else + { + var walker = new CKEDITOR.dom.walker( range ); + var node; + walker.guard = moveOutOfCellGuard; + + while ( ( node = walker.next() ) ) + { + // If may be possible for us to have a range like this: + // <td>^1</td><td>^2</td> + // The 2nd td shouldn't be included. + // + // So we have to take care to include a td we've entered only when we've + // walked into its children. + + var parent = node.getAscendant( 'td' ) || node.getAscendant( 'th' ); + if ( parent && !parent.getCustomData( 'selected_cell' ) ) + { + CKEDITOR.dom.element.setMarker( database, parent, 'selected_cell', true ); + retval.push( parent ); + } + } + } + } + + CKEDITOR.dom.element.clearAllMarkers( database ); + + return retval; + } + + function getFocusElementAfterDelCells( cellsToDelete ) { + var i = 0, + last = cellsToDelete.length - 1, + database = {}, + cell,focusedCell, + tr; + + while ( ( cell = cellsToDelete[ i++ ] ) ) + CKEDITOR.dom.element.setMarker( database, cell, 'delete_cell', true ); + + // 1.first we check left or right side focusable cell row by row; + i = 0; + while ( ( cell = cellsToDelete[ i++ ] ) ) + { + if ( ( focusedCell = cell.getPrevious() ) && !focusedCell.getCustomData( 'delete_cell' ) + || ( focusedCell = cell.getNext() ) && !focusedCell.getCustomData( 'delete_cell' ) ) + { + CKEDITOR.dom.element.clearAllMarkers( database ); + return focusedCell; + } + } + + CKEDITOR.dom.element.clearAllMarkers( database ); + + // 2. then we check the toppest row (outside the selection area square) focusable cell + tr = cellsToDelete[ 0 ].getParent(); + if ( ( tr = tr.getPrevious() ) ) + return tr.getLast(); + + // 3. last we check the lowerest row focusable cell + tr = cellsToDelete[ last ].getParent(); + if ( ( tr = tr.getNext() ) ) + return tr.getChild( 0 ); + + return null; + } + + function insertRow( selection, insertBefore ) + { + var cells = getSelectedCells( selection ), + firstCell = cells[ 0 ], + table = firstCell.getAscendant( 'table' ), + doc = firstCell.getDocument(), + startRow = cells[ 0 ].getParent(), + startRowIndex = startRow.$.rowIndex, + lastCell = cells[ cells.length - 1 ], + endRowIndex = lastCell.getParent().$.rowIndex + lastCell.$.rowSpan - 1, + endRow = new CKEDITOR.dom.element( table.$.rows[ endRowIndex ] ), + rowIndex = insertBefore ? startRowIndex : endRowIndex, + row = insertBefore ? startRow : endRow; + + var map = CKEDITOR.tools.buildTableMap( table ), + cloneRow = map[ rowIndex ], + nextRow = insertBefore ? map[ rowIndex - 1 ] : map[ rowIndex + 1 ], + width = map[0].length; + + var newRow = doc.createElement( 'tr' ); + for ( var i = 0; cloneRow[ i ] && i < width; i++ ) + { + var cell; + // Check whether there's a spanning row here, do not break it. + if ( cloneRow[ i ].rowSpan > 1 && nextRow && cloneRow[ i ] == nextRow[ i ] ) + { + cell = cloneRow[ i ]; + cell.rowSpan += 1; + } + else + { + cell = new CKEDITOR.dom.element( cloneRow[ i ] ).clone(); + cell.removeAttribute( 'rowSpan' ); + !CKEDITOR.env.ie && cell.appendBogus(); + newRow.append( cell ); + cell = cell.$; + } + + i += cell.colSpan - 1; + } + + insertBefore ? + newRow.insertBefore( row ) : + newRow.insertAfter( row ); + } + + function deleteRows( selectionOrRow ) + { + if ( selectionOrRow instanceof CKEDITOR.dom.selection ) + { + var cells = getSelectedCells( selectionOrRow ), + firstCell = cells[ 0 ], + table = firstCell.getAscendant( 'table' ), + map = CKEDITOR.tools.buildTableMap( table ), + startRow = cells[ 0 ].getParent(), + startRowIndex = startRow.$.rowIndex, + lastCell = cells[ cells.length - 1 ], + endRowIndex = lastCell.getParent().$.rowIndex + lastCell.$.rowSpan - 1, + rowsToDelete = []; + + // Delete cell or reduce cell spans by checking through the table map. + for ( var i = startRowIndex; i <= endRowIndex; i++ ) + { + var mapRow = map[ i ], + row = new CKEDITOR.dom.element( table.$.rows[ i ] ); + + for ( var j = 0; j < mapRow.length; j++ ) + { + var cell = new CKEDITOR.dom.element( mapRow[ j ] ), + cellRowIndex = cell.getParent().$.rowIndex; + + if ( cell.$.rowSpan == 1 ) + cell.remove(); + // Row spanned cell. + else + { + // Span row of the cell, reduce spanning. + cell.$.rowSpan -= 1; + // Root row of the cell, root cell to next row. + if ( cellRowIndex == i ) + { + var nextMapRow = map[ i + 1 ]; + nextMapRow[ j - 1 ] ? + cell.insertAfter( new CKEDITOR.dom.element( nextMapRow[ j - 1 ] ) ) + : new CKEDITOR.dom.element( table.$.rows[ i + 1 ] ).append( cell, 1 ); + } + } + + j += cell.$.colSpan - 1; + } + + rowsToDelete.push( row ); + } + + var rows = table.$.rows; + + // Where to put the cursor after rows been deleted? + // 1. Into next sibling row if any; + // 2. Into previous sibling row if any; + // 3. Into table's parent element if it's the very last row. + var cursorPosition = new CKEDITOR.dom.element( rows[ endRowIndex + 1 ] || ( startRowIndex > 0 ? rows[ startRowIndex - 1 ] : null ) || table.$.parentNode ); + + for ( i = rowsToDelete.length ; i >= 0 ; i-- ) + deleteRows( rowsToDelete[ i ] ); + + return cursorPosition; + } + else if ( selectionOrRow instanceof CKEDITOR.dom.element ) + { + table = selectionOrRow.getAscendant( 'table' ); + + if ( table.$.rows.length == 1 ) + table.remove(); + else + selectionOrRow.remove(); + } + + return null; + } + + function getCellColIndex( cell, isStart ) + { + var row = cell.getParent(), + rowCells = row.$.cells; + + var colIndex = 0; + for ( var i = 0; i < rowCells.length; i++ ) + { + var mapCell = rowCells[ i ]; + colIndex += isStart ? 1 : mapCell.colSpan; + if ( mapCell == cell.$ ) + break; + } + + return colIndex -1; + } + + function getColumnsIndices( cells, isStart ) + { + var retval = isStart ? Infinity : 0; + for ( var i = 0; i < cells.length; i++ ) + { + var colIndex = getCellColIndex( cells[ i ], isStart ); + if ( isStart ? colIndex < retval : colIndex > retval ) + retval = colIndex; + } + return retval; + } + + function insertColumn( selection, insertBefore ) + { + var cells = getSelectedCells( selection ), + firstCell = cells[ 0 ], + table = firstCell.getAscendant( 'table' ), + startCol = getColumnsIndices( cells, 1 ), + lastCol = getColumnsIndices( cells ), + colIndex = insertBefore? startCol : lastCol; + + var map = CKEDITOR.tools.buildTableMap( table ), + cloneCol = [], + nextCol = [], + height = map.length; + + for ( var i = 0; i < height; i++ ) + { + cloneCol.push( map[ i ][ colIndex ] ); + var nextCell = insertBefore ? map[ i ][ colIndex - 1 ] : map[ i ][ colIndex + 1 ]; + nextCell && nextCol.push( nextCell ); + } + + for ( i = 0; i < height; i++ ) + { + var cell; + // Check whether there's a spanning column here, do not break it. + if ( cloneCol[ i ].colSpan > 1 + && nextCol.length + && nextCol[ i ] == cloneCol[ i ] ) + { + cell = cloneCol[ i ]; + cell.colSpan += 1; + } + else + { + cell = new CKEDITOR.dom.element( cloneCol[ i ] ).clone(); + cell.removeAttribute( 'colSpan' ); + !CKEDITOR.env.ie && cell.appendBogus(); + cell[ insertBefore? 'insertBefore' : 'insertAfter' ].call( cell, new CKEDITOR.dom.element ( cloneCol[ i ] ) ); + cell = cell.$; + } + + i += cell.rowSpan - 1; + } + } + + function deleteColumns( selectionOrCell ) + { + var cells = getSelectedCells( selectionOrCell ), + firstCell = cells[ 0 ], + lastCell = cells[ cells.length - 1 ], + table = firstCell.getAscendant( 'table' ), + map = CKEDITOR.tools.buildTableMap( table ), + startColIndex, + endColIndex, + rowsToDelete = []; + + // Figure out selected cells' column indices. + for ( var i = 0, rows = map.length; i < rows; i++ ) + { + for ( var j = 0, cols = map[ i ].length; j < cols; j++ ) + { + if ( map[ i ][ j ] == firstCell.$ ) + startColIndex = j; + if ( map[ i ][ j ] == lastCell.$ ) + endColIndex = j; + } + } + + // Delete cell or reduce cell spans by checking through the table map. + for ( i = startColIndex; i <= endColIndex; i++ ) + { + for ( j = 0; j < map.length; j++ ) + { + var mapRow = map[ j ], + row = new CKEDITOR.dom.element( table.$.rows[ j ] ), + cell = new CKEDITOR.dom.element( mapRow[ i ] ); + + if ( cell.$ ) + { + if ( cell.$.colSpan == 1 ) + cell.remove(); + // Reduce the col spans. + else + cell.$.colSpan -= 1; + + j += cell.$.rowSpan - 1; + + if ( !row.$.cells.length ) + rowsToDelete.push( row ); + } + } + } + + var firstRowCells = table.$.rows[ 0 ] && table.$.rows[ 0 ].cells; + + // Where to put the cursor after columns been deleted? + // 1. Into next cell of the first row if any; + // 2. Into previous cell of the first row if any; + // 3. Into table's parent element; + var cursorPosition = new CKEDITOR.dom.element( firstRowCells[ startColIndex ] || ( startColIndex ? firstRowCells[ startColIndex - 1 ] : table.$.parentNode ) ); + + // Delete table rows only if all columns are gone (do not remove empty row). + if ( rowsToDelete.length == rows ) + table.remove(); + + return cursorPosition; + } + + function getFocusElementAfterDelCols( cells ) + { + var cellIndexList = [], + table = cells[ 0 ] && cells[ 0 ].getAscendant( 'table' ), + i, length, + targetIndex, targetCell; + + // get the cellIndex list of delete cells + for ( i = 0, length = cells.length; i < length; i++ ) + cellIndexList.push( cells[i].$.cellIndex ); + + // get the focusable column index + cellIndexList.sort(); + for ( i = 1, length = cellIndexList.length; i < length; i++ ) + { + if ( cellIndexList[ i ] - cellIndexList[ i - 1 ] > 1 ) + { + targetIndex = cellIndexList[ i - 1 ] + 1; + break; + } + } + + if ( !targetIndex ) + targetIndex = cellIndexList[ 0 ] > 0 ? ( cellIndexList[ 0 ] - 1 ) + : ( cellIndexList[ cellIndexList.length - 1 ] + 1 ); + + // scan row by row to get the target cell + var rows = table.$.rows; + for ( i = 0, length = rows.length; i < length ; i++ ) + { + targetCell = rows[ i ].cells[ targetIndex ]; + if ( targetCell ) + break; + } + + return targetCell ? new CKEDITOR.dom.element( targetCell ) : table.getPrevious(); + } + + function insertCell( selection, insertBefore ) + { + var startElement = selection.getStartElement(); + var cell = startElement.getAscendant( 'td', 1 ) || startElement.getAscendant( 'th', 1 ); + + if ( !cell ) + return; + + // Create the new cell element to be added. + var newCell = cell.clone(); + if ( !CKEDITOR.env.ie ) + newCell.appendBogus(); + + if ( insertBefore ) + newCell.insertBefore( cell ); + else + newCell.insertAfter( cell ); + } + + function deleteCells( selectionOrCell ) + { + if ( selectionOrCell instanceof CKEDITOR.dom.selection ) + { + var cellsToDelete = getSelectedCells( selectionOrCell ); + var table = cellsToDelete[ 0 ] && cellsToDelete[ 0 ].getAscendant( 'table' ); + var cellToFocus = getFocusElementAfterDelCells( cellsToDelete ); + + for ( var i = cellsToDelete.length - 1 ; i >= 0 ; i-- ) + deleteCells( cellsToDelete[ i ] ); + + if ( cellToFocus ) + placeCursorInCell( cellToFocus, true ); + else if ( table ) + table.remove(); + } + else if ( selectionOrCell instanceof CKEDITOR.dom.element ) + { + var tr = selectionOrCell.getParent(); + if ( tr.getChildCount() == 1 ) + tr.remove(); + else + selectionOrCell.remove(); + } + } + + // Remove filler at end and empty spaces around the cell content. + function trimCell( cell ) + { + var bogus = cell.getBogus(); + bogus && bogus.remove(); + cell.trim(); + } + + function placeCursorInCell( cell, placeAtEnd ) + { + var range = new CKEDITOR.dom.range( cell.getDocument() ); + if ( !range[ 'moveToElementEdit' + ( placeAtEnd ? 'End' : 'Start' ) ]( cell ) ) + { + range.selectNodeContents( cell ); + range.collapse( placeAtEnd ? false : true ); + } + range.select( true ); + } + + function cellInRow( tableMap, rowIndex, cell ) + { + var oRow = tableMap[ rowIndex ]; + if ( typeof cell == 'undefined' ) + return oRow; + + for ( var c = 0 ; oRow && c < oRow.length ; c++ ) + { + if ( cell.is && oRow[c] == cell.$ ) + return c; + else if ( c == cell ) + return new CKEDITOR.dom.element( oRow[ c ] ); + } + return cell.is ? -1 : null; + } + + function cellInCol( tableMap, colIndex ) + { + var oCol = []; + for ( var r = 0; r < tableMap.length; r++ ) + { + var row = tableMap[ r ]; + oCol.push( row[ colIndex ] ); + + // Avoid adding duplicate cells. + if ( row[ colIndex ].rowSpan > 1 ) + r += row[ colIndex ].rowSpan - 1; + } + return oCol; + } + + function mergeCells( selection, mergeDirection, isDetect ) + { + var cells = getSelectedCells( selection ); + + // Invalid merge request if: + // 1. In batch mode despite that less than two selected. + // 2. In solo mode while not exactly only one selected. + // 3. Cells distributed in different table groups (e.g. from both thead and tbody). + var commonAncestor; + if ( ( mergeDirection ? cells.length != 1 : cells.length < 2 ) + || ( commonAncestor = selection.getCommonAncestor() ) + && commonAncestor.type == CKEDITOR.NODE_ELEMENT + && commonAncestor.is( 'table' ) ) + { + return false; + } + + var cell, + firstCell = cells[ 0 ], + table = firstCell.getAscendant( 'table' ), + map = CKEDITOR.tools.buildTableMap( table ), + mapHeight = map.length, + mapWidth = map[ 0 ].length, + startRow = firstCell.getParent().$.rowIndex, + startColumn = cellInRow( map, startRow, firstCell ); + + if ( mergeDirection ) + { + var targetCell; + try + { + var rowspan = parseInt( firstCell.getAttribute( 'rowspan' ), 10 ) || 1; + var colspan = parseInt( firstCell.getAttribute( 'colspan' ), 10 ) || 1; + + targetCell = + map[ mergeDirection == 'up' ? + ( startRow - rowspan ): + mergeDirection == 'down' ? ( startRow + rowspan ) : startRow ] [ + mergeDirection == 'left' ? + ( startColumn - colspan ): + mergeDirection == 'right' ? ( startColumn + colspan ) : startColumn ]; + + } + catch( er ) + { + return false; + } + + // 1. No cell could be merged. + // 2. Same cell actually. + if ( !targetCell || firstCell.$ == targetCell ) + return false; + + // Sort in map order regardless of the DOM sequence. + cells[ ( mergeDirection == 'up' || mergeDirection == 'left' ) ? + 'unshift' : 'push' ]( new CKEDITOR.dom.element( targetCell ) ); + } + + // Start from here are merging way ignorance (merge up/right, batch merge). + var doc = firstCell.getDocument(), + lastRowIndex = startRow, + totalRowSpan = 0, + totalColSpan = 0, + // Use a documentFragment as buffer when appending cell contents. + frag = !isDetect && new CKEDITOR.dom.documentFragment( doc ), + dimension = 0; + + for ( var i = 0; i < cells.length; i++ ) + { + cell = cells[ i ]; + + var tr = cell.getParent(), + cellFirstChild = cell.getFirst(), + colSpan = cell.$.colSpan, + rowSpan = cell.$.rowSpan, + rowIndex = tr.$.rowIndex, + colIndex = cellInRow( map, rowIndex, cell ); + + // Accumulated the actual places taken by all selected cells. + dimension += colSpan * rowSpan; + // Accumulated the maximum virtual spans from column and row. + totalColSpan = Math.max( totalColSpan, colIndex - startColumn + colSpan ) ; + totalRowSpan = Math.max( totalRowSpan, rowIndex - startRow + rowSpan ); + + if ( !isDetect ) + { + // Trim all cell fillers and check to remove empty cells. + if ( trimCell( cell ), cell.getChildren().count() ) + { + // Merge vertically cells as two separated paragraphs. + if ( rowIndex != lastRowIndex + && cellFirstChild + && !( cellFirstChild.isBlockBoundary + && cellFirstChild.isBlockBoundary( { br : 1 } ) ) ) + { + var last = frag.getLast( CKEDITOR.dom.walker.whitespaces( true ) ); + if ( last && !( last.is && last.is( 'br' ) ) ) + frag.append( 'br' ); + } + + cell.moveChildren( frag ); + } + i ? cell.remove() : cell.setHtml( '' ); + } + lastRowIndex = rowIndex; + } + + if ( !isDetect ) + { + frag.moveChildren( firstCell ); + + if ( !CKEDITOR.env.ie ) + firstCell.appendBogus(); + + if ( totalColSpan >= mapWidth ) + firstCell.removeAttribute( 'rowSpan' ); + else + firstCell.$.rowSpan = totalRowSpan; + + if ( totalRowSpan >= mapHeight ) + firstCell.removeAttribute( 'colSpan' ); + else + firstCell.$.colSpan = totalColSpan; + + // Swip empty <tr> left at the end of table due to the merging. + var trs = new CKEDITOR.dom.nodeList( table.$.rows ), + count = trs.count(); + + for ( i = count - 1; i >= 0; i-- ) + { + var tailTr = trs.getItem( i ); + if ( !tailTr.$.cells.length ) + { + tailTr.remove(); + count++; + continue; + } + } + + return firstCell; + } + // Be able to merge cells only if actual dimension of selected + // cells equals to the caculated rectangle. + else + return ( totalRowSpan * totalColSpan ) == dimension; + } + + function verticalSplitCell ( selection, isDetect ) + { + var cells = getSelectedCells( selection ); + if ( cells.length > 1 ) + return false; + else if ( isDetect ) + return true; + + var cell = cells[ 0 ], + tr = cell.getParent(), + table = tr.getAscendant( 'table' ), + map = CKEDITOR.tools.buildTableMap( table ), + rowIndex = tr.$.rowIndex, + colIndex = cellInRow( map, rowIndex, cell ), + rowSpan = cell.$.rowSpan, + newCell, + newRowSpan, + newCellRowSpan, + newRowIndex; + + if ( rowSpan > 1 ) + { + newRowSpan = Math.ceil( rowSpan / 2 ); + newCellRowSpan = Math.floor( rowSpan / 2 ); + newRowIndex = rowIndex + newRowSpan; + var newCellTr = new CKEDITOR.dom.element( table.$.rows[ newRowIndex ] ), + newCellRow = cellInRow( map, newRowIndex ), + candidateCell; + + newCell = cell.clone(); + + // Figure out where to insert the new cell by checking the vitual row. + for ( var c = 0; c < newCellRow.length; c++ ) + { + candidateCell = newCellRow[ c ]; + // Catch first cell actually following the column. + if ( candidateCell.parentNode == newCellTr.$ + && c > colIndex ) + { + newCell.insertBefore( new CKEDITOR.dom.element( candidateCell ) ); + break; + } + else + candidateCell = null; + } + + // The destination row is empty, append at will. + if ( !candidateCell ) + newCellTr.append( newCell, true ); + } + else + { + newCellRowSpan = newRowSpan = 1; + + newCellTr = tr.clone(); + newCellTr.insertAfter( tr ); + newCellTr.append( newCell = cell.clone() ); + + var cellsInSameRow = cellInRow( map, rowIndex ); + for ( var i = 0; i < cellsInSameRow.length; i++ ) + cellsInSameRow[ i ].rowSpan++; + } + + if ( !CKEDITOR.env.ie ) + newCell.appendBogus(); + + cell.$.rowSpan = newRowSpan; + newCell.$.rowSpan = newCellRowSpan; + if ( newRowSpan == 1 ) + cell.removeAttribute( 'rowSpan' ); + if ( newCellRowSpan == 1 ) + newCell.removeAttribute( 'rowSpan' ); + + return newCell; + } + + function horizontalSplitCell( selection, isDetect ) + { + var cells = getSelectedCells( selection ); + if ( cells.length > 1 ) + return false; + else if ( isDetect ) + return true; + + var cell = cells[ 0 ], + tr = cell.getParent(), + table = tr.getAscendant( 'table' ), + map = CKEDITOR.tools.buildTableMap( table ), + rowIndex = tr.$.rowIndex, + colIndex = cellInRow( map, rowIndex, cell ), + colSpan = cell.$.colSpan, + newCell, + newColSpan, + newCellColSpan; + + if ( colSpan > 1 ) + { + newColSpan = Math.ceil( colSpan / 2 ); + newCellColSpan = Math.floor( colSpan / 2 ); + } + else + { + newCellColSpan = newColSpan = 1; + var cellsInSameCol = cellInCol( map, colIndex ); + for ( var i = 0; i < cellsInSameCol.length; i++ ) + cellsInSameCol[ i ].colSpan++; + } + newCell = cell.clone(); + newCell.insertAfter( cell ); + if ( !CKEDITOR.env.ie ) + newCell.appendBogus(); + + cell.$.colSpan = newColSpan; + newCell.$.colSpan = newCellColSpan; + if ( newColSpan == 1 ) + cell.removeAttribute( 'colSpan' ); + if ( newCellColSpan == 1 ) + newCell.removeAttribute( 'colSpan' ); + + return newCell; + } + // Context menu on table caption incorrect (#3834) + var contextMenuTags = { thead : 1, tbody : 1, tfoot : 1, td : 1, tr : 1, th : 1 }; + + CKEDITOR.plugins.tabletools = + { + requires : [ 'table', 'dialog', 'contextmenu' ], + + init : function( editor ) + { + var lang = editor.lang.table; + + editor.addCommand( 'cellProperties', new CKEDITOR.dialogCommand( 'cellProperties' ) ); + CKEDITOR.dialog.add( 'cellProperties', this.path + 'dialogs/tableCell.js' ); + + editor.addCommand( 'tableDelete', + { + exec : function( editor ) + { + var selection = editor.getSelection(), + startElement = selection && selection.getStartElement(), + table = startElement && startElement.getAscendant( 'table', 1 ); + + if ( !table ) + return; + + // If the table's parent has only one child remove it as well (unless it's the body or a table cell) (#5416, #6289) + var parent = table.getParent(); + if ( parent.getChildCount() == 1 && !parent.is( 'body', 'td', 'th' ) ) + table = parent; + + var range = new CKEDITOR.dom.range( editor.document ); + range.moveToPosition( table, CKEDITOR.POSITION_BEFORE_START ); + table.remove(); + range.select(); + } + } ); + + editor.addCommand( 'rowDelete', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + placeCursorInCell( deleteRows( selection ) ); + } + } ); + + editor.addCommand( 'rowInsertBefore', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + insertRow( selection, true ); + } + } ); + + editor.addCommand( 'rowInsertAfter', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + insertRow( selection ); + } + } ); + + editor.addCommand( 'columnDelete', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + var element = deleteColumns( selection ); + element && placeCursorInCell( element, true ); + } + } ); + + editor.addCommand( 'columnInsertBefore', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + insertColumn( selection, true ); + } + } ); + + editor.addCommand( 'columnInsertAfter', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + insertColumn( selection ); + } + } ); + + editor.addCommand( 'cellDelete', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + deleteCells( selection ); + } + } ); + + editor.addCommand( 'cellMerge', + { + exec : function( editor ) + { + placeCursorInCell( mergeCells( editor.getSelection() ), true ); + } + } ); + + editor.addCommand( 'cellMergeRight', + { + exec : function( editor ) + { + placeCursorInCell( mergeCells( editor.getSelection(), 'right' ), true ); + } + } ); + + editor.addCommand( 'cellMergeDown', + { + exec : function( editor ) + { + placeCursorInCell( mergeCells( editor.getSelection(), 'down' ), true ); + } + } ); + + editor.addCommand( 'cellVerticalSplit', + { + exec : function( editor ) + { + placeCursorInCell( verticalSplitCell( editor.getSelection() ) ); + } + } ); + + editor.addCommand( 'cellHorizontalSplit', + { + exec : function( editor ) + { + placeCursorInCell( horizontalSplitCell( editor.getSelection() ) ); + } + } ); + + editor.addCommand( 'cellInsertBefore', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + insertCell( selection, true ); + } + } ); + + editor.addCommand( 'cellInsertAfter', + { + exec : function( editor ) + { + var selection = editor.getSelection(); + insertCell( selection ); + } + } ); + + // If the "menu" plugin is loaded, register the menu items. + if ( editor.addMenuItems ) + { + editor.addMenuItems( + { + tablecell : + { + label : lang.cell.menu, + group : 'tablecell', + order : 1, + getItems : function() + { + var selection = editor.getSelection(), + cells = getSelectedCells( selection ); + return { + tablecell_insertBefore : CKEDITOR.TRISTATE_OFF, + tablecell_insertAfter : CKEDITOR.TRISTATE_OFF, + tablecell_delete : CKEDITOR.TRISTATE_OFF, + tablecell_merge : mergeCells( selection, null, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + tablecell_merge_right : mergeCells( selection, 'right', true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + tablecell_merge_down : mergeCells( selection, 'down', true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + tablecell_split_vertical : verticalSplitCell( selection, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + tablecell_split_horizontal : horizontalSplitCell( selection, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + tablecell_properties : cells.length > 0 ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED + }; + } + }, + + tablecell_insertBefore : + { + label : lang.cell.insertBefore, + group : 'tablecell', + command : 'cellInsertBefore', + order : 5 + }, + + tablecell_insertAfter : + { + label : lang.cell.insertAfter, + group : 'tablecell', + command : 'cellInsertAfter', + order : 10 + }, + + tablecell_delete : + { + label : lang.cell.deleteCell, + group : 'tablecell', + command : 'cellDelete', + order : 15 + }, + + tablecell_merge : + { + label : lang.cell.merge, + group : 'tablecell', + command : 'cellMerge', + order : 16 + }, + + tablecell_merge_right : + { + label : lang.cell.mergeRight, + group : 'tablecell', + command : 'cellMergeRight', + order : 17 + }, + + tablecell_merge_down : + { + label : lang.cell.mergeDown, + group : 'tablecell', + command : 'cellMergeDown', + order : 18 + }, + + tablecell_split_horizontal : + { + label : lang.cell.splitHorizontal, + group : 'tablecell', + command : 'cellHorizontalSplit', + order : 19 + }, + + tablecell_split_vertical : + { + label : lang.cell.splitVertical, + group : 'tablecell', + command : 'cellVerticalSplit', + order : 20 + }, + + tablecell_properties : + { + label : lang.cell.title, + group : 'tablecellproperties', + command : 'cellProperties', + order : 21 + }, + + tablerow : + { + label : lang.row.menu, + group : 'tablerow', + order : 1, + getItems : function() + { + return { + tablerow_insertBefore : CKEDITOR.TRISTATE_OFF, + tablerow_insertAfter : CKEDITOR.TRISTATE_OFF, + tablerow_delete : CKEDITOR.TRISTATE_OFF + }; + } + }, + + tablerow_insertBefore : + { + label : lang.row.insertBefore, + group : 'tablerow', + command : 'rowInsertBefore', + order : 5 + }, + + tablerow_insertAfter : + { + label : lang.row.insertAfter, + group : 'tablerow', + command : 'rowInsertAfter', + order : 10 + }, + + tablerow_delete : + { + label : lang.row.deleteRow, + group : 'tablerow', + command : 'rowDelete', + order : 15 + }, + + tablecolumn : + { + label : lang.column.menu, + group : 'tablecolumn', + order : 1, + getItems : function() + { + return { + tablecolumn_insertBefore : CKEDITOR.TRISTATE_OFF, + tablecolumn_insertAfter : CKEDITOR.TRISTATE_OFF, + tablecolumn_delete : CKEDITOR.TRISTATE_OFF + }; + } + }, + + tablecolumn_insertBefore : + { + label : lang.column.insertBefore, + group : 'tablecolumn', + command : 'columnInsertBefore', + order : 5 + }, + + tablecolumn_insertAfter : + { + label : lang.column.insertAfter, + group : 'tablecolumn', + command : 'columnInsertAfter', + order : 10 + }, + + tablecolumn_delete : + { + label : lang.column.deleteColumn, + group : 'tablecolumn', + command : 'columnDelete', + order : 15 + } + }); + } + + // If the "contextmenu" plugin is laoded, register the listeners. + if ( editor.contextMenu ) + { + editor.contextMenu.addListener( function( element, selection ) + { + if ( !element || element.isReadOnly() ) + return null; + + while ( element ) + { + if ( element.getName() in contextMenuTags ) + { + return { + tablecell : CKEDITOR.TRISTATE_OFF, + tablerow : CKEDITOR.TRISTATE_OFF, + tablecolumn : CKEDITOR.TRISTATE_OFF + }; + } + element = element.getParent(); + } + + return null; + } ); + } + }, + + getSelectedCells : getSelectedCells + + }; + CKEDITOR.plugins.add( 'tabletools', CKEDITOR.plugins.tabletools ); +})(); + +/** + * Create a two-dimension array that reflects the actual layout of table cells, + * with cell spans, with mappings to the original td elements. + * @param table {CKEDITOR.dom.element} + */ +CKEDITOR.tools.buildTableMap = function ( table ) +{ + var aRows = table.$.rows ; + + // Row and Column counters. + var r = -1 ; + + var aMap = []; + + for ( var i = 0 ; i < aRows.length ; i++ ) + { + r++ ; + !aMap[r] && ( aMap[r] = [] ); + + var c = -1 ; + + for ( var j = 0 ; j < aRows[i].cells.length ; j++ ) + { + var oCell = aRows[i].cells[j] ; + + c++ ; + while ( aMap[r][c] ) + c++ ; + + var iColSpan = isNaN( oCell.colSpan ) ? 1 : oCell.colSpan ; + var iRowSpan = isNaN( oCell.rowSpan ) ? 1 : oCell.rowSpan ; + + for ( var rs = 0 ; rs < iRowSpan ; rs++ ) + { + if ( !aMap[r + rs] ) + aMap[r + rs] = []; + + for ( var cs = 0 ; cs < iColSpan ; cs++ ) + { + aMap[r + rs][c + cs] = aRows[i].cells[j] ; + } + } + + c += iColSpan - 1 ; + } + } + return aMap ; +}; diff --git a/htdocs/includes/ckeditor/_source/plugins/templates/dialogs/templates.js b/htdocs/includes/ckeditor/_source/plugins/templates/dialogs/templates.js new file mode 100644 index 0000000000000000000000000000000000000000..1fed05c484c2ae6856792dafddc91e29e1ed0b78 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/templates/dialogs/templates.js @@ -0,0 +1,234 @@ +/* +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 ); + } + }; + }); +})(); diff --git a/htdocs/includes/ckeditor/_source/plugins/templates/plugin.js b/htdocs/includes/ckeditor/_source/plugins/templates/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..622615981c9baee8b6f7d5804683377cac42808d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/templates/plugin.js @@ -0,0 +1,100 @@ +/* +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; diff --git a/htdocs/includes/ckeditor/_source/plugins/templates/templates/default.js b/htdocs/includes/ckeditor/_source/plugins/templates/templates/default.js new file mode 100644 index 0000000000000000000000000000000000000000..495b9485457cf912800f12dcfd91996daa64a36d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/templates/templates/default.js @@ -0,0 +1,94 @@ +/* +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> </td>' + + '<td> </td>' + + '<td> </td>' + + '</tr>' + + '<tr>' + + '<td> </td>' + + '<td> </td>' + + '<td> </td>' + + '</tr>' + + '<tr>' + + '<td> </td>' + + '<td> </td>' + + '<td> </td>' + + '</tr>' + + '</table>' + + '<p>' + + 'Type the text here' + + '</p>' + + '</div>' + } + ] +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template1.gif b/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template1.gif new file mode 100644 index 0000000000000000000000000000000000000000..efdabbebd4503ceb55c948fa73b9b83cbd373e57 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template1.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template2.gif b/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template2.gif new file mode 100644 index 0000000000000000000000000000000000000000..d1cebb3aed88265add0a1d87d40de566f86a9619 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template2.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template3.gif b/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template3.gif new file mode 100644 index 0000000000000000000000000000000000000000..db41cb4fb8fc7eafac8f382810e87147e791ad6e Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/templates/templates/images/template3.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/toolbar/plugin.js b/htdocs/includes/ckeditor/_source/plugins/toolbar/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..d29462eef29d2e332c84ad6d565ad18996d34ffa --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/toolbar/plugin.js @@ -0,0 +1,546 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "toolbar" plugin. Renders the default toolbar interface in + * the editor. + */ + +(function() +{ + var toolbox = function() + { + this.toolbars = []; + this.focusCommandExecuted = false; + }; + + toolbox.prototype.focus = function() + { + for ( var t = 0, toolbar ; toolbar = this.toolbars[ t++ ] ; ) + { + for ( var i = 0, item ; item = toolbar.items[ i++ ] ; ) + { + if ( item.focus ) + { + item.focus(); + return; + } + } + } + }; + + var commands = + { + toolbarFocus : + { + modes : { wysiwyg : 1, source : 1 }, + readOnly : 1, + + exec : function( editor ) + { + if ( editor.toolbox ) + { + editor.toolbox.focusCommandExecuted = true; + + // Make the first button focus accessible for IE. (#3417) + // Adobe AIR instead need while of delay. + if ( CKEDITOR.env.ie || CKEDITOR.env.air ) + setTimeout( function(){ editor.toolbox.focus(); }, 100 ); + else + editor.toolbox.focus(); + } + } + } + }; + + CKEDITOR.plugins.add( 'toolbar', + { + requires : [ 'button' ], + init : function( editor ) + { + var endFlag; + + var itemKeystroke = function( item, keystroke ) + { + var next, toolbar; + var rtl = editor.lang.dir == 'rtl', + toolbarGroupCycling = editor.config.toolbarGroupCycling; + + toolbarGroupCycling = toolbarGroupCycling === undefined || toolbarGroupCycling; + + switch ( keystroke ) + { + case 9 : // TAB + case CKEDITOR.SHIFT + 9 : // SHIFT + TAB + // Cycle through the toolbars, starting from the one + // closest to the current item. + while ( !toolbar || !toolbar.items.length ) + { + toolbar = keystroke == 9 ? + ( ( toolbar ? toolbar.next : item.toolbar.next ) || editor.toolbox.toolbars[ 0 ] ) : + ( ( toolbar ? toolbar.previous : item.toolbar.previous ) || editor.toolbox.toolbars[ editor.toolbox.toolbars.length - 1 ] ); + + // Look for the first item that accepts focus. + if ( toolbar.items.length ) + { + item = toolbar.items[ endFlag ? ( toolbar.items.length - 1 ) : 0 ]; + while ( item && !item.focus ) + { + item = endFlag ? item.previous : item.next; + + if ( !item ) + toolbar = 0; + } + } + } + + if ( item ) + item.focus(); + + return false; + + case rtl ? 37 : 39 : // RIGHT-ARROW + case 40 : // DOWN-ARROW + next = item; + do + { + // Look for the next item in the toolbar. + next = next.next; + + // If it's the last item, cycle to the first one. + if ( !next && toolbarGroupCycling ) + next = item.toolbar.items[ 0 ]; + } + while ( next && !next.focus ) + + // If available, just focus it, otherwise focus the + // first one. + if ( next ) + next.focus(); + else + // Send a TAB. + itemKeystroke( item, 9 ); + + return false; + + case rtl ? 39 : 37 : // LEFT-ARROW + case 38 : // UP-ARROW + next = item; + do + { + // Look for the previous item in the toolbar. + next = next.previous; + + // If it's the first item, cycle to the last one. + if ( !next && toolbarGroupCycling ) + next = item.toolbar.items[ item.toolbar.items.length - 1 ]; + } + while ( next && !next.focus ) + + // If available, just focus it, otherwise focus the + // last one. + if ( next ) + next.focus(); + else + { + endFlag = 1; + // Send a SHIFT + TAB. + itemKeystroke( item, CKEDITOR.SHIFT + 9 ); + endFlag = 0; + } + + return false; + + case 27 : // ESC + editor.focus(); + return false; + + case 13 : // ENTER + case 32 : // SPACE + item.execute(); + return false; + } + return true; + }; + + editor.on( 'themeSpace', function( event ) + { + if ( event.data.space == editor.config.toolbarLocation ) + { + editor.toolbox = new toolbox(); + + var labelId = CKEDITOR.tools.getNextId(); + + var output = [ '<div class="cke_toolbox" role="group" aria-labelledby="', labelId, '" onmousedown="return false;"' ], + expanded = editor.config.toolbarStartupExpanded !== false, + groupStarted; + + output.push( expanded ? '>' : ' style="display:none">' ); + + // Sends the ARIA label. + output.push( '<span id="', labelId, '" class="cke_voice_label">', editor.lang.toolbars, '</span>' ); + + var toolbars = editor.toolbox.toolbars, + toolbar = + ( editor.config.toolbar instanceof Array ) ? + editor.config.toolbar + : + editor.config[ 'toolbar_' + editor.config.toolbar ]; + + for ( var r = 0 ; r < toolbar.length ; r++ ) + { + var toolbarId, + toolbarObj = 0, + toolbarName, + row = toolbar[ r ], + items; + + // It's better to check if the row object is really + // available because it's a common mistake to leave + // an extra comma in the toolbar definition + // settings, which leads on the editor not loading + // at all in IE. (#3983) + if ( !row ) + continue; + + if ( groupStarted ) + { + output.push( '</div>' ); + groupStarted = 0; + } + + if ( row === '/' ) + { + output.push( '<div class="cke_break"></div>' ); + continue; + } + + items = row.items || row; + + // Create all items defined for this toolbar. + for ( var i = 0 ; i < items.length ; i++ ) + { + var item, + itemName = items[ i ], + canGroup; + + item = editor.ui.create( itemName ); + + if ( item ) + { + canGroup = item.canGroup !== false; + + // Initialize the toolbar first, if needed. + if ( !toolbarObj ) + { + // Create the basic toolbar object. + toolbarId = CKEDITOR.tools.getNextId(); + toolbarObj = { id : toolbarId, items : [] }; + toolbarName = row.name && ( editor.lang.toolbarGroups[ row.name ] || row.name ); + + // Output the toolbar opener. + output.push( '<span id="', toolbarId, '" class="cke_toolbar"', + ( toolbarName ? ' aria-labelledby="'+ toolbarId + '_label"' : '' ), + ' role="toolbar">' ); + + // If a toolbar name is available, send the voice label. + toolbarName && output.push( '<span id="', toolbarId, '_label" class="cke_voice_label">', toolbarName, '</span>' ); + + output.push( '<span class="cke_toolbar_start"></span>' ); + + // Add the toolbar to the "editor.toolbox.toolbars" + // array. + var index = toolbars.push( toolbarObj ) - 1; + + // Create the next/previous reference. + if ( index > 0 ) + { + toolbarObj.previous = toolbars[ index - 1 ]; + toolbarObj.previous.next = toolbarObj; + } + } + + if ( canGroup ) + { + if ( !groupStarted ) + { + output.push( '<span class="cke_toolgroup" role="presentation">' ); + groupStarted = 1; + } + } + else if ( groupStarted ) + { + output.push( '</span>' ); + groupStarted = 0; + } + + var itemObj = item.render( editor, output ); + index = toolbarObj.items.push( itemObj ) - 1; + + if ( index > 0 ) + { + itemObj.previous = toolbarObj.items[ index - 1 ]; + itemObj.previous.next = itemObj; + } + + itemObj.toolbar = toolbarObj; + itemObj.onkey = itemKeystroke; + + /* + * Fix for #3052: + * Prevent JAWS from focusing the toolbar after document load. + */ + itemObj.onfocus = function() + { + if ( !editor.toolbox.focusCommandExecuted ) + editor.focus(); + }; + } + } + + if ( groupStarted ) + { + output.push( '</span>' ); + groupStarted = 0; + } + + if ( toolbarObj ) + output.push( '<span class="cke_toolbar_end"></span></span>' ); + } + + output.push( '</div>' ); + + if ( editor.config.toolbarCanCollapse ) + { + var collapserFn = CKEDITOR.tools.addFunction( + function() + { + editor.execCommand( 'toolbarCollapse' ); + }); + + editor.on( 'destroy', function () { + CKEDITOR.tools.removeFunction( collapserFn ); + }); + + var collapserId = CKEDITOR.tools.getNextId(); + + editor.addCommand( 'toolbarCollapse', + { + readOnly : 1, + exec : function( editor ) + { + var collapser = CKEDITOR.document.getById( collapserId ), + toolbox = collapser.getPrevious(), + contents = editor.getThemeSpace( 'contents' ), + toolboxContainer = toolbox.getParent(), + contentHeight = parseInt( contents.$.style.height, 10 ), + previousHeight = toolboxContainer.$.offsetHeight, + collapsed = !toolbox.isVisible(); + + if ( !collapsed ) + { + toolbox.hide(); + collapser.addClass( 'cke_toolbox_collapser_min' ); + collapser.setAttribute( 'title', editor.lang.toolbarExpand ); + } + else + { + toolbox.show(); + collapser.removeClass( 'cke_toolbox_collapser_min' ); + collapser.setAttribute( 'title', editor.lang.toolbarCollapse ); + } + + // Update collapser symbol. + collapser.getFirst().setText( collapsed ? + '\u25B2' : // BLACK UP-POINTING TRIANGLE + '\u25C0' ); // BLACK LEFT-POINTING TRIANGLE + + var dy = toolboxContainer.$.offsetHeight - previousHeight; + contents.setStyle( 'height', ( contentHeight - dy ) + 'px' ); + + editor.fire( 'resize' ); + }, + + modes : { wysiwyg : 1, source : 1 } + } ); + + output.push( '<a title="' + ( expanded ? editor.lang.toolbarCollapse : editor.lang.toolbarExpand ) + + '" id="' + collapserId + '" tabIndex="-1" class="cke_toolbox_collapser' ); + + if ( !expanded ) + output.push( ' cke_toolbox_collapser_min' ); + + output.push( '" onclick="CKEDITOR.tools.callFunction(' + collapserFn + ')">', + '<span>▲</span>', // BLACK UP-POINTING TRIANGLE + '</a>' ); + } + + event.data.html += output.join( '' ); + } + }); + + editor.on( 'destroy', function() + { + var toolbars, index = 0, i, + items, instance; + toolbars = this.toolbox.toolbars; + for ( ; index < toolbars.length; index++ ) + { + items = toolbars[ index ].items; + for ( i = 0; i < items.length; i++ ) + { + instance = items[ i ]; + if ( instance.clickFn ) CKEDITOR.tools.removeFunction( instance.clickFn ); + if ( instance.keyDownFn ) CKEDITOR.tools.removeFunction( instance.keyDownFn ); + } + } + }); + + editor.addCommand( 'toolbarFocus', commands.toolbarFocus ); + + editor.ui.add( '-', CKEDITOR.UI_SEPARATOR, {} ); + editor.ui.addHandler( CKEDITOR.UI_SEPARATOR, + { + create: function() + { + return { + render : function( editor, output ) + { + output.push( '<span class="cke_separator" role="separator"></span>' ); + return {}; + } + }; + } + }); + } + }); +})(); + +CKEDITOR.UI_SEPARATOR = 'separator'; + +/** + * The "theme space" to which rendering the toolbar. For the default theme, + * the recommended options are "top" and "bottom". + * @type String + * @default 'top' + * @see CKEDITOR.config.theme + * @example + * config.toolbarLocation = 'bottom'; + */ +CKEDITOR.config.toolbarLocation = 'top'; + +/** + * The toolbar definition. It is an array of toolbars (strips), + * each one being also an array, containing a list of UI items. + * Note that this setting is composed by "toolbar_" added by the toolbar name, + * which in this case is called "Basic". This second part of the setting name + * can be anything. You must use this name in the + * {@link CKEDITOR.config.toolbar} setting, so you instruct the editor which + * toolbar_(name) setting to you. + * @type Array + * @example + * // Defines a toolbar with only one strip containing the "Source" button, a + * // separator and the "Bold" and "Italic" buttons. + * <b>config.toolbar_Basic = + * [ + * [ 'Source', '-', 'Bold', 'Italic' ] + * ]</b>; + * config.toolbar = 'Basic'; + */ +CKEDITOR.config.toolbar_Basic = +[ + ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About'] +]; + +/** + * This is the default toolbar definition used by the editor. It contains all + * editor features. + * @type Array + * @default (see example) + * @example + * // This is actually the default value. + * config.toolbar_Full = + * [ + * { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] }, + * { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, + * { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] }, + * { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] }, + * '/', + * { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] }, + * { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] }, + * { name: 'links', items : [ 'Link','Unlink','Anchor' ] }, + * { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] }, + * '/', + * { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] }, + * { name: 'colors', items : [ 'TextColor','BGColor' ] }, + * { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] } + * ]; + */ +CKEDITOR.config.toolbar_Full = +[ + { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] }, + { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, + { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] }, + { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] }, + '/', + { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] }, + { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] }, + { name: 'links', items : [ 'Link','Unlink','Anchor' ] }, + { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] }, + '/', + { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] }, + { name: 'colors', items : [ 'TextColor','BGColor' ] }, + { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] } +]; + +/** + * The toolbox (alias toolbar) definition. It is a toolbar name or an array of + * toolbars (strips), each one being also an array, containing a list of UI items. + * @type Array|String + * @default 'Full' + * @example + * // Defines a toolbar with only one strip containing the "Source" button, a + * // separator and the "Bold" and "Italic" buttons. + * config.toolbar = + * [ + * [ 'Source', '-', 'Bold', 'Italic' ] + * ]; + * @example + * // Load toolbar_Name where Name = Basic. + * config.toolbar = 'Basic'; + */ +CKEDITOR.config.toolbar = 'Full'; + +/** + * Whether the toolbar can be collapsed by the user. If disabled, the collapser + * button will not be displayed. + * @type Boolean + * @default true + * @example + * config.toolbarCanCollapse = false; + */ +CKEDITOR.config.toolbarCanCollapse = true; + +/** + * Whether the toolbar must start expanded when the editor is loaded. + * @name CKEDITOR.config.toolbarStartupExpanded + * @type Boolean + * @default true + * @example + * config.toolbarStartupExpanded = false; + */ + +/** + * When enabled, makes the arrow keys navigation cycle within the current + * toolbar group. Otherwise the arrows will move trought all items available in + * the toolbar. The TAB key will still be used to quickly jump among the + * toolbar groups. + * @name CKEDITOR.config.toolbarGroupCycling + * @since 3.6 + * @type Boolean + * @default true + * @example + * config.toolbarGroupCycling = false; + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js new file mode 100644 index 0000000000000000000000000000000000000000..cc8589df431212c2ddeb2e57336a5293b31cc7d8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js @@ -0,0 +1,205 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'uicolor', function( editor ) +{ + var dialog, picker, pickerContents, + // Actual UI color value. + uiColor = editor.getUiColor(), + pickerId = 'cke_uicolor_picker' + CKEDITOR.tools.getNextNumber(); + + function setNewPickerColor( color ) + { + // Convert HEX representation to RGB, stripping # char. + if ( /^#/.test( color ) ) + color = window.YAHOO.util.Color.hex2rgb( color.substr( 1 ) ); + picker.setValue( color, true ); + // Refresh picker UI. + picker.refresh( pickerId ); + } + + function setNewUiColor( color, force ) + { + if ( force || dialog._.contents.tab1.livePeview.getValue() ) + editor.setUiColor( color ); + // Write new config string into textbox. + dialog._.contents.tab1.configBox.setValue( + 'config.uiColor = "#' + picker.get( "hex" ) + '"' + ); + } + + pickerContents = + { + id : 'yuiColorPicker', + type : 'html', + html : "<div id='" + pickerId + "' class='cke_uicolor_picker' style='width: 360px; height: 200px; position: relative;'></div>", + onLoad : function( event ) + { + var url = CKEDITOR.getUrl( + '_source/' + // @Packager.RemoveLine + 'plugins/uicolor/yui/' + ); + + // Create new color picker widget. + picker = new window.YAHOO.widget.ColorPicker( pickerId, + { + showhsvcontrols : true, + showhexcontrols : true, + images : + { + PICKER_THUMB : url + "assets/picker_thumb.png", + HUE_THUMB : url + "assets/hue_thumb.png" + } + }); + + // Set actual UI color to the picker. + if ( uiColor ) + setNewPickerColor( uiColor ); + + // Subscribe to the rgbChange event. + picker.on( "rgbChange", function() + { + // Reset predefined box. + dialog._.contents.tab1.predefined.setValue( '' ); + setNewUiColor( '#' + picker.get( 'hex' ) ); + }); + + // Fix input class names. + var inputs = new CKEDITOR.dom.nodeList( picker.getElementsByTagName( 'input' ) ); + for ( var i = 0; i < inputs.count() ; i++ ) + inputs.getItem( i ).addClass( 'cke_dialog_ui_input_text' ); + } + }; + + var skipPreviewChange = true; + + return { + title : editor.lang.uicolor.title, + minWidth : 360, + minHeight : 320, + onLoad : function() + { + dialog = this; + this.setupContent(); + + // #3808 + if ( CKEDITOR.env.ie7Compat ) + dialog.parts.contents.setStyle( 'overflow', 'hidden' ); + }, + contents : [ + { + id : 'tab1', + label : '', + title : '', + expand : true, + padding : 0, + elements : [ + pickerContents, + { + id : 'tab1', + type : 'vbox', + children : + [ + { + id : 'livePeview', + type : 'checkbox', + label : editor.lang.uicolor.preview, + 'default' : 1, + onLoad : function() + { + skipPreviewChange = true; + }, + onChange : function() + { + if ( skipPreviewChange ) + return; + var on = this.getValue(), + color = on ? '#' + picker.get( 'hex' ) : uiColor; + setNewUiColor( color, true ); + } + }, + { + type : 'hbox', + children : + [ + { + id : 'predefined', + type : 'select', + 'default' : '', + label : editor.lang.uicolor.predefined, + items : + [ + [ '' ], + [ 'Light blue', '#9AB8F3' ], + [ 'Sand', '#D2B48C' ], + [ 'Metallic', '#949AAA' ], + [ 'Purple', '#C2A3C7' ], + [ 'Olive', '#A2C980' ], + [ 'Happy green', '#9BD446' ], + [ 'Jezebel Blue', '#14B8C4' ], + [ 'Burn', '#FF893A' ], + [ 'Easy red', '#FF6969' ], + [ 'Pisces 3', '#48B4F2' ], + [ 'Aquarius 5', '#487ED4' ], + [ 'Absinthe', '#A8CF76' ], + [ 'Scrambled Egg', '#C7A622' ], + [ 'Hello monday', '#8E8D80' ], + [ 'Lovely sunshine', '#F1E8B1' ], + [ 'Recycled air', '#B3C593' ], + [ 'Down', '#BCBCA4' ], + [ 'Mark Twain', '#CFE91D' ], + [ 'Specks of dust', '#D1B596' ], + [ 'Lollipop', '#F6CE23' ] + ], + onChange : function() + { + var color = this.getValue(); + if ( color ) + { + setNewPickerColor( color ); + setNewUiColor( color ); + // Refresh predefined preview box. + CKEDITOR.document.getById( 'predefinedPreview' ).setStyle( 'background', color ); + } + else + CKEDITOR.document.getById( 'predefinedPreview' ).setStyle( 'background', '' ); + }, + onShow : function() + { + var color = editor.getUiColor(); + if ( color ) + this.setValue( color ); + } + }, + { + id : 'predefinedPreview', + type : 'html', + html : '<div id="cke_uicolor_preview" style="border: 1px solid black; padding: 3px; width: 30px;">' + + '<div id="predefinedPreview" style="width: 30px; height: 30px;"> </div>' + + '</div>' + } + ] + }, + { + id : 'configBox', + type : 'text', + label : editor.lang.uicolor.config, + onShow : function() + { + var color = editor.getUiColor(); + if ( color ) + this.setValue( + 'config.uiColor = "' + color + '"' + ); + } + } + ] + } + ] + } + ], + buttons : [ CKEDITOR.dialog.okButton ] + }; +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/_translationstatus.txt b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/_translationstatus.txt new file mode 100644 index 0000000000000000000000000000000000000000..f268477ea6ba8303509b83638e9473e839ca8594 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/_translationstatus.txt @@ -0,0 +1,28 @@ +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license + +bg.js Found: 4 Missing: 0 +cs.js Found: 4 Missing: 0 +cy.js Found: 4 Missing: 0 +da.js Found: 4 Missing: 0 +de.js Found: 4 Missing: 0 +el.js Found: 4 Missing: 0 +eo.js Found: 4 Missing: 0 +et.js Found: 4 Missing: 0 +fa.js Found: 4 Missing: 0 +fi.js Found: 4 Missing: 0 +fr.js Found: 4 Missing: 0 +he.js Found: 4 Missing: 0 +hr.js Found: 4 Missing: 0 +it.js Found: 4 Missing: 0 +mk.js Found: 4 Missing: 0 +nb.js Found: 4 Missing: 0 +nl.js Found: 4 Missing: 0 +no.js Found: 4 Missing: 0 +pl.js Found: 4 Missing: 0 +pt-br.js Found: 4 Missing: 0 +tr.js Found: 4 Missing: 0 +ug.js Found: 4 Missing: 0 +uk.js Found: 4 Missing: 0 +vi.js Found: 4 Missing: 0 +zh-cn.js Found: 4 Missing: 0 diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/bg.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/bg.js new file mode 100644 index 0000000000000000000000000000000000000000..8b418392fe896617a382685b743ec83b4ebd4ca2 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/bg.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'bg', +{ + uicolor : + { + title : 'ПИ избор на цвят', + preview : 'Преглед', + config : 'Вмъкнете този низ във Вашия config.js fajl', + predefined : 'Предефинирани цветови палитри' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/cs.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/cs.js new file mode 100644 index 0000000000000000000000000000000000000000..778f2061a71edf97f18cc65edd2ba32234e85127 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/cs.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'cs', +{ + uicolor : + { + title : 'Výběr barvy rozhraní', + preview : 'Živý náhled', + config : 'Vložte tento řetězec do Vašeho souboru config.js', + predefined : 'Přednastavené sady barev' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/cy.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/cy.js new file mode 100644 index 0000000000000000000000000000000000000000..5033e8de5c22ccf107093dfe8ac2099d54eedfa0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/cy.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/da.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/da.js new file mode 100644 index 0000000000000000000000000000000000000000..a2c9701742b5824a504ade7a3f208769897f43ff --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/da.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/de.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/de.js new file mode 100644 index 0000000000000000000000000000000000000000..d59d65361009726fc4a4b230e144acbb04b6c3c3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/de.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/el.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/el.js new file mode 100644 index 0000000000000000000000000000000000000000..c73334ee46a206aa9f1baf765f6b118ea01c168d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/el.js @@ -0,0 +1,15 @@ +/* +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 : 'Προκαθορισμένα σύνολα χρωμάτων' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/en.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/en.js new file mode 100644 index 0000000000000000000000000000000000000000..7acb22c9c1723d81f28d3be65a4a39d12fff2ac3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/en.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'en', +{ + uicolor : + { + title : 'UI Color Picker', + preview : 'Live preview', + config : 'Paste this string into your config.js file', + predefined : 'Predefined color sets' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/eo.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..cce1447695d59bd672d50d6292ebe489a26e3c7a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/eo.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/et.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/et.js new file mode 100644 index 0000000000000000000000000000000000000000..46dd92972a3b79a51444c41642bbcae95b02d414 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/et.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fa.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fa.js new file mode 100644 index 0000000000000000000000000000000000000000..223fc2cf9793e94bb209966fafea99470f89b493 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fa.js @@ -0,0 +1,15 @@ +/* +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 : 'مجموعه رنگ از پیش تعریف شده' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fi.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..5e781fc1f280b8ea8fb0c94961c05ae8c4caaa7d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fi.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'fi', +{ + uicolor : + { + title : 'Käyttöliittymän värivalitsin', + preview : 'Esikatsele', + config : 'Liitä tämä merkkijono config.js tiedostoosi', + predefined : 'Esimääritellyt värijoukot' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fr.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..fb0abf9c4c1a83e49c05bbe86c88e450f1dcdd4b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/fr.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/he.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/he.js new file mode 100644 index 0000000000000000000000000000000000000000..dfb3569cf6da4a91db375effacbf24ebab75c976 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/he.js @@ -0,0 +1,15 @@ +/* +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 : 'קבוצות צבעים מוגדרות מראש' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/hr.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/hr.js new file mode 100644 index 0000000000000000000000000000000000000000..0125b4df418c0c82fcd6b0869e77b322446315a8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/hr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'hr', +{ + uicolor : + { + title : 'UI odabir boja', + preview : 'Pregled uživo', + config : 'Zalijepite ovaj tekst u Vašu config.js datoteku.', + predefined : 'Već postavljeni setovi boja' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/it.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/it.js new file mode 100644 index 0000000000000000000000000000000000000000..48c58927522e881dd380284754c3114e435e1290 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/it.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/mk.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/mk.js new file mode 100644 index 0000000000000000000000000000000000000000..61c4715ad6c32eae414c86500873e39bb0273362 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/mk.js @@ -0,0 +1,15 @@ +/* +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 : 'Предефинирани множества на бои' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/nb.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..d0d675ae25945665bc6083ff8677365ae2a1bda8 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/nb.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/nl.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..27a1ffbd9de7d3025ef57106dbed264c0b9270ac --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/nl.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/no.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/no.js new file mode 100644 index 0000000000000000000000000000000000000000..990bc38b61999717bcc38f9d1869a0ade0b9d250 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/no.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/pl.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/pl.js new file mode 100644 index 0000000000000000000000000000000000000000..6686b0a2ce71398725d931becd333e0508cf6fac --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/pl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'pl', +{ + uicolor : + { + title : 'Wybór koloru interfejsu', + preview : 'Podgląd na żywo', + config : 'Wklej poniższy łańcuch znaków do pliku config.js:', + predefined : 'Predefiniowane zestawy kolorów' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/pt-br.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/pt-br.js new file mode 100644 index 0000000000000000000000000000000000000000..9e28c1c1dc62e5f839a9869486a3f5d34efc575f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/pt-br.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/tr.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..124fd3ddff054bc48fcd8032cc4b49dab6f102cd --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/tr.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/ug.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/ug.js new file mode 100644 index 0000000000000000000000000000000000000000..3425557c84f372240c0307440b8fbbf69d74ea02 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/ug.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'ug', +{ + uicolor : + { + title : 'ئىشلەتكۈچى ئارايۈزى رەڭ تاللىغۇچ', + preview : 'شۇئان ئالدىن كۆزىتىش', + config : 'بۇ ھەرپ تىزىقىنى config.js ھۆججەتكە چاپلايدۇ', + predefined : 'ئالدىن بەلگىلەنگەن رەڭلەر' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/uk.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/uk.js new file mode 100644 index 0000000000000000000000000000000000000000..be16ea89c8535f35e446be56ad0cd2059c1ca937 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/uk.js @@ -0,0 +1,15 @@ +/* +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 : 'Стандартний набір кольорів' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/vi.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/vi.js new file mode 100644 index 0000000000000000000000000000000000000000..b4e9190c59395467269adf591e36d3a5593e7646 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/vi.js @@ -0,0 +1,15 @@ +/* +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' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/zh-cn.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/zh-cn.js new file mode 100644 index 0000000000000000000000000000000000000000..0365ebb47370584800197c6407a513cd57ca97ef --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/lang/zh-cn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.setLang( 'uicolor', 'zh-cn', +{ + uicolor : + { + title : '用户界面颜色选择器', + preview : '即时预览', + config : '粘贴此字符串到你的 config.js 文件', + predefined : '预定义颜色集' + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/plugin.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..6aa02b27827c3f382acf1d9916067b8049037209 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/plugin.js @@ -0,0 +1,37 @@ +/* +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', 'mk', 'nb', 'nl', 'no', 'pl', 'pt-br', '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' + )); + } +} ); diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/uicolor.gif b/htdocs/includes/ckeditor/_source/plugins/uicolor/uicolor.gif new file mode 100644 index 0000000000000000000000000000000000000000..ec33de6e5bc6bb99e438497f20adc8db44e4e8a8 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/uicolor/uicolor.gif differ diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png new file mode 100644 index 0000000000000000000000000000000000000000..d9bcdeb5c49910d5c32c9ebbb134200bf138b7b4 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png new file mode 100644 index 0000000000000000000000000000000000000000..14d5db4862403a43231ac4766301552afa79e8ae Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..f8d91932b376af76ccfac030c12eb9fec7ee4c63 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png new file mode 100644 index 0000000000000000000000000000000000000000..78445a2fe060047216b3692980ebabfb0683c3c6 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png differ diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/yui.css b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/yui.css new file mode 100644 index 0000000000000000000000000000000000000000..e7dbd797741ed8bda0416a0e0de7fa499f0c6226 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/assets/yui.css @@ -0,0 +1,15 @@ +/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +.yui-h-slider,.yui-v-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;} + +/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +.cke_uicolor_picker .yui-picker-panel{background:#e3e3e3;border-color:#888;}.cke_uicolor_picker .yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.cke_uicolor_picker .yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.cke_uicolor_picker .yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.cke_uicolor_picker .yui-picker{position:relative;}.cke_uicolor_picker .yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.cke_uicolor_picker .yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.cke_uicolor_picker .yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .cke_uicolor_picker .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='picker_mask.png',sizingMethod='scale');}.cke_uicolor_picker .yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.cke_uicolor_picker .yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.cke_uicolor_picker .yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.cke_uicolor_picker .yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.cke_uicolor_picker .yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.cke_uicolor_picker .yui-picker-controls .hd{background:transparent;border-width:0!important;}.cke_uicolor_picker .yui-picker-controls .bd{height:100px;border-width:0!important;}.cke_uicolor_picker .yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.cke_uicolor_picker .yui-picker-controls li{padding:2px;list-style:none;margin:0;}.cke_uicolor_picker .yui-picker-controls input{font-size:.85em;width:2.4em;}.cke_uicolor_picker .yui-picker-hex-controls{clear:both;padding:2px;}.cke_uicolor_picker .yui-picker-hex-controls input{width:4.6em;}.cke_uicolor_picker .yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;} diff --git a/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/yui.js b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/yui.js new file mode 100644 index 0000000000000000000000000000000000000000..714d141ad560225ac8a853da1c2cfa1e5dd92f7e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/uicolor/yui/yui.js @@ -0,0 +1,71 @@ +/*jsl:ignoreall*/ +/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1;}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1]);if(/ Mobile\//.test(B)){C.mobile="Apple";}else{A=B.match(/NokiaN[^\/]*/);if(A){C.mobile=A[0];}}A=B.match(/AdobeAIR\/([^\s]*)/);if(A){C.air=A[0];}}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1]);A=B.match(/Opera Mini[^;]*/);if(A){C.mobile=A[0];}}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1]);}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1]);}}}}}A=B.match(/Caja\/([^\s]*)/);if(A&&A[1]){C.caja=parseFloat(A[1]);}return C;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,F="[object Array]",C="[object Function]",A=Object.prototype,E=["toString","valueOf"],D={isArray:function(G){return A.toString.apply(G)===F;},isBoolean:function(G){return typeof G==="boolean";},isFunction:function(G){return A.toString.apply(G)===C;},isNull:function(G){return G===null;},isNumber:function(G){return typeof G==="number"&&isFinite(G);},isObject:function(G){return(G&&(typeof G==="object"||B.isFunction(G)))||false;},isString:function(G){return typeof G==="string";},isUndefined:function(G){return typeof G==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(I,H){var G,K,J;for(G=0;G<E.length;G=G+1){K=E[G];J=H[K];if(B.isFunction(J)&&J!=A[K]){I[K]=J;}}}:function(){},extend:function(J,K,I){if(!K||!J){throw new Error("extend failed, please check that "+"all dependencies are included.");}var H=function(){},G;H.prototype=K.prototype;J.prototype=new H();J.prototype.constructor=J;J.superclass=K.prototype;if(K.prototype.constructor==A.constructor){K.prototype.constructor=K;}if(I){for(G in I){if(B.hasOwnProperty(I,G)){J.prototype[G]=I[G];}}B._IEEnumFix(J.prototype,I);}},augmentObject:function(K,J){if(!J||!K){throw new Error("Absorb failed, verify dependencies.");}var G=arguments,I,L,H=G[2];if(H&&H!==true){for(I=2;I<G.length;I=I+1){K[G[I]]=J[G[I]];}}else{for(L in J){if(H||!(L in K)){K[L]=J[L];}}B._IEEnumFix(K,J);}},augmentProto:function(J,I){if(!I||!J){throw new Error("Augment failed, verify dependencies.");}var G=[J.prototype,I.prototype],H;for(H=2;H<arguments.length;H=H+1){G.push(arguments[H]);}B.augmentObject.apply(this,G);},dump:function(G,L){var I,K,N=[],O="{...}",H="f(){...}",M=", ",J=" => ";if(!B.isObject(G)){return G+"";}else{if(G instanceof Date||("nodeType" in G&&"tagName" in G)){return G;}else{if(B.isFunction(G)){return H;}}}L=(B.isNumber(L))?L:3;if(B.isArray(G)){N.push("[");for(I=0,K=G.length;I<K;I=I+1){if(B.isObject(G[I])){N.push((L>0)?B.dump(G[I],L-1):O);}else{N.push(G[I]);}N.push(M);}if(N.length>1){N.pop();}N.push("]");}else{N.push("{");for(I in G){if(B.hasOwnProperty(G,I)){N.push(I+J);if(B.isObject(G[I])){N.push((L>0)?B.dump(G[I],L-1):O);}else{N.push(G[I]);}N.push(M);}}if(N.length>1){N.pop();}N.push("}");}return N.join("");},substitute:function(V,H,O){var L,K,J,R,S,U,Q=[],I,M="dump",P=" ",G="{",T="}",N;for(;;){L=V.lastIndexOf(G);if(L<0){break;}K=V.indexOf(T,L);if(L+1>=K){break;}I=V.substring(L+1,K);R=I;U=null;J=R.indexOf(P);if(J>-1){U=R.substring(J+1);R=R.substring(0,J);}S=H[R];if(O){S=O(R,S,U);}if(B.isObject(S)){if(B.isArray(S)){S=B.dump(S,parseInt(U,10));}else{U=U||"";N=U.indexOf(M);if(N>-1){U=U.substring(4);}if(S.toString===A.toString||N>-1){S=B.dump(S,parseInt(U,10));}else{S=S.toString();}}}else{if(!B.isString(S)&&!B.isNumber(S)){S="~-"+Q.length+"-~";Q[Q.length]=I;}}V=V.substring(0,L)+S+V.substring(K+1);}for(L=Q.length-1;L>=0;L=L-1){V=V.replace(new RegExp("~-"+L+"-~"),"{"+Q[L]+"}","g");}return V;},trim:function(G){try{return G.replace(/^\s+|\s+$/g,"");}catch(H){return G;}},merge:function(){var J={},H=arguments,G=H.length,I;for(I=0;I<G;I=I+1){B.augmentObject(J,H[I],true);}return J;},later:function(N,H,O,J,K){N=N||0;H=H||{};var I=O,M=J,L,G;if(B.isString(O)){I=H[O];}if(!I){throw new TypeError("method undefined");}if(!B.isArray(M)){M=[J];}L=function(){I.apply(H,M);};G=(K)?setInterval(L,N):setTimeout(L,N);return{interval:K,cancel:function(){if(this.interval){clearInterval(G);}else{clearTimeout(G);}}};},isValue:function(G){return(B.isObject(G)||B.isString(G)||B.isNumber(G)||B.isBoolean(G));}};B.hasOwnProperty=(A.hasOwnProperty)?function(G,H){return G&&G.hasOwnProperty(H);}:function(G,H){return !B.isUndefined(G[H])&&G.constructor.prototype[H]!==G[H];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.7.0",build:"1796"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},get:function(y){var AA,Y,z,x,G;if(y){if(y[l]||y.item){return y;}if(typeof y==="string"){AA=y;y=K.getElementById(y);if(y&&y.id===AA){return y;}else{if(y&&K.all){y=null;Y=K.all[AA];for(x=0,G=Y.length;x<G;++x){if(Y[x].id===AA){return Y[x];}}}}return y;}if(y.DOM_EVENTS){y=y.get("element");}if("length" in y){z=[];for(x=0,G=y.length;x<G;++x){z[z.length]=E.Dom.get(y[x]);}return z;}return y;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];G=S(AF[v],q);x=S(AF[v],R);if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC==c)){if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AB=L.trim(AB);AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom.getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom.getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom.getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom.getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom.getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G}); +},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom.getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;Y.setAttribute(G,x);},getAttribute:function(Y,G){G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;return Y.getAttribute(G);},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B); +}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.7.0",build:"1796"});YAHOO.util.CustomEvent=function(D,C,B,A){this.type=D;this.scope=C||window;this.silent=B;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(A,B,C){if(!A){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(A,B,C);}this.subscribers.push(new YAHOO.util.Subscriber(A,B,C));},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var K=[],E=this.subscribers.length;if(!E&&this.silent){return true;}var I=[].slice.call(arguments,0),G=true,D,J=false;if(!this.silent){}var C=this.subscribers.slice(),A=YAHOO.util.Event.throwErrors;for(D=0;D<E;++D){var M=C[D];if(!M){J=true;}else{if(!this.silent){}var L=M.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var B=null;if(I.length>0){B=I[0];}try{G=M.fn.call(L,B,M.obj);}catch(F){this.lastError=F;if(A){throw F;}}}else{try{G=M.fn.call(L,this.type,I,M.obj);}catch(H){this.lastError=H;if(A){throw H;}}}if(false===G){if(!this.silent){}break;}}}return(G!==false);},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};var K=YAHOO.env.ua.ie?"focusin":"focus";var L=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var M=this;var N=function(){M._tryPreloadAttach();};this._interval=setInterval(N,this.POLL_INTERVAL);}},onAvailable:function(S,O,Q,R,P){var M=(YAHOO.lang.isString(S))?[S]:S;for(var N=0;N<M.length;N=N+1){F.push({id:M[N],fn:O,obj:Q,overrideContext:R,checkReady:P});}C=this.POLL_RETRYS;this.startInterval();},onContentReady:function(P,M,N,O){this.onAvailable(P,M,N,O,true);},onDOMReady:function(M,N,O){if(this.DOMReady){setTimeout(function(){var P=window;if(O){if(O===true){P=N;}else{P=O;}}M.call(P,"DOMReady",[],N);},0);}else{this.DOMReadyEvent.subscribe(M,N,O);}},_addListener:function(O,M,Y,S,W,b){if(!Y||!Y.call){return false;}if(this._isValidCollection(O)){var Z=true;for(var T=0,V=O.length;T<V;++T){Z=this.on(O[T],M,Y,S,W)&&Z;}return Z;}else{if(YAHOO.lang.isString(O)){var R=this.getEl(O);if(R){O=R;}else{this.onAvailable(O,function(){YAHOO.util.Event.on(O,M,Y,S,W);});return true;}}}if(!O){return false;}if("unload"==M&&S!==this){J[J.length]=[O,M,Y,S,W];return true;}var N=O;if(W){if(W===true){N=S;}else{N=W;}}var P=function(c){return Y.call(N,YAHOO.util.Event.getEvent(c,O),S);};var a=[O,M,Y,P,N,S,W];var U=I.length;I[U]=a;if(this.useLegacyEvent(O,M)){var Q=this.getLegacyIndex(O,M);if(Q==-1||O!=G[Q][0]){Q=G.length;B[O.id+M]=Q;G[Q]=[O,M,O["on"+M]];E[Q]=[];O["on"+M]=function(c){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(c),Q);};}E[Q].push(a);}else{try{this._simpleAdd(O,M,P,b);}catch(X){this.lastError=X;this.removeListener(O,M,Y);return false;}}return true;},addListener:function(N,Q,M,O,P){return this._addListener(N,Q,M,O,P,false);},addFocusListener:function(N,M,O,P){return this._addListener(N,K,M,O,P,true);},removeFocusListener:function(N,M){return this.removeListener(N,K,M);},addBlurListener:function(N,M,O,P){return this._addListener(N,L,M,O,P,true);},removeBlurListener:function(N,M){return this.removeListener(N,L,M);},fireLegacyEvent:function(R,P){var T=true,M,V,U,N,S;V=E[P].slice();for(var O=0,Q=V.length;O<Q;++O){U=V[O];if(U&&U[this.WFN]){N=U[this.ADJ_SCOPE];S=U[this.WFN].call(N,R);T=(T&&S);}}M=G[P];if(M&&M[2]){M[2](R);}return T;},getLegacyIndex:function(N,O){var M=this.generateId(N)+O;if(typeof B[M]=="undefined"){return -1;}else{return B[M];}},useLegacyEvent:function(M,N){return(this.webkit&&this.webkit<419&&("click"==N||"dblclick"==N));},removeListener:function(N,M,V){var Q,T,X;if(typeof N=="string"){N=this.getEl(N);}else{if(this._isValidCollection(N)){var W=true;for(Q=N.length-1;Q>-1;Q--){W=(this.removeListener(N[Q],M,V)&&W);}return W;}}if(!V||!V.call){return this.purgeElement(N,false,M);}if("unload"==M){for(Q=J.length-1;Q>-1;Q--){X=J[Q];if(X&&X[0]==N&&X[1]==M&&X[2]==V){J.splice(Q,1);return true;}}return false;}var R=null;var S=arguments[3];if("undefined"===typeof S){S=this._getCacheIndex(N,M,V);}if(S>=0){R=I[S];}if(!N||!R){return false;}if(this.useLegacyEvent(N,M)){var P=this.getLegacyIndex(N,M);var O=E[P];if(O){for(Q=0,T=O.length;Q<T;++Q){X=O[Q];if(X&&X[this.EL]==N&&X[this.TYPE]==M&&X[this.FN]==V){O.splice(Q,1);break;}}}}else{try{this._simpleRemove(N,M,R[this.WFN],false);}catch(U){this.lastError=U;return false;}}delete I[S][this.WFN];delete I[S][this.FN]; +I.splice(S,1);return true;},getTarget:function(O,N){var M=O.target||O.srcElement;return this.resolveTextNode(M);},resolveTextNode:function(N){try{if(N&&3==N.nodeType){return N.parentNode;}}catch(M){}return N;},getPageX:function(N){var M=N.pageX;if(!M&&0!==M){M=N.clientX||0;if(this.isIE){M+=this._getScrollLeft();}}return M;},getPageY:function(M){var N=M.pageY;if(!N&&0!==N){N=M.clientY||0;if(this.isIE){N+=this._getScrollTop();}}return N;},getXY:function(M){return[this.getPageX(M),this.getPageY(M)];},getRelatedTarget:function(N){var M=N.relatedTarget;if(!M){if(N.type=="mouseout"){M=N.toElement;}else{if(N.type=="mouseover"){M=N.fromElement;}}}return this.resolveTextNode(M);},getTime:function(O){if(!O.time){var N=new Date().getTime();try{O.time=N;}catch(M){this.lastError=M;return N;}}return O.time;},stopEvent:function(M){this.stopPropagation(M);this.preventDefault(M);},stopPropagation:function(M){if(M.stopPropagation){M.stopPropagation();}else{M.cancelBubble=true;}},preventDefault:function(M){if(M.preventDefault){M.preventDefault();}else{M.returnValue=false;}},getEvent:function(O,M){var N=O||window.event;if(!N){var P=this.getEvent.caller;while(P){N=P.arguments[0];if(N&&Event==N.constructor){break;}P=P.caller;}}return N;},getCharCode:function(N){var M=N.keyCode||N.charCode||0;if(YAHOO.env.ua.webkit&&(M in D)){M=D[M];}return M;},_getCacheIndex:function(Q,R,P){for(var O=0,N=I.length;O<N;O=O+1){var M=I[O];if(M&&M[this.FN]==P&&M[this.EL]==Q&&M[this.TYPE]==R){return O;}}return -1;},generateId:function(M){var N=M.id;if(!N){N="yuievtautoid-"+A;++A;M.id=N;}return N;},_isValidCollection:function(N){try{return(N&&typeof N!=="string"&&N.length&&!N.tagName&&!N.alert&&typeof N[0]!=="undefined");}catch(M){return false;}},elCache:{},getEl:function(M){return(typeof M==="string")?document.getElementById(M):M;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(N){if(!H){H=true;var M=YAHOO.util.Event;M._ready();M._tryPreloadAttach();}},_ready:function(N){var M=YAHOO.util.Event;if(!M.DOMReady){M.DOMReady=true;M.DOMReadyEvent.fire();M._simpleRemove(document,"DOMContentLoaded",M._ready);}},_tryPreloadAttach:function(){if(F.length===0){C=0;if(this._interval){clearInterval(this._interval);this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var S=!H;if(!S){S=(C>0&&F.length>0);}var R=[];var T=function(V,W){var U=V;if(W.overrideContext){if(W.overrideContext===true){U=W.obj;}else{U=W.overrideContext;}}W.fn.call(U,W.obj);};var N,M,Q,P,O=[];for(N=0,M=F.length;N<M;N=N+1){Q=F[N];if(Q){P=this.getEl(Q.id);if(P){if(Q.checkReady){if(H||P.nextSibling||!S){O.push(Q);F[N]=null;}}else{T(P,Q);F[N]=null;}}else{R.push(Q);}}}for(N=0,M=O.length;N<M;N=N+1){Q=O[N];T(this.getEl(Q.id),Q);}C--;if(S){for(N=F.length-1;N>-1;N--){Q=F[N];if(!Q||!Q.id){F.splice(N,1);}}this.startInterval();}else{if(this._interval){clearInterval(this._interval);this._interval=null;}}this.locked=false;},purgeElement:function(Q,R,T){var O=(YAHOO.lang.isString(Q))?this.getEl(Q):Q;var S=this.getListeners(O,T),P,M;if(S){for(P=S.length-1;P>-1;P--){var N=S[P];this.removeListener(O,N.type,N.fn);}}if(R&&O&&O.childNodes){for(P=0,M=O.childNodes.length;P<M;++P){this.purgeElement(O.childNodes[P],R,T);}}},getListeners:function(O,M){var R=[],N;if(!M){N=[I,J];}else{if(M==="unload"){N=[J];}else{N=[I];}}var T=(YAHOO.lang.isString(O))?this.getEl(O):O;for(var Q=0;Q<N.length;Q=Q+1){var V=N[Q];if(V){for(var S=0,U=V.length;S<U;++S){var P=V[S];if(P&&P[this.EL]===T&&(!M||M===P[this.TYPE])){R.push({type:P[this.TYPE],fn:P[this.FN],obj:P[this.OBJ],adjust:P[this.OVERRIDE],scope:P[this.ADJ_SCOPE],index:S});}}}}return(R.length)?R:null;},_unload:function(T){var N=YAHOO.util.Event,Q,P,O,S,R,U=J.slice(),M;for(Q=0,S=J.length;Q<S;++Q){O=U[Q];if(O){M=window;if(O[N.ADJ_SCOPE]){if(O[N.ADJ_SCOPE]===true){M=O[N.UNLOAD_OBJ];}else{M=O[N.ADJ_SCOPE];}}O[N.FN].call(M,N.getEvent(T,O[N.EL]),O[N.UNLOAD_OBJ]);U[Q]=null;}}O=null;M=null;J=null;if(I){for(P=I.length-1;P>-1;P--){O=I[P];if(O){N.removeListener(O[N.EL],O[N.TYPE],O[N.FN],P);}}O=null;}G=null;N._simpleRemove(window,"unload",N._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var M=document.documentElement,N=document.body;if(M&&(M.scrollTop||M.scrollLeft)){return[M.scrollTop,M.scrollLeft];}else{if(N){return[N.scrollTop,N.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(O,P,N,M){O.addEventListener(P,N,(M));};}else{if(window.attachEvent){return function(O,P,N,M){O.attachEvent("on"+P,N);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(O,P,N,M){O.removeEventListener(P,N,(M));};}else{if(window.detachEvent){return function(N,O,M){N.detachEvent("on"+O,M);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener; +/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller */ +if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E); +}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].overrideContext);}}}return I[G];},fireEvent:function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(!G){return null;}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F]);}return G.fire.apply(G,B);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.7.0",build:"1796"});YAHOO.register("yahoo-dom-event", YAHOO, {version: "2.7.0", build: "1796"}); +/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var A=YAHOO.util.Event,B=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var C=document.createElement("div");C.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(C,document.body.firstChild);}else{document.body.appendChild(C);}C.style.display="none";C.style.backgroundColor="red";C.style.position="absolute";C.style.zIndex="99999";B.setStyle(C,"opacity","0");this._shim=C;A.on(C,"mouseup",this.handleMouseUp,this,true);A.on(C,"mousemove",this.handleMouseMove,this,true);A.on(window,"scroll",this._sizeShim,this,true);},_sizeShim:function(){if(this._shimActive){var C=this._shim;C.style.height=B.getDocumentHeight()+"px";C.style.width=B.getDocumentWidth()+"px";C.style.top="0";C.style.left="0";}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim();}this._shimActive=true;var C=this._shim,D="0";if(this._debugShim){D=".5";}B.setStyle(C,"opacity",D);this._sizeShim();C.style.display="block";}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false;},_shim:null,ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(E,D){for(var F in this.ids){for(var C in this.ids[F]){var G=this.ids[F][C];if(!this.isTypeOfDD(G)){continue;}G[E].apply(G,D);}}},_onLoad:function(){this.init();A.on(document,"mouseup",this.handleMouseUp,this,true);A.on(document,"mousemove",this.handleMouseMove,this,true);A.on(window,"unload",this._onUnload,this,true);A.on(window,"resize",this._onResize,this,true);},_onResize:function(C){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(D,C){if(!this.initialized){this.init();}if(!this.ids[C]){this.ids[C]={};}this.ids[C][D.id]=D;},removeDDFromGroup:function(E,C){if(!this.ids[C]){this.ids[C]={};}var D=this.ids[C];if(D&&D[E.id]){delete D[E.id];}},_remove:function(E){for(var D in E.groups){if(D){var C=this.ids[D];if(C&&C[E.id]){delete C[E.id];}}}delete this.handleIds[E.id];},regHandle:function(D,C){if(!this.handleIds[D]){this.handleIds[D]={};}this.handleIds[D][C]=C;},isDragDrop:function(C){return(this.getDDById(C))?true:false;},getRelated:function(H,D){var G=[];for(var F in H.groups){for(var E in this.ids[F]){var C=this.ids[F][E];if(!this.isTypeOfDD(C)){continue;}if(!D||C.isTarget){G[G.length]=C;}}}return G;},isLegalTarget:function(G,F){var D=this.getRelated(G,true);for(var E=0,C=D.length;E<C;++E){if(D[E].id==F.id){return true;}}return false;},isTypeOfDD:function(C){return(C&&C.__ygDragDrop);},isHandle:function(D,C){return(this.handleIds[D]&&this.handleIds[D][C]);},getDDById:function(D){for(var C in this.ids){if(this.ids[C][D]){return this.ids[C][D];}}return null;},handleMouseDown:function(E,D){this.currentTarget=YAHOO.util.Event.getTarget(E);this.dragCurrent=D;var C=D.getEl();this.startX=YAHOO.util.Event.getPageX(E);this.startY=YAHOO.util.Event.getPageY(E);this.deltaX=this.startX-C.offsetLeft;this.deltaY=this.startY-C.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var F=YAHOO.util.DDM;F.startDrag(F.startX,F.startY);F.fromTimeout=true;},this.clickTimeThresh);},startDrag:function(C,E){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true;}this._activateShim();clearTimeout(this.clickTimeout);var D=this.dragCurrent;if(D&&D.events.b4StartDrag){D.b4StartDrag(C,E);D.fireEvent("b4StartDragEvent",{x:C,y:E});}if(D&&D.events.startDrag){D.startDrag(C,E);D.fireEvent("startDragEvent",{x:C,y:E});}this.dragThreshMet=true;},handleMouseUp:function(C){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(C);}this.fromTimeout=false;this.fireEvents(C,true);}else{}this.stopDrag(C);this.stopEvent(C);}},stopEvent:function(C){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(C);}if(this.preventDefault){YAHOO.util.Event.preventDefault(C);}},stopDrag:function(E,D){var C=this.dragCurrent;if(C&&!D){if(this.dragThreshMet){if(C.events.b4EndDrag){C.b4EndDrag(E);C.fireEvent("b4EndDragEvent",{e:E});}if(C.events.endDrag){C.endDrag(E);C.fireEvent("endDragEvent",{e:E});}}if(C.events.mouseUp){C.onMouseUp(E);C.fireEvent("mouseUpEvent",{e:E});}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false;}}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(F){var C=this.dragCurrent;if(C){if(YAHOO.util.Event.isIE&&!F.button){this.stopEvent(F);return this.handleMouseUp(F);}else{if(F.clientX<0||F.clientY<0){}}if(!this.dragThreshMet){var E=Math.abs(this.startX-YAHOO.util.Event.getPageX(F));var D=Math.abs(this.startY-YAHOO.util.Event.getPageY(F));if(E>this.clickPixelThresh||D>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){if(C&&C.events.b4Drag){C.b4Drag(F);C.fireEvent("b4DragEvent",{e:F});}if(C&&C.events.drag){C.onDrag(F);C.fireEvent("dragEvent",{e:F});}if(C){this.fireEvents(F,false);}}this.stopEvent(F);}},fireEvents:function(V,L){var a=this.dragCurrent;if(!a||a.isLocked()||a.dragOnly){return;}var N=YAHOO.util.Event.getPageX(V),M=YAHOO.util.Event.getPageY(V),P=new YAHOO.util.Point(N,M),K=a.getTargetCoord(P.x,P.y),F=a.getDragEl(),E=["out","over","drop","enter"],U=new YAHOO.util.Region(K.y,K.x+F.offsetWidth,K.y+F.offsetHeight,K.x),I=[],D={},Q=[],c={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var S in this.dragOvers){var d=this.dragOvers[S];if(!this.isTypeOfDD(d)){continue; +}if(!this.isOverTarget(P,d,this.mode,U)){c.outEvts.push(d);}I[S]=true;delete this.dragOvers[S];}for(var R in a.groups){if("string"!=typeof R){continue;}for(S in this.ids[R]){var G=this.ids[R][S];if(!this.isTypeOfDD(G)){continue;}if(G.isTarget&&!G.isLocked()&&G!=a){if(this.isOverTarget(P,G,this.mode,U)){D[R]=true;if(L){c.dropEvts.push(G);}else{if(!I[G.id]){c.enterEvts.push(G);}else{c.overEvts.push(G);}this.dragOvers[G.id]=G;}}}}}this.interactionInfo={out:c.outEvts,enter:c.enterEvts,over:c.overEvts,drop:c.dropEvts,point:P,draggedRegion:U,sourceRegion:this.locationCache[a.id],validDrop:L};for(var C in D){Q.push(C);}if(L&&!c.dropEvts.length){this.interactionInfo.validDrop=false;if(a.events.invalidDrop){a.onInvalidDrop(V);a.fireEvent("invalidDropEvent",{e:V});}}for(S=0;S<E.length;S++){var Y=null;if(c[E[S]+"Evts"]){Y=c[E[S]+"Evts"];}if(Y&&Y.length){var H=E[S].charAt(0).toUpperCase()+E[S].substr(1),X="onDrag"+H,J="b4Drag"+H,O="drag"+H+"Event",W="drag"+H;if(this.mode){if(a.events[J]){a[J](V,Y,Q);a.fireEvent(J+"Event",{event:V,info:Y,group:Q});}if(a.events[W]){a[X](V,Y,Q);a.fireEvent(O,{event:V,info:Y,group:Q});}}else{for(var Z=0,T=Y.length;Z<T;++Z){if(a.events[J]){a[J](V,Y[Z].id,Q[0]);a.fireEvent(J+"Event",{event:V,info:Y[Z].id,group:Q[0]});}if(a.events[W]){a[X](V,Y[Z].id,Q[0]);a.fireEvent(O,{event:V,info:Y[Z].id,group:Q[0]});}}}}}},getBestMatch:function(E){var G=null;var D=E.length;if(D==1){G=E[0];}else{for(var F=0;F<D;++F){var C=E[F];if(this.mode==this.INTERSECT&&C.cursorIsOver){G=C;break;}else{if(!G||!G.overlap||(C.overlap&&G.overlap.getArea()<C.overlap.getArea())){G=C;}}}}return G;},refreshCache:function(D){var F=D||this.ids;for(var C in F){if("string"!=typeof C){continue;}for(var E in this.ids[C]){var G=this.ids[C][E];if(this.isTypeOfDD(G)){var H=this.getLocation(G);if(H){this.locationCache[G.id]=H;}else{delete this.locationCache[G.id];}}}}},verifyEl:function(D){try{if(D){var C=D.offsetParent;if(C){return true;}}}catch(E){}return false;},getLocation:function(H){if(!this.isTypeOfDD(H)){return null;}var F=H.getEl(),K,E,D,M,L,N,C,J,G;try{K=YAHOO.util.Dom.getXY(F);}catch(I){}if(!K){return null;}E=K[0];D=E+F.offsetWidth;M=K[1];L=M+F.offsetHeight;N=M-H.padding[0];C=D+H.padding[1];J=L+H.padding[2];G=E-H.padding[3];return new YAHOO.util.Region(N,C,J,G);},isOverTarget:function(K,C,E,F){var G=this.locationCache[C.id];if(!G||!this.useCache){G=this.getLocation(C);this.locationCache[C.id]=G;}if(!G){return false;}C.cursorIsOver=G.contains(K);var J=this.dragCurrent;if(!J||(!E&&!J.constrainX&&!J.constrainY)){return C.cursorIsOver;}C.overlap=null;if(!F){var H=J.getTargetCoord(K.x,K.y);var D=J.getDragEl();F=new YAHOO.util.Region(H.y,H.x+D.offsetWidth,H.y+D.offsetHeight,H.x);}var I=F.intersect(G);if(I){C.overlap=I;return(E)?true:C.cursorIsOver;}else{return false;}},_onUnload:function(D,C){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);this.ids={};},elementCache:{},getElWrapper:function(D){var C=this.elementCache[D];if(!C||!C.el){C=this.elementCache[D]=new this.ElementWrapper(YAHOO.util.Dom.get(D));}return C;},getElement:function(C){return YAHOO.util.Dom.get(C);},getCss:function(D){var C=YAHOO.util.Dom.get(D);return(C)?C.style:null;},ElementWrapper:function(C){this.el=C||null;this.id=this.el&&C.id;this.css=this.el&&C.style;},getPosX:function(C){return YAHOO.util.Dom.getX(C);},getPosY:function(C){return YAHOO.util.Dom.getY(C);},swapNode:function(E,C){if(E.swapNode){E.swapNode(C);}else{var F=C.parentNode;var D=C.nextSibling;if(D==E){F.insertBefore(E,C);}else{if(C==E.nextSibling){F.insertBefore(C,E);}else{E.parentNode.replaceChild(C,E);F.insertBefore(E,D);}}}},getScroll:function(){var E,C,F=document.documentElement,D=document.body;if(F&&(F.scrollTop||F.scrollLeft)){E=F.scrollTop;C=F.scrollLeft;}else{if(D){E=D.scrollTop;C=D.scrollLeft;}else{}}return{top:E,left:C};},getStyle:function(D,C){return YAHOO.util.Dom.getStyle(D,C);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(C,E){var D=YAHOO.util.Dom.getXY(E);YAHOO.util.Dom.setXY(C,D);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(D,C){return(D-C);},_timeoutCount:0,_addListeners:function(){var C=YAHOO.util.DDM;if(YAHOO.util.Event&&document){C._onLoad();}else{if(C._timeoutCount>2000){}else{setTimeout(C._addListeners,10);if(document&&document.body){C._timeoutCount+=1;}}}},handleWasClicked:function(C,E){if(this.isHandle(E,C.id)){return true;}else{var D=C.parentNode;while(D){if(this.isHandle(E,D.id)){return true;}else{D=D.parentNode;}}}return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();}(function(){var A=YAHOO.util.Event;var B=YAHOO.util.Dom;YAHOO.util.DragDrop=function(E,C,D){if(E){this.init(E,C,D);}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments);},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,dragOnly:false,useShim:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(C,D){},startDrag:function(C,D){},b4Drag:function(C){},onDrag:function(C){},onDragEnter:function(C,D){},b4DragOver:function(C){},onDragOver:function(C,D){},b4DragOut:function(C){},onDragOut:function(C,D){},b4DragDrop:function(C){},onDragDrop:function(C,D){},onInvalidDrop:function(C){},b4EndDrag:function(C){},endDrag:function(C){},b4MouseDown:function(C){},onMouseDown:function(C){},onMouseUp:function(C){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=B.get(this.id); +}return this._domRef;},getDragEl:function(){return B.get(this.dragElId);},init:function(F,C,D){this.initTarget(F,C,D);A.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var E in this.events){this.createEvent(E+"Event");}},initTarget:function(E,C,D){this.config=D||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof E!=="string"){this._domRef=E;E=B.generateId(E);}this.id=E;this.addToGroup((C)?C:"default");this.handleElId=E;A.onAvailable(E,this.handleOnAvailable,this,true);this.setDragElId(E);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var C in this.config.events){if(this.config.events[C]===false){this.events[C]=false;}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);this.useShim=((this.config.useShim===true)?true:false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(E,C,F,D){if(!C&&0!==C){this.padding=[E,E,E,E];}else{if(!F&&0!==F){this.padding=[E,C,E,C];}else{this.padding=[E,C,F,D];}}},setInitPosition:function(F,E){var G=this.getEl();if(!this.DDM.verifyEl(G)){if(G&&G.style&&(G.style.display=="none")){}else{}return;}var D=F||0;var C=E||0;var H=B.getXY(G);this.initPageX=H[0]-D;this.initPageY=H[1]-C;this.lastPageX=H[0];this.lastPageY=H[1];this.setStartPosition(H);},setStartPosition:function(D){var C=D||B.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=C[0];this.startPageY=C[1];},addToGroup:function(C){this.groups[C]=true;this.DDM.regDragDrop(this,C);},removeFromGroup:function(C){if(this.groups[C]){delete this.groups[C];}this.DDM.removeDDFromGroup(this,C);},setDragElId:function(C){this.dragElId=C;},setHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.handleElId=C;this.DDM.regHandle(this.id,C);},setOuterHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}A.on(C,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(C);this.hasOuterHandles=true;},unreg:function(){A.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(J,I){var D=J.which||J.button;if(this.primaryButtonOnly&&D>1){return;}if(this.isLocked()){return;}var C=this.b4MouseDown(J),F=true;if(this.events.b4MouseDown){F=this.fireEvent("b4MouseDownEvent",J);}var E=this.onMouseDown(J),H=true;if(this.events.mouseDown){H=this.fireEvent("mouseDownEvent",J);}if((C===false)||(E===false)||(F===false)||(H===false)){return;}this.DDM.refreshCache(this.groups);var G=new YAHOO.util.Point(A.getPageX(J),A.getPageY(J));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(G,this)){}else{if(this.clickValidator(J)){this.setStartPosition();this.DDM.handleMouseDown(J,this);this.DDM.stopEvent(J);}else{}}},clickValidator:function(D){var C=YAHOO.util.Event.getTarget(D);return(this.isValidHandleChild(C)&&(this.id==this.handleElId||this.DDM.handleWasClicked(C,this.id)));},getTargetCoord:function(E,D){var C=E-this.deltaX;var F=D-this.deltaY;if(this.constrainX){if(C<this.minX){C=this.minX;}if(C>this.maxX){C=this.maxX;}}if(this.constrainY){if(F<this.minY){F=this.minY;}if(F>this.maxY){F=this.maxY;}}C=this.getTick(C,this.xTicks);F=this.getTick(F,this.yTicks);return{x:C,y:F};},addInvalidHandleType:function(C){var D=C.toUpperCase();this.invalidHandleTypes[D]=D;},addInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.invalidHandleIds[C]=C;},addInvalidHandleClass:function(C){this.invalidHandleClasses.push(C);},removeInvalidHandleType:function(C){var D=C.toUpperCase();delete this.invalidHandleTypes[D];},removeInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}delete this.invalidHandleIds[C];},removeInvalidHandleClass:function(D){for(var E=0,C=this.invalidHandleClasses.length;E<C;++E){if(this.invalidHandleClasses[E]==D){delete this.invalidHandleClasses[E];}}},isValidHandleChild:function(F){var E=true;var H;try{H=F.nodeName.toUpperCase();}catch(G){H=F.nodeName;}E=E&&!this.invalidHandleTypes[H];E=E&&!this.invalidHandleIds[F.id];for(var D=0,C=this.invalidHandleClasses.length;E&&D<C;++D){E=!B.hasClass(F,this.invalidHandleClasses[D]);}return E;},setXTicks:function(F,C){this.xTicks=[];this.xTickSize=C;var E={};for(var D=this.initPageX;D>=this.minX;D=D-C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}for(D=this.initPageX;D<=this.maxX;D=D+C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(F,C){this.yTicks=[];this.yTickSize=C;var E={};for(var D=this.initPageY;D>=this.minY;D=D-C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}for(D=this.initPageY;D<=this.maxY;D=D+C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(E,D,C){this.leftConstraint=parseInt(E,10);this.rightConstraint=parseInt(D,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(C){this.setXTicks(this.initPageX,C);}this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(C,E,D){this.topConstraint=parseInt(C,10);this.bottomConstraint=parseInt(E,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(D){this.setYTicks(this.initPageY,D); +}this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var D=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var C=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(D,C);}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(I,F){if(!F){return I;}else{if(F[0]>=I){return F[0];}else{for(var D=0,C=F.length;D<C;++D){var E=D+1;if(F[E]&&F[E]>=I){var H=I-F[D];var G=F[E]-I;return(G>H)?F[D]:F[E];}}return F[F.length-1];}}},toString:function(){return("DragDrop "+this.id);}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider);})();YAHOO.util.DD=function(C,A,B){if(C){this.init(C,A,B);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(C,B){var A=C-this.startPageX;var D=B-this.startPageY;this.setDelta(A,D);},setDelta:function(B,A){this.deltaX=B;this.deltaY=A;},setDragElPos:function(C,B){var A=this.getDragEl();this.alignElWithMouse(A,C,B);},alignElWithMouse:function(C,G,F){var E=this.getTargetCoord(G,F);if(!this.deltaSetXY){var H=[E.x,E.y];YAHOO.util.Dom.setXY(C,H);var D=parseInt(YAHOO.util.Dom.getStyle(C,"left"),10);var B=parseInt(YAHOO.util.Dom.getStyle(C,"top"),10);this.deltaSetXY=[D-E.x,B-E.y];}else{YAHOO.util.Dom.setStyle(C,"left",(E.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(C,"top",(E.y+this.deltaSetXY[1])+"px");}this.cachePosition(E.x,E.y);var A=this;setTimeout(function(){A.autoScroll.call(A,E.x,E.y,C.offsetHeight,C.offsetWidth);},0);},cachePosition:function(B,A){if(B){this.lastPageX=B;this.lastPageY=A;}else{var C=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=C[0];this.lastPageY=C[1];}},autoScroll:function(J,I,E,K){if(this.scroll){var L=this.DDM.getClientHeight();var B=this.DDM.getClientWidth();var N=this.DDM.getScrollTop();var D=this.DDM.getScrollLeft();var H=E+I;var M=K+J;var G=(L+N-I-this.deltaY);var F=(B+D-J-this.deltaX);var C=40;var A=(document.all)?80:30;if(H>L&&G<C){window.scrollTo(D,N+A);}if(I<N&&N>0&&I-N<C){window.scrollTo(D,N-A);}if(M>B&&F<C){window.scrollTo(D+A,N);}if(J<D&&D>0&&J-D<C){window.scrollTo(D-A,N);}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(A){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},b4Drag:function(A){this.setDragElPos(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(C,A,B){if(C){this.init(C,A,B);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var B=this,A=document.body;if(!A||!A.firstChild){setTimeout(function(){B.createFrame();},50);return;}var F=this.getDragEl(),E=YAHOO.util.Dom;if(!F){F=document.createElement("div");F.id=this.dragElId;var D=F.style;D.position="absolute";D.visibility="hidden";D.cursor="move";D.border="2px solid #aaa";D.zIndex=999;D.height="25px";D.width="25px";var C=document.createElement("div");E.setStyle(C,"height","100%");E.setStyle(C,"width","100%");E.setStyle(C,"background-color","#ccc");E.setStyle(C,"opacity","0");F.appendChild(C);A.insertBefore(F,A.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(E,D){var C=this.getEl();var A=this.getDragEl();var B=A.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(B.width,10)/2),Math.round(parseInt(B.height,10)/2));}this.setDragElPos(E,D);YAHOO.util.Dom.setStyle(A,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var H=YAHOO.util.Dom;var B=this.getEl();var C=this.getDragEl();var G=parseInt(H.getStyle(C,"borderTopWidth"),10);var I=parseInt(H.getStyle(C,"borderRightWidth"),10);var F=parseInt(H.getStyle(C,"borderBottomWidth"),10);var D=parseInt(H.getStyle(C,"borderLeftWidth"),10);if(isNaN(G)){G=0;}if(isNaN(I)){I=0;}if(isNaN(F)){F=0;}if(isNaN(D)){D=0;}var E=Math.max(0,B.offsetWidth-I-D);var A=Math.max(0,B.offsetHeight-G-F);H.setStyle(C,"width",E+"px");H.setStyle(C,"height",A+"px");}},b4MouseDown:function(B){this.setStartPosition();var A=YAHOO.util.Event.getPageX(B);var C=YAHOO.util.Event.getPageY(B);this.autoOffset(A,C);},b4StartDrag:function(A,B){this.showFrame(A,B);},b4EndDrag:function(A){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(D){var C=YAHOO.util.Dom;var B=this.getEl();var A=this.getDragEl();C.setStyle(A,"visibility","");C.setStyle(B,"visibility","hidden");YAHOO.util.DDM.moveToEl(B,A);C.setStyle(A,"visibility","hidden");C.setStyle(B,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(C,A,B){if(C){this.initTarget(C,A,B);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.7.0",build:"1796"});/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +(function(){var B=YAHOO.util.Dom.getXY,A=YAHOO.util.Event,D=Array.prototype.slice;function C(G,E,F,H){C.ANIM_AVAIL=(!YAHOO.lang.isUndefined(YAHOO.util.Anim));if(G){this.init(G,E,true);this.initSlider(H);this.initThumb(F);}}YAHOO.lang.augmentObject(C,{getHorizSlider:function(F,G,I,H,E){return new C(F,F,new YAHOO.widget.SliderThumb(G,F,I,H,0,0,E),"horiz");},getVertSlider:function(G,H,E,I,F){return new C(G,G,new YAHOO.widget.SliderThumb(H,G,0,0,E,I,F),"vert");},getSliderRegion:function(G,H,J,I,E,K,F){return new C(G,G,new YAHOO.widget.SliderThumb(H,G,J,I,E,K,F),"region");},SOURCE_UI_EVENT:1,SOURCE_SET_VALUE:2,SOURCE_KEY_EVENT:3,ANIM_AVAIL:false},true);YAHOO.extend(C,YAHOO.util.DragDrop,{_mouseDown:false,dragOnly:true,initSlider:function(E){this.type=E;this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);this.isTarget=false;this.animate=C.ANIM_AVAIL;this.backgroundEnabled=true;this.tickPause=40;this.enableKeys=true;this.keyIncrement=20;this.moveComplete=true;this.animationDuration=0.2;this.SOURCE_UI_EVENT=1;this.SOURCE_SET_VALUE=2;this.valueChangeSource=0;this._silent=false;this.lastOffset=[0,0];},initThumb:function(F){var E=this;this.thumb=F;F.cacheBetweenDrags=true;if(F._isHoriz&&F.xTicks&&F.xTicks.length){this.tickPause=Math.round(360/F.xTicks.length);}else{if(F.yTicks&&F.yTicks.length){this.tickPause=Math.round(360/F.yTicks.length);}}F.onAvailable=function(){return E.setStartSliderState();};F.onMouseDown=function(){E._mouseDown=true;return E.focus();};F.startDrag=function(){E._slideStart();};F.onDrag=function(){E.fireEvents(true);};F.onMouseUp=function(){E.thumbMouseUp();};},onAvailable:function(){this._bindKeyEvents();},_bindKeyEvents:function(){A.on(this.id,"keydown",this.handleKeyDown,this,true);A.on(this.id,"keypress",this.handleKeyPress,this,true);},handleKeyPress:function(F){if(this.enableKeys){var E=A.getCharCode(F);switch(E){case 37:case 38:case 39:case 40:case 36:case 35:A.preventDefault(F);break;default:}}},handleKeyDown:function(J){if(this.enableKeys){var G=A.getCharCode(J),F=this.thumb,H=this.getXValue(),E=this.getYValue(),I=true;switch(G){case 37:H-=this.keyIncrement;break;case 38:E-=this.keyIncrement;break;case 39:H+=this.keyIncrement;break;case 40:E+=this.keyIncrement;break;case 36:H=F.leftConstraint;E=F.topConstraint;break;case 35:H=F.rightConstraint;E=F.bottomConstraint;break;default:I=false;}if(I){if(F._isRegion){this._setRegionValue(C.SOURCE_KEY_EVENT,H,E,true);}else{this._setValue(C.SOURCE_KEY_EVENT,(F._isHoriz?H:E),true);}A.stopEvent(J);}}},setStartSliderState:function(){this.setThumbCenterPoint();this.baselinePos=B(this.getEl());this.thumb.startOffset=this.thumb.getOffsetFromParent(this.baselinePos);if(this.thumb._isRegion){if(this.deferredSetRegionValue){this._setRegionValue.apply(this,this.deferredSetRegionValue);this.deferredSetRegionValue=null;}else{this.setRegionValue(0,0,true,true,true);}}else{if(this.deferredSetValue){this._setValue.apply(this,this.deferredSetValue);this.deferredSetValue=null;}else{this.setValue(0,true,true,true);}}},setThumbCenterPoint:function(){var E=this.thumb.getEl();if(E){this.thumbCenterPoint={x:parseInt(E.offsetWidth/2,10),y:parseInt(E.offsetHeight/2,10)};}},lock:function(){this.thumb.lock();this.locked=true;},unlock:function(){this.thumb.unlock();this.locked=false;},thumbMouseUp:function(){this._mouseDown=false;if(!this.isLocked()&&!this.moveComplete){this.endMove();}},onMouseUp:function(){this._mouseDown=false;if(this.backgroundEnabled&&!this.isLocked()&&!this.moveComplete){this.endMove();}},getThumb:function(){return this.thumb;},focus:function(){this.valueChangeSource=C.SOURCE_UI_EVENT;var E=this.getEl();if(E.focus){try{E.focus();}catch(F){}}this.verifyOffset();return !this.isLocked();},onChange:function(E,F){},onSlideStart:function(){},onSlideEnd:function(){},getValue:function(){return this.thumb.getValue();},getXValue:function(){return this.thumb.getXValue();},getYValue:function(){return this.thumb.getYValue();},setValue:function(){var E=D.call(arguments);E.unshift(C.SOURCE_SET_VALUE);return this._setValue.apply(this,E);},_setValue:function(I,L,G,H,E){var F=this.thumb,K,J;if(!F.available){this.deferredSetValue=arguments;return false;}if(this.isLocked()&&!H){return false;}if(isNaN(L)){return false;}if(F._isRegion){return false;}this._silent=E;this.valueChangeSource=I||C.SOURCE_SET_VALUE;F.lastOffset=[L,L];this.verifyOffset(true);this._slideStart();if(F._isHoriz){K=F.initPageX+L+this.thumbCenterPoint.x;this.moveThumb(K,F.initPageY,G);}else{J=F.initPageY+L+this.thumbCenterPoint.y;this.moveThumb(F.initPageX,J,G);}return true;},setRegionValue:function(){var E=D.call(arguments);E.unshift(C.SOURCE_SET_VALUE);return this._setRegionValue.apply(this,E);},_setRegionValue:function(F,J,H,I,G,K){var L=this.thumb,E,M;if(!L.available){this.deferredSetRegionValue=arguments;return false;}if(this.isLocked()&&!G){return false;}if(isNaN(J)){return false;}if(!L._isRegion){return false;}this._silent=K;this.valueChangeSource=F||C.SOURCE_SET_VALUE;L.lastOffset=[J,H];this.verifyOffset(true);this._slideStart();E=L.initPageX+J+this.thumbCenterPoint.x;M=L.initPageY+H+this.thumbCenterPoint.y;this.moveThumb(E,M,I);return true;},verifyOffset:function(F){var G=B(this.getEl()),E=this.thumb;if(!this.thumbCenterPoint||!this.thumbCenterPoint.x){this.setThumbCenterPoint();}if(G){if(G[0]!=this.baselinePos[0]||G[1]!=this.baselinePos[1]){this.setInitPosition();this.baselinePos=G;E.initPageX=this.initPageX+E.startOffset[0];E.initPageY=this.initPageY+E.startOffset[1];E.deltaSetXY=null;this.resetThumbConstraints();return false;}}return true;},moveThumb:function(K,J,I,G){var L=this.thumb,M=this,F,E,H;if(!L.available){return;}L.setDelta(this.thumbCenterPoint.x,this.thumbCenterPoint.y);E=L.getTargetCoord(K,J);F=[Math.round(E.x),Math.round(E.y)];if(this.animate&&L._graduated&&!I){this.lock();this.curCoord=B(this.thumb.getEl());this.curCoord=[Math.round(this.curCoord[0]),Math.round(this.curCoord[1])];setTimeout(function(){M.moveOneTick(F); +},this.tickPause);}else{if(this.animate&&C.ANIM_AVAIL&&!I){this.lock();H=new YAHOO.util.Motion(L.id,{points:{to:F}},this.animationDuration,YAHOO.util.Easing.easeOut);H.onComplete.subscribe(function(){M.unlock();if(!M._mouseDown){M.endMove();}});H.animate();}else{L.setDragElPos(K,J);if(!G&&!this._mouseDown){this.endMove();}}}},_slideStart:function(){if(!this._sliding){if(!this._silent){this.onSlideStart();this.fireEvent("slideStart");}this._sliding=true;}},_slideEnd:function(){if(this._sliding&&this.moveComplete){var E=this._silent;this._sliding=false;this._silent=false;this.moveComplete=false;if(!E){this.onSlideEnd();this.fireEvent("slideEnd");}}},moveOneTick:function(F){var H=this.thumb,G=this,I=null,E,J;if(H._isRegion){I=this._getNextX(this.curCoord,F);E=(I!==null)?I[0]:this.curCoord[0];I=this._getNextY(this.curCoord,F);J=(I!==null)?I[1]:this.curCoord[1];I=E!==this.curCoord[0]||J!==this.curCoord[1]?[E,J]:null;}else{if(H._isHoriz){I=this._getNextX(this.curCoord,F);}else{I=this._getNextY(this.curCoord,F);}}if(I){this.curCoord=I;this.thumb.alignElWithMouse(H.getEl(),I[0]+this.thumbCenterPoint.x,I[1]+this.thumbCenterPoint.y);if(!(I[0]==F[0]&&I[1]==F[1])){setTimeout(function(){G.moveOneTick(F);},this.tickPause);}else{this.unlock();if(!this._mouseDown){this.endMove();}}}else{this.unlock();if(!this._mouseDown){this.endMove();}}},_getNextX:function(E,F){var H=this.thumb,J,G=[],I=null;if(E[0]>F[0]){J=H.tickSize-this.thumbCenterPoint.x;G=H.getTargetCoord(E[0]-J,E[1]);I=[G.x,G.y];}else{if(E[0]<F[0]){J=H.tickSize+this.thumbCenterPoint.x;G=H.getTargetCoord(E[0]+J,E[1]);I=[G.x,G.y];}else{}}return I;},_getNextY:function(E,F){var H=this.thumb,J,G=[],I=null;if(E[1]>F[1]){J=H.tickSize-this.thumbCenterPoint.y;G=H.getTargetCoord(E[0],E[1]-J);I=[G.x,G.y];}else{if(E[1]<F[1]){J=H.tickSize+this.thumbCenterPoint.y;G=H.getTargetCoord(E[0],E[1]+J);I=[G.x,G.y];}else{}}return I;},b4MouseDown:function(E){if(!this.backgroundEnabled){return false;}this.thumb.autoOffset();this.resetThumbConstraints();},onMouseDown:function(F){if(!this.backgroundEnabled||this.isLocked()){return false;}this._mouseDown=true;var E=A.getPageX(F),G=A.getPageY(F);this.focus();this._slideStart();this.moveThumb(E,G);},onDrag:function(F){if(this.backgroundEnabled&&!this.isLocked()){var E=A.getPageX(F),G=A.getPageY(F);this.moveThumb(E,G,true,true);this.fireEvents();}},endMove:function(){this.unlock();this.fireEvents();this.moveComplete=true;this._slideEnd();},resetThumbConstraints:function(){var E=this.thumb;E.setXConstraint(E.leftConstraint,E.rightConstraint,E.xTickSize);E.setYConstraint(E.topConstraint,E.bottomConstraint,E.xTickSize);},fireEvents:function(G){var F=this.thumb,I,H,E;if(!G){F.cachePosition();}if(!this.isLocked()){if(F._isRegion){I=F.getXValue();H=F.getYValue();if(I!=this.previousX||H!=this.previousY){if(!this._silent){this.onChange(I,H);this.fireEvent("change",{x:I,y:H});}}this.previousX=I;this.previousY=H;}else{E=F.getValue();if(E!=this.previousVal){if(!this._silent){this.onChange(E);this.fireEvent("change",E);}}this.previousVal=E;}}},toString:function(){return("Slider ("+this.type+") "+this.id);}});YAHOO.lang.augmentProto(C,YAHOO.util.EventProvider);YAHOO.widget.Slider=C;})();YAHOO.widget.SliderThumb=function(G,B,E,D,A,F,C){if(G){YAHOO.widget.SliderThumb.superclass.constructor.call(this,G,B);this.parentElId=B;}this.isTarget=false;this.tickSize=C;this.maintainOffset=true;this.initSlider(E,D,A,F,C);this.scroll=false;};YAHOO.extend(YAHOO.widget.SliderThumb,YAHOO.util.DD,{startOffset:null,dragOnly:true,_isHoriz:false,_prevVal:0,_graduated:false,getOffsetFromParent0:function(C){var A=YAHOO.util.Dom.getXY(this.getEl()),B=C||YAHOO.util.Dom.getXY(this.parentElId);return[(A[0]-B[0]),(A[1]-B[1])];},getOffsetFromParent:function(H){var A=this.getEl(),E,I,F,B,K,D,C,J,G;if(!this.deltaOffset){I=YAHOO.util.Dom.getXY(A);F=H||YAHOO.util.Dom.getXY(this.parentElId);E=[(I[0]-F[0]),(I[1]-F[1])];B=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);K=parseInt(YAHOO.util.Dom.getStyle(A,"top"),10);D=B-E[0];C=K-E[1];if(isNaN(D)||isNaN(C)){}else{this.deltaOffset=[D,C];}}else{J=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);G=parseInt(YAHOO.util.Dom.getStyle(A,"top"),10);E=[J+this.deltaOffset[0],G+this.deltaOffset[1]];}return E;},initSlider:function(D,C,A,E,B){this.initLeft=D;this.initRight=C;this.initUp=A;this.initDown=E;this.setXConstraint(D,C,B);this.setYConstraint(A,E,B);if(B&&B>1){this._graduated=true;}this._isHoriz=(D||C);this._isVert=(A||E);this._isRegion=(this._isHoriz&&this._isVert);},clearTicks:function(){YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);this.tickSize=0;this._graduated=false;},getValue:function(){return(this._isHoriz)?this.getXValue():this.getYValue();},getXValue:function(){if(!this.available){return 0;}var A=this.getOffsetFromParent();if(YAHOO.lang.isNumber(A[0])){this.lastOffset=A;return(A[0]-this.startOffset[0]);}else{return(this.lastOffset[0]-this.startOffset[0]);}},getYValue:function(){if(!this.available){return 0;}var A=this.getOffsetFromParent();if(YAHOO.lang.isNumber(A[1])){this.lastOffset=A;return(A[1]-this.startOffset[1]);}else{return(this.lastOffset[1]-this.startOffset[1]);}},toString:function(){return"SliderThumb "+this.id;},onChange:function(A,B){}});(function(){var A=YAHOO.util.Event,B=YAHOO.widget;function C(I,F,H,D){var G=this,J={min:false,max:false},E,K;this.minSlider=I;this.maxSlider=F;this.activeSlider=I;this.isHoriz=I.thumb._isHoriz;E=this.minSlider.thumb.onMouseDown;K=this.maxSlider.thumb.onMouseDown;this.minSlider.thumb.onMouseDown=function(){G.activeSlider=G.minSlider;E.apply(this,arguments);};this.maxSlider.thumb.onMouseDown=function(){G.activeSlider=G.maxSlider;K.apply(this,arguments);};this.minSlider.thumb.onAvailable=function(){I.setStartSliderState();J.min=true;if(J.max){G.fireEvent("ready",G);}};this.maxSlider.thumb.onAvailable=function(){F.setStartSliderState();J.max=true;if(J.min){G.fireEvent("ready",G);}};I.onMouseDown=F.onMouseDown=function(L){return this.backgroundEnabled&&G._handleMouseDown(L); +};I.onDrag=F.onDrag=function(L){G._handleDrag(L);};I.onMouseUp=F.onMouseUp=function(L){G._handleMouseUp(L);};I._bindKeyEvents=function(){G._bindKeyEvents(this);};F._bindKeyEvents=function(){};I.subscribe("change",this._handleMinChange,I,this);I.subscribe("slideStart",this._handleSlideStart,I,this);I.subscribe("slideEnd",this._handleSlideEnd,I,this);F.subscribe("change",this._handleMaxChange,F,this);F.subscribe("slideStart",this._handleSlideStart,F,this);F.subscribe("slideEnd",this._handleSlideEnd,F,this);this.createEvent("ready",this);this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);D=YAHOO.lang.isArray(D)?D:[0,H];D[0]=Math.min(Math.max(parseInt(D[0],10)|0,0),H);D[1]=Math.max(Math.min(parseInt(D[1],10)|0,H),0);if(D[0]>D[1]){D.splice(0,2,D[1],D[0]);}this.minVal=D[0];this.maxVal=D[1];this.minSlider.setValue(this.minVal,true,true,true);this.maxSlider.setValue(this.maxVal,true,true,true);}C.prototype={minVal:-1,maxVal:-1,minRange:0,_handleSlideStart:function(E,D){this.fireEvent("slideStart",D);},_handleSlideEnd:function(E,D){this.fireEvent("slideEnd",D);},_handleDrag:function(D){B.Slider.prototype.onDrag.call(this.activeSlider,D);},_handleMinChange:function(){this.activeSlider=this.minSlider;this.updateValue();},_handleMaxChange:function(){this.activeSlider=this.maxSlider;this.updateValue();},_bindKeyEvents:function(D){A.on(D.id,"keydown",this._handleKeyDown,this,true);A.on(D.id,"keypress",this._handleKeyPress,this,true);},_handleKeyDown:function(D){this.activeSlider.handleKeyDown.apply(this.activeSlider,arguments);},_handleKeyPress:function(D){this.activeSlider.handleKeyPress.apply(this.activeSlider,arguments);},setValues:function(H,K,I,E,J){var F=this.minSlider,M=this.maxSlider,D=F.thumb,L=M.thumb,N=this,G={min:false,max:false};if(D._isHoriz){D.setXConstraint(D.leftConstraint,L.rightConstraint,D.tickSize);L.setXConstraint(D.leftConstraint,L.rightConstraint,L.tickSize);}else{D.setYConstraint(D.topConstraint,L.bottomConstraint,D.tickSize);L.setYConstraint(D.topConstraint,L.bottomConstraint,L.tickSize);}this._oneTimeCallback(F,"slideEnd",function(){G.min=true;if(G.max){N.updateValue(J);setTimeout(function(){N._cleanEvent(F,"slideEnd");N._cleanEvent(M,"slideEnd");},0);}});this._oneTimeCallback(M,"slideEnd",function(){G.max=true;if(G.min){N.updateValue(J);setTimeout(function(){N._cleanEvent(F,"slideEnd");N._cleanEvent(M,"slideEnd");},0);}});F.setValue(H,I,E,false);M.setValue(K,I,E,false);},setMinValue:function(F,H,I,E){var G=this.minSlider,D=this;this.activeSlider=G;D=this;this._oneTimeCallback(G,"slideEnd",function(){D.updateValue(E);setTimeout(function(){D._cleanEvent(G,"slideEnd");},0);});G.setValue(F,H,I);},setMaxValue:function(D,H,I,F){var G=this.maxSlider,E=this;this.activeSlider=G;this._oneTimeCallback(G,"slideEnd",function(){E.updateValue(F);setTimeout(function(){E._cleanEvent(G,"slideEnd");},0);});G.setValue(D,H,I);},updateValue:function(J){var E=this.minSlider.getValue(),K=this.maxSlider.getValue(),F=false,D,M,H,I,L,G;if(E!=this.minVal||K!=this.maxVal){F=true;D=this.minSlider.thumb;M=this.maxSlider.thumb;H=this.isHoriz?"x":"y";G=this.minSlider.thumbCenterPoint[H]+this.maxSlider.thumbCenterPoint[H];I=Math.max(K-G-this.minRange,0);L=Math.min(-E-G-this.minRange,0);if(this.isHoriz){I=Math.min(I,M.rightConstraint);D.setXConstraint(D.leftConstraint,I,D.tickSize);M.setXConstraint(L,M.rightConstraint,M.tickSize);}else{I=Math.min(I,M.bottomConstraint);D.setYConstraint(D.leftConstraint,I,D.tickSize);M.setYConstraint(L,M.bottomConstraint,M.tickSize);}}this.minVal=E;this.maxVal=K;if(F&&!J){this.fireEvent("change",this);}},selectActiveSlider:function(H){var E=this.minSlider,D=this.maxSlider,J=E.isLocked()||!E.backgroundEnabled,G=D.isLocked()||!E.backgroundEnabled,F=YAHOO.util.Event,I;if(J||G){this.activeSlider=J?D:E;}else{if(this.isHoriz){I=F.getPageX(H)-E.thumb.initPageX-E.thumbCenterPoint.x;}else{I=F.getPageY(H)-E.thumb.initPageY-E.thumbCenterPoint.y;}this.activeSlider=I*2>D.getValue()+E.getValue()?D:E;}},_handleMouseDown:function(D){if(!D._handled){D._handled=true;this.selectActiveSlider(D);return B.Slider.prototype.onMouseDown.call(this.activeSlider,D);}else{return false;}},_handleMouseUp:function(D){B.Slider.prototype.onMouseUp.apply(this.activeSlider,arguments);},_oneTimeCallback:function(F,D,E){F.subscribe(D,function(){F.unsubscribe(D,arguments.callee);E.apply({},[].slice.apply(arguments));});},_cleanEvent:function(K,E){var J,I,D,G,H,F;if(K.__yui_events&&K.events[E]){for(I=K.__yui_events.length;I>=0;--I){if(K.__yui_events[I].type===E){J=K.__yui_events[I];break;}}if(J){H=J.subscribers;F=[];G=0;for(I=0,D=H.length;I<D;++I){if(H[I]){F[G++]=H[I];}}J.subscribers=F;}}}};YAHOO.lang.augmentProto(C,YAHOO.util.EventProvider);B.Slider.getHorizDualSlider=function(H,J,K,G,F,D){var I=new B.SliderThumb(J,H,0,G,0,0,F),E=new B.SliderThumb(K,H,0,G,0,0,F);return new C(new B.Slider(H,H,I,"horiz"),new B.Slider(H,H,E,"horiz"),G,D);};B.Slider.getVertDualSlider=function(H,J,K,G,F,D){var I=new B.SliderThumb(J,H,0,0,0,G,F),E=new B.SliderThumb(K,H,0,0,0,G,F);return new B.DualSlider(new B.Slider(H,H,I,"vert"),new B.Slider(H,H,E,"vert"),G,D);};YAHOO.widget.DualSlider=C;})();YAHOO.register("slider",YAHOO.widget.Slider,{version:"2.7.0",build:"1796"});/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +YAHOO.util.Attribute=function(B,A){if(A){this.owner=A;this.configure(B,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var A=this.value;if(this.getter){A=this.getter.call(this.owner,this.name);}return A;},setValue:function(F,B){var E,A=this.owner,C=this.name;var D={type:C,prevValue:this.getValue(),newValue:F};if(this.readOnly||(this.writeOnce&&this._written)){return false;}if(this.validator&&!this.validator.call(A,F)){return false;}if(!B){E=A.fireBeforeChangeEvent(D);if(E===false){return false;}}if(this.setter){F=this.setter.call(A,F,this.name);if(F===undefined){}}if(this.method){this.method.call(A,F,this.name);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return true;},configure:function(B,C){B=B||{};if(C){this._written=false;}this._initialConfig=this._initialConfig||{};for(var A in B){if(B.hasOwnProperty(A)){this[A]=B[A];if(C){this._initialConfig[A]=B[A];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig,true);},refresh:function(A){this.setValue(this.value,A);}};(function(){var A=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(C){this._configs=this._configs||{};var B=this._configs[C];if(!B||!this._configs.hasOwnProperty(C)){return null;}return B.getValue();},set:function(D,E,B){this._configs=this._configs||{};var C=this._configs[D];if(!C){return false;}return C.setValue(E,B);},getAttributeKeys:function(){this._configs=this._configs;var C=[],B;for(B in this._configs){if(A.hasOwnProperty(this._configs,B)&&!A.isUndefined(this._configs[B])){C[C.length]=B;}}return C;},setAttributes:function(D,B){for(var C in D){if(A.hasOwnProperty(D,C)){this.set(C,D[C],B);}}},resetValue:function(C,B){this._configs=this._configs||{};if(this._configs[C]){this.set(C,this._configs[C]._initialConfig.value,B);return true;}return false;},refresh:function(E,C){this._configs=this._configs||{};var F=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var D=0,B=E.length;D<B;++D){if(F.hasOwnProperty(E[D])){this._configs[E[D]].refresh(C);}}},register:function(B,C){this.setAttributeConfig(B,C);},getAttributeConfig:function(C){this._configs=this._configs||{};var B=this._configs[C]||{};var D={};for(C in B){if(A.hasOwnProperty(B,C)){D[C]=B[C];}}return D;},setAttributeConfig:function(B,C,D){this._configs=this._configs||{};C=C||{};if(!this._configs[B]){C.name=B;this._configs[B]=this.createAttribute(C);}else{this._configs[B].configure(C,D);}},configureAttribute:function(B,C,D){this.setAttributeConfig(B,C,D);},resetAttributeConfig:function(B){this._configs=this._configs||{};this._configs[B].resetConfig();},subscribe:function(B,C){this._events=this._events||{};if(!(B in this._events)){this._events[B]=this.createEvent(B);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){this.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(C){var B="before";B+=C.type.charAt(0).toUpperCase()+C.type.substr(1)+"Change";C.type=B;return this.fireEvent(C.type,C);},fireChangeEvent:function(B){B.type+="Change";return this.fireEvent(B.type,B);},createAttribute:function(B){return new YAHOO.util.Attribute(B,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var B=YAHOO.util.Dom,C=YAHOO.util.AttributeProvider;var A=function(D,E){this.init.apply(this,arguments);};A.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"focus":true,"blur":true,"submit":true,"change":true};A.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(F,D){var E=this.get("element");if(E){E[D]=F;}},DEFAULT_HTML_GETTER:function(D){var E=this.get("element"),F;if(E){F=E[D];}return F;},appendChild:function(D){D=D.get?D.get("element"):D;return this.get("element").appendChild(D);},getElementsByTagName:function(D){return this.get("element").getElementsByTagName(D);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(D,E){D=D.get?D.get("element"):D;E=(E&&E.get)?E.get("element"):E;return this.get("element").insertBefore(D,E);},removeChild:function(D){D=D.get?D.get("element"):D;return this.get("element").removeChild(D);},replaceChild:function(D,E){D=D.get?D.get("element"):D;E=E.get?E.get("element"):E;return this.get("element").replaceChild(D,E);},initAttributes:function(D){},addListener:function(H,G,I,F){var E=this.get("element")||this.get("id");F=F||this;var D=this;if(!this._events[H]){if(E&&this.DOM_EVENTS[H]){YAHOO.util.Event.addListener(E,H,function(J){if(J.srcElement&&!J.target){J.target=J.srcElement;}D.fireEvent(H,J);},I,F);}this.createEvent(H,this);}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return this.addListener.apply(this,arguments);},subscribe:function(){return this.addListener.apply(this,arguments);},removeListener:function(E,D){return this.unsubscribe.apply(this,arguments);},addClass:function(D){B.addClass(this.get("element"),D);},getElementsByClassName:function(E,D){return B.getElementsByClassName(E,D,this.get("element"));},hasClass:function(D){return B.hasClass(this.get("element"),D);},removeClass:function(D){return B.removeClass(this.get("element"),D);},replaceClass:function(E,D){return B.replaceClass(this.get("element"),E,D);},setStyle:function(E,D){return B.setStyle(this.get("element"),E,D);},getStyle:function(D){return B.getStyle(this.get("element"),D);},fireQueue:function(){var E=this._queue;for(var F=0,D=E.length;F<D;++F){this[E[F][0]].apply(this,E[F][1]);}},appendTo:function(E,F){E=(E.get)?E.get("element"):B.get(E);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:E}); +F=(F&&F.get)?F.get("element"):B.get(F);var D=this.get("element");if(!D){return false;}if(!E){return false;}if(D.parent!=E){if(F){E.insertBefore(D,F);}else{E.appendChild(D);}}this.fireEvent("appendTo",{type:"appendTo",target:E});return D;},get:function(D){var F=this._configs||{},E=F.element;if(E&&!F[D]&&!YAHOO.lang.isUndefined(E.value[D])){this._setHTMLAttrConfig(D);}return C.prototype.get.call(this,D);},setAttributes:function(J,G){var E={},H=this._configOrder;for(var I=0,D=H.length;I<D;++I){if(J[H[I]]!==undefined){E[H[I]]=true;this.set(H[I],J[H[I]],G);}}for(var F in J){if(J.hasOwnProperty(F)&&!E[F]){this.set(F,J[F],G);}}},set:function(E,G,D){var F=this.get("element");if(!F){this._queue[this._queue.length]=["set",arguments];if(this._configs[E]){this._configs[E].value=G;}return;}if(!this._configs[E]&&!YAHOO.lang.isUndefined(F[E])){this._setHTMLAttrConfig(E);}return C.prototype.set.apply(this,arguments);},setAttributeConfig:function(D,E,F){this._configOrder.push(D);C.prototype.setAttributeConfig.apply(this,arguments);},createEvent:function(E,D){this._events[E]=true;return C.prototype.createEvent.apply(this,arguments);},init:function(E,D){this._initElement(E,D);},destroy:function(){var D=this.get("element");YAHOO.util.Event.purgeElement(D,true);this.unsubscribeAll();if(D&&D.parentNode){D.parentNode.removeChild(D);}this._queue=[];this._events={};this._configs={};this._configOrder=[];},_initElement:function(F,E){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];E=E||{};E.element=E.element||F||null;var H=false;var D=A.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var G in D){if(D.hasOwnProperty(G)){this.DOM_EVENTS[G]=D[G];}}if(typeof E.element==="string"){this._setHTMLAttrConfig("id",{value:E.element});}if(B.get(E.element)){H=true;this._initHTMLElement(E);this._initContent(E);}YAHOO.util.Event.onAvailable(E.element,function(){if(!H){this._initHTMLElement(E);}this.fireEvent("available",{type:"available",target:B.get(E.element)});},this,true);YAHOO.util.Event.onContentReady(E.element,function(){if(!H){this._initContent(E);}this.fireEvent("contentReady",{type:"contentReady",target:B.get(E.element)});},this,true);},_initHTMLElement:function(D){this.setAttributeConfig("element",{value:B.get(D.element),readOnly:true});},_initContent:function(D){this.initAttributes(D);this.setAttributes(D,true);this.fireQueue();},_setHTMLAttrConfig:function(D,F){var E=this.get("element");F=F||{};F.name=D;F.setter=F.setter||this.DEFAULT_HTML_SETTER;F.getter=F.getter||this.DEFAULT_HTML_GETTER;F.value=F.value||E[D];this._configs[D]=new YAHOO.util.Attribute(F,this);}};YAHOO.augment(A,C);YAHOO.util.Element=A;})();YAHOO.register("element",YAHOO.util.Element,{version:"2.7.0",build:"1796"});/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +YAHOO.util.Color=function(){var A="0",B=YAHOO.lang.isArray,C=YAHOO.lang.isNumber;return{real2dec:function(D){return Math.min(255,Math.round(D*256));},hsv2rgb:function(H,O,M){if(B(H)){return this.hsv2rgb.call(this,H[0],H[1],H[2]);}var D,I,L,G=Math.floor((H/60)%6),J=(H/60)-G,F=M*(1-O),E=M*(1-J*O),N=M*(1-(1-J)*O),K;switch(G){case 0:D=M;I=N;L=F;break;case 1:D=E;I=M;L=F;break;case 2:D=F;I=M;L=N;break;case 3:D=F;I=E;L=M;break;case 4:D=N;I=F;L=M;break;case 5:D=M;I=F;L=E;break;}K=this.real2dec;return[K(D),K(I),K(L)];},rgb2hsv:function(D,H,I){if(B(D)){return this.rgb2hsv.apply(this,D);}D/=255;H/=255;I/=255;var G,L,E=Math.min(Math.min(D,H),I),J=Math.max(Math.max(D,H),I),K=J-E,F;switch(J){case E:G=0;break;case D:G=60*(H-I)/K;if(H<I){G+=360;}break;case H:G=(60*(I-D)/K)+120;break;case I:G=(60*(D-H)/K)+240;break;}L=(J===0)?0:1-(E/J);F=[Math.round(G),L,J];return F;},rgb2hex:function(F,E,D){if(B(F)){return this.rgb2hex.apply(this,F);}var G=this.dec2hex;return G(F)+G(E)+G(D);},dec2hex:function(D){D=parseInt(D,10)|0;D=(D>255||D<0)?0:D;return(A+D.toString(16)).slice(-2).toUpperCase();},hex2dec:function(D){return parseInt(D,16);},hex2rgb:function(D){var E=this.hex2dec;return[E(D.slice(0,2)),E(D.slice(2,4)),E(D.slice(4,6))];},websafe:function(F,E,D){if(B(F)){return this.websafe.apply(this,F);}var G=function(H){if(C(H)){H=Math.min(Math.max(0,H),255);var I,J;for(I=0;I<256;I=I+51){J=I+51;if(H>=I&&H<=J){return(H-I>25)?J:I;}}}return H;};return[G(F),G(E),G(D)];}};}();(function(){var J=0,F=YAHOO.util,C=YAHOO.lang,D=YAHOO.widget.Slider,B=F.Color,E=F.Dom,I=F.Event,A=C.substitute,H="yui-picker";function G(L,K){J=J+1;K=K||{};if(arguments.length===1&&!YAHOO.lang.isString(L)&&!L.nodeName){K=L;L=K.element||null;}if(!L&&!K.element){L=this._createHostElement(K);}G.superclass.constructor.call(this,L,K);this.initPicker();}YAHOO.extend(G,YAHOO.util.Element,{ID:{R:H+"-r",R_HEX:H+"-rhex",G:H+"-g",G_HEX:H+"-ghex",B:H+"-b",B_HEX:H+"-bhex",H:H+"-h",S:H+"-s",V:H+"-v",PICKER_BG:H+"-bg",PICKER_THUMB:H+"-thumb",HUE_BG:H+"-hue-bg",HUE_THUMB:H+"-hue-thumb",HEX:H+"-hex",SWATCH:H+"-swatch",WEBSAFE_SWATCH:H+"-websafe-swatch",CONTROLS:H+"-controls",RGB_CONTROLS:H+"-rgb-controls",HSV_CONTROLS:H+"-hsv-controls",HEX_CONTROLS:H+"-hex-controls",HEX_SUMMARY:H+"-hex-summary",CONTROLS_LABEL:H+"-controls-label"},TXT:{ILLEGAL_HEX:"Illegal hex value entered",SHOW_CONTROLS:"Show color details",HIDE_CONTROLS:"Hide color details",CURRENT_COLOR:"Currently selected color: {rgb}",CLOSEST_WEBSAFE:"Closest websafe color: {rgb}. Click to select.",R:"R",G:"G",B:"B",H:"H",S:"S",V:"V",HEX:"#",DEG:"\u00B0",PERCENT:"%"},IMAGE:{PICKER_THUMB:"../../build/colorpicker/assets/picker_thumb.png",HUE_THUMB:"../../build/colorpicker/assets/hue_thumb.png"},DEFAULT:{PICKER_SIZE:180},OPT:{HUE:"hue",SATURATION:"saturation",VALUE:"value",RED:"red",GREEN:"green",BLUE:"blue",HSV:"hsv",RGB:"rgb",WEBSAFE:"websafe",HEX:"hex",PICKER_SIZE:"pickersize",SHOW_CONTROLS:"showcontrols",SHOW_RGB_CONTROLS:"showrgbcontrols",SHOW_HSV_CONTROLS:"showhsvcontrols",SHOW_HEX_CONTROLS:"showhexcontrols",SHOW_HEX_SUMMARY:"showhexsummary",SHOW_WEBSAFE:"showwebsafe",CONTAINER:"container",IDS:"ids",ELEMENTS:"elements",TXT:"txt",IMAGES:"images",ANIMATE:"animate"},skipAnim:true,_createHostElement:function(){var K=document.createElement("div");if(this.CSS.BASE){K.className=this.CSS.BASE;}return K;},_updateHueSlider:function(){var K=this.get(this.OPT.PICKER_SIZE),L=this.get(this.OPT.HUE);L=K-Math.round(L/360*K);if(L===K){L=0;}this.hueSlider.setValue(L,this.skipAnim);},_updatePickerSlider:function(){var L=this.get(this.OPT.PICKER_SIZE),M=this.get(this.OPT.SATURATION),K=this.get(this.OPT.VALUE);M=Math.round(M*L/100);K=Math.round(L-(K*L/100));this.pickerSlider.setRegionValue(M,K,this.skipAnim);},_updateSliders:function(){this._updateHueSlider();this._updatePickerSlider();},setValue:function(L,K){K=(K)||false;this.set(this.OPT.RGB,L,K);this._updateSliders();},hueSlider:null,pickerSlider:null,_getH:function(){var K=this.get(this.OPT.PICKER_SIZE),L=(K-this.hueSlider.getValue())/K;L=Math.round(L*360);return(L===360)?0:L;},_getS:function(){return this.pickerSlider.getXValue()/this.get(this.OPT.PICKER_SIZE);},_getV:function(){var K=this.get(this.OPT.PICKER_SIZE);return(K-this.pickerSlider.getYValue())/K;},_updateSwatch:function(){var M=this.get(this.OPT.RGB),O=this.get(this.OPT.WEBSAFE),N=this.getElement(this.ID.SWATCH),L=M.join(","),K=this.get(this.OPT.TXT);E.setStyle(N,"background-color","rgb("+L+")");N.title=A(K.CURRENT_COLOR,{"rgb":"#"+this.get(this.OPT.HEX)});N=this.getElement(this.ID.WEBSAFE_SWATCH);L=O.join(",");E.setStyle(N,"background-color","rgb("+L+")");N.title=A(K.CLOSEST_WEBSAFE,{"rgb":"#"+B.rgb2hex(O)});},_getValuesFromSliders:function(){this.set(this.OPT.RGB,B.hsv2rgb(this._getH(),this._getS(),this._getV()));},_updateFormFields:function(){this.getElement(this.ID.H).value=this.get(this.OPT.HUE);this.getElement(this.ID.S).value=this.get(this.OPT.SATURATION);this.getElement(this.ID.V).value=this.get(this.OPT.VALUE);this.getElement(this.ID.R).value=this.get(this.OPT.RED);this.getElement(this.ID.R_HEX).innerHTML=B.dec2hex(this.get(this.OPT.RED));this.getElement(this.ID.G).value=this.get(this.OPT.GREEN);this.getElement(this.ID.G_HEX).innerHTML=B.dec2hex(this.get(this.OPT.GREEN));this.getElement(this.ID.B).value=this.get(this.OPT.BLUE);this.getElement(this.ID.B_HEX).innerHTML=B.dec2hex(this.get(this.OPT.BLUE));this.getElement(this.ID.HEX).value=this.get(this.OPT.HEX);},_onHueSliderChange:function(N){var L=this._getH(),K=B.hsv2rgb(L,1,1),M="rgb("+K.join(",")+")";this.set(this.OPT.HUE,L,true);E.setStyle(this.getElement(this.ID.PICKER_BG),"background-color",M);if(this.hueSlider.valueChangeSource!==D.SOURCE_SET_VALUE){this._getValuesFromSliders();}this._updateFormFields();this._updateSwatch();},_onPickerSliderChange:function(M){var L=this._getS(),K=this._getV();this.set(this.OPT.SATURATION,Math.round(L*100),true);this.set(this.OPT.VALUE,Math.round(K*100),true);if(this.pickerSlider.valueChangeSource!==D.SOURCE_SET_VALUE){this._getValuesFromSliders(); +}this._updateFormFields();this._updateSwatch();},_getCommand:function(K){var L=I.getCharCode(K);if(L===38){return 3;}else{if(L===13){return 6;}else{if(L===40){return 4;}else{if(L>=48&&L<=57){return 1;}else{if(L>=97&&L<=102){return 2;}else{if(L>=65&&L<=70){return 2;}else{if("8, 9, 13, 27, 37, 39".indexOf(L)>-1||K.ctrlKey||K.metaKey){return 5;}else{return 0;}}}}}}}},_useFieldValue:function(L,K,N){var M=K.value;if(N!==this.OPT.HEX){M=parseInt(M,10);}if(M!==this.get(N)){this.set(N,M);}},_rgbFieldKeypress:function(M,K,O){var N=this._getCommand(M),L=(M.shiftKey)?10:1;switch(N){case 6:this._useFieldValue.apply(this,arguments);break;case 3:this.set(O,Math.min(this.get(O)+L,255));this._updateFormFields();break;case 4:this.set(O,Math.max(this.get(O)-L,0));this._updateFormFields();break;default:}},_hexFieldKeypress:function(L,K,N){var M=this._getCommand(L);if(M===6){this._useFieldValue.apply(this,arguments);}},_hexOnly:function(L,K){var M=this._getCommand(L);switch(M){case 6:case 5:case 1:break;case 2:if(K!==true){break;}default:I.stopEvent(L);return false;}},_numbersOnly:function(K){return this._hexOnly(K,true);},getElement:function(K){return this.get(this.OPT.ELEMENTS)[this.get(this.OPT.IDS)[K]];},_createElements:function(){var N,M,P,O,L,K=this.get(this.OPT.IDS),Q=this.get(this.OPT.TXT),S=this.get(this.OPT.IMAGES),R=function(U,V){var W=document.createElement(U);if(V){C.augmentObject(W,V,true);}return W;},T=function(U,V){var W=C.merge({autocomplete:"off",value:"0",size:3,maxlength:3},V);W.name=W.id;return new R(U,W);};L=this.get("element");N=new R("div",{id:K[this.ID.PICKER_BG],className:"yui-picker-bg",tabIndex:-1,hideFocus:true});M=new R("div",{id:K[this.ID.PICKER_THUMB],className:"yui-picker-thumb"});P=new R("img",{src:S.PICKER_THUMB});M.appendChild(P);N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.HUE_BG],className:"yui-picker-hue-bg",tabIndex:-1,hideFocus:true});M=new R("div",{id:K[this.ID.HUE_THUMB],className:"yui-picker-hue-thumb"});P=new R("img",{src:S.HUE_THUMB});M.appendChild(P);N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.CONTROLS],className:"yui-picker-controls"});L.appendChild(N);L=N;N=new R("div",{className:"hd"});M=new R("a",{id:K[this.ID.CONTROLS_LABEL],href:"#"});N.appendChild(M);L.appendChild(N);N=new R("div",{className:"bd"});L.appendChild(N);L=N;N=new R("ul",{id:K[this.ID.RGB_CONTROLS],className:"yui-picker-rgb-controls"});M=new R("li");M.appendChild(document.createTextNode(Q.R+" "));O=new T("input",{id:K[this.ID.R],className:"yui-picker-r"});M.appendChild(O);N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.G+" "));O=new T("input",{id:K[this.ID.G],className:"yui-picker-g"});M.appendChild(O);N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.B+" "));O=new T("input",{id:K[this.ID.B],className:"yui-picker-b"});M.appendChild(O);N.appendChild(M);L.appendChild(N);N=new R("ul",{id:K[this.ID.HSV_CONTROLS],className:"yui-picker-hsv-controls"});M=new R("li");M.appendChild(document.createTextNode(Q.H+" "));O=new T("input",{id:K[this.ID.H],className:"yui-picker-h"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.DEG));N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.S+" "));O=new T("input",{id:K[this.ID.S],className:"yui-picker-s"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.PERCENT));N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.V+" "));O=new T("input",{id:K[this.ID.V],className:"yui-picker-v"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.PERCENT));N.appendChild(M);L.appendChild(N);N=new R("ul",{id:K[this.ID.HEX_SUMMARY],className:"yui-picker-hex_summary"});M=new R("li",{id:K[this.ID.R_HEX]});N.appendChild(M);M=new R("li",{id:K[this.ID.G_HEX]});N.appendChild(M);M=new R("li",{id:K[this.ID.B_HEX]});N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.HEX_CONTROLS],className:"yui-picker-hex-controls"});N.appendChild(document.createTextNode(Q.HEX+" "));M=new T("input",{id:K[this.ID.HEX],className:"yui-picker-hex",size:6,maxlength:6});N.appendChild(M);L.appendChild(N);L=this.get("element");N=new R("div",{id:K[this.ID.SWATCH],className:"yui-picker-swatch"});L.appendChild(N);N=new R("div",{id:K[this.ID.WEBSAFE_SWATCH],className:"yui-picker-websafe-swatch"});L.appendChild(N);},_attachRGBHSV:function(L,K){I.on(this.getElement(L),"keydown",function(N,M){M._rgbFieldKeypress(N,this,K);},this);I.on(this.getElement(L),"keypress",this._numbersOnly,this,true);I.on(this.getElement(L),"blur",function(N,M){M._useFieldValue(N,this,K);},this);},_updateRGB:function(){var K=[this.get(this.OPT.RED),this.get(this.OPT.GREEN),this.get(this.OPT.BLUE)];this.set(this.OPT.RGB,K);this._updateSliders();},_initElements:function(){var O=this.OPT,N=this.get(O.IDS),L=this.get(O.ELEMENTS),K,M,P;for(K in this.ID){if(C.hasOwnProperty(this.ID,K)){N[this.ID[K]]=N[K];}}M=E.get(N[this.ID.PICKER_BG]);if(!M){this._createElements();}else{}for(K in N){if(C.hasOwnProperty(N,K)){M=E.get(N[K]);P=E.generateId(M);N[K]=P;N[N[K]]=P;L[P]=M;}}},initPicker:function(){this._initSliders();this._bindUI();this.syncUI(true);},_initSliders:function(){var K=this.ID,L=this.get(this.OPT.PICKER_SIZE);this.hueSlider=D.getVertSlider(this.getElement(K.HUE_BG),this.getElement(K.HUE_THUMB),0,L);this.pickerSlider=D.getSliderRegion(this.getElement(K.PICKER_BG),this.getElement(K.PICKER_THUMB),0,L,0,L);this.set(this.OPT.ANIMATE,this.get(this.OPT.ANIMATE));},_bindUI:function(){var K=this.ID,L=this.OPT;this.hueSlider.subscribe("change",this._onHueSliderChange,this,true);this.pickerSlider.subscribe("change",this._onPickerSliderChange,this,true);I.on(this.getElement(K.WEBSAFE_SWATCH),"click",function(M){this.setValue(this.get(L.WEBSAFE));},this,true);I.on(this.getElement(K.CONTROLS_LABEL),"click",function(M){this.set(L.SHOW_CONTROLS,!this.get(L.SHOW_CONTROLS));I.preventDefault(M);},this,true);this._attachRGBHSV(K.R,L.RED);this._attachRGBHSV(K.G,L.GREEN);this._attachRGBHSV(K.B,L.BLUE);this._attachRGBHSV(K.H,L.HUE); +this._attachRGBHSV(K.S,L.SATURATION);this._attachRGBHSV(K.V,L.VALUE);I.on(this.getElement(K.HEX),"keydown",function(N,M){M._hexFieldKeypress(N,this,L.HEX);},this);I.on(this.getElement(this.ID.HEX),"keypress",this._hexOnly,this,true);I.on(this.getElement(this.ID.HEX),"blur",function(N,M){M._useFieldValue(N,this,L.HEX);},this);},syncUI:function(K){this.skipAnim=K;this._updateRGB();this.skipAnim=false;},_updateRGBFromHSV:function(){var L=[this.get(this.OPT.HUE),this.get(this.OPT.SATURATION)/100,this.get(this.OPT.VALUE)/100],K=B.hsv2rgb(L);this.set(this.OPT.RGB,K);this._updateSliders();},_updateHex:function(){var N=this.get(this.OPT.HEX),K=N.length,O,M,L;if(K===3){O=N.split("");for(M=0;M<K;M=M+1){O[M]=O[M]+O[M];}N=O.join("");}if(N.length!==6){return false;}L=B.hex2rgb(N);this.setValue(L);},_hideShowEl:function(M,K){var L=(C.isString(M)?this.getElement(M):M);E.setStyle(L,"display",(K)?"":"none");},initAttributes:function(K){K=K||{};G.superclass.initAttributes.call(this,K);this.setAttributeConfig(this.OPT.PICKER_SIZE,{value:K.size||this.DEFAULT.PICKER_SIZE});this.setAttributeConfig(this.OPT.HUE,{value:K.hue||0,validator:C.isNumber});this.setAttributeConfig(this.OPT.SATURATION,{value:K.saturation||0,validator:C.isNumber});this.setAttributeConfig(this.OPT.VALUE,{value:C.isNumber(K.value)?K.value:100,validator:C.isNumber});this.setAttributeConfig(this.OPT.RED,{value:C.isNumber(K.red)?K.red:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.GREEN,{value:C.isNumber(K.green)?K.green:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.BLUE,{value:C.isNumber(K.blue)?K.blue:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.HEX,{value:K.hex||"FFFFFF",validator:C.isString});this.setAttributeConfig(this.OPT.RGB,{value:K.rgb||[255,255,255],method:function(O){this.set(this.OPT.RED,O[0],true);this.set(this.OPT.GREEN,O[1],true);this.set(this.OPT.BLUE,O[2],true);var Q=B.websafe(O),P=B.rgb2hex(O),N=B.rgb2hsv(O);this.set(this.OPT.WEBSAFE,Q,true);this.set(this.OPT.HEX,P,true);if(N[1]){this.set(this.OPT.HUE,N[0],true);}this.set(this.OPT.SATURATION,Math.round(N[1]*100),true);this.set(this.OPT.VALUE,Math.round(N[2]*100),true);},readonly:true});this.setAttributeConfig(this.OPT.CONTAINER,{value:null,method:function(N){if(N){N.showEvent.subscribe(function(){this.pickerSlider.focus();},this,true);}}});this.setAttributeConfig(this.OPT.WEBSAFE,{value:K.websafe||[255,255,255]});var M=K.ids||C.merge({},this.ID),L;if(!K.ids&&J>1){for(L in M){if(C.hasOwnProperty(M,L)){M[L]=M[L]+J;}}}this.setAttributeConfig(this.OPT.IDS,{value:M,writeonce:true});this.setAttributeConfig(this.OPT.TXT,{value:K.txt||this.TXT,writeonce:true});this.setAttributeConfig(this.OPT.IMAGES,{value:K.images||this.IMAGE,writeonce:true});this.setAttributeConfig(this.OPT.ELEMENTS,{value:{},readonly:true});this.setAttributeConfig(this.OPT.SHOW_CONTROLS,{value:C.isBoolean(K.showcontrols)?K.showcontrols:true,method:function(N){var O=E.getElementsByClassName("bd","div",this.getElement(this.ID.CONTROLS))[0];this._hideShowEl(O,N);this.getElement(this.ID.CONTROLS_LABEL).innerHTML=(N)?this.get(this.OPT.TXT).HIDE_CONTROLS:this.get(this.OPT.TXT).SHOW_CONTROLS;}});this.setAttributeConfig(this.OPT.SHOW_RGB_CONTROLS,{value:C.isBoolean(K.showrgbcontrols)?K.showrgbcontrols:true,method:function(N){this._hideShowEl(this.ID.RGB_CONTROLS,N);}});this.setAttributeConfig(this.OPT.SHOW_HSV_CONTROLS,{value:C.isBoolean(K.showhsvcontrols)?K.showhsvcontrols:false,method:function(N){this._hideShowEl(this.ID.HSV_CONTROLS,N);if(N&&this.get(this.OPT.SHOW_HEX_SUMMARY)){this.set(this.OPT.SHOW_HEX_SUMMARY,false);}}});this.setAttributeConfig(this.OPT.SHOW_HEX_CONTROLS,{value:C.isBoolean(K.showhexcontrols)?K.showhexcontrols:false,method:function(N){this._hideShowEl(this.ID.HEX_CONTROLS,N);}});this.setAttributeConfig(this.OPT.SHOW_WEBSAFE,{value:C.isBoolean(K.showwebsafe)?K.showwebsafe:true,method:function(N){this._hideShowEl(this.ID.WEBSAFE_SWATCH,N);}});this.setAttributeConfig(this.OPT.SHOW_HEX_SUMMARY,{value:C.isBoolean(K.showhexsummary)?K.showhexsummary:true,method:function(N){this._hideShowEl(this.ID.HEX_SUMMARY,N);if(N&&this.get(this.OPT.SHOW_HSV_CONTROLS)){this.set(this.OPT.SHOW_HSV_CONTROLS,false);}}});this.setAttributeConfig(this.OPT.ANIMATE,{value:C.isBoolean(K.animate)?K.animate:true,method:function(N){if(this.pickerSlider){this.pickerSlider.animate=N;this.hueSlider.animate=N;}}});this.on(this.OPT.HUE+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.SATURATION+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.VALUE+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.RED+"Change",this._updateRGB,this,true);this.on(this.OPT.GREEN+"Change",this._updateRGB,this,true);this.on(this.OPT.BLUE+"Change",this._updateRGB,this,true);this.on(this.OPT.HEX+"Change",this._updateHex,this,true);this._initElements();}});YAHOO.widget.ColorPicker=G;})();YAHOO.register("colorpicker",YAHOO.widget.ColorPicker,{version:"2.7.0",build:"1796"}); + +/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.7.0 +*/ +(function(){var B=YAHOO.util;var A=function(D,C,E,F){if(!D){}this.init(D,C,E,F);};A.NAME="Anim";A.prototype={toString:function(){var C=this.getEl()||{};var D=C.id||C.tagName;return(this.constructor.NAME+": "+D);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(C,E,D){return this.method(this.currentFrame,E,D-E,this.totalFrames);},setAttribute:function(C,F,E){var D=this.getEl();if(this.patterns.noNegatives.test(C)){F=(F>0)?F:0;}if("style" in D){B.Dom.setStyle(D,C,F+E);}else{if(C in D){D[C]=F;}}},getAttribute:function(C){var E=this.getEl();var G=B.Dom.getStyle(E,C);if(G!=="auto"&&!this.patterns.offsetUnit.test(G)){return parseFloat(G);}var D=this.patterns.offsetAttribute.exec(C)||[];var H=!!(D[3]);var F=!!(D[2]);if("style" in E){if(F||(B.Dom.getStyle(E,"position")=="absolute"&&H)){G=E["offset"+D[0].charAt(0).toUpperCase()+D[0].substr(1)];}else{G=0;}}else{if(C in E){G=E[C];}}return G;},getDefaultUnit:function(C){if(this.patterns.defaultUnit.test(C)){return"px";}return"";},setRuntimeAttribute:function(D){var I;var E;var F=this.attributes;this.runtimeAttributes[D]={};var H=function(J){return(typeof J!=="undefined");};if(!H(F[D]["to"])&&!H(F[D]["by"])){return false;}I=(H(F[D]["from"]))?F[D]["from"]:this.getAttribute(D);if(H(F[D]["to"])){E=F[D]["to"];}else{if(H(F[D]["by"])){if(I.constructor==Array){E=[];for(var G=0,C=I.length;G<C;++G){E[G]=I[G]+F[D]["by"][G]*1;}}else{E=I+F[D]["by"]*1;}}}this.runtimeAttributes[D].start=I;this.runtimeAttributes[D].end=E;this.runtimeAttributes[D].unit=(H(F[D].unit))?F[D]["unit"]:this.getDefaultUnit(D);return true;},init:function(E,J,I,C){var D=false;var F=null;var H=0;E=B.Dom.get(E);this.attributes=J||{};this.duration=!YAHOO.lang.isUndefined(I)?I:1;this.method=C||B.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=B.AnimMgr.fps;this.setEl=function(M){E=B.Dom.get(M);};this.getEl=function(){return E;};this.isAnimated=function(){return D;};this.getStartTime=function(){return F;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(B.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1;}B.AnimMgr.registerElement(this);return true;};this.stop=function(M){if(!this.isAnimated()){return false;}if(M){this.currentFrame=this.totalFrames;this._onTween.fire();}B.AnimMgr.stop(this);};var L=function(){this.onStart.fire();this.runtimeAttributes={};for(var M in this.attributes){this.setRuntimeAttribute(M);}D=true;H=0;F=new Date();};var K=function(){var O={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};O.toString=function(){return("duration: "+O.duration+", currentFrame: "+O.currentFrame);};this.onTween.fire(O);var N=this.runtimeAttributes;for(var M in N){this.setAttribute(M,this.doMethod(M,N[M].start,N[M].end),N[M].unit);}H+=1;};var G=function(){var M=(new Date()-F)/1000;var N={duration:M,frames:H,fps:H/M};N.toString=function(){return("duration: "+N.duration+", frames: "+N.frames+", fps: "+N.fps);};D=false;H=0;this.onComplete.fire(N);};this._onStart=new B.CustomEvent("_start",this,true);this.onStart=new B.CustomEvent("start",this);this.onTween=new B.CustomEvent("tween",this);this._onTween=new B.CustomEvent("_tween",this,true);this.onComplete=new B.CustomEvent("complete",this);this._onComplete=new B.CustomEvent("_complete",this,true);this._onStart.subscribe(L);this._onTween.subscribe(K);this._onComplete.subscribe(G);}};B.Anim=A;})();YAHOO.util.AnimMgr=new function(){var C=null;var B=[];var A=0;this.fps=1000;this.delay=1;this.registerElement=function(F){B[B.length]=F;A+=1;F._onStart.fire();this.start();};this.unRegister=function(G,F){F=F||E(G);if(!G.isAnimated()||F==-1){return false;}G._onComplete.fire();B.splice(F,1);A-=1;if(A<=0){this.stop();}return true;};this.start=function(){if(C===null){C=setInterval(this.run,this.delay);}};this.stop=function(H){if(!H){clearInterval(C);for(var G=0,F=B.length;G<F;++G){this.unRegister(B[0],0);}B=[];C=null;A=0;}else{this.unRegister(H);}};this.run=function(){for(var H=0,F=B.length;H<F;++H){var G=B[H];if(!G||!G.isAnimated()){continue;}if(G.currentFrame<G.totalFrames||G.totalFrames===null){G.currentFrame+=1;if(G.useSeconds){D(G);}G._onTween.fire();}else{YAHOO.util.AnimMgr.stop(G,H);}}};var E=function(H){for(var G=0,F=B.length;G<F;++G){if(B[G]==H){return G;}}return -1;};var D=function(G){var J=G.totalFrames;var I=G.currentFrame;var H=(G.currentFrame*G.duration*1000/G.totalFrames);var F=(new Date()-G.getStartTime());var K=0;if(F<G.duration*1000){K=Math.round((F/H-1)*G.currentFrame);}else{K=J-(I+1);}if(K>0&&isFinite(K)){if(G.currentFrame+K>=J){K=J-(I+1);}G.currentFrame+=K;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(E,D){var F=E.length;var C=[];for(var B=0;B<F;++B){C[B]=[E[B][0],E[B][1]];}for(var A=1;A<F;++A){for(B=0;B<F-A;++B){C[B][0]=(1-D)*C[B][0]+D*C[parseInt(B+1,10)][0];C[B][1]=(1-D)*C[B][1]+D*C[parseInt(B+1,10)][1];}}return[C[0][0],C[0][1]];};};(function(){var A=function(F,E,G,H){A.superclass.constructor.call(this,F,E,G,H);};A.NAME="ColorAnim";A.DEFAULT_BGCOLOR="#fff";var C=YAHOO.util;YAHOO.extend(A,C.Anim);var D=A.superclass;var B=A.prototype;B.patterns.color=/color$/i;B.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;B.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;B.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;B.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;B.parseColor=function(E){if(E.length==3){return E;}var F=this.patterns.hex.exec(E);if(F&&F.length==4){return[parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)];}F=this.patterns.rgb.exec(E);if(F&&F.length==4){return[parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10)];}F=this.patterns.hex3.exec(E);if(F&&F.length==4){return[parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)]; +}return null;};B.getAttribute=function(E){var G=this.getEl();if(this.patterns.color.test(E)){var I=YAHOO.util.Dom.getStyle(G,E);var H=this;if(this.patterns.transparent.test(I)){var F=YAHOO.util.Dom.getAncestorBy(G,function(J){return !H.patterns.transparent.test(I);});if(F){I=C.Dom.getStyle(F,E);}else{I=A.DEFAULT_BGCOLOR;}}}else{I=D.getAttribute.call(this,E);}return I;};B.doMethod=function(F,J,G){var I;if(this.patterns.color.test(F)){I=[];for(var H=0,E=J.length;H<E;++H){I[H]=D.doMethod.call(this,F,J[H],G[H]);}I="rgb("+Math.floor(I[0])+","+Math.floor(I[1])+","+Math.floor(I[2])+")";}else{I=D.doMethod.call(this,F,J,G);}return I;};B.setRuntimeAttribute=function(F){D.setRuntimeAttribute.call(this,F);if(this.patterns.color.test(F)){var H=this.attributes;var J=this.parseColor(this.runtimeAttributes[F].start);var G=this.parseColor(this.runtimeAttributes[F].end);if(typeof H[F]["to"]==="undefined"&&typeof H[F]["by"]!=="undefined"){G=this.parseColor(H[F].by);for(var I=0,E=J.length;I<E;++I){G[I]=J[I]+G[I];}}this.runtimeAttributes[F].start=J;this.runtimeAttributes[F].end=G;}};C.ColorAnim=A;})(); +/* +TERMS OF USE - EASING EQUATIONS +Open source under the BSD License. +Copyright 2001 Robert Penner All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +YAHOO.util.Easing={easeNone:function(B,A,D,C){return D*B/C+A;},easeIn:function(B,A,D,C){return D*(B/=C)*B+A;},easeOut:function(B,A,D,C){return -D*(B/=C)*(B-2)+A;},easeBoth:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B+A;}return -D/2*((--B)*(B-2)-1)+A;},easeInStrong:function(B,A,D,C){return D*(B/=C)*B*B*B+A;},easeOutStrong:function(B,A,D,C){return -D*((B=B/C-1)*B*B*B-1)+A;},easeBothStrong:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B+A;}return -D/2*((B-=2)*B*B*B-2)+A;},elasticIn:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return -(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;},elasticOut:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return B*Math.pow(2,-10*C)*Math.sin((C*F-D)*(2*Math.PI)/E)+G+A;},elasticBoth:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F/2)==2){return A+G;}if(!E){E=F*(0.3*1.5);}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}if(C<1){return -0.5*(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;}return B*Math.pow(2,-10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E)*0.5+G+A;},backIn:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*(B/=D)*B*((C+1)*B-C)+A;},backOut:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*((B=B/D-1)*B*((C+1)*B+C)+1)+A;},backBoth:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}if((B/=D/2)<1){return E/2*(B*B*(((C*=(1.525))+1)*B-C))+A;}return E/2*((B-=2)*B*(((C*=(1.525))+1)*B+C)+2)+A;},bounceIn:function(B,A,D,C){return D-YAHOO.util.Easing.bounceOut(C-B,0,D,C)+A;},bounceOut:function(B,A,D,C){if((B/=C)<(1/2.75)){return D*(7.5625*B*B)+A;}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+A;}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+A;}}}return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+A;},bounceBoth:function(B,A,D,C){if(B<C/2){return YAHOO.util.Easing.bounceIn(B*2,0,D,C)*0.5+A;}return YAHOO.util.Easing.bounceOut(B*2-C,0,D,C)*0.5+D*0.5+A;}};(function(){var A=function(H,G,I,J){if(H){A.superclass.constructor.call(this,H,G,I,J);}};A.NAME="Motion";var E=YAHOO.util;YAHOO.extend(A,E.ColorAnim);var F=A.superclass;var C=A.prototype;C.patterns.points=/^points$/i;C.setAttribute=function(G,I,H){if(this.patterns.points.test(G)){H=H||"px";F.setAttribute.call(this,"left",I[0],H);F.setAttribute.call(this,"top",I[1],H);}else{F.setAttribute.call(this,G,I,H);}};C.getAttribute=function(G){if(this.patterns.points.test(G)){var H=[F.getAttribute.call(this,"left"),F.getAttribute.call(this,"top")];}else{H=F.getAttribute.call(this,G);}return H;};C.doMethod=function(G,K,H){var J=null;if(this.patterns.points.test(G)){var I=this.method(this.currentFrame,0,100,this.totalFrames)/100;J=E.Bezier.getPosition(this.runtimeAttributes[G],I);}else{J=F.doMethod.call(this,G,K,H);}return J;};C.setRuntimeAttribute=function(P){if(this.patterns.points.test(P)){var H=this.getEl();var J=this.attributes;var G;var L=J["points"]["control"]||[];var I;var M,O;if(L.length>0&&!(L[0] instanceof Array)){L=[L];}else{var K=[];for(M=0,O=L.length;M<O;++M){K[M]=L[M];}L=K;}if(E.Dom.getStyle(H,"position")=="static"){E.Dom.setStyle(H,"position","relative");}if(D(J["points"]["from"])){E.Dom.setXY(H,J["points"]["from"]); +}else{E.Dom.setXY(H,E.Dom.getXY(H));}G=this.getAttribute("points");if(D(J["points"]["to"])){I=B.call(this,J["points"]["to"],G);var N=E.Dom.getXY(this.getEl());for(M=0,O=L.length;M<O;++M){L[M]=B.call(this,L[M],G);}}else{if(D(J["points"]["by"])){I=[G[0]+J["points"]["by"][0],G[1]+J["points"]["by"][1]];for(M=0,O=L.length;M<O;++M){L[M]=[G[0]+L[M][0],G[1]+L[M][1]];}}}this.runtimeAttributes[P]=[G];if(L.length>0){this.runtimeAttributes[P]=this.runtimeAttributes[P].concat(L);}this.runtimeAttributes[P][this.runtimeAttributes[P].length]=I;}else{F.setRuntimeAttribute.call(this,P);}};var B=function(G,I){var H=E.Dom.getXY(this.getEl());G=[G[0]-H[0]+I[0],G[1]-H[1]+I[1]];return G;};var D=function(G){return(typeof G!=="undefined");};E.Motion=A;})();(function(){var D=function(F,E,G,H){if(F){D.superclass.constructor.call(this,F,E,G,H);}};D.NAME="Scroll";var B=YAHOO.util;YAHOO.extend(D,B.ColorAnim);var C=D.superclass;var A=D.prototype;A.doMethod=function(E,H,F){var G=null;if(E=="scroll"){G=[this.method(this.currentFrame,H[0],F[0]-H[0],this.totalFrames),this.method(this.currentFrame,H[1],F[1]-H[1],this.totalFrames)];}else{G=C.doMethod.call(this,E,H,F);}return G;};A.getAttribute=function(E){var G=null;var F=this.getEl();if(E=="scroll"){G=[F.scrollLeft,F.scrollTop];}else{G=C.getAttribute.call(this,E);}return G;};A.setAttribute=function(E,H,G){var F=this.getEl();if(E=="scroll"){F.scrollLeft=H[0];F.scrollTop=H[1];}else{C.setAttribute.call(this,E,H,G);}};B.Scroll=D;})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.7.0",build:"1799"}); diff --git a/htdocs/includes/ckeditor/_source/plugins/undo/plugin.js b/htdocs/includes/ckeditor/_source/plugins/undo/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..f4ad1a3c6b0f16141f7b8457e0a55aff9107ba7c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/undo/plugin.js @@ -0,0 +1,593 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Undo/Redo system for saving shapshot for document modification + * and other recordable changes. + */ + +(function() +{ + CKEDITOR.plugins.add( 'undo', + { + requires : [ 'selection', 'wysiwygarea' ], + + init : function( editor ) + { + var undoManager = new UndoManager( editor ); + + var undoCommand = editor.addCommand( 'undo', + { + exec : function() + { + if ( undoManager.undo() ) + { + editor.selectionChange(); + this.fire( 'afterUndo' ); + } + }, + state : CKEDITOR.TRISTATE_DISABLED, + canUndo : false + }); + + var redoCommand = editor.addCommand( 'redo', + { + exec : function() + { + if ( undoManager.redo() ) + { + editor.selectionChange(); + this.fire( 'afterRedo' ); + } + }, + state : CKEDITOR.TRISTATE_DISABLED, + canUndo : false + }); + + undoManager.onChange = function() + { + undoCommand.setState( undoManager.undoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + redoCommand.setState( undoManager.redoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + }; + + function recordCommand( event ) + { + // If the command hasn't been marked to not support undo. + if ( undoManager.enabled && event.data.command.canUndo !== false ) + undoManager.save(); + } + + // We'll save snapshots before and after executing a command. + editor.on( 'beforeCommandExec', recordCommand ); + editor.on( 'afterCommandExec', recordCommand ); + + // Save snapshots before doing custom changes. + editor.on( 'saveSnapshot', function( evt ) + { + undoManager.save( evt.data && evt.data.contentOnly ); + }); + + // Registering keydown on every document recreation.(#3844) + editor.on( 'contentDom', function() + { + editor.document.on( 'keydown', function( event ) + { + // Do not capture CTRL hotkeys. + if ( !event.data.$.ctrlKey && !event.data.$.metaKey ) + undoManager.type( event ); + }); + }); + + // Always save an undo snapshot - the previous mode might have + // changed editor contents. + editor.on( 'beforeModeUnload', function() + { + editor.mode == 'wysiwyg' && undoManager.save( true ); + }); + + // Make the undo manager available only in wysiwyg mode. + editor.on( 'mode', function() + { + undoManager.enabled = editor.readOnly ? false : editor.mode == 'wysiwyg'; + undoManager.onChange(); + }); + + editor.ui.addButton( 'Undo', + { + label : editor.lang.undo, + command : 'undo' + }); + + editor.ui.addButton( 'Redo', + { + label : editor.lang.redo, + command : 'redo' + }); + + editor.resetUndo = function() + { + // Reset the undo stack. + undoManager.reset(); + + // Create the first image. + editor.fire( 'saveSnapshot' ); + }; + + /** + * Amend the top of undo stack (last undo image) with the current DOM changes. + * @name CKEDITOR.editor#updateUndo + * @example + * function() + * { + * editor.fire( 'saveSnapshot' ); + * editor.document.body.append(...); + * // Make new changes following the last undo snapshot part of it. + * editor.fire( 'updateSnapshot' ); + * ... + * } + */ + editor.on( 'updateSnapshot', function() + { + if ( undoManager.currentImage ) + undoManager.update(); + }); + } + }); + + CKEDITOR.plugins.undo = {}; + + /** + * Undo snapshot which represents the current document status. + * @name CKEDITOR.plugins.undo.Image + * @param editor The editor instance on which the image is created. + */ + var Image = CKEDITOR.plugins.undo.Image = function( editor ) + { + this.editor = editor; + + editor.fire( 'beforeUndoImage' ); + + var contents = editor.getSnapshot(), + selection = contents && editor.getSelection(); + + // In IE, we need to remove the expando attributes. + CKEDITOR.env.ie && contents && ( contents = contents.replace( /\s+data-cke-expando=".*?"/g, '' ) ); + + this.contents = contents; + this.bookmarks = selection && selection.createBookmarks2( true ); + + editor.fire( 'afterUndoImage' ); + }; + + // Attributes that browser may changing them when setting via innerHTML. + var protectedAttrs = /\b(?:href|src|name)="[^"]*?"/gi; + + Image.prototype = + { + equals : function( otherImage, contentOnly ) + { + + var thisContents = this.contents, + otherContents = otherImage.contents; + + // For IE6/7 : Comparing only the protected attribute values but not the original ones.(#4522) + if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) + { + thisContents = thisContents.replace( protectedAttrs, '' ); + otherContents = otherContents.replace( protectedAttrs, '' ); + } + + if ( thisContents != otherContents ) + return false; + + if ( contentOnly ) + return true; + + var bookmarksA = this.bookmarks, + bookmarksB = otherImage.bookmarks; + + if ( bookmarksA || bookmarksB ) + { + if ( !bookmarksA || !bookmarksB || bookmarksA.length != bookmarksB.length ) + return false; + + for ( var i = 0 ; i < bookmarksA.length ; i++ ) + { + var bookmarkA = bookmarksA[ i ], + bookmarkB = bookmarksB[ i ]; + + if ( + bookmarkA.startOffset != bookmarkB.startOffset || + bookmarkA.endOffset != bookmarkB.endOffset || + !CKEDITOR.tools.arrayCompare( bookmarkA.start, bookmarkB.start ) || + !CKEDITOR.tools.arrayCompare( bookmarkA.end, bookmarkB.end ) ) + { + return false; + } + } + } + + return true; + } + }; + + /** + * @constructor Main logic for Redo/Undo feature. + */ + function UndoManager( editor ) + { + this.editor = editor; + + // Reset the undo stack. + this.reset(); + } + + + var editingKeyCodes = { /*Backspace*/ 8:1, /*Delete*/ 46:1 }, + modifierKeyCodes = { /*Shift*/ 16:1, /*Ctrl*/ 17:1, /*Alt*/ 18:1 }, + navigationKeyCodes = { 37:1, 38:1, 39:1, 40:1 }; // Arrows: L, T, R, B + + UndoManager.prototype = + { + /** + * Process undo system regard keystrikes. + * @param {CKEDITOR.dom.event} event + */ + type : function( event ) + { + var keystroke = event && event.data.getKey(), + isModifierKey = keystroke in modifierKeyCodes, + isEditingKey = keystroke in editingKeyCodes, + wasEditingKey = this.lastKeystroke in editingKeyCodes, + sameAsLastEditingKey = isEditingKey && keystroke == this.lastKeystroke, + // Keystrokes which navigation through contents. + isReset = keystroke in navigationKeyCodes, + wasReset = this.lastKeystroke in navigationKeyCodes, + + // Keystrokes which just introduce new contents. + isContent = ( !isEditingKey && !isReset ), + + // Create undo snap for every different modifier key. + modifierSnapshot = ( isEditingKey && !sameAsLastEditingKey ), + // Create undo snap on the following cases: + // 1. Just start to type . + // 2. Typing some content after a modifier. + // 3. Typing some content after make a visible selection. + startedTyping = !( isModifierKey || this.typing ) + || ( isContent && ( wasEditingKey || wasReset ) ); + + if ( startedTyping || modifierSnapshot ) + { + var beforeTypeImage = new Image( this.editor ), + beforeTypeCount = this.snapshots.length; + + // Use setTimeout, so we give the necessary time to the + // browser to insert the character into the DOM. + CKEDITOR.tools.setTimeout( function() + { + var currentSnapshot = this.editor.getSnapshot(); + + // In IE, we need to remove the expando attributes. + if ( CKEDITOR.env.ie ) + currentSnapshot = currentSnapshot.replace( /\s+data-cke-expando=".*?"/g, '' ); + + // If changes have taken place, while not been captured yet (#8459), + // compensate the snapshot. + if ( beforeTypeImage.contents != currentSnapshot && + beforeTypeCount == this.snapshots.length ) + { + // It's safe to now indicate typing state. + this.typing = true; + + // This's a special save, with specified snapshot + // and without auto 'fireChange'. + if ( !this.save( false, beforeTypeImage, false ) ) + // Drop future snapshots. + this.snapshots.splice( this.index + 1, this.snapshots.length - this.index - 1 ); + + this.hasUndo = true; + this.hasRedo = false; + + this.typesCount = 1; + this.modifiersCount = 1; + + this.onChange(); + } + }, + 0, this + ); + } + + this.lastKeystroke = keystroke; + + // Create undo snap after typed too much (over 25 times). + if ( isEditingKey ) + { + this.typesCount = 0; + this.modifiersCount++; + + if ( this.modifiersCount > 25 ) + { + this.save( false, null, false ); + this.modifiersCount = 1; + } + } + else if ( !isReset ) + { + this.modifiersCount = 0; + this.typesCount++; + + if ( this.typesCount > 25 ) + { + this.save( false, null, false ); + this.typesCount = 1; + } + } + + }, + + reset : function() // Reset the undo stack. + { + /** + * Remember last pressed key. + */ + this.lastKeystroke = 0; + + /** + * Stack for all the undo and redo snapshots, they're always created/removed + * in consistency. + */ + this.snapshots = []; + + /** + * Current snapshot history index. + */ + this.index = -1; + + this.limit = this.editor.config.undoStackSize || 20; + + this.currentImage = null; + + this.hasUndo = false; + this.hasRedo = false; + + this.resetType(); + }, + + /** + * Reset all states about typing. + * @see UndoManager.type + */ + resetType : function() + { + this.typing = false; + delete this.lastKeystroke; + this.typesCount = 0; + this.modifiersCount = 0; + }, + fireChange : function() + { + this.hasUndo = !!this.getNextImage( true ); + this.hasRedo = !!this.getNextImage( false ); + // Reset typing + this.resetType(); + this.onChange(); + }, + + /** + * Save a snapshot of document image for later retrieve. + */ + save : function( onContentOnly, image, autoFireChange ) + { + var snapshots = this.snapshots; + + // Get a content image. + if ( !image ) + image = new Image( this.editor ); + + // Do nothing if it was not possible to retrieve an image. + if ( image.contents === false ) + return false; + + // Check if this is a duplicate. In such case, do nothing. + if ( this.currentImage && image.equals( this.currentImage, onContentOnly ) ) + return false; + + // Drop future snapshots. + snapshots.splice( this.index + 1, snapshots.length - this.index - 1 ); + + // If we have reached the limit, remove the oldest one. + if ( snapshots.length == this.limit ) + snapshots.shift(); + + // Add the new image, updating the current index. + this.index = snapshots.push( image ) - 1; + + this.currentImage = image; + + if ( autoFireChange !== false ) + this.fireChange(); + return true; + }, + + restoreImage : function( image ) + { + // Bring editor focused to restore selection. + var editor = this.editor, + sel; + + if ( image.bookmarks ) + { + editor.focus(); + // Retrieve the selection beforehand. (#8324) + sel = editor.getSelection(); + } + + this.editor.loadSnapshot( image.contents ); + + if ( image.bookmarks ) + sel.selectBookmarks( image.bookmarks ); + else if ( CKEDITOR.env.ie ) + { + // IE BUG: If I don't set the selection to *somewhere* after setting + // document contents, then IE would create an empty paragraph at the bottom + // the next time the document is modified. + var $range = this.editor.document.getBody().$.createTextRange(); + $range.collapse( true ); + $range.select(); + } + + this.index = image.index; + + // Update current image with the actual editor + // content, since actualy content may differ from + // the original snapshot due to dom change. (#4622) + this.update(); + this.fireChange(); + }, + + // Get the closest available image. + getNextImage : function( isUndo ) + { + var snapshots = this.snapshots, + currentImage = this.currentImage, + image, i; + + if ( currentImage ) + { + if ( isUndo ) + { + for ( i = this.index - 1 ; i >= 0 ; i-- ) + { + image = snapshots[ i ]; + if ( !currentImage.equals( image, true ) ) + { + image.index = i; + return image; + } + } + } + else + { + for ( i = this.index + 1 ; i < snapshots.length ; i++ ) + { + image = snapshots[ i ]; + if ( !currentImage.equals( image, true ) ) + { + image.index = i; + return image; + } + } + } + } + + return null; + }, + + /** + * Check the current redo state. + * @return {Boolean} Whether the document has previous state to + * retrieve. + */ + redoable : function() + { + return this.enabled && this.hasRedo; + }, + + /** + * Check the current undo state. + * @return {Boolean} Whether the document has future state to restore. + */ + undoable : function() + { + return this.enabled && this.hasUndo; + }, + + /** + * Perform undo on current index. + */ + undo : function() + { + if ( this.undoable() ) + { + this.save( true ); + + var image = this.getNextImage( true ); + if ( image ) + return this.restoreImage( image ), true; + } + + return false; + }, + + /** + * Perform redo on current index. + */ + redo : function() + { + if ( this.redoable() ) + { + // Try to save. If no changes have been made, the redo stack + // will not change, so it will still be redoable. + this.save( true ); + + // If instead we had changes, we can't redo anymore. + if ( this.redoable() ) + { + var image = this.getNextImage( false ); + if ( image ) + return this.restoreImage( image ), true; + } + } + + return false; + }, + + /** + * Update the last snapshot of the undo stack with the current editor content. + */ + update : function() + { + this.snapshots.splice( this.index, 1, ( this.currentImage = new Image( this.editor ) ) ); + } + }; +})(); + +/** + * The number of undo steps to be saved. The higher this setting value the more + * memory is used for it. + * @name CKEDITOR.config.undoStackSize + * @type Number + * @default 20 + * @example + * config.undoStackSize = 50; + */ + +/** + * Fired when the editor is about to save an undo snapshot. This event can be + * fired by plugins and customizations to make the editor saving undo snapshots. + * @name CKEDITOR.editor#saveSnapshot + * @event + */ + +/** + * Fired before an undo image is to be taken. An undo image represents the + * editor state at some point. It's saved into an undo store, so the editor is + * able to recover the editor state on undo and redo operations. + * @name CKEDITOR.editor#beforeUndoImage + * @since 3.5.3 + * @see CKEDITOR.editor#afterUndoImage + * @event + */ + +/** + * Fired after an undo image is taken. An undo image represents the + * editor state at some point. It's saved into an undo store, so the editor is + * able to recover the editor state on undo and redo operations. + * @name CKEDITOR.editor#afterUndoImage + * @since 3.5.3 + * @see CKEDITOR.editor#beforeUndoImage + * @event + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/ciframe.html b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/ciframe.html new file mode 100644 index 0000000000000000000000000000000000000000..292297d70e2c3360c966d7d705376d367a67840f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/ciframe.html @@ -0,0 +1,49 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!-- +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +--> +<html> +<head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <script type="text/javascript"> + +function gup( name ) +{ + name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ; + var regexS = '[\\?&]' + name + '=([^&#]*)' ; + var regex = new RegExp( regexS ) ; + var results = regex.exec( window.location.href ) ; + + if ( results ) + return results[ 1 ] ; + else + return '' ; +} + +var interval; + +function sendData2Master() +{ + var destination = window.parent.parent ; + try + { + if ( destination.XDTMaster ) + { + var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ; + window.clearInterval( interval ) ; + } + } + catch (e) {} +} + +function onLoad() +{ + interval = window.setInterval( sendData2Master, 100 ); +} + +</script> +</head> +<body onload="onLoad()"><p></p></body> +</html> diff --git a/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html new file mode 100644 index 0000000000000000000000000000000000000000..88e1afe8a103d178f4a57dab15452808961b417c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html @@ -0,0 +1,52 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> +<!-- +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +--> +<html> +<head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <script type="text/javascript"> + +function doLoadScript( url ) +{ + if ( !url ) + return false ; + + var s = document.createElement( "script" ) ; + s.type = "text/javascript" ; + s.src = url ; + document.getElementsByTagName( "head" )[ 0 ].appendChild( s ) ; + + return true ; +} + +var opener; +function tryLoad() +{ + opener = window.parent; + + // get access to global parameters + var oParams = window.opener.oldFramesetPageParams; + + // make frameset rows string prepare + var sFramesetRows = ( parseInt( oParams.firstframeh, 10 ) || '30') + ",*," + ( parseInt( oParams.thirdframeh, 10 ) || '150' ) + ',0' ; + document.getElementById( 'itFrameset' ).rows = sFramesetRows ; + + // dynamic including init frames and crossdomain transport code + // from config sproxy_js_frameset url + var addScriptUrl = oParams.sproxy_js_frameset ; + doLoadScript( addScriptUrl ) ; +} + + </script> +</head> + +<frameset id="itFrameset" onload="tryLoad();" border="0" rows="30,*,*,0"> + <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="2" src="" name="navbar"></frame> + <frame scrolling="auto" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="0" src="" name="mid"></frame> + <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="bot"></frame> + <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="spellsuggestall"></frame> +</frameset> +</html> diff --git a/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/wsc.css b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/wsc.css new file mode 100644 index 0000000000000000000000000000000000000000..e163948467a668e8200fb971192e71d7456e4693 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/wsc.css @@ -0,0 +1,82 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +html, body +{ + background-color: transparent; + margin: 0px; + padding: 0px; +} + +body +{ + padding: 10px; +} + +body, td, input, select, textarea +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; +} + +.midtext +{ + padding:0px; + margin:10px; +} + +.midtext p +{ + padding:0px; + margin:10px; +} + +.Button +{ + border: #737357 1px solid; + color: #3b3b1f; + background-color: #c7c78f; +} + +.PopupTabArea +{ + color: #737357; + background-color: #e3e3c7; +} + +.PopupTitleBorder +{ + border-bottom: #d5d59d 1px solid; +} +.PopupTabEmptyArea +{ + padding-left: 10px; + border-bottom: #d5d59d 1px solid; +} + +.PopupTab, .PopupTabSelected +{ + border-right: #d5d59d 1px solid; + border-top: #d5d59d 1px solid; + border-left: #d5d59d 1px solid; + padding: 3px 5px 3px 5px; + color: #737357; +} + +.PopupTab +{ + margin-top: 1px; + border-bottom: #d5d59d 1px solid; + cursor: pointer; +} + +.PopupTabSelected +{ + font-weight: bold; + cursor: default; + padding-top: 4px; + border-bottom: #f1f1e3 1px solid; + background-color: #f1f1e3; +} diff --git a/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/wsc.js b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/wsc.js new file mode 100644 index 0000000000000000000000000000000000000000..83b6dbe75dbd60201d08ebc05210ac934a60801b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/wsc/dialogs/wsc.js @@ -0,0 +1,192 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'checkspell', function( editor ) +{ + var number = CKEDITOR.tools.getNextNumber(), + iframeId = 'cke_frame_' + number, + textareaId = 'cke_data_' + number, + errorBoxId = 'cke_error_' + number, + interval, + protocol = document.location.protocol || 'http:', + errorMsg = editor.lang.spellCheck.notAvailable; + + var pasteArea = '<textarea'+ + ' style="display: none"' + + ' id="' + textareaId + '"' + + ' rows="10"' + + ' cols="40">' + + ' </textarea><div' + + ' id="' + errorBoxId + '"' + + ' style="display:none;color:red;font-size:16px;font-weight:bold;padding-top:160px;text-align:center;z-index:11;">' + + '</div><iframe' + + ' src=""' + + ' style="width:100%;background-color:#f1f1e3;"' + + ' frameborder="0"' + + ' name="' + iframeId + '"' + + ' id="' + iframeId + '"' + + ' allowtransparency="1">' + + '</iframe>'; + + var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + + '//loader.webspellchecker.net/sproxy_fck/sproxy.php' + + '?plugin=fck2' + + '&customerid=' + editor.config.wsc_customerId + + '&cmd=script&doc=wsc&schema=22' + ); + + if ( editor.config.wsc_customLoaderScript ) + errorMsg += '<p style="color:#000;font-size:11px;font-weight: normal;text-align:center;padding-top:10px">' + + editor.lang.spellCheck.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '</p>'; + + function burnSpelling( dialog, errorMsg ) + { + var i = 0; + return function () + { + if ( typeof( window.doSpell ) == 'function' ) + { + //Call from window.setInteval expected at once. + if ( typeof( interval ) != 'undefined' ) + window.clearInterval( interval ); + + initAndSpell( dialog ); + } + else if ( i++ == 180 ) // Timeout: 180 * 250ms = 45s. + window._cancelOnError( errorMsg ); + }; + } + + window._cancelOnError = function( m ) + { + if ( typeof( window.WSC_Error ) == 'undefined' ) + { + CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'none' ); + var errorBox = CKEDITOR.document.getById( errorBoxId ); + errorBox.setStyle( 'display', 'block' ); + errorBox.setHtml( m || editor.lang.spellCheck.notAvailable ); + } + }; + + function initAndSpell( dialog ) + { + var LangComparer = new window._SP_FCK_LangCompare(), // Language abbr standarts comparer. + pluginPath = CKEDITOR.getUrl( editor.plugins.wsc.path + 'dialogs/' ), // Service paths corecting/preparing. + framesetPath = pluginPath + 'tmpFrameset.html'; + + // global var is used in FCK specific core + // change on equal var used in fckplugin.js + window.gFCKPluginName = 'wsc'; + + LangComparer.setDefaulLangCode( editor.config.defaultLanguage ); + + window.doSpell({ + ctrl : textareaId, + + lang : editor.config.wsc_lang || LangComparer.getSPLangCode(editor.langCode ), + intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode(editor.langCode ), + winType : iframeId, // If not defined app will run on winpopup. + + // Callback binding section. + onCancel : function() + { + dialog.hide(); + }, + onFinish : function( dT ) + { + editor.focus(); + dialog.getParentEditor().setData( dT.value ); + dialog.hide(); + }, + + // Some manipulations with client static pages. + staticFrame : framesetPath, + framesetPath : framesetPath, + iframePath : pluginPath + 'ciframe.html', + + // Styles defining. + schemaURI : pluginPath + 'wsc.css', + + userDictionaryName: editor.config.wsc_userDictionaryName, + customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split(","), + domainName: editor.config.wsc_domainName + + }); + + // Hide user message console (if application was loaded more then after timeout). + CKEDITOR.document.getById( errorBoxId ).setStyle( 'display', 'none' ); + CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'block' ); + } + + return { + title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title, + minWidth : 485, + minHeight : 380, + buttons : [ CKEDITOR.dialog.cancelButton ], + onShow : function() + { + var contentArea = this.getContentElement( 'general', 'content' ).getElement(); + contentArea.setHtml( pasteArea ); + contentArea.getChild( 2 ).setStyle( 'height', this._.contentSize.height + 'px' ); + + if ( typeof( window.doSpell ) != 'function' ) + { + // Load script. + CKEDITOR.document.getHead().append( + CKEDITOR.document.createElement( 'script', + { + attributes : + { + type : 'text/javascript', + src : wscCoreUrl + } + }) + ); + } + + var sData = editor.getData(); // Get the data to be checked. + CKEDITOR.document.getById( textareaId ).setValue( sData ); + + interval = window.setInterval( burnSpelling( this, errorMsg ), 250 ); + }, + onHide : function() + { + window.ooo = undefined; + window.int_framsetLoaded = undefined; + window.framesetLoaded = undefined; + window.is_window_opened = false; + }, + contents : [ + { + id : 'general', + label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title, + padding : 0, + elements : [ + { + type : 'html', + id : 'content', + html : '' + } + ] + } + ] + }; +}); + +// Expand the spell-check frame when dialog resized. (#6829) +CKEDITOR.dialog.on( 'resize', function( evt ) +{ + var data = evt.data, + dialog = data.dialog; + + if ( dialog._.name == 'checkspell' ) + { + var content = dialog.getContentElement( 'general', 'content' ).getElement(), + iframe = content && content.getChild( 2 ); + + iframe && iframe.setSize( 'height', data.height ); + iframe && iframe.setSize( 'width', data.width ); + } +}); diff --git a/htdocs/includes/ckeditor/_source/plugins/wsc/plugin.js b/htdocs/includes/ckeditor/_source/plugins/wsc/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..27bb988a60a823662aebf6d4bf422cea221da5b1 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/wsc/plugin.js @@ -0,0 +1,33 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Spell checker + */ + +// Register a plugin named "wsc". +CKEDITOR.plugins.add( 'wsc', +{ + requires : [ 'dialog' ], + init : function( editor ) + { + var commandName = 'checkspell'; + + var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) ); + + // SpellChecker doesn't work in Opera and with custom domain + command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) }; + + editor.ui.addButton( 'SpellChecker', + { + label : editor.lang.spellCheck.toolbar, + command : commandName + }); + CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' ); + } +}); + +CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ; +CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null; diff --git a/htdocs/includes/ckeditor/_source/plugins/wysiwygarea/plugin.js b/htdocs/includes/ckeditor/_source/plugins/wysiwygarea/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..1b81be2bdade9ffe163f6094ba3284f8475e3b03 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/wysiwygarea/plugin.js @@ -0,0 +1,1403 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The "wysiwygarea" plugin. It registers the "wysiwyg" editing + * mode, which handles the main editing area space. + */ + +(function() +{ + // Matching an empty paragraph at the end of document. + var emptyParagraphRegexp = /(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi; + + var notWhitespaceEval = CKEDITOR.dom.walker.whitespaces( true ), + notBogus = CKEDITOR.dom.walker.bogus( true ), + notEmpty = function( node ) { return notWhitespaceEval( node ) && notBogus( node ); }; + + // Elements that could blink the cursor anchoring beside it, like hr, page-break. (#6554) + function nonEditable( element ) + { + return element.isBlockBoundary() && CKEDITOR.dtd.$empty[ element.getName() ]; + } + + + function onInsert( insertFunc ) + { + return function( evt ) + { + if ( this.mode == 'wysiwyg' ) + { + this.focus(); + + // Since the insertion might happen from within dialog or menu + // where the editor selection might be locked at the moment, + // update the locked selection. + var selection = this.getSelection(), + selIsLocked = selection.isLocked; + + selIsLocked && selection.unlock(); + + this.fire( 'saveSnapshot' ); + + insertFunc.call( this, evt.data ); + + selIsLocked && this.getSelection().lock(); + + // Save snaps after the whole execution completed. + // This's a workaround for make DOM modification's happened after + // 'insertElement' to be included either, e.g. Form-based dialogs' 'commitContents' + // call. + CKEDITOR.tools.setTimeout( function() + { + this.fire( 'saveSnapshot' ); + }, 0, this ); + } + }; + } + + function doInsertHtml( data ) + { + if ( this.dataProcessor ) + data = this.dataProcessor.toHtml( data ); + + if ( !data ) + return; + + // HTML insertion only considers the first range. + var selection = this.getSelection(), + range = selection.getRanges()[ 0 ]; + + if ( range.checkReadOnly() ) + return; + + // Opera: force block splitting when pasted content contains block. (#7801) + if ( CKEDITOR.env.opera ) + { + var path = new CKEDITOR.dom.elementPath( range.startContainer ); + if ( path.block ) + { + var nodes = CKEDITOR.htmlParser.fragment.fromHtml( data, false ).children; + for ( var i = 0, count = nodes.length; i < count; i++ ) + { + if ( nodes[ i ]._.isBlockLike ) + { + range.splitBlock( this.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); + range.insertNode( range.document.createText( '' ) ); + range.select(); + break; + } + } + } + } + + if ( CKEDITOR.env.ie ) + { + var $sel = selection.getNative(); + + // Delete control selections to avoid IE bugs on pasteHTML. + if ( $sel.type == 'Control' ) + $sel.clear(); + else if ( selection.getType() == CKEDITOR.SELECTION_TEXT ) + { + // Due to IE bugs on handling contenteditable=false blocks + // (#6005), we need to make some checks and eventually + // delete the selection first. + + range = selection.getRanges()[ 0 ]; + var endContainer = range && range.endContainer; + + if ( endContainer && + endContainer.type == CKEDITOR.NODE_ELEMENT && + endContainer.getAttribute( 'contenteditable' ) == 'false' && + range.checkBoundaryOfElement( endContainer, CKEDITOR.END ) ) + { + range.setEndAfter( range.endContainer ); + range.deleteContents(); + } + } + + $sel.createRange().pasteHTML( data ); + } + else + this.document.$.execCommand( 'inserthtml', false, data ); + + // Webkit does not scroll to the cursor position after pasting (#5558) + if ( CKEDITOR.env.webkit ) + { + selection = this.getSelection(); + selection.scrollIntoView(); + } + } + + function doInsertText( text ) + { + var selection = this.getSelection(), + mode = selection.getStartElement().hasAscendant( 'pre', true ) ? + CKEDITOR.ENTER_BR : this.config.enterMode, + isEnterBrMode = mode == CKEDITOR.ENTER_BR; + + var html = CKEDITOR.tools.htmlEncode( text.replace( /\r\n|\r/g, '\n' ) ); + + // Convert leading and trailing whitespaces into + html = html.replace( /^[ \t]+|[ \t]+$/g, function( match, offset, s ) + { + if ( match.length == 1 ) // one space, preserve it + return ' '; + else if ( !offset ) // beginning of block + return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' '; + else // end of block + return ' ' + CKEDITOR.tools.repeat( ' ', match.length - 1 ); + } ); + + // Convert subsequent whitespaces into + html = html.replace( /[ \t]{2,}/g, function ( match ) + { + return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' '; + } ); + + var paragraphTag = mode == CKEDITOR.ENTER_P ? 'p' : 'div'; + + // Two line-breaks create one paragraph. + if ( !isEnterBrMode ) + { + html = html.replace( /(\n{2})([\s\S]*?)(?:$|\1)/g, + function( match, group1, text ) + { + return '<'+paragraphTag + '>' + text + '</' + paragraphTag + '>'; + }); + } + + // One <br> per line-break. + html = html.replace( /\n/g, '<br>' ); + + // Compensate padding <br> for non-IE. + if ( !( isEnterBrMode || CKEDITOR.env.ie ) ) + { + html = html.replace( new RegExp( '<br>(?=</' + paragraphTag + '>)' ), function( match ) + { + return CKEDITOR.tools.repeat( match, 2 ); + } ); + } + + // Inline styles have to be inherited in Firefox. + if ( CKEDITOR.env.gecko || CKEDITOR.env.webkit ) + { + var path = new CKEDITOR.dom.elementPath( selection.getStartElement() ), + context = []; + + for ( var i = 0; i < path.elements.length; i++ ) + { + var tag = path.elements[ i ].getName(); + if ( tag in CKEDITOR.dtd.$inline ) + context.unshift( path.elements[ i ].getOuterHtml().match( /^<.*?>/) ); + else if ( tag in CKEDITOR.dtd.$block ) + break; + } + + // Reproduce the context by preceding the pasted HTML with opening inline tags. + html = context.join( '' ) + html; + } + + doInsertHtml.call( this, html ); + } + + function doInsertElement( element ) + { + var selection = this.getSelection(), + ranges = selection.getRanges(), + elementName = element.getName(), + isBlock = CKEDITOR.dtd.$block[ elementName ]; + + var selIsLocked = selection.isLocked; + + if ( selIsLocked ) + selection.unlock(); + + var range, clone, lastElement, bookmark; + + for ( var i = ranges.length - 1 ; i >= 0 ; i-- ) + { + range = ranges[ i ]; + + if ( !range.checkReadOnly() ) + { + // Remove the original contents, merge splitted nodes. + range.deleteContents( 1 ); + + clone = !i && element || element.clone( 1 ); + + // If we're inserting a block at dtd-violated position, split + // the parent blocks until we reach blockLimit. + var current, dtd; + if ( isBlock ) + { + while ( ( current = range.getCommonAncestor( 0, 1 ) ) + && ( dtd = CKEDITOR.dtd[ current.getName() ] ) + && !( dtd && dtd [ elementName ] ) ) + { + // Split up inline elements. + if ( current.getName() in CKEDITOR.dtd.span ) + range.splitElement( current ); + // If we're in an empty block which indicate a new paragraph, + // simply replace it with the inserting block.(#3664) + else if ( range.checkStartOfBlock() + && range.checkEndOfBlock() ) + { + range.setStartBefore( current ); + range.collapse( true ); + current.remove(); + } + else + range.splitBlock(); + } + } + + // Insert the new node. + range.insertNode( clone ); + + // Save the last element reference so we can make the + // selection later. + if ( !lastElement ) + lastElement = clone; + } + } + + if ( lastElement ) + { + range.moveToPosition( lastElement, CKEDITOR.POSITION_AFTER_END ); + + // If we're inserting a block element immediately followed by + // another block element, the selection must be optimized. (#3100,#5436,#8950) + if ( isBlock ) + { + var next = lastElement.getNext( notEmpty ), + nextName = next && next.type == CKEDITOR.NODE_ELEMENT && next.getName(); + + // If the next one is a text block, move cursor to the start of it's content. + if ( nextName && CKEDITOR.dtd.$block[ nextName ] ) + { + if ( CKEDITOR.dtd[ nextName ][ '#' ] ) + range.moveToElementEditStart( next ); + // Otherwise move cursor to the before end of the last element. + else + range.moveToElementEditEnd( lastElement ); + } + // Open a new line if the block is inserted at the end of parent. + else if ( !next ) + { + next = range.fixBlock( true, this.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); + range.moveToElementEditStart( next ); + } + } + } + + selection.selectRanges( [ range ] ); + + if ( selIsLocked ) + this.getSelection().lock(); + } + + // DOM modification here should not bother dirty flag.(#4385) + function restoreDirty( editor ) + { + if ( !editor.checkDirty() ) + setTimeout( function(){ editor.resetDirty(); }, 0 ); + } + + var isNotWhitespace = CKEDITOR.dom.walker.whitespaces( true ), + isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true ); + + function isNotEmpty( node ) + { + return isNotWhitespace( node ) && isNotBookmark( node ); + } + + function isNbsp( node ) + { + return node.type == CKEDITOR.NODE_TEXT + && CKEDITOR.tools.trim( node.getText() ).match( /^(?: |\xa0)$/ ); + } + + function restoreSelection( selection ) + { + if ( selection.isLocked ) + { + selection.unlock(); + setTimeout( function() { selection.lock(); }, 0 ); + } + } + + function isBlankParagraph( block ) + { + return block.getOuterHtml().match( emptyParagraphRegexp ); + } + + isNotWhitespace = CKEDITOR.dom.walker.whitespaces( true ); + + // Gecko need a key event to 'wake up' the editing + // ability when document is empty.(#3864, #5781) + function activateEditing( editor ) + { + var win = editor.window, + doc = editor.document, + body = editor.document.getBody(), + bodyFirstChild = body.getFirst(), + bodyChildsNum = body.getChildren().count(); + + if ( !bodyChildsNum + || bodyChildsNum == 1 + && bodyFirstChild.type == CKEDITOR.NODE_ELEMENT + && bodyFirstChild.hasAttribute( '_moz_editor_bogus_node' ) ) + { + restoreDirty( editor ); + + // Memorize scroll position to restore it later (#4472). + var hostDocument = editor.element.getDocument(); + var hostDocumentElement = hostDocument.getDocumentElement(); + var scrollTop = hostDocumentElement.$.scrollTop; + var scrollLeft = hostDocumentElement.$.scrollLeft; + + // Simulating keyboard character input by dispatching a keydown of white-space text. + var keyEventSimulate = doc.$.createEvent( "KeyEvents" ); + keyEventSimulate.initKeyEvent( 'keypress', true, true, win.$, false, + false, false, false, 0, 32 ); + doc.$.dispatchEvent( keyEventSimulate ); + + if ( scrollTop != hostDocumentElement.$.scrollTop || scrollLeft != hostDocumentElement.$.scrollLeft ) + hostDocument.getWindow().$.scrollTo( scrollLeft, scrollTop ); + + // Restore the original document status by placing the cursor before a bogus br created (#5021). + bodyChildsNum && body.getFirst().remove(); + doc.getBody().appendBogus(); + var nativeRange = new CKEDITOR.dom.range( doc ); + nativeRange.setStartAt( body , CKEDITOR.POSITION_AFTER_START ); + nativeRange.select(); + } + } + + /** + * Auto-fixing block-less content by wrapping paragraph (#3190), prevent + * non-exitable-block by padding extra br.(#3189) + */ + function onSelectionChangeFixBody( evt ) + { + var editor = evt.editor, + path = evt.data.path, + blockLimit = path.blockLimit, + selection = evt.data.selection, + range = selection.getRanges()[0], + body = editor.document.getBody(), + enterMode = editor.config.enterMode; + + if ( CKEDITOR.env.gecko ) + { + activateEditing( editor ); + + // Ensure bogus br could help to move cursor (out of styles) to the end of block. (#7041) + var pathBlock = path.block || path.blockLimit, + lastNode = pathBlock && pathBlock.getLast( isNotEmpty ); + + // Check some specialities of the current path block: + // 1. It is really displayed as block; (#7221) + // 2. It doesn't end with one inner block; (#7467) + // 3. It doesn't have bogus br yet. + if ( pathBlock + && pathBlock.isBlockBoundary() + && !( lastNode && lastNode.type == CKEDITOR.NODE_ELEMENT && lastNode.isBlockBoundary() ) + && !pathBlock.is( 'pre' ) + && !pathBlock.getBogus() ) + { + pathBlock.appendBogus(); + } + } + + // When we're in block enter mode, a new paragraph will be established + // to encapsulate inline contents right under body. (#3657) + if ( editor.config.autoParagraph !== false + && enterMode != CKEDITOR.ENTER_BR + && range.collapsed + && blockLimit.getName() == 'body' + && !path.block ) + { + var fixedBlock = range.fixBlock( true, + editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); + + // For IE, we should remove any filler node which was introduced before. + if ( CKEDITOR.env.ie ) + { + var first = fixedBlock.getFirst( isNotEmpty ); + first && isNbsp( first ) && first.remove(); + } + + // If the fixed block is actually blank and is already followed by an exitable blank + // block, we should revert the fix and move into the existed one. (#3684) + if ( isBlankParagraph( fixedBlock ) ) + { + var element = fixedBlock.getNext( isNotWhitespace ); + if ( element && + element.type == CKEDITOR.NODE_ELEMENT && + !nonEditable( element ) ) + { + range.moveToElementEditStart( element ); + fixedBlock.remove(); + } + else + { + element = fixedBlock.getPrevious( isNotWhitespace ); + if ( element && + element.type == CKEDITOR.NODE_ELEMENT && + !nonEditable( element ) ) + { + range.moveToElementEditEnd( element ); + fixedBlock.remove(); + } + } + } + + range.select(); + // Cancel this selection change in favor of the next (correct). (#6811) + evt.cancel(); + } + + // Browsers are incapable of moving cursor out of certain block elements (e.g. table, div, pre) + // at the end of document, makes it unable to continue adding content, we have to make this + // easier by opening an new empty paragraph. + var testRange = new CKEDITOR.dom.range( editor.document ); + testRange.moveToElementEditEnd( editor.document.getBody() ); + var testPath = new CKEDITOR.dom.elementPath( testRange.startContainer ); + if ( !testPath.blockLimit.is( 'body') ) + { + var paddingBlock; + if ( enterMode != CKEDITOR.ENTER_BR ) + paddingBlock = body.append( editor.document.createElement( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ); + else + paddingBlock = body; + + if ( !CKEDITOR.env.ie ) + paddingBlock.appendBogus(); + } + } + + CKEDITOR.plugins.add( 'wysiwygarea', + { + requires : [ 'editingblock' ], + + init : function( editor ) + { + var fixForBody = ( editor.config.enterMode != CKEDITOR.ENTER_BR && editor.config.autoParagraph !== false ) + ? editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' : false; + + var frameLabel = editor.lang.editorTitle.replace( '%1', editor.name ), + frameDesc = editor.lang.editorHelp; + + if ( CKEDITOR.env.ie ) + frameLabel += ', ' + frameDesc; + + var win = CKEDITOR.document.getWindow(); + var contentDomReadyHandler; + editor.on( 'editingBlockReady', function() + { + var mainElement, + iframe, + isLoadingData, + isPendingFocus, + frameLoaded, + fireMode, + onResize; + + + // Support for custom document.domain in IE. + var isCustomDomain = CKEDITOR.env.isCustomDomain(); + + // Creates the iframe that holds the editable document. + var createIFrame = function( data ) + { + if ( iframe ) + iframe.remove(); + + var src = + 'document.open();' + + + // The document domain must be set any time we + // call document.open(). + ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + + + 'document.close();'; + + // With IE, the custom domain has to be taken care at first, + // for other browers, the 'src' attribute should be left empty to + // trigger iframe's 'load' event. + src = + CKEDITOR.env.air ? + 'javascript:void(0)' : + CKEDITOR.env.ie ? + 'javascript:void(function(){' + encodeURIComponent( src ) + '}())' + : + ''; + + var labelId = CKEDITOR.tools.getNextId(); + iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' + + ' style="width:100%;height:100%"' + + ' frameBorder="0"' + + ' aria-describedby="' + labelId + '"' + + ' title="' + frameLabel + '"' + + ' src="' + src + '"' + + ' tabIndex="' + ( CKEDITOR.env.webkit? -1 : editor.tabIndex ) + '"' + + ' allowTransparency="true"' + + '></iframe>' ); + + // Running inside of Firefox chrome the load event doesn't bubble like in a normal page (#5689) + if ( document.location.protocol == 'chrome:' ) + CKEDITOR.event.useCapture = true; + + // With FF, it's better to load the data on iframe.load. (#3894,#4058) + iframe.on( 'load', function( ev ) + { + frameLoaded = 1; + ev.removeListener(); + + var doc = iframe.getFrameDocument(); + doc.write( data ); + + CKEDITOR.env.air && contentDomReady( doc.getWindow().$ ); + }); + + // Reset adjustment back to default (#5689) + if ( document.location.protocol == 'chrome:' ) + CKEDITOR.event.useCapture = false; + + mainElement.append( CKEDITOR.dom.element.createFromHtml( + '<span id="' + labelId + '" class="cke_voice_label">' + frameDesc + '</span>')); + + mainElement.append( iframe ); + + // Webkit: iframe size doesn't auto fit well. (#7360) + if ( CKEDITOR.env.webkit ) + { + onResize = function() + { + // Hide the iframe to get real size of the holder. (#8941) + mainElement.setStyle( 'width', '100%' ); + iframe.hide(); + + iframe.setSize( 'width', mainElement.getSize( 'width' ) ); + mainElement.removeStyle( 'width' ); + iframe.show(); + }; + + win.on( 'resize', onResize ); + } + }; + + // The script that launches the bootstrap logic on 'domReady', so the document + // is fully editable even before the editing iframe is fully loaded (#4455). + contentDomReadyHandler = CKEDITOR.tools.addFunction( contentDomReady ); + var activationScript = + '<script id="cke_actscrpt" type="text/javascript" data-cke-temp="1">' + + ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + + 'window.parent.CKEDITOR.tools.callFunction( ' + contentDomReadyHandler + ', window );' + + '</script>'; + + // Editing area bootstrap code. + function contentDomReady( domWindow ) + { + if ( !frameLoaded ) + return; + frameLoaded = 0; + + editor.fire( 'ariaWidget', iframe ); + + var domDocument = domWindow.document, + body = domDocument.body; + + // Remove this script from the DOM. + var script = domDocument.getElementById( "cke_actscrpt" ); + script && script.parentNode.removeChild( script ); + + body.spellcheck = !editor.config.disableNativeSpellChecker; + + var editable = !editor.readOnly; + + if ( CKEDITOR.env.ie ) + { + // Don't display the focus border. + body.hideFocus = true; + + // Disable and re-enable the body to avoid IE from + // taking the editing focus at startup. (#141 / #523) + body.disabled = true; + body.contentEditable = editable; + body.removeAttribute( 'disabled' ); + } + else + { + // Avoid opening design mode in a frame window thread, + // which will cause host page scrolling.(#4397) + setTimeout( function() + { + // Prefer 'contentEditable' instead of 'designMode'. (#3593) + if ( CKEDITOR.env.gecko && CKEDITOR.env.version >= 10900 + || CKEDITOR.env.opera ) + domDocument.$.body.contentEditable = editable; + else if ( CKEDITOR.env.webkit ) + domDocument.$.body.parentNode.contentEditable = editable; + else + domDocument.$.designMode = editable? 'off' : 'on'; + }, 0 ); + } + + editable && CKEDITOR.env.gecko && CKEDITOR.tools.setTimeout( activateEditing, 0, null, editor ); + + domWindow = editor.window = new CKEDITOR.dom.window( domWindow ); + domDocument = editor.document = new CKEDITOR.dom.document( domDocument ); + + editable && domDocument.on( 'dblclick', function( evt ) + { + var element = evt.data.getTarget(), + data = { element : element, dialog : '' }; + editor.fire( 'doubleclick', data ); + data.dialog && editor.openDialog( data.dialog ); + }); + + // Prevent automatic submission in IE #6336 + CKEDITOR.env.ie && domDocument.on( 'click', function( evt ) + { + var element = evt.data.getTarget(); + if ( element.is( 'input' ) ) + { + var type = element.getAttribute( 'type' ); + if ( type == 'submit' || type == 'reset' ) + evt.data.preventDefault(); + } + }); + + // Gecko/Webkit need some help when selecting control type elements. (#3448) + if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera ) ) + { + domDocument.on( 'mousedown', function( ev ) + { + var control = ev.data.getTarget(); + if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) ) + editor.getSelection().selectElement( control ); + } ); + } + + if ( CKEDITOR.env.gecko ) + { + domDocument.on( 'mouseup', function( ev ) + { + if ( ev.data.$.button == 2 ) + { + var target = ev.data.getTarget(); + + // Prevent right click from selecting an empty block even + // when selection is anchored inside it. (#5845) + if ( !target.getOuterHtml().replace( emptyParagraphRegexp, '' ) ) + { + var range = new CKEDITOR.dom.range( domDocument ); + range.moveToElementEditStart( target ); + range.select( true ); + } + } + } ); + } + + // Prevent the browser opening links in read-only blocks. (#6032) + domDocument.on( 'click', function( ev ) + { + ev = ev.data; + if ( ev.getTarget().is( 'a' ) && ev.$.button != 2 ) + ev.preventDefault(); + }); + + // Webkit: avoid from editing form control elements content. + if ( CKEDITOR.env.webkit ) + { + // Mark that cursor will right blinking (#7113). + domDocument.on( 'mousedown', function() { wasFocused = 1; } ); + // Prevent from tick checkbox/radiobox/select + domDocument.on( 'click', function( ev ) + { + if ( ev.data.getTarget().is( 'input', 'select' ) ) + ev.data.preventDefault(); + } ); + + // Prevent from editig textfield/textarea value. + domDocument.on( 'mouseup', function( ev ) + { + if ( ev.data.getTarget().is( 'input', 'textarea' ) ) + ev.data.preventDefault(); + } ); + } + + var focusTarget = CKEDITOR.env.ie ? iframe : domWindow; + focusTarget.on( 'blur', function() + { + editor.focusManager.blur(); + }); + + var wasFocused; + + focusTarget.on( 'focus', function() + { + var doc = editor.document; + + if ( CKEDITOR.env.gecko || CKEDITOR.env.opera ) + doc.getBody().focus(); + // Webkit needs focus for the first time on the HTML element. (#6153) + else if ( CKEDITOR.env.webkit ) + { + if ( !wasFocused ) + { + editor.document.getDocumentElement().focus(); + wasFocused = 1; + } + } + + editor.focusManager.focus(); + }); + + var keystrokeHandler = editor.keystrokeHandler; + // Prevent backspace from navigating off the page. + keystrokeHandler.blockedKeystrokes[ 8 ] = !editable; + keystrokeHandler.attach( domDocument ); + + domDocument.getDocumentElement().addClass( domDocument.$.compatMode ); + // Override keystroke behaviors. + editable && domDocument.on( 'keydown', function( evt ) + { + var keyCode = evt.data.getKeystroke(); + + // Backspace OR Delete. + if ( keyCode in { 8 : 1, 46 : 1 } ) + { + var sel = editor.getSelection(), + selected = sel.getSelectedElement(), + range = sel.getRanges()[ 0 ], + path = new CKEDITOR.dom.elementPath( range.startContainer ), + block, + parent, + next, + rtl = keyCode == 8; + + // Override keystrokes which should have deletion behavior + // on fully selected element . (#4047) (#7645) + if ( selected ) + { + // Make undo snapshot. + editor.fire( 'saveSnapshot' ); + + // Delete any element that 'hasLayout' (e.g. hr,table) in IE8 will + // break up the selection, safely manage it here. (#4795) + range.moveToPosition( selected, CKEDITOR.POSITION_BEFORE_START ); + // Remove the control manually. + selected.remove(); + range.select(); + + editor.fire( 'saveSnapshot' ); + + evt.data.preventDefault(); + } + else + { + // Handle the following special cases: (#6217) + // 1. Del/Backspace key before/after table; + // 2. Backspace Key after start of table. + if ( ( block = path.block ) && + range[ rtl ? 'checkStartOfBlock' : 'checkEndOfBlock' ]() && + ( next = block[ rtl ? 'getPrevious' : 'getNext' ]( notWhitespaceEval ) ) && + next.is( 'table' ) ) + { + editor.fire( 'saveSnapshot' ); + + // Remove the current empty block. + if ( range[ rtl ? 'checkEndOfBlock' : 'checkStartOfBlock' ]() ) + block.remove(); + + // Move cursor to the beginning/end of table cell. + range[ 'moveToElementEdit' + ( rtl ? 'End' : 'Start' ) ]( next ); + range.select(); + + editor.fire( 'saveSnapshot' ); + + evt.data.preventDefault(); + } + else if ( path.blockLimit.is( 'td' ) && + ( parent = path.blockLimit.getAscendant( 'table' ) ) && + range.checkBoundaryOfElement( parent, rtl ? CKEDITOR.START : CKEDITOR.END ) && + ( next = parent[ rtl ? 'getPrevious' : 'getNext' ]( notWhitespaceEval ) ) ) + { + editor.fire( 'saveSnapshot' ); + + // Move cursor to the end of previous block. + range[ 'moveToElementEdit' + ( rtl ? 'End' : 'Start' ) ]( next ); + + // Remove any previous empty block. + if ( range.checkStartOfBlock() && range.checkEndOfBlock() ) + next.remove(); + else + range.select(); + + editor.fire( 'saveSnapshot' ); + + evt.data.preventDefault(); + } + + } + } + + // PageUp OR PageDown + if ( keyCode == 33 || keyCode == 34 ) + { + if ( CKEDITOR.env.gecko ) + { + var body = domDocument.getBody(); + + // Page up/down cause editor selection to leak + // outside of editable thus we try to intercept + // the behavior, while it affects only happen + // when editor contents are not overflowed. (#7955) + if ( domWindow.$.innerHeight > body.$.offsetHeight ) + { + range = new CKEDITOR.dom.range( domDocument ); + range[ keyCode == 33 ? 'moveToElementEditStart' : 'moveToElementEditEnd']( body ); + range.select(); + evt.data.preventDefault(); + } + } + + } + } ); + + // PageUp/PageDown scrolling is broken in document + // with standard doctype, manually fix it. (#4736) + if ( CKEDITOR.env.ie && domDocument.$.compatMode == 'CSS1Compat' ) + { + var pageUpDownKeys = { 33 : 1, 34 : 1 }; + domDocument.on( 'keydown', function( evt ) + { + if ( evt.data.getKeystroke() in pageUpDownKeys ) + { + setTimeout( function () + { + editor.getSelection().scrollIntoView(); + }, 0 ); + } + } ); + } + + // Prevent IE from leaving new paragraph after deleting all contents in body. (#6966) + if ( CKEDITOR.env.ie && editor.config.enterMode != CKEDITOR.ENTER_P ) + { + domDocument.on( 'selectionchange', function() + { + var body = domDocument.getBody(), + sel = editor.getSelection(), + range = sel && sel.getRanges()[ 0 ]; + + if ( range && body.getHtml().match( /^<p> <\/p>$/i ) + && range.startContainer.equals( body ) ) + { + // Avoid the ambiguity from a real user cursor position. + setTimeout( function () + { + range = editor.getSelection().getRanges()[ 0 ]; + if ( !range.startContainer.equals ( 'body' ) ) + { + body.getFirst().remove( 1 ); + range.moveToElementEditEnd( body ); + range.select( 1 ); + } + }, 0 ); + } + }); + } + + // Adds the document body as a context menu target. + if ( editor.contextMenu ) + editor.contextMenu.addTarget( domDocument, editor.config.browserContextMenuOnCtrl !== false ); + + setTimeout( function() + { + editor.fire( 'contentDom' ); + + if ( fireMode ) + { + editor.mode = 'wysiwyg'; + editor.fire( 'mode', { previousMode : editor._.previousMode } ); + fireMode = false; + } + + isLoadingData = false; + + if ( isPendingFocus ) + { + editor.focus(); + isPendingFocus = false; + } + setTimeout( function() + { + editor.fire( 'dataReady' ); + }, 0 ); + + // Enable dragging of position:absolute elements in IE. + try { editor.document.$.execCommand ( '2D-position', false, true); } catch(e) {} + + // IE, Opera and Safari may not support it and throw errors. + try { editor.document.$.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ); } catch(e) {} + if ( editor.config.disableObjectResizing ) + { + try + { + editor.document.$.execCommand( 'enableObjectResizing', false, false ); + } + catch(e) + { + // For browsers in which the above method failed, we can cancel the resizing on the fly (#4208) + editor.document.getBody().on( CKEDITOR.env.ie ? 'resizestart' : 'resize', function( evt ) + { + evt.data.preventDefault(); + }); + } + } + + /* + * IE BUG: IE might have rendered the iframe with invisible contents. + * (#3623). Push some inconsequential CSS style changes to force IE to + * refresh it. + * + * Also, for some unknown reasons, short timeouts (e.g. 100ms) do not + * fix the problem. :( + */ + if ( CKEDITOR.env.ie ) + { + setTimeout( function() + { + if ( editor.document ) + { + var $body = editor.document.$.body; + $body.runtimeStyle.marginBottom = '0px'; + $body.runtimeStyle.marginBottom = ''; + } + }, 1000 ); + } + }, + 0 ); + } + + editor.addMode( 'wysiwyg', + { + load : function( holderElement, data, isSnapshot ) + { + mainElement = holderElement; + + if ( CKEDITOR.env.ie && CKEDITOR.env.quirks ) + holderElement.setStyle( 'position', 'relative' ); + + // The editor data "may be dirty" after this + // point. + editor.mayBeDirty = true; + + fireMode = true; + + if ( isSnapshot ) + this.loadSnapshotData( data ); + else + this.loadData( data ); + }, + + loadData : function( data ) + { + isLoadingData = true; + editor._.dataStore = { id : 1 }; + + var config = editor.config, + fullPage = config.fullPage, + docType = config.docType; + + // Build the additional stuff to be included into <head>. + var headExtra = + '<style type="text/css" data-cke-temp="1">' + + editor._.styles.join( '\n' ) + + '</style>'; + + !fullPage && ( headExtra = + CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) + + headExtra ); + + var baseTag = config.baseHref ? '<base href="' + config.baseHref + '" data-cke-temp="1" />' : ''; + + if ( fullPage ) + { + // Search and sweep out the doctype declaration. + data = data.replace( /<!DOCTYPE[^>]*>/i, function( match ) + { + editor.docType = docType = match; + return ''; + }).replace( /<\?xml\s[^\?]*\?>/i, function( match ) + { + editor.xmlDeclaration = match; + return ''; + }); + } + + // Get the HTML version of the data. + if ( editor.dataProcessor ) + data = editor.dataProcessor.toHtml( data, fixForBody ); + + if ( fullPage ) + { + // Check if the <body> tag is available. + if ( !(/<body[\s|>]/).test( data ) ) + data = '<body>' + data; + + // Check if the <html> tag is available. + if ( !(/<html[\s|>]/).test( data ) ) + data = '<html>' + data + '</html>'; + + // Check if the <head> tag is available. + if ( !(/<head[\s|>]/).test( data ) ) + data = data.replace( /<html[^>]*>/, '$&<head><title></title></head>' ) ; + else if ( !(/<title[\s|>]/).test( data ) ) + data = data.replace( /<head[^>]*>/, '$&<title></title>' ) ; + + // The base must be the first tag in the HEAD, e.g. to get relative + // links on styles. + baseTag && ( data = data.replace( /<head>/, '$&' + baseTag ) ); + + // Inject the extra stuff into <head>. + // Attention: do not change it before testing it well. (V2) + // This is tricky... if the head ends with <meta ... content type>, + // Firefox will break. But, it works if we place our extra stuff as + // the last elements in the HEAD. + data = data.replace( /<\/head\s*>/, headExtra + '$&' ); + + // Add the DOCTYPE back to it. + data = docType + data; + } + else + { + data = + config.docType + + '<html dir="' + config.contentsLangDirection + '"' + + ' lang="' + ( config.contentsLanguage || editor.langCode ) + '">' + + '<head>' + + '<title>' + frameLabel + '</title>' + + baseTag + + headExtra + + '</head>' + + '<body' + ( config.bodyId ? ' id="' + config.bodyId + '"' : '' ) + + ( config.bodyClass ? ' class="' + config.bodyClass + '"' : '' ) + + '>' + + data + + '</html>'; + } + + // Distinguish bogus to normal BR at the end of document for Mozilla. (#5293). + if ( CKEDITOR.env.gecko ) + data = data.replace( /<br \/>(?=\s*<\/(:?html|body)>)/, '$&<br type="_moz" />' ); + + data += activationScript; + + + // The iframe is recreated on each call of setData, so we need to clear DOM objects + this.onDispose(); + createIFrame( data ); + }, + + getData : function() + { + var config = editor.config, + fullPage = config.fullPage, + docType = fullPage && editor.docType, + xmlDeclaration = fullPage && editor.xmlDeclaration, + doc = iframe.getFrameDocument(); + + var data = fullPage + ? doc.getDocumentElement().getOuterHtml() + : doc.getBody().getHtml(); + + // BR at the end of document is bogus node for Mozilla. (#5293). + if ( CKEDITOR.env.gecko ) + data = data.replace( /<br>(?=\s*(:?$|<\/body>))/, '' ); + + if ( editor.dataProcessor ) + data = editor.dataProcessor.toDataFormat( data, fixForBody ); + + // Reset empty if the document contains only one empty paragraph. + if ( config.ignoreEmptyParagraph ) + data = data.replace( emptyParagraphRegexp, function( match, lookback ) { return lookback; } ); + + if ( xmlDeclaration ) + data = xmlDeclaration + '\n' + data; + if ( docType ) + data = docType + '\n' + data; + + return data; + }, + + getSnapshotData : function() + { + return iframe.getFrameDocument().getBody().getHtml(); + }, + + loadSnapshotData : function( data ) + { + iframe.getFrameDocument().getBody().setHtml( data ); + }, + + onDispose : function() + { + if ( !editor.document ) + return; + + editor.document.getDocumentElement().clearCustomData(); + editor.document.getBody().clearCustomData(); + + editor.window.clearCustomData(); + editor.document.clearCustomData(); + + iframe.clearCustomData(); + + /* + * IE BUG: When destroying editor DOM with the selection remains inside + * editing area would break IE7/8's selection system, we have to put the editing + * iframe offline first. (#3812 and #5441) + */ + iframe.remove(); + }, + + unload : function( holderElement ) + { + this.onDispose(); + + if ( onResize ) + win.removeListener( 'resize', onResize ); + + editor.window = editor.document = iframe = mainElement = isPendingFocus = null; + + editor.fire( 'contentDomUnload' ); + }, + + focus : function() + { + var win = editor.window; + + if ( isLoadingData ) + isPendingFocus = true; + else if ( win ) + { + var sel = editor.getSelection(), + ieSel = sel && sel.getNative(); + + // IE considers control-type element as separate + // focus host when selected, avoid destroying the + // selection in such case. (#5812) (#8949) + if ( ieSel && ieSel.type == 'Control' ) + return; + + // AIR needs a while to focus when moving from a link. + CKEDITOR.env.air ? setTimeout( function () { win.focus(); }, 0 ) : win.focus(); + editor.selectionChange(); + } + } + }); + + editor.on( 'insertHtml', onInsert( doInsertHtml ) , null, null, 20 ); + editor.on( 'insertElement', onInsert( doInsertElement ), null, null, 20 ); + editor.on( 'insertText', onInsert( doInsertText ), null, null, 20 ); + // Auto fixing on some document structure weakness to enhance usabilities. (#3190 and #3189) + editor.on( 'selectionChange', function( evt ) + { + if ( editor.readOnly ) + return; + + var sel = editor.getSelection(); + // Do it only when selection is not locked. (#8222) + if ( sel && !sel.isLocked ) + { + var isDirty = editor.checkDirty(); + editor.fire( 'saveSnapshot', { contentOnly : 1 } ); + onSelectionChangeFixBody.call( this, evt ); + editor.fire( 'updateSnapshot' ); + !isDirty && editor.resetDirty(); + } + + }, null, null, 1 ); + }); + + editor.on( 'contentDom', function() + { + var title = editor.document.getElementsByTag( 'title' ).getItem( 0 ); + title.data( 'cke-title', editor.document.$.title ); + + // [IE] JAWS will not recognize the aria label we used on the iframe + // unless the frame window title string is used as the voice label, + // backup the original one and restore it on output. + CKEDITOR.env.ie && ( editor.document.$.title = frameLabel ); + }); + + editor.on( 'readOnly', function() + { + if ( editor.mode == 'wysiwyg' ) + { + // Symply reload the wysiwyg area. It'll take care of read-only. + var wysiwyg = editor.getMode(); + wysiwyg.loadData( wysiwyg.getData() ); + } + }); + + // IE>=8 stricts mode doesn't have 'contentEditable' in effect + // on element unless it has layout. (#5562) + if ( CKEDITOR.document.$.documentMode >= 8 ) + { + editor.addCss( 'html.CSS1Compat [contenteditable=false]{ min-height:0 !important;}' ); + + var selectors = []; + for ( var tag in CKEDITOR.dtd.$removeEmpty ) + selectors.push( 'html.CSS1Compat ' + tag + '[contenteditable=false]' ); + editor.addCss( selectors.join( ',' ) + '{ display:inline-block;}' ); + } + // Set the HTML style to 100% to have the text cursor in affect (#6341) + else if ( CKEDITOR.env.gecko ) + { + editor.addCss( 'html { height: 100% !important; }' ); + editor.addCss( 'img:-moz-broken { -moz-force-broken-image-icon : 1; min-width : 24px; min-height : 24px; }' ); + } + // Remove the margin to avoid mouse confusion. (#8835) + else if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 && editor.config.contentsLangDirection == 'ltr' ) + editor.addCss( 'body{margin-right:0;}' ); + + /* #3658: [IE6] Editor document has horizontal scrollbar on long lines + To prevent this misbehavior, we show the scrollbar always */ + /* #6341: The text cursor must be set on the editor area. */ + /* #6632: Avoid having "text" shape of cursor in IE7 scrollbars.*/ + editor.addCss( 'html { _overflow-y: scroll; cursor: text; *cursor:auto;}' ); + // Use correct cursor for these elements + editor.addCss( 'img, input, textarea { cursor: default;}' ); + + // Disable form elements editing mode provided by some browers. (#5746) + editor.on( 'insertElement', function ( evt ) + { + var element = evt.data; + if ( element.type == CKEDITOR.NODE_ELEMENT + && ( element.is( 'input' ) || element.is( 'textarea' ) ) ) + { + // We should flag that the element was locked by our code so + // it'll be editable by the editor functions (#6046). + var readonly = element.getAttribute( 'contenteditable' ) == 'false'; + if ( !readonly ) + { + element.data( 'cke-editable', element.hasAttribute( 'contenteditable' ) ? 'true' : '1' ); + element.setAttribute( 'contenteditable', false ); + } + } + }); + + } + }); + + // Fixing Firefox 'Back-Forward Cache' break design mode. (#4514) + if ( CKEDITOR.env.gecko ) + { + (function() + { + var body = document.body; + + if ( !body ) + window.addEventListener( 'load', arguments.callee, false ); + else + { + var currentHandler = body.getAttribute( 'onpageshow' ); + body.setAttribute( 'onpageshow', ( currentHandler ? currentHandler + ';' : '') + + 'event.persisted && (function(){' + + 'var allInstances = CKEDITOR.instances, editor, doc;' + + 'for ( var i in allInstances )' + + '{' + + ' editor = allInstances[ i ];' + + ' doc = editor.document;' + + ' if ( doc )' + + ' {' + + ' doc.$.designMode = "off";' + + ' doc.$.designMode = "on";' + + ' }' + + '}' + + '})();' ); + } + } )(); + + } +})(); + +/** + * Disables the ability of resize objects (image and tables) in the editing + * area. + * @type Boolean + * @default false + * @example + * config.disableObjectResizing = true; + */ +CKEDITOR.config.disableObjectResizing = false; + +/** + * Disables the "table tools" offered natively by the browser (currently + * Firefox only) to make quick table editing operations, like adding or + * deleting rows and columns. + * @type Boolean + * @default true + * @example + * config.disableNativeTableHandles = false; + */ +CKEDITOR.config.disableNativeTableHandles = true; + +/** + * Disables the built-in words spell checker if browser provides one.<br /><br /> + * + * <strong>Note:</strong> Although word suggestions provided by browsers (natively) will not appear in CKEditor's default context menu, + * users can always reach the native context menu by holding the <em>Ctrl</em> key when right-clicking if {@link CKEDITOR.config.browserContextMenuOnCtrl} + * is enabled or you're simply not using the context menu plugin. + * + * @type Boolean + * @default true + * @example + * config.disableNativeSpellChecker = false; + */ +CKEDITOR.config.disableNativeSpellChecker = true; + +/** + * Whether the editor must output an empty value ("") if it's contents is made + * by an empty paragraph only. + * @type Boolean + * @default true + * @example + * config.ignoreEmptyParagraph = false; + */ +CKEDITOR.config.ignoreEmptyParagraph = true; + +/** + * Fired when data is loaded and ready for retrieval in an editor instance. + * @name CKEDITOR.editor#dataReady + * @event + */ + +/** + * Whether automatically create wrapping blocks around inline contents inside document body, + * this helps to ensure the integrality of the block enter mode. + * <strong>Note:</strong> Changing the default value might introduce unpredictable usability issues. + * @name CKEDITOR.config.autoParagraph + * @since 3.6 + * @type Boolean + * @default true + * @example + * config.autoParagraph = false; + */ + +/** + * Fired when some elements are added to the document + * @name CKEDITOR.editor#ariaWidget + * @event + * @param {Object} element The element being added + */ diff --git a/htdocs/includes/ckeditor/_source/plugins/xml/plugin.js b/htdocs/includes/ckeditor/_source/plugins/xml/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..5581e8f8d24b5bc4ef8bb9aa5f5f8285a7971874 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/plugins/xml/plugin.js @@ -0,0 +1,170 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.xml} class, which represents a + * loaded XML document. + */ + +(function() +{ + CKEDITOR.plugins.add( 'xml', {}); + + /** + * Represents a loaded XML document. + * @constructor + * @param {object|string} xmlObjectOrData A native XML (DOM document) object or + * a string containing the XML definition to be loaded. + * @example + * var xml = <b>new CKEDITOR.xml( '<books><book title="My Book" /></books>' )</b>; + */ + CKEDITOR.xml = function( xmlObjectOrData ) + { + var baseXml = null; + + if ( typeof xmlObjectOrData == 'object' ) + baseXml = xmlObjectOrData; + else + { + var data = ( xmlObjectOrData || '' ).replace( / /g, '\xA0' ); + if ( window.DOMParser ) + baseXml = (new DOMParser()).parseFromString( data, 'text/xml' ); + else if ( window.ActiveXObject ) + { + try { baseXml = new ActiveXObject( 'MSXML2.DOMDocument' ); } + catch(e) + { + try { baseXml = new ActiveXObject( 'Microsoft.XmlDom' ); } catch(e) {} + } + + if ( baseXml ) + { + baseXml.async = false; + baseXml.resolveExternals = false; + baseXml.validateOnParse = false; + baseXml.loadXML( data ); + } + } + } + + /** + * The native XML (DOM document) used by the class instance. + * @type object + * @example + */ + this.baseXml = baseXml; + }; + + CKEDITOR.xml.prototype = + { + /** + * Get a single node from the XML document, based on a XPath query. + * @param {String} xpath The XPath query to execute. + * @param {Object} [contextNode] The XML DOM node to be used as the context + * for the XPath query. The document root is used by default. + * @returns {Object} A XML node element or null if the query has no results. + * @example + * // Create the XML instance. + * var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' ); + * // Get the first <item> node. + * var itemNode = <b>xml.selectSingleNode( 'list/item' )</b>; + * // Alert "item". + * alert( itemNode.nodeName ); + */ + selectSingleNode : function( xpath, contextNode ) + { + var baseXml = this.baseXml; + + if ( contextNode || ( contextNode = baseXml ) ) + { + if ( CKEDITOR.env.ie || contextNode.selectSingleNode ) // IE + return contextNode.selectSingleNode( xpath ); + else if ( baseXml.evaluate ) // Others + { + var result = baseXml.evaluate( xpath, contextNode, null, 9, null); + return ( result && result.singleNodeValue ) || null; + } + } + + return null; + }, + + /** + * Gets a list node from the XML document, based on a XPath query. + * @param {String} xpath The XPath query to execute. + * @param {Object} [contextNode] The XML DOM node to be used as the context + * for the XPath query. The document root is used by default. + * @returns {ArrayLike} An array containing all matched nodes. The array will + * be empty if the query has no results. + * @example + * // Create the XML instance. + * var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' ); + * // Get the first <item> node. + * var itemNodes = xml.selectSingleNode( 'list/item' ); + * // Alert "item" twice, one for each <item>. + * for ( var i = 0 ; i < itemNodes.length ; i++ ) + * alert( itemNodes[i].nodeName ); + */ + selectNodes : function( xpath, contextNode ) + { + var baseXml = this.baseXml, + nodes = []; + + if ( contextNode || ( contextNode = baseXml ) ) + { + if ( CKEDITOR.env.ie || contextNode.selectNodes ) // IE + return contextNode.selectNodes( xpath ); + else if ( baseXml.evaluate ) // Others + { + var result = baseXml.evaluate( xpath, contextNode, null, 5, null); + + if ( result ) + { + var node; + while ( ( node = result.iterateNext() ) ) + nodes.push( node ); + } + } + } + + return nodes; + }, + + /** + * Gets the string representation of hte inner contents of a XML node, + * based on a XPath query. + * @param {String} xpath The XPath query to execute. + * @param {Object} [contextNode] The XML DOM node to be used as the context + * for the XPath query. The document root is used by default. + * @returns {String} The textual representation of the inner contents of + * the node or null if the query has no results. + * @example + * // Create the XML instance. + * var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' ); + * // Alert "<item id="test1" /><item id="test2" />". + * alert( xml.getInnerXml( 'list' ) ); + */ + getInnerXml : function( xpath, contextNode ) + { + var node = this.selectSingleNode( xpath, contextNode ), + xml = []; + if ( node ) + { + node = node.firstChild; + while ( node ) + { + if ( node.xml ) // IE + xml.push( node.xml ); + else if ( window.XMLSerializer ) // Others + xml.push( ( new XMLSerializer() ).serializeToString( node ) ); + + node = node.nextSibling; + } + } + + return xml.length ? xml.join( '' ) : null; + } + }; +})(); diff --git a/htdocs/includes/ckeditor/_source/skins/kama/dialog.css b/htdocs/includes/ckeditor/_source/skins/kama/dialog.css new file mode 100644 index 0000000000000000000000000000000000000000..a983dc4ef5ad2ba5664a1dda98cad5ec4056dbb9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/dialog.css @@ -0,0 +1,1000 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/* Restore the dialog visibility */ +body .cke_dialog +{ + visibility: visible; +} + +/* Force Gecko to consider table as positioned */ +.cke_skin_kama table.cke_dialog.cke_browser_gecko +{ + display:block; +} + +.cke_skin_kama .cke_dialog_body +{ + z-index: 1; + border: solid 1px #ddd; + padding: 5px; + background-color: #fff; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + + /* 'cke_dialog' element has been fixed positioned in all but IE6, while we + need it to be positioned to hold e.g. close button. */ + _position: static; +} + +.cke_skin_kama .cke_dialog_tl, +.cke_skin_kama .cke_dialog_tr, +.cke_skin_kama .cke_dialog_tc, +.cke_skin_kama .cke_dialog_bl, +.cke_skin_kama .cke_dialog_br, +.cke_skin_kama .cke_dialog_bc, +.cke_skin_kama .cke_dialog_ml, +.cke_skin_kama .cke_dialog_mr +{ + display:none; +} + +.cke_skin_kama .cke_dialog_title +{ + font-weight: bold; + font-size: 14px; + padding: 3px 3px 8px; + cursor: move; + position: relative; + border-bottom: 1px solid #eee; +} + +.cke_skin_kama .cke_browser_iequirks .cke_dialog_title, +.cke_skin_kama .cke_browser_ie6 .cke_dialog_title, +.cke_skin_kama .cke_browser_ie7 .cke_dialog_title +{ + margin-bottom: 22px; +} + +.cke_skin_kama .cke_browser_iequirks.cke_single_page .cke_dialog_title, +.cke_skin_kama .cke_browser_ie6.cke_single_page .cke_dialog_title, +.cke_skin_kama .cke_browser_ie7.cke_single_page .cke_dialog_title +{ + margin-bottom: 10px; +} + +.cke_skin_kama .cke_dialog_contents +{ + background-color: #ebebeb; + border: solid 1px #fff; + border-bottom: none; + overflow: auto; + padding: 17px 10px 5px 10px; + -moz-border-radius-topleft: 5px; + -moz-border-radius-topright: 5px; + -webkit-border-top-left-radius: 5px; + -webkit-border-top-right-radius: 5px; + border-top-left-radius: 5px; + border-top-right-radius: 5px; + margin-top: 22px; +} + +.cke_skin_kama .cke_dialog_footer +{ + text-align: right; + background-color: #ebebeb; + border: solid 1px #fff; + border-bottom: none; + -moz-border-radius-bottomleft: 5px; + -moz-border-radius-bottomright: 5px; + -webkit-border-bottom-left-radius: 5px; + -webkit-border-bottom-right-radius: 5px; + border-bottom-left-radius: 5px; + border-bottom-right-radius: 5px; +} + +.cke_skin_kama .cke_rtl .cke_dialog_footer +{ + text-align: left; +} + +.cke_skin_kama .cke_dialog_footer .cke_resizer +{ + margin-top: 20px; +} +.cke_skin_kama .cke_browser_iequirks .cke_dialog_footer .cke_resizer, +.cke_skin_kama .cke_browser_ie6 .cke_dialog_footer .cke_resizer +{ + margin-top: 27px; +} + +/* tabs */ + +.cke_skin_kama .cke_dialog_tabs +{ + height: 23px; + display: inline-block; + _display: block; + margin-left:10px; + margin-right:10px; + margin-top: 11px; + position: absolute; + z-index: 2; +} + +.cke_skin_kama .cke_browser_iequirks .cke_dialog_tabs, +.cke_skin_kama .cke_browser_ie6 .cke_dialog_tabs, +.cke_skin_kama .cke_browser_ie7 .cke_dialog_tabs +{ + top: 33px; +} + +.cke_skin_kama .cke_rtl .cke_dialog_tabs +{ + right: 10px; +} + +.cke_skin_kama a.cke_dialog_tab, +.cke_skin_kama a:link.cke_dialog_tab, +.cke_skin_kama a:active.cke_dialog_tab, +.cke_skin_kama a:hover.cke_dialog_tab, +.cke_skin_kama a:visited.cke_dialog_tab +{ + background-image: url(images/sprites.png); + background-repeat: repeat-x; + background-position: 0 -1323px; + + background-color: #ebebeb; + height: 14px; + padding: 4px 8px; + display: inline-block; + cursor: pointer; + +} + +/* Gecko 1.8 layout workaround. */ +.cke_skin_kama .cke_browser_gecko18 a.cke_dialog_tab, +.cke_skin_kama .cke_browser_gecko18 a:link.cke_dialog_tab, +.cke_skin_kama .cke_browser_gecko18 a:active.cke_dialog_tab, +.cke_skin_kama .cke_browser_gecko18 a:hover.cke_dialog_tab, +.cke_skin_kama .cke_browser_gecko18 a:visited.cke_dialog_tab +{ + display: inline; + position: relative; + top: 6px; +} + +.cke_skin_kama a:hover.cke_dialog_tab +{ + background-color: #f1f1e3; +} + +.cke_skin_kama .cke_hc a:hover.cke_dialog_tab +{ + padding: 2px 6px !important; + border-width: 3px; +} + +.cke_skin_kama a.cke_dialog_tab_selected, +.cke_skin_kama a:link.cke_dialog_tab_selected, +.cke_skin_kama a:active.cke_dialog_tab_selected, +.cke_skin_kama a:hover.cke_dialog_tab_selected, +.cke_skin_kama a:visited.cke_dialog_tab_selected +{ + background-position: 0 -1279px; + cursor: default; +} + +.cke_skin_kama .cke_hc a.cke_dialog_tab_selected, +.cke_skin_kama .cke_hc a:link.cke_dialog_tab_selected, +.cke_skin_kama .cke_hc a:active.cke_dialog_tab_selected, +.cke_skin_kama .cke_hc a:hover.cke_dialog_tab_selected, +.cke_skin_kama .cke_hc a:visited.cke_dialog_tab_selected +{ + padding: 2px 6px !important; + border-width: 3px; +} + +/* single_page */ + +.cke_skin_kama .cke_single_page .cke_dialog_tabs +{ + display: none; +} + +.cke_skin_kama .cke_single_page .cke_dialog_contents +{ + padding-top: 5px; + margin-top: 10px; +} + +.cke_skin_kama .cke_dialog_ui_vbox table, +.cke_skin_kama .cke_dialog_ui_hbox table +{ + margin: auto; +} + +.cke_skin_kama .cke_dialog_ui_vbox_child +{ + padding: 5px 0px; +} + +.cke_skin_kama input.cke_dialog_ui_input_text, +.cke_skin_kama input.cke_dialog_ui_input_password +{ + background-color: white; + border: none; + padding: 0px; + width: 100%; + height: 14px; +} + +.cke_skin_kama div.cke_dialog_ui_input_text, +.cke_skin_kama div.cke_dialog_ui_input_password +{ + background-color: white; + border: 1px solid #a0a0a0; + padding: 1px 0px; + /* IE6/Quirks - make sure the content does not overflow (#7321) */ + _width: 99.9%; +} + +/* The absolute position is required for IE7 on text inputs not to stretch dialog horizontally. (#8971)*/ +.cke_skin_kama .cke_browser_ie7 input.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_ie7 input.cke_dialog_ui_input_password +{ + position: absolute; +} +.cke_skin_kama .cke_browser_ie7 div.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_ie7 div.cke_dialog_ui_input_password +{ + height:14px; + position: relative; +} + +/* Opera/IE doesn't leave enough padding in text input for cursor to blink in RTL. (#6087) */ +.cke_skin_kama .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_password, +.cke_skin_kama .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_password +{ + padding-right: 2px; +} + +/* Compensate the padding added above on container. */ +.cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_password, +.cke_skin_kama .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_password +{ + padding-left: 2px; +} + +.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_vbox_child, +.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_child, +.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_first, +.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_last +{ + padding-right: 2px !important; +} + +.cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text { + padding-right: 1px; +} + +.cke_skin_kama .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_password +{ + border-width: 0px; +} + +.cke_skin_kama .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_text, +.cke_skin_kama .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_password +{ + border-width: 1px; +} + +.cke_skin_kama textarea.cke_dialog_ui_input_textarea +{ + background-color: white; + border: none; + padding: 0px; + width: 100%; + /* + * IE6 BUG: Scrollbars in textareas can overflow even if the outer DIV is set to overflow:hidden. + * So leave 1% width for the scrollbar. In most situations the 1% isn't noticeable by users. + */ + _width: 99%; + overflow: auto; + resize: none; +} + +.cke_skin_kama div.cke_dialog_ui_input_textarea +{ + background-color: white; + border: 1px solid #a0a0a0; + padding: 1px 0px; +} + +.cke_skin_kama div.cke_disabled .cke_dialog_ui_labeled_content * +{ + background-color : #a0a0a0; + cursor : default; +} + +/* RTL + IE6: Input overflows dialog element. (#7321) */ +.cke_skin_kama .cke_rtl .cke_dialog_ui_labeled_content +{ + _width: 95%; +} + +.cke_skin_kama .cke_dialog_ui_hbox +{ + width: 100%; +} + +.cke_skin_kama .cke_dialog_ui_hbox_first, +.cke_skin_kama .cke_dialog_ui_hbox_child, +.cke_skin_kama .cke_dialog_ui_hbox_last +{ + vertical-align: top; +} + +.cke_skin_kama .cke_ltr .cke_dialog_ui_hbox_first, +.cke_skin_kama .cke_ltr .cke_dialog_ui_hbox_child +{ + padding-right: 10px; +} + +.cke_skin_kama .cke_rtl .cke_dialog_ui_hbox_first, +.cke_skin_kama .cke_rtl .cke_dialog_ui_hbox_child +{ + padding-left: 10px; +} + +/* button */ + +.cke_skin_kama a.cke_dialog_ui_button +{ + border-collapse: separate; + cursor: default; + + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + background: transparent url(images/sprites.png) repeat-x scroll 0 -1069px; + _background: none; + padding: 5px 0; + text-align: center; +} + +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button +{ + padding: 0; +} + +/* IE6 buttons. */ +.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button span +{ + width: 70px; +} + +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span +{ + width: 100px; +} + +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button span +{ + padding: 5px 15px; + text-align: center; + color: #3b3b1f; + background: #53D9F0 none; + display: inline-block; + cursor: default; +} +/* END IE6 buttons. */ + +.cke_skin_kama .cke_browser_webkit a.cke_dialog_ui_button span.cke_dialog_ui_button +{ + margin: 0; +} +.cke_skin_kama .cke_browser_webkit a.cke_dialog_ui_button +{ + display:inline-block; + padding-top: 3px; + padding-bottom: 2px; + margin: 2px 0; +} + +.cke_skin_kama a.cke_dialog_ui_button_ok span, +.cke_skin_kama a.cke_dialog_ui_button_cancel span +{ + width:60px; + padding-right: 20px; + padding-left: 20px; +} + +.cke_skin_kama a.cke_dialog_ui_button_ok +{ + background-position: 0 -1143px; +} + +.cke_skin_kama a.cke_dialog_ui_button_ok span +{ + background: transparent url(images/sprites.png) no-repeat scroll right -1219px; +} + +.cke_skin_kama .cke_rtl a.cke_dialog_ui_button_ok span +{ + background-position: left -1219px; +} + +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_ok span, +.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_ok span +{ + background-color: #B8E834; + margin-right: 0; +} + +.cke_skin_kama a.cke_dialog_ui_button_cancel +{ + background-position: 0 -1104px; +} + +.cke_skin_kama a.cke_dialog_ui_button_cancel span +{ + background: transparent url(images/sprites.png) no-repeat scroll right -1245px; +} + +.cke_skin_kama .cke_rtl a.cke_dialog_ui_button_cancel span +{ + background-position: left -1245px; +} + +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_cancel span, +.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_cancel span +{ + background-color: #F65D20; +} + +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_cancel span, +.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_cancel span, +.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_ok span, +.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_ok span +{ + background-image: none; +} + +.cke_skin_kama span.cke_dialog_ui_button +{ + padding: 2px 10px; + text-align: center; + color: #222; + display: inline-block; + cursor: default; + min-width: 60px; + +margin: 2px 0; /* IE7 */ +} + +/* Gecko 1.8 does not support display: inline-block */ +.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button +{ + display: block; +} + +.cke_skin_kama a.cke_dialog_ui_button span.cke_disabled +{ + border: #898980 1px solid; + color: #5e5e55; + background-color: #c5c5b3; +} + +.cke_skin_kama a:hover.cke_dialog_ui_button, +.cke_skin_kama a:focus.cke_dialog_ui_button, +.cke_skin_kama a:active.cke_dialog_ui_button +{ + background-position: 0 -1180px; +} + +.cke_skin_kama .cke_hc a:hover.cke_dialog_ui_button, +.cke_skin_kama .cke_hc a:focus.cke_dialog_ui_button, +.cke_skin_kama .cke_hc a:active.cke_dialog_ui_button +{ + border-width: 2px; +} + +/* Skip hover effect on IE6 */ +.cke_skin_kama .cke_browser_iequirks a:hover.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_iequirks a:focus.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_iequirks a:active.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_ie6 a:hover.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_ie6 a:focus.cke_dialog_ui_button span, +.cke_skin_kama .cke_browser_ie6 a:active.cke_dialog_ui_button span +{ + background-image: none; + background: #F7A922; +} + +.cke_skin_kama .cke_dialog_footer_buttons +{ + display: inline-table; + margin-right: 12px; + margin-left: 12px; + width: auto; + position: relative; +} + +/* IE7 needs position static #6806 */ +.cke_skin_kama .cke_browser_ie7 .cke_dialog_footer_buttons +{ + position: static; +} + +/* Gecko 1.8 does not support for display: inline-table */ +.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons +{ + display: inline; +} + +.cke_skin_kama .cke_dialog_footer_buttons span.cke_dialog_ui_button +{ + margin: 7px 0; + text-align: center; +} + +/* Firefox2 buttons */ +.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons a.cke_dialog_ui_button +{ + display: block; + padding: 0; +} + +.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button +{ + padding-bottom: 5px; + padding-top: 6px; + margin-bottom: 0; +} + +.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons .cke_dialog_ui_button_ok .cke_dialog_ui_button +{ + background-position: right -1214px; +} + +.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons .cke_dialog_ui_button_cancel .cke_dialog_ui_button +{ + background-position: right -1242px; +} +/* END Firefox2 buttons */ + +.cke_skin_kama .cke_browser_ie9.cke_rtl .cke_dialog_footer_buttons td +{ + padding-left: 2px; +} + +.cke_skin_kama strong +{ + font-weight: bold; +} + +/* close_button */ + +.cke_skin_kama .cke_dialog .cke_dialog_body .cke_dialog_close_button +{ + background-image: url(images/sprites.png); + background-repeat: no-repeat; + background-position: 0 -1022px; + position: absolute; + cursor: pointer; + text-align: center; + height: 20px; + width: 20px; + top: 5px; + /* IE 6 */ + _background-image: url(images/sprites_ie6.png); +} + +.cke_skin_kama .cke_dialog_close_button span +{ + display: none; +} + +.cke_skin_kama .cke_dialog_close_button:hover +{ + background-position: 0 -1045px; +} + +.cke_skin_kama .cke_ltr .cke_dialog_close_button +{ + right: 10px; +} + +.cke_skin_kama .cke_browser_ie8.cke_rtl .cke_dialog_close_button +{ + left: 8px; +} + +.cke_skin_kama .cke_rtl .cke_dialog_close_button +{ + left: 10px; +} + +.cke_skin_kama .cke_browser_ie7.cke_rtl .cke_dialog_close_button +{ + left: 16px; + top: 0; +} + +/*.cke_skin_kama .cke_browser_ie6.cke_rtl .cke_dialog_close_button +{ + left: 16px; +}*/ + +/* IE7 + IE quirks */ +.cke_skin_kama .cke_browser_ie7.cke_rtl .cke_dialog_close_button +{ + position: absolute; + left: 10px; + top: 5px; +} + +/* IE7 + IE quirks */ +.cke_skin_kama .cke_browser_ie7.cke_single_page .cke_dialog_footer +{ + margin-top: 22px; +} + +.cke_skin_kama .cke_browser_ie6 .cke_dialog_close_button, +.cke_skin_kama .cke_browser_iequirks .cke_dialog_close_button +{ + top: 7px; +} + +/* IE7 + IE quirks */ +.cke_skin_kama .cke_browser_ie7.cke_ltr .cke_dialog_close_button +{ + margin-top: 0; +} + +.cke_skin_kama .cke_dialog_ui_input_select +{ + border: 1px solid #a0a0a0; + background-color: white; +} + +.cke_skin_kama .cke_dialog_ui_input_file +{ + width: 100%; + height: 25px; +} + +/* + * Some utility CSS classes for dialog authors. + */ +.cke_skin_kama .cke_dialog .cke_dark_background +{ + background-color: #eaead1; +} + +.cke_skin_kama .cke_dialog .cke_hand +{ + cursor: pointer; +} + +.cke_skin_kama .cke_dialog .cke_centered +{ + text-align: center; +} + +.cke_skin_kama .cke_dialog a.cke_btn_reset +{ + float: right; + background-position: 0 -32px; + background-image: url(images/mini.gif); + width: 16px; + height: 16px; + background-repeat: no-repeat; + border: 1px none; + font-size: 1px; +} + +.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_reset +{ + float: left; +} + +.cke_skin_kama .cke_dialog a.cke_btn_locked, +.cke_skin_kama .cke_dialog a.cke_btn_unlocked +{ + float: left; + background-position: 0 0; + background-image: url(images/mini.gif); + width: 16px; + height: 16px; + background-repeat: no-repeat; + border: none 1px; + font-size: 1px; +} +.cke_skin_kama .cke_dialog a.cke_btn_locked .cke_icon +{ + display:none; +} + +.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_locked, +.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_unlocked +{ + float: right; +} + +.cke_skin_kama .cke_dialog a.cke_btn_unlocked +{ + background-position: 0 -16px; + background-image: url(images/mini.gif); +} + +.cke_skin_kama .cke_dialog .cke_btn_over +{ + border: outset 1px; + cursor: pointer; +} + +.cke_skin_kama .cke_dialog .ImagePreviewBox +{ + border : 2px ridge black; + overflow : scroll; + height : 200px; + width : 300px; + padding : 2px; + background-color : white; +} + +.cke_skin_kama .cke_dialog .ImagePreviewBox table td { + white-space: normal; +} + +/* Fix iframedialog's height doesn't stretch to 100% #4863.*/ +.cke_skin_kama .cke_browser_iequirks .cke_dialog_page_contents +{ + _position: absolute; +} + +.cke_skin_kama .cke_dialog .ImagePreviewLoader +{ + position: absolute; + white-space : normal; + overflow : hidden; + height : 160px; + width : 230px; + margin : 2px; + padding : 2px; + opacity : 0.9; + filter : alpha(opacity=90); + + background-color : #e4e4e4; +} + +.cke_skin_kama .cke_dialog .FlashPreviewBox +{ + white-space : normal; + border : 2px ridge black; + overflow : auto; + height : 160px; + width : 390px; + padding : 2px; + background-color : white; +} + +.cke_skin_kama .cke_dialog .cke_pastetext +{ + width: 346px; + height: 170px; +} + +.cke_skin_kama .cke_dialog .cke_pastetext textarea +{ + width: 340px; + height: 170px; + resize: none; +} + +.cke_skin_kama .cke_dialog iframe.cke_pasteframe +{ + width: 346px; + height: 130px; + background-color: white; + border: 1px solid black; +} + +.cke_skin_kama .cke_dialog .cke_dark_background +{ + text-align : center; + background-color: #eaead1; + font-size : 14px; +} + +.cke_skin_kama .cke_dialog .cke_light_background +{ + text-align : center; + background-color: #ffffbe; +} + +.cke_skin_kama .cke_dialog .cke_hand +{ + cursor: pointer; +} + +.cke_skin_kama .cke_disabled +{ + color: #a0a0a0; +} + +/* High Contrast Mode */ + +.cke_skin_kama .cke_hc .cke_dialog_title, +.cke_skin_kama .cke_hc .cke_dialog_tabs, +.cke_skin_kama .cke_hc .cke_dialog_contents, +.cke_skin_kama .cke_hc .cke_dialog_footer +{ + border-left: 1px solid; + border-right: 1px solid; +} + +.cke_skin_kama .cke_hc .cke_dialog_title +{ + border-top: 1px solid; +} + +.cke_skin_kama .cke_hc .cke_dialog_footer +{ + border-bottom: 1px solid; +} + +.cke_skin_kama .cke_hc .cke_dialog_close_button span +{ + display: inline; + cursor: pointer; + font-weight: bold; + position: relative; + top: 3px; +} + +.cke_skin_kama .cke_dialog_body .cke_label +{ + display: none; +} + +.cke_skin_kama .cke_dialog_body label.cke_required +{ + font-weight: bold; +} + +.cke_skin_kama .cke_hc .cke_dialog_body .cke_label +{ + display: inline; + cursor: inherit; +} + +.cke_skin_kama .cke_hc a.cke_btn_locked, +.cke_skin_kama .cke_hc a.cke_btn_unlocked, +.cke_skin_kama .cke_hc a.cke_btn_reset +{ + border-style: solid; + float: left; + width: auto; + height: auto; + padding: 0 2px; +} + +.cke_skin_kama .cke_rtl.cke_hc a.cke_btn_locked, +.cke_skin_kama .cke_rtl.cke_hc a.cke_btn_unlocked, +.cke_skin_kama .cke_rtl.cke_hc a.cke_btn_reset +{ + float: right; +} +.cke_skin_kama .cke_hc a.cke_btn_locked .cke_icon +{ + display:inline; +} + +.cke_skin_kama a.cke_smile img +{ + /* IE6 does not support transparent borders */ + border: 2px solid #eaead1; +} + +.cke_skin_kama a.cke_smile:focus img, +.cke_skin_kama a.cke_smile:active img, +.cke_skin_kama a.cke_smile:hover img +{ + border-color: #C7C78F; +} + +.cke_skin_kama .cke_hc .cke_dialog_tabs a, +.cke_skin_kama .cke_hc .cke_dialog_footer a +{ + opacity: 1.0; + filter: alpha(opacity=100); + border: 1px solid white; +} + +.cke_skin_kama .cke_hc .ImagePreviewBox +{ + width: 260px; +} + +/** + * Styles specific to "cellProperties" dialog. + */ + +.cke_skin_kama .cke_dialog_contents a.colorChooser +{ + display:block; + margin-top:6px; + margin-left: 10px; + width: 80px; +} + +.cke_skin_kama .cke_rtl .cke_dialog_contents a.colorChooser +{ + margin-right: 10px; +} + +/* Compensate focus outline for some input elements. (#6200) */ +.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus, +.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_radio_input:focus, +.cke_skin_kama .cke_browser_opera .cke_dialog_ui_checkbox_input:focus, +.cke_skin_kama .cke_browser_opera .cke_dialog_ui_radio_input:focus, +.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_input_select:focus, +.cke_skin_kama .cke_browser_gecko .cke_btn_over, +.cke_skin_kama .cke_browser_opera .cke_btn_over, +.cke_skin_kama .cke_browser_ie .cke_btn_over +{ + outline: 1px dotted #696969; +} + +/* IE<8 instead doesn't support CSS outline property, emulated with dotted border. */ + +/* Predefined border to avoid visual size change impact. */ +.cke_skin_kama .cke_browser_ie .cke_dialog_ui_checkbox_input, +.cke_skin_kama .cke_browser_ie .cke_dialog_ui_ratio_input, +.cke_skin_kama .cke_browser_ie .cke_btn_reset, +.cke_skin_kama .cke_browser_ie .cke_btn_locked, +.cke_skin_kama .cke_browser_ie .cke_btn_unlocked +{ + *border: 1px solid transparent !important; + /* Emulating border-color: transparent in IE6.*/ + -border: 1px solid red !important; + -filter: chroma(color=red); +} + +.cke_skin_kama .cke_browser_ie .cke_dialog_ui_focused, +.cke_skin_kama .cke_browser_ie .cke_btn_over +{ + *border: 1px dotted #696969 !important; +} + +.cke_skin_kama .cke_iframe_shim +{ + display:block; + position:absolute; + top:0; + left:0; + z-index:-1; + filter:alpha(opacity=0); + width:100%; + height:100%; +} + +.cke_dialog label +{ + display: inline; + margin-bottom: auto; + cursor: default; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/editor.css b/htdocs/includes/ckeditor/_source/skins/kama/editor.css new file mode 100644 index 0000000000000000000000000000000000000000..a5eb03237a20cf06151fb86c55212b8b362ea82e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/editor.css @@ -0,0 +1,25 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@import url("reset.css"); +@import url("mainui.css"); +@import url("panel.css"); +@import url("toolbar.css"); +@import url("menu.css"); +@import url("richcombo.css"); +@import url("elementspath.css"); +@import url("icons.css"); +@import url("presets.css"); + +/* Restore the container visibility */ +html .cke_skin_kama +{ + visibility: inherit; +} + +html.cke_skin_kama_container +{ + visibility: visible; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/elementspath.css b/htdocs/includes/ckeditor/_source/skins/kama/elementspath.css new file mode 100644 index 0000000000000000000000000000000000000000..f8f77112260599fef84f723b7f585059a69c50c3 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/elementspath.css @@ -0,0 +1,73 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@media print +{ + .cke_path + { + display: none; + } +} + +.cke_skin_kama .cke_path +{ + display: inline-block; + float: left; + margin-top: 5px; +} + +.cke_skin_kama .cke_rtl .cke_path +{ + float: right; +} + +.cke_shared .cke_skin_kama .cke_path +{ + _width: 100%; + margin: 0 0 5px; +} + +.cke_skin_kama .cke_path a, +.cke_skin_kama .cke_path .cke_empty +{ + display: inline-block; + float: left; + padding: 1px 4px 0; + color: #60676a; + cursor: default; +} + +.cke_skin_kama .cke_path .cke_empty +{ + visibility: hidden; +} + +.cke_skin_kama .cke_rtl .cke_path a, +.cke_skin_kama .cke_rtl .cke_path cke_empty +{ + float: right; +} + +.cke_skin_kama .cke_path a:hover, +.cke_skin_kama .cke_path a:focus, +.cke_skin_kama .cke_path a:active /* IE */ +{ + background-color: #dff1ff; + padding: 1px 4px 0; + outline: none; + color : #000; +} + +/* IE double float-right workaround */ +.cke_skin_kama .cke_browser_ie .cke_rtl .cke_path a, +.cke_skin_kama .cke_browser_ie .cke_rtl .cke_path .cke_empty +{ + float: none; +} + +.cke_skin_kama .cke_path .cke_label +{ + display: none; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/icons.css b/htdocs/includes/ckeditor/_source/skins/kama/icons.css new file mode 100644 index 0000000000000000000000000000000000000000..d94b5aec5ed78944056a7f9f4031c6e2eea23d3d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/icons.css @@ -0,0 +1,366 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_kama .cke_button_source .cke_icon +{ + background-position: 0 0; +} + +.cke_skin_kama .cke_button_docProps .cke_icon +{ + background-position: 0 -16px; +} + +.cke_skin_kama .cke_button_newpage .cke_icon +{ + background-position: 0 -48px; +} + +.cke_skin_kama .cke_button_preview .cke_icon +{ + background-position: 0 -64px; +} + +.cke_skin_kama .cke_button_cut .cke_icon +{ + background-position: 0 -96px; +} + +.cke_skin_kama .cke_button_copy .cke_icon +{ + background-position: 0 -112px; +} + +.cke_skin_kama .cke_button_paste .cke_icon +{ + background-position: 0 -128px; +} + +.cke_skin_kama .cke_button_pastetext .cke_icon +{ + background-position: 0 -144px; +} + +.cke_skin_kama .cke_button_find .cke_icon +{ + background-position: 0 -240px; +} + +.cke_skin_kama .cke_button_replace .cke_icon +{ + background-position: 0 -256px; +} + +.cke_skin_kama .cke_button_selectAll .cke_icon +{ + background-position: 0 -272px; +} + +.cke_skin_kama .cke_button_removeFormat .cke_icon +{ + background-position: 0 -288px; +} + +.cke_skin_kama .cke_button_bold .cke_icon +{ + background-position: 0 -304px; +} + +.cke_skin_kama .cke_button_italic .cke_icon +{ + background-position: 0 -320px; +} + +.cke_skin_kama .cke_button_underline .cke_icon +{ + background-position: 0 -336px; +} + +.cke_skin_kama .cke_button_strike .cke_icon +{ + background-position: 0 -352px; +} + +.cke_skin_kama .cke_button_subscript .cke_icon +{ + background-position: 0 -368px; +} + +.cke_skin_kama .cke_button_superscript .cke_icon +{ + background-position: 0 -384px; +} + +.cke_skin_kama .cke_button_table .cke_icon +{ + background-position: 0 -608px; +} + +.cke_skin_kama .cke_button_horizontalrule .cke_icon +{ + background-position: 0 -624px; +} + +.cke_skin_kama .cke_button_smiley .cke_icon +{ + background-position: 0 -640px; +} + +.cke_skin_kama .cke_button_link .cke_icon +{ + background-position: 0 -528px; +} + +.cke_skin_kama .cke_button_unlink .cke_icon +{ + background-position: 0 -544px; +} + +.cke_skin_kama .cke_button_anchor .cke_icon +{ + background-position: 0 -560px; +} + +.cke_skin_kama .cke_button_image .cke_icon +{ + background-position: 0 -576px; +} + +.cke_skin_kama .cke_button_flash .cke_icon +{ + background-position: 0 -592px; +} + +.cke_skin_kama .cke_button_specialchar .cke_icon +{ + background-position: 0 -656px; +} + +.cke_skin_kama .cke_button_pagebreak .cke_icon +{ + background-position: 0 -672px; +} + +.cke_skin_kama .cke_button_print .cke_icon +{ + background-position: 0 -176px; +} + +.cke_skin_kama .cke_button_checkspell .cke_icon, +.cke_skin_kama .cke_button_scayt .cke_icon +{ + background-position: 0 -192px; +} + +.cke_skin_kama .cke_button_pagebreak .cke_icon +{ + background-position: 0 -672px; +} + +.cke_skin_kama .cke_button_textcolor .cke_icon +{ + background-position: 0 -704px; +} + +.cke_skin_kama .cke_button_bgcolor .cke_icon +{ + background-position: 0 -720px; +} + +.cke_skin_kama .cke_button_form .cke_icon +{ + background-position: 0 -752px; +} + +.cke_skin_kama .cke_button_checkbox .cke_icon +{ + background-position: 0 -768px; +} + +.cke_skin_kama .cke_button_radio .cke_icon +{ + background-position: 0 -784px; +} + +.cke_skin_kama .cke_button_textfield .cke_icon +{ + background-position: 0 -800px; +} + +.cke_skin_kama .cke_button_textarea .cke_icon +{ + background-position: 0 -816px; +} +.cke_skin_kama .cke_button_showblocks .cke_icon +{ + background-position: 0 -1136px; +} + +.cke_skin_kama .cke_button_select .cke_icon +{ + background-position: 0 -832px; +} + +.cke_skin_kama .cke_button_button .cke_icon +{ + background-position: 0 -848px; +} + +.cke_skin_kama .cke_button_imagebutton .cke_icon +{ + background-position: 0 -864px; +} + +.cke_skin_kama .cke_button_hiddenfield .cke_icon +{ + background-position: 0 -880px; +} + +.cke_skin_kama .cke_button_undo .cke_icon +{ + background-position: 0 -208px; +} + +.cke_skin_kama .cke_rtl .cke_button_undo .cke_icon +{ + background-position: 0 -224px; +} + +.cke_skin_kama .cke_button_redo .cke_icon +{ + background-position: 0 -224px; +} + +.cke_skin_kama .cke_rtl .cke_button_redo .cke_icon +{ + background-position: 0 -208px; +} + +.cke_skin_kama .cke_button_templates .cke_icon +{ + background-position: 0 -80px; +} + +.cke_skin_kama .cke_button_numberedlist .cke_icon +{ + background-position: 0 -400px; +} + +.cke_skin_kama .cke_button_bulletedlist .cke_icon +{ + background-position: 0 -416px; +} + +.cke_skin_kama .cke_mixed_dir_content .cke_button_numberedlist .cke_icon +{ + background-position: 0 -1217px; +} + +.cke_skin_kama .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon +{ + background-position: 0 -1233px; +} + +.cke_skin_kama .cke_button_outdent .cke_icon +{ + background-position: 0 -432px; +} + +.cke_skin_kama .cke_button_indent .cke_icon +{ + background-position: 0 -448px; +} + +.cke_skin_kama .cke_mixed_dir_content .cke_button_indent .cke_icon +{ + background-position: 0 -1265px; +} + +.cke_skin_kama .cke_mixed_dir_content .cke_button_outdent .cke_icon +{ + background-position: 0 -1249px; +} + +.cke_skin_kama .cke_button_justifyleft .cke_icon +{ + background-position: 0 -464px; +} + +.cke_skin_kama .cke_button_justifycenter .cke_icon +{ + background-position: 0 -480px; +} + +.cke_skin_kama .cke_button_justifyright .cke_icon +{ + background-position: 0 -496px; +} + +.cke_skin_kama .cke_button_justifyblock .cke_icon +{ + background-position: 0 -512px; +} + +.cke_skin_kama .cke_button_blockquote .cke_icon +{ + background-position: 0 -1152px; +} + +.cke_skin_kama .cke_button_creatediv .cke_icon +{ + background-position: 0 -1168px; +} +.cke_skin_kama .cke_button_editdiv .cke_icon +{ + background-position: 0 -1184px; +} +.cke_skin_kama .cke_button_removediv .cke_icon +{ + background-position: 0 -1200px; +} + +.cke_skin_kama .cke_button_flash .cke_icon +{ + background-position: 0 -592px; +} + +.cke_skin_kama .cke_button_pastefromword .cke_icon +{ + background-position: 0 -160px; +} + +.cke_skin_kama .cke_button_save .cke_icon +{ + background-position: 0 -32px; +} + +.cke_skin_kama .cke_button_about .cke_icon +{ + background-position: 0 -736px; +} + +.cke_skin_kama .cke_button_maximize .cke_icon +{ + background-position: 0 -1040px; +} + +.cke_skin_kama .cke_button_editdiv .cke_icon +{ + background-position: 0 -1184px; +} + +.cke_skin_kama .cke_button_bidirtl .cke_icon +{ + background-position: 0 -1072px; +} + +.cke_skin_kama .cke_button_bidiltr .cke_icon +{ + background-position: 0 -1056px; +} +.cke_skin_kama .cke_button_iframe .cke_icon +{ + background-position: 0 -1279px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/icons.png b/htdocs/includes/ckeditor/_source/skins/kama/icons.png new file mode 100644 index 0000000000000000000000000000000000000000..7c3bf195dd35a2dd3773a5cae7e4712a1133a5d5 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/icons.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/icons_rtl.png b/htdocs/includes/ckeditor/_source/skins/kama/icons_rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..83eee28ac79d5e00e8ec9136ba491c8c0a2b8352 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/icons_rtl.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides.gif b/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides.gif new file mode 100644 index 0000000000000000000000000000000000000000..8f91b4753ad672ecbbda36ddd0522f6f93dadd1d Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides.png b/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..1042a61cf9f3c3839d1c4fafa0ad9d83396253ef Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png b/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..d7f7b49fcc3ed5a8fa763d0ad0372f86c8582b20 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/mini.gif b/htdocs/includes/ckeditor/_source/skins/kama/images/mini.gif new file mode 100644 index 0000000000000000000000000000000000000000..54d910741607aeef28fb9b5882f77f14a3d975ab Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/mini.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/noimage.png b/htdocs/includes/ckeditor/_source/skins/kama/images/noimage.png new file mode 100644 index 0000000000000000000000000000000000000000..159811305af7fc78662a53949f9c62bd702785af Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/noimage.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/sprites.png b/htdocs/includes/ckeditor/_source/skins/kama/images/sprites.png new file mode 100644 index 0000000000000000000000000000000000000000..0cb4e1c6c37e5ffa475f73bb252adbec70135ac4 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/sprites.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/sprites_ie6.png b/htdocs/includes/ckeditor/_source/skins/kama/images/sprites_ie6.png new file mode 100644 index 0000000000000000000000000000000000000000..5bb305c8d360e647fb2cd15714a408e8eb6a3b21 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/sprites_ie6.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/images/toolbar_start.gif b/htdocs/includes/ckeditor/_source/skins/kama/images/toolbar_start.gif new file mode 100644 index 0000000000000000000000000000000000000000..1774246c2ef37fa17cdcd971b3db38c713989818 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/kama/images/toolbar_start.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/mainui.css b/htdocs/includes/ckeditor/_source/skins/kama/mainui.css new file mode 100644 index 0000000000000000000000000000000000000000..141ea7b49e65dcc827a3ce7798019b72337128b9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/mainui.css @@ -0,0 +1,206 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_kama +{ + display: block; +} + +/* Main editor only settings. */ +span.cke_skin_kama +{ + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + border: 1px solid #D3D3D3; + padding: 5px; +} + +.cke_skin_kama span.cke_browser_webkit, +.cke_skin_kama span.cke_browser_gecko18 +{ + display: block; +} + +.cke_skin_kama .cke_wrapper +{ + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + -webkit-touch-callout: none; + border-radius: 5px; + background-color: #d3d3d3; + background-image: url(images/sprites.png); + background-repeat: repeat-x; + background-position: 0 -1950px; + display: block; + /* IE Quirks: editor chrome overflow horizontally without an explicit width. */ + _display: inline-block; + padding: 5px; + + /*background-color: Red;*/ +} + +.cke_shared .cke_skin_kama .cke_wrapper +{ + padding-bottom: 0; +} + +.cke_skin_kama .cke_browser_ie6 .cke_wrapper, +.cke_skin_kama .cke_browser_iequirks .cke_wrapper +{ + background-image: none; +} + +.cke_skin_kama .cke_editor +{ + display: inline-table; + width: 100%; +} + +.cke_skin_kama .cke_browser_ie .cke_editor, +.cke_skin_kama .cke_browser_webkit .cke_editor +{ + display: table; /* #6684, #8342 */ +} + +.cke_skin_kama .ltr .cke_browser_ie iframe +{ + margin-right: -10px; +} + +.cke_skin_kama .rtl .cke_browser_ie iframe +{ + margin-left: -10px; +} + +.cke_skin_kama .cke_browser_opera .cke_editor.cke_skin_kama .cke_resizer +{ + display: table; +} + +.cke_skin_kama .cke_contents +{ + margin: 5px; +} + +.cke_skin_kama .cke_hc .cke_contents +{ + border: 1px solid black; +} + +.cke_skin_kama .cke_contents iframe +{ + background-color: #fff; +} + +.cke_skin_kama .cke_focus +{ + outline: auto 5px -webkit-focus-ring-color; +} + +.cke_skin_kama textarea.cke_source +{ + font-family: 'Courier New' , Monospace; + font-size: small; + background-color: #fff; + white-space: pre; +} + +.cke_skin_kama .cke_browser_iequirks textarea.cke_source +{ + /* For IE6+Quirks only */ + _white-space: normal; +} + +.cke_skin_kama .cke_resizer +{ + width: 12px; + height: 12px; + margin-top: 9px; + display: block; + float: right; + /* resizer.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -1428px; + background-repeat: no-repeat; + cursor: se-resize; +} + +/* Adobe AIR doesn't support *-resize cursor shape. */ +.cke_skin_kama .cke_browser_air .cke_resizer, +.cke_skin_kama .cke_browser_air .cke_rtl .cke_resizer +{ + cursor: move; +} + +.cke_skin_kama .cke_resizer_rtl +{ + cursor: sw-resize; + /* resizer_rtl.gif*/ + background-position: 0 -1455px; + float: left; +} + +.cke_skin_kama .cke_resizer_horizontal, +.cke_skin_kama .cke_rtl .cke_resizer_horizontal +{ + cursor: e-resize; +} + +.cke_skin_kama .cke_resizer_vertical, +.cke_skin_kama .cke_rtl .cke_resizer_vertical +{ + cursor: n-resize; +} + +.cke_skin_kama .cke_maximized .cke_resizer +{ + display: none; +} + +.cke_skin_kama .cke_browser_ie6 .cke_contents textarea, +.cke_skin_kama .cke_browser_ie7 .cke_contents textarea +{ + position: absolute; +} + +.cke_skin_kama .cke_browser_ie.cke_browser_quirks .cke_contents iframe +{ + position: absolute; + top: 0; +} + +.cke_skin_kama .cke_browser_ie6 .cke_editor, +.cke_skin_kama .cke_browser_ie7 .cke_editor +{ + display: inline-block; +} + +.cke_skin_kama .cke_browser_ie6 .cke_editor, +.cke_shared .cke_skin_kama .cke_browser_ie7 .cke_wrapper +{ + padding-bottom: 5px; +} + +/* All voice labels are not displayed. */ +.cke_skin_kama .cke_voice_label +{ + display: none; +} + +.cke_skin_kama legend.cke_voice_label +{ + display: none; +} + +.cke_skin_kama .cke_browser_ie legend.cke_voice_label +{ + position: absolute; + display: block; + width: 0; + height: 0; + overflow: hidden; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/menu.css b/htdocs/includes/ckeditor/_source/skins/kama/menu.css new file mode 100644 index 0000000000000000000000000000000000000000..3f6551fa5e6f6c3d19b1acc60580cff9fa7b9cc4 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/menu.css @@ -0,0 +1,232 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_kama .cke_contextmenu +{ + padding: 2px; +} + +.cke_skin_kama .cke_menuitem a +{ + display:block; +} + +.cke_skin_kama .cke_menuitem span +{ + cursor: default; +} + +.cke_skin_kama .cke_menuitem a:hover, +.cke_skin_kama .cke_menuitem a:focus, +.cke_skin_kama .cke_menuitem a:active +{ + background-color: #D3D3D3; + display:block; +} + +.cke_hc .cke_menuitem a:hover, +.cke_hc .cke_menuitem a:focus, +.cke_hc .cke_menuitem a:active +{ + border: 2px solid; +} + +.cke_skin_kama .cke_menuitem .cke_icon +{ + background-image: url(icons.png); + background-position: 100px; + background-repeat:no-repeat; + background-color: transparent; + width: 16px; + height: 16px; + float: left; +} + +.cke_rtl .cke_skin_kama .cke_menuitem .cke_icon +{ + background-image: url(icons_rtl.png); +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_browser_ie .cke_skin_kama .cke_menuitem .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie.cke_rtl .cke_skin_kama .cke_menuitem .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie6 .cke_skin_kama .cke_menuitem .cke_icon, +.cke_browser_ie .cke_skin_kama .cke_menuitem.cke_noalphafix .cke_icon +{ + filter: ; +} + +.cke_skin_kama .cke_menuitem .cke_disabled .cke_icon +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_browser_ie .cke_skin_kama .cke_menuitem .cke_disabled .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie.cke_rtl .cke_skin_kama .cke_menuitem .cke_disabled .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie6 .cke_skin_kama .cke_menuitem .cke_disabled .cke_icon, +.cke_browser_ie .cke_skin_kama .cke_menuitem.cke_noalphafix .cke_disabled .cke_icon +{ + filter: ; +} + +.cke_skin_kama .cke_menuitem .cke_icon_wrapper +{ + background-color: #D3D3D3; + border: solid 4px #D3D3D3; + width: 16px; + height: 16px; + float: left; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + clear: both; +} + +.cke_rtl .cke_skin_kama .cke_menuitem .cke_icon_wrapper +{ + float: right; +} + +.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper, +.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper, +.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper +{ + background-color: #9d9d9d; + border: solid 4px #9d9d9d; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_skin_kama .cke_menuitem a:hover.cke_disabled .cke_icon_wrapper, +.cke_skin_kama .cke_menuitem a:focus.cke_disabled .cke_icon_wrapper, +.cke_skin_kama .cke_menuitem a:active.cke_disabled .cke_icon_wrapper +{ + background-color: #D3D3D3; + border: solid 4px #D3D3D3; +} + +.cke_skin_kama .cke_menuitem .cke_label +{ + display:block; + padding-right: 3px; + padding-top: 5px; + padding-left: 4px; + height:19px; + margin-left: 24px; + background-color: #fff; +} +/* Set these after the document has been loaded and we know the dimensions*/ +.cke_skin_kama .cke_frameLoaded .cke_menuitem .cke_label +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_rtl .cke_skin_kama .cke_menuitem .cke_label +{ + padding-right: 0; + margin-left: 0; + padding-left: 3px; + margin-right: 28px; +} + +.cke_skin_kama .cke_menuitem a.cke_disabled .cke_label +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.cke_skin_kama .cke_menuitem a:hover .cke_label, +.cke_skin_kama .cke_menuitem a:focus .cke_label, +.cke_skin_kama .cke_menuitem a:active .cke_label +{ + background-color: #D3D3D3; +} + +.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label, +.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label, +.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label +{ + background-color: transparent; +} + +.cke_skin_kama .cke_menuseparator +{ + background-color: #D3D3D3; + height: 2px; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + + _font-size: 0; +} + +.cke_skin_kama .cke_menuarrow +{ + /* arrowright.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -1411px; + background-repeat: no-repeat; + height: 5px; + width: 3px; + float: right; + margin-right: 2px; + margin-top: 3px; +} + +.cke_rtl .cke_skin_kama .cke_menuarrow +{ + float: left; + margin-right: 0; + margin-left: 2px; + /* arrowleft.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0px -1390px; + background-repeat: no-repeat; +} + +.cke_skin_kama .cke_menuarrow span +{ + display: none; +} + +.cke_hc .cke_skin_kama .cke_menuarrow +{ + width: auto; + margin-top: 0; +} + +.cke_hc .cke_skin_kama .cke_menuarrow span +{ + display: inline; +} + +/* #3766 In the context menu, long labels with second level menu get wrapped */ +.cke_browser_ie.cke_ltr .cke_skin_kama .cke_menuarrow +{ + position: absolute; + right: 2px; +} + +.cke_browser_ie.cke_rtl .cke_skin_kama .cke_menuarrow +{ + position: absolute; + left: 2px; +} +/* END #3766 */ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/panel.css b/htdocs/includes/ckeditor/_source/skins/kama/panel.css new file mode 100644 index 0000000000000000000000000000000000000000..b2910b7ea8636d471ce748586af9e6375e678f3c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/panel.css @@ -0,0 +1,217 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_kama .cke_panel +{ + border: 1px solid #8f8f73; + background-color: #fff; + + width: 120px; + height: 100px; + + overflow: hidden; + + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.cke_skin_kama .cke_contextmenu +{ + margin: 0; +} + +/* Ideally we would use "inherit here"... but you know... IE :( */ +.cke_skin_kama .cke_panel iframe +{ + width: 100%; + height: 100%; +} + +/* + * All the following styles are to be used inside the iframe that holds panel + * contents. We don't use the cke_skin_default there to avoid the reset to be + * active. + * This is not an issue as we'll never have two skins running inside the same + * panel iframe. + */ + +html.cke_skin_kama_container +{ + overflow: auto; + overflow-x: hidden; +} + +body.cke_panel_frame +{ + overflow: auto; +} + +.cke_panel_frame .cke_label +{ + display: none; +} + +ul.cke_panel_list +{ + list-style-type: none; + margin: 3px; + padding: 0px; + white-space: nowrap; +} + +li.cke_panel_listItem +{ + margin: 0px; +} + +.cke_panel_listItem a +{ + padding: 2px; + display: block; + border: 1px solid #fff; + color: inherit !important; + text-decoration: none; + overflow: hidden; + text-overflow: ellipsis; +} + +/* IE6 */ +* html .cke_panel_listItem a +{ + width : 100%; + + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +/* IE7 */ +*:first-child+html .cke_panel_listItem a +{ + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +.cke_panel_listItem.cke_selected a +{ + border: 1px solid #ccc; + background-color: #e9f5ff; +} + +.cke_panel_listItem a:hover, +.cke_panel_listItem a:focus, +.cke_panel_listItem a:active +{ + border-color: #316ac5; + background-color: #dff1ff; +} + +.cke_hc .cke_panel_listItem.cke_selected a, +.cke_hc .cke_panel_listItem a:hover, +.cke_hc .cke_panel_listItem a:focus, +.cke_hc .cke_panel_listItem a:active +{ + border-width: 3px; + padding: 0px; +} + +.cke_panel_grouptitle +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; + font-weight: bold; + white-space: nowrap; + background-color: #dcdcdc; + color: #000; + margin:0px; + padding:3px; +} + +.cke_panel_listItem p, +.cke_panel_listItem h1, +.cke_panel_listItem h2, +.cke_panel_listItem h3, +.cke_panel_listItem h4, +.cke_panel_listItem h5, +.cke_panel_listItem h6, +.cke_panel_listItem pre +{ + margin-top: 3px; + margin-bottom: 3px; +} + +.cke_skin_kama .cke_button_textcolor_panel, +.cke_skin_kama .cke_button_bgcolor_panel +{ + width: 150px; + height: 135px; +} + +.cke_colorblock +{ + padding: 3px; + font-size: 11px; + font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif; +} + +.cke_colorblock, +.cke_colorblock a +{ + text-decoration: none; + color: #000; +} + +span.cke_colorbox +{ + width: 10px; + height: 10px; + border: #808080 1px solid; + float: left; +} + +.cke_rtl span.cke_colorbox +{ + float: right; +} + +a.cke_colorbox +{ + border: #fff 1px solid; + padding: 2px; + float: left; +} + +.cke_rtl a.cke_colorbox +{ + float: right; +} + +a:hover.cke_colorbox, +a:focus.cke_colorbox, +a:active.cke_colorbox +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} + +a.cke_colorauto, +a.cke_colormore +{ + border: #fff 1px solid; + padding: 2px; + display: block; + cursor: pointer; +} + +a:hover.cke_colorauto, +a:hover.cke_colormore, +a:focus.cke_colorauto, +a:focus.cke_colormore, +a:active.cke_colorauto, +a:active.cke_colormore +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/presets.css b/htdocs/includes/ckeditor/_source/skins/kama/presets.css new file mode 100644 index 0000000000000000000000000000000000000000..f48d2d84fb4bfce53abce0f0ba4d1d8ff329377c --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/presets.css @@ -0,0 +1,49 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/* "Source" button label */ +.cke_skin_kama .cke_button_source .cke_label +{ + display: inline; +} + +/* "Styles" panel size */ +.cke_skin_kama .cke_styles_panel +{ + width: 150px; + height: 170px; +} + +/* "Format" panel size */ +.cke_skin_kama .cke_format_panel +{ + width: 150px; + height: 170px; +} + +/* "Font" panel size */ +.cke_skin_kama .cke_font_panel +{ + width: 150px; + height: 170px; +} + +/* "Font Size" panel size */ +.cke_skin_kama .cke_fontSize_panel +{ + height: 170px; +} + +/* "Font Size" combo width */ +.cke_skin_kama .cke_fontSize .cke_text +{ + width: 25px; +} + +/* "Font Size" combo width (IE Quirks) */ +.cke_skin_kama .cke_browser_iequirks .cke_fontSize .cke_text +{ + width: 32px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/reset.css b/htdocs/includes/ckeditor/_source/skins/kama/reset.css new file mode 100644 index 0000000000000000000000000000000000000000..a2bed359d73abe1fee7c69f21d604f64962b043b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/reset.css @@ -0,0 +1,85 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Reset and Default Values + */ +.cke_skin_kama *, +.cke_skin_kama a:hover, +.cke_skin_kama a:link, +.cke_skin_kama a:visited, +.cke_skin_kama a:active +{ + margin: 0; + padding: 0; + border: 0; + background: transparent; + text-decoration: none; + font: normal normal normal 100% Sans-Serif; + width: auto; + height: auto; + border-collapse: collapse; + text-align: left; + vertical-align: baseline; + white-space: nowrap; + cursor: auto; + color: #000; + float: none; + + font-size: 12px; + font-family: Arial,Helvetica,Tahoma,Verdana,Sans-Serif; +} + +.cke_skin_kama .cke_rtl *, +.cke_skin_kama .cke_rtl a:hover, +.cke_skin_kama .cke_rtl a:link, +.cke_skin_kama .cke_rtl a:visited, +.cke_skin_kama .cke_rtl a:active, +.cke_rtl .cke_skin_kama *, +.cke_rtl .cke_skin_kama a:hover, +.cke_rtl .cke_skin_kama a:link, +.cke_rtl .cke_skin_kama a:visited, +.cke_rtl .cke_skin_kama a:active +{ + text-align: right; +} + +.cke_skin_kama iframe +{ + vertical-align: inherit; /** For IE */ +} + +.cke_skin_kama textarea +{ + white-space: pre; +} + +.cke_skin_kama .cke_browser_gecko textarea +{ + cursor: text; +} + +.cke_skin_kama .cke_browser_gecko textarea[disabled] +{ + cursor: default; +} + +.cke_skin_kama input[type="text"], +.cke_skin_kama input[type="password"] +{ + cursor: text; +} + +.cke_skin_kama input[type="text"][disabled], +.cke_skin_kama input[type="password"][disabled] +{ + cursor: default; +} + +.cke_skin_kama fieldset +{ + padding: 10px; + border: 2px groove #E0DFE3; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/richcombo.css b/htdocs/includes/ckeditor/_source/skins/kama/richcombo.css new file mode 100644 index 0000000000000000000000000000000000000000..662825076d49f961b1eaea7e4aa62d82160613f9 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/richcombo.css @@ -0,0 +1,287 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/* Special Combo */ + +.cke_skin_kama .cke_rcombo +{ + display: inline; +} + +.cke_skin_kama .cke_rtl .cke_rcombo +{ +} + +.cke_skin_kama .cke_rcombopanel +{ + border: 1px solid #8F8F73; + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + height: auto; + _height: 100px; +} + +/* IE6 workaround, shouldn't be here */ +.cke_skin_kama .cke_browser_iequirks .cke_rcombopanel, +.cke_skin_kama .cke_browser_ie6 .cke_rcombopanel +{ +/* width: 150px;*/ +} + +.cke_skin_kama .cke_rcombo a, +.cke_skin_kama .cke_rcombo a:active, +.cke_skin_kama .cke_rcombo a:hover +{ + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: repeat-x; + background-position: 0 -100px; + border-bottom:1px solid #DAD9D9; + border-right:1px solid #DAD9D9; + float:left; + padding: 2px; + height: 21px; + margin-right: 6px; + margin-bottom: 5px; +} + +.cke_skin_kama .cke_rtl .cke_rcombo a, +.cke_skin_kama .cke_rtl .cke_rcombo a:active, +.cke_skin_kama .cke_rtl .cke_rcombo a:hover +{ + float:right; + margin-right: 0; + margin-left: 6px; +} + +.cke_skin_kama .cke_hc .cke_rcombo a +{ + filter: alpha(opacity=100); /* IE */ + opacity: 1.0; /* Safari, Opera and Mozilla */ +} + +.cke_skin_kama .cke_rcombo .cke_label +{ + display: none; + line-height: 26px; + vertical-align: top; + margin-right: 5px; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + /* background-color: #f1f1e3; Because of IE6+ClearType */ +} + +.cke_skin_kama .cke_rtl .cke_rcombo .cke_label +{ + margin-right: 0; + margin-left: 5px; +} + +.cke_skin_kama .cke_rcombo .cke_inline_label +{ + line-height: 21px; + font-style: italic; + color: #666666; +} + +.cke_skin_kama .cke_hc .cke_rcombo .cke_openbutton +{ + vertical-align: top; +} + +.cke_skin_kama .cke_hc .cke_rcombo .cke_label +{ + filter: alpha(opacity=100); + opacity: 1.0; +} + +.cke_skin_kama .cke_rcombo .cke_text +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + + height: 21px; + line-height: 21px; + width:60px; + text-overflow: ellipsis; + overflow: hidden; + display: inline-block; + margin: 0 2px 0 4px; + cursor: default; +} + +.cke_skin_kama .cke_rtl .cke_rcombo .cke_text +{ + margin: 0 4px 0 2px; +} + +.cke_skin_kama .cke_rcombo .cke_openbutton +{ + display: inline-block; +} + +.cke_skin_kama .cke_rcombo .cke_openbutton .cke_icon +{ + display: inline-block; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -68px; + background-repeat: no-repeat; + width: 17px; + height: 19px; + margin: 1px 2px; +} + +.cke_skin_kama .cke_hc .cke_rcombo .cke_openbutton .cke_icon +{ + background: none; +} + +.cke_skin_kama .cke_browser_iequirks .cke_rcombo .cke_openbutton +{ + margin-bottom: 0; +} + +.cke_skin_kama .cke_rcombo .cke_off a:hover .cke_text, +.cke_skin_kama .cke_rcombo .cke_off a:focus .cke_text, +.cke_skin_kama .cke_rcombo .cke_off a:active .cke_text, +.cke_skin_kama .cke_rcombo .cke_on .cke_text +{ + border-color: #316ac5; + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ +} + +.cke_skin_kama .cke_rcombo .cke_off a:hover .cke_openbutton, +.cke_skin_kama .cke_rcombo .cke_off a:focus .cke_openbutton, +.cke_skin_kama .cke_rcombo .cke_off a:active .cke_openbutton, +.cke_skin_kama .cke_rcombo .cke_on .cke_openbutton +{ + border-color: #316ac5; + background-color: #dff1ff; +} + +.cke_skin_kama .cke_rcombo .cke_on .cke_text +{ + -moz-border-radius-bottomleft: 0px; + -webkit-border-bottom-left-radius: 0px; + border-bottom-left-radius: 0px; +} + +.cke_skin_kama .cke_rcombo .cke_on .cke_openbutton +{ + -moz-border-radius-bottomright: 0px; + -webkit-border-bottom-right-radius: 0px; + border-bottom-right-radius: 0px; +} + +.cke_skin_kama .cke_rcombo .cke_disabled .cke_label +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.3; /* Safari, Opera and Mozilla */ +} + +.cke_skin_kama .cke_hc .cke_rcombo .cke_disabled .cke_label +{ + filter: alpha(opacity=70); + opacity: 0.7; +} + +.cke_skin_kama .cke_rcombo .cke_disabled .cke_text, +.cke_skin_kama .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=50); /* IE */ + opacity: 0.5; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_kama .cke_browser_ie .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=50); +} +.cke_skin_kama .cke_browser_ie6 .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=50); +} + +.cke_skin_kama .cke_hc .cke_rcombo .cke_disabled .cke_text, +.cke_skin_kama .cke_hc .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=80); + opacity: 0.8; +} + +.cke_skin_kama .cke_rcombo .cke_disabled .cke_text +{ + color: #fff; +} + +/* RTL */ + +.cke_skin_kama .cke_rtl .cke_rcombo span +{ +/* _zoom: 1;*/ +} + +.cke_skin_kama .cke_rtl .cke_rcombo .cke_text +{ +/* _float: left;*/ +} + +/* Firefox 2 & WebKit Section */ + +.cke_skin_kama .cke_browser_gecko .cke_rcombo .cke_text, +.cke_skin_kama .cke_browser_gecko .cke_rcombo .cke_openbutton, +.cke_skin_kama .cke_browser_webkit .cke_rcombo .cke_text, +.cke_skin_kama .cke_browser_webkit .cke_rcombo .cke_openbutton +{ + display: block; + float: left; +} + +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_text, +.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text +{ +/* float: right;*/ +} + +.cke_skin_kama .cke_browser_gecko .cke_rcombo .cke_label, +.cke_skin_kama .cke_browser_webkit .cke_rcombo .cke_label +{ + /*display: block;*/ + float: left; +} + +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_label, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_text, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_openbutton, +.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_label, +.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text, +.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_openbutton +{ + float: right; +} + +.cke_skin_kama .cke_browser_ie7 .cke_rcombo .cke_text +{ + line-height: 18px; +} + +.cke_skin_kama .cke_browser_ie6 .cke_rcombo .cke_text, +.cke_skin_kama .cke_browser_iequirks .cke_rcombo .cke_text +{ + height: auto; + line-height: 17px; +} + +.cke_skin_kama .cke_rtl .cke_rcombo .cke_font .cke_text, +.cke_skin_kama .cke_rtl .cke_rcombo .cke_fontSize .cke_text +{ + direction: ltr; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/skin.js b/htdocs/includes/ckeditor/_source/skins/kama/skin.js new file mode 100644 index 0000000000000000000000000000000000000000..b56944ea38b6963f68a93f2f8659923b7adf1dc7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/skin.js @@ -0,0 +1,236 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.skins.add( 'kama', (function() +{ + var uiColorStylesheetId = 'cke_ui_color'; + + return { + editor : { css : [ 'editor.css' ] }, + dialog : { css : [ 'dialog.css' ] }, + richcombo : { canGroup: false }, + templates : { css : [ 'templates.css' ] }, + margins : [ 0, 0, 0, 0 ], + init : function( editor ) + { + if ( editor.config.width && !isNaN( editor.config.width ) ) + editor.config.width -= 12; + + var uiColorMenus = []; + var uiColorRegex = /\$color/g; + var uiColorMenuCss = "/* UI Color Support */\ +.cke_skin_kama .cke_menuitem .cke_icon_wrapper\ +{\ + background-color: $color !important;\ + border-color: $color !important;\ +}\ +\ +.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,\ +.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,\ +.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper\ +{\ + background-color: $color !important;\ + border-color: $color !important;\ +}\ +\ +.cke_skin_kama .cke_menuitem a:hover .cke_label,\ +.cke_skin_kama .cke_menuitem a:focus .cke_label,\ +.cke_skin_kama .cke_menuitem a:active .cke_label\ +{\ + background-color: $color !important;\ +}\ +\ +.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,\ +.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,\ +.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label\ +{\ + background-color: transparent !important;\ +}\ +\ +.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,\ +.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,\ +.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper\ +{\ + background-color: $color !important;\ + border-color: $color !important;\ +}\ +\ +.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper\ +{\ + background-color: $color !important;\ + border-color: $color !important;\ +}\ +\ +.cke_skin_kama .cke_menuseparator\ +{\ + background-color: $color !important;\ +}\ +\ +.cke_skin_kama .cke_menuitem a:hover,\ +.cke_skin_kama .cke_menuitem a:focus,\ +.cke_skin_kama .cke_menuitem a:active\ +{\ + background-color: $color !important;\ +}"; + // We have to split CSS declarations for webkit. + if ( CKEDITOR.env.webkit ) + { + uiColorMenuCss = uiColorMenuCss.split( '}' ).slice( 0, -1 ); + for ( var i = 0 ; i < uiColorMenuCss.length ; i++ ) + uiColorMenuCss[ i ] = uiColorMenuCss[ i ].split( '{' ); + } + + function getStylesheet( document ) + { + var node = document.getById( uiColorStylesheetId ); + if ( !node ) + { + node = document.getHead().append( 'style' ); + node.setAttribute( "id", uiColorStylesheetId ); + node.setAttribute( "type", "text/css" ); + } + return node; + } + + function updateStylesheets( styleNodes, styleContent, replace ) + { + var r, i, content; + for ( var id = 0 ; id < styleNodes.length ; id++ ) + { + if ( CKEDITOR.env.webkit ) + { + for ( i = 0 ; i < styleContent.length ; i++ ) + { + content = styleContent[ i ][ 1 ]; + for ( r = 0 ; r < replace.length ; r++ ) + content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] ); + + styleNodes[ id ].$.sheet.addRule( styleContent[ i ][ 0 ], content ); + } + } + else + { + content = styleContent; + for ( r = 0 ; r < replace.length ; r++ ) + content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] ); + + if ( CKEDITOR.env.ie ) + styleNodes[ id ].$.styleSheet.cssText += content; + else + styleNodes[ id ].$.innerHTML += content; + } + } + } + + var uiColorRegexp = /\$color/g; + + CKEDITOR.tools.extend( editor, + { + uiColor: null, + + getUiColor : function() + { + return this.uiColor; + }, + + setUiColor : function( color ) + { + var cssContent, + uiStyle = getStylesheet( CKEDITOR.document ), + cssId = '.' + editor.id; + + var cssSelectors = + [ + cssId + " .cke_wrapper", + cssId + "_dialog .cke_dialog_contents", + cssId + "_dialog a.cke_dialog_tab", + cssId + "_dialog .cke_dialog_footer" + ].join( ',' ); + var cssProperties = "background-color: $color !important;"; + + if ( CKEDITOR.env.webkit ) + cssContent = [ [ cssSelectors, cssProperties ] ]; + else + cssContent = cssSelectors + '{' + cssProperties + '}'; + + return ( this.setUiColor = + function( color ) + { + var replace = [ [ uiColorRegexp, color ] ]; + editor.uiColor = color; + + // Update general style. + updateStylesheets( [ uiStyle ], cssContent, replace ); + + // Update menu styles. + updateStylesheets( uiColorMenus, uiColorMenuCss, replace ); + })( color ); + } + }); + + editor.on( 'menuShow', function( event ) + { + var panel = event.data[ 0 ]; + var iframe = panel.element.getElementsByTag( 'iframe' ).getItem( 0 ).getFrameDocument(); + + // Add stylesheet if missing. + if ( !iframe.getById( 'cke_ui_color' ) ) + { + var node = getStylesheet( iframe ); + uiColorMenus.push( node ); + + var color = editor.getUiColor(); + // Set uiColor for new menu. + if ( color ) + updateStylesheets( [ node ], uiColorMenuCss, [ [ uiColorRegexp, color ] ] ); + } + }); + + // Apply UI color if specified in config. + if ( editor.config.uiColor ) + editor.setUiColor( editor.config.uiColor ); + } + }; +})() ); + +(function() +{ + CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup ); + + function dialogSetup() + { + CKEDITOR.dialog.on( 'resize', function( evt ) + { + var data = evt.data, + width = data.width, + height = data.height, + dialog = data.dialog, + contents = dialog.parts.contents; + + if ( data.skin != 'kama' ) + return; + + contents.setStyles( + { + width : width + 'px', + height : height + 'px' + }); + }); + } +})(); + +/** + * The base user interface color to be used by the editor. Not all skins are + * compatible with this setting. + * @name CKEDITOR.config.uiColor + * @type String + * @default '' (empty) + * @example + * // Using a color code. + * config.uiColor = '#AADC6E'; + * @example + * // Using an HTML color name. + * config.uiColor = 'Gold'; + */ diff --git a/htdocs/includes/ckeditor/_source/skins/kama/templates.css b/htdocs/includes/ckeditor/_source/skins/kama/templates.css new file mode 100644 index 0000000000000000000000000000000000000000..b4dd844484153e0a2c13d12a5123c1c886def1b0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/templates.css @@ -0,0 +1,88 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Styles for the "templates" plugin. + */ + +.cke_skin_kama .cke_tpl_list +{ + border: #dcdcdc 2px solid; + background-color: #ffffff; + overflow-y: auto; + overflow-x: hidden; + width: 100%; + height: 220px; +} + +.cke_skin_kama .cke_tpl_item +{ + margin: 5px; + padding: 7px; + border: #eeeeee 1px solid; + *width: 88%; +} + +.cke_skin_kama .cke_tpl_preview +{ + border-collapse: separate; + text-indent:0; + width: 100%; +} +.cke_skin_kama .cke_tpl_preview td +{ + padding: 2px; + vertical-align: middle; +} +.cke_skin_kama .cke_tpl_preview .cke_tpl_preview_img +{ + width: 100px; +} +.cke_skin_kama .cke_tpl_preview span +{ + white-space: normal; +} + +.cke_skin_kama .cke_tpl_title +{ + font-weight: bold; +} + +.cke_skin_kama .cke_tpl_list a:active .cke_tpl_item, +.cke_skin_kama .cke_tpl_list a:hover .cke_tpl_item, +.cke_skin_kama .cke_tpl_list a:focus .cke_tpl_item +{ + border: #ff9933 1px solid; + background-color: #fffacd; +} + +.cke_skin_kama .cke_tpl_list a:active *, +.cke_skin_kama .cke_tpl_list a:hover *, +.cke_skin_kama .cke_tpl_list a:focus * +{ + cursor: pointer; +} + +/* IE6 contextual selectors childs won't get :hover transition until, + the hover style of the link itself contains certain CSS declarations.*/ +.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:active, +.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:hover, +.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:focus +{ + background-position: 0 0; +} + +.cke_skin_kama .cke_hc .cke_tpl_list a:active .cke_tpl_item, +.cke_skin_kama .cke_hc .cke_tpl_list a:hover .cke_tpl_item, +.cke_skin_kama .cke_hc .cke_tpl_list a:focus .cke_tpl_item +{ + border-width: 3px; +} + +.cke_skin_kama .cke_tpl_empty, .cke_tpl_loading +{ + text-align: center; + padding: 5px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/kama/toolbar.css b/htdocs/includes/ckeditor/_source/skins/kama/toolbar.css new file mode 100644 index 0000000000000000000000000000000000000000..fa30249c8003b4ec9cf92f7bd6b9ad2672c3538e --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/kama/toolbar.css @@ -0,0 +1,408 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@media print +{ + /* For printing, we simply hide the toolbar */ + + .cke_skin_kama .cke_toolbox + { + display: none; + } +} + +.cke_skin_kama .cke_browser_webkit .cke_toolbox, +.cke_skin_kama .cke_browser_webkit .cke_toolbox > span +{ + white-space: normal; +} + +.cke_skin_kama .cke_toolbox +{ + clear: both; + /* Define the padding-bottom otherwise the collapser button will not be clickable #4932*/ + padding-bottom: 1px; +} + +.cke_skin_kama a.cke_toolbox_collapser, +.cke_skin_kama a:hover.cke_toolbox_collapser +{ + /* arrowtop.gif */ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 3px -1366px; /* +3px +4px */ + background-repeat: no-repeat; + width: 11px; + height: 11px; + float: right; + border: 1px outset #D3D3D3; + margin: 11px 0 2px; + cursor: pointer; +} + +.cke_skin_kama .cke_rtl a.cke_toolbox_collapser, +.cke_skin_kama .cke_rtl a:hover.cke_toolbox_collapser +{ + float: left; +} + +.cke_skin_kama a.cke_toolbox_collapser span +{ + display: none; +} + +.cke_skin_kama .cke_hc a.cke_toolbox_collapser span +{ + font-size: 10px; + font-weight: bold; + font-family: Arial; + display: inline; +} + +.cke_skin_kama a.cke_toolbox_collapser_min, +.cke_skin_kama a:hover.cke_toolbox_collapser_min +{ + /* arrowleft.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 4px -1387px; /* +4px +3px */ + background-repeat: no-repeat; + margin: 2px 4px; +} + +.cke_skin_kama .cke_rtl a.cke_toolbox_collapser_min, +.cke_skin_kama .cke_rtl a:hover.cke_toolbox_collapser_min +{ + /* arrowright.gif*/ + background-position: 4px -1408px; /* +2px +3px */ +} + +.cke_skin_kama .cke_separator +{ + display: inline-block; + border-left: solid 1px #D3D3D3; + margin: 3px 2px 0; + height: 16px; + + /* These are for IE < 8, but it's ok for the others */ + vertical-align: top; +} + +.cke_skin_kama .cke_break +{ + font-size: 0; + clear: left; +} + +.cke_skin_kama .cke_rtl .cke_break +{ + clear: right; +} + +.cke_skin_kama .cke_toolbar_start +{ + display: none; +} + +.cke_skin_kama .cke_toolgroup +{ + -moz-border-radius:5px; + -webkit-border-radius: 5px; + border-radius: 5px; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: repeat-x; + background-position: 0 -500px; + float: left; + margin-right: 6px; + margin-bottom: 5px; + padding: 2px; + display: inline; +} + +.cke_skin_kama .cke_rtl .cke_toolgroup +{ + float: right; + margin-right: 0; + margin-left: 6px; +} + +.cke_skin_kama .cke_button a, +.cke_skin_kama .cke_button a:hover, +.cke_skin_kama .cke_button a:focus, +.cke_skin_kama .cke_button a:active, +.cke_skin_kama .cke_button a.cke_off +{ + border-radius: 3px; + outline: none; + padding: 2px 4px; + height: 18px; + display: inline-block; + cursor: default; +} + +.cke_skin_kama .cke_button a, +.cke_skin_kama .cke_button a.cke_off +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.cke_skin_kama .cke_hc .cke_button a, +.cke_skin_kama .cke_hc .cke_button a.cke_off +{ + opacity: 1.0; + filter: alpha(opacity=100); + border: 1px solid white; +} + +.cke_skin_kama .cke_button a.cke_on +{ + background-color: #a3d7ff; + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ + padding: 2px 4px; +} + +.cke_skin_kama .cke_hc .cke_button a.cke_on +{ + padding: 0 2px !important; + border-width: 3px; +} + +.cke_skin_kama .cke_button a.cke_disabled * +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.3; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_kama .cke_browser_ie .cke_button a.cke_disabled *, +.cke_skin_kama .cke_browser_ie a:hover.cke_button .cke_disabled * +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30); +} +.cke_skin_kama .cke_browser_ie .cke_rtl .cke_button a.cke_disabled *, +.cke_skin_kama .cke_browser_ie .cke_rtl a:hover.cke_button .cke_disabled * +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30); +} +.cke_skin_kama .cke_browser_ie6 .cke_button a.cke_disabled *, +.cke_skin_kama .cke_browser_ie6 a:hover.cke_button .cke_disabled *, +.cke_skin_kama .cke_browser_ie .cke_button.cke_noalphafix a.cke_disabled * +{ + filter: alpha(opacity=30); +} + +.cke_skin_kama .cke_hc .cke_button a.cke_disabled *, +.cke_skin_kama .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled * +{ + filter: alpha(opacity=60); + opacity: 0.6; +} + +.cke_skin_kama .cke_button a:hover.cke_on, +.cke_skin_kama .cke_button a:focus.cke_on, +.cke_skin_kama .cke_button a:active.cke_on, /* IE */ +.cke_skin_kama .cke_button a:hover.cke_off, +.cke_skin_kama .cke_button a:focus.cke_off, +.cke_skin_kama .cke_button a:active.cke_off /* IE */ +{ + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ + padding: 2px 4px; +} + +.cke_skin_kama .cke_button a:hover, +.cke_skin_kama .cke_button a:focus, +.cke_skin_kama .cke_button a:active /* IE */ +{ + background-color: #dff1ff; +} + +.cke_skin_kama .cke_button a:hover.cke_on, +.cke_skin_kama .cke_button a:focus.cke_on, +.cke_skin_kama .cke_button a:active.cke_on /* IE */ +{ + background-color: #86caff; +} + +.cke_skin_kama .cke_hc .cke_button a:hover, +.cke_skin_kama .cke_hc .cke_button a:focus, +.cke_skin_kama .cke_hc .cke_button a:active /* IE */ +{ + padding: 0 2px !important; + border-width: 3px; +} + +.cke_skin_kama .cke_button .cke_icon +{ + background-image: url(icons.png); + background-position: 100px; + background-repeat: no-repeat; + margin-top: 1px; + width: 16px; + height: 16px; + display: inline-block; + cursor: default; +} + +.cke_skin_kama .cke_rtl .cke_button .cke_icon +{ + background-image: url(icons_rtl.png); +} +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_kama .cke_browser_ie .cke_button .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_kama .cke_browser_ie .cke_rtl .cke_button .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_kama .cke_browser_ie6 .cke_button .cke_icon, +.cke_skin_kama .cke_browser_ie6 .cke_rtl .cke_button .cke_icon, +.cke_skin_kama .cke_browser_ie .cke_button.cke_noalphafix .cke_icon, +.cke_skin_kama .cke_browser_ie .cke_rtl .cke_button.cke_noalphafix .cke_icon +{ + filter: ; +} + + +.cke_skin_kama .cke_button .cke_label +{ + cursor: default; + display: none; + padding-left: 3px; + line-height: 18px; + vertical-align: middle; +} + +.cke_skin_kama .cke_hc .cke_button .cke_label +{ + padding: 0; + display: inline-block; +} + +.cke_skin_kama .cke_hc .cke_button .cke_icon +{ + display: none; +} + +.cke_skin_kama .cke_accessibility +{ + position: absolute; + display: block; + width: 0; + height: 0; + overflow: hidden; +} + +.cke_skin_kama .cke_button .cke_buttonarrow +{ + display: inline-block; + height: 17px; + width: 8px; + background-position: 2px -1469px; /* (+2, -5) */ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: no-repeat; + cursor: default; +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_kama .cke_browser_ie .cke_button .cke_buttonarrow +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_kama .cke_browser_ie6 .cke_button .cke_buttonarrow +{ + filter: ; +} + +/*** Firefox 2 ***/ + +.cke_skin_kama .cke_browser_gecko .cke_toolbar, +.cke_skin_kama .cke_browser_gecko .cke_button a, +.cke_skin_kama .cke_browser_gecko .cke_button a.cke_off, +.cke_skin_kama .cke_browser_gecko .cke_button .cke_icon, +.cke_skin_kama .cke_browser_gecko .cke_button .cke_buttonarrow, +.cke_skin_kama .cke_browser_gecko .cke_separator, +.cke_skin_kama .cke_browser_gecko .cke_toolbar_start +{ + display: block; + float: left; +} + +.cke_skin_kama .cke_browser_gecko.cke_hc .cke_button .cke_icon +{ + display: none; +} + +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_toolbar, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button a, +.cke_skin_kama .cke_browser_gecko .cke_rtl.cke_button a.cke_off, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button .cke_icon, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button .cke_buttonarrow, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_separator, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_toolbar_start +{ + float: right; +} + +.cke_skin_kama .cke_browser_gecko .cke_button .cke_label, +.cke_skin_kama .cke_browser_gecko .cke_break +{ + float: left; +} + +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button .cke_label, +.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_break +{ + float: right; +} + +/*** WebKit ***/ + +/* We have originally used display:inline-block+float for cke_toolbar and it + worked well in all browsers, except IE+RTL. We had to change it to inline + and remove the float. This change didn't play well with Safari. */ + +.cke_skin_kama .cke_browser_webkit .cke_toolbar +{ + float: left; +} + +.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_toolbar +{ + float: right; +} + +/*** Mixed Fixes ***/ + +.cke_skin_kama .cke_browser_ie .cke_button .cke_label +{ + line-height: 16px; +} + +/* Fix cursor shape consistency on toolbar combos (#4031) */ +.cke_skin_kama .cke_browser_ie .cke_rcombo, +.cke_skin_kama .cke_browser_ie .cke_rcombo * +{ + cursor: default; +} + +.cke_skin_kama .cke_browser_ie .cke_toolbox +{ + padding-bottom: 5px; + _padding-bottom: 6px; +} + +.cke_shared .cke_skin_kama .cke_browser_ie .cke_toolbox +{ + padding-bottom: 0; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/dialog.css b/htdocs/includes/ckeditor/_source/skins/office2003/dialog.css new file mode 100644 index 0000000000000000000000000000000000000000..f28644a51879f9b1e37af56a86842536f005f60b --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/dialog.css @@ -0,0 +1,908 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/* Restore the dialog visibility */ +body .cke_dialog +{ + visibility: visible; +} + +/* Force Gecko to consider table as positioned */ +.cke_skin_office2003 table.cke_dialog.cke_browser_gecko +{ + display:block; +} + +.cke_skin_office2003 .cke_dialog_body +{ + margin-left: 16px; + margin-right: 16px; + margin-top: 2px; + margin-bottom: 20px; + z-index: 1; + + /* 'cke_dialog' element has been fixed positioned in all but IE6, while we + need it to be positioned to hold e.g. close button. */ + _position: static; +} + +.cke_skin_office2003 .cke_dialog_tl, +.cke_skin_office2003 .cke_dialog_tr, +.cke_skin_office2003 .cke_dialog_tc, +.cke_skin_office2003 .cke_dialog_bl, +.cke_skin_office2003 .cke_dialog_br, +.cke_skin_office2003 .cke_dialog_bc +{ + background-image: url(images/sprites.png); + background-repeat: no-repeat; + position: absolute; + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/sprites_ie6.png); + /* Dialog corner parts require a negative z-index to avoid covering dialog body. (#4954) */ + z-index: -1; +} + +.cke_skin_office2003 .cke_dialog_tl +{ + background-position: -16px -16px; + height: 16px; + width: 16px; + top: 0; + left: 0; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_tl +{ + background-position: -16px -397px; +} + +.cke_skin_office2003 .cke_dialog_tr +{ + background-position: -16px -76px; + height: 16px; + width: 16px; + top: 0; + right: 0; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_tr +{ + background-position: -16px -457px; +} + +.cke_skin_office2003 .cke_dialog_tc +{ + background-position: 0 -136px; + background-repeat: repeat-x; + height: 16px; + top: 0; + left: 16px; + right: 16px; +} + +.cke_skin_office2003 .cke_dialog_bl +{ + background-position: -16px -196px; + height: 51px; + width: 30px; + bottom: 0; + left: 0; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_bl +{ + background-position: -16px -517px; +} + +.cke_skin_office2003 .cke_dialog_br +{ + background-position: -16px -263px; + height: 51px; + width: 30px; + bottom: 0; + right: 0; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_br +{ + background-position: -16px -584px; +} + +.cke_skin_office2003 .cke_dialog_bc +{ + background-position: 0 -330px; + background-repeat: repeat-x; + height: 51px; + bottom: 0; + left: 30px; + right: 30px; +} + +.cke_skin_office2003 .cke_dialog_ml, +.cke_skin_office2003 .cke_dialog_mr +{ + background-image: url(images/dialog_sides.png); + background-repeat: repeat-y; + position: absolute; + width: 16px; + top: 16px; + bottom: 51px; + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/dialog_sides.gif); + + /* IE quirks gets confused when we have both top and bottom. */ + _top: auto; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_ml, +.cke_skin_office2003 .cke_rtl .cke_dialog_mr +{ + background-image: url(images/dialog_sides_rtl.png); + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/dialog_sides.gif); +} + +.cke_skin_office2003 .cke_dialog_ml +{ + background-position: 0 0; + left: 0; +} + +.cke_skin_office2003 .cke_dialog_mr +{ + background-position: -16px 0; + right: 0; +} + +.cke_skin_office2003 .cke_browser_iequirks .cke_dialog_ml, +.cke_skin_office2003 .cke_browser_iequirks .cke_dialog_mr +{ + margin-top: 3px; +} + +.cke_skin_office2003 .cke_dialog_title +{ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -678px; + background-repeat: repeat-x; + font-weight: bold; + font-size: 14pt; + color: #0E3460; + background-color: #8db1ff; + padding: 3px 10px 26px 10px; + cursor: move; + position: relative; +} + +.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_title +{ + position: static; +} + +.cke_skin_office2003 .cke_dialog_contents +{ + background-color: #f7f8fd; + border: #2b66c9 1px solid; + overflow: auto; + padding: 5px 10px; +} + +.cke_skin_office2003 .cke_dialog_footer +{ + background-color: #8db1ff; + text-align: right; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_footer +{ + text-align: left; +} + +.cke_skin_office2003 .cke_dialog_footer .cke_resizer { + margin-top: 21px; +} + +/* tabs */ + +.cke_skin_office2003 .cke_dialog_tabs +{ + height: 23px; + background-color: #8db1ff; + display: inline-block; + margin-left:10px; + margin-right:10px; + margin-top:-23px; + position: absolute; + z-index: 2; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_tabs +{ + right: 10px; +} + +.cke_skin_office2003 a.cke_dialog_tab, +.cke_skin_office2003 a:link.cke_dialog_tab, +.cke_skin_office2003 a:active.cke_dialog_tab, +.cke_skin_office2003 a:hover.cke_dialog_tab, +.cke_skin_office2003 a:visited.cke_dialog_tab +{ + color: #0E3460; + border-left: 1px solid #2b66c9; + border-right: 1px solid #2b66c9; + border-top: 1px solid #2b66c9; + height: 14px; + padding: 4px 5px; + display: inline-block; + cursor: pointer; +} + +/* Gecko 1.8 layout workaround. */ +.cke_skin_office2003 .cke_browser_gecko18 a.cke_dialog_tab, +.cke_skin_office2003 .cke_browser_gecko18 a:link.cke_dialog_tab, +.cke_skin_office2003 .cke_browser_gecko18 a:active.cke_dialog_tab, +.cke_skin_office2003 .cke_browser_gecko18 a:hover.cke_dialog_tab, +.cke_skin_office2003 .cke_browser_gecko18 a:visited.cke_dialog_tab +{ + display: inline; + position: relative; + top: 6px; +} + +.cke_skin_office2003 a:hover.cke_dialog_tab +{ + background-color: #f7f8fd; +} +.cke_skin_office2003 .cke_hc a:hover.cke_dialog_tab +{ + padding: 2px 3px !important; + border-width: 3px; +} + +.cke_skin_office2003 a.cke_dialog_tab_selected, +.cke_skin_office2003 a:link.cke_dialog_tab_selected, +.cke_skin_office2003 a:active.cke_dialog_tab_selected, +.cke_skin_office2003 a:hover.cke_dialog_tab_selected, +.cke_skin_office2003 a:visited.cke_dialog_tab_selected +{ + border-bottom: 1px solid #f7f8fd; + background-color: #f7f8fd; + font-weight: bold; + cursor: default; +} +.cke_skin_office2003 .cke_hc a.cke_dialog_tab_selected, +.cke_skin_office2003 .cke_hc a:link.cke_dialog_tab_selected, +.cke_skin_office2003 .cke_hc a:active.cke_dialog_tab_selected, +.cke_skin_office2003 .cke_hc a:hover.cke_dialog_tab_selected, +.cke_skin_office2003 .cke_hc a:visited.cke_dialog_tab_selected +{ + padding: 2px 3px !important; + border-width: 3px; +} + +/* single_page */ + +.cke_skin_office2003 .cke_single_page .cke_dialog_tabs +{ + display: none; +} + +.cke_skin_office2003 .cke_hc .cke_dialog_tabs a, +.cke_skin_office2003 .cke_hc .cke_dialog_footer a +{ + opacity: 1.0; + filter: alpha(opacity=100); + border: 1px solid white; +} + +.cke_skin_office2003 .cke_single_page .cke_dialog_title +{ + padding-bottom: 3px; +} + +.cke_skin_office2003 .cke_dialog_ui_vbox table, +.cke_skin_office2003 .cke_dialog_ui_hbox table +{ + margin: auto; +} + +.cke_skin_office2003 .cke_dialog_ui_vbox_child +{ + padding: 5px 0px; +} + +.cke_skin_office2003 input.cke_dialog_ui_input_text, +.cke_skin_office2003 input.cke_dialog_ui_input_password +{ + background-color: white; + border: none; + padding: 0px; + width: 100%; + height: 14px; +} + +.cke_skin_office2003 div.cke_dialog_ui_input_text, +.cke_skin_office2003 div.cke_dialog_ui_input_password +{ + background-color: white; + border: 1px solid #a0a0a0; + padding: 1px 0px; + /* IE6/Quirks - make sure the content does not overflow (#7321) */ + _width: 99.9%; +} + +/* The absolute position is required for IE7 on text inputs not to stretch dialog horizontally. (#8971)*/ +.cke_skin_office2003 .cke_browser_ie7 input.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_ie7 input.cke_dialog_ui_input_password +{ + position: absolute; +} +.cke_skin_office2003 .cke_browser_ie7 div.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_ie7 div.cke_dialog_ui_input_password +{ + height:14px; + position: relative; +} + +/* Opera/IE doesn't leave enough padding in text input for cursor to blink in RTL. (#6087) */ +.cke_skin_office2003 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_password, +.cke_skin_office2003 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_password +{ + padding-right: 2px +} + +/* Compensate the padding added above on container. */ +.cke_skin_office2003 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_password, +.cke_skin_office2003 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_password +{ + padding-left: 2px; +} + +.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_vbox_child, +.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_child, +.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_first, +.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_last +{ + padding-right: 2px !important; +} + +.cke_skin_office2003 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text { + padding-right: 1px; +} + +.cke_skin_office2003 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_password +{ + border-width: 0px; +} + +.cke_skin_office2003 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_text, +.cke_skin_office2003 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_password +{ + border-width: 1px; +} + +.cke_skin_office2003 textarea.cke_dialog_ui_input_textarea +{ + background-color: white; + border: none; + padding: 0px; + width: 100%; + /* + * IE6 BUG: Scrollbars in textareas can overflow even if the outer DIV is set to overflow:hidden. + * So leave 1% width for the scrollbar. In most situations the 1% isn't noticeable by users. + */ + _width: 99%; + overflow: auto; + resize: none; +} + +.cke_skin_office2003 div.cke_dialog_ui_input_textarea +{ + background-color: white; + border: 1px solid #a0a0a0; + padding: 1px 0px; +} + +/* RTL + IE6: Input overflows dialog element. (#7321) */ +.cke_skin_office2003 .cke_rtl .cke_dialog_ui_labeled_content +{ + _width: 95%; +} + +.cke_skin_office2003 div.cke_disabled .cke_dialog_ui_labeled_content * +{ + background-color : #a0a0a0; + cursor : default; +} + +.cke_skin_office2003 .cke_dialog_ui_hbox +{ + width: 100%; +} + +.cke_skin_office2003 .cke_dialog_ui_hbox_first, +.cke_skin_office2003 .cke_dialog_ui_hbox_child, +.cke_skin_office2003 .cke_dialog_ui_hbox_last +{ + vertical-align: top; +} + +.cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_first, +.cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_child +{ + padding-right: 10px; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_first, +.cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_child +{ + padding-left: 10px; +} + +/* button */ + +.cke_skin_office2003 a.cke_dialog_ui_button +{ + border-collapse: separate; + cursor: default; +} + +.cke_skin_office2003 a.cke_dialog_ui_button_ok span, +.cke_skin_office2003 a.cke_dialog_ui_button_cancel span +{ + width:60px; +} + +.cke_skin_office2003 span.cke_dialog_ui_button +{ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -678px; + background-repeat: repeat-x; + border: #0E3460 1px solid; + padding: 2px 10px; + text-align: center; + color: #0E3460; + background-color: #8db1ff; + display: inline-block; + cursor: default; +} + +/* Gecko 1.8 does not support display: inline-block */ +.cke_skin_office2003 .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button +{ + display: block; +} + +.cke_skin_office2003 a.cke_dialog_ui_button span.cke_disabled +{ + border: #898980 1px solid; + color: #5e5e55; + background-color: #c5c5b3; +} + +.cke_skin_office2003 a:focus span.cke_dialog_ui_button, +.cke_skin_office2003 a:active span.cke_dialog_ui_button +{ + background-color: #8db1ff; +} +.cke_skin_office2003 .cke_hc a:focus span.cke_dialog_ui_button, +.cke_skin_office2003 .cke_hc a:active span.cke_dialog_ui_button +{ + border-width: 2px; +} + +.cke_skin_office2003 .cke_dialog_footer_buttons +{ + display: inline-table; + margin-right: 12px; + margin-left: 12px; + width: auto; + position: relative; +} + +/* Gecko 1.8 does not support for display: inline-table */ +.cke_skin_office2003 .cke_browser_gecko18 .cke_dialog_footer_buttons +{ + display: inline; +} + +.cke_skin_office2003 .cke_dialog_footer_buttons span.cke_dialog_ui_button +{ + margin: 7px 0; +} + +.cke_skin_office2003 .cke_browser_ie7 .cke_dialog_footer_buttons +{ + position: static; +} + +.cke_skin_office2003 strong +{ + font-weight: bold; +} + +/* close_button */ + +.cke_skin_office2003 a.cke_dialog_close_button, +.cke_skin_office2003 a:hover.cke_dialog_close_button, +.cke_skin_office2003 .cke_browser_ie6 a.cke_dialog_close_button, +.cke_skin_office2003 .cke_browser_ie6 a:hover.cke_dialog_close_button +{ + background-image: url(images/sprites.png); + background-repeat: no-repeat; + background-position: -20px -655px; + position: absolute; + cursor: pointer; + text-align: center; + height: 21px; + width: 21px; + top: 4px; + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/sprites_ie6.png); +} + +.cke_skin_office2003 a.cke_dialog_close_button span +{ + display: none; +} + +.cke_skin_office2003 .cke_ltr a.cke_dialog_close_button +{ + right: 22px; +} + +.cke_skin_office2003 .cke_rtl a.cke_dialog_close_button, +.cke_skin_office2003 .cke_rtl a:hover.cke_dialog_close_button +{ + left: 16px; + _top: 6px; +} + +.cke_skin_office2003 .cke_browser_ie6.cke_rtl a.cke_dialog_close_button, +.cke_skin_office2003 .cke_browser_ie6.cke_rtl a:hover.cke_dialog_close_button +{ + position: relative; + float: left; + margin-top: -55px; + margin-left: -7px; +} + +.cke_skin_office2003 .cke_browser_iequirks.cke_rtl.cke_single_page a.cke_dialog_close_button, +.cke_skin_office2003 .cke_browser_iequirks.cke_rtl.cke_single_page a:hover.cke_dialog_close_button +{ + margin-top: -32px; +} + +.cke_skin_office2003 .cke_browser_iequirks.cke_ltr a.cke_dialog_close_button, +.cke_skin_office2003 .cke_browser_iequirks.cke_ltr a:hover.cke_dialog_close_button +{ + margin-top: 0; +} + +.cke_skin_office2003 .cke_dialog_ui_input_select +{ + border: 1px solid #a0a0a0; + background-color: white; +} + +.cke_skin_office2003 .cke_dialog_ui_input_file +{ + width: 100%; + height: 25px; +} + +/* + * Some utility CSS classes for dialog authors. + */ +.cke_skin_office2003 .cke_dialog .cke_dark_background +{ + background-color: #eaead1; +} + +.cke_skin_office2003 .cke_dialog .cke_hand +{ + cursor: pointer; +} + +.cke_skin_office2003 .cke_dialog .cke_centered +{ + text-align: center; +} + +.cke_skin_office2003 .cke_dialog a.cke_btn_reset +{ + float: right; + background-position: 0 -32px; + background-image: url(images/mini.gif); + width: 16px; + height: 16px; + background-repeat: no-repeat; + border: 1px none; + font-size: 1px; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_reset +{ + float: left; +} + +.cke_skin_office2003 .cke_dialog a.cke_btn_locked, +.cke_skin_office2003 .cke_dialog a.cke_btn_unlocked +{ + float: left; + background-position: 0 0; + background-image: url(images/mini.gif); + width: 16px; + height: 16px; + background-repeat: no-repeat; + border: none 1px; + font-size: 1px; +} +.cke_skin_office2003 .cke_dialog a.cke_btn_locked .cke_icon +{ + display:none; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_locked, +.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_unlocked +{ + float: right; +} + +.cke_skin_office2003 .cke_dialog a.cke_btn_unlocked +{ + background-position: 0 -16px; + background-image: url(images/mini.gif); +} + +.cke_skin_office2003 .cke_dialog .cke_btn_over +{ + border: outset 1px; + cursor: pointer; +} + +.cke_skin_office2003 .cke_dialog .ImagePreviewBox +{ + border : 2px ridge black; + overflow : scroll; + height : 210px; + width : 230px; + padding : 2px; + background-color : white; +} + +.cke_skin_office2003 .cke_dialog .ImagePreviewBox table td { + white-space: normal; +} + +/* Fix iframedialog's height doesn't stretch to 100% #4863.*/ +.cke_skin_office2003 .cke_browser_iequirks .cke_dialog_page_contents +{ + _position: absolute; +} + +.cke_skin_office2003 .cke_dialog .ImagePreviewLoader +{ + position: absolute; + white-space : normal; + overflow : hidden; + height : 160px; + width : 230px; + margin : 2px; + padding : 2px; + opacity : 0.9; + filter : alpha(opacity=90); + + background-color : #e4e4e4; +} + +.cke_skin_office2003 .cke_dialog .FlashPreviewBox +{ + white-space : normal; + border : 2px ridge black; + overflow : auto; + height : 160px; + width : 390px; + padding : 2px; + background-color : white; +} + +.cke_skin_office2003 .cke_dialog .cke_pastetext +{ + width: 346px; + height: 170px; +} + +.cke_skin_office2003 .cke_dialog .cke_pastetext textarea +{ + width: 340px; + height: 170px; + resize: none; +} + +.cke_skin_office2003 .cke_dialog iframe.cke_pasteframe +{ + width: 346px; + height: 130px; + background-color: white; + border: 1px solid black; +} + +.cke_skin_office2003 .cke_dialog .cke_dark_background +{ + text-align : center; + background-color: #eaead1; + font-size : 14px; +} + +.cke_skin_office2003 .cke_dialog .cke_light_background +{ + text-align : center; + background-color: #ffffbe; +} + +.cke_skin_office2003 .cke_dialog .cke_hand +{ + cursor: pointer; +} + +.cke_skin_office2003 .cke_disabled +{ + color: #a0a0a0; +} + +/* High Contrast Mode */ +.cke_skin_office2003 .cke_hc .cke_dialog_title, +.cke_skin_office2003 .cke_hc .cke_dialog_tabs, +.cke_skin_office2003 .cke_hc .cke_dialog_contents, +.cke_skin_office2003 .cke_hc .cke_dialog_footer +{ + border-left: 1px solid; + border-right: 1px solid; +} + +.cke_skin_office2003 .cke_hc .cke_dialog_title +{ + border-top: 1px solid; +} + +.cke_skin_office2003 .cke_hc .cke_dialog_footer +{ + border-bottom: 1px solid; +} + +.cke_skin_office2003 .cke_hc .cke_dialog_close_button span +{ + display: inline; + cursor: pointer; + font-weight: bold; + position: relative; + top: 3px; +} + +.cke_skin_office2003 .cke_dialog_body .cke_label +{ + display: none; +} + +.cke_skin_office2003 .cke_dialog_body label.cke_required +{ + font-weight: bold; +} + +.cke_skin_office2003 .cke_hc .cke_dialog_body .cke_label +{ + display: inline; + cursor: inherit; +} + +.cke_skin_office2003 .cke_hc a.cke_btn_locked, +.cke_skin_office2003 .cke_hc a.cke_btn_unlocked, +.cke_skin_office2003 .cke_hc a.cke_btn_reset +{ + border-style: solid; + float: left; + width: auto; + height: auto; + padding: 0 2px; +} +.cke_skin_office2003 .cke_hc a.cke_btn_locked .cke_icon +{ + display:inline; +} + +.cke_skin_office2003 .cke_rtl.cke_hc a.cke_btn_locked, +.cke_skin_office2003 .cke_rtl.cke_hc a.cke_btn_unlocked, +.cke_skin_office2003 .cke_rtl.cke_hc a.cke_btn_reset +{ + float: right; +} + +/** + * Styles specific to "cellProperties" dialog. + */ + +.cke_skin_office2003 .cke_dialog_contents a.colorChooser +{ + display:block; + margin-top:12px; + margin-left: 10px; + width: 40px; +} + +.cke_skin_office2003 .cke_dialog_contents a.colorChooser .cke_dialog_ui_button +{ + width:100%; +} + +.cke_skin_office2003 .cke_rtl .cke_dialog_contents a.colorChooser +{ + margin-right: 10px; +} + +/* Compensate focus outline for some input elements. (#6200) */ +.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus, +.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_radio_input:focus, +.cke_skin_office2003 .cke_browser_opera .cke_dialog_ui_checkbox_input:focus, +.cke_skin_office2003 .cke_browser_opera .cke_dialog_ui_radio_input:focus, +.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_input_select:focus, +.cke_skin_office2003 .cke_browser_gecko .cke_btn_over, +.cke_skin_office2003 .cke_browser_opera .cke_btn_over, +.cke_skin_office2003 .cke_browser_ie .cke_btn_over +{ + outline: 1px dotted #696969; +} + +/* IE<8 instead doesn't support CSS outline property, emulated with dotted border. */ + +/* Predefined border to avoid visual size change impact. */ +.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_checkbox_input, +.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_ratio_input, +.cke_skin_office2003 .cke_browser_ie .cke_btn_reset, +.cke_skin_office2003 .cke_browser_ie .cke_btn_locked, +.cke_skin_office2003 .cke_browser_ie .cke_btn_unlocked +{ + *border: 1px solid transparent !important; + /* Emulating border-color: transparent in IE6.*/ + /* Emulating border-color: transparent in IE6.*/ + -border: 1px solid red !important; + -filter: chroma(color=red); +} + +.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_focused, +.cke_skin_office2003 .cke_browser_ie .cke_btn_over +{ + *border: 1px dotted #696969 !important; +} + +.cke_skin_office2003 .cke_iframe_shim +{ + display:block; + position:absolute; + top:0; + left:0; + z-index:-1; + filter:alpha(opacity=0); + width:100%; + height:100%; +} + +.cke_dialog label +{ + display: inline; + margin-bottom: auto; + cursor: default; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/editor.css b/htdocs/includes/ckeditor/_source/skins/office2003/editor.css new file mode 100644 index 0000000000000000000000000000000000000000..52aa1c3bb8fdc8d98105e532f2ea546c440e0da0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/editor.css @@ -0,0 +1,25 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@import url("reset.css"); +@import url("mainui.css"); +@import url("panel.css"); +@import url("toolbar.css"); +@import url("menu.css"); +@import url("richcombo.css"); +@import url("elementspath.css"); +@import url("icons.css"); +@import url("presets.css"); + +/* Restore the container visibility */ +html .cke_skin_office2003 +{ + visibility: inherit; +} + +html.cke_skin_office2003_container +{ + visibility: visible; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/elementspath.css b/htdocs/includes/ckeditor/_source/skins/office2003/elementspath.css new file mode 100644 index 0000000000000000000000000000000000000000..3cd228b4714de3e05c8fded9670beaf3ca839d0f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/elementspath.css @@ -0,0 +1,74 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@media print +{ + .cke_path + { + display: none; + } +} + +.cke_skin_office2003 .cke_path +{ + padding: 3px 3px 0 3px; + display: inline-block; + float: left; +} + +.cke_skin_office2003 .cke_rtl .cke_path +{ + float: right; +} + +.cke_skin_office2003 .cke_path a, +.cke_skin_office2003 .cke_path .cke_empty +{ + display: inline-block; + float: left; + border: solid 1px #f7f8fd; + background-color: #f7f8fd; + padding-top: 1px; + padding-bottom: 1px; + padding-left: 4px; + padding-right: 4px; + margin-bottom : 3px; + cursor: default; +} + +.cke_skin_office2003 .cke_path .cke_empty +{ + visibility: hidden; +} + +.cke_skin_office2003 .cke_rtl .cke_path a, +.cke_skin_office2003 .cke_rtl .cke_path cke_empty +{ + float: right; +} + +.cke_skin_office2003 .cke_path a:hover, +.cke_skin_office2003 .cke_path a:focus, +.cke_skin_office2003 .cke_path a:active /* IE */ +{ + border: solid 1px #316ac5; + background-color: #dff1ff; + padding-top: 1px; + padding-bottom: 1px; + padding-left: 4px; + padding-right: 4px; + outline: none; +} + +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_path a, +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_path .cke_empty +{ + float: none; +} + +.cke_skin_office2003 .cke_path .cke_label +{ + display: none; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/icons.css b/htdocs/includes/ckeditor/_source/skins/office2003/icons.css new file mode 100644 index 0000000000000000000000000000000000000000..d1f6c4be278c4cd8b4d79930ac922bd19a832b40 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/icons.css @@ -0,0 +1,363 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_office2003 .cke_button_source .cke_icon +{ + background-position: 0 0; +} + +.cke_skin_office2003 .cke_button_docProps .cke_icon +{ + background-position: 0 -16px; +} + +.cke_skin_office2003 .cke_button_newpage .cke_icon +{ + background-position: 0 -48px; +} + +.cke_skin_office2003 .cke_button_preview .cke_icon +{ + background-position: 0 -64px; +} + +.cke_skin_office2003 .cke_button_cut .cke_icon +{ + background-position: 0 -96px; +} + +.cke_skin_office2003 .cke_button_copy .cke_icon +{ + background-position: 0 -112px; +} + +.cke_skin_office2003 .cke_button_paste .cke_icon +{ + background-position: 0 -128px; +} + +.cke_skin_office2003 .cke_button_pastetext .cke_icon +{ + background-position: 0 -144px; +} + +.cke_skin_office2003 .cke_button_find .cke_icon +{ + background-position: 0 -240px; +} + +.cke_skin_office2003 .cke_button_replace .cke_icon +{ + background-position: 0 -256px; +} + +.cke_skin_office2003 .cke_button_selectAll .cke_icon +{ + background-position: 0 -272px; +} + +.cke_skin_office2003 .cke_button_removeFormat .cke_icon +{ + background-position: 0 -288px; +} + +.cke_skin_office2003 .cke_button_bold .cke_icon +{ + background-position: 0 -304px; +} + +.cke_skin_office2003 .cke_button_italic .cke_icon +{ + background-position: 0 -320px; +} + +.cke_skin_office2003 .cke_button_underline .cke_icon +{ + background-position: 0 -336px; +} + +.cke_skin_office2003 .cke_button_strike .cke_icon +{ + background-position: 0 -352px; +} + +.cke_skin_office2003 .cke_button_subscript .cke_icon +{ + background-position: 0 -368px; +} + +.cke_skin_office2003 .cke_button_superscript .cke_icon +{ + background-position: 0 -384px; +} + +.cke_skin_office2003 .cke_button_table .cke_icon +{ + background-position: 0 -608px; +} + +.cke_skin_office2003 .cke_button_horizontalrule .cke_icon +{ + background-position: 0 -624px; +} + +.cke_skin_office2003 .cke_button_smiley .cke_icon +{ + background-position: 0 -640px; +} + +.cke_skin_office2003 .cke_button_link .cke_icon +{ + background-position: 0 -528px; +} + +.cke_skin_office2003 .cke_button_unlink .cke_icon +{ + background-position: 0 -544px; +} + +.cke_skin_office2003 .cke_button_anchor .cke_icon +{ + background-position: 0 -560px; +} + +.cke_skin_office2003 .cke_button_image .cke_icon +{ + background-position: 0 -576px; +} + +.cke_skin_office2003 .cke_button_flash .cke_icon +{ + background-position: 0 -592px; +} + +.cke_skin_office2003 .cke_button_specialchar .cke_icon +{ + background-position: 0 -656px; +} + +.cke_skin_office2003 .cke_button_pagebreak .cke_icon +{ + background-position: 0 -672px; +} + +.cke_skin_office2003 .cke_button_print .cke_icon +{ + background-position: 0 -176px; +} + +.cke_skin_office2003 .cke_button_checkspell .cke_icon, +.cke_skin_office2003 .cke_button_scayt .cke_icon +{ + background-position: 0 -192px; +} + +.cke_skin_office2003 .cke_button_pagebreak .cke_icon +{ + background-position: 0 -672px; +} + +.cke_skin_office2003 .cke_button_textcolor .cke_icon +{ + background-position: 0 -704px; +} + +.cke_skin_office2003 .cke_button_bgcolor .cke_icon +{ + background-position: 0 -720px; +} + +.cke_skin_office2003 .cke_button_form .cke_icon +{ + background-position: 0 -752px; +} + +.cke_skin_office2003 .cke_button_checkbox .cke_icon +{ + background-position: 0 -768px; +} + +.cke_skin_office2003 .cke_button_radio .cke_icon +{ + background-position: 0 -784px; +} + +.cke_skin_office2003 .cke_button_textfield .cke_icon +{ + background-position: 0 -800px; +} + +.cke_skin_office2003 .cke_button_textarea .cke_icon +{ + background-position: 0 -816px; +} +.cke_skin_office2003 .cke_button_showblocks .cke_icon +{ + background-position: 0 -1136px; +} + +.cke_skin_office2003 .cke_button_select .cke_icon +{ + background-position: 0 -832px; +} + +.cke_skin_office2003 .cke_button_button .cke_icon +{ + background-position: 0 -848px; +} + +.cke_skin_office2003 .cke_button_imagebutton .cke_icon +{ + background-position: 0 -864px; +} + +.cke_skin_office2003 .cke_button_hiddenfield .cke_icon +{ + background-position: 0 -880px; +} + +.cke_skin_office2003 .cke_button_undo .cke_icon +{ + background-position: 0 -208px; +} + +.cke_skin_office2003 .cke_rtl .cke_button_undo .cke_icon +{ + background-position: 0 -224px; +} + +.cke_skin_office2003 .cke_button_redo .cke_icon +{ + background-position: 0 -224px; +} + +.cke_skin_office2003 .cke_rtl .cke_button_redo .cke_icon +{ + background-position: 0 -208px; +} + +.cke_skin_office2003 .cke_button_templates .cke_icon +{ + background-position: 0 -80px; +} + +.cke_skin_office2003 .cke_button_numberedlist .cke_icon +{ + background-position: 0 -400px; +} + +.cke_skin_office2003 .cke_button_bulletedlist .cke_icon +{ + background-position: 0 -416px; +} + +.cke_skin_office2003 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon +{ + background-position: 0 -1217px; +} + +.cke_skin_office2003 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon +{ + background-position: 0 -1233px; +} + +.cke_skin_office2003 .cke_button_outdent .cke_icon +{ + background-position: 0 -432px; +} + +.cke_skin_office2003 .cke_button_indent .cke_icon +{ + background-position: 0 -448px; +} + +.cke_skin_office2003 .cke_mixed_dir_content .cke_button_indent .cke_icon +{ + background-position: 0 -1265px; +} + +.cke_skin_office2003 .cke_mixed_dir_content .cke_button_outdent .cke_icon +{ + background-position: 0 -1249px; +} + +.cke_skin_office2003 .cke_button_justifyleft .cke_icon +{ + background-position: 0 -464px; +} + +.cke_skin_office2003 .cke_button_justifycenter .cke_icon +{ + background-position: 0 -480px; +} + +.cke_skin_office2003 .cke_button_justifyright .cke_icon +{ + background-position: 0 -496px; +} + +.cke_skin_office2003 .cke_button_justifyblock .cke_icon +{ + background-position: 0 -512px; +} + +.cke_skin_office2003 .cke_button_blockquote .cke_icon +{ + background-position: 0 -1152px; +} + +.cke_skin_office2003 .cke_button_flash .cke_icon +{ + background-position: 0 -592px; +} + +.cke_skin_office2003 .cke_button_pastefromword .cke_icon +{ + background-position: 0 -160px; +} + +.cke_skin_office2003 .cke_button_save .cke_icon +{ + background-position: 0 -32px; +} + +.cke_skin_office2003 .cke_button_about .cke_icon +{ + background-position: 0 -736px; +} + +.cke_skin_office2003 .cke_button_maximize .cke_icon +{ + background-position: 0 -1040px; +} + +.cke_skin_office2003 .cke_button_creatediv .cke_icon +{ + background-position: 0 -1168px; +} + +.cke_skin_office2003 .cke_button_editdiv .cke_icon +{ + background-position: 0 -1184px; +} + +.cke_skin_office2003 .cke_button_removediv .cke_icon +{ + background-position: 0 -1200px; +} + +.cke_skin_office2003 .cke_button_bidirtl .cke_icon +{ + background-position: 0 -1072px; +} + +.cke_skin_office2003 .cke_button_bidiltr .cke_icon +{ + background-position: 0 -1056px; +} +.cke_skin_office2003 .cke_button_iframe .cke_icon +{ + background-position: 0 -1279px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/icons.png b/htdocs/includes/ckeditor/_source/skins/office2003/icons.png new file mode 100644 index 0000000000000000000000000000000000000000..7c3bf195dd35a2dd3773a5cae7e4712a1133a5d5 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/icons.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/icons_rtl.png b/htdocs/includes/ckeditor/_source/skins/office2003/icons_rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..83eee28ac79d5e00e8ec9136ba491c8c0a2b8352 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/icons_rtl.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides.gif b/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides.gif new file mode 100644 index 0000000000000000000000000000000000000000..5840d01738024e136c0e3f7fc112fa70845dcc31 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides.png b/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..7da9821879b9c5b9753084e6a461f44b3c8bc171 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png b/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..24fe13aedb4cd5f95a3bbda0eef1588e8f915246 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/images/mini.gif b/htdocs/includes/ckeditor/_source/skins/office2003/images/mini.gif new file mode 100644 index 0000000000000000000000000000000000000000..54d910741607aeef28fb9b5882f77f14a3d975ab Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/images/mini.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/images/noimage.png b/htdocs/includes/ckeditor/_source/skins/office2003/images/noimage.png new file mode 100644 index 0000000000000000000000000000000000000000..159811305af7fc78662a53949f9c62bd702785af Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/images/noimage.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/images/sprites.png b/htdocs/includes/ckeditor/_source/skins/office2003/images/sprites.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d3a727b7456eb6c6942ba967dd64cad948aba5 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/images/sprites.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/images/sprites_ie6.png b/htdocs/includes/ckeditor/_source/skins/office2003/images/sprites_ie6.png new file mode 100644 index 0000000000000000000000000000000000000000..94073b2a454b6f0d0a46b981971173c95d02c54c Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/office2003/images/sprites_ie6.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/mainui.css b/htdocs/includes/ckeditor/_source/skins/office2003/mainui.css new file mode 100644 index 0000000000000000000000000000000000000000..f266b4922e508b286bb0b5126ece9c2d92a576f0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/mainui.css @@ -0,0 +1,153 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_office2003 .cke_editor +{ + display: inline-table; + width: 100%; +} +.cke_skin_office2003 .cke_browser_webkit .cke_editor +{ + display: table; /* #6684 */ +} + +.cke_skin_office2003 span.cke_browser_webkit, +.cke_skin_office2003 span.cke_browser_gecko18 +{ + display: block; +} + +.cke_skin_office2003, +.cke_skin_office2003 .cke_wrapper +{ + display: block; +} + +.cke_skin_office2003 .cke_top, +.cke_skin_office2003 .cke_bottom, + .cke_shared .cke_skin_office2003 +{ + background-color: #f7f8fd; +} + +.cke_skin_office2003 .cke_top +{ + border-top: solid 1px #fafaf5; + border-left: solid 1px #fafaf5; + border-right: solid 1px #696969; + border-bottom: solid 2px #696969; +} + +.cke_skin_office2003 .cke_rtl .cke_top +{ + border-left: solid 1px #696969; + border-right: solid 1px #fafaf5; +} + +.cke_skin_office2003 .cke_bottom +{ + border-left: solid 1px #696969; + border-right: solid 1px #696969; + border-bottom: solid 1px #696969; +} + +.cke_skin_office2003 .cke_contents +{ + border: solid 1px #696969; + /* Prevent background content from penetrate through when switching between editing modes. (#4918) */ + background-color: white; +} + +.cke_skin_office2003 .cke_focus +{ + outline: auto 5px -webkit-focus-ring-color; +} + +.cke_skin_office2003 textarea.cke_source +{ + font-family: 'Courier New' , Monospace; + font-size: small; + white-space: pre; + background-color: #fff; +} + +.cke_skin_office2003 .cke_browser_iequirks textarea.cke_source +{ + /* For IE6+Quirks only */ + _white-space: normal; +} + +.cke_skin_office2003 .cke_resizer +{ + width: 12px; + height: 12px; + margin-top: 16px; + display: block; + float: right; + /* resizer.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -1088px; + background-repeat: no-repeat; + cursor: se-resize; +} + +/* Adobe AIR doesn't support *-resize cursor shape. */ +.cke_skin_office2003 .cke_browser_air .cke_resizer, +.cke_skin_office2003 .cke_browser_air .cke_rtl .cke_resizer +{ + cursor: move; +} + +.cke_skin_office2003 .cke_resizer_rtl +{ + cursor: sw-resize; + /* resizer_rtl.gif*/ + background-position: 0 -1115px; + float: left; +} + +.cke_skin_office2003 .cke_resizer_horizontal, +.cke_skin_office2003 .cke_rtl .cke_resizer_horizontal +{ + cursor: e-resize; +} + +.cke_skin_office2003 .cke_resizer_vertical, +.cke_skin_office2003 .cke_rtl .cke_resizer_vertical +{ + cursor: n-resize; +} + +.cke_skin_office2003 .cke_maximized .cke_resizer +{ + display: none; +} + +.cke_skin_office2003 .cke_browser_ie6 .cke_contents textarea, +.cke_skin_office2003 .cke_browser_ie7 .cke_contents textarea +{ + position: absolute; +} + +/* All voice labels are not displayed. */ +.cke_skin_office2003 .cke_voice_label +{ + display: none; +} + +.cke_skin_office2003 legend.cke_voice_label +{ + display: none; +} + +.cke_skin_office2003 .cke_browser_ie legend.cke_voice_label +{ + position: absolute; + display: block; + width: 0; + height: 0; + overflow: hidden; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/menu.css b/htdocs/includes/ckeditor/_source/skins/office2003/menu.css new file mode 100644 index 0000000000000000000000000000000000000000..859b870969fc4ec8a0525ab5607a7a24ff080acb --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/menu.css @@ -0,0 +1,229 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_office2003 .cke_contextmenu +{ + padding: 2px; +} + +.cke_skin_office2003 .cke_menuitem a +{ + display:block; +} + +.cke_skin_office2003 .cke_menuitem span +{ + cursor: default; +} + +.cke_skin_office2003 .cke_menuitem a:hover, +.cke_skin_office2003 .cke_menuitem a:focus, +.cke_skin_office2003 .cke_menuitem a:active +{ + background-color: #8db1ff; + display:block; +} + +.cke_hc .cke_menuitem a:hover, +.cke_hc .cke_menuitem a:focus, +.cke_hc .cke_menuitem a:active +{ + border: 2px solid; +} + +.cke_skin_office2003 .cke_menuitem .cke_icon +{ + background-image: url(icons.png); + background-position: 100px; + background-repeat:no-repeat; + background-color: transparent; + width: 16px; + height: 16px; + float: left; +} + +.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon +{ + background-image: url(icons_rtl.png); +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_browser_ie .cke_skin_office2003 .cke_menuitem .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie6 .cke_skin_office2003 .cke_menuitem .cke_icon, +.cke_browser_ie .cke_skin_office2003 .cke_menuitem.cke_noalphafix .cke_icon +{ + filter: ; +} + +.cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_browser_ie .cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie6 .cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon, +.cke_browser_ie .cke_skin_office2003 .cke_menuitem.cke_noalphafix .cke_disabled .cke_icon +{ + filter: ; +} + +.cke_skin_office2003 .cke_menuitem .cke_icon_wrapper +{ + background-color: #f7f8fd; + border: solid 4px #f7f8fd; + width: 16px; + height: 16px; + float: left; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + clear: both; +} + +.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon_wrapper +{ + float: right; +} + +.cke_skin_office2003 .cke_menuitem a:hover .cke_icon_wrapper, +.cke_skin_office2003 .cke_menuitem a:focus .cke_icon_wrapper, +.cke_skin_office2003 .cke_menuitem a:active .cke_icon_wrapper +{ + background-color: #9d9d9d; + border: solid 4px #9d9d9d; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_skin_office2003 .cke_menuitem a:hover.cke_disabled .cke_icon_wrapper, +.cke_skin_office2003 .cke_menuitem a:focus.cke_disabled .cke_icon_wrapper, +.cke_skin_office2003 .cke_menuitem a:active.cke_disabled .cke_icon_wrapper +{ + background-color: #f7f8fd; + border: solid 4px #f7f8fd; +} + +.cke_skin_office2003 .cke_menuitem .cke_label +{ + display:block; + padding-right: 3px; + padding-top: 5px; + padding-left: 4px; + height:19px; + margin-left: 24px; + background-color: #fff; +} +/* Set these after the document has been loaded and we know the dimensions*/ +.cke_skin_office2003 .cke_frameLoaded .cke_menuitem .cke_label +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_label +{ + padding-right: 0; + margin-left: 0; + padding-left: 3px; + margin-right: 28px; +} + +.cke_skin_office2003 .cke_menuitem a.cke_disabled .cke_label +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.cke_skin_office2003 .cke_menuitem a:hover .cke_label, +.cke_skin_office2003 .cke_menuitem a:focus .cke_label, +.cke_skin_office2003 .cke_menuitem a:active .cke_label +{ + background-color: #8db1ff; +} + +.cke_skin_office2003 .cke_menuitem a.cke_disabled:hover .cke_label, +.cke_skin_office2003 .cke_menuitem a.cke_disabled:focus .cke_label, +.cke_skin_office2003 .cke_menuitem a.cke_disabled:active .cke_label +{ + background-color: transparent; +} + +.cke_skin_office2003 .cke_menuseparator +{ + background-color: #f7f8fd; + height: 2px; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + + _font-size: 0; +} + +.cke_skin_office2003 .cke_menuarrow +{ + /* arrowright.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -1071px; + background-repeat: no-repeat; + height: 5px; + width: 3px; + float: right; + margin-right: 2px; + margin-top: 3px; +} + +.cke_rtl .cke_skin_office2003 .cke_menuarrow +{ + float: left; + margin-right: 0; + margin-left: 2px; + /* arrowleft.gif*/ + background-position: 0 -1050px; +} + +.cke_skin_office2003 .cke_menuarrow span +{ + display: none; +} + +.cke_hc .cke_skin_office2003 .cke_menuarrow +{ + width: auto; + margin-top: 0; +} + +.cke_hc .cke_skin_office2003 .cke_menuarrow span +{ + display: inline; +} + +/* #3766 In the context menu, long labels with second level menu get wrapped */ +.cke_browser_ie.cke_ltr .cke_skin_office2003 .cke_menuarrow +{ + position: absolute; + right: 2px; +} + +.cke_browser_ie.cke_rtl .cke_skin_office2003 .cke_menuarrow +{ + position: absolute; + left: 2px; +} +/* END #3766 */ diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/panel.css b/htdocs/includes/ckeditor/_source/skins/office2003/panel.css new file mode 100644 index 0000000000000000000000000000000000000000..a1bef49121c157effa540d3e7a3c49c31120ae77 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/panel.css @@ -0,0 +1,212 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_office2003 .cke_panel +{ + border: 1px solid #8f8f73; + background-color: #fff; + + width: 120px; + height: 100px; + + overflow:hidden; + + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +/* Ideally we would use "inherit here"... but you know... IE :( */ +.cke_skin_office2003 .cke_panel iframe +{ + width: 100%; + height: 100%; +} + +cke_skin_office2003 .cke_panel_frame .cke_label +{ + display: none; +} + +/* + * All the following styles are to be used inside the iframe that holds panel + * contents. We don't use the cke_skin_default there to avoid the reset to be + * active. + * This is not an issue as we'll never have two skins running inside the same + * panel iframe. + */ + +html.cke_skin_office2003_container +{ + overflow: auto; + overflow-x: hidden; +} + +body.cke_panel_frame +{ + overflow: auto; +} + +ul.cke_panel_list +{ + list-style-type: none; + margin: 3px; + padding: 0px; + white-space: nowrap; +} + +li.cke_panel_listItem +{ + margin: 0px; +} + +.cke_panel_listItem a +{ + padding: 2px; + display: block; + border: 1px solid #fff; + color: inherit !important; + text-decoration: none; + overflow: hidden; + text-overflow: ellipsis; +} + +/* IE6 */ +* html .cke_panel_listItem a +{ + width : 100%; + + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +/* IE7 */ +*:first-child+html .cke_panel_listItem a +{ + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +.cke_panel_listItem.cke_selected a +{ + border: 1px solid #ccc; + background-color: #e9f5ff; +} + +.cke_panel_listItem a:hover, +.cke_panel_listItem a:focus, +.cke_panel_listItem a:active +{ + border-color: #316ac5; + background-color: #dff1ff; +} + +.cke_hc .cke_panel_listItem.cke_selected a, +.cke_hc .cke_panel_listItem a:hover, +.cke_hc .cke_panel_listItem a:focus, +.cke_hc .cke_panel_listItem a:active +{ + border-width: 3px; + padding: 0px; +} + +.cke_panel_grouptitle +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; + font-weight: bold; + white-space: nowrap; + background-color: #dcdcdc; + color: #000; + margin:0px; + padding:3px; +} + +.cke_panel_listItem p, +.cke_panel_listItem h1, +.cke_panel_listItem h2, +.cke_panel_listItem h3, +.cke_panel_listItem h4, +.cke_panel_listItem h5, +.cke_panel_listItem h6, +.cke_panel_listItem pre +{ + margin-top: 3px; + margin-bottom: 3px; +} + +.cke_skin_office2003 .cke_button_textcolor_panel, +.cke_skin_office2003 .cke_button_bgcolor_panel +{ + width: 150px; + height: 135px; +} + +.cke_colorblock +{ + padding: 3px; + font-size: 11px; + font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif; +} + +.cke_colorblock, +.cke_colorblock a +{ + text-decoration: none; + color: #000; +} + +span.cke_colorbox +{ + width: 10px; + height: 10px; + border: #808080 1px solid; + float: left; +} + +.cke_rtl span.cke_colorbox +{ + float: right; +} + +a.cke_colorbox +{ + border: #fff 1px solid; + padding: 2px; + float: left; +} + +.cke_rtl a.cke_colorbox +{ + float: right; +} + +a:hover.cke_colorbox, +a:focus.cke_colorbox, +a:active.cke_colorbox +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} + +a.cke_colorauto, +a.cke_colormore +{ + border: #fff 1px solid; + padding: 2px; + display: block; + cursor: pointer; +} + +a:hover.cke_colorauto, +a:hover.cke_colormore, +a:focus.cke_colorauto, +a:focus.cke_colormore, +a:active.cke_colorauto, +a:active.cke_colormore +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/presets.css b/htdocs/includes/ckeditor/_source/skins/office2003/presets.css new file mode 100644 index 0000000000000000000000000000000000000000..31a10c4528ce0383943cace974f895b7984cc999 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/presets.css @@ -0,0 +1,49 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/* "Source" button label */ +.cke_skin_office2003 .cke_button_source .cke_label +{ + display: inline; +} + +/* "Styles" panel size */ +.cke_skin_office2003 .cke_styles_panel +{ + width: 150px; + height: 170px; +} + +/* "Format" panel size */ +.cke_skin_office2003 .cke_format_panel +{ + width: 150px; + height: 170px; +} + +/* "Font" panel size */ +.cke_skin_office2003 .cke_font_panel +{ + width: 150px; + height: 170px; +} + +/* "Font Size" panel size */ +.cke_skin_office2003 .cke_fontSize_panel +{ + height: 170px; +} + +/* "Font Size" combo width */ +.cke_skin_office2003 .cke_fontSize .cke_text +{ + width: 20px; +} + +/* "Font Size" combo width (IE Quirks) */ +.cke_skin_office2003 .cke_browser_iequirks .cke_fontSize .cke_text +{ + width: 32px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/reset.css b/htdocs/includes/ckeditor/_source/skins/office2003/reset.css new file mode 100644 index 0000000000000000000000000000000000000000..ae1d35591fb32d747ffb0b876b64310f71b7399a --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/reset.css @@ -0,0 +1,85 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Reset and Default Values + */ +.cke_skin_office2003 *, +.cke_skin_office2003 a:hover, +.cke_skin_office2003 a:link, +.cke_skin_office2003 a:visited, +.cke_skin_office2003 a:active +{ + margin: 0; + padding: 0; + border: 0; + background: transparent; + text-decoration: none; + font: normal normal normal 100% Sans-Serif; + width: auto; + height: auto; + border-collapse: collapse; + text-align: left; + vertical-align: baseline; + white-space: nowrap; + cursor: auto; + color: #000; + float: none; + + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.cke_skin_office2003 .cke_rtl *, +.cke_skin_office2003 .cke_rtl a:hover, +.cke_skin_office2003 .cke_rtl a:link, +.cke_skin_office2003 .cke_rtl a:visited, +.cke_skin_office2003 .cke_rtl a:active, +.cke_rtl .cke_skin_office2003 *, +.cke_rtl .cke_skin_office2003 a:hover, +.cke_rtl .cke_skin_office2003 a:link, +.cke_rtl .cke_skin_office2003 a:visited, +.cke_rtl .cke_skin_office2003 a:active +{ + text-align: right; +} + +.cke_skin_office2003 iframe +{ + vertical-align: inherit; /** For IE */ +} + +.cke_skin_office2003 textarea +{ + white-space: pre; +} + +.cke_skin_office2003 .cke_browser_gecko textarea +{ + cursor: text; +} + +.cke_skin_office2003 .cke_browser_gecko textarea[disabled] +{ + cursor: default; +} + +.cke_skin_office2003 input[type="text"], +.cke_skin_office2003 input[type="password"] +{ + cursor: text; +} + +.cke_skin_office2003 input[type="text"][disabled], +.cke_skin_office2003 input[type="password"][disabled] +{ + cursor: default; +} + +.cke_skin_office2003 fieldset +{ + padding: 10px; + border: 2px groove #E0DFE3; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/richcombo.css b/htdocs/includes/ckeditor/_source/skins/office2003/richcombo.css new file mode 100644 index 0000000000000000000000000000000000000000..9d63314f6db47a90604b3197a3e5d43206290b16 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/richcombo.css @@ -0,0 +1,309 @@ +/* Special Combo */ + +.cke_skin_office2003 .cke_rcombo +{ + display: inline-block; + margin-left: 2px; + margin-right: 2px; + margin-top: 2px; + vertical-align: top; +} + +.cke_skin_office2003 .cke_browser_ie .cke_rcombo +{ + #display: inline; +} + +.cke_skin_office2003 .cke_rcombopanel +{ + border: 1px solid #316ac5; + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + /*margin-left: 1px;*/ + /*_margin-left: 0;*/ +} + +.cke_skin_office2003 .cke_rcombo a +{ + display: inline-block; + float: left; + + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_skin_office2003 .cke_rtl .cke_rcombo a +{ + float: right; +} + +.cke_skin_office2003 .cke_hc .cke_rcombo a +{ + filter: alpha(opacity=100); /* IE */ + opacity: 1.0; /* Safari, Opera and Mozilla */ +} + +.cke_skin_office2003 .cke_rcombo .cke_label +{ + display: inline-block; + float: left; + cursor: default; + + line-height: 24px; + height: 24px; + + vertical-align: top; + padding-left: 4px; + padding-right: 5px; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + + _background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + _background-position: 0 -962px; + _background-repeat: repeat-x; +} + +.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_label +{ + float: right; + padding-right: 4px; + padding-left: 5px; +} + +.cke_skin_office2003 .cke_hc .cke_rcombo .cke_label +{ + filter: alpha(opacity=100); + opacity: 1.0; +} + +.cke_skin_office2003 .cke_rcombo .cke_inline_label +{ + color: #fff; +} + +.cke_skin_office2003 .cke_rcombo .cke_text +{ + border: 1px solid #8f8f73; + background-color: #fff; + height: 14px; + width:60px; + padding-top: 4px; + padding-bottom: 4px; + padding-left: 5px; + padding-right: 5px; + text-overflow: ellipsis; + overflow: hidden; + display: inline-block; + vertical-align: top; + cursor: default; +} + +.cke_skin_office2003 .cke_ltr .cke_rcombo .cke_text +{ + -moz-border-radius-topleft: 3px; + -webkit-border-top-left-radius: 3px; + border-top-left-radius: 3px; + -moz-border-radius-bottomleft: 3px; + -webkit-border-bottom-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_text +{ + -moz-border-radius-topright: 3px; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + -moz-border-radius-bottomright: 3px; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +/* Fix for IE height */ +.cke_skin_office2003 .cke_browser_iequirks .cke_rcombo .cke_text +{ + height: 22px; +} + +.cke_skin_office2003 .cke_rcombo .cke_openbutton +{ + display: inline-block; + border-top: 1px solid #8f8f73; + border-bottom: 1px solid #8f8f73; +} + +.cke_skin_office2003 .cke_rcombo .cke_openbutton .cke_icon +{ + display: inline-block; + background-position: 5px -1002px; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: no-repeat; + width: 14px; + height: 22px; +} + +.cke_skin_office2003 .cke_browser_iequirks .cke_rcombo .cke_openbutton .cke_icon +{ + height: 20px; +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_office2003 .cke_browser_ie .cke_rcombo .cke_openbutton .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_office2003 .cke_browser_ie6 .cke_rcombo .cke_openbutton .cke_icon +{ + filter: ; +} +.cke_skin_office2003 .cke_hc .cke_rcombo .cke_openbutton .cke_icon +{ + background: none; + filter: ; +} + +.cke_skin_office2003 .cke_ltr .cke_rcombo .cke_openbutton +{ + border-right: 1px solid #8f8f73; + -moz-border-radius-topright: 3px; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + -moz-border-radius-bottomright: 3px; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_openbutton +{ + border-left: 1px solid #8f8f73; + -moz-border-radius-topleft: 3px; + -webkit-border-top-left-radius: 3px; + border-top-left-radius: 3px; + -moz-border-radius-bottomleft: 3px; + -webkit-border-bottom-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +.cke_skin_office2003 .cke_rcombo .cke_off a:hover, +.cke_skin_office2003 .cke_rcombo .cke_off a:focus, +.cke_skin_office2003 .cke_rcombo .cke_off a:active, +.cke_skin_office2003 .cke_rcombo .cke_on a +{ + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ +} + +.cke_skin_office2003 .cke_rcombo .cke_off a:hover .cke_text, +.cke_skin_office2003 .cke_rcombo .cke_off a:focus .cke_text, +.cke_skin_office2003 .cke_rcombo .cke_off a:active .cke_text, +.cke_skin_office2003 .cke_rcombo .cke_on .cke_text +{ + border-color: #316ac5; +} + +.cke_skin_office2003 .cke_rcombo .cke_off a:hover .cke_openbutton, +.cke_skin_office2003 .cke_rcombo .cke_off a:focus .cke_openbutton, +.cke_skin_office2003 .cke_rcombo .cke_off a:active .cke_openbutton, +.cke_skin_office2003 .cke_rcombo .cke_on .cke_openbutton +{ + border-color: #316ac5; + background-color: #dff1ff; +} + +.cke_skin_office2003 .cke_rcombo .cke_on .cke_text +{ + -moz-border-radius-bottomleft: 0px; + -webkit-border-bottom-left-radius: 0px; + border-bottom-left-radius: 0px; +} + +.cke_skin_office2003 .cke_rcombo .cke_on .cke_openbutton +{ + -moz-border-radius-bottomright: 0px; + -webkit-border-bottom-right-radius: 0px; + border-bottom-right-radius: 0px; +} + +.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_label +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.3; /* Safari, Opera and Mozilla */ +} + +.cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_label +{ + filter: alpha(opacity=70); + opacity: 0.7; +} + +.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text, +.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=50); /* IE */ + opacity: 0.5; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_office2003 .cke_browser_ie .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=50); +} +.cke_skin_office2003 .cke_browser_ie6 .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=50); +} + +.cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_text, +.cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=80); + opacity: 0.8; +} + + +.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text +{ + color: #fff; +} + +/* Firefox 2 & WebKit Section */ + +.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo .cke_label, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo .cke_text, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo .cke_openbutton, +.cke_skin_office2003 .cke_browser_webkit .cke_rcombo .cke_label, +.cke_skin_office2003 .cke_browser_webkit .cke_rcombo .cke_text, +.cke_skin_office2003 .cke_browser_webkit .cke_rcombo .cke_openbutton +{ + display: block; + float: left; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_label, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_text, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_openbutton, +.cke_skin_office2003 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_label, +.cke_skin_office2003 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text, +.cke_skin_office2003 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_openbutton +{ + float: right; +} + +/*** IE ***/ + +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_rcombo, +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_rcombo a, +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_rcombo .cke_label +{ + float: none; +} + +.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_font .cke_text, +.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_fontSize .cke_text +{ + direction: ltr; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/skin.js b/htdocs/includes/ckeditor/_source/skins/office2003/skin.js new file mode 100644 index 0000000000000000000000000000000000000000..43eb314446f9367a46f154c750cee7df0319f069 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/skin.js @@ -0,0 +1,74 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.skins.add( 'office2003', (function() +{ + return { + editor : { css : [ 'editor.css' ] }, + dialog : { css : [ 'dialog.css' ] }, + separator : { canGroup: false }, + templates : { css : [ 'templates.css' ] }, + margins : [ 0, 14, 18, 14 ] + }; +})() ); + +(function() +{ + CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup ); + + function dialogSetup() + { + CKEDITOR.dialog.on( 'resize', function( evt ) + { + var data = evt.data, + width = data.width, + height = data.height, + dialog = data.dialog, + contents = dialog.parts.contents; + + if ( data.skin != 'office2003' ) + return; + + contents.setStyles( + { + width : width + 'px', + height : height + 'px' + }); + + if ( !CKEDITOR.env.ie || CKEDITOR.env.ie9Compat ) + return; + + // Fix the size of the elements which have flexible lengths. + var fixSize = function() + { + var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), + body = innerDialog.getChild( 0 ), + bodyWidth = body.getSize( 'width' ); + height += body.getChild( 0 ).getSize( 'height' ) + 1; + + // tc + var el = innerDialog.getChild( 2 ); + el.setSize( 'width', bodyWidth ); + + // bc + el = innerDialog.getChild( 7 ); + el.setSize( 'width', bodyWidth - 28 ); + + // ml + el = innerDialog.getChild( 4 ); + el.setSize( 'height', height ); + + // mr + el = innerDialog.getChild( 5 ); + el.setSize( 'height', height ); + }; + setTimeout( fixSize, 100 ); + + // Ensure size is correct for RTL mode. (#4003) + if ( evt.editor.lang.dir == 'rtl' ) + setTimeout( fixSize, 1000 ); + }); + } +})(); diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/templates.css b/htdocs/includes/ckeditor/_source/skins/office2003/templates.css new file mode 100644 index 0000000000000000000000000000000000000000..8754d3c9a9bc127ff0b56fd31ad8095ec4bc13e5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/templates.css @@ -0,0 +1,87 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Styles for the "templates" plugin. + */ + +.cke_skin_office2003 .cke_tpl_list +{ + border: #dcdcdc 2px solid; + background-color: #ffffff; + overflow: auto; + width: 100%; + height: 220px; +} + +.cke_skin_office2003 .cke_tpl_item +{ + margin: 5px; + padding: 7px; + border: #eeeeee 1px solid; + *width: 88%; +} + +.cke_skin_office2003 .cke_tpl_preview +{ + border-collapse: separate; + text-indent:0; + width: 100%; +} +.cke_skin_office2003 .cke_tpl_preview td +{ + padding: 2px; + vertical-align: middle; +} +.cke_skin_office2003 .cke_tpl_preview .cke_tpl_preview_img +{ + width: 100px; +} +.cke_skin_office2003 .cke_tpl_preview span +{ + white-space: normal; +} + +.cke_skin_office2003 .cke_tpl_title +{ + font-weight: bold; +} + +.cke_skin_office2003 .cke_tpl_list a:active .cke_tpl_item, +.cke_skin_office2003 .cke_tpl_list a:hover .cke_tpl_item, +.cke_skin_office2003 .cke_tpl_list a:focus .cke_tpl_item +{ + border: #ff9933 1px solid !important; + background-color: #fffacd !important; +} + +.cke_skin_office2003 .cke_tpl_list a:active *, +.cke_skin_office2003 .cke_tpl_list a:hover *, +.cke_skin_office2003 .cke_tpl_list a:focus * +{ + cursor: pointer; +} + +/* IE6 contextual selectors childs won't get :hover transition until, + the hover style of the link itself contains certain CSS declarations.*/ +.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:active, +.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:hover, +.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:focus +{ + background-position: 0 0; +} + +.cke_skin_office2003 .cke_tpl_list a:active .cke_tpl_item, +.cke_skin_office2003 .cke_tpl_list a:hover .cke_tpl_item, +.cke_skin_office2003 .cke_tpl_list a:focus .cke_tpl_item +{ + border-width: 3px; +} + +.cke_skin_office2003 .cke_tpl_empty, .cke_tpl_loading +{ + text-align: center; + padding: 5px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/office2003/toolbar.css b/htdocs/includes/ckeditor/_source/skins/office2003/toolbar.css new file mode 100644 index 0000000000000000000000000000000000000000..2941c7f1dc3d1f62dc2d454f1b4802098bc42645 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/office2003/toolbar.css @@ -0,0 +1,522 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@media print +{ + .cke_skin_office2003 .cke_toolbox + { + display: none; + } +} + +.cke_skin_office2003 .cke_browser_webkit .cke_toolbox, +.cke_skin_office2003 .cke_browser_webkit .cke_toolbox > span +{ + white-space: normal; +} + +.cke_skin_office2003 .cke_toolbox +{ + clear: both; + /* Define the padding-bottom otherwise the collapser button will not be clickable #4932*/ + padding-bottom: 1px; +} + +.cke_skin_office2003 a.cke_toolbox_collapser, +.cke_skin_office2003 a:hover.cke_toolbox_collapser +{ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 3px -1026px; /* +3px +4px */ + background-repeat: no-repeat; + width: 11px; + height: 11px; + float: right; + border: outset 1px; + margin: 11px 2px 2px; + cursor: pointer; +} + +.cke_skin_office2003 .cke_rtl a.cke_toolbox_collapser, +.cke_skin_office2003 .cke_rtl a:hover.cke_toolbox_collapser +{ + float: left; +} + +.cke_skin_office2003 a.cke_toolbox_collapser span +{ + display: none; +} + +.cke_skin_office2003 .cke_hc a.cke_toolbox_collapser span +{ + font-size: 10px; + font-weight: bold; + font-family: Arial; + display: inline; +} + +.cke_skin_office2003 a.cke_toolbox_collapser_min, +.cke_skin_office2003 a:hover.cke_toolbox_collapser_min +{ + /* arrowleft.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 4px -1047px; /* +4px +3px */ + background-repeat: no-repeat; + margin: 2px; +} + +.cke_skin_office2003 .cke_rtl a.cke_toolbox_collapser_min, +.cke_skin_office2003 .cke_rtl a:hover.cke_toolbox_collapser_min +{ + /* arrowright.gif*/ + background-position: 4px -1068px; /* +2px +3px */ +} + +.cke_skin_office2003 .cke_toolbar +{ + background-color: #d6dff7; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -962px; + background-repeat: repeat-x; + display: inline-block; + float: left; + !height: 28px; + !line-height: 28px; +} + +.cke_skin_office2003 .cke_rtl .cke_toolbar +{ + float: right; +} + +.cke_skin_office2003 .cke_toolgroup +{ + display: inline-block; + float: left; + height: 28px; +} + +.cke_skin_office2003 .cke_browser_ie .cke_toolgroup +{ + #float: none; + #display: inline; +} + +.cke_skin_office2003 .cke_rtl .cke_toolgroup +{ + float: right; +} + +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolgroup +{ + #float: none; +} + +.cke_skin_office2003 .cke_separator +{ + display: inline-block; + float: left; + border-left: solid 1px #B2CBFF; + margin: 6px 2px; + height: 16px; +} + +.cke_skin_office2003 .cke_browser_ie .cke_separator +{ + #float: none; + #display: inline; +} + +.cke_skin_office2003 .cke_rtl .cke_separator +{ + float: right; +} + +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_separator +{ + #float: none; +} + +.cke_skin_office2003 .cke_break +{ + clear: left; +} + +.cke_skin_office2003 .cke_rtl .cke_break +{ + clear: right; +} + +.cke_skin_office2003 .cke_toolbar_start +{ + display: inline-block; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: no-repeat; + background-position: -27px -765px; + width: 10px; + height: 28px; + float: left; +} + +.cke_skin_office2003 .cke_browser_ie .cke_toolbar_start +{ + #float: none; + #display: inline; +} + +.cke_skin_office2003 .cke_rtl .cke_toolbar_start +{ + background-position: -27px -816px; + float: right; +} + +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_start +{ + #float: none; +} + +.cke_skin_office2003 .cke_toolbar_end +{ + display: inline-block; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: no-repeat; + background-position: -29px -861px; + width: 4px; + height: 28px; + float: left; +} + +.cke_skin_office2003 .cke_browser_ie .cke_toolbar_end +{ + #float: none; + #display: inline; +} + +.cke_skin_office2003 .cke_rtl .cke_toolbar_end +{ + background-position: -29px -907px; + float: right; +} + +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_end +{ + #float: none; +} + +/*#7181*/ +.cke_skin_office2003 .cke_browser_ie9 .cke_rtl .cke_separator, +.cke_skin_office2003 .cke_browser_ie9 .cke_rtl .cke_toolbar_start, +.cke_skin_office2003 .cke_browser_ie9 .cke_rtl .cke_toolbar_end +{ + vertical-align:middle; +} + +.cke_skin_office2003 .cke_button a, +.cke_skin_office2003 .cke_button a:hover, +.cke_skin_office2003 .cke_button a:focus, +.cke_skin_office2003 .cke_button a:active, +.cke_skin_office2003 .cke_button a.cke_off +{ + border: solid 1px transparent; + border-radius: 3px; + outline: none; + padding-top: 2px; + padding-left: 4px; + padding-right: 4px; + padding-bottom: 2px; + margin-top: 2px; + height: 18px; + vertical-align: top; + + _border: none; + _margin: 3px 1px 1px 1px; + cursor: default; + display: inline-block; +} + +.cke_skin_office2003 .cke_button a, +.cke_skin_office2003 .cke_button a.cke_off +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.cke_skin_office2003 .cke_hc .cke_button a, +.cke_skin_office2003 .cke_hc .cke_button a.cke_off +{ + opacity: 1.0; + filter: alpha(opacity=100); + _border: 1px solid transparent; +} + +.cke_skin_office2003 .cke_button a.cke_on +{ + border: solid 1px #316ac5; + background-color: #c1d2ee; + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ + + _margin: 2px 0 0 0; +} + +.cke_skin_office2003 .cke_hc .cke_button a:hover, +.cke_skin_office2003 .cke_hc .cke_button a:focus, +.cke_skin_office2003 .cke_hc .cke_button a:active /* IE */ +{ + padding: 0 2px !important; + border-width: 3px; +} + +.cke_skin_office2003 .cke_button a.cke_disabled * +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.3; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_office2003 .cke_browser_ie .cke_button a.cke_disabled *, +.cke_skin_office2003 .cke_browser_ie a:hover.cke_button .cke_disabled * +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30); +} +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_button a.cke_disabled *, +.cke_skin_office2003 .cke_browser_ie .cke_rtl a:hover.cke_button .cke_disabled * +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30); +} +.cke_skin_office2003 .cke_browser_ie6 .cke_button a.cke_disabled *, +.cke_skin_office2003 .cke_browser_ie6 a:hover.cke_button .cke_disabled *, +.cke_skin_office2003 .cke_browser_ie .cke_button.cke_noalphafix a.cke_disabled * +{ + filter: alpha(opacity=30); +} + +.cke_skin_office2003 .cke_hc .cke_button a.cke_disabled *, +.cke_skin_office2003 .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled * +{ + filter: alpha(opacity=60); + opacity: 0.6; +} + +.cke_skin_office2003 .cke_button a:hover, +.cke_skin_office2003 .cke_button a:focus, +.cke_skin_office2003 .cke_button a:active /* IE */ +{ + border: solid 1px #316ac5; + background-color: #dff1ff; + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ + vertical-align: top; + + _margin: 2px 0 0 0; + padding: 2px 4px; +} + +.cke_skin_office2003 .cke_button .cke_icon +{ + background-image: url(icons.png); + background-position: 100px; + background-repeat:no-repeat; + margin-top:1px; + width: 16px; + height: 16px; + display: inline-block; + cursor: default; +} + +.cke_skin_office2003 .cke_rtl .cke_button .cke_icon +{ + background-image: url(icons_rtl.png); +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_office2003 .cke_browser_ie .cke_button .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_button .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_office2003 .cke_browser_ie6 .cke_button .cke_icon, +.cke_skin_office2003 .cke_browser_ie6 .cke_rtl .cke_button .cke_icon, +.cke_skin_office2003 .cke_browser_ie .cke_button.cke_noalphafix .cke_icon, +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_button.cke_noalphafix .cke_icon +{ + filter: ; +} + +.cke_skin_office2003 .cke_button .cke_label +{ + display: none; + padding-left: 3px; + cursor: default; + vertical-align:middle; + _background-image: url(images/sprites_ie6.png); + _background-position: 0 -970px; + _background-repeat: repeat-x; +} + +.cke_skin_office2003 .cke_button a:hover .cke_label +{ + _background-color: #dff1ff; + _background-image: none; +} + +.cke_skin_office2003 .cke_button a.cke_on .cke_label +{ + _background-color: #c1d2ee; + _background-image: none; +} + +.cke_skin_office2003 .cke_hc .cke_button .cke_label +{ + padding: 0; + display: inline-block; +} + +.cke_skin_office2003 .cke_hc .cke_button .cke_icon +{ + display: none; +} + +.cke_skin_office2003 .cke_accessibility +{ + position: absolute; + display: block; + width: 0; + height: 0; + overflow: hidden; +} + +.cke_skin_office2003 .cke_button .cke_buttonarrow +{ + display: inline-block; + height: 18px; + width: 8px; + background-position: 2px -1004px; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: no-repeat; + cursor: default; +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_office2003 .cke_browser_ie .cke_button .cke_buttonarrow +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_office2003 .cke_browser_ie6 .cke_button .cke_buttonarrow +{ + filter: ; +} + +.cke_skin_office2003 .cke_rtl .cke_button .cke_buttonarrow +{ + background-position: 0 -1004px; +} + +/*** Firefox 2 ***/ + +.cke_skin_office2003 .cke_browser_gecko18 .cke_toolbar, +.cke_skin_office2003 .cke_browser_gecko18 .cke_button a, +.cke_skin_office2003 .cke_browser_gecko18 .cke_button a.cke_off, +.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_icon, +.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_buttonarrow, +.cke_skin_office2003 .cke_browser_gecko18 .cke_separator, +.cke_skin_office2003 .cke_browser_gecko18 .cke_toolbar_start, +.cke_skin_office2003 .cke_browser_gecko18 .cke_toolbar_end +{ + display: block; + float: left; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_hc .cke_button .cke_icon +{ + display: none; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_toolbar, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button a, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button a.cke_off, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button .cke_icon, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button .cke_buttonarrow, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_separator, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_toolbar_start, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_toolbar_end +{ + float: right; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_label, +.cke_skin_office2003 .cke_browser_gecko18 .cke_break +{ + float: left; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl span.cke_inline_label +{ + float: right; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button .cke_label, +.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_break +{ + float: right; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_separator +{ + margin-top: 4px; +} + +.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_label +{ + padding-top: 3px; +} + +/*** IE6 ***/ + +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolgroup, +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_separator, +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_start, +.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_end +{ + float: none; +} + +/*** IE8 ***/ + +.cke_skin_office2003 .cke_browser_ie8 .cke_toolbar, +.cke_skin_office2003 .cke_browser_ie8 .cke_toolgroup +{ + vertical-align: top; +} + +.cke_skin_office2003 .cke_browser_iequirks.cke_browser_ie8 .cke_toolbar, +.cke_skin_office2003 .cke_browser_iequirks.cke_browser_ie8 .cke_toolgroup +{ + /* revert previous */ + vertical-align: baseline; +} + +/* Separator + Combo penetrate toolbar in IE quirks. (#4461) */ +.cke_skin_office2003 .cke_browser_iequirks .cke_separator +{ + vertical-align: text-bottom; +} +/* Fix cursor shape consistency on toolbar combos (#4031) */ +.cke_skin_office2003 .cke_browser_ie .cke_rcombo, +.cke_skin_office2003 .cke_browser_ie .cke_rcombo * +{ + cursor: default; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/dialog.css b/htdocs/includes/ckeditor/_source/skins/v2/dialog.css new file mode 100644 index 0000000000000000000000000000000000000000..05be5ea5a8651715795b1d17a76e45f6fccb294d --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/dialog.css @@ -0,0 +1,924 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/* Restore the dialog visibility */ +body .cke_dialog +{ + visibility: visible; +} + +/* Force Gecko to consider table as positioned */ +.cke_skin_v2 table.cke_dialog.cke_browser_gecko +{ + display:block; +} + +.cke_skin_v2 .cke_dialog_body +{ + margin-left: 16px; + margin-right: 16px; + margin-top: 2px; + margin-bottom: 20px; + z-index: 1; + + /* 'cke_dialog' element has been fixed positioned in all but IE6, while we + need it to be positioned to hold e.g. close button. */ + _position: static; + +} + +.cke_skin_v2 .cke_dialog_tl, +.cke_skin_v2 .cke_dialog_tr, +.cke_skin_v2 .cke_dialog_tc, +.cke_skin_v2 .cke_dialog_bl, +.cke_skin_v2 .cke_dialog_br, +.cke_skin_v2 .cke_dialog_bc +{ + background-image: url(images/sprites.png); + background-repeat: no-repeat; + position: absolute; + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/sprites_ie6.png); + /* Dialog corner parts require a negative z-index to avoid covering dialog body. (#4954) */ + z-index: -1; +} + +.cke_skin_v2 .cke_dialog_tl +{ + background-position: -16px -16px; + height: 16px; + width: 16px; + top: 0; + left: 0; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_tl +{ + background-position: -16px -397px; +} + +.cke_skin_v2 .cke_dialog_tr +{ + background-position: -16px -76px; + height: 16px; + width: 16px; + top: 0; + right: 0; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_tr +{ + background-position: -16px -457px; +} + +.cke_skin_v2 .cke_dialog_tc +{ + background-position: 0 -136px; + background-repeat: repeat-x; + height: 16px; + top: 0; + left: 16px; + right: 16px; +} + +.cke_skin_v2 .cke_dialog_bl +{ + background-position: -16px -196px; + height: 51px; + width: 30px; + bottom: 0; + left: 0; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_bl +{ + background-position: -16px -517px; +} + +.cke_skin_v2 .cke_dialog_br +{ + background-position: -16px -263px; + height: 51px; + width: 30px; + bottom: 0; + right: 0; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_br +{ + background-position: -16px -584px; +} + +.cke_skin_v2 .cke_dialog_bc +{ + background-position: 0 -330px; + background-repeat: repeat-x; + height: 51px; + bottom: 0; + left: 30px; + right: 30px; +} + +.cke_skin_v2 .cke_dialog_ml, +.cke_skin_v2 .cke_dialog_mr +{ + background-image: url(images/dialog_sides.png); + background-repeat: repeat-y; + position: absolute; + width: 16px; + top: 16px; + bottom: 51px; + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/dialog_sides.gif); + + /* IE quirks gets confused when we have both top and bottom. */ + _top: auto; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_ml, +.cke_skin_v2 .cke_rtl .cke_dialog_mr +{ + background-image: url(images/dialog_sides_rtl.png); + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/dialog_sides.gif); +} + +.cke_skin_v2 .cke_dialog_ml +{ + background-position: 0 0; + left: 0; +} + +.cke_skin_v2 .cke_dialog_mr +{ + background-position: -16px 0; + right: 0; +} + +.cke_skin_v2 .cke_browser_iequirks .cke_dialog_ml, +.cke_skin_v2 .cke_browser_iequirks .cke_dialog_mr +{ + margin-top: 3px; +} + +.cke_skin_v2 .cke_dialog_title +{ + font-weight: bold; + font-size: 14pt; + color: #737357; + background-color: #e3e3c7; + padding: 3px 10px 26px 10px; + cursor: move; + position: relative; +} + +.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_title +{ + position: static; +} + +.cke_skin_v2 .cke_dialog_contents +{ + background-color: #f1f1e3; + border: #d5d59d 1px solid; + overflow: auto; + padding: 5px 10px; +} + +.cke_skin_v2 .cke_dialog_footer +{ + background-color: #e3e3c7; + text-align: right; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_footer +{ + text-align: left; +} + +.cke_skin_v2 .cke_dialog_footer .cke_resizer { + margin-top: 21px; +} + +/* tabs */ + +.cke_skin_v2 .cke_dialog_tabs +{ + height: 23px; + background-color: #e3e3c7; + display: inline-block; + margin-left:10px; + margin-right:10px; + margin-top:-23px; + position: absolute; + z-index: 2; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_tabs +{ + right: 10px; +} + +.cke_skin_v2 a.cke_dialog_tab, +.cke_skin_v2 a:link.cke_dialog_tab, +.cke_skin_v2 a:active.cke_dialog_tab, +.cke_skin_v2 a:hover.cke_dialog_tab, +.cke_skin_v2 a:visited.cke_dialog_tab +{ + color: #737357; + border-left: 1px solid #d5d59d; + border-right: 1px solid #d5d59d; + border-top: 1px solid #d5d59d; + height: 14px; + padding: 4px 5px; + display: inline-block; + cursor: pointer; +} + +/* Gecko 1.8 layout workaround. */ +.cke_skin_v2 .cke_browser_gecko18 a.cke_dialog_tab, +.cke_skin_v2 .cke_browser_gecko18 a:link.cke_dialog_tab, +.cke_skin_v2 .cke_browser_gecko18 a:active.cke_dialog_tab, +.cke_skin_v2 .cke_browser_gecko18 a:hover.cke_dialog_tab, +.cke_skin_v2 .cke_browser_gecko18 a:visited.cke_dialog_tab +{ + display: inline; + position: relative; + top: 6px; +} + +.cke_skin_v2 a:hover.cke_dialog_tab +{ + background-color: #f1f1e3; +} + +.cke_skin_v2 .cke_hc a:hover.cke_dialog_tab +{ + padding: 2px 3px !important; + border-width: 3px; +} + +.cke_skin_v2 a.cke_dialog_tab_selected, +.cke_skin_v2 a:link.cke_dialog_tab_selected, +.cke_skin_v2 a:active.cke_dialog_tab_selected, +.cke_skin_v2 a:hover.cke_dialog_tab_selected, +.cke_skin_v2 a:visited.cke_dialog_tab_selected +{ + border-bottom: 1px solid #f1f1e3; + background-color: #f1f1e3; + font-weight: bold; + cursor: default; +} + +.cke_skin_v2 .cke_hc a.cke_dialog_tab_selected, +.cke_skin_v2 .cke_hc a:link.cke_dialog_tab_selected, +.cke_skin_v2 .cke_hc a:active.cke_dialog_tab_selected, +.cke_skin_v2 .cke_hc a:hover.cke_dialog_tab_selected, +.cke_skin_v2 .cke_hc a:visited.cke_dialog_tab_selected +{ + padding: 2px 3px !important; + border-width: 3px; +} + +.cke_skin_v2 .cke_hc .cke_dialog_tabs a, +.cke_skin_v2 .cke_hc .cke_dialog_footer a +{ + opacity: 1.0; + filter: alpha(opacity=100); + border: 1px solid white; +} + +/* single_page */ + +.cke_skin_v2 .cke_single_page .cke_dialog_tabs +{ + display: none; +} + +.cke_skin_v2 .cke_single_page .cke_dialog_title +{ + padding-bottom: 3px; +} + +.cke_skin_v2 .cke_dialog_ui_vbox table, +.cke_skin_v2 .cke_dialog_ui_hbox table +{ + margin: auto; +} + +.cke_skin_v2 .cke_dialog_ui_vbox_child +{ + padding: 5px 0px; +} + +.cke_skin_v2 input.cke_dialog_ui_input_text, +.cke_skin_v2 input.cke_dialog_ui_input_password +{ + background-color: white; + border: none; + padding: 0px; + width: 100%; + height: 14px; +} + +.cke_skin_v2 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_password +{ + border-width: 0px; +} + +.cke_skin_v2 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_password +{ + border-width: 1px; +} + +/* Opera/IE doesn't leave enough padding in text input for cursor to blink in RTL. (#6087) */ +.cke_skin_v2 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_password, +.cke_skin_v2 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_password +{ + padding-right: 2px +} + +/* Compensate the padding added above on container. */ +.cke_skin_v2 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_password, +.cke_skin_v2 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_password +{ + padding-left: 2px; +} + +.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_vbox_child, +.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_child, +.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_first, +.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_last +{ + padding-right: 2px !important; +} + +.cke_skin_v2 div.cke_dialog_ui_input_text, +.cke_skin_v2 div.cke_dialog_ui_input_password +{ + background-color: white; + border: 1px solid #a0a0a0; + padding: 1px 0px; + /* IE6/Quirks - make sure the content does not overflow (#7321) */ + _width: 99.9%; +} + +/* The absolute position is required for IE7 on text inputs not to stretch dialog horizontally. (#8971)*/ +.cke_skin_v2 .cke_browser_ie7 input.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_ie7 input.cke_dialog_ui_input_password +{ + position: absolute; +} +.cke_skin_v2 .cke_browser_ie7 div.cke_dialog_ui_input_text, +.cke_skin_v2 .cke_browser_ie7 div.cke_dialog_ui_input_password +{ + height:14px; + position: relative; +} + +.cke_skin_v2 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text { + padding-right: 1px; +} + +.cke_skin_v2 textarea.cke_dialog_ui_input_textarea +{ + background-color: white; + border: none; + padding: 0px; + width: 100%; + /* + * IE6 BUG: Scrollbars in textareas can overflow even if the outer DIV is set to overflow:hidden. + * So leave 1% width for the scrollbar. In most situations the 1% isn't noticeable by users. + */ + _width: 99%; + overflow: auto; + resize: none; +} + +.cke_skin_v2 div.cke_dialog_ui_input_textarea +{ + background-color: white; + border: 1px solid #a0a0a0; + padding: 1px 0px; +} + +/* RTL + IE6: Input overflows dialog element. (#7321) */ +.cke_skin_v2 .cke_rtl .cke_dialog_ui_labeled_content +{ + _width: 95%; +} + +.cke_skin_v2 div.cke_disabled .cke_dialog_ui_labeled_content * +{ + background-color : #a0a0a0; + cursor : default; +} + +.cke_skin_v2 .cke_dialog_ui_hbox +{ + width: 100%; +} + +.cke_skin_v2 .cke_dialog_ui_hbox_first, +.cke_skin_v2 .cke_dialog_ui_hbox_child, +.cke_skin_v2 .cke_dialog_ui_hbox_last +{ + vertical-align: top; +} + +.cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_first, +.cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_child +{ + padding-right: 10px; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_first, +.cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_child +{ + padding-left: 10px; +} + +/* button */ + +.cke_skin_v2 a.cke_dialog_ui_button +{ + border-collapse: separate; + cursor: default; +} + +.cke_skin_v2 a.cke_dialog_ui_button_ok span, +.cke_skin_v2 a.cke_dialog_ui_button_cancel span +{ + width:60px; +} + +.cke_skin_v2 span.cke_dialog_ui_button +{ + border: #737357 1px solid; + padding: 2px 10px; + text-align: center; + color: #3b3b1f; + background-color: #c7c78f; + display: inline-block; + cursor: default; +} + +/* Gecko 1.8 does not support display: inline-block */ +.cke_skin_v2 .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button +{ + display: block; +} + +.cke_skin_v2 a.cke_dialog_ui_button span.cke_disabled +{ + border: #898980 1px solid; + color: #5e5e55; + background-color: #c5c5b3; +} + +.cke_skin_v2 a:focus span.cke_dialog_ui_button, +.cke_skin_v2 a:active span.cke_dialog_ui_button +{ + background-color: #e3e3c7; +} + +.cke_skin_v2 .cke_hc a:focus span.cke_dialog_ui_button, +.cke_skin_v2 .cke_hc a:active span.cke_dialog_ui_button +{ + border-width: 2px; +} + +.cke_skin_v2 .cke_dialog_footer_buttons +{ + display: inline-table; + margin-right: 12px; + margin-left: 12px; + width: auto; + position: relative; +} + +/* Gecko 1.8 does not support for display: inline-table */ +.cke_skin_v2 .cke_browser_gecko18 .cke_dialog_footer_buttons +{ + display: inline; +} + +.cke_skin_v2 .cke_dialog_footer_buttons span.cke_dialog_ui_button +{ + margin: 7px 0; +} + +.cke_skin_v2 .cke_browser_ie7 .cke_dialog_footer_buttons +{ + position: static; +} + +.cke_skin_v2 strong +{ + font-weight: bold; +} + +/* close_button */ + +.cke_skin_v2 a.cke_dialog_close_button, +.cke_skin_v2 a:hover.cke_dialog_close_button, +.cke_skin_v2 .cke_browser_ie6 a.cke_dialog_close_button, +.cke_skin_v2 .cke_browser_ie6 a:hover.cke_dialog_close_button +{ + background-image: url(images/sprites.png); + background-repeat: no-repeat; + background-position: -16px -651px; + position: absolute; + cursor: pointer; + text-align: center; + height: 20px; + width: 20px; + top: 5px; + + /* IE6 does not support full color transparent PNG. */ + _background-image: url(images/sprites_ie6.png); +} + +.cke_skin_v2 a.cke_dialog_close_button span +{ + display: none; +} + +.cke_skin_v2 a:hover.cke_dialog_close_button +{ + background-position: -16px -687px; +} + +.cke_skin_v2 .cke_ltr a.cke_dialog_close_button, +.cke_skin_v2 .cke_ltr a:hover.cke_dialog_close_button +{ + right: 22px; +} + +.cke_skin_v2 .cke_rtl a.cke_dialog_close_button, +.cke_skin_v2 .cke_rtl a:hover.cke_dialog_close_button +{ + left: 16px; + _top: 7px; +} + +.cke_skin_v2 .cke_browser_ie6.cke_rtl a.cke_dialog_close_button, +.cke_skin_v2 .cke_browser_ie6.cke_rtl a:hover.cke_dialog_close_button +{ + position: relative; + float: left; + margin-top: -55px; + margin-left: -7px; +} + +.cke_skin_v2 .cke_browser_iequirks.cke_rtl.cke_single_page a.cke_dialog_close_button, +.cke_skin_v2 .cke_browser_iequirks.cke_rtl.cke_single_page a:hover.cke_dialog_close_button +{ + margin-top: -32px; +} + +.cke_skin_v2 .cke_browser_iequirks.cke_ltr a.cke_dialog_close_button, +.cke_skin_v2 .cke_browser_iequirks.cke_ltr a:hover.cke_dialog_close_button +{ + margin-top: 0; +} + +.cke_skin_v2 .cke_dialog_ui_input_select +{ + border: 1px solid #a0a0a0; + background-color: white; +} + +.cke_skin_v2 .cke_dialog_ui_input_file +{ + width: 100%; + height: 25px; +} + +/* + * Some utility CSS classes for dialog authors. + */ +.cke_skin_v2 .cke_dialog .cke_dark_background +{ + background-color: #eaead1; +} + +.cke_skin_v2 .cke_dialog .cke_hand +{ + cursor: pointer; +} + +.cke_skin_v2 .cke_dialog .cke_centered +{ + text-align: center; +} + +.cke_skin_v2 .cke_dialog a.cke_btn_reset +{ + float: right; + background-position: 0 -32px; + background-image: url(images/mini.gif); + width: 16px; + height: 16px; + background-repeat: no-repeat; + border: 1px none; + font-size: 1px; +} + +.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_reset +{ + float: left; +} + +.cke_skin_v2 .cke_dialog a.cke_btn_locked, +.cke_skin_v2 .cke_dialog a.cke_btn_unlocked +{ + float: left; + background-position: 0 0; + background-image: url(images/mini.gif); + width: 16px; + height: 16px; + background-repeat: no-repeat; + border: none 1px; + font-size: 1px; +} +.cke_skin_v2 .cke_dialog a.cke_btn_locked .cke_icon +{ + display:none; +} + + +.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_locked, +.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_unlocked +{ + float: right; +} + +.cke_skin_v2 .cke_dialog a.cke_btn_unlocked +{ + background-position: 0 -16px; + background-image: url(images/mini.gif); +} + +.cke_skin_v2 .cke_dialog .cke_btn_over +{ + border: outset 1px; + cursor: pointer; +} + +.cke_skin_v2 .cke_dialog .ImagePreviewBox +{ + border : 2px ridge black; + overflow : scroll; + height : 210px; + width : 230px; + padding : 2px; + background-color : white; +} + +.cke_skin_v2 .cke_dialog .ImagePreviewBox table td { + white-space: normal; +} + +/* Fix iframedialog's height doesn't stretch to 100% #4863.*/ +.cke_skin_v2 .cke_browser_iequirks .cke_dialog_page_contents +{ + _position: absolute; +} + +.cke_skin_v2 .cke_dialog .ImagePreviewLoader +{ + position: absolute; + white-space : normal; + overflow : hidden; + height : 160px; + width : 230px; + margin : 2px; + padding : 2px; + opacity : 0.9; + filter : alpha(opacity=90); + + background-color : #e4e4e4; +} + +.cke_skin_v2 .cke_dialog .FlashPreviewBox +{ + white-space : normal; + border : 2px ridge black; + overflow : auto; + height : 160px; + width : 390px; + padding : 2px; + background-color : white; +} + +.cke_skin_v2 .cke_dialog .cke_pastetext +{ + width: 346px; + height: 170px; +} + +.cke_skin_v2 .cke_dialog .cke_pastetext textarea +{ + width: 340px; + height: 170px; + resize: none; +} + +.cke_skin_v2 .cke_dialog iframe.cke_pasteframe +{ + width: 346px; + height: 130px; + background-color: white; + border: 1px solid black; +} + +.cke_skin_v2 .cke_dialog .cke_dark_background +{ + text-align : center; + background-color: #eaead1; + font-size : 14px; +} + +.cke_skin_v2 .cke_dialog .cke_light_background +{ + text-align : center; + background-color: #ffffbe; +} + +.cke_skin_v2 .cke_dialog .cke_hand +{ + cursor: pointer; +} + +.cke_skin_v2 .cke_disabled +{ + color: #a0a0a0; +} + +/* High Contrast Mode */ +.cke_skin_v2 .cke_hc .cke_dialog_title, +.cke_skin_v2 .cke_hc .cke_dialog_tabs, +.cke_skin_v2 .cke_hc .cke_dialog_contents, +.cke_skin_v2 .cke_hc .cke_dialog_footer +{ + border-left: 1px solid; + border-right: 1px solid; +} + +.cke_skin_v2 .cke_hc .cke_dialog_title +{ + border-top: 1px solid; +} + +.cke_skin_v2 .cke_hc .cke_dialog_footer +{ + border-bottom: 1px solid; +} + +.cke_skin_v2 .cke_hc .cke_dialog_close_button span +{ + display: inline; + cursor: pointer; + font-weight: bold; + position: relative; + top: 3px; +} + +.cke_skin_v2 .cke_dialog_body .cke_label +{ + display: none; +} + +.cke_skin_v2 .cke_dialog_body label.cke_required +{ + font-weight: bold; +} + +.cke_skin_v2 .cke_hc .cke_dialog_body .cke_label +{ + display: inline; + cursor: inherit; +} + +.cke_skin_v2 .cke_hc a.cke_btn_locked, +.cke_skin_v2 .cke_hc a.cke_btn_unlocked, +.cke_skin_v2 .cke_hc a.cke_btn_reset +{ + border-style: solid; + float:left; + width:auto; + height:auto; + padding: 0 2px; +} +.cke_skin_v2 .cke_hc a.cke_btn_locked .cke_icon +{ + display:inline; +} + +.cke_skin_v2 .cke_rtl.cke_hc a.cke_btn_locked, +.cke_skin_v2 .cke_rtl.cke_hc a.cke_btn_unlocked, +.cke_skin_v2 .cke_rtl.cke_hc a.cke_btn_reset +{ + float:right; +} + +.cke_skin_v2 a.cke_smile img +{ + /* IE6 does not support transparent borders */ + border: 2px solid #eaead1; +} + +.cke_skin_v2 a.cke_smile:focus img, +.cke_skin_v2 a.cke_smile:active img, +.cke_skin_v2 a.cke_smile:hover img +{ + border-color: #C7C78F; +} + + +/** + * Styles specific to "cellProperties" dialog. + */ + +.cke_skin_v2 .cke_dialog_contents a.colorChooser +{ + display:block; + margin-top:12px; + margin-left: 10px; + width: 40px; +} + +.cke_skin_v2 .cke_dialog_contents a.colorChooser .cke_dialog_ui_button +{ + width:100%; +} + +.cke_skin_v2 .cke_rtl .cke_dialog_contents a.colorChooser +{ + margin-right: 10px; +} + +/* Compensate focus outline for some input elements. (#6200) */ +.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus, +.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_radio_input:focus, +.cke_skin_v2 .cke_browser_opera .cke_dialog_ui_checkbox_input:focus, +.cke_skin_v2 .cke_browser_opera .cke_dialog_ui_radio_input:focus, +.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_input_select:focus, +.cke_skin_v2 .cke_browser_gecko .cke_btn_over, +.cke_skin_v2 .cke_browser_opera .cke_btn_over, +.cke_skin_v2 .cke_browser_ie .cke_btn_over +{ + outline: 1px dotted #696969; +} + +/* IE<8 instead doesn't support CSS outline property, emulated with dotted border. */ + +/* Predefined border to avoid visual size change impact. */ +.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_checkbox_input, +.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_ratio_input, +.cke_skin_v2 .cke_browser_ie .cke_btn_reset, +.cke_skin_v2 .cke_browser_ie .cke_btn_locked, +.cke_skin_v2 .cke_browser_ie .cke_btn_unlocked +{ + *border: 1px solid transparent !important; + /* Emulating border-color: transparent in IE6.*/ + -border: 1px solid red !important; + -filter: chroma(color=red); +} + +.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_focused, +.cke_skin_v2 .cke_browser_ie .cke_btn_over +{ + *border: 1px dotted #696969 !important; +} + +.cke_skin_v2 .cke_iframe_shim +{ + display:block; + position:absolute; + top:0; + left:0; + z-index:-1; + filter:alpha(opacity=0); + width:100%; + height:100%; +} + +.cke_dialog label +{ + display: inline; + margin-bottom: auto; + cursor: default; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/editor.css b/htdocs/includes/ckeditor/_source/skins/v2/editor.css new file mode 100644 index 0000000000000000000000000000000000000000..bdfdb954118c473dc9fa095fd8988ba170a14ef7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/editor.css @@ -0,0 +1,25 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@import url("reset.css"); +@import url("mainui.css"); +@import url("panel.css"); +@import url("toolbar.css"); +@import url("menu.css"); +@import url("richcombo.css"); +@import url("elementspath.css"); +@import url("icons.css"); +@import url("presets.css"); + +/* Restore the container visibility */ +html .cke_skin_v2 +{ + visibility: inherit; +} + +html.cke_skin_v2_container +{ + visibility: visible; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/elementspath.css b/htdocs/includes/ckeditor/_source/skins/v2/elementspath.css new file mode 100644 index 0000000000000000000000000000000000000000..1d3fd4b25d9d917ea66f3236490c8fe84a6c5bec --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/elementspath.css @@ -0,0 +1,74 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@media print +{ + .cke_path + { + display: none; + } +} + +.cke_skin_v2 .cke_path +{ + padding: 3px 3px 0 3px; + display: inline-block; + float: left; +} + +.cke_skin_v2 .cke_rtl .cke_path +{ + float: right; +} + +.cke_skin_v2 .cke_path a, +.cke_skin_v2 .cke_path .cke_empty +{ + display: inline-block; + float: left; + border: solid 1px #efefde; + background-color: #efefde; + padding-top: 1px; + padding-bottom: 1px; + padding-left: 4px; + padding-right: 4px; + margin-bottom : 3px; + cursor: default; +} + +.cke_skin_v2 .cke_path .cke_empty +{ + visibility: hidden; +} + +.cke_skin_v2 .cke_rtl .cke_path a, +.cke_skin_v2 .cke_rtl .cke_path cke_empty +{ + float: right; +} + +.cke_skin_v2 .cke_path a:hover, +.cke_skin_v2 .cke_path a:focus, +.cke_skin_v2 .cke_path a:active /* IE */ +{ + border: solid 1px #316ac5; + background-color: #dff1ff; + padding-top: 1px; + padding-bottom: 1px; + padding-left: 4px; + padding-right: 4px; + outline: none; +} + +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_path a, +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_path .cke_empty +{ + float: none; +} + +.cke_skin_v2 .cke_path .cke_label +{ + display: none; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/icons.css b/htdocs/includes/ckeditor/_source/skins/v2/icons.css new file mode 100644 index 0000000000000000000000000000000000000000..09fc3f5c5f20d7c148c15e9b71e941199445a701 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/icons.css @@ -0,0 +1,363 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_v2 .cke_button_source .cke_icon +{ + background-position: 0 0; +} + +.cke_skin_v2 .cke_button_docProps .cke_icon +{ + background-position: 0 -16px; +} + +.cke_skin_v2 .cke_button_newpage .cke_icon +{ + background-position: 0 -48px; +} + +.cke_skin_v2 .cke_button_preview .cke_icon +{ + background-position: 0 -64px; +} + +.cke_skin_v2 .cke_button_cut .cke_icon +{ + background-position: 0 -96px; +} + +.cke_skin_v2 .cke_button_copy .cke_icon +{ + background-position: 0 -112px; +} + +.cke_skin_v2 .cke_button_paste .cke_icon +{ + background-position: 0 -128px; +} + +.cke_skin_v2 .cke_button_pastetext .cke_icon +{ + background-position: 0 -144px; +} + +.cke_skin_v2 .cke_button_find .cke_icon +{ + background-position: 0 -240px; +} + +.cke_skin_v2 .cke_button_replace .cke_icon +{ + background-position: 0 -256px; +} + +.cke_skin_v2 .cke_button_selectAll .cke_icon +{ + background-position: 0 -272px; +} + +.cke_skin_v2 .cke_button_removeFormat .cke_icon +{ + background-position: 0 -288px; +} + +.cke_skin_v2 .cke_button_bold .cke_icon +{ + background-position: 0 -304px; +} + +.cke_skin_v2 .cke_button_italic .cke_icon +{ + background-position: 0 -320px; +} + +.cke_skin_v2 .cke_button_underline .cke_icon +{ + background-position: 0 -336px; +} + +.cke_skin_v2 .cke_button_strike .cke_icon +{ + background-position: 0 -352px; +} + +.cke_skin_v2 .cke_button_subscript .cke_icon +{ + background-position: 0 -368px; +} + +.cke_skin_v2 .cke_button_superscript .cke_icon +{ + background-position: 0 -384px; +} + +.cke_skin_v2 .cke_button_table .cke_icon +{ + background-position: 0 -608px; +} + +.cke_skin_v2 .cke_button_horizontalrule .cke_icon +{ + background-position: 0 -624px; +} + +.cke_skin_v2 .cke_button_smiley .cke_icon +{ + background-position: 0 -640px; +} + +.cke_skin_v2 .cke_button_link .cke_icon +{ + background-position: 0 -528px; +} + +.cke_skin_v2 .cke_button_unlink .cke_icon +{ + background-position: 0 -544px; +} + +.cke_skin_v2 .cke_button_anchor .cke_icon +{ + background-position: 0 -560px; +} + +.cke_skin_v2 .cke_button_image .cke_icon +{ + background-position: 0 -576px; +} + +.cke_skin_v2 .cke_button_flash .cke_icon +{ + background-position: 0 -592px; +} + +.cke_skin_v2 .cke_button_specialchar .cke_icon +{ + background-position: 0 -656px; +} + +.cke_skin_v2 .cke_button_pagebreak .cke_icon +{ + background-position: 0 -672px; +} + +.cke_skin_v2 .cke_button_print .cke_icon +{ + background-position: 0 -176px; +} + +.cke_skin_v2 .cke_button_checkspell .cke_icon, +.cke_skin_v2 .cke_button_scayt .cke_icon +{ + background-position: 0 -192px; +} + +.cke_skin_v2 .cke_button_pagebreak .cke_icon +{ + background-position: 0 -672px; +} + +.cke_skin_v2 .cke_button_textcolor .cke_icon +{ + background-position: 0 -704px; +} + +.cke_skin_v2 .cke_button_bgcolor .cke_icon +{ + background-position: 0 -720px; +} + +.cke_skin_v2 .cke_button_form .cke_icon +{ + background-position: 0 -752px; +} + +.cke_skin_v2 .cke_button_checkbox .cke_icon +{ + background-position: 0 -768px; +} + +.cke_skin_v2 .cke_button_radio .cke_icon +{ + background-position: 0 -784px; +} + +.cke_skin_v2 .cke_button_textfield .cke_icon +{ + background-position: 0 -800px; +} + +.cke_skin_v2 .cke_button_textarea .cke_icon +{ + background-position: 0 -816px; +} +.cke_skin_v2 .cke_button_showblocks .cke_icon +{ + background-position: 0 -1136px; +} + +.cke_skin_v2 .cke_button_select .cke_icon +{ + background-position: 0 -832px; +} + +.cke_skin_v2 .cke_button_button .cke_icon +{ + background-position: 0 -848px; +} + +.cke_skin_v2 .cke_button_imagebutton .cke_icon +{ + background-position: 0 -864px; +} + +.cke_skin_v2 .cke_button_hiddenfield .cke_icon +{ + background-position: 0 -880px; +} + +.cke_skin_v2 .cke_button_undo .cke_icon +{ + background-position: 0 -208px; +} + +.cke_skin_v2 .cke_rtl .cke_button_undo .cke_icon +{ + background-position: 0 -224px; +} + +.cke_skin_v2 .cke_button_redo .cke_icon +{ + background-position: 0 -224px; +} + +.cke_skin_v2 .cke_rtl .cke_button_redo .cke_icon +{ + background-position: 0 -208px; +} + +.cke_skin_v2 .cke_button_templates .cke_icon +{ + background-position: 0 -80px; +} + +.cke_skin_v2 .cke_button_numberedlist .cke_icon +{ + background-position: 0 -400px; +} + +.cke_skin_v2 .cke_button_bulletedlist .cke_icon +{ + background-position: 0 -416px; +} + +.cke_skin_v2 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon +{ + background-position: 0 -1217px; +} + +.cke_skin_v2 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon +{ + background-position: 0 -1233px; +} + +.cke_skin_v2 .cke_button_outdent .cke_icon +{ + background-position: 0 -432px; +} + +.cke_skin_v2 .cke_button_indent .cke_icon +{ + background-position: 0 -448px; +} + +.cke_skin_v2 .cke_mixed_dir_content .cke_button_indent .cke_icon +{ + background-position: 0 -1265px; +} + +.cke_skin_v2 .cke_mixed_dir_content .cke_button_outdent .cke_icon +{ + background-position: 0 -1249px; +} + +.cke_skin_v2 .cke_button_justifyleft .cke_icon +{ + background-position: 0 -464px; +} + +.cke_skin_v2 .cke_button_justifycenter .cke_icon +{ + background-position: 0 -480px; +} + +.cke_skin_v2 .cke_button_justifyright .cke_icon +{ + background-position: 0 -496px; +} + +.cke_skin_v2 .cke_button_justifyblock .cke_icon +{ + background-position: 0 -512px; +} + +.cke_skin_v2 .cke_button_blockquote .cke_icon +{ + background-position: 0 -1152px; +} + +.cke_skin_v2 .cke_button_flash .cke_icon +{ + background-position: 0 -592px; +} + +.cke_skin_v2 .cke_button_pastefromword .cke_icon +{ + background-position: 0 -160px; +} + +.cke_skin_v2 .cke_button_save .cke_icon +{ + background-position: 0 -32px; +} + +.cke_skin_v2 .cke_button_about .cke_icon +{ + background-position: 0 -736px; +} + +.cke_skin_v2 .cke_button_maximize .cke_icon +{ + background-position: 0 -1040px; +} + +.cke_skin_v2 .cke_button_creatediv .cke_icon +{ + background-position: 0 -1168px; +} + +.cke_skin_v2 .cke_button_editdiv .cke_icon +{ + background-position: 0 -1184px; +} + +.cke_skin_v2 .cke_button_removediv .cke_icon +{ + background-position: 0 -1200px; +} +.cke_skin_v2 .cke_button_bidirtl .cke_icon +{ + background-position: 0 -1072px; +} + +.cke_skin_v2 .cke_button_bidiltr .cke_icon +{ + background-position: 0 -1056px; +} + +.cke_skin_v2 .cke_button_iframe .cke_icon +{ + background-position: 0 -1279px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/icons.png b/htdocs/includes/ckeditor/_source/skins/v2/icons.png new file mode 100644 index 0000000000000000000000000000000000000000..7c3bf195dd35a2dd3773a5cae7e4712a1133a5d5 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/icons.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/icons_rtl.png b/htdocs/includes/ckeditor/_source/skins/v2/icons_rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..83eee28ac79d5e00e8ec9136ba491c8c0a2b8352 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/icons_rtl.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides.gif b/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides.gif new file mode 100644 index 0000000000000000000000000000000000000000..8f91b4753ad672ecbbda36ddd0522f6f93dadd1d Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides.png b/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..1042a61cf9f3c3839d1c4fafa0ad9d83396253ef Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png b/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..d7f7b49fcc3ed5a8fa763d0ad0372f86c8582b20 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/mini.gif b/htdocs/includes/ckeditor/_source/skins/v2/images/mini.gif new file mode 100644 index 0000000000000000000000000000000000000000..54d910741607aeef28fb9b5882f77f14a3d975ab Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/mini.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/noimage.png b/htdocs/includes/ckeditor/_source/skins/v2/images/noimage.png new file mode 100644 index 0000000000000000000000000000000000000000..159811305af7fc78662a53949f9c62bd702785af Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/noimage.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/sprites.png b/htdocs/includes/ckeditor/_source/skins/v2/images/sprites.png new file mode 100644 index 0000000000000000000000000000000000000000..982717bf33ee787a446a3cfab6d0d966a75a193b Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/sprites.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/sprites_ie6.png b/htdocs/includes/ckeditor/_source/skins/v2/images/sprites_ie6.png new file mode 100644 index 0000000000000000000000000000000000000000..4389b65b8a3a1064dc31b992d48600a1fd9310ca Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/sprites_ie6.png differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/images/toolbar_start.gif b/htdocs/includes/ckeditor/_source/skins/v2/images/toolbar_start.gif new file mode 100644 index 0000000000000000000000000000000000000000..1774246c2ef37fa17cdcd971b3db38c713989818 Binary files /dev/null and b/htdocs/includes/ckeditor/_source/skins/v2/images/toolbar_start.gif differ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/mainui.css b/htdocs/includes/ckeditor/_source/skins/v2/mainui.css new file mode 100644 index 0000000000000000000000000000000000000000..b9d4a7c0f0952dd760530b24ccd0d83bf0861709 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/mainui.css @@ -0,0 +1,162 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_v2 .cke_editor +{ + display: inline-table; + width: 100%; +} +.cke_skin_v2 .cke_browser_webkit .cke_editor +{ + display: table; /* #6684 */ +} + +.cke_skin_v2 +{ + display: block; +} + +.cke_skin_v2 span.cke_browser_webkit, +.cke_skin_v2 span.cke_browser_gecko18 +{ + display: block; +} + +.cke_skin_v2 .cke_wrapper +{ + display: block; +} + +.cke_skin_v2 .cke_browser_opera .cke_editor +{ + display: table; +} + +.cke_skin_v2 .cke_top, +.cke_skin_v2 .cke_bottom, + .cke_shared .cke_skin_v2 +{ + background-color: #efefde; +} + +.cke_skin_v2 .cke_top +{ + border-top: solid 1px #fafaf5; + border-left: solid 1px #fafaf5; + border-right: solid 1px #696969; + border-bottom: solid 2px #696969; +} + +.cke_skin_v2 .cke_rtl .cke_top +{ + border-left: solid 1px #696969; + border-right: solid 1px #fafaf5; +} + +.cke_skin_v2 .cke_bottom +{ + border-left: solid 1px #696969; + border-right: solid 1px #696969; + border-bottom: solid 1px #696969; +} + +.cke_skin_v2 .cke_contents +{ + border: solid 1px #696969; + /* Prevent background content from penetrate through when switching between editing modes. (#4918) */ + background-color: white; +} + +.cke_skin_v2 .cke_focus +{ + outline: auto 5px -webkit-focus-ring-color; +} + +.cke_skin_v2 textarea.cke_source +{ + font-family: 'Courier New' , Monospace; + font-size: small; + background-color: #fff; + white-space: pre; +} + +.cke_skin_v2 .cke_browser_iequirks textarea.cke_source +{ + /* For IE6+Quirks only */ + _white-space: normal; +} + +.cke_skin_v2 .cke_resizer +{ + width: 12px; + height: 12px; + margin-top: 16px; + display: block; + float: right; + /* resizer.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -801px; + background-repeat: no-repeat; + cursor: se-resize; +} + +/* Adobe AIR doesn't support *-resize cursor shape. */ +.cke_skin_v2 .cke_browser_air .cke_resizer, +.cke_skin_v2 .cke_browser_air .cke_rtl .cke_resizer +{ + cursor: move; +} + +.cke_skin_v2 .cke_resizer_rtl +{ + cursor: sw-resize; + /* resizer_rtl.gif*/ + background-position: 0 -828px; + float: left; +} + +.cke_skin_v2 .cke_resizer_horizontal, +.cke_skin_v2 .cke_rtl .cke_resizer_horizontal +{ + cursor: e-resize; +} + +.cke_skin_v2 .cke_resizer_vertical, +.cke_skin_v2 .cke_rtl .cke_resizer_vertical +{ + cursor: n-resize; +} + +.cke_skin_v2 .cke_maximized .cke_resizer +{ + display: none; +} + +.cke_skin_v2 .cke_browser_ie6 .cke_contents textarea, +.cke_skin_v2 .cke_browser_ie7 .cke_contents textarea +{ + position: absolute; +} + +/* All voice labels are not displayed. */ +.cke_skin_v2 .cke_voice_label +{ + display: none; +} + +.cke_skin_v2 legend.cke_voice_label +{ + display: none; +} + +.cke_skin_v2 .cke_browser_ie legend.cke_voice_label +{ + position: absolute; + display: block; + width: 0; + height: 0; + overflow: hidden; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/menu.css b/htdocs/includes/ckeditor/_source/skins/v2/menu.css new file mode 100644 index 0000000000000000000000000000000000000000..3aa92128361596de6a8b50247d58fd7407dde2f0 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/menu.css @@ -0,0 +1,232 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_v2 .cke_contextmenu +{ + padding: 2px; +} + +.cke_skin_v2 .cke_menuitem a +{ + display:block; +} + +.cke_skin_v2 .cke_menuitem span +{ + cursor: default; +} + +.cke_skin_v2 .cke_menuitem a:hover, +.cke_skin_v2 .cke_menuitem a:focus, +.cke_skin_v2 .cke_menuitem a:active +{ + background-color: #8f8f73; + display:block; +} +.cke_hc .cke_menuitem a:hover, +.cke_hc .cke_menuitem a:focus, +.cke_hc .cke_menuitem a:active +{ + border: 2px solid; +} + +.cke_skin_v2 .cke_menuitem .cke_icon +{ + background-image: url(icons.png); + background-position: 100px; + background-repeat:no-repeat; + background-color: transparent; + width: 16px; + height: 16px; + float: left; +} + +.cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon +{ + background-image: url(icons_rtl.png); +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_browser_ie .cke_skin_v2 .cke_menuitem .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie.cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie6 .cke_skin_v2 .cke_menuitem .cke_icon, +.cke_browser_ie .cke_skin_v2 .cke_menuitem.cke_noalphafix .cke_icon +{ + filter: ; +} + +.cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_browser_ie .cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie.cke_rtl .cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_browser_ie6 .cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon, +.cke_browser_ie .cke_skin_v2 .cke_menuitem.cke_noalphafix .cke_disabled .cke_icon +{ + filter: ; +} + +.cke_skin_v2 .cke_menuitem .cke_icon_wrapper +{ + background-color: #e3e3c7; + border: solid 4px #e3e3c7; + width: 16px; + height: 16px; + float: left; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + clear: both; +} + +.cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon_wrapper +{ + float: right; +} + +.cke_skin_v2 .cke_menuitem a:hover .cke_icon_wrapper, +.cke_skin_v2 .cke_menuitem a:focus .cke_icon_wrapper, +.cke_skin_v2 .cke_menuitem a:active .cke_icon_wrapper +{ + background-color: #9d9d9d; + border: solid 4px #9d9d9d; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_skin_v2 .cke_menuitem a:hover.cke_disabled .cke_icon_wrapper, +.cke_skin_v2 .cke_menuitem a:focus.cke_disabled .cke_icon_wrapper, +.cke_skin_v2 .cke_menuitem a:active.cke_disabled .cke_icon_wrapper +{ + background-color: #e3e3c7; + border: solid 4px #e3e3c7; +} + +.cke_skin_v2 .cke_menuitem .cke_label +{ + display:block; + padding-right: 3px; + padding-top: 5px; + padding-left: 4px; + height:19px; + margin-left: 24px; + background-color: #fff; +} +/* Set these after the document has been loaded and we know the dimensions*/ +.cke_skin_v2 .cke_frameLoaded .cke_menuitem .cke_label +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_rtl .cke_skin_v2 .cke_menuitem .cke_label +{ + padding-right: 0; + margin-left: 0; + padding-left: 3px; + margin-right: 28px; +} + +.cke_skin_v2 .cke_menuitem a.cke_disabled .cke_label +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.cke_skin_v2 .cke_menuitem a:hover .cke_label, +.cke_skin_v2 .cke_menuitem a:focus .cke_label, +.cke_skin_v2 .cke_menuitem a:active .cke_label +{ + background-color: #8f8f73; + color: white; +} + +.cke_skin_v2 .cke_menuitem a.cke_disabled:hover .cke_label, +.cke_skin_v2 .cke_menuitem a.cke_disabled:focus .cke_label, +.cke_skin_v2 .cke_menuitem a.cke_disabled:active .cke_label +{ + background-color: transparent; + color: black; +} + +.cke_skin_v2 .cke_menuseparator +{ + background-color: #e3e3c7; + height: 2px; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + + _font-size: 0; +} + +.cke_skin_v2 .cke_menuarrow +{ + /* arrowright.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 0 -784px; + background-repeat: no-repeat; + height: 5px; + width: 3px; + float: right; + margin-right: 2px; + margin-top: 3px; +} + +/* Never applied */ +.cke_rtl .cke_skin_v2 .cke_menuarrow +{ + float: left; + margin-right: 0; + margin-left: 2px; + /* arrowleft.gif*/ + background-position: 0 -763px; +} + +.cke_skin_v2 .cke_menuarrow span +{ + display: none; +} + +.cke_hc .cke_skin_v2 .cke_menuarrow +{ + width: auto; + margin-top: 0; +} + +.cke_hc .cke_skin_v2 .cke_menuarrow span +{ + display: inline; +} + +/* #3766 In the context menu, long labels with second level menu get wrapped */ +.cke_browser_ie.cke_ltr .cke_skin_v2 .cke_menuarrow +{ + position: absolute; + right: 2px; +} + +.cke_browser_ie.cke_rtl .cke_skin_v2 .cke_menuarrow +{ + position: absolute; + left: 2px; +} +/* END #3766 */ diff --git a/htdocs/includes/ckeditor/_source/skins/v2/panel.css b/htdocs/includes/ckeditor/_source/skins/v2/panel.css new file mode 100644 index 0000000000000000000000000000000000000000..9a983f5f46ba325a80dedd6f959c872fabef26ac --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/panel.css @@ -0,0 +1,212 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +.cke_skin_v2 .cke_panel +{ + border: 1px solid #8f8f73; + background-color: #fff; + + width: 120px; + height: 100px; + + overflow:hidden; + + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +/* Ideally we would use "inherit here"... but you know... IE :( */ +.cke_skin_v2 .cke_panel iframe +{ + width: 100%; + height: 100%; +} + +.cke_skin_v2 .cke_panel_frame .cke_label +{ + display: none; +} + +/* + * All the following styles are to be used inside the iframe that holds panel + * contents. We don't use the cke_skin_default there to avoid the reset to be + * active. + * This is not an issue as we'll never have two skins running inside the same + * panel iframe. + */ + +html.cke_skin_v2_container +{ + overflow: auto; + overflow-x: hidden; +} + +body.cke_panel_frame +{ + overflow: auto; +} + +ul.cke_panel_list +{ + list-style-type: none; + margin: 3px; + padding: 0px; + white-space: nowrap; +} + +li.cke_panel_listItem +{ + margin: 0px; +} + +.cke_panel_listItem a +{ + padding: 2px; + display: block; + border: 1px solid #fff; + color: inherit !important; + text-decoration: none; + overflow: hidden; + text-overflow: ellipsis; +} + +/* IE6 */ +* html .cke_panel_listItem a +{ + width : 100%; + + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +/* IE7 */ +*:first-child+html .cke_panel_listItem a +{ + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +.cke_panel_listItem.cke_selected a +{ + border: 1px solid #ccc; + background-color: #e9f5ff; +} + +.cke_panel_listItem a:hover, +.cke_panel_listItem a:focus, +.cke_panel_listItem a:active +{ + border-color: #316ac5; + background-color: #dff1ff; +} + +.cke_hc .cke_panel_listItem.cke_selected a, +.cke_hc .cke_panel_listItem a:hover, +.cke_hc .cke_panel_listItem a:focus, +.cke_hc .cke_panel_listItem a:active +{ + border-width: 3px; + padding: 0px; +} + +.cke_panel_grouptitle +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; + font-weight: bold; + white-space: nowrap; + background-color: #dcdcdc; + color: #000; + margin:0px; + padding:3px; +} + +.cke_panel_listItem p, +.cke_panel_listItem h1, +.cke_panel_listItem h2, +.cke_panel_listItem h3, +.cke_panel_listItem h4, +.cke_panel_listItem h5, +.cke_panel_listItem h6, +.cke_panel_listItem pre +{ + margin-top: 3px; + margin-bottom: 3px; +} + +.cke_skin_v2 .cke_button_textcolor_panel, +.cke_skin_v2 .cke_button_bgcolor_panel +{ + width: 150px; + height: 135px; +} + +.cke_colorblock +{ + padding: 3px; + font-size: 11px; + font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif; +} + +.cke_colorblock, +.cke_colorblock a +{ + text-decoration: none; + color: #000; +} + +span.cke_colorbox +{ + width: 10px; + height: 10px; + border: #808080 1px solid; + float: left; +} + +.cke_rtl span.cke_colorbox +{ + float: right; +} + +a.cke_colorbox +{ + border: #fff 1px solid; + padding: 2px; + float: left; +} + +.cke_rtl a.cke_colorbox +{ + float: right; +} + +a:hover.cke_colorbox, +a:focus.cke_colorbox, +a:active.cke_colorbox +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} + +a.cke_colorauto, +a.cke_colormore +{ + border: #fff 1px solid; + padding: 2px; + display: block; + cursor: pointer; +} + +a:hover.cke_colorauto, +a:hover.cke_colormore, +a:focus.cke_colorauto, +a:focus.cke_colormore, +a:active.cke_colorauto, +a:active.cke_colormore +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/presets.css b/htdocs/includes/ckeditor/_source/skins/v2/presets.css new file mode 100644 index 0000000000000000000000000000000000000000..4ebf63fd91d2f882539439802cb7429936aa5e95 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/presets.css @@ -0,0 +1,50 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/* "Source" button label */ +.cke_skin_v2 .cke_button_source .cke_label +{ + display: inline; /* FF2 */ + display: inline-block; +} + +/* "Styles" panel size */ +.cke_skin_v2 .cke_styles_panel +{ + width: 150px; + height: 170px; +} + +/* "Format" panel size */ +.cke_skin_v2 .cke_format_panel +{ + width: 150px; + height: 170px; +} + +/* "Font" panel size */ +.cke_skin_v2 .cke_font_panel +{ + width: 150px; + height: 170px; +} + +/* "Font Size" panel size */ +.cke_skin_v2 .cke_fontSize_panel +{ + height: 170px; +} + +/* "Font Size" combo width */ +.cke_skin_v2 .cke_fontSize .cke_text +{ + width: 20px; +} + +/* "Font Size" combo width (IE Quirks) */ +.cke_skin_v2 .cke_browser_iequirks .cke_fontSize .cke_text +{ + width: 32px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/reset.css b/htdocs/includes/ckeditor/_source/skins/v2/reset.css new file mode 100644 index 0000000000000000000000000000000000000000..e33aec7936b85df21203b84511d33a37b6c235bc --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/reset.css @@ -0,0 +1,85 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Reset and Default Values + */ +.cke_skin_v2 *, +.cke_skin_v2 a:hover, +.cke_skin_v2 a:link, +.cke_skin_v2 a:visited, +.cke_skin_v2 a:active +{ + margin: 0; + padding: 0; + border: 0; + background: transparent; + text-decoration: none; + font: normal normal normal 100% Sans-Serif; + width: auto; + height: auto; + border-collapse: collapse; + text-align: left; + vertical-align: baseline; + white-space: nowrap; + cursor: auto; + color: #000; + float: none; + + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.cke_skin_v2 .cke_rtl *, +.cke_skin_v2 .cke_rtl a:hover, +.cke_skin_v2 .cke_rtl a:link, +.cke_skin_v2 .cke_rtl a:visited, +.cke_skin_v2 .cke_rtl a:active, +.cke_rtl .cke_skin_v2 *, +.cke_rtl .cke_skin_v2 a:hover, +.cke_rtl .cke_skin_v2 a:link, +.cke_rtl .cke_skin_v2 a:visited, +.cke_rtl .cke_skin_v2 a:active +{ + text-align: right; +} + +.cke_skin_v2 iframe +{ + vertical-align: inherit; /** For IE */ +} + +.cke_skin_v2 textarea +{ + white-space: pre; +} + +.cke_skin_v2 .cke_browser_gecko textarea +{ + cursor: text; +} + +.cke_skin_v2 .cke_browser_gecko textarea[disabled] +{ + cursor: default; +} + +.cke_skin_v2 input[type="text"], +.cke_skin_v2 input[type="password"] +{ + cursor: text; +} + +.cke_skin_v2 input[type="text"][disabled], +.cke_skin_v2 input[type="password"][disabled] +{ + cursor: default; +} + +.cke_skin_v2 fieldset +{ + padding: 10px; + border: 2px groove #E0DFE3; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/richcombo.css b/htdocs/includes/ckeditor/_source/skins/v2/richcombo.css new file mode 100644 index 0000000000000000000000000000000000000000..8b4fd458ec4faae0ef58ecd12b233b7e16bd1fd5 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/richcombo.css @@ -0,0 +1,302 @@ +/* Special Combo */ + +.cke_skin_v2 .cke_rcombo +{ + display: inline-block; + margin-left: 2px; + margin-right: 2px; + margin-top: 2px; + vertical-align: top; +} + +.cke_skin_v2 .cke_browser_ie .cke_rcombo +{ + #display: inline; +} + +.cke_skin_v2 .cke_rcombopanel +{ + border: 1px solid #316ac5; + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + /*margin-left: 1px;*/ + /*_margin-left: 0;*/ +} + +.cke_skin_v2 .cke_rcombo a +{ + display: inline-block; + float: left; + + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.cke_skin_v2 .cke_rtl .cke_rcombo a +{ + float: right; +} + +.cke_skin_v2 .cke_hc .cke_rcombo a +{ + filter: alpha(opacity=100); /* IE */ + opacity: 1.0; /* Safari, Opera and Mozilla */ +} + +.cke_skin_v2 .cke_rcombo .cke_label +{ + float: left; + line-height: 20px; + line-height: 22px\9; + height: 22px; + padding-left: 4px; + padding-right: 5px; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + background-color: #f1f1e3; /* Because of IE6+ClearType */ + cursor: default; +} + +.cke_skin_v2 .cke_rtl .cke_rcombo .cke_label +{ + float: right; + padding-right: 4px; + padding-left: 5px; +} + +.cke_skin_v2 .cke_hc .cke_rcombo .cke_label +{ + filter: alpha(opacity=100); + opacity: 1.0; +} + +.cke_skin_v2 .cke_rcombo .cke_inline_label +{ + color: #fff; +} + +.cke_skin_v2 .cke_rcombo .cke_text +{ + border: 1px solid #8f8f73; + background-color: #fff; + height: 12px; + width:60px; + padding-top: 4px; + padding-bottom: 4px; + padding-left: 5px; + padding-right: 5px; + text-overflow: ellipsis; + overflow: hidden; + display: inline-block; + vertical-align: top; + cursor: default; +} + +.cke_skin_v2 .cke_ltr .cke_rcombo .cke_text +{ + -moz-border-radius-topleft: 3px; + -webkit-border-top-left-radius: 3px; + border-top-left-radius: 3px; + -moz-border-radius-bottomleft: 3px; + -webkit-border-bottom-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +.cke_skin_v2 .cke_rtl .cke_rcombo .cke_text +{ + -moz-border-radius-topright: 3px; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + -moz-border-radius-bottomright: 3px; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +/* Fix for IE height */ +.cke_skin_v2 .cke_browser_iequirks .cke_rcombo .cke_text +{ + height: 22px; +} + +.cke_skin_v2 .cke_rcombo .cke_openbutton +{ + display: inline-block; + border-top: 1px solid #8f8f73; + border-bottom: 1px solid #8f8f73; +} + +.cke_skin_v2 .cke_rcombo .cke_openbutton .cke_icon +{ + display: inline-block; + background-position: 5px -715px; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: no-repeat; + + width: 14px; + height: 20px; +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_v2 .cke_browser_ie .cke_rcombo .cke_openbutton .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_v2 .cke_browser_ie6 .cke_rcombo .cke_openbutton .cke_icon +{ + filter: ; +} +.cke_skin_v2 .cke_hc .cke_rcombo .cke_openbutton .cke_icon +{ + background: none; + filter: ; +} + +.cke_skin_v2 .cke_ltr .cke_rcombo .cke_openbutton +{ + border-right: 1px solid #8f8f73; + -moz-border-radius-topright: 3px; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + -moz-border-radius-bottomright: 3px; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +.cke_skin_v2 .cke_rtl .cke_rcombo .cke_openbutton +{ + border-left: 1px solid #8f8f73; + -moz-border-radius-topleft: 3px; + -webkit-border-top-left-radius: 3px; + border-top-left-radius: 3px; + -moz-border-radius-bottomleft: 3px; + -webkit-border-bottom-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +.cke_skin_v2 .cke_rcombo .cke_off a:hover, +.cke_skin_v2 .cke_rcombo .cke_off a:focus, +.cke_skin_v2 .cke_rcombo .cke_off a:active, +.cke_skin_v2 .cke_rcombo .cke_on a +{ + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ +} + +.cke_skin_v2 .cke_rcombo .cke_off a:hover .cke_text, +.cke_skin_v2 .cke_rcombo .cke_off a:focus .cke_text, +.cke_skin_v2 .cke_rcombo .cke_off a:active .cke_text, +.cke_skin_v2 .cke_rcombo .cke_on .cke_text +{ + border-color: #316ac5; +} + +.cke_skin_v2 .cke_rcombo .cke_off a:hover .cke_openbutton, +.cke_skin_v2 .cke_rcombo .cke_off a:focus .cke_openbutton, +.cke_skin_v2 .cke_rcombo .cke_off a:active .cke_openbutton, +.cke_skin_v2 .cke_rcombo .cke_on .cke_openbutton +{ + border-color: #316ac5; + background-color: #dff1ff; +} + +.cke_skin_v2 .cke_rcombo .cke_on .cke_text +{ + -moz-border-radius-bottomleft: 0px; + -webkit-border-bottom-left-radius: 0px; + border-bottom-left-radius: 0px; +} + +.cke_skin_v2 .cke_rcombo .cke_on .cke_openbutton +{ + -moz-border-radius-bottomright: 0px; + -webkit-border-bottom-right-radius: 0px; + border-bottom-right-radius: 0px; +} + +.cke_skin_v2 .cke_rcombo .cke_disabled .cke_label +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.3; /* Safari, Opera and Mozilla */ +} + +.cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_label +{ + filter: alpha(opacity=70); + opacity: 0.7; +} + +.cke_skin_v2 .cke_rcombo .cke_disabled .cke_text, +.cke_skin_v2 .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=50); /* IE */ + opacity: 0.5; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_v2 .cke_browser_ie .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=50); +} +.cke_skin_v2 .cke_browser_ie6 .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=50); +} + +.cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_text, +.cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_openbutton +{ + filter: alpha(opacity=80); + opacity: 0.8; +} + +.cke_skin_v2 .cke_rcombo .cke_disabled .cke_text +{ + color: #fff; +} + +/* Firefox 2 & WebKit Section */ + +.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo, +.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo .cke_label, +.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo .cke_text, +.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo .cke_openbutton, +.cke_skin_v2 .cke_browser_webkit .cke_rcombo .cke_label, +.cke_skin_v2 .cke_browser_webkit .cke_rcombo .cke_text, +.cke_skin_v2 .cke_browser_webkit .cke_rcombo .cke_openbutton +{ + display: block; + float: left; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_label, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_text, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_openbutton, +.cke_skin_v2 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_label, +.cke_skin_v2 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text, +.cke_skin_v2 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_openbutton +{ + float: right; +} + +/*** IE ***/ + +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_rcombo, +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_rcombo a, +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_rcombo .cke_label +{ + float: none; +} + +.cke_skin_v2 .cke_browser_iequirks .cke_rcombo .cke_openbutton +{ + height: 22px; +} + +.cke_skin_v2 .cke_rtl .cke_rcombo .cke_font .cke_text, +.cke_skin_v2 .cke_rtl .cke_rcombo .cke_fontSize .cke_text +{ + direction: ltr; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/skin.js b/htdocs/includes/ckeditor/_source/skins/v2/skin.js new file mode 100644 index 0000000000000000000000000000000000000000..769e53e94ab80876dc2e410d2191ef31902d4d83 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/skin.js @@ -0,0 +1,70 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.skins.add( 'v2', (function() +{ + return { + editor : { css : [ 'editor.css' ] }, + dialog : { css : [ 'dialog.css' ] }, + separator : { canGroup: false }, + templates : { css : [ 'templates.css' ] }, + margins : [ 0, 14, 18, 14 ] + }; +})() ); + +(function() +{ + CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup ); + + function dialogSetup() + { + CKEDITOR.dialog.on( 'resize', function( evt ) + { + var data = evt.data, + width = data.width, + height = data.height, + dialog = data.dialog, + contents = dialog.parts.contents; + + if ( data.skin != 'v2' ) + return; + + contents.setStyles( + { + width : width + 'px', + height : height + 'px' + }); + + if ( !CKEDITOR.env.ie || CKEDITOR.env.ie9Compat ) + return; + + // Fix the size of the elements which have flexible lengths. + setTimeout( function() + { + var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), + body = innerDialog.getChild( 0 ), + bodyWidth = body.getSize( 'width' ); + height += body.getChild( 0 ).getSize( 'height' ) + 1; + + // tc + var el = innerDialog.getChild( 2 ); + el.setSize( 'width', bodyWidth ); + + // bc + el = innerDialog.getChild( 7 ); + el.setSize( 'width', bodyWidth - 28 ); + + // ml + el = innerDialog.getChild( 4 ); + el.setSize( 'height', height ); + + // mr + el = innerDialog.getChild( 5 ); + el.setSize( 'height', height ); + }, + 100 ); + }); + } +})(); diff --git a/htdocs/includes/ckeditor/_source/skins/v2/templates.css b/htdocs/includes/ckeditor/_source/skins/v2/templates.css new file mode 100644 index 0000000000000000000000000000000000000000..64616994e5d3751d07079f42fc4740bd13bd2ef7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/templates.css @@ -0,0 +1,87 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * Styles for the "templates" plugin. + */ + +.cke_skin_v2 .cke_tpl_list +{ + border: #dcdcdc 2px solid; + background-color: #ffffff; + overflow: auto; + width: 100%; + height: 220px; +} + +.cke_skin_v2 .cke_tpl_item +{ + margin: 5px; + padding: 7px; + border: #eeeeee 1px solid; + *width: 88%; +} + +.cke_skin_v2 .cke_tpl_preview +{ + border-collapse: separate; + text-indent:0; + width: 100%; +} +.cke_skin_v2 .cke_tpl_preview td +{ + padding: 2px; + vertical-align: middle; +} +.cke_skin_v2 .cke_tpl_preview .cke_tpl_preview_img +{ + width: 100px; +} +.cke_skin_v2 .cke_tpl_preview span +{ + white-space: normal; +} + +.cke_skin_v2 .cke_tpl_title +{ + font-weight: bold; +} + +.cke_skin_v2 .cke_tpl_list a:active .cke_tpl_item, +.cke_skin_v2 .cke_tpl_list a:hover .cke_tpl_item, +.cke_skin_v2 .cke_tpl_list a:focus .cke_tpl_item +{ + border: #ff9933 1px solid !important; + background-color: #fffacd !important; +} + +.cke_skin_v2 .cke_tpl_list a:active *, +.cke_skin_v2 .cke_tpl_list a:hover *, +.cke_skin_v2 .cke_tpl_list a:focus * +{ + cursor: pointer; +} + +/* IE6 contextual selectors childs won't get :hover transition until, + the hover style of the link itself contains certain CSS declarations.*/ +.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:active, +.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:hover, +.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:focus +{ + background-position: 0 0; +} + +.cke_skin_v2 .cke_tpl_list a:active .cke_tpl_item, +.cke_skin_v2 .cke_tpl_list a:hover .cke_tpl_item, +.cke_skin_v2 .cke_tpl_list a:focus .cke_tpl_item +{ + border-width: 3px; +} + +.cke_skin_v2 .cke_tpl_empty, .cke_tpl_loading +{ + text-align: center; + padding: 5px; +} diff --git a/htdocs/includes/ckeditor/_source/skins/v2/toolbar.css b/htdocs/includes/ckeditor/_source/skins/v2/toolbar.css new file mode 100644 index 0000000000000000000000000000000000000000..d5939f568bbbafc72c3124b345f6a78aca7f5c9f --- /dev/null +++ b/htdocs/includes/ckeditor/_source/skins/v2/toolbar.css @@ -0,0 +1,465 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +@media print +{ + .cke_skin_v2 .cke_toolbox + { + display: none; + } +} + +.cke_skin_v2 .cke_browser_webkit .cke_toolbox, +.cke_skin_v2 .cke_browser_webkit .cke_toolbox > span +{ + white-space: normal; +} + +.cke_skin_v2 .cke_toolbox +{ + clear: both; + /* Define the padding-bottom otherwise the collapser button will not be clickable #4932*/ + padding-bottom: 1px; +} + +.cke_skin_v2 a.cke_toolbox_collapser, +.cke_skin_v2 a:hover.cke_toolbox_collapser +{ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 3px -739px; /* +3px +4px */ + background-repeat: no-repeat; + width: 11px; + height: 11px; + float: right; + border: outset 1px; + margin: 11px 2px 2px; + cursor: pointer; +} + +.cke_skin_v2 a.cke_toolbox_collapser span +{ + display: none; +} + +.cke_skin_v2 .cke_hc a.cke_toolbox_collapser span +{ + font-size: 10px; + font-weight: bold; + font-family: Arial; + display: inline; +} + +.cke_skin_v2 .cke_rtl a.cke_toolbox_collapser, +.cke_skin_v2 .cke_rtl a:hover.cke_toolbox_collapser +{ + float: left; +} + +.cke_skin_v2 a.cke_toolbox_collapser_min, +.cke_skin_v2 a:hover.cke_toolbox_collapser_min +{ + /* arrowleft.gif*/ + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-position: 4px -760px; /* +4px +3px */ + background-repeat: no-repeat; + margin: 2px; +} + +.cke_skin_v2 .cke_rtl a.cke_toolbox_collapser_min, +.cke_skin_v2 .cke_rtl a:hover.cke_toolbox_collapser_min +{ + /* arrowright.gif*/ + background-position: 4px -781px; /* +2px +3px */ +} + +.cke_skin_v2 .cke_toolbar +{ + padding-top: 1px; + padding-bottom: 1px; + display: inline-block; + float: left; +} + +.cke_skin_v2 .cke_rtl .cke_toolbar +{ + float: right; +} + +.cke_skin_v2 .cke_toolgroup +{ + display: inline-block; + float: left; +} + +.cke_skin_v2 .cke_browser_ie .cke_toolgroup +{ + #float: none; + #display: inline; +} + +.cke_skin_v2 .cke_rtl .cke_toolgroup +{ + float: right; +} + +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolgroup +{ + #float: none; +} + +.cke_skin_v2 .cke_separator +{ + display: inline-block; + float: left; + border-left: solid 1px #999; + margin: 4px 2px; + height: 16px; +} + +.cke_skin_v2 .cke_browser_ie .cke_separator +{ + #float: none; + #display: inline; +} + +.cke_skin_v2 .cke_rtl .cke_separator +{ + float: right; +} + +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_separator +{ + #float: none; +} + +.cke_skin_v2 .cke_break +{ + clear: left; +} + +.cke_skin_v2 .cke_rtl .cke_break +{ + clear: right; +} + +.cke_skin_v2 .cke_toolbar_start +{ + display: inline-block; + background-image: url(images/toolbar_start.gif); + background-repeat: no-repeat; + margin: 4px 2px 0 2px; + width: 3px; + height: 20px; + float: left; +} + +.cke_skin_v2 .cke_browser_ie .cke_toolbar_start +{ + #float: none; + #display: inline; +} + +.cke_skin_v2 .cke_rtl .cke_toolbar_start +{ + float: right; +} + +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_start +{ + #float: none; +} + +.cke_skin_v2 .cke_toolbar_end +{ + display: inline-block; + float: left; +} + +.cke_skin_v2 .cke_browser_ie .cke_toolbar_end +{ + #float: none; + #display: inline +} + +.cke_skin_v2 .cke_rtl .cke_toolbar_end +{ + float: right; +} + +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_end +{ + #float: none; +} + +/*#7181*/ +.cke_skin_v2 .cke_browser_ie9 .cke_rtl .cke_separator, +.cke_skin_v2 .cke_browser_ie9 .cke_rtl .cke_toolbar_start, +.cke_skin_v2 .cke_browser_ie9 .cke_rtl .cke_toolbar_end +{ + vertical-align:middle; +} + +.cke_skin_v2 .cke_button a, +.cke_skin_v2 .cke_button a:hover, +.cke_skin_v2 .cke_button a:focus, +.cke_skin_v2 .cke_button a:active, +.cke_skin_v2 .cke_button a.cke_off +{ + border: solid 1px #efefde; + display: inline-block; + border-radius: 3px; + outline: none; + padding-top: 2px; + padding-left: 4px; + padding-right: 4px; + padding-bottom: 2px; + height: 18px; + cursor: default; +} + +.cke_skin_v2 .cke_button a, +.cke_skin_v2 .cke_button a.cke_off +{ + background-color: #efefde; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.cke_skin_v2 .cke_hc .cke_button a, +.cke_skin_v2 .cke_hc .cke_button a.cke_off +{ + opacity: 1.0; + filter: alpha(opacity=100); +} + +.cke_skin_v2 .cke_button a.cke_on +{ + border: solid 1px #316ac5; + background-color: #a3d7ff; + filter: alpha(opacity=100); /* IE */ + opacity: 1; /* Safari, Opera and Mozilla */ +} + +.cke_skin_v2 .cke_button a.cke_disabled * +{ + filter: alpha(opacity=30); /* IE */ + opacity: 0.3; /* Safari, Opera and Mozilla */ +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_v2 .cke_browser_ie .cke_button a.cke_disabled *, +.cke_skin_v2 .cke_browser_ie a:hover.cke_button .cke_disabled * +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30); +} +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_button a.cke_disabled *, +.cke_skin_v2 .cke_browser_ie .cke_rtl a:hover.cke_button .cke_disabled * +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30); +} +.cke_skin_v2 .cke_browser_ie6 .cke_button a.cke_disabled *, +.cke_skin_v2 .cke_browser_ie6 a:hover.cke_button .cke_disabled *, +.cke_skin_v2 .cke_browser_ie .cke_button.cke_noalphafix a.cke_disabled * +{ + filter: alpha(opacity=30); +} + +.cke_skin_v2 .cke_hc .cke_button a.cke_disabled *, +.cke_skin_v2 .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled * +{ + filter: alpha(opacity=60); + opacity: 0.6; +} + +.cke_skin_v2 .cke_button a:hover, +.cke_skin_v2 .cke_button a:focus, +.cke_skin_v2 .cke_button a:active /* IE */ +{ + border: solid 1px #316ac5; + background-color: #dff1ff; + padding: 2px 4px; +} + +.cke_skin_v2 .cke_hc .cke_button a:hover, +.cke_skin_v2 .cke_hc .cke_button a:focus, +.cke_skin_v2 .cke_hc .cke_button a:active /* IE */ +{ + padding: 0 2px !important; + border-width: 3px; +} + +.cke_skin_v2 .cke_button .cke_icon +{ + background-image: url(icons.png); + background-position: 100px; + background-repeat:no-repeat; + margin-top:1px; + width: 16px; + height: 16px; + display: inline-block; + cursor: default; +} + +.cke_skin_v2 .cke_rtl .cke_button .cke_icon +{ + background-image: url(icons_rtl.png); +} + +/* IE with zoom != 100% will distort the icons otherwise #4821 */ +.cke_skin_v2 .cke_browser_ie .cke_button .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_button .cke_icon +{ + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'); +} +.cke_skin_v2 .cke_browser_ie6 .cke_button .cke_icon, +.cke_skin_v2 .cke_browser_ie6 .cke_rtl .cke_button .cke_icon, +.cke_skin_v2 .cke_browser_ie .cke_button.cke_noalphafix .cke_icon, +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_button.cke_noalphafix .cke_icon +{ + filter: ; +} + +.cke_skin_v2 .cke_button .cke_label +{ + cursor: default; + display: none; + padding-left: 3px; + vertical-align:middle; +} + +.cke_skin_v2 .cke_hc .cke_button .cke_label +{ + padding: 0; + display: inline-block; +} + +.cke_skin_v2 .cke_hc .cke_button .cke_icon +{ + display: none; +} + +.cke_skin_v2 .cke_accessibility +{ + position: absolute; + display: block; + width: 0; + height: 0; + overflow: hidden; +} + +.cke_skin_v2 .cke_button .cke_buttonarrow +{ + display: inline-block; + height: 17px; + width: 8px; + background-position: 2px -717px; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); + background-repeat: no-repeat; + cursor: default; +} + +.cke_skin_v2 .cke_rtl .cke_button .cke_buttonarrow +{ + background-position: 0 -717px; + background-image: url(images/sprites.png); + _background-image: url(images/sprites_ie6.png); +} + +/*** Firefox 2 ***/ + +.cke_skin_v2 .cke_browser_gecko18 .cke_toolbar, +.cke_skin_v2 .cke_browser_gecko18 .cke_button a, +.cke_skin_v2 .cke_browser_gecko18 .cke_button a.cke_off, +.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_icon, +.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_buttonarrow, +.cke_skin_v2 .cke_browser_gecko18 .cke_separator, +.cke_skin_v2 .cke_browser_gecko18 .cke_toolbar_start +{ + display: block; + float: left; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_hc .cke_button .cke_icon +{ + display: none; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_toolbar, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button a, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button a.cke_off, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button .cke_icon, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button .cke_buttonarrow, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_separator, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_toolbar_start +{ + float: right; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_label, +.cke_skin_v2 .cke_browser_gecko18 .cke_break +{ + float: left; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl span.cke_inline_label +{ + float: right; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button .cke_label, +.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_break +{ + float: right; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_separator +{ + margin-top: 4px; +} + +.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_label +{ + padding-top: 3px; +} + +/*** IE6 ***/ + +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolgroup, +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_separator, +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_start, +.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_end +{ + float: none; +} + +/*** IE8 ***/ + +.cke_skin_v2 .cke_browser_ie8 .cke_toolbar, +.cke_skin_v2 .cke_browser_ie8 .cke_toolgroup +{ + vertical-align: top; +} + +.cke_skin_v2 .cke_browser_iequirks.cke_browser_ie8 .cke_toolbar, +.cke_skin_v2 .cke_browser_iequirks.cke_browser_ie8 .cke_toolgroup +{ + /* revert previous */ + vertical-align: baseline; +} + +/* Fix cursor shape consistency on toolbar combos (#4031) */ +.cke_skin_v2 .cke_browser_ie .cke_rcombo, +.cke_skin_v2 .cke_browser_ie .cke_rcombo * +{ + cursor: default; +} diff --git a/htdocs/includes/ckeditor/_source/themes/default/theme.js b/htdocs/includes/ckeditor/_source/themes/default/theme.js new file mode 100644 index 0000000000000000000000000000000000000000..412c250d922dcf0c256eb82489ad9ad8cc771aa7 --- /dev/null +++ b/htdocs/includes/ckeditor/_source/themes/default/theme.js @@ -0,0 +1,407 @@ +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @name CKEDITOR.theme + * @class + */ + +CKEDITOR.themes.add( 'default', (function() +{ + var hiddenSkins = {}; + + function checkSharedSpace( editor, spaceName ) + { + var container, + element; + + // Try to retrieve the target element from the sharedSpaces settings. + element = editor.config.sharedSpaces; + element = element && element[ spaceName ]; + element = element && CKEDITOR.document.getById( element ); + + // If the element is available, we'll then create the container for + // the space. + if ( element ) + { + // Creates an HTML structure that reproduces the editor class hierarchy. + var html = + '<span class="cke_shared "' + + ' dir="'+ editor.lang.dir + '"' + + '>' + + '<span class="' + editor.skinClass + ' ' + editor.id + ' cke_editor_' + editor.name + '">' + + '<span class="' + CKEDITOR.env.cssClass + '">' + + '<span class="cke_wrapper cke_' + editor.lang.dir + '">' + + '<span class="cke_editor">' + + '<div class="cke_' + spaceName + '">' + + '</div></span></span></span></span></span>'; + + var mainContainer = element.append( CKEDITOR.dom.element.createFromHtml( html, element.getDocument() ) ); + + // Only the first container starts visible. Others get hidden. + if ( element.getCustomData( 'cke_hasshared' ) ) + mainContainer.hide(); + else + element.setCustomData( 'cke_hasshared', 1 ); + + // Get the deeper inner <div>. + container = mainContainer.getChild( [0,0,0,0] ); + + // Save a reference to the shared space container. + !editor.sharedSpaces && ( editor.sharedSpaces = {} ); + editor.sharedSpaces[ spaceName ] = container; + + // When the editor gets focus, we show the space container, hiding others. + editor.on( 'focus', function() + { + for ( var i = 0, sibling, children = element.getChildren() ; ( sibling = children.getItem( i ) ) ; i++ ) + { + if ( sibling.type == CKEDITOR.NODE_ELEMENT + && !sibling.equals( mainContainer ) + && sibling.hasClass( 'cke_shared' ) ) + { + sibling.hide(); + } + } + + mainContainer.show(); + }); + + editor.on( 'destroy', function() + { + mainContainer.remove(); + }); + } + + return container; + } + + return /** @lends CKEDITOR.theme */ { + build : function( editor, themePath ) + { + var name = editor.name, + element = editor.element, + elementMode = editor.elementMode; + + if ( !element || elementMode == CKEDITOR.ELEMENT_MODE_NONE ) + return; + + if ( elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + element.hide(); + + // Get the HTML for the predefined spaces. + var topHtml = editor.fire( 'themeSpace', { space : 'top', html : '' } ).html; + var contentsHtml = editor.fire( 'themeSpace', { space : 'contents', html : '' } ).html; + var bottomHtml = editor.fireOnce( 'themeSpace', { space : 'bottom', html : '' } ).html; + + var height = contentsHtml && editor.config.height; + + var tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0; + + // The editor height is considered only if the contents space got filled. + if ( !contentsHtml ) + height = 'auto'; + else if ( !isNaN( height ) ) + height += 'px'; + + var style = ''; + var width = editor.config.width; + + if ( width ) + { + if ( !isNaN( width ) ) + width += 'px'; + + style += "width: " + width + ";"; + } + + var sharedTop = topHtml && checkSharedSpace( editor, 'top' ), + sharedBottoms = checkSharedSpace( editor, 'bottom' ); + + sharedTop && ( sharedTop.setHtml( topHtml ) , topHtml = '' ); + sharedBottoms && ( sharedBottoms.setHtml( bottomHtml ), bottomHtml = '' ); + + var hideSkin = '<style>.' + editor.skinClass + '{visibility:hidden;}</style>'; + if ( hiddenSkins[ editor.skinClass ] ) + hideSkin = ''; + else + hiddenSkins[ editor.skinClass ] = 1; + + var container = CKEDITOR.dom.element.createFromHtml( [ + '<span' + + ' id="cke_', name, '"' + + ' class="', editor.skinClass, ' ', editor.id, ' cke_editor_', name, '"' + + ' dir="', editor.lang.dir, '"' + + ' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' + + ' lang="', editor.langCode, '"' + + ( CKEDITOR.env.webkit? ' tabindex="' + tabIndex + '"' : '' ) + + ' role="application"' + + ' aria-labelledby="cke_', name, '_arialbl"' + + ( style ? ' style="' + style + '"' : '' ) + + '>' + + '<span id="cke_', name, '_arialbl" class="cke_voice_label">' + editor.lang.editor + '</span>' + + '<span class="' , CKEDITOR.env.cssClass, '" role="presentation">' + + '<span class="cke_wrapper cke_', editor.lang.dir, '" role="presentation">' + + '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" role="presentation"><tbody>' + + '<tr', topHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_top_' , name, '" class="cke_top" role="presentation">' , topHtml , '</td></tr>' + + '<tr', contentsHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_contents_', name, '" class="cke_contents" style="height:', height, '" role="presentation">', contentsHtml, '</td></tr>' + + '<tr', bottomHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_bottom_' , name, '" class="cke_bottom" role="presentation">' , bottomHtml , '</td></tr>' + + '</tbody></table>' + + //Hide the container when loading skins, later restored by skin css. + hideSkin + + '</span>' + + '</span>' + + '</span>' ].join( '' ) ); + + container.getChild( [1, 0, 0, 0, 0] ).unselectable(); + container.getChild( [1, 0, 0, 0, 2] ).unselectable(); + + if ( elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + container.insertAfter( element ); + else + element.append( container ); + + /** + * The DOM element that holds the main editor interface. + * @name CKEDITOR.editor.prototype.container + * @type CKEDITOR.dom.element + * @example + * var editor = CKEDITOR.instances.editor1; + * alert( <b>editor.container</b>.getName() ); "span" + */ + editor.container = container; + + // Disable browser context menu for editor's chrome. + container.disableContextMenu(); + + // Use a class to indicate that the current selection is in different direction than the UI. + editor.on( 'contentDirChanged', function( evt ) + { + var func = ( editor.lang.dir != evt.data ? 'add' : 'remove' ) + 'Class'; + + container.getChild( 1 )[ func ]( 'cke_mixed_dir_content' ); + + // Put the mixed direction class on the respective element also for shared spaces. + var toolbarSpace = this.sharedSpaces && this.sharedSpaces[ this.config.toolbarLocation ]; + toolbarSpace && toolbarSpace.getParent().getParent()[ func ]( 'cke_mixed_dir_content' ); + }); + + editor.fireOnce( 'themeLoaded' ); + editor.fireOnce( 'uiReady' ); + }, + + buildDialog : function( editor ) + { + var baseIdNumber = CKEDITOR.tools.getNextNumber(); + + var element = CKEDITOR.dom.element.createFromHtml( [ + '<div class="', editor.id, '_dialog cke_editor_', editor.name.replace('.', '\\.'), '_dialog cke_skin_', editor.skinName, + '" dir="', editor.lang.dir, '"' + + ' lang="', editor.langCode, '"' + + ' role="dialog"' + + ' aria-labelledby="%title#"' + + '>' + + '<table class="cke_dialog', ' ' + CKEDITOR.env.cssClass, + ' cke_', editor.lang.dir, '" style="position:absolute" role="presentation">' + + '<tr><td role="presentation">' + + '<div class="%body" role="presentation">' + + '<div id="%title#" class="%title" role="presentation"></div>' + + '<a id="%close_button#" class="%close_button" href="javascript:void(0)" title="' + editor.lang.common.close+'" role="button"><span class="cke_label">X</span></a>' + + '<div id="%tabs#" class="%tabs" role="tablist"></div>' + + '<table class="%contents" role="presentation">' + + '<tr>' + + '<td id="%contents#" class="%contents" role="presentation"></td>' + + '</tr>' + + '<tr>' + + '<td id="%footer#" class="%footer" role="presentation"></td>' + + '</tr>' + + '</table>' + + '</div>' + + '<div id="%tl#" class="%tl"></div>' + + '<div id="%tc#" class="%tc"></div>' + + '<div id="%tr#" class="%tr"></div>' + + '<div id="%ml#" class="%ml"></div>' + + '<div id="%mr#" class="%mr"></div>' + + '<div id="%bl#" class="%bl"></div>' + + '<div id="%bc#" class="%bc"></div>' + + '<div id="%br#" class="%br"></div>' + + '</td></tr>' + + '</table>', + + //Hide the container when loading skins, later restored by skin css. + ( CKEDITOR.env.ie ? '' : '<style>.cke_dialog{visibility:hidden;}</style>' ), + + '</div>' + ].join( '' ) + .replace( /#/g, '_' + baseIdNumber ) + .replace( /%/g, 'cke_dialog_' ) ); + + var body = element.getChild( [ 0, 0, 0, 0, 0 ] ), + title = body.getChild( 0 ), + close = body.getChild( 1 ); + + // IFrame shim for dialog that masks activeX in IE. (#7619) + if ( CKEDITOR.env.ie && !CKEDITOR.env.ie6Compat ) + { + var isCustomDomain = CKEDITOR.env.isCustomDomain(), + src = 'javascript:void(function(){' + encodeURIComponent( 'document.open();' + ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + 'document.close();' ) + '}())', + iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' + + ' frameBorder="0"' + + ' class="cke_iframe_shim"' + + ' src="' + src + '"' + + ' tabIndex="-1"' + + '></iframe>' ); + iframe.appendTo( body.getParent() ); + } + + // Make the Title and Close Button unselectable. + title.unselectable(); + close.unselectable(); + + + return { + element : element, + parts : + { + dialog : element.getChild( 0 ), + title : title, + close : close, + tabs : body.getChild( 2 ), + contents : body.getChild( [ 3, 0, 0, 0 ] ), + footer : body.getChild( [ 3, 0, 1, 0 ] ) + } + }; + }, + + destroy : function( editor ) + { + var container = editor.container, + element = editor.element; + + if ( container ) + { + container.clearCustomData(); + container.remove(); + } + + if ( element ) + { + element.clearCustomData(); + editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.show(); + delete editor.element; + } + } + }; +})() ); + +/** + * Returns the DOM element that represents a theme space. The default theme defines + * three spaces, namely "top", "contents" and "bottom", representing the main + * blocks that compose the editor interface. + * @param {String} spaceName The space name. + * @returns {CKEDITOR.dom.element} The element that represents the space. + * @example + * // Hide the bottom space in the UI. + * var bottom = editor.getThemeSpace( 'bottom' ); + * bottom.setStyle( 'display', 'none' ); + */ +CKEDITOR.editor.prototype.getThemeSpace = function( spaceName ) +{ + var spacePrefix = 'cke_' + spaceName; + var space = this._[ spacePrefix ] || + ( this._[ spacePrefix ] = CKEDITOR.document.getById( spacePrefix + '_' + this.name ) ); + return space; +}; + +/** + * Resizes the editor interface. + * @param {Number|String} width The new width. It can be an pixels integer or a + * CSS size value. + * @param {Number|String} height The new height. It can be an pixels integer or + * a CSS size value. + * @param {Boolean} [isContentHeight] Indicates that the provided height is to + * be applied to the editor contents space, not to the entire editor + * interface. Defaults to false. + * @param {Boolean} [resizeInner] Indicates that the first inner interface + * element must receive the size, not the outer element. The default theme + * defines the interface inside a pair of span elements + * (<span><span>...</span></span>). By default the + * first span element receives the sizes. If this parameter is set to + * true, the second span is sized instead. + * @example + * editor.resize( 900, 300 ); + * @example + * editor.resize( '100%', 450, true ); + */ +CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, resizeInner ) +{ + var container = this.container, + contents = CKEDITOR.document.getById( 'cke_contents_' + this.name ), + contentsFrame = CKEDITOR.env.webkit && this.document && this.document.getWindow().$.frameElement, + outer = resizeInner ? container.getChild( 1 ) : container; + + // Set as border box width. (#5353) + outer.setSize( 'width', width, true ); + + // WebKit needs to refresh the iframe size to avoid rendering issues. (1/2) (#8348) + contentsFrame && ( contentsFrame.style.width = '1%' ); + + // Get the height delta between the outer table and the content area. + // If we're setting the content area's height, then we don't need the delta. + var delta = isContentHeight ? 0 : ( outer.$.offsetHeight || 0 ) - ( contents.$.clientHeight || 0 ); + contents.setStyle( 'height', Math.max( height - delta, 0 ) + 'px' ); + + // WebKit needs to refresh the iframe size to avoid rendering issues. (2/2) (#8348) + contentsFrame && ( contentsFrame.style.width = '100%' ); + + // Emit a resize event. + this.fire( 'resize' ); +}; + +/** + * Gets the element that can be freely used to check the editor size. This method + * is mainly used by the resize plugin, which adds a UI handle that can be used + * to resize the editor. + * @param {Boolean} forContents Whether to return the "contents" part of the theme instead of the container. + * @returns {CKEDITOR.dom.element} The resizable element. + * @example + */ +CKEDITOR.editor.prototype.getResizable = function( forContents ) +{ + return forContents ? CKEDITOR.document.getById( 'cke_contents_' + this.name ) : this.container; +}; + +/** + * Makes it possible to place some of the editor UI blocks, like the toolbar + * and the elements path, into any element in the page. + * The elements used to hold the UI blocks can be shared among several editor + * instances. In that case, only the blocks of the active editor instance will + * display. + * @name CKEDITOR.config.sharedSpaces + * @type Object + * @default undefined + * @example + * // Place the toolbar inside the element with ID "someElementId" and the + * // elements path into the element with ID "anotherId". + * config.sharedSpaces = + * { + * top : 'someElementId', + * bottom : 'anotherId' + * }; + * @example + * // Place the toolbar inside the element with ID "someElementId". The + * // elements path will remain attached to the editor UI. + * config.sharedSpaces = + * { + * top : 'someElementId' + * }; + */ + +/** + * Fired after the editor instance is resized through + * the {@link CKEDITOR.editor.prototype.resize} method. + * @name CKEDITOR.editor#resize + * @event + */