public static function ckeditorOptions($controller, $options = [])
{
if (is_array($controller)) {
$id = $controller[0];
unset($controller[0]);
$params = $controller;
} else {
$id = $controller;
$params = [];
}
if (isset($params['startPath'])) {
$params['#'] = ElFinder::genPathHash($params['startPath']);
unset($params['startPath']);
}
return ArrayHelper::merge(['filebrowserBrowseUrl' => self::getManagerUrl($id, $params), 'filebrowserImageBrowseUrl' => self::getManagerUrl($id, ArrayHelper::merge($params, ['filter' => 'image'])), 'filebrowserFlashBrowseUrl' => self::getManagerUrl($id, ArrayHelper::merge($params, ['filter' => 'flash']))], $options);
}