DHTMLX Docs & Samples Explorer

### Attach dhtmlxEditor to Accordion

Source

    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxaccordion.js"></script>
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxaccordion_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcontainer.js"></script>

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

    <div id="accordObj" style="position: relative; width: 320px; height: 400px;"></div>
    <script>var dhxAccord;
    function init() {
        dhxAccord = new dhtmlXAccordion("accordObj");
        dhxAccord.addItem("a1", "dhtmlxEditor");
        dhxAccord.addItem("a2", "b");
        dhxAccord.addItem("a3", "c");
        dhxAccord.openItem("a1");
        //;
        dhtmlx.image_path = "../../../dhtmlxEditor/codebase/imgs/";
        var editor = dhxAccord.cells("a1").attachEditor();
    }</script>