Jump to content

VarunAgw

Clients
  • Posts

    44
  • Joined

  • Last visited

Community Answers

  1. VarunAgw's post in How do I embed block inside a block HTML editor was marked as the answer   
    I ended up writing a small patch which implemented this functionality.
     
    $configuration[$contentField] = preg_replace_callback('~\{block=([\'"])(.*?)\1\}~', function ($match) { $blockKey = $match[2]; $block = Block::load($blockKey, 'block_key'); return $block->widget()->render(); }, $configuration[$contentField]);
×
×
  • Create New...