Footnotes_WYSIWYG
Handles the WSYIWYG-Buttons.
Tags
Table of Contents
- ajax_callback() : mixed
- AJAX Callback function when the Footnotes Button is clicked. Either in the Plain text or Visual editor.
- include_scripts() : array<string|int, mixed>
- Includes the Plugins WYSIWYG editor script.
- new_plain_text_editor_button() : mixed
- Add a new button to the plain text editor.
- new_visual_editor_button() : array<string|int, mixed>
- Append a new Button to the WYSIWYG editor of Posts and Pages.
- register_hooks() : void
- Registers Button hooks.
Methods
ajax_callback()
AJAX Callback function when the Footnotes Button is clicked. Either in the Plain text or Visual editor.
public
static ajax_callback() : mixed
Returns an JSON encoded array with the Footnotes start and end short code.
Tags
Return values
mixed —include_scripts()
Includes the Plugins WYSIWYG editor script.
public
static include_scripts(array<string|int, mixed> $p_arr_plugins) : array<string|int, mixed>
Parameters
- $p_arr_plugins : array<string|int, mixed>
-
Scripts to be included to the editor.
Tags
Return values
array<string|int, mixed> —new_plain_text_editor_button()
Add a new button to the plain text editor.
public
static new_plain_text_editor_button() : mixed
Tags
Return values
mixed —new_visual_editor_button()
Append a new Button to the WYSIWYG editor of Posts and Pages.
public
static new_visual_editor_button(array<string|int, mixed> $p_arr_buttons) : array<string|int, mixed>
Parameters
- $p_arr_buttons : array<string|int, mixed>
-
pre defined Buttons from WordPress.
Tags
Return values
array<string|int, mixed> —register_hooks()
Registers Button hooks.
public
static register_hooks() : void