[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

Functions for text editing (toolbar stuff)

Author: Andreas Gohr
File Size: 268 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  createToolButton()
  createPicker()
  pickerInsert()
  addBtnActionSignature()
  currentHeadlineLevel()
  deleteDraft()
  summaryCheck()

Functions
Functions that are not part of a class:

createToolButton(icon,label,key,id,classname)   X-Ref
Creates a toolbar button through the DOM

Style the buttons through the toolbutton class

author: Andreas Gohr <andi@splitbrain.org>
author: Michal Rezler <m.rezler@centrum.cz>

createPicker(id,props,edid)   X-Ref
Creates a picker window for inserting text

The given list can be an associative array with text,icon pairs
or a simple list of text. Style the picker window through the picker
class or the picker buttons with the pickerbutton class. Picker
windows are appended to the body and created invisible.

author: Andreas Gohr <andi@splitbrain.org>
param: string id    the ID to assign to the picker
param: array  props the properties for the picker
param: string edid  the ID of the textarea

pickerInsert(text,edid)   X-Ref
No description

addBtnActionSignature($btn, props, edid)   X-Ref
Add button action for signature button

author: Gabriel Birke <birke@d-scribe.de>
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
return: boolean    If button should be appended

currentHeadlineLevel(textboxId)   X-Ref
Determine the current section level while editing

author: Andreas Gohr <gohr@cosmocode.de>

deleteDraft()   X-Ref
Delete the draft before leaving the page


summaryCheck()   X-Ref
No description



Generated: Wed May 23 03:00:10 2012 Cross-referenced by PHPXref 0.7
WikiForumIRCBugsGitXRefTranslate