2017-06-13 23 views
0

我使用CKEditor的,當我試圖把另一個CKEditor的在同一個頁面,然後它沒有顯示..如何在一個頁面中調用多個CKEditor?

+1

' <腳本類型= 「文本/ JavaScript的」> \t \t \t \t \t \t \t \t \t \t \t \t CKEDITOR.replace( 'SDESC'); \t \t \t \t \t \t \t \t \t \t \t \t CKEDITOR.add \t \t \t \t \t \t \t \t \t \t \t' 我已經嘗試這樣做,這是爲我工作就像一個魅力:) – Mavericks

+1

顯示您的代碼,請 –

+0

感謝亞歷克斯,我已經解決,並張貼作爲一個答案這裏.. – Mavericks

回答

0

<script type="text/javascript"> 
 
\t \t \t \t \t \t \t \t \t \t \t \t CKEDITOR.replace('sDesc'); 
 
\t \t \t \t \t \t \t \t \t \t \t \t CKEDITOR.add    
 
\t \t \t \t \t \t \t \t \t \t \t </script>
<textarea required="required" rows="6" class="span12 ckeditor m-wrap" name="sDesc" id="sDesc" style="width: 800px; height:300px;" ></textarea>

而且

<script type="text/javascript"> 
 
\t \t \t \t \t \t \t \t \t \t \t \t CKEDITOR.replace('sDesc2'); 
 
\t \t \t \t \t \t \t \t \t \t \t \t CKEDITOR.add    
 
\t \t \t \t \t \t \t \t \t \t \t </script>
<textarea required="required" rows="6" class="span12 ckeditor m-wrap" name="sDesc2" id="sDesc2" style="width: 800px; height:300px;" ></textarea>

我已經試過上面,它對我來說就像一個魅力:)

相關問題