WYSIWYG
in package
Class providing WYSIWYG editor intergration for the plugin.
Tags
Table of Contents
- ajax_callback() : void
- AJAX Callback function when the Footnotes Button is clicked. Either in the Plain text or Visual editor.
- include_scripts() : array<string|int, string>
- Includes the Plugins WYSIWYG editor script.
- new_plain_text_editor_button() : void
- Add a new button to the plain text editor.
- new_visual_editor_button() : array<string|int, string>
- Append a new Button to the WYSIWYG editor of Posts and Pages.
Methods
ajax_callback()
AJAX Callback function when the Footnotes Button is clicked. Either in the Plain text or Visual editor.
public
static ajax_callback() : void
Returns an JSON encoded array with the Footnotes start and end short code.
Tags
Return values
void —include_scripts()
Includes the Plugins WYSIWYG editor script.
public
static include_scripts(array<string|int, string> $plugins) : array<string|int, string>
Parameters
- $plugins : array<string|int, string>
-
Scripts to be included by the editor.
Tags
Return values
array<string|int, string> —new_plain_text_editor_button()
Add a new button to the plain text editor.
public
static new_plain_text_editor_button() : void
Tags
Return values
void —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, string> $buttons) : array<string|int, string>
Parameters
- $buttons : array<string|int, string>
-
Already-defined editor buttons.