We have a Wedding invitation. And we want to use the RADEditor to customize the text. So we want to load an image upon which the user can type and customize fonts, size etc through the toolbar. This works very nice if I add
body
{
background-color: Transparent !important;
background: url("myImage.jpeg");
}
RadEditor1.ContentAreaCssFile = "myStyle.css"
to my css file. However, I need to changed the image dynamically, so I can't use the css file.
I tried also:
function OnClientLoad( editor, args){
var style = editor.get_contentArea().style;
style.backgroundimage = "myImage.jpeg";
or from aspx.cs file:
RadEditor.Style["background-image"] = "myImage.css";
and some other things but can't effect any change outside changing the css file. I have configured the Editor to behave like a text box and the toolbar to float. The other thought was to make the Editor transparent so I can place it over another control, panel or img, and load the image there, but I can't get the editor to render transparent.
I have just recently downloaded the evaluation version, we are testing it to see if this will work for us, but I can't seem to get past this. Any help either 1) dynamically loading the image from code behind; or 2) rendering the content area truly transparent so the image from another control is visible.
I have read most of the threads I could find regarding these issues, and understand the concepts and tools, but can't seem to find a solution.
Thanks for your time,
Chris
body
{
background-color: Transparent !important;
background: url("myImage.jpeg");
}
RadEditor1.ContentAreaCssFile = "myStyle.css"
to my css file. However, I need to changed the image dynamically, so I can't use the css file.
I tried also:
function OnClientLoad( editor, args){
var style = editor.get_contentArea().style;
style.backgroundimage = "myImage.jpeg";
or from aspx.cs file:
RadEditor.Style["background-image"] = "myImage.css";
and some other things but can't effect any change outside changing the css file. I have configured the Editor to behave like a text box and the toolbar to float. The other thought was to make the Editor transparent so I can place it over another control, panel or img, and load the image there, but I can't get the editor to render transparent.
I have just recently downloaded the evaluation version, we are testing it to see if this will work for us, but I can't seem to get past this. Any help either 1) dynamically loading the image from code behind; or 2) rendering the content area truly transparent so the image from another control is visible.
I have read most of the threads I could find regarding these issues, and understand the concepts and tools, but can't seem to find a solution.
Thanks for your time,
Chris