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

Make IndentBlock work regardless of editor plugins order. #20

Merged
merged 3 commits into from
Oct 10, 2019
Merged

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Oct 4, 2019

Suggested merge commit message (convention)

Fix: Make IndentBlock work regardless of editor plugins order. Closes ckeditor/ckeditor5#2359.


Checking schema for registered elements should be done
in afterInit call to prevent plugin ordering related bugs.

Checking schema for registered elements should be done
in afterInit call to prevent plugin ordering related bugs.
@Reinmar Reinmar self-assigned this Oct 7, 2019
Copy link
Member

@Reinmar Reinmar left a comment

Choose a reason for hiding this comment

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

The minimal amount of code should be moved to afterInit(). As much as possible should be done inside init() to make those things available to other plugins.

The schema extending rules must be done in afterInit and
all core indent block behavior should be done during
the init phase.
@jodator jodator requested a review from Reinmar October 9, 2019 09:41
@jodator
Copy link
Contributor Author

jodator commented Oct 9, 2019

I think that now it makes more sense.

@oleq oleq merged commit cf15eab into master Oct 10, 2019
@oleq oleq deleted the t/19 branch October 10, 2019 10:38
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.

Putting Indent in plugins array before specific plugins breaks the plugin
3 participants