You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added an onElementCreate property to the options object passed into the rangy.createClassApplier() method. If present, onElementCreate should be a function; it is passed a reference to the newly created element.
Be aware that any changes to attributes made by this function may prevent Rangy from merging it with other elements.
Example:
var id = 0;
var applier = rangy.createClassApplier("someClass", {
onElementCreate: function(el) {
el.id = "rangySpan_" + (id++);
}
});
From timd...@gmail.com on December 29, 2012 18:26:55
Callback will be called whenever a new element is created and can be used, for example, to add unique ids to each element created
Original issue: http://code.google.com/p/rangy/issues/detail?id=143
The text was updated successfully, but these errors were encountered: