Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi All I am using HTML text editor in my website. In that, I have created a paragraph in word doc and copy those texts and pasted that paragraph in the HTML Text editor. In c# I tried to get the paragraph and pasted in a span control. Color and font size everything is fine but the issue is space is missing randomly in between the texts

EG:
Entered Text:
This is typically the Organization where the User is employed, or is Supervised. The Organization must be added to the Configuration, but can be added during the User Account Creation process.

In C#:
Thisis typically the Organization where the User is employed, or is Supervised. TheOrganization must be added to the Configuration, but can be added during theUser Account Creation process.

Please See the Texts:

1. Thisis
2. TheOrganization
3. theUser

Thank You.


Please suggest me a Editor.
Posted
Updated 15-May-14 18:42pm
v2
Comments
phil.o 15-May-14 9:18am    
Maybe you could show us the C# code responsible for populating the span?
PS: not in reply to this comment, but rather by improving your original question with relevant details.
Dinesh Balaji 15-May-14 23:26pm    
In C#
[HtmlEditor ID].Content

In javaScript
var Contentmsg = $find('<%=[HtmlEditor ID].ClientID%>').get_content();

This is what I am using in my code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900