Patch Redactor to allow header formatting

For whatever reason Redactor in older versions does not allow formatting to be applied to headers. After some Googling I was able to find a solution posted by Simon on StackOverflow. It turns out you can comment out one of the lines that guard against this and it works!

Detect iframe click events with pointer-events

Today I learned about the CSS attribute pointer-events. Used with an iframe and parent div you can detect when a click has been made over an embedded iframe.

<div class="container">
  <iframe></iframe>
</div>
iframe {
  pointer-events: none;
}
$(document)...

Create a play button overlay with a pseudo-element

Today I learned how to create a play button overlay on a video thumbnail.