It is PHP...Here is a generic function you could use...Replace "path/to/fckeditor" with the correct path to your installation and then pop the following into any html document WITH the <?php ?> tags OR into a relevant .php file BETWEEN the <?php ?> tags:
To "make it go", put this into your HTML file where you want the editor to display (such as in a table between <td></td>):
<?php $editorWidth = '100%'; // Change "100%' to your desired width $editorHeight = '500'; // Change "500' to your desired height $content = "Some initial content to put in the editor"; // Do not include this line, if you just want a blank editor. showEditor($editorWidth, $editorHeight, $content); ?>
Re: Setting Editor Height and Width
Hello,
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Setting Editor Height and Width
Re: Setting Editor Height and Width
<?php
function showEditor($width, $height, $content = NULL)
{
require_once('path/to/fckeditor/fckeditor.php');
$myEditor = new FCKeditor('FCKeditor1');
$myEditor->Width = $width;
$myEditor->Height = $height;
$myEditor->BasePath = 'core/fckeditor/';
$myEditor->Value = $content;
$myEditor->Create();
}
?>
To "make it go", put this into your HTML file where you want the editor to display (such as in a table between <td></td>):
<?php
$editorWidth = '100%'; // Change "100%' to your desired width
$editorHeight = '500'; // Change "500' to your desired height
$content = "Some initial content to put in the editor"; // Do not include this line, if you just want a blank editor.
showEditor($editorWidth, $editorHeight, $content);
?>
Re: Setting Editor Height and Width
But what about JavaScript?
Re: Setting Editor Height and Width
var fck = new FCKeditor("myFCKeditor");
fck.Width = '100%' ;
fck.Height = '100%' ;
Thanks for a nice product!
Re : Setting Editor Height and Width
Read the below article. There you will get to know step by step procedure of changint height of ckeditor.
http://www.stepcoder.com/Articles/10003/how-to-set-or-change-height-of-ckediotr-textbox-area-using-asp-net
Hope this Helps..