This question is locked. New answers and comments are not allowed.
I would like to insert some text using javascript in my RadEditor (for SPS 2003). How do I do that?
E.g. I've collected some information that should be displayed for the user in the text editor and they are allowed to change this when editing the text
It's probably simple, but I don't know how in this editor...
Kind regards,
Ladyhawke
E.g. I've collected some information that should be displayed for the user in the text editor and they are allowed to change this when editing the text
It's probably simple, but I don't know how in this editor...
Kind regards,
Ladyhawke
9 Answers, 1 is accepted
0
Hi Jane,
You can paste some Text into RadEditor using the editor's PasteHtml function e.g.
I hope this helps;.
Sincerely,
George
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You can paste some Text into RadEditor using the editor's PasteHtml function e.g.
| var editor = <%=RadEditor1.ClientID %>; //get a reference to the editor |
| editor.PasteHtml('Set the desired text to be pasted here'); |
I hope this helps;.
Sincerely,
George
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jane
Top achievements
Rank 1
answered on 04 Aug 2008, 11:36 AM
That does help! get- and sethtml does too (I found them in another question)
Great to get this issue solved :o)
Kind regards,
Ladyhawke
Great to get this issue solved :o)
Kind regards,
Ladyhawke
0
Swadeesh
Top achievements
Rank 1
answered on 23 Jan 2009, 08:26 AM
PasteHtml() method is not working.
0
Hi Swadeesh,
The following example will show you how to paste content into the editor's content area.
For more information visit our online help http://www.telerik.com/help/aspnet-ajax/editor_pastehtml.html .
Kind regards,
Stanimir
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The following example will show you how to paste content into the editor's content area.
| editor.pasteHtml('<span style="width:100px;border: 1px solid red;background-color: blue;color: white;">sample content</span>'); |
For more information visit our online help http://www.telerik.com/help/aspnet-ajax/editor_pastehtml.html .
Kind regards,
Stanimir
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Swadeesh
Top achievements
Rank 1
answered on 27 Jan 2009, 09:14 AM
var editor = $find("RadEditor1"); //get a reference to the editor
editor.pasteHtml('Sample Text');
This code is working fine.
Thankyou.
editor.pasteHtml('Sample Text');
This code is working fine.
Thankyou.
0
Swadeesh
Top achievements
Rank 1
answered on 09 Oct 2009, 12:27 PM
Rad Editor is not able to handle cross site scripting.
0
Hello Swadeesh,
Rad Editor is not able to handle cross site scripting. - Could you please be more specific and provide us with some additional information?
Best wishes,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Rad Editor is not able to handle cross site scripting. - Could you please be more specific and provide us with some additional information?
Best wishes,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Swadeesh
Top achievements
Rank 1
answered on 12 Oct 2009, 06:04 AM
Hi,
Sorry for giving confusing information.
I have a problem with RadSpell Checker.
I tested in your demo site. I got the following problem.
If i run the spell checker for a text box which is having some html text, instead of checking spelling it is executing the script.
The Text I tried.
ffdfd
<a href=www.google.com>Google</a>
This text is shown in the spell checker as link. If i click on the link i got a message Page cannot be found.
If i close the spell checker window "Can't execute the code from the freed script" message came.
Thankyou.
Sorry for giving confusing information.
I have a problem with RadSpell Checker.
I tested in your demo site. I got the following problem.
If i run the spell checker for a text box which is having some html text, instead of checking spelling it is executing the script.
The Text I tried.
ffdfd
<a href=www.google.com>Google</a>
This text is shown in the spell checker as link. If i click on the link i got a message Page cannot be found.
If i close the spell checker window "Can't execute the code from the freed script" message came.
Thankyou.
0
Hello Swadeesh,
This is expected behavior for the Spell checker. In order for it to be more user friendly it cuts some parts of the html, which is checked and display it in the dialog. However there are cases as this one, which this is not that convenient. I logged this in our bug-tracking system and we look if there can be done anything about it.
Greetings,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
This is expected behavior for the Spell checker. In order for it to be more user friendly it cuts some parts of the html, which is checked and display it in the dialog. However there are cases as this one, which this is not that convenient. I logged this in our bug-tracking system and we look if there can be done anything about it.
Greetings,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.