Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hide document outline and annotations when entering source editing mode #17979

Merged

Conversation

Dumluregn
Copy link
Contributor

Suggested merge commit message (convention)

Feature (source-editing): Hide document outline and annotations when entering source editing mode. Closes #17978.

Internal (fullscreen): Display source editing with the same container width as editable.


Additional information

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

*/
private _refreshAnnotationsVisibility() {
if ( this.editor.plugins.has( 'Annotations' ) ) {
( this.editor.plugins.get( 'Annotations' ) as Annotations ).refreshVisibility();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the casting here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's funny, actually. If I remove the casting but leave the unused Annotations import, it still works. But without import, TS is no longer able to connect the dots. I think it's clearer to leave casting here than unused import.

Base automatically changed from ck/fullscreen-bootstrap to ck/epic/1235-fullscreen-mode March 5, 2025 09:53
@Dumluregn Dumluregn merged commit b7b4f8b into ck/epic/1235-fullscreen-mode Mar 5, 2025
1 check passed
@Dumluregn Dumluregn deleted the ck/fullscreen-source-editing branch March 5, 2025 16:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants