Overwrite text format / set text format to be usefull in Views

Created on 4 July 2014, almost 11 years ago
Updated 27 September 2024, 7 months ago

Using a view, which displays fields I noticed that Smart Trim doesn't work as expected.
When, for example, you want to dispaly a trimmed body field and strip the html, the html was shown as plain text.

This happens in the _text_sanitize() function when the given item has no text_format defined (fallback).
Normally when displaying a field (non-views) this property is given (set during input).

Therefore I propose to have an option to set the text filter used by the field formatter.
The default option lets the module work as it currently does, but when one of the selected text formats is chosen, it overwrites (or sets in case of views) the used format.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands dmsmidt Amsterdam πŸ‡³πŸ‡±πŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024