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.
Custom HTML/JavaScript allows you (or your admins) to add interactive elements — also known as widgets — to your wiki pages.
Examples:
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.
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.
3 Responses for "New feature: Extend your wiki with embeddable HTML / JavaScript"
Looks like the New Features category is getting a bit neglected.
I spy quite a few posts about new features in the last couple of months that didn’t make it into that category. That’s especially important because the “new features” email that was sent out today links to the category page, in which the most recent post is from Sept.
Oh, yippie-ki-YAY! This is great… thanks for bringing back this functionality! I’ve missed it.
Greetings, Ramit! Thank you for sharing these enhancements to PBwiki. I appreciate your efforts and contributions! Cordially — David
Leave a reply