Skip to content

Mobile toolbar indent/outdent buttons do not indent list items #2526

Closed

Description

@drago1520

On mobile, the fixed toolbar contains Increase indent / Decrease indent actions, but they do not work for bullet or numbered list items.

Steps to reproduce

  1. Open Docmost on mobile/iOS.
  2. Create a bullet or numbered list.
  3. Place the cursor inside a list item.
  4. Open the formatting toolbar.
  5. Tap Increase indent or Decrease indent.

Actual behavior

Nothing happens.

Expected behavior

For list items:

  • Increase indent should nest the current item under the previous item.
  • Decrease indent should move the item one level up.

This is especially important on mobile because there is no physical Tab / Shift+Tab key available.

Likely cause

The toolbar currently calls:

editor.chain().focus().indent().run()
editor.chain().focus().outdent().run()

But the indentation extension intentionally excludes listItem / taskItem, since list nesting uses separate commands.

For lists, the toolbar should probably call something like:

sinkListItem("listItem")
liftListItem("listItem")

while retaining indent() / outdent() for normal paragraphs/headings.

Related

Environment

  • IOS 18
  • Safari PWA
  • latest Docmost v0.96.0

image

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

    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