DHTMLX Docs & Samples Explorer

### Attach dhtmlxEditor to Layout

Source

    <link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxlayout.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxlayout_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxlayout.js"></script>
    <link rel="stylesheet" type="text/css" href="../../../dhtmlxEditor/codebase/skins/dhtmlxeditor_dhx_skyblue.css">
    <script src="../../../dhtmlxEditor/codebase/dhtmlxeditor.js"></script>
    <link rel="stylesheet" type="text/css" href="../../../dhtmlxToolbar/codebase/skins/dhtmlxtoolbar_dhx_skyblue.css">
    <script src="../../../dhtmlxToolbar/codebase/dhtmlxtoolbar.js"></script>
    <script src="../../codebase/dhtmlxcontainer.js"></script>

    <div id="parentId" style="position: relative; top: 20px; left: 20px; width: 600px; height: 400px; aborder: #B5CDE4 1px solid;"></div>
    <script>var dhxLayout,
    dhxEditor;
    function doOnLoad() {
        dhxLayout = new dhtmlXLayoutObject("parentId", "2E");
        dhtmlx.image_path = "../../../dhtmlxEditor/codebase/imgs/";
        dhxEditor = dhxLayout.cells("a").attachEditor();
    }</script>