Skip to main content
Participant
Jun 6, 2019 8:48 AM UTC
Question

CEP panels persisted state

I am trying to enable persisted state in the latest version of photoshop with the following code:

var csInterface = new CSInterface();
var event = new CSEvent();

event.type = "com.adobe.PhotoshopPersistent";

event.scope = "APPLICATION";

event.appId = csInterface.getApplicationID();

event.extensionId = csInterface.getExtensionID();  

csInterface.dispatchEvent(event);

either I don't know what to expect from this code or it doesn't work. I try to keep the state of an input field that gets populated from jsx, but no state whatsoever gets to be persisted. I am using VueJs and Vuex to build my app.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Community Expert
Jun 6, 2019 9:58 AM UTC

Can you confirm that the Photoshop version you are using is in accordance to what is mentioned in the documentation at the following URL

CEP-Resources/CEP 9.0 HTML Extension Cookbook.md at master · Adobe-CEP/CEP-Resources · GitHub

-Manan

Translate
-Manan
Participant
Jun 6, 2019 10:51 AM UTC

yes. I have version 20.0.4

Translate