﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTextEditor - SaveContentToFile have problem</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/SaveContentToFile-have-problem/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>SaveContentToFile have problem</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/SaveContentToFile-have-problem/</link><pubDate>Thu, 24 Jun 2010 17:40:23 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I see that you are using following &lt;strong&gt;SaveContentToFile&lt;/strong&gt; method in page to save WebTextEditor’s content to file.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;protected void&lt;/span&gt; Button1_Click(&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;object&lt;/span&gt; sender, &lt;span style="font-family: 'courier new'; color: #2b91af; font-size: 10pt"&gt;EventArgs&lt;/span&gt; e)
{
    WebTextEditor1.SaveContentToFile(Server.MapPath(&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;"./SampleHtml/SavedFile.html"&lt;/span&gt;), &lt;span style="font-family: 'courier new'; color: #2b91af; font-size: 10pt"&gt;WebTextEditorHtmlDocType&lt;/span&gt;.XHTMLDocType, &lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;"Title Name"&lt;/span&gt;, &lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;true&lt;/span&gt;);
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The method has four parameters. They are &lt;em&gt;fileName&lt;/em&gt;, &lt;em&gt;docType&lt;/em&gt;, &lt;em&gt;title&lt;/em&gt;, and &lt;em&gt;saveFullHTML&lt;/em&gt;. When the flag of &lt;strong&gt;saveFullHTML is set to “true”&lt;/strong&gt; as seen on the snippet above, then the whole content in WebTextEditor will be saved into html file including the style which comes as “&amp;lt;link&amp;gt;” tag.&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to avoid the “&amp;lt;link&amp;gt;” being saved along with the content, please try to &lt;strong&gt;set the saveFullHTML flag to "false"&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;protected void&lt;/span&gt; Button1_Click(&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;object&lt;/span&gt; sender, &lt;span style="font-family: 'courier new'; color: #2b91af; font-size: 10pt"&gt;EventArgs&lt;/span&gt; e)
{
    WebTextEditor1.SaveContentToFile(Server.MapPath(&lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;"./SampleHtml/SavedFile.html"&lt;/span&gt;), &lt;span style="font-family: 'courier new'; color: #2b91af; font-size: 10pt"&gt;WebTextEditorHtmlDocType&lt;/span&gt;.XHTMLDocType, &lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;"Title Name"&lt;/span&gt;, &lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;false&lt;/span&gt;);
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This should helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>SaveContentToFile have problem</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/SaveContentToFile-have-problem/</link><pubDate>Tue, 22 Jun 2010 17:10:32 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I was able to repro the issue on my local test using the html sample file you sent on your previous post.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I have forwarded this issue to WebTextEditor development team to be investigated further. I’ll keep you updated with any news I heard from the team regarding this report.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>SaveContentToFile have problem</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/SaveContentToFile-have-problem/</link><pubDate>Sun, 20 Jun 2010 03:29:35 GMT</pubDate><dc:creator>ismail</dc:creator><description>&lt;p&gt;As you asked, here i am attaching four file with this message. The files are as given belo0w,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;1. before-image : this is how my original html look when open in browser. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2. after-image : this is how the html file look in browser after just saving to new file using webeditor.&lt;/p&gt;
&lt;p&gt;3. before-page : my original html file.&lt;/p&gt;
&lt;p&gt;4. after-page : the html page after saving using webeditor.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here is the some of information which my help you to trouble shoot,&lt;/p&gt;
&lt;p&gt;1. i am using Firefox 3.6.3 browser&lt;/p&gt;
&lt;p&gt;2. How i load content from file and how i save content to file is clearly mentioned in the previous post.&lt;/p&gt;
&lt;p&gt;3. i have noticed one extra line of as given below, if i remove it manually, i am getting page perfectly. This line of html code is also mentioned in the previous post.&lt;/p&gt;
&lt;p&gt;4. If i open the html page directly by double clicking , iam not getting any border. But everything coming if i host it in iis or running inside a webproject.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt;ca&lt;br /&gt;&lt;/p&gt;</description></item><item><title>SaveContentToFile have problem</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/SaveContentToFile-have-problem/</link><pubDate>Wed, 16 Jun 2010 23:55:27 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;We are willing to advise you further but in order to do so we would need you to elaborate on your specific scenario and possibly send us (as attachment) the original html file (before and after the save operation) that we can use to observe the problematic behavior.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Look forward for your response.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>SaveContentToFile have problem</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/SaveContentToFile-have-problem/</link><pubDate>Wed, 16 Jun 2010 10:07:38 GMT</pubDate><dc:creator>ismail</dc:creator><description>&lt;p&gt;hi all,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;i am trying to edit a html page using webtexteditor,&lt;/p&gt;
&lt;p&gt;here i am loading the html page using the below code&lt;/p&gt;&lt;pre&gt;WebTextEditor1.LoadContentFromFile(Server.MapPath("Template/template-news.html"].ToString()), true);&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;and i am saving file after editing using the code&lt;/p&gt;
&lt;pre&gt;WebTextEditor1.SaveContentToFile(Server.MapPath("newsletter/newsletter.html"), WebTextEditorHtmlDocType.XHTMLDocType, "Title Name", true);&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;But here my problem is, after saving the content , the saved file having one extra html line as something like given below&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/EMAIL-BOMB/WebResource.axd?d=KinZ3FO6bDNsWdnOyPsftf50a0SYo802x6p7oTaktpR1Rzi5HoPHo2FOScdInn0XbuBlRbw3vL0L5Eouybv_ujakmVEGcFa_gGrGQp-NwUo1&amp;amp;t=633997617420000000" /&amp;gt;&amp;lt;link rel="stylesheet" type="text/css" href="/EMAIL-BOMB/WebResource.axd?d=KinZ3FO6bDNsWdnOyPsftf50a0SYo802x6p7oTaktpR1Rzi5HoPHo2FOScdInn0XiyogZ-ZMhhIWEQDMzqxixMbPN0VPaaHDkM8aRh1NaJM1&amp;amp;t=633997617420000000" /&amp;gt;&amp;lt;body style="margin: 5px; padding: 1px; word-wrap: break-word; font-family: 'lucida sans unicode'; font-size: 8pt;" spellcheck="false" linkifying="true"&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;If my html page have this line, i am getting the dotted borders in the page. If i manually remove this line from html code, i am getting the perfect page.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;can you tell me is there any way to save the content of the texteditor without this line.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt;ca&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>