Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Rename editor#pluginsReady event as editor.plugins#ready #157

Merged
merged 13 commits into from
Jan 29, 2019

Conversation

f1ames
Copy link
Contributor

@f1ames f1ames commented Jan 24, 2019

Suggested merge commit message (convention)

Other: Introduced editor.plugins#ready event. Closes ckeditor/ckeditor5#1477.

BREAKING CHANGE: The editor#pluginsReady event was removed. The editor.plugins#ready event has been introduced and should be used instead.


Additional information

See ckeditor/ckeditor5#1477 for more details. This PR mostly covers renaming pluginsReady event (but also necessary adjustments to new data#ready event). The second PR (renaming dataReady event) is ckeditor/ckeditor5-engine#1646.

Created ckeditor5 branch with all the changes - https://github.com/ckeditor/ckeditor5/tree/t/1477.

The list of related PRs in other repos which needed adjustments:

@coveralls
Copy link

coveralls commented Jan 24, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 94f230c on t/ckeditor5/1477 into 3da2f20 on master.

@f1ames f1ames requested a review from pjasiun January 24, 2019 13:21
@@ -310,7 +297,8 @@ export default class Editor {
resolve(
editor.initPlugins()
.then( () => {
editor.fire( 'dataReady' );
// Fire `data#ready` event manually as `data#init()` method is not used.
editor.data.fire( 'ready' );
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the whole Editor#create method should be removed since it is meaningless.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was removed in 60d06c3. Unless you meant some other place in the code (it's only used in tests now)?

src/editor/editor.js Outdated Show resolved Hide resolved
src/editor/editor.js Outdated Show resolved Hide resolved
tests/editor/editor.js Outdated Show resolved Hide resolved
tests/editor/editor.js Outdated Show resolved Hide resolved
Piotr Jasiun and others added 3 commits January 24, 2019 17:45
@f1ames f1ames requested a review from pjasiun January 24, 2019 17:04
src/editor/editor.js Outdated Show resolved Hide resolved
src/plugincollection.js Outdated Show resolved Hide resolved
@f1ames f1ames requested a review from pjasiun January 29, 2019 08:41
src/editor/editor.js Outdated Show resolved Hide resolved
@f1ames f1ames requested a review from pjasiun January 29, 2019 09:24
@pjasiun pjasiun merged commit 6d63538 into master Jan 29, 2019
@pjasiun pjasiun deleted the t/ckeditor5/1477 branch January 29, 2019 09:42
@f1ames f1ames mentioned this pull request Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants