简体   繁体   中英

How do i integrate Tiny MCE to `ASPxGridView` when use `EditItemTemplate` in `GridViewDataTextColumn`?

How do i integrate Tiny MCE to ASPxGridView when use EditItemTemplate in GridViewDataTextColumn ??

i try this

  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>

but error raised CS0103: The name 'editorTxt' does not exist in the current context

Using TinyMCE WYSIWYG editor in a GridView Control is explained in detail on link below :

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

hOPE THIS HELP..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM