我试图在我的页面上有多个CKEDITOR,目前只有第一个显示。我的代码看起来像这样
<div class="edit_row">
<asp:TextBox runat="server" ID="CKEDITORFirst" TextMode="Number" />
</div>
<div class="edit_row">
<asp:TextBox runat="server" ID="CKEDITORSecond"TextMode="Number" />
</div>
和javascript
<script type="text/javascript">
var roxyFileman = '../fileman/index.html';
$(function () {
CKEDITOR.replace('<%=txtSubMenuEditText.ClientID%>', {
filebrowserBrowseUrl: roxyFileman,
filebrowserImageBrowseUrl: roxyFileman + '?type=image',
removeDialogTabs: 'link:upload;image:upload'
});
CKEDITOR.add
});
$(function ()
{
CKEDITOR.replace('<%=txtSubMenuNewText.ClientID%>', {
filebrowserBrowseUrl: roxyFileman,
filebrowserImageBrowseUrl: roxyFileman + '?type=image',
removeDialogTabs: 'link:upload;image:upload'
});
})
</script>
但只有第一个显示。
任何人都知道如何展示多个CKEDITORS?
答案 0 :(得分:0)
只需使用不同的ID&#39>制作这样的几行:
<CKEditor:CKEditorControl ID="CKEditor1" BasePath="/ckeditor/" runat="server"></CKEditor:CKEditorControl>
<CKEditor:CKEditorControl ID="CKEditor2" BasePath="/ckeditor/" runat="server"></CKEditor:CKEditorControl>
看样品: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/ASP.NET/Samples