1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    nbritez_sisdam is on a distinguished road

      0  

    Default htmleditor issue

    htmleditor issue


    Hi community,

    For a few last days, I was working with the htmleditor component.
    I have two editors into a panel, and these, into a tab. When I have more than one editor with their parent panel, some strange error happen: since the second editor, the text area was disappear.
    I'm attaching a screenshot to show you the issue.
    Attached Images

  2. #2
    Sencha User Ronhead's Avatar
    Join Date
    May 2008
    Location
    Santiasko,Chile
    Posts
    38
    Vote Rating
    0
    Ronhead is on a distinguished road

      0  

    Default


    the ids or names are differents?
    you can post the source about you 2 htmlfields

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    nbritez_sisdam is on a distinguished road

      0  

    Default


    The htmleditor component is stored into data var, may exists a lot of them.
    HTML Code:
    var data = [{
        xtype: 'panel',
        style: 'margin: 5px 0 0 0',
        layout: 'fit',
        items: [{
            xtype: 'htmleditor',
            submitValue: false,
            name: options.unicSecId,
            id: options.unicSecId,
            hideLabel: true,
            height: 400,
            pending: !! element.url,
            listeners: {
                scope: this,
                afterrender: function (cmp) {
                    if(element.url) {
                        Ext.Ajax.request({
                            url: element.url,
                            success: function (response) {
                                cmp.setValue(response.responseText);
                                cmp.pending = false;
                            }
                        });
                    }
                }
            }
        }]
    }];

    "panel" is a tab of tabpanel component, as above, may exists a lot of them too.
    HTML Code:
    panel.add({
        xtype: 'panel',
        style: 'padding: 10px 10px 0 10px; margin: 2px 2px 0 2px;',
        title: element.name,
        tools: [{
            id: 'minus',
            qtip: this.Colapsar,
            scope: this,
            handler: function (event, toolEl, panel, tc) {
                panel.toggleCollapse(true);
                if(toolEl.dom.className == 'x-tool x-tool-plus') {
                    toolEl.dom.className = 'x-tool x-tool-minus';
                    toolEl.dom.qtip = this.Colapsar, panel.header.removeClass('round5');
                } else {
                    toolEl.dom.className = 'x-tool x-tool-plus';
                    toolEl.dom.qtip = this.Expandir, panel.header.addClass('round5');
                }
            }
        }],
        items: [{
            xtype: 'panel',
            layout: element.type == 'DaterangeReference' ? 'form' : false,
            bodyCssClass: 'roundBottom5',
            style: 'padding: 5px 10px 10px 10px; border-width: 0 1px 1px 1px; border-style: solid; border-color: #99BBE8;',
            items: [data]
        }]
    });

    Each htmleditor has an own unique id.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi