Status: working-for-us, for Fowiki 1.x (not required for Foswiki 2.x)
For some, including me, Foswiki’s native search plugin (http://foswiki.org/Extensions/NativeSearchContrib) does not work (http://foswiki.org/Tasks/Item9090). I’ve hacked a version that works for me. It would need testing on all possible platforms so that it could go into Foswiki’s codebase. Unfortunately I am unable to do that anytime soon (if at all). So here’s my version (that works in Linux) in case anyone finds it useful.
Status: proof-of-concept, abandoned
An attempt at replacing the standard textarea editor with a CodeMirror editor (http://codemirror.net). It works mostly fine for me at the moment. It would needs some cleanup, documentation, and probably more, before it could be contributed. Again, not something I will be able to do anytime soon.
SKIN = codemirror,pattern in the System/SitePreferences topic) that adds the necessary %CODEMIRROR% command to the «edit» template. A very simple and incomplete TML syntax highlighting plugin for CodeMirror is included, too.
Anyway, here’s a version in case you want to play with it:
Note: this download contains a copy of the original CodeMirror 3.02 source (license etc. included).
Bugs I’ve seen so far (I use it only as a raw edit replacement):
- would sometimes not commit (POST) the changed data, also going back in the browser does not bring back the edited text (unlike a native textarea). Possibly needs a save button that disables the codemirror and updates the textarea before POSTing the data (though, codemirror is supposed to keep the textarea contents up-to-date automatically).
- the toolbar shifts the editor lines so that the last line will be underneath the horizontal scroll bar. Fixable in CSS?
- remember cursor and scroll position when reopening the same codemirror thingy later (cookies? session?)
- enhance syntax highlighting
TIFU Prevention “Plugin”
This “plugin” (actually it’s just a skin and some Java Script) will prevent an accidental close of of the browser window or tab while editing a topic. It will be active only if the NatEditPlugin is enabled. It will also work with the WYSIWYG editor (I think).
It uses the browser
onbeforeunload event. This may or may not work in all browsers. It works fine in Mozzarella Firlefanz. YMMV.
See https://foswiki.org/Extensions/PhotoGalleryPlugin for details.