PDA

View Full Version : HTML-Editor is not editable after close Ext.Window



chris86
11 Jul 2014, 1:43 AM
Hey Community

I have a problem with a HTML-Editor.

In a Ext.Window I have a HTML-Editor, when I close the Ext.Window and reopen it the HTML-Editor is not selectable in the IE in firefox is everything fine.

When I just hide the window the HTML-Editor is selectable and editable.

The Window is called from a grid and i have to close the window because the row is blocked when the Window is open or hide.

The close function is follow:


Ext.getCmp('autoload-win').close();


Thanks for your help.

mitchellsimoens
14 Jul 2014, 4:57 AM
How are you creating the editor within the window?

chris86
16 Jul 2014, 3:24 AM
The editor is created as an item.



.....
,{
xtype: 'fieldset',
title: 'Comment',
id: 'PattSetComment',
autoHeight: true,
collapsible: false,
style: 'width:100%',
layout: 'column',
border: false,
defaults: {
bodyStyle:'padding:0px 0px 2px 0px'
},
items: [{
xtype: 'spacer',
height: 10,
orientation: 'vertical'
},{
xtype: 'htmleditor',
fieldLabel: 'Comment',
id: 'PattSetComField',
hideLabel: true,
enableFont: false,
enableColors: false,
frame: true,
layout: 'form',
enableKeyEvents: true,
height: 90,
width: 326,
readOnly: '',
hidden: '',
value: '',
enableFont: false,
enableLinks: false,
enableSourceEdit: false
//defaultValue: (Ext.isOpera || Ext.isIE) ? ' ' : '​',


}

chris86
18 Aug 2014, 1:06 AM
If I call the follow JavaScript function when I close the Ext.Window the htmleditor is editable when I reopen the window.



window.location.href=window.location.href;


But the function reloads the complete page.
Is there an other way to get it editable after reopen?