Skip to content

Commit

Permalink
Adding CEP_11 folder and updating readme (#362)
Browse files Browse the repository at this point in the history
Co-authored-by: shusharm <shusharm@adobe.com>
  • Loading branch information
shubham-adobe and shusharm authored May 31, 2021
1 parent 2239c56 commit 24c0004
Show file tree
Hide file tree
Showing 329 changed files with 97,996 additions and 4 deletions.
699 changes: 699 additions & 0 deletions CEP_11.x/CEPEngine_extensions.js

Large diffs are not rendered by default.

1,291 changes: 1,291 additions & 0 deletions CEP_11.x/CSInterface.js

Large diffs are not rendered by default.

3,007 changes: 3,007 additions & 0 deletions CEP_11.x/Documentation/CEP 11.1 HTML Extension Cookbook.md

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions CEP_11.x/Documentation/Issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
CEP 11 Known Issues & FAQ
====================

### Following are the known issues in CEP 10.0 and above. Please keep these in mind while creating your own extension...

## Issue 1 :
Drag events not fired while debugging an extension.

Workaround: Deactivate the screencast by selecting the "Toggle device Toolbar" in the chrome inspect window.
Once done, Drag operation can be performed even while debugging the extension.
![Toggle device Toolbar](./images/issues/dragDebug.png)

## Issues existing in CEP 9 and above

### Issue 1:
In Windows, the API cep.fs.stat() is not able to access file of size greater than 4GB


---

## FAQ

* **Refer the migration Guidelines for [CEP 10 to CEP 11](./CEP%2011.1%20HTML%20Extension%20Cookbook.md#migration-from-cep-10-to-cep-11)**

* **If similar error is seen in debug console, confirm\verfiy the following**

![require not function](./images/issues/requireNotFunction.png)

* Confirm CEPEngine_extensions.js is NOT integrated in your extension

* Node could be crashing. Please update node_modules with CEP 10 supported [node version](./CEP%2011.1%20HTML%20Extension%20Cookbook.md#chromium-embedded-framework-cef).




Binary file added CEP_11.x/Documentation/images/Issue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CEP_11.x/Documentation/images/correct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CEP_11.x/Documentation/images/cross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CEP_11.x/Documentation/images/dom_comm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions CEP_11.x/Documentation/images/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Folder containing images used in documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ExtensionManifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ExtensionBundleId="com.adobe.cephtmltest.invisible" ExtensionBundleVersion="1.0" Version="6.0"> <!-- MAJOR-VERSION-UPDATE-MARKER -->
<ExtensionList>
<Extension Id="com.adobe.CEPHTMLTEST.invisible" Version="6.1.0"/>
</ExtensionList>
<ExecutionEnvironment>
<HostList>
<Host Name="DRWV" Version="15.0"/>
<Host Name="FLPR" Version="15.0"/>
<Host Name="IDSN" Version="11.0"/>
<Host Name="AICY" Version="11.0"/>
<Host Name="ILST" Version="[15.0,99.9]"/>
<Host Name="PHSP" Version="16.0"/>
<Host Name="PHXS" Version="[16.0,99.9]"/>
<Host Name="PPRO" Version="9.0"/>
<Host Name="PRLD" Version="4.0"/>
<Host Name="AEFT" Version="13.0"/>
<Host Name="DEMO" Version="1.0"/>
<Host Name="AUDT" Version="8.0"/>
<Host Name="LTRM" Version="7.0"/>
<Host Name="MUSE" Version="2015"/>
</HostList>
<LocaleList>
<Locale Code="All"/>
</LocaleList>
<RequiredRuntimeList>
<RequiredRuntime Name="CSXS" Version="6.0"/> <!-- MAJOR-VERSION-UPDATE-MARKER -->
</RequiredRuntimeList>
</ExecutionEnvironment>
<DispatchInfoList>
<Extension Id="com.adobe.CEPHTMLTEST.invisible">
<DispatchInfo>
<Resources>
<MainPath>./html/index.html</MainPath>
<CEFCommandLine>
<Parameter>--enable-nodejs</Parameter>
</CEFCommandLine>
</Resources>
<Lifecycle>
<AutoVisible>false</AutoVisible>
<StartOn>
<!-- PS dispatches this event on startup -->
<Event>applicationActivate</Event>
<!-- PPro dispatches this event on startup -->
<Event>com.adobe.csxs.events.ApplicationActivate</Event>
</StartOn>
</Lifecycle>
<UI>
<Type>Custom</Type>
<Geometry>
<Size>
<Height>100</Height>
<Width>100</Width>
</Size>
</Geometry>
</UI>
</DispatchInfo>
</Extension>
</DispatchInfoList>
</ExtensionManifest>
93 changes: 93 additions & 0 deletions CEP_11.x/Samples/CEP_HTML_Invisible_Extension-10.0/html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
/*************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2013, Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/
-->
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<script src="../js/CSInterface.js"></script>

<script>

var httpServer;

window.onload = function()
{
var csLib = new CSInterface();
var hostEnv = csLib.getHostEnvironment();
var appVersion = hostEnv.appVersion;
var appId = hostEnv.appId;

var port = 8000;
switch (appId)
{
case 'PHXS':
case 'PHSP':
port = 8000;
break;

case 'PPRO':
port = 8001;
break;

case 'PRLD':
port = 8002;
break;

case 'IDSN':
port = 8003;
break;

case 'AICY':
port = 8004;
break;

case 'FLPR':
port = 8005;
break;

case 'ILST':
port = 8012;
break;

default:
break;
}

var http = cep_node.require('http');
httpServer = http.createServer(function (req, res)
{
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Greetings from ' + appId + ' ' + appVersion);
}).listen(port, '127.0.0.1');
};

window.onunload = function()
{
httpServer.close();
}

</script>
</head>

<body>
</body>

</html>
Loading

0 comments on commit 24c0004

Please sign in to comment.