DEXT5 Editor :: getAccessibility

string getAccessibility(editor_id)

에디터에 설정된 웹 접근성 단계를 가져옵니다.

return value

0, 1, 2 중 하나의 값을 리턴합니다.

parameters

editor_id  웹 접근성 단계를 가져올 에디터의 id를 의미합니다.

remarks

에디터를 1개만 생성했을 경우 parameter를 입력하지 않아도 설정된 웹 접근성 단계를 가져올 수 있습니다.
예) id가 editor1인 에디터를 생성했을 경우
     DEXT5.getAccessibility('editor1'), DEXT5.getAccessibility()  모두 editor1 에디터에 설정된 웹 접근성 단계를 가져옵니다.

에디터를 2개 이상 생성했을 경우 parameter를 반드시 입력해야 합니다.
예) id가 editor1, editor2인 에디터를 생성했을 경우
     DEXT5.getAccessibility('editor1')  editor1 에디터에 설정된 웹 접근성 단계를 가져옵니다.
     DEXT5.getAccessibility('editor2')  editor2 에디터에 설정된 웹 접근성 단계를 가져옵니다.

sample code

    <!-- ..... 생략 ..... -->

    <script type="text/javascript" src="dext5/js/dext5editor.js"></script>	
    <script type="text/javascript">

        function dext_editor_loaded_event() {
            // id가 editor1인 에디터에 설정된 웹접근성 단계를 경고창으로 띄웁니다.
            alert(DEXT5.getAccessibility('editor1'));
        }

    </script>

    <!-- ..... 생략 ..... -->
 
    <div style="width:900px;height:550px">  

        <!-- 에디터 생성 -->
        <script type="text/javascript">
            new Dext5editor('editor1');
        </script>       

    </div>

    <!-- ..... 생략 ..... -->

    </body>
    </html>