[CLOSED] Html editor on focus

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Html editor on focus

    Hi,

    I want to make some control enable/disable on focus of HTML EDITOR.


    Thanks in advance.
    Tushar Thaker
    Last edited by Daniil; Mar 29, 2012 at 10:19 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunately, the focus/blur functionality is not supported by this editor.
    http://docs.sencha.com/ext-js/3-4/#!...orm.HtmlEditor
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    Unfortunately, the focus/blur functionality is not supported by this editor.
    http://docs.sencha.com/ext-js/3-4/#!...orm.HtmlEditor

    Above link is not working.. give javascript error.

    But my requirement is disable some control on focus of HTML Editor.
    There is a activate event but it fires first time.
    Is there any alternate way to do this ?

    Thanks
    Tushar Thaker
  4. #4
    Here is a possible solution I think:
    http://www.sencha.com/forum/showthread.php?113413
  5. #5
    Quote Originally Posted by Daniil View Post
    Here is a possible solution I think:
    http://www.sencha.com/forum/showthread.php?113413
    There are required username and password for above link.


    Thanks
    Tushar Thaker
  6. #6
    Condor (very experienced ExtJS forums member from ExtJS Community Support Team) wrote:

    What is the reason that HtmlEditor disables focus events and doesn't handle blur events on the IFRAME?

    Proof of concept:

    new Ext.form.HtmlEditor({
        width: 600,
        height: 200,
        // restore original focus and blur handling     
        initEvents: Ext.form.Field.prototype.initEvents,
        onFocus: Ext.form.Field.prototype.onFocus,
        listeners: {
            initialize: function (ed) { //attach focus/blur events on the IFRAME
                Ext.EventManager.on(ed.getWin(), 'focus', ed.onFocus, ed);
                Ext.EventManager.on(ed.getWin(), 'blur', ed.onBlur, ed);
            },
            focus: function () {
                console.log('focus');
            },
            blur: function () {
                console.log('blur');
            }
        },
        renderTo: Ext.getBody()
    });
    (the only problem with this is that it fires blur+focus events when selecting a font or switching to/from source edit mode)
  7. #7
    may i know the reason why we dont put 2 or more HTML EDITOR (Ext Net 1.0) in one page ?
  8. #8
    I don't think there are any problems to use several HtmlEditors on one page.

    Please clarify.
  9. #9
    Quote Originally Posted by Daniil View Post
    I don't think there are any problems to use several HtmlEditors on one page.

    Please clarify.
    http://dev.sencha.com/deploy/ext-1.1...l#event-render


    In above link there is a one note

    Note: In Ext 1.1 there can only be one HtmlEditor on a page at a time. This restriction does not apply in Ext 2.0+.

    That's why I am asking.

    Thanks
    Tushar
  10. #10
    Quote Originally Posted by nirajrdave View Post
    http://dev.sencha.com/deploy/ext-1.1...l#event-render

    Note: In Ext 1.1 there can only be one HtmlEditor on a page at a time. This restriction does not apply in Ext 2.0+.
    It's about ExtJS v1.1, not about Ext.NET v1.1.

    Ext.NET v1.x is based on the ExtJS 3.x. There is no such restriction.

    Ext.NET v1.3 and the last sources from SVN are based on ExtJS 3.4.
    http://docs.sencha.com/ext-js/3-4/
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Have cell, want to trigger editor and give focus...
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 21, 2011, 6:01 PM
  2. [CLOSED] How to Focus to the Next Editor in a GridPanel Row?
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 22, 2010, 9:18 PM
  3. [CLOSED] Grid Panel Editor Focus Problem
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 07, 2010, 11:55 AM
  4. Colum editor Focus
    By angelolsantos in forum 1.x Help
    Replies: 0
    Last Post: Feb 10, 2010, 8:33 AM
  5. [CLOSED] Focus in Textfield in Grid Panel Editor
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 24, 2009, 5:07 AM

Tags for this Thread

Posting Permissions