Page 5 of 9 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 87

Thread: [2.0 A.1] FCKeditor Form Field Extention

  1. #41

    Default

    The module above works only with FCKeditor versions less than 2.6, I tested it, and found that it works correctly only in Opera.

    FCKEditor version 2.5 works in all browsers, but IE have a problem - It closes itself with internal error message after several getValue/setValue operations.
    IE does this operations correct as expected, but after 2-3 (or sometimes 20-30) operations it just shuts up with the error.

    It looks like the only problem for me to completly integrate FCKeditor into Ext, and I really dont know what to do with it.

    Does anyone have an idea what happens ?
    I can make a demo if needed..

  2. #42
    Ext User mirage's Avatar
    Join Date
    Apr 2007
    Location
    Wisconsin, USA
    Posts
    114

    Default

    Hi,

    I've developed a new ux that works with 2.6+ and has other goodies such as complete replacement of the FCK dialogs with Ext dialogs. I'll be sharing that soon.

    -m

  3. #43

    Default

    mirage, thank you.
    Your effort is very appreciated

  4. #44
    Ext User m00t's Avatar
    Join Date
    Feb 2008
    Location
    Belarus
    Posts
    10

    Default

    I have some troubles with this extension. It works fine in FF and Opera, but not in IE. Sometimes it works, but IE shows an error in FCKeditor source. But sometimes IE shows error "Can't execute code from a freed script" and BasicForm (in FormPanel) is not submitted ( nothig is sent TO server and "failure" function is called ). Any ideas? Does someone have similar problems?

  5. #45
    Ext User m00t's Avatar
    Join Date
    Feb 2008
    Location
    Belarus
    Posts
    10

    Default

    samadhi:
    Did you receive a "Can't execute code from a freed script" error? Then check please if an error occures when the instance name have changed.

    Some ideas from me and debugger and 5:48 AM...

    /_source/fckeditorapi.js:42
    We see an FCKeditorAPI object. Every time when we create an editor instance, it add itself to FCKeditorAPI.Instances:
    Code:
        FCKeditorAPI.Instances[ FCK.Name ] = FCK ;
    Stack:
    fckeditor.html:172
    fckeditorapi.js:139

    And every time when a form with editor instances is submitted FCKeditorAPI._FormSubmit (fckeditorapi.js:52) is called. But old instances of editor are in the FCKeditorAPI.Instances container. Frames where they are created are destroyed and anonymous functions such as FCK.GetParentForm based (fck.js:54) destroyed too. When we try to call this function (fckeditorapi.js:57), IE throws the "Can't execute code from a freed script" error.

    I haven't find nothing better then destroy an old instances when their form is submitted.

    fckeditorapi.js:57
    Code:
    if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )
        oEditor.UpdateLinkedField() ;
    I've replacet with this

    Code:
    if ( oEditor != undefined && oEditor.GetParentForm && oEditor.GetParentForm() == this )
    {
        oEditor.UpdateLinkedField() ;  
        FCKeditorAPI.Instances[ name ] = undefined
    }
    Now my script works fine, but I don't like this solution.

    Does anyone have ideas about it?

    __ UPDATED __
    Hm.. I've solved the problem more easy... Just add "onDestroy" handler to FCKeditor constructor:
    Code:
    Ext.form.FCKeditor = function(config){
        this.config = config;
        Ext.form.FCKeditor.superclass.constructor.call(this, config);
        this.FCKid=0;
        this.MyisLoaded=false;
        this.MyValue='';
        this.on('destroy', function(){
            delete FCKeditorAPI.Instances[ config.name ];
        });
    };

  6. #46

    Default

    I didnt see such error, but the IE behavior was the same as you described.

    I tested your code, and now it works much more stable !

    Thank you!

  7. #47
    Ext User m00t's Avatar
    Join Date
    Feb 2008
    Location
    Belarus
    Posts
    10

    Default

    I should read posts more carefully. Tvaland already wrote the same:
    http://extjs.com/forum/showthread.ph...702#post182702

    I think the author of this extension should update the source code in the first post.

  8. #48

    Default multiplied instances

    FCKeditor works fine if there is only one instances running.
    The second doesn't get in the INstances list, and therefore is not usable.
    Any idea?

  9. #49

    Default This extand validate method always return false!

    This extand validate method always return false!

  10. #50
    Sencha User
    Join Date
    Sep 2008
    Location
    Russia, SPb
    Posts
    25

    Default

    I use the latest code from this thread with all further patches. In FF everything works, but in IE6 no editor is even shown while no errors occur. Just empty area without any errors... What is wrong?

Page 5 of 9 FirstFirst ... 34567 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •