Extends Arte.Text area to add undo/redo capabilities
The state detector exposes the following public api to the Arte Text Area
Returns an object representing the current state for the whole selection (all nodes must share attribute to show as true i.e if there are two nodes and one is not bold the bold state will show as false)
$(".editor").Arte.getState();
Returns an array of state objects representing the current state for each node in the selection
$(".editor").Arte.getAllStates();
The state object has all the attributes of the editor that can be modified
var state = {
bold: true,
italic: false
fontSize: 10,
...
}