Adds function in blockeditor.