24
Feb

msd_minibar: Office Like Textile Minibar

In the tradition of turning nifty jQuery scripts into Textpattern plugins here is another plugin based on an idea from the forums.

msd_minibar screenshot

Features

Adds a Microsoft Office style “minibar” to the Write tab based on an article by JANKO.

Download msd_minibar zip (276 downloads so far)

Setup

Out of the box it supports *strong*, __italic__ and h1. heading. You can add additional options by editing the “Add More Buttons” Block at the beginning of the plugin code.

#Add more! Button Name		array( "tag" => "button",
#	   Inserted before		"start" => "before",
#	   Inserted after		"end" => "after"
#					)			

For +inserted text+ you’d add to $msd_menu_items like this:

$msd_menu_items =  array(	array( "tag" => "b",
					"start" => "*",
					"end" => "*"
					),
				array( "tag" => "i",
					"start" => "_",
					"end" => "_"
					),
				array( "tag" => "h1",
					"start" => "h1. ",
					"end" => ""
					),
				array( "tag" => "u",
					"start" => "+",
					"end" => "+"
					)

Credits

jump to the comment form ↓

  • psychoMUELL
    Mar 12, 06:41 AM

    Thank You! I like it!

  • Julián Landerreche
    Mar 23, 11:05 AM

    Hi Matt. I’m having troubles installing both the normal and compressed versions of this plugin. The usual “badly formed or empty plugin code” for both versions. I’ve tried with other plugins created by you, and I’ve the same issue. I may be wrong, but the code I get when clicking on the links looks a bit weird, compared to toher base64 encoded plugins. Looks a bit… mangled…

  • Matt Davis
    Mar 23, 01:55 PM

    This was caused by the pat_speeder plugin I had enabled. This plugin is supposed to remove white space from your site’s source to minimize the download time. Unfortunately, it looks like it breaks plugin downloads. Bummer.

    Disabling it has fixed the issue you experienced. Thanks for letting me know!

Share your thoughts, leave a comment!

(get your own gravatar)