Note that there are some explanatory texts on larger screens.

plurals
  1. PONot getting updated test in tinyMCE editor
    primarykey
    data
    text
    <p>I am using tinyMCE for showing editor in my asp.net site for add and edit article functionality. My code is as follows</p> <pre><code>&lt;script type="text/javascript" language="javascript"&gt; tinyMCE.init({ // General options mode: "exact", elements: '&lt;%=txtTextBox.ClientID%&gt;', theme: "advanced", width: "650", height: "500", plugins: "style,advhr,advimage,advlink,inlinepopups,preview,media,searchreplace,contextmenu,paste,noneditable,visualchars,nonbreaking,wordcount", // Theme options theme_advanced_buttons1: "undo,redo,separator,bold,italic,underline,separator,cut,copy,paste,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,image,media,link,separator,forecolor,backcolor,separator,preview", theme_advanced_buttons2: "fontsizeselect,fontselect", theme_advanced_buttons3: "", theme_advanced_font_sizes : "10px,12px,14px,16px,24px", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_statusbar_location: "bottom", theme_advanced_resizing: false, relative_urls: true, remove_script_host: true, document_base_url: "" }); &lt;/script&gt; &lt;div&gt; &lt;textarea id="txtTextBox" runat="server" cols="500" rows="100"&gt;&lt;/textarea&gt; &lt;asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" /&gt; &lt;asp:Button ID="Button2" runat="server" Text="Update" OnClick="Button2_Click" OnClientClick="return test();" /&gt; &lt;/div&gt; </code></pre> <p>This code adds whatever typed in editor in db as HTML. This works fine. For editing I just retrieve this article record and show content in textbox on page load</p> <pre><code> string sql = "select * from content_table where ID=1"; comm = new SqlCommand(sql, conn); da = new SqlDataAdapter(comm); DataSet ds = new DataSet(); da.Fill(ds); if (ds != null) { txtTextBox.InnerText = Server.HtmlDecode(ds.Tables[0].Rows[0]["Content"].ToString()); } </code></pre> <p>but problem is that I am not getting new changed text instead I only get text that I get on page load. why this is happening. Any suggestion?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload