TagSpaces is an offline, open source, document manager with tagging support
jshinting
Ilianf9805d2358e3
diff --git a/data/ext/editorODF/extension.js b/data/ext/editorODF/extension.jsindex 0fe570c0d..aad51cd2c 100644--- a/data/ext/editorODF/extension.js+++ b/data/ext/editorODF/extension.js@@ -5,19 +5,19 @@define(function(require, exports, module) {"use strict";- console.log("Loading editorODF");-- exports.id = "editorODF"; // ID should be equal to the directory name where the ext. is located- exports.title = "ODF Viewer/Editor";- exports.type = "editor";- exports.supportedFileTypes = [ "odt", "ods" ];-- var TSCORE = require("tscore");-- var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+exports.id;-- exports.init = function(filePath, elementID) {- console.log("Initalization ODF Viewer/Editor...");+ console.log("Loading editorODF");++ exports.id = "editorODF"; // ID should be equal to the directory name where the ext. is located+ exports.title = "ODF Viewer/Editor";+ exports.type = "editor";+ exports.supportedFileTypes = [ "odt", "ods" ];++ var TSCORE = require("tscore");++ var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+exports.id;++ exports.init = function(filePath, elementID) {+ console.log("Initalization ODF Viewer/Editor...");//filePath = "file:///"+filePath;//filePath = "http://www.webodf.org/demo/editor/welcome.odt";var extPath = extensionDirectory+"/index.html";@@ -25,26 +25,25 @@ define(function(require, exports, module) {id: "iframeViewer",src: extPath+"?cp="+filePath,"nwdisable": "",- "nwfaketop": "",+ "nwfaketop": ""}));-/*- require([extensionDirectory+'/webodf/webodf.js'], function() {++ /*require([extensionDirectory+'/webodf/webodf.js'], function() {var odfelement = document.getElementById(elementID),odfcanvas = new odf.OdfCanvas(odfelement);- odfcanvas.load(filePath);- });*/- };-- exports.viewerMode = function(isViewerMode) {- console.log("viewerMode not supported on this extension");- }-- exports.setContent = function(content) {- console.log("setContent not supported on this extension");- }-- exports.getContent = function() {- console.log("getContent not supported on this extension");- }+ odfcanvas.load(filePath);+ });*/+ };++ exports.viewerMode = function() {+ console.log("viewerMode not supported on this extension");+ };++ exports.setContent = function() {+ console.log("setContent not supported on this extension");+ };++ exports.getContent = function() {+ console.log("getContent not supported on this extension"); };});\ No newline at end of file