Click the boxes below to edit contents:

Multiple whizzywigs

This demonstrates whizzywig editing multiple areas

Three areas on this page can be edited with a pop-up whizzywig editor.

None of them are textareas: they could be, but they look nicer like this

or...

How this works

You need whizzywig.js, version 53 or later and
whizzywig.htm on your server. ←Follow that link and
File > Save as... to get a copy.

You may need to edit it to get the path to whizzywig.js right and to play with the settings in the //CONFIGURE section

 RRRIBBIT!

Right click and View Source on this page to see what you need in your html pages.

The function popwhizz(id) on this page pops up a whizzywig editor (user can resize it), prefilled with the content of the DIV you specify with the id parameter. The id parameter is the id of the DIV.

When the user clicks Update the pop-up closes and it updates the DIV.

It does not have to be a DIV: it can be any element that can contain other block level elements, e.g. TD.

This demo shows 2 different ways of invoking the editor:

  1. click the text, or
  2. a button

- but you could use other events.

You need some kind of function to copy the edited DIVS into hidden form fields on submit. The one on this page is just an example.