[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

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

Functions for text editing (toolbar stuff)

Author: Andreas Gohr <andi@splitbrain.org>
Poids: 529 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 11 fonctions

  createToolButton()
  createPicker()
  pickerInsert()
  showPicker()
  initToolbar()
  insertTags()
  insertAtCarret()
  changeCheck()
  initChangeCheck()
  summaryCheck()
  locktimer_class()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

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

Style the buttons through the toolbutton class

author: Andreas Gohr <andi@splitbrain.org>

createPicker(id,list,icobase,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>

pickerInsert(pickerid,text,edid)   X-Ref
Called by picker buttons to insert Text and close the picker again

author: Andreas Gohr <andi@splitbrain.org>

showPicker(pickerid,btn)   X-Ref
Show a previosly created picker window

author: Andreas Gohr <andi@splitbrain.org>

initToolbar(tbid,edid,tb)   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

insertTags(edid,tagOpen, tagClose, sampleText)   X-Ref
Format selection

Apply tagOpen/tagClose to selection in textarea, use sampleText instead
of selection if there is none. Copied and adapted from phpBB

author: phpBB development team
author: MediaWiki development team
author: Andreas Gohr <andi@splitbrain.org>
author: Jim Raynor <jim_raynor@web.de>

insertAtCarret(edid,value)   X-Ref
Pas de description

changeCheck(msg)   X-Ref
Check for changes before leaving the page


initChangeCheck(msg)   X-Ref
Add changeCheck to all Links and Forms (except those with a
JSnocheck class), add handlers to monitor changes

Sets focus to the editbox as well

summaryCheck()   X-Ref
Checks if a summary was entered - if not the style is changed

author: Andreas Gohr <andi@splitbrain.org>

locktimer_class()   X-Ref
Class managing the timer to display a warning on a expiring lock




Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7