Blog Sections Open

Making TinyMCE Insert BR Instead of Paragraph Tags on Enter

A quick TinyMCE configuration tweak for projects that really need line breaks on Enter instead of automatic paragraph wrappers.

Some projects need <br /> on Enter rather than the paragraph structure TinyMCE normally inserts. That is not the default because paragraph blocks are usually the healthier HTML choice, but there are still legacy layouts and custom editor flows where line-break behavior is required.

The fix lives in the TinyMCE initialization layer, not in the template markup. Once the editor configuration changes, authors can work in the expected style without forcing the same cleanup over and over again after save.

Newer post

Showing Image Thumbnails in AjaxSearch Results with a Custom PHx Modifier

How to show thumbnails in AjaxSearch results only when the image file really exists, using a PHx-based check and a cleaner fallback strategy.

Older post

Fixing Password Reset Links in WebLoginPE

Why WebLoginPE may send a reset email successfully but fail to activate the new password after the visitor clicks the confirmation link.