1

ASPxGridView使用时如何将 Tiny MCE 集成EditItemTemplateGridViewDataTextColumn

我试试这个

  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

4

1 回答 1

1

在 GridView 控件中使用 TinyMCE 所见即所得编辑器在下面的链接中进行了详细说明:

http://crushthesoul.com/using-tinymce-wysiwyg-editor-in-a-gridview-control.aspx

希望这个帮助..

于 2012-10-15T05:20:32.730 回答