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

[Solved] Need some examples with OnClientPasteHTML

2 Answers 76 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 2
Mike asked on 31 Mar 2009, 11:33 PM
Hello again,

Please can someone give some examples of how to make modifications to the following using OnClientPasteHTML:

1) How to add a <DIV> tag wrapper around an image before it is pasted from ImageManager?
   - I have been trying to do this for weeks now and I know that it can't be that hard, well at least for someone well versed in advanced JS.
2) How to add a unique ID to an image being inserted?
    - I believe this would entail gathering all the current images in the HTML and assigning the image with a unique ID. How to do this, I have no idea.

I have read the the article at http://demos.telerik.com/aspnet-ajax/editor/examples/onclientpastehtml/defaultcs.aspx but it fails to show these examples or anything like it.

Any help with this would be greatly appreciated.

Thank you,
Grant

2 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 03 Apr 2009, 04:23 PM
Hello Grant,

We paste the same answer as we provided in your other forum thread:
===================================
This looks like an interesting scenario. It seems possible to do, and we will provide you with a solution a couple of days from now - on Monday or Tuesday. Stay tuned.
===================================

All the best,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Tervel
Telerik team
answered on 06 Apr 2009, 01:44 PM
Hello Grant,

I have prepared a small sample that does something close to your needs. Feel free to modify it further, if needed.

Best regards,
Tervel
the Telerik team

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