Textpattern Forum

You are not logged in. Register | Login | Help

#21 2011-02-24 16:25:42

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,196
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

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 put 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" => "+"
					)

Last edited by MattD (2011-02-24 16:28:12)


My Plugins

Piwik Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#22 2011-02-24 17:25:06

Depot 1
Member
From: Copenhagen
Registered: 2011-01-03
Posts: 22
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

Thanks Matt,
it works perfectly!

Offline

#23 2011-02-24 17:59:14

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,196
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo


My Plugins

Piwik Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB