forked from yii2mod/yii2-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module.php
55 lines (49 loc) · 1.3 KB
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
namespace yii2mod\cms;
/**
* Class Module
*
* @package yii2mod\cms
*/
class Module extends \yii\base\Module
{
/**
* @var string the namespace that controller classes are in
*/
public $controllerNamespace = 'yii2mod\cms\controllers';
/**
* @var string the default route of this module
*/
public $defaultRoute = 'manage';
/**
* @var array froala editor options
*
* @see https://www.froala.com/wysiwyg-editor/docs
*/
public $froalaEditorOptions = [
'clientOptions' => [
'heightMin' => 300,
'theme' => 'gray',
'imageUploadURL' => '/cms/manage/upload-image',
'imageManagerDeleteURL' => '/cms/manage/delete-image',
'imageManagerDeleteMethod' => 'POST',
'imageManagerLoadURL' => '/cms/manage/images',
],
'excludedPlugins' => [
'file',
'emoticons',
],
];
/**
* @var bool whether to enable the markdown editor and markdown converter
*/
public $enableMarkdown = false;
/**
* @var array markdown editor options
*
* @see https://github.com/NextStepWebs/simplemde-markdown-editor#configuration
*/
public $markdownEditorOptions = [
'showIcons' => ['code', 'table'],
];
}