Html editor in a window : HTML Editor « Ext JS « JavaScript DHTML






Html editor in a window

  
<html>
<head>
<title>Hello World Window</title>
<link rel="stylesheet" type="text/css" href="ext-3.0.0/resources/css/ext-all.css" />
<script type="text/javascript" src="ext-3.0.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-3.0.0/ext-all.js"></script>

</head>
<body>
<script type="text/javascript">
Ext.onReady(function() {
    Ext.QuickTips.init();
    
    var htmlEditor = {
      xtype      : 'htmleditor',
      fieldLabel : "Enter in any text",
      anchor     : '100% 100%'
    }
      
    new Ext.Window({
      title      : '',
      layout     : 'form',
      labelWidth : 100,
      height     : 300,
      width      : 640,
      bodyStyle  : 'padding: 5px',
      items      : htmlEditor
    }).show();
});
</script> 
<div id='div1'>asdf</div>
</body>
</html>

   
    
  








Related examples in the same category

1.Create a HTML editor
2.HtmlEditor Example