I can't find the way to get the Id of the block that I am editing right now. I have all the block Ids with these line:
Code: Select all
var blockIds = document.queryAllBlocks();
And then apply:
Code: Select all
var block = document.queryBlock(blockId);
var blockName = block.getName();
I'm also asking myself if document variable definition line should be diferent. I'm writing this one:
Code: Select all
var document = this.getDocument();
Code: Select all
var document = this.getDocumentInterface();
Any help will be very welcomed!