#135 Hide/Show editor in Firefox - Test Case 004

closed
None
5
2005-10-07
2005-07-26
No

Since the final 2.0, the test case 004 is not working
anymore because of changes in the editing mode
switching features.

To solve it, make the following changes:

1. In the "editor/_source/internals/fck_1_gecko.js" file,
look for the "FCK.MakeEditable" function and remove its
first two lines. It should look like this:

FCK.MakeEditable = function()
{
this.EditorWindow.document.designMode
= 'on' ;
this.EditorWindow.document.execCommand
( 'useCSS', false, !FCKConfig.GeckoUseSPAN ) ;
}

2. In the "_testcases/004.html" file, in the "Show()"
function, replace the following lines:

oEditor.SwitchEditMode() ;
oEditor.SwitchEditMode() ;

with:

oEditor.MakeEditable() ;

3. Rebuild the compressed files using the Packager.

That's it... it should now work well on Firefox.

FredCK

Discussion

  • Frederico Caldeira Knabben

    • status: open --> closed
     
  • Frederico Caldeira Knabben

    Logged In: YES
    user_id=572424

    This patch has been included in the last version.

     
  • Josh

    Josh - 2006-06-27

    Logged In: YES
    user_id=1547098

    testcase 004 still doesn't work with FCK 2.3 in FF 1.0.4

    the javascript debugger says: "Error:
    FCKTools.GetElementWindow(A) has no properties
    Source File: http://.../editor/js/fckeditorcode_gecko.js

    Works fine in IE and newer versions of FF.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks