Tag: regex

  • Preventing tinyMCE 4 from inserting <br /> within <code> blocks.

    Problem I was trying to hook in TinyMCE 4 as a editor that allows me to specify code blocks. However, in visual editing mode, <code> blocks ended up having embedded <br /> tags that displayed when rendered. There is an old plugin,┬áPre Element Fix, that may have done what I wanted it to do, but […]