@ckeditor/ckeditor5-core
Advanced tools
Comparing version 12.2.1 to 12.3.0
Changelog | ||
========= | ||
## [12.3.0](https://github.com/ckeditor/ckeditor5-core/compare/v12.2.1...v12.3.0) (2019-08-26) | ||
### Features | ||
* Allowed configuration of the editor content language via `conifg.language`. See [ckeditor/ckeditor5#1151](https://github.com/ckeditor/ckeditor5/issues/1151). ([22079dd](https://github.com/ckeditor/ckeditor5-core/commit/22079dd)) | ||
* Introduced a `secureSourceElement()` utility that prevents from initialising more than one editor on the same DOM element. See [ckeditor/ckeditor5#746](https://github.com/ckeditor/ckeditor5/issues/746). ([6a59058](https://github.com/ckeditor/ckeditor5-core/commit/6a59058)) | ||
### 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). ([6d72325](https://github.com/ckeditor/ckeditor5-core/commit/6d72325)) | ||
* Updated translations. ([e29d56e](https://github.com/ckeditor/ckeditor5-core/commit/e29d56e)) | ||
## [12.2.1](https://github.com/ckeditor/ckeditor5-core/compare/v12.2.0...v12.2.1) (2019-07-10) | ||
@@ -5,0 +18,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-core", | ||
"version": "12.2.1", | ||
"version": "12.3.0", | ||
"description": "The core architecture of CKEditor 5 – the best browser-based rich text editor.", | ||
@@ -24,20 +24,20 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-engine": "^13.2.1", | ||
"@ckeditor/ckeditor5-utils": "^13.0.1", | ||
"@ckeditor/ckeditor5-engine": "^14.0.0", | ||
"@ckeditor/ckeditor5-utils": "^14.0.0", | ||
"lodash-es": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-autoformat": "^11.0.4", | ||
"@ckeditor/ckeditor5-basic-styles": "^11.1.3", | ||
"@ckeditor/ckeditor5-block-quote": "^11.1.2", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.1.3", | ||
"@ckeditor/ckeditor5-essentials": "^11.0.4", | ||
"@ckeditor/ckeditor5-heading": "^11.0.4", | ||
"@ckeditor/ckeditor5-image": "^13.1.2", | ||
"@ckeditor/ckeditor5-link": "^11.1.1", | ||
"@ckeditor/ckeditor5-list": "^12.0.4", | ||
"@ckeditor/ckeditor5-media-embed": "^11.1.3", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.4", | ||
"@ckeditor/ckeditor5-table": "^13.0.2", | ||
"@ckeditor/ckeditor5-ui": "^13.0.2", | ||
"@ckeditor/ckeditor5-autoformat": "^11.0.5", | ||
"@ckeditor/ckeditor5-basic-styles": "^11.1.4", | ||
"@ckeditor/ckeditor5-block-quote": "^11.1.3", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.1.4", | ||
"@ckeditor/ckeditor5-essentials": "^11.0.5", | ||
"@ckeditor/ckeditor5-heading": "^11.0.5", | ||
"@ckeditor/ckeditor5-image": "^14.0.0", | ||
"@ckeditor/ckeditor5-link": "^11.1.2", | ||
"@ckeditor/ckeditor5-list": "^12.1.0", | ||
"@ckeditor/ckeditor5-media-embed": "^11.1.4", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.5", | ||
"@ckeditor/ckeditor5-table": "^14.0.0", | ||
"@ckeditor/ckeditor5-ui": "^14.0.0", | ||
"eslint": "^5.5.0", | ||
@@ -55,3 +55,3 @@ "eslint-config-ckeditor5": "^2.0.0", | ||
"homepage": "https://ckeditor.com/ckeditor-5", | ||
"bugs": "https://github.com/ckeditor/ckeditor5-core/issues", | ||
"bugs": "https://github.com/ckeditor/ckeditor5/issues", | ||
"repository": { | ||
@@ -58,0 +58,0 @@ "type": "git", |
@@ -23,3 +23,3 @@ /** | ||
* | ||
* @extends utils/keystrokehandler~KeystrokeHandler | ||
* @extends module:utils/keystrokehandler~KeystrokeHandler | ||
*/ | ||
@@ -26,0 +26,0 @@ export default class EditingKeystrokeHandler extends KeystrokeHandler { |
@@ -94,2 +94,4 @@ /** | ||
const languageConfig = this.config.get( 'language' ) || {}; | ||
/** | ||
@@ -99,3 +101,6 @@ * @readonly | ||
*/ | ||
this.locale = new Locale( this.config.get( 'language' ) ); | ||
this.locale = new Locale( { | ||
uiLanguage: typeof languageConfig === 'string' ? languageConfig : languageConfig.ui, | ||
contentLanguage: this.config.get( 'language.content' ) | ||
} ); | ||
@@ -102,0 +107,0 @@ /** |
@@ -10,2 +10,4 @@ /** | ||
/* globals console */ | ||
import ComponentFactory from '@ckeditor/ckeditor5-ui/src/componentfactory'; | ||
@@ -16,3 +18,2 @@ import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker'; | ||
import mix from '@ckeditor/ckeditor5-utils/src/mix'; | ||
import log from '@ckeditor/ckeditor5-utils/src/log'; | ||
@@ -128,3 +129,5 @@ /** | ||
// instance registry). | ||
domElement.ckeditorInstance = this.editor; | ||
if ( !domElement.ckeditorInstance ) { | ||
domElement.ckeditorInstance = this.editor; | ||
} | ||
} | ||
@@ -167,3 +170,3 @@ | ||
*/ | ||
log.warn( | ||
console.warn( | ||
'editor-ui-deprecated-editable-elements: ' + | ||
@@ -170,0 +173,0 @@ 'The EditorUI#_editableElements property has been deprecated and will be removed in the near future.', |
@@ -56,5 +56,4 @@ /** | ||
* | ||
* In its minimal form it can be a simple function (it will be used as a constructor) that accepts | ||
* {@link module:core/editor/editor~Editor the editor} as a parameter. | ||
* It can also implement a few methods which, when present, will be used to properly initialize and destroy the plugin. | ||
* In its minimal form a plugin can be a simple function that accepts {@link module:core/editor/editor~Editor the editor} | ||
* as a parameter: | ||
* | ||
@@ -66,3 +65,3 @@ * // A simple plugin that enables a data processor. | ||
* | ||
* In most cases, however, you will want to inherit from the {@link module:core/plugin~Plugin} class which implements the | ||
* In most cases however, you will want to inherit from the {@link module:core/plugin~Plugin} class which implements the | ||
* {@link module:utils/observablemixin~ObservableMixin} and is, therefore, more convenient: | ||
@@ -81,2 +80,13 @@ * | ||
* | ||
* The plugin can also implement methods (e.g. {@link module:core/plugin~PluginInterface#init `init()`} or | ||
* {@link module:core/plugin~PluginInterface#destroy `destroy()`}) which, when present, will be used to properly | ||
* initialize and destroy the plugin. | ||
* | ||
* **Note:** When defined as a plain function, the plugin acts as a constructor and will be | ||
* called in parallel with other plugins' {@link module:core/plugin~PluginInterface#constructor constructors}. | ||
* This means the code of that plugin will be executed **before** {@link module:core/plugin~PluginInterface#init `init()`} and | ||
* {@link module:core/plugin~PluginInterface#afterInit `afterInit()`} methods of other plugins and, for instance, | ||
* you cannot use it to extend other plugins' {@glink framework/guides/architecture/editing-engine#schema schema} | ||
* rules as they are defined later on during the `init()` stage. | ||
* | ||
* @interface PluginInterface | ||
@@ -83,0 +93,0 @@ */ |
@@ -10,5 +10,6 @@ /** | ||
import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror'; | ||
import log from '@ckeditor/ckeditor5-utils/src/log'; | ||
/* globals console */ | ||
import CKEditorError, { attachLinkToDocumentation } from '@ckeditor/ckeditor5-utils/src/ckeditorerror'; | ||
import EmitterMixin from '@ckeditor/ckeditor5-utils/src/emittermixin'; | ||
@@ -193,3 +194,3 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix'; | ||
// Log the error so it's more visible on the console. Hopefully, for better DX. | ||
log.error( errorMsg, { plugins: missingPlugins } ); | ||
console.error( attachLinkToDocumentation( errorMsg ), { plugins: missingPlugins } ); | ||
@@ -236,3 +237,5 @@ return Promise.reject( new CKEditorError( errorMsg, this._editor, { plugins: missingPlugins } ) ); | ||
*/ | ||
log.error( 'plugincollection-load: It was not possible to load the plugin.', { plugin: PluginConstructor } ); | ||
console.error( attachLinkToDocumentation( | ||
'plugincollection-load: It was not possible to load the plugin.' | ||
), { plugin: PluginConstructor } ); | ||
@@ -377,9 +380,10 @@ throw err; | ||
*/ | ||
log.warn( | ||
throw new CKEditorError( | ||
'plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.', | ||
null, | ||
{ pluginName, plugin1: this._plugins.get( pluginName ).constructor, plugin2: PluginConstructor } | ||
); | ||
} else { | ||
this._plugins.set( pluginName, plugin ); | ||
} | ||
this._plugins.set( pluginName, plugin ); | ||
} | ||
@@ -386,0 +390,0 @@ } |
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
85
1906
156879
+ Added@ckeditor/ckeditor5-engine@14.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@14.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@13.2.1(transitive)
- Removed@ckeditor/ckeditor5-utils@13.0.1(transitive)