2015-03-13 94 views
0

我有這樣的代碼在管理頁面CKEditor的模態引導

<div class="control-group">      
<label class="control-label" for="isi">Keterangan Alur</label> 
<div class="controls"> 
    <textarea class="span6" name="editalur<?php echo $daftar->ALUR_ID; ?>" id="editalur<?php echo $daftar->ALUR_ID; ?>" value="<?php echo $daftar->ALUR_ID; ?>"></textarea> 
    <?php 
    echo "<script>"; 
    echo "CKEDITOR.replace('editalur".$daftar->ALUR_ID."');"; 
    echo "</script>"; 
    ?> 
</div> <!-- /controls -->  
<label class="control-label"></label> 

的這段代碼在引導模式的標籤。我的目標是爲管理頁面中的每個按鈕創建一個模式。但它顯示了所有這樣的ckeditor。

enter image description here

我不知道做這個工作。任何建議?

回答

0

我通過改變我加載ckeditor的方式來得到這個作品。我剛剛閱讀了它的文檔,他們提供了一種通過在textarea標記中添加class「ckeditor」來加載ckeditor的方法