Answered by:
Insert HTML code in a Rich Text Editor using Javascript

Question
-
Hi, I'm from Argentina.
I have a rich text editor in a c#.net project. This RTE uses Javascript for menu Icons.
I've added an icon that pops up a window where I have a Text Box and a Button. In the Text Box I want to paste HTML code:
<p align=center> + HTML code I paste + </p>
In other words, I want the HTML code I paste to be shown centered.
The button on "onClick" will have to execute the Javascript and close the pop up.
Any ideas ?? I don't know much about Javascript.
Thanks !!- Moved by Michael Sun [MSFT]Microsoft employee Wednesday, April 15, 2009 6:26 AM ASP.NET problem
Friday, April 10, 2009 11:01 PM
Answers
-
Hello,
For JavaScript and web controls issues, I recommend you to create a new thread at ASP.NET Forum for better support.
Best Regards,
Lingzhi
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, December 28, 2011 3:50 AM
Wednesday, April 15, 2009 6:26 AM -
This was moved out of the other forum.
You can ask this in an ASP.NET forum (as suggested).
Or I can move it into a specific MSDN forum if you'd like.
This is regarding your code:
<p align=center> + HTML code I paste + </p>
Ed Price a.k.a User Ed, Microsoft Experience Program Manager (Blog, Twitter, Wiki)- Proposed as answer by Ed Price - MSFTMicrosoft employee Wednesday, December 28, 2011 3:52 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, December 28, 2011 3:52 AM
Wednesday, December 28, 2011 3:52 AM
All replies
-
Hello,
For JavaScript and web controls issues, I recommend you to create a new thread at ASP.NET Forum for better support.
Best Regards,
Lingzhi
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, December 28, 2011 3:50 AM
Wednesday, April 15, 2009 6:26 AM -
This was moved out of the other forum.
You can ask this in an ASP.NET forum (as suggested).
Or I can move it into a specific MSDN forum if you'd like.
This is regarding your code:
<p align=center> + HTML code I paste + </p>
Ed Price a.k.a User Ed, Microsoft Experience Program Manager (Blog, Twitter, Wiki)- Proposed as answer by Ed Price - MSFTMicrosoft employee Wednesday, December 28, 2011 3:52 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, December 28, 2011 3:52 AM
Wednesday, December 28, 2011 3:52 AM