This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is the namespace you want to use | |
use EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Type as RichTextFieldType; | |
// this would be a method in your class (you'll need to inject RichTextFieldType) | |
// It has some extra wrangling of input not required, but makes it moarrr robust | |
private function prepareRichText($inputText){ | |
if($inputText === ''){ |