Skip to content

Support: Mime types and CoolUtils::canEdit() #77

@donquixote

Description

@donquixote

@hfiguiere

There is a function CoolUtils::canEdit() which determines if a specific mime type is supported for edit mode in the Collabora editor.
This uses a hard-coded list of read-only mime types.

  const READ_ONLY = [
    'application/x-iwork-keynote-sffkey' => TRUE,
    'application/x-iwork-pages-sffpages' => TRUE,
    'application/x-iwork-numbers-sffnumbers' => TRUE,
  ];

I wonder if this is how it has to be, OR if the same information should be extracted from the discovery.xml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions