1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-06-04 11:42:19 +00:00

Text-slicer: Tweaks to fix recently introduced bugs!

* Fixes problem with slicing wikitext tiddlers
* Adjusts position of heading expand/collapse icons in the view
template segment
This commit is contained in:
Jermolene
2015-09-22 12:57:53 +02:00
parent 90e0b6f555
commit 57c40a8a56
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -26,6 +26,12 @@ var TW_TextNode = function(text) {
this.textContent = text;
};
Object.defineProperty(TW_TextNode.prototype, "nodeType", {
get: function() {
return 3;
}
});
Object.defineProperty(TW_TextNode.prototype, "formattedTextContent", {
get: function() {
return this.textContent.replace(/(\r?\n)/g,"");