TagSpaces is an offline, open source, document manager with tagging support
allow opening html documents without body tag
uggrockb4665b1ab96b
diff --git a/data/ext/editorHTML/extension.js b/data/ext/editorHTML/extension.jsindex 8ef45de4f..b3279390e 100644--- a/data/ext/editorHTML/extension.js+++ b/data/ext/editorHTML/extension.js@@ -75,9 +75,10 @@ define(function(require, exports, module) {try {bodyContent = content.match(bodyRegex)[1];} catch (e) {- console.log("Error parsing HTML document. " + e);- TSCORE.FileOpener.closeFile(true);- TSCORE.showAlertDialog("Probably a body tag was not found in the document. Document will be closed.", "Error parsing HTML document");+ console.log("Error parsing the body of the HTML document. " + e);+ bodyContent = content;+// TSCORE.FileOpener.closeFile(true);+// TSCORE.showAlertDialog("Probably a body tag was not found in the document. Document will be closed.", "Error parsing HTML document");}// var titleRegex = /\<title[^>]*\>([^]*)\<\/title/m;