Hi all,
I've worked with FCKeditor for a few years now, and recently i'm experimenting with the javascript API. Basically what I'm trying to do is inserting HTML into FCKeditor, but this seems to break up the tags:
for example, if I had this code:
if I now insert HTML through for example oEditor.InsertHTML("This is my inserted text"); (replacing the three dots) the result would be:
As you can see, the inserted text does not have any style applied to it.
is there any way of preventing this from happening and inserting text INTO the span, maintaining the style?
All help is appreciated!
I've worked with FCKeditor for a few years now, and recently i'm experimenting with the javascript API. Basically what I'm trying to do is inserting HTML into FCKeditor, but this seems to break up the tags:
for example, if I had this code:
<span style="font-size: 11px; font-family: Verdana,Arial;">Insert text here: ... thank you.</span>
if I now insert HTML through for example oEditor.InsertHTML("This is my inserted text"); (replacing the three dots) the result would be:
<span style="font-size: 11px; font-family: Verdana,Arial;">Insert text here: </span>This is my inserted text<span style="font-size: 11px; font-family: Verdana,Arial;"> thank you.</span>
As you can see, the inserted text does not have any style applied to it.
is there any way of preventing this from happening and inserting text INTO the span, maintaining the style?
All help is appreciated!

Re: InsertHTML breaking tags
If I find a solution to this, I will post it here.