TinyMCE:API/tinymce.dom.Element
From Moxiecode Documentation Wiki
Contents |
[edit]
Class: tinymce.dom.Element
Element class, this enables element blocking in IE. Element blocking is a method to block out select blockes that gets visible though DIVs on IE 6 it uses a iframe for this blocking. This class also shortens the length of some DOM API calls since it's bound to an element.
[edit]
Constructor
- Element
- Constructs a new Element instance.
[edit]
Methods
- getPos
- The same method as getPos in the tinymce.dom.DOMUtils class but the first argument is removed.
- getRect
- The same method as getRect in the tinymce.dom.DOMUtils class but the first argument is removed.
- getParent
- The same method as getParent in the tinymce.dom.DOMUtils class but the first argument is removed.
- add
- The same method as add in the tinymce.dom.DOMUtils class but the first argument is removed.
- setStyle
- The same method as setStyle in the tinymce.dom.DOMUtils class but the first argument is removed.
- getStyle
- The same method as getStyle in the tinymce.dom.DOMUtils class but the first argument is removed.
- setStyles
- The same method as setStyles in the tinymce.dom.DOMUtils class but the first argument is removed.
- setAttrib
- The same method as setAttrib in the tinymce.dom.DOMUtils class but the first argument is removed.
- setAttribs
- The same method as setAttribs in the tinymce.dom.DOMUtils class but the first argument is removed.
- getAttrib
- The same method as getAttrib in the tinymce.dom.DOMUtils class but the first argument is removed.
- addClass
- The same method as addClass in the tinymce.dom.DOMUtils class but the first argument is removed.
- removeClass
- The same method as removeClass in the tinymce.dom.DOMUtils class but the first argument is removed.
- hasClass
- The same method as hasClass in the tinymce.dom.DOMUtils class but the first argument is removed.
- getOuterHTML
- The same method as getOuterHTML in the tinymce.dom.DOMUtils class but the first argument is removed.
- setOuterHTML
- The same method as setOuterHTML in the tinymce.dom.DOMUtils class but the first argument is removed.
- remove
- The same method as remove in the tinymce.dom.DOMUtils class but the first argument is removed.
- show
- The same method as show in the tinymce.dom.DOMUtils class but the first argument is removed.
- hide
- The same method as hide in the tinymce.dom.DOMUtils class but the first argument is removed.
- isHidden
- The same method as isHidden in the tinymce.dom.DOMUtils class but the first argument is removed.
- setHTML
- The same method as setHTML in the tinymce.dom.DOMUtils class but the first argument is removed.
- get
- The same method as get in the tinymce.dom.DOMUtils class but the first argument is removed.
- getSize
- Returns the size of the element by a object with w and h fields.
- getXY
- Returns the absolute X, Y cordinate of the element.
- moveBy
- Moves the element relative to the current position.
- moveTo
- Moves the element to a specific absolute position.
- on
- Adds a event handler to the element.
- resizeBy
- Resizes the element relative to the current sizeto a specific size.
- resizeTo
- Resizes the element to a specific size.
- update
- Updates the element blocker in IE6 based on the style information of the element.
[edit]
Examples
// Creates an basic element for an existing element
var elm = new tinymce.dom.Element('someid');
elm.setStyle('background-color', 'red');
elm.moveTo(10, 10);
