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

RadEditor background

2 Answers 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gustavo
Top achievements
Rank 1
Gustavo asked on 24 Jul 2014, 08:55 PM
Hi

I use the next code  for change the background the radeditor but the  cursor appears in the center. i use internet explore. I have one question it is a error or exists a bug

Thanks.








2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Jul 2014, 03:31 AM
Hi Gustavo,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end. Please provide your full code for further help.

ASPX:
<telerik:RadEditor ID="reditorDemo" runat="server" OnClientLoad="changeStyle">
</telerik:RadEditor>

JavaScript:
function changeStyle(sender, args) {
    var style = sender.get_contentArea().style;
    style.backgroundImage = "url('BackGround.jpg')";
    style.backgroundRepeat = "no-repeat";
    style.backgroundPosition = "center";
}

Thanks,
Shinu.
0
Gustavo
Top achievements
Rank 1
answered on 25 Jul 2014, 03:52 PM
thanks, I developer the same exercise,but i found the mistake I have a master page where exists an .css that line p { tex-align:center} that affect the editor

thanks & regards
Tags
Editor
Asked by
Gustavo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Gustavo
Top achievements
Rank 1
Share this question
or