Skip to content

There is a situation where the page API cannot retrieve the editor type. #5117

Closed
@toras9000

Description

@toras9000

Describe the Bug

In the newly created page, the editor property is empty in the PAGES-LIST or PAGES-READ API response results.
This seems to occur when a new page is saved with the configured default editor.
When creating or editing a page, if you switch the editor type and then save the page, the type will be available in the editor property of the API response thereafter.

Steps to Reproduce

  1. Create a new page in any book.
    • At this time, save the file without switching the editor type.
  2. Obtain information via the PAGES-LIST or PAGES-READ API.
    • The editor property of the API response data is empty.

Expected Behaviour

The editor property of the API response gets the appropriate value.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v24.05.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions