Suggestion for a single but powerfull function (for the developers) to be able to set any and multiple properties on any element or multiple elements (in the selection) in the editingArea.
Arguments:
- Three Arguments (tagName, attribute, value)
-
- tagName - (string) The tagName of the target element(s) in the selection.
- element - (element) DOM node in the editingArea
- attribute - (string) Name of the attribute to set.
- value - (string or int) Value to set.
-
- Two Arguments (tagName, value)
-
- tagName - (string) The tagName of the target element(s) in the selection.
- element - (element) DOM node in the editingArea
- properties - (object) Object with its keys/value pairs representing the properties and values to set for the Element.
-
- One Argument (elements and properties)
- element(s) and properties - (object) Object with its keys/value pairs representing the element(s) to affect (by tagname or DOM node) and values as a properties object to set for the Element.
- element(s) and properties - (object) Object with its keys/value pairs representing the element(s) to affect (by tagname or DOM node) and values as a properties object to set for the Element.