Hi,
Is it possible to change the width and height of an editor once it has been created?
I am creating the editor instance with the following code:
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.Width = 574 ;
oFCKeditor.Height = 254 ;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Create() ;
</script>
I want to change the width and height when I click a radio button, i tried the following code:
<input name="XYZ" id="XYZ" type="radio" value="1" onclick="ChangeWidth()">
with the javascript function:
function ChangeWidth() {
var oEditor = FCKeditorAPI.GetInstance('FCKeditor_1') ;
oEditor.Width = 200;
}
Am I missing something?
I get an undefined message if I alert oEditor.Width, is there another way to change the size?
Thanks
Is it possible to change the width and height of an editor once it has been created?
I am creating the editor instance with the following code:
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.Width = 574 ;
oFCKeditor.Height = 254 ;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Create() ;
</script>
I want to change the width and height when I click a radio button, i tried the following code:
<input name="XYZ" id="XYZ" type="radio" value="1" onclick="ChangeWidth()">
with the javascript function:
function ChangeWidth() {
var oEditor = FCKeditorAPI.GetInstance('FCKeditor_1') ;
oEditor.Width = 200;
}
Am I missing something?
I get an undefined message if I alert oEditor.Width, is there another way to change the size?
Thanks
Re: Change Editor Width/Height
So :
document.getElementById("MyFckEditor___Frame").style.width="500px";
hth