On Mon, 29 Apr 2013, Gary Hodgson wrote:
> The recent upgrade to tiddlyweb 1.4.8 seems to have broken the tiddlyeditor
> plugin. I have had a go at fixing it, but I suspect my fix isn't optimal.
This was partially the addition of "friendlywiki" in tiddlywebwiki,
which upsets the addition of new route/uri mappings, such that
tidldywebwiki needs to be late in the system_plugins list.
The other half is the removal of the HtmlPresenter middleware which
tiddlyeditor presumably used to add the footer.
> My (hackish) solution was to split the plugin into it's two constituent
> parts, tiddlyeditor injects the "/tiddlyeditor" app, and a new plugin,
> called tiddlyeditor_footer and placed after the tiddlywebwiki entry, adds
> the footer to the serializer.
Does the tiddlyeditor_footer have to go after tiddlywebwiki? If it
does that would be because of tiddlywebplugins.atom (which adjusts
the html serialization and may be clobber changes).
> This works, but as I'm not yet up to speed on the inner workings I'm sure
> there is a better way. Can anyone enlighten me?
It sounds generally correct, but probably some tidying up in the
details.
> (The split is pretty obvious so I haven't included the code, but I can
> throw it into a gist if anyone needs it)
If you could throw it up in a gist I'll adapt it into a new release
of tiddlyeditor.
--
Chris Dent
http://burningchrome.com/
[...]