tomaj/nette-rte-processor
Composer 安装命令:
composer require tomaj/nette-rte-processor
包简介
RTE processor.
README 文档
README
Requirements
nette-rte-processor requires PHP 5.3.0 or higher.
WARNING: Most of code is from TYPO3 t3lib library! - So it isnt very nice ;-)
Installation
The best way to install nette-rte-processor is using Composer:
$ composer require tomaj/nette-rte-processor
Background
This library is usefull for processing RTE fields from TYPO3 when you need render it to frontend with Nette. Library use code from TYPO3 to convert special marks from RTE to output HTML.
Usage
You can use simple static function
\Tomaj\RTEProcessor\TextFormatter::rteTransform($bodytext)
or create helper for using in templates:
$template->addFilter('rtetransform', function($text) {
return \Tomaj\RTEProcessor\TextFormatter::rteTransform($text);
});
Repository http://github.com/tomaj/nette-rte-processor.
统计信息
- 总下载量: 4.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-20