templates/areas/wysiwyg/view.html.twig line 1

Open in your IDE?
  1. <div class="content-block {#{ pimcore_select("blockBackground").getData() ? 'content-block--' ~ pimcore_select("blockBackground").getData() : ''  }#}">
  2.     <div class="container">
  3.     {% if editmode %}
  4.         {#{ pimcore_select("blockBackground", {
  5.                 "store": [
  6.                     [null, "Geen achtergrond"],
  7.                     ["light", "Liche achtergrond"],
  8.                 ],
  9.                 "defaultValue" : null
  10.         }) }#}
  11.     {% endif %}
  12.         <div class="row justify-content-center">
  13.             <div class="col-xl-10">
  14.                 {{  
  15.                     pimcore_wysiwyg("blockContent", {
  16.                         "height": 300,
  17.                         "placeholder": 'Uw tekst...',
  18.                         "stylesSet": [
  19.                             {name: 'Knop (primair)', element: 'a', attributes: {'class': 'btn btn-outline-primary'} },
  20.                             {name: 'Knop (secundair)', element: 'a', attributes: {'class': 'btn btn-outline-secondary'} }
  21.                         ]
  22.                     }) 
  23.                 }}
  24.             </div>
  25.         </div><!--/ .row -->
  26.     </div><!--/ .container -->
  27. </div>