Skip to main content
dublove
Legend
Jul 20, 2026 12:23 PM UTC
Question

Can't textWrapOffer be written in myObjStyle.textWrapPreferences-propelity?

Hello everyone.

I want to group scattered attributes together.

Can I only write like this:

textWrapPreferences.textWrapOffset = [2, 2, 5, 5];

But can't it be like this? The one below seems invalid:

myObjStyle.textWrapPreferences.properties = {
textWrapMode: TextWrapModes.BOUNDING_BOX_TEXT_WRAP,
textWrapOffset: [2, 2, 5, 5],
}

 

    2 replies

    Abhishek Rao
    Community Manager
    Community Manager
    Jul 20, 2026 2:05 PM UTC

    Hi ​@dublove,

     

    Thanks for reporting this. As Peter mentioned, I'm checking this behavior with our product team to confirm whether it's a known bug or expected behavior. I'll keep this thread updated as soon as I have more information.

     

    Thanks for your patience!

    Abhishek

    Translate
    Peter Kahrel
    Community Expert
    Community Expert
    Jul 20, 2026 1:07 PM UTC

    This is an ancient InDesign bug. Your sample is correct, but it just doesn’t work. You’ll have to set the wrap offset separately.

    Translate