Hi Team,
How can I resize a radeditor to fit the screen when a window is resized. I have used the setSize() property and i have used the below coding but i didn't get the result as expected. Anybody help me on how to resize the radEditor?. Is any possible way to do this via .css?
How can I resize a radeditor to fit the screen when a window is resized. I have used the setSize() property and i have used the below coding but i didn't get the result as expected. Anybody help me on how to resize the radEditor?. Is any possible way to do this via .css?
function OnClientLoad(editor, args) {
//set the editor size
editor.setSize(
"100%", document.body.offsetHeight - 90);
window.onresize = ResizeEditor(editor);
}
var resizeFlag = true;
function ResizeEditor(editor)
{
if (resizeFlag) {
editor.setSize(
"100%", document.body.offsetHeight - 90);
resizeFlag = false;
window.setTimeout(function()
{
resizeFlag = true;
},100);
}
}
Thanks in advance
Sasireka