Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Changes in the meta data for the viewer und editor extensions

uggrock942934ea6b95
diff --git a/data/ext/editorHTML/extension.js b/data/ext/editorHTML/extension.js
index fe8314d3a..82fefa4c4 100644
--- a/data/ext/editorHTML/extension.js
+++ b/data/ext/editorHTML/extension.js
@@ -1,14 +1,10 @@
define(function(require, exports, module) {
"use strict";
-exports.config = {
- "id": "editorHTML", // ID should be equal to the directory name where the ext. is located
- "title": "HTML Editor",
- "type": "editor", // viewer, ts for tagspace
- "supportedFileTypes": [
- "htm", "html", "*"
- ]
-}
+exports.id = "editorHTML"; // ID should be equal to the directory name where the ext. is located
+exports.title = "HTML Editor";
+exports.type = "editor";
+exports.supportedFileTypes = [ "htm", "html" ];
var htmlEditor = undefined;
var extensionDirectory = TSSETTINGS.getExtensionPath()+UIAPI.getDirSeparator()+exports.config["id"];
diff --git a/data/ext/editorText/extension.js b/data/ext/editorText/extension.js
index 3f9881056..ce5f21684 100644
--- a/data/ext/editorText/extension.js
+++ b/data/ext/editorText/extension.js
@@ -1,11 +1,10 @@
define(function(require, exports, module) {
"use strict";
-exports.config = {
- "id": "editorText", // ID should be equal to the directory name where the ext. is located
- "title": "Text Editor",
- "type": "editor", // viewer, ts for tagspace
- "supportedFileTypes": [
+exports.id = "editorText"; // ID should be equal to the directory name where the ext. is located
+exports.title = "Text Editor";
+exports.type = "editor";
+exports.supportedFileTypes = [
"h", "c", "clj", "coffee", "coldfusion", "cpp",
"cs", "css", "groovy", "haxe", "htm", "html",
"java", "js", "jsm", "json", "latex", "less",
@@ -13,8 +12,7 @@ exports.config = {
"mdwn", "mkd", "ml", "mli", "pl", "php",
"powershell", "py", "rb", "scad", "scala",
"scss", "sh", "sql", "svg", "textile", "txt", "xml"
- ]
-}
+ ] ;
var aceEditor = undefined;
var extensionDirectory = TSSETTINGS.getExtensionPath()+UIAPI.getDirSeparator()+exports.config["id"];
diff --git a/data/ext/viewerImage/extension.js b/data/ext/viewerImage/extension.js
index 82712afb4..0d14c6cd8 100644
--- a/data/ext/viewerImage/extension.js
+++ b/data/ext/viewerImage/extension.js
@@ -1,18 +1,10 @@
define(function(require, exports, module) {
"use strict";
-exports.config = {
- "id": "viewerImage", // ID should be equal to the directory name where the ext. is located
- "title": "Image Viewer",
- "type": "viewer", // editor, viewer, ts for tagspace
- "supportedFileTypes": [
- "jpeg",
- "jpg",
- "png",
- "gif",
- "bmp",
- ],
-}
+exports.id = "viewerImage"; // ID should be equal to the directory name where the ext. is located
+exports.title = "Image Viewer";
+exports.type = "viewer";
+exports.supportedFileTypes = [ "jpeg", "jpg", "png", "gif", "bmp" ];
var extensionDirectory = TSSETTINGS.getExtensionPath()+UIAPI.getDirSeparator()+exports.config["id"];
diff --git a/data/ext/viewerMD/extension.js b/data/ext/viewerMD/extension.js
index cc1d03966..ecb4b5030 100644
--- a/data/ext/viewerMD/extension.js
+++ b/data/ext/viewerMD/extension.js
@@ -1,14 +1,10 @@
define(function(require, exports, module) {
"use strict";
-exports.config = {
- "id": "viewerMD", // ID should be equal to the directory name where the extension is located
- "title": "MD Viewer",
- "type": "editor", // viewer, ts for tagspace
- "supportedFileTypes": [
- "md", "markdown"
- ]
-}
+exports.id = "viewerMD"; // ID should be equal to the directory name where the ext. is located
+exports.title = "MD Viewer";
+exports.type = "editor";
+exports.supportedFileTypes = [ "md", "markdown", "mdown" ];
var md2htmlConverter = undefined;
var containerElID = undefined;