@ckeditor/ckeditor5-link
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
Changelog | ||
========= | ||
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-link/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) | ||
### Other changes | ||
* Updated translations. ([ea343cd](https://github.com/ckeditor/ckeditor5-link/commit/ea343cd)) | ||
* Aligned UI library usage to the [changes in the UI framework](https://github.com/ckeditor/ckeditor5-ui/pull/332). | ||
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-link/compare/v0.8.0...v1.0.0-alpha.1) (2017-10-03) | ||
@@ -5,0 +13,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-link", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Link feature for CKEditor 5.", | ||
@@ -10,19 +10,19 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-engine": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-theme-lark": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-ui": "^1.0.0-alpha.1" | ||
"@ckeditor/ckeditor5-core": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-engine": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-theme-lark": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-ui": "^1.0.0-alpha.2" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-dev-lint": "^3.1.4", | ||
"@ckeditor/ckeditor5-editor-classic": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-enter": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-heading": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-paragraph": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-typing": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-undo": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-utils": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-enter": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-heading": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-paragraph": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-typing": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-undo": "^1.0.0-alpha.2", | ||
"@ckeditor/ckeditor5-utils": "^1.0.0-alpha.2", | ||
"eslint": "^4.8.0", | ||
"eslint-config-ckeditor5": "^1.0.6", | ||
"gulp": "^3.9.1", | ||
"guppy-pre-commit": "^0.4.0" | ||
"husky": "^0.14.3", | ||
"lint-staged": "^4.2.3" | ||
}, | ||
@@ -45,3 +45,16 @@ "engines": { | ||
"theme" | ||
], | ||
"scripts": { | ||
"lint": "eslint --quiet '**/*.js'", | ||
"precommit": "lint-staged" | ||
}, | ||
"lint-staged": { | ||
"**/*.js": [ | ||
"eslint --quiet" | ||
] | ||
}, | ||
"eslintIgnore": [ | ||
"src/lib/**", | ||
"packages/**" | ||
] | ||
} |
@@ -228,13 +228,2 @@ /** | ||
// https://github.com/ckeditor/ckeditor5-link/issues/53 | ||
this.formView.unlinkButtonView.isVisible = unlinkCommand.isEnabled; | ||
// Make sure that each time the panel shows up, the URL field remains in sync with the value of | ||
// the command. If the user typed in the input, then canceled the balloon (`urlInputView#value` stays | ||
// unaltered) and re-opened it without changing the value of the link command (e.g. because they | ||
// clicked the same link), they would see the old value instead of the actual value of the command. | ||
// https://github.com/ckeditor/ckeditor5-link/issues/78 | ||
// https://github.com/ckeditor/ckeditor5-link/issues/123 | ||
this.formView.urlInputView.inputView.element.value = linkCommand.value || ''; | ||
this.listenTo( showViewDocument, 'render', () => { | ||
@@ -279,2 +268,13 @@ const renderSelectedLink = this._getSelectedLinkElement(); | ||
} | ||
// https://github.com/ckeditor/ckeditor5-link/issues/53 | ||
this.formView.unlinkButtonView.isVisible = unlinkCommand.isEnabled; | ||
// Make sure that each time the panel shows up, the URL field remains in sync with the value of | ||
// the command. If the user typed in the input, then canceled the balloon (`urlInputView#value` stays | ||
// unaltered) and re-opened it without changing the value of the link command (e.g. because they | ||
// clicked the same link), they would see the old value instead of the actual value of the command. | ||
// https://github.com/ckeditor/ckeditor5-link/issues/78 | ||
// https://github.com/ckeditor/ckeditor5-link/issues/123 | ||
this.formView.urlInputView.inputView.element.value = linkCommand.value || ''; | ||
} | ||
@@ -281,0 +281,0 @@ |
@@ -11,3 +11,2 @@ /** | ||
import View from '@ckeditor/ckeditor5-ui/src/view'; | ||
import Template from '@ckeditor/ckeditor5-ui/src/template'; | ||
import ViewCollection from '@ckeditor/ckeditor5-ui/src/viewcollection'; | ||
@@ -114,3 +113,3 @@ | ||
Template.extend( this.saveButtonView.template, { | ||
this.saveButtonView.extendTemplate( { | ||
attributes: { | ||
@@ -123,3 +122,3 @@ class: [ | ||
this.template = new Template( { | ||
this.setTemplate( { | ||
tag: 'form', | ||
@@ -155,3 +154,10 @@ | ||
} ); | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ | ||
render() { | ||
super.render(); | ||
submitHandler( { | ||
@@ -175,12 +181,5 @@ view: this | ||
} ); | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ | ||
init() { | ||
// Start listening for the keystrokes coming from #element. | ||
this.keystrokes.listenTo( this.element ); | ||
return super.init(); | ||
} | ||
@@ -187,0 +186,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
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
58175
46
9
762