Ticket #1607: 1607.patch

File 1607.patch, 3.5 KB (added by Alfonso Martínez de Lizarrondo, 16 years ago)

Proposed patch

  • editor/_source/classes/fckeditingarea.js

     
    211211                        // Tell Gecko to use or not the <SPAN> tag for the bold, italic and underline.
    212212                        try
    213213                        {
    214                                 oDoc.execCommand( 'styleWithCSS', false, FCKConfig.GeckoUseSPAN ) ;
     214                                oDoc.execCommand( 'styleWithCSS', false, false ) ;
    215215                        }
    216216                        catch (e)
    217217                        {
    218218                                // As evidenced here, useCSS is deprecated in favor of styleWithCSS:
    219219                                // http://www.mozilla.org/editor/midas-spec.html
    220                                 oDoc.execCommand( 'useCSS', false, !FCKConfig.GeckoUseSPAN ) ;
     220                                oDoc.execCommand( 'useCSS', false, true ) ;
    221221                        }
    222222
    223223                        // Analyzing Firefox 1.5 source code, it seams that there is support for a
  • fckconfig.js

     
    7373FCKConfig.FormatOutput          = true ;
    7474FCKConfig.FormatIndentator      = '    ' ;
    7575
    76 FCKConfig.GeckoUseSPAN  = false ;
    7776FCKConfig.StartupFocus  = false ;
    7877FCKConfig.ForcePasteAsPlainText = false ;
    7978FCKConfig.AutoDetectPasteFromWord = true ;      // IE only.
  • fckeditor.cfc

     
    188188        lConfigKeys = lConfigKeys & ",PreloadImages,PluginsPath,AutoDetectLanguage,DefaultLanguage,ContentLangDirection";
    189189        lConfigKeys = lConfigKeys & ",ProcessHTMLEntities,IncludeLatinEntities,IncludeGreekEntities,ProcessNumericEntities,AdditionalNumericEntities";
    190190        lConfigKeys = lConfigKeys & ",FillEmptyBlocks,FormatSource,FormatOutput,FormatIndentator";
    191         lConfigKeys = lConfigKeys & ",GeckoUseSPAN,StartupFocus,ForcePasteAsPlainText,AutoDetectPasteFromWord,ForceSimpleAmpersand";
     191        lConfigKeys = lConfigKeys & ",StartupFocus,ForcePasteAsPlainText,AutoDetectPasteFromWord,ForceSimpleAmpersand";
    192192        lConfigKeys = lConfigKeys & ",TabSpaces,ShowBorders,SourcePopup,ToolbarStartExpanded,ToolbarCanCollapse";
    193193        lConfigKeys = lConfigKeys & ",IgnoreEmptyParagraphValue,PreserveSessionOnFileBrowser,FloatingPanelsZIndex,TemplateReplaceAll,TemplateReplaceCheckbox";
    194194        lConfigKeys = lConfigKeys & ",ToolbarLocation,ToolbarSets,EnterMode,ShiftEnterMode,Keystrokes";
  • fckeditor.cfm

     
    9595                lConfigKeys = lConfigKeys & ",PreloadImages,PluginsPath,AutoDetectLanguage,DefaultLanguage,ContentLangDirection";
    9696                lConfigKeys = lConfigKeys & ",ProcessHTMLEntities,IncludeLatinEntities,IncludeGreekEntities,ProcessNumericEntities,AdditionalNumericEntities";
    9797                lConfigKeys = lConfigKeys & ",FillEmptyBlocks,FormatSource,FormatOutput,FormatIndentator";
    98                 lConfigKeys = lConfigKeys & ",GeckoUseSPAN,StartupFocus,ForcePasteAsPlainText,AutoDetectPasteFromWord,ForceSimpleAmpersand";
     98                lConfigKeys = lConfigKeys & ",StartupFocus,ForcePasteAsPlainText,AutoDetectPasteFromWord,ForceSimpleAmpersand";
    9999                lConfigKeys = lConfigKeys & ",TabSpaces,ShowBorders,SourcePopup,ToolbarStartExpanded,ToolbarCanCollapse";
    100100                lConfigKeys = lConfigKeys & ",IgnoreEmptyParagraphValue,PreserveSessionOnFileBrowser,FloatingPanelsZIndex,TemplateReplaceAll,TemplateReplaceCheckbox";
    101101                lConfigKeys = lConfigKeys & ",ToolbarLocation,ToolbarSets,EnterMode,ShiftEnterMode,Keystrokes";
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy