models/News.php
public static function correctI18nBodies($modelsI18n)
    {
        $module = Module::getModuleByClassname(Module::className());
        $contentHelperClass = $module->contentHelper;

        foreach ($modelsI18n as $modelI18n) {//var_dump($modelI18n->attributes);exit;
            $modelI18n->body = $contentHelperClass::afterSelectBody($modelI18n->body);
        }
        return $modelsI18n;
    }
public static function correctI18nBodies($modelsI18n)
    {
        $module = Module::getModuleByClassname(Module::className());
        $contentHelperClass = $module->contentHelper;

        foreach ($modelsI18n as $modelI18n) {//var_dump($modelI18n->attributes);exit;
            $modelI18n->body = $contentHelperClass::afterSelectBody($modelI18n->body);
        }
        return $modelsI18n;
    }
public static function correctI18nBodies ( $ modelsI18n ) { $ module = Module :: getModuleByClassname ( Module :: className ( ) ) ; $ contentHelperClass = $ module -> contentHelper ; foreach ( $ modelsI18n as $ modelI18n ) { //var_dump($modelI18n->attributes);exit; $ modelI18n -> body = $ contentHelperClass :: afterSelectBody ( $ modelI18n -> body ) ; } return $ modelsI18n ; }
Use ContentHelper to correct texts after visual editor.
Need as independent method to repeat run after unsuccessful validation.
Use ContentHelper to correct texts after visual editor . Need as independent method to repeat run after unsuccessful validation .