I tried to get it to work, but I seem to fail.

This is a minimal widget I wrote for testing:

/*\
title: $:/plugins/skeeve/jscolor.js
type: application/javascript
module-type: widget
\*/
(function(){

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

var EditTextWidget = 
require("$:/core/modules/widgets/edit-text.js")["edit-text"];

console.log("jscolor.js invoked");

EditTextWidget.prototype.postRender = function() {
    console.log("EditTextWidget PostRender Called");
};

console.log("Leaving jscolor.js");

})();

I see the "jscolor.js invoked" and the "Leaving jscolor.js" messages in the 
console, but I'd expect the "EditTextWidget PostRender Called" for every 
field editor to appear, but nothing happens.

Does someone spot any mistake I made?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to