-
-
Triggers widget updates via AJAX.
Parameters:
| Name |
Type |
Description |
el |
string
|
Optional. Widget to fetch or none to update all. |
- Since:
-
- Source:
-
Returns:
-
Type
-
void
-
edAddTag()
-
Back-compat
Define all former global functions so plugins that hack quicktags.js directly don't cause fatal errors.
- Source:
-
-
-
Adds a button to all instances of the editor
Added for back compatibility, use QTags.addButton() as it gives more flexibility like type of button, button placement, etc.
- Source:
-
- See:
-
-
edInsertContent()
-
Inserts content at the caret in the active editor (textarea)
Added for back compatibility
- Source:
-
- See:
-
-
editPermalink()
-
Handle the editing of the post_name. Create the required HTML elements and
update the changes via AJAX.
- Source:
-
Returns:
void
-
out()
-
Closes the submenu when no longer hovering the menu item.
- Source:
-
Returns:
-
Type
-
void
-
over()
-
Opens the submenu when hovered over the menu item for desktops.
- Source:
-
Returns:
-
Type
-
void
-
quickPressLoad()
-
Control the Quick Press (Quick Draft) widget.
- Since:
-
- Source:
-
Returns:
-
Type
-
void
-
-
Initialize new instance of the Quicktags editor
- Source:
-
-
send_to_editor(html)
-
Sends the HTML passed in the parameters to TinyMCE.
Parameters:
| Name |
Type |
Description |
html |
string
|
The HTML to be sent to the editor. |
- Since:
-
- Source:
-
Returns:
Returns false when both TinyMCE and QTags instances
are unavailable. This means that the HTML was not
sent to the editor.
-
Type
-
void
|
boolean
-
tb_position()
-
Recalculates and applies the new ThickBox position based on the current
window size.
- Since:
-
- Source:
-
Returns:
Array containing jQuery objects for all the found
ThickBox anchors.
-
Type
-
Array.<Object>
-
WPRemoveThumbnail(nonce)
-
Remove the Featured Image
Parameters:
| Name |
Type |
Description |
nonce |
string
|
Nonce to use in the request. |
- Source:
-
-
WPSetThumbnailHTML(html)
-
Overwrite the content of the Featured Image postbox
Parameters:
| Name |
Type |
Description |
html |
string
|
New HTML to be displayed in the content area of the postbox. |
- Source:
-
-
WPSetThumbnailID(id)
-
Set the Image ID of the Featured Image
Parameters:
| Name |
Type |
Description |
id |
int
|
The post_id of the image to use as Featured Image. |
- Source:
-
-
wptitlehint(id)
-
Adds screen reader text to the title prompt when needed.
Parameters:
| Name |
Type |
Description |
id |
string
|
Optional. HTML ID to add the screen reader helper text to. |
- Source:
-
Returns:
void