Howdy all,
I'm working on a project that fills out a web form automatically (it's a VB.Net app that has a web browser control that it interacts with). The form that I'm trying to fill out has a textarea on it that gets replaced with the fckeditor when it loads:
window.onload = function()
{
if(document.all.message_content_html){
var oFCKeditor = new FCKeditor( 'message_content_html' ) ;
oFCKeditor.ReplaceTextarea() ;
}
}
I have well-formed HTML that I need to populate that text area with, but when I set the innertext or innerhtml properties, all the HTML formatting gets stripped out. My question is this: Do I need to do something special to set those properties when this control is being used, or is this some other issue that I need to deal with?
Thanks in advance!
I'm working on a project that fills out a web form automatically (it's a VB.Net app that has a web browser control that it interacts with). The form that I'm trying to fill out has a textarea on it that gets replaced with the fckeditor when it loads:
window.onload = function()
{
if(document.all.message_content_html){
var oFCKeditor = new FCKeditor( 'message_content_html' ) ;
oFCKeditor.ReplaceTextarea() ;
}
}
I have well-formed HTML that I need to populate that text area with, but when I set the innertext or innerhtml properties, all the HTML formatting gets stripped out. My question is this: Do I need to do something special to set those properties when this control is being used, or is this some other issue that I need to deal with?
Thanks in advance!
Re: Question regarding setting values programatically
$oFCKeditor->Value = $value;
You might be able to set the value variable with Javascript as well.