[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 1617 lines (43 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
textEditorResize() X-Ref |
Resizes the text editor depending on the old text length. If there is an mceEditor and it is hidden, it resizes the editor depending on the old text length. If the current length of the text is smaller than the old text length, it shrinks the text area. Otherwise it resizes the editor to the scroll height. return: {void} |
getHeights() X-Ref |
Gets the height and widths of elements. Gets the heights of the window, the adminbar, the tools, the menu, the visualTop, the textTop, the bottom, the statusbar and sideSortables and stores these in the heights object. Defaults to 0. Gets the width of the window and stores this in the heights object. return: {void} |
mceGetCursorOffset() X-Ref |
Gets the offset of the editor. return: {number|boolean} Returns the offset of the editor |
mceKeyup( event ) X-Ref |
Filters the special keys that should not be used for scrolling. return: {void} param: {event} event The event to get the key code from. |
mceScroll( key ) X-Ref |
Makes sure the cursor is always visible in the editor. Makes sure the cursor is kept between the toolbars of the editor and scrolls the window when the cursor moves out of the viewport to a wpview. Setting a buffer > 0 will prevent the browser default. Some browsers will scroll to the middle, others to the top/bottom of the *window* when moving the cursor out of the viewport. return: {void} param: {string} key The key code of the pressed key. |
mceFullscreenToggled( event ) X-Ref |
If the editor is fullscreen, calls adjust. return: {void} param: {event} event The FullscreenStateChanged event. |
mceShow() X-Ref |
Shows the editor when scrolled. Binds the hideFloatPanels function on the window scroll.mce-float-panels event. Executes the wpAutoResize on the active editor. return: {void} |
mceHide() X-Ref |
Resizes the editor. Removes all functions from the window scroll.mce-float-panels event. Resizes the text editor and scrolls to a position based on the pageXOffset and adminBarHeight. return: {void} |
toggleAdvanced() X-Ref |
Toggles advanced states. return: {void} |
adjust( event ) X-Ref |
Adjusts the toolbars heights and positions. Adjusts the toolbars heights and positions based on the scroll position on the page, the active editor mode and the heights of the editor, admin bar and side bar. return: {void} param: {event} event The event that calls this function. |
fullscreenHide() X-Ref |
Resizes the editor and adjusts the toolbars. return: {void} |
initialResize( callback ) X-Ref |
Runs the passed function with 500ms intervals. return: {void} param: {function} callback The function to run in the timeout. |
afterScroll() X-Ref |
Runs adjust after 100ms. return: {void} |
on() X-Ref |
Binds editor expand events on elements. return: {void} |
off() X-Ref |
Unbinds editor expand events. return: {void} |
recalcEditorRect() X-Ref |
Recalculates the bottom and right position of the editor in the DOM. return: {void} |
activate() X-Ref |
Activates the distraction free writing mode. return: {void} |
deactivate() X-Ref |
Deactivates the distraction free writing mode. return: {void} |
isActive() X-Ref |
Returns _isActive. return: {boolean} Returns true is _isActive is true. |
on() X-Ref |
Binds events on the editor for distraction free writing. return: {void} |
off() X-Ref |
Unbinds events on the editor for distraction free writing. return: {void} |
toggle() X-Ref |
Binds or unbinds the editor expand events. return: {void} |
isOn() X-Ref |
Returns the value of _isOn. return: {boolean} Returns true if _isOn is true. |
fadeOut( event ) X-Ref |
Fades out all elements except for the editor. The fading is done based on key presses and mouse movements. Also calls the fadeIn on certain key presses or if the mouse leaves the editor. return: {void} param: event The event that triggers this function. |
fadeIn( event ) X-Ref |
Fades all elements back in. return: {void} param: event The event that triggers this function. |
maybeFadeIn() X-Ref |
Fades in if the focused element based on it position. return: {void} |
hasFocus( $el ) X-Ref |
No description |
fadeOutAdminBar() X-Ref |
Fades out the admin bar based on focus on the admin bar. return: {void} |
fadeInAdminBar() X-Ref |
Fades in the admin bar. return: {void} |
fadeOutSlug() X-Ref |
Fades out the edit slug box. return: {void} |
fadeInSlug() X-Ref |
Fades in the edit slug box. return: {void} |
toggleViaKeyboard( event ) X-Ref |
Triggers the toggle on Alt + Shift + W. Keycode 87 = w. return: {void} param: {event} event The event to trigger the toggle. |
focus() X-Ref |
No description |
blur() X-Ref |
No description |
Generated : Sat Dec 21 08:20:01 2024 | Cross-referenced by PHPXref |