| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Functions for text editing (toolbar stuff)
| Author: | Andreas Gohr |
| File Size: | 597 lines (18 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| 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 |
| addBtnActionFormat(btn, props, edid) X-Ref |
| Add button action for format buttons 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 |
| addBtnActionInsert(btn, props, edid) X-Ref |
| Add button action for insert buttons 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 |
| 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 |
| addBtnActionPicker(btn, props, edid, id) X-Ref |
| Add button action for picker buttons and create picker element 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 param: int id Unique number of the picker return: boolean If button should be appended |
| addBtnActionMediapopup(btn, props) X-Ref |
| Add button action for the mediapopup 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 return: boolean If button should be appended |
| 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 |
| No 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 |
| Generated: Tue Dec 2 01:30:01 2008 | Cross-referenced by PHPXref 0.7 |