2013-01-03 63 views
0

我有一個id爲「p_1_input」的textarea,你可以在下面看到,我試圖限制這個編輯器對話框的功能,並且限制它的高度,這樣過多的內容不會推動對話框擴展但是可以滾動。
我怎樣才能把這兩個配置在線,如: 「{maxHeight : 200}" and "{buttonList : ['bold','italic']}」?如何使用nicEditor的多個配置?

new nicEditor({buttonList : ['bold','italic']}).panelInstance('p_1_input'); 
new nicEditor({maxHeight : 200}).panelInstance('p_1_input'); 

回答

0

你可以這樣使用。

new nicEditor({ 
     maxHeight: 133, 
     buttonList: ['bold','italic'] 
      }).panelInstance('p_1_input');  
+0

謝謝NARENDRA,它完美的作品。 – noob

相關問題