diff --git a/ckeditor/CHANGES.md b/ckeditor/CHANGES.md index 249f0d4..1419e55 100644 --- a/ckeditor/CHANGES.md +++ b/ckeditor/CHANGES.md @@ -1,6 +1,847 @@ -CKEditor 4 Changelog +CKEditor 4 Changelog ==================== +## CKEditor 4.6.2 + +New Features: + +* [#16733](http://dev.ckeditor.com/ticket/16733): Added a new pastel color palette for the [Color Button](http://ckeditor.com/addon/colorbutton) plugin and a new [`config.colorButton_colorsPerRow`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-colorButton_colorsPerRow) configuration option for setting the number of rows in the color selector. +* [#16752](http://dev.ckeditor.com/ticket/16752): Added a new Azerbaijani localization. Thanks to the [Azerbaijani language team](https://www.transifex.com/ckeditor/teams/11143/az/)! +* [#13818](http://dev.ckeditor.com/ticket/13818): It is now possible to group [Widget](http://ckeditor.com/addon/widget) [style definitions](http://docs.ckeditor.com/#!/guide/dev_styles-section-widget-styles), so applying one style disables the other. + +Fixed Issues: + +* [#13446](http://dev.ckeditor.com/ticket/13446): [Chrome] Fixed: It is possible to type in an unfocused inline editor. +* [#14856](http://dev.ckeditor.com/ticket/14856): Fixed: [Font size and font family](http://ckeditor.com/addon/font) reset each other when modified at certain positions. +* [#16745](http://dev.ckeditor.com/ticket/16745): [Edge] Fixed: List items are lost when [pasted from Word](http://ckeditor.com/addon/pastefromword). +* [#16682](http://dev.ckeditor.com/ticket/16682): [Edge] Fixed: A list gets [pasted from Word](http://ckeditor.com/addon/pastefromword) as a set of paragraphs. Added the [`config.pasteFromWord_heuristicsEdgeList`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWord_heuristicsEdgeList) configuration option. +* [#10373](http://dev.ckeditor.com/ticket/10373): Fixed: Context menu items can be dragged into the editor. +* [#16728](http://dev.ckeditor.com/ticket/16728): [IE] Fixed: [Copy Formatting](http://ckeditor.com/addon/copyformatting) breaks the editor in Quirks Mode. +* [#16795](http://dev.ckeditor.com/ticket/16795): [IE] Fixed: [Copy Formatting](http://ckeditor.com/addon/copyformatting) breaks the editor in Compatibility Mode. +* [#16675](http://dev.ckeditor.com/ticket/16675): Fixed: Styles applied with [Copy Formatting](http://ckeditor.com/addon/copyformatting) to a single table cell are applied to the whole table. +* [#16753](http://dev.ckeditor.com/ticket/16753): Fixed: [`element.setSize`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-setSize) sets incorrect editor dimensions if the border width is represented as a fraction of pixels. +* [#16705](http://dev.ckeditor.com/ticket/16705): [Firefox] Fixed: Unable to paste images as Base64 strings when using [Clipboard](http://ckeditor.com/addon/clipboard). +* [#14869](http://dev.ckeditor.com/ticket/14869): Fixed: JavaScript error is thrown when trying to use [Find](http://ckeditor.com/addon/find) in a [`
`-based editor](http://ckeditor.com/addon/divarea). + +## CKEditor 4.6.1 + +New Features: + +* [#16639](http://dev.ckeditor.com/ticket/16639): The `callback` parameter in the [CKEDITOR.ajax.post](http://docs.ckeditor.com/#!/api/CKEDITOR.ajax-method-post) method became optional. + +Fixed Issues: + +* [#11064](http://dev.ckeditor.com/ticket/11064): [Blink, WebKit] Fixed: Cannot select all editor content when a widget or a non-editable element is the first or last element of the content. Also fixes this issue in the [Select All](http://ckeditor.com/addon/selectall) plugin. +* [#14755](http://dev.ckeditor.com/ticket/14755): [Blink, WebKit, IE8] Fixed: Browser hangs when a table is inserted in the place of a selected list with an empty last item. +* [#16624](http://dev.ckeditor.com/ticket/16624): Fixed: Improved the [Color Button](http://ckeditor.com/addon/colorbutton) plugin which will now normalize the CSS `background` property if it only contains a color value. This fixes missing background colors when using [Paste from Word](http://ckeditor.com/addon/pastefromword). +* [#16600](http://dev.ckeditor.com/ticket/16600): [Blink, WebKit] Fixed: Error thrown occasionally by an uninitialized editable for multiple CKEditor instances on the same page. + +## CKEditor 4.6 + +New Features: + +* [#14569](http://dev.ckeditor.com/ticket/14569): Added a new, flat, default CKEditor skin called [Moono-Lisa](http://ckeditor.com/addon/moono-lisa). Refreshed default colors available in the [Color Button](http://ckeditor.com/addon/colorbutton) plugin ([Text Color and Background Color](http://docs.ckeditor.com/#!/guide/dev_colorbutton) feature). +* [#14707](http://dev.ckeditor.com/ticket/14707): Added a new [Copy Formatting](http://ckeditor.com/addon/copyformatting) feature to enable easy copying of styles between your document parts. +* Introduced the completely rewritten [Paste from Word](http://ckeditor.com/addon/pastefromword) plugin: + * Backward incompatibility: The [`config.pasteFromWordRemoveFontStyles`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveFontStyles) option now defaults to `false`. This option will be deprecated in the future. Use [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_acf) to replicate the effect of setting it to `true`. + * Backward incompatibility: The [`config.pasteFromWordNumberedHeadingToList`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordNumberedHeadingToList) and [`config.pasteFromWordRemoveStyles`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveStyles) options were dropped and no longer have any effect on pasted content. + * Major improvements in preservation of list numbering, styling and indentation (nested lists with multiple levels). + * Major improvements in document structure parsing that fix plenty of issues with distorted or missing content after paste. +* Added new translation: Occitan. Thanks to [Cédric Valmary](https://totenoc.eu/)! +* [#10015](http://dev.ckeditor.com/ticket/10015): Keyboard shortcuts (relevant to the operating system in use) will now be displayed in tooltips and context menus. +* [#13794](http://dev.ckeditor.com/ticket/13794): The [Upload Image](http://ckeditor.com/addon/uploadimage) feature now uses `uploaded.width/height` if set. +* [#12541](http://dev.ckeditor.com/ticket/12541): Added the [Upload File](http://ckeditor.com/addon/uploadfile) plugin that lets you upload a file by drag&dropping it into the editor content. +* [#14449](http://dev.ckeditor.com/ticket/14449): Introduced the [Balloon Panel](http://ckeditor.com/addon/balloonpanel) plugin that lets you create stylish floating UI elements for the editor. +* [#12077](https://dev.ckeditor.com/ticket/12077): Added support for the HTML5 `download` attribute in link (``) elements. Selecting the "Force Download" checkbox in the [Link](http://ckeditor.com/addon/link) dialog will cause the linked file to be downloaded automatically. Thanks to [sbusse](https://github.com/sbusse)! +* [#13518](http://dev.ckeditor.com/ticket/13518): Introduced the [`additionalRequestParameters`](http://docs.ckeditor.com/#!/api/CKEDITOR.fileTools.uploadWidgetDefinition-property-additionalRequestParameters) property for file uploads to make it possible to send additional information about the uploaded file to the server. +* [#14889](http://dev.ckeditor.com/ticket/14889): Added the [`config.image2_altRequired`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-image2_altRequired) option for the [Enhanced Image](http://ckeditor.com/addon/image2) plugin to allow making alternative text a mandatory field. Thanks to [Andrey Fedoseev](https://github.com/andreyfedoseev)! + +Fixed Issues: + +* [#9991](http://dev.ckeditor.com/ticket/9991): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) should only normalize input data. +* [#7209](http://dev.ckeditor.com/ticket/7209): Fixed: Lists with 3 levels not [pasted from Word](http://ckeditor.com/addon/pastefromword) correctly. +* [#14335](http://dev.ckeditor.com/ticket/14335): Fixed: Pasting a numbered list starting with a value different from "1" from Microsoft Word does not work correctly. +* [#14542](http://dev.ckeditor.com/ticket/14542): Fixed: Copying a numbered list from Microsoft Word does not preserve list formatting. +* [#14544](http://dev.ckeditor.com/ticket/14544): Fixed: Copying a nested list from Microsoft Word results in an empty list. +* [#14660](http://dev.ckeditor.com/ticket/14660): Fixed: [Pasting text from Word](http://ckeditor.com/addon/pastefromword) breaks the styling in some cases. +* [#14867](http://dev.ckeditor.com/ticket/14867): [Firefox] Fixed: Text gets stripped when [pasting content from Word](http://ckeditor.com/addon/pastefromword). +* [#2507](http://dev.ckeditor.com/ticket/2507): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) does not detect pasting a part of a paragraph. +* [#3336](http://dev.ckeditor.com/ticket/3336): Fixed: Extra blank row added on top of the content [pasted from Word](http://ckeditor.com/addon/pastefromword). +* [#6115](http://dev.ckeditor.com/ticket/6115): Fixed: When Right-to-Left text direction is applied to a table [pasted from Word](http://ckeditor.com/addon/pastefromword), borders are missing on one side. +* [#6342](http://dev.ckeditor.com/ticket/6342): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) filters out a basic text style when it is [configured to use attributes](http://docs.ckeditor.com/#!/guide/dev_basicstyles-section-custom-basic-text-style-definition). +* [#6457](http://dev.ckeditor.com/ticket/6457): [IE] Fixed: [Pasting from Word](http://ckeditor.com/addon/pastefromword) is extremely slow. +* [#6789](http://dev.ckeditor.com/ticket/6789): Fixed: The `mso-list: ignore` style is not handled properly when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#7262](http://dev.ckeditor.com/ticket/7262): Fixed: Lists in preformatted body disappear when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#7662](http://dev.ckeditor.com/ticket/7662): [Opera] Fixed: Extra empty number/bullet shown in the editor body when editing a multi-level list [pasted from Word](http://ckeditor.com/addon/pastefromword). +* [#7807](http://dev.ckeditor.com/ticket/7807): Fixed: Last item in a list not converted to a `
  • ` element after [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#7950](http://dev.ckeditor.com/ticket/7950): [IE] Fixed: Content [from Word pasted](http://ckeditor.com/addon/pastefromword) differently than in other browsers. +* [#7982](http://dev.ckeditor.com/ticket/7982): Fixed: Multi-level lists get split into smaller ones when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#8231](http://dev.ckeditor.com/ticket/8231): [WebKit, Opera] Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) inserts empty paragraphs. +* [#8266](http://dev.ckeditor.com/ticket/8266): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) inserts a blank line at the top. +* [#8341](http://dev.ckeditor.com/ticket/8341), [#7646](http://dev.ckeditor.com/ticket/7646): Fixed: Faulty removal of empty `` elements in [Paste from Word](http://ckeditor.com/addon/pastefromword) content cleanup breaking content formatting. +* [#8754](http://dev.ckeditor.com/ticket/8754): [Firefox] Fixed: Incorrect pasting of multiple nested lists in [Paste from Word](http://ckeditor.com/addon/pastefromword). +* [#8983](http://dev.ckeditor.com/ticket/8983): Fixed: Alignment lost when [pasting from Word](http://ckeditor.com/addon/pastefromword) with [`config.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode) set to [`CKEDITOR.ENTER_BR`](http://docs.ckeditor.com/#!/api/CKEDITOR-property-ENTER_BR). +* [#9331](http://dev.ckeditor.com/ticket/9331): [IE] Fixed: [Pasting text from Word](http://ckeditor.com/addon/pastefromword) creates a simple Caesar cipher. +* [#9422](http://dev.ckeditor.com/ticket/9422): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) leaves an unwanted `color:windowtext` style. +* [#10011](http://dev.ckeditor.com/ticket/10011): [IE9-10] Fixed: [`config.pasteFromWordRemoveFontStyles`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveFontStyles) is ignored under certain conditions. +* [#10643](http://dev.ckeditor.com/ticket/10643): Fixed: Differences between using Ctrl+V and pasting from the [Paste from Word](http://ckeditor.com/addon/pastefromword) dialog. +* [#10784](http://dev.ckeditor.com/ticket/10784): Fixed: Lines missing when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#11294](http://dev.ckeditor.com/ticket/11294): [IE10] Fixed: Font size is not preserved when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#11627](http://dev.ckeditor.com/ticket/11627): Fixed: Missing words when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#12784](http://dev.ckeditor.com/ticket/12784): Fixed: Bulleted list with custom bullets gets changed to a numbered list when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#13174](http://dev.ckeditor.com/ticket/13174): Fixed: Data loss after [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#13828](http://dev.ckeditor.com/ticket/13828): Fixed: Widget classes should be added to the wrapper rather than the widget element. +* [#13829](http://dev.ckeditor.com/ticket/13829): Fixed: No class in [Widget](http://ckeditor.com/addon/widget) wrapper to identify the widget type. +* [#13519](http://dev.ckeditor.com/ticket/13519): Server response received when uploading files should be more flexible. + +Other Changes: + +* Updated [SCAYT](http://ckeditor.com/addon/scayt) (Spell Check As You Type) and [WebSpellChecker](http://ckeditor.com/addon/wsc) plugins: + * Support for the new default Moono-Lisa skin. + * [#121](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/121): Fixed: [Basic Styles](http://ckeditor.com/addon/basicstyles) do not work when SCAYT is enabled. + * [#125](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/125): Fixed: Inline styles are not continued when writing multiple lines of styled text with SCAYT enabled. + * [#127](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/127): Fixed: Uncaught TypeError after enabling SCAYT in the CKEditor `
    ` element. + * [#128](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/128): Fixed: Error thrown after enabling SCAYT caused by conflicts with RequireJS. + +## CKEditor 4.5.11 + +**Security Updates:** + +* [Severity: minor] Fixed the `target="_blank"` vulnerability reported by James Gaskell. + + Issue summary: If a victim had access to a spoofed version of ckeditor.com via HTTP (e.g. due to DNS spoofing, using a hacked public network or mailicious hotspot), then when using a link to the ckeditor.com website it was possible for the attacker to change the current URL of the opening page, even if the opening page was protected with SSL. + + An upgrade is recommended. + +New Features: + +* [#14747](http://dev.ckeditor.com/ticket/14747): The [Enhanced Image](http://ckeditor.com/addon/image2) caption now supports the link `target` attribute. +* [#7154](http://dev.ckeditor.com/ticket/7154): Added support for the "Display Text" field to the [Link](http://ckeditor.com/addon/link) dialog. Thanks to [Ryan Guill](https://github.com/ryanguill)! + +Fixed Issues: + +* [#13362](http://dev.ckeditor.com/ticket/13362): [Blink, WebKit] Fixed: Active widget element is not cached when it is losing focus and it is inside an editable element. +* [#13755](http://dev.ckeditor.com/ticket/13755): [Edge] Fixed: Pasting images does not work. +* [#13548](http://dev.ckeditor.com/ticket/13548): [IE] Fixed: Clicking the [elements path](http://ckeditor.com/addon/elementspath) disables Cut and Copy icons. +* [#13812](http://dev.ckeditor.com/ticket/13812): Fixed: When aborting file upload the placeholder for image is left. +* [#14659](http://dev.ckeditor.com/ticket/14659): [Blink] Fixed: Content scrolled to the top after closing the dialog in a [`
    `-based editor](http://ckeditor.com/addon/divarea). +* [#14825](http://dev.ckeditor.com/ticket/14825): [Edge] Fixed: Focusing the editor causes unwanted scrolling due to dropped support for the `setActive` method. + +## CKEditor 4.5.10 + +Fixed Issues: + +* [#10750](http://dev.ckeditor.com/ticket/10750): Fixed: The editor does not escape the `font-style` family property correctly, removing quotes and whitespace from font names. +* [#14413](http://dev.ckeditor.com/ticket/14413): Fixed: The [Auto Grow](http://ckeditor.com/addon/autogrow) plugin with the [`config.autoGrow_onStartup`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-autoGrow_onStartup) option set to `true` does not work properly for an editor that is not visible. +* [#14451](http://dev.ckeditor.com/ticket/14451): Fixed: Numeric element ID not escaped properly. Thanks to [Jakub Chalupa](https://github.com/chaluja7)! +* [#14590](http://dev.ckeditor.com/ticket/14590): Fixed: Additional line break appearing after inline elements when switching modes. Thanks to [dpidcock](https://github.com/dpidcock)! +* [#14539](https://dev.ckeditor.com/ticket/14539): Fixed: JAWS reads "selected Blank" instead of "selected " when selecting a widget. +* [#14701](http://dev.ckeditor.com/ticket/14701): Fixed: More precise labels for [Enhanced Image](http://ckeditor.com/addon/image2) and [Placeholder](http://ckeditor.com/addon/placeholder) widgets. +* [#14667](http://dev.ckeditor.com/ticket/14667): [IE] Fixed: Removing background color from selected text removes background color from the whole paragraph. +* [#14252](http://dev.ckeditor.com/ticket/14252): [IE] Fixed: Styles drop-down list does not always reflect the current style of the text line. +* [#14275](http://dev.ckeditor.com/ticket/14275): [IE9+] Fixed: `onerror` and `onload` events are not used in browsers it could have been used when loading scripts dynamically. + +## CKEditor 4.5.9 + +Fixed Issues: + +* [#10685](http://dev.ckeditor.com/ticket/10685): Fixed: Unreadable toolbar icons after updating to the new editor version. Fixed with [6876179](https://github.com/ckeditor/ckeditor-dev/commit/6876179db4ee97e786b07b8fd72e6b4120732185) in [ckeditor-dev](https://github.com/ckeditor/ckeditor-dev) and [6c9189f4](https://github.com/ckeditor/ckeditor-presets/commit/6c9189f46392d2c126854fe8889b820b8c76d291) in [ckeditor-presets](https://github.com/ckeditor/ckeditor-presets). +* [#14573](https://dev.ckeditor.com/ticket/14573): Fixed: Missing [Widget](http://ckeditor.com/addon/widget) drag handler CSS when there are multiple editor instances. +* [#14620](https://dev.ckeditor.com/ticket/14620): Fixed: Setting both the `min-height` style for the `` element and the `height` style for the `` element breaks the [Auto Grow](http://ckeditor.com/addon/autogrow) plugin. +* [#14538](http://dev.ckeditor.com/ticket/14538): Fixed: Keyboard focus goes into an embedded `');return b.join("")})}},fileButton:function(b,a,d){if(!(3>arguments.length)){i.call(this,a);var e=this;a.validate&&(this.validate=a.validate);var c=CKEDITOR.tools.extend({},a),f=c.onClick;c.className=(c.className?c.className+" ":"")+"cke_dialog_ui_button";c.onClick=function(c){var d= -a["for"];if(!f||f.call(this,c)!==false){b.getContentElement(d[0],d[1]).submit();this.disable()}};b.on("load",function(){b.getContentElement(a["for"][0],a["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,b,c,d)}},html:function(){var b=/^\s*<[\w:]+\s+([^>]*)?>/,a=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,d=/\/$/;return function(e,c,f){if(!(3>arguments.length)){var h=[],g=c.html;"<"!=g.charAt(0)&&(g=""+g+"");var k=c.focus;if(k){var j=this.focus;this.focus=function(){("function"== -typeof k?k:j).call(this);this.fire("focus")};c.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,e,c,h,"span",null,null,"");h=h.join("").match(b);g=g.match(a)||["","",""];d.test(g[1])&&(g[1]=g[1].slice(0,-1),g[2]="/"+g[2]);f.push([g[1]," ",h[1]||"",g[2]].join(""))}}}(),fieldset:function(b,a,d,e,c){var f=c.label;this._={children:a};CKEDITOR.ui.dialog.uiElement.call(this,b,c,e,"fieldset",null,null,function(){var a=[];f&&a.push(""+f+"");for(var b=0;ba.getChildCount()?(new CKEDITOR.dom.text(b,CKEDITOR.document)).appendTo(a):a.getChild(0).$.nodeValue=b;return this},getLabel:function(){var b= -CKEDITOR.document.getById(this._.labelId);return!b||1>b.getChildCount()?"":b.getChild(0).getText()},eventProcessors:o},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled?this.fire("click",{dialog:this._.dialog}):!1},enable:function(){this._.disabled=!1;var b=this.getElement();b&&b.removeClass("cke_disabled")},disable:function(){this._.disabled=!0;this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()}, -isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(b,a){this.on("click",function(){a.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)}, -focus:function(){var b=this.selectParentTab();setTimeout(function(){var a=b.getInputElement();a&&a.$.focus()},0)},select:function(){var b=this.selectParentTab();setTimeout(function(){var a=b.getInputElement();a&&(a.$.focus(),a.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(b){!b&&(b="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},keyboardFocusable:!0},n,!0);CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput;CKEDITOR.ui.dialog.select.prototype= -CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(b,a,d){var e=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),c=this.getInputElement().$;e.$.text=b;e.$.value=void 0===a||null===a?b:a;void 0===d||null===d?CKEDITOR.env.ie?c.add(e.$):c.add(e.$,null):c.add(e.$,d);return this},remove:function(b){this.getInputElement().$.remove(b);return this},clear:function(){for(var b=this.getInputElement().$;0< -b.length;)b.remove(0);return this},keyboardFocusable:!0},n,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(b,a){this.getInputElement().$.checked=b;!a&&this.fire("change",{value:b})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(b,a){if(!CKEDITOR.env.ie||8','
    ' ); + } + +} + +/** + * The skin to load for all created instances, it may be the name of the skin + * folder inside the editor installation path, or the name and the path separated + * by a comma. + * + * **Note:** This is a global configuration that applies to all instances. + * + * CKEDITOR.skinName = 'moono'; + * + * CKEDITOR.skinName = 'myskin,/customstuff/myskin/'; + * + * @cfg {String} [skinName='moono-lisa'] + * @member CKEDITOR + */ +CKEDITOR.skinName = 'moono-lisa'; diff --git a/ckeditor/ckeditor/CHANGES.md b/ckeditor/ckeditor/CHANGES.md new file mode 100644 index 0000000..72c5798 --- /dev/null +++ b/ckeditor/ckeditor/CHANGES.md @@ -0,0 +1,1219 @@ +CKEditor 4 Changelog +==================== + +## CKEditor 4.6.2 + +New Features: + +* [#16733](http://dev.ckeditor.com/ticket/16733): Added a new pastel color palette for the [Color Button](http://ckeditor.com/addon/colorbutton) plugin and a new [`config.colorButton_colorsPerRow`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-colorButton_colorsPerRow) configuration option for setting the number of rows in the color selector. +* [#16752](http://dev.ckeditor.com/ticket/16752): Added a new Azerbaijani localization. Thanks to the [Azerbaijani language team](https://www.transifex.com/ckeditor/teams/11143/az/)! +* [#13818](http://dev.ckeditor.com/ticket/13818): It is now possible to group [Widget](http://ckeditor.com/addon/widget) [style definitions](http://docs.ckeditor.com/#!/guide/dev_styles-section-widget-styles), so applying one style disables the other. + +Fixed Issues: + +* [#13446](http://dev.ckeditor.com/ticket/13446): [Chrome] Fixed: It is possible to type in an unfocused inline editor. +* [#14856](http://dev.ckeditor.com/ticket/14856): Fixed: [Font size and font family](http://ckeditor.com/addon/font) reset each other when modified at certain positions. +* [#16745](http://dev.ckeditor.com/ticket/16745): [Edge] Fixed: List items are lost when [pasted from Word](http://ckeditor.com/addon/pastefromword). +* [#16682](http://dev.ckeditor.com/ticket/16682): [Edge] Fixed: A list gets [pasted from Word](http://ckeditor.com/addon/pastefromword) as a set of paragraphs. Added the [`config.pasteFromWord_heuristicsEdgeList`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWord_heuristicsEdgeList) configuration option. +* [#10373](http://dev.ckeditor.com/ticket/10373): Fixed: Context menu items can be dragged into the editor. +* [#16728](http://dev.ckeditor.com/ticket/16728): [IE] Fixed: [Copy Formatting](http://ckeditor.com/addon/copyformatting) breaks the editor in Quirks Mode. +* [#16795](http://dev.ckeditor.com/ticket/16795): [IE] Fixed: [Copy Formatting](http://ckeditor.com/addon/copyformatting) breaks the editor in Compatibility Mode. +* [#16675](http://dev.ckeditor.com/ticket/16675): Fixed: Styles applied with [Copy Formatting](http://ckeditor.com/addon/copyformatting) to a single table cell are applied to the whole table. +* [#16753](http://dev.ckeditor.com/ticket/16753): Fixed: [`element.setSize`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-setSize) sets incorrect editor dimensions if the border width is represented as a fraction of pixels. +* [#16705](http://dev.ckeditor.com/ticket/16705): [Firefox] Fixed: Unable to paste images as Base64 strings when using [Clipboard](http://ckeditor.com/addon/clipboard). +* [#14869](http://dev.ckeditor.com/ticket/14869): Fixed: JavaScript error is thrown when trying to use [Find](http://ckeditor.com/addon/find) in a [`
    `-based editor](http://ckeditor.com/addon/divarea). + +## CKEditor 4.6.1 + +New Features: + +* [#16639](http://dev.ckeditor.com/ticket/16639): The `callback` parameter in the [CKEDITOR.ajax.post](http://docs.ckeditor.com/#!/api/CKEDITOR.ajax-method-post) method became optional. + +Fixed Issues: + +* [#11064](http://dev.ckeditor.com/ticket/11064): [Blink, WebKit] Fixed: Cannot select all editor content when a widget or a non-editable element is the first or last element of the content. Also fixes this issue in the [Select All](http://ckeditor.com/addon/selectall) plugin. +* [#14755](http://dev.ckeditor.com/ticket/14755): [Blink, WebKit, IE8] Fixed: Browser hangs when a table is inserted in the place of a selected list with an empty last item. +* [#16624](http://dev.ckeditor.com/ticket/16624): Fixed: Improved the [Color Button](http://ckeditor.com/addon/colorbutton) plugin which will now normalize the CSS `background` property if it only contains a color value. This fixes missing background colors when using [Paste from Word](http://ckeditor.com/addon/pastefromword). +* [#16600](http://dev.ckeditor.com/ticket/16600): [Blink, WebKit] Fixed: Error thrown occasionally by an uninitialized editable for multiple CKEditor instances on the same page. + +## CKEditor 4.6 + +New Features: + +* [#14569](http://dev.ckeditor.com/ticket/14569): Added a new, flat, default CKEditor skin called [Moono-Lisa](http://ckeditor.com/addon/moono-lisa). Refreshed default colors available in the [Color Button](http://ckeditor.com/addon/colorbutton) plugin ([Text Color and Background Color](http://docs.ckeditor.com/#!/guide/dev_colorbutton) feature). +* [#14707](http://dev.ckeditor.com/ticket/14707): Added a new [Copy Formatting](http://ckeditor.com/addon/copyformatting) feature to enable easy copying of styles between your document parts. +* Introduced the completely rewritten [Paste from Word](http://ckeditor.com/addon/pastefromword) plugin: + * Backward incompatibility: The [`config.pasteFromWordRemoveFontStyles`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveFontStyles) option now defaults to `false`. This option will be deprecated in the future. Use [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_acf) to replicate the effect of setting it to `true`. + * Backward incompatibility: The [`config.pasteFromWordNumberedHeadingToList`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordNumberedHeadingToList) and [`config.pasteFromWordRemoveStyles`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveStyles) options were dropped and no longer have any effect on pasted content. + * Major improvements in preservation of list numbering, styling and indentation (nested lists with multiple levels). + * Major improvements in document structure parsing that fix plenty of issues with distorted or missing content after paste. +* Added new translation: Occitan. Thanks to [Cédric Valmary](https://totenoc.eu/)! +* [#10015](http://dev.ckeditor.com/ticket/10015): Keyboard shortcuts (relevant to the operating system in use) will now be displayed in tooltips and context menus. +* [#13794](http://dev.ckeditor.com/ticket/13794): The [Upload Image](http://ckeditor.com/addon/uploadimage) feature now uses `uploaded.width/height` if set. +* [#12541](http://dev.ckeditor.com/ticket/12541): Added the [Upload File](http://ckeditor.com/addon/uploadfile) plugin that lets you upload a file by drag&dropping it into the editor content. +* [#14449](http://dev.ckeditor.com/ticket/14449): Introduced the [Balloon Panel](http://ckeditor.com/addon/balloonpanel) plugin that lets you create stylish floating UI elements for the editor. +* [#12077](https://dev.ckeditor.com/ticket/12077): Added support for the HTML5 `download` attribute in link (``) elements. Selecting the "Force Download" checkbox in the [Link](http://ckeditor.com/addon/link) dialog will cause the linked file to be downloaded automatically. Thanks to [sbusse](https://github.com/sbusse)! +* [#13518](http://dev.ckeditor.com/ticket/13518): Introduced the [`additionalRequestParameters`](http://docs.ckeditor.com/#!/api/CKEDITOR.fileTools.uploadWidgetDefinition-property-additionalRequestParameters) property for file uploads to make it possible to send additional information about the uploaded file to the server. +* [#14889](http://dev.ckeditor.com/ticket/14889): Added the [`config.image2_altRequired`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-image2_altRequired) option for the [Enhanced Image](http://ckeditor.com/addon/image2) plugin to allow making alternative text a mandatory field. Thanks to [Andrey Fedoseev](https://github.com/andreyfedoseev)! + +Fixed Issues: + +* [#9991](http://dev.ckeditor.com/ticket/9991): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) should only normalize input data. +* [#7209](http://dev.ckeditor.com/ticket/7209): Fixed: Lists with 3 levels not [pasted from Word](http://ckeditor.com/addon/pastefromword) correctly. +* [#14335](http://dev.ckeditor.com/ticket/14335): Fixed: Pasting a numbered list starting with a value different from "1" from Microsoft Word does not work correctly. +* [#14542](http://dev.ckeditor.com/ticket/14542): Fixed: Copying a numbered list from Microsoft Word does not preserve list formatting. +* [#14544](http://dev.ckeditor.com/ticket/14544): Fixed: Copying a nested list from Microsoft Word results in an empty list. +* [#14660](http://dev.ckeditor.com/ticket/14660): Fixed: [Pasting text from Word](http://ckeditor.com/addon/pastefromword) breaks the styling in some cases. +* [#14867](http://dev.ckeditor.com/ticket/14867): [Firefox] Fixed: Text gets stripped when [pasting content from Word](http://ckeditor.com/addon/pastefromword). +* [#2507](http://dev.ckeditor.com/ticket/2507): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) does not detect pasting a part of a paragraph. +* [#3336](http://dev.ckeditor.com/ticket/3336): Fixed: Extra blank row added on top of the content [pasted from Word](http://ckeditor.com/addon/pastefromword). +* [#6115](http://dev.ckeditor.com/ticket/6115): Fixed: When Right-to-Left text direction is applied to a table [pasted from Word](http://ckeditor.com/addon/pastefromword), borders are missing on one side. +* [#6342](http://dev.ckeditor.com/ticket/6342): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) filters out a basic text style when it is [configured to use attributes](http://docs.ckeditor.com/#!/guide/dev_basicstyles-section-custom-basic-text-style-definition). +* [#6457](http://dev.ckeditor.com/ticket/6457): [IE] Fixed: [Pasting from Word](http://ckeditor.com/addon/pastefromword) is extremely slow. +* [#6789](http://dev.ckeditor.com/ticket/6789): Fixed: The `mso-list: ignore` style is not handled properly when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#7262](http://dev.ckeditor.com/ticket/7262): Fixed: Lists in preformatted body disappear when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#7662](http://dev.ckeditor.com/ticket/7662): [Opera] Fixed: Extra empty number/bullet shown in the editor body when editing a multi-level list [pasted from Word](http://ckeditor.com/addon/pastefromword). +* [#7807](http://dev.ckeditor.com/ticket/7807): Fixed: Last item in a list not converted to a `
  • ` element after [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#7950](http://dev.ckeditor.com/ticket/7950): [IE] Fixed: Content [from Word pasted](http://ckeditor.com/addon/pastefromword) differently than in other browsers. +* [#7982](http://dev.ckeditor.com/ticket/7982): Fixed: Multi-level lists get split into smaller ones when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#8231](http://dev.ckeditor.com/ticket/8231): [WebKit, Opera] Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) inserts empty paragraphs. +* [#8266](http://dev.ckeditor.com/ticket/8266): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) inserts a blank line at the top. +* [#8341](http://dev.ckeditor.com/ticket/8341), [#7646](http://dev.ckeditor.com/ticket/7646): Fixed: Faulty removal of empty `` elements in [Paste from Word](http://ckeditor.com/addon/pastefromword) content cleanup breaking content formatting. +* [#8754](http://dev.ckeditor.com/ticket/8754): [Firefox] Fixed: Incorrect pasting of multiple nested lists in [Paste from Word](http://ckeditor.com/addon/pastefromword). +* [#8983](http://dev.ckeditor.com/ticket/8983): Fixed: Alignment lost when [pasting from Word](http://ckeditor.com/addon/pastefromword) with [`config.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode) set to [`CKEDITOR.ENTER_BR`](http://docs.ckeditor.com/#!/api/CKEDITOR-property-ENTER_BR). +* [#9331](http://dev.ckeditor.com/ticket/9331): [IE] Fixed: [Pasting text from Word](http://ckeditor.com/addon/pastefromword) creates a simple Caesar cipher. +* [#9422](http://dev.ckeditor.com/ticket/9422): Fixed: [Paste from Word](http://ckeditor.com/addon/pastefromword) leaves an unwanted `color:windowtext` style. +* [#10011](http://dev.ckeditor.com/ticket/10011): [IE9-10] Fixed: [`config.pasteFromWordRemoveFontStyles`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveFontStyles) is ignored under certain conditions. +* [#10643](http://dev.ckeditor.com/ticket/10643): Fixed: Differences between using Ctrl+V and pasting from the [Paste from Word](http://ckeditor.com/addon/pastefromword) dialog. +* [#10784](http://dev.ckeditor.com/ticket/10784): Fixed: Lines missing when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#11294](http://dev.ckeditor.com/ticket/11294): [IE10] Fixed: Font size is not preserved when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#11627](http://dev.ckeditor.com/ticket/11627): Fixed: Missing words when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#12784](http://dev.ckeditor.com/ticket/12784): Fixed: Bulleted list with custom bullets gets changed to a numbered list when [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#13174](http://dev.ckeditor.com/ticket/13174): Fixed: Data loss after [pasting from Word](http://ckeditor.com/addon/pastefromword). +* [#13828](http://dev.ckeditor.com/ticket/13828): Fixed: Widget classes should be added to the wrapper rather than the widget element. +* [#13829](http://dev.ckeditor.com/ticket/13829): Fixed: No class in [Widget](http://ckeditor.com/addon/widget) wrapper to identify the widget type. +* [#13519](http://dev.ckeditor.com/ticket/13519): Server response received when uploading files should be more flexible. + +Other Changes: + +* Updated [SCAYT](http://ckeditor.com/addon/scayt) (Spell Check As You Type) and [WebSpellChecker](http://ckeditor.com/addon/wsc) plugins: + * Support for the new default Moono-Lisa skin. + * [#121](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/121): Fixed: [Basic Styles](http://ckeditor.com/addon/basicstyles) do not work when SCAYT is enabled. + * [#125](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/125): Fixed: Inline styles are not continued when writing multiple lines of styled text with SCAYT enabled. + * [#127](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/127): Fixed: Uncaught TypeError after enabling SCAYT in the CKEditor `
    ` element. + * [#128](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/128): Fixed: Error thrown after enabling SCAYT caused by conflicts with RequireJS. + +## CKEditor 4.5.11 + +**Security Updates:** + +* [Severity: minor] Fixed the `target="_blank"` vulnerability reported by James Gaskell. + + Issue summary: If a victim had access to a spoofed version of ckeditor.com via HTTP (e.g. due to DNS spoofing, using a hacked public network or mailicious hotspot), then when using a link to the ckeditor.com website it was possible for the attacker to change the current URL of the opening page, even if the opening page was protected with SSL. + + An upgrade is recommended. + +New Features: + +* [#14747](http://dev.ckeditor.com/ticket/14747): The [Enhanced Image](http://ckeditor.com/addon/image2) caption now supports the link `target` attribute. +* [#7154](http://dev.ckeditor.com/ticket/7154): Added support for the "Display Text" field to the [Link](http://ckeditor.com/addon/link) dialog. Thanks to [Ryan Guill](https://github.com/ryanguill)! + +Fixed Issues: + +* [#13362](http://dev.ckeditor.com/ticket/13362): [Blink, WebKit] Fixed: Active widget element is not cached when it is losing focus and it is inside an editable element. +* [#13755](http://dev.ckeditor.com/ticket/13755): [Edge] Fixed: Pasting images does not work. +* [#13548](http://dev.ckeditor.com/ticket/13548): [IE] Fixed: Clicking the [elements path](http://ckeditor.com/addon/elementspath) disables Cut and Copy icons. +* [#13812](http://dev.ckeditor.com/ticket/13812): Fixed: When aborting file upload the placeholder for image is left. +* [#14659](http://dev.ckeditor.com/ticket/14659): [Blink] Fixed: Content scrolled to the top after closing the dialog in a [`
    `-based editor](http://ckeditor.com/addon/divarea). +* [#14825](http://dev.ckeditor.com/ticket/14825): [Edge] Fixed: Focusing the editor causes unwanted scrolling due to dropped support for the `setActive` method. + +## CKEditor 4.5.10 + +Fixed Issues: + +* [#10750](http://dev.ckeditor.com/ticket/10750): Fixed: The editor does not escape the `font-style` family property correctly, removing quotes and whitespace from font names. +* [#14413](http://dev.ckeditor.com/ticket/14413): Fixed: The [Auto Grow](http://ckeditor.com/addon/autogrow) plugin with the [`config.autoGrow_onStartup`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-autoGrow_onStartup) option set to `true` does not work properly for an editor that is not visible. +* [#14451](http://dev.ckeditor.com/ticket/14451): Fixed: Numeric element ID not escaped properly. Thanks to [Jakub Chalupa](https://github.com/chaluja7)! +* [#14590](http://dev.ckeditor.com/ticket/14590): Fixed: Additional line break appearing after inline elements when switching modes. Thanks to [dpidcock](https://github.com/dpidcock)! +* [#14539](https://dev.ckeditor.com/ticket/14539): Fixed: JAWS reads "selected Blank" instead of "selected " when selecting a widget. +* [#14701](http://dev.ckeditor.com/ticket/14701): Fixed: More precise labels for [Enhanced Image](http://ckeditor.com/addon/image2) and [Placeholder](http://ckeditor.com/addon/placeholder) widgets. +* [#14667](http://dev.ckeditor.com/ticket/14667): [IE] Fixed: Removing background color from selected text removes background color from the whole paragraph. +* [#14252](http://dev.ckeditor.com/ticket/14252): [IE] Fixed: Styles drop-down list does not always reflect the current style of the text line. +* [#14275](http://dev.ckeditor.com/ticket/14275): [IE9+] Fixed: `onerror` and `onload` events are not used in browsers it could have been used when loading scripts dynamically. + +## CKEditor 4.5.9 + +Fixed Issues: + +* [#10685](http://dev.ckeditor.com/ticket/10685): Fixed: Unreadable toolbar icons after updating to the new editor version. Fixed with [6876179](https://github.com/ckeditor/ckeditor-dev/commit/6876179db4ee97e786b07b8fd72e6b4120732185) in [ckeditor-dev](https://github.com/ckeditor/ckeditor-dev) and [6c9189f4](https://github.com/ckeditor/ckeditor-presets/commit/6c9189f46392d2c126854fe8889b820b8c76d291) in [ckeditor-presets](https://github.com/ckeditor/ckeditor-presets). +* [#14573](https://dev.ckeditor.com/ticket/14573): Fixed: Missing [Widget](http://ckeditor.com/addon/widget) drag handler CSS when there are multiple editor instances. +* [#14620](https://dev.ckeditor.com/ticket/14620): Fixed: Setting both the `min-height` style for the `` element and the `height` style for the `` element breaks the [Auto Grow](http://ckeditor.com/addon/autogrow) plugin. +* [#14538](http://dev.ckeditor.com/ticket/14538): Fixed: Keyboard focus goes into an embedded `');d.on("load",function(a){a.removeListener();a=d.getFrameDocument();a.write(b);c.focusManager.add(a.getBody()); -CKEDITOR.env.air&&h.call(this,a.getWindow().$)},a);d.setCustomData("dialog",a);a=this.getElement();a.setHtml("");a.append(d);if(CKEDITOR.env.ie){var g=CKEDITOR.dom.element.createFromHtml('');g.on("focus",function(){setTimeout(function(){d.$.contentWindow.focus()})});a.append(g);this.focus=function(){g.focus();this.fire("focus")}}this.getInputElement=function(){return d};CKEDITOR.env.ie&&(a.setStyle("display","block"),a.setStyle("height", -d.$.offsetHeight+2+"px"))},commit:function(){var a=this.getDialog().getParentEditor(),b=this.getInputElement().getFrameDocument().getBody(),c=b.getBogus(),d;c&&c.remove();d=b.getHtml();setTimeout(function(){a.fire("pasteDialogCommit",d)},0)}}]}]}}); \ No newline at end of file +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.dialog.add( 'paste', function( editor ) { + var lang = editor.lang.clipboard, + clipboard = CKEDITOR.plugins.clipboard, + lastDataTransfer; + + function onPasteFrameLoad( win ) { + var doc = new CKEDITOR.dom.document( win.document ), + body = doc.getBody(), + script = doc.getById( 'cke_actscrpt' ); + + script && script.remove(); + + body.setAttribute( 'contenteditable', true ); + + // Forward dataTransfer (#13883). + body.on( clipboard.mainPasteEvent, function( evt ) { + var dataTransfer = clipboard.initPasteDataTransfer( evt ); + + if ( !lastDataTransfer ) { + lastDataTransfer = dataTransfer; + } else + // For two paste with the same dataTransfer we can use that dataTransfer (two internal pastes are + // considered as an internal paste). + if ( dataTransfer != lastDataTransfer ) { + // If there were two paste with different DataTransfer objects create a new, empty, data transfer + // and use it (one internal and one external paste are considered as external paste). + lastDataTransfer = clipboard.initPasteDataTransfer(); + } + } ); + + // 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() { + doc.$.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 ) ); + + // Handle pending focus. + if ( doc.getWindow().getFrame().removeCustomData( 'pendingFocus' ) ) + body.focus(); + } + + // If pasteDialogCommit wasn't canceled by e.g. editor.getClipboardData + // then fire paste event. + // Do not use editor#paste, because it would start from beforePaste event. + editor.on( 'pasteDialogCommit', function( evt ) { + if ( evt.data ) + editor.fire( 'paste', { + type: 'auto', + dataValue: evt.data.dataValue, + method: 'paste', + dataTransfer: evt.data.dataTransfer || clipboard.initPasteDataTransfer() + } ); + }, null, null, 1000 ); + + 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(); + + // Set dialog title to the custom value (set e.g. in editor.openDialog callback) and reset this value. + // If custom title not set, use default one. + this.parts.title.setHtml( this.customTitle || lang.title ); + this.customTitle = null; + }, + + 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: '
    ' + lang.securityMsg + '
    ' + }, + { + type: 'html', + id: 'pasteMsg', + html: '
    ' + lang.pasteMsg + '
    ' + }, + { + type: 'html', + id: 'editing_area', + style: 'width:100%;height:100%', + html: '', + focus: function() { + var iframe = this.getInputElement(), + doc = iframe.getFrameDocument(), + body = doc.getBody(); + + // Frame content may not loaded at the moment. + if ( !body || body.isReadOnly() ) + iframe.setCustomData( 'pendingFocus', 1 ); + else + body.focus(); + }, + setup: function() { + var dialog = this.getDialog(); + var htmlToLoad = '' + + '' + + '' + + ''; + + var src = + CKEDITOR.env.air ? + 'javascript:void(0)' : // jshint ignore:line + ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) ? + 'javascript:void((function(){' + encodeURIComponent( // jshint ignore:line + 'document.open();' + + '(' + CKEDITOR.tools.fixDomain + ')();' + + 'document.close();' + ) + '})())"' + : ''; + + var iframe = CKEDITOR.dom.element.createFromHtml( '' ); + + // Reset last data transfer. + lastDataTransfer = null; + + iframe.on( 'load', function( e ) { + e.removeListener(); + + var doc = iframe.getFrameDocument(); + doc.write( htmlToLoad ); + + editor.focusManager.add( doc.getBody() ); + + 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 && !CKEDITOR.env.edge ) { + var focusGrabber = CKEDITOR.dom.element.createFromHtml( '' ); + focusGrabber.on( 'focus', function() { + // Since fixDomain is called in src attribute, + // IE needs some slight delay to correctly move focus. + setTimeout( 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() { + var 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(); + + // Opera needs some time to think about what has happened and what it should do now. + setTimeout( function() { + editor.fire( 'pasteDialogCommit', { + dataValue: html, + // Avoid error if there was no paste so lastDataTransfer is null. + dataTransfer: lastDataTransfer || clipboard.initPasteDataTransfer() + } ); + }, 0 ); + } + } + ] + } ] + }; +} ); + +/** + * Internal event to pass paste dialog's data to the listeners. + * + * @private + * @event pasteDialogCommit + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + */ diff --git a/ckeditor/plugins/clipboard/icons/copy-rtl.png b/ckeditor/plugins/clipboard/icons/copy-rtl.png new file mode 100644 index 0000000..ce94fc0 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/copy-rtl.png differ diff --git a/ckeditor/plugins/clipboard/icons/copy.png b/ckeditor/plugins/clipboard/icons/copy.png new file mode 100644 index 0000000..ce94fc0 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/copy.png differ diff --git a/ckeditor/plugins/clipboard/icons/cut-rtl.png b/ckeditor/plugins/clipboard/icons/cut-rtl.png new file mode 100644 index 0000000..8ae48d9 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/cut-rtl.png differ diff --git a/ckeditor/plugins/clipboard/icons/cut.png b/ckeditor/plugins/clipboard/icons/cut.png new file mode 100644 index 0000000..8ae48d9 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/cut.png differ diff --git a/ckeditor/plugins/clipboard/icons/hidpi/copy-rtl.png b/ckeditor/plugins/clipboard/icons/hidpi/copy-rtl.png new file mode 100644 index 0000000..74c6765 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/hidpi/copy-rtl.png differ diff --git a/ckeditor/plugins/clipboard/icons/hidpi/copy.png b/ckeditor/plugins/clipboard/icons/hidpi/copy.png new file mode 100644 index 0000000..74c6765 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/hidpi/copy.png differ diff --git a/ckeditor/plugins/clipboard/icons/hidpi/cut-rtl.png b/ckeditor/plugins/clipboard/icons/hidpi/cut-rtl.png new file mode 100644 index 0000000..f5a9b0d Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/hidpi/cut-rtl.png differ diff --git a/ckeditor/plugins/clipboard/icons/hidpi/cut.png b/ckeditor/plugins/clipboard/icons/hidpi/cut.png new file mode 100644 index 0000000..f5a9b0d Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/hidpi/cut.png differ diff --git a/ckeditor/plugins/clipboard/icons/hidpi/paste-rtl.png b/ckeditor/plugins/clipboard/icons/hidpi/paste-rtl.png new file mode 100644 index 0000000..12cac92 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/hidpi/paste-rtl.png differ diff --git a/ckeditor/plugins/clipboard/icons/hidpi/paste.png b/ckeditor/plugins/clipboard/icons/hidpi/paste.png new file mode 100644 index 0000000..12cac92 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/hidpi/paste.png differ diff --git a/ckeditor/plugins/clipboard/icons/paste-rtl.png b/ckeditor/plugins/clipboard/icons/paste-rtl.png new file mode 100644 index 0000000..7039251 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/paste-rtl.png differ diff --git a/ckeditor/plugins/clipboard/icons/paste.png b/ckeditor/plugins/clipboard/icons/paste.png new file mode 100644 index 0000000..7039251 Binary files /dev/null and b/ckeditor/plugins/clipboard/icons/paste.png differ diff --git a/ckeditor/plugins/clipboard/lang/af.js b/ckeditor/plugins/clipboard/lang/af.js new file mode 100644 index 0000000..4a7bd51 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/af.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'af', { + copy: 'Kopiëer', + copyError: 'U blaaier se sekuriteitsinstelling belet die kopiëringsaksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+C).', + cut: 'Knip', + cutError: 'U blaaier se sekuriteitsinstelling belet die outomatiese knip-aksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+X).', + paste: 'Plak', + pasteArea: 'Plak-area', + pasteMsg: 'Plak die teks in die volgende teks-area met die sleutelbordkombinasie (Ctrl/Cmd+V) en druk OK.', + securityMsg: 'Weens u blaaier se sekuriteitsinstelling is data op die knipbord nie toeganklik nie. U kan dit eers weer in hierdie venster plak.', + title: 'Byvoeg' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ar.js b/ckeditor/plugins/clipboard/lang/ar.js new file mode 100644 index 0000000..23db5b9 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ar.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ar', { + copy: 'نسخ', + copyError: 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع عمليات النسخ التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+C).', + cut: 'قص', + cutError: 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع القص التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+X).', + paste: 'لصق', + pasteArea: 'منطقة اللصق', + pasteMsg: 'الصق داخل الصندوق بإستخدام زرائر (Ctrl/Cmd+V) في لوحة المفاتيح، ثم اضغط زر موافق.', + securityMsg: 'نظراً لإعدادات الأمان الخاصة بمتصفحك، لن يتمكن هذا المحرر من الوصول لمحتوى حافظتك، لذلك يجب عليك لصق المحتوى مرة أخرى في هذه النافذة.', + title: 'لصق' +} ); diff --git a/ckeditor/plugins/clipboard/lang/az.js b/ckeditor/plugins/clipboard/lang/az.js new file mode 100644 index 0000000..d005f9b --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/az.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'az', { + copy: 'Köçür', + copyError: 'Avtomatik köçürülməsi mümkün deyil. Ctrl+C basın.', + cut: 'Kəs', + cutError: 'Avtomatik kəsmə mümkün deyil. Ctrl+X basın.', + paste: 'Əlavə et', + pasteArea: 'Əlavəetmə sahəsi', + pasteMsg: 'Bu sahəyə əlavə edin (Ctrl+V)', + securityMsg: 'Mübadilə buferi açmaq mümkün deyil. Bu pəncərədə yenidən əlavə edin.', + title: 'Əlavə et' +} ); diff --git a/ckeditor/plugins/clipboard/lang/bg.js b/ckeditor/plugins/clipboard/lang/bg.js new file mode 100644 index 0000000..1b1e5e6 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/bg.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'bg', { + copy: 'Копирай', + copyError: 'Настройките за сигурност на вашия бразуър не разрешават на редактора да изпълни запаметяването. За целта използвайте клавиатурата (Ctrl/Cmd+C).', + cut: 'Отрежи', + cutError: 'Настройките за сигурност на Вашия браузър не позволяват на редактора автоматично да изъплни действията за отрязване. Моля ползвайте клавиатурните команди за целта (ctrl+x).', + paste: 'Вмъкни', + pasteArea: 'Зона за вмъкване', + pasteMsg: 'Вмъкнете тук съдъжанието с клавиатуарата (Ctrl/Cmd+V) и натиснете OK.', + securityMsg: 'Заради настройките за сигурност на Вашия браузър, редакторът не може да прочете данните от клипборда коректно.', + title: 'Вмъкни' +} ); diff --git a/ckeditor/plugins/clipboard/lang/bn.js b/ckeditor/plugins/clipboard/lang/bn.js new file mode 100644 index 0000000..e267b85 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/bn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'bn', { + copy: 'কপি', + copyError: 'আপনার ব্রাউজারের নিরাপত্তা সেটিংসমূহ এডিটরকে স্বয়ংক্রিয়ভাবে কপি করার প্রক্রিয়া চালনা করার অনুমতি দেয় না। অনুগ্রহপূর্বক এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+C)।', + cut: 'কাট', + cutError: 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কাট করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+X)।', + paste: 'পেস্ট', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'অনুগ্রহ করে নীচের বাক্সে কিবোর্ড ব্যবহার করে (Ctrl/Cmd+V) পেস্ট করুন এবং 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 + title: 'পেস্ট' +} ); diff --git a/ckeditor/plugins/clipboard/lang/bs.js b/ckeditor/plugins/clipboard/lang/bs.js new file mode 100644 index 0000000..aba9c4d --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/bs.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'bs', { + copy: 'Kopiraj', + copyError: 'Sigurnosne postavke Vašeg pretraživaèa ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+C).', + cut: 'Izreži', + cutError: 'Sigurnosne postavke vašeg pretraživaèa ne dozvoljavaju operacije automatskog rezanja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+X).', + paste: 'Zalijepi', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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 + title: 'Zalijepi' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ca.js b/ckeditor/plugins/clipboard/lang/ca.js new file mode 100644 index 0000000..7f42cd3 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ca.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ca', { + copy: 'Copiar', + copyError: 'La configuració de seguretat del vostre navegador no permet executar automàticament les operacions de copiar. Si us plau, utilitzeu el teclat (Ctrl/Cmd+C).', + cut: 'Retallar', + cutError: 'La configuració de seguretat del vostre navegador no permet executar automàticament les operacions de retallar. Si us plau, utilitzeu el teclat (Ctrl/Cmd+X).', + paste: 'Enganxar', + pasteArea: 'Àrea d\'enganxat', + pasteMsg: 'Si us plau, enganxi dins del següent camp utilitzant el teclat (Ctrl/Cmd+V) i premi OK.', + securityMsg: 'A causa de la configuració de seguretat del vostre navegador, l\'editor no pot accedir a les dades del porta-retalls directament. Enganxeu-ho un altre cop en aquesta finestra.', + title: 'Enganxar' +} ); diff --git a/ckeditor/plugins/clipboard/lang/cs.js b/ckeditor/plugins/clipboard/lang/cs.js new file mode 100644 index 0000000..0e0fa81 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/cs.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'cs', { + copy: 'Kopírovat', + 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).', + cut: 'Vyjmout', + 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).', + paste: 'Vložit', + pasteArea: 'Oblast vkládání', + pasteMsg: 'Do následujícího pole vložte požadovaný obsah pomocí klávesnice (Ctrl/Cmd+V) a stiskněte OK.', + 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.', + title: 'Vložit' +} ); diff --git a/ckeditor/plugins/clipboard/lang/cy.js b/ckeditor/plugins/clipboard/lang/cy.js new file mode 100644 index 0000000..3aae2be --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/cy.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'cy', { + copy: 'Copïo', + copyError: '\'Dyw gosodiadau diogelwch eich porwr ddim yn caniatàu\'r golygydd i gynnal \'gweithredoedd copïo\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+C).', + cut: 'Torri', + cutError: 'Nid yw gosodiadau diogelwch eich porwr yn caniatàu\'r golygydd i gynnal \'gweithredoedd torri\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+X).', + paste: 'Gludo', + pasteArea: 'Ardal Gludo', + pasteMsg: 'Gludwch i mewn i\'r blwch canlynol gan ddefnyddio\'r bysellfwrdd (Ctrl/Cmd+V) a phwyso Iawn.', + securityMsg: 'Oherwydd gosodiadau diogelwch eich porwr, \'dyw\'r porwr ddim yn gallu ennill mynediad i\'r data ar y clipfwrdd yn uniongyrchol. Mae angen i chi ei ludo eto i\'r ffenestr hon.', + title: 'Gludo' +} ); diff --git a/ckeditor/plugins/clipboard/lang/da.js b/ckeditor/plugins/clipboard/lang/da.js new file mode 100644 index 0000000..d70125a --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/da.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'da', { + copy: 'Kopiér', + copyError: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

    Brug i stedet tastaturet til at kopiere teksten (Ctrl/Cmd+C).', + cut: 'Klip', + cutError: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

    Brug i stedet tastaturet til at klippe teksten (Ctrl/Cmd+X).', + paste: 'Indsæt', + pasteArea: 'Indsæt område', + pasteMsg: 'Indsæt i feltet herunder (Ctrl/Cmd+V) og klik på OK.', + securityMsg: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

    Du skal indsætte udklipsholderens indhold i dette vindue igen.', + title: 'Indsæt' +} ); diff --git a/ckeditor/plugins/clipboard/lang/de-ch.js b/ckeditor/plugins/clipboard/lang/de-ch.js new file mode 100644 index 0000000..4bf25a9 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/de-ch.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'de-ch', { + copy: 'Kopieren', + copyError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).', + cut: 'Ausschneiden', + 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).', + paste: 'Einfügen', + pasteArea: 'Einfügebereich', + pasteMsg: 'Bitte fügen Sie den Text in der folgenden Box über die Tastatur (mit Strg+V) ein und bestätigen Sie mit OK.', + 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.', + title: 'Einfügen' +} ); diff --git a/ckeditor/plugins/clipboard/lang/de.js b/ckeditor/plugins/clipboard/lang/de.js new file mode 100644 index 0000000..2aaf2e8 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/de.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'de', { + copy: 'Kopieren', + copyError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).', + cut: 'Ausschneiden', + 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).', + paste: 'Einfügen', + pasteArea: 'Einfügebereich', + pasteMsg: 'Bitte fügen Sie den Text in der folgenden Box über die Tastatur (mit Strg+V) ein und bestätigen Sie mit OK.', + 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.', + title: 'Einfügen' +} ); diff --git a/ckeditor/plugins/clipboard/lang/el.js b/ckeditor/plugins/clipboard/lang/el.js new file mode 100644 index 0000000..201bab4 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/el.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'el', { + copy: 'Αντιγραφή', + copyError: 'Οι ρυθμίσεις ασφαλείας του περιηγητή σας δεν επιτρέπουν την επιλεγμένη εργασία αντιγραφής. Παρακαλώ χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+C).', + cut: 'Αποκοπή', + cutError: 'Οι ρυθμίσεις ασφαλείας του περιηγητή σας δεν επιτρέπουν την επιλεγμένη εργασία αποκοπής. Παρακαλώ χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+X).', + paste: 'Επικόλληση', + pasteArea: 'Περιοχή Επικόλλησης', + pasteMsg: 'Παρακαλώ επικολλήστε στο ακόλουθο κουτί χρησιμοποιώντας το πληκτρολόγιο (Ctrl/Cmd+V) και πατήστε OK.', + securityMsg: 'Λόγων των ρυθμίσεων ασφάλειας του περιηγητή σας, ο επεξεργαστής δεν μπορεί να έχει πρόσβαση στην μνήμη επικόλλησης. Χρειάζεται να επικολλήσετε ξανά σε αυτό το παράθυρο.', + title: 'Επικόλληση' +} ); diff --git a/ckeditor/plugins/clipboard/lang/en-au.js b/ckeditor/plugins/clipboard/lang/en-au.js new file mode 100644 index 0000000..daec441 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/en-au.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en-au', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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.', + title: 'Paste' +} ); diff --git a/ckeditor/plugins/clipboard/lang/en-ca.js b/ckeditor/plugins/clipboard/lang/en-ca.js new file mode 100644 index 0000000..862ca58 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/en-ca.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en-ca', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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.', + title: 'Paste' +} ); diff --git a/ckeditor/plugins/clipboard/lang/en-gb.js b/ckeditor/plugins/clipboard/lang/en-gb.js new file mode 100644 index 0000000..25223d0 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/en-gb.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en-gb', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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.', + title: 'Paste' +} ); diff --git a/ckeditor/plugins/clipboard/lang/en.js b/ckeditor/plugins/clipboard/lang/en.js new file mode 100644 index 0000000..c047eb0 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/en.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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.', + title: 'Paste' +} ); diff --git a/ckeditor/plugins/clipboard/lang/eo.js b/ckeditor/plugins/clipboard/lang/eo.js new file mode 100644 index 0000000..78fd594 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/eo.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'eo', { + copy: 'Kopii', + copyError: 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras kopiajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-C).', + cut: 'Eltondi', + cutError: 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras eltondajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-X).', + paste: 'Interglui', + pasteArea: 'Intergluoareo', + pasteMsg: 'Bonvolu glui la tekston en la jenan areon per uzado de la klavaro (Ctrl/Cmd+V) 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.', + title: 'Interglui' +} ); diff --git a/ckeditor/plugins/clipboard/lang/es.js b/ckeditor/plugins/clipboard/lang/es.js new file mode 100644 index 0000000..117bb5d --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/es.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'es', { + copy: 'Copiar', + 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).', + cut: 'Cortar', + 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).', + paste: 'Pegar', + pasteArea: 'Zona de pegado', + pasteMsg: 'Por favor pegue dentro del cuadro utilizando el teclado (Ctrl/Cmd+V);\r\nluego presione Aceptar.', + 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.', + title: 'Pegar' +} ); diff --git a/ckeditor/plugins/clipboard/lang/et.js b/ckeditor/plugins/clipboard/lang/et.js new file mode 100644 index 0000000..5fecb34 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/et.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'et', { + copy: 'Kopeeri', + copyError: 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt kopeerida. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+C).', + cut: 'Lõika', + cutError: 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt lõigata. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+X).', + paste: 'Aseta', + pasteArea: 'Asetamise ala', + pasteMsg: 'Palun aseta tekst järgnevasse kasti kasutades klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+V) ja vajuta seejärel OK.', + securityMsg: 'Sinu veebisirvija turvaseadete tõttu ei oma redaktor otsest ligipääsu lõikelaua andmetele. Sa pead asetama need uuesti siia aknasse.', + title: 'Asetamine' +} ); diff --git a/ckeditor/plugins/clipboard/lang/eu.js b/ckeditor/plugins/clipboard/lang/eu.js new file mode 100644 index 0000000..07abb69 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/eu.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'eu', { + copy: 'Kopiatu', + copyError: 'Zure web nabigatzailearen segurtasun ezarpenek ez dute baimentzen testuak automatikoki kopiatzea. Mesedez teklatua erabil ezazu (Ctrl/Cmd+C).', + cut: 'Ebaki', + cutError: 'Zure web nabigatzailearen segurtasun ezarpenek ez dute baimentzen testuak automatikoki moztea. Mesedez teklatua erabil ezazu (Ctrl/Cmd+X).', + paste: 'Itsatsi', + pasteArea: 'Itsasteko area', + pasteMsg: 'Mesedez teklatua erabiliz (Ctrl/Cmd+V) ondorengo eremuan testua itsatsi eta sakatu Ados.', + securityMsg: 'Nabigatzailearen segurtasun ezarpenak direla eta, editoreak ezin du arbela zuzenean erabili. Leiho honetan berriro itsatsi behar duzu.', + title: 'Itsatsi' +} ); diff --git a/ckeditor/plugins/clipboard/lang/fa.js b/ckeditor/plugins/clipboard/lang/fa.js new file mode 100644 index 0000000..95a579a --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/fa.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fa', { + copy: 'رونوشت', + copyError: 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای کپی کردن را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+C).', + cut: 'برش', + cutError: 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای برش را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+X).', + paste: 'چسباندن', + pasteArea: 'محل چسباندن', + pasteMsg: 'لطفا متن را با کلیدهای (Ctrl/Cmd+V) در این جعبهٴ متنی بچسبانید و پذیرش را بزنید.', + securityMsg: 'به خاطر تنظیمات امنیتی مرورگر شما، ویرایشگر نمیتواند دسترسی مستقیم به دادههای clipboard داشته باشد. شما باید دوباره آنرا در این پنجره بچسبانید.', + title: 'چسباندن' +} ); diff --git a/ckeditor/plugins/clipboard/lang/fi.js b/ckeditor/plugins/clipboard/lang/fi.js new file mode 100644 index 0000000..22d6aad --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/fi.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fi', { + copy: 'Kopioi', + copyError: 'Selaimesi turva-asetukset eivät salli editorin toteuttaa kopioimista. Käytä näppäimistöä kopioimiseen (Ctrl+C).', + cut: 'Leikkaa', + cutError: 'Selaimesi turva-asetukset eivät salli editorin toteuttaa leikkaamista. Käytä näppäimistöä leikkaamiseen (Ctrl+X).', + paste: 'Liitä', + pasteArea: 'Leikealue', + pasteMsg: 'Liitä painamalla (Ctrl+V) ja painamalla OK.', + securityMsg: 'Selaimesi turva-asetukset eivät salli editorin käyttää leikepöytää suoraan. Sinun pitää suorittaa liittäminen tässä ikkunassa.', + title: 'Liitä' +} ); diff --git a/ckeditor/plugins/clipboard/lang/fo.js b/ckeditor/plugins/clipboard/lang/fo.js new file mode 100644 index 0000000..0b6b298 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/fo.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fo', { + copy: 'Avrita', + copyError: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at avrita tekstin. Vinarliga nýt knappaborðið til at avrita tekstin (Ctrl/Cmd+C).', + cut: 'Kvett', + cutError: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at kvetta tekstin. Vinarliga nýt knappaborðið til at kvetta tekstin (Ctrl/Cmd+X).', + paste: 'Innrita', + pasteArea: 'Avritingarumráði', + pasteMsg: 'Vinarliga koyr tekstin í hendan rútin við knappaborðinum (Ctrl/Cmd+V) og klikk á Góðtak.', + securityMsg: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í beinleiðis atgongd til avritingarminnið. Tygum mugu royna aftur í hesum rútinum.', + title: 'Innrita' +} ); diff --git a/ckeditor/plugins/clipboard/lang/fr-ca.js b/ckeditor/plugins/clipboard/lang/fr-ca.js new file mode 100644 index 0000000..789b245 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/fr-ca.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fr-ca', { + copy: 'Copier', + 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).', + cut: 'Couper', + 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).', + paste: 'Coller', + pasteArea: 'Coller la zone', + pasteMsg: 'Veuillez coller dans la zone ci-dessous en utilisant le clavier (Ctrl/Cmd+V) et appuyer sur OK.', + 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.', + title: 'Coller' +} ); diff --git a/ckeditor/plugins/clipboard/lang/fr.js b/ckeditor/plugins/clipboard/lang/fr.js new file mode 100644 index 0000000..5df5f7c --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/fr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fr', { + copy: 'Copier', + copyError: 'Les paramètres de sécurité de votre navigateur n\'autorisent pas l\'éditeur à exécuter automatiquement l\'opération « Copier ». Veuillez utiliser le raccourci clavier à cet effet (Ctrl/Cmd+C).', + cut: 'Couper', + cutError: 'Les paramètres de sécurité de votre navigateur n\'autorisent pas l\'éditeur à exécuter automatiquement l\'opération « Couper ». Veuillez utiliser le raccourci clavier à cet effet (Ctrl/Cmd+X).', + paste: 'Coller', + pasteArea: 'Coller la zone', + pasteMsg: 'Veuillez coller le texte dans la zone suivante en utilisant le raccourci clavier (Ctrl/Cmd+V) et cliquez sur OK.', + securityMsg: 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur d\'accéder directement aux données du presse-papier. Vous devez les coller à nouveau dans cette fenêtre.', + title: 'Coller' +} ); diff --git a/ckeditor/plugins/clipboard/lang/gl.js b/ckeditor/plugins/clipboard/lang/gl.js new file mode 100644 index 0000000..23aa7ef --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/gl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'gl', { + copy: 'Copiar', + copyError: 'Os axustes de seguranza do seu navegador non permiten que o editor realice automaticamente as tarefas de copia. Use o teclado para iso (Ctrl/Cmd+C).', + cut: 'Cortar', + cutError: 'Os axustes de seguranza do seu navegador non permiten que o editor realice automaticamente as tarefas de corte. Use o teclado para iso (Ctrl/Cmd+X).', + paste: 'Pegar', + pasteArea: 'Zona de pegado', + pasteMsg: 'Pegue dentro do seguinte cadro usando o teclado (Ctrl/Cmd+V) e prema en Aceptar', + securityMsg: 'Por mor da configuración de seguranza do seu navegador, o editor non ten acceso ao portapapeis. É necesario pegalo novamente nesta xanela.', + title: 'Pegar' +} ); diff --git a/ckeditor/plugins/clipboard/lang/gu.js b/ckeditor/plugins/clipboard/lang/gu.js new file mode 100644 index 0000000..603125b --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/gu.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'gu', { + copy: 'નકલ', + copyError: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કોપી કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+C) का प्रयोग करें।', + cut: 'કાપવું', + cutError: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કટ કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+X) નો ઉપયોગ કરો.', + paste: 'પેસ્ટ', + pasteArea: 'પેસ્ટ કરવાની જગ્યા', + pasteMsg: 'Ctrl/Cmd+V નો પ્રયોગ કરી પેસ્ટ કરો', + securityMsg: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસના કારણે,એડિટર તમારા કિલ્પબોર્ડ ડેટા ને કોપી નથી કરી શકતો. તમારે આ વિન્ડોમાં ફરીથી પેસ્ટ કરવું પડશે.', + title: 'પેસ્ટ' +} ); diff --git a/ckeditor/plugins/clipboard/lang/he.js b/ckeditor/plugins/clipboard/lang/he.js new file mode 100644 index 0000000..0999fe1 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/he.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'he', { + copy: 'העתקה', + copyError: 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות העתקה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+C).', + cut: 'גזירה', + cutError: 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות גזירה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+X).', + paste: 'הדבקה', + pasteArea: 'איזור הדבקה', + pasteMsg: 'נא להדביק בתוך הקופסה באמצעות (Ctrl/Cmd+V) וללחוץ על אישור.', + securityMsg: 'עקב הגדרות אבטחה בדפדפן, לא ניתן לגשת אל לוח הגזירים (Clipboard) בצורה ישירה. נא להדביק שוב בחלון זה.', + title: 'הדבקה' +} ); diff --git a/ckeditor/plugins/clipboard/lang/hi.js b/ckeditor/plugins/clipboard/lang/hi.js new file mode 100644 index 0000000..55a6e5f --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/hi.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'hi', { + copy: 'कॉपी', + copyError: 'आपके ब्राआउज़र की सुरक्षा सॅटिन्ग्स ने कॉपी करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+C) का प्रयोग करें।', + cut: 'कट', + cutError: 'आपके ब्राउज़र की सुरक्षा सॅटिन्ग्स ने कट करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+X) का प्रयोग करें।', + paste: 'पेस्ट', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Ctrl/Cmd+V का प्रयोग करके पेस्ट करें और ठीक है करें.', + securityMsg: 'आपके ब्राउज़र की सुरक्षा आपके ब्राउज़र की सुरKश सैटिंग के कारण, एडिटर आपके क्लिपबोर्ड डेटा को नहीं पा सकता है. आपको उसे इस विन्डो में दोबारा पेस्ट करना होगा.', + title: 'पेस्ट' +} ); diff --git a/ckeditor/plugins/clipboard/lang/hr.js b/ckeditor/plugins/clipboard/lang/hr.js new file mode 100644 index 0000000..962c343 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/hr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'hr', { + copy: 'Kopiraj', + copyError: 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+C).', + cut: 'Izreži', + cutError: 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog izrezivanja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+X).', + paste: 'Zalijepi', + pasteArea: 'Prostor za ljepljenje', + pasteMsg: 'Molimo zaljepite unutar doljnjeg okvira koristeći tipkovnicu (Ctrl/Cmd+V) i kliknite OK.', + 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.', + title: 'Zalijepi' +} ); diff --git a/ckeditor/plugins/clipboard/lang/hu.js b/ckeditor/plugins/clipboard/lang/hu.js new file mode 100644 index 0000000..08d9f9f --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/hu.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'hu', { + copy: 'Másolás', + 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).', + cut: 'Kivágá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).', + paste: 'Beillesztés', + pasteArea: 'Beszúrás mező', + pasteMsg: 'Másolja be az alábbi mezőbe a Ctrl/Cmd+V billentyűk lenyomásával, majd nyomjon Rendben-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.', + title: 'Beillesztés' +} ); diff --git a/ckeditor/plugins/clipboard/lang/id.js b/ckeditor/plugins/clipboard/lang/id.js new file mode 100644 index 0000000..ffbf467 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/id.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'id', { + copy: 'Salin', + copyError: 'Pengaturan keamanan peramban anda tidak mengizinkan editor untuk mengeksekusi operasi menyalin secara otomatis. Mohon gunakan papan tuts (Ctrl/Cmd+C)', + cut: 'Potong', + 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 + paste: 'Tempel', + pasteArea: 'Area Tempel', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', // MISSING + securityMsg: 'Karena pengaturan keamanan peramban anda, editor tida dapat mengakses data clipboard anda secara langsung. Anda harus mem-paste kembali pada halaman ini', + title: 'Tempel' +} ); diff --git a/ckeditor/plugins/clipboard/lang/is.js b/ckeditor/plugins/clipboard/lang/is.js new file mode 100644 index 0000000..7222eb5 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/is.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'is', { + copy: 'Afrita', + copyError: 'Öryggisstillingar vafrans þíns leyfa ekki afritun texta með músaraðgerð. Notaðu lyklaborðið í afrita (Ctrl/Cmd+C).', + cut: 'Klippa', + cutError: 'Öryggisstillingar vafrans þíns leyfa ekki klippingu texta með músaraðgerð. Notaðu lyklaborðið í klippa (Ctrl/Cmd+X).', + paste: 'Líma', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Límdu í svæðið hér að neðan og (Ctrl/Cmd+V) og smelltu á OK.', + 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.', + title: 'Líma' +} ); diff --git a/ckeditor/plugins/clipboard/lang/it.js b/ckeditor/plugins/clipboard/lang/it.js new file mode 100644 index 0000000..61b456e --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/it.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'it', { + copy: 'Copia', + copyError: 'Le impostazioni di sicurezza del browser non permettono di copiare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+C).', + cut: 'Taglia', + cutError: 'Le impostazioni di sicurezza del browser non permettono di tagliare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+X).', + paste: 'Incolla', + pasteArea: 'Incolla', + pasteMsg: 'Incolla il testo all\'interno dell\'area sottostante usando la scorciatoia di tastiere (Ctrl/Cmd+V) e premi OK.', + 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.', + title: 'Incolla' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ja.js b/ckeditor/plugins/clipboard/lang/ja.js new file mode 100644 index 0000000..1ec9440 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ja.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ja', { + copy: 'コピー', + copyError: 'ブラウザーのセキュリティ設定によりエディタのコピー操作を自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+C)を使用してください。', + cut: '切り取り', + cutError: 'ブラウザーのセキュリティ設定によりエディタの切り取り操作を自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+X)を使用してください。', + paste: '貼り付け', + pasteArea: '貼り付け場所', + pasteMsg: 'キーボード(Ctrl/Cmd+V)を使用して、次の入力エリア内で貼り付けて、OKを押してください。', + securityMsg: 'ブラウザのセキュリティ設定により、エディタはクリップボードデータに直接アクセスすることができません。このウィンドウは貼り付け操作を行う度に表示されます。', + title: '貼り付け' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ka.js b/ckeditor/plugins/clipboard/lang/ka.js new file mode 100644 index 0000000..91d2c78 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ka.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ka', { + copy: 'ასლი', + copyError: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ასლის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+C).', + cut: 'ამოჭრა', + cutError: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ამოჭრის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+X).', + paste: 'ჩასმა', + pasteArea: 'ჩასმის არე', + pasteMsg: 'ჩასვით ამ არის შიგნით კლავიატურის გამოყენებით (Ctrl/Cmd+V) და დააჭირეთ OK-ს', + securityMsg: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა clipboard-ის მონაცემების წვდომის უფლებას. კიდევ უნდა ჩასვათ ტექსტი ამ ფანჯარაში.', + title: 'ჩასმა' +} ); diff --git a/ckeditor/plugins/clipboard/lang/km.js b/ckeditor/plugins/clipboard/lang/km.js new file mode 100644 index 0000000..b7f83ae --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/km.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'km', { + copy: 'ចម្លង', + copyError: 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ​មិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ ចំលងអត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+C)។', + cut: 'កាត់យក', + cutError: 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ​មិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ កាត់អត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+X) ។', + paste: 'បិទ​ភ្ជាប់', + pasteArea: 'តំបន់​បិទ​ភ្ជាប់', + pasteMsg: 'សូមចំលងអត្ថបទទៅដាក់ក្នុងប្រអប់ដូចខាងក្រោមដោយប្រើប្រាស់ ឃី ​(Ctrl/Cmd+V) ហើយចុច OK ។', + securityMsg: 'ព្រោះតែ​ការកំណត់​សុវត្ថិភាព ប្រអប់សរសេរ​មិន​អាចចាប់​យកទិន្នន័យពីក្តារតម្បៀតខ្ទាស់​អ្នក​​ដោយផ្ទាល់​បានទេ។ អ្នក​ត្រូវចំលង​ដាក់វាម្តង​ទៀត ក្នុងផ្ទាំងនេះ។', + title: 'បិទ​ភ្ជាប់' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ko.js b/ckeditor/plugins/clipboard/lang/ko.js new file mode 100644 index 0000000..f45aa9b --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ko.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ko', { + copy: '복사', + copyError: '브라우저의 보안설정 때문에 복사할 수 없습니다. 키보드(Ctrl/Cmd+C)를 이용해서 복사하십시오.', + cut: '잘라내기', + cutError: '브라우저의 보안설정 때문에 잘라내기 기능을 실행할 수 없습니다. 키보드(Ctrl/Cmd+X)를 이용해서 잘라내기 하십시오', + paste: '붙여넣기', + pasteArea: '붙여넣기 범위', + pasteMsg: '키보드(Ctrl/Cmd+V)를 이용해서 상자안에 붙여넣고 확인 를 누르세요.', + securityMsg: '브라우저 보안 설정으로 인해, 클립보드에 직접 접근할 수 없습니다. 이 창에 다시 붙여넣기 하십시오.', + title: '붙여넣기' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ku.js b/ckeditor/plugins/clipboard/lang/ku.js new file mode 100644 index 0000000..18c577b --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ku.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ku', { + copy: 'لەبەرگرتنەوە', + copyError: 'پارێزی وێبگەڕەکەت ڕێگەنادات بەسەرنووسەکە لە لکاندنی دەقی خۆکارارنە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+C).', + cut: 'بڕین', + cutError: 'پارێزی وێبگەڕەکەت ڕێگەنادات بە سەرنووسەکە لەبڕینی خۆکارانە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+X).', + paste: 'لکاندن', + pasteArea: 'ناوچەی لکاندن', + pasteMsg: 'تکایە بیلکێنە لەناوەوەی ئەم سنوقە لەڕێی تەختەکلیلەکەت بە بەکارهێنانی کلیلی (Ctrl/Cmd+V) دووای کلیکی باشە بکە.', + securityMsg: 'بەهۆی شێوەپێدانی پارێزی وێبگەڕەکەت، سەرنووسەکه ناتوانێت دەستبگەیەنێت بەهەڵگیراوەکە ڕاستەوخۆ. بۆیه پێویسته دووباره بیلکێنیت لەم پەنجەرەیه.', + title: 'لکاندن' +} ); diff --git a/ckeditor/plugins/clipboard/lang/lt.js b/ckeditor/plugins/clipboard/lang/lt.js new file mode 100644 index 0000000..d52443f --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/lt.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'lt', { + copy: 'Kopijuoti', + 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).', + cut: 'Iškirpti', + 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).', + paste: 'Įdėti', + pasteArea: 'Įkelti dalį', + pasteMsg: 'Žemiau esančiame įvedimo lauke įdėkite tekstą, naudodami klaviatūrą (Ctrl/Cmd+V) ir paspauskite mygtuką OK.', + securityMsg: 'Dėl jūsų naršyklės saugumo nustatymų, redaktorius negali tiesiogiai pasiekti laikinosios atminties. Jums reikia nukopijuoti dar kartą į šį langą.', + title: 'Įdėti' +} ); diff --git a/ckeditor/plugins/clipboard/lang/lv.js b/ckeditor/plugins/clipboard/lang/lv.js new file mode 100644 index 0000000..0e383ed --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/lv.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'lv', { + copy: 'Kopēt', + copyError: 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj redaktoram automātiski veikt kopēšanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+C), lai veiktu šo darbību.', + cut: 'Izgriezt', + cutError: 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj redaktoram automātiski veikt izgriezšanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+X), lai veiktu šo darbību.', + paste: 'Ielīmēt', + pasteArea: 'Ielīmēšanas zona', + pasteMsg: 'Lūdzu, ievietojiet tekstu šajā laukumā, izmantojot klaviatūru (Ctrl/Cmd+V) un apstipriniet ar Darīts!.', + securityMsg: 'Jūsu pārlūka drošības uzstādījumu dēļ, nav iespējams tieši piekļūt jūsu starpliktuvei. Jums jāielīmē atkārtoti šajā logā.', + title: 'Ievietot' +} ); diff --git a/ckeditor/plugins/clipboard/lang/mk.js b/ckeditor/plugins/clipboard/lang/mk.js new file mode 100644 index 0000000..4cfc360 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/mk.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'mk', { + copy: 'Копирај (Copy)', + copyError: 'Опциите за безбедност на вашиот прелистувач не дозволуваат уредувачот автоматски да изврши копирање. Ве молиме употребете ја тастатурата. (Ctrl/Cmd+C)', + cut: 'Исечи (Cut)', + cutError: 'Опциите за безбедност на вашиот прелистувач не дозволуваат уредувачот автоматски да изврши сечење. Ве молиме употребете ја тастатурата. (Ctrl/Cmd+C)', + paste: 'Залепи (Paste)', + pasteArea: 'Простор за залепување', + pasteMsg: 'Ве молиме да залепите во следниот квадрат користејќи ја тастатурата (Ctrl/Cmd+V) и да притиснете OK', + securityMsg: 'Опциите за безбедност на вашиот прелистувач не дозволуваат уредувачот директно да пристапи до копираните податоци. Потребно е повторно да се обидете во овој прозорец.', + title: 'Залепи (Paste)' +} ); diff --git a/ckeditor/plugins/clipboard/lang/mn.js b/ckeditor/plugins/clipboard/lang/mn.js new file mode 100644 index 0000000..494f73a --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/mn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'mn', { + copy: 'Хуулах', + copyError: 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хуулах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+C) товчны хослолыг ашиглана уу.', + cut: 'Хайчлах', + cutError: 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хайчлах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+X) товчны хослолыг ашиглана уу.', + paste: 'Буулгах', + pasteArea: 'Paste Area', // MISSING + pasteMsg: '(Ctrl/Cmd+V) товчийг ашиглан paste хийнэ үү. Мөн OK дар.', + securityMsg: 'Таны үзүүлэгч/browser/-н хамгаалалтын тохиргооноос болоод editor clipboard өгөгдөлрүү шууд хандах боломжгүй. Энэ цонход дахин paste хийхийг оролд.', + title: 'Буулгах' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ms.js b/ckeditor/plugins/clipboard/lang/ms.js new file mode 100644 index 0000000..89081f8 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ms.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ms', { + copy: 'Salin', + copyError: 'Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+C).', + cut: 'Potong', + cutError: 'Keselamatan perisian browser anda tidak membenarkan operasi suntingan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+X).', + paste: 'Tampal', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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 + title: 'Tampal' +} ); diff --git a/ckeditor/plugins/clipboard/lang/nb.js b/ckeditor/plugins/clipboard/lang/nb.js new file mode 100644 index 0000000..28623aa --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/nb.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'nb', { + copy: 'Kopier', + copyError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk tastatursnarveien (Ctrl/Cmd+C).', + cut: 'Klipp ut', + cutError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk tastatursnarveien (Ctrl/Cmd+X).', + paste: 'Lim inn', + pasteArea: 'Innlimingsområde', + pasteMsg: 'Vennligst lim inn i følgende boks med tastaturet (Ctrl/Cmd+V) og trykk OK.', + securityMsg: 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du må derfor lime det inn på nytt i dette vinduet.', + title: 'Lim inn' +} ); diff --git a/ckeditor/plugins/clipboard/lang/nl.js b/ckeditor/plugins/clipboard/lang/nl.js new file mode 100644 index 0000000..9d2faae --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/nl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'nl', { + copy: 'Kopiëren', + copyError: 'De beveiligingsinstelling van de browser verhinderen het automatisch kopiëren. Gebruik de sneltoets Ctrl/Cmd+C van het toetsenbord.', + cut: 'Knippen', + cutError: 'De beveiligingsinstelling van de browser verhinderen het automatisch knippen. Gebruik de sneltoets Ctrl/Cmd+X van het toetsenbord.', + paste: 'Plakken', + pasteArea: 'Plakgebied', + pasteMsg: 'Plak de tekst in het volgende vak gebruikmakend van uw toetsenbord (Ctrl/Cmd+V) 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.', + title: 'Plakken' +} ); diff --git a/ckeditor/plugins/clipboard/lang/no.js b/ckeditor/plugins/clipboard/lang/no.js new file mode 100644 index 0000000..3d206d4 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/no.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'no', { + copy: 'Kopier', + copyError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snarveien (Ctrl/Cmd+C).', + cut: 'Klipp ut', + cutError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk snarveien (Ctrl/Cmd+X).', + paste: 'Lim inn', + pasteArea: 'Innlimingsområde', + pasteMsg: 'Vennligst lim inn i følgende boks med tastaturet (Ctrl/Cmd+V) og trykk OK.', + securityMsg: 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du må derfor lime det inn på nytt i dette vinduet.', + title: 'Lim inn' +} ); diff --git a/ckeditor/plugins/clipboard/lang/oc.js b/ckeditor/plugins/clipboard/lang/oc.js new file mode 100644 index 0000000..30d1446 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/oc.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'oc', { + copy: 'Copiar', + copyError: 'Los paramètres de seguretat de vòstre navigador autorizan pas l\'editor a executar automaticament l\'operacion « Copiar ». Utilizatz l\'acorchi de clavièr a aqueste efièit (Ctrl/Cmd+C).', + cut: 'Talhar', + cutError: 'Los paramètres de seguretat de vòstre navigador autorizan pas l\'editor a executar automaticament l\'operacion « Talhar ». Utilizatz l\'acorchi de clavièr a aqueste efièit (Ctrl/Cmd+X).', + paste: 'Pegar', + pasteArea: 'Pegar la zòna', + pasteMsg: 'Pegatz lo tèxte dins la zòna seguenta en utilizant l\'acorchi de clavièr (Ctrl/Cmd+V) e clicatz sus D\'acòrdi.', + securityMsg: 'Los paramètres de seguretat de vòstre navigador empach l\'editor d\'accedir dirèctament a las donadas del quichapapièr. Las vos cal pegar tornamai dins aquesta fenèstra.', + title: 'Pegar' +} ); diff --git a/ckeditor/plugins/clipboard/lang/pl.js b/ckeditor/plugins/clipboard/lang/pl.js new file mode 100644 index 0000000..8a79fae --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/pl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'pl', { + copy: 'Kopiuj', + copyError: 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne kopiowanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+C.', + cut: 'Wytnij', + cutError: 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne wycinanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+X.', + paste: 'Wklej', + pasteArea: 'Obszar wklejania', + pasteMsg: 'Wklej tekst w poniższym polu, używając skrótu klawiaturowego (Ctrl/Cmd+V), i kliknij OK.', + securityMsg: 'Zabezpieczenia przeglądarki uniemożliwiają wklejenie danych bezpośrednio do edytora. Proszę ponownie wkleić dane w tym oknie.', + title: 'Wklej' +} ); diff --git a/ckeditor/plugins/clipboard/lang/pt-br.js b/ckeditor/plugins/clipboard/lang/pt-br.js new file mode 100644 index 0000000..28edada --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/pt-br.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'pt-br', { + copy: 'Copiar', + 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).', + cut: 'Recortar', + 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).', + paste: 'Colar', + pasteArea: 'Área para Colar', + pasteMsg: 'Transfira o link usado na caixa usando o teclado com (Ctrl/Cmd+V) e OK.', + 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.', + title: 'Colar' +} ); diff --git a/ckeditor/plugins/clipboard/lang/pt.js b/ckeditor/plugins/clipboard/lang/pt.js new file mode 100644 index 0000000..2812b83 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/pt.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'pt', { + copy: 'Copiar', + 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).', + cut: 'Cortar', + 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).', + paste: 'Colar', + pasteArea: 'Colar área', + pasteMsg: 'Por favor, cole dentro da seguinte caixa usando o teclado (Ctrl/Cmd+V) e carregue em OK.', + securityMsg: 'Devido ás definições de segurança do teu browser, o editor não pode aceder ao clipboard diretamente. É necessário que voltes a colar as informações nesta janela.', + title: 'Colar' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ro.js b/ckeditor/plugins/clipboard/lang/ro.js new file mode 100644 index 0000000..cd449af --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ro.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ro', { + copy: 'Copiază', + 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).', + cut: 'Taie', + 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).', + paste: 'Adaugă', + pasteArea: 'Suprafața de adăugare', + pasteMsg: 'Vă rugăm adăugaţi în căsuţa următoare folosind tastatura (Ctrl/Cmd+V) ş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ă.', + title: 'Adaugă' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ru.js b/ckeditor/plugins/clipboard/lang/ru.js new file mode 100644 index 0000000..9456f78 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ru.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ru', { + copy: 'Копировать', + copyError: 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).', + cut: 'Вырезать', + cutError: 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).', + paste: 'Вставить', + pasteArea: 'Зона для вставки', + pasteMsg: 'Пожалуйста, вставьте текст в зону ниже, используя клавиатуру (Ctrl/Cmd+V) и нажмите кнопку "OK".', + securityMsg: 'Настройки безопасности вашего браузера не разрешают редактору напрямую обращаться к буферу обмена. Вы должны вставить текст снова в это окно.', + title: 'Вставить' +} ); diff --git a/ckeditor/plugins/clipboard/lang/si.js b/ckeditor/plugins/clipboard/lang/si.js new file mode 100644 index 0000000..1b6975c --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/si.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'si', { + copy: 'පිටපත් කරන්න', + 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 + cut: 'කපාගන්න', + 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 + paste: 'අලවන්න', + pasteArea: 'අලවන ප්‍රදේශ', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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 + title: 'අලවන්න' +} ); diff --git a/ckeditor/plugins/clipboard/lang/sk.js b/ckeditor/plugins/clipboard/lang/sk.js new file mode 100644 index 0000000..9b4c7fc --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/sk.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sk', { + copy: 'Kopírovať', + copyError: 'Bezpečnostné nastavenia vášho prehliadača nedovoľujú editoru automaticky spustiť operáciu kopírovania. Použite na to klávesnicu (Ctrl/Cmd+C).', + cut: 'Vystrihnúť', + cutError: 'Bezpečnostné nastavenia vášho prehliadača nedovoľujú editoru automaticky spustiť operáciu vystrihnutia. Použite na to klávesnicu (Ctrl/Cmd+X).', + paste: 'Vložiť', + pasteArea: 'Miesto na vloženie', + pasteMsg: 'Použitím klávesnice (Ctrl/Cmd+V) vložte text do rámčeka a stlačte OK.', + securityMsg: 'Kvôli bezpečnostným nastaveniam vášho prehliadača editor nemôže pristupovať k schránke na kopírovanie priamo. Vložte to preto do tohto okna.', + title: 'Vložiť' +} ); diff --git a/ckeditor/plugins/clipboard/lang/sl.js b/ckeditor/plugins/clipboard/lang/sl.js new file mode 100644 index 0000000..d9955a2 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/sl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sl', { + copy: 'Kopiraj', + copyError: 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega kopiranja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+C).', + cut: 'Izreži', + cutError: 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega izrezovanja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+X).', + paste: 'Prilepi', + pasteArea: 'Prilepi območje', + pasteMsg: 'Prosimo, prilepite v sleči okvir s pomočjo tipkovnice (Ctrl/Cmd+V) in pritisnite V redu.', + 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.', + title: 'Prilepi' +} ); diff --git a/ckeditor/plugins/clipboard/lang/sq.js b/ckeditor/plugins/clipboard/lang/sq.js new file mode 100644 index 0000000..74b4068 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/sq.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sq', { + copy: 'Kopjo', + copyError: 'Të dhënat e sigurisë së shfletuesit tuaj nuk lejojnë që redaktuesi automatikisht të kryej veprimin e kopjimit. Ju lutemi shfrytëzoni tastierën për këtë veprim (Ctrl/Cmd+C).', + cut: 'Preje', + cutError: 'Të dhënat e sigurisë së shfletuesit tuaj nuk lejojnë që redaktuesi automatikisht të kryej veprimin e prerjes. Ju lutemi shfrytëzoni tastierën për këtë veprim (Ctrl/Cmd+X).', + paste: 'Hidhe', + pasteArea: 'Hapësira Hedhëse', + pasteMsg: 'Ju lutemi hidhni brenda kutizës në vijim duke shfrytëzuar tastierën (Ctrl/Cmd+V) dhe shtypni Mirë.', + securityMsg: 'Për shkak të dhënave të sigurisë së shfletuesit tuaj, redaktuesi nuk është në gjendje të i qaset drejtpërdrejtë të dhanve të tabelës suaj të punës. Ju duhet të hidhni atë përsëri në këtë dritare.', + title: 'Hidhe' +} ); diff --git a/ckeditor/plugins/clipboard/lang/sr-latn.js b/ckeditor/plugins/clipboard/lang/sr-latn.js new file mode 100644 index 0000000..fa91856 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/sr-latn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sr-latn', { + copy: 'Kopiraj', + 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).', + cut: 'Iseci', + 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).', + paste: 'Zalepi', + pasteArea: 'Prostor za lepljenje', + pasteMsg: 'Molimo Vas da zalepite unutar donje povrine koristeći tastaturnu prečicu (Ctrl/Cmd+V) i da pritisnete OK.', + securityMsg: 'Zbog sigurnosnih postavki vašeg pregledača, editor nije u mogućnosti da direktno pristupi podacima u klipbordu. Potrebno je da zalepite još jednom u ovom prozoru.', + title: 'Zalepi' +} ); diff --git a/ckeditor/plugins/clipboard/lang/sr.js b/ckeditor/plugins/clipboard/lang/sr.js new file mode 100644 index 0000000..51d6bac --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/sr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sr', { + copy: 'Копирај', + copyError: 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+C).', + cut: 'Исеци', + cutError: 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+X).', + paste: 'Залепи', + pasteArea: 'Залепи зону', + pasteMsg: 'Молимо Вас да залепите унутар доње површине користећи тастатурну пречицу (Ctrl/Cmd+V) и да притиснете OK.', + securityMsg: 'Због сигурносних подешавања претраживача, едитор не може да приступи оставу. Требате да га поново залепите у овом прозору.', + title: 'Залепи' +} ); diff --git a/ckeditor/plugins/clipboard/lang/sv.js b/ckeditor/plugins/clipboard/lang/sv.js new file mode 100644 index 0000000..5fa63ea --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/sv.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sv', { + copy: 'Kopiera', + copyError: 'Säkerhetsinställningar i Er webbläsare tillåter inte åtgärden kopiera. Använd (Ctrl/Cmd+C) istället.', + cut: 'Klipp ut', + cutError: 'Säkerhetsinställningar i Er webbläsare tillåter inte åtgärden klipp ut. Använd (Ctrl/Cmd+X) istället.', + paste: 'Klistra in', + pasteArea: 'Paste Area', + pasteMsg: 'Var god och klistra in Er text i rutan nedan genom att använda (Ctrl/Cmd+V) klicka sen på OK.', + 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.', + title: 'Klistra in' +} ); diff --git a/ckeditor/plugins/clipboard/lang/th.js b/ckeditor/plugins/clipboard/lang/th.js new file mode 100644 index 0000000..57944ce --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/th.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'th', { + copy: 'สำเนา', + copyError: 'ไม่สามารถสำเนาข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว C พร้อมกัน).', + cut: 'ตัด', + cutError: 'ไม่สามารถตัดข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว X พร้อมกัน).', + paste: 'วาง', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'กรุณาใช้คีย์บอร์ดเท่านั้น โดยกดปุ๋ม (Ctrl/Cmd และ V)พร้อมๆกัน และกด 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 + title: 'วาง' +} ); diff --git a/ckeditor/plugins/clipboard/lang/tr.js b/ckeditor/plugins/clipboard/lang/tr.js new file mode 100644 index 0000000..47c3780 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/tr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'tr', { + copy: 'Kopyala', + 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.', + cut: 'Kes', + 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.', + paste: 'Yapıştır', + pasteArea: 'Yapıştırma Alanı', + pasteMsg: 'Lütfen aşağıdaki kutunun içine yapıştırın. (Ctrl/Cmd+V) ve Tamam 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..', + title: 'Yapıştır' +} ); diff --git a/ckeditor/plugins/clipboard/lang/tt.js b/ckeditor/plugins/clipboard/lang/tt.js new file mode 100644 index 0000000..1f03a9e --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/tt.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'tt', { + copy: 'Күчермәләү', + copyError: 'Браузерыгызның иминлек үзлекләре автоматик рәвештә күчермәләү үтәүне тыя. Тиз төймәләрне (Ctrl/Cmd+C) кулланыгыз.', + cut: 'Кисеп алу', + cutError: 'Браузерыгызның иминлек үзлекләре автоматик рәвештә күчермәләү үтәүне тыя. Тиз төймәләрне (Ctrl/Cmd+C) кулланыгыз.', + paste: 'Өстәү', + pasteArea: 'Өстәү мәйданы', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) 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 + title: 'Өстәү' +} ); diff --git a/ckeditor/plugins/clipboard/lang/ug.js b/ckeditor/plugins/clipboard/lang/ug.js new file mode 100644 index 0000000..ae66f70 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/ug.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ug', { + copy: 'كۆچۈر', + copyError: 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كۆچۈر مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+C) ئارقىلىق تاماملاڭ', + cut: 'كەس', + cutError: 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كەس مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+X) ئارقىلىق تاماملاڭ', + paste: 'چاپلا', + pasteArea: 'چاپلاش دائىرىسى', + pasteMsg: 'ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+V) نى ئىشلىتىپ مەزمۇننى تۆۋەندىكى رامكىغا كۆچۈرۈڭ، ئاندىن جەزملەنى بېسىڭ', + securityMsg: 'توركۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى سەۋەبىدىن بۇ تەھرىرلىگۈچ چاپلاش تاختىسىدىكى مەزمۇننى بىۋاستە زىيارەت قىلالمايدۇ، بۇ كۆزنەكتە قايتا بىر قېتىم چاپلىشىڭىز كېرەك.', + title: 'چاپلا' +} ); diff --git a/ckeditor/plugins/clipboard/lang/uk.js b/ckeditor/plugins/clipboard/lang/uk.js new file mode 100644 index 0000000..281df7d --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/uk.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'uk', { + copy: 'Копіювати', + copyError: 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції копіювання. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+C).', + cut: 'Вирізати', + cutError: 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції вирізування. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+X)', + paste: 'Вставити', + pasteArea: 'Область вставки', + pasteMsg: 'Будь ласка, вставте інформацію з буфера обміну в цю область, користуючись комбінацією клавіш (Ctrl/Cmd+V), та натисніть OK.', + securityMsg: 'Редактор не може отримати прямий доступ до буферу обміну у зв\'язку з налаштуваннями Вашого браузера. Вам потрібно вставити інформацію в це вікно.', + title: 'Вставити' +} ); diff --git a/ckeditor/plugins/clipboard/lang/vi.js b/ckeditor/plugins/clipboard/lang/vi.js new file mode 100644 index 0000000..b2c9635 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/vi.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'vi', { + copy: 'Sao chép', + 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).', + cut: 'Cắt', + 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).', + paste: 'Dán', + pasteArea: 'Khu vực dán', + pasteMsg: 'Hãy dán nội dung vào trong khung bên dưới, sử dụng tổ hợp phím (Ctrl/Cmd+V) và nhấn vào nút Đồng ý.', + 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.', + title: 'Dán' +} ); diff --git a/ckeditor/plugins/clipboard/lang/zh-cn.js b/ckeditor/plugins/clipboard/lang/zh-cn.js new file mode 100644 index 0000000..95758a3 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/zh-cn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'zh-cn', { + copy: '复制', + copyError: '您的浏览器安全设置不允许编辑器自动执行复制操作,请使用键盘快捷键(Ctrl/Cmd+C)来完成。', + cut: '剪切', + cutError: '您的浏览器安全设置不允许编辑器自动执行剪切操作,请使用键盘快捷键(Ctrl/Cmd+X)来完成。', + paste: '粘贴', + pasteArea: '粘贴区域', + pasteMsg: '请使用键盘快捷键(Ctrl/Cmd+V)把内容粘贴到下面的方框里,再按 确定', + securityMsg: '因为您的浏览器的安全设置原因,本编辑器不能直接访问您的剪贴板内容,你需要在本窗口重新粘贴一次。', + title: '粘贴' +} ); diff --git a/ckeditor/plugins/clipboard/lang/zh.js b/ckeditor/plugins/clipboard/lang/zh.js new file mode 100644 index 0000000..efd78a1 --- /dev/null +++ b/ckeditor/plugins/clipboard/lang/zh.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'zh', { + copy: '複製', + copyError: '瀏覽器的安全性設定不允許編輯器自動執行複製動作。請使用鍵盤快捷鍵 (Ctrl/Cmd+C) 複製。', + cut: '剪下', + cutError: '瀏覽器的安全性設定不允許編輯器自動執行剪下動作。請使用鏐盤快捷鍵 (Ctrl/Cmd+X) 剪下。', + paste: '貼上', + pasteArea: '貼上區', + pasteMsg: '請使用鍵盤快捷鍵 (Ctrl/Cmd+V) 貼到下方區域中並按下「確定」。', + securityMsg: '因為瀏覽器的安全性設定,本編輯器無法直接存取您的剪貼簿資料,請您自行在本視窗進行貼上動作。', + title: '貼上' +} ); diff --git a/ckeditor/plugins/clipboard/plugin.js b/ckeditor/plugins/clipboard/plugin.js new file mode 100644 index 0000000..6e897b7 --- /dev/null +++ b/ckeditor/plugins/clipboard/plugin.js @@ -0,0 +1,2772 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @ignore + * File overview: Clipboard support. + */ + +// +// COPY & PASTE EXECUTION FLOWS: +// -- CTRL+C +// * if ( isCustomCopyCutSupported ) +// * dataTransfer.setData( 'text/html', getSelectedHtml ) +// * else +// * browser's default behavior +// -- CTRL+X +// * listen onKey (onkeydown) +// * fire 'saveSnapshot' on editor +// * if ( isCustomCopyCutSupported ) +// * dataTransfer.setData( 'text/html', getSelectedHtml ) +// * extractSelectedHtml // remove selected contents +// * else +// * browser's default behavior +// * deferred second 'saveSnapshot' event +// -- CTRL+V +// * listen onKey (onkeydown) +// * simulate 'beforepaste' for non-IEs on editable +// * listen 'onpaste' on editable ('onbeforepaste' for IE) +// * fire 'beforePaste' on editor +// * if ( !canceled && ( htmlInDataTransfer || !external paste) && dataTransfer is not empty ) getClipboardDataByPastebin +// * fire 'paste' on editor +// * !canceled && fire 'afterPaste' on editor +// -- Copy command +// * tryToCutCopy +// * execCommand +// * !success && notification +// -- Cut command +// * fixCut +// * tryToCutCopy +// * execCommand +// * !success && notification +// -- Paste command +// * fire 'paste' on editable ('beforepaste' for IE) +// * !canceled && execCommand 'paste' +// * !success && fire 'pasteDialog' on editor +// -- Paste from native context menu & menubar +// (Fx & Webkits are handled in 'paste' default listener. +// Opera cannot be handled at all because it doesn't fire any events +// Special treatment is needed for IE, for which is this part of doc) +// * listen 'onpaste' +// * cancel native event +// * fire 'beforePaste' on editor +// * if ( !canceled && ( htmlInDataTransfer || !external paste) && dataTransfer is not empty ) getClipboardDataByPastebin +// * execIECommand( 'paste' ) -> this fires another 'paste' event, so cancel it +// * fire 'paste' on editor +// * !canceled && fire 'afterPaste' on editor +// +// +// PASTE EVENT - PREPROCESSING: +// -- Possible dataValue types: auto, text, html. +// -- Possible dataValue contents: +// * text (possible \n\r) +// * htmlified text (text + br,div,p - no presentational markup & attrs - depends on browser) +// * html +// -- Possible flags: +// * htmlified - if true then content is a HTML even if no markup inside. This flag is set +// for content from editable pastebins, because they 'htmlify' pasted content. +// +// -- Type: auto: +// * content: htmlified text -> filter, unify text markup (brs, ps, divs), set type: text +// * content: html -> filter, set type: html +// -- Type: text: +// * content: htmlified text -> filter, unify text markup +// * content: html -> filter, strip presentational markup, unify text markup +// -- Type: html: +// * content: htmlified text -> filter, unify text markup +// * content: html -> filter +// +// -- Phases: +// * if dataValue is empty copy data from dataTransfer to dataValue (priority 1) +// * filtering (priorities 3-5) - e.g. pastefromword filters +// * content type sniffing (priority 6) +// * markup transformations for text (priority 6) +// +// DRAG & DROP EXECUTION FLOWS: +// -- Drag +// * save to the global object: +// * drag timestamp (with 'cke-' prefix), +// * selected html, +// * drag range, +// * editor instance. +// * put drag timestamp into event.dataTransfer.text +// -- Drop +// * if events text == saved timestamp && editor == saved editor +// internal drag & drop occurred +// * getRangeAtDropPosition +// * create bookmarks for drag and drop ranges starting from the end of the document +// * dragRange.deleteContents() +// * fire 'paste' with saved html and drop range +// * if events text == saved timestamp && editor != saved editor +// cross editor drag & drop occurred +// * getRangeAtDropPosition +// * fire 'paste' with saved html +// * dragRange.deleteContents() +// * FF: refreshCursor on afterPaste +// * if events text != saved timestamp +// drop form external source occurred +// * getRangeAtDropPosition +// * if event contains html data then fire 'paste' with html +// * else if event contains text data then fire 'paste' with encoded text +// * FF: refreshCursor on afterPaste + +'use strict'; + +( function() { + // Register the plugin. + CKEDITOR.plugins.add( 'clipboard', { + requires: 'dialog', + // jscs:disable maximumLineLength + lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'copy,copy-rtl,cut,cut-rtl,paste,paste-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + var filterType, + filtersFactory = filtersFactoryFactory(); + + if ( editor.config.forcePasteAsPlainText ) { + filterType = 'plain-text'; + } else if ( editor.config.pasteFilter ) { + filterType = editor.config.pasteFilter; + } + // On Webkit the pasteFilter defaults 'semantic-content' because pasted data is so terrible + // that it must be always filtered. + else if ( CKEDITOR.env.webkit && !( 'pasteFilter' in editor.config ) ) { + filterType = 'semantic-content'; + } + + editor.pasteFilter = filtersFactory.get( filterType ); + + initPasteClipboard( editor ); + initDragDrop( editor ); + + CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) ); + + // Convert image file (if present) to base64 string for Firefox. Do it as the first + // step as the conversion is asynchronous and should hold all further paste processing. + if ( CKEDITOR.env.gecko ) { + var supportedImageTypes = [ 'image/png', 'image/jpeg', 'image/gif' ], + latestId; + + editor.on( 'paste', function( evt ) { + var dataObj = evt.data, + data = dataObj.dataValue, + dataTransfer = dataObj.dataTransfer; + + // If data empty check for image content inside data transfer. #16705 + if ( !data && dataObj.method == 'paste' && dataTransfer && dataTransfer.getFilesCount() == 1 && latestId != dataTransfer.id ) { + var file = dataTransfer.getFile( 0 ); + + if ( CKEDITOR.tools.indexOf( supportedImageTypes, file.type ) != -1 ) { + var fileReader = new FileReader(); + + // Convert image file to img tag with base64 image. + fileReader.addEventListener( 'load', function() { + evt.data.dataValue = ''; + editor.fire( 'paste', evt.data ); + }, false ); + + // Proceed with normal flow if reading file was aborted. + fileReader.addEventListener( 'abort', function() { + editor.fire( 'paste', evt.data ); + }, false ); + + // Proceed with normal flow if reading file failed. + fileReader.addEventListener( 'error', function() { + editor.fire( 'paste', evt.data ); + }, false ); + + fileReader.readAsDataURL( file ); + + latestId = dataObj.dataTransfer.id; + + evt.stop(); + } + } + }, null, null, 1 ); + } + + editor.on( 'paste', function( evt ) { + // Init `dataTransfer` if `paste` event was fired without it, so it will be always available. + if ( !evt.data.dataTransfer ) { + evt.data.dataTransfer = new CKEDITOR.plugins.clipboard.dataTransfer(); + } + + // If dataValue is already set (manually or by paste bin), so do not override it. + if ( evt.data.dataValue ) { + return; + } + + var dataTransfer = evt.data.dataTransfer, + // IE support only text data and throws exception if we try to get html data. + // This html data object may also be empty if we drag content of the textarea. + value = dataTransfer.getData( 'text/html' ); + + if ( value ) { + evt.data.dataValue = value; + evt.data.type = 'html'; + } else { + // Try to get text data otherwise. + value = dataTransfer.getData( 'text/plain' ); + + if ( value ) { + evt.data.dataValue = editor.editable().transformPlainTextToHtml( value ); + evt.data.type = 'text'; + } + } + }, null, null, 1 ); + + editor.on( 'paste', function( evt ) { + var data = evt.data.dataValue, + blockElements = CKEDITOR.dtd.$block; + + // Filter webkit garbage. + if ( data.indexOf( 'Apple-' ) > -1 ) { + // Replace special webkit's   with simple space, because webkit + // produces them even for normal spaces. + data = data.replace( / <\/span>/gi, ' ' ); + + // Strip around white-spaces when not in forced 'html' content type. + // This spans are created only when pasting plain text into Webkit, + // but for safety reasons remove them always. + if ( evt.data.type != 'html' ) { + data = data.replace( /]*>([^<]*)<\/span>/gi, function( all, spaces ) { + // Replace tabs with 4 spaces like Fx does. + return spaces.replace( /\t/g, '    ' ); + } ); + } + + // This br is produced only when copying & pasting HTML content. + if ( data.indexOf( '
    ' ) > -1 ) { + evt.data.startsWithEOL = 1; + evt.data.preSniffing = 'html'; // Mark as not text. + data = data.replace( /
    /, '' ); + } + + // Remove all other classes. + data = data.replace( /(<[^>]+) class="Apple-[^"]*"/gi, '$1' ); + } + + // Strip editable that was copied from inside. (#9534) + if ( data.match( /^<[^<]+cke_(editable|contents)/i ) ) { + var tmp, + editable_wrapper, + wrapper = new CKEDITOR.dom.element( 'div' ); + + wrapper.setHtml( data ); + // Verify for sure and check for nested editor UI parts. (#9675) + while ( wrapper.getChildCount() == 1 && + ( tmp = wrapper.getFirst() ) && + tmp.type == CKEDITOR.NODE_ELEMENT && // Make sure first-child is element. + ( tmp.hasClass( 'cke_editable' ) || tmp.hasClass( 'cke_contents' ) ) ) { + wrapper = editable_wrapper = tmp; + } + + // If editable wrapper was found strip it and bogus
    (added on FF). + if ( editable_wrapper ) + data = editable_wrapper.getHtml().replace( /
    $/i, '' ); + } + + if ( CKEDITOR.env.ie ) { + //  

    ->

    (br.cke-pasted-remove will be removed later) + data = data.replace( /^ (?: |\r\n)?<(\w+)/g, function( match, elementName ) { + if ( elementName.toLowerCase() in blockElements ) { + evt.data.preSniffing = 'html'; // Mark as not a text. + return '<' + elementName; + } + return match; + } ); + } else if ( CKEDITOR.env.webkit ) { + //


    ->


    + // We don't mark br, because this situation can happen for htmlified text too. + data = data.replace( /<\/(\w+)>

    <\/div>$/, function( match, elementName ) { + if ( elementName in blockElements ) { + evt.data.endsWithEOL = 1; + return ''; + } + return match; + } ); + } else if ( CKEDITOR.env.gecko ) { + // Firefox adds bogus
    when user pasted text followed by space(s). + data = data.replace( /(\s)
    $/, '$1' ); + } + + evt.data.dataValue = data; + }, null, null, 3 ); + + editor.on( 'paste', function( evt ) { + var dataObj = evt.data, + type = dataObj.type, + data = dataObj.dataValue, + trueType, + // Default is 'html'. + defaultType = editor.config.clipboard_defaultContentType || 'html', + transferType = dataObj.dataTransfer.getTransferType( editor ); + + // If forced type is 'html' we don't need to know true data type. + if ( type == 'html' || dataObj.preSniffing == 'html' ) { + trueType = 'html'; + } else { + trueType = recogniseContentType( data ); + } + + // Unify text markup. + if ( trueType == 'htmlifiedtext' ) { + data = htmlifiedTextHtmlification( editor.config, data ); + } + + // Strip presentational markup & unify text markup. + // Forced plain text (dialog or forcePAPT). + // Note: we do not check dontFilter option in this case, because forcePAPT was implemented + // before pasteFilter and pasteFilter is automatically used on Webkit&Blink since 4.5, so + // forcePAPT should have priority as it had before 4.5. + if ( type == 'text' && trueType == 'html' ) { + data = filterContent( editor, data, filtersFactory.get( 'plain-text' ) ); + } + // External paste and pasteFilter exists and filtering isn't disabled. + else if ( transferType == CKEDITOR.DATA_TRANSFER_EXTERNAL && editor.pasteFilter && !dataObj.dontFilter ) { + data = filterContent( editor, data, editor.pasteFilter ); + } + + if ( dataObj.startsWithEOL ) { + data = '
    ' + data; + } + if ( dataObj.endsWithEOL ) { + data += '
    '; + } + + if ( type == 'auto' ) { + type = ( trueType == 'html' || defaultType == 'html' ) ? 'html' : 'text'; + } + + dataObj.type = type; + dataObj.dataValue = data; + delete dataObj.preSniffing; + delete dataObj.startsWithEOL; + delete dataObj.endsWithEOL; + }, null, null, 6 ); + + // Inserts processed data into the editor at the end of the + // events chain. + editor.on( 'paste', function( evt ) { + var data = evt.data; + + if ( data.dataValue ) { + editor.insertHtml( data.dataValue, data.type, data.range ); + + // Defer 'afterPaste' so all other listeners for 'paste' will be fired first. + // Fire afterPaste only if paste inserted some HTML. + setTimeout( function() { + editor.fire( 'afterPaste' ); + }, 0 ); + } + }, null, null, 1000 ); + + editor.on( 'pasteDialog', function( evt ) { + // TODO it's possible that this setTimeout is not needed any more, + // because of changes introduced in the same commit as this comment. + // Editor.getClipboardData adds listener to the dialog's events which are + // fired after a while (not like 'showDialog'). + setTimeout( function() { + // Open default paste dialog. + editor.openDialog( 'paste', evt.data ); + }, 0 ); + } ); + } + } ); + + function firePasteEvents( editor, data, withBeforePaste ) { + if ( !data.type ) { + data.type = 'auto'; + } + + if ( withBeforePaste ) { + // Fire 'beforePaste' event so clipboard flavor get customized + // by other plugins. + if ( editor.fire( 'beforePaste', data ) === false ) + return false; // Event canceled + } + + // Do not fire paste if there is no data (dataValue and dataTranfser are empty). + // This check should be done after firing 'beforePaste' because for native paste + // 'beforePaste' is by default fired even for empty clipboard. + if ( !data.dataValue && data.dataTransfer.isEmpty() ) { + return false; + } + + if ( !data.dataValue ) { + data.dataValue = ''; + } + + // Because of FF bug we need to use this hack, otherwise cursor is hidden + // or it is not possible to move it (#12420). + // Also, check that editor.toolbox exists, because the toolbar plugin might not be loaded (#13305). + if ( CKEDITOR.env.gecko && data.method == 'drop' && editor.toolbox ) { + editor.once( 'afterPaste', function() { + editor.toolbox.focus(); + } ); + } + + return editor.fire( 'paste', data ); + } + + function initPasteClipboard( editor ) { + var clipboard = CKEDITOR.plugins.clipboard, + preventBeforePasteEvent = 0, + preventPasteEvent = 0, + inReadOnly = 0; + + addListeners(); + addButtonsCommands(); + + /** + * Gets clipboard data by directly accessing the clipboard (IE only) or opening the paste dialog window. + * + * editor.getClipboardData( { title: 'Get my data' }, function( data ) { + * if ( data ) + * alert( data.type + ' ' + data.dataValue ); + * } ); + * + * @member CKEDITOR.editor + * @param {Object} options + * @param {String} [options.title] The title of the paste dialog window. + * @param {Function} callback A function that will be executed with `data.type` and `data.dataValue` + * or `null` if none of the capturing methods succeeded. + */ + editor.getClipboardData = function( options, callback ) { + var beforePasteNotCanceled = false, + dataType = 'auto', + dialogCommited = false; + + // Options are optional - args shift. + if ( !callback ) { + callback = options; + options = null; + } + + // Listen with maximum priority to handle content before everyone else. + // This callback will handle paste event that will be fired if direct + // access to the clipboard succeed in IE. + editor.on( 'paste', onPaste, null, null, 0 ); + + // Listen at the end of listeners chain to see if event wasn't canceled + // and to retrieve modified data.type. + editor.on( 'beforePaste', onBeforePaste, null, null, 1000 ); + + // getClipboardDataDirectly() will fire 'beforePaste' synchronously, so we can + // check if it was canceled and if any listener modified data.type. + + // If command didn't succeed (only IE allows to access clipboard and only if + // user agrees) open and handle paste dialog. + if ( getClipboardDataDirectly() === false ) { + // Direct access to the clipboard wasn't successful so remove listener. + editor.removeListener( 'paste', onPaste ); + + // If beforePaste was canceled do not open dialog. + // Add listeners only if dialog really opened. 'pasteDialog' can be canceled. + if ( beforePasteNotCanceled && editor.fire( 'pasteDialog', onDialogOpen ) ) { + editor.on( 'pasteDialogCommit', onDialogCommit ); + + // 'dialogHide' will be fired after 'pasteDialogCommit'. + editor.on( 'dialogHide', function( evt ) { + evt.removeListener(); + evt.data.removeListener( 'pasteDialogCommit', onDialogCommit ); + + // Because Opera has to wait a while in pasteDialog we have to wait here. + setTimeout( function() { + // Notify even if user canceled dialog (clicked 'cancel', ESC, etc). + if ( !dialogCommited ) + callback( null ); + }, 10 ); + } ); + } else { + callback( null ); + } + } + + function onPaste( evt ) { + evt.removeListener(); + evt.cancel(); + callback( evt.data ); + } + + function onBeforePaste( evt ) { + evt.removeListener(); + beforePasteNotCanceled = true; + dataType = evt.data.type; + } + + function onDialogCommit( evt ) { + evt.removeListener(); + // Cancel pasteDialogCommit so paste dialog won't automatically fire + // 'paste' evt by itself. + evt.cancel(); + dialogCommited = true; + callback( { + type: dataType, + dataValue: evt.data.dataValue, + dataTransfer: evt.data.dataTransfer, + method: 'paste' + } ); + } + + function onDialogOpen() { + this.customTitle = ( options && options.title ); + } + }; + + function addButtonsCommands() { + addButtonCommand( 'Cut', 'cut', createCutCopyCmd( 'cut' ), 10, 1 ); + addButtonCommand( 'Copy', 'copy', createCutCopyCmd( 'copy' ), 20, 4 ); + addButtonCommand( 'Paste', 'paste', createPasteCmd(), 30, 8 ); + + function addButtonCommand( buttonName, commandName, command, toolbarOrder, ctxMenuOrder ) { + var lang = editor.lang.clipboard[ commandName ]; + + editor.addCommand( commandName, command ); + editor.ui.addButton && editor.ui.addButton( buttonName, { + label: lang, + command: commandName, + toolbar: 'clipboard,' + toolbarOrder + } ); + + // If the "menu" plugin is loaded, register the menu item. + if ( editor.addMenuItems ) { + editor.addMenuItem( commandName, { + label: lang, + command: commandName, + group: 'clipboard', + order: ctxMenuOrder + } ); + } + } + } + + function addListeners() { + editor.on( 'key', onKey ); + editor.on( 'contentDom', addPasteListenersToEditable ); + + // 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(); + } ); + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) { + editor.contextMenu.addListener( function( element, selection ) { + inReadOnly = selection.getRanges()[ 0 ].checkReadOnly(); + return { + cut: stateFromNamedCommand( 'cut' ), + copy: stateFromNamedCommand( 'copy' ), + paste: stateFromNamedCommand( 'paste' ) + }; + } ); + } + } + + // Add events listeners to editable. + function addPasteListenersToEditable() { + var editable = editor.editable(); + + if ( CKEDITOR.plugins.clipboard.isCustomCopyCutSupported ) { + var initOnCopyCut = function( evt ) { + // If user tries to cut in read-only editor, we must prevent default action. (#13872) + if ( !editor.readOnly || evt.name != 'cut' ) { + clipboard.initPasteDataTransfer( evt, editor ); + } + evt.data.preventDefault(); + }; + + editable.on( 'copy', initOnCopyCut ); + editable.on( 'cut', initOnCopyCut ); + + // Delete content with the low priority so one can overwrite cut data. + editable.on( 'cut', function() { + // If user tries to cut in read-only editor, we must prevent default action. (#13872) + if ( !editor.readOnly ) { + editor.extractSelectedHtml(); + } + }, null, null, 999 ); + } + + // We'll be catching all pasted content in one line, regardless of whether + // it's introduced by a document command execution (e.g. toolbar buttons) or + // user paste behaviors (e.g. CTRL+V). + editable.on( clipboard.mainPasteEvent, function( evt ) { + if ( clipboard.mainPasteEvent == 'beforepaste' && preventBeforePasteEvent ) { + return; + } + + // If you've just asked yourself why preventPasteEventNow() is not here, but + // in listener for CTRL+V and exec method of 'paste' command + // you've asked the same question we did. + // + // THE ANSWER: + // + // First thing to notice - this answer makes sense only for IE, + // because other browsers don't listen for 'paste' event. + // + // What would happen if we move preventPasteEventNow() here? + // For: + // * CTRL+V - IE fires 'beforepaste', so we prevent 'paste' and pasteDataFromClipboard(). OK. + // * editor.execCommand( 'paste' ) - we fire 'beforepaste', so we prevent + // 'paste' and pasteDataFromClipboard() and doc.execCommand( 'Paste' ). OK. + // * native context menu - IE fires 'beforepaste', so we prevent 'paste', but unfortunately + // on IE we fail with pasteDataFromClipboard() here, because of... we don't know why, but + // we just fail, so... we paste nothing. FAIL. + // * native menu bar - the same as for native context menu. + // + // But don't you know any way to distinguish first two cases from last two? + // Only one - special flag set in CTRL+V handler and exec method of 'paste' + // command. And that's what we did using preventPasteEventNow(). + + pasteDataFromClipboard( evt ); + } ); + + // It's not possible to clearly handle all four paste methods (ctrl+v, native menu bar + // native context menu, editor's command) in one 'paste/beforepaste' event in IE. + // + // For ctrl+v & editor's command it's easy to handle pasting in 'beforepaste' listener, + // so we do this. For another two methods it's better to use 'paste' event. + // + // 'paste' is always being fired after 'beforepaste' (except of weird one on opening native + // context menu), so for two methods handled in 'beforepaste' we're canceling 'paste' + // using preventPasteEvent state. + // + // 'paste' event in IE is being fired before getClipboardDataByPastebin executes its callback. + // + // QUESTION: Why didn't you handle all 4 paste methods in handler for 'paste'? + // Wouldn't this just be simpler? + // ANSWER: Then we would have to evt.data.preventDefault() only for native + // context menu and menu bar pastes. The same with execIECommand(). + // That would force us to mark CTRL+V and editor's paste command with + // special flag, other than preventPasteEvent. But we still would have to + // have preventPasteEvent for the second event fired by execIECommand. + // Code would be longer and not cleaner. + if ( clipboard.mainPasteEvent == 'beforepaste' ) { + editable.on( 'paste', function( evt ) { + if ( preventPasteEvent ) { + return; + } + + // Cancel next 'paste' event fired by execIECommand( 'paste' ) + // at the end of this callback. + preventPasteEventNow(); + + // Prevent native paste. + evt.data.preventDefault(); + + pasteDataFromClipboard( evt ); + + // Force IE to paste content into pastebin so pasteDataFromClipboard will work. + if ( !execIECommand( 'paste' ) ) { + editor.openDialog( 'paste' ); + } + } ); + + // If mainPasteEvent is 'beforePaste' (IE before Edge), + // dismiss the (wrong) 'beforepaste' event fired on context/toolbar menu open. (#7953) + editable.on( 'contextmenu', preventBeforePasteEventNow, null, null, 0 ); + + editable.on( 'beforepaste', function( evt ) { + // Do not prevent event on CTRL+V and SHIFT+INS because it blocks paste (#11970). + if ( evt.data && !evt.data.$.ctrlKey && !evt.data.$.shiftKey ) + preventBeforePasteEventNow(); + }, null, null, 0 ); + } + + editable.on( 'beforecut', function() { + !preventBeforePasteEvent && fixCut( editor ); + } ); + + var mouseupTimeout; + + // Use editor.document instead of editable in non-IEs for observing mouseup + // since editable won't fire the event if selection process started within + // iframe and ended out of the editor (#9851). + editable.attachListener( CKEDITOR.env.ie ? editable : editor.document.getDocumentElement(), 'mouseup', function() { + mouseupTimeout = setTimeout( function() { + setToolbarStates(); + }, 0 ); + } ); + + // Make sure that deferred mouseup callback isn't executed after editor instance + // had been destroyed. This may happen when editor.destroy() is called in parallel + // with mouseup event (i.e. a button with onclick callback) (#10219). + editor.on( 'destroy', function() { + clearTimeout( mouseupTimeout ); + } ); + + editable.on( 'keyup', setToolbarStates ); + } + + // Create object representing Cut or Copy commands. + function createCutCopyCmd( type ) { + return { + type: type, + canUndo: type == 'cut', // We can't undo copy to clipboard. + startDisabled: true, + fakeKeystroke: type == 'cut' ? CKEDITOR.CTRL + 88 /*X*/ : CKEDITOR.CTRL + 67 /*C*/, + exec: function() { + // Attempts to execute the Cut and Copy operations. + function tryToCutCopy( type ) { + if ( CKEDITOR.env.ie ) + return execIECommand( type ); + + // non-IEs part + try { + // Other browsers throw an error if the command is disabled. + return editor.document.$.execCommand( type, false, null ); + } catch ( e ) { + return false; + } + } + + this.type == 'cut' && fixCut(); + + var success = tryToCutCopy( this.type ); + + if ( !success ) { + // Show cutError or copyError. + editor.showNotification( editor.lang.clipboard[ this.type + 'Error' ] ); // jshint ignore:line + } + + return success; + } + }; + } + + function createPasteCmd() { + return { + // Snapshots are done manually by editable.insertXXX methods. + canUndo: false, + async: true, + fakeKeystroke: CKEDITOR.CTRL + 86 /*V*/, + exec: function( editor, data ) { + var cmd = this, + fire = function( data, withBeforePaste ) { + data && firePasteEvents( editor, data, !!withBeforePaste ); + + editor.fire( 'afterCommandExec', { + name: 'paste', + command: cmd, + returnValue: !!data + } ); + }; + + // Check data precisely - don't open dialog on empty string. + if ( typeof data == 'string' ) + fire( { + dataValue: data, + method: 'paste', + dataTransfer: clipboard.initPasteDataTransfer() + }, 1 ); + else + editor.getClipboardData( fire ); + } + }; + } + + function preventPasteEventNow() { + preventPasteEvent = 1; + // For safety reason we should wait longer than 0/1ms. + // We don't know how long execution of quite complex getClipboardData will take + // and in for example 'paste' listener execCommand() (which fires 'paste') is called + // after getClipboardData finishes. + // Luckily, it's impossible to immediately fire another 'paste' event we want to handle, + // because we only handle there native context menu and menu bar. + setTimeout( function() { + preventPasteEvent = 0; + }, 100 ); + } + + function preventBeforePasteEventNow() { + preventBeforePasteEvent = 1; + setTimeout( function() { + preventBeforePasteEvent = 0; + }, 10 ); + } + + // Tries to execute any of the paste, cut or copy commands in IE. Returns a + // boolean indicating that the operation succeeded. + // @param {String} command *LOWER CASED* name of command ('paste', 'cut', 'copy'). + function execIECommand( command ) { + var doc = editor.document, + body = doc.getBody(), + enabled = false, + 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 ); + + // IE7: document.execCommand has problem to paste into positioned element. + if ( CKEDITOR.env.version > 7 ) { + doc.$.execCommand( command ); + } else { + doc.$.selection.createRange().execCommand( command ); + } + + body.removeListener( command, onExec ); + + return enabled; + } + + // Cutting off control type element in IE standards breaks the selection entirely. (#4881) + function fixCut() { + if ( !CKEDITOR.env.ie || CKEDITOR.env.quirks ) + return; + + var sel = editor.getSelection(), + control, range, dummy; + + if ( ( sel.getType() == CKEDITOR.SELECTION_ELEMENT ) && ( control = sel.getSelectedElement() ) ) { + range = sel.getRanges()[ 0 ]; + 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 ); + } + } + + // Allow to peek clipboard content by redirecting the + // pasting content into a temporary bin and grab the content of it. + function getClipboardDataByPastebin( evt, callback ) { + var doc = editor.document, + editable = editor.editable(), + cancel = function( evt ) { + evt.cancel(); + }, + blurListener; + + // Avoid recursions on 'paste' event or consequent paste too fast. (#5730) + if ( doc.getById( 'cke_pastebin' ) ) + return; + + var sel = editor.getSelection(); + var bms = sel.createBookmarks(); + + // #11384. On IE9+ we use native selectionchange (i.e. editor#selectionCheck) to cache the most + // recent selection which we then lock on editable blur. See selection.js for more info. + // selectionchange fired before getClipboardDataByPastebin() cached selection + // before creating bookmark (cached selection will be invalid, because bookmarks modified the DOM), + // so we need to fire selectionchange one more time, to store current seleciton. + // Selection will be locked when we focus pastebin. + if ( CKEDITOR.env.ie ) + sel.root.fire( 'selectionchange' ); + + // Create container to paste into. + // For rich content we prefer to use "body" since it holds + // the least possibility to be splitted by pasted content, while this may + // breaks the text selection on a frame-less editable, "div" would be + // the best one in that case. + // In another case on old IEs moving the selection into a "body" paste bin causes error panic. + // Body can't be also used for Opera which fills it with
    + // what is indistinguishable from pasted
    (copying
    in Opera isn't possible, + // but it can be copied from other browser). + var pastebin = new CKEDITOR.dom.element( + ( CKEDITOR.env.webkit || editable.is( 'body' ) ) && !CKEDITOR.env.ie ? 'body' : 'div', doc ); + + pastebin.setAttributes( { + id: 'cke_pastebin', + 'data-cke-temp': '1' + } ); + + var containerOffset = 0, + offsetParent, + win = doc.getWindow(); + + if ( CKEDITOR.env.webkit ) { + // It's better to paste close to the real paste destination, so inherited styles + // (which Webkits will try to compensate by styling span) differs less from the destination's one. + editable.append( pastebin ); + // Style pastebin like .cke_editable, to minimize differences between origin and destination. (#9754) + pastebin.addClass( 'cke_editable' ); + + // Compensate position of offsetParent. + if ( !editable.is( 'body' ) ) { + // We're not able to get offsetParent from pastebin (body element), so check whether + // its parent (editable) is positioned. + if ( editable.getComputedStyle( 'position' ) != 'static' ) + offsetParent = editable; + // And if not - safely get offsetParent from editable. + else + offsetParent = CKEDITOR.dom.element.get( editable.$.offsetParent ); + + containerOffset = offsetParent.getDocumentPosition().y; + } + } else { + // Opera and IE doesn't allow to append to html element. + editable.getAscendant( CKEDITOR.env.ie ? 'body' : 'html', 1 ).append( pastebin ); + } + + pastebin.setStyles( { + position: 'absolute', + // Position the bin at the top (+10 for safety) of viewport to avoid any subsequent document scroll. + top: ( win.getScrollPosition().y - containerOffset + 10 ) + 'px', + width: '1px', + // Caret has to fit in that height, otherwise browsers like Chrome & Opera will scroll window to show it. + // Set height equal to viewport's height - 20px (safety gaps), minimum 1px. + height: Math.max( 1, win.getViewPaneSize().height - 20 ) + 'px', + overflow: 'hidden', + // Reset styles that can mess up pastebin position. + margin: 0, + padding: 0 + } ); + + // Paste fails in Safari when the body tag has 'user-select: none'. (#12506) + if ( CKEDITOR.env.safari ) + pastebin.setStyles( CKEDITOR.tools.cssVendorPrefix( 'user-select', 'text' ) ); + + // Check if the paste bin now establishes new editing host. + var isEditingHost = pastebin.getParent().isReadOnly(); + + if ( isEditingHost ) { + // Hide the paste bin. + pastebin.setOpacity( 0 ); + // And make it editable. + pastebin.setAttribute( 'contenteditable', true ); + } + // Transparency is not enough since positioned non-editing host always shows + // resize handler, pull it off the screen instead. + else { + pastebin.setStyle( editor.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-10000px' ); + } + + editor.on( 'selectionChange', cancel, null, null, 0 ); + + // Webkit fill fire blur on editable when moving selection to + // pastebin (if body is used). Cancel it because it causes incorrect + // selection lock in case of inline editor (#10644). + // The same seems to apply to Firefox (#10787). + if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko ) + blurListener = editable.once( 'blur', cancel, null, null, -100 ); + + // Temporarily move selection to the pastebin. + isEditingHost && pastebin.focus(); + var range = new CKEDITOR.dom.range( pastebin ); + range.selectNodeContents( pastebin ); + var selPastebin = range.select(); + + // If non-native paste is executed, IE will open security alert and blur editable. + // Editable will then lock selection inside itself and after accepting security alert + // this selection will be restored. We overwrite stored selection, so it's restored + // in pastebin. (#9552) + if ( CKEDITOR.env.ie ) { + blurListener = editable.once( 'blur', function() { + editor.lockSelection( selPastebin ); + } ); + } + + var scrollTop = CKEDITOR.document.getWindow().getScrollPosition().y; + + // Wait a while and grab the pasted contents. + setTimeout( function() { + // Restore main window's scroll position which could have been changed + // by browser in cases described in #9771. + if ( CKEDITOR.env.webkit ) + CKEDITOR.document.getBody().$.scrollTop = scrollTop; + + // Blur will be fired only on non-native paste. In other case manually remove listener. + blurListener && blurListener.removeListener(); + + // Restore properly the document focus. (#8849) + if ( CKEDITOR.env.ie ) + editable.focus(); + + // IE7: selection must go before removing pastebin. (#8691) + sel.selectBookmarks( bms ); + pastebin.remove(); + + // 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; + if ( CKEDITOR.env.webkit && ( bogusSpan = pastebin.getFirst() ) && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ) + pastebin = bogusSpan; + + editor.removeListener( 'selectionChange', cancel ); + callback( pastebin.getHtml() ); + }, 0 ); + } + + // Try to get content directly on IE from clipboard, without native event + // being fired before. In other words - synthetically get clipboard data, if it's possible. + // mainPasteEvent will be fired, so if forced native paste: + // * worked, getClipboardDataByPastebin will grab it, + // * didn't work, dataValue and dataTransfer will be empty and editor#paste won't be fired. + // Clipboard data can be accessed directly only on IEs older than Edge. + // On other browsers we should fire beforePaste event and return false. + function getClipboardDataDirectly() { + if ( clipboard.mainPasteEvent == 'paste' ) { + // beforePaste should be fired when dialog open so it can be canceled. + editor.fire( 'beforePaste', { type: 'auto', method: 'paste' } ); + return false; + } + + // Prevent IE from pasting at the begining of the document. + editor.focus(); + + // Command will be handled by 'beforepaste', but as + // execIECommand( 'paste' ) will fire also 'paste' event + // we're canceling it. + preventPasteEventNow(); + + // #9247: Lock focus to prevent IE from hiding toolbar for inline editor. + var focusManager = editor.focusManager; + focusManager.lock(); + + if ( editor.editable().fire( clipboard.mainPasteEvent ) && !execIECommand( 'paste' ) ) { + focusManager.unlock(); + return false; + } + focusManager.unlock(); + + return true; + } + + // Listens for some clipboard related keystrokes, so they get customized. + // Needs to be bind to keydown event. + function onKey( event ) { + if ( editor.mode != 'wysiwyg' ) + return; + + switch ( event.data.keyCode ) { + // Paste + case CKEDITOR.CTRL + 86: // CTRL+V + case CKEDITOR.SHIFT + 45: // SHIFT+INS + var editable = editor.editable(); + + // Cancel 'paste' event because ctrl+v is for IE handled + // by 'beforepaste'. + preventPasteEventNow(); + + // Simulate 'beforepaste' event for all browsers using 'paste' as main event. + if ( clipboard.mainPasteEvent == 'paste' ) { + editable.fire( 'beforepaste' ); + } + + return; + + // Cut + case CKEDITOR.CTRL + 88: // CTRL+X + case CKEDITOR.SHIFT + 46: // SHIFT+DEL + // Save Undo snapshot. + editor.fire( 'saveSnapshot' ); // Save before cut + setTimeout( function() { + editor.fire( 'saveSnapshot' ); // Save after cut + }, 50 ); // OSX is slow (#11416). + } + } + + function pasteDataFromClipboard( evt ) { + // Default type is 'auto', but can be changed by beforePaste listeners. + var eventData = { + type: 'auto', + method: 'paste', + dataTransfer: clipboard.initPasteDataTransfer( evt ) + }; + + eventData.dataTransfer.cacheData(); + + // Fire 'beforePaste' event so clipboard flavor get customized by other plugins. + // If 'beforePaste' is canceled continue executing getClipboardDataByPastebin and then do nothing + // (do not fire 'paste', 'afterPaste' events). This way we can grab all - synthetically + // and natively pasted content and prevent its insertion into editor + // after canceling 'beforePaste' event. + var beforePasteNotCanceled = editor.fire( 'beforePaste', eventData ) !== false; + + // Do not use paste bin if the browser let us get HTML or files from dataTranfer. + if ( beforePasteNotCanceled && clipboard.canClipboardApiBeTrusted( eventData.dataTransfer, editor ) ) { + evt.data.preventDefault(); + setTimeout( function() { + firePasteEvents( editor, eventData ); + }, 0 ); + } else { + getClipboardDataByPastebin( evt, function( data ) { + // Clean up. + eventData.dataValue = data.replace( /]+data-cke-bookmark[^<]*?<\/span>/ig, '' ); + + // Fire remaining events (without beforePaste) + beforePasteNotCanceled && firePasteEvents( editor, eventData ); + } ); + } + } + + function setToolbarStates() { + if ( editor.mode != 'wysiwyg' ) + return; + + var pasteState = stateFromNamedCommand( 'paste' ); + + editor.getCommand( 'cut' ).setState( stateFromNamedCommand( 'cut' ) ); + editor.getCommand( 'copy' ).setState( stateFromNamedCommand( 'copy' ) ); + editor.getCommand( 'paste' ).setState( pasteState ); + editor.fire( 'pasteState', pasteState ); + } + + function stateFromNamedCommand( command ) { + if ( inReadOnly && command in { paste: 1, cut: 1 } ) + return CKEDITOR.TRISTATE_DISABLED; + + if ( command == 'paste' ) + return CKEDITOR.TRISTATE_OFF; + + // Cut, copy - check if the selection is not empty. + var sel = editor.getSelection(), + ranges = sel.getRanges(), + selectionIsEmpty = sel.getType() == CKEDITOR.SELECTION_NONE || ( ranges.length == 1 && ranges[ 0 ].collapsed ); + + return selectionIsEmpty ? CKEDITOR.TRISTATE_DISABLED : CKEDITOR.TRISTATE_OFF; + } + } + + // Returns: + // * 'htmlifiedtext' if content looks like transformed by browser from plain text. + // See clipboard/paste.html TCs for more info. + // * 'html' if it is not 'htmlifiedtext'. + function recogniseContentType( data ) { + if ( CKEDITOR.env.webkit ) { + // Plain text or (

    and text inside
    ). + if ( !data.match( /^[^<]*$/g ) && !data.match( /^(
    <\/div>|
    [^<]*<\/div>)*$/gi ) ) + return 'html'; + } else if ( CKEDITOR.env.ie ) { + // Text and
    or ( text and
    in

    - paragraphs can be separated by new \r\n ). + if ( !data.match( /^([^<]|)*$/gi ) && !data.match( /^(

    ([^<]|)*<\/p>|(\r\n))*$/gi ) ) + return 'html'; + } else if ( CKEDITOR.env.gecko ) { + // Text or
    . + if ( !data.match( /^([^<]|)*$/gi ) ) + return 'html'; + } else { + return 'html'; + } + + return 'htmlifiedtext'; + } + + // This function transforms what browsers produce when + // pasting plain text into editable element (see clipboard/paste.html TCs + // for more info) into correct HTML (similar to that produced by text2Html). + function htmlifiedTextHtmlification( config, data ) { + function repeatParagraphs( repeats ) { + // Repeat blocks floor((n+1)/2) times. + // Even number of repeats - add
    at the beginning of last

    . + return CKEDITOR.tools.repeat( '

    ', ~~( repeats / 2 ) ) + ( repeats % 2 == 1 ? '
    ' : '' ); + } + + // Replace adjacent white-spaces (EOLs too - Fx sometimes keeps them) with one space. + data = data.replace( /\s+/g, ' ' ) + // Remove spaces from between tags. + .replace( /> +<' ) + // Normalize XHTML syntax and upper cased
    tags. + .replace( /
    /gi, '
    ' ); + + // IE - lower cased tags. + data = data.replace( /<\/?[A-Z]+>/g, function( match ) { + return match.toLowerCase(); + } ); + + // Don't touch single lines (no ) - nothing to do here. + if ( data.match( /^[^<]$/ ) ) + return data; + + // Webkit. + if ( CKEDITOR.env.webkit && data.indexOf( '

    ' ) > -1 ) { + // One line break at the beginning - insert
    + data = data.replace( /^(
    (
    |)<\/div>)(?!$|(
    (
    |)<\/div>))/g, '
    ' ) + // Two or more - reduce number of new lines by one. + .replace( /^(
    (
    |)<\/div>){2}(?!$)/g, '
    ' ); + + // Two line breaks create one paragraph in Webkit. + if ( data.match( /
    (
    |)<\/div>/ ) ) { + data = '

    ' + data.replace( /(

    (
    |)<\/div>)+/g, function( match ) { + return repeatParagraphs( match.split( '
    ' ).length + 1 ); + } ) + '

    '; + } + + // One line break create br. + data = data.replace( /<\/div>
    /g, '
    ' ); + + // Remove remaining divs. + data = data.replace( /<\/?div>/g, '' ); + } + + // Opera and Firefox and enterMode != BR. + if ( CKEDITOR.env.gecko && config.enterMode != CKEDITOR.ENTER_BR ) { + // Remove bogus
    - Fx generates two for one line break. + // For two line breaks it still produces two , but it's better to ignore this case than the first one. + if ( CKEDITOR.env.gecko ) + data = data.replace( /^

    $/, '
    ' ); + + // This line satisfy edge case when for Opera we have two line breaks + //data = data.replace( /) + + if ( data.indexOf( '

    ' ) > -1 ) { + // Two line breaks create one paragraph, three - 2, four - 3, etc. + data = '

    ' + data.replace( /(
    ){2,}/g, function( match ) { + return repeatParagraphs( match.length / 4 ); + } ) + '

    '; + } + } + + return switchEnterMode( config, data ); + } + + function filtersFactoryFactory() { + var filters = {}; + + function setUpTags() { + var tags = {}; + + for ( var tag in CKEDITOR.dtd ) { + if ( tag.charAt( 0 ) != '$' && tag != 'div' && tag != 'span' ) { + tags[ tag ] = 1; + } + } + + return tags; + } + + function createSemanticContentFilter() { + var filter = new CKEDITOR.filter(); + + filter.allow( { + $1: { + elements: setUpTags(), + attributes: true, + styles: false, + classes: false + } + } ); + + return filter; + } + + return { + get: function( type ) { + if ( type == 'plain-text' ) { + // Does this look confusing to you? Did we forget about enter mode? + // It is a trick that let's us creating one filter for edidtor, regardless of its + // activeEnterMode (which as the name indicates can change during runtime). + // + // How does it work? + // The active enter mode is passed to the filter.applyTo method. + // The filter first marks all elements except
    as disallowed and then tries to remove + // them. However, it cannot remove e.g. a

    element completely, because it's a basic structural element, + // so it tries to replace it with an element created based on the active enter mode, eventually doing nothing. + // + // Now you can sleep well. + return filters.plainText || ( filters.plainText = new CKEDITOR.filter( 'br' ) ); + } else if ( type == 'semantic-content' ) { + return filters.semanticContent || ( filters.semanticContent = createSemanticContentFilter() ); + } else if ( type ) { + // Create filter based on rules (string or object). + return new CKEDITOR.filter( type ); + } + + return null; + } + }; + } + + function filterContent( editor, data, filter ) { + var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data ), + writer = new CKEDITOR.htmlParser.basicWriter(); + + filter.applyTo( fragment, true, false, editor.activeEnterMode ); + fragment.writeHtml( writer ); + + return writer.getHtml(); + } + + function switchEnterMode( config, data ) { + if ( config.enterMode == CKEDITOR.ENTER_BR ) { + data = data.replace( /(<\/p>

    )+/g, function( match ) { + return CKEDITOR.tools.repeat( '
    ', match.length / 7 * 2 ); + } ).replace( /<\/?p>/g, '' ); + } else if ( config.enterMode == CKEDITOR.ENTER_DIV ) { + data = data.replace( /<(\/)?p>/g, '<$1div>' ); + } + + return data; + } + + function preventDefaultSetDropEffectToNone( evt ) { + evt.data.preventDefault(); + evt.data.$.dataTransfer.dropEffect = 'none'; + } + + function initDragDrop( editor ) { + var clipboard = CKEDITOR.plugins.clipboard; + + editor.on( 'contentDom', function() { + var editable = editor.editable(), + dropTarget = CKEDITOR.plugins.clipboard.getDropTarget( editor ), + top = editor.ui.space( 'top' ), + bottom = editor.ui.space( 'bottom' ); + + // -------------- DRAGOVER TOP & BOTTOM -------------- + + // Not allowing dragging on toolbar and bottom (#12613). + clipboard.preventDefaultDropOnElement( top ); + clipboard.preventDefaultDropOnElement( bottom ); + + // -------------- DRAGSTART -------------- + // Listed on dragstart to mark internal and cross-editor drag & drop + // and save range and selected HTML. + + editable.attachListener( dropTarget, 'dragstart', fireDragEvent ); + + // Make sure to reset data transfer (in case dragend was not called or was canceled). + editable.attachListener( editor, 'dragstart', clipboard.resetDragDataTransfer, clipboard, null, 1 ); + + // Create a dataTransfer object and save it globally. + editable.attachListener( editor, 'dragstart', function( evt ) { + clipboard.initDragDataTransfer( evt, editor ); + }, null, null, 2 ); + + editable.attachListener( editor, 'dragstart', function() { + // Save drag range globally for cross editor D&D. + var dragRange = clipboard.dragRange = editor.getSelection().getRanges()[ 0 ]; + + // Store number of children, so we can later tell if any text node was split on drop. (#13011, #13447) + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 10 ) { + clipboard.dragStartContainerChildCount = dragRange ? getContainerChildCount( dragRange.startContainer ) : null; + clipboard.dragEndContainerChildCount = dragRange ? getContainerChildCount( dragRange.endContainer ) : null; + } + }, null, null, 100 ); + + // -------------- DRAGEND -------------- + // Clean up on dragend. + + editable.attachListener( dropTarget, 'dragend', fireDragEvent ); + + // Init data transfer if someone wants to use it in dragend. + editable.attachListener( editor, 'dragend', clipboard.initDragDataTransfer, clipboard, null, 1 ); + + // When drag & drop is done we need to reset dataTransfer so the future + // external drop will be not recognize as internal. + editable.attachListener( editor, 'dragend', clipboard.resetDragDataTransfer, clipboard, null, 100 ); + + // -------------- DRAGOVER -------------- + // We need to call preventDefault on dragover because otherwise if + // we drop image it will overwrite document. + + editable.attachListener( dropTarget, 'dragover', function( evt ) { + var target = evt.data.getTarget(); + + // Prevent reloading page when dragging image on empty document (#12619). + if ( target && target.is && target.is( 'html' ) ) { + evt.data.preventDefault(); + return; + } + + // If we do not prevent default dragover on IE the file path + // will be loaded and we will lose content. On the other hand + // if we prevent it the cursor will not we shown, so we prevent + // dragover only on IE, on versions which support file API and only + // if the event contains files. + if ( CKEDITOR.env.ie && + CKEDITOR.plugins.clipboard.isFileApiSupported && + evt.data.$.dataTransfer.types.contains( 'Files' ) ) { + evt.data.preventDefault(); + } + } ); + + // -------------- DROP -------------- + + editable.attachListener( dropTarget, 'drop', function( evt ) { + // Do nothing if event was already prevented. (#13879) + if ( evt.data.$.defaultPrevented ) { + return; + } + + // Cancel native drop. + evt.data.preventDefault(); + + var target = evt.data.getTarget(), + readOnly = target.isReadOnly(); + + // Do nothing if drop on non editable element (#13015). + // The tag isn't editable (body is), but we want to allow drop on it + // (so it is possible to drop below editor contents). + if ( readOnly && !( target.type == CKEDITOR.NODE_ELEMENT && target.is( 'html' ) ) ) { + return; + } + + // Getting drop position is one of the most complex parts. + var dropRange = clipboard.getRangeAtDropPosition( evt, editor ), + dragRange = clipboard.dragRange; + + // Do nothing if it was not possible to get drop range. + if ( !dropRange ) { + return; + } + + // Fire drop. + fireDragEvent( evt, dragRange, dropRange ); + }, null, null, 9999 ); + + // Create dataTransfer or get it, if it was created before. + editable.attachListener( editor, 'drop', clipboard.initDragDataTransfer, clipboard, null, 1 ); + + // Execute drop action, fire paste. + editable.attachListener( editor, 'drop', function( evt ) { + var data = evt.data; + + if ( !data ) { + return; + } + + // Let user modify drag and drop range. + var dropRange = data.dropRange, + dragRange = data.dragRange, + dataTransfer = data.dataTransfer; + + if ( dataTransfer.getTransferType( editor ) == CKEDITOR.DATA_TRANSFER_INTERNAL ) { + // Execute drop with a timeout because otherwise selection, after drop, + // on IE is in the drag position, instead of drop position. + setTimeout( function() { + clipboard.internalDrop( dragRange, dropRange, dataTransfer, editor ); + }, 0 ); + } else if ( dataTransfer.getTransferType( editor ) == CKEDITOR.DATA_TRANSFER_CROSS_EDITORS ) { + crossEditorDrop( dragRange, dropRange, dataTransfer ); + } else { + externalDrop( dropRange, dataTransfer ); + } + }, null, null, 9999 ); + + // Cross editor drag and drop (drag in one Editor and drop in the other). + function crossEditorDrop( dragRange, dropRange, dataTransfer ) { + // Paste event should be fired before delete contents because otherwise + // Chrome have a problem with drop range (Chrome split the drop + // range container so the offset is bigger then container length). + dropRange.select(); + firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop' }, 1 ); + + // Remove dragged content and make a snapshot. + dataTransfer.sourceEditor.fire( 'saveSnapshot' ); + + dataTransfer.sourceEditor.editable().extractHtmlFromRange( dragRange ); + + // Make some selection before saving snapshot, otherwise error will be thrown, because + // there will be no valid selection after content is removed. + dataTransfer.sourceEditor.getSelection().selectRanges( [ dragRange ] ); + dataTransfer.sourceEditor.fire( 'saveSnapshot' ); + } + + // Drop from external source. + function externalDrop( dropRange, dataTransfer ) { + // Paste content into the drop position. + dropRange.select(); + + firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop' }, 1 ); + + // Usually we reset DataTranfer on dragend, + // but dragend is called on the same element as dragstart + // so it will not be called on on external drop. + clipboard.resetDragDataTransfer(); + } + + // Fire drag/drop events (dragstart, dragend, drop). + function fireDragEvent( evt, dragRange, dropRange ) { + var eventData = { + $: evt.data.$, + target: evt.data.getTarget() + }; + + if ( dragRange ) { + eventData.dragRange = dragRange; + } + if ( dropRange ) { + eventData.dropRange = dropRange; + } + + if ( editor.fire( evt.name, eventData ) === false ) { + evt.data.preventDefault(); + } + } + + function getContainerChildCount( container ) { + if ( container.type != CKEDITOR.NODE_ELEMENT ) { + container = container.getParent(); + } + + return container.getChildCount(); + } + } ); + } + + /** + * @singleton + * @class CKEDITOR.plugins.clipboard + */ + CKEDITOR.plugins.clipboard = { + /** + * True if the environment allows to set data on copy or cut manually. This value is false in IE, because this browser + * shows the security dialog window when the script tries to set clipboard data and on iOS, because custom data is + * not saved to clipboard there. + * + * @since 4.5 + * @readonly + * @property {Boolean} + */ + isCustomCopyCutSupported: !CKEDITOR.env.ie && !CKEDITOR.env.iOS, + + /** + * True if the environment supports MIME types and custom data types in dataTransfer/cliboardData getData/setData methods. + * + * @since 4.5 + * @readonly + * @property {Boolean} + */ + isCustomDataTypesSupported: !CKEDITOR.env.ie, + + /** + * True if the environment supports File API. + * + * @since 4.5 + * @readonly + * @property {Boolean} + */ + isFileApiSupported: !CKEDITOR.env.ie || CKEDITOR.env.version > 9, + + /** + * Main native paste event editable should listen to. + * + * **Note:** Safari does not like the {@link CKEDITOR.editor#beforePaste} event — it sometimes does not + * handle Ctrl+C properly. This is probably caused by some race condition between events. + * Chrome, Firefox and Edge work well with both events, so it is better to use {@link CKEDITOR.editor#paste} + * which will handle pasting from e.g. browsers' menu bars. + * IE7/8 does not like the {@link CKEDITOR.editor#paste} event for which it is throwing random errors. + * + * @since 4.5 + * @readonly + * @property {String} + */ + mainPasteEvent: ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) ? 'beforepaste' : 'paste', + + /** + * Returns `true` if it is expected that a browser provides HTML data through the Clipboard API. + * If not, this method returns `false` and as a result CKEditor will use the paste bin. Read more in + * the [Clipboard Integration](http://docs.ckeditor.com/#!/guide/dev_clipboard-section-clipboard-api) guide. + * + * @since 4.5.2 + * @returns {Boolean} + */ + canClipboardApiBeTrusted: function( dataTransfer, editor ) { + // If it's an internal or cross-editor data transfer, then it means that custom cut/copy/paste support works + // and that the data were put manually on the data transfer so we can be sure that it's available. + if ( dataTransfer.getTransferType( editor ) != CKEDITOR.DATA_TRANSFER_EXTERNAL ) { + return true; + } + + // In Chrome we can trust Clipboard API, with the exception of Chrome on Android (in both - mobile and desktop modes), where + // clipboard API is not available so we need to check it (#13187). + if ( CKEDITOR.env.chrome && !dataTransfer.isEmpty() ) { + return true; + } + + // Because of a Firefox bug HTML data are not available in some cases (e.g. paste from Word), in such cases we + // need to use the pastebin (#13528, https://bugzilla.mozilla.org/show_bug.cgi?id=1183686). + if ( CKEDITOR.env.gecko && ( dataTransfer.getData( 'text/html' ) || dataTransfer.getFilesCount() ) ) { + return true; + } + + // In Safari and IE HTML data is not available though the Clipboard API. + // In Edge things are a bit messy at the moment - + // https://connect.microsoft.com/IE/feedback/details/1572456/edge-clipboard-api-text-html-content-messed-up-in-event-clipboarddata + // It is safer to use the paste bin in unknown cases. + return false; + }, + + /** + * Returns the element that should be used as the target for the drop event. + * + * @since 4.5 + * @param {CKEDITOR.editor} editor The editor instance. + * @returns {CKEDITOR.dom.domObject} the element that should be used as the target for the drop event. + */ + getDropTarget: function( editor ) { + var editable = editor.editable(); + + // #11123 Firefox needs to listen on document, because otherwise event won't be fired. + // #11086 IE8 cannot listen on document. + if ( ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) || editable.isInline() ) { + return editable; + } else { + return editor.document; + } + }, + + /** + * IE 8 & 9 split text node on drop so the first node contains the + * text before the drop position and the second contains the rest. If you + * drag the content from the same node you will be not be able to get + * it (the range becomes invalid), so you need to join them back. + * + * Note that the first node in IE 8 & 9 is the original node object + * but with shortened content. + * + * Before: + * --- Text Node A ---------------------------------- + * /\ + * Drag position + * + * After (IE 8 & 9): + * --- Text Node A ----- --- Text Node B ----------- + * /\ /\ + * Drop position Drag position + * (invalid) + * + * After (other browsers): + * --- Text Node A ---------------------------------- + * /\ /\ + * Drop position Drag position + * + * **Note:** This function is in the public scope for tests usage only. + * + * @since 4.5 + * @private + * @param {CKEDITOR.dom.range} dragRange The drag range. + * @param {CKEDITOR.dom.range} dropRange The drop range. + * @param {Number} preDragStartContainerChildCount The number of children of the drag range start container before the drop. + * @param {Number} preDragEndContainerChildCount The number of children of the drag range end container before the drop. + */ + fixSplitNodesAfterDrop: function( dragRange, dropRange, preDragStartContainerChildCount, preDragEndContainerChildCount ) { + var dropContainer = dropRange.startContainer; + + if ( + typeof preDragEndContainerChildCount != 'number' || + typeof preDragStartContainerChildCount != 'number' + ) { + return; + } + + // We are only concerned about ranges anchored in elements. + if ( dropContainer.type != CKEDITOR.NODE_ELEMENT ) { + return; + } + + if ( handleContainer( dragRange.startContainer, dropContainer, preDragStartContainerChildCount ) ) { + return; + } + + if ( handleContainer( dragRange.endContainer, dropContainer, preDragEndContainerChildCount ) ) { + return; + } + + function handleContainer( dragContainer, dropContainer, preChildCount ) { + var dragElement = dragContainer; + if ( dragElement.type == CKEDITOR.NODE_TEXT ) { + dragElement = dragContainer.getParent(); + } + + if ( dragElement.equals( dropContainer ) && preChildCount != dropContainer.getChildCount() ) { + applyFix( dropRange ); + return true; + } + } + + function applyFix( dropRange ) { + var nodeBefore = dropRange.startContainer.getChild( dropRange.startOffset - 1 ), + nodeAfter = dropRange.startContainer.getChild( dropRange.startOffset ); + + if ( + nodeBefore && nodeBefore.type == CKEDITOR.NODE_TEXT && + nodeAfter && nodeAfter.type == CKEDITOR.NODE_TEXT + ) { + var offset = nodeBefore.getLength(); + + nodeBefore.setText( nodeBefore.getText() + nodeAfter.getText() ); + nodeAfter.remove(); + + dropRange.setStart( nodeBefore, offset ); + dropRange.collapse( true ); + } + } + }, + + /** + * Checks whether turning the drag range into bookmarks will invalidate the drop range. + * This usually happens when the drop range shares the container with the drag range and is + * located after the drag range, but there are countless edge cases. + * + * This function is stricly related to {@link #internalDrop} which toggles + * order in which it creates bookmarks for both ranges based on a value returned + * by this method. In some cases this method returns a value which is not necessarily + * true in terms of what it was meant to check, but it is convenient, because + * we know how it is interpreted in {@link #internalDrop}, so the correct + * behavior of the entire algorithm is assured. + * + * **Note:** This function is in the public scope for tests usage only. + * + * @since 4.5 + * @private + * @param {CKEDITOR.dom.range} dragRange The first range to compare. + * @param {CKEDITOR.dom.range} dropRange The second range to compare. + * @returns {Boolean} `true` if the first range is before the second range. + */ + isDropRangeAffectedByDragRange: function( dragRange, dropRange ) { + var dropContainer = dropRange.startContainer, + dropOffset = dropRange.endOffset; + + // Both containers are the same and drop offset is at the same position or later. + // " A L] A " " M A " + // ^ ^ + if ( dragRange.endContainer.equals( dropContainer ) && dragRange.endOffset <= dropOffset ) { + return true; + } + + // Bookmark for drag start container will mess up with offsets. + // " O [L A " " M A " + // ^ ^ + if ( + dragRange.startContainer.getParent().equals( dropContainer ) && + dragRange.startContainer.getIndex() < dropOffset + ) { + return true; + } + + // Bookmark for drag end container will mess up with offsets. + // " O] L A " " M A " + // ^ ^ + if ( + dragRange.endContainer.getParent().equals( dropContainer ) && + dragRange.endContainer.getIndex() < dropOffset + ) { + return true; + } + + return false; + }, + + /** + * Internal drag and drop (drag and drop in the same editor instance). + * + * **Note:** This function is in the public scope for tests usage only. + * + * @since 4.5 + * @private + * @param {CKEDITOR.dom.range} dragRange The first range to compare. + * @param {CKEDITOR.dom.range} dropRange The second range to compare. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} dataTransfer + * @param {CKEDITOR.editor} editor + */ + internalDrop: function( dragRange, dropRange, dataTransfer, editor ) { + var clipboard = CKEDITOR.plugins.clipboard, + editable = editor.editable(), + dragBookmark, dropBookmark, isDropRangeAffected; + + // Save and lock snapshot so there will be only + // one snapshot for both remove and insert content. + editor.fire( 'saveSnapshot' ); + editor.fire( 'lockSnapshot', { dontUpdate: 1 } ); + + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 10 ) { + this.fixSplitNodesAfterDrop( + dragRange, + dropRange, + clipboard.dragStartContainerChildCount, + clipboard.dragEndContainerChildCount + ); + } + + // Because we manipulate multiple ranges we need to do it carefully, + // changing one range (event creating a bookmark) may make other invalid. + // We need to change ranges into bookmarks so we can manipulate them easily in the future. + // We can change the range which is later in the text before we change the preceding range. + // We call isDropRangeAffectedByDragRange to test the order of ranges. + isDropRangeAffected = this.isDropRangeAffectedByDragRange( dragRange, dropRange ); + if ( !isDropRangeAffected ) { + dragBookmark = dragRange.createBookmark( false ); + } + dropBookmark = dropRange.clone().createBookmark( false ); + if ( isDropRangeAffected ) { + dragBookmark = dragRange.createBookmark( false ); + } + + // Check if drop range is inside range. + // This is an edge case when we drop something on editable's margin/padding. + // That space is not treated as a part of the range we drag, so it is possible to drop there. + // When we drop, browser tries to find closest drop position and it finds it inside drag range. (#13453) + var startNode = dragBookmark.startNode, + endNode = dragBookmark.endNode, + dropNode = dropBookmark.startNode, + dropInsideDragRange = + // Must check endNode because dragRange could be collapsed in some edge cases (simulated DnD). + endNode && + ( startNode.getPosition( dropNode ) & CKEDITOR.POSITION_PRECEDING ) && + ( endNode.getPosition( dropNode ) & CKEDITOR.POSITION_FOLLOWING ); + + // If the drop range happens to be inside drag range change it's position to the beginning of the drag range. + if ( dropInsideDragRange ) { + // We only change position of bookmark span that is connected with dropBookmark. + // dropRange will be overwritten and set to the dropBookmark later. + dropNode.insertBefore( startNode ); + } + + // No we can safely delete content for the drag range... + dragRange = editor.createRange(); + dragRange.moveToBookmark( dragBookmark ); + editable.extractHtmlFromRange( dragRange, 1 ); + + // ...and paste content into the drop position. + dropRange = editor.createRange(); + dropRange.moveToBookmark( dropBookmark ); + + // We do not select drop range, because of may be in the place we can not set the selection + // (e.g. between blocks, in case of block widget D&D). We put range to the paste event instead. + firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop', range: dropRange }, 1 ); + + editor.fire( 'unlockSnapshot' ); + }, + + /** + * Gets the range from the `drop` event. + * + * @since 4.5 + * @param {Object} domEvent A native DOM drop event object. + * @param {CKEDITOR.editor} editor The source editor instance. + * @returns {CKEDITOR.dom.range} range at drop position. + */ + getRangeAtDropPosition: function( dropEvt, editor ) { + var $evt = dropEvt.data.$, + x = $evt.clientX, + y = $evt.clientY, + $range, + defaultRange = editor.getSelection( true ).getRanges()[ 0 ], + range = editor.createRange(); + + // Make testing possible. + if ( dropEvt.data.testRange ) + return dropEvt.data.testRange; + + // Webkits. + if ( document.caretRangeFromPoint ) { + $range = editor.document.$.caretRangeFromPoint( x, y ); + range.setStart( CKEDITOR.dom.node( $range.startContainer ), $range.startOffset ); + range.collapse( true ); + } + // FF. + else if ( $evt.rangeParent ) { + range.setStart( CKEDITOR.dom.node( $evt.rangeParent ), $evt.rangeOffset ); + range.collapse( true ); + } + // IEs 9+. + // We check if editable is focused to make sure that it's an internal DnD. External DnD must use the second + // mechanism because of http://dev.ckeditor.com/ticket/13472#comment:6. + else if ( CKEDITOR.env.ie && CKEDITOR.env.version > 8 && defaultRange && editor.editable().hasFocus ) { + // On IE 9+ range by default is where we expected it. + // defaultRange may be undefined if dragover was canceled (file drop). + return defaultRange; + } + // IE 8 and all IEs if !defaultRange or external DnD. + else if ( document.body.createTextRange ) { + // To use this method we need a focus (which may be somewhere else in case of external drop). + editor.focus(); + + $range = editor.document.getBody().$.createTextRange(); + try { + var sucess = false; + + // If user drop between text line IEs moveToPoint throws exception: + // + // Lorem ipsum pulvinar purus et euismod + // + // dolor sit amet,| consectetur adipiscing + // * + // vestibulum tincidunt augue eget tempus. + // + // * - drop position + // | - expected cursor position + // + // So we try to call moveToPoint with +-1px up to +-20px above or + // below original drop position to find nearest good drop position. + for ( var i = 0; i < 20 && !sucess; i++ ) { + if ( !sucess ) { + try { + $range.moveToPoint( x, y - i ); + sucess = true; + } catch ( err ) { + } + } + if ( !sucess ) { + try { + $range.moveToPoint( x, y + i ); + sucess = true; + } catch ( err ) { + } + } + } + + if ( sucess ) { + var id = 'cke-temp-' + ( new Date() ).getTime(); + $range.pasteHTML( '\u200b' ); + + var span = editor.document.getById( id ); + range.moveToPosition( span, CKEDITOR.POSITION_BEFORE_START ); + span.remove(); + } else { + // If the fist method does not succeed we might be next to + // the short element (like header): + // + // Lorem ipsum pulvinar purus et euismod. + // + // + // SOME HEADER| * + // + // + // vestibulum tincidunt augue eget tempus. + // + // * - drop position + // | - expected cursor position + // + // In such situation elementFromPoint returns proper element. Using getClientRect + // it is possible to check if the cursor should be at the beginning or at the end + // of paragraph. + var $element = editor.document.$.elementFromPoint( x, y ), + element = new CKEDITOR.dom.element( $element ), + rect; + + if ( !element.equals( editor.editable() ) && element.getName() != 'html' ) { + rect = element.getClientRect(); + + if ( x < rect.left ) { + range.setStartAt( element, CKEDITOR.POSITION_AFTER_START ); + range.collapse( true ); + } else { + range.setStartAt( element, CKEDITOR.POSITION_BEFORE_END ); + range.collapse( true ); + } + } + // If drop happens on no element elementFromPoint returns html or body. + // + // * |Lorem ipsum pulvinar purus et euismod. + // + // vestibulum tincidunt augue eget tempus. + // + // * - drop position + // | - expected cursor position + // + // In such case we can try to use default selection. If startContainer is not + // 'editable' element it is probably proper selection. + else if ( defaultRange && defaultRange.startContainer && + !defaultRange.startContainer.equals( editor.editable() ) ) { + return defaultRange; + + // Otherwise we can not find any drop position and we have to return null + // and cancel drop event. + } else { + return null; + } + + } + } catch ( err ) { + return null; + } + } else { + return null; + } + + return range; + }, + + /** + * This function tries to link the `evt.data.dataTransfer` property of the {@link CKEDITOR.editor#dragstart}, + * {@link CKEDITOR.editor#dragend} and {@link CKEDITOR.editor#drop} events to a single + * {@link CKEDITOR.plugins.clipboard.dataTransfer} object. + * + * This method is automatically used by the core of the drag and drop functionality and + * usually does not have to be called manually when using the drag and drop events. + * + * This method behaves differently depending on whether the drag and drop events were fired + * artificially (to represent a non-native drag and drop) or whether they were caused by the native drag and drop. + * + * If the native event is not available, then it will create a new {@link CKEDITOR.plugins.clipboard.dataTransfer} + * instance (if it does not exist already) and will link it to this and all following event objects until + * the {@link #resetDragDataTransfer} method is called. It means that all three drag and drop events must be fired + * in order to ensure that the data transfer is bound correctly. + * + * If the native event is available, then the {@link CKEDITOR.plugins.clipboard.dataTransfer} is identified + * by its ID and a new instance is assigned to the `evt.data.dataTransfer` only if the ID changed or + * the {@link #resetDragDataTransfer} method was called. + * + * @since 4.5 + * @param {CKEDITOR.dom.event} [evt] A drop event object. + * @param {CKEDITOR.editor} [sourceEditor] The source editor instance. + */ + initDragDataTransfer: function( evt, sourceEditor ) { + // Create a new dataTransfer object based on the drop event. + // If this event was used on dragstart to create dataTransfer + // both dataTransfer objects will have the same id. + var nativeDataTransfer = evt.data.$ ? evt.data.$.dataTransfer : null, + dataTransfer = new this.dataTransfer( nativeDataTransfer, sourceEditor ); + + if ( !nativeDataTransfer ) { + // No native event. + if ( this.dragData ) { + dataTransfer = this.dragData; + } else { + this.dragData = dataTransfer; + } + } else { + // Native event. If there is the same id we will replace dataTransfer with the one + // created on drag, because it contains drag editor, drag content and so on. + // Otherwise (in case of drag from external source) we save new object to + // the global clipboard.dragData. + if ( this.dragData && dataTransfer.id == this.dragData.id ) { + dataTransfer = this.dragData; + } else { + this.dragData = dataTransfer; + } + } + + evt.data.dataTransfer = dataTransfer; + }, + + /** + * Removes the global {@link #dragData} so the next call to {@link #initDragDataTransfer} + * always creates a new instance of {@link CKEDITOR.plugins.clipboard.dataTransfer}. + * + * @since 4.5 + */ + resetDragDataTransfer: function() { + this.dragData = null; + }, + + /** + * Global object storing the data transfer of the current drag and drop operation. + * Do not use it directly, use {@link #initDragDataTransfer} and {@link #resetDragDataTransfer}. + * + * Note: This object is global (meaning that it is not related to a single editor instance) + * in order to handle drag and drop from one editor into another. + * + * @since 4.5 + * @private + * @property {CKEDITOR.plugins.clipboard.dataTransfer} dragData + */ + + /** + * Range object to save the drag range and remove its content after the drop. + * + * @since 4.5 + * @private + * @property {CKEDITOR.dom.range} dragRange + */ + + /** + * Initializes and links data transfer objects based on the paste event. If the data + * transfer object was already initialized on this event, the function will + * return that object. In IE it is not possible to link copy/cut and paste events + * so the method always returns a new object. The same happens if there is no paste event + * passed to the method. + * + * @since 4.5 + * @param {CKEDITOR.dom.event} [evt] A paste event object. + * @param {CKEDITOR.editor} [sourceEditor] The source editor instance. + * @returns {CKEDITOR.plugins.clipboard.dataTransfer} The data transfer object. + */ + initPasteDataTransfer: function( evt, sourceEditor ) { + if ( !this.isCustomCopyCutSupported ) { + // Edge does not support custom copy/cut, but it have some useful data in the clipboardData (#13755). + return new this.dataTransfer( ( CKEDITOR.env.edge && evt && evt.data.$ && evt.data.$.clipboardData ) || null, sourceEditor ); + } else if ( evt && evt.data && evt.data.$ ) { + var dataTransfer = new this.dataTransfer( evt.data.$.clipboardData, sourceEditor ); + + if ( this.copyCutData && dataTransfer.id == this.copyCutData.id ) { + dataTransfer = this.copyCutData; + dataTransfer.$ = evt.data.$.clipboardData; + } else { + this.copyCutData = dataTransfer; + } + + return dataTransfer; + } else { + return new this.dataTransfer( null, sourceEditor ); + } + }, + + /** + * Prevents dropping on the specified element. + * + * @since 4.5 + * @param {CKEDITOR.dom.element} element The element on which dropping should be disabled. + */ + preventDefaultDropOnElement: function( element ) { + element && element.on( 'dragover', preventDefaultSetDropEffectToNone ); + } + }; + + // Data type used to link drag and drop events. + // + // In IE URL data type is buggie and there is no way to mark drag & drop without + // modifying text data (which would be displayed if user drop content to the textarea) + // so we just read dragged text. + // + // In Chrome and Firefox we can use custom data types. + var clipboardIdDataType = CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ? 'cke/id' : 'Text'; + /** + * Facade for the native `dataTransfer`/`clipboadData` object to hide all differences + * between browsers. + * + * @since 4.5 + * @class CKEDITOR.plugins.clipboard.dataTransfer + * @constructor Creates a class instance. + * @param {Object} [nativeDataTransfer] A native data transfer object. + * @param {CKEDITOR.editor} [editor] The source editor instance. If the editor is defined, dataValue will + * be created based on the editor content and the type will be 'html'. + */ + CKEDITOR.plugins.clipboard.dataTransfer = function( nativeDataTransfer, editor ) { + if ( nativeDataTransfer ) { + this.$ = nativeDataTransfer; + } + + this._ = { + metaRegExp: /^/i, + bodyRegExp: /([\s\S]*)<\/body>/i, + fragmentRegExp: //g, + + data: {}, + files: [], + + normalizeType: function( type ) { + type = type.toLowerCase(); + + if ( type == 'text' || type == 'text/plain' ) { + return 'Text'; // IE support only Text and URL; + } else if ( type == 'url' ) { + return 'URL'; // IE support only Text and URL; + } else { + return type; + } + } + }; + + // Check if ID is already created. + this.id = this.getData( clipboardIdDataType ); + + // If there is no ID we need to create it. Different browsers needs different ID. + if ( !this.id ) { + if ( clipboardIdDataType == 'Text' ) { + // For IE10+ only Text data type is supported and we have to compare dragged + // and dropped text. If the ID is not set it means that empty string was dragged + // (ex. image with no alt). We change null to empty string. + this.id = ''; + } else { + // String for custom data type. + this.id = 'cke-' + CKEDITOR.tools.getUniqueId(); + } + } + + // In IE10+ we can not use any data type besides text, so we do not call setData. + if ( clipboardIdDataType != 'Text' ) { + // Try to set ID so it will be passed from the drag to the drop event. + // On some browsers with some event it is not possible to setData so we + // need to catch exceptions. + try { + this.$.setData( clipboardIdDataType, this.id ); + } catch ( err ) {} + } + + if ( editor ) { + this.sourceEditor = editor; + + this.setData( 'text/html', editor.getSelectedHtml( 1 ) ); + + // Without setData( 'text', ... ) on dragstart there is no drop event in Safari. + // Also 'text' data is empty as drop to the textarea does not work if we do not put there text. + if ( clipboardIdDataType != 'Text' && !this.getData( 'text/plain' ) ) { + this.setData( 'text/plain', editor.getSelection().getSelectedText() ); + } + } + + /** + * Data transfer ID used to bind all dataTransfer + * objects based on the same event (e.g. in drag and drop events). + * + * @readonly + * @property {String} id + */ + + /** + * A native DOM event object. + * + * @readonly + * @property {Object} $ + */ + + /** + * Source editor — the editor where the drag starts. + * Might be undefined if the drag starts outside the editor (e.g. when dropping files to the editor). + * + * @readonly + * @property {CKEDITOR.editor} sourceEditor + */ + + /** + * Private properties and methods. + * + * @private + * @property {Object} _ + */ + }; + + /** + * Data transfer operation (drag and drop or copy and paste) started and ended in the same + * editor instance. + * + * @since 4.5 + * @readonly + * @property {Number} [=1] + * @member CKEDITOR + */ + CKEDITOR.DATA_TRANSFER_INTERNAL = 1; + + /** + * Data transfer operation (drag and drop or copy and paste) started in one editor + * instance and ended in another. + * + * @since 4.5 + * @readonly + * @property {Number} [=2] + * @member CKEDITOR + */ + CKEDITOR.DATA_TRANSFER_CROSS_EDITORS = 2; + + /** + * Data transfer operation (drag and drop or copy and paste) started outside of the editor. + * The source of the data may be a textarea, HTML, another application, etc. + * + * @since 4.5 + * @readonly + * @property {Number} [=3] + * @member CKEDITOR + */ + CKEDITOR.DATA_TRANSFER_EXTERNAL = 3; + + CKEDITOR.plugins.clipboard.dataTransfer.prototype = { + /** + * Facade for the native `getData` method. + * + * @param {String} type The type of data to retrieve. + * @returns {String} type Stored data for the given type or an empty string if the data for that type does not exist. + */ + getData: function( type ) { + function isEmpty( data ) { + return data === undefined || data === null || data === ''; + } + + type = this._.normalizeType( type ); + + var data = this._.data[ type ], + result; + + if ( isEmpty( data ) ) { + try { + data = this.$.getData( type ); + } catch ( e ) {} + } + + if ( isEmpty( data ) ) { + data = ''; + } + + // Some browsers add at the begging of the HTML data + // or surround it with ...(some content) and (some content) + // This code removes meta tags and returns only the contents of the element if found. Note that + // some significant content may be placed outside Start/EndFragment comments so it's kept. + // + // See #13583 for more details. + if ( type == 'text/html' ) { + data = data.replace( this._.metaRegExp, '' ); + + // Keep only contents of the element + result = this._.bodyRegExp.exec( data ); + if ( result && result.length ) { + data = result[ 1 ]; + + // Remove also comments. + data = data.replace( this._.fragmentRegExp, '' ); + } + } + // Firefox on Linux put files paths as a text/plain data if there are files + // in the dataTransfer object. We need to hide it, because files should be + // handled on paste only if dataValue is empty. + else if ( type == 'Text' && CKEDITOR.env.gecko && this.getFilesCount() && + data.substring( 0, 7 ) == 'file://' ) { + data = ''; + } + + return data; + }, + + /** + * Facade for the native `setData` method. + * + * @param {String} type The type of data to retrieve. + * @param {String} value The data to add. + */ + setData: function( type, value ) { + type = this._.normalizeType( type ); + + this._.data[ type ] = value; + + // There is "Unexpected call to method or property access." error if you try + // to set data of unsupported type on IE. + if ( !CKEDITOR.plugins.clipboard.isCustomDataTypesSupported && type != 'URL' && type != 'Text' ) { + return; + } + + // If we use the text type to bind the ID, then if someone tries to set the text, we must also + // update ID accordingly. #13468. + if ( clipboardIdDataType == 'Text' && type == 'Text' ) { + this.id = value; + } + + try { + this.$.setData( type, value ); + } catch ( e ) {} + }, + + /** + * Gets the data transfer type. + * + * @param {CKEDITOR.editor} targetEditor The drop/paste target editor instance. + * @returns {Number} Possible values: {@link CKEDITOR#DATA_TRANSFER_INTERNAL}, + * {@link CKEDITOR#DATA_TRANSFER_CROSS_EDITORS}, {@link CKEDITOR#DATA_TRANSFER_EXTERNAL}. + */ + getTransferType: function( targetEditor ) { + if ( !this.sourceEditor ) { + return CKEDITOR.DATA_TRANSFER_EXTERNAL; + } else if ( this.sourceEditor == targetEditor ) { + return CKEDITOR.DATA_TRANSFER_INTERNAL; + } else { + return CKEDITOR.DATA_TRANSFER_CROSS_EDITORS; + } + }, + + /** + * Copies the data from the native data transfer to a private cache. + * This function is needed because the data from the native data transfer + * is available only synchronously to the event listener. It is not possible + * to get the data asynchronously, after a timeout, and the {@link CKEDITOR.editor#paste} + * event is fired asynchronously — hence the need for caching the data. + */ + cacheData: function() { + if ( !this.$ ) { + return; + } + + var that = this, + i, file; + + function getAndSetData( type ) { + type = that._.normalizeType( type ); + + var data = that.getData( type ); + if ( data ) { + that._.data[ type ] = data; + } + } + + // Copy data. + if ( CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ) { + if ( this.$.types ) { + for ( i = 0; i < this.$.types.length; i++ ) { + getAndSetData( this.$.types[ i ] ); + } + } + } else { + getAndSetData( 'Text' ); + getAndSetData( 'URL' ); + } + + // Copy files references. + file = this._getImageFromClipboard(); + if ( ( this.$ && this.$.files ) || file ) { + this._.files = []; + + // Edge have empty files property with no length (#13755). + if ( this.$.files && this.$.files.length ) { + for ( i = 0; i < this.$.files.length; i++ ) { + this._.files.push( this.$.files[ i ] ); + } + } + + // Don't include $.items if both $.files and $.items contains files, because, + // according to spec and browsers behavior, they contain the same files. + if ( this._.files.length === 0 && file ) { + this._.files.push( file ); + } + } + }, + + /** + * Gets the number of files in the dataTransfer object. + * + * @returns {Number} The number of files. + */ + getFilesCount: function() { + if ( this._.files.length ) { + return this._.files.length; + } + + if ( this.$ && this.$.files && this.$.files.length ) { + return this.$.files.length; + } + + return this._getImageFromClipboard() ? 1 : 0; + }, + + /** + * Gets the file at the index given. + * + * @param {Number} i Index. + * @returns {File} File instance. + */ + getFile: function( i ) { + if ( this._.files.length ) { + return this._.files[ i ]; + } + + if ( this.$ && this.$.files && this.$.files.length ) { + return this.$.files[ i ]; + } + + // File or null if the file was not found. + return i === 0 ? this._getImageFromClipboard() : undefined; + }, + + /** + * Checks if the data transfer contains any data. + * + * @returns {Boolean} `true` if the object contains no data. + */ + isEmpty: function() { + var typesToCheck = {}, + type; + + // If dataTransfer contains files it is not empty. + if ( this.getFilesCount() ) { + return false; + } + + // Add custom types. + for ( type in this._.data ) { + typesToCheck[ type ] = 1; + } + + // Add native types. + if ( this.$ ) { + if ( CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ) { + if ( this.$.types ) { + for ( var i = 0; i < this.$.types.length; i++ ) { + typesToCheck[ this.$.types[ i ] ] = 1; + } + } + } else { + typesToCheck.Text = 1; + typesToCheck.URL = 1; + } + } + + // Remove ID. + if ( clipboardIdDataType != 'Text' ) { + typesToCheck[ clipboardIdDataType ] = 0; + } + + for ( type in typesToCheck ) { + if ( typesToCheck[ type ] && this.getData( type ) !== '' ) { + return false; + } + } + + return true; + }, + + /** + * When the content of the clipboard is pasted in Chrome, the clipboard data object has an empty `files` property, + * but it is possible to get the file as `items[0].getAsFile();` (#12961). + * + * @private + * @returns {File} File instance or `null` if not found. + */ + _getImageFromClipboard: function() { + var file; + + if ( this.$ && this.$.items && this.$.items[ 0 ] ) { + try { + file = this.$.items[ 0 ].getAsFile(); + // Duck typing + if ( file && file.type ) { + return file; + } + } catch ( err ) { + // noop + } + } + + return undefined; + } + }; +} )(); + +/** + * The default content type that is used when pasted data cannot be clearly recognized as HTML or text. + * + * For example: `'foo'` may come from a plain text editor or a website. It is not possible to recognize the content + * type in this case, so the default type will be used. At the same time it is clear that `'example text'` is + * HTML and its origin is a web page, email or another rich text editor. + * + * **Note:** If content type is text, then styles of the paste context are preserved. + * + * CKEDITOR.config.clipboard_defaultContentType = 'text'; + * + * See also the {@link CKEDITOR.editor#paste} event and read more about the integration with clipboard + * in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * @since 4.0 + * @cfg {'html'/'text'} [clipboard_defaultContentType='html'] + * @member CKEDITOR.config + */ + +/** + * Fired after the user initiated a paste action, but before the data is inserted into the editor. + * The listeners to this event are able to process the content before its insertion into the document. + * + * Read more about the integration with clipboard in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * the {@link CKEDITOR.config#pasteFilter} option, + * * the {@link CKEDITOR.editor#drop} event, + * * the {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 3.1 + * @event paste + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {String} data.type The type of data in `data.dataValue`. Usually `'html'` or `'text'`, but for listeners + * with a priority smaller than `6` it may also be `'auto'` which means that the content type has not been recognised yet + * (this will be done by the content type sniffer that listens with priority `6`). + * @param {String} data.dataValue HTML to be pasted. + * @param {String} data.method Indicates the data transfer method. It could be drag and drop or copy and paste. + * Possible values: `'drop'`, `'paste'`. Introduced in CKEditor 4.5. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer Facade for the native dataTransfer object + * which provides access to various data types and files, and passes some data between linked events + * (like drag and drop). Introduced in CKEditor 4.5. + * @param {Boolean} [data.dontFilter=false] Whether the {@link CKEDITOR.editor#pasteFilter paste filter} should not + * be applied to data. This option has no effect when `data.type` equals `'text'` which means that for instance + * {@link CKEDITOR.config#forcePasteAsPlainText} has a higher priority. Introduced in CKEditor 4.5. + */ + +/** + * Fired before the {@link #paste} event. Allows to preset data type. + * + * **Note:** This event is deprecated. Add a `0` priority listener for the + * {@link #paste} event instead. + * + * @deprecated + * @event beforePaste + * @member CKEDITOR.editor + */ + + /** + * Fired after the {@link #paste} event if content was modified. Note that if the paste + * event does not insert any data, the `afterPaste` event will not be fired. + * + * @event afterPaste + * @member CKEDITOR.editor + */ + +/** + * Internal event to open the Paste dialog window. + * + * @private + * @event pasteDialog + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param {Function} [data] Callback that will be passed to {@link CKEDITOR.editor#openDialog}. + */ + +/** + * Facade for the native `drop` event. Fired when the native `drop` event occurs. + * + * **Note:** To manipulate dropped data, use the {@link CKEDITOR.editor#paste} event. + * Use the `drop` event only to control drag and drop operations (e.g. to prevent the ability to drop some content). + * + * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * The {@link CKEDITOR.editor#paste} event, + * * The {@link CKEDITOR.editor#dragstart} and {@link CKEDITOR.editor#dragend} events, + * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 4.5 + * @event drop + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {Object} data.$ Native drop event. + * @param {CKEDITOR.dom.node} data.target Drop target. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. + * @param {CKEDITOR.dom.range} data.dragRange Drag range, lets you manipulate the drag range. + * Note that dragged HTML is saved as `text/html` data on `dragstart` so if you change the drag range + * on drop, dropped HTML will not change. You need to change it manually using + * {@link CKEDITOR.plugins.clipboard.dataTransfer#setData dataTransfer.setData}. + * @param {CKEDITOR.dom.range} data.dropRange Drop range, lets you manipulate the drop range. + */ + +/** + * Facade for the native `dragstart` event. Fired when the native `dragstart` event occurs. + * + * This event can be canceled in order to block the drag start operation. It can also be fired to mimic the start of the drag and drop + * operation. For instance, the `widget` plugin uses this option to integrate its custom block widget drag and drop with + * the entire system. + * + * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * The {@link CKEDITOR.editor#paste} event, + * * The {@link CKEDITOR.editor#drop} and {@link CKEDITOR.editor#dragend} events, + * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 4.5 + * @event dragstart + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {Object} data.$ Native dragstart event. + * @param {CKEDITOR.dom.node} data.target Drag target. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. + */ + +/** + * Facade for the native `dragend` event. Fired when the native `dragend` event occurs. + * + * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * The {@link CKEDITOR.editor#paste} event, + * * The {@link CKEDITOR.editor#drop} and {@link CKEDITOR.editor#dragend} events, + * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 4.5 + * @event dragend + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {Object} data.$ Native dragend event. + * @param {CKEDITOR.dom.node} data.target Drag target. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. + */ + +/** + * Defines a filter which is applied to external data pasted or dropped into the editor. Possible values are: + * + * * `'plain-text'` – Content will be pasted as a plain text. + * * `'semantic-content'` – Known tags (except `div`, `span`) with all attributes (except + * `style` and `class`) will be kept. + * * `'h1 h2 p div'` – Custom rules compatible with {@link CKEDITOR.filter}. + * * `null` – Content will not be filtered by the paste filter (but it still may be filtered + * by [Advanced Content Filter](#!/guide/dev_advanced_content_filter)). This value can be used to + * disable the paste filter in Chrome and Safari, where this option defaults to `'semantic-content'`. + * + * Example: + * + * config.pasteFilter = 'plain-text'; + * + * Custom setting: + * + * config.pasteFilter = 'h1 h2 p ul ol li; img[!src, alt]; a[!href]'; + * + * Based on this configuration option, a proper {@link CKEDITOR.filter} instance will be defined and assigned to the editor + * as a {@link CKEDITOR.editor#pasteFilter}. You can tweak the paste filter settings on the fly on this object + * as well as delete or replace it. + * + * var editor = CKEDITOR.replace( 'editor', { + * pasteFilter: 'semantic-content' + * } ); + * + * editor.on( 'instanceReady', function() { + * // The result of this will be that all semantic content will be preserved + * // except tables. + * editor.pasteFilter.disallow( 'table' ); + * } ); + * + * Note that the paste filter is applied only to **external** data. There are three data sources: + * + * * copied and pasted in the same editor (internal), + * * copied from one editor and pasted into another (cross-editor), + * * coming from all other sources like websites, MS Word, etc. (external). + * + * If {@link CKEDITOR.config#allowedContent Advanced Content Filter} is not disabled, then + * it will also be applied to pasted and dropped data. The paste filter job is to "normalize" + * external data which often needs to be handled differently than content produced by the editor. + * + * This setting defaults to `'semantic-content'` in Chrome, Opera and Safari (all Blink and Webkit based browsers) + * due to messy HTML which these browsers keep in the clipboard. In other browsers it defaults to `null`. + * + * @since 4.5 + * @cfg {String} [pasteFilter='semantic-content' in Chrome and Safari and `null` in other browsers] + * @member CKEDITOR.config + */ + +/** + * {@link CKEDITOR.filter Content filter} which is used when external data is pasted or dropped into the editor + * or a forced paste as plain text occurs. + * + * This object might be used on the fly to define rules for pasted external content. + * This object is available and used if the {@link CKEDITOR.plugins.clipboard clipboard} plugin is enabled and + * {@link CKEDITOR.config#pasteFilter} or {@link CKEDITOR.config#forcePasteAsPlainText} was defined. + * + * To enable the filter: + * + * var editor = CKEDITOR.replace( 'editor', { + * pasteFilter: 'plain-text' + * } ); + * + * You can also modify the filter on the fly later on: + * + * editor.pasteFilter = new CKEDITOR.filter( 'p h1 h2; a[!href]' ); + * + * Note that the paste filter is only applied to **external** data. There are three data sources: + * + * * copied and pasted in the same editor (internal), + * * copied from one editor and pasted into another (cross-editor), + * * coming from all other sources like websites, MS Word, etc. (external). + * + * If {@link CKEDITOR.config#allowedContent Advanced Content Filter} is not disabled, then + * it will also be applied to pasted and dropped data. The paste filter job is to "normalize" + * external data which often needs to be handled differently than content produced by the editor. + * + * @since 4.5 + * @readonly + * @property {CKEDITOR.filter} [pasteFilter] + * @member CKEDITOR.editor + */ diff --git a/ckeditor/plugins/colorbutton/icons/bgcolor.png b/ckeditor/plugins/colorbutton/icons/bgcolor.png new file mode 100644 index 0000000..aa03f44 Binary files /dev/null and b/ckeditor/plugins/colorbutton/icons/bgcolor.png differ diff --git a/ckeditor/plugins/colorbutton/icons/hidpi/bgcolor.png b/ckeditor/plugins/colorbutton/icons/hidpi/bgcolor.png new file mode 100644 index 0000000..9e52d1e Binary files /dev/null and b/ckeditor/plugins/colorbutton/icons/hidpi/bgcolor.png differ diff --git a/ckeditor/plugins/colorbutton/icons/hidpi/textcolor.png b/ckeditor/plugins/colorbutton/icons/hidpi/textcolor.png new file mode 100644 index 0000000..67faa8e Binary files /dev/null and b/ckeditor/plugins/colorbutton/icons/hidpi/textcolor.png differ diff --git a/ckeditor/plugins/colorbutton/icons/textcolor.png b/ckeditor/plugins/colorbutton/icons/textcolor.png new file mode 100644 index 0000000..88575c1 Binary files /dev/null and b/ckeditor/plugins/colorbutton/icons/textcolor.png differ diff --git a/ckeditor/plugins/colorbutton/lang/af.js b/ckeditor/plugins/colorbutton/lang/af.js new file mode 100644 index 0000000..a5907d6 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/af.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'af', { + auto: 'Outomaties', + bgColorTitle: 'Agtergrondkleur', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Meer Kleure...', + panelTitle: 'Kleure', + textColorTitle: 'Tekskleur' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ar.js b/ckeditor/plugins/colorbutton/lang/ar.js new file mode 100644 index 0000000..db6e009 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ar.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ar', { + auto: 'تلقائي', + bgColorTitle: 'لون الخلفية', + 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: 'أبيض', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'ألوان إضافية...', + panelTitle: 'Colors', + textColorTitle: 'لون النص' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/az.js b/ckeditor/plugins/colorbutton/lang/az.js new file mode 100644 index 0000000..c34add1 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/az.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'az', { + auto: 'Avtomatik', + bgColorTitle: 'Doldurma rəngi', + colors: { + '000': 'Qara', + '800000': 'Şabalıdı', + '8B4513': 'Açıq şabalı', + '2F4F4F': 'Açıq boz', + '008080': 'Firuzəyi göy', + '000080': 'Tünd göy', + '4B0082': 'İndigo', + '696969': 'Tünd boz', + B22222: 'Kərpiç', + A52A2A: 'Şabalıdı', + DAA520: 'Qızıl ağcaqayın', + '006400': 'Tünd yaşıl', + '40E0D0': 'Firuzəyi', + '0000CD': 'Göy', + '800080': 'Bənövşəyi', + '808080': 'Boz', + F00: 'Qırmızı', + FF8C00: 'Tünd narıncı', + FFD700: 'Qızıl', + '008000': 'Yaşıl', + '0FF': 'Mavi', + '00F': 'Göy', + EE82EE: 'Açıq bənövşəyi', + A9A9A9: 'Asfalt rəngi', + FFA07A: 'Qızılbalıq', + FFA500: 'Narıncı', + FFFF00: 'Sarı', + '00FF00': 'Laym', + AFEEEE: 'Acıq firuzəyi', + ADD8E6: 'Acıq göy', + DDA0DD: 'Gavalı', + D3D3D3: 'Acıq boz', + FFF0F5: 'Yasəmən', + FAEBD7: 'Kağız', + FFFFE0: 'Acıq sarı', + F0FFF0: 'Bal', + F0FFFF: 'Gömgöy', + F0F8FF: 'Solğun göy', + E6E6FA: 'Lavanda', + FFF: 'Ağ', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Digər rənglər...', + panelTitle: 'Rənglər', + textColorTitle: 'Mətnin rəngi' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/bg.js b/ckeditor/plugins/colorbutton/lang/bg.js new file mode 100644 index 0000000..0122168 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/bg.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'bg', { + auto: 'Автоматично', + bgColorTitle: 'Фонов цвят', + colors: { + '000': 'Черно', + '800000': 'Кестеняво', + '8B4513': 'Светлокафяво', + '2F4F4F': 'Dark Slate Gray', + '008080': 'Teal', + '000080': 'Navy', + '4B0082': 'Индиго', + '696969': 'Тъмно сиво', + B22222: 'Огнено червено', + A52A2A: 'Кафяво', + DAA520: 'Златисто', + '006400': 'Тъмно зелено', + '40E0D0': 'Тюркуазено', + '0000CD': 'Средно синьо', + '800080': 'Пурпурно', + '808080': 'Сиво', + F00: 'Червено', + FF8C00: 'Тъмно оранжево', + FFD700: 'Златно', + '008000': 'Зелено', + '0FF': 'Светло синьо', + '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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Още цветове', + panelTitle: 'Цветове', + textColorTitle: 'Цвят на шрифт' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/bn.js b/ckeditor/plugins/colorbutton/lang/bn.js new file mode 100644 index 0000000..c3fffc8 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/bn.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'bn', { + auto: 'স্বয়ংক্রিয়ভাবে', + bgColorTitle: 'পৃষ্ঠতলের রং', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'আরও রং...', + panelTitle: 'Colors', + textColorTitle: 'টেক্স্ট রং' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/bs.js b/ckeditor/plugins/colorbutton/lang/bs.js new file mode 100644 index 0000000..fa3d3d0 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/bs.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'bs', { + auto: 'Automatska', + bgColorTitle: 'Boja pozadine', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Više boja...', + panelTitle: 'Colors', + textColorTitle: 'Boja teksta' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ca.js b/ckeditor/plugins/colorbutton/lang/ca.js new file mode 100644 index 0000000..dcc9617 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ca.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ca', { + auto: 'Automàtic', + bgColorTitle: 'Color de Fons', + colors: { + '000': 'Negre', + '800000': 'Grana', + '8B4513': 'Marró sella', + '2F4F4F': 'Gris pissarra fosca', + '008080': 'Blau xarxet', + '000080': 'Blau marí', + '4B0082': 'Indi', + '696969': 'Gris Fosc', + B22222: 'Foc Maó', + A52A2A: 'Marró', + DAA520: 'Solidago', + '006400': 'Verd Fosc', + '40E0D0': 'Turquesa', + '0000CD': 'Blau 1/2', + '800080': 'Lila', + '808080': 'Gris', + F00: 'Vermell', + FF8C00: 'Taronja Fosc', + FFD700: 'Or', + '008000': 'Verd', + '0FF': 'Cian', + '00F': 'Blau', + EE82EE: 'Violat', + A9A9A9: 'Gris clar', + FFA07A: 'Salmó clar', + FFA500: 'Taronja', + FFFF00: 'Groc', + '00FF00': 'Verd Llima', + AFEEEE: 'Turquesa Pàl·lid', + ADD8E6: 'Blau Clar', + DDA0DD: 'Pruna', + D3D3D3: 'Gris Clar', + FFF0F5: 'Lavanda rosat', + FAEBD7: 'Blanc Antic', + FFFFE0: 'Groc Clar', + F0FFF0: 'Verd Pàl·lid', + F0FFFF: 'Atzur', + F0F8FF: 'Cian pàlid', + E6E6FA: 'Lavanda', + FFF: 'Blanc', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Més Colors...', + panelTitle: 'Colors', + textColorTitle: 'Color del Text' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/cs.js b/ckeditor/plugins/colorbutton/lang/cs.js new file mode 100644 index 0000000..d121c19 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/cs.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'cs', { + auto: 'Automaticky', + bgColorTitle: 'Barva pozadí', + 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á', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Více barev...', + panelTitle: 'Barvy', + textColorTitle: 'Barva textu' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/cy.js b/ckeditor/plugins/colorbutton/lang/cy.js new file mode 100644 index 0000000..21bca7d --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/cy.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'cy', { + auto: 'Awtomatig', + bgColorTitle: 'Lliw Cefndir', + colors: { + '000': 'Du', + '800000': 'Marwn', + '8B4513': 'Brown Cyfrwy', + '2F4F4F': 'Llechen Tywyll', + '008080': 'Corhwyad', + '000080': 'Nefi', + '4B0082': 'Indigo', + '696969': 'Llwyd Tywyll', + 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 Pwl', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Mwy o Liwiau...', + panelTitle: 'Lliwiau', + textColorTitle: 'Lliw Testun' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/da.js b/ckeditor/plugins/colorbutton/lang/da.js new file mode 100644 index 0000000..ffcd506 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/da.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'da', { + auto: 'Automatisk', + bgColorTitle: 'Baggrundsfarve', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Flere farver...', + panelTitle: 'Farver', + textColorTitle: 'Tekstfarve' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/de-ch.js b/ckeditor/plugins/colorbutton/lang/de-ch.js new file mode 100644 index 0000000..0f1c135 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/de-ch.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'de-ch', { + auto: 'Automatisch', + bgColorTitle: 'Hintergrundfarbe', + colors: { + '000': 'Schwarz', + '800000': 'Kastanienbraun', + '8B4513': 'Braun', + '2F4F4F': 'Dunkles Schiefergrau', + '008080': 'Blaugrün', + '000080': 'Marineblau', + '4B0082': 'Indigo', + '696969': 'Dunkelgrau', + B22222: 'Ziegelrot', + A52A2A: 'Braun', + DAA520: 'Goldgelb', + '006400': 'Dunkelgrün', + '40E0D0': 'Türkis', + '0000CD': 'Mittelblau', + '800080': 'Lila', + '808080': 'Grau', + F00: 'Rot', + FF8C00: 'Dunkelorange', + FFD700: 'Gold', + '008000': 'Grün', + '0FF': 'Cyan', + '00F': 'Blau', + EE82EE: 'Violett', + A9A9A9: 'Dunkelgrau', + FFA07A: 'Helles Lachsrosa', + FFA500: 'Orange', + FFFF00: 'Gelb', + '00FF00': 'Lime', + AFEEEE: 'Blasstürkis', + ADD8E6: 'Hellblau', + DDA0DD: 'Pflaumenblau', + D3D3D3: 'Hellgrau', + FFF0F5: 'Lavendel', + FAEBD7: 'Antik Weiss', + FFFFE0: 'Hellgelb', + F0FFF0: 'Honigtau', + F0FFFF: 'Azurblau', + F0F8FF: 'Alice Blau', + E6E6FA: 'Lavendel', + FFF: 'Weiss', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Weitere Farben...', + panelTitle: 'Farben', + textColorTitle: 'Textfarbe' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/de.js b/ckeditor/plugins/colorbutton/lang/de.js new file mode 100644 index 0000000..6feb0e2 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/de.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'de', { + auto: 'Automatisch', + bgColorTitle: 'Hintergrundfarbe', + colors: { + '000': 'Schwarz', + '800000': 'Kastanienbraun', + '8B4513': 'Braun', + '2F4F4F': 'Dunkles Schiefergrau', + '008080': 'Blaugrün', + '000080': 'Marineblau', + '4B0082': 'Indigo', + '696969': 'Dunkelgrau', + B22222: 'Ziegelrot', + A52A2A: 'Braun', + DAA520: 'Goldgelb', + '006400': 'Dunkelgrün', + '40E0D0': 'Türkis', + '0000CD': 'Mittelblau', + '800080': 'Lila', + '808080': 'Grau', + F00: 'Rot', + FF8C00: 'Dunkelorange', + FFD700: 'Gold', + '008000': 'Grün', + '0FF': 'Cyan', + '00F': 'Blau', + EE82EE: 'Violett', + A9A9A9: 'Dunkelgrau', + FFA07A: 'Helles Lachsrosa', + FFA500: 'Orange', + FFFF00: 'Gelb', + '00FF00': 'Lime', + AFEEEE: 'Blasstü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ß', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Weitere Farben...', + panelTitle: 'Farben', + textColorTitle: 'Textfarbe' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/el.js b/ckeditor/plugins/colorbutton/lang/el.js new file mode 100644 index 0000000..9b3c2b4 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/el.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'el', { + auto: 'Αυτόματα', + bgColorTitle: 'Χρώμα Φόντου', + colors: { + '000': 'Μαύρο', + '800000': 'Καστανέρυθρο', + '8B4513': 'Saddle Brown', + '2F4F4F': 'Dark Slate Gray', + '008080': 'Βαθυκύανο', + '000080': 'Μπλε μαρέν', + '4B0082': 'Ινδικό', + '696969': 'Σκούρο Γκρι', + B22222: 'Ανοικτό Κόκκινο', + A52A2A: 'Καφέ', + DAA520: 'Golden Rod', + '006400': 'Σκούρο Πράσινο', + '40E0D0': 'Τυρκουάζ', + '0000CD': 'Medium Blue', + '800080': 'Μοβ', + '808080': 'Γκρι', + F00: 'Κόκκινο', + FF8C00: 'Σκούρο Πορτοκαλί', + FFD700: 'Χρυσαφί', + '008000': 'Πράσινο', + '0FF': 'Κυανό', + '00F': 'Μπλε', + EE82EE: 'Μενεξεδί', + A9A9A9: 'Ποντικί', + FFA07A: 'Ανοικτό Σομόν', + FFA500: 'Πορτοκαλί', + FFFF00: 'Κίτρινο', + '00FF00': 'Μοσχολέμονο', + AFEEEE: 'Pale Turquoise', + ADD8E6: 'Γαλάζιο', + DDA0DD: 'Δαμασκηνί', + D3D3D3: 'Ανοικτό Γκρι', + FFF0F5: 'Lavender Blush', + FAEBD7: 'Antique White', + FFFFE0: 'Ανοικτό Κίτρινο', + F0FFF0: 'Honeydew', + F0FFFF: 'Γαλανό', + F0F8FF: 'Alice Blue', + E6E6FA: 'Ελαφρός Ιώδες', + FFF: 'Λευκό', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Περισσότερα Χρώματα…', + panelTitle: 'Χρώματα', + textColorTitle: 'Χρώμα Κειμένου' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/en-au.js b/ckeditor/plugins/colorbutton/lang/en-au.js new file mode 100644 index 0000000..0e3fd36 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/en-au.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'en-au', { + auto: 'Automatic', + bgColorTitle: 'Background Colour', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'More Colours...', + panelTitle: 'Colors', + textColorTitle: 'Text Colour' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/en-ca.js b/ckeditor/plugins/colorbutton/lang/en-ca.js new file mode 100644 index 0000000..3b7ae24 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/en-ca.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'en-ca', { + auto: 'Automatic', + bgColorTitle: 'Background Colour', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'More Colours...', + panelTitle: 'Colors', + textColorTitle: 'Text Colour' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/en-gb.js b/ckeditor/plugins/colorbutton/lang/en-gb.js new file mode 100644 index 0000000..c63dd9b --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/en-gb.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'en-gb', { + auto: 'Automatic', + bgColorTitle: 'Background Colour', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'More Colours...', + panelTitle: 'Colours', + textColorTitle: 'Text Colour' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/en.js b/ckeditor/plugins/colorbutton/lang/en.js new file mode 100644 index 0000000..304c0df --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/en.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'en', { + auto: 'Automatic', + bgColorTitle: 'Background Color', + 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', + '1ABC9C': 'Strong Cyan', + '2ECC71': 'Emerald', + '3498DB': 'Bright Blue', + '9B59B6': 'Amethyst', + '4E5F70': 'Grayish Blue', + 'F1C40F': 'Vivid Yellow', + '16A085': 'Dark Cyan', + '27AE60': 'Dark Emerald', + '2980B9': 'Strong Blue', + '8E44AD': 'Dark Violet', + '2C3E50': 'Desaturated Blue', + 'F39C12': 'Orange', + 'E67E22': 'Carrot', + 'E74C3C': 'Pale Red', + 'ECF0F1': 'Bright Silver', + '95A5A6': 'Light Grayish Cyan', + 'DDD': 'Light Gray', + 'D35400': 'Pumpkin', + 'C0392B': 'Strong Red', + 'BDC3C7': 'Silver', + '7F8C8D': 'Grayish Cyan', + '999': 'Dark Gray' + }, + more: 'More Colors...', + panelTitle: 'Colors', + textColorTitle: 'Text Color' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/eo.js b/ckeditor/plugins/colorbutton/lang/eo.js new file mode 100644 index 0000000..5e01d69 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/eo.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'eo', { + auto: 'Aŭtomata', + bgColorTitle: 'Fona Koloro', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Pli da Koloroj...', + panelTitle: 'Koloroj', + textColorTitle: 'Teksta Koloro' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/es.js b/ckeditor/plugins/colorbutton/lang/es.js new file mode 100644 index 0000000..ab55810 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/es.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'es', { + auto: 'Automático', + bgColorTitle: 'Color de Fondo', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Más Colores...', + panelTitle: 'Colores', + textColorTitle: 'Color de Texto' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/et.js b/ckeditor/plugins/colorbutton/lang/et.js new file mode 100644 index 0000000..186e8c3 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/et.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'et', { + auto: 'Automaatne', + bgColorTitle: 'Tausta värv', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Rohkem värve...', + panelTitle: 'Värvid', + textColorTitle: 'Teksti värv' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/eu.js b/ckeditor/plugins/colorbutton/lang/eu.js new file mode 100644 index 0000000..5b43b62 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/eu.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'eu', { + auto: 'Automatikoa', + bgColorTitle: 'Atzeko planoko kolorea', + colors: { + '000': 'Beltza', + '800000': 'Granatea', + '8B4513': 'Zela marroia', + '2F4F4F': 'Arbel gris iluna', + '008080': 'Urdin berdexka', + '000080': 'Urdin iluna', + '4B0082': 'Indigoa', + '696969': 'Gris iluna', + B22222: 'Adreilu erregogorra', + A52A2A: 'Marroia', + DAA520: 'Urrezko makila', + '006400': 'Berde iluna', + '40E0D0': 'Turkesa', + '0000CD': 'Urdin ertaina', + '800080': 'Morea', + '808080': 'Grisa', + F00: 'Gorria', + FF8C00: 'Laranja iluna', + FFD700: 'Urrea', + '008000': 'Berdea', + '0FF': 'Ziana', + '00F': 'Urdina', + EE82EE: 'Bioleta', + A9A9A9: 'Gris ahula', + FFA07A: 'Izokin-kolore argia', + FFA500: 'Laranja', + FFFF00: 'Horia', + '00FF00': 'Lima', + AFEEEE: 'Turkesa argia', + ADD8E6: 'Urdin argia', + DDA0DD: 'Aran-kolorea', + D3D3D3: 'Gris argia', + FFF0F5: 'Izpiliku-gorrixka', + FAEBD7: 'Zuri zaharra', + FFFFE0: 'Hori argia', + F0FFF0: 'Ezti-ihintza', + F0FFFF: 'Zeru-urdina', + F0F8FF: 'Alizia urdina', + E6E6FA: 'Izpilikua', + FFF: 'Zuria', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Kolore gehiago...', + panelTitle: 'Koloreak', + textColorTitle: 'Testu-kolorea' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/fa.js b/ckeditor/plugins/colorbutton/lang/fa.js new file mode 100644 index 0000000..f3f8f08 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/fa.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'fa', { + auto: 'خودکار', + bgColorTitle: 'رنگ پس​زمینه', + 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: 'سفید', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'رنگ​های بیشتر...', + panelTitle: 'رنگها', + textColorTitle: 'رنگ متن' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/fi.js b/ckeditor/plugins/colorbutton/lang/fi.js new file mode 100644 index 0000000..f625b95 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/fi.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'fi', { + auto: 'Automaattinen', + bgColorTitle: 'Taustaväri', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Lisää värejä...', + panelTitle: 'Värit', + textColorTitle: 'Tekstiväri' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/fo.js b/ckeditor/plugins/colorbutton/lang/fo.js new file mode 100644 index 0000000..ad8f26c --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/fo.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'fo', { + auto: 'Automatiskt', + bgColorTitle: 'Bakgrundslitur', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Fleiri litir...', + panelTitle: 'Litir', + textColorTitle: 'Tekstlitur' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/fr-ca.js b/ckeditor/plugins/colorbutton/lang/fr-ca.js new file mode 100644 index 0000000..9877939 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/fr-ca.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'fr-ca', { + auto: 'Automatique', + bgColorTitle: 'Couleur de fond', + colors: { + '000': 'Noir', + '800000': 'Marron', + '8B4513': 'Brun foncé', + '2F4F4F': 'Gris ardoise foncé', + '008080': 'Sarcelle', + '000080': 'Marine', + '4B0082': 'Indigo', + '696969': 'Gris foncé', + B22222: 'Rouge brique', + A52A2A: 'Brun', + DAA520: 'Doré', + '006400': 'Vert foncé', + '40E0D0': 'Turquoise', + '0000CD': 'Bleu', + '800080': 'Mauve', + '808080': 'Gris', + F00: 'Rouge', + FF8C00: 'Orange foncé', + FFD700: 'Or', + '008000': 'Vert', + '0FF': 'Cyan', + '00F': 'Bleu', + EE82EE: 'Violet', + A9A9A9: 'Gris pâle', + FFA07A: 'Saumon clair', + FFA500: 'Orange', + FFFF00: 'Jaune', + '00FF00': 'Vert lime', + AFEEEE: 'Turquoise pâle', + ADD8E6: 'Bleu pâle', + DDA0DD: 'Prune', + D3D3D3: 'Gris pâle', + FFF0F5: 'Bleu lavande', + FAEBD7: 'Blanc antique', + FFFFE0: 'Jaune pâle', + F0FFF0: 'Miel doré', + F0FFFF: 'Azure', + F0F8FF: 'Bleu alice', + E6E6FA: 'Lavande', + FFF: 'Blanc', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Plus de couleurs...', + panelTitle: 'Couleurs', + textColorTitle: 'Couleur de texte' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/fr.js b/ckeditor/plugins/colorbutton/lang/fr.js new file mode 100644 index 0000000..5966baa --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/fr.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'fr', { + auto: 'Automatique', + bgColorTitle: 'Couleur d\'arrière-plan', + colors: { + '000': 'Noir', + '800000': 'Marron', + '8B4513': 'Brun de selle', + '2F4F4F': 'Gris sombre d\'ardoise', + '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': 'Violet', + '808080': 'Gris', + F00: 'Rouge', + FF8C00: 'Orange foncé', + FFD700: 'Or', + '008000': 'Vert', + '0FF': 'Cyan', + '00F': 'Bleu', + EE82EE: 'Violet', + A9A9A9: 'Gris tamisé', + FFA07A: 'Saumon clair', + 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: 'Vert rosée', + F0FFFF: 'Azur', + F0F8FF: 'Bleu Alice', + E6E6FA: 'Lavande', + FFF: 'Blanc', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Plus de couleurs...', + panelTitle: 'Couleurs', + textColorTitle: 'Couleur du texte' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/gl.js b/ckeditor/plugins/colorbutton/lang/gl.js new file mode 100644 index 0000000..bd8bd1f --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/gl.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'gl', { + auto: 'Automático', + bgColorTitle: 'Cor do fondo', + colors: { + '000': 'Negro', + '800000': 'Marrón escuro', + '8B4513': 'Ocre', + '2F4F4F': 'Pizarra escuro', + '008080': 'Verde azulado', + '000080': 'Azul mariño', + '4B0082': 'Índigo', + '696969': 'Gris escuro', + B22222: 'Ladrillo', + A52A2A: 'Marrón', + DAA520: 'Dourado escuro', + '006400': 'Verde escuro', + '40E0D0': 'Turquesa', + '0000CD': 'Azul medio', + '800080': 'Púrpura', + '808080': 'Gris', + F00: 'Vermello', + FF8C00: 'Laranxa escuro', + FFD700: 'Dourado', + '008000': 'Verde', + '0FF': 'Cian', + '00F': 'Azul', + EE82EE: 'Violeta', + A9A9A9: 'Gris medio', + FFA07A: 'Salmón claro', + FFA500: 'Laranxa', + FFFF00: 'Amarelo', + '00FF00': 'Lima', + AFEEEE: 'Turquesa pálido', + ADD8E6: 'Azul claro', + DDA0DD: 'Violeta pálido', + D3D3D3: 'Verde claro', + FFF0F5: 'Lavanda vermello', + FAEBD7: 'Branco antigo', + FFFFE0: 'Amarelo claro', + F0FFF0: 'Mel', + F0FFFF: 'Azul celeste', + F0F8FF: 'Azul pálido', + E6E6FA: 'Lavanda', + FFF: 'Branco', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Máis cores...', + panelTitle: 'Cores', + textColorTitle: 'Cor do texto' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/gu.js b/ckeditor/plugins/colorbutton/lang/gu.js new file mode 100644 index 0000000..ce2c40c --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/gu.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'gu', { + auto: 'સ્વચાલિત', + bgColorTitle: 'બૅકગ્રાઉન્ડ રંગ,', + 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: 'સફેદ', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'ઔર રંગ...', + panelTitle: 'રંગ', + textColorTitle: 'શબ્દનો રંગ' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/he.js b/ckeditor/plugins/colorbutton/lang/he.js new file mode 100644 index 0000000..da022c7 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/he.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'he', { + auto: 'אוטומטי', + bgColorTitle: 'צבע רקע', + 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: 'לבן', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'צבעים נוספים...', + panelTitle: 'צבעים', + textColorTitle: 'צבע טקסט' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/hi.js b/ckeditor/plugins/colorbutton/lang/hi.js new file mode 100644 index 0000000..27c164b --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/hi.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'hi', { + auto: 'स्वचालित', + bgColorTitle: 'बैक्ग्राउन्ड रंग', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'और रंग...', + panelTitle: 'Colors', + textColorTitle: 'टेक्स्ट रंग' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/hr.js b/ckeditor/plugins/colorbutton/lang/hr.js new file mode 100644 index 0000000..3afdf7b --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/hr.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'hr', { + auto: 'Automatski', + bgColorTitle: 'Boja pozadine', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Više boja...', + panelTitle: 'Boje', + textColorTitle: 'Boja teksta' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/hu.js b/ckeditor/plugins/colorbutton/lang/hu.js new file mode 100644 index 0000000..02d7424 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/hu.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'hu', { + auto: 'Automatikus', + bgColorTitle: 'Háttérszín', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'További színek...', + panelTitle: 'Színek', + textColorTitle: 'Betűszín' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/id.js b/ckeditor/plugins/colorbutton/lang/id.js new file mode 100644 index 0000000..8c173e8 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/id.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'id', { + auto: 'Automatic', // MISSING + bgColorTitle: 'Warna Latar Belakang', + colors: { + '000': 'Hitam', + '800000': 'Merah Tua', + '8B4513': 'Saddle Brown', // MISSING + '2F4F4F': 'Dark Slate Gray', // MISSING + '008080': 'Teal', // MISSING + '000080': 'Navy', // MISSING + '4B0082': 'Indigo', // MISSING + '696969': 'Abu-abu Gelap', + B22222: 'Merah Bata', + A52A2A: 'Coklat', + DAA520: 'Golden Rod', // MISSING + '006400': 'Hijau Gelap', + '40E0D0': 'Turquoise', // MISSING + '0000CD': 'Biru Sedang', + '800080': 'Ungu', + '808080': 'Abu-abu', + F00: 'Merah', + FF8C00: 'Jingga Gelap', + FFD700: 'Emas', + '008000': 'Hijau', + '0FF': 'Cyan', // MISSING + '00F': 'Biru', + EE82EE: 'Violet', // MISSING + A9A9A9: 'Abu-abu Redup', + FFA07A: 'Salmon Cerah', + FFA500: 'Jingga', + FFFF00: 'Kuning', + '00FF00': 'Jeruk Lemon', + AFEEEE: 'Biru Hijau Pucat', + ADD8E6: 'Biru Cerah', + DDA0DD: 'Plum', // MISSING + D3D3D3: 'Abu-abu Cerah', + FFF0F5: 'Lavender Blush', // MISSING + FAEBD7: 'Antique White', // MISSING + FFFFE0: 'Kuning Cerah', + F0FFF0: 'Honeydew', // MISSING + F0FFFF: 'Azure', // MISSING + F0F8FF: 'Alice Blue', // MISSING + E6E6FA: 'Lavender', // MISSING + FFF: 'Putih', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Warna lainnya...', + panelTitle: 'Warna', + textColorTitle: 'Warna Teks' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/is.js b/ckeditor/plugins/colorbutton/lang/is.js new file mode 100644 index 0000000..c293519 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/is.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'is', { + auto: 'Sjálfval', + bgColorTitle: 'Bakgrunnslitur', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Fleiri liti...', + panelTitle: 'Colors', + textColorTitle: 'Litur texta' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/it.js b/ckeditor/plugins/colorbutton/lang/it.js new file mode 100644 index 0000000..9a3417a --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/it.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'it', { + auto: 'Automatico', + bgColorTitle: 'Colore sfondo', + 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', + '1ABC9C': 'Ciano intenso', + '2ECC71': 'Smeraldo', + '3498DB': 'Blu luminoso', + '9B59B6': 'Ametista', + '4E5F70': 'Blu grigiastro', + 'F1C40F': 'Giallo vivido', + '16A085': 'Ciano scuro', + '27AE60': 'Smeraldo scuro', + '2980B9': 'Blu intenso', + '8E44AD': 'Viola scuro', + '2C3E50': 'Blu desaturato', + 'F39C12': 'Arancio', + 'E67E22': 'Carota', + 'E74C3C': 'Rosso pallido', + 'ECF0F1': 'Argento luminoso', + '95A5A6': 'Ciano grigiastro chiaro', + 'DDD': 'Grigio chiaro', + 'D35400': 'Zucca', + 'C0392B': 'Rosso intenso', + 'BDC3C7': 'Argento', + '7F8C8D': 'Ciano grigiastro', + '999': 'Grigio scuro' + }, + more: 'Altri colori...', + panelTitle: 'Colori', + textColorTitle: 'Colore testo' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ja.js b/ckeditor/plugins/colorbutton/lang/ja.js new file mode 100644 index 0000000..06439e4 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ja.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ja', { + auto: '自動', + bgColorTitle: '背景色', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'その他の色...', + panelTitle: '色', + textColorTitle: '文字色' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ka.js b/ckeditor/plugins/colorbutton/lang/ka.js new file mode 100644 index 0000000..0f859a9 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ka.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ka', { + auto: 'ავტომატური', + bgColorTitle: 'ფონის ფერი', + 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: 'თეთრი', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'მეტი ფერი...', + panelTitle: 'ფერები', + textColorTitle: 'ტექსტის ფერი' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/km.js b/ckeditor/plugins/colorbutton/lang/km.js new file mode 100644 index 0000000..e3c1de7 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/km.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'km', { + auto: 'ស្វ័យប្រវត្តិ', + bgColorTitle: 'ពណ៌ផ្ទៃខាងក្រោយ', + colors: { + '000': 'ខ្មៅ', + '800000': 'ត្នោត​ចាស់', + '8B4513': 'Saddle Brown', + '2F4F4F': 'Dark Slate Gray', + '008080': 'Teal', + '000080': 'ខៀវ​ចាស់', + '4B0082': 'ធ្លះ', + '696969': 'ប្រផេះ​ក្រាស់', + B22222: 'Fire Brick', + A52A2A: 'ត្នោត', + DAA520: 'Golden Rod', + '006400': 'បៃតង​ចាស់', + '40E0D0': 'Turquoise', + '0000CD': 'Medium Blue', + '800080': 'Purple', + '808080': 'ប្រផេះ', + F00: 'ក្រហម', + FF8C00: 'ទឹក​ក្រូច​ចាស់', + FFD700: 'មាស', + '008000': 'បៃតង', + '0FF': 'Cyan', + '00F': 'ខៀវ', + EE82EE: 'ស្វាយ', + A9A9A9: 'Dim Gray', + FFA07A: 'Light Salmon', + FFA500: 'ទឹក​ក្រូច', + FFFF00: 'លឿង', + '00FF00': 'ក្រូច​ឆ្មារ', + AFEEEE: 'Pale Turquoise', + ADD8E6: 'Light Blue', + DDA0DD: 'Plum', + D3D3D3: 'Light Grey', + FFF0F5: 'Lavender Blush', + FAEBD7: 'Antique White', + FFFFE0: 'លឿង​ស្ដើង', + F0FFF0: 'Honeydew', + F0FFFF: 'ផ្ទៃមេឃ', + F0F8FF: 'Alice Blue', + E6E6FA: 'ឡាវិនដឺ', + FFF: 'ស', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'ពណ៌​ផ្សេង​ទៀត..', + panelTitle: 'ពណ៌', + textColorTitle: 'ពណ៌អក្សរ' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ko.js b/ckeditor/plugins/colorbutton/lang/ko.js new file mode 100644 index 0000000..de7494f --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ko.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ko', { + auto: '기본 색상', + bgColorTitle: '배경 색상', + 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: '흰색', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: '색상 선택...', + panelTitle: '색상', + textColorTitle: '글자 색상' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ku.js b/ckeditor/plugins/colorbutton/lang/ku.js new file mode 100644 index 0000000..80103e4 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ku.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ku', { + auto: 'خۆکار', + bgColorTitle: 'ڕەنگی پاشبنەما', + 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: 'سپی', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'ڕەنگی زیاتر...', + panelTitle: 'ڕەنگەکان', + textColorTitle: 'ڕەنگی دەق' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/lt.js b/ckeditor/plugins/colorbutton/lang/lt.js new file mode 100644 index 0000000..25206c7 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/lt.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'lt', { + auto: 'Automatinis', + bgColorTitle: 'Fono spalva', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Daugiau spalvų...', + panelTitle: 'Spalva', + textColorTitle: 'Teksto spalva' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/lv.js b/ckeditor/plugins/colorbutton/lang/lv.js new file mode 100644 index 0000000..f207155 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/lv.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'lv', { + auto: 'Automātiska', + bgColorTitle: 'Fona krāsa', + colors: { + '000': 'Melns', + '800000': 'Sarkanbrūns', + '8B4513': 'Sedlu brūns', + '2F4F4F': 'Tumšas tāfeles pelēks', + '008080': 'Zili-zaļš', + '000080': 'Jūras', + '4B0082': 'Indigo', + '696969': 'Tumši pelēks', + B22222: 'Ķieģeļsarkans', + A52A2A: 'Brūns', + DAA520: 'Zelta', + '006400': 'Tumši zaļš', + '40E0D0': 'Tirkīzs', + '0000CD': 'Vidēji zils', + '800080': 'Purpurs', + '808080': 'Pelēks', + F00: 'Sarkans', + FF8C00: 'Tumši oranžs', + FFD700: 'Zelta', + '008000': 'Zaļš', + '0FF': 'Tumšzils', + '00F': 'Zils', + EE82EE: 'Violets', + A9A9A9: 'Pelēks', + FFA07A: 'Gaiši laškrāsas', + FFA500: 'Oranžs', + FFFF00: 'Dzeltens', + '00FF00': 'Laima', + AFEEEE: 'Gaiši tirkīza', + ADD8E6: 'Gaiši zils', + DDA0DD: 'Plūmju', + D3D3D3: 'Gaiši pelēks', + FFF0F5: 'Lavandas sārts', + FAEBD7: 'Antīki balts', + FFFFE0: 'Gaiši dzeltens', + F0FFF0: 'Meduspile', + F0FFFF: 'Debesszils', + F0F8FF: 'Alises zils', + E6E6FA: 'Lavanda', + FFF: 'Balts', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Plašāka palete...', + panelTitle: 'Krāsa', + textColorTitle: 'Teksta krāsa' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/mk.js b/ckeditor/plugins/colorbutton/lang/mk.js new file mode 100644 index 0000000..9054b24 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/mk.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'mk', { + auto: 'Automatic', // MISSING + bgColorTitle: 'Background Color', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'More Colors...', // MISSING + panelTitle: 'Colors', + textColorTitle: 'Text Color' // MISSING +} ); diff --git a/ckeditor/plugins/colorbutton/lang/mn.js b/ckeditor/plugins/colorbutton/lang/mn.js new file mode 100644 index 0000000..6d3b94b --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/mn.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'mn', { + auto: 'Автоматаар', + bgColorTitle: 'Дэвсгэр өнгө', + colors: { + '000': 'Хар', + '800000': 'Хүрэн', + '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': 'Саарал', + F00: 'Улаан', + FF8C00: 'Dark Orange', + FFD700: 'Алт', + '008000': 'Ногоон', + '0FF': 'Цэнхэр', + '00F': 'Хөх', + EE82EE: 'Ягаан', + A9A9A9: 'Dim Gray', + FFA07A: 'Light Salmon', + FFA500: 'Улбар шар', + FFFF00: 'Шар', + '00FF00': 'Lime', + AFEEEE: 'Pale Turquoise', + ADD8E6: 'Light Blue', + DDA0DD: 'Plum', + D3D3D3: 'Цайвар саарал', + FFF0F5: 'Lavender Blush', + FAEBD7: 'Antique White', + FFFFE0: 'Light Yellow', + F0FFF0: 'Honeydew', + F0FFFF: 'Azure', + F0F8FF: 'Alice Blue', + E6E6FA: 'Lavender', + FFF: 'Цагаан', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Нэмэлт өнгөнүүд...', + panelTitle: 'Өнгөнүүд', + textColorTitle: 'Бичвэрийн өнгө' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ms.js b/ckeditor/plugins/colorbutton/lang/ms.js new file mode 100644 index 0000000..cb5ba9f --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ms.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ms', { + auto: 'Otomatik', + bgColorTitle: 'Warna Latarbelakang', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Warna lain-lain...', + panelTitle: 'Colors', + textColorTitle: 'Warna Text' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/nb.js b/ckeditor/plugins/colorbutton/lang/nb.js new file mode 100644 index 0000000..1e85b59 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/nb.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'nb', { + auto: 'Automatisk', + bgColorTitle: 'Bakgrunnsfarge', + colors: { + '000': 'Svart', + '800000': 'Rødbrun', + '8B4513': 'Salbrun', + '2F4F4F': 'Grønnsvart', + '008080': 'Blågrønn', + '000080': 'Marineblå', + '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: 'Svak asurblå', + F0F8FF: 'Svak cyan', + E6E6FA: 'Lavendel', + FFF: 'Hvit', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Flere farger...', + panelTitle: 'Farger', + textColorTitle: 'Tekstfarge' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/nl.js b/ckeditor/plugins/colorbutton/lang/nl.js new file mode 100644 index 0000000..8f0f197 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/nl.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'nl', { + auto: 'Automatisch', + bgColorTitle: 'Achtergrondkleur', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Meer kleuren...', + panelTitle: 'Kleuren', + textColorTitle: 'Tekstkleur' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/no.js b/ckeditor/plugins/colorbutton/lang/no.js new file mode 100644 index 0000000..79f1cce --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/no.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'no', { + auto: 'Automatisk', + bgColorTitle: 'Bakgrunnsfarge', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Flere farger...', + panelTitle: 'Farger', + textColorTitle: 'Tekstfarge' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/oc.js b/ckeditor/plugins/colorbutton/lang/oc.js new file mode 100644 index 0000000..82e86a0 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/oc.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'oc', { + auto: 'Automatic', + bgColorTitle: 'Color de rèireplan', + colors: { + '000': 'Negre', + '800000': 'Marron', + '8B4513': 'Brun de sèla', + '2F4F4F': 'Gris escur de lausa', + '008080': 'Guit', + '000080': 'Blau marina', + '4B0082': 'Indigo', + '696969': 'Gris escur', + B22222: 'Roge teula', + A52A2A: 'Brun', + DAA520: 'Aur ternit', + '006400': 'Verd escur', + '40E0D0': 'Turquesa', + '0000CD': 'Blau reial', + '800080': 'Violet', + '808080': 'Gris', + F00: 'Roge', + FF8C00: 'Irange escur', + FFD700: 'Aur', + '008000': 'Verd', + '0FF': 'Cian', + '00F': 'Blau', + EE82EE: 'Violet', + A9A9A9: 'Gris tamisat', + FFA07A: 'Salmon clar', + FFA500: 'Irange', + FFFF00: 'Jaune', + '00FF00': 'Lima', + AFEEEE: 'Turquesa clar', + ADD8E6: 'Blau clar', + DDA0DD: 'Pruna', + D3D3D3: 'Gris clar', + FFF0F5: 'Fard lavanda', + FAEBD7: 'Blanc antic', + FFFFE0: 'Jaune clar', + F0FFF0: 'Verd rosada', + F0FFFF: 'Azur', + F0F8FF: 'Blau Alícia', + E6E6FA: 'Lavanda', + FFF: 'Blanc', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Mai de colors...', + panelTitle: 'Colors', + textColorTitle: 'Color del tèxte' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/pl.js b/ckeditor/plugins/colorbutton/lang/pl.js new file mode 100644 index 0000000..f470253 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/pl.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'pl', { + auto: 'Automatycznie', + bgColorTitle: 'Kolor tła', + 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', + '1ABC9C': 'Cyjan', + '2ECC71': 'Szmaragdowy', + '3498DB': 'Jasnoniebieski', + '9B59B6': 'Ametystowy', + '4E5F70': 'Szaroniebieski', + 'F1C40F': 'Żółty', + '16A085': 'Ciemny cyjan', + '27AE60': 'Ciemnoszmaragdowy', + '2980B9': 'Ciemnoniebieski', + '8E44AD': 'Ciemnofioletowy', + '2C3E50': 'Nienasycony niebieski', + 'F39C12': 'Pomarańczowy', + 'E67E22': 'Marchewkowy', + 'E74C3C': 'Bladoczerwony', + 'ECF0F1': 'Jasnosrebrny', + '95A5A6': 'Szarocyjanowy', + 'DDD': 'Jasnoszary', + 'D35400': 'Dyniowy', + 'C0392B': 'Ciemnoczerwony', + 'BDC3C7': 'Srebrny', + '7F8C8D': 'Szarawy cyjan', + '999': 'Ciemnoszary' + }, + more: 'Więcej kolorów...', + panelTitle: 'Kolory', + textColorTitle: 'Kolor tekstu' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/pt-br.js b/ckeditor/plugins/colorbutton/lang/pt-br.js new file mode 100644 index 0000000..b5fb7fa --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/pt-br.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'pt-br', { + auto: 'Automático', + bgColorTitle: 'Cor do Plano de Fundo', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Mais Cores...', + panelTitle: 'Cores', + textColorTitle: 'Cor do Texto' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/pt.js b/ckeditor/plugins/colorbutton/lang/pt.js new file mode 100644 index 0000000..495daaf --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/pt.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'pt', { + auto: 'Automático', + bgColorTitle: 'Cor de fundo', + colors: { + '000': 'Black', + '800000': 'Castanho', + '8B4513': 'Saddle Brown', + '2F4F4F': 'Dark Slate Gray', + '008080': 'Teal', + '000080': 'Azul naval', + '4B0082': 'Indigo', + '696969': 'Cinza escuro', + B22222: 'Vermelho tijolo', + A52A2A: 'Castanho', + DAA520: 'Dourado (daa520)', + '006400': 'Verde escuro (006400)', + '40E0D0': 'Turquesa', + '0000CD': 'Azul médio (0000cd)', + '800080': 'Purple', + '808080': 'Cinza', + F00: 'Vermelho', + FF8C00: 'Laranja escuro', + FFD700: 'Dourado', + '008000': 'Verde', + '0FF': 'Ciano', + '00F': 'Azul', + EE82EE: 'Violeta', + A9A9A9: 'Cinza fosco', + FFA07A: 'Salmão claro', + FFA500: 'Laranja', + FFFF00: 'Amarelo', + '00FF00': 'Limão (Verde espectro)', + AFEEEE: 'Turquesa pálida (afeeee)', + ADD8E6: 'Light Blue', + DDA0DD: 'Ameixa', + D3D3D3: 'Cinza claro', + FFF0F5: 'Lavanda avermelhada', + FAEBD7: 'Branco velho', + FFFFE0: 'Amarelo claro', + F0FFF0: 'Maná (f0fff0)', + F0FFFF: 'Azul celeste', + F0F8FF: 'Azul Alice (f0f8ff)', + E6E6FA: 'Lavanda', + FFF: 'Branco', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Mais cores...', + panelTitle: 'Cores', + textColorTitle: 'Cor do texto' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ro.js b/ckeditor/plugins/colorbutton/lang/ro.js new file mode 100644 index 0000000..3b6b413 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ro.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ro', { + auto: 'Automatic', + bgColorTitle: 'Coloarea fundalului', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Mai multe culori...', + panelTitle: 'Colors', + textColorTitle: 'Culoarea textului' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ru.js b/ckeditor/plugins/colorbutton/lang/ru.js new file mode 100644 index 0000000..34ef3a2 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ru.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ru', { + auto: 'Автоматически', + bgColorTitle: 'Цвет фона', + 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: 'Белый', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Ещё цвета...', + panelTitle: 'Цвета', + textColorTitle: 'Цвет текста' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/si.js b/ckeditor/plugins/colorbutton/lang/si.js new file mode 100644 index 0000000..dfa9007 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/si.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'si', { + auto: 'Automatic', // MISSING + bgColorTitle: 'පසුබිම් වර්ණය', + 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 + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'More Colors...', // MISSING + panelTitle: 'වර්ණය', + textColorTitle: 'අක්ෂර වර්ණ' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/sk.js b/ckeditor/plugins/colorbutton/lang/sk.js new file mode 100644 index 0000000..3df61b6 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/sk.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'sk', { + auto: 'Automaticky', + bgColorTitle: 'Farba pozadia', + colors: { + '000': 'Čierna', + '800000': 'Gaštanová', + '8B4513': 'Sedlová hnedá', + '2F4F4F': 'Tmavo bridlicovo sivá', + '008080': 'Modrozelená', + '000080': 'Tmavomodrá', + '4B0082': 'Indigo', + '696969': 'Tmavá sivá', + B22222: 'Ohňová tehlová', + A52A2A: 'Hnedá', + DAA520: 'Zlatobyľ', + '006400': 'Tmavá zelená', + '40E0D0': 'Tyrkysová', + '0000CD': 'Stredná modrá', + '800080': 'Purpurová', + '808080': 'Sivá', + F00: 'Červená', + FF8C00: 'Tmavá oranžová', + FFD700: 'Zlatá', + '008000': 'Zelená', + '0FF': 'Azúrová', + '00F': 'Modrá', + EE82EE: 'Fialová', + A9A9A9: 'Tmavá sivá', + FFA07A: 'Svetlá lososová', + FFA500: 'Oranžová', + FFFF00: 'Žltá', + '00FF00': 'Vápenná', + AFEEEE: 'Svetlá tyrkysová', + ADD8E6: 'Svetlá modrá', + DDA0DD: 'Slivková', + D3D3D3: 'Svetlá sivá', + FFF0F5: 'Levanduľovo červená', + FAEBD7: 'Antická biela', + FFFFE0: 'Svetlá žltá', + F0FFF0: 'Medová', + F0FFFF: 'Azúrová', + F0F8FF: 'Alicovo modrá', + E6E6FA: 'Levanduľová', + FFF: 'Biela', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Viac farieb...', + panelTitle: 'Farby', + textColorTitle: 'Farba textu' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/sl.js b/ckeditor/plugins/colorbutton/lang/sl.js new file mode 100644 index 0000000..f4d4474 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/sl.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'sl', { + auto: 'Samodejno', + bgColorTitle: 'Barva ozadja', + colors: { + '000': 'Črna', + '800000': 'Maroon', + '8B4513': 'Saddle Brown', + '2F4F4F': 'Dark Slate Gray', + '008080': 'Teal', + '000080': 'Navy', + '4B0082': 'Indigo', + '696969': 'Dark Gray', + B22222: 'Fire Brick', + A52A2A: 'Rjava', + DAA520: 'Golden Rod', + '006400': 'Temno zelena', + '40E0D0': 'Turkizna', + '0000CD': 'Srednje modra', + '800080': 'Škrlatna', + '808080': 'Siva', + F00: 'Rdeča', + FF8C00: 'Temno oranžna', + FFD700: 'Zlata', + '008000': 'Zelena', + '0FF': 'Sinja', + '00F': 'Modra', + EE82EE: 'Vijolična', + A9A9A9: 'Dim Gray', + FFA07A: 'Light Salmon', + FFA500: 'Oranžna', + FFFF00: 'Rumena', + '00FF00': 'Lime', + AFEEEE: 'Pale Turquoise', + ADD8E6: 'Svetlo modra', + DDA0DD: 'Plum', + D3D3D3: 'Svetlo siva', + FFF0F5: 'Lavender Blush', + FAEBD7: 'Antique White', + FFFFE0: 'Svetlo rumena', + F0FFF0: 'Honeydew', + F0FFFF: 'Azure', + F0F8FF: 'Alice Blue', + E6E6FA: 'Lavender', + FFF: 'Bela', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Več barv ...', + panelTitle: 'Barve', + textColorTitle: 'Barva besedila' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/sq.js b/ckeditor/plugins/colorbutton/lang/sq.js new file mode 100644 index 0000000..c9e2e2a --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/sq.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'sq', { + auto: 'Automatik', + bgColorTitle: 'Ngjyra e Prapavijës', + colors: { + '000': 'E zezë', + '800000': 'Ngjyrë gështenjë', + '8B4513': 'Ngjyrë Shale Kafe', + '2F4F4F': 'Ngjyrë Gri të errët ardëz', + '008080': 'Ngjyrë bajukë', + '000080': 'Ngjyrë Marine', + '4B0082': 'Indigo', + '696969': 'Gri e Errët', + B22222: 'Tullë në Flakë', + A52A2A: 'Ngjytë Kafe', + DAA520: 'Shkop i Artë', + '006400': 'E Gjelbër e Errët', + '40E0D0': 'Ngjyrë e Bruztë', + '0000CD': 'E Kaltër e Mesme', + '800080': 'Vjollcë', + '808080': 'Gri', + F00: 'E Kuqe', + FF8C00: 'E Portokalltë e Errët', + FFD700: 'Ngjyrë Ari', + '008000': 'E Gjelbërt', + '0FF': 'Cyan', + '00F': 'E Kaltër', + EE82EE: 'Vjollcë', + A9A9A9: 'Gri e Zbehtë', + FFA07A: 'Salmon i Ndritur', + FFA500: 'E Portokalltë', + FFFF00: 'E Verdhë', + '00FF00': 'Ngjyrë Gëlqere', + AFEEEE: 'Ngjyrë e Bruztë e Zbehtë', + ADD8E6: 'E Kaltër e Ndritur', + DDA0DD: 'Ngjyrë Llokumi', + D3D3D3: 'Gri e Ndritur', + FFF0F5: 'Ngjyrë Purpur e Skuqur', + FAEBD7: 'E Bardhë Antike', + FFFFE0: 'E verdhë e Ndritur', + F0FFF0: 'Ngjyrë Nektari', + F0FFFF: 'Ngjyrë Qielli', + F0F8FF: 'E Kaltër Alice', + E6E6FA: 'Ngjyrë Purpur e Zbetë', + FFF: 'E bardhë', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Më Shumë Ngjyra...', + panelTitle: 'Ngjyrat', + textColorTitle: 'Ngjyra e Tekstit' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/sr-latn.js b/ckeditor/plugins/colorbutton/lang/sr-latn.js new file mode 100644 index 0000000..db6bf8d --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/sr-latn.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'sr-latn', { + auto: 'Automatski', + bgColorTitle: 'Boja pozadine', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Više boja...', + panelTitle: 'Colors', + textColorTitle: 'Boja teksta' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/sr.js b/ckeditor/plugins/colorbutton/lang/sr.js new file mode 100644 index 0000000..daea943 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/sr.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'sr', { + auto: 'Аутоматски', + bgColorTitle: 'Боја позадине', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Више боја...', + panelTitle: 'Colors', + textColorTitle: 'Боја текста' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/sv.js b/ckeditor/plugins/colorbutton/lang/sv.js new file mode 100644 index 0000000..7e30b1d --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/sv.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'sv', { + auto: 'Automatisk', + bgColorTitle: 'Bakgrundsfärg', + 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 lavendel', + FAEBD7: 'Antikvit', + FFFFE0: 'Ljusgul', + F0FFF0: 'Honungsdagg', + F0FFFF: 'Azurblå', + F0F8FF: 'Aliceblå', + E6E6FA: 'Lavendel', + FFF: 'Vit', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Fler färger...', + panelTitle: 'Färger', + textColorTitle: 'Textfärg' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/th.js b/ckeditor/plugins/colorbutton/lang/th.js new file mode 100644 index 0000000..e869109 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/th.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'th', { + auto: 'สีอัตโนมัติ', + bgColorTitle: 'สีพื้นหลัง', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'เลือกสีอื่นๆ...', + panelTitle: 'Colors', + textColorTitle: 'สีตัวอักษร' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/tr.js b/ckeditor/plugins/colorbutton/lang/tr.js new file mode 100644 index 0000000..80fe10b --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/tr.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'tr', { + auto: 'Otomatik', + bgColorTitle: 'Arka Renk', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Diğer renkler...', + panelTitle: 'Renkler', + textColorTitle: 'Yazı Rengi' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/tt.js b/ckeditor/plugins/colorbutton/lang/tt.js new file mode 100644 index 0000000..595349f --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/tt.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'tt', { + auto: 'Автоматик', + bgColorTitle: 'Фон төсе', + 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: 'Ак', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Башка төсләр...', + panelTitle: 'Төсләр', + textColorTitle: 'Текст төсе' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/ug.js b/ckeditor/plugins/colorbutton/lang/ug.js new file mode 100644 index 0000000..f51de40 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/ug.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'ug', { + auto: 'ئۆزلۈكىدىن', + bgColorTitle: 'تەگلىك رەڭگى', + 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', + AFEEEE: 'سۇس ھاۋا رەڭ', + ADD8E6: 'ئوچۇق كۆك', + DDA0DD: 'قىزغۇچ بىنەپشە', + D3D3D3: 'سۇس كۆكۈچ كۈلرەڭ', + FFF0F5: 'سۇس قىزغۇچ بىنەپشە', + FAEBD7: 'Antique White', + FFFFE0: 'سۇس سېرىق', + F0FFF0: 'Honeydew', + F0FFFF: 'ئاسمان كۆكى', + F0F8FF: 'سۇس كۆك', + E6E6FA: 'سۇس بىنەپشە', + FFF: 'ئاق', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'باشقا رەڭ', + panelTitle: 'رەڭ', + textColorTitle: 'تېكىست رەڭگى' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/uk.js b/ckeditor/plugins/colorbutton/lang/uk.js new file mode 100644 index 0000000..fbe9048 --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/uk.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'uk', { + auto: 'Авто', + bgColorTitle: 'Колір фону', + 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: 'Білий', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Кольори...', + panelTitle: 'Кольори', + textColorTitle: 'Колір тексту' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/vi.js b/ckeditor/plugins/colorbutton/lang/vi.js new file mode 100644 index 0000000..040341f --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/vi.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'vi', { + auto: 'Tự động', + bgColorTitle: 'Màu nền', + 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', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: 'Màu khác...', + panelTitle: 'Màu sắc', + textColorTitle: 'Màu chữ' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/zh-cn.js b/ckeditor/plugins/colorbutton/lang/zh-cn.js new file mode 100644 index 0000000..8c10b5e --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/zh-cn.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'zh-cn', { + auto: '自动', + bgColorTitle: '背景颜色', + 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: '白', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: '其它颜色...', + panelTitle: '颜色', + textColorTitle: '文本颜色' +} ); diff --git a/ckeditor/plugins/colorbutton/lang/zh.js b/ckeditor/plugins/colorbutton/lang/zh.js new file mode 100644 index 0000000..e3c617f --- /dev/null +++ b/ckeditor/plugins/colorbutton/lang/zh.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colorbutton', 'zh', { + auto: '自動', + bgColorTitle: '背景顏色', + 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: '白色', + '1ABC9C': 'Strong Cyan', // MISSING + '2ECC71': 'Emerald', // MISSING + '3498DB': 'Bright Blue', // MISSING + '9B59B6': 'Amethyst', // MISSING + '4E5F70': 'Grayish Blue', // MISSING + 'F1C40F': 'Vivid Yellow', // MISSING + '16A085': 'Dark Cyan', // MISSING + '27AE60': 'Dark Emerald', // MISSING + '2980B9': 'Strong Blue', // MISSING + '8E44AD': 'Dark Violet', // MISSING + '2C3E50': 'Desaturated Blue', // MISSING + 'F39C12': 'Orange', // MISSING + 'E67E22': 'Carrot', // MISSING + 'E74C3C': 'Pale Red', // MISSING + 'ECF0F1': 'Bright Silver', // MISSING + '95A5A6': 'Light Grayish Cyan', // MISSING + 'DDD': 'Light Gray', // MISSING + 'D35400': 'Pumpkin', // MISSING + 'C0392B': 'Strong Red', // MISSING + 'BDC3C7': 'Silver', // MISSING + '7F8C8D': 'Grayish Cyan', // MISSING + '999': 'Dark Gray' // MISSING + }, + more: '更多顏色', + panelTitle: '顏色', + textColorTitle: '文字顏色' +} ); diff --git a/ckeditor/plugins/colorbutton/plugin.js b/ckeditor/plugins/colorbutton/plugin.js new file mode 100644 index 0000000..2b8b390 --- /dev/null +++ b/ckeditor/plugins/colorbutton/plugin.js @@ -0,0 +1,411 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md 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', + // jscs:disable maximumLineLength + lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'bgcolor,textcolor', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + var config = editor.config, + lang = editor.lang.colorbutton; + + if ( !CKEDITOR.env.hc ) { + addButton( 'TextColor', 'fore', lang.textColorTitle, 10, { + contentTransformations: [ + [ + { + element: 'font', + check: 'span{color}', + left: function( element ) { + return !!element.attributes.color; + }, + right: function( element ) { + element.name = 'span'; + + element.attributes.color && ( element.styles.color = element.attributes.color ); + delete element.attributes.color; + } + } + ] + ] + } ); + + var bgOptions = {}, + normalizeBackground = editor.config.colorButton_normalizeBackground; + + if ( normalizeBackground === undefined || normalizeBackground ) { + // If background contains only color, then we want to convert it into background-color so that it's + // correctly picked by colorbutton plugin. + bgOptions.contentTransformations = [ + [ + { + // Transform span that specify background with color only to background-color. + element: 'span', + left: function( element ) { + var tools = CKEDITOR.tools; + if ( element.name != 'span' || !element.styles || !element.styles.background ) { + return false; + } + + var background = tools.style.parse.background( element.styles.background ); + + // We return true only if background specifies **only** color property, and there's only one background directive. + return background.color && tools.objectKeys( background ).length === 1; + }, + right: function( element ) { + var style = new CKEDITOR.style( editor.config.colorButton_backStyle, { + color: element.styles.background + } ), + definition = style.getDefinition(); + + // Align the output object with the template used in config. + element.name = definition.element; + element.styles = definition.styles; + element.attributes = definition.attributes || {}; + + return element; + } + } + ] + ]; + } + + addButton( 'BGColor', 'back', lang.bgColorTitle, 20, bgOptions ); + } + + function addButton( name, type, title, order, options ) { + var style = new CKEDITOR.style( config[ 'colorButton_' + type + 'Style' ] ), + colorBoxId = CKEDITOR.tools.getNextId() + '_colorBox'; + + options = options || {}; + + editor.ui.add( name, CKEDITOR.UI_PANELBUTTON, { + label: title, + title: title, + modes: { wysiwyg: 1 }, + editorFocus: 0, + toolbar: 'colors,' + order, + allowedContent: style, + requiredContent: style, + contentTransformations: options.contentTransformations, + + panel: { + css: CKEDITOR.skin.getPath( 'editor' ), + 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 + }, + + refresh: function() { + if ( !editor.activeFilter.check( style ) ) + this.setState( CKEDITOR.TRISTATE_DISABLED ); + }, + + // The automatic colorbox should represent the real color (#6010) + onOpen: function() { + + var selection = editor.getSelection(), + block = selection && selection.getStartElement(), + path = editor.elementPath( block ), + color; + + if ( !path ) + return; + + // 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'; + + if ( config.colorButton_enableAutomatic !== false ) { + this._.panel._.iframe.getFrameDocument().getById( colorBoxId ).setStyle( 'background-color', color ); + } + + return color; + } + } ); + } + + function renderColors( panel, type, colorBoxId ) { + var output = [], + colors = config.colorButton_colors.split( ',' ), + colorsPerRow = config.colorButton_colorsPerRow || 6, + // Tells if we should include "More Colors..." button. + moreColorsEnabled = editor.plugins.colordialog && config.colorButton_enableMore !== false, + // aria-setsize and aria-posinset attributes are used to indicate size of options, because + // screen readers doesn't play nice with table, based layouts (#12097). + total = colors.length + ( moreColorsEnabled ? 2 : 1 ); + + var clickFn = CKEDITOR.tools.addFunction( function( color, type ) { + 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 ); + } + + if ( color == '?' ) { + editor.openDialog( 'colordialog', function() { + this.on( 'ok', onColorDialogClose ); + this.on( 'cancel', onColorDialogClose ); + } ); + + return; + } + + editor.focus(); + + panel.hide(); + + editor.fire( 'saveSnapshot' ); + + // Clean up any conflicting style within the range. + editor.removeStyle( new CKEDITOR.style( config[ 'colorButton_' + type + 'Style' ], { color: 'inherit' } ) ); + + 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 ); + }; + + editor.applyStyle( new CKEDITOR.style( colorStyle, { color: color } ) ); + } + + editor.fire( 'saveSnapshot' ); + } ); + + if ( config.colorButton_enableAutomatic !== false ) { + // Render the "Automatic" button. + output.push( '' + + '' + + '' + + '' + + '' + + '
    ', lang.auto, '
    ' + + '
    ' ); + } + output.push( '' ); + + // Render the color boxes. + for ( var i = 0; i < colors.length; i++ ) { + if ( ( i % colorsPerRow ) === 0 ) + output.push( '' ); + + 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 . See #5676 + if ( !parts[ 1 ] ) + colorName = '#' + colorName.replace( /^(.)(.)(.)$/, '$1$1$2$2$3$3' ); + + var colorLabel = editor.lang.colorbutton.colors[ colorCode ] || colorCode; + output.push( '' ); + } + + // Render the "More Colors" button. + if ( moreColorsEnabled ) { + output.push( '' + + '' + + '' ); // tr is later in the code. + } + + output.push( '
    ' + + '' + + '' + + '' + + '
    ' + + '', lang.more, '' + + '
    ' ); + + return output.join( '' ); + } + + function isUnstylable( ele ) { + return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' ); + } + } +} ); + +/** + * Whether to enable the **More Colors** button in the color selectors. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * config.colorButton_enableMore = false; + * + * @cfg {Boolean} [colorButton_enableMore=true] + * @member CKEDITOR.config + */ + +/** + * Defines the colors to be displayed in the color selectors. This is a string + * containing hexadecimal notation for HTML colors, without the `'#'` prefix. + * + * **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'`. + * + * **Since 4.6.2:** The default color palette has changed. It contains fewer colors in more + * pastel shades than the previous one. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * // Brazil colors only. + * config.colorButton_colors = '00923E,F8C100,28166F'; + * + * config.colorButton_colors = 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00'; + * + * // CKEditor color palette available before version 4.6.2. + * 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'; + * + * @cfg {String} [colorButton_colors=see source] + * @member CKEDITOR.config + */ +CKEDITOR.config.colorButton_colors = '1ABC9C,2ECC71,3498DB,9B59B6,4E5F70,F1C40F,' + + '16A085,27AE60,2980B9,8E44AD,2C3E50,F39C12,' + + 'E67E22,E74C3C,ECF0F1,95A5A6,DDD,FFF,' + + 'D35400,C0392B,BDC3C7,7F8C8D,999,000'; + +/** + * Stores the style definition that applies the text foreground color. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * // This is actually the default value. + * config.colorButton_foreStyle = { + * element: 'span', + * styles: { color: '#(color)' } + * }; + * + * @cfg [colorButton_foreStyle=see source] + * @member CKEDITOR.config + */ +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. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * // This is actually the default value. + * config.colorButton_backStyle = { + * element: 'span', + * styles: { 'background-color': '#(color)' } + * }; + * + * @cfg [colorButton_backStyle=see source] + * @member CKEDITOR.config + */ +CKEDITOR.config.colorButton_backStyle = { + element: 'span', + styles: { 'background-color': '#(color)' } +}; + +/** + * Whether to enable the **Automatic** button in the color selectors. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * config.colorButton_enableAutomatic = false; + * + * @cfg {Boolean} [colorButton_enableAutomatic=true] + * @member CKEDITOR.config + */ + +/** + * Defines how many colors will be shown per row in the color selectors. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * config.colorButton_colorsPerRow = 8; + * + * @since 4.6.2 + * @cfg {Number} [colorButton_colorsPerRow=6] + * @member CKEDITOR.config + */ + +/** + * Whether the plugin should convert `background` CSS properties with color only, to a `background-color` property, + * allowing the [Color Button](http://ckeditor.com/addon/colorbutton) plugin to edit these styles. + * + * config.colorButton_normalizeBackground = false; + * + * @since 4.6.1 + * @cfg {Boolean} [colorButton_normalizeBackground=true] + * @member CKEDITOR.config + */ diff --git a/ckeditor/plugins/colordialog/dialogs/colordialog.css b/ckeditor/plugins/colordialog/dialogs/colordialog.css new file mode 100644 index 0000000..e284ba0 --- /dev/null +++ b/ckeditor/plugins/colordialog/dialogs/colordialog.css @@ -0,0 +1,20 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +.cke_colordialog_colorcell { + width: 12px; /* All cells have equal width which depends on parent width (in this case table parent). Width works more like max-width. */ + height: 14px; + padding: 1px; /* Padding is replaced by border for focused cells. Prevents 'jumping' when adding borders. */ +} + +.cke_colordialog_colorcell.cke_colordialog_focused_light, +.cke_colordialog_colorcell.cke_colordialog_focused_dark { + padding: 0; /* Shrink cell to allow 1px border indicating focus. */ + border: 1px dotted #000; +} + +.cke_colordialog_colorcell.cke_colordialog_focused_dark { + border-color: #FFF; +} diff --git a/ckeditor/plugins/colordialog/dialogs/colordialog.js b/ckeditor/plugins/colordialog/dialogs/colordialog.js new file mode 100644 index 0000000..af722f3 --- /dev/null +++ b/ckeditor/plugins/colordialog/dialogs/colordialog.js @@ -0,0 +1,343 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md 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, + colorCellCls = 'cke_colordialog_colorcell', + focusedColorLightCls = 'cke_colordialog_focused_light', + focusedColorDarkCls = 'cke_colordialog_focused_dark', + selectedColorCls = 'cke_colordialog_selected'; + + // Reference the dialog. + var dialog, + selected; + + var spacer = { + type: 'html', + html: ' ' + }; + + function clearSelected() { + $doc.getById( selHiColorId ).removeStyle( 'background-color' ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' ); + removeSelected(); + } + + function updateSelected( evt ) { + var target = evt.data.getTarget(), + color; + + if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { + removeSelected(); + + selected = target; + selected.setAttribute( 'aria-selected', true ); + selected.addClass( selectedColorCls ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color ); + } + } + + function removeSelected() { + if ( selected ) { + selected.removeClass( selectedColorCls ); + selected.removeAttribute( 'aria-selected' ); // Attribute aria-selected should also be removed when selection changes. + selected = null; + } + } + + // Basing black-white decision off of luma scheme using the Rec. 709 version. + function isLightColor( 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; + } + + // 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 CSS class to show focus. + if ( isFocus ) { + target.addClass( isLightColor( color ) ? focusedColorLightCls : focusedColorDarkCls ); + } + setHighlight( color ); + } + } + + function clearHighlight() { + focused.removeClass( focusedColorLightCls ); + focused.removeClass( focusedColorDarkCls ); + setHighlight( false ); + focused = null; + } + + // Remove previously focused style. + function removeHighlight( event ) { + var isFocus = !( /mouse/ ).test( event.name ), + target = isFocus && focused; + + if ( target ) { + target.removeClass( focusedColorLightCls ); + target.removeClass( focusedColorDarkCls ); + } + + if ( !( focused || hovered ) ) { + setHighlight( false ); + } + } + + function setHighlight( color ) { + if ( color ) { + $doc.getById( hicolorId ).setStyle( 'background-color', color ); + $doc.getById( hicolorTextId ).setHtml( color ); + + } else { + $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( '' + + '' + + '
    ' + lang.options + '
    ' ); + + 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 ' + colorCellCls ); + 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 ); + + var colorLabel = numbering( 'color_table_cell' ); + cell.setAttribute( 'aria-labelledby', colorLabel ); + cell.append( CKEDITOR.dom.element.createFromHtml( '' + color + '', 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. + appendColorCell( oRow.$, '#000000' ); + for ( var n = 0; n < 16; n++ ) { + var c = n.toString( 16 ); + appendColorCell( oRow.$, '#' + c + c + c + c + c + c ); + } + appendColorCell( oRow.$, '#ffffff' ); + } + + var numbering = function( id ) { + return CKEDITOR.tools.getNextId() + '_' + id; + }, + hicolorId = numbering( 'hicolor' ), + hicolorTextId = numbering( 'hicolortext' ), + selHiColorId = numbering( 'selhicolor' ), + table; + + createColorTable(); + + // Load CSS. + CKEDITOR.document.appendStyleSheet( CKEDITOR.getUrl( CKEDITOR.plugins.get( 'colordialog' ).path + 'dialogs/colordialog.css' ) ); + + 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: '

    ', + 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: '' + lang.highlight + '' + + '
    ' + + '
     
    ' + lang.selected + '' + + '
    ' + }, + { + type: 'text', + label: lang.selected, + labelStyle: 'display:none', + id: 'selectedColor', + style: 'width: 76px;margin-top:4px', + 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', + label: lang.clear, + onClick: clearSelected + } ] + } ] + } ] + } ] + }; +} ); diff --git a/ckeditor/plugins/colordialog/lang/af.js b/ckeditor/plugins/colordialog/lang/af.js new file mode 100644 index 0000000..29b2035 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/af.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'af', { + clear: 'Herstel', + highlight: 'Aktief', + options: 'Kleuropsies', + selected: 'Geselekteer', + title: 'Kies kleur' +} ); diff --git a/ckeditor/plugins/colordialog/lang/ar.js b/ckeditor/plugins/colordialog/lang/ar.js new file mode 100644 index 0000000..084e443 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ar.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ar', { + clear: 'مسح', + highlight: 'تحديد', + options: 'اختيارات الألوان', + selected: 'اللون المختار', + title: 'اختر اللون' +} ); diff --git a/ckeditor/plugins/colordialog/lang/az.js b/ckeditor/plugins/colordialog/lang/az.js new file mode 100644 index 0000000..f27bf95 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/az.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'az', { + clear: 'Təmizlə', + highlight: 'Ayırmaq', + options: 'Rəng seçimləri', + selected: 'Seçilmiş rəng', + title: 'Rəngi seç' +} ); diff --git a/ckeditor/plugins/colordialog/lang/bg.js b/ckeditor/plugins/colordialog/lang/bg.js new file mode 100644 index 0000000..882ba39 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/bg.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bg', { + clear: 'Изчистване', + highlight: 'Осветяване', + options: 'Цветови опции', + selected: 'Изберете цвят', + title: 'Изберете цвят' +} ); diff --git a/ckeditor/plugins/colordialog/lang/bn.js b/ckeditor/plugins/colordialog/lang/bn.js new file mode 100644 index 0000000..267d244 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/bn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/bs.js b/ckeditor/plugins/colordialog/lang/bs.js new file mode 100644 index 0000000..14cbdc7 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/bs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bs', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/ca.js b/ckeditor/plugins/colordialog/lang/ca.js new file mode 100644 index 0000000..f1dfe27 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ca', { + clear: 'Neteja', + highlight: 'Destacat', + options: 'Opcions del color', + selected: 'Color Seleccionat', + title: 'Seleccioni el color' +} ); diff --git a/ckeditor/plugins/colordialog/lang/cs.js b/ckeditor/plugins/colordialog/lang/cs.js new file mode 100644 index 0000000..35e880f --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/cs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'cs', { + clear: 'Vyčistit', + highlight: 'Zvýraznit', + options: 'Nastavení barvy', + selected: 'Vybráno', + title: 'Výběr barvy' +} ); diff --git a/ckeditor/plugins/colordialog/lang/cy.js b/ckeditor/plugins/colordialog/lang/cy.js new file mode 100644 index 0000000..f639c3a --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/cy.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'cy', { + clear: 'Clirio', + highlight: 'Uwcholeuo', + options: 'Opsiynau Lliw', + selected: 'Lliw a Ddewiswyd', + title: 'Dewis lliw' +} ); diff --git a/ckeditor/plugins/colordialog/lang/da.js b/ckeditor/plugins/colordialog/lang/da.js new file mode 100644 index 0000000..f538af7 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/da.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'da', { + clear: 'Nulstil', + highlight: 'Markér', + options: 'Farvemuligheder', + selected: 'Valgt farve', + title: 'Vælg farve' +} ); diff --git a/ckeditor/plugins/colordialog/lang/de-ch.js b/ckeditor/plugins/colordialog/lang/de-ch.js new file mode 100644 index 0000000..b392ba5 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/de-ch.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'de-ch', { + clear: 'Entfernen', + highlight: 'Hervorheben', + options: 'Farboptionen', + selected: 'Ausgewählte Farbe', + title: 'Farbe auswählen' +} ); diff --git a/ckeditor/plugins/colordialog/lang/de.js b/ckeditor/plugins/colordialog/lang/de.js new file mode 100644 index 0000000..67168e4 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/de.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'de', { + clear: 'Entfernen', + highlight: 'Hervorheben', + options: 'Farboptionen', + selected: 'Ausgewählte Farbe', + title: 'Farbe auswählen' +} ); diff --git a/ckeditor/plugins/colordialog/lang/el.js b/ckeditor/plugins/colordialog/lang/el.js new file mode 100644 index 0000000..095f398 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/el.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'el', { + clear: 'Εκκαθάριση', + highlight: 'Σήμανση', + options: 'Επιλογές Χρωμάτων', + selected: 'Επιλεγμένο Χρώμα', + title: 'Επιλογή χρώματος' +} ); diff --git a/ckeditor/plugins/colordialog/lang/en-au.js b/ckeditor/plugins/colordialog/lang/en-au.js new file mode 100644 index 0000000..9d74b5d --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en-au.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-au', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/en-ca.js b/ckeditor/plugins/colordialog/lang/en-ca.js new file mode 100644 index 0000000..ca9cbee --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-ca', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/en-gb.js b/ckeditor/plugins/colordialog/lang/en-gb.js new file mode 100644 index 0000000..865ff0c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en-gb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-gb', { + clear: 'Clear', + highlight: 'Highlight', + options: 'Colour Options', + selected: 'Selected Colour', + title: 'Select colour' +} ); diff --git a/ckeditor/plugins/colordialog/lang/en.js b/ckeditor/plugins/colordialog/lang/en.js new file mode 100644 index 0000000..8f4f2e2 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en', { + clear: 'Clear', + highlight: 'Highlight', + options: 'Color Options', + selected: 'Selected Color', + title: 'Select color' +} ); diff --git a/ckeditor/plugins/colordialog/lang/eo.js b/ckeditor/plugins/colordialog/lang/eo.js new file mode 100644 index 0000000..148f63c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/eo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'eo', { + clear: 'Forigi', + highlight: 'Detaloj', + options: 'Opcioj pri koloroj', + selected: 'Selektita koloro', + title: 'Selekti koloron' +} ); diff --git a/ckeditor/plugins/colordialog/lang/es.js b/ckeditor/plugins/colordialog/lang/es.js new file mode 100644 index 0000000..cf0bedc --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/es.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'es', { + clear: 'Borrar', + highlight: 'Muestra', + options: 'Opciones de colores', + selected: 'Elegido', + title: 'Elegir color' +} ); diff --git a/ckeditor/plugins/colordialog/lang/et.js b/ckeditor/plugins/colordialog/lang/et.js new file mode 100644 index 0000000..02601b5 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/et.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'et', { + clear: 'Eemalda', + highlight: 'Näidis', + options: 'Värvi valikud', + selected: 'Valitud värv', + title: 'Värvi valimine' +} ); diff --git a/ckeditor/plugins/colordialog/lang/eu.js b/ckeditor/plugins/colordialog/lang/eu.js new file mode 100644 index 0000000..efa3647 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/eu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'eu', { + clear: 'Garbitu', + highlight: 'Nabarmendu', + options: 'Kolore aukerak', + selected: 'Hautatutako kolorea', + title: 'Hautatu kolorea' +} ); diff --git a/ckeditor/plugins/colordialog/lang/fa.js b/ckeditor/plugins/colordialog/lang/fa.js new file mode 100644 index 0000000..032df7c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fa.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fa', { + clear: 'پاک کردن', + highlight: 'متمایز', + options: 'گزینه​های رنگ', + selected: 'رنگ انتخاب شده', + title: 'انتخاب رنگ' +} ); diff --git a/ckeditor/plugins/colordialog/lang/fi.js b/ckeditor/plugins/colordialog/lang/fi.js new file mode 100644 index 0000000..324232c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fi', { + clear: 'Poista', + highlight: 'Korostus', + options: 'Värin ominaisuudet', + selected: 'Valittu', + title: 'Valitse väri' +} ); diff --git a/ckeditor/plugins/colordialog/lang/fo.js b/ckeditor/plugins/colordialog/lang/fo.js new file mode 100644 index 0000000..16d6573 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fo', { + clear: 'Strika', + highlight: 'Framheva', + options: 'Litmøguleikar', + selected: 'Valdur litur', + title: 'Vel lit' +} ); diff --git a/ckeditor/plugins/colordialog/lang/fr-ca.js b/ckeditor/plugins/colordialog/lang/fr-ca.js new file mode 100644 index 0000000..13314d6 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fr-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fr-ca', { + clear: 'Effacer', + highlight: 'Surligner', + options: 'Options de couleur', + selected: 'Couleur sélectionnée', + title: 'Choisir une couleur' +} ); diff --git a/ckeditor/plugins/colordialog/lang/fr.js b/ckeditor/plugins/colordialog/lang/fr.js new file mode 100644 index 0000000..daedcf0 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fr', { + clear: 'Effacer', + highlight: 'Pointée', + options: 'Options de couleur', + selected: 'Couleur choisie', + title: 'Sélectionner une couleur' +} ); diff --git a/ckeditor/plugins/colordialog/lang/gl.js b/ckeditor/plugins/colordialog/lang/gl.js new file mode 100644 index 0000000..543c85e --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/gl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'gl', { + clear: 'Limpar', + highlight: 'Resaltar', + options: 'Opcións de cor', + selected: 'Cor seleccionado', + title: 'Seleccione unha cor' +} ); diff --git a/ckeditor/plugins/colordialog/lang/gu.js b/ckeditor/plugins/colordialog/lang/gu.js new file mode 100644 index 0000000..e2bccdd --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/gu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'gu', { + clear: 'સાફ કરવું', + highlight: 'હાઈઈટ', + options: 'રંગના વિકલ્પ', + selected: 'પસંદ કરેલો રંગ', + title: 'રંગ પસંદ કરો' +} ); diff --git a/ckeditor/plugins/colordialog/lang/he.js b/ckeditor/plugins/colordialog/lang/he.js new file mode 100644 index 0000000..5021bb2 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/he.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'he', { + clear: 'ניקוי', + highlight: 'סימון', + options: 'אפשרויות צבע', + selected: 'בחירה', + title: 'בחירת צבע' +} ); diff --git a/ckeditor/plugins/colordialog/lang/hi.js b/ckeditor/plugins/colordialog/lang/hi.js new file mode 100644 index 0000000..0cecd70 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/hi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hi', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/hr.js b/ckeditor/plugins/colordialog/lang/hr.js new file mode 100644 index 0000000..63382d5 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/hr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hr', { + clear: 'Očisti', + highlight: 'Istaknuto', + options: 'Opcije boje', + selected: 'Odabrana boja', + title: 'Odaberi boju' +} ); diff --git a/ckeditor/plugins/colordialog/lang/hu.js b/ckeditor/plugins/colordialog/lang/hu.js new file mode 100644 index 0000000..38f2ac9 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/hu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hu', { + clear: 'Ürítés', + highlight: 'Nagyítás', + options: 'Szín opciók', + selected: 'Kiválasztott', + title: 'Válasszon színt' +} ); diff --git a/ckeditor/plugins/colordialog/lang/id.js b/ckeditor/plugins/colordialog/lang/id.js new file mode 100644 index 0000000..6276cb7 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/id.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'id', { + clear: 'Hapus', + highlight: 'Sorot', + options: 'Pilihan Warna', + selected: 'Warna Dipilih', + title: 'Pilih Warna' +} ); diff --git a/ckeditor/plugins/colordialog/lang/is.js b/ckeditor/plugins/colordialog/lang/is.js new file mode 100644 index 0000000..6888ecf --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/is.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'is', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/it.js b/ckeditor/plugins/colordialog/lang/it.js new file mode 100644 index 0000000..b557a11 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/it.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'it', { + clear: 'cancella', + highlight: 'Evidenzia', + options: 'Opzioni colore', + selected: 'Seleziona il colore', + title: 'Selezionare il colore' +} ); diff --git a/ckeditor/plugins/colordialog/lang/ja.js b/ckeditor/plugins/colordialog/lang/ja.js new file mode 100644 index 0000000..b04fa7c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ja.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ja', { + clear: 'クリア', + highlight: 'ハイライト', + options: 'カラーオプション', + selected: '選択された色', + title: '色選択' +} ); diff --git a/ckeditor/plugins/colordialog/lang/ka.js b/ckeditor/plugins/colordialog/lang/ka.js new file mode 100644 index 0000000..49291b1 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ka.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ka', { + clear: 'გასუფთავება', + highlight: 'ჩვენება', + options: 'ფერის პარამეტრები', + selected: 'არჩეული ფერი', + title: 'ფერის შეცვლა' +} ); diff --git a/ckeditor/plugins/colordialog/lang/km.js b/ckeditor/plugins/colordialog/lang/km.js new file mode 100644 index 0000000..97ae374 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/km.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'km', { + clear: 'សម្អាត', + highlight: 'បន្លិច​ពណ៌', + options: 'ជម្រើស​ពណ៌', + selected: 'ពណ៌​ដែល​បាន​រើស', + title: 'រើស​ពណ៌' +} ); diff --git a/ckeditor/plugins/colordialog/lang/ko.js b/ckeditor/plugins/colordialog/lang/ko.js new file mode 100644 index 0000000..333bc6d --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ko.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ko', { + clear: '비우기', + highlight: '강조', + options: '색상 옵션', + selected: '선택된 색상', + title: '색상 선택' +} ); diff --git a/ckeditor/plugins/colordialog/lang/ku.js b/ckeditor/plugins/colordialog/lang/ku.js new file mode 100644 index 0000000..6a66594 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ku.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ku', { + clear: 'پاکیکەوە', + highlight: 'نیشانکردن', + options: 'هەڵبژاردەی ڕەنگەکان', + selected: 'ڕەنگی هەڵبژێردراو', + title: 'هەڵبژاردنی ڕەنگ' +} ); diff --git a/ckeditor/plugins/colordialog/lang/lt.js b/ckeditor/plugins/colordialog/lang/lt.js new file mode 100644 index 0000000..8d625c7 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/lt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'lt', { + clear: 'Išvalyti', + highlight: 'Paryškinti', + options: 'Spalvos nustatymai', + selected: 'Pasirinkta spalva', + title: 'Pasirinkite spalvą' +} ); diff --git a/ckeditor/plugins/colordialog/lang/lv.js b/ckeditor/plugins/colordialog/lang/lv.js new file mode 100644 index 0000000..8d7b9f3 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/lv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'lv', { + clear: 'Notīrīt', + highlight: 'Paraugs', + options: 'Krāsas uzstādījumi', + selected: 'Izvēlētā krāsa', + title: 'Izvēlies krāsu' +} ); diff --git a/ckeditor/plugins/colordialog/lang/mk.js b/ckeditor/plugins/colordialog/lang/mk.js new file mode 100644 index 0000000..e8dedbb --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/mk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'mk', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/mn.js b/ckeditor/plugins/colordialog/lang/mn.js new file mode 100644 index 0000000..9ea21d1 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/mn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'mn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/ms.js b/ckeditor/plugins/colordialog/lang/ms.js new file mode 100644 index 0000000..afaaca9 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ms.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ms', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/nb.js b/ckeditor/plugins/colordialog/lang/nb.js new file mode 100644 index 0000000..650235a --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/nb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'nb', { + clear: 'Tøm', + highlight: 'Merk', + options: 'Alternativer for farge', + selected: 'Valgt farge', + title: 'Velg farge' +} ); diff --git a/ckeditor/plugins/colordialog/lang/nl.js b/ckeditor/plugins/colordialog/lang/nl.js new file mode 100644 index 0000000..56ffd15 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/nl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'nl', { + clear: 'Wissen', + highlight: 'Actief', + options: 'Kleuropties', + selected: 'Geselecteerde kleur', + title: 'Selecteer kleur' +} ); diff --git a/ckeditor/plugins/colordialog/lang/no.js b/ckeditor/plugins/colordialog/lang/no.js new file mode 100644 index 0000000..db89b0c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/no.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'no', { + clear: 'Tøm', + highlight: 'Merk', + options: 'Alternativer for farge', + selected: 'Valgt', + title: 'Velg farge' +} ); diff --git a/ckeditor/plugins/colordialog/lang/oc.js b/ckeditor/plugins/colordialog/lang/oc.js new file mode 100644 index 0000000..7eb81ae --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/oc.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'oc', { + clear: 'Escafar', + highlight: 'Puntada', + options: 'Opcions de color', + selected: 'Color seleccionada', + title: 'Seleccionar una color' +} ); diff --git a/ckeditor/plugins/colordialog/lang/pl.js b/ckeditor/plugins/colordialog/lang/pl.js new file mode 100644 index 0000000..afb4a30 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/pl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pl', { + clear: 'Wyczyść', + highlight: 'Zaznacz', + options: 'Opcje koloru', + selected: 'Wybrany', + title: 'Wybierz kolor' +} ); diff --git a/ckeditor/plugins/colordialog/lang/pt-br.js b/ckeditor/plugins/colordialog/lang/pt-br.js new file mode 100644 index 0000000..5c3d73d --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/pt-br.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pt-br', { + clear: 'Limpar', + highlight: 'Grifar', + options: 'Opções de Cor', + selected: 'Cor Selecionada', + title: 'Selecione uma Cor' +} ); diff --git a/ckeditor/plugins/colordialog/lang/pt.js b/ckeditor/plugins/colordialog/lang/pt.js new file mode 100644 index 0000000..f6cd778 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/pt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pt', { + clear: 'Limpar', + highlight: 'Realçar', + options: 'Opções de cor', + selected: 'Cor selecionada', + title: 'Selecionar cor' +} ); diff --git a/ckeditor/plugins/colordialog/lang/ro.js b/ckeditor/plugins/colordialog/lang/ro.js new file mode 100644 index 0000000..096a678 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ro.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ro', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/ru.js b/ckeditor/plugins/colordialog/lang/ru.js new file mode 100644 index 0000000..02b57b9 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ru.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ru', { + clear: 'Очистить', + highlight: 'Под курсором', + options: 'Настройки цвета', + selected: 'Выбранный цвет', + title: 'Выберите цвет' +} ); diff --git a/ckeditor/plugins/colordialog/lang/si.js b/ckeditor/plugins/colordialog/lang/si.js new file mode 100644 index 0000000..98280d0 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/si.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'si', { + clear: 'පැහැදිලි', + highlight: 'මතුකර පෙන්වන්න', + options: 'වර්ණ විකල්ප', + selected: 'තෙරු වර්ණ', + title: 'වර්ණ තෝරන්න' +} ); diff --git a/ckeditor/plugins/colordialog/lang/sk.js b/ckeditor/plugins/colordialog/lang/sk.js new file mode 100644 index 0000000..2ea57a0 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sk', { + clear: 'Vyčistiť', + highlight: 'Zvýrazniť', + options: 'Možnosti farby', + selected: 'Vybraná farba', + title: 'Vybrať farbu' +} ); diff --git a/ckeditor/plugins/colordialog/lang/sl.js b/ckeditor/plugins/colordialog/lang/sl.js new file mode 100644 index 0000000..c6a6f1c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sl', { + clear: 'Počisti', + highlight: 'Poudarjeno', + options: 'Možnosti barve', + selected: 'Izbrana barva', + title: 'Izberi barvo' +} ); diff --git a/ckeditor/plugins/colordialog/lang/sq.js b/ckeditor/plugins/colordialog/lang/sq.js new file mode 100644 index 0000000..49ef49e --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sq.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sq', { + clear: 'Pastro', + highlight: 'Thekso', + options: 'Përzgjedhjet e Ngjyrave', + selected: 'Ngjyra e Përzgjedhur', + title: 'Përzgjidh një ngjyrë' +} ); diff --git a/ckeditor/plugins/colordialog/lang/sr-latn.js b/ckeditor/plugins/colordialog/lang/sr-latn.js new file mode 100644 index 0000000..2dc20d3 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sr-latn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sr-latn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/sr.js b/ckeditor/plugins/colordialog/lang/sr.js new file mode 100644 index 0000000..57d700c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sr', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/sv.js b/ckeditor/plugins/colordialog/lang/sv.js new file mode 100644 index 0000000..0080fe3 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sv', { + clear: 'Rensa', + highlight: 'Markera', + options: 'Färgalternativ', + selected: 'Vald färg', + title: 'Välj färg' +} ); diff --git a/ckeditor/plugins/colordialog/lang/th.js b/ckeditor/plugins/colordialog/lang/th.js new file mode 100644 index 0000000..3daaf62 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/th.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'th', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/ckeditor/plugins/colordialog/lang/tr.js b/ckeditor/plugins/colordialog/lang/tr.js new file mode 100644 index 0000000..5cd2155 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/tr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'tr', { + clear: 'Temizle', + highlight: 'İşaretle', + options: 'Renk Seçenekleri', + selected: 'Seçilmiş', + title: 'Renk seç' +} ); diff --git a/ckeditor/plugins/colordialog/lang/tt.js b/ckeditor/plugins/colordialog/lang/tt.js new file mode 100644 index 0000000..a98cc7b --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/tt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'tt', { + clear: 'Бушату', + highlight: 'Билгеләү', + options: 'Төс көйләүләре', + selected: 'Сайланган төсләр', + title: 'Төс сайлау' +} ); diff --git a/ckeditor/plugins/colordialog/lang/ug.js b/ckeditor/plugins/colordialog/lang/ug.js new file mode 100644 index 0000000..dafcf75 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ug.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ug', { + clear: 'تازىلا', + highlight: 'يورۇت', + options: 'رەڭ تاللانمىسى', + selected: 'رەڭ تاللاڭ', + title: 'رەڭ تاللاڭ' +} ); diff --git a/ckeditor/plugins/colordialog/lang/uk.js b/ckeditor/plugins/colordialog/lang/uk.js new file mode 100644 index 0000000..bad6742 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/uk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'uk', { + clear: 'Очистити', + highlight: 'Колір, на який вказує курсор', + options: 'Опції кольорів', + selected: 'Обраний колір', + title: 'Обрати колір' +} ); diff --git a/ckeditor/plugins/colordialog/lang/vi.js b/ckeditor/plugins/colordialog/lang/vi.js new file mode 100644 index 0000000..b1d7ed6 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/vi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'vi', { + clear: 'Xóa bỏ', + highlight: 'Màu chọn', + options: 'Tùy chọn màu', + selected: 'Màu đã chọn', + title: 'Chọn màu' +} ); diff --git a/ckeditor/plugins/colordialog/lang/zh-cn.js b/ckeditor/plugins/colordialog/lang/zh-cn.js new file mode 100644 index 0000000..cad315c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/zh-cn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'zh-cn', { + clear: '清除', + highlight: '高亮', + options: '颜色选项', + selected: '选择颜色', + title: '选择颜色' +} ); diff --git a/ckeditor/plugins/colordialog/lang/zh.js b/ckeditor/plugins/colordialog/lang/zh.js new file mode 100644 index 0000000..2f808cd --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/zh.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'zh', { + clear: '清除', + highlight: '高亮', + options: '色彩選項', + selected: '選取的色彩', + title: '選取色彩' +} ); diff --git a/ckeditor/plugins/colordialog/plugin.js b/ckeditor/plugins/colordialog/plugin.js new file mode 100644 index 0000000..3a1a01b --- /dev/null +++ b/ckeditor/plugins/colordialog/plugin.js @@ -0,0 +1,71 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.colordialog = { + requires: 'dialog', + // jscs:disable maximumLineLength + lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + init: function( editor ) { + var cmd = new CKEDITOR.dialogCommand( 'colordialog' ); + cmd.editorFocus = false; + + editor.addCommand( 'colordialog', cmd ); + + CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); + + /** + * Open up color dialog and to receive the selected color. + * + * @param {Function} callback The callback when color dialog is closed + * @param {String} callback.color The color value received if selected on the dialog. + * @param [scope] The scope in which the callback will be bound. + * @member CKEDITOR.editor + */ + editor.getColorFromDialog = function( callback, scope ) { + var onClose = function( evt ) { + releaseHandlers( this ); + var color = evt.name == 'ok' ? this.getValueOf( 'picker', 'selectedColor' ) : null; + callback.call( scope, color ); + }; + var releaseHandlers = function( dialog ) { + dialog.removeListener( 'ok', onClose ); + dialog.removeListener( 'cancel', onClose ); + }; + var bindToDialog = function( dialog ) { + dialog.on( 'ok', onClose ); + dialog.on( 'cancel', onClose ); + }; + + editor.execCommand( 'colordialog' ); + + if ( editor._.storedDialogs && editor._.storedDialogs.colordialog ) + bindToDialog( editor._.storedDialogs.colordialog ); + else { + CKEDITOR.on( 'dialogDefinition', function( e ) { + if ( e.data.name != 'colordialog' ) + 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 ); + }; + } ); + } ); + } + }; + + + } +}; + +CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog ); diff --git a/ckeditor/plugins/contextmenu/lang/af.js b/ckeditor/plugins/contextmenu/lang/af.js new file mode 100644 index 0000000..9dfe8c0 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'af', { + options: 'Konteks Spyskaart-opsies' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ar.js b/ckeditor/plugins/contextmenu/lang/ar.js new file mode 100644 index 0000000..679ef26 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ar', { + options: 'خصائص قائمة السياق' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/az.js b/ckeditor/plugins/contextmenu/lang/az.js new file mode 100644 index 0000000..6f9c139 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/az.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'az', { + options: 'Əlavə əməliyyatlar' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/bg.js b/ckeditor/plugins/contextmenu/lang/bg.js new file mode 100644 index 0000000..a765219 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'bg', { + options: 'Опции на контекстното меню' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/bn.js b/ckeditor/plugins/contextmenu/lang/bn.js new file mode 100644 index 0000000..5d1228e --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'bn', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/bs.js b/ckeditor/plugins/contextmenu/lang/bs.js new file mode 100644 index 0000000..f61d2a4 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'bs', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ca.js b/ckeditor/plugins/contextmenu/lang/ca.js new file mode 100644 index 0000000..33439d5 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ca', { + options: 'Opcions del menú contextual' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/cs.js b/ckeditor/plugins/contextmenu/lang/cs.js new file mode 100644 index 0000000..7a34a9f --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'cs', { + options: 'Nastavení kontextové nabídky' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/cy.js b/ckeditor/plugins/contextmenu/lang/cy.js new file mode 100644 index 0000000..194c73a --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'cy', { + options: 'Opsiynau Dewislen Cyd-destun' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/da.js b/ckeditor/plugins/contextmenu/lang/da.js new file mode 100644 index 0000000..42e1c6c --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'da', { + options: 'Muligheder for hjælpemenu' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/de-ch.js b/ckeditor/plugins/contextmenu/lang/de-ch.js new file mode 100644 index 0000000..7654d0b --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/de-ch.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'de-ch', { + options: 'Kontextmenüoptionen' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/de.js b/ckeditor/plugins/contextmenu/lang/de.js new file mode 100644 index 0000000..3c1855b --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'de', { + options: 'Kontextmenüoptionen' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/el.js b/ckeditor/plugins/contextmenu/lang/el.js new file mode 100644 index 0000000..27f0aad --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'el', { + options: 'Επιλογές Αναδυόμενου Μενού' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/en-au.js b/ckeditor/plugins/contextmenu/lang/en-au.js new file mode 100644 index 0000000..cf5ffa2 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en-au', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/en-ca.js b/ckeditor/plugins/contextmenu/lang/en-ca.js new file mode 100644 index 0000000..7dc238a --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en-ca', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/en-gb.js b/ckeditor/plugins/contextmenu/lang/en-gb.js new file mode 100644 index 0000000..d7b19be --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en-gb', { + options: 'Context Menu Options' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/en.js b/ckeditor/plugins/contextmenu/lang/en.js new file mode 100644 index 0000000..e0f1340 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en', { + options: 'Context Menu Options' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/eo.js b/ckeditor/plugins/contextmenu/lang/eo.js new file mode 100644 index 0000000..6891d8a --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'eo', { + options: 'Opcioj de Kunteksta Menuo' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/es.js b/ckeditor/plugins/contextmenu/lang/es.js new file mode 100644 index 0000000..b26a754 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'es', { + options: 'Opciones del menú contextual' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/et.js b/ckeditor/plugins/contextmenu/lang/et.js new file mode 100644 index 0000000..c13b080 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'et', { + options: 'Kontekstimenüü valikud' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/eu.js b/ckeditor/plugins/contextmenu/lang/eu.js new file mode 100644 index 0000000..54db0a4 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'eu', { + options: 'Testuinguru-menuaren aukerak' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/fa.js b/ckeditor/plugins/contextmenu/lang/fa.js new file mode 100644 index 0000000..5a88933 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fa', { + options: 'گزینه​های منوی زمینه' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/fi.js b/ckeditor/plugins/contextmenu/lang/fi.js new file mode 100644 index 0000000..bcfff1c --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fi', { + options: 'Pikavalikon ominaisuudet' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/fo.js b/ckeditor/plugins/contextmenu/lang/fo.js new file mode 100644 index 0000000..67290eb --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fo', { + options: 'Context Menu Options' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/fr-ca.js b/ckeditor/plugins/contextmenu/lang/fr-ca.js new file mode 100644 index 0000000..9937208 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fr-ca', { + options: 'Options du menu contextuel' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/fr.js b/ckeditor/plugins/contextmenu/lang/fr.js new file mode 100644 index 0000000..d84ffe2 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fr', { + options: 'Options du menu contextuel' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/gl.js b/ckeditor/plugins/contextmenu/lang/gl.js new file mode 100644 index 0000000..b62032c --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'gl', { + options: 'Opcións do menú contextual' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/gu.js b/ckeditor/plugins/contextmenu/lang/gu.js new file mode 100644 index 0000000..be12d5e --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'gu', { + options: 'કોન્તેક્ષ્ત્ મેનુના વિકલ્પો' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/he.js b/ckeditor/plugins/contextmenu/lang/he.js new file mode 100644 index 0000000..cbb0b63 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'he', { + options: 'אפשרויות תפריט ההקשר' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/hi.js b/ckeditor/plugins/contextmenu/lang/hi.js new file mode 100644 index 0000000..7627a62 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'hi', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/hr.js b/ckeditor/plugins/contextmenu/lang/hr.js new file mode 100644 index 0000000..10e7f8d --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'hr', { + options: 'Opcije izbornika' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/hu.js b/ckeditor/plugins/contextmenu/lang/hu.js new file mode 100644 index 0000000..c040e3c --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'hu', { + options: 'Helyi menü opciók' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/id.js b/ckeditor/plugins/contextmenu/lang/id.js new file mode 100644 index 0000000..ef08443 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'id', { + options: 'Opsi Konteks Pilihan' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/is.js b/ckeditor/plugins/contextmenu/lang/is.js new file mode 100644 index 0000000..691acf8 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'is', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/it.js b/ckeditor/plugins/contextmenu/lang/it.js new file mode 100644 index 0000000..cafff67 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'it', { + options: 'Opzioni del menù contestuale' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ja.js b/ckeditor/plugins/contextmenu/lang/ja.js new file mode 100644 index 0000000..1f5cba0 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ja', { + options: 'コンテキストメニューオプション' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ka.js b/ckeditor/plugins/contextmenu/lang/ka.js new file mode 100644 index 0000000..4f3fff3 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ka', { + options: 'კონტექსტური მენიუს პარამეტრები' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/km.js b/ckeditor/plugins/contextmenu/lang/km.js new file mode 100644 index 0000000..dd6a402 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'km', { + options: 'ជម្រើស​ម៉ឺនុយ​បរិបទ' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ko.js b/ckeditor/plugins/contextmenu/lang/ko.js new file mode 100644 index 0000000..6c99b9f --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ko', { + options: '컨텍스트 메뉴 옵션' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ku.js b/ckeditor/plugins/contextmenu/lang/ku.js new file mode 100644 index 0000000..a9c681f --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ku', { + options: 'هەڵبژاردەی لیستەی کلیکی دەستی ڕاست' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/lt.js b/ckeditor/plugins/contextmenu/lang/lt.js new file mode 100644 index 0000000..02fd950 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'lt', { + options: 'Kontekstinio meniu parametrai' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/lv.js b/ckeditor/plugins/contextmenu/lang/lv.js new file mode 100644 index 0000000..7daa7f7 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'lv', { + options: 'Uznirstošās izvēlnes uzstādījumi' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/mk.js b/ckeditor/plugins/contextmenu/lang/mk.js new file mode 100644 index 0000000..e49e7d5 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'mk', { + options: 'Контекст-мени опции' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/mn.js b/ckeditor/plugins/contextmenu/lang/mn.js new file mode 100644 index 0000000..0103c05 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'mn', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ms.js b/ckeditor/plugins/contextmenu/lang/ms.js new file mode 100644 index 0000000..f3bd636 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ms', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/nb.js b/ckeditor/plugins/contextmenu/lang/nb.js new file mode 100644 index 0000000..5e3d8b3 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'nb', { + options: 'Alternativer for høyreklikkmeny' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/nl.js b/ckeditor/plugins/contextmenu/lang/nl.js new file mode 100644 index 0000000..71ee54d --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'nl', { + options: 'Contextmenu opties' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/no.js b/ckeditor/plugins/contextmenu/lang/no.js new file mode 100644 index 0000000..f183fbc --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'no', { + options: 'Alternativer for høyreklikkmeny' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/oc.js b/ckeditor/plugins/contextmenu/lang/oc.js new file mode 100644 index 0000000..f66d6ac --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/oc.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'oc', { + options: 'Opcions del menú contextual' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/pl.js b/ckeditor/plugins/contextmenu/lang/pl.js new file mode 100644 index 0000000..02240ab --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'pl', { + options: 'Opcje menu kontekstowego' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/pt-br.js b/ckeditor/plugins/contextmenu/lang/pt-br.js new file mode 100644 index 0000000..a8163be --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'pt-br', { + options: 'Opções Menu de Contexto' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/pt.js b/ckeditor/plugins/contextmenu/lang/pt.js new file mode 100644 index 0000000..81619bd --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'pt', { + options: 'Menu de opções de contexto' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ro.js b/ckeditor/plugins/contextmenu/lang/ro.js new file mode 100644 index 0000000..a108c6c --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ro', { + options: 'Opțiuni Meniu Contextual' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ru.js b/ckeditor/plugins/contextmenu/lang/ru.js new file mode 100644 index 0000000..6aee720 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ru', { + options: 'Параметры контекстного меню' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/si.js b/ckeditor/plugins/contextmenu/lang/si.js new file mode 100644 index 0000000..9f4bb10 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'si', { + options: 'අනතර්ග ලේඛණ විකල්ප' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/sk.js b/ckeditor/plugins/contextmenu/lang/sk.js new file mode 100644 index 0000000..e88520b --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sk', { + options: 'Možnosti kontextového menu' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/sl.js b/ckeditor/plugins/contextmenu/lang/sl.js new file mode 100644 index 0000000..c4492c3 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sl', { + options: 'Možnosti kontekstnega menija' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/sq.js b/ckeditor/plugins/contextmenu/lang/sq.js new file mode 100644 index 0000000..ca288d3 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sq', { + options: 'Mundësitë e Menysë së Kontekstit' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/sr-latn.js b/ckeditor/plugins/contextmenu/lang/sr-latn.js new file mode 100644 index 0000000..8bb0fc6 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sr-latn', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/sr.js b/ckeditor/plugins/contextmenu/lang/sr.js new file mode 100644 index 0000000..a554629 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sr', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/sv.js b/ckeditor/plugins/contextmenu/lang/sv.js new file mode 100644 index 0000000..904992e --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sv', { + options: 'Context Menu Options' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/th.js b/ckeditor/plugins/contextmenu/lang/th.js new file mode 100644 index 0000000..2d3b085 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'th', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/ckeditor/plugins/contextmenu/lang/tr.js b/ckeditor/plugins/contextmenu/lang/tr.js new file mode 100644 index 0000000..713f560 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'tr', { + options: 'İçerik Menüsü Seçenekleri' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/tt.js b/ckeditor/plugins/contextmenu/lang/tt.js new file mode 100644 index 0000000..6231bff --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'tt', { + options: 'Контекст меню үзлекләре' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/ug.js b/ckeditor/plugins/contextmenu/lang/ug.js new file mode 100644 index 0000000..8e6a119 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ug', { + options: 'قىسقا يول تىزىملىك تاللانمىسى' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/uk.js b/ckeditor/plugins/contextmenu/lang/uk.js new file mode 100644 index 0000000..b68eee2 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'uk', { + options: 'Опції контекстного меню' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/vi.js b/ckeditor/plugins/contextmenu/lang/vi.js new file mode 100644 index 0000000..47c22be --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'vi', { + options: 'Tùy chọn menu bổ xung' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/zh-cn.js b/ckeditor/plugins/contextmenu/lang/zh-cn.js new file mode 100644 index 0000000..8378b1b --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'zh-cn', { + options: '快捷菜单选项' +} ); diff --git a/ckeditor/plugins/contextmenu/lang/zh.js b/ckeditor/plugins/contextmenu/lang/zh.js new file mode 100644 index 0000000..db46775 --- /dev/null +++ b/ckeditor/plugins/contextmenu/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'zh', { + options: '內容功能表選項' +} ); diff --git a/ckeditor/plugins/contextmenu/plugin.js b/ckeditor/plugins/contextmenu/plugin.js new file mode 100644 index 0000000..45a15e1 --- /dev/null +++ b/ckeditor/plugins/contextmenu/plugin.js @@ -0,0 +1,159 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.add( 'contextmenu', { + requires: 'menu', + + // jscs:disable maximumLineLength + lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + + // Make sure the base class (CKEDITOR.menu) is loaded before it (#3318). + onLoad: function() { + /** + * Class replacing the non-configurable native context menu with a configurable CKEditor's equivalent. + * + * @class + * @extends CKEDITOR.menu + */ + CKEDITOR.plugins.contextMenu = CKEDITOR.tools.createClass( { + base: CKEDITOR.menu, + + /** + * Creates the CKEDITOR.plugins.contextMenu class instance. + * + * @constructor + * @param {CKEDITOR.editor} editor + */ + $: function( editor ) { + this.base.call( this, editor, { + panel: { + className: 'cke_menu_panel', + attributes: { + 'aria-label': editor.lang.contextmenu.options + } + } + } ); + }, + + proto: { + /** + * Starts watching on native context menu triggers (Option key, right click) on the given element. + * + * @param {CKEDITOR.dom.element} element + * @param {Boolean} [nativeContextMenuOnCtrl] Whether to open native context menu if the + * Ctrl key is held on opening the context menu. See {@link CKEDITOR.config#browserContextMenuOnCtrl}. + */ + addTarget: function( element, nativeContextMenuOnCtrl ) { + element.on( 'contextmenu', function( event ) { + var domEvent = event.data, + isCtrlKeyDown = + // 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 ) ); + + if ( nativeContextMenuOnCtrl && isCtrlKeyDown ) + return; + + // Cancel the browser context menu. + domEvent.preventDefault(); + + // Fix selection when non-editable element in Webkit/Blink (Mac) (#11306). + if ( CKEDITOR.env.mac && CKEDITOR.env.webkit ) { + var editor = this.editor, + contentEditableParent = new CKEDITOR.dom.elementPath( domEvent.getTarget(), editor.editable() ).contains( function( el ) { + // Return when non-editable or nested editable element is found. + return el.hasAttribute( 'contenteditable' ); + }, true ); // Exclude editor's editable. + + // Fake selection for non-editables only (to exclude nested editables). + if ( contentEditableParent && contentEditableParent.getAttribute( 'contenteditable' ) == 'false' ) + editor.getSelection().fake( contentEditableParent ); + } + + var doc = domEvent.getTarget().getDocument(), + offsetParent = domEvent.getTarget().getDocument().getDocumentElement(), + fromFrame = !doc.equals( CKEDITOR.document ), + scroll = doc.getWindow().getScrollPosition(), + offsetX = fromFrame ? domEvent.$.clientX : domEvent.$.pageX || scroll.x + domEvent.$.clientX, + offsetY = fromFrame ? domEvent.$.clientY : domEvent.$.pageY || scroll.y + 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.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 ); + } + }, + + /** + * Opens the context menu in the given location. See the {@link CKEDITOR.menu#show} method. + * + * @param {CKEDITOR.dom.element} offsetParent + * @param {Number} [corner] + * @param {Number} [offsetX] + * @param {Number} [offsetY] + */ + open: function( offsetParent, corner, offsetX, offsetY ) { + this.editor.focus(); + offsetParent = offsetParent || CKEDITOR.document.getDocumentElement(); + + // #9362: Force selection check to update commands' states in the new context. + this.editor.selectionChange( 1 ); + + this.show( offsetParent, corner, offsetX, offsetY ); + } + } + } ); + }, + + beforeInit: function( editor ) { + /** + * @readonly + * @property {CKEDITOR.plugins.contextMenu} contextMenu + * @member CKEDITOR.editor + */ + var contextMenu = editor.contextMenu = new CKEDITOR.plugins.contextMenu( editor ); + + editor.on( 'contentDom', function() { + contextMenu.addTarget( editor.editable(), editor.config.browserContextMenuOnCtrl !== false ); + } ); + + editor.addCommand( 'contextMenu', { + exec: function() { + editor.contextMenu.open( editor.document.getBody() ); + } + } ); + + editor.setKeystroke( CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ); + editor.setKeystroke( CKEDITOR.CTRL + CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ); + } +} ); + +/** + * Whether to show the browser native context menu when the Ctrl or + * Meta (Mac) key is pressed on opening the context menu with the + * right mouse button click or the Menu key. + * + * config.browserContextMenuOnCtrl = false; + * + * @since 3.0.2 + * @cfg {Boolean} [browserContextMenuOnCtrl=true] + * @member CKEDITOR.config + */ diff --git a/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg b/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg new file mode 100644 index 0000000..9298aef --- /dev/null +++ b/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg @@ -0,0 +1,25 @@ + + + + cursor_disabled + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ckeditor/plugins/copyformatting/cursors/cursor.svg b/ckeditor/plugins/copyformatting/cursors/cursor.svg new file mode 100644 index 0000000..9595147 --- /dev/null +++ b/ckeditor/plugins/copyformatting/cursors/cursor.svg @@ -0,0 +1,14 @@ + + + cursor + + + + + + + + + + + diff --git a/ckeditor/plugins/copyformatting/icons/copyformatting.png b/ckeditor/plugins/copyformatting/icons/copyformatting.png new file mode 100644 index 0000000..1128408 Binary files /dev/null and b/ckeditor/plugins/copyformatting/icons/copyformatting.png differ diff --git a/ckeditor/plugins/copyformatting/icons/hidpi/copyformatting.png b/ckeditor/plugins/copyformatting/icons/hidpi/copyformatting.png new file mode 100644 index 0000000..c46e514 Binary files /dev/null and b/ckeditor/plugins/copyformatting/icons/hidpi/copyformatting.png differ diff --git a/ckeditor/plugins/copyformatting/lang/en.js b/ckeditor/plugins/copyformatting/lang/en.js new file mode 100644 index 0000000..02d9159 --- /dev/null +++ b/ckeditor/plugins/copyformatting/lang/en.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'copyformatting', 'en', { + label: 'Copy Formatting', + notification: { + copied: 'Formatting copied', + applied: 'Formatting applied', + canceled: 'Formatting canceled', + failed: 'Formatting failed. You cannot apply styles without copying them first.' + } +} ); diff --git a/ckeditor/plugins/copyformatting/plugin.js b/ckeditor/plugins/copyformatting/plugin.js new file mode 100644 index 0000000..8285185 --- /dev/null +++ b/ckeditor/plugins/copyformatting/plugin.js @@ -0,0 +1,1246 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +( function() { + 'use strict'; + + var indexOf = CKEDITOR.tools.indexOf, + // This flag prevents appending stylesheet more than once. + stylesLoaded = false; + + // Detects if the left mouse button was pressed: + // * In all browsers and IE 9+ we use event.button property with standard compliant values. + // * In IE 8- we use event.button with IE's proprietary values. + function detectLeftMouseButton( evt ) { + var evtData = evt.data, + domEvent = evtData && evtData.$; + + if ( !( evtData && domEvent ) ) { + // Added in case when there's no data available. That's the case in some unit test in built version which + // mock event but doesn't put data object.' + return false; + } + + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) { + return domEvent.button === 1; + } + + return domEvent.button === 0; + } + + // Searches for given node in given query. It also checks ancestors of elements in the range. + function getNodeAndApplyCmd( range, query, cmd, stopOnFirst ) { + var walker = new CKEDITOR.dom.walker( range ), + currentNode; + + // Walker sometimes does not include all nodes (e.g. if the range is in the middle of text node). + if ( ( currentNode = range.startContainer.getAscendant( query, true ) || + range.endContainer.getAscendant( query, true ) ) ) { + cmd( currentNode ); + + if ( stopOnFirst ) { + return; + } + } + + while ( currentNode = walker.next() ) { + currentNode = currentNode.getAscendant( query, true ); + + if ( currentNode ) { + cmd( currentNode ); + + if ( stopOnFirst ) { + return; + } + } + } + } + + // Checks if there is style for specified element in the given array. + function checkForStyle( element, styles ) { + // Some elements are treated interchangeably, e.g. lists. + var stylesAlternatives = { + ul: 'ol', + ol: 'ul' + }; + + return indexOf( styles, function( style ) { + return style.element === element || style.element === stylesAlternatives[ element ]; + } ) !== -1; + } + + CKEDITOR.plugins.add( 'copyformatting', { + lang: 'en', + icons: 'copyformatting', + hidpi: true, + + init: function( editor ) { + var plugin = CKEDITOR.plugins.copyformatting; + + plugin._addScreenReaderContainer(); + + if ( !stylesLoaded ) { + CKEDITOR.document.appendStyleSheet( this.path + 'styles/copyformatting.css' ); + stylesLoaded = true; + } + + // Add copyformatting stylesheet. + if ( editor.addContentsCss ) { + editor.addContentsCss( this.path + 'styles/copyformatting.css' ); + } + + /** + * Current state of the Copy Formatting plugin in this editor instance. + * + * @since 4.6.0 + * @property {CKEDITOR.plugins.copyformatting.state} copyFormatting + * @member CKEDITOR.editor + */ + editor.copyFormatting = new plugin.state( editor ); + + editor.addCommand( 'copyFormatting', plugin.commands.copyFormatting ); + editor.addCommand( 'applyFormatting', plugin.commands.applyFormatting ); + + editor.ui.addButton( 'CopyFormatting', { + label: editor.lang.copyformatting.label, + command: 'copyFormatting', + toolbar: 'cleanup,0' + } ); + + editor.on( 'contentDom', function() { + var editable = editor.editable(), + // Host element for apply formatting click. In case of classic element it needs to be entire + // document, otherwise clicking in body margins would not trigger the event. + // Editors with divarea plugin enabled should be treated like inline one – otherwise + // clicking the whole document messes the focus. + mouseupHost = editable.isInline() ? editable : editor.document, + copyFormattingButton = editor.ui.get( 'CopyFormatting' ), + copyFormattingButtonEl; + + editable.attachListener( mouseupHost, 'mouseup', function( evt ) { + if ( detectLeftMouseButton( evt ) ) { + editor.execCommand( 'applyFormatting' ); + } + } ); + + editable.attachListener( CKEDITOR.document, 'mouseup', function( evt ) { + var cmd = editor.getCommand( 'copyFormatting' ); + + if ( detectLeftMouseButton( evt ) && cmd.state === CKEDITOR.TRISTATE_ON && + !editable.contains( evt.data.getTarget() ) ) { + editor.execCommand( 'copyFormatting' ); + } + } ); + + if ( copyFormattingButton ) { + copyFormattingButtonEl = CKEDITOR.document.getById( copyFormattingButton._.id ); + + editable.attachListener( copyFormattingButtonEl, 'dblclick', function() { + editor.execCommand( 'copyFormatting', { sticky: true } ); + } ); + + editable.attachListener( copyFormattingButtonEl, 'mouseup', function( evt ) { + evt.data.stopPropagation(); + } ); + } + } ); + + // Set customizable keystrokes. + if ( editor.config.copyFormatting_keystrokeCopy ) { + editor.setKeystroke( editor.config.copyFormatting_keystrokeCopy, 'copyFormatting' ); + } + if ( editor.config.copyFormatting_keystrokePaste ) { + editor.setKeystroke( editor.config.copyFormatting_keystrokePaste, 'applyFormatting' ); + } + + editor.on( 'key', function( evt ) { + var cmd = editor.getCommand( 'copyFormatting' ), + domEvent = evt.data.domEvent; + + // Esc should simply disable Copy Formatting. Make sure that getKeystroke is there, as some event stubs are missing it. + if ( domEvent.getKeystroke && domEvent.getKeystroke() === 27 ) { // ESC + if ( cmd.state === CKEDITOR.TRISTATE_ON ) { + editor.execCommand( 'copyFormatting' ); + } + } + } ); + + // Fetch the styles from element. + editor.copyFormatting.on( 'extractFormatting', function( evt ) { + var element = evt.data.element, + style; + + // Stop at body and html in classic editors or at .cke_editable element in inline ones. + if ( element.contains( editor.editable() ) || element.equals( editor.editable() ) ) { + return evt.cancel(); + } + + style = plugin._convertElementToStyleDef( element ); + + if ( !editor.copyFormatting.filter.check( new CKEDITOR.style( style ), true, true ) ) { + return evt.cancel(); + } + + evt.data.styleDef = style; + } ); + + // Remove old styles from element. + editor.copyFormatting.on( 'applyFormatting', function( evt ) { + if ( evt.data.preventFormatStripping ) { + return; + } + + var range = evt.data.range, + oldStyles = plugin._extractStylesFromRange( editor, range ), + context = plugin._determineContext( range ), + oldStyle, + bkm, + i; + + if ( !editor.copyFormatting._isContextAllowed( context ) ) { + return; + } + + for ( i = 0; i < oldStyles.length; i++ ) { + oldStyle = oldStyles[ i ]; + + // The bookmark is used to prevent the weird behavior of lists (e.g. not converting list type + // while applying styles from bullet list to the numbered one). Restoring the selection to its + // initial state after every change seems to do the trick. + bkm = range.createBookmark(); + + if ( indexOf( plugin.preservedElements, oldStyle.element ) === -1 ) { + // In Safari we must remove styles exactly from the initial range. + // Otherwise Safari is removing too much. + if ( CKEDITOR.env.webkit && !CKEDITOR.env.chrome ) { + oldStyles[ i ].removeFromRange( evt.data.range, evt.editor ); + } else { + oldStyles[ i ].remove( evt.editor ); + } + } else if ( checkForStyle( oldStyle.element, evt.data.styles ) ) { + plugin._removeStylesFromElementInRange( range, oldStyle.element ); + } + + range.moveToBookmark( bkm ); + } + } ); + + // Apply new styles. + editor.copyFormatting.on( 'applyFormatting', function( evt ) { + var plugin = CKEDITOR.plugins.copyformatting, + context = plugin._determineContext( evt.data.range ); + + if ( context === 'list' && editor.copyFormatting._isContextAllowed( 'list' ) ) { + plugin._applyStylesToListContext( evt.editor, evt.data.range, evt.data.styles ); + } else if ( context === 'table' && editor.copyFormatting._isContextAllowed( 'table' ) ) { + plugin._applyStylesToTableContext( evt.editor, evt.data.range, evt.data.styles ); + } else if ( editor.copyFormatting._isContextAllowed( 'text' ) ) { + plugin._applyStylesToTextContext( evt.editor, evt.data.range, evt.data.styles ); + } + }, null, null, 999 ); + } + } ); + + /** + * Copy Formatting state object created for each CKEditor instance. + * + * @class CKEDITOR.plugins.copyformatting.state + * @mixins CKEDITOR.event + * @constructor Creates a new state object. + * @param {CKEDITOR.editor} editor + */ + function State( editor ) { + /** + * Currently copied styles. + * + * @member CKEDITOR.plugins.copyformatting.state + * @property {CKEDITOR.style[]/null} + */ + this.styles = null; + + /** + * Indicates if the Copy Formatting plugin is in sticky mode. + * + * @member CKEDITOR.plugins.copyformatting.state + * @property {Boolean} + */ + this.sticky = false; + + /** + * Editor reference. + * + * @member CKEDITOR.plugins.copyformatting.state + * @property {CKEDITOR.editor} + */ + this.editor = editor; + + /** + * Filter used by the current Copy Formatting instance. + * + * @member CKEDITOR.plugins.copyformatting.state + * @property {CKEDITOR.filter} + */ + this.filter = new CKEDITOR.filter( editor.config.copyFormatting_allowRules ); + + if ( editor.config.copyFormatting_allowRules === true ) { + this.filter.disabled = true; + } + + if ( editor.config.copyFormatting_disallowRules ) { + this.filter.disallow( editor.config.copyFormatting_disallowRules ); + } + } + + /** + * Checks if copying and applying styles in the current context is possible. + * See {@link CKEDITOR.config#copyFormatting_allowedContexts} for the list of possible context values. + * + * @member CKEDITOR.plugins.copyformatting.state + * @param {String} testedContext Context name. + * @returns {Boolean} `true` if a given context is allowed in the current Copy Formatting instance. + * @private + */ + State.prototype._isContextAllowed = function( testedContext ) { + var configValue = this.editor.config.copyFormatting_allowedContexts; + + return configValue === true || indexOf( configValue, testedContext ) !== -1; + }; + + CKEDITOR.event.implementOn( State.prototype ); + + /** + * @since 4.6.0 + * @singleton + * @class CKEDITOR.plugins.copyformatting + */ + CKEDITOR.plugins.copyformatting = { + state: State, + + /** + * An array of block boundaries that should be always transformed into inline elements with styles, e.g. + * `
    ` becomes ``. + * + * @property {Array} + */ + inlineBoundary: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'div' ], + + /** + * An array of attributes that should be excluded from extracted styles. + * + * @property {Array} + */ + excludedAttributes: [ 'id', 'style', 'href', 'data-cke-saved-href', 'dir' ], + + /** + * An array of elements that will be transformed into inline styles while + * applying formatting to the plain text context, e.g. trying to apply styles from the `
  • ` element + * (`
  • `) to a regular paragraph will cause changing the `
  • ` element + * into a corresponding `` element (``). + * + * @property {Array} + */ + elementsForInlineTransform: [ 'li' ], + + /** + * An array of elements that will be excluded from the transformation while + * applying formatting to the plain text context. + * + * @property {Array} + */ + excludedElementsFromInlineTransform: [ 'table', 'thead', 'tbody', 'ul', 'ol' ], + + /** + * An array of attributes to be excluded while transforming styles from elements inside + * {@link CKEDITOR.plugins.copyformatting#elementsForInlineTransform} into `` elements with styles + * (e.g. when applying these styles to text context). + * + * @property {Array} + */ + excludedAttributesFromInlineTransform: [ 'value', 'type' ], + + /** + * An array of elements which should not be deleted when removing old styles + * from the current selection. Instead the styles are stripped from the elements, + * preserving the elements themselves, e.g. `
  • "},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(b){var b=a.iframeNumber+"_"+b._.currentTabId, -c=document.getElementById(b);a.targetFromFrame[b]=c.contentWindow}},{type:"hbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;",widths:["50%","50%"],children:[{type:"hbox",id:"leftCol",align:"left",width:"50%",children:[{type:"vbox",id:"rightCol1",widths:["50%","50%"],children:[{type:"text",id:"text",label:a.LocalizationLabel.ChangeTo.text+":",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",width:"140px","default":"",onShow:function(){a.textNode.SpellTab=this;a.LocalizationLabel.ChangeTo.instance= -this},onHide:function(){this.reset()}},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"text",id:"labelSuggestions",label:a.LocalizationLabel.Suggestions.text+":",onShow:function(){a.LocalizationLabel.Suggestions.instance=this;this.getInputElement().hide()}},{type:"html",id:"logo",html:'WebSpellChecker.net',setup:function(){this.getElement().$.src= -a.logotype;this.getElement().getParent().setStyles({"text-align":"left"})}}]},{type:"select",id:"list_of_suggestions",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 140px; height: auto;",items:[["loading..."]],onShow:function(){p=this},onHide:function(){this.clear()},onChange:function(){a.textNode.SpellTab.setValue(this.getValue())}}]}]}]},{type:"hbox",id:"rightCol",align:"right",width:"50%",children:[{type:"vbox",id:"rightCol_col__left",widths:["50%","50%","50%","50%"], -children:[{type:"button",id:"ChangeTo",label:a.LocalizationButton.ChangeTo.text,title:"Change to",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.ChangeTo.instance=this},onClick:c},{type:"button",id:"ChangeAll",label:a.LocalizationButton.ChangeAll.text,title:"Change All",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.ChangeAll.instance=this},onClick:c},{type:"button",id:"AddWord", -label:a.LocalizationButton.AddWord.text,title:"Add word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.AddWord.instance=this},onClick:c},{type:"button",id:"FinishChecking",label:a.LocalizationButton.FinishChecking.text,title:"Finish Checking",style:"width: 100%;margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.FinishChecking.instance=this},onClick:c}]},{type:"vbox",id:"rightCol_col__right", -widths:["50%","50%","50%"],children:[{type:"button",id:"IgnoreWord",label:a.LocalizationButton.IgnoreWord.text,title:"Ignore word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.IgnoreWord.instance=this},onClick:c},{type:"button",id:"IgnoreAllWords",label:a.LocalizationButton.IgnoreAllWords.text,title:"Ignore all words",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.IgnoreAllWords.instance= -this},onClick:c},{type:"button",id:"option",label:a.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){a.LocalizationButton.Options.instance=this;"file:"==document.location.protocol&&this.disable()},onClick:function(){"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):b.openDialog("options")}}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().hide()}, -onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",setup:function(){this.getChild()[0].getElement().$.src=a.logotype;this.getChild()[0].getElement().getParent().setStyles({"text-align":"center"})},children:[{type:"html",id:"logo",html:'WebSpellChecker.net'}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox", -id:"rightCol_col__left",children:[{type:"button",id:"Option_button",label:a.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);"file:"==document.location.protocol&&this.disable()},onClick:function(){"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):b.openDialog("options")}},{type:"button",id:"FinishChecking",label:a.LocalizationButton.FinishChecking.text, -title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c}]}]}]}]},{id:"GrammTab",label:"Grammar",accessKey:"G",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"
    "},{type:"html",id:"Content",label:"GrammarContent",html:"",setup:function(){var b=a.iframeNumber+"_"+a.dialog._.currentTabId,c=document.getElementById(b);a.targetFromFrame[b]=c.contentWindow}},{type:"vbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;", -children:[{type:"hbox",id:"leftCol",widths:["66%","34%"],children:[{type:"vbox",children:[{type:"text",id:"text",label:"Change to:",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",inputStyle:"float: right; width: 200px;","default":"",onShow:function(){a.textNode.GrammTab=this},onHide:function(){this.reset()}},{type:"html",id:"html_text",html:"
    ", -onShow:function(){a.textNodeInfo.GrammTab=this}},{type:"html",id:"radio",html:"",onShow:function(){a.grammerSuggest=this}}]},{type:"vbox",children:[{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c},{type:"button",id:"IgnoreWord",label:"Ignore word",title:"Ignore word",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)}, -onClick:c},{type:"button",id:"IgnoreAllWords",label:"Ignore Problem",title:"Ignore Problem",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 133px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;", -widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'WebSpellChecker.net',setup:function(){this.getElement().$.src=a.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right", -width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c}]}]}]}]},{id:"Thesaurus",label:"Thesaurus",accessKey:"T",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"
    "},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(){var b=a.iframeNumber+"_"+a.dialog._.currentTabId, -c=document.getElementById(b);a.targetFromFrame[b]=c.contentWindow}},{type:"vbox",id:"bottomGroup",style:"width:560px; margin: -10px auto; overflow: hidden;",children:[{type:"hbox",widths:["75%","25%"],children:[{type:"vbox",children:[{type:"hbox",widths:["65%","35%"],children:[{type:"text",id:"ChangeTo",label:"Change to:",labelLayout:"horizontal",inputStyle:"width: 160px;",labelStyle:"font: 12px/25px arial, sans-serif;","default":"",onShow:function(){a.textNode.Thesaurus=this},onHide:function(){this.reset()}}, -{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 121px; margin-top: 1px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c}]},{type:"hbox",children:[{type:"select",id:"categories",label:"Categories:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){a.selectNode.categories=this},onHide:function(){this.clear()},onChange:function(){a.buildOptionSynonyms(this.getValue())}}, -{type:"select",id:"synonyms",label:"Synonyms:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){a.selectNode.synonyms=this;a.textNode.Thesaurus.setValue(this.getValue())},onHide:function(){this.clear()},onChange:function(){a.textNode.Thesaurus.setValue(this.getValue())}}]}]},{type:"vbox",width:"120px",style:"margin-top:46px;",children:[{type:"html",id:"logotype",label:"WebSpellChecker.net",html:'WebSpellChecker.net', -setup:function(){this.getElement().$.src=a.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 121px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().hide()},children:[{type:"hbox", -id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'WebSpellChecker.net',setup:function(){this.getElement().$.src=a.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking", -label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:c}]}]}]}]}]}});CKEDITOR.dialog.add("options",function(){var b=null,c={},d={},f=null,g=null;e.cookie.get("udn");e.cookie.get("osp");var h=function(){g=this.getElement().getAttribute("title-cmd");var a=[];a[0]=d.IgnoreAllCapsWords;a[1]=d.IgnoreWordsNumbers;a[2]=d.IgnoreMixedCaseWords;a[3]=d.IgnoreDomainNames;a=a.toString().replace(/,/g,"");e.cookie.set("osp", -a);e.cookie.set("udnCmd",g?g:"ignore");"delete"!=g&&(a="",""!==j.getValue()&&(a=j.getValue()),e.cookie.set("udn",a));e.postMessage.send({id:"options_dic_send"})},i=function(){f.getElement().setHtml(a.LocalizationComing.error);f.getElement().show()};return{title:a.LocalizationComing.Options,minWidth:430,minHeight:130,resizable:CKEDITOR.DIALOG_RESIZE_NONE,contents:[{id:"OptionsTab",label:"Options",accessKey:"O",elements:[{type:"hbox",id:"options_error",children:[{type:"html",style:"display: block;text-align: center;white-space: normal!important; font-size: 12px;color:red", -html:"
    ",onShow:function(){f=this}}]},{type:"vbox",id:"Options_content",children:[{type:"hbox",id:"Options_manager",widths:["52%","48%"],children:[{type:"fieldset",label:"Spell Checking Options",style:"border: none;margin-top: 13px;padding: 10px 0 10px 10px",onShow:function(){this.getInputElement().$.children[0].innerHTML=a.LocalizationComing.SpellCheckingOptions},children:[{type:"vbox",id:"Options_checkbox",children:[{type:"checkbox",id:"IgnoreAllCapsWords",label:"Ignore All-Caps Words", -labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){d[this.id]=!this.getValue()?0:1}},{type:"checkbox",id:"IgnoreWordsNumbers",label:"Ignore Words with Numbers",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){d[this.id]=!this.getValue()?0:1}},{type:"checkbox", -id:"IgnoreMixedCaseWords",label:"Ignore Mixed-Case Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){d[this.id]=!this.getValue()?0:1}},{type:"checkbox",id:"IgnoreDomainNames",label:"Ignore Domain Names",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){d[this.id]= -!this.getValue()?0:1}}]}]},{type:"vbox",id:"Options_DictionaryName",children:[{type:"text",id:"DictionaryName",style:"margin-bottom: 10px",label:"Dictionary Name:",labelLayout:"vertical",labelStyle:"font: 12px/25px arial, sans-serif;","default":"",onLoad:function(){j=this;this.setValue(a.userDictionaryName?a.userDictionaryName:(e.cookie.get("udn"),this.getValue()))},onShow:function(){j=this;this.setValue(!e.cookie.get("udn")?this.getValue():e.cookie.get("udn"));this.setLabel(a.LocalizationComing.DictionaryName)}, -onHide:function(){this.reset()}},{type:"hbox",id:"Options_buttons",children:[{type:"vbox",id:"Options_leftCol_col",widths:["50%","50%"],children:[{type:"button",id:"create",label:"Create",title:"Create",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(a.LocalizationComing.Create)},onClick:h},{type:"button",id:"restore",label:"Restore",title:"Restore",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd", -this.id)},onShow:function(){this.getElement().setText(a.LocalizationComing.Restore)},onClick:h}]},{type:"vbox",id:"Options_rightCol_col",widths:["50%","50%"],children:[{type:"button",id:"rename",label:"Rename",title:"Rename",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(a.LocalizationComing.Rename)},onClick:h},{type:"button",id:"delete",label:"Remove",title:"Remove",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd", -this.id)},onShow:function(){this.getElement().setText(a.LocalizationComing.Remove)},onClick:h}]}]}]}]},{type:"hbox",id:"Options_text",children:[{type:"html",style:"text-align: justify;margin-top: 15px;white-space: normal!important; font-size: 12px;color:#777;",html:"
    "+a.LocalizationComing.OptionsTextIntro+"
    ",onShow:function(){this.getElement().setText(a.LocalizationComing.OptionsTextIntro)}}]}]}]}],buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton],onOk:function(){var a=[]; -a[0]=d.IgnoreAllCapsWords;a[1]=d.IgnoreWordsNumbers;a[2]=d.IgnoreMixedCaseWords;a[3]=d.IgnoreDomainNames;a=a.toString().replace(/,/g,"");e.cookie.set("osp",a);e.cookie.set("udn",j.getValue());e.postMessage.send({id:"options_checkbox_send"});f.getElement().hide();f.getElement().setHtml(" ")},onLoad:function(){b=this;e.postMessage.init(i);c.IgnoreAllCapsWords=b.getContentElement("OptionsTab","IgnoreAllCapsWords");c.IgnoreWordsNumbers=b.getContentElement("OptionsTab","IgnoreWordsNumbers");c.IgnoreMixedCaseWords= -b.getContentElement("OptionsTab","IgnoreMixedCaseWords");c.IgnoreDomainNames=b.getContentElement("OptionsTab","IgnoreDomainNames")},onShow:function(){var b=e.cookie.get("osp").split("");d.IgnoreAllCapsWords=b[0];d.IgnoreWordsNumbers=b[1];d.IgnoreMixedCaseWords=b[2];d.IgnoreDomainNames=b[3];!parseInt(d.IgnoreAllCapsWords,10)?c.IgnoreAllCapsWords.setValue("",!1):c.IgnoreAllCapsWords.setValue("checked",!1);!parseInt(d.IgnoreWordsNumbers,10)?c.IgnoreWordsNumbers.setValue("",!1):c.IgnoreWordsNumbers.setValue("checked", -!1);!parseInt(d.IgnoreMixedCaseWords,10)?c.IgnoreMixedCaseWords.setValue("",!1):c.IgnoreMixedCaseWords.setValue("checked",!1);!parseInt(d.IgnoreDomainNames,10)?c.IgnoreDomainNames.setValue("",!1):c.IgnoreDomainNames.setValue("checked",!1);d.IgnoreAllCapsWords=!c.IgnoreAllCapsWords.getValue()?0:1;d.IgnoreWordsNumbers=!c.IgnoreWordsNumbers.getValue()?0:1;d.IgnoreMixedCaseWords=!c.IgnoreMixedCaseWords.getValue()?0:1;d.IgnoreDomainNames=!c.IgnoreDomainNames.getValue()?0:1;c.IgnoreAllCapsWords.getElement().$.lastChild.innerHTML= -a.LocalizationComing.IgnoreAllCapsWords;c.IgnoreWordsNumbers.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreWordsWithNumbers;c.IgnoreMixedCaseWords.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreMixedCaseWords;c.IgnoreDomainNames.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreDomainNames}}});CKEDITOR.dialog.on("resize",function(b){var b=b.data,c=b.dialog,d=CKEDITOR.document.getById(a.iframeNumber+"_"+c._.currentTabId);"checkspell"==c._.name&&(a.bnr?d&& -d.setSize("height",b.height-310):d&&d.setSize("height",b.height-220))});CKEDITOR.on("dialogDefinition",function(b){var c=b.data.definition;a.onLoadOverlay=new q({opacity:"1",background:"#fff",target:c.dialog.parts.tabs.getParent().$});a.onLoadOverlay.setEnable();c.dialog.on("show",function(){});c.dialog.on("cancel",function(){c.dialog.getParentEditor().config.wsc_onClose.call(this.document.getWindow().getFrame());a.div_overlay.setDisable();return!1},this,null,-1)})})(); \ No newline at end of file +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.html or http://ckeditor.com/license + */ + (function() { + // Create support tools + var appTools = (function(){ + var inited = {}; + + var _init = function(handler) { + if (window.addEventListener) { + window.addEventListener('message', handler, false); + } else { + window.attachEvent("onmessage", handler); + } + }; + + var unbindHandler = function(handler) { + if (window.removeEventListener) { + window.removeEventListener('message', handler, false); + } else { + window.detachEvent('onmessage', handler); + } + }; + + var _sendCmd = function(o) { + var str, + type = Object.prototype.toString, + objObject = "[object Object]", + fn = o.fn || null, + id = o.id || '', + target = o.target || window, + message = o.message || { + 'id': id + }; + + if (o.message && type.call(o.message) == objObject) { + (o.message.id) ? o.message.id : o.message.id = id; + message = o.message; + } + + str = window.JSON.stringify(message, fn); + target.postMessage(str, '*'); + }; + + var _hashCreate = function(o, fn) { + fn = fn || null; + var str = window.JSON.stringify(o, fn); + return str; + }; + + var _hashParse = function(str, fn) { + fn = fn || null; + return window.JSON.parse(str, fn); + }; + + var setCookie = function(name, value, options) { + options = options || {}; + + var expires = options.expires; + + if (typeof expires == "number" && expires) { + var d = new Date(); + d.setTime(d.getTime() + expires*1000); + expires = options.expires = d; + } + if (expires && expires.toUTCString) { + options.expires = expires.toUTCString(); + } + + value = encodeURIComponent(value); + var updatedCookie = name + "=" + value; + + for(var propName in options) { + var propValue = options[propName]; + updatedCookie += "; " + propName; + if (propValue !== true) { + updatedCookie += "=" + propValue; + } + } + document.cookie = updatedCookie; + }; + + var getCookie = function(name) { + var matches = document.cookie.match(new RegExp( + "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" + )); + return matches ? decodeURIComponent(matches[1]) : undefined; + }; + + var deleteCookie = function(name) { + setCookie(name, "", { expires: -1 }); + }; + + var findFocusable = function(ckEl) { + var result = null, + focusableSelectors = 'a[href], area[href], input, select, textarea, button, *[tabindex], *[contenteditable]'; + + if(ckEl) { + result = ckEl.find(focusableSelectors); + } + + return result; + }; + + var getStyle = function(el, prop) { + if(document.defaultView && document.defaultView.getComputedStyle) { + return document.defaultView.getComputedStyle(el, null)[prop]; + } else if(el.currentStyle) { + return el.currentStyle[prop]; + } else { + return el.style[prop]; + } + }; + + var isHidden = function(el) { + return el.offsetWidth === 0 || el.offsetHeight == 0 || getStyle(el, 'display') === 'none'; + }; + + var isVisible = function(el) { + return !isHidden(el); + }; + + var hasClass = function (obj, cname) { + return !!(obj.className ? obj.className.match(new RegExp('(\\s|^)'+cname+'(\\s|$)')) : false); + }; + + return { + postMessage: { + init: _init, + send: _sendCmd, + unbindHandler: unbindHandler + }, + hash: { + create: function() { + + }, + + parse: function() { + + } + }, + cookie: { + set: setCookie, + get: getCookie, + remove: deleteCookie + }, + misc: { + findFocusable: findFocusable, + isVisible: isVisible, + hasClass: hasClass + } + }; + })(); + + var NS = NS || {}; + NS.TextAreaNumber = null; + NS.load = true; + NS.cmd = { + "SpellTab": 'spell', + "Thesaurus": 'thes', + "GrammTab": 'grammar' + }; + NS.dialog = null; + NS.optionNode = null; + NS.selectNode = null; + NS.grammerSuggest = null; + NS.textNode = {}; + NS.iframeMain = null; + NS.dataTemp = ''; + NS.div_overlay = null; + NS.textNodeInfo = {}; + NS.selectNode = {}; + NS.selectNodeResponce = {}; + NS.langList = null; + NS.langSelectbox = null; + NS.banner = ''; + NS.show_grammar = null; + NS.div_overlay_no_check = null; + NS.targetFromFrame = {}; + NS.onLoadOverlay = null; + NS.LocalizationComing = {}; + NS.OverlayPlace = null; + NS.sessionid = ''; + NS.LocalizationButton = { + 'ChangeTo_button': { + 'instance' : null, + 'text' : 'Change to', + 'localizationID': 'ChangeTo' + }, + + 'ChangeAll': { + 'instance' : null, + 'text' : 'Change All' + }, + + 'IgnoreWord': { + 'instance' : null, + 'text' : 'Ignore word' + }, + + 'IgnoreAllWords': { + 'instance' : null, + 'text' : 'Ignore all words' + }, + + 'Options': { + 'instance' : null, + 'text' : 'Options', + 'optionsDialog': { + 'instance' : null + } + }, + + 'AddWord': { + 'instance' : null, + 'text' : 'Add word' + }, + + 'FinishChecking_button': { + 'instance' : null, + 'text' : 'Finish Checking', + 'localizationID': 'FinishChecking' + }, + + 'FinishChecking_button_block': { + 'instance' : null, + 'text' : 'Finish Checking', + 'localizationID': 'FinishChecking' + } + }; + + NS.LocalizationLabel = { + 'ChangeTo_label': { + 'instance' : null, + 'text' : 'Change to', + 'localizationID': 'ChangeTo' + }, + + 'Suggestions': { + 'instance' : null, + 'text' : 'Suggestions' + }, + + 'Categories': { + 'instance' : null, + 'text' : 'Categories' + }, + + 'Synonyms': { + 'instance' : null, + 'text' : 'Synonyms' + } + }; + + var SetLocalizationButton = function(obj) { + var el, localizationID; + + for(var i in obj) { + el = NS.dialog.getContentElement(NS.dialog._.currentTabId, i); + + if(el) { + el = el.getElement(); + } else { + el = obj[i].instance.getElement().getFirst() || obj[i].instance.getElement(); + } + + localizationID = obj[i].localizationID || i; + el.setText(NS.LocalizationComing[localizationID]); + } + }; + + var SetLocalizationLabel = function(obj) { + var el, localizationID; + + for(var i in obj) { + el = NS.dialog.getContentElement(NS.dialog._.currentTabId, i); + + if(!el) { + el = obj[i].instance; + } + + if(el.setLabel) { + localizationID = obj[i].localizationID || i; + el.setLabel(NS.LocalizationComing[localizationID] + ':'); + } + } + }; + var OptionsConfirm = function(state) { + if (state) { + nameNode.setValue(''); + } + }; + + var iframeOnload = false; + var nameNode, selectNode, frameId; + + NS.framesetHtml = function(tab) { + var str = ''; + return str; + }; + + NS.setIframe = function(that, nameTab) { + var iframe, + str = NS.framesetHtml(nameTab), + iframeId = NS.iframeNumber + '_' + nameTab, + // tmp.html from wsc/dialogs + iframeInnerHtml = + '' + + '' + + '' + + '' + + 'iframe' + + + '' + + '' + + '' + + '
    ' + + '' + + '' + + '' + + '' + + '' + + '' + + ''; + + that.getElement().setHtml(str); + iframe = document.getElementById(iframeId); + iframe = (iframe.contentWindow) ? iframe.contentWindow : (iframe.contentDocument.document) ? iframe.contentDocument.document : iframe.contentDocument; + iframe.document.open(); + iframe.document.write(iframeInnerHtml); + iframe.document.close(); + }; + + NS.setCurrentIframe = function(currentTab) { + var that = NS.dialog._.contents[currentTab].Content, + tabID, iframe; + + NS.setIframe(that, currentTab); + + }; + + NS.setHeightBannerFrame = function() { + var height = "90px", + bannerPlaceSpellTab = NS.dialog.getContentElement('SpellTab', 'banner').getElement(), + bannerPlaceGrammTab = NS.dialog.getContentElement('GrammTab', 'banner').getElement(), + bannerPlaceThesaurus = NS.dialog.getContentElement('Thesaurus', 'banner').getElement(); + + bannerPlaceSpellTab.setStyle('height', height); + bannerPlaceGrammTab.setStyle('height', height); + bannerPlaceThesaurus.setStyle('height', height); + }; + + NS.setHeightFrame = function() { + var currentTab = NS.dialog._.currentTabId, + tabID = NS.iframeNumber + '_' + currentTab, + iframe = document.getElementById(tabID); + + iframe.style.height = '240px'; + }; + + NS.sendData = function(scope) { + var currentTab = scope._.currentTabId, + that = scope._.contents[currentTab].Content, + tabID, iframe; + + NS.previousTab = currentTab; + NS.setIframe(that, currentTab); + + var loadNewTab = function(event) { + currentTab = scope._.currentTabId; + event = event || window.event; + + if (!event.data.getTarget().is('a')) { + return; + } + + if(currentTab === NS.previousTab) return; + NS.previousTab = currentTab; + + that = scope._.contents[currentTab].Content; + tabID = NS.iframeNumber + '_' + currentTab; + NS.div_overlay.setEnable(); + + if (!that.getElement().getChildCount()) { + NS.setIframe(that, currentTab); + iframe = document.getElementById(tabID); + NS.targetFromFrame[tabID] = iframe.contentWindow; + } else { + sendData(NS.targetFromFrame[tabID], NS.cmd[currentTab]); + } + }; + + scope.parts.tabs.removeListener('click', loadNewTab); + scope.parts.tabs.on('click', loadNewTab); + }; + + NS.buildSelectLang = function(aId) { + var divContainer = new CKEDITOR.dom.element('div'), + selectContainer = new CKEDITOR.dom.element('select'), + id = "wscLang" + aId; + + divContainer.addClass("cke_dialog_ui_input_select"); + divContainer.setAttribute("role", "presentation"); + divContainer.setStyles({ + 'height': 'auto', + 'position': 'absolute', + 'right': '0', + 'top': '-1px', + 'width': '160px', + 'white-space': 'normal' + }); + + selectContainer.setAttribute('id', id); + selectContainer.addClass("cke_dialog_ui_input_select"); + selectContainer.setStyles({ + 'width': '160px' + }); + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + divContainer.append(selectContainer); + + return divContainer; + + }; + + NS.buildOptionLang = function(key, aId) { + var id = "wscLang" + aId; + var select = document.getElementById(id), + fragment = document.createDocumentFragment(), + create_option, txt_option, + sort = []; + + if(select.options.length === 0) { + for (var lang in key) { + sort.push([lang, key[lang]]); + } + sort.sort(); + + for (var i = 0; i < sort.length; i++) { + create_option=document.createElement("option"); + create_option.setAttribute("value", sort[i][1]); + txt_option = document.createTextNode(sort[i][0]); + create_option.appendChild(txt_option); + + fragment.appendChild(create_option); + } + select.appendChild(fragment); + } + + // make appropriate option selected according to current selected language + for (var j = 0; j < select.options.length; j++) { + if (select.options[j].value == NS.selectingLang) { + select.options[j].selected = "selected"; + } + } + }; + + NS.buildOptionSynonyms = function(key) { + var syn = NS.selectNodeResponce[key]; + + var select = getSelect( NS.selectNode['Synonyms'] ); + + NS.selectNode['Synonyms'].clear(); + + for (var i = 0; i < syn.length; i++) { + var option = document.createElement('option'); + option.text = syn[i]; + option.value = syn[i]; + + select.$.add(option, i); + } + + NS.selectNode['Synonyms'].getInputElement().$.firstChild.selected = true; + NS.textNode['Thesaurus'].setValue(NS.selectNode['Synonyms'].getInputElement().getValue()); + }; + + var setBannerInPlace = function(htmlBanner) { + var findBannerPlace = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'banner').getElement(); + findBannerPlace.setHtml(htmlBanner); + + }; + + var overlayBlock = function overlayBlock(opt) { + var progress = opt.progress || "", + doc = document, + target = opt.target || doc.body, + overlayId = opt.id || "overlayBlock", + opacity = opt.opacity || "0.9", + background = opt.background || "#f1f1f1", + getOverlay = doc.getElementById(overlayId), + thisOverlay = getOverlay || doc.createElement("div"); + + thisOverlay.style.cssText = "position: absolute;" + + "top:30px;" + + "bottom:41px;" + + "left:1px;" + + "right:1px;" + + "z-index: 10020;" + + "padding:0;" + + "margin:0;" + + "background:" + background + ";" + + "opacity: " + opacity + ";" + + "filter: alpha(opacity=" + opacity * 100 + ");" + + "display: none;"; + thisOverlay.id = overlayId; + + if (!getOverlay) { + target.appendChild(thisOverlay); + } + + return { + setDisable: function() { + thisOverlay.style.display = "none"; + }, + setEnable: function() { + thisOverlay.style.display = "block"; + } + }; + }; + + var buildRadioInputs = function(key, value, check) { + var divContainer = new CKEDITOR.dom.element('div'), + radioButton = new CKEDITOR.dom.element('input'), + radioLabel = new CKEDITOR.dom.element('label'), + id = "wscGrammerSuggest" + key + "_" + value; + + divContainer.addClass("cke_dialog_ui_input_radio"); + divContainer.setAttribute("role", "presentation"); + divContainer.setStyles({ + width: "97%", + padding: "5px", + 'white-space': 'normal' + }); + + radioButton.setAttributes({ + type: "radio", + value: value, + name: 'wscGrammerSuggest', + id: id + }); + radioButton.setStyles({ + "float":"left" + }); + + radioButton.on("click", function(data) { + NS.textNode['GrammTab'].setValue(data.sender.getValue()); + }); + + (check) ? radioButton.setAttribute("checked", true) : false; + + radioButton.addClass("cke_dialog_ui_radio_input"); + + radioLabel.appendText(key); + radioLabel.setAttribute("for", id); + radioLabel.setStyles({ + 'display': "block", + 'line-height': '16px', + 'margin-left': '18px', + 'white-space': 'normal' + }); + + divContainer.append(radioButton); + divContainer.append(radioLabel); + + return divContainer; + }; + + var statusGrammarTab = function(aState) { //#19221 + aState = aState || 'true'; + if(aState !== null && aState == 'false'){ + hideGrammTab(); + } + }; + + var langConstructor = function(lang) { + var langSelectBox = new __constructLangSelectbox(lang), + selectId = "wscLang" + NS.dialog.getParentEditor().name, + selectContainer = document.getElementById(selectId), + currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + NS.buildOptionLang(langSelectBox.setLangList, NS.dialog.getParentEditor().name); + tabView[langSelectBox.getCurrentLangGroup(NS.selectingLang)].onShow(); + statusGrammarTab(NS.show_grammar); + + selectContainer.onchange = function(e) { + var langGroup = langSelectBox.getCurrentLangGroup(this.value), + currentTabId = NS.dialog._.currentTabId, + cmd; + + e = e || window.event; + + tabView[langGroup].onShow(); + statusGrammarTab(NS.show_grammar); + NS.div_overlay.setEnable(); + NS.selectingLang = this.value; + + // get command for current opened tan + cmd = NS.cmd[currentTabId]; + // check whether current tab can be opened after language switching + if(!langGroup || !tabView[langGroup] || !tabView[langGroup].allowedTabCommands[cmd]) { + // if not so - set default tab to open after reload + cmd = tabView[langGroup].defaultTabCommand; + } + + for(var key in NS.cmd) { + if(NS.cmd[key] == cmd) { + NS.previousTab = key; + break; + } + } + + appTools.postMessage.send({ + 'message': { + 'changeLang': NS.selectingLang, + 'interfaceLang' : NS.interfaceLang, + 'text': NS.dataTemp, + 'cmd': cmd + }, + 'target': NS.targetFromFrame[frameId], + 'id': 'selectionLang_outer__page' + }); + }; + + }; + + var disableButtonSuggest = function(word) { + var changeToButton, changeAllButton, + styleDisable = function(instanceButton) { + var button = NS.dialog.getContentElement(NS.dialog._.currentTabId, instanceButton) || NS.LocalizationButton[instanceButton].instance; + button.getElement().hasClass('cke_disabled') ? button.getElement().setStyle('color', '#a0a0a0') : button.disable(); + }, + styleEnable = function(instanceButton) { + var button = NS.dialog.getContentElement(NS.dialog._.currentTabId, instanceButton) || NS.LocalizationButton[instanceButton].instance; + button.enable(); + button.getElement().setStyle('color', '#333'); + }; + + if (word == 'no_any_suggestions') { + word = 'No suggestions'; + + changeToButton = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'ChangeTo_button') || NS.LocalizationButton['ChangeTo_button'].instance; + changeToButton.disable(); + changeAllButton = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'ChangeAll') || NS.LocalizationButton['ChangeAll'].instance; + changeAllButton.disable(); + + styleDisable('ChangeTo_button'); + styleDisable('ChangeAll'); + + return word; + } else { + styleEnable('ChangeTo_button'); + styleEnable('ChangeAll'); + + return word; + } + }; + + function getSelect( obj ) { + if ( obj && obj.domId && obj.getInputElement().$ ) + return obj.getInputElement(); + else if ( obj && obj.$ ) + return obj; + return false; + } + + var handlerId = { + iframeOnload: function(response) { + NS.div_overlay.setEnable(); + iframeOnload = true; + var currentTab = NS.dialog._.currentTabId, + tabId = NS.iframeNumber + '_' + currentTab; + sendData(NS.targetFromFrame[tabId], NS.cmd[currentTab]); + }, + + suggestlist: function(response) { + delete response.id; + NS.div_overlay_no_check.setDisable(); + hideCurrentFinishChecking(); + langConstructor(NS.langList); + + var word = disableButtonSuggest(response.word), + suggestionsList = ''; + + if (word instanceof Array) { + word = response.word[0]; + } + + word = word.split(','); + suggestionsList = word; + + NS.textNode['SpellTab'].setValue(suggestionsList[0]); + + var select = getSelect( selectNode ); + + selectNode.clear(); + + for (var i = 0; i < suggestionsList.length; i++) { + var option = document.createElement('option'); + option.text = suggestionsList[i]; + option.value = suggestionsList[i]; + + select.$.add(option, i); + } + + showCurrentTabs(); + NS.div_overlay.setDisable(); + + }, + + grammerSuggest: function(response) { + delete response.id; + delete response.mocklangs; + + hideCurrentFinishChecking(); + langConstructor(NS.langList); // Show select language for this command CKEDITOR.config.wsc_cmd + var firstSuggestValue = response.grammSuggest[0];// ? firstSuggestValue = response.grammSuggest[0] : firstSuggestValue = 'No suggestion for this words'; + NS.grammerSuggest.getElement().setHtml(''); + + NS.textNode['GrammTab'].reset(); + NS.textNode['GrammTab'].setValue(firstSuggestValue); + + NS.textNodeInfo['GrammTab'].getElement().setHtml(''); + NS.textNodeInfo['GrammTab'].getElement().setText(response.info); + + var arr = response.grammSuggest, + len = arr.length, + check = true; + + for (var i = 0; i < len; i++) { + NS.grammerSuggest.getElement().append(buildRadioInputs(arr[i], arr[i], check)); + check = false; + } + + showCurrentTabs(); + NS.div_overlay.setDisable(); + }, + + thesaurusSuggest: function(response) { + delete response.id; + delete response.mocklangs; + + hideCurrentFinishChecking(); + langConstructor(NS.langList); // Show select language for this command CKEDITOR.config.wsc_cmd + NS.selectNodeResponce = response; + + NS.textNode['Thesaurus'].reset(); + + var select = getSelect( NS.selectNode['Categories'] ), + count = 0; + + NS.selectNode['Categories'].clear(); + + for (var i in response) { + + var option = document.createElement('option'); + option.text = i; + option.value = i; + + select.$.add(option, count); + count++ + } + + var synKey = NS.selectNode['Categories'].getInputElement().getChildren().$[0].value; + NS.selectNode['Categories'].getInputElement().getChildren().$[0].selected = true; + NS.buildOptionSynonyms(synKey); + + showCurrentTabs(); + NS.div_overlay.setDisable(); + count = 0; + }, + finish: function(response) { + delete response.id; + + hideCurrentTabs(); + showCurrentFinishChecking(); + NS.div_overlay.setDisable(); + }, + settext: function(response) { + delete response.id; + + var command = NS.dialog.getParentEditor().getCommand( 'checkspell' ), + editor = NS.dialog.getParentEditor(); + + //set local storage for synchronization before scayt reinit + if (editor.scayt && editor.wsc.isSsrvSame) { + var wscUDN = editor.wsc.udn; + + if (!wscUDN) { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', ''); + } else { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', wscUDN); + } + } + + + try { + editor.focus(); + } catch(e) {} + + editor.setData(response.text, function(){ + NS.dataTemp = ''; + editor.unlockSelection(); + editor.fire('saveSnapshot'); + NS.dialog.hide(); + }); + + }, + ReplaceText: function(response) { + + delete response.id; + NS.div_overlay.setEnable(); + + NS.dataTemp = response.text; + NS.selectingLang = response.currentLang; + + if (response.cmd = 'spell' && response.len !== '0' && response.len) { + NS.div_overlay.setDisable(); + } else { + window.setTimeout(function() { + try { + NS.div_overlay.setDisable(); + } catch(e) {} + }, 500); + } + + SetLocalizationButton(NS.LocalizationButton); + SetLocalizationLabel(NS.LocalizationLabel); + + }, + options_checkbox_send: function(response) { + delete response.id; + + var obj = { + 'osp': appTools.cookie.get('osp'), + 'udn': appTools.cookie.get('udn'), + 'cust_dic_ids': NS.cust_dic_ids + }; + + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId], + 'id': 'options_outer__page' + }); + }, + + getOptions: function(response) { + var udn = response.DefOptions.udn; + NS.LocalizationComing = response.DefOptions.localizationButtonsAndText; + NS.show_grammar = response.show_grammar; + NS.langList = response.lang; + NS.bnr = response.bannerId; + NS.sessionid = response.sessionid; + if (response.bannerId) { + NS.setHeightBannerFrame(); + setBannerInPlace(response.banner); + } else { + NS.setHeightFrame(); + } + + if (udn == 'undefined') { + if (NS.userDictionaryName) { + udn = NS.userDictionaryName; + + var obj = { + 'osp': appTools.cookie.get('osp'), + 'udn': NS.userDictionaryName, + 'cust_dic_ids': NS.cust_dic_ids, + 'id': 'options_dic_send', + 'udnCmd': 'create' + }; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId] + }); + + } else{ + udn = ''; + } + } + + appTools.cookie.set('osp', response.DefOptions.osp); + appTools.cookie.set('udn', udn); + appTools.cookie.set('cust_dic_ids', response.DefOptions.cust_dic_ids); + + appTools.postMessage.send({ + 'id': 'giveOptions' + }); + }, + + options_dic_send: function(response) { + + var obj = { + 'osp': appTools.cookie.get('osp'), + 'udn': appTools.cookie.get('udn'), + 'cust_dic_ids': NS.cust_dic_ids, + 'id': 'options_dic_send', + 'udnCmd': appTools.cookie.get('udnCmd') + }; + + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId] + }); + }, + data: function(response) { + delete response.id; + }, + + giveOptions: function() { + + }, + + setOptionsConfirmF:function() { + OptionsConfirm(false); + }, + + setOptionsConfirmT:function() { + OptionsConfirm(true); + }, + + clickBusy: function() { + NS.div_overlay.setEnable(); + }, + + suggestAllCame: function() { + NS.div_overlay.setDisable(); + NS.div_overlay_no_check.setDisable(); + }, + + TextCorrect: function() { + langConstructor(NS.langList); + } + + }; + + var handlerIncomingData = function(event) { + event = event || window.event; + var response = window.JSON.parse(event.data); + + if(response && response.id) { + handlerId[response.id](response); + } + }; + + var handlerButtonOptions = function(event) { + event = event || window.event; + + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': { + 'cmd': 'Options' + }, + 'target': NS.targetFromFrame[frameId], + 'id': 'cmd' + }); + + }; + + var sendData = function(frameTarget, cmd, sendText, reset_suggest) { + cmd = cmd || CKEDITOR.config.wsc_cmd; + reset_suggest = reset_suggest || false; + sendText = sendText || NS.dataTemp; + appTools.postMessage.send({ + 'message': { + 'customerId': NS.wsc_customerId, + 'text': sendText, + 'txt_ctrl': NS.TextAreaNumber, + 'cmd': cmd, + 'cust_dic_ids': NS.cust_dic_ids, + 'udn': NS.userDictionaryName, + 'slang': NS.selectingLang, + 'interfaceLang' : NS.interfaceLang, + 'reset_suggest': reset_suggest, + 'sessionid': NS.sessionid + }, + 'target': frameTarget, + 'id': 'data_outer__page' + }); + + NS.div_overlay.setEnable(); + }; + + var tabView = { + "superset": { + onShow: function() { + showThesaurusTab(); + showGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true, + "grammar": true, + "thes": true + }, + defaultTabCommand: "spell" + }, + "usual": { + onShow: function() { + hideThesaurusTab(); + hideGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true + }, + defaultTabCommand: "spell" + }, + "rtl": { + onShow: function() { + hideThesaurusTab(); + hideGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true + }, + defaultTabCommand: "spell" + }, + "spellgrammar": { + onShow: function() { + hideThesaurusTab(); + showGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true, + "grammar": true + }, + defaultTabCommand: "spell" + }, + "spellthes": { + onShow: function() { + showThesaurusTab(); + hideGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true, + "thes": true + }, + defaultTabCommand: "spell" + } + }; + + var showFirstTab = function(scope) { + var cmdManger = function(cmdView) { + var obj = {}; + var _getCmd = function(cmd) { + for (var tabId in cmdView) { + obj[cmdView[tabId]] = tabId; + } + return obj[cmd]; + }; + return { + getCmdByTab: _getCmd + }; + }; + + var cmdM = new cmdManger(NS.cmd), + tabToOpen = cmdM.getCmdByTab(CKEDITOR.config.wsc_cmd); + + scope.selectPage(tabToOpen); + NS.sendData(scope); + }; + + var showThesaurusTab = function() { + NS.dialog.showPage('Thesaurus'); + }; + + var hideThesaurusTab = function() { + NS.dialog.hidePage('Thesaurus'); + }; + + var showGrammTab = function() { + NS.dialog.showPage('GrammTab'); + }; + + var hideGrammTab = function() { + NS.dialog.hidePage('GrammTab'); + }; + + var showSpellTab = function() { + NS.dialog.showPage('SpellTab'); + }; + + var hideSpellTab = function() { + NS.dialog.hidePage('SpellTab'); + }; + + var showCurrentTabs = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'bottomGroup').getElement(); + + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.show(); + }; + + var hideCurrentTabs = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'bottomGroup').getElement(), + activeElement = document.activeElement, + focusableElements; + + target.setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + + setTimeout(function() { + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.hide(); + + NS.dialog._.editor.focusManager.currentActive.focusNext(); + + focusableElements = appTools.misc.findFocusable(NS.dialog.parts.contents); + if(!appTools.misc.hasClass(activeElement, 'cke_dialog_tab') && !appTools.misc.hasClass(activeElement, 'cke_dialog_contents_body') && appTools.misc.isVisible(activeElement)) { + try { + activeElement.focus(); + } catch(e) {} + } else { + for(var i = 0, tmpCkEl; i < focusableElements.count(); i++) { + tmpCkEl = focusableElements.getItem(i); + if(appTools.misc.isVisible(tmpCkEl.$)) { + try { + tmpCkEl.$.focus(); + } catch(e) {} + + break; + } + } + } + }, 0); + }; + + var showCurrentFinishChecking = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'BlockFinishChecking').getElement(); + + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.show(); + }; + + var hideCurrentFinishChecking = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'BlockFinishChecking').getElement(), + activeElement = document.activeElement, + focusableElements; + + target.setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + + setTimeout(function() { + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.hide(); + + NS.dialog._.editor.focusManager.currentActive.focusNext(); + + focusableElements = appTools.misc.findFocusable(NS.dialog.parts.contents); + if(!appTools.misc.hasClass(activeElement, 'cke_dialog_tab') && !appTools.misc.hasClass(activeElement, 'cke_dialog_contents_body') && appTools.misc.isVisible(activeElement)) { + try { + activeElement.focus(); + } catch(e) {} + } else { + for(var i = 0, tmpCkEl; i < focusableElements.count(); i++) { + tmpCkEl = focusableElements.getItem(i); + if(appTools.misc.isVisible(tmpCkEl.$)) { + try { + tmpCkEl.$.focus(); + } catch(e) {} + + break; + } + } + } + }, 0); + }; + + + +function __constructLangSelectbox(languageGroup) { + if( !languageGroup ) { throw "Languages-by-groups list are required for construct selectbox"; } + + var that = this, + o_arr = [], + priorLang ="en_US", + priorLangTitle = "", + currLang = NS.selectingLang; + + for ( var group in languageGroup){ + for ( var langCode in languageGroup[group]){ + var langName = languageGroup[group][langCode]; + if ( langName == priorLang ) { + priorLangTitle = langName; + } else { + o_arr.push( langName ); + } + } + } + + o_arr.sort(); + if(priorLangTitle) { + o_arr.unshift( priorLangTitle ); + } + + var searchGroup = function ( code ){ + for ( var group in languageGroup){ + for ( var langCode in languageGroup[group]){ + if ( langCode.toUpperCase() === code.toUpperCase() ) { + return group; + } + } + } + return ""; + }; + + var _setLangList = function() { + var langList = {}, + langArray = []; + for (var group in languageGroup) { + for ( var langCode in languageGroup[group]){ + langList[languageGroup[group][langCode]] = langCode; + } + } + return langList; + }; + + var _return = { + getCurrentLangGroup: function(code) { + return searchGroup(code); + }, + setLangList: _setLangList() + }; + + return _return; +} + +CKEDITOR.dialog.add('checkspell', function(editor) { + var handlerButtons = function(event) { + event = event || window.event; + + // because in chrome and safary document.activeElement returns tag. We need to signal that clicked element is active + this.getElement().focus(); + + NS.div_overlay.setEnable(); + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId, + new_word = NS.textNode[currentTabId].getValue(), + cmd = this.getElement().getAttribute("title-cmd"); + + appTools.postMessage.send({ + 'message': { + 'cmd': cmd, + 'tabId': currentTabId, + 'new_word': new_word + }, + 'target': NS.targetFromFrame[frameId], + 'id': 'cmd_outer__page' + }); + + if (cmd == 'ChangeTo' || cmd == 'ChangeAll') { + editor.fire('saveSnapshot'); + } + + if (cmd == 'FinishChecking') { + editor.config.wsc_onFinish.call(CKEDITOR.document.getWindow().getFrame()); + } + + }, + constraints = { + minWidth: 560, + minHeight: 444 + }; + + function initView(dialog) { + var newViewSettings = { + left: parseInt(editor.config.wsc_left, 10), + top: parseInt(editor.config.wsc_top, 10), + width: parseInt(editor.config.wsc_width, 10), + height: parseInt(editor.config.wsc_height, 10) + }, + viewSize = CKEDITOR.document.getWindow().getViewPaneSize(), + currentPosition = dialog.getPosition(), + currentSize = dialog.getSize(), + savePosition = 0; + + if(!dialog._.resized) { + var wrapperHeight = currentSize.height - dialog.parts.contents.getSize('height', !(CKEDITOR.env.gecko || CKEDITOR.env.opera || CKEDITOR.env.ie && CKEDITOR.env.quirks)), + wrapperWidth = currentSize.width - dialog.parts.contents.getSize('width', 1); + + if(newViewSettings.width < constraints.minWidth || isNaN(newViewSettings.width)) { + newViewSettings.width = constraints.minWidth; + } + if(newViewSettings.width > viewSize.width - wrapperWidth) { + newViewSettings.width = viewSize.width - wrapperWidth; + } + + if(newViewSettings.height < constraints.minHeight || isNaN(newViewSettings.height)) { + newViewSettings.height = constraints.minHeight; + } + if(newViewSettings.height > viewSize.height - wrapperHeight) { + newViewSettings.height = viewSize.height - wrapperHeight; + } + + currentSize.width = newViewSettings.width + wrapperWidth; + currentSize.height = newViewSettings.height + wrapperHeight; + + dialog._.fromResizeEvent = false; + dialog.resize(newViewSettings.width, newViewSettings.height); + setTimeout(function() { + dialog._.fromResizeEvent = false; + CKEDITOR.dialog.fire('resize', { + dialog: dialog, + width: newViewSettings.width, + height: newViewSettings.height + }, editor); + }, 300); + } + + if(!dialog._.moved) { + savePosition = isNaN(newViewSettings.left) && isNaN(newViewSettings.top) ? 0 : 1; + + if(isNaN(newViewSettings.left)) { + newViewSettings.left = (viewSize.width - currentSize.width) / 2; + } + if(newViewSettings.left < 0) { + newViewSettings.left = 0; + } + if(newViewSettings.left > viewSize.width - currentSize.width) { + newViewSettings.left = viewSize.width - currentSize.width; + } + + if(isNaN(newViewSettings.top)) { + newViewSettings.top = (viewSize.height - currentSize.height) / 2; + } + if(newViewSettings.top < 0) { + newViewSettings.top = 0; + } + if(newViewSettings.top > viewSize.height - currentSize.height) { + newViewSettings.top = viewSize.height - currentSize.height; + } + + dialog.move(newViewSettings.left, newViewSettings.top, savePosition); + } + } + + function createWscObjectForUdAndUdnSyncrhonization() { + editor.wsc = {}; + + //DataStorage object for cookies and localStorage manipulation + (function( object ) { + 'use strict'; + + var DataTypeManager = { + separator: '<$>', + getDataType: function(value) { + var type; + + if(typeof value === 'undefined') { + type = 'undefined'; + } else if(value === null) { + type = 'null'; + } else { + type = Object.prototype.toString.call(value).slice(8, -1); + } + return type; + }, + convertDataToString: function(value) { + var str, + type = this.getDataType(value).toLowerCase(); + + str = type + this.separator + value; + return str; + }, + // get value type and convert value due to type, since all stored values are String + restoreDataFromString: function(str) { + var value = str, + type, + separatorStartIndex; + + // @TODO: remove this line much later. Support of old format for options + str = this.backCompatibility(str); + + if(typeof str === 'string') { + separatorStartIndex = str.indexOf(this.separator); + type = str.substring(0, separatorStartIndex); + value = str.substring(separatorStartIndex + this.separator.length); + + switch(type) { + case 'boolean': + value = value === 'true'; + break; + case 'number': + value = parseFloat(value); + break; + // we assume that we will store string values only, due to performance + case 'array': + value = value === '' ? [] : value.split(','); + break; + case 'null': + value = null; + break; + case 'undefined': + value = undefined; + break; + } + } + return value; + }, + // old data type support + // here we trying to convert data from old format into new + // @TODO: remove this function much later + backCompatibility: function(str) { + var convertedStr = str, + value, + separatorStartIndex; + + if(typeof str === 'string') { + separatorStartIndex = str.indexOf(this.separator); + // is it old format? + if(separatorStartIndex < 0) { + // try to get number from string + value = parseFloat(str); + // is it not a number? + if(isNaN(value)) { + // yes, this is not a number. Lets check is this is an array "[comma,separated,values]" + if((str[0] === '[') && (str[str.length - 1] === ']')) { + // this is an array. Lets remove brackets symbols and extract the words + str = str.replace('[', ''); + str = str.replace(']', ''); + if(str === '') { + value = []; + } else { + value = str.split(','); + } + // value = str === '[]' ? [] : str.split(','); + } else if(str === 'true' || str === 'false') { + // this is boolean value + value = str === 'true'; + } else { + // this is string + value = str; + } + } + + convertedStr = this.convertDataToString(value); + } + } + + return convertedStr; + } + }; + + var LocalStorage = { + + get: function( key ) { + var value = DataTypeManager.restoreDataFromString( window.localStorage.getItem(key) ); + return value; + }, + + set: function( key, value ) { + var _value = DataTypeManager.convertDataToString( value ); + window.localStorage.setItem( key, _value ); + }, + + del: function( key ) { + window.localStorage.removeItem( key ); + }, + + clear: function() { + window.localStorage.clear(); + } + }; + + var CookiesStorage = { + + expiration: (function() { + return 60 * 60 * 24 * 366; + }()), + + get: function(key) { + var value = DataTypeManager.restoreDataFromString(this.getCookie(key)); + return value; + }, + + set: function(key, value) { + var _value = DataTypeManager.convertDataToString(value); + this.setCookie(key, _value, {expires: this.expiration}); + }, + + del: function(key) { + this.deleteCookie(key); + }, + + getCookie: function(name) { + var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)")); + return matches ? decodeURIComponent(matches[1]) : undefined; + }, + + setCookie: function(name, value, props) { + props = props || {}; + var exp = props.expires; + + if (typeof exp === "number" && exp) { + var d = new Date(); + + d.setTime(d.getTime() + exp * 1000); + exp = props.expires = d; + } + + if(exp && exp.toUTCString) { + props.expires = exp.toUTCString(); + } + + value = encodeURIComponent(value); + var updatedCookie = name + "=" + value; + + for(var propName in props) { + var propValue = props[propName]; + + updatedCookie += "; " + propName; + + if(propValue !== true) { + updatedCookie += "=" + propValue; + } + } + + document.cookie = updatedCookie; + }, + + deleteCookie: function(name) { + this.setCookie(name, null, {expires: -1}); + }, + + // delete all cookies + clear: function() { + var cookies = document.cookie.split(";"); + + for (var i = 0; i < cookies.length; i++) { + var cookie = cookies[i]; + var eqPos = cookie.indexOf("="); + var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; + + this.deleteCookie(name); + } + } + }; + + var strategy = window.localStorage ? LocalStorage : CookiesStorage; + + var DataStorage = { + // Get data within storage for key + getData: function( key ) { + return strategy.get( key ); + }, + + // Set data within storage + setData: function( key, value ) { + strategy.set( key, value ); + }, + + // Delete data within storage for key + deleteData: function( key ) { + strategy.del( key ); + }, + + // Clear storage + clear: function() { + strategy.clear(); + } + }; + + // Static Module of Storage Data in the localStorage. + object.DataStorage = DataStorage; + }( editor.wsc )); + + editor.wsc.operationWithUDN = function(command, UDName) { + var obj = { + 'udn': UDName, + 'id': 'operationWithUDN', + 'udnCmd': command + }; + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId] + }); + }; + editor.wsc.getLocalStorageUDN = function() { + var udn = editor.wsc.DataStorage.getData('scayt_user_dictionary_name'); + + if (!udn) { + return; + } + + return udn; + }; + editor.wsc.getLocalStorageUD = function() { + var ud = editor.wsc.DataStorage.getData('scayt_user_dictionary'); + + if (!ud) { + return; + } + + return ud; + }; + editor.wsc.addWords = function(words, callback) { + var url = editor.config.wsc.DefaultParams.serviceHost + editor.config.wsc.DefaultParams.ssrvHost + + '?cmd=dictionary&format=json&' + + 'customerid=1%3AncttD3-fIoSf2-huzwE4-Y5muI2-mD0Tt-kG9Wz-UEDFC-tYu243-1Uq474-d9Z2l3&' + + 'action=addword&word='+ words + '&callback=toString&synchronization=true', + script = document.createElement('script'); + + script['type'] = 'text/javascript'; + script['src'] = url; + document.getElementsByTagName("head")[0].appendChild(script); + + //chrome, firefox, safari + script.onload = callback; + + //IE + script.onreadystatechange = function() { + if (this.readyState === 'loaded') { + callback(); + } + }; + }; + editor.wsc.cgiOrigin = function() { + var wscServiceHostString = editor.config.wsc.DefaultParams.serviceHost, + wscServiceHostArray = wscServiceHostString.split('/'), + cgiOrigin = wscServiceHostArray[0] + '//' + wscServiceHostArray[2]; + + return cgiOrigin; + }; + editor.wsc.isSsrvSame = false; + } + + return { + title: editor.config.wsc_dialogTitle || editor.lang.wsc.title, + minWidth: constraints.minWidth, + minHeight: constraints.minHeight, + buttons: [CKEDITOR.dialog.cancelButton], + onLoad: function() { + NS.dialog = this; + hideThesaurusTab(); + hideGrammTab(); + showSpellTab(); + + //creating wsc object for UD synchronization between wsc and scayt + if (editor.plugins.scayt) { + createWscObjectForUdAndUdnSyncrhonization(); + } + }, + onShow: function() { + NS.dialog = this; + + editor.lockSelection(editor.getSelection()); + + NS.TextAreaNumber = 'cke_textarea_' + editor.name; + appTools.postMessage.init(handlerIncomingData); + NS.dataTemp = editor.getData(); + //NS.div_overlay.setDisable(); + NS.OverlayPlace = NS.dialog.parts.tabs.getParent().$; + if(CKEDITOR && CKEDITOR.config){ + NS.wsc_customerId = editor.config.wsc_customerId; + NS.cust_dic_ids = editor.config.wsc_customDictionaryIds; + NS.userDictionaryName = editor.config.wsc_userDictionaryName; + NS.defaultLanguage = CKEDITOR.config.defaultLanguage; + var protocol = document.location.protocol == "file:" ? "http:" : document.location.protocol; + var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + '//loader.webspellchecker.net/sproxy_fck/sproxy.php?plugin=fck2&customerid=' + NS.wsc_customerId + '&cmd=script&doc=wsc&schema=22'); + } else { + NS.dialog.hide(); + return; + } + + initView(this); + CKEDITOR.scriptLoader.load(wscCoreUrl, function(success) { + if(CKEDITOR.config && CKEDITOR.config.wsc && CKEDITOR.config.wsc.DefaultParams){ + NS.serverLocationHash = CKEDITOR.config.wsc.DefaultParams.serviceHost; + NS.logotype = CKEDITOR.config.wsc.DefaultParams.logoPath; + NS.loadIcon = CKEDITOR.config.wsc.DefaultParams.iconPath; + NS.loadIconEmptyEditor = CKEDITOR.config.wsc.DefaultParams.iconPathEmptyEditor; + NS.LangComparer = new CKEDITOR.config.wsc.DefaultParams._SP_FCK_LangCompare(); + }else{ + NS.serverLocationHash = DefaultParams.serviceHost; + NS.logotype = DefaultParams.logoPath; + NS.loadIcon = DefaultParams.iconPath; + NS.loadIconEmptyEditor = DefaultParams.iconPathEmptyEditor; + NS.LangComparer = new _SP_FCK_LangCompare(); + } + + NS.pluginPath = CKEDITOR.getUrl(editor.plugins.wsc.path); + NS.iframeNumber = NS.TextAreaNumber; + NS.templatePath = NS.pluginPath + 'dialogs/tmp.html'; + NS.LangComparer.setDefaulLangCode( NS.defaultLanguage ); + NS.currentLang = editor.config.wsc_lang || NS.LangComparer.getSPLangCode( editor.langCode ) || 'en_US'; + NS.interfaceLang = editor.config.wsc_interfaceLang; //option to customize the interface language 12/28/2015 + NS.selectingLang = NS.currentLang; + NS.div_overlay = new overlayBlock({ + opacity: "1", + background: "#fff url(" + NS.loadIcon + ") no-repeat 50% 50%", + target: NS.OverlayPlace + + }); + + var number_ck = NS.dialog.parts.tabs.getId(), + dialogPartsTab = CKEDITOR.document.getById(number_ck); + + dialogPartsTab.setStyle('width', '97%'); + if (!dialogPartsTab.getElementsByTag('DIV').count()){ + dialogPartsTab.append(NS.buildSelectLang(NS.dialog.getParentEditor().name)); + } + + NS.div_overlay_no_check = new overlayBlock({ + opacity: "1", + id: 'no_check_over', + background: "#fff url(" + NS.loadIconEmptyEditor + ") no-repeat 50% 50%", + target: NS.OverlayPlace + }); + + if (success) { + showFirstTab(NS.dialog); + NS.dialog.setupContent(NS.dialog); + } + + if (editor.plugins.scayt) { + //is ssrv.cgi path for WSC and scayt same + editor.wsc.isSsrvSame = (function() { + var wscSsrvWholePath, + wscServiceHost = CKEDITOR.config.wsc.DefaultParams.serviceHost.replace('lf/22/js/../../../', '').split('//')[1], + wscSsrvHost = CKEDITOR.config.wsc.DefaultParams.ssrvHost, + scaytSsrvWholePath, + scaytSsrvProtocol, + scaytSsrvHost, + scaytSsrvPath, + + scaytSrcUrl = editor.config.scayt_srcUrl, + scaytSsrvSrcUrlSsrvProtocol, + scaytSsrvSrcUrlSsrvHost, + scaytSsrvSrcUrlSsrvPath, + + scaytBasePath, + scaytBasePathSsrvProtocol, + scaytBasePathSsrvHost, + scaytBasePathSsrvPath; + + if (window.SCAYT && window.SCAYT.CKSCAYT) { + scaytBasePath = SCAYT.CKSCAYT.prototype.basePath; + scaytBasePathSsrvProtocol = scaytBasePath.split('//')[0]; + scaytBasePathSsrvHost = scaytBasePath.split('//')[1].split('/')[0]; + scaytBasePathSsrvPath = scaytBasePath.split(scaytBasePathSsrvHost + '/')[1].replace('/lf/scayt3/ckscayt/', '') + '/script/ssrv.cgi'; + } + + if (scaytSrcUrl && !scaytBasePath && !editor.config.scayt_servicePath) { + scaytSsrvSrcUrlSsrvProtocol = scaytSrcUrl.split('//')[0]; + scaytSsrvSrcUrlSsrvHost = scaytSrcUrl.split('//')[1].split('/')[0]; + scaytSsrvSrcUrlSsrvPath = scaytSrcUrl.split(scaytSsrvSrcUrlSsrvHost + '/')[1].replace('/lf/scayt3/ckscayt/ckscayt.js', '') + '/script/ssrv.cgi'; + } + + scaytSsrvProtocol = editor.config.scayt_serviceProtocol || scaytBasePathSsrvProtocol || scaytSsrvSrcUrlSsrvProtocol; + scaytSsrvHost = editor.config.scayt_serviceHost || scaytBasePathSsrvHost || scaytSsrvSrcUrlSsrvHost; + scaytSsrvPath = editor.config.scayt_servicePath || scaytBasePathSsrvPath || scaytSsrvSrcUrlSsrvPath; + + wscSsrvWholePath = '//' + wscServiceHost + wscSsrvHost; + scaytSsrvWholePath = '//' + scaytSsrvHost + '/' + scaytSsrvPath; + + return wscSsrvWholePath === scaytSsrvWholePath; + })(); + } + + //wsc on scayt UserDictionary and UserDictionaryName synchronization + if (window.SCAYT && editor.wsc && editor.wsc.isSsrvSame) { + var cgiOrigin = editor.wsc.cgiOrigin(); + editor.wsc.syncIsDone = false; + + var getUdOrUdn = function (e) { + if (e.origin === cgiOrigin) { + var data = JSON.parse(e.data); + + if (data.ud && data.ud !== 'undefined') { + editor.wsc.ud = data.ud; + } else if (data.ud === 'undefined') { + editor.wsc.ud = undefined; + } + + if (data.udn && data.udn !== 'undefined') { + editor.wsc.udn = data.udn; + } else if (data.udn === 'undefined') { + editor.wsc.udn = undefined; + } + + if (!editor.wsc.syncIsDone) { + udSynchronization(editor.wsc.ud); + editor.wsc.syncIsDone = true; + } + } + }; + + var udSynchronization = function(cookieUd) { + var localStorageUdArray = editor.wsc.getLocalStorageUD(), + newUd; + + if (localStorageUdArray instanceof Array) { + newUd = localStorageUdArray.toString(); + } + + if (newUd !== undefined && newUd !== '') { + setTimeout(function() { + editor.wsc.addWords(newUd, function() { + showFirstTab(NS.dialog); + NS.dialog.setupContent(NS.dialog); + }); + }, 400); + } + }; + + if (window.addEventListener){ + addEventListener("message", getUdOrUdn, false); + } else { + window.attachEvent("onmessage", getUdOrUdn); + } + + //wsc on scayt UserDictionaryName synchronization + setTimeout( + function() { + var udn = editor.wsc.getLocalStorageUDN(); + + if (udn !== undefined) { + editor.wsc.operationWithUDN('restore', udn); + } + + }, + 500); //need to wait spell.js file to load + + } + }); + + }, + onHide: function() { + var scaytPlugin = CKEDITOR.plugins.scayt, + scaytInstance = editor.scayt; + + editor.unlockSelection(); + + if(scaytPlugin && scaytInstance && scaytPlugin.state[editor.name]) { + scaytInstance.setMarkupPaused(false); + } + + NS.dataTemp = ''; + NS.sessionid = ''; + appTools.postMessage.unbindHandler(handlerIncomingData); + + //scayt on wsc UserDictionary and UserDictionaryName synchronization + if (editor.plugins.scayt && editor.wsc && editor.wsc.isSsrvSame) { + var wscUDN = editor.wsc.udn, + wscUD = editor.wsc.ud, + wscUDarray, + i; + + if (editor.scayt) { // if SCAYT active + if (!wscUDN) { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', ''); + editor.scayt.removeUserDictionary(); + } else { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', wscUDN); + editor.scayt.restoreUserDictionary(wscUDN); + } + + if (wscUD) { + setTimeout(function() { + wscUDarray = wscUD.split(','); + for (i = 0; i < wscUDarray.length; i += 1) { + editor.scayt.addWordToUserDictionary(wscUDarray[i]); + } + }, 200); //wait for 'removeUserDictionary' command response + } + + if (!wscUD) { + editor.wsc.DataStorage.setData('scayt_user_dictionary', []); + } + + } else { //if SCAYT not active + + if (!wscUDN) { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', ''); + } else { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', wscUDN); + } + + if (wscUD) { + wscUDarray = wscUD.split(','); + editor.wsc.DataStorage.setData('scayt_user_dictionary', wscUDarray); + } + } + } + }, + contents: [ + { + id: 'SpellTab', + label: 'SpellChecker', + accessKey: 'S', + elements: [ + { + type: 'html', + id: 'banner', + label: 'banner', + style: '', //TODO + html: '
    ' + }, + { + type: 'html', + id: 'Content', + label: 'spellContent', + html: '', + setup: function(dialog) { + var tabId = NS.iframeNumber + '_' + dialog._.currentTabId; + var iframe = document.getElementById(tabId); + NS.targetFromFrame[tabId] = iframe.contentWindow; + } + }, + { + type: 'hbox', + id: 'bottomGroup', + style: 'width:560px; margin: 0 auto;', + widths: ['50%', '50%'], + className: 'wsc-spelltab-bottom', + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '50%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + widths: ['50%', '50%'], + children: [ + { + type: 'text', + id: 'ChangeTo_label', + label: NS.LocalizationLabel['ChangeTo_label'].text + ':', + labelLayout: 'horizontal', + labelStyle: 'font: 12px/25px arial, sans-serif;', + width: '140px', + 'default': '', + onShow: function() { + NS.textNode['SpellTab'] = this; + NS.LocalizationLabel['ChangeTo_label'].instance = this; + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'text', + id: 'labelSuggestions', + label: NS.LocalizationLabel['Suggestions'].text + ':', + onShow: function() { + NS.LocalizationLabel['Suggestions'].instance = this; + this.getInputElement().setStyles({ + display: 'none' + }); + } + }, + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net', + setup: function(dialog) { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "left" + }); + } + } + ] + }, + { + type: 'select', + id: 'list_of_suggestions', + labelStyle: 'font: 12px/25px arial, sans-serif;', + size: '6', + inputStyle: 'width: 140px; height: auto;', + items: [['loading...']], + onShow: function() { + selectNode = this; + }, + onChange: function() { + NS.textNode['SpellTab'].setValue(this.getValue()); + } + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '50%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + widths: ['50%', '50%', '50%', '50%'], + children: [ + { + type: 'button', + id: 'ChangeTo_button', + label: NS.LocalizationButton['ChangeTo_button'].text, + title: 'Change to', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'ChangeTo'); + NS.LocalizationButton['ChangeTo_button'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'ChangeAll', + label: NS.LocalizationButton['ChangeAll'].text, + title: 'Change All', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['ChangeAll'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'AddWord', + label: NS.LocalizationButton['AddWord'].text, + title: 'Add word', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['AddWord'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'FinishChecking_button', + label: NS.LocalizationButton['FinishChecking_button'].text, + title: 'Finish Checking', + style: 'width: 100%;margin-top: 9px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + NS.LocalizationButton['FinishChecking_button'].instance = this; + }, + onClick: handlerButtons + } + ] + }, + { + type: 'vbox', + id: 'rightCol_col__right', + widths: ['50%', '50%', '50%'], + children: [ + { + type: 'button', + id: 'IgnoreWord', + label: NS.LocalizationButton['IgnoreWord'].text, + title: 'Ignore word', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['IgnoreWord'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'IgnoreAllWords', + label: NS.LocalizationButton['IgnoreAllWords'].text, + title: 'Ignore all words', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['IgnoreAllWords'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'Options', + label: NS.LocalizationButton['Options'].text, + title: 'Option', + style: 'width: 100%;', + onLoad: function() { + NS.LocalizationButton['Options'].instance = this; + if (document.location.protocol == "file:") { + this.disable(); + } + }, + onClick: function() { + // because in chrome and safary document.activeElement returns tag. We need to signal that clicked element is active + this.getElement().focus(); + + if (document.location.protocol == "file:") { + alert('WSC: Options functionality is disabled when runing from file system'); + } else { + activeElement = document.activeElement; + editor.openDialog('options'); + } + } + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'BlockFinishChecking', + style: 'width:560px; margin: 0 auto;', + widths: ['70%', '30%'], + onShow: function() { + this.getElement().setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + }, + onHide: showCurrentTabs, + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '70%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + setup: function() { + this.getChild()[0].getElement().$.src = NS.logotype; + this.getChild()[0].getElement().getParent().setStyles({ + "text-align": "center" + }); + }, + children: [ + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net' + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'button', + id: 'Option_button', + label: NS.LocalizationButton['Options'].text, + title: 'Option', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + if (document.location.protocol == "file:") { + this.disable(); + } + }, + onClick: function() { + // because in chrome and safary document.activeElement returns tag. We need to signal that clicked element is active + this.getElement().focus(); + + if (document.location.protocol == "file:") { + alert('WSC: Options functionality is disabled when runing from file system'); + } else { + activeElement = document.activeElement; + editor.openDialog('options'); + } + } + }, + { + type: 'button', + id: 'FinishChecking_button_block', + label: NS.LocalizationButton['FinishChecking_button_block'].text, + title: 'Finish Checking', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + } + ] + }, + { + id: 'GrammTab', + label: 'Grammar', + accessKey: 'G', + elements: [ + { + type: 'html', + id: 'banner', + label: 'banner', + style: '', //TODO + html: '
    ' + }, + { + type: 'html', + id: 'Content', + label: 'GrammarContent', + html: '', + setup: function() { + var tabId = NS.iframeNumber + '_' + NS.dialog._.currentTabId; + var iframe = document.getElementById(tabId); + NS.targetFromFrame[tabId] = iframe.contentWindow; + } + }, + { + type: 'vbox', + id: 'bottomGroup', + style: 'width:560px; margin: 0 auto;', + children: [ + { + type: 'hbox', + id: 'leftCol', + widths: ['66%', '34%'], + children: [ + { + type: 'vbox', + children: [ + { + type: 'text', + id: 'text', + label: "Change to:", + labelLayout: 'horizontal', + labelStyle: 'font: 12px/25px arial, sans-serif;', + inputStyle: 'float: right; width: 200px;', + 'default': '', + onShow: function() { + NS.textNode['GrammTab'] = this; + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'html', + id: 'html_text', + html: "
    ", + onShow: function(e) { + NS.textNodeInfo['GrammTab'] = this; + } + }, + { + type: 'html', + id: 'radio', + html: "", + onShow: function() { + NS.grammerSuggest = this; + } + } + ] + }, + { + type: 'vbox', + children: [ + { + type: 'button', + id: 'ChangeTo_button', + label: 'Change to', + title: 'Change to', + style: 'width: 133px; float: right;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'ChangeTo'); + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'IgnoreWord', + label: 'Ignore word', + title: 'Ignore word', + style: 'width: 133px; float: right;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'IgnoreAllWords', + label: 'Ignore Problem', + title: 'Ignore Problem', + style: 'width: 133px; float: right;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'FinishChecking_button', + label: NS.LocalizationButton['FinishChecking_button'].text, + title: 'Finish Checking', + style: 'width: 133px; float: right; margin-top: 9px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'BlockFinishChecking', + style: 'width:560px; margin: 0 auto;', + widths: ['70%', '30%'], + onShow: function() { + this.getElement().setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + }, + onHide: showCurrentTabs, + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '70%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + children: [ + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net', + setup: function() { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "center" + }); + } + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'button', + id: 'FinishChecking_button_block', + label: NS.LocalizationButton['FinishChecking_button_block'].text, + title: 'Finish Checking', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + } + ] + }, + { + id: 'Thesaurus', + label: 'Thesaurus', + accessKey: 'T', + elements: [ + { + type: 'html', + id: 'banner', + label: 'banner', + style: '', //TODO + html: '
    ' + }, + { + type: 'html', + id: 'Content', + label: 'spellContent', + html: '', + setup: function() { + var tabId = NS.iframeNumber + '_' + NS.dialog._.currentTabId; + var iframe = document.getElementById(tabId); + NS.targetFromFrame[tabId] = iframe.contentWindow; + } + }, + { + type: 'vbox', + id: 'bottomGroup', + style: 'width:560px; margin: -10px auto; overflow: hidden;', + children: [ + { + type: 'hbox', + widths: ['75%', '25%'], + children: [ + { + type: 'vbox', + children: [ + { + type: 'hbox', + widths: ['65%', '35%'], + children: [ + { + type: 'text', + id: 'ChangeTo_label', + label: NS.LocalizationLabel['ChangeTo_label'].text + ':', + labelLayout: 'horizontal', + inputStyle: 'width: 160px;', + labelStyle: 'font: 12px/25px arial, sans-serif;', + 'default': '', + onShow: function(e) { + NS.textNode['Thesaurus'] = this; + NS.LocalizationLabel['ChangeTo_label'].instance = this; + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'button', + id: 'ChangeTo_button', + label: NS.LocalizationButton['ChangeTo_button'].text, + title: 'Change to', + style: 'width: 121px; margin-top: 1px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'ChangeTo'); + NS.LocalizationButton['ChangeTo_button'].instance = this; + }, + onClick: handlerButtons + } + ] + }, + { + type: 'hbox', + children: [ + { + type: 'select', + id: 'Categories', + label: NS.LocalizationLabel['Categories'].text + ':', + labelStyle: 'font: 12px/25px arial, sans-serif;', + size: '5', + inputStyle: 'width: 180px; height: auto;', + items: [], + onShow: function() { + NS.selectNode['Categories'] = this; + NS.LocalizationLabel['Categories'].instance = this; + }, + onChange: function() { + NS.buildOptionSynonyms(this.getValue()); + } + }, + { + type: 'select', + id: 'Synonyms', + label: NS.LocalizationLabel['Synonyms'].text + ':', + labelStyle: 'font: 12px/25px arial, sans-serif;', + size: '5', + inputStyle: 'width: 180px; height: auto;', + items: [], + onShow: function() { + NS.selectNode['Synonyms'] = this; + NS.textNode['Thesaurus'].setValue(this.getValue()); + NS.LocalizationLabel['Synonyms'].instance = this; + }, + onChange: function(e) { + NS.textNode['Thesaurus'].setValue(this.getValue()); + } + } + ] + } + ] + }, + { + type: 'vbox', + width: '120px', + style: "margin-top:46px;", + children: [ + { + type: 'html', + id: 'logotype', + label: 'WebSpellChecker.net', + html: 'WebSpellChecker.net', + setup: function() { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "center" + }); + } + }, + { + type: 'button', + id: 'FinishChecking_button', + label: NS.LocalizationButton['FinishChecking_button'].text, + title: 'Finish Checking', + style: 'width: 100%; float: right; margin-top: 9px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'BlockFinishChecking', + style: 'width:560px; margin: 0 auto;', + widths: ['70%', '30%'], + onShow: function() { + this.getElement().setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + }, + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '70%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + children: [ + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net', + setup: function() { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "center" + }); + } + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'button', + id: 'FinishChecking_button_block', + label: NS.LocalizationButton['FinishChecking_button_block'].text, + title: 'Finish Checking', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + } + ] + } + ] + }; +}); + +var activeElement = null; + +// Options dialog +CKEDITOR.dialog.add('options', function(editor) { + var dialog = null; + var linkOnCheckbox = {}; + var checkboxState = {}; + var ospString = null; + var OptionsTextError = null; + var cmd = null; + + var set_osp = []; + var dictionaryState = { + 'udn': appTools.cookie.get('udn'), + 'osp': appTools.cookie.get('osp') + }; + + var setHandlerOptions = function() { + var osp = appTools.cookie.get('osp'), + strToArr = osp.split(""); + + checkboxState['IgnoreAllCapsWords'] = strToArr[0]; + checkboxState['IgnoreWordsNumbers'] = strToArr[1]; + checkboxState['IgnoreMixedCaseWords'] = strToArr[2]; + checkboxState['IgnoreDomainNames'] = strToArr[3]; + }; + + var sendDicOptions = function(event) { + event = event || window.event; + cmd = this.getElement().getAttribute("title-cmd"); + var osp = []; + + osp[0] = checkboxState['IgnoreAllCapsWords']; + osp[1] = checkboxState['IgnoreWordsNumbers']; + osp[2] = checkboxState['IgnoreMixedCaseWords']; + osp[3] = checkboxState['IgnoreDomainNames']; + + osp = osp.toString().replace(/,/g, ""); + + + appTools.cookie.set('osp', osp); + appTools.cookie.set('udnCmd', cmd ? cmd : 'ignore'); + if (cmd == "delete") { + + appTools.postMessage.send({ + 'id': 'options_dic_send' + }); + } else { + var udn = ''; + if(nameNode.getValue() !== ''){ + udn = nameNode.getValue(); + } + appTools.cookie.set('udn', udn); + appTools.postMessage.send({ + 'id': 'options_dic_send' + }); + } + + }; + + + var sendAllOptions = function() { + var osp = []; + + osp[0] = checkboxState['IgnoreAllCapsWords']; + osp[1] = checkboxState['IgnoreWordsNumbers']; + osp[2] = checkboxState['IgnoreMixedCaseWords']; + osp[3] = checkboxState['IgnoreDomainNames']; + + osp = osp.toString().replace(/,/g, ""); + + appTools.cookie.set('osp', osp); + + appTools.postMessage.send({ + 'id': 'options_checkbox_send' + }); + + + }; + + var cameOptions = function() { + OptionsTextError.getElement().setHtml(NS.LocalizationComing['error']); + OptionsTextError.getElement().show(); + }; + + return { + title: NS.LocalizationComing['Options'], + minWidth: 430, + minHeight: 130, + resizable: CKEDITOR.DIALOG_RESIZE_NONE, + contents: [ + { + id: 'OptionsTab', + label: 'Options', + accessKey: 'O', + elements: [ + { + type: 'hbox', + id: 'options_error', + children: [ + { + type: 'html', + style: "display: block;text-align: center;white-space: normal!important; font-size: 12px;color:red", + html: '
    ', + onShow: function() { + OptionsTextError = this; + } + } + ] + }, + { + type: 'vbox', + id: 'Options_content', + children: [ + { + type: 'hbox', + id: 'Options_manager', + widths: ['52%', '48%'], + children: [ + { + type: 'fieldset', + label: 'Spell Checking Options', + style: 'border: none;margin-top: 13px;padding: 10px 0 10px 10px', + onShow: function() { + this.getInputElement().$.children[0].innerHTML = NS.LocalizationComing['SpellCheckingOptions']; + }, + children: [ + { + type: 'vbox', + id: 'Options_checkbox', + children: [ + { + type: 'checkbox', + id: 'IgnoreAllCapsWords', + label: 'Ignore All-Caps Words', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + }, + { + type: 'checkbox', + id: 'IgnoreWordsNumbers', + label: 'Ignore Words with Numbers', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + }, + { + type: 'checkbox', + id: 'IgnoreMixedCaseWords', + label: 'Ignore Mixed-Case Words', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + }, + { + type: 'checkbox', + id: 'IgnoreDomainNames', + label: 'Ignore Domain Names', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + } + ] + } + ] + }, + { + type: 'vbox', + id: 'Options_DictionaryName', + children: [ + { + type: 'text', + id: 'DictionaryName', + style: 'margin-bottom: 10px', + label: 'Dictionary Name:', + labelLayout: 'vertical', + labelStyle: 'font: 12px/25px arial, sans-serif;', + 'default': '', + onLoad: function() { + nameNode = this; + var udn = NS.userDictionaryName ? NS.userDictionaryName : appTools.cookie.get('udn') && undefined ? ' ' : this.getValue(); + this.setValue(udn); + }, + onShow: function() { + nameNode = this; + var udn = !appTools.cookie.get('udn') ? this.getValue() : appTools.cookie.get('udn'); + this.setValue(udn); + this.setLabel(NS.LocalizationComing['DictionaryName']); + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'hbox', + id: 'Options_buttons', + children: [ + { + type: 'vbox', + id: 'Options_leftCol_col', + widths: ['50%', '50%'], + children: [ + { + type: 'button', + id: 'create', + label: 'Create', + title: 'Create', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Create']); + }, + onClick: sendDicOptions + }, + { + type: 'button', + id: 'restore', + label: 'Restore', + title: 'Restore', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Restore']); + }, + onClick: sendDicOptions + } + ] + }, + { + type: 'vbox', + id: 'Options_rightCol_col', + widths: ['50%', '50%'], + children: [ + { + type: 'button', + id: 'rename', + label: 'Rename', + title: 'Rename', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Rename']); + }, + onClick: sendDicOptions + }, + { + type: 'button', + id: 'delete', + label: 'Remove', + title: 'Remove', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Remove']); + }, + onClick: sendDicOptions + } + ] + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'Options_text', + children: [ + { + type: 'html', + style: "text-align: justify;margin-top: 15px;white-space: normal!important; font-size: 12px;color:#777;", + html: "
    " + NS.LocalizationComing['OptionsTextIntro'] + "
    ", + onShow: function() { + this.getElement().setText(NS.LocalizationComing['OptionsTextIntro']); + } + } + ] + } + ] + } + ] +} +], + buttons: [CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton], + onOk: function() { + sendAllOptions(); + OptionsTextError.getElement().hide(); + OptionsTextError.getElement().setHtml(' '); + }, + onLoad: function() { + dialog = this; + // appTools.postMessage.init(cameOptions); + + linkOnCheckbox['IgnoreAllCapsWords'] = dialog.getContentElement('OptionsTab', 'IgnoreAllCapsWords'); + linkOnCheckbox['IgnoreWordsNumbers'] = dialog.getContentElement('OptionsTab', 'IgnoreWordsNumbers'); + linkOnCheckbox['IgnoreMixedCaseWords'] = dialog.getContentElement('OptionsTab', 'IgnoreMixedCaseWords'); + linkOnCheckbox['IgnoreDomainNames'] = dialog.getContentElement('OptionsTab', 'IgnoreDomainNames'); + + }, + onShow: function() { + appTools.postMessage.init(cameOptions); + setHandlerOptions(); + + (!parseInt(checkboxState['IgnoreAllCapsWords'], 10)) ? linkOnCheckbox['IgnoreAllCapsWords'].setValue('', false) : linkOnCheckbox['IgnoreAllCapsWords'].setValue('checked', false); + (!parseInt(checkboxState['IgnoreWordsNumbers'], 10)) ? linkOnCheckbox['IgnoreWordsNumbers'].setValue('', false) : linkOnCheckbox['IgnoreWordsNumbers'].setValue('checked', false); + (!parseInt(checkboxState['IgnoreMixedCaseWords'], 10)) ? linkOnCheckbox['IgnoreMixedCaseWords'].setValue('', false) : linkOnCheckbox['IgnoreMixedCaseWords'].setValue('checked', false); + (!parseInt(checkboxState['IgnoreDomainNames'], 10)) ? linkOnCheckbox['IgnoreDomainNames'].setValue('', false) : linkOnCheckbox['IgnoreDomainNames'].setValue('checked', false); + + checkboxState['IgnoreAllCapsWords'] = (!linkOnCheckbox['IgnoreAllCapsWords'].getValue()) ? 0 : 1; + checkboxState['IgnoreWordsNumbers'] = (!linkOnCheckbox['IgnoreWordsNumbers'].getValue()) ? 0 : 1; + checkboxState['IgnoreMixedCaseWords'] = (!linkOnCheckbox['IgnoreMixedCaseWords'].getValue()) ? 0 : 1; + checkboxState['IgnoreDomainNames'] = (!linkOnCheckbox['IgnoreDomainNames'].getValue()) ? 0 : 1; + + linkOnCheckbox['IgnoreAllCapsWords'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreAllCapsWords']; + linkOnCheckbox['IgnoreWordsNumbers'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreWordsWithNumbers']; + linkOnCheckbox['IgnoreMixedCaseWords'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreMixedCaseWords']; + linkOnCheckbox['IgnoreDomainNames'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreDomainNames']; + }, + onHide: function() { + appTools.postMessage.unbindHandler(cameOptions); + if(activeElement) { + try { + activeElement.focus(); + } catch(e) {} + } + } + }; +}); + +// Expand the spell-check frame when dialog resized. (#6829) +CKEDITOR.dialog.on( 'resize', function( evt ) { + var data = evt.data, + dialog = data.dialog, + currentTabId = dialog._.currentTabId, + tabID = NS.iframeNumber + '_' + currentTabId, + iframe = CKEDITOR.document.getById(tabID); + + if ( dialog._.name == 'checkspell' ) { + if (NS.bnr) { + iframe && iframe.setSize( 'height', data.height - '310' ); + } else { + iframe && iframe.setSize( 'height', data.height - '220' ); + } + + // add flag that indicate whether dialog has been resized by user + if(dialog._.fromResizeEvent && !dialog._.resized) { + dialog._.resized = true; + } + dialog._.fromResizeEvent = true; + } +}); + +CKEDITOR.on('dialogDefinition', function(dialogDefinitionEvent) { + + if(dialogDefinitionEvent.data.name === 'checkspell') { + var dialogDefinition = dialogDefinitionEvent.data.definition; + + NS.onLoadOverlay = new overlayBlock({ + opacity: "1", + background: "#fff", + target: dialogDefinition.dialog.parts.tabs.getParent().$ + }); + + NS.onLoadOverlay.setEnable(); + + dialogDefinition.dialog.on('cancel', function(cancelEvent) { + dialogDefinition.dialog.getParentEditor().config.wsc_onClose.call(this.document.getWindow().getFrame()); + NS.div_overlay.setDisable(); + NS.onLoadOverlay.setDisable(); + return false; + }, this, null, -1); + } +}); +})(); diff --git a/ckeditor/plugins/wsc/dialogs/wsc_ie.js b/ckeditor/plugins/wsc/dialogs/wsc_ie.js index 6b39b00..2fe401b 100644 --- a/ckeditor/plugins/wsc/dialogs/wsc_ie.js +++ b/ckeditor/plugins/wsc/dialogs/wsc_ie.js @@ -1,11 +1,176 @@ -/* - 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(a){function c(a,c){var d=0;return function(){"function"==typeof window.doSpell?("undefined"!=typeof e&&window.clearInterval(e),j(a)):180==d++&&window._cancelOnError(c)}}function j(c){var f=new window._SP_FCK_LangCompare,b=CKEDITOR.getUrl(a.plugins.wsc.path+"dialogs/"),e=b+"tmpFrameset.html";window.gFCKPluginName="wsc";f.setDefaulLangCode(a.config.defaultLanguage);window.doSpell({ctrl:g,lang:a.config.wsc_lang||f.getSPLangCode(a.langCode),intLang:a.config.wsc_uiLang|| -f.getSPLangCode(a.langCode),winType:d,onCancel:function(){c.hide()},onFinish:function(b){a.focus();c.getParentEditor().setData(b.value);c.hide()},staticFrame:e,framesetPath:e,iframePath:b+"ciframe.html",schemaURI:b+"wsc.css",userDictionaryName:a.config.wsc_userDictionaryName,customDictionaryName:a.config.wsc_customDictionaryIds&&a.config.wsc_customDictionaryIds.split(","),domainName:a.config.wsc_domainName});CKEDITOR.document.getById(h).setStyle("display","none");CKEDITOR.document.getById(d).setStyle("display", -"block")}var b=CKEDITOR.tools.getNextNumber(),d="cke_frame_"+b,g="cke_data_"+b,h="cke_error_"+b,e,b=document.location.protocol||"http:",i=a.lang.wsc.notAvailable,k='', -l=a.config.wsc_customLoaderScript||b+"//loader.webspellchecker.net/sproxy_fck/sproxy.php?plugin=fck2&customerid="+a.config.wsc_customerId+"&cmd=script&doc=wsc&schema=22";a.config.wsc_customLoaderScript&&(i+='

    '+a.lang.wsc.errorLoading.replace(/%s/g,a.config.wsc_customLoaderScript)+"

    ");window._cancelOnError=function(c){if("undefined"==typeof window.WSC_Error){CKEDITOR.document.getById(d).setStyle("display", -"none");var b=CKEDITOR.document.getById(h);b.setStyle("display","block");b.setHtml(c||a.lang.wsc.notAvailable)}};return{title:a.config.wsc_dialogTitle||a.lang.wsc.title,minWidth:485,minHeight:380,buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var b=this.getContentElement("general","content").getElement();b.setHtml(k);b.getChild(2).setStyle("height",this._.contentSize.height+"px");"function"!=typeof window.doSpell&&CKEDITOR.document.getHead().append(CKEDITOR.document.createElement("script", -{attributes:{type:"text/javascript",src:l}}));b=a.getData();CKEDITOR.document.getById(g).setValue(b);e=window.setInterval(c(this,i),250)},onHide:function(){window.ooo=void 0;window.int_framsetLoaded=void 0;window.framesetLoaded=void 0;window.is_window_opened=!1},contents:[{id:"general",label:a.config.wsc_dialogTitle||a.lang.wsc.title,padding:0,elements:[{type:"html",id:"content",html:""}]}]}}); -CKEDITOR.dialog.on("resize",function(a){var a=a.data,c=a.dialog;"checkspell"==c._.name&&((c=(c=c.getContentElement("general","content").getElement())&&c.getChild(2))&&c.setSize("height",a.height),c&&c.setSize("width",a.width))}); \ No newline at end of file +/** + * @license Copyright (c) 2003-2015, 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.wsc.notAvailable; + + var pasteArea = + '