-
Notifications
You must be signed in to change notification settings - Fork 749
/
EditorConfig.cs
1947 lines (1761 loc) · 82.2 KB
/
EditorConfig.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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DNNConnect.CKEditorProvider.Objects
{
using System.ComponentModel;
using System.Xml.Serialization;
using DNNConnect.CKEditorProvider.Constants;
/// <summary>
/// Editor Configuration Settings.
/// </summary>
public class EditorConfig
{
/// <summary>
/// Initializes a new instance of the <see cref="EditorConfig" /> class.
/// </summary>
public EditorConfig()
{
this.AllowedContent = "false";
this.AutoGrow_BottomSpace = 0;
this.AutoGrow_MaxHeight = 0;
this.AutoGrow_MinHeight = 200;
this.AutoGrow_OnStartup = false;
this.AutoParagraph = true;
this.AutoSave_Delay = 25;
this.AutoUpdateElement = true;
this.BaseFloatZIndex = 10000;
this.BasicEntities = true;
this.BlockedKeystrokes = "[ CKEDITOR.CTRL + 66, CKEDITOR.CTRL + 73, CKEDITOR.CTRL + 85 ]";
this.BrowserContextMenuOnCtrl = true;
this.Clipboard_DefaultContentType = "html";
this.CodeMirror = new CodeMirror();
this.ColorButton_Colors = "00923E,F8C100,28166F";
this.ColorButton_EnableMore = true;
this.DataIndentationChars = "\t";
this.DefaultLanguage = "en";
this.DefaultLinkType = LinkType.url;
this.Dialog_BackgroundCoverColor = "white";
this.Dialog_BackgroundCoverOpacity = 0.5;
this.Dialog_ButtonsOrder = "OS";
this.Dialog_MagnetDistance = 20;
this.Dialog_StartupFocusTab = false;
this.DisableNativeSpellChecker = true;
this.DisableNativeTableHandles = true;
this.DisableObjectResizing = false;
this.DisableReadonlyStyling = false;
this.Div_WrapTable = false;
this.DocType = "<!DOCTYPE html>";
this.EnableTabKeyTools = true;
this.EnterMode = EnterModus.P;
this.Entities = true;
this.Entities_additional = "#39";
this.Entities_Greek = false;
this.Entities_Latin = false;
this.Entities_ProcessNumerical = false;
this.ExtraPlugins = "dnnpages,wordcount,notification";
this.FileBrowserWindowFeatures = "location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes";
this.FileBrowserWindowHeight = "70%";
this.FileBrowserWindowWidth = "80%";
this.FillEmptyBlocks = true;
this.FlashAddEmbedTag = false;
this.FlashConvertOnEdit = false;
this.FlashEmbedTagOnly = false;
this.FloatSpaceDockedOffsetX = 0;
this.FloatSpaceDockedOffsetY = 0;
this.FloatSpacePinnedOffsetX = 0;
this.FloatSpacePinnedOffsetY = 0;
this.FontSize_Sizes = "12px;2.3em;130%;larger;x-small";
this.Font_Names = "Arial;Times New Roman;Verdana";
this.ForceEnterMode = false;
this.ForcePasteAsPlainText = false;
this.ForceSimpleAmpersand = false;
this.Format_Tags = "p;h1;h2;h3;h4;h5;h6;pre;address;div";
this.FullPage = false;
this.Height = "200";
this.HtmlEncodeOutput = false;
this.IgnoreEmptyParagraph = true;
this.Image_PreviewText = "Lorem ipsum dolor...";
this.Image_RemoveLinkByEmptyURL = true;
this.IndentOffset = 40;
this.IndentUnit = "px";
this.LinkShowAdvancedTab = true;
this.LinkShowTargetTab = true;
this.Magicline_Color = "#FF0000";
this.Magicline_HoldDistance = "0.5";
this.Magicline_PutEverywhere = false;
this.Magicline_TriggerOffset = 30;
this.Menu_SubMenuDelay = 400;
this.Menu_Groups = "clipboard,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div";
this.PasteFromWordCleanupFile = string.Empty;
this.PasteFromWordNumberedHeadingToList = false;
this.PasteFromWordPromptCleanup = false;
this.PasteFromWordRemoveFontStyles = true;
this.PasteFromWordRemoveStyles = true;
this.ProtectedSource = @"[( /<i class[\s\S]*?>[\s\S]*?<\/i>/gi ),( /<span class[\s\S]*?>[\s\S]*?<\/span>/gi ),( /<em class[\s\S]*?>[\s\S]*?<\/em>/gi ),( /<button class[\s\S]*?>[\s\S]*?<\/button>/gi )]";
this.ReadOnly = false;
this.RemoveFormatAttributes = "class,style,lang,width,height,align,hspace,valign";
this.RemoveFormatTags = "b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var";
this.Resize_Dir = "both";
this.Resize_Enabled = true;
this.Resize_MaxHeight = 600;
this.Resize_MaxWidth = 3000;
this.Resize_MinHeight = 250;
this.Resize_MinWidth = 750;
this.ShiftEnterMode = EnterModus.BR;
this.Skin = "moono";
this.Smiley_columns = 8;
this.SourceAreaTabSize = 20;
this.StartupFocus = false;
this.StartupMode = "wysiwyg";
this.StartupOutlineBlocks = false;
this.StartupShowBorders = true;
this.TabIndex = 0;
this.TabSpaces = 0;
this.Templates = "default";
this.Templates_ReplaceContent = true;
this.ToolbarCanCollapse = false;
this.ToolbarGroupCycling = true;
this.ToolbarLocation = ToolBarLocation.Top;
this.ToolbarStartupExpanded = true;
this.UndoStackSize = 20;
this.UseComputedState = true;
this.Width = "99%";
this.WordCount = new WordCountConfig();
}
/// <summary>
/// Gets or sets a value indicating whether [allowed content].
/// </summary>
/// <value>
/// <c>true</c> if [allowed content]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("allowedContent")]
[Description("Allowed content rules. This setting is used when instantiating CKEDITOR.editor.filter.")]
public string AllowedContent { get; set; }
/// <summary>
/// Gets or sets the auto grow_ bottom space.
/// </summary>
/// <value>
/// The auto grow_ bottom space.
/// </value>
[XmlAttribute("autoGrow_bottomSpace")]
[Description("Extra height in pixel to leave between the bottom boundary of content with document size when auto resizing.")]
public int AutoGrow_BottomSpace { get; set; }
/// <summary>
/// Gets or sets the height of the auto grow_ max.
/// </summary>
/// <value>
/// The height of the auto grow_ max.
/// </value>
[XmlAttribute("autoGrow_maxHeight")]
[Description("The maximum height that the editor can reach using the AutoGrow feature. Zero means unlimited.")]
public int AutoGrow_MaxHeight { get; set; }
/// <summary>
/// Gets or sets the height of the auto grow_ min.
/// </summary>
/// <value>
/// The height of the auto grow_ min.
/// </value>
[XmlAttribute("autoGrow_minHeight")]
[Description("The minimum height that the editor can reach using the AutoGrow feature.")]
public int AutoGrow_MinHeight { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [auto grow_ on startup].
/// </summary>
/// <value>
/// <c>true</c> if [auto grow_ on startup]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("autoGrow_onStartup")]
[Description("Whether to have the auto grow happen on editor creation.")]
public bool AutoGrow_OnStartup { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [auto paragraph].
/// </summary>
/// <value>
/// <c>true</c> if [auto paragraph]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("autoParagraph")]
[Description("Whether automatically create wrapping blocks around inline contents inside document body, this helps to ensure the integrality of the block enter mode.")]
public bool AutoParagraph { get; set; }
/// <summary>
/// Gets or sets the auto save delay.
/// </summary>
/// <value>
/// The auto save delay.
/// </value>
[XmlAttribute("autosave_delay")]
[Description("Auto-save time delay (in seconds)")]
public int AutoSave_Delay { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [auto update element].
/// </summary>
/// <value>
/// <c>true</c> if [auto update element]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("autoUpdateElement")]
[Description("Whether the replaced element is to be updated automatically when posting the form containing the editor.")]
public bool AutoUpdateElement { get; set; }
/// <summary>
/// Gets or sets the index of the base float Z.
/// </summary>
/// <value>
/// The index of the base float Z.
/// </value>
[XmlAttribute("baseFloatZIndex")]
[Description("The base Z-index for floating dialog windows and popups.")]
public int BaseFloatZIndex { get; set; }
/// <summary>
/// Gets or sets the base HREF.
/// </summary>
/// <value>
/// The base HREF.
/// </value>
[XmlAttribute("baseHref")]
[Description("The base href URL used to resolve relative and absolute URLs in the editor content.")]
public string BaseHref { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [basic entities].
/// </summary>
/// <value>
/// <c>true</c> if [basic entities]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("basicEntities")]
[Description("Whether to escape basic HTML entities in the document, including: nbsp, gt, lt, amp")]
public bool BasicEntities { get; set; }
/// <summary>
/// Gets or sets the blocked keystrokes.
/// </summary>
/// <value>
/// The blocked keystrokes.
/// </value>
[XmlAttribute("blockedKeystrokes")]
[Description("The keystrokes that are blocked by default as the browser implementation is buggy. These default keystrokes are handled by the editor.")]
public string BlockedKeystrokes { get; set; }
/// <summary>
/// Gets or sets the body class.
/// </summary>
/// <value>
/// The body class.
/// </value>
[XmlAttribute("bodyClass")]
[Description("Sets the class attribute to be used on the body element of the editing area. This can be useful when you intend to reuse the original CSS file you are using on your live website and want to assign the editor the same class as the section that will include the contents. In this way class-specific CSS rules will be enabled.")]
public string BodyClass { get; set; }
/// <summary>
/// Gets or sets the body id.
/// </summary>
/// <value>
/// The body id.
/// </value>
[XmlAttribute("bodyId")]
[Description("Sets the id attribute to be used on the body element of the editing area. This can be useful when you intend to reuse the original CSS file you are using on your live website and want to assign the editor the same ID as the section that will include the contents. In this way ID-specific CSS rules will be enabled.")]
public string BodyId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [browser context menu on CTRL].
/// </summary>
/// <value>
/// <c>true</c> if [browser context menu on CTRL]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("browserContextMenuOnCtrl")]
[Description("Whether to show the browser native context menu when the Ctrl or Meta (Mac) key is pressed on opening the context menu with the right mouse button click or the Menu key.")]
public bool BrowserContextMenuOnCtrl { get; set; }
/// <summary>
/// Gets or sets the type of the clipboard_ default content.
/// </summary>
/// <value>
/// The type of the clipboard_ default content.
/// </value>
[XmlAttribute("clipboard_defaultContentType")]
[Description("The default content type is used when pasted data cannot be clearly recognized as HTML or text.")]
public string Clipboard_DefaultContentType { get; set; }
/// <summary>
/// Gets or sets the code mirror.
/// </summary>
/// <value>
/// The code mirror.
/// </value>
public CodeMirror CodeMirror { get; set; }
/// <summary>
/// Gets or sets the color button_ back style.
/// </summary>
/// <value>
/// The color button_ back style.
/// </value>
[XmlAttribute("colorButton_backStyle")]
[Description("Stores the style definition that applies the text background color.")]
public string ColorButton_BackStyle { get; set; }
/// <summary>
/// Gets or sets the color button_ colors.
/// </summary>
/// <value>
/// The color button_ colors.
/// </value>
[XmlAttribute("colorButton_colors")]
[Description("Defines the colors to be displayed in the color selectors. This is a string containing hexadecimal notation for HTML colors, without the '#' prefix.")]
public string ColorButton_Colors { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [color button_ enable more].
/// </summary>
/// <value>
/// <c>true</c> if [color button_ enable more]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("colorButton_enableMore")]
[Description("Whether to enable the More Colors button in the color selectors.")]
public bool ColorButton_EnableMore { get; set; }
/// <summary>
/// Gets or sets the color button_ fore style.
/// </summary>
/// <value>
/// The color button_ fore style.
/// </value>
[XmlAttribute("colorButton_foreStyle")]
[Description("Stores the style definition that applies the text foreground color.")]
public string ColorButton_ForeStyle { get; set; }
/// <summary>
/// Gets or sets the contents CSS.
/// </summary>
/// <value>
/// The contents CSS.
/// </value>
[XmlAttribute("contentsCss")]
[Description("The CSS file(s) to be used to apply style to the contents. It should reflect the CSS used in the final pages where the contents are to be used.")]
public string ContentsCss { get; set; }
/// <summary>
/// Gets or sets the contents lang direction.
/// </summary>
/// <value>
/// The contents lang direction.
/// </value>
[XmlAttribute("contentsLangDirection")]
[Description("The writting direction of the language used to write the editor contents.")]
public LanguageDirection ContentsLangDirection { get; set; }
/// <summary>
/// Gets or sets the contents language.
/// </summary>
/// <value>
/// The contents language.
/// </value>
[XmlAttribute("contentsLanguage")]
[Description("Language code of the writting language which is used to author the editor contents.")]
public string ContentsLanguage { get; set; }
/// <summary>
/// Gets or sets the core styles_ bold.
/// </summary>
/// <value>
/// The core styles_ bold.
/// </value>
[XmlAttribute("coreStyles_bold")]
[Description("The style definition that applies the bold style to the text.")]
public string CoreStyles_Bold { get; set; }
/// <summary>
/// Gets or sets the core styles_ italic.
/// </summary>
/// <value>
/// The core styles_ italic.
/// </value>
[XmlAttribute("coreStyles_italic")]
[Description("The style definition that applies the italics style to the text.")]
public string CoreStyles_Italic { get; set; }
/// <summary>
/// Gets or sets the core styles_ strike.
/// </summary>
/// <value>
/// The core styles_ strike.
/// </value>
[XmlAttribute("coreStyles_strike")]
[Description("The style definition that applies the strike-through style to the text.")]
public string CoreStyles_Strike { get; set; }
/// <summary>
/// Gets or sets the core styles_ subscript.
/// </summary>
/// <value>
/// The core styles_ subscript.
/// </value>
[XmlAttribute("coreStyles_subscript")]
[Description("The style definition that applies the subscript style to the text.")]
public string CoreStyles_Subscript { get; set; }
/// <summary>
/// Gets or sets the core styles_ superscript.
/// </summary>
/// <value>
/// The core styles_ superscript.
/// </value>
[XmlAttribute("coreStyles_superscript")]
[Description("The style definition that applies the superscript style to the text.")]
public string CoreStyles_Superscript { get; set; }
/// <summary>
/// Gets or sets the core styles_ underline.
/// </summary>
/// <value>
/// The core styles_ underline.
/// </value>
[XmlAttribute("coreStyles_underline")]
[Description("The style definition that applies the underline style to the text.")]
public string CoreStyles_Underline { get; set; }
/// <summary>
/// Gets or sets the custom config.
/// </summary>
/// <value>
/// The custom config.
/// </value>
[XmlAttribute("customConfig")]
[Description("The URL path for the custom configuration file to be loaded. If not overloaded with inline configuration, it defaults to the config.js file present in the root of the CKEditor installation directory.")]
public string CustomConfig { get; set; }
/// <summary>
/// Gets or sets the data indentation chars.
/// </summary>
/// <value>
/// The data indentation chars.
/// </value>
[XmlAttribute("dataIndentationChars")]
[Description("The characters to be used for indenting the HTML produced by the editor.")]
public string DataIndentationChars { get; set; }
/// <summary>
/// Gets or sets the default language.
/// </summary>
/// <value>
/// The default language.
/// </value>
[XmlAttribute("defaultLanguage")]
[Description("The language to be used if the language setting is left empty and it is not possible to localize the editor to the user language.")]
public string DefaultLanguage { get; set; }
/// <summary>
/// Gets or sets the default link type.
/// </summary>
/// <value>
/// The enter default link type.
/// </value>
[XmlAttribute("defaultLinkType")]
[Description("Sets the Default Link Type for the Link Dialog ")]
public LinkType DefaultLinkType { get; set; }
/// <summary>
/// Gets or sets the developer tools_ styles.
/// </summary>
/// <value>
/// The developer tools_ styles.
/// </value>
[XmlAttribute("devtools_styles")]
[Description("A setting that stores CSS rules to be injected into the page with styles to be applied to the tooltip element.")]
public string Devtools_Styles { get; set; }
/// <summary>
/// Gets or sets the color of the dialog_ background cover.
/// </summary>
/// <value>
/// The color of the dialog_ background cover.
/// </value>
[XmlAttribute("dialog_backgroundCoverColor")]
[Description("The color of the dialog background cover. It should be a valid CSS color string.")]
public string Dialog_BackgroundCoverColor { get; set; }
/// <summary>
/// Gets or sets the dialog_ background cover opacity.
/// </summary>
/// <value>
/// The dialog_ background cover opacity.
/// </value>
[XmlAttribute("dialog_backgroundCoverOpacity")]
[Description("The opacity of the dialog background cover. It should be a number within the range 0.0 to 1.0.")]
public double Dialog_BackgroundCoverOpacity { get; set; }
/// <summary>
/// Gets or sets the dialog_ buttons order.
/// </summary>
/// <value>
/// The dialog_ buttons order.
/// </value>
[XmlAttribute("dialog_buttonsOrder")]
[Description("The guideline to follow when generating the dialog buttons.")]
public string Dialog_ButtonsOrder { get; set; }
/// <summary>
/// Gets or sets the dialog_ magnet distance.
/// </summary>
/// <value>
/// The dialog_ magnet distance.
/// </value>
[XmlAttribute("dialog_magnetDistance")]
[Description("The distance of magnetic borders used in moving and resizing dialogs, measured in pixels.")]
public int Dialog_MagnetDistance { get; set; }
/// <summary>
/// Gets or sets the dialog_ no confirm cancel.
/// </summary>
/// <value>
/// The dialog_ no confirm cancel.
/// </value>
[XmlAttribute("dialog_noConfirmCancel")]
[Description("Tells if user should not be asked to confirm close, if any dialog field was modified. By default it is set to false meaning that the confirmation dialog will be shown.")]
public int Dialog_NoConfirmCancel { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [dialog_ startup focus tab].
/// </summary>
/// <value>
/// <c>true</c> if [dialog_ startup focus tab]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("dialog_startupFocusTab")]
[Description("If the dialog has more than one tab, put focus into the first tab as soon as dialog is opened.")]
public bool Dialog_StartupFocusTab { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [disable native spell checker].
/// </summary>
/// <value>
/// <c>true</c> if [disable native spell checker]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("disableNativeSpellChecker")]
[Description("Disables the built-in words spell checker if browser provides one.")]
public bool DisableNativeSpellChecker { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [disable native table handles].
/// </summary>
/// <value>
/// <c>true</c> if [disable native table handles]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("disableNativeTableHandles")]
[Description("Disables the table tools offered natively by the browser (currently Firefox only) to make quick table editing operations, like adding or deleting rows and columns.")]
public bool DisableNativeTableHandles { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [disable object resizing].
/// </summary>
/// <value>
/// <c>true</c> if [disable object resizing]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("disableObjectResizing")]
[Description("Disables the ability of resize objects (image and tables) in the editing area.")]
public bool DisableObjectResizing { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [disable readonly styling].
/// </summary>
/// <value>
/// <c>true</c> if [disable readonly styling]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("disableReadonlyStyling")]
[Description("Disables inline styling on read-only elements.")]
public bool DisableReadonlyStyling { get; set; }
/// <summary>
/// Gets or sets the content of the dis allowed.
/// </summary>
/// <value>
/// The content of the dis allowed.
/// </value>
[XmlAttribute("disallowedContent")]
[Description("Disallowed content rules. They have precedence over allowed content rules. Read more in the Disallowed Content guide")]
public string DisAllowedContent { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [div_ wrap table].
/// </summary>
/// <value>
/// <c>true</c> if [div_ wrap table]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("div_wrapTable")]
[Description("Whether to wrap the whole table instead of indivisual cells when created DIV in table cell.")]
public bool Div_WrapTable { get; set; }
/// <summary>
/// Gets or sets the type of the doc.
/// </summary>
/// <value>
/// The type of the doc.
/// </value>
[XmlAttribute("docType")]
[Description("Sets the DOCTYPE to be used when loading the editor content as HTML.")]
public string DocType { get; set; }
/// <summary>
/// Gets or sets the keystrokes.
/// </summary>
/// <value>
/// The keystrokes.
/// </value>
[XmlAttribute("keystrokes")]
[Description("A list associating keystrokes to editor commands. Each element in the list is an array where the first item is the keystroke, and the second is the name of the command to be executed.")]
public string EditorKeystrokes { get; set; }
/// <summary>
/// Gets or sets the email protection.
/// </summary>
/// <value>
/// The email protection.
/// </value>
[XmlAttribute("emailProtection")]
[Description("The e-mail address anti-spam protection option. The protection will be applied when creating or modifying e-mail links through the editor interface.")]
public string EmailProtection { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [enable tab key tools].
/// </summary>
/// <value>
/// <c>true</c> if [enable tab key tools]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("enableTabKeyTools")]
[Description("Allow context-sensitive tab key behaviors.")]
public bool EnableTabKeyTools { get; set; }
/// <summary>
/// Gets or sets the enter mode.
/// </summary>
/// <value>
/// The enter mode.
/// </value>
[XmlAttribute("enterMode")]
[Description("Sets the behavior of the Enter key. It also determines other behavior rules of the editor, like whether the br element is to be used as a paragraph separator when indenting text. ")]
public EnterModus EnterMode { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this <see cref="EditorConfig" /> is entities.
/// </summary>
/// <value>
/// <c>true</c> if entities; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("entities")]
[Description("Whether to use HTML entities in the output.")]
public bool Entities { get; set; }
/// <summary>
/// Gets or sets the entities_additional.
/// </summary>
/// <value>
/// The entities_additional.
/// </value>
[XmlAttribute("entities_additional")]
[Description("A comma separated list of additional entities to be used. Entity names or numbers must be used in a form that excludes the '&' prefix and the ';' ending.")]
public string Entities_additional { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [entities_ greek].
/// </summary>
/// <value>
/// <c>true</c> if [entities_ greek]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("entities_greek")]
[Description("Whether to convert some symbols, mathematical symbols, and Greek letters to HTML entities. This may be more relevant for users typing text written in Greek. The list of entities can be found in the [W3C HTML 4.01 Specification, section 24.3.1(http://www.w3.org/TR/html4/sgml/entities.html#h-24.3.1).")]
public bool Entities_Greek { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [entities_ latin].
/// </summary>
/// <value>
/// <c>true</c> if [entities_ latin]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("entities_latin")]
[Description("Whether to convert some Latin characters (Latin alphabet No. 1, ISO 8859-1) to HTML entities. The list of entities can be found in the W3C HTML 4.01 Specification, section 24.2.1.")]
public bool Entities_Latin { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [entities_ process numerical].
/// </summary>
/// <value>
/// <c>true</c> if [entities_ process numerical]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("entities_processNumerical")]
[Description("Whether to convert all remaining characters not included in the ASCII character table to their relative decimal numeric representation of HTML entity. When set to force, it will convert all entities into this format.")]
public bool Entities_ProcessNumerical { get; set; }
/// <summary>
/// Gets or sets the content of the extra allowed.
/// </summary>
/// <value>
/// The content of the extra allowed.
/// </value>
[XmlAttribute("extraAllowedContent")]
[Description("This option makes it possible to set additional allowed content rules for CKEDITOR.editor.filter.")]
public string ExtraAllowedContent { get; set; }
/// <summary>
/// Gets or sets the extra plugins.
/// </summary>
/// <value>
/// The extra plugins.
/// </value>
[XmlAttribute("extraPlugins")]
[Description("A list of additional plugins to be loaded. This setting makes it easier to add new plugins without having to touch plugins setting.")]
public string ExtraPlugins { get; set; }
/// <summary>
/// Gets or sets the file browser browse URL.
/// </summary>
/// <value>
/// The file browser browse URL.
/// </value>
[XmlAttribute("filebrowserBrowseUrl")]
[Description("The location of an external file browser that should be launched when the Browse Server button is pressed. If configured, the Browse Server button will appear in the Link, Image, and Flash dialog windows")]
public string FileBrowserBrowseUrl { get; set; }
/// <summary>
/// Gets or sets the file browser flash browse URL.
/// </summary>
/// <value>
/// The file browser flash browse URL.
/// </value>
[XmlAttribute("filebrowserFlashBrowseUrl")]
[Description("The location of an external file browser that should be launched when the Browse Server button is pressed in the Flash dialog window.")]
public string FileBrowserFlashBrowseUrl { get; set; }
/// <summary>
/// Gets or sets the file browser flash upload URL.
/// </summary>
/// <value>
/// The file browser flash upload URL.
/// </value>
[XmlAttribute("filebrowserFlashUploadUrl")]
[Description("The location of the script that handles file uploads in the Flash dialog window.")]
public string FileBrowserFlashUploadUrl { get; set; }
/// <summary>
/// Gets or sets the file browser image browse URL.
/// </summary>
/// <value>
/// The file browser image browse URL.
/// </value>
[XmlAttribute("filebrowserImageBrowseUrl")]
[Description("The location of an external file browser that should be launched when the Browse Server button is pressed in the Image dialog window.")]
public string FileBrowserImageBrowseUrl { get; set; }
/// <summary>
/// Gets or sets the file browser image browse link URL.
/// </summary>
/// <value>
/// The file browser image browse link URL.
/// </value>
[XmlAttribute("filebrowserImageBrowseLinkUrl")]
[Description("The location of an external file browser that should be launched when the Browse Server button is pressed in the Image dialog window.")]
public string FilebrowserImageBrowseLinkUrl { get; set; }
/// <summary>
/// Gets or sets the file browser image upload URL.
/// </summary>
/// <value>
/// The file browser image upload URL.
/// </value>
[XmlAttribute("filebrowserImageUploadUrl")]
[Description("The location of the script that handles file uploads in the Image dialog window.")]
public string FileBrowserImageUploadUrl { get; set; }
/// <summary>
/// Gets or sets the file browser upload URL.
/// </summary>
/// <value>
/// The file browser upload URL.
/// </value>
[XmlAttribute("filebrowserUploadUrl")]
[Description("The location of the script that handles file uploads. If set, the Upload tab will appear in the Link, Image, and Flash dialog windows.")]
public string FileBrowserUploadUrl { get; set; }
/// <summary>
/// Gets or sets the file browser window features.
/// </summary>
/// <value>
/// The file browser window features.
/// </value>
[XmlAttribute("filebrowserWindowFeatures")]
[Description("The features to use in the file browser popup window.")]
public string FileBrowserWindowFeatures { get; set; }
/// <summary>
/// Gets or sets the height of the file browser window.
/// </summary>
/// <value>
/// The height of the file browser window.
/// </value>
[XmlAttribute("filebrowserWindowHeight")]
[Description("The height of the file browser popup window. It can be a number denoting a value in pixels or a percent string.")]
public string FileBrowserWindowHeight { get; set; }
/// <summary>
/// Gets or sets the width of the file browser window.
/// </summary>
/// <value>
/// The width of the file browser window.
/// </value>
[XmlAttribute("filebrowserWindowWidth")]
[Description("The width of the file browser popup window. It can be a number denoting a value in pixels or a percent string.")]
public string FileBrowserWindowWidth { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [fill empty blocks].
/// </summary>
/// <value>
/// <c>true</c> if [fill empty blocks]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("fillEmptyBlocks")]
[Description("Whether a filler text (non-breaking space entity) will be inserted into empty block elements in HTML output, this is used to render block elements properly with line-height When a function is instead specified, it'll be passed a CKEDITOR.htmlParser.element to decide whether adding the filler text by expecting a boolean return value.")]
public bool FillEmptyBlocks { get; set; }
/// <summary>
/// Gets or sets the find_ highlight.
/// </summary>
/// <value>
/// The find_ highlight.
/// </value>
[XmlAttribute("find_highlight")]
[Description("Defines the style to be used to highlight results with the find dialog.")]
public string Find_Highlight { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [flash add embed tag].
/// </summary>
/// <value>
/// <c>true</c> if [flash add embed tag]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("flashAddEmbedTag")]
[Description("Add <embed> tag as alternative: <object><embed></embed></object>.")]
public bool FlashAddEmbedTag { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [flash convert on edit].
/// </summary>
/// <value>
/// <c>true</c> if [flash convert on edit]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("flashConvertOnEdit")]
[Description("Use flashEmbedTagOnly and flashAddEmbedTag values on edit.")]
public bool FlashConvertOnEdit { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [flash embed tag only].
/// </summary>
/// <value>
/// <c>true</c> if [flash embed tag only]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("flashEmbedTagOnly")]
[Description("Save as <embed> tag only. This tag is unrecommended.")]
public bool FlashEmbedTagOnly { get; set; }
/// <summary>
/// Gets or sets the float space docked offset X.
/// </summary>
/// <value>
/// The float space docked offset X.
/// </value>
[XmlAttribute("floatSpaceDockedOffsetX")]
[Description("Along with floatSpaceDockedOffsetY it defines the amount of offset (in pixels) between float space and the editable left/right boundaries when space element is docked at either side of the editable.")]
public int FloatSpaceDockedOffsetX { get; set; }
/// <summary>
/// Gets or sets the float space docked offset Y.
/// </summary>
/// <value>
/// The float space docked offset Y.
/// </value>
[XmlAttribute("floatSpaceDockedOffsetY")]
[Description("Along with floatSpaceDockedOffsetX it defines the amount of offset (in pixels) between float space and the editable top/bottom boundaries when space element is docked at either side of the editable.")]
public int FloatSpaceDockedOffsetY { get; set; }
/// <summary>
/// Gets or sets the float space pinned offset X.
/// </summary>
/// <value>
/// The float space pinned offset X.
/// </value>
[XmlAttribute("floatSpacePinnedOffsetX")]
[Description("Along with floatSpacePinnedOffsetY it defines the amount of offset (in pixels) between float space and the view port boundaries when space element is pinned.")]
public int FloatSpacePinnedOffsetX { get; set; }
/// <summary>
/// Gets or sets the float space pinned offset Y.
/// </summary>
/// <value>
/// The float space pinned offset Y.
/// </value>
[XmlAttribute("floatSpacePinnedOffsetY")]
[Description("Along with floatSpacePinnedOffsetX it defines the amount of offset (in pixels) between float space and the view port boundaries when space element is pinned.")]
public int FloatSpacePinnedOffsetY { get; set; }
/// <summary>
/// Gets or sets the font size_ default label.
/// </summary>
/// <value>
/// The font size_ default label.
/// </value>
[XmlAttribute("fontSize_defaultLabel")]
[Description("")]
public string FontSize_DefaultLabel { get; set; }
/// <summary>
/// Gets or sets the font size_ sizes.
/// </summary>
/// <value>
/// The font size_ sizes.
/// </value>
[XmlAttribute("fontSize_sizes")]
[Description("The list of fonts size to be displayed in the Font Size combo in the toolbar. Entries are separated by semi-colons (';').")]
public string FontSize_Sizes { get; set; }
/// <summary>
/// Gets or sets the font size_ style.
/// </summary>
/// <value>
/// The font size_ style.
/// </value>
[XmlAttribute("fontSize_style")]
[Description("The style definition to be used to apply the font size in the text.")]
public string FontSize_Style { get; set; }
/// <summary>
/// Gets or sets the font_ default label.
/// </summary>
/// <value>
/// The font_ default label.
/// </value>
[XmlAttribute("font_defaultLabel")]
[Description("The text to be displayed in the Font combo is none of the available values matches the current cursor position or text selection.")]
public string Font_DefaultLabel { get; set; }
/// <summary>
/// Gets or sets the font_ names.
/// </summary>
/// <value>
/// The font_ names.
/// </value>
[XmlAttribute("font_names")]
[Description("The list of fonts names to be displayed in the Font combo in the toolbar. Entries are separated by semi-colons (';'), while it's possible to have more than one font for each entry, in the HTML way (separated by comma).")]
public string Font_Names { get; set; }
/// <summary>
/// Gets or sets the font_ style.
/// </summary>
/// <value>
/// The font_ style.
/// </value>
[XmlAttribute("font_style")]
[Description("The style definition to be used to apply the font in the text.")]
public string Font_Style { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [force enter mode].
/// </summary>
/// <value>
/// <c>true</c> if [force enter mode]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("forceEnterMode")]
[Description("Force the use of enterMode as line break regardless of the context. If, for example, enterMode is set to CKEDITOR.ENTER_P, pressing the Enter key inside a <div> element will create a new paragraph with <p> instead of a <div>")]
public bool ForceEnterMode { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [force paste as plain text].
/// </summary>
/// <value>
/// <c>true</c> if [force paste as plain text]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("forcePasteAsPlainText")]
[Description("Whether to force all pasting operations to insert on plain text into the editor, loosing any formatting information possibly available in the source text.")]
public bool ForcePasteAsPlainText { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [force simple ampersand].
/// </summary>
/// <value>
/// <c>true</c> if [force simple ampersand]; otherwise, <c>false</c>.
/// </value>
[XmlAttribute("forceSimpleAmpersand")]
[Description("Whether to force using '&' instead of '&' in elements attributes values, it's not recommended to change this setting for compliance with the W3C XHTML 1.0 standards (C.12, XHTML 1.0).")]
public bool ForceSimpleAmpersand { get; set; }
/// <summary>
/// Gets or sets the format_ address.
/// </summary>