Skip to content

Dangling paragraph #4372

Answered by dosubot bot
scape76 asked this question in Q&A
Jun 17, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @scape76! I'm Dosu and I’m helping the plate team.

You can get the always-empty paragraph at the bottom by adding the TrailingBlockPlugin to your Plate editor’s plugins array. This is how it’s done in the playground template—just include TrailingBlockPlugin in your setup and it will automatically ensure there’s always a paragraph at the end, even after deleting content or blocks.

You can customize the block type or exclude certain types if needed. Example:

import { TrailingBlockPlugin } from 'platejs';

const plugins = [
  // ...other plugins
  TrailingBlockPlugin, // default: ensures trailing paragraph
];

// Or with options:
TrailingBlockPlugin.configure({
  options: {
    type: 'p', 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Answer selected by scape76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant