You can already easily insert YouTube videos and Google Gadgets into your wiki using the Plugin menu (click Edit >> Insert plugin).

Now, we’ve made it easier to extend your wiki by inserting HTML and JavaScript into your wiki.

Use HTML/JavaScript to add outside widgets to your wiki

Custom HTML/JavaScript allows you (or your admins) to add interactive elements — also known as widgets — to your wiki pages.

Examples:

  • Forms you create from Wufoo
  • Slideshows from Flickr
  • Any other widget with embeddable code!

Included: Security options for administrators

Widgets can sometimes result in unexpected behavior, so we’ve included built-in security for this feature (learn more about PBwiki security).

If “Allow JavaScript and other potentially unsafe code” is checked, only wiki admins will be able to edit the plugin in the future.

When other wiki users edit the plugin, they will not see the checkbox. If potentially unsafe code is detected, a warning will be shown. Potentially unsafe code, such as JavaScript, is automatically removed from the plugin to help keep your wiki safe.

To use the HTML/JavaScript plugin

1. Go into edit mode on your wiki by clicking the “Edit” tab.
2. Click the “Insert Plugin” button
3. Choose “PBwiki Magic”
4. And then choose “HTML/JavaScript”
5. Type in your code
6. If you’re a wiki administrator and want to include JavaScript (”script”) or CSS (”style”), check “Allow JavaScript and other potentially unsafe code”
7. Click “Preview,” then “OK,” and now “Save” your wiki page.

And if you have any questions, please check out the PBwiki Manual on Custom HTML / Javascript.