I am using a product SocialEnginehttp://socialengine.net/. It uses a textarea to post comments, which is displayed on page using JavaScript(using Mootools). In fact, the whole comment form is displayed using javascript.
I am using ReplaceTextArea() method to replace the textarea with FCKeditor. It works fine in FF, doesn't save data in IE6/7.
I have attached the file, which writes the comment form.
Here's how I am replacing the Textarea-
<script type="text/javascript">
function setEditor(){
var sToolbar;
var oFCKeditor = new FCKeditor('comment_body');
oFCKeditor.BasePath = "./include/fckeditor/";
oFCKeditor.Config["ProcessHTMLEntities"] = false;
oFCKeditor.Config["CustomConfigurationsPath"] = "../../js/blog_fckconfig.js";
oFCKeditor.Height = "150";
oFCKeditor.ToolbarSet = "MyToolbar";
oFCKeditor.Value = 'some data';
oFCKeditor.ReplaceTextarea();
}
window.addEvent('load', function(){
setTimeout(setEditor, 1000);
});
</script>
Wed, 05/27/2009 - 16:52
#1