Pardon my low javascript-fu. I was scraping up a editor toolbar button to 
search and replace strings in that particular tiddler. I got till

/*\
title: $:/core/modules/editor/operations/text/findandreplace.js
type: application/javascript
module-type: texteditoroperation

Text editor operation to find and replace from the entire text

\*/
(function(){

/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";

exports["replace-search"] = function(event,operation) {
        operation.cutStart = 0;
        operation.cutEnd = operation.text.length;
        operation.replacement = 
operation.text.replace(event.paramObject.search, event.paramObject.replace);
};

})();



which lets me achieve it, but only one instance at a time. My attempts to use 
global and ignore-case at event.paramObject.search as well as the actual search 
string has so far ended up in failure.

I guess it will be a 10 second task for anyone with slightly more than beginner 
js knowledge. 


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a9f9db48-ea2f-4713-9b5c-70481eba3329%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to