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

Other: Update naming of UI components & commands. #99

Merged
merged 9 commits into from
Mar 11, 2018

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Mar 8, 2018

Suggested merge commit message (convention)

Other: Update naming of UI components & commands.

BREAKING CHANGE: Renamed headings drop-down UI component to heading.
BREAKING CHANGE: The "heading1", "heading2" and "heading3" commands are no longer available. Replaced by "heading" command that accepts heading model element name as a value.
BREAKING CHANGE: The HeadingCommand#value is no longer Boolean - only. Now it can have a name of heading model element.
BREAKING CHANGE: The HeadingCommand constructor's second parameter is now an array of supported model elements.


Additional information

@jodator jodator changed the title T/ckeditor5 alignment/16 Other: Update naming of UI components & commands. Mar 8, 2018
@coveralls
Copy link

coveralls commented Mar 8, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling d7bbf1f on t/ckeditor5-alignment/16 into bbf7d60 on master.

@Reinmar
Copy link
Member

Reinmar commented Mar 8, 2018

Heading dropdown doesn't work.

@jodator
Copy link
Contributor Author

jodator commented Mar 8, 2018

Heading dropdown does work now.

@Reinmar
Copy link
Member

Reinmar commented Mar 9, 2018

Something got broken here:

image

@Reinmar
Copy link
Member

Reinmar commented Mar 9, 2018

Fancy heading isn't rendered as fancy.

const model = this.editor.model;
const document = model.document;

const modelElement = options.value;

if ( !this.modelElements.includes( modelElement ) ) {
Copy link
Member

Choose a reason for hiding this comment

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

Such checks cause silent errors. Throw explicitly or let app throw at some point.

Copy link
Member

Choose a reason for hiding this comment

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

Reported a followup for this: ckeditor/ckeditor5#890

@Reinmar
Copy link
Member

Reinmar commented Mar 11, 2018

Fancy heading isn't rendered as fancy.

This is caused most likely by ckeditor/ckeditor5-engine#1274, so I'll report a separate ticket for it.

I'll also report a separate ticket for these silent checks because they repeat in other packages.

@Reinmar Reinmar merged commit 72ee3d6 into master Mar 11, 2018
@Reinmar Reinmar deleted the t/ckeditor5-alignment/16 branch March 11, 2018 17:50
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