I have the following fields in a block:
{
name: "lexical",
type: "richText",
virtual: true,
hooks: {
afterRead: [
async ({ siblingData }) => {
if (siblingData["content"]) {
return await convertToLexical(siblingData["content"]);
}
},
],
beforeChange: [
async ({ value, siblingData }) => {
if (value) {
siblingData["content"] = await convertToMarkdown(value);
}
},
],
},
},
{
name: "content",
type: "text",
admin: {
hidden: true,
},
},
Is there a way to hide the lexical field in the API?