mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 10:37:20 +00:00
24 lines
444 B
JavaScript
24 lines
444 B
JavaScript
/*\
|
|
title: $:/plugins/tiddlywiki/text-slicer/modules/slicers/text.js
|
|
type: application/javascript
|
|
module-type: slicer
|
|
|
|
Handle slicing text nodes
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
exports.processTextNode = function(domNode,tagName) {
|
|
if(domNode.nodeType === 3) {
|
|
this.appendToCurrentContainer($tw.utils.htmlEncode(domNode.textContent));
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
|
|
})();
|