iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
hi all,
i am trying to edit a html page using webtexteditor,
here i am loading the html page using the below code
WebTextEditor1.LoadContentFromFile(Server.MapPath("Template/template-news.html"].ToString()), true);
and i am saving file after editing using the code
WebTextEditor1.SaveContentToFile(Server.MapPath("newsletter/newsletter.html"), WebTextEditorHtmlDocType.XHTMLDocType, "Title Name", true);
But here my problem is, after saving the content , the saved file having one extra html line as something like given below
<link rel="stylesheet" type="text/css" href="/EMAIL-BOMB/WebResource.axd?d=KinZ3FO6bDNsWdnOyPsftf50a0SYo802x6p7oTaktpR1Rzi5HoPHo2FOScdInn0XbuBlRbw3vL0L5Eouybv_ujakmVEGcFa_gGrGQp-NwUo1&t=633997617420000000" /><link rel="stylesheet" type="text/css" href="/EMAIL-BOMB/WebResource.axd?d=KinZ3FO6bDNsWdnOyPsftf50a0SYo802x6p7oTaktpR1Rzi5HoPHo2FOScdInn0XiyogZ-ZMhhIWEQDMzqxixMbPN0VPaaHDkM8aRh1NaJM1&t=633997617420000000" /><body style="margin: 5px; padding: 1px; word-wrap: break-word; font-family: 'lucida sans unicode'; font-size: 8pt;" spellcheck="false" linkifying="true">
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.
can you tell me is there any way to save the content of the texteditor without this line.
thanks and regards
ca
I see that you are using following SaveContentToFile method in page to save WebTextEditor’s content to file.
protected void Button1_Click(object sender, EventArgs e) { WebTextEditor1.SaveContentToFile(Server.MapPath("./SampleHtml/SavedFile.html"), WebTextEditorHtmlDocType.XHTMLDocType, "Title Name", true); }
The method has four parameters. They are fileName, docType, title, and saveFullHTML. When the flag of saveFullHTML is set to “true” as seen on the snippet above, then the whole content in WebTextEditor will be saved into html file including the style which comes as “<link>” tag.
In order to avoid the “<link>” being saved along with the content, please try to set the saveFullHTML flag to "false".
protected void Button1_Click(object sender, EventArgs e) { WebTextEditor1.SaveContentToFile(Server.MapPath("./SampleHtml/SavedFile.html"), WebTextEditorHtmlDocType.XHTMLDocType, "Title Name", false); }
This should helps.
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.
Look forward for your response.
As you asked, here i am attaching four file with this message. The files are as given belo0w,
1. before-image : this is how my original html look when open in browser.
2. after-image : this is how the html file look in browser after just saving to new file using webeditor.
3. before-page : my original html file.
4. after-page : the html page after saving using webeditor.
Here is the some of information which my help you to trouble shoot,
1. i am using Firefox 3.6.3 browser
2. How i load content from file and how i save content to file is clearly mentioned in the previous post.
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.
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.
I was able to repro the issue on my local test using the html sample file you sent on your previous post.
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.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname