Skip to content

预览ppt可以配置为只读吗 #3

Closed

Description

@2289992859
No description provided.

Activity

  1. chaxus commented on Oct 19, 2026

    @chaxus
    Member

    Added opt-in read-only mode in 0.2.0 (PR #9):

    <r-preview src="/slides/deck.pptx" readonly>View slides</r-preview>

    Or set the upgraded element's readonly property to true. The default remains editable. This uses the document editor's read-only API rather than merely hiding controls.

    Verified against the current deployed editor with real DOCX and PPTX: state reports read-only, SDK restrictions are 128, canEdit() is false, and save requests are rejected. Existing legacy self-hosted editors without the embed API must be upgraded before they can enforce this mode; the component returns an explicit error instead of silently permitting edits.

    Configuration and verification.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions