Access to a paragraph that contains a table [js]
Hi,
I have a document with two columns design. It’s full of tables. By default, the paragraphs that contains a table expands the two columns, the text not.
I have a script that passes to a function a selected table and give it format. When you launch the script there is a UI window that ask for number of head rows, if the table has foot rows and if the table has to expand to two columns or not.
My problem is that I don’t know how to access to the paragraph that contains the table to apply it a style that don't expand to two columns, because the selected table passed to the fuction is a little one.
As I said before, the table is selected so its parent is a text frame, then spread, then document.
I don’t know if there is a direct access to the paragraph or I have to use a workaround.
Thank in advance.
