Web Forms :: Using TinyMCE Html Editor In Web Application With .net 3.5 And C#?
Aug 30, 2010
I am using TinyMCE html editor in my web application with Asp.net 3.5 and C#. If I enter a path like http://video.test.com/test.flv in url attribute to add video in my page content, the leading slash gets stripped, and becomes "http:/video.test.com/test.flv".So that the move could not get loaded. On button click event the slash gets removed. Button click is necessary for me to save the page content into the database.
I have tinymce .net control on my .net webform and the basic setup works a treat. My code behind can see the html generated my tinymce via the TextArea1.Value property. However as soon as I set the mode to textareas the value is suddenly always empty! The problem is that if the mode is not set to textareas the tinymce editor is only in simple mode and does not offer all the features.
i have integrated the template into the tiny using the following code
template_templates: [               { title: "red", src: "Template/redyellow/Website/about.html" }, {  title: "Law", src: "Template/Law/index.html" }, {  title: "Business", src: "Template/Blue_Business/index.html"  }, {  title: "asubtleorange", src: "Template/asubtleorange/index.html" }, {  title:" 110100013",  src: "Template/110100013/index.html"  } ]
But I need it with file upload control... like the image is added with tiny editor using the following code
 if (FileUpload1.HasFile) {  string FileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName); FilePath = "editor_image/" + FileName;   FileUpload1.SaveAs(Server.MapPath(FilePath)); editor.Text += string.Format("<img src = '{0}' alt = '{1}'/>", FilePath, FileName); }
like the above code i need to add the html/style sheet template.
I've used TinyMCE Editor for textareas in my webpage, it works fine but the problem is, I want the show only the Toggle Spell Checker button to user. I don't want to show any other buttons like bold, underline, etc.
i need to create an online html editor to be used in my asp.net application with the basic button of dataformating + adding/inserting images+creating templates
I've used TinyMCE Editor for textareas in my webpage, it works fine but the problem is, When I select a only listed language English in Toggle Spell Checker it is throwing a javascript error.Â
I don't want to display the list (arrow for selection) for language selection as i only show English language in the list of Toggle Spell Checker.
How can i show only  Toggle Spell Checker button, not language selection list?
When I apply your code for three textbox then it show only one editor and remain same as simple textbox and if i click on button it flickering ...  <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox> <asp:HiddenField ID="HiddenField1" runat="server" />
i need to create a html editor for use to every page to update the web page content. By right, the html editor only can seen by administrator. So , i should create a custom web part/user control to update different table of database or create a custom editor zone better? how can we do it just like the share point html editor web part?
I have an Editor control on my page and the user can go in use it hit save and that all works.
In another part of the page I have a simple dropdown to select a note and view it. When you push view it loads the text which was entered in via the editor control.
If the user used an order or unordered list. The text shows up but not the list part.
So if they did this:
Example ThisAnd this
What is displaying is
Example This And This
Without the bullets. Same for the numbers.
I have it going to a literal control which should render the html, but it doesn't.
i want to replace "span" with "bold" to "bOpen" and "bClose" and to replace "span" with "italic" to "iOpen" and "iClose" in both c# and javascript.
i did use regular expression to do that: res = Regex.Replace(res, ".*?", replaceHtmlBold); but it cant match the nested tag and none-nested tag at the same time.
I'm wondering if it's possible to be able to use an HTML editor (such as TinyMCE) in an ASP.NET form without turning off validation for the entire page. There are other fields in the page that I want to use validation for. Will those not get validated with validation controls if you set ValidateRequest="false" in the page directive?
in my page i have 10 DDL and an Ajax Html Editor, each and every selectedIndexChanged event of the DDL i'lll focus the next DDL but the focus not set to the DDL, instead of that its always focused to the editor. i set tabindex but no luck.. may i know what is the issue and how to resolve this?