Академический Документы
Профессиональный Документы
Культура Документы
• Get and Set the title of extension windows (CEP 6.1 introduces two APIs to set and get
the title of extension windows. Those functions work with modal and modeless
extensions in all Adobe products, and panel extensions in Owl apps.)
CSInterface.prototype.setWindowTitle = function(title)
{
window.__adobe_cep__.invokeSync("setWindowTitle", title);
};
CSInterface.prototype.getWindowTitle = function()
{
return window.__adobe_cep__.invokeSync("getWindowTitle", "");
};
When you receive the event, event.data is an object with several attributes
such as “myBoolKey” and “myIntKey”. But the value of those attribute
are all strings. For example, the value of “myBoolKey” is “false” rather
than false; the value of “myIntKey” is “7” rather than 7. If the value of an
attribute is an array or JSON string, they are all treated as a regular string.
Besides, CEP does not support non-ASCII characters in CEP events,
especially on Windows platform. So, the result is:
• Support the new "mixed context" mode for HTML extensions using node.js.
o The "mixed context" mode is disabled by default. Unlike the default "separate
context" mode where a "required" node module is in a separate JavaScript
context, a "required" node module and the JavaScript code that "requires" it are in
the same context in the new "mixed context" mode, eliminating all the
inconveniences in the old "separate context" mode.
o To enabled it, add command line parameter "--mixed-context" to your extension
manifest.
<Parameter>--mixed-context</Parameter>