DEXT5 Editor :: Config :: AutoDestroy

config.AutoDestroy

에디터 언로드 시 메모리 해제 여부를 설정합니다.

remarks

destroy 여부는 Use 값으로 설정합니다.
기본값은 0이고, 1로 설정하면 에디터 언로드 시 destroy합니다.

destroy 시 커서를 다른 객체로 옮기는 설정은 MoveCursor 값으로 설정합니다.
기본값은 0이고, 1로 설정하면 destroy 시 커서를 다른 객체로 옮겨줍니다.

sample code

<script type="text/javascript" src="dext5/js/dext5editor.js"></script>	
 
<!-- ..... 생략 ..... -->
 
<div style="width:900px;height:550px">    
    <script type="text/javascript">
        
        // 에디터 언로드 시 destroy 사용으로 설정, destroy 시 커서를 다른 객체로 옮김으로 설정합니다.
        DEXT5.config.AutoDestroy = {
            Use: "1",
            MoveCursor: "1"
         };

        new Dext5editor("editor1");

    </script>       
</div>