Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

docs(markdown-editor): drop resetUndoHistory restatement comment

Sergey Kozyrenko37d17390240d
diff --git a/frontend/src/components/shared/markdown-editor/markdown-editor.tsx b/frontend/src/components/shared/markdown-editor/markdown-editor.tsx
index d84e6650..ba9cad8f 100644
--- a/frontend/src/components/shared/markdown-editor/markdown-editor.tsx
+++ b/frontend/src/components/shared/markdown-editor/markdown-editor.tsx
@@ -30,8 +30,6 @@ interface MarkdownEditorProps {
value: string;
}
-// Clears the undo/redo stack by swapping the history plugin for a fresh instance. MUST NOT run on user
-// edits (value changes carry user input too) — that would wipe the user's own Ctrl+Z history.
export const resetUndoHistory = (editor: Editor): void => {
const { state, view } = editor;
// A fresh history() shares prosemirror-history's module-level singleton PluginKey, so match the