Documentation
Blocks
getBlocks
Returns all blocks in the content.
var $blocks = this.app.blocks.getBlocks();
$blocks.each(function($node) {
var instance = $node.dataget('instance');
});
getFirst
Returns the first block in the content.
var $block = this.app.blocks.getFirst();
var instance = $block.dataget('instance');
getLast
Returns the last block in the content.
var $block = this.app.blocks.getLast();
var instance = $block.dataget('instance');
dkjgvo65776inru43654