Ticket #343 (new defect)

Opened 16 months ago

TW21Saver.prototype.externalizeTiddler

Reported by: cawoodm Owned by:
Priority: undefined Milestone: unscheduled
Component: core Version: 2.2.00
Severity: undefined Keywords:
Cc:

Description

The latest build seems to move away from Tiddler.prototype.escapeLineBreaks to String.prototype.escapeLineBreaks which really screws any plugin trying to hijack the save process.

My ArchivePlugin? hijacked Tiddler.prototype.escapeLineBreaks and saved the tiddler text to a file leaving the resultant div empty. With String.prototype.escapeLineBreaks this is no longer possible (the tiddler title is unknown). My only option is to override the entire TW21Saver.prototype.externalizeTiddler which bloats the plugin and duplicates code.

!Methods vs. Properties Philosophy In general I think TW should be avoiding direct property references like tiddler.text and using tiddler.getText which is more easily hijacked.

Note: See TracTickets for help on using tickets.