moritz-sauer-13/textformatter
最新稳定版本:2.0.0
Composer 安装命令:
composer require moritz-sauer-13/textformatter
包简介
Text Formatting Extension to format normal Text in the CMS
README 文档
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);
}
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-09-24