- metadata => { id => $text_block->id, type => 'textblock' },
- attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => 'text-block-context-menu' },
+ metadata => { id => $text_block->id, type => 'text-block' },
+ attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => $class, title => $text_block->content_excerpt },