void setUserCssText(cssText, editor_id)
에디터에 사용자의 css를 style tag로 적용합니다.
return value
없음.
parameters
cssText 사용자가 적용할 css 값 입니다.
editor_id 접근할 에디터의 id 입니다.
remarks
없음.
sample code
<!-- ..... 생략 ..... -->
<script type="text/javascript" src="dext5/js/dext5editor.js"></script>
<script type="text/javascript">
function dext_editor_loaded_event(){
// 에디터가 로드된 후 사용자의 css를 에디터에 적용시킵니다.
var cssText = 'h1 {color:red;} p {color:blue;}';
DEXT5.setUserCssText(cssText, 'editor1');
}
</script>
<!-- ..... 생략 ..... -->
<div style="width:900px;height:550px;">
<!-- 에디터 생성 -->
<script type="text/javascript">
new Dext5editor('editor1');
</script>
</div>
<!-- ..... 생략 ..... -->
</body>
</html>