Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
// Add a class to an element by id in the page
tinymce.DOM.addClass('someid', 'someclass');
// Add a class to an element by id inside the editor
tinyMCE.activeEditor.dom.addClass('someid', 'someclass');
| Method | Defined By |
|---|---|
|
Constructs a new DOMUtils instance.
|
tinymce.dom.DOMUtils |
|
Returns true/false if the specified element is a block element or not.
|
tinymce.dom.DOMUtils |
|
Returns the root node of the document this is normally the body but might be a DIV.
|
tinymce.dom.DOMUtils |
|
Returns the viewport of the window.
|
tinymce.dom.DOMUtils |
|
Returns the rectangle for a specific element.
|
tinymce.dom.DOMUtils |
|
Returns the size dimensions of the specified element.
|
tinymce.dom.DOMUtils |
|
Returns a node by the specified selector function.
|
tinymce.dom.DOMUtils |
|
Returns a node list of all parents matching the specified selector function or pattern.
|
tinymce.dom.DOMUtils |
|
Returns the specified element by ID or the input element if it isn't a string.
|
tinymce.dom.DOMUtils |
|
Returns the next node that matches selector or function
|
tinymce.dom.DOMUtils |
|
Returns the previous node that matches selector or function
|
tinymce.dom.DOMUtils |
|
Selects specific elements by a CSS level 3 pattern.
|
tinymce.dom.DOMUtils |
|
Returns true/false if the specified element matches the specified css pattern.
|
tinymce.dom.DOMUtils |
|
Adds the specified element to another element or elements.
|
tinymce.dom.DOMUtils |
|
Creates a new element.
|
tinymce.dom.DOMUtils |
|
Create HTML string for element.
|
tinymce.dom.DOMUtils |
|
Removes/deletes the specified element(s) from the DOM.
|
tinymce.dom.DOMUtils |
|
Sets the CSS style value on a HTML element.
|
tinymce.dom.DOMUtils |
|
Returns the current style or runtime/computed value of a element.
|
tinymce.dom.DOMUtils |
|
Sets multiple styles on the specified element(s).
|
tinymce.dom.DOMUtils |
|
Sets the specified attributes value of a element or elements.
|
tinymce.dom.DOMUtils |
|
Sets the specified attributes of a element or elements.
|
tinymce.dom.DOMUtils |
|
Returns the specified attribute by name.
|
tinymce.dom.DOMUtils |
|
Returns the absolute x, y position of a node.
|
tinymce.dom.DOMUtils |
|
Parses the specified style value into an object collection.
|
tinymce.dom.DOMUtils |
|
Serializes the specified style object into a string.
|
tinymce.dom.DOMUtils |
|
Imports/loads the specified CSS file into the document bound to the class.
|
tinymce.dom.DOMUtils |
|
Adds a class to the specified element or elements.
|
tinymce.dom.DOMUtils |
|
Removes a class from the specified element or elements.
|
tinymce.dom.DOMUtils |
|
Returns true if the specified element has the specified class.
|
tinymce.dom.DOMUtils |
|
Shows the specified element(s) by ID by setting the "display" style.
|
tinymce.dom.DOMUtils |
|
Hides the specified element(s) by ID by setting the "display" style.
|
tinymce.dom.DOMUtils |
|
Returns true/false if the element is hidden or not by checking the "display" style.
|
tinymce.dom.DOMUtils |
|
Returns a unique id.
|
tinymce.dom.DOMUtils |
|
Sets the specified HTML content inside the element or elements.
|
tinymce.dom.DOMUtils |
|
Returns the outer HTML of an element.
|
tinymce.dom.DOMUtils |
|
Sets the specified outer HTML on a element or elements.
|
tinymce.dom.DOMUtils |
|
Entity decode a string, resolves any HTML entities like å.
|
tinymce.dom.DOMUtils |
|
Entity encodes a string, encodes the most common entities <>"& into entities.
|
tinymce.dom.DOMUtils |
|
Inserts a element after the reference element.
|
tinymce.dom.DOMUtils |
|
Replaces the specified element or elements with the specified element, the new element will be cloned if multiple inputs...
|
tinymce.dom.DOMUtils |
|
Renames the specified element to a new name and keep it's attributes and children.
|
tinymce.dom.DOMUtils |
|
Find the common ancestor of two elements.
|
tinymce.dom.DOMUtils |
|
Parses the specified RGB color value and returns a hex version of that color.
|
tinymce.dom.DOMUtils |
|
Returns a array of all single CSS classes in the document.
|
tinymce.dom.DOMUtils |
|
Executes the specified function on the element by id or dom element node or array of elements/id.
|
tinymce.dom.DOMUtils |
|
Returns an NodeList with attributes for the element.
|
tinymce.dom.DOMUtils |
|
Returns true/false if the specified node is to be considered empty or not.
|
tinymce.dom.DOMUtils |
|
Destroys all internal references to the DOM to solve IE leak issues.
|
tinymce.dom.DOMUtils |
|
Created a new DOM Range object.
|
tinymce.dom.DOMUtils |
|
Splits an element into two new elements and places the specified split element or element between the new ones.
|
tinymce.dom.DOMUtils |
|
Adds an event handler to the specified object.
|
tinymce.dom.DOMUtils |
|
Removes the specified event handler by name and function from a element or collection of elements.
|
tinymce.dom.DOMUtils |
|
Fires the specified event name with object on target.
|
tinymce.dom.DOMUtils |