Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    4
    Vote Rating
    0
    laurie is on a distinguished road

      0  

    Default HtmlEditor events not firing?

    HtmlEditor events not firing?


    I'm trying to create an IM-style chat dialog using the HtmlEditor widget for input capture. The problem is, I don't seem to be able to get any events fired. What I want to do is trap Enter key presses to capture the content of the HTML editor, clear it, and send the captured content to the server. The 'specialkeys' event seems like the right one to hook for this, but my handler function never gets called.

    Here's the test code I'm using:

    var editor = new Ext.form.HtmlEditor({
    id: 'chat-in',
    enableAlignments: false,
    enableFontSize: false,
    enableLinks: false,
    enableLists: false,
    enableSourceEdit: false
    });

    editor.on('specialkey', function(editor, evt) {
    alert('editor event: '+evt);
    }, this, this);

    for (e in [
    'disable', 'enable', 'beforeshow', 'show', 'beforehide', 'hide',
    'render', 'sync','push','resize','move','specialkey','blur']) {
    editor.on(e, function() { alert(e); });
    editor.addListener(e, function() { alert(e); });
    }

    No events get reported, though. What am I doing wrong?

    L.

  2. #2
    Sencha User MD's Avatar
    Join Date
    Mar 2007
    Posts
    178
    Vote Rating
    0
    MD is on a distinguished road

      0  

    Default


    Surprised this thread hasn't gotten any attention. I'm also experiencing the same issues with the HtmlEditor seemingly not firing it's events, and this is in a simplified test case to reduce other potential factors that may be causing it.

  3. #3
    Sencha User dangreenfield's Avatar
    Join Date
    Mar 2007
    Location
    Hawkes Bay, New Zealand
    Posts
    69
    Vote Rating
    0
    dangreenfield is on a distinguished road

      0  

    Same Here!

    Same Here!


    I can't figure it. It seems that I can't capture the event that I'm firing in the editor either.

  4. #4
    Sencha User dangreenfield's Avatar
    Join Date
    Mar 2007
    Location
    Hawkes Bay, New Zealand
    Posts
    69
    Vote Rating
    0
    dangreenfield is on a distinguished road

      0  

    Thumbs up Oh well...

    Oh well...


    Quote Originally Posted by dangreenfield View Post
    I can't figure it. It seems that I can't capture the event that I'm firing in the editor either.
    I think it was in the Ext.EventManager.on function. If I replace this:

    Ext.EventManager.on(this.editor, 'editorevent', this.onEditorEvent, this);

    with this:

    this.editor.on("editorevent", this.onEditorEvent, this);

    it works successfully. Go figure!

    UPDATE: Stupid me! Of course, Ext.EventManager.on requires a DOM element, not an Ext Element. Something to remember for the future!

Thread Participants: 2