@ckeditor/ckeditor5-font
Advanced tools
Comparing version 11.2.1 to 11.2.2
Changelog | ||
========= | ||
## [11.2.2](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.1...v11.2.2) (2019-08-26) | ||
### Other changes | ||
* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([edf39d2](https://github.com/ckeditor/ckeditor5-font/commit/edf39d2)) | ||
* Mark fonts' attributes with 'copyOnEnter' property. ([552f742](https://github.com/ckeditor/ckeditor5-font/commit/552f742)) | ||
* The active color should be marked both in the document colors and all colors. Closes [#51](https://github.com/ckeditor/ckeditor5-font/issues/51). ([295f6d5](https://github.com/ckeditor/ckeditor5-font/commit/295f6d5)) | ||
* Updated translations. ([1691b00](https://github.com/ckeditor/ckeditor5-font/commit/1691b00)) | ||
## [11.2.1](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.0...v11.2.1) (2019-07-10) | ||
@@ -8,3 +18,3 @@ | ||
* Updated translations. ([7babe33](https://github.com/ckeditor/ckeditor5-font/commit/7babe33)) | ||
* Updated translations. ([7babe33](https://github.com/ckeditor/ckeditor5-font/commit/7babe33)) | ||
@@ -11,0 +21,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-font", | ||
"version": "11.2.1", | ||
"version": "11.2.2", | ||
"description": "Font feature for CKEditor 5.", | ||
@@ -13,11 +13,11 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^12.2.1", | ||
"@ckeditor/ckeditor5-ui": "^13.0.2", | ||
"@ckeditor/ckeditor5-utils": "^13.0.1" | ||
"@ckeditor/ckeditor5-core": "^12.3.0", | ||
"@ckeditor/ckeditor5-ui": "^14.0.0", | ||
"@ckeditor/ckeditor5-utils": "^14.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-editor-classic": "^12.1.3", | ||
"@ckeditor/ckeditor5-engine": "^13.2.1", | ||
"@ckeditor/ckeditor5-highlight": "^11.0.4", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.4", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.1.4", | ||
"@ckeditor/ckeditor5-engine": "^14.0.0", | ||
"@ckeditor/ckeditor5-highlight": "^11.0.5", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.5", | ||
"eslint": "^5.5.0", | ||
@@ -35,3 +35,3 @@ "eslint-config-ckeditor5": "^2.0.0", | ||
"homepage": "https://ckeditor.com/ckeditor-5", | ||
"bugs": "https://github.com/ckeditor/ckeditor5-font/issues", | ||
"bugs": "https://github.com/ckeditor/ckeditor5/issues", | ||
"repository": { | ||
@@ -38,0 +38,0 @@ "type": "git", |
@@ -10,3 +10,3 @@ import Collection from '@ckeditor/ckeditor5-utils/src/collection'; | ||
/** | ||
* Collection to store document colors. It enforces colors to be unique. | ||
* A collection to store document colors. It enforces colors to be unique. | ||
* | ||
@@ -21,3 +21,3 @@ * @mixes module:utils/observablemixin~ObservableMixin | ||
/** | ||
* Indicates whether the collection is empty. | ||
* Indicates whether the document color collection is empty. | ||
* | ||
@@ -32,8 +32,8 @@ * @observable | ||
/** | ||
* Adds a color into the collection. | ||
* Adds a color to the document color collection. | ||
* | ||
* Function ensures that no color duplicates are inserted (compared using | ||
* the color value of {@link module:ui/colorgrid/colorgrid~ColorDefinition}). | ||
* This method ensures that no color duplicates are inserted (compared using | ||
* the color value of the {@link module:ui/colorgrid/colorgrid~ColorDefinition}). | ||
* | ||
* If the item does not have an id, then it will be automatically generated and set on the item. | ||
* If the item does not have an ID, it will be automatically generated and set on the item. | ||
* | ||
@@ -43,3 +43,3 @@ * @chainable | ||
* @param {Number} [index] The position of the item in the collection. The item | ||
* is pushed to the collection when `index` not specified. | ||
* is pushed to the collection when `index` is not specified. | ||
* @fires add | ||
@@ -72,3 +72,3 @@ */ | ||
/** | ||
* Checks if object with given colors is present in collection. | ||
* Checks if an object with given colors is present in the document color collection. | ||
* | ||
@@ -75,0 +75,0 @@ * @param {String} color |
@@ -144,3 +144,3 @@ /** | ||
/** | ||
* Represents the number of columns in the dropdown. | ||
* Represents the number of columns in the font background color dropdown. | ||
* | ||
@@ -157,16 +157,16 @@ * The default value is: | ||
/** | ||
* Determines maximum number of available document colors. | ||
* Setting it to `0` will disable document colors feature. | ||
* Determines the maximum number of available document colors. | ||
* Setting it to `0` will disable the document colors feature. | ||
* | ||
* By default it equals to {@link module:font/fontbackgroundcolor~FontBackgroundColorConfig#columns} value. | ||
* By default it equals to the {@link module:font/fontbackgroundcolor~FontBackgroundColorConfig#columns} value. | ||
* | ||
* Examples: | ||
* | ||
* // 1) Neither documentColors nor columns are defined in config. | ||
* // documentColors will equal 5, | ||
* // because value will be inherited from `columns`, | ||
* // which has predefined value 5. | ||
* // 1) Neither document colors nor columns are defined in the configuration. | ||
* // Document colors will equal 5, | ||
* // because the value will be inherited from columns, | ||
* // which has a predefined value of 5. | ||
* const fontBackgroundColorConfig = {} | ||
* | ||
* // 2) documentColors will equal 8, because value will be inherited from `columns`. | ||
* // 2) Document colors will equal 8, because the value will be inherited from columns. | ||
* const fontBackgroundColorConfig = { | ||
@@ -176,3 +176,3 @@ * columns: 8 | ||
* | ||
* // 3) documentColors will equal 24, because has defined own value. | ||
* // 3) Document colors will equal 24, because it has its own value defined. | ||
* const fontBackgroundColorConfig = { | ||
@@ -183,3 +183,3 @@ * columns: 8, | ||
* | ||
* // 4) documentColors feature will be disabled. | ||
* // 4) The document colors feature will be disabled. | ||
* const fontBackgroundColorConfig = { | ||
@@ -186,0 +186,0 @@ * columns: 8, |
@@ -121,4 +121,7 @@ /** | ||
editor.model.schema.setAttributeProperties( FONT_BACKGROUND_COLOR, { isFormatting: true } ); | ||
editor.model.schema.setAttributeProperties( FONT_BACKGROUND_COLOR, { | ||
isFormatting: true, | ||
copyOnEnter: true | ||
} ); | ||
} | ||
} |
@@ -143,3 +143,3 @@ /** | ||
/** | ||
* Represents the number of columns in the dropdown. | ||
* Represents the number of columns in the font color dropdown. | ||
* | ||
@@ -156,16 +156,16 @@ * The default value is: | ||
/** | ||
* Determines maximum number of available document colors. | ||
* Setting it to `0` will disable document colors feature. | ||
* Determines the maximum number of available document colors. | ||
* Setting it to `0` will disable the document colors feature. | ||
* | ||
* By default it equals to {@link module:font/fontcolor~FontColorConfig#columns} value. | ||
* By default it equals to the {@link module:font/fontcolor~FontColorConfig#columns} value. | ||
* | ||
* Examples: | ||
* | ||
* // 1) Neither documentColors nor columns are defined in config. | ||
* // documentColors will equal 5, | ||
* // because value will be inherited from `columns`, | ||
* // which has predefined value 5. | ||
* // 1) Neither document colors nor columns are defined in the configuration. | ||
* // Document colors will equal 5, | ||
* // because the value will be inherited from columns, | ||
* // which has a predefined value of 5. | ||
* const fontColorConfig = {} | ||
* | ||
* // 2) documentColors will equal 8, because value will be inherited from `columns`. | ||
* // 2) Document colors will equal 8, because the value will be inherited from columns. | ||
* const fontColorConfig = { | ||
@@ -175,3 +175,3 @@ * columns: 8 | ||
* | ||
* // 3) documentColors will equal 24, because has defined own value. | ||
* // 3) Document colors will equal 24, because it has its own value defined. | ||
* const fontColorConfig = { | ||
@@ -182,3 +182,3 @@ * columns: 8, | ||
* | ||
* // 4) documentColors feature will be disabled. | ||
* // 4) The document colors feature will be disabled. | ||
* const fontColorConfig = { | ||
@@ -185,0 +185,0 @@ * columns: 8, |
@@ -121,4 +121,7 @@ /** | ||
editor.model.schema.setAttributeProperties( FONT_COLOR, { isFormatting: true } ); | ||
editor.model.schema.setAttributeProperties( FONT_COLOR, { | ||
isFormatting: true, | ||
copyOnEnter: true | ||
} ); | ||
} | ||
} |
@@ -57,3 +57,6 @@ /** | ||
editor.model.schema.extend( '$text', { allowAttributes: FONT_FAMILY } ); | ||
editor.model.schema.setAttributeProperties( FONT_FAMILY, { isFormatting: true } ); | ||
editor.model.schema.setAttributeProperties( FONT_FAMILY, { | ||
isFormatting: true, | ||
copyOnEnter: true | ||
} ); | ||
@@ -60,0 +63,0 @@ // Get configured font family options without "default" option. |
@@ -66,4 +66,7 @@ /** | ||
editor.model.schema.extend( '$text', { allowAttributes: FONT_SIZE } ); | ||
editor.model.schema.setAttributeProperties( FONT_SIZE, { isFormatting: true } ); | ||
editor.model.schema.setAttributeProperties( FONT_SIZE, { | ||
isFormatting: true, | ||
copyOnEnter: true | ||
} ); | ||
} | ||
} |
@@ -43,3 +43,3 @@ /** | ||
* @param {String} config.documentColorsLabel The label for the section with the document colors. | ||
* @param {String} config.documentColorsCount The number of colors in document colors section inside dropdown. | ||
* @param {String} config.documentColorsCount The number of colors in the document colors section inside the color dropdown. | ||
*/ | ||
@@ -50,3 +50,3 @@ constructor( locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount } ) { | ||
/** | ||
* Collection of the children of the table. | ||
* A collection of the children of the table. | ||
* | ||
@@ -66,3 +66,3 @@ * @readonly | ||
/** | ||
* Tracks information about DOM focus in the list. | ||
* Tracks information about the DOM focus in the list. | ||
* | ||
@@ -83,3 +83,3 @@ * @readonly | ||
/** | ||
* Keeps value of the command associated with the table for the current selection. | ||
* Keeps the value of the command associated with the table for the current selection. | ||
* | ||
@@ -105,3 +105,3 @@ * @type {String} | ||
/** | ||
* A collection of definitions stores document colors. | ||
* A collection of definitions that store the document colors. | ||
* | ||
@@ -114,4 +114,4 @@ * @readonly | ||
/** | ||
* Maximum number of colors in document colors section. | ||
* If equals 0, then document colors section is not added. | ||
* The maximum number of colors in the document colors section. | ||
* If it equals 0, the document colors section is not added. | ||
* | ||
@@ -124,4 +124,4 @@ * @readonly | ||
/** | ||
* Preserves reference to {@link module:ui/colorgrid/colorgrid~ColorGridView} used to create | ||
* default (static) colors set. | ||
* Preserves the reference to {@link module:ui/colorgrid/colorgrid~ColorGridView} used to create | ||
* the default (static) color set. | ||
* | ||
@@ -134,4 +134,4 @@ * @readonly | ||
/** | ||
* Preserves reference to {@link module:ui/colorgrid/colorgrid~ColorGridView} used to create | ||
* document colors. It remains undefined if document colors are disabled. | ||
* Preserves the reference to {@link module:ui/colorgrid/colorgrid~ColorGridView} used to create | ||
* the document colors. It remains undefined if the document colors feature is disabled. | ||
* | ||
@@ -141,3 +141,3 @@ * @readonly | ||
*/ | ||
this.documentColorGrid; | ||
this.documentColorsGrid; | ||
@@ -202,3 +202,3 @@ /** | ||
/** | ||
* Method scans through the editor's model and searches for text node attributes with attributeName. | ||
* Scans through the editor model and searches for text node attributes with the given attribute name. | ||
* Found entries are set as document colors. | ||
@@ -208,4 +208,4 @@ * | ||
* | ||
* @param {module:engine/model/model~Model} model Model used as a source to obtain document colors. | ||
* @param {String} attributeName Determines what is the name of a related model's attribute for given dropdown. | ||
* @param {module:engine/model/model~Model} model The model used as a source to obtain the document colors. | ||
* @param {String} attributeName Determines the name of the related model's attribute for a given dropdown. | ||
*/ | ||
@@ -235,4 +235,5 @@ updateDocumentColors( model, attributeName ) { | ||
/** | ||
* Method refresh state of `selectedColor` in single or both {@link module:ui/colorgrid/colorgrid~ColorGridView} | ||
* available in {@link module:font/ui/colortableview~ColorTableView}. It guarantees that selection will occur only in one of them. | ||
* Refreshes the state of the selected color in one or both {@link module:ui/colorgrid/colorgrid~ColorGridView}s | ||
* available in the {@link module:font/ui/colortableview~ColorTableView}. It guarantees that the selection will occur only in one | ||
* of them. | ||
*/ | ||
@@ -244,12 +245,6 @@ updateSelectedColors() { | ||
if ( !this.documentColors.isEmpty ) { | ||
if ( this.documentColors.hasColor( selectedColor ) ) { | ||
staticColorsGrid.selectedColor = null; | ||
documentColorsGrid.selectedColor = selectedColor; | ||
} else { | ||
staticColorsGrid.selectedColor = selectedColor; | ||
documentColorsGrid.selectedColor = null; | ||
} | ||
} else { | ||
staticColorsGrid.selectedColor = selectedColor; | ||
staticColorsGrid.selectedColor = selectedColor; | ||
if ( documentColorsGrid ) { | ||
documentColorsGrid.selectedColor = selectedColor; | ||
} | ||
@@ -329,3 +324,3 @@ } | ||
/** | ||
* Creates document colors section view and binds it to {@link #documentColors}. | ||
* Creates the document colors section view and binds it to {@link #documentColors}. | ||
* | ||
@@ -386,7 +381,7 @@ * @private | ||
/** | ||
* Method adds a given `color` to the document colors list. If possible, method will attempt to use | ||
* Adds a given color to the document colors list. If possible, the method will attempt to use | ||
* data from the {@link #colorDefinitions} (label, color options). | ||
* | ||
* @private | ||
* @param {String} color String which stores value of recently applied color. | ||
* @param {String} color A string that stores the value of the recently applied color. | ||
*/ | ||
@@ -393,0 +388,0 @@ _addColorToDocumentColors( color ) { |
@@ -35,4 +35,4 @@ /** | ||
* and the configuration scope name in `editor.config`. | ||
* @param {String} config.icon SVG icon used by the dropdown. | ||
* @param {String} config.dropdownLabel Label used by the dropdown. | ||
* @param {String} config.icon The SVG icon used by the dropdown. | ||
* @param {String} config.dropdownLabel The label used by the dropdown. | ||
*/ | ||
@@ -58,3 +58,3 @@ constructor( editor, { commandName, icon, componentName, dropdownLabel } ) { | ||
/** | ||
* SVG icon used by the dropdown. | ||
* The SVG icon used by the dropdown. | ||
* @type {String} | ||
@@ -65,3 +65,3 @@ */ | ||
/** | ||
* Label used by the dropdown. | ||
* The label used by the dropdown. | ||
* | ||
@@ -68,0 +68,0 @@ * @type {String} |
@@ -28,3 +28,3 @@ /** | ||
/** | ||
* The name of the font font background color plugin. | ||
* The name of the font background color plugin. | ||
*/ | ||
@@ -67,3 +67,3 @@ export const FONT_BACKGROUND_COLOR = 'fontBackgroundColor'; | ||
* | ||
* **Note**: `styleAttr` should be either `'color'` or `'background-color'`. | ||
* **Note**: The `styleAttr` parameter should be either `'color'` or `'background-color'`. | ||
* | ||
@@ -82,3 +82,3 @@ * @param {String} styleAttr | ||
* | ||
* **Note**: `styleAttr` should be either `'color'` or `'background-color'`. | ||
* **Note**: The `styleAttr` parameter should be either `'color'` or `'background-color'`. | ||
* | ||
@@ -107,3 +107,3 @@ * @param {String} styleAttr | ||
/** | ||
* Helper that adds {@link module:font/ui/colortableview~ColorTableView} to a dropdown with proper initial values. | ||
* A helper that adds {@link module:font/ui/colortableview~ColorTableView} to the color dropdown with proper initial values. | ||
* | ||
@@ -116,4 +116,4 @@ * @param {Object} config The configuration object. | ||
* @param {String} config.removeButtonLabel The label for the button responsible for removing the color. | ||
* @param {String} config.documentColorsLabel The label of a section with document colors. | ||
* @param {String} config.documentColorsCount The number of document colors inside dropdown. | ||
* @param {String} config.documentColorsLabel The label for the section with document colors. | ||
* @param {String} config.documentColorsCount The number of document colors inside the dropdown. | ||
* @returns {module:font/ui/colortableview~ColorTableView} The new color table view. | ||
@@ -120,0 +120,0 @@ */ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
236604
74
2400
+ Added@ckeditor/ckeditor5-ui@14.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@13.0.2(transitive)
- Removed@ckeditor/ckeditor5-utils@13.0.1(transitive)