Skip to main content

Hello everyone    So as we know Canvases allow us to have a layout of 1, 2 o 3 columns, and is as easy as to drag them one next to each other.    The thing is, I want to keep that layout but I want to use the canvas.edit method to change the content of one of the sections, and if I do any method (replace, insert_after, insert_before) it inserts the content but in a different line, outside the columns. I was also not able to redo the whole layout because I didn't find an option to specify the content is in columns (only with a mrkdown table but that's not what I need).    Is this even possible to do?    Thanyou in advance!   

1 resposta
  1. 29 de ago. de 2025, 07:51

    Hello Julio, 

     

    Yeah, this is one of those annoying limits with the Canvas API. The column layout you see in the UI is mostly visual, and the API doesn’t really give you a way to “target” a specific column when inserting or replacing content. That’s why when you use replace, insert_after, or insert_before, it just drops the content on a new line outside the columns.

    Basically, there’s no native API method to preserve a multi-column layout while editing content – the API only really handles block-level inserts. The usual workaround is to either:

    • Use a Markdown table to fake columns, or
    • Rebuild the entire Canvas via API each time with the layout and content combined.

    So yeah, what you want isn’t really supported directly – it’s mostly visual in the UI.

0/9000