在ASPxGridView
中使用EditItemTemplate
时如何将Tiny MCE集成到GridViewDataTextColumn
我试试这个
tinyMCE.init({
// General options
mode: "exact",
elements: '<%=editorTxt.ClientID%>',
theme: "advanced", ....
ASPX
<dx:GridViewDataTextColumn FieldName="DETAIL" VisibleIndex="3" Visible="false">
<DataItemTemplate>
<dx:ASPxLabel ID="ASPxLabel1" runat="server" EncodeHtml="False" Text='<%#Eval("DETAIL") %>'></dx:ASPxLabel>
</DataItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="editorTxt" runat="server" Text='<%# Bind("DETAIL") %>'></asp:TextBox>
</EditItemTemplate>
但错误引发CS0103: The name 'editorTxt' does not exist in the current context
答案 0 :(得分:1)
在GridView控件中使用TinyMCE WYSIWYG编辑器将在下面的链接中详细说明:
http://crushthesoul.com/using-tinymce-wysiwyg-editor-in-a-gridview-control.aspx
希望得到帮助..