For anyone else who battled trying to hijack this type of function here is
the solution:
config.formatterHelpers.enclosedTextHelper_old =
config.formatterHelpers.enclosedTextHelper;
config.formatterHelpers.enclosedTextHelper = function(w) {
config.formatterHelpers.enclosedTextHelper_old.call(this, w);
prettyPrint();
}
Thie "magic" seems to be this .call(this, w) but I can't explain what
exactly is going on here.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/HuE2HoTw2pUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.