Skip to content

Add view only mode - #121

Open
Kr0nox wants to merge 2 commits into
mainfrom
view-mode
Open

Kr0nox wants to merge 2 commits into
mainfrom
view-mode

Conversation

@Kr0nox

@Kr0nox Kr0nox commented Aug 24, 2026

Copy link
Copy Markdown
Member

By setting the URL flag embed=true, the viewer will hide all floating elements, and disables all key events and all mouse events exept for: panning, zooming and opening the assignment window.

Beispiel: https://dataflowanalysis.github.io/OnlineEditorStaging/prs/121/?embed=true

@Kr0nox

This comment was marked as outdated.

@Nicolas-Boltz

Copy link
Copy Markdown
Member

As it should only be used for viewing, you should also disable keyboard shortcuts.

Also, I would assume, that viewOnly includes setting readOnly to true. But if we can just set both to true individually thats fine as well

@Kr0nox

Kr0nox commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

/stage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants