Repository navigation
#WonderBar
The #WonderBar is a simple set of buttons that insert various bits of HTML into a textarea. Currently it supports standard HTML tags and all core Bootstrap 3 elements.
In #OnePageWonder, it resides in between the title field and content area of the row editor. As it migrates to be fully stand-alone, it will reside anywhere you like.
The #WonderBar, when used in #OnePageWonder, presents it's default state as a handful of buttons nicely labeled if you rollover them. Most of them take you to a sub-menu.
The sub-menu buttons insert chunks of HTML code where your cursor is at, or at the end of the existing content. There is also a handy back button in each sub-menu.
Clicking the envelope icon (second from last) inserts the #OnePageWonder contact form, staying on the main menu.
Clicking the ? icon pops up a handy help modal.
When you insert code using the #WonderBar, they are obviously just templates. You don't typically need to change their structure. However, you will need to enter the heading content, or image URL, etc.
Look for XXX, YYY, or ZZZ in the inserted code. Any place you see those are considered must edit areas.
Pretty standard fare here. THere is a menu for headings, text styling (bold, strikeout, etc), and lists.
There is also a media menu which input audio, code, image and video tags. Pretty easy to decipher, but the video button is worth mentioning.
This button puts in two versions of YouTube embed code, one for 4:3 and one for 16:9. Remove whichever block you do not intend to use, and simply paste the YouTube video link in place of the XXX. No need to change anything else unless you really want to.
These actually work! Carousels, wells, and other things are pretty easy. Buttons and such though, will require you to add some custom events in your actual Meteor app.
Check out the #OnePageWonder scaffold for a general idea of how you might do that.
I really want #OnePageWonder, and thereby the #WonderBar to have a simple toggle to change modes. #WonderBar will soon be a stand-alone product that you can configure to use Polymer or Materialize modes, probably much sooner than OPW does. :)