Быстрая установка CLEditor в Yii

$this->registerJsFile(Yii::$app->urlManager->baseUrl.'/js/cleditor/jquery.cleditor.min.js', [
    'position' => 3,
    'depends' => [
        'yii\web\JqueryAsset'
    ]
]);

$this->registerJs('
    $("#post_content").cleditor();
');
comments powered by HyperComments