Hi,
i have a probleme with fck 2.3b, i can't get the value of text area...
it was working with old version of fck...
my html code :
<div><input type="hidden" id="ARTICLE" name="ARTICLE" value="Hello <strong> World </strong> !" style="display:none" /><input type="hidden" id="ARTICLE___Config" value="" style="display:none" /><iframe id="ARTICLE___Frame" src="http://www.mydomain.com/lib/editor/fcke ... e=ARTICLE&" width="100%" height="400" frameborder="no" scrolling="no"></iframe></div>
and my js code :
function save()
{
[...]
var content = document.getElementById("ARTICLE").value;
alert(content);
[...]
}
when i write a text, my function return always "Hello world!"
could you help me ?
Matt
Fri, 06/16/2006 - 11:05
#1
RE: Ajax problem
the solution:
var oEditor = FCKeditorAPI.GetInstance('ARTICLE');
var content = oEditor.GetXHTML(false);
thanks fck !!!
see you ...