Hello world...
I'm using fck.CreateHtml(); because I want to change the width depending on a value I sent to this function on my JS:
function changeWidthEditor( value ){
var div = document.getElementById("text");
var fck = new FCKeditor("text");
fck.BasePath = "/lib/fckeditor/";
fck.ToolbarSet = 'NewBasic';
fck.Config['SkinPath'] = 'skins/silver/';
fck.InsertHml(div.innerHTML);
if(value == 1){
fck.Width = '340px';
fck.Height = '300px';
}else{
fck.Width = '640px';
fck.Height = '410px';
}
div.innerHTML = fck.CreateHtml();
}
---------------------
if I use fck.InsertHml(div.innerHTML); or even fck.InsertHml("<p>Hello world</p>"); the editor disappear!!!!
any idea?
I'm using fck.CreateHtml(); because I want to change the width depending on a value I sent to this function on my JS:
function changeWidthEditor( value ){
var div = document.getElementById("text");
var fck = new FCKeditor("text");
fck.BasePath = "/lib/fckeditor/";
fck.ToolbarSet = 'NewBasic';
fck.Config['SkinPath'] = 'skins/silver/';
fck.InsertHml(div.innerHTML);
if(value == 1){
fck.Width = '340px';
fck.Height = '300px';
}else{
fck.Width = '640px';
fck.Height = '410px';
}
div.innerHTML = fck.CreateHtml();
}
---------------------
if I use fck.InsertHml(div.innerHTML); or even fck.InsertHml("<p>Hello world</p>"); the editor disappear!!!!
any idea?