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

Extend Editor class with debug utils #200

Closed
wants to merge 3 commits into from
Closed

Extend Editor class with debug utils #200

wants to merge 3 commits into from

Conversation

ma2ciek
Copy link
Contributor

@ma2ciek ma2ciek commented Oct 23, 2019

Suggested merge commit message (convention)

Internal: Extended Editor class with debug tools. Part of ckeditor/ckeditor5#5649, ckeditor/ckeditor5-engine#1805.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.


// @if CK_DEBUG_ENGINE // this.logModel( version );
// @if CK_DEBUG_ENGINE // this.logView( version );
// @if CK_DEBUG_ENGINE // }
Copy link

Choose a reason for hiding this comment

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

I think it would be great to keep all the code related to engine debugging in the ckeditor5-engine module. Not only because it is called CK_DEBUG_ENGINE, but also because the main editor class is kind of the main editor API. Many people will read this code to learn how the editor is created or to debug some problems (not necessarily related to the engine). I think that we should not add such code here since it makes reading this main file harder.

Copy link

Choose a reason for hiding this comment

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

I think that this.model.document.log( version ); and this.editing.view.document.log( version ); is enough. We do not need these additional methods on the editor. The rest of the code I believe can be moved to the engine.

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.

2 participants