Switch language of CKEditor automatically

This commit is contained in:
2015-07-29 09:29:57 +02:00
parent 5a8547bd99
commit 64966da58a
80 changed files with 4041 additions and 11 deletions
+2 -2
View File
@@ -7,12 +7,12 @@ CKEDITOR.editorConfig = function( config ) {
// %REMOVE_START%
// The configuration options below are needed when running CKEditor from source files.
config.plugins = 'dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc,lineutils,widget,imagepaste';
config.plugins = 'dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc,lineutils,widget,image2,imagepaste';
config.skin = 'moono';
// %REMOVE_END%
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.language = 'de';
// config.uiColor = '#AADC6E';
config.customConfig = '../ckeditor-config.js'
};
Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

+35
View File
@@ -0,0 +1,35 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
.cke_widget_wrapper:hover:after {
content: "id: " attr(data-cke-widget-id);
position: absolute;
top: 0;
right: 0;
padding: 2px 4px;
background: #EEE;
border: solid 1px #DDD;
border-radius: 2px;
color: #BBB;
font: bold 10px sans-serif;
}
.align-left {
float: left;
margin-right: 20px;
}
.align-right {
float: right;
margin-left: 20px;
}
.align-center {
text-align: center;
}
.align-center > figure {
display: inline-block;
}
+339
View File
@@ -0,0 +1,339 @@
<!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>Widget Image &mdash; CKEditor Sample</title>
<script src="../../../ckeditor.js"></script>
<script src="../../../dev/console/console.js"></script>
<script src="../../../dev/console/focusconsole.js"></script>
<script src="../../widget/dev/console.js"></script>
<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
CKEDITOR.tools.enableHtml5Elements( document );
var editor;
// The instanceReady event is fired, when an instance of CKEditor has finished
// its initialization.
CKEDITOR.on( 'instanceReady', function( ev ) {
editor = ev.editor;
// Show this "on" button.
document.getElementById( 'readOnlyOn' ).style.display = '';
// Event fired when the readOnly property changes.
editor.on( 'readOnly', function() {
document.getElementById( 'readOnlyOn' ).style.display = this.readOnly ? 'none' : '';
document.getElementById( 'readOnlyOff' ).style.display = this.readOnly ? '' : 'none';
});
});
function toggleReadOnly( isReadOnly ) {
// Change the read-only state of the editor.
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly
editor.setReadOnly( isReadOnly );
}
</script>
<link href="../../../samples/sample.css" rel="stylesheet">
<style>
body {
font-size: 13px;
}
.editable {
padding: 20px;
border: 2px solid #dfdfdf;
overflow: auto;
}
body p {
line-height: 1.8em;
}
/* Reset some styles from sample.css */
.cke_editable.cke_editable_inline
{
cursor: auto;
}
.cke_editable.cke_editable_inline.cke_focus
{
box-shadow: none;
background: inherit;
cursor: auto;
}
</style>
<link href="contents.css" rel="stylesheet">
<link href="../../../contents.css" rel="stylesheet">
</head>
<body>
<h1 class="samples">
<a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Widget Image
</h1>
<h2>Classic (iframe-based) Sample</h2>
<textarea id="editor1" cols="10" rows="10">
<h1>Apollo 11</h1>
<figure class="image" style="float: right">
<img alt="Saturn V" src="assets/image1.jpg" width="200" data-foo="*********" data-bar="@@@@@@@@" />
<figcaption>Roll out of Saturn V on launch pad</figcaption>
</figure>
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
<p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
<blockquote>
<p>One small step for [a] man, one giant leap for mankind.</p>
</blockquote>
<p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
<blockquote>
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
</blockquote>
<figure class="image" style="float: right">
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
<figcaption>The Eagle in lunar orbit</figcaption>
</figure>
<h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>
<ol>
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
</ol>
<p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
<p style="text-align:center">
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
</p>
<hr />
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
</textarea>
<h2>Inline Sample</h2>
<div id="editor2" contenteditable="true" class="editable">
<h2>Apollo 11</h2>
<figure class="image" style="float: right">
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
<figcaption>Roll out of Saturn V on launch pad</figcaption>
</figure>
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
<p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
<blockquote>
<p>One small step for [a] man, one giant leap for mankind.</p>
</blockquote>
<p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
<blockquote>
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
</blockquote>
<figure class="image" style="float: right">
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
<figcaption>The Eagle in lunar orbit</figcaption>
</figure>
<h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>
<ol>
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
</ol>
<p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
<p style="text-align:center">
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
</p>
<hr />
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
</div>
<h2>Div Editing Area Sample</h2>
<textarea id="editor3" cols="10" rows="10">
<h1>Apollo 11</h1>
<figure class="caption" style="float: right">
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
<figcaption>Roll out of Saturn V on launch pad</figcaption>
</figure>
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
<p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
<blockquote>
<p>One small step for [a] man, one giant leap for mankind.</p>
</blockquote>
<p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
<blockquote>
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
</blockquote>
<figure class="caption" style="float: right">
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
<figcaption>The Eagle in lunar orbit</figcaption>
</figure>
<h2>Technical Details <a id="tech-details" name="tech-details"></a></h2>
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>
<ol>
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
</ol>
<p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
<p style="text-align:center">
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
</p>
<hr />
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
</textarea>
<h2>alignClasses samples</h2>
<textarea id="editor4" cols="10" rows="10">
<h1>Apollo 11</h1>
<figure class="align-left image">
<img alt="Saturn V" src="assets/image1.jpg" width="200" data-foo="*********" data-bar="@@@@@@@@" />
<figcaption>Roll out of Saturn V on launch pad</figcaption>
</figure>
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
<blockquote>
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
</blockquote>
<figure class="align-right image">
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
<figcaption>The Eagle in lunar orbit</figcaption>
</figure>
<h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>
<ol>
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
</ol>
<p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
<p class="align-center">
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
</p>
<hr />
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
</textarea>
<p>
<input id="readOnlyOn" onclick="toggleReadOnly( true );" type="button" value="Make it read-only" style="display:none">
<input id="readOnlyOff" onclick="toggleReadOnly( false );" type="button" value="Make it editable again" style="display:none">
</p>
<script>
CKEDITOR.disableAutoInline = true;
CKEDITOR.replace( 'editor1', {
extraPlugins: 'image2',
height: 600,
contentsCss: [ '../../../contents.css', 'contents.css' ],
extraAllowedContent: 'img[data-foo,data-bar]',
filebrowserBrowseUrl: '/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?Type=Images',
filebrowserUploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
} );
CKEDITOR.inline( 'editor2', {
extraPlugins: 'image2,sourcedialog'
} );
CKEDITOR.replace( 'editor3', {
extraPlugins: 'image2,divarea',
height: 600
} );
CKEDITOR.replace( 'editor4', {
extraPlugins: 'image2',
image2_alignClasses: [ 'align-left', 'align-center', 'align-right' ],
contentsCss: [ '../../../contents.css', 'contents.css' ],
height: 600
} );
CKCONSOLE.create( 'widget', { editor: 'editor1' } );
CKCONSOLE.create( 'focus', { editor: 'editor1' } );
CKCONSOLE.create( 'widget', { editor: 'editor2', folded: true } );
CKCONSOLE.create( 'focus', { editor: 'editor2', folded: true } );
CKCONSOLE.create( 'widget', { editor: 'editor3' } );
CKCONSOLE.create( 'focus', { editor: 'editor3' } );
CKCONSOLE.create( 'widget', { editor: 'editor4' } );
CKCONSOLE.create( 'focus', { editor: 'editor4' } );
</script>
<div id="footer">
<hr>
<p>
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
</p>
<p id="copy">
Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>
</body>
</html>
+657
View File
@@ -0,0 +1,657 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Image plugin based on Widgets API
*/
'use strict';
CKEDITOR.dialog.add( 'image2', function( editor ) {
// RegExp: 123, 123px, empty string ""
var regexGetSizeOrEmpty = /(^\s*(\d+)(px)?\s*$)|^$/i,
lockButtonId = CKEDITOR.tools.getNextId(),
resetButtonId = CKEDITOR.tools.getNextId(),
lang = editor.lang.image2,
commonLang = editor.lang.common,
lockResetStyle = 'margin-top:18px;width:40px;height:20px;',
lockResetHtml = new CKEDITOR.template(
'<div>' +
'<a href="javascript:void(0)" tabindex="-1" title="' + lang.lockRatio + '" class="cke_btn_locked" id="{lockButtonId}" role="checkbox">' +
'<span class="cke_icon"></span>' +
'<span class="cke_label">' + lang.lockRatio + '</span>' +
'</a>' +
'<a href="javascript:void(0)" tabindex="-1" title="' + lang.resetSize + '" class="cke_btn_reset" id="{resetButtonId}" role="button">' +
'<span class="cke_label">' + lang.resetSize + '</span>' +
'</a>' +
'</div>' ).output( {
lockButtonId: lockButtonId,
resetButtonId: resetButtonId
} ),
helpers = CKEDITOR.plugins.image2,
// Editor instance configuration.
config = editor.config,
// Content restrictions defined by the widget which
// impact on dialog structure and presence of fields.
features = editor.widgets.registered.image.features,
// Functions inherited from image2 plugin.
checkHasNaturalRatio = helpers.checkHasNaturalRatio,
getNatural = helpers.getNatural,
// Global variables referring to the dialog's context.
doc, widget, image,
// Global variable referring to this dialog's image pre-loader.
preLoader,
// Global variables holding the original size of the image.
domWidth, domHeight,
// Global variables related to image pre-loading.
preLoadedWidth, preLoadedHeight, srcChanged,
// Global variables related to size locking.
lockRatio, userDefinedLock,
// Global variables referring to dialog fields and elements.
lockButton, resetButton, widthField, heightField,
natural;
// Validates dimension. Allowed values are:
// "123px", "123", "" (empty string)
function validateDimension() {
var match = this.getValue().match( regexGetSizeOrEmpty ),
isValid = !!( match && parseInt( match[ 1 ], 10 ) !== 0 );
if ( !isValid )
alert( commonLang[ 'invalid' + CKEDITOR.tools.capitalize( this.id ) ] );
return isValid;
}
// Creates a function that pre-loads images. The callback function passes
// [image, width, height] or null if loading failed.
//
// @returns {Function}
function createPreLoader() {
var image = doc.createElement( 'img' ),
listeners = [];
function addListener( event, callback ) {
listeners.push( image.once( event, function( evt ) {
removeListeners();
callback( evt );
} ) );
}
function removeListeners() {
var l;
while ( ( l = listeners.pop() ) )
l.removeListener();
}
// @param {String} src.
// @param {Function} callback.
return function( src, callback, scope ) {
addListener( 'load', function() {
// Don't use image.$.(width|height) since it's buggy in IE9-10 (#11159)
var dimensions = getNatural( image );
callback.call( scope, image, dimensions.width, dimensions.height );
} );
addListener( 'error', function() {
callback( null );
} );
addListener( 'abort', function() {
callback( null );
} );
image.setAttribute( 'src',
( config.baseHref || '' ) + src + '?' + Math.random().toString( 16 ).substring( 2 ) );
};
}
// This function updates width and height fields once the
// "src" field is altered. Along with dimensions, also the
// dimensions lock is adjusted.
function onChangeSrc() {
var value = this.getValue();
toggleDimensions( false );
// Remember that src is different than default.
if ( value !== widget.data.src ) {
// Update dimensions of the image once it's preloaded.
preLoader( value, function( image, width, height ) {
// Re-enable width and height fields.
toggleDimensions( true );
// There was problem loading the image. Unlock ratio.
if ( !image )
return toggleLockRatio( false );
// Fill width field with the width of the new image.
widthField.setValue( width );
// Fill height field with the height of the new image.
heightField.setValue( height );
// Cache the new width.
preLoadedWidth = width;
// Cache the new height.
preLoadedHeight = height;
// Check for new lock value if image exist.
toggleLockRatio( helpers.checkHasNaturalRatio( image ) );
} );
srcChanged = true;
}
// Value is the same as in widget data but is was
// modified back in time. Roll back dimensions when restoring
// default src.
else if ( srcChanged ) {
// Re-enable width and height fields.
toggleDimensions( true );
// Restore width field with cached width.
widthField.setValue( domWidth );
// Restore height field with cached height.
heightField.setValue( domHeight );
// Src equals default one back again.
srcChanged = false;
}
// Value is the same as in widget data and it hadn't
// been modified.
else {
// Re-enable width and height fields.
toggleDimensions( true );
}
}
function onChangeDimension() {
// If ratio is un-locked, then we don't care what's next.
if ( !lockRatio )
return;
var value = this.getValue();
// No reason to auto-scale or unlock if the field is empty.
if ( !value )
return;
// If the value of the field is invalid (e.g. with %), unlock ratio.
if ( !value.match( regexGetSizeOrEmpty ) )
toggleLockRatio( false );
// No automatic re-scale when dimension is '0'.
if ( value === '0' )
return;
var isWidth = this.id == 'width',
// If dialog opened for the new image, domWidth and domHeight
// will be empty. Use dimensions from pre-loader in such case instead.
width = domWidth || preLoadedWidth,
height = domHeight || preLoadedHeight;
// If changing width, then auto-scale height.
if ( isWidth )
value = Math.round( height * ( value / width ) );
// If changing height, then auto-scale width.
else
value = Math.round( width * ( value / height ) );
// If the value is a number, apply it to the other field.
if ( !isNaN( value ) )
( isWidth ? heightField : widthField ).setValue( value );
}
// Set-up function for lock and reset buttons:
// * Adds lock and reset buttons to focusables. Check if button exist first
// because it may be disabled e.g. due to ACF restrictions.
// * Register mouseover and mouseout event listeners for UI manipulations.
// * Register click event listeners for buttons.
function onLoadLockReset() {
var dialog = this.getDialog();
function setupMouseClasses( el ) {
el.on( 'mouseover', function() {
this.addClass( 'cke_btn_over' );
}, el );
el.on( 'mouseout', function() {
this.removeClass( 'cke_btn_over' );
}, el );
}
// Create references to lock and reset buttons for this dialog instance.
lockButton = doc.getById( lockButtonId );
resetButton = doc.getById( resetButtonId );
// Activate (Un)LockRatio button
if ( lockButton ) {
// Consider that there's an additional focusable field
// in the dialog when the "browse" button is visible.
dialog.addFocusable( lockButton, 4 + hasFileBrowser );
lockButton.on( 'click', function( evt ) {
toggleLockRatio();
evt.data && evt.data.preventDefault();
}, this.getDialog() );
setupMouseClasses( lockButton );
}
// Activate the reset size button.
if ( resetButton ) {
// Consider that there's an additional focusable field
// in the dialog when the "browse" button is visible.
dialog.addFocusable( resetButton, 5 + hasFileBrowser );
// Fills width and height fields with the original dimensions of the
// image (stored in widget#data since widget#init).
resetButton.on( 'click', function( evt ) {
// If there's a new image loaded, reset button should revert
// cached dimensions of pre-loaded DOM element.
if ( srcChanged ) {
widthField.setValue( preLoadedWidth );
heightField.setValue( preLoadedHeight );
}
// If the old image remains, reset button should revert
// dimensions as loaded when the dialog was first shown.
else {
widthField.setValue( domWidth );
heightField.setValue( domHeight );
}
evt.data && evt.data.preventDefault();
}, this );
setupMouseClasses( resetButton );
}
}
function toggleLockRatio( enable ) {
// No locking if there's no radio (i.e. due to ACF).
if ( !lockButton )
return;
if ( typeof enable == 'boolean' ) {
// If user explicitly wants to decide whether
// to lock or not, don't do anything.
if ( userDefinedLock )
return;
lockRatio = enable;
}
// Undefined. User changed lock value.
else {
var width = widthField.getValue(),
height;
userDefinedLock = true;
lockRatio = !lockRatio;
// Automatically adjust height to width to match
// the original ratio (based on dom- dimensions).
if ( lockRatio && width ) {
height = domHeight / domWidth * width;
if ( !isNaN( height ) )
heightField.setValue( Math.round( height ) );
}
}
lockButton[ lockRatio ? 'removeClass' : 'addClass' ]( 'cke_btn_unlocked' );
lockButton.setAttribute( 'aria-checked', lockRatio );
// Ratio button hc presentation - WHITE SQUARE / BLACK SQUARE
if ( CKEDITOR.env.hc ) {
var icon = lockButton.getChild( 0 );
icon.setHtml( lockRatio ? CKEDITOR.env.ie ? '\u25A0' : '\u25A3' : CKEDITOR.env.ie ? '\u25A1' : '\u25A2' );
}
}
function toggleDimensions( enable ) {
var method = enable ? 'enable' : 'disable';
widthField[ method ]();
heightField[ method ]();
}
var hasFileBrowser = !!( config.filebrowserImageBrowseUrl || config.filebrowserBrowseUrl ),
srcBoxChildren = [
{
id: 'src',
type: 'text',
label: commonLang.url,
onKeyup: onChangeSrc,
onChange: onChangeSrc,
setup: function( widget ) {
this.setValue( widget.data.src );
},
commit: function( widget ) {
widget.setData( 'src', this.getValue() );
},
validate: CKEDITOR.dialog.validate.notEmpty( lang.urlMissing )
}
];
// Render the "Browse" button on demand to avoid an "empty" (hidden child)
// space in dialog layout that distorts the UI.
if ( hasFileBrowser ) {
srcBoxChildren.push( {
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:14px;',
align: 'center',
label: editor.lang.common.browseServer,
hidden: true,
filebrowser: 'info:src'
} );
}
return {
title: lang.title,
minWidth: 250,
minHeight: 100,
onLoad: function() {
// Create a "global" reference to the document for this dialog instance.
doc = this._.element.getDocument();
// Create a pre-loader used for determining dimensions of new images.
preLoader = createPreLoader();
},
onShow: function() {
// Create a "global" reference to edited widget.
widget = this.widget;
// Create a "global" reference to widget's image.
image = widget.parts.image;
// Reset global variables.
srcChanged = userDefinedLock = lockRatio = false;
// Natural dimensions of the image.
natural = getNatural( image );
// Get the natural width of the image.
preLoadedWidth = domWidth = natural.width;
// Get the natural height of the image.
preLoadedHeight = domHeight = natural.height;
},
contents: [
{
id: 'info',
label: lang.infoTab,
elements: [
{
type: 'vbox',
padding: 0,
children: [
{
type: 'hbox',
widths: [ '100%' ],
children: srcBoxChildren
}
]
},
{
id: 'alt',
type: 'text',
label: lang.alt,
setup: function( widget ) {
this.setValue( widget.data.alt );
},
commit: function( widget ) {
widget.setData( 'alt', this.getValue() );
}
},
{
type: 'hbox',
widths: [ '25%', '25%', '50%' ],
requiredContent: features.dimension.requiredContent,
children: [
{
type: 'text',
width: '45px',
id: 'width',
label: commonLang.width,
validate: validateDimension,
onKeyUp: onChangeDimension,
onLoad: function() {
widthField = this;
},
setup: function( widget ) {
this.setValue( widget.data.width );
},
commit: function( widget ) {
widget.setData( 'width', this.getValue() );
}
},
{
type: 'text',
id: 'height',
width: '45px',
label: commonLang.height,
validate: validateDimension,
onKeyUp: onChangeDimension,
onLoad: function() {
heightField = this;
},
setup: function( widget ) {
this.setValue( widget.data.height );
},
commit: function( widget ) {
widget.setData( 'height', this.getValue() );
}
},
{
id: 'lock',
type: 'html',
style: lockResetStyle,
onLoad: onLoadLockReset,
setup: function( widget ) {
toggleLockRatio( widget.data.lock );
},
commit: function( widget ) {
widget.setData( 'lock', lockRatio );
},
html: lockResetHtml
}
]
},
{
type: 'hbox',
id: 'alignment',
requiredContent: features.align.requiredContent,
children: [
{
id: 'align',
type: 'radio',
items: [
[ commonLang.alignNone, 'none' ],
[ commonLang.alignLeft, 'left' ],
[ commonLang.alignCenter, 'center' ],
[ commonLang.alignRight, 'right' ] ],
label: commonLang.align,
setup: function( widget ) {
this.setValue( widget.data.align );
},
commit: function( widget ) {
widget.setData( 'align', this.getValue() );
}
}
]
},
{
id: 'hasCaption',
type: 'checkbox',
label: lang.captioned,
requiredContent: features.caption.requiredContent,
setup: function( widget ) {
this.setValue( widget.data.hasCaption );
},
commit: function( widget ) {
widget.setData( 'hasCaption', this.getValue() );
}
}
]
},
{
id: 'Upload',
filebrowser: 'uploadButton',
label: lang.uploadTab,
elements: [
{
type: 'file',
id: 'upload',
label: lang.btnUpload,
style: 'height:40px'
},
{
type: 'fileButton',
id: 'uploadButton',
onLoad: function( a ) {
CKEDITOR.document.getById( this.domId ).on( 'click', function() {
// grab the file(s) from the file input tag and upload it using AJAX
var dialog = this.getDialog();
var files = dialog.getContentElement("Upload", "upload").getInputElement().$.files;
var file_missing_msg = localize("Please select a file!");
// no files were selected
if(files.length == 0) {
alert(file_missing_msg);
return false;
}
// Create the form data object for uploading with POST
var formData = new FormData();
// add all the other attachments that were previously added
$( "input[name^='attachment']" ).each(function(idx, el) {
formData.append($(el).attr('name'), $(el).attr('value'));
});
formData.append('drop-count', files.length); // number of files being uploaded
for (var i = 0; i < files.length; i++) {
formData.append('next_attachment', parent.next_attachment);
formData.append('encoding', "HTML");
formData.append('attfile', files[i]);
parent.next_attachment += 1;
}
formData.append('cmd', "Upload"); // Command for server to recognize this as an file upload
var URL = 'upload.html?next_attachment=' + parent.next_attachment;
$.ajax({
xhr: function()
{
var xhr = new window.XMLHttpRequest();
// Start the progress bar
progressJs().start();
//Upload progress
xhr.upload.addEventListener("progress", function(evt){
if (evt.lengthComputable) {
var percentComplete = evt.loaded / evt.total;
//Update the progress bar
progressJs().set(percentComplete);
}
}, false);
return xhr;
},
contentType: false,
processData: false,
type: 'POST',
url: URL,
data: formData,
success: function(data) {
// Extract the last attachment section of the returned page
var attch = $(".attachment", $(data)).last();
// Create a new attachment section that will replace the current one
var attch_upload = $("#attachment_upload", $(data));
// The last img tag in this html snippet contains the source of the image which we need
// We first split the html based on img tags
var arr = attch.html().split("<img");
// Then extract the source from the last array element
var tmp_str = arr[arr.length - 1];
// These are the start and end locations of the source
var start = tmp_str.indexOf("src=");
var end = tmp_str.indexOf("?thumb");
// Finally extract the img source
var suffix = 'src="'.length;
var src = tmp_str.substr(start + suffix, end - start - suffix);
if(src) { // check if we have the correct response
dialog.getContentElement( 'info', 'src' ).setValue( src );
} else {
console.log("Couldn't find img source...");
}
// add the new attachments to the current page
$("#attachment_upload").before(attch.slice(-files.length));
// replace the attachment upload section
$("#attachment_upload").replaceWith(attch_upload);
// End the progress bar
progressJs().end();
},
fail: function() {
// End the progress bar
progressJs().end();
console.log("Error uploading image...");
}
});
// Do not call the built-in click command
return false;
}, this );
},
label: lang.btnUpload,
'for': [ 'Upload', 'upload' ]
}
]
}
]
};
} );
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'af', {
alt: 'Alternatiewe teks',
btnUpload: 'Stuur na bediener',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Afbeelding informasie',
lockRatio: 'Vaste proporsie',
menu: 'Afbeelding eienskappe',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Herstel grootte',
resizer: 'Click and drag to resize', // MISSING
title: 'Afbeelding eienskappe',
uploadTab: 'Oplaai',
urlMissing: 'Die URL na die afbeelding ontbreek.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ar', {
alt: 'عنوان الصورة',
btnUpload: 'أرسلها للخادم',
captioned: 'صورة ذات اسم',
captionPlaceholder: 'تسمية',
infoTab: 'معلومات الصورة',
lockRatio: 'تناسق الحجم',
menu: 'خصائص الصورة',
pathName: 'صورة',
pathNameCaption: 'تسمية',
resetSize: 'إستعادة الحجم الأصلي',
resizer: 'انقر ثم اسحب للتحجيم',
title: 'خصائص الصورة',
uploadTab: 'رفع',
urlMissing: 'عنوان مصدر الصورة مفقود'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'bg', {
alt: 'Алтернативен текст',
btnUpload: 'Изпрати я на сървъра',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Инфо за снимка',
lockRatio: 'Заключване на съотношението',
menu: 'Настройки за снимка',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Нулиране на размер',
resizer: 'Click and drag to resize', // MISSING
title: 'Настройки за снимка',
uploadTab: 'Качване',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'bn', {
alt: 'বিকল্প টেক্সট',
btnUpload: 'ইহাকে সার্ভারে প্রেরন কর',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'ছবির তথ্য',
lockRatio: 'অনুপাত লক কর',
menu: 'ছবির প্রোপার্টি',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'সাইজ পূর্বাবস্থায় ফিরিয়ে দাও',
resizer: 'Click and drag to resize', // MISSING
title: 'ছবির প্রোপার্টি',
uploadTab: 'আপলোড',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'bs', {
alt: 'Tekst na slici',
btnUpload: 'Šalji na server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Info slike',
lockRatio: 'Zakljuèaj odnos',
menu: 'Svojstva slike',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Resetuj dimenzije',
resizer: 'Click and drag to resize', // MISSING
title: 'Svojstva slike',
uploadTab: 'Šalji',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ca', {
alt: 'Text alternatiu',
btnUpload: 'Envia-la al servidor',
captioned: 'Imatge amb subtítol',
captionPlaceholder: 'Títol',
infoTab: 'Informació de la imatge',
lockRatio: 'Bloqueja les proporcions',
menu: 'Propietats de la imatge',
pathName: 'imatge',
pathNameCaption: 'subtítol',
resetSize: 'Restaura la mida',
resizer: 'Clicar i arrossegar per redimensionar',
title: 'Propietats de la imatge',
uploadTab: 'Puja',
urlMissing: 'Falta la URL de la imatge.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'cs', {
alt: 'Alternativní text',
btnUpload: 'Odeslat na server',
captioned: 'Obrázek s popisem',
captionPlaceholder: 'Popis',
infoTab: 'Informace o obrázku',
lockRatio: 'Zámek',
menu: 'Vlastnosti obrázku',
pathName: 'Obrázek',
pathNameCaption: 'Popis',
resetSize: 'Původní velikost',
resizer: 'Klepněte a táhněte pro změnu velikosti',
title: 'Vlastnosti obrázku',
uploadTab: 'Odeslat',
urlMissing: 'Zadané URL zdroje obrázku nebylo nalezeno.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'cy', {
alt: 'Testun Amgen',
btnUpload: 'Anfon i\'r Gweinydd',
captioned: 'Delwedd â phennawd',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Gwyb Delwedd',
lockRatio: 'Cloi Cymhareb',
menu: 'Priodweddau Delwedd',
pathName: 'delwedd',
pathNameCaption: 'pennawd',
resetSize: 'Ailosod Maint',
resizer: 'Clicio a llusgo i ail-meintio',
title: 'Priodweddau Delwedd',
uploadTab: 'Lanlwytho',
urlMissing: 'URL gwreiddiol y ddelwedd ar goll.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'da', {
alt: 'Alternativ tekst',
btnUpload: 'Upload fil til serveren',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Generelt',
lockRatio: 'Lås størrelsesforhold',
menu: 'Egenskaber for billede',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Nulstil størrelse',
resizer: 'Click and drag to resize', // MISSING
title: 'Egenskaber for billede',
uploadTab: 'Upload',
urlMissing: 'Kilde på billed-URL mangler'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'de', {
alt: 'Alternativer Text',
btnUpload: 'Zum Server senden',
captioned: 'Bild mit Überschrift',
captionPlaceholder: 'Überschrift',
infoTab: 'Bild-Info',
lockRatio: 'Größenverhältnis beibehalten',
menu: 'Bild-Eigenschaften',
pathName: 'Bild',
pathNameCaption: 'Überschrift',
resetSize: 'Größe zurücksetzen',
resizer: 'Zum vergrößern anwählen und ziehen',
title: 'Bild-Eigenschaften',
uploadTab: 'Hochladen',
urlMissing: 'Imagequelle URL fehlt.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'el', {
alt: 'Εναλλακτικό Κείμενο',
btnUpload: 'Αποστολή στον Διακομιστή',
captioned: 'Εικόνα με λεζάντα',
captionPlaceholder: 'Λεζάντα',
infoTab: 'Πληροφορίες Εικόνας',
lockRatio: 'Κλείδωμα Αναλογίας',
menu: 'Ιδιότητες Εικόνας',
pathName: 'εικόνα',
pathNameCaption: 'λεζάντα',
resetSize: 'Επαναφορά Αρχικού Μεγέθους',
resizer: 'Κάνετε κλικ και σύρετε το ποντίκι για να αλλάξετε το μέγεθος',
title: 'Ιδιότητες Εικόνας',
uploadTab: 'Αποστολή',
urlMissing: 'Λείπει το πηγαίο URL της εικόνας.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'en-au', {
alt: 'Alternative Text',
btnUpload: 'Send it to the Server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Image Info',
lockRatio: 'Lock Ratio',
menu: 'Image Properties',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Reset Size',
resizer: 'Click and drag to resize', // MISSING
title: 'Image Properties',
uploadTab: 'Upload',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'en-ca', {
alt: 'Alternative Text',
btnUpload: 'Send it to the Server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Image Info',
lockRatio: 'Lock Ratio',
menu: 'Image Properties',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Reset Size',
resizer: 'Click and drag to resize', // MISSING
title: 'Image Properties',
uploadTab: 'Upload',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'en-gb', {
alt: 'Alternative Text',
btnUpload: 'Send it to the Server',
captioned: 'Captioned image',
captionPlaceholder: 'Caption',
infoTab: 'Image Info',
lockRatio: 'Lock Ratio',
menu: 'Image Properties',
pathName: 'image',
pathNameCaption: 'caption',
resetSize: 'Reset Size',
resizer: 'Click and drag to resize',
title: 'Image Properties',
uploadTab: 'Upload',
urlMissing: 'Image source URL is missing.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'en', {
alt: 'Alternative Text',
btnUpload: 'Send it to the Server',
captioned: 'Captioned image',
captionPlaceholder: 'Caption',
infoTab: 'Image Info',
lockRatio: 'Lock Ratio',
menu: 'Image Properties',
pathName: 'image',
pathNameCaption: 'caption',
resetSize: 'Reset Size',
resizer: 'Click and drag to resize',
title: 'Image Properties',
uploadTab: 'Upload',
urlMissing: 'Image source URL is missing.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'eo', {
alt: 'Anstataŭiga Teksto',
btnUpload: 'Sendu al Servilo',
captioned: 'Bildo kun apudskribo',
captionPlaceholder: 'Apudskribo',
infoTab: 'Informoj pri Bildo',
lockRatio: 'Konservi Proporcion',
menu: 'Atributoj de Bildo',
pathName: 'bildo',
pathNameCaption: 'apudskribo',
resetSize: 'Origina Grando',
resizer: 'Kliki kaj treni por ŝanĝi la grandon',
title: 'Atributoj de Bildo',
uploadTab: 'Alŝuti',
urlMissing: 'La fontretadreso de la bildo mankas.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'es', {
alt: 'Texto Alternativo',
btnUpload: 'Enviar al Servidor',
captioned: 'Imagen subtitulada',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Información de Imagen',
lockRatio: 'Proporcional',
menu: 'Propiedades de Imagen',
pathName: 'image',
pathNameCaption: 'subtítulo',
resetSize: 'Tamaño Original',
resizer: 'Dar clic y arrastrar para cambiar tamaño',
title: 'Propiedades de Imagen',
uploadTab: 'Cargar',
urlMissing: 'Debe indicar la URL de la imagen.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'et', {
alt: 'Alternatiivne tekst',
btnUpload: 'Saada serverisse',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Pildi info',
lockRatio: 'Lukusta kuvasuhe',
menu: 'Pildi omadused',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Lähtesta suurus',
resizer: 'Click and drag to resize', // MISSING
title: 'Pildi omadused',
uploadTab: 'Lae üles',
urlMissing: 'Pildi lähte-URL on puudu.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'eu', {
alt: 'Ordezko Testua',
btnUpload: 'Zerbitzarira bidalia',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Irudi informazioa',
lockRatio: 'Erlazioa Blokeatu',
menu: 'Irudi Ezaugarriak',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Tamaina Berrezarri',
resizer: 'Click and drag to resize', // MISSING
title: 'Irudi Ezaugarriak',
uploadTab: 'Gora kargatu',
urlMissing: 'Irudiaren iturburu URL-a falta da.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'fa', {
alt: 'متن جایگزین',
btnUpload: 'به سرور بفرست',
captioned: 'تصویر زیرنویس شده',
captionPlaceholder: 'عنوان',
infoTab: 'اطلاعات تصویر',
lockRatio: 'قفل کردن نسبت',
menu: 'ویژگی​های تصویر',
pathName: 'تصویر',
pathNameCaption: 'عنوان',
resetSize: 'بازنشانی اندازه',
resizer: 'کلیک و کشیدن برای تغییر اندازه',
title: 'ویژگی​های تصویر',
uploadTab: 'بالاگذاری',
urlMissing: 'آدرس URL اصلی تصویر یافت نشد.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'fi', {
alt: 'Vaihtoehtoinen teksti',
btnUpload: 'Lähetä palvelimelle',
captioned: 'Kuva kuvatekstillä',
captionPlaceholder: 'Kuvateksti',
infoTab: 'Kuvan tiedot',
lockRatio: 'Lukitse suhteet',
menu: 'Kuvan ominaisuudet',
pathName: 'kuva',
pathNameCaption: 'kuvateksti',
resetSize: 'Alkuperäinen koko',
resizer: 'Klikkaa ja raahaa muuttaaksesi kokoa',
title: 'Kuvan ominaisuudet',
uploadTab: 'Lisää tiedosto',
urlMissing: 'Kuvan lähdeosoite puuttuu.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'fo', {
alt: 'Alternativur tekstur',
btnUpload: 'Send til ambætaran',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Myndaupplýsingar',
lockRatio: 'Læs lutfallið',
menu: 'Myndaeginleikar',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Upprunastødd',
resizer: 'Click and drag to resize', // MISSING
title: 'Myndaeginleikar',
uploadTab: 'Send til ambætaran',
urlMissing: 'URL til mynd manglar.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'fr-ca', {
alt: 'Texte alternatif',
btnUpload: 'Envoyer sur le serveur',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Informations sur l\'image2',
lockRatio: 'Verrouiller les proportions',
menu: 'Propriétés de l\'image2',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Taille originale',
resizer: 'Click and drag to resize', // MISSING
title: 'Propriétés de l\'image2',
uploadTab: 'Téléverser',
urlMissing: 'L\'URL de la source de l\'image est manquant.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'fr', {
alt: 'Texte de remplacement',
btnUpload: 'Envoyer sur le serveur',
captioned: 'Image légendée',
captionPlaceholder: 'Légende',
infoTab: 'Informations sur l\'image2',
lockRatio: 'Conserver les proportions',
menu: 'Propriétés de l\'image2',
pathName: 'image',
pathNameCaption: 'légende',
resetSize: 'Taille d\'origine',
resizer: 'Cliquer et glisser pour redimensionner',
title: 'Propriétés de l\'image2',
uploadTab: 'Envoyer',
urlMissing: 'L\'adresse source de l\'image est manquante.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'gl', {
alt: 'Texto alternativo',
btnUpload: 'Enviar ao servidor',
captioned: 'Imaxe subtitulada ',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Información da imaxe',
lockRatio: 'Proporcional',
menu: 'Propiedades da imaxe',
pathName: 'Imaxe',
pathNameCaption: 'subtítulo',
resetSize: 'Tamaño orixinal',
resizer: 'Prema e arrastre para axustar o tamaño',
title: 'Propiedades da imaxe',
uploadTab: 'Cargar',
urlMissing: 'Non se atopa o URL da imaxe.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'gu', {
alt: 'ઑલ્ટર્નટ ટેક્સ્ટ',
btnUpload: 'આ સર્વરને મોકલવું',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'ચિત્ર ની જાણકારી',
lockRatio: 'લૉક ગુણોત્તર',
menu: 'ચિત્રના ગુણ',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'રીસેટ સાઇઝ',
resizer: 'Click and drag to resize', // MISSING
title: 'ચિત્રના ગુણ',
uploadTab: 'અપલોડ',
urlMissing: 'ઈમેજની મૂળ URL છે નહી.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'he', {
alt: 'טקסט חלופי',
btnUpload: 'שליחה לשרת',
captioned: 'כותרת תמונה',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'מידע על התמונה',
lockRatio: 'נעילת היחס',
menu: 'תכונות התמונה',
pathName: 'תמונה',
pathNameCaption: 'כותרת',
resetSize: 'איפוס הגודל',
resizer: 'לחץ וגרור לשינוי הגודל',
title: 'מאפייני התמונה',
uploadTab: 'העלאה',
urlMissing: 'כתובת התמונה חסרה.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'hi', {
alt: 'वैकल्पिक टेक्स्ट',
btnUpload: 'इसे सर्वर को भेजें',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'तस्वीर की जानकारी',
lockRatio: 'लॉक अनुपात',
menu: 'तस्वीर प्रॉपर्टीज़',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'रीसॅट साइज़',
resizer: 'Click and drag to resize', // MISSING
title: 'तस्वीर प्रॉपर्टीज़',
uploadTab: 'अपलोड',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'hr', {
alt: 'Alternativni tekst',
btnUpload: 'Pošalji na server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Info slike',
lockRatio: 'Zaključaj odnos',
menu: 'Svojstva slika',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Obriši veličinu',
resizer: 'Click and drag to resize', // MISSING
title: 'Svojstva slika',
uploadTab: 'Pošalji',
urlMissing: 'Nedostaje URL slike.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'hu', {
alt: 'Buborék szöveg',
btnUpload: 'Küldés a szerverre',
captioned: 'Feliratozott kép',
captionPlaceholder: 'Képfelirat',
infoTab: 'Alaptulajdonságok',
lockRatio: 'Arány megtartása',
menu: 'Kép tulajdonságai',
pathName: 'kép',
pathNameCaption: 'felirat',
resetSize: 'Eredeti méret',
resizer: 'Kattints és húzz az átméretezéshez',
title: 'Kép tulajdonságai',
uploadTab: 'Feltöltés',
urlMissing: 'Hiányzik a kép URL-je'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'id', {
alt: 'Teks alternatif',
btnUpload: 'Kirim ke Server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Info Gambar',
lockRatio: 'Lock Ratio', // MISSING
menu: 'Image Properties', // MISSING
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Reset Size', // MISSING
resizer: 'Click and drag to resize', // MISSING
title: 'Image Properties', // MISSING
uploadTab: 'Unggah',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'is', {
alt: 'Baklægur texti',
btnUpload: 'Hlaða upp',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Almennt',
lockRatio: 'Festa stærðarhlutfall',
menu: 'Eigindi myndar',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Reikna stærð',
resizer: 'Click and drag to resize', // MISSING
title: 'Eigindi myndar',
uploadTab: 'Senda upp',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'it', {
alt: 'Testo alternativo',
btnUpload: 'Invia al server',
captioned: 'Immagine con didascalia',
captionPlaceholder: 'Didascalia',
infoTab: 'Informazioni immagine',
lockRatio: 'Blocca rapporto',
menu: 'Proprietà immagine',
pathName: 'immagine',
pathNameCaption: 'didascalia',
resetSize: 'Reimposta dimensione',
resizer: 'Fare clic e trascinare per ridimensionare',
title: 'Proprietà immagine',
uploadTab: 'Carica',
urlMissing: 'Manca l\'URL dell\'immagine.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ja', {
alt: '代替テキスト',
btnUpload: 'サーバーに送信',
captioned: 'キャプションを付ける',
captionPlaceholder: 'キャプション',
infoTab: '画像情報',
lockRatio: '比率を固定',
menu: '画像のプロパティ',
pathName: 'image',
pathNameCaption: 'caption',
resetSize: 'サイズをリセット',
resizer: 'ドラッグしてリサイズ',
title: '画像のプロパティ',
uploadTab: 'アップロード',
urlMissing: '画像のURLを入力してください。'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ka', {
alt: 'სანაცვლო ტექსტი',
btnUpload: 'სერვერისთვის გაგზავნა',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'სურათის ინფორმცია',
lockRatio: 'პროპორციის შენარჩუნება',
menu: 'სურათის პარამეტრები',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'ზომის დაბრუნება',
resizer: 'Click and drag to resize', // MISSING
title: 'სურათის პარამეტრები',
uploadTab: 'აქაჩვა',
urlMissing: 'სურათის URL არაა შევსებული.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'km', {
alt: 'អត្ថបទជំនួស',
btnUpload: 'បញ្ជូនទៅកាន់ម៉ាស៊ីនផ្តល់សេវា',
captioned: 'រូប​ដែល​មាន​ចំណង​ជើង',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'ពត៌មានអំពីរូបភាព',
lockRatio: 'ចាក់​សោ​ផល​ធៀប',
menu: 'លក្ខណៈ​សម្បត្តិ​រូប​ភាព',
pathName: 'រូបភាព',
pathNameCaption: 'ចំណងជើង',
resetSize: 'កំណត់ទំហំឡើងវិញ',
resizer: 'ចុច​ហើយ​ទាញ​ដើម្បី​ប្ដូរ​ទំហំ',
title: 'លក្ខណៈ​សម្បត្តិ​រូប​ភាប',
uploadTab: 'ផ្ទុក​ឡើង',
urlMissing: 'ខ្វះ URL ប្រភព​រូប​ភាព។'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ko', {
alt: '이미지 설명',
btnUpload: '서버로 전송',
captioned: '이미지 설명 넣기',
captionPlaceholder: 'Caption', // MISSING
infoTab: '이미지 정보',
lockRatio: '비율 유지',
menu: '이미지 설정',
pathName: '이미지',
pathNameCaption: '이미지 설명',
resetSize: '원래 크기로',
resizer: '크기를 조절하려면 클릭 후 드래그 하세요',
title: '이미지 설정',
uploadTab: '업로드',
urlMissing: '이미지 소스 URL이 없습니다.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ku', {
alt: 'جێگرەوەی دەق',
btnUpload: 'ناردنی بۆ ڕاژه',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'زانیاری وێنه',
lockRatio: 'داخستنی ڕێژه',
menu: 'خاسیەتی وێنه',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'ڕێکخستنەوەی قەباره',
resizer: 'Click and drag to resize', // MISSING
title: 'خاسیەتی وێنه',
uploadTab: 'بارکردن',
urlMissing: 'سەرچاوەی بەستەری وێنه بزره'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'lt', {
alt: 'Alternatyvus Tekstas',
btnUpload: 'Siųsti į serverį',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Vaizdo informacija',
lockRatio: 'Išlaikyti proporciją',
menu: 'Vaizdo savybės',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Atstatyti dydį',
resizer: 'Click and drag to resize', // MISSING
title: 'Vaizdo savybės',
uploadTab: 'Siųsti',
urlMissing: 'Paveiksliuko nuorodos nėra.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'lv', {
alt: 'Alternatīvais teksts',
btnUpload: 'Nosūtīt serverim',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Informācija par attēlu',
lockRatio: 'Nemainīga Augstuma/Platuma attiecība',
menu: 'Attēla īpašības',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Atjaunot sākotnējo izmēru',
resizer: 'Click and drag to resize', // MISSING
title: 'Attēla īpašības',
uploadTab: 'Augšupielādēt',
urlMissing: 'Trūkst attēla atrašanās adrese.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'mk', {
alt: 'Alternative Text', // MISSING
btnUpload: 'Send it to the Server', // MISSING
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Image Info', // MISSING
lockRatio: 'Lock Ratio', // MISSING
menu: 'Image Properties', // MISSING
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Reset Size', // MISSING
resizer: 'Click and drag to resize', // MISSING
title: 'Image Properties', // MISSING
uploadTab: 'Upload', // MISSING
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'mn', {
alt: 'Зургийг орлох бичвэр',
btnUpload: 'Үүнийг сервэррүү илгээ',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Зурагны мэдээлэл',
lockRatio: 'Радио түгжих',
menu: 'Зураг',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'хэмжээ дахин оноох',
resizer: 'Click and drag to resize', // MISSING
title: 'Зураг',
uploadTab: 'Илгээж ачаалах',
urlMissing: 'Зургийн эх сурвалжийн хаяг (URL) байхгүй байна.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ms', {
alt: 'Text Alternatif',
btnUpload: 'Hantar ke Server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Info Imej',
lockRatio: 'Tetapkan Nisbah',
menu: 'Ciri-ciri Imej',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Saiz Set Semula',
resizer: 'Click and drag to resize', // MISSING
title: 'Ciri-ciri Imej',
uploadTab: 'Muat Naik',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'nb', {
alt: 'Alternativ tekst',
btnUpload: 'Send det til serveren',
captioned: 'Bilde med bildetekst',
captionPlaceholder: 'Bildetekst',
infoTab: 'Bildeinformasjon',
lockRatio: 'Lås forhold',
menu: 'Bildeegenskaper',
pathName: 'bilde',
pathNameCaption: 'bildetekst',
resetSize: 'Tilbakestill størrelse',
resizer: 'Klikk og dra for å endre størrelse',
title: 'Bildeegenskaper',
uploadTab: 'Last opp',
urlMissing: 'Bildets adresse mangler.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'nl', {
alt: 'Alternatieve tekst',
btnUpload: 'Naar server verzenden',
captioned: 'Afbeelding met onderschrift',
captionPlaceholder: 'Onderschrift',
infoTab: 'Afbeeldingsinformatie',
lockRatio: 'Verhouding vergrendelen',
menu: 'Eigenschappen afbeelding',
pathName: 'afbeelding',
pathNameCaption: 'onderschrift',
resetSize: 'Afmetingen herstellen',
resizer: 'Klik en sleep om te herschalen',
title: 'Afbeeldingseigenschappen',
uploadTab: 'Uploaden',
urlMissing: 'De URL naar de afbeelding ontbreekt.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'no', {
alt: 'Alternativ tekst',
btnUpload: 'Send det til serveren',
captioned: 'Bilde med bildetekst',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Bildeinformasjon',
lockRatio: 'Lås forhold',
menu: 'Bildeegenskaper',
pathName: 'bilde',
pathNameCaption: 'bildetekst',
resetSize: 'Tilbakestill størrelse',
resizer: 'Klikk og dra for å endre størrelse',
title: 'Bildeegenskaper',
uploadTab: 'Last opp',
urlMissing: 'Bildets adresse mangler.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'pl', {
alt: 'Tekst zastępczy',
btnUpload: 'Wyślij',
captioned: 'Obrazek z podpisem',
captionPlaceholder: 'Podpis',
infoTab: 'Informacje o obrazku',
lockRatio: 'Zablokuj proporcje',
menu: 'Właściwości obrazka',
pathName: 'obrazek',
pathNameCaption: 'podpis',
resetSize: 'Przywróć rozmiar',
resizer: 'Kliknij i przeciągnij, by zmienić rozmiar.',
title: 'Właściwości obrazka',
uploadTab: 'Wyślij',
urlMissing: 'Podaj adres URL obrazka.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'pt-br', {
alt: 'Texto Alternativo',
btnUpload: 'Enviar para o Servidor',
captioned: 'Legenda da Imagem',
captionPlaceholder: 'Legenda',
infoTab: 'Informações da Imagem',
lockRatio: 'Travar Proporções',
menu: 'Formatar Imagem',
pathName: 'Imagem',
pathNameCaption: 'Legenda',
resetSize: 'Redefinir para o Tamanho Original',
resizer: 'Click e arraste para redimensionar',
title: 'Formatar Imagem',
uploadTab: 'Enviar ao Servidor',
urlMissing: 'URL da imagem está faltando.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'pt', {
alt: 'Texto Alternativo',
btnUpload: 'Enviar para o Servidor',
captioned: 'Imagem Legendada',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Informação da Imagem',
lockRatio: 'Proporcional',
menu: 'Propriedades da Imagem',
pathName: 'imagem',
pathNameCaption: 'legenda',
resetSize: 'Tamanho Original',
resizer: 'Clique e arraste para redimensionar',
title: 'Propriedades da Imagem',
uploadTab: 'Enviar',
urlMissing: 'O URL da fonte da imagem está em falta.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ro', {
alt: 'Text alternativ',
btnUpload: 'Trimite la server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Informaţii despre imagine',
lockRatio: 'Păstrează proporţiile',
menu: 'Proprietăţile imaginii',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Resetează mărimea',
resizer: 'Click and drag to resize', // MISSING
title: 'Proprietăţile imaginii',
uploadTab: 'Încarcă',
urlMissing: 'Sursa URL a imaginii lipsește.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ru', {
alt: 'Альтернативный текст',
btnUpload: 'Загрузить на сервер',
captioned: 'Захваченное изображение',
captionPlaceholder: 'Название',
infoTab: 'Данные об изображении',
lockRatio: 'Сохранять пропорции',
menu: 'Свойства изображения',
pathName: 'изображение',
pathNameCaption: 'захват',
resetSize: 'Вернуть обычные размеры',
resizer: 'Нажмите и растяните',
title: 'Свойства изображения',
uploadTab: 'Загрузка файла',
urlMissing: 'Не указана ссылка на изображение.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'si', {
alt: 'විකල්ප ',
btnUpload: 'සේවාදායකය වෙත යොමුකිරිම',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'රුපයේ තොරතුරු',
lockRatio: 'නවතන අනුපාතය ',
menu: 'රුපයේ ගුණ',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'නැවතත් විශාලත්වය වෙනස් කිරීම',
resizer: 'Click and drag to resize', // MISSING
title: 'රුපයේ ',
uploadTab: 'උඩුගතකිරීම',
urlMissing: 'රුප මුලාශ්‍ර URL නැත.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'sk', {
alt: 'Alternatívny text',
btnUpload: 'Odoslať to na server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Informácie o obrázku',
lockRatio: 'Pomer zámky',
menu: 'Vlastnosti obrázka',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Pôvodná veľkosť',
resizer: 'Click and drag to resize', // MISSING
title: 'Vlastnosti obrázka',
uploadTab: 'Nahrať',
urlMissing: 'Chýba URL zdroja obrázka.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'sl', {
alt: 'Nadomestno besedilo',
btnUpload: 'Pošlji na strežnik',
captioned: 'Podnaslovljena slika',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Podatki o sliki',
lockRatio: 'Zakleni razmerje',
menu: 'Lastnosti slike',
pathName: 'slika',
pathNameCaption: 'napis',
resetSize: 'Ponastavi velikost',
resizer: 'Kliknite in povlecite, da spremeniti velikost',
title: 'Lastnosti slike',
uploadTab: 'Naloži',
urlMissing: 'Manjka vir (URL) slike.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'sq', {
alt: 'Tekst Alternativ',
btnUpload: 'Dërgo në server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Informacione mbi Fotografinë',
lockRatio: 'Mbyll Racionin',
menu: 'Karakteristikat e Fotografisë',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Rikthe Madhësinë',
resizer: 'Click and drag to resize', // MISSING
title: 'Karakteristikat e Fotografisë',
uploadTab: 'Ngarko',
urlMissing: 'Mungon URL e burimit të fotografisë.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'sr-latn', {
alt: 'Alternativni tekst',
btnUpload: 'Pošalji na server',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Info slike',
lockRatio: 'Zaključaj odnos',
menu: 'Osobine slika',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Resetuj veličinu',
resizer: 'Click and drag to resize', // MISSING
title: 'Osobine slika',
uploadTab: 'Pošalji',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'sr', {
alt: 'Алтернативни текст',
btnUpload: 'Пошаљи на сервер',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Инфо слике',
lockRatio: 'Закључај однос',
menu: 'Особине слика',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Ресетуј величину',
resizer: 'Click and drag to resize', // MISSING
title: 'Особине слика',
uploadTab: 'Пошаљи',
urlMissing: 'Недостаје УРЛ слике.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'sv', {
alt: 'Alternativ text',
btnUpload: 'Skicka till server',
captioned: 'Rubricerad bild',
captionPlaceholder: 'Bildtext',
infoTab: 'Bildinformation',
lockRatio: 'Lås höjd/bredd förhållanden',
menu: 'Bildegenskaper',
pathName: 'bild',
pathNameCaption: 'rubrik',
resetSize: 'Återställ storlek',
resizer: 'Klicka och drag för att ändra storlek',
title: 'Bildegenskaper',
uploadTab: 'Ladda upp',
urlMissing: 'Bildkällans URL saknas.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'th', {
alt: 'คำประกอบรูปภาพ',
btnUpload: 'อัพโหลดไฟล์ไปเก็บไว้ที่เครื่องแม่ข่าย (เซิร์ฟเวอร์)',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'ข้อมูลของรูปภาพ',
lockRatio: 'กำหนดอัตราส่วน กว้าง-สูง แบบคงที่',
menu: 'คุณสมบัติของ รูปภาพ',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'กำหนดรูปเท่าขนาดจริง',
resizer: 'Click and drag to resize', // MISSING
title: 'คุณสมบัติของ รูปภาพ',
uploadTab: 'อัพโหลดไฟล์',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'tr', {
alt: 'Alternatif Yazı',
btnUpload: 'Sunucuya Yolla',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Resim Bilgisi',
lockRatio: 'Oranı Kilitle',
menu: 'Resim Özellikleri',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'Boyutu Başa Döndür',
resizer: 'Click and drag to resize', // MISSING
title: 'Resim Özellikleri',
uploadTab: 'Karşıya Yükle',
urlMissing: 'Resmin URL kaynağı eksiktir.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'tt', {
alt: 'Альтернатив текст',
btnUpload: 'Серверга җибәрү',
captioned: 'Исеме куелган рәсем',
captionPlaceholder: 'Исем',
infoTab: 'Рәсем тасвирламасы',
lockRatio: 'Lock Ratio', // MISSING
menu: 'Рәсем үзлекләре',
pathName: 'рәсем',
pathNameCaption: 'исем',
resetSize: 'Баштагы зурлык',
resizer: 'Күчереп куер өчен басып шудырыгыз',
title: 'Рәсем үзлекләре',
uploadTab: 'Йөкләү',
urlMissing: 'Image source URL is missing.' // MISSING
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ug', {
alt: 'تېكىست ئالماشتۇر',
btnUpload: 'مۇلازىمېتىرغا يۈكلە',
captioned: 'Captioned image', // MISSING
captionPlaceholder: 'Caption', // MISSING
infoTab: 'سۈرەت',
lockRatio: 'نىسبەتنى قۇلۇپلا',
menu: 'سۈرەت خاسلىقى',
pathName: 'image', // MISSING
pathNameCaption: 'caption', // MISSING
resetSize: 'ئەسلى چوڭلۇق',
resizer: 'Click and drag to resize', // MISSING
title: 'سۈرەت خاسلىقى',
uploadTab: 'يۈكلە',
urlMissing: 'سۈرەتنىڭ ئەسلى ھۆججەت ئادرېسى كەم'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'uk', {
alt: 'Альтернативний текст',
btnUpload: 'Надіслати на сервер',
captioned: 'Підписане зображення',
captionPlaceholder: 'Caption', // MISSING
infoTab: 'Інформація про зображення',
lockRatio: 'Зберегти пропорції',
menu: 'Властивості зображення',
pathName: 'Зображення',
pathNameCaption: 'заголовок',
resetSize: 'Очистити поля розмірів',
resizer: 'Клікніть та потягніть для зміни розмірів',
title: 'Властивості зображення',
uploadTab: 'Надіслати',
urlMissing: 'Вкажіть URL зображення.'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'vi', {
alt: 'Chú thích ảnh',
btnUpload: 'Tải lên máy chủ',
captioned: 'Ảnh có chú thích',
captionPlaceholder: 'Nhãn',
infoTab: 'Thông tin của ảnh',
lockRatio: 'Giữ nguyên tỷ lệ',
menu: 'Thuộc tính của ảnh',
pathName: 'ảnh',
pathNameCaption: 'chú thích',
resetSize: 'Kích thước gốc',
resizer: 'Kéo rê để thay đổi kích cỡ',
title: 'Thuộc tính của ảnh',
uploadTab: 'Tải lên',
urlMissing: 'Thiếu đường dẫn hình ảnh'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'zh-cn', {
alt: '替换文本',
btnUpload: '上传到服务器',
captioned: '带标题图像',
captionPlaceholder: '标题',
infoTab: '图像信息',
lockRatio: '锁定比例',
menu: '图像属性',
pathName: '图像',
pathNameCaption: '标题',
resetSize: '原始尺寸',
resizer: '点击并拖拽以改变尺寸',
title: '图像属性',
uploadTab: '上传',
urlMissing: '缺少图像源文件地址'
} );
+20
View File
@@ -0,0 +1,20 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'zh', {
alt: '替代文字',
btnUpload: '傳送至伺服器',
captioned: '已加標題之圖片',
captionPlaceholder: 'Caption', // MISSING
infoTab: '影像資訊',
lockRatio: '固定比例',
menu: '影像屬性',
pathName: '圖片',
pathNameCaption: '標題',
resetSize: '重設大小',
resizer: '拖曳以改變大小',
title: '影像屬性',
uploadTab: '上傳',
urlMissing: '遺失圖片來源之 URL '
} );
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

+65
View File
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>New Image plugin &mdash; CKEditor Sample</title>
<script src="../../../ckeditor.js"></script>
<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
CKEDITOR.tools.enableHtml5Elements( document );
</script>
<link href="../../../samples/sample.css" rel="stylesheet">
<meta name="ckeditor-sample-name" content="New Image plugin">
<meta name="ckeditor-sample-group" content="Plugins">
<meta name="ckeditor-sample-description" content="Using the new Image plugin to insert captioned images and adjust their dimensions.">
<meta name="ckeditor-sample-isnew" content="1">
</head>
<body>
<h1 class="samples">
<a href="../../../samples/index.html">CKEditor Samples</a> &raquo; New Image plugin
</h1>
<div class="description">
<p>
This editor is using the new <strong>Image</strong> (<code>image2</code>) plugin, which implements a dynamic <em>click-and-drag</em> resizing
and easy captioning of the images.
</p>
<p>
To use the new plugin, extend <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraPlugins">config.extraPlugins</a></code>:
</p>
<pre class="samples">
CKEDITOR.replace( '<em>textarea_id</em>', {
<strong>extraPlugins: 'image2'</strong>
} );
</pre>
</div>
<textarea id="editor1" cols="10" rows="10">
&lt;h1&gt;Apollo 11&lt;/h1&gt;&lt;figure class=&quot;image&quot; style=&quot;float: right&quot;&gt;&lt;img alt=&quot;Saturn V&quot; src=&quot;assets/image1.jpg&quot; width=&quot;200&quot; /&gt;&lt;figcaption&gt;Roll out of Saturn V on launch pad&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;strong&gt;Apollo 11&lt;/strong&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt;&lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt;&lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt;&lt;figure class=&quot;image&quot; style=&quot;float: right&quot;&gt;&lt;img alt=&quot;The Eagle&quot; src=&quot;assets/image2.jpg&quot; style=&quot;width: 200px&quot; /&gt;&lt;figcaption&gt;The Eagle in lunar orbit&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt;&lt;hr /&gt;&lt;p style=&quot;text-align:right&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
</textarea>
<script>
CKEDITOR.replace( 'editor1', {
extraPlugins: 'image2',
height: 450
} );
</script>
<div id="footer">
<hr>
<p>
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
</p>
<p id="copy">
Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>
</body>
</html>
+1 -1
View File
@@ -70,7 +70,7 @@ $(document).ready(function() {
});
// Replace the textarea with the CKeditor
CKEDITOR.replace('Text');
CKEDITOR.replace('Text', { language: CKEditorLang });
// Workaround function for the drag and drop events, it disallows
// dragstart and dragend events firing for each child elements of a specific elements.
+42 -8
View File
@@ -183,6 +183,32 @@ struct {
"", ""},};
struct {
char language[32];
char abbrev[32];
} lang_table[] = {
{ "brazilian", "br"},
{ "bulgarian", "bg"},
{ "czech", "cz"},
{ "danish", "dk"},
{ "dutch", "nl"},
{ "french", "fr"},
{ "german", "de"},
{ "indonesia", "id"},
{ "italian", "it"},
{ "japanese", "jp"},
{ "polish", "pl"},
{ "ru_CP1251", "ru"},
{ "slowak", "sk"},
{ "spanish", "es"},
{ "swedish", "se"},
{ "turkish", "tr"},
{ "zh_CN-GB2314", "zh"},
{ "zh_CN-UTF8", "zh"},
{ "", "" }
};
char _convert_cmd[256];
char _identify_cmd[256];
@@ -10342,23 +10368,31 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
/* ToggleAll() to toggle MOptions buttons */
rsprintf("function ToggleAll(attrib)\n");
rsprintf(" {\n");
rsprintf(" for (var i = 0; i < document.form1.elements.length; i++)\n");
rsprintf(" {\n");
rsprintf("{\n");
rsprintf(" for (var i = 0; i < document.form1.elements.length; i++) {\n");
rsprintf(" if (document.form1.elements[i].type == 'checkbox' && document.form1.elements[i].disabled == false) {\n");
rsprintf(" a = document.form1.elements[i].name;\n");
rsprintf(" a = a.substring(0, attrib.length);\n");
rsprintf(" if (a == attrib)\n");
rsprintf(" document.form1.elements[i].checked = !(document.form1.elements[i].checked);\n");
rsprintf(" }\n");
rsprintf(" }\n");
rsprintf(" }\n\n");
rsprintf(" }\n");
rsprintf("}\n\n");
/* language for CKEDITOR */
if (getcfg("global", "language", str, sizeof(str))) {
for (i=0 ; lang_table[i].language[0] ; i++)
if (stricmp(str, lang_table[i].language) == 0)
break;
if (lang_table[i].language[0])
rsprintf("var CKEditorLang = '%s';", lang_table[i].abbrev);
}
/* strings for elcode.js */
if (enc_selected == 0) {
rsprintf("linkText_prompt = \"%s\";\n", loc("Enter name of hyperlink"));
rsprintf("linkURL_prompt = \"%s\";\n", loc("Enter URL of hyperlink"));
rsprintf("linkHeading_prompt = \"%s\";\n", loc("Enter heading level (1, 2 or 3)"));
rsprintf("var linkText_prompt = \"%s\";\n", loc("Enter name of hyperlink"));
rsprintf("var linkURL_prompt = \"%s\";\n", loc("Enter URL of hyperlink"));
rsprintf("var linkHeading_prompt = \"%s\";\n", loc("Enter heading level (1, 2 or 3)"));
}
show_browser(browser);