Add test editors
This commit is contained in:
parent
ca4f5cb820
commit
82e05fb859
|
@ -838,9 +838,24 @@
|
||||||
return extensionParams["url"] + "apps/";
|
return extensionParams["url"] + "apps/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function getTestPath() {
|
||||||
|
var scripts = document.getElementsByTagName('script'),
|
||||||
|
match;
|
||||||
|
|
||||||
|
for (var i = scripts.length - 1; i >= 0; i--) {
|
||||||
|
match = scripts[i].src.match(/(.*)apps\/api\/documents\/api.js/i);
|
||||||
|
if (match) {
|
||||||
|
return match[1] + "test/apps/";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
function getAppPath(config) {
|
function getAppPath(config) {
|
||||||
var extensionPath = getExtensionPath(),
|
var extensionPath = getExtensionPath(),
|
||||||
path = extensionPath ? extensionPath : getBasePath(),
|
path = extensionPath ? extensionPath : (config.type=="test" ? getTestPath() : getBasePath()),
|
||||||
appMap = {
|
appMap = {
|
||||||
'text': 'documenteditor',
|
'text': 'documenteditor',
|
||||||
'text-pdf': 'documenteditor',
|
'text-pdf': 'documenteditor',
|
||||||
|
|
8
test/apps/documenteditor/main/index.html
Normal file
8
test/apps/documenteditor/main/index.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
8
test/apps/presentationeditor/main/index.html
Normal file
8
test/apps/presentationeditor/main/index.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
8
test/apps/spreadsheeteditor/main/index.html
Normal file
8
test/apps/spreadsheeteditor/main/index.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue