var editCommentDiv = '<div id="divTicketCommentHistoryEditor">';
editCommentDiv += '<br />';
editCommentDiv += '<telerik:RadEditor ID="editorCommentsHistory" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus" ToolsWidth="170px" Width="412px" Height="72px"></telerik:RadEditor>';
editCommentDiv += '<div>';
editCommentDiv += '<input id="cbEditIsPrivate" type="checkbox" />Make Comment/Note Private';
editCommentDiv += ' ';
editCommentDiv += '<a href="javascript:void(0)" onclick="return editCommentSave();">Update</a>';
editCommentDiv += '<a href="javascript:void(0)" onclick="return editCommentCancel();">Cancel</a>';
editCommentDiv += '</div></div>';
我得到未結束的字符串字面這裏添加RadEditor使用javascrpt:讓未結束的字符串錯誤
<telerik:RadEditor ID="editorCommentsHistory" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus" ToolsWidth="170px" Width="412px" Height="72px"></telerik:RadEditor>'
你想通過JavaScript註冊RadEditor來實現什麼?請記住,RadEditor是一個服務器控件,它的標籤應該由ASP.NET Web窗體引擎解析,以便爲瀏覽器提供HTML,JavaScript和CSS。 –
我想使用客戶端編碼在按鈕單擊時動態創建一個RadEditor控件......這可能嗎? – user3792804