I am trying to use the insertHTML and it is not working in either IE or FF. Can anyone assist?
In the header I have:
<script src="/mlist/fckEditor/fckeditor.js" type="text/javascript"></script>
<script type="text/javascript">
function insertHTML(html)
{
var oFCKeditor= FCKeditorAPI.GetInstance('templateContent');
oFCKeditor.InsertHtml();
}
</script>
In the body I am using the following to invoke the FCK:
<script type="text/javascript">
<!--
var oFCKeditor = new FCKeditor( 'templateContent' ) ;
oFCKeditor.BasePath = '/mlist/FCKeditor/' ;
oFCKeditor.Value = 'test.' ;
oFCKeditor.Create() ;
//-->
</script>
And to insert the HTML:
<select>
<option value="">Select Template</option>
<option value="This is my HTML1">1</option>
<option value="This is my HTML2">2</option>
<option value="This is my HTML3">3</option>
</select>
<input type="button" value="Insert template" onclick="InsertHTML();">
In the header I have:
<script src="/mlist/fckEditor/fckeditor.js" type="text/javascript"></script>
<script type="text/javascript">
function insertHTML(html)
{
var oFCKeditor= FCKeditorAPI.GetInstance('templateContent');
oFCKeditor.InsertHtml();
}
</script>
In the body I am using the following to invoke the FCK:
<script type="text/javascript">
<!--
var oFCKeditor = new FCKeditor( 'templateContent' ) ;
oFCKeditor.BasePath = '/mlist/FCKeditor/' ;
oFCKeditor.Value = 'test.' ;
oFCKeditor.Create() ;
//-->
</script>
And to insert the HTML:
<select>
<option value="">Select Template</option>
<option value="This is my HTML1">1</option>
<option value="This is my HTML2">2</option>
<option value="This is my HTML3">3</option>
</select>
<input type="button" value="Insert template" onclick="InsertHTML();">
RE: InsertHTML v2 rc3 issue
You may want to look at:
https://sourceforge.net/forum/message.p ... id=2891503
Not quite what you were asking but might give ideas.
Although I think the GetInstance is preferred? Dunno. The above works tho.