Wysiwyg embedded editor

Note: superceded by TracWysiwygPlugin.

Description

Wysiwyg editor embedded into trac that emits wiki syntax. see also t:#1682.

Demonstration Version, things missing

The following is missing in this demonstration version:

  • "save", problem is the form_token from the original edit
    <form id="edit" action="/wikiwyg/wiki/WikiStart" method="post"><div><input type="hidden" name="__FORM_TOKEN" value="1d57afadf8b49edc865c4ea8" />
    
  • "wikiwyg.css" does not get loaded. somehow we did not understand 0.11 :)
  • "Trac.js" has a method for converting HTML to trac wiki text: does not get applied, but the standard wikiwyg transformation happens.

Bugs/Feature Requests

Existing bugs and feature requests for WikiWygPlugin are here.

If you have any issues, create a new ticket.

Download, Install, Configure

Install with

easy_install http://trac-hacks.org/svn/wikiwygplugin/0.11

Enable it in "Admin", or in trac.ini with:

[components]
wikiwyg.wikiwyg.tracwikiwygmodule = enabled

Source

Download the zipped source from here, or check out WikiWygPlugin from here using Subversion, or browse the source with Trac.

Recent Changes

[2059] by ErikRose on 02/28/07 06:03:22

WikiWygPlugin:

  • We now wikiwyg-ify wiki pages on page load. To edit, don't click Edit this page; double-click a wiki page's body text. Saving etc. aren't implemented yet.
  • Trac.js is a template now, as it needs the base URL of the environment subbed into it.
  • Implemented IRequestHandler to serve the new Trac.js template.
  • Included Util.js on every page. addEvent() is in there, and we need it for registering the onload handler.

[2053] by ErikRose on 02/27/07 23:01:28

WikiWygPlugin:

Fixed a bug where none of our static resources could be got.

[2052] by ErikRose on 02/27/07 22:24:47

WikiWygPlugin:

setup.py and deletes:

  • Deleted dead and useless templates. Their functionality is covered, between Trac.js and our IRequestFilter.

wikiwyg.py:

  • Removed superfluous parentheses.
  • Gave the wikiwyg library includer the potential to only include them where necessary.

[2051] by ErikRose on 02/27/07 21:30:57

WikiWygPlugin:

setup.py:

  • Added *.htc to package_data, because we have one of those.

wikiwyg.py:

  • Now loads the Wikiwyg JS libs on every page Trac serves.
  • Replaced the deprecated add_javascript() with add_script().
  • Quit implementing INavigationController. I think TraciWyg? was doing that just to publish a test page at /wikiwyg.
  • Emptied get_templates_dirs(), because we don't have any templates anymore, because we're not doing that test page.
  • Other more minor changes

ClientServer?.js:

  • Added this as an example of how to do async wiki saving. It's verbatim from the Wikiwyg demo.

Author/Contributors

Original code: ThurnerRupert
Author: fwierzbicki and ErikRose
Contributors: