From f46f3b4989332b9f926b3b953f388dcac2f85ab0 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 9 Apr 2026 17:52:57 +0530 Subject: [PATCH] feat: add TrailingBlockPlugin to full and minimal presets --- surfsense_web/components/editor/presets.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/surfsense_web/components/editor/presets.ts b/surfsense_web/components/editor/presets.ts index 978b2b71c..c207b5e56 100644 --- a/surfsense_web/components/editor/presets.ts +++ b/surfsense_web/components/editor/presets.ts @@ -1,6 +1,7 @@ "use client"; import type { AnyPluginConfig } from "platejs"; +import { TrailingBlockPlugin } from "platejs"; import { AutoformatKit } from "@/components/editor/plugins/autoformat-kit"; import { BasicNodesKit } from "@/components/editor/plugins/basic-nodes-kit"; @@ -36,6 +37,7 @@ export const fullPreset: AnyPluginConfig[] = [ ...FloatingToolbarKit, ...AutoformatKit, ...DndKit, + TrailingBlockPlugin, ]; /** @@ -49,6 +51,7 @@ export const minimalPreset: AnyPluginConfig[] = [ ...CodeBlockKit, ...LinkKit, ...AutoformatKit, + TrailingBlockPlugin, ]; /**