Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions UEditorAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Yii;
use yii\base\Action;
use yii\helpers\ArrayHelper;
use yii\web\Response;

class UEditorAction extends Action
{
Expand All @@ -27,7 +28,12 @@ public function init()

public function run()
{
ob_start();
$this->handleAction();
$content = ob_get_contents();
ob_clean();
Yii::$app->response->format = Response::FORMAT_RAW;
return $content;
}

/**
Expand Down