DHTMLX Docs & Samples Explorer

Index
dhtmlxeditor
API Methods

## Constructor of dhtmlXEditor

            var editor = new dhtmlXEditor(parent,name,width,type,index)

where

- parent - id of HTML element which will be used as parent ( or object itself
- skin - {string} name of skin, optional

          <div id='my_editor_here' style='width:600px; height:200px;'></div>
          <script>
          //common init code
          var editor = new dhtmlXEditor("my_editor_here");
          </script>

Starting from 2.5 version, editor can be initialized by object notation

          var editor = new dhtmlXEditor({
              some_option1:some_value_1,
              some_option2:some_value_2,
              ...
              some_optionN:some_value_N,
          })

List of supported options

    	editor = new dhtmlXEditor({
    		parent:"my_editor_here",
    		onFocusChanged:function(){
    			alert("Something changed...");
    		}
    	});