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.
What happens when you use window.__adobe_cep__.closeExtension() instead of the csInterface?
Thanks for your answer.
As I checked CSInterface.js previously, the CSInterface.prototype.closeExtension() contains just one line and which is:
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.
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.
If it works in the CSTK then you can incorporate the CSTK in your extn. for debug purposes and try it out in your extn.
If you can't get it working post the manifest here.
Thanks Trevor. You built a fantastic tool to start with. Thumb up.
I managed to set up your CSTK on my InDesign CC 2017 installation and played a bit around. But my problem happens even to your Panel. CC 2017 is updated to the newest patch.
Run window.__adobe_cep__.closeExtension() via "JS ENGINE EVAL" button.
Result as attached screenshot. About info provided.
Back to your question, I have this issue to all extensions with type "Panel". "ModalDialog" type works fine.
OS is windows 10 Pro.
Works for me in Windows 10 Pro.
Did you try on different apps? The CSTK should work on them all.
Which app are you using.
Sorry, I missed the screenshot 🙂
Yep same by me on InDesign, on the other apps (well I tested Ai and Ps) it works.
Mac and Windows the same.
ID has a different interaction with the CEP engine than the other apps
Thanks for your quick response and help.
Funny thing is it works on InDesign 2014 and 2015.
I almost assumed it's an implementation bug from Adobe side.
I've test it and get incorrect behavior as you say. I think InDesigns bug too...
Thanks for testing.
I will wait for couple of more days just in case someone else can solve this issue.
Afterwards I think it's needed to reach out to Adobe support.