Adobe InDesign: SDK/Scripting Bugs and Features
4 results found
-
UXP, InDesign: WebView postMessage does not work in 20.4
Since version 20.4 of InDesign, sending messages to the WebView element no longer works. Here is a dummy plugin to reproduce the behavior.
https://kdrive.infomaniak.com/app/share/1606376/dbdbc8c1-10c3-4c9a-b4ce-d048fc2864fd
How to test?
Click on the “Send message” button.Expected behavior?
The message “Hello form panel!” appears in the Webview element (white background).In InDesign 20.3 it works, from 20.4 no longer.
Why is this important?
This affects the functionality of one of my published plugins.Code:
Plugin:
const sendMessageButtonElem = document.getElementById("send-message-button");
sendMessageButtonElem?.addEventListener("click", () => {
/* Send message to WebView */
const webviewElem = document.getElementById("webview") ;
webviewElem.postMessage({
"message": "Hello from panel!"
});
});
Webview:
/**…1 vote -
[ID-4265726]Error during shutdown UXP plugin (InDesign 20.4.1)
If you try to access indesign.app when shutting down a plugin, an error is thrown and causes InDesign to freeze. Specifically, in the lifecycle hook »hide« and »destroy«.
The error occurred with version 20.4.1
Exception: Error: Shutting down in progress, can't process! at Object.cleanup (/Users/<username>/Desktop/UXP-Panel-Dummy/pkg/panel/hide.js:26:24) at ./main.js:58:31 at new Promise (<anonymous>) at e.exports.hide (./main.js:57:16) at e.exports.destroyPanel (uxp://uxp-internal/pluginmanagerscripts.js:2:38052)
app: Application {conditionalTextPreferences: undefined}
docCount: <unreadable>this: Object
A dummy plugin can be downloaded here:
https://kdrive.infomaniak.com/app/share/1606376/3efc4813-cd2e-40a1-9844-193d31807628How to reproduce the error:
1: Load plugin in UDT
2. Unload plugin in UDTHere is a report from another user: https://forums.creativeclouddeveloper.com/t/indesign-20-4-1-issue-with-the-destroy-lifecycle-hook/11133
3 votesHi,
Thank you for reporting the issue. We have been able to reproduce the issue and it is currently under investigation.
—
Adobe InDesign Team
-
TypeScript Definitions for InDesign UXP
Do we have an ETA on when we should expect TypeScript Definition files for UXP in InDesign?
Currently both Photoshop and Premiere Pro have auto-generated types from their respective teams. This is really crucial for UXP adoption and reliable development.
Also posted in the forums: https://forums.creativeclouddeveloper.com/t/typescript-definitions-for-indesign-uxp/9098
4 votes -
BUG: Fix the multiple panel issues in the InDesign UXP plugin framework
Please fix the panel bug:
https://forums.creativeclouddeveloper.com/t/uxp-entrypoints-setup-loads-same-panel-always/80261 vote
- Don't see your idea?