Changeset 247

Show
Ignore:
Timestamp:
2007-04-12 14:33:37 (3 years ago)
Author:
fredck
Message:

Fixed #351 : The content was being lost for images or comments only HTML inserted directly in the editor source or loaded in the editor.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckregexlib.js

    r223 r247  
    6060 
    6161// Empty elements may be <p></p> or even a simple opening <p> (see #211). 
    62 EmptyParagraph  : /^<([^ >]+)[^>]*>\s*(<\/\1>)?$/ , 
     62EmptyParagraph  : /^<(p|div|address|h\d|center)(?=[ >])[^>]*>\s*(<\/\1>)?$/ , 
    6363 
    64 EmptyOutParagraph : /^<([^ >]+)[^>]*>(?:\s*|&nbsp;)(<\/\1>)?$/ , 
     64EmptyOutParagraph : /^<(p|div|address|h\d|center)(?=[ >])[^>]*>(?:\s*|&nbsp;)(<\/\1>)?$/ , 
    6565 
    6666TagBody                 : /></ , 
  • FCKeditor/trunk/_whatsnew.html

    r246 r247  
    4949                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/350">#350</a>] The &lt;marquee&gt; 
    5050                        element will no longer append unwanted &lt;p&gt;&amp;nbsp;&lt;/p&gt; to the code.</li> 
     51                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/351">#351</a>] The content 
     52                        was being lost for images or comments only HTML inserted directly in the editor 
     53                        source or loaded in the editor.</li> 
    5154        </ul> 
    5255        <h3>