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:
@@ -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,"");
|
||||
|
||||
Reference in New Issue
Block a user