Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active March 10, 2019 12:15
Show Gist options
  • Save ezhov-da/47b1dc89da860ed8d6911d986425e09c to your computer and use it in GitHub Desktop.
Save ezhov-da/47b1dc89da860ed8d6911d986425e09c to your computer and use it in GitHub Desktop.
extjs htmleditor
Ext.tip.QuickTipManager.init(); // enable tooltips
Ext.onReady(function(){
var panel=Ext.create('Ext.Panel', {
title: 'Приложение',
id: 'myPanel',
layout: 'hbox',
items:[
{
xtype: 'panel',
title: 'Test',
items: [
{
xtype: 'htmleditor',
id: 'editor',
listeners: {
change : function(th, newValue, oldValue, eOpts){
var val = Ext.getCmp('editor').getValue();
console.log(val);
Ext.getCmp('out').update(val);
}
}
}
]
},
{
xtype: 'panel',
id: 'out',
}
],
renderTo: Ext.getBody()
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment