Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-font

Package Overview
Dependencies
Maintainers
1
Versions
612
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-font - npm Package Compare versions

Comparing version 11.1.0 to 11.1.1

lang/translations/fi.po

7

CHANGELOG.md
Changelog
=========
## [11.1.1](https://github.com/ckeditor/ckeditor5-font/compare/v11.1.0...v11.1.1) (2019-06-05)
### Other changes
* Updated translations. ([cca7b24](https://github.com/ckeditor/ckeditor5-font/commit/cca7b24))
## [11.1.0](https://github.com/ckeditor/ckeditor5-font/compare/v11.0.0...v11.1.0) (2019-04-10)

@@ -5,0 +12,0 @@

16

package.json
{
"name": "@ckeditor/ckeditor5-font",
"version": "11.1.0",
"version": "11.1.1",
"description": "Font feature for CKEditor 5.",

@@ -13,11 +13,11 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^12.1.0",
"@ckeditor/ckeditor5-ui": "^12.1.0",
"@ckeditor/ckeditor5-utils": "^12.1.0"
"@ckeditor/ckeditor5-core": "^12.1.1",
"@ckeditor/ckeditor5-ui": "^13.0.0",
"@ckeditor/ckeditor5-utils": "^12.1.1"
},
"devDependencies": {
"@ckeditor/ckeditor5-editor-classic": "^12.1.0",
"@ckeditor/ckeditor5-engine": "^13.1.0",
"@ckeditor/ckeditor5-highlight": "^11.0.1",
"@ckeditor/ckeditor5-paragraph": "^11.0.1",
"@ckeditor/ckeditor5-editor-classic": "^12.1.1",
"@ckeditor/ckeditor5-engine": "^13.1.1",
"@ckeditor/ckeditor5-highlight": "^11.0.2",
"@ckeditor/ckeditor5-paragraph": "^11.0.2",
"eslint": "^5.5.0",

@@ -24,0 +24,0 @@ "eslint-config-ckeditor5": "^1.0.11",

@@ -30,2 +30,2 @@ CKEditor 5 font feature

Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file.
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license).
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -44,2 +44,11 @@

* The configuration of the font background color feature.
* It is introduced by the {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing} feature.
*
* Read more in {@link module:font/fontbackgroundcolor~FontBackgroundColorConfig}.
*
* @member {module:font/fontbackgroundcolor~FontBackgroundColorConfig} module:core/editor/editorconfig~EditorConfig#fontBackgroundColor
*/
/**
* The configuration of the font background color feature.
* This option is used by the {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing} feature.

@@ -136,3 +145,3 @@ *

/**
* Represents the amount of columns in the dropdown. The default value is:
* Represents the number of columns in the dropdown. The default value is:
*

@@ -139,0 +148,0 @@ * const fontBackgroundColorConfig = {

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -14,3 +14,3 @@

/**
* The font background color command. It's used by the
* The font background color command. It is used by
* {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing}

@@ -17,0 +17,0 @@ * to apply the font background color.

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -118,3 +118,3 @@

// Allow fontBackgroundColor attribute on text nodes.
// Allow the font backgroundColor attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: FONT_BACKGROUND_COLOR } );

@@ -121,0 +121,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -43,2 +43,11 @@

* The configuration of the font color feature.
* It is introduced by the {@link module:font/fontcolor/fontcolorediting~FontColorEditing} feature.
*
* Read more in {@link module:font/fontcolor~FontColorConfig}.
*
* @member {module:font/fontcolor~FontColorConfig} module:core/editor/editorconfig~EditorConfig#fontColor
*/
/**
* The configuration of the font color feature.
* This option is used by the {@link module:font/fontcolor/fontcolorediting~FontColorEditing} feature.

@@ -135,3 +144,3 @@ *

/**
* Represents the amount of columns in the dropdown. The default value is:
* Represents the number of columns in the dropdown. The default value is:
*

@@ -138,0 +147,0 @@ * const fontColorConfig = {

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -14,3 +14,3 @@

/**
* The font color command. It's used by the {@link module:font/fontcolor/fontcolorediting~FontColorEditing}
* The font color command. It is used by {@link module:font/fontcolor/fontcolorediting~FontColorEditing}
* to apply the font color.

@@ -17,0 +17,0 @@ *

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -118,3 +118,3 @@

// Allow fontColor attribute on text nodes.
// Allow the font color attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: FONT_COLOR } );

@@ -121,0 +121,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -5,0 +5,0 @@

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -20,6 +20,6 @@

/**
* Class which represents a view with the following sub–components:
* A class which represents a view with the following sub–components:
*
* * a remove color button,
* * a {@link module:ui/colorgrid/colorgrid~ColorGridView}.
* * A remove color button,
* * A {@link module:ui/colorgrid/colorgrid~ColorGridView}.
*

@@ -30,10 +30,10 @@ * @extends module:ui/view~View

/**
* Creates a view to be inserted as child of {@link module:ui/dropdown/dropdownview~DropdownView}.
* Creates a view to be inserted as a child of {@link module:ui/dropdown/dropdownview~DropdownView}.
*
* @param {module:utils/locale~Locale} [locale] The localization services instance.
* @param {Object} config Configuration object
* @param {Array.<module:ui/colorgrid/colorgrid~ColorDefinition>} config.colors Array with definitions of colors to
* @param {Object} config The configuration object.
* @param {Array.<module:ui/colorgrid/colorgrid~ColorDefinition>} config.colors An array with definitions of colors to
* be displayed in the table.
* @param {Number} config.columns Number of columns in the color grid.
* @param {String} config.removeButtonLabel A label of a button responsible for removing the color.
* @param {Number} config.columns The number of columns in the color grid.
* @param {String} config.removeButtonLabel The label of the button responsible for removing the color.
*/

@@ -67,3 +67,3 @@ constructor( locale, { colors, columns, removeButtonLabel } ) {

/**
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
*

@@ -76,3 +76,3 @@ * @readonly

/**
* Keeps value of the command associated with the table for current selection.
* Keeps value of the command associated with the table for the current selection.
*

@@ -84,3 +84,3 @@ * @type {String}

/**
* A label of the button responsible for removing color attributes.
* The label of the button responsible for removing color attributes.
*

@@ -92,3 +92,3 @@ * @type {String}

/**
* The number of columns in color grid.
* The number of columns in the color grid.
*

@@ -111,6 +111,6 @@ * @type {Number}

actions: {
// Navigate list items backwards using the arrowup key.
// Navigate list items backwards using the Arrow Up key.
focusPrevious: 'arrowup',
// Navigate list items forwards using the arrowdown key.
// Navigate list items forwards using the Arrow Down key.
focusNext: 'arrowdown',

@@ -136,3 +136,3 @@ }

/**
* Adds the remove color button as child for current view.
* Adds the remove color button as a child of the current view.
*

@@ -160,3 +160,3 @@ * @private

/**
* Creates a static color table grid based on editor config.
* Creates a static color table grid based on the editor configuration.
*

@@ -193,3 +193,3 @@ * @private

/**
* Focuses the first focusable in {@link #items}.
* Focuses the first focusable element in {@link #items}.
*/

@@ -201,3 +201,3 @@ focus() {

/**
* Focuses the last focusable in {@link #items}.
* Focuses the last focusable element in {@link #items}.
*/

@@ -204,0 +204,0 @@ focusLast() {

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -21,3 +21,3 @@

*
* It is used to create the `'fontBackgroundColor'` and the `'fontColor'` dropdowns, each hosting
* It is used to create the `'fontBackgroundColor'` and `'fontColor'` dropdowns, each hosting
* a {@link module:font/ui/colortableview~ColorTableView}.

@@ -29,8 +29,8 @@ *

/**
* Creates a plugin which brings dropdown with a pre–configured {@link module:font/ui/colortableview~ColorTableView}
* Creates a plugin which introduces a dropdown with a pre–configured {@link module:font/ui/colortableview~ColorTableView}.
*
* @param {module:core/editor/editor~Editor} editor
* @param {Object} config Configuration object
* @param {String} config.commandName Name of command which will be executed when a color tile is clicked.
* @param {String} config.componentName Name of the dropdown in the {@link module:ui/componentfactory~ComponentFactory}
* @param {Object} config The configuration object.
* @param {String} config.commandName The name of the command which will be executed when a color tile is clicked.
* @param {String} config.componentName The name of the dropdown in the {@link module:ui/componentfactory~ComponentFactory}
* and the configuration scope name in `editor.config`.

@@ -44,3 +44,3 @@ * @param {String} config.icon SVG icon used by the dropdown.

/**
* Name of the command which will be executed when a color tile is clicked.
* The name of the command which will be executed when a color tile is clicked.
* @type {String}

@@ -51,3 +51,3 @@ */

/**
* Name of this component in the {@link module:ui/componentfactory~ComponentFactory}.
* The name of this component in the {@link module:ui/componentfactory~ComponentFactory}.
* Also the configuration scope name in `editor.config`.

@@ -71,3 +71,3 @@ * @type {String}

/**
* Number of columns in color grid.
* The number of columns in the color grid.
* @type {Number}

@@ -88,3 +88,3 @@ */

// Register UI component.
// Register the UI component.
editor.ui.componentFactory.add( this.componentName, locale => {

@@ -91,0 +91,0 @@ const dropdownView = createDropdown( locale );

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

@@ -13,3 +13,3 @@

/**
* Name of the font size plugin.
* The name of the font size plugin.
*/

@@ -19,3 +19,3 @@ export const FONT_SIZE = 'fontSize';

/**
* Name of the font family plugin.
* The name of the font family plugin.
*/

@@ -25,3 +25,3 @@ export const FONT_FAMILY = 'fontFamily';

/**
* Name of the font color plugin.
* The name of the font color plugin.
*/

@@ -31,3 +31,3 @@ export const FONT_COLOR = 'fontColor';

/**
* Name of font font background color plugin.
* The name of the font font background color plugin.
*/

@@ -68,3 +68,3 @@ export const FONT_BACKGROUND_COLOR = 'fontBackgroundColor';

* {@link module:font/fontbackgroundcolor~FontBackgroundColor font background color} helper
* responsible for upcasting data to model.
* responsible for upcasting data to the model.
*

@@ -83,3 +83,3 @@ * **Note**: `styleAttr` should be either `'color'` or `'background-color'`.

* {@link module:font/fontbackgroundcolor~FontBackgroundColor font background color} helper
* responsible for downcasting a color attribute to a span element.
* responsible for downcasting a color attribute to a `<span>` element.
*

@@ -98,3 +98,3 @@ * **Note**: `styleAttr` should be either `'color'` or `'background-color'`.

* Creates a unified color definition object from color configuration options.
* The object contains both the information necessary to render the UI and initialize a conversion.
* The object contains the information necessary to both render the UI and initialize the conversion.
*

@@ -111,10 +111,10 @@ * @param {module:ui/colorgrid/colorgrid~ColorDefinition} options

/**
* Helper which add {@link module:font/ui/colortableview~ColorTableView} to a dropdown with proper initial values.
* Helper that adds {@link module:font/ui/colortableview~ColorTableView} to a dropdown with proper initial values.
*
* @param {Object} config Configuration object
* @param {module:ui/dropdown/dropdownview~DropdownView} config.dropdownView Dropdown view to which
* @param {Object} config The configuration object.
* @param {module:ui/dropdown/dropdownview~DropdownView} config.dropdownView The dropdown view to which
* a {@link module:font/ui/colortableview~ColorTableView} will be added.
* @param {Array.<module:ui/colorgrid/colorgrid~ColorDefinition>} config.colors An array with definitions
* representing colors to be displayed in the color table.
* @param {String} config.removeButtonLabel A label of a button responsible for removing the color.
* @param {String} config.removeButtonLabel The label for the button responsible for removing the color.
* @returns {module:font/ui/colortableview~ColorTableView} The new color table view.

@@ -135,3 +135,3 @@ */

/**
* Returns color configuration options as defined in the `editor.config.(fontColor|fontBackgroundColor).colors`
* Returns color configuration options as defined in `editor.config.(fontColor|fontBackgroundColor).colors`
* but processed to account for editor localization, i.e. to display {@link module:font/fontcolor~FontColorConfig}

@@ -178,3 +178,3 @@ * or {@link module:font/fontbackgroundcolor~FontBackgroundColorConfig} in the correct language.

// Fixes color value string
// Fixes the color value string.
//

@@ -187,3 +187,3 @@ // @param {String} value

// Creates normalized color definition from user defined configuration.
// Creates a normalized color definition from the user-defined configuration.
//

@@ -190,0 +190,0 @@ // @param {String|module:ui/colorgrid/colorgrid~ColorDefinition}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc