core icon indicating copy to clipboard operation
core copied to clipboard

[Block Editor]: Placeholder Message

Open MariaFernandez778 opened this issue 1 year ago • 5 comments

Goal

Improve clarity and avoid redundant or confusing options in the "+" button menu.

Success Criteria

  • [ ] The introduction message should be: "Start writing or type / to choose a block"
Image

🎥 Demo Expectations

Provide a screen recording of:

  • The introduction message/placeholder should be the same as in the design

MariaFernandez778 avatar Apr 29 '25 00:04 MariaFernandez778

Failed Internal QA

  • Docker Image: [dotcms/dotcms:trunk_b5fd6d9]

Video

https://github.com/user-attachments/assets/26cf3af1-1903-43f7-a91f-ee86792900b6

rjvelazco avatar Jul 02 '25 13:07 rjvelazco

Hey @MariaFernandez778! 👋

Could you help us define the placeholder messages for different blocks in the editor? For example, if the current block is a Heading, should the message be something like “What’s your title?” or “Start writing or type / to choose a block”?

Here’s the list of blocks we’re working with:

  • List
  • Heading
  • Paragraph
  • Code Block
  • Quote Block

We’re using the Tiptap placeholder extension, and it also allows us to hide the placeholder for certain blocks—so feel free to let us know if any of these shouldn’t display one.

rjvelazco avatar Jul 02 '25 13:07 rjvelazco

In placeholder text List: Enter your list item Heading : Enter your Heading 1 (or 2, or 3, etc.) Paragraph: Enter your paragraph text Code Block: Enter your code Quote Block: Enter your quote

MariaFernandez778 avatar Jul 03 '25 17:07 MariaFernandez778

PRs:

  • https://github.com/dotCMS/core/pull/32650

github-actions[bot] avatar Jul 14 '25 18:07 github-actions[bot]

QA Passed

Now we have placeholders for blocks that are not paragraphs

https://github.com/user-attachments/assets/8c0d0f29-ce3a-4d77-bda4-3a1556b634fe

zJaaal avatar Jul 15 '25 16:07 zJaaal