This repository has been archived by the owner on Feb 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathEditorProviderSettings.cs
199 lines (171 loc) · 6.3 KB
/
EditorProviderSettings.cs
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
using System.Collections.Generic;
using DNNConnect.CKEditorProvider.Constants;
namespace DNNConnect.CKEditorProvider.Objects
{
/// <summary>
/// The Editor Provider Settings
/// </summary>
public class EditorProviderSettings : object
{
/// <summary>
/// Initializes a new instance of the <see cref="EditorProviderSettings"/> class.
/// </summary>
public EditorProviderSettings()
{
OverrideFileOnUpload = false;
UseAnchorSelector = true;
FileListPageSize = 20;
FileListViewMode = FileListView.DetailView;
SettingMode = SettingsMode.Portal;
DefaultLinkMode = LinkMode.RelativeURL;
InjectSyntaxJs = true;
BrowserRootDirId = -1;
UploadDirId = -1;
ResizeHeight = -1;
ResizeWidth = -1;
BrowserRoles = "0;Administrators;";
Browser = "standard";
ToolBarRoles = new List<ToolbarRoles> { new ToolbarRoles { RoleId = 0, Toolbar = "Full" } };
UploadSizeRoles = new List<UploadSizeRoles>
{
new UploadSizeRoles { RoleId = 0, UploadFileLimit = -1 }
};
Config = new EditorConfig();
}
#region Properties
/// <summary>
/// Gets or sets a value indicating whether [override file on upload].
/// </summary>
/// <value>
/// <c>true</c> if [override file on upload]; otherwise, <c>false</c>.
/// </value>
public bool OverrideFileOnUpload { get; set; }
/// <summary>
/// Gets or sets How many Items to Show per Page on the File List.
/// </summary>
/// <value>
/// How many Items to Show per Page on the File List.
/// </value>
public int FileListPageSize { get; set; }
/// <summary>
/// Gets or sets the file list view mode.
/// </summary>
/// <value>
/// The file list view mode.
/// </value>
public FileListView FileListViewMode { get; set; }
/// <summary>
/// Gets or sets the default link mode.
/// </summary>
/// <value>
/// The default link mode.
/// </value>
public LinkMode DefaultLinkMode { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [use anchor selector].
/// </summary>
/// <value>
/// <c>true</c> if [use anchor selector]; otherwise, <c>false</c>.
/// </value>
public bool UseAnchorSelector { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [show page links tab first].
/// </summary>
/// <value>
/// <c>true</c> if [show page links tab first]; otherwise, <c>false</c>.
/// </value>
public bool ShowPageLinksTabFirst { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Use Sub directory for Users.
/// </summary>
public bool SubDirs { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Inject the Syntax
/// jQuery Java Script
/// </summary>
public bool InjectSyntaxJs { get; set; }
/// <summary>
/// Gets or sets a value indicating whether The Browser Root Directory Id
/// </summary>
public int BrowserRootDirId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether The Upload Directory Id
/// </summary>
public int UploadDirId { get; set; }
/// <summary>
/// Gets or sets the custom JS file.
/// </summary>
/// <value>
/// The custom JS file.
/// </value>
public string CustomJsFile { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Default Resize Image Height
/// </summary>
public int ResizeHeight { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Default Resize Image Width
/// </summary>
public int ResizeWidth { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Toolbar Roles
/// </summary>
public List<ToolbarRoles> ToolBarRoles { get; set; }
/// <summary>
/// Gets or sets a value setting the Upload Sizes for each Role
/// </summary>
public List<UploadSizeRoles> UploadSizeRoles { get; set; }
/// <summary>
/// Gets or sets the upload file size limit.
/// </summary>
/// <value>
/// The upload file size limit.
/// </value>
public int UploadFileSizeLimit { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Blank Initial text
/// </summary>
public string BlankText { get; set; }
/// <summary>
/// Gets or sets the browser.
/// </summary>
/// <value>
/// The browser.
/// </value>
public BrowserType BrowserMode { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Editor File Browser
/// </summary>
public string Browser { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Allowed Browser Roles
/// </summary>
public string BrowserRoles { get; set; }
/// <summary>
/// Gets or sets the width of the editor as string.
/// </summary>
/// <value>
/// The width of the browser.
/// </value>
public string EditorWidth { get; set; }
/// <summary>
/// Gets or sets the height of the editor as string.
/// </summary>
/// <value>
/// The height of the browser.
/// </value>
public string EditorHeight { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Current Setting Mode
/// </summary>
public SettingsMode SettingMode { get; set; }
/// <summary>
/// Gets or sets the Editor configuration.
/// </summary>
/// <value>
/// The configuration.
/// </value>
public EditorConfig Config { get; set; }
#endregion
}
}