|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| wysiwyg ($name='wysiwyg', $web_path='') | |
| paint () | |
| process () | |
| print_config () | |
| print_plugin_vars () | |
| print_plugin_shortcuts () | |
| print_plugin_create_select () | |
| print_plugin_functions () | |
| print_plugin_generic_functions () | |
| print_plugin_button_clicks () | |
| print_plugin_combo_selected () | |
| print_plugin_button_type () | |
| print_plugin_update_toolbar () | |
| print_plugin_exec_commands () | |
| print_plugin_pre_get_html () | |
| print_plugin_get_html () | |
| print_plugin_form_submit () | |
| print_plugin_event_handlers () | |
| add_plugin ($name) | |
| open_group () | |
| close_group () | |
| plugin_loaded ($name) | |
| & | get_plugin ($name) |
| set_body_type ($type='iframe') | |
| set_init_onload ($init=TRUE) | |
| set_show_status_bar ($show=TRUE) | |
| set_width ($width='auto') | |
| set_height ($height='auto') | |
| set_textarea_extras ($extras='') | |
| set_contents ($contents) | |
| set_stylesheet ($stylesheet) | |
| set_dir_attr ($dir_attribute) | |
| add_relative_href_check ($find, $replace) | |
| add_absolute_url_check ($find, $replace) | |
Data Fields | |
| $name = 'wysiwyg' | |
| $body_type = 'iframe' | |
| $init_onload = TRUE | |
| $show_status_bar = TRUE | |
| $web_path = '' | |
| $stylesheet = '' | |
| $width = 'auto' | |
| $height = 'auto' | |
| $relative_href_checks = Array() | |
| $absolute_url_checks = Array() | |
| $textarea_extras = '' | |
| $contents = '' | |
| $_plugins = Array() | |
| $_loaded_plugins = Array() | |
| $_group_open = FALSE | |
| $init = FALSE | |
| $dir_attribute = '' | |
Definition at line 32 of file wysiwyg.inc.
| add_absolute_url_check | ( | $find, | |
| $replace | |||
| ) |
Add an absolute URL check to the editor
| string | $find | the pattern to match the relative HREF |
| string | $replace | the replacement to make the absolute URL |
Definition at line 2175 of file wysiwyg.inc.
| add_plugin | ( | $name | ) |
Adds a plugin to the plugins array - adding functionality
This must be done BEFORE calling the paint() function. If no toolbar button group is currently open, the buttons for the plugin will be added to a new group, otherwise they will join the currently open one.
| string | $name | The unique name of this plugin |
Definition at line 1913 of file wysiwyg.inc.
| add_relative_href_check | ( | $find, | |
| $replace | |||
| ) |
Add a relative HREF check to the editor
| string | $find | the pattern to match the absolute URL |
| string | $replace | the replacement to make the relative HREF |
Definition at line 2157 of file wysiwyg.inc.
| close_group | ( | ) |
Close the currently open grouping on toolbar buttons
Definition at line 1960 of file wysiwyg.inc.
| & get_plugin | ( | $name | ) |
Get a reference to a plugin object
| string | $name | The unique name of the plugin to get |
Definition at line 1993 of file wysiwyg.inc.
| open_group | ( | ) |
Open a new toolbar grouping of buttons
Definition at line 1943 of file wysiwyg.inc.
| paint | ( | ) |
Paints the JS needed for the WYSIWYG and the editable textarea
Definition at line 200 of file wysiwyg.inc.
| plugin_loaded | ( | $name | ) |
Checks if a plugin has been loaded into the editor
| string | $name | The unique name of the plugin |
Definition at line 1978 of file wysiwyg.inc.
| print_config | ( | ) |
Prints the config section of the WYSIWYG The config section is where the plugins define where and how they print
Definition at line 1574 of file wysiwyg.inc.
| print_plugin_button_clicks | ( | ) |
Prints the JS executed on click for each plugin
Definition at line 1770 of file wysiwyg.inc.
| print_plugin_button_type | ( | ) |
Prints the JS to create special types of buttons
Definition at line 1800 of file wysiwyg.inc.
| print_plugin_combo_selected | ( | ) |
Prints the JS executed on select for select box plugins
Definition at line 1785 of file wysiwyg.inc.
| print_plugin_create_select | ( | ) |
Prints the code to get the options array for select box plugins
Definition at line 1725 of file wysiwyg.inc.
| print_plugin_event_handlers | ( | ) |
Prints any JS the plugin wants executed when an event is fired by the WYSIWYG's iframe or div
Definition at line 1890 of file wysiwyg.inc.
| print_plugin_exec_commands | ( | ) |
Prints any JS the plugin wants executed before the editable form element has its way
Definition at line 1830 of file wysiwyg.inc.
| print_plugin_form_submit | ( | ) |
Prints any JS the plugin wants executed before submitting the form
Definition at line 1875 of file wysiwyg.inc.
| print_plugin_functions | ( | ) |
Prints custom JS functions used by the plugins for each editor
Definition at line 1740 of file wysiwyg.inc.
| print_plugin_generic_functions | ( | ) |
Prints JS functions used by the plugins that are generic
Definition at line 1755 of file wysiwyg.inc.
| print_plugin_get_html | ( | ) |
Prints any JS the plugin wants executed on returned HTML from getHTML
Definition at line 1860 of file wysiwyg.inc.
| print_plugin_pre_get_html | ( | ) |
Prints any JS the plugin wants executed on before getHTML gets the contents
Definition at line 1845 of file wysiwyg.inc.
| print_plugin_shortcuts | ( | ) |
Prints the keyboard shortcuts defined by each plugin
Definition at line 1710 of file wysiwyg.inc.
| print_plugin_update_toolbar | ( | ) |
Prints the JS executed by each plugin when the toolbar is updated
Definition at line 1815 of file wysiwyg.inc.
| print_plugin_vars | ( | ) |
Prints the JS variables defined by each plugin
Definition at line 1695 of file wysiwyg.inc.
| process | ( | ) |
Processes and returns the submitted HTML from the editor This allows plugins to modify the html as they see fit.
Definition at line 1546 of file wysiwyg.inc.
| set_body_type | ( | $type = 'iframe' | ) |
Sets the body type of the WYSIWYG editor (iframe or div)
| string | $type | The body type used to print/scale |
Definition at line 2012 of file wysiwyg.inc.
| set_contents | ( | $contents | ) |
Sets the initial contents of the WYSIWYG editor
| string | $contents | Some HTML content |
Definition at line 2105 of file wysiwyg.inc.
| set_dir_attr | ( | $dir_attribute | ) |
Sets the dir attribute for the body in WYSIWYG editor
| string | $dir_attribute | value of dir attribute |
Definition at line 2142 of file wysiwyg.inc.
| set_height | ( | $height = 'auto' | ) |
Sets the height of the WYSIWYG editor
| string | $height | The height of the editor |
Definition at line 2073 of file wysiwyg.inc.
| set_init_onload | ( | $init = TRUE | ) |
Sets weather the WYSIWYG initilises itself onLoad for the window
| boolean | $init | Init or not |
Definition at line 2027 of file wysiwyg.inc.
| set_show_status_bar | ( | $show = TRUE | ) |
Sets weather we should show the status bar or not
| boolean | $show | Show or not |
Definition at line 2042 of file wysiwyg.inc.
| set_stylesheet | ( | $stylesheet | ) |
Sets the stylesheet for the WYSIWYG editor to use
| string | $stylesheet | The href of the stylesheet |
Definition at line 2127 of file wysiwyg.inc.
| set_textarea_extras | ( | $extras = '' | ) |
Sets extra HTML you want in the TEXTAREA tag Usually would be used to set width and height
| string | $extras | The extra HTML |
Definition at line 2090 of file wysiwyg.inc.
| set_width | ( | $width = 'auto' | ) |
Sets the width of the WYSIWYG editor
| string | $width | The width of the editor |
Definition at line 2057 of file wysiwyg.inc.
Constructor
| string | $name | A unique name for this WYSIWYG |
public
Definition at line 184 of file wysiwyg.inc.