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

switch to html

3 Answers 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amith S
Top achievements
Rank 1
Amith S asked on 09 Mar 2010, 02:14 PM
Hi,

I have added a 'add video' button to the editor. I am allowing members to add youtube or google video's to the forum. I am using the embed tag to do this. Also i am using editor.pasteHtml function and it inserts it fine.

The problem is that when insert.pasteHtml is called, the editor is in design view and nothing appears. Only when i switch manually to Html mode i see the code and when i switch back there is a big flash symbol.

Users will need some way on knowing the video has been inserted, I was thinking if there is a way to switch from design to html and back so that the flash may appear. Hoping some function like editor.switchhtmlmode or editor.switchdesignmode.

If there is another way to accomplish this, ideas are most welcome.

Thanks,
Amith

3 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 09 Mar 2010, 04:19 PM
This help article shows you how to switch editor modes.


I hope that helps.
0
Rumen
Telerik team
answered on 09 Mar 2010, 04:35 PM
Hi,

The MozillaKeepFlashString filter code provided in this forum thread could be helpful too for your scenario:
Problems with ConvertToXhtml Filter and <object> tag.

Regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Amith S
Top achievements
Rank 1
answered on 18 Mar 2010, 05:22 AM
thank u robertw102  and Rumen
Tags
Editor
Asked by
Amith S
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Rumen
Telerik team
Amith S
Top achievements
Rank 1
Share this question
or