Skip to content

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

removing the trailing red dot from the editor's content

Ilian6c1f9b48d077
diff --git a/data/ext/editorText/extension.js b/data/ext/editorText/extension.js
index cdbe6cc20..ff8d3c4e5 100644
--- a/data/ext/editorText/extension.js
+++ b/data/ext/editorText/extension.js
@@ -74,6 +74,10 @@ define(function(require, exports, module) {
exports.setContent = function(content) {
// console.log("Content: "+content);
+ var UTF8_BOM = "\ufeff";
+ if(content.indexOf(UTF8_BOM) == 0) {
+ content = content.substring(1, content.length);
+ }
cmEditor.setValue(content);
};