TinyMCE:API/tinymce.dom.DOMUtils/removeClass
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: removeClass
[edit]
Summary
Removes a class from the specified element or elements.
[edit]
Syntax
<String/Array> removeClass(<String/Element/Array> Element, <String> c)
[edit]
Parameters
- Element
- ID string or DOM element or array with elements or IDs.
- c
- Class name to remove to each element.
[edit]
Returns
String with new class value or array with new class values for all elements.
[edit]
Examples
// Removes a class from all paragraphs in the active editor
tinyMCE.activeEditor.dom.removeClass(tinyMCE.activeEditor.dom.select('p'), 'myclass');
// Removes a class from a specific element in the current page
tinyMCE.DOM.removeClass('mydiv', 'myclass');
