Hello,
I'm using this function to add an editor to a textarea
function displayEditor(id){
var div = document.getElementById(id);
var FCKConfig = new FCKeditor(id);
FCKConfig.BasePath = "js/fckeditor/";
FCKConfig.Config["CustomConfigurationsPath"] = "./myconfig.js";
div.innerHTML = FCKConfig.CreateHtml();
}
I have 15 textareas. All textareas should be editable with the fckeditor. But never more than one editor at the same time.
So I want to remove the editor from a textarea when another textarea calls the function displayEditor(id).
How can I set a textarea into normal layout after used the function displayEditor?
Thanks to all and sry for my bad english.
I'm using this function to add an editor to a textarea
function displayEditor(id){
var div = document.getElementById(id);
var FCKConfig = new FCKeditor(id);
FCKConfig.BasePath = "js/fckeditor/";
FCKConfig.Config["CustomConfigurationsPath"] = "./myconfig.js";
div.innerHTML = FCKConfig.CreateHtml();
}
I have 15 textareas. All textareas should be editable with the fckeditor. But never more than one editor at the same time.
So I want to remove the editor from a textarea when another textarea calls the function displayEditor(id).
How can I set a textarea into normal layout after used the function displayEditor?
Thanks to all and sry for my bad english.