簡體   English   中英

使用頁腳模板和textarea以cleditor作為輸入添加新行

[英]Add new row using footer template and textarea with cleditor as input

我正在使用footertemplate在gridview中添加新行。 在footertemplate中,我有與cleditor綁定的html textarea。 一旦我在textarea中輸入文本並輸入添加按鈕,那么輸入的文本就會被清除。

您需要使用asp文本框而不是textarea

用這樣的東西改變你的html textarea

<asp:TextBox id="input" runat="server" TextMode="MultiLine" Text=""></asp:TextBox>

**不要忘記TextMode =“ MultiLine”

您的監護人聲明應該是這樣的

$(document).ready(function() {
    $('#<%= input.ClientId %>').cleditor({width:500, height:180, useCSS:true});
});

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM