@ckeditor/ckeditor5-editor-inline
Advanced tools
Comparing version 12.1.1 to 12.2.0
Changelog | ||
========= | ||
## [12.2.0](https://github.com/ckeditor/ckeditor5-editor-inline/compare/v12.1.1...v12.2.0) (2019-07-04) | ||
### Features | ||
* `InlineEditor.create()` will throw an error, when a `<textarea>` element is used. ([56c9f40](https://github.com/ckeditor/ckeditor5-editor-inline/commit/56c9f40)) | ||
## [12.1.1](https://github.com/ckeditor/ckeditor5-editor-inline/compare/v12.1.0...v12.1.1) (2019-06-05) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-editor-inline", | ||
"version": "12.1.1", | ||
"version": "12.2.0", | ||
"description": "Inline editor implementation for CKEditor 5.", | ||
@@ -12,15 +12,15 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^12.1.1", | ||
"@ckeditor/ckeditor5-engine": "^13.1.1", | ||
"@ckeditor/ckeditor5-ui": "^13.0.0", | ||
"@ckeditor/ckeditor5-utils": "^12.1.1", | ||
"@ckeditor/ckeditor5-core": "^12.2.0", | ||
"@ckeditor/ckeditor5-engine": "^13.2.0", | ||
"@ckeditor/ckeditor5-ui": "^13.0.1", | ||
"@ckeditor/ckeditor5-utils": "^13.0.0", | ||
"lodash-es": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^11.1.1", | ||
"@ckeditor/ckeditor5-enter": "^11.0.2", | ||
"@ckeditor/ckeditor5-heading": "^11.0.2", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.2", | ||
"@ckeditor/ckeditor5-typing": "^12.0.2", | ||
"@ckeditor/ckeditor5-undo": "^11.0.2", | ||
"@ckeditor/ckeditor5-basic-styles": "^11.1.2", | ||
"@ckeditor/ckeditor5-enter": "^11.0.3", | ||
"@ckeditor/ckeditor5-heading": "^11.0.3", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.3", | ||
"@ckeditor/ckeditor5-typing": "^12.1.0", | ||
"@ckeditor/ckeditor5-undo": "^11.0.3", | ||
"eslint": "^5.5.0", | ||
@@ -27,0 +27,0 @@ "eslint-config-ckeditor5": "^1.0.11", |
@@ -7,3 +7,2 @@ CKEditor 5 inline editor creator | ||
[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-editor-inline.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-editor-inline) | ||
[![BrowserStack Status](https://automate.browserstack.com/automate/badge.svg?badge_key=d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0)](https://automate.browserstack.com/public-build/d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0) | ||
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-editor-inline/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-editor-inline?branch=master) | ||
@@ -10,0 +9,0 @@ <br> |
@@ -192,2 +192,10 @@ /** | ||
return new Promise( resolve => { | ||
const isHTMLElement = isElement( sourceElementOrData ); | ||
if ( isHTMLElement && sourceElementOrData.tagName === 'TEXTAREA' ) { | ||
// Documented in core/editor/editor.js | ||
throw new CKEditorError( | ||
'editor-wrong-element: This type of editor cannot be initialized inside <textarea> element.', null ); | ||
} | ||
const editor = new this( sourceElementOrData, config ); | ||
@@ -201,7 +209,8 @@ | ||
.then( () => { | ||
if ( !isElement( sourceElementOrData ) && config.initialData ) { | ||
if ( !isHTMLElement && config.initialData ) { | ||
// Documented in core/editor/editorconfig.jdoc. | ||
throw new CKEditorError( | ||
'editor-create-initial-data: ' + | ||
'The config.initialData option cannot be used together with initial data passed in Editor.create().' | ||
'The config.initialData option cannot be used together with initial data passed in Editor.create().', | ||
null | ||
); | ||
@@ -208,0 +217,0 @@ } |
@@ -76,3 +76,3 @@ /** | ||
// editable areas (roots) but the inline editor has only one. | ||
this._editableElements.set( editable.name, editableElement ); | ||
this.setEditableElement( editable.name, editableElement ); | ||
@@ -79,0 +79,0 @@ // Let the global focus tracker know that the editable UI element is focusable and |
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
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
33488
540
25
- Removed@ckeditor/ckeditor5-utils@12.1.1(transitive)