Hi,
Can anyone please shed some light on how to insert a selected image from image manager into the background:url('../Images/Login.png') of a DIV tag?
At the moment the image manager inserts an image with the following markup into the content area of RadEditor:
<img alt="" src="/Images/SampleImage.jpg" />
I need to do the following process when a user selects an image from image manager, before it is pasted into the content area:
1) Create a DIV tag with a unique ID;
2) Place the image into a background:url style element of a DIV tag;
3) Set the height and width properties of the DIV tag to that of the selected image.
For example the finished markup would look like the following:
<Div id="UniquieID???" STYLE="background:url('../Images/SampleImage.jpg') no-repeat; position:absolute; height: ???px; width: ???px; top: 0px; left: 0px"></Div>
I have tried many many ways to sort this probelm out and to no avail for about 3 weeks now. Please, any help whatsoever here would be greatly appreciated.
Thank you,
Grant
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.