feat: add support for HTML content in HitlEditPanel and PlateEditor components for only Confluence HITL tool

This commit is contained in:
Anish Sarkar 2026-03-22 02:42:51 +05:30
parent 2bc6a0c3bc
commit a9683bb1dc
8 changed files with 131 additions and 18 deletions

View file

@ -254,6 +254,7 @@ function ApprovalCard({
title: editedArgs.title,
content: editedArgs.content,
toolName: "Confluence Page",
contentFormat: "html",
onSave: (newTitle, newContent) => {
setIsPanelOpen(false);
setEditedArgs({
@ -305,7 +306,7 @@ function ApprovalCard({
}}
>
<PlateEditor
markdown={page.body}
html={page.body}
readOnly
preset="readonly"
editorVariant="none"
@ -348,7 +349,7 @@ function ApprovalCard({
}}
>
<PlateEditor
markdown={String(
html={String(
hasPanelEdits
? editedArgs.content
: (actionArgs.new_content ?? args.new_content)