Support » Plugin: Block Lab » html in text

  • Resolved gottfrieds

    (@gottfrieds)


    As there is no html field for small customizations I use sometimes the textarea. It works fine with most tags. Even <buttons> are displayed correctly. But the onclick event is lost during the php generation.

    <button style="margin: 7px; padding: 7px;" onclick="sw_button('wahlprogramm2020/')">Programm Simmerath</button>

    becomes

    <button style="margin: 7px; padding: 7px;">Programm Simmerath</button>

    Is there a solution. A html field would be very helpful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @gottfrieds,
    Thanks for bringing that up.

    The Textarea field shouldn’t have any escaping when using block_value().

    For example:

    
    echo block_value( 'example-textarea-field' );
    

    Does that help, or is it already using block_value() ?

    gottfrieds

    (@gottfrieds)

    Great! It works!

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Great, glad it works!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.