2013-05-22 2 views
0

PHP로 CKEditor4 값을 어떻게 설정합니까? 변수를 태그 안에 넣었지만 데이터베이스에있는 데이터를로드하지 않습니다.PHP로 CKEditor4 값 설정

<td class="rightpan"> 
<textarea name="editor1"><?=stripslashes($descriptionH); ?></textarea> 
<script> 
    CKEDITOR.replace('editor1', { 
     removePlugins: 'elementspath' 
    }); 
</script> 

누군가가 나를 도울 수 있습니까? 그것은 Value : $ descriptionH 또는 something과 같은 replace() 함수에 속하는 것입니까?

답변

0
<td class="rightpan"> 
<textarea id="editor1" class="ckeditor" name="editor1"><?php echo htmlspecialchars($descriptionH, ENT_QUOTES); ?></textarea> 
<script> 
$('#editor1').ckeditor(function() {}, 
    { 
     toolbar: [ 
      ['Source','Styles', 'Format','TextColor','BGColor'], 
      ['Image','Table','HorizontalRule','SpecialChar','PageBreak'], 
      ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'], 
      ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', '-', 'About'], 
      ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'] 
     ], 
     width: 650, 
     height: 350 
    } 
); 
</script>