This is a migrated thread and some comments may be shown as answers.

  Âs appear when pasting from Word

3 Answers 22 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 24 Oct 2008, 10:42 PM
I am completely new to the Rad Editor, so apologies if there is an obvious answer to this question!  I am trying to paste from Word and save the result from the Rad Editor into an external file named "test.html".  I have got this working fine but the output (when viewed in a browser) has the TAB characters replaced with     ...

Any ideas?

Cheers,

Ed

3 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 27 Oct 2008, 03:51 PM
Hi Ed,

Please, see the following forum thread on the subject: RadEditor inserts  before two consecutive spaces.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ed
Top achievements
Rank 1
answered on 27 Oct 2008, 07:48 PM
Thanks a lot, Rumen.  I didn't actually find my answer in this thread but have now worked it out.  For information, the problem was in the line I used to write the content to a file -- a line I pasted directly from the Telerik demo!  In http://demos.telerik.com/aspnet/prometheus/Editor/Examples/SaveInExternalFile/DefaultCS.aspx, the C# tab gives the following example code:

 

protected void Button1_Click1(object sender, EventArgs e)
{
  //Open file for writing and write content
 
using (StreamWriter externalFile = new StreamWriter(this.MapPath(path), false))
  {
     externalFile.Write(RadEditor1.Content);
  }
}

 

For me, this needed to be:

protected void Button1_Click1(object sender, EventArgs e)
{
  //Open file for writing and write content
 
using (StreamWriter externalFile = new StreamWriter(this.MapPath(path), false, Encoding.UTF8))
  {
     externalFile.Write(RadEditor1.Content);
  }
}

I'll post this to the other thread as well, just in case anyone looks there.

0
Tervel
Telerik team
answered on 28 Oct 2008, 06:39 AM
Hello Ed,

Thank you very much for the suggestion. We will update the example for the official Q3 2008 release coming next week.

Best wishes,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Ed
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ed
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or