-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fullscreen guide and minor fixes #18138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0e0e25e
to
794be40
Compare
794be40
to
ddd6dd0
Compare
…in fullscreen mode.
…rce-editing-document-outline
Feature (ui): Add a possibility to switch toolbar behavior in the runtime using the `ToolbarView#switchBehavior()` method. Internal (fullscreen): Allow to configure toolbar behavior while in fullscreen mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general. Some comments.
Unfortunately I was unable to build docs, both on this branch and on master
. I'll get back to it when I manage to build them.
packages/ckeditor5-fullscreen/docs/_snippets/features/fullscreen-default.js
Outdated
Show resolved
Hide resolved
definitions: [ | ||
{ | ||
title: 'Document with an image', | ||
description: 'Simple heading with text and and and image.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"and and and" woot? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/ckeditor5-fullscreen/docs/_snippets/features/fullscreen-pageless.html
Outdated
Show resolved
Hide resolved
@@ -182,8 +204,15 @@ export default class AbstractEditorHandler { | |||
this._overrideRevisionHistoryCallbacks(); | |||
} | |||
|
|||
// Hide all other elements in the container to ensure they don't create an empty unscrollable space. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would there be anything in the container? Is this to account some mistake on the integrator part? Like e.g. whitespace text nodes or something? If so, shouldn't we remove them instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…f body collection elements.
Co-authored-by: Szymon Cofalik <s.cofalik@cksource.com>
Co-authored-by: Dawid Kossowski <20561161+DawidKossowski@users.noreply.github.com>
…document-outline Internal (fullscreen): Improve source editing integration with document outline in fullscreen mode.
Internal (fullscreen): Integrate with CKBox. Closes #18189. Internal (fullscreen): Fix dialogs and balloons positioning in scrollable container. Closes #18153. Internal (fullscreen): Remove icon and rename fullscreen menu bar. Closes #18187. Internal (fullscreen): Rename fullscreen toolbar buttons to "Enter/leave fullscreen mode". Closes #18188.
List of docs fixes left to do (I'll extract it to the ticket):
|
Suggested merge commit message (convention)
Docs (fullscreen): Add feature guide.
Feature (ui): Add a possibility to switch toolbar behavior in the runtime using the
ToolbarView#switchBehavior()
method.Internal (fullscreen): Allow to configure toolbar behavior while in fullscreen mode.
Additional information
Checkout the same branch in commercial repo.
Part regarding the toolbar behavior switching was already reviewed in #18160.
Renames:
fullscreen
->toggleFullscreen
to follow the convention of starting command names with a verb.fullscreen-on
andfullscreen-off
->fullscreen-disable
andfullscreen-enable
to avoid confusion.AbstractHandler#_container
->AbstractHandler#_wrapper
to avoid confusion with a configurable custom container.Refactors:
enable()
/disable()
methods for consistency, readability and easier testing.Fixes:
this._document = this._editor.sourceElement!.ownerDocument;
turned out to not be reliable in some cases (e.g. pagination manual test. Fall back to the global document if
sourceElement` is not defined.editor.destroy()
, disable the fullscreen only if wrapper is visible.