Hi,
I'm using FCKeditor with PHP:
it works like a charm but when I edit the initial text and try to get the new/modified text with javascript before submiting the form via:
I always get the initial text no matter what changes I did. How can I get the new/modified text from the input?
Thanks,
JT
I'm using FCKeditor with PHP:
<? include 'fckeditor/fckeditor.php'; $initial_text = "Some text"; $oFCKeditor = new FCKeditor('text') ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = $initial_text; $oFCKeditor->Create() ; ?>
it works like a charm but when I edit the initial text and try to get the new/modified text with javascript before submiting the form via:
var new_text_input = document.getElementById('text'); var new_text = new_text_input.value;
I always get the initial text no matter what changes I did. How can I get the new/modified text from the input?
Thanks,
JT
Re: Getting the textarea value with javascript
Hi I saw your post and was wondering the same thing.
Anyways this is what I came up with
Hope this helps.
For reference check out this API
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API#Retrieving_an_Editor_Instance