Changeset 847

Show
Ignore:
Timestamp:
2007-09-19 17:43:47 (15 months ago)
Author:
fredck
Message:

Fixed #1266 : Introduced the HtmlEncodeOutput setting.

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

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

    r834 r847  
    247247        UpdateLinkedField : function() 
    248248        { 
    249                 FCK.LinkedField.value = FCK.GetXHTML( FCKConfig.FormatOutput ) ; 
     249                var value = FCK.GetXHTML( FCKConfig.FormatOutput ) ; 
     250                 
     251                if ( FCKConfig.HtmlEncodeOutput ) 
     252                        value = FCKTools.HTMLEncode( value ) ; 
     253                         
     254                FCK.LinkedField.value = value ; 
    250255                FCK.Events.FireEvent( 'OnAfterLinkedFieldUpdate' ) ; 
    251256        }, 
  • FCKeditor/trunk/fckconfig.js

    r837 r847  
    9595FCKConfig.PreserveSessionOnFileBrowser = false ; 
    9696FCKConfig.FloatingPanelsZIndex = 10000 ; 
     97FCKConfig.HtmlEncodeOutput = false ; 
    9798 
    9899FCKConfig.TemplateReplaceAll = true ; 
  • FCKeditor/trunk/_whatsnew.html

    r828 r847  
    8787                <li>The EditorAreaCSS config option can now also be set to a string of paths separated 
    8888                        by commas.</li> 
     89                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1266">#1266</a>] Introducing 
     90                        the HtmlEncodeOutput setting to instruct the editor to encode the posted data.</li> 
    8991        </ul> 
    9092        <p>