DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:wysiwyg

WYSIWYG Plugin

Compatible with DokuWiki

2006-11-06

plugin A WYSIWYG editor

Provides
Syntax

Conflicts with: Monobook template - Editing box hides under left side logo in Monobook.

Version1.6.1 beta
Version 2 wysiwyg2.zip
Old Version wysiwyg.zip

What You See Is What You Get (WYSIWYG) editors run against the grain of DokuWiki markup. On the other hand, they are sometimes exactly what you need.

Use it

In the DokuWiki editor, use the following syntax: <wysiwyg name />

Regular DokuWiki markup....
<wysiwyg name />

More regular DokuWiki markup

<wysiwyg anothername /> 

and so forth. After saving this gives you something like:

Click on one of the edit buttons, and:

That's pretty much all there is to it. See below for admin details.

Administration

  1. You can override the “Create Page” behaviour for particular users by adding them to the 'wysiwyg' group. When they create a page now, they get an entire wysiwyg page.
  2. It's a good idea to disable section edit if you're using WYSIWYG. (Set “Maximum section edit level” to 0.)

Get it

Please download it here:

wysiwyg2.zip

Unzip it into the plugins directory (/lib/plugins).

Technical Notes

First load

The first time a browser loads a page with WYSIWYG in it is slow. FCKeditor is big. But it does get cached, so subsequent pages should be quick.

Compatibility

Tested with:

  • Firefox 2.0.0.7
  • IE7
  • IE6 (Uses old-style toolbar.)
  • Safari 3.0.3 (on pc)
  • Google Chrome 2.0
  • Opera 11.1

Storage

The editable portions are stored within the DokuWiki *.txt file, in /data/pages. The reason it is stored here rather than metadata is so that if (read: 'when') files get moved about and renamed, the data won't get destroyed.

The editable portions are hidden from the user when editing from within the DokuWiki editor.1

Testing

Please report all bugs to me at Luke Howson

Client side editor

The client side editor used is FCKeditor.

WYSIWYG boxes are searchable.

Locking

Locking works at page-level granularity.

Permissions

These work as expected.

Why doesn't WYSIWYG read and write DokuWiki syntax?

The design philosophy of this plugin is to separate the “expert” DokuWiki syntax from the “basic” WYSIWYG editor. Lots of third party plugins can be used recursively, or require complicated or low level concepts that cannot be easily represented in a WYSIWYG editor. Further, I don't think there is a general way to allow such an editor to use arbitrary plugins.

There are several drawbacks to this separation:

  • users are unlikely to learn DokuWiki syntax. There is no simple path from “basic” to “advanced” use.
  • a few things don't work as expected. (Search currently shows unrendered HTML in its output);
  • uninstall will be difficult.

Spanish Localisation

I just updated the translation file for Spanish speaking people here it is.

Discussion

Please use the discussion page for general discussion.

Using One of these plugins?

If you are, list your site here.

http://www.muvi.com/faq

plugin/wysiwyg.txt · Last modified: 2014/01/16 10:40 by hh lohmann