Skip to main content
Inspiring
September 28, 2017
Question

InDesign CC 2017 closeExtension() does NOT work properly.

  • September 28, 2017
  • 1 reply
  • 1831 views

Hello all InDesign experts.

We have an HTML/JS Extension since version CC 2014 (or CSXS 5), which works also just fine for CC 2015.

In this we have some progress panels to show processing percentage. As all steps are finished, the panels are closed programmatically with: CSInterface.prototype.closeExtension().

All functional on CC 2014 and 2015.

BUT as we switched to CC 2017 this function does NOT work as expected any more. It does clean all contents within the panel, but the empty panel frame kept shown until the user clicks "x".

FURTHERMORE a panel is not closed completely via closeExtension() when it's defined as <UI><Type>Panel</Type>... </UI> in manifest.

If the type is changed to <Type>ModalDialog</Type>, the function closes the whole panel as it used to be.

We tried CSXS 5, 6 and 7, all act the same.

Anyone else is facing/faced the same problem and can give us some information how can we fix this?

Thx a lot.

PS: Originally this question is posted on a different sub-space. Tip from nice forum members should I try my luck here.

In case anyone is interested for this problem and someone is able to solve it in another thread. Click me.

This topic has been closed for replies.

1 reply

Trevor:
Legend
September 28, 2017

What happens when you use window.__adobe_cep__.closeExtension() instead of the csInterface?

Inspiring
September 28, 2017

Thanks for your answer.

As I checked CSInterface.js previously, the CSInterface.prototype.closeExtension() contains just one line and which is:

window.__adobe_cep__.closeExtension();

Therefore I think CEP should behave the same way.

After your suggestion I rechecked the code and used window.__adobe_cep__.closeExtension() directly.

The results are the same. All the contents inside the panel are cleaned but the UI (empty frame) is still present.

Tested with CEP 5, 6 and 7. This problem occurs only on CC 2017. On CC 2014 and 2015 the function works fine.

Trevor:
Legend
September 28, 2017

I don't have any other ideas. I don't have any problems with closeExtension() on CC2017 on either Windows or Mac.

Maybe if you post the OS and apps you're using someone else might be able to help

Are you having this with all the extensions or just one?

Try downloading my CSTK link on home page and type window.__adobe_cep__.closeExtension() in the js console and see what happens.