Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

lists: Add query for being inside list #25

Description

@wmertens

This is useful for e.g. button bars
Not sure what to call it, isList, hasList, inList?

	queries: {isList: editor=>!!getListItem(editor,editor.value.startBlock)}

getListItem will then need a guard for undefined block

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions