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

It should be possible to disable autoformatting #65

Merged
merged 1 commit into from
Feb 4, 2019
Merged

It should be possible to disable autoformatting #65

merged 1 commit into from
Feb 4, 2019

Conversation

scofalik
Copy link
Contributor

@scofalik scofalik commented Jan 30, 2019

Suggested merge commit message (convention)

Feature: BlockAutoformatEditing will not format if the command is disabled. InlineAutoformatEditing will not format if the callback returned false. Closes ckeditor/ckeditor5#2393.

*
* @type {Boolean}
*/
this.isEnabled = true;
Copy link

Choose a reason for hiding this comment

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

I do not like this change. I think that autoformat should check if commands are enabled instead.

Copy link
Member

Choose a reason for hiding this comment

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

While rewriting this feature to use commands only (researched in #7) seems impossible now, using commands to check whether a certain autoformat feature can be executed might indeed be feasible now.

@scofalik
Copy link
Contributor Author

scofalik commented Feb 1, 2019

Once again on the review...

@pjasiun pjasiun merged commit cc7f454 into master Feb 4, 2019
@pjasiun pjasiun deleted the t/64 branch February 4, 2019 14:36
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.

It should be possible to disable autoformatting
3 participants