This prevents windows in user supplied text and html content. It will isolate text collections across DOMText nodes and inline/inline-block elements listed in our internal $inlineElements list. This means that does not get tripped up by mid-paragraph HTML elements elements .

For example, "... this text <em> IS REALLY</em> important to me ..." does not end up with non-breaking spaces added before the <em> which would be undesirable. This is because tags like <em> are recognized and treated like another DOMText node and grouped with the previously detected nodes. Only when it hits the actual end of the node collection or a block level element is encountered the buffered node collection will be processed.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
32
Version
2.2.0
License
MIT
Compatibility
Craft 3, Craft 4, Craft 5
Last release
November 20, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs