moritz-sauer-13/textformatter

There is no license information available for the latest version (3.1.2) of this package.

Text Formatting Extension to format normal Text in the CMS

Maintainers

Package info

github.com/moritz-sauer-13/silverstripe-textformatter

pkg:composer/moritz-sauer-13/textformatter

Transparency log

Statistics

Installs: 170

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

3.1.2 2026-06-26 13:25 UTC

README

This module can be used to format text in default textfields by adding specific tags in between the text to style it in a custom way. The formatter will replace the text with ex. -Tags or spans with a special class for color styles. Tags can also be fully customized via the "updateReplaceableTags" extension-hook.

How To use:

To display the Formatting hint in the CMS simply add this in you getCMSFields: $fields->dataFieldByName('Title')->setDescription(TextFormatter::getFormattingDescription());

To output the formatted Text in the Frontend you need a special function like this one:

public function FrontendTitle()
{
  return TextFormatter::formattedText($this->Title);
}

grafik

grafik