| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Utility classes and functions for text editor integration.
| Copyright: | 2009 Petr Skoda {@link http://skodak.org} |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 245 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| editors_get_preferred_editor($format = NULL) X-Ref |
| Returns users preferred editor for given format param: int $format text format or null of none return: texteditor object |
| editors_get_preferred_format() X-Ref |
| Returns users preferred text format. return: int standard text format |
| editors_get_enabled() X-Ref |
| Returns list of enabled text editors return: array of name=>texteditor |
| get_texteditor($editorname) X-Ref |
| Returns instance of text editor param: string $editorname name of editor (textarea, tinymce, ...) return: object|bool texeditor instance or false if does not exist |
| editors_get_available() X-Ref |
| Get the list of available editors return: array Array ('editorname'=>'localised editor name') |
| editors_head_setup() X-Ref |
| Setup all JS and CSS needed for editors. return: void |
| set_text($text) X-Ref |
| Set the text set for this form field. Will be called before "use_editor". param: string $text The text for the form field. |
| get_text() X-Ref |
| Get the text set for this form field. Can be called from "use_editor". return: string |
| head_setup() X-Ref |
| Setup all JS and CSS needed for editor. return: void |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |