Ticket #7590: 7590_2.patch
File 7590_2.patch, 3.4 KB (added by , 12 years ago) |
---|
-
CKEditor.NET/CKEditorConfig.cs
1094 1094 /// List of regular expressions to be executed over the input HTML, indicating HTML source code that matched must not present in WYSIWYG mode for editing. 1095 1095 /// Default Value: [] 1096 1096 /// </summary> 1097 [CKSerializable(IsObject = true)] 1098 public object[] protectedSource { get; set; } 1097 public string [] protectedSource { get; set; } 1099 1098 1100 1099 /// <summary> 1101 1100 /// The dialog contents to removed. It's a string composed by dialog name and tab name with a colon between them. … … 1777 1776 GlobalConfigObj.pasteFromWordRemoveStyles = false; 1778 1777 // todo 1779 1778 //this.plugins = string.Empty; 1780 GlobalConfigObj.protectedSource = new object[0];1779 GlobalConfigObj.protectedSource = new string[0]; 1781 1780 GlobalConfigObj.removeDialogTabs = string.Empty; 1782 1781 GlobalConfigObj.removeFormatAttributes = "class,style,lang,width,height,align,hspace,valign"; 1783 1782 GlobalConfigObj.removeFormatTags = "b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var"; -
CKEditor.NET/CKEditorControl.cs
91 91 92 92 [Category("CKEditor Basic Settings")] 93 93 [Description("The height of editing area( content ), in relative or absolute, e.g. 30px, 5em. Note: Percentage unit is not supported yet.e.g. 30%.")] 94 [DefaultValue( "200")]94 [DefaultValue(typeof(System.Web.UI.WebControls.Unit), "200px")] 95 95 public override Unit Height 96 96 { 97 97 get … … 120 120 121 121 [Category("CKEditor Basic Settings")] 122 122 [Description("The editor width in CSS size format or pixel integer.")] 123 [DefaultValue( "100%")]123 [DefaultValue(typeof(System.Web.UI.WebControls.Unit), "100%")] 124 124 public override Unit Width 125 125 { 126 126 get … … 480 480 [PersistenceMode(PersistenceMode.Attribute)] 481 481 [Category("CKEditor Other Settings")] 482 482 [Description("List of classes to use for indenting the contents. If it's null, no classes will be used and instead the #indentUnit and #indentOffset properties will be used.")] 483 [DefaultValue( "")]483 [DefaultValue(typeof(Array), null)] 484 484 public string[] IndentClasses { get { return config.indentClasses; } set { config.indentClasses = value; } } 485 485 486 486 [Category("CKEditor Other Settings")] … … 527 527 [PersistenceMode(PersistenceMode.Attribute)] 528 528 [Category("CKEditor Other Settings")] 529 529 [Description("List of regular expressions to be executed over the input HTML, indicating HTML source code that matched must not present in WYSIWYG mode for editing.")] 530 [DefaultValue("")] 531 public string[] ProtectedSource 532 { 533 get 534 { 535 string[] retVal = new string[config.protectedSource.Length]; 536 try { retVal = (string[])config.protectedSource; } 537 catch { } 538 return retVal; 539 } 540 set { config.protectedSource = value; } 541 } 530 [DefaultValue(typeof(Array), null)] 531 public string[] ProtectedSource { get { return config.protectedSource; } set { config.protectedSource = value; } } 542 532 543 533 [Category("CKEditor Other Settings")] 544 534 [Description(@"The dialog contents to removed. It's a string composed by dialog name and tab name with a colon between them.