Quantcast
Viewing latest article 21
Browse Latest Browse All 426

Wysiwyg Boxout

A Wysiwyg plugin that allows editors to add a block of text to the main body text.

When you click on the Wysiwyg button, a popup will be displayed and you can insert a Header and a Body. Click Insert and it will add a div that will format and display the box as you can see on the snapshot attached.

See live example here: http://www.itpro.co.uk/644176/dell-struggles-as-q3-profits-drop-by-47-pe...

Requirements

  • Wysiwyg module
  • Wysiwyg editor i.e. TinyMCE

Installation

Copy the module directory in to your Drupal: /sites/all/modules directory as usual.
Enable the Wysiwyg boxout module

Download a Wysiwyg editor, for example TinyMCE (http://cloud.github.com/downloads/tinymce/tinymce/tinymce_3.4.9.zip) and put into the libraries folder, it will look like this:
Image: TinyMCE folder structure

Configuration

Go to Configuration > Content Authoring > Wysiwyg profiles (/admin/config/content/wysiwyg)

  1. Choose TinyMCE as editor for each Text format and click Save
    Image: Wysiwyg profiles
  2. Edit each Text format, enable Boxout under SHOWBUTTONS AND PLUGINS
  3. Image: TinyMCE profile for Filtered HTML

Go to Configuration > Content Authoring > Text formats (/admin/config/content/formats).
if Limit allowed HTML tags option is enabled, add <div> to Allowed HTML tags configuration.
Image: Filter Settings

Using it

  • Create a new article (/node/add/article)
  • Insert some content
  • Click on the place you want to add Boxout
  • Click on the Boxout button
  • Type a Header and Body and click Insert. see Image: Inserting a boxout
  • Save the Article

It should look like this
Image: Testing Boxout

AttachmentSize
TinyMCE folder structure36.32 KB
Wysiwyg profiles63.51 KB
TinyMCE profile for Filtered HTML50.65 KB
Filter settings86.73 KB
Inserting a boxout128.79 KB
Testing Boxout153.13 KB

Viewing latest article 21
Browse Latest Browse All 426

Trending Articles