tomaj / nette-rte-processor
RTE processor.
Installs: 3 999
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
Requires (Dev)
- phpunit/phpunit: ~4.3
This package is not auto-updated.
Last update: 2024-11-23 17:01:20 UTC
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.