Changes between Initial Version and Version 1 of Ticket #11342, comment 11


Ignore:
Timestamp:
Feb 21, 2014, 4:22:28 PM (11 years ago)
Author:
Ole K
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11342, comment 11

    initial v1  
    1313
    1414And I have to really clear the IE11 cache every time... But thats maybe because of my ASP.NET project
     15
     16As a workaround for ASP.NET i have added the following lines to CKEditorControl.cs:
     17
     18
     19
     20{{{
     21public override string Text
     22{
     23    get
     24    {
     25        return base.Text;
     26    }
     27    set
     28    {
     29        // Ole: clean up some stuff before saving
     30        value = System.Text.RegularExpressions.Regex.Replace(value, @"(<br /><br />&nbsp;)$", "");
     31        value = System.Text.RegularExpressions.Regex.Replace(value, @"<p>&nbsp;<p>&nbsp;<p>&nbsp;</p></p></p>$", "");
     32        // optionally clean all empty paragraphs
     33        value = System.Text.RegularExpressions.Regex.Replace(value, @"<p>&nbsp;</p>", "");
     34
     35        base.Text = value;
     36    }
     37}
     38}}}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy