Content Elements uses the following events:
display – called after a new element has been created
remove – called right before an element is removed
beforeSort – called before sorting has begun
afterSort – called after sorting has stopped
You can bind the callbacks as follows:
ContentElements.bind('my_element', 'display', function(data) { data.find('textarea').focus(); });
Explanation:
‘my_element’ is the name of your element
‘display’ – event
function(data) – callback