[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/scripts/ -> toolbar.js (summary)

(no description)

File Size: 282 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  initToolbar()
  tb_format()
  tb_formatln()
  tb_insert()
  tb_mediapopup()
  tb_autohead()
  addBtnActionPicker()
  addBtnActionLinkwiz()
  pickerToggle()
  pickerClose()
  fixtxt()

Functions
Functions that are not part of a class:

initToolbar(tbid,edid,tb, allowblock)   X-Ref
Create a toolbar

author: Andreas Gohr <andi@splitbrain.org>
param: string tbid       ID of the element where to insert the toolbar
param: string edid       ID of the editor textarea
param: array  tb         Associative array defining the buttons
param: bool   allowblock Allow buttons creating multiline content

tb_format(btn, props, edid)   X-Ref
Button action for format buttons

author: Gabriel Birke <birke@d-scribe.de>
author: Andreas Gohr <andi@splitbrain.org>
param: DOMElement btn   Button element to add the action to
param: array      props Associative array of button properties
param: string     edid  ID of the editor textarea

tb_formatln(btn, props, edid)   X-Ref
Button action for format buttons

This works exactly as tb_format() except that, if multiple lines
are selected, each line will be formatted seperately

author: Gabriel Birke <birke@d-scribe.de>
author: Andreas Gohr <andi@splitbrain.org>
param: DOMElement btn   Button element to add the action to
param: array      props Associative array of button properties
param: string     edid  ID of the editor textarea

tb_insert(btn, props, edid)   X-Ref
Button action for insert buttons

author: Gabriel Birke <birke@d-scribe.de>
author: Andreas Gohr <andi@splitbrain.org>
param: DOMElement btn   Button element to add the action to
param: array      props Associative array of button properties
param: string     edid  ID of the editor textarea

tb_mediapopup(btn, props, edid)   X-Ref
Button action for the media popup

author: Andreas Gohr <andi@splitbrain.org>
param: DOMElement btn   Button element to add the action to
param: array      props Associative array of button properties
param: string     edid  ID of the editor textarea

tb_autohead(btn, props, edid)   X-Ref
Button action for automatic headlines

Insert a new headline based on the current section level

author: Andreas Gohr <andi@splitbrain.org>
param: DOMElement btn   Button element to add the action to
param: array      props Associative array of button properties
param: string     edid  ID of the editor textarea

addBtnActionPicker($btn, props, edid)   X-Ref
Add button action for picker buttons and create picker element

author: Gabriel Birke <birke@d-scribe.de>
return: boolean    If button should be appended
param: jQuery      btn   Button element to add the action to
param: array      props Associative array of button properties
param: string     edid  ID of the editor textarea

addBtnActionLinkwiz($btn, props, edid)   X-Ref
No description

pickerToggle(pickerid,$btn)   X-Ref
Show/Hide a previously created picker window

author: Andreas Gohr <andi@splitbrain.org>

pickerClose()   X-Ref
Close all open pickers

author: Andreas Gohr <andi@splitbrain.org>

fixtxt(str)   X-Ref
Replaces \n with linebreaks